From 9553369ddbd911b4036a22f8fd2d554e30d8408a Mon Sep 17 00:00:00 2001 From: miladsoft Date: Fri, 20 Sep 2024 20:14:42 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/block-core/angor-hub/commit/7054b6e7d8b45bed83038aef2cb2ea4aabcec459 --- 404.html | 2 +- chunk-HUZYLRUH.js => chunk-42YXMLAE.js | 2 +- chunk-5F4DOZP3.js | 1 + chunk-PWH2GQNP.js => chunk-6S6AYVUH.js | 2 +- chunk-7WK6GZSZ.js => chunk-BLRJMPLX.js | 2 +- chunk-L5KTQ534.js => chunk-G4C2NSS4.js | 2 +- chunk-BK7YAMGQ.js => chunk-HGT4ACXZ.js | 2 +- chunk-HXTGFYHM.js | 1 - chunk-L2RASMKO.js => chunk-I33GKPRG.js | 2 +- chunk-TXXDQLF3.js => chunk-K7XPURVS.js | 2 +- chunk-ZSOMQRTJ.js => chunk-MYVAGBPZ.js | 2 +- chunk-7KVKKYAR.js => chunk-NX4YLCAX.js | 2 +- chunk-LKKRLEHJ.js => chunk-ON6SO2QP.js | 2 +- chunk-TCWZV6BW.js => chunk-OV5Y7PXG.js | 2 +- chunk-PS53JEOB.js => chunk-SCHRUTWR.js | 2 +- chunk-JB4C5CO3.js => chunk-V2SEKFEW.js | 2 +- chunk-FSQVH6RP.js => chunk-VNXQB3RV.js | 2 +- index.html | 2 +- main-IO7HEYYC.js => main-QSBPRLJZ.js | 4 +- ngsw.json | 68 +++++++++++++------------- 20 files changed, 53 insertions(+), 53 deletions(-) rename chunk-HUZYLRUH.js => chunk-42YXMLAE.js (98%) create mode 100644 chunk-5F4DOZP3.js rename chunk-PWH2GQNP.js => chunk-6S6AYVUH.js (99%) rename chunk-7WK6GZSZ.js => chunk-BLRJMPLX.js (99%) rename chunk-L5KTQ534.js => chunk-G4C2NSS4.js (97%) rename chunk-BK7YAMGQ.js => chunk-HGT4ACXZ.js (99%) delete mode 100644 chunk-HXTGFYHM.js rename chunk-L2RASMKO.js => chunk-I33GKPRG.js (99%) rename chunk-TXXDQLF3.js => chunk-K7XPURVS.js (99%) rename chunk-ZSOMQRTJ.js => chunk-MYVAGBPZ.js (99%) rename chunk-7KVKKYAR.js => chunk-NX4YLCAX.js (98%) rename chunk-LKKRLEHJ.js => chunk-ON6SO2QP.js (99%) rename chunk-TCWZV6BW.js => chunk-OV5Y7PXG.js (99%) rename chunk-PS53JEOB.js => chunk-SCHRUTWR.js (99%) rename chunk-JB4C5CO3.js => chunk-V2SEKFEW.js (98%) rename chunk-FSQVH6RP.js => chunk-VNXQB3RV.js (99%) rename main-IO7HEYYC.js => main-QSBPRLJZ.js (99%) diff --git a/404.html b/404.html index 4dd55c5..4967062 100644 --- a/404.html +++ b/404.html @@ -42,5 +42,5 @@ - + diff --git a/chunk-HUZYLRUH.js b/chunk-42YXMLAE.js similarity index 98% rename from chunk-HUZYLRUH.js rename to chunk-42YXMLAE.js index 1b09224..94885f8 100644 --- a/chunk-HUZYLRUH.js +++ b/chunk-42YXMLAE.js @@ -1 +1 @@ -import{b as re,c as ae,d as se}from"./chunk-7TGJR4WL.js";import{a as oe}from"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{b as ne}from"./chunk-ZSOMQRTJ.js";import"./chunk-GTCJWQQT.js";import{D as R,F as x,H,I as Y,M as J,O as Q,P as X,R as Z,T as $,U as ee,V as te,W as ie,q,r as P,u as B,y as W,z}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as U,X as j,Z as G,ba as D,ca as O}from"./chunk-MH4Z64LL.js";import{$a as E,Ba as o,Bb as I,Ca as w,Hb as A,Ib as k,Pa as c,Ua as n,ba as b,cb as i,db as t,eb as a,fc as T,h as C,ia as h,ib as L,ja as _,ka as M,kc as N,la as F,lb as y,nb as S,xc as K,yb as v,yc as V,zb as s}from"./chunk-LP5NDBXI.js";var le=()=>["/register"];function ce(e,m){if(e&1&&(i(0,"angor-alert",39),s(1),t()),e&2){let g=S();n("appearance","outline")("showIcon",!1)("type",g.secAlert.type)("@shake",g.secAlert.type==="error"),o(),I(" ",g.secAlert.message," ")}}function pe(e,m){if(e&1){let g=L();i(0,"div")(1,"div",14),a(2,"div",15),i(3,"div",16),s(4,"Login with extension"),t(),a(5,"div",15),t(),i(6,"div",40)(7,"button",41),y("click",function(){h(g);let d=S();return _(d.loginWithNostrExtension())}),a(8,"mat-icon",42),i(9,"span"),s(10,"Login with Nostr Extension"),t()()(),i(11,"div",14),a(12,"div",15),i(13,"div",16),s(14,"Or"),t(),a(15,"div",15),t()()}e&2&&(o(8),n("svgIcon","feather:zap"))}function de(e,m){e&1&&(i(0,"mat-error"),s(1," Secret key is required "),t())}function ge(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function ue(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function fe(e,m){e&1&&(i(0,"mat-error"),s(1," Password is required "),t())}function he(e,m){e&1&&(i(0,"span"),s(1,"Login"),t())}function _e(e,m){e&1&&a(0,"mat-progress-spinner",43)}function ye(e,m){if(e&1&&(i(0,"angor-alert",39),s(1),t()),e&2){let g=S();n("appearance","outline")("showIcon",!1)("type",g.menemonicAlert.type)("@shake",g.menemonicAlert.type==="error"),o(),I(" ",g.menemonicAlert.message," ")}}function ve(e,m){e&1&&(i(0,"mat-error"),s(1," Menemonic is required "),t())}function xe(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function we(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function Se(e,m){e&1&&(i(0,"mat-error"),s(1," Passphrase is required "),t())}function Ee(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function Le(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function Ie(e,m){e&1&&(i(0,"mat-error"),s(1," Password is required "),t())}function Ce(e,m){e&1&&(i(0,"span"),s(1,"Login"),t())}function be(e,m){e&1&&a(0,"mat-progress-spinner",43)}var me=(()=>{let m=class m{constructor(p,d,r){this._formBuilder=p,this._router=d,this._signerService=r,this.secAlert={type:"error",message:""},this.showSecAlert=!1,this.menemonicAlert={type:"error",message:""},this.showMenemonicAlert=!1,this.loading=!1,this.isInstalledExtension=!1,this.privateKey=new Uint8Array,this.publicKey="",this.npub="",this.nsec=""}ngOnInit(){this.initializeForms(),this.checkNostrExtensionAvailability()}initializeForms(){this.SecretKeyLoginForm=this._formBuilder.group({secretKey:["",[x.required,x.minLength(3)]],password:["",x.required]}),this.MenemonicLoginForm=this._formBuilder.group({menemonic:["",[x.required,x.minLength(3)]],passphrase:[""],password:["",x.required]})}checkNostrExtensionAvailability(){let p=globalThis;p.nostr&&typeof p.nostr.signEvent=="function"?this.isInstalledExtension=!0:this.isInstalledExtension=!1}loginWithSecretKey(){if(this.SecretKeyLoginForm.invalid)return;let p=this.SecretKeyLoginForm.get("secretKey")?.value,d=this.SecretKeyLoginForm.get("password")?.value;this.loading=!0,this.showSecAlert=!1;try{if(this._signerService.handleLoginWithKey(p,d))this._router.navigateByUrl("/home");else throw new Error("Secret key is missing or invalid.")}catch(r){this.loading=!1,this.secAlert.message=r instanceof Error?r.message:"An unexpected error occurred.",this.showSecAlert=!0,console.error("Login error: ",r)}}loginWithMenemonic(){if(this.MenemonicLoginForm.invalid)return;let p=this.MenemonicLoginForm.get("menemonic")?.value,d=this.MenemonicLoginForm.get("passphrase")?.value||"",r=this.MenemonicLoginForm.get("password")?.value;this.loading=!0,this.showMenemonicAlert=!1,this._signerService.handleLoginWithMenemonic(p,d,r)?this._router.navigateByUrl("/home"):(this.loading=!1,this.menemonicAlert.message="Menemonic is missing or invalid.",this.showMenemonicAlert=!0)}loginWithNostrExtension(){return C(this,null,function*(){(yield this._signerService.handleLoginWithExtension())?this._router.navigateByUrl("/home"):console.error("Failed to log in using Nostr extension")})}};m.\u0275fac=function(d){return new(d||m)(w(Z),w(K),w(ne))},m.\u0275cmp=b({type:m,selectors:[["auth-sign-in"]],standalone:!0,features:[A],decls:86,vars:27,consts:[["secretPasswordField",""],["passphraseField",""],["menemonicPasswordField",""],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],["class","mt-8",3,"appearance","showIcon","type",4,"ngIf"],[4,"ngIf"],[1,"mt-8",3,"ngSubmit","formGroup"],[1,"mt-8","flex","items-center"],[1,"mt-px","flex-auto","border-t"],[1,"text-secondary","mx-2"],[1,"w-full"],["matInput","","formControlName","secretKey","autocomplete","secretKey"],["matInput","","type","password","autocomplete","current-password-seckey",3,"formControlName"],["mat-icon-button","","type","button","matSuffix","",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],["mat-flat-button","","color","primary",1,"angor-mat-button-large","mt-6","w-full",3,"disabled"],["diameter","24","mode","indeterminate",4,"ngIf"],["matInput","","formControlName","menemonic","autocomplete","menemonic"],["matInput","","type","password","autocomplete","current-passphrase-menemonic",3,"formControlName"],["matInput","","type","password","autocomplete","current-password-menemonic",3,"formControlName"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-top-16","-right-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-8","flex","items-center","space-x-4"],["type","button","mat-stroked-button","",1,"flex-auto","space-x-2",3,"click"],[1,"icon-size-5",3,"svgIcon"],["diameter","24","mode","indeterminate"]],template:function(d,r){if(d&1){let u=L();i(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),a(4,"img",7),t(),i(5,"div",8),s(6," Login "),t(),i(7,"div",9)(8,"div"),s(9,"Don't have an account?"),t(),i(10,"a",10),s(11,"Register"),t()(),c(12,ce,2,5,"angor-alert",11)(13,pe,16,1,"div",12),i(14,"form",13),y("ngSubmit",function(){return h(u),_(r.loginWithSecretKey())}),i(15,"div",14),a(16,"div",15),i(17,"div",16),s(18,"Enter secret key"),t(),a(19,"div",15),t(),i(20,"mat-form-field",17)(21,"mat-label"),s(22,"Secret Key"),t(),a(23,"input",18),c(24,de,2,0,"mat-error"),t(),i(25,"mat-form-field",17)(26,"mat-label"),s(27,"Password"),t(),a(28,"input",19,0),i(30,"button",20),y("click",function(){h(u);let l=v(29);return _(l.type==="password"?l.type="text":l.type="password")}),c(31,ge,1,1,"mat-icon",21)(32,ue,1,1,"mat-icon",21),t(),c(33,fe,2,0,"mat-error",12),t(),i(34,"button",22),c(35,he,2,0,"span",12)(36,_e,1,0,"mat-progress-spinner",23),t()(),i(37,"div",14),a(38,"div",15),i(39,"div",16),s(40,"Or enter menemonic"),t(),a(41,"div",15),t(),c(42,ye,2,5,"angor-alert",11),i(43,"form",13),y("ngSubmit",function(){return h(u),_(r.loginWithMenemonic())}),i(44,"mat-form-field",17)(45,"mat-label"),s(46,"Menemonic"),t(),a(47,"input",24),c(48,ve,2,0,"mat-error"),t(),i(49,"mat-form-field",17)(50,"mat-label"),s(51,"Passphrase (Optional)"),t(),a(52,"input",25,1),i(54,"button",20),y("click",function(){h(u);let l=v(53);return _(l.type==="password"?l.type="text":l.type="password")}),c(55,xe,1,1,"mat-icon",21)(56,we,1,1,"mat-icon",21),t(),c(57,Se,2,0,"mat-error",12),t(),i(58,"mat-form-field",17)(59,"mat-label"),s(60,"Password"),t(),a(61,"input",26,2),i(63,"button",20),y("click",function(){h(u);let l=v(62);return _(l.type==="password"?l.type="text":l.type="password")}),c(64,Ee,1,1,"mat-icon",21)(65,Le,1,1,"mat-icon",21),t(),c(66,Ie,2,0,"mat-error",12),t(),i(67,"button",22),c(68,Ce,2,0,"span",12)(69,be,1,0,"mat-progress-spinner",23),t()()()(),i(70,"div",27),M(),i(71,"svg",28)(72,"g",29),a(73,"circle",30)(74,"circle",31),t()(),i(75,"svg",32)(76,"defs")(77,"pattern",33),a(78,"rect",34),t()(),a(79,"rect",35),t(),F(),i(80,"div",36)(81,"div",37)(82,"div"),s(83,"Angor Hub"),t()(),i(84,"div",38),s(85," Angor Hub is a Nostr client customized around the Angor protocol, a decentralized crowdfunding platform. "),t()()()()}if(d&2){let u=v(29),f=v(53),l=v(62);o(10),n("routerLink",k(26,le)),o(2),n("ngIf",r.showSecAlert),o(),n("ngIf",r.isInstalledExtension),o(),n("formGroup",r.SecretKeyLoginForm),o(10),E(r.SecretKeyLoginForm.get("secretKey").hasError("required")?24:-1),o(4),n("formControlName","password"),o(3),n("ngIf",u.type==="password"),o(),n("ngIf",u.type==="text"),o(),n("ngIf",r.SecretKeyLoginForm.get("password").hasError("required")),o(),n("disabled",r.SecretKeyLoginForm.invalid),o(),n("ngIf",!r.loading),o(),n("ngIf",r.loading),o(6),n("ngIf",r.showMenemonicAlert),o(),n("formGroup",r.MenemonicLoginForm),o(5),E(r.MenemonicLoginForm.get("menemonic").hasError("required")?48:-1),o(4),n("formControlName","passphrase"),o(3),n("ngIf",f.type==="password"),o(),n("ngIf",f.type==="text"),o(),n("ngIf",r.MenemonicLoginForm.get("passphrase").hasError("required")),o(4),n("formControlName","password"),o(3),n("ngIf",l.type==="password"),o(),n("ngIf",l.type==="text"),o(),n("ngIf",r.MenemonicLoginForm.get("password").hasError("required")),o(),n("disabled",r.MenemonicLoginForm.invalid),o(),n("ngIf",!r.loading),o(),n("ngIf",r.loading)}},dependencies:[V,oe,$,J,R,H,Y,ee,Q,X,z,W,q,P,B,ie,te,U,j,G,O,D,re,se,ae,N,T],encapsulation:2});let e=m;return e})();var Xe=[{path:"",component:me}];export{Xe as default}; +import{b as re,c as ae,d as se}from"./chunk-7TGJR4WL.js";import{a as oe}from"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{b as ne}from"./chunk-MYVAGBPZ.js";import"./chunk-GTCJWQQT.js";import{D as R,F as x,H,I as Y,M as J,O as Q,P as X,R as Z,T as $,U as ee,V as te,W as ie,q,r as P,u as B,y as W,z}from"./chunk-4AZPYN7Q.js";import"./chunk-BLRJMPLX.js";import{$ as U,X as j,Z as G,ba as D,ca as O}from"./chunk-MH4Z64LL.js";import{$a as E,Ba as o,Bb as I,Ca as w,Hb as A,Ib as k,Pa as c,Ua as n,ba as b,cb as i,db as t,eb as a,fc as T,h as C,ia as h,ib as L,ja as _,ka as M,kc as N,la as F,lb as y,nb as S,xc as K,yb as v,yc as V,zb as s}from"./chunk-LP5NDBXI.js";var le=()=>["/register"];function ce(e,m){if(e&1&&(i(0,"angor-alert",39),s(1),t()),e&2){let g=S();n("appearance","outline")("showIcon",!1)("type",g.secAlert.type)("@shake",g.secAlert.type==="error"),o(),I(" ",g.secAlert.message," ")}}function pe(e,m){if(e&1){let g=L();i(0,"div")(1,"div",14),a(2,"div",15),i(3,"div",16),s(4,"Login with extension"),t(),a(5,"div",15),t(),i(6,"div",40)(7,"button",41),y("click",function(){h(g);let d=S();return _(d.loginWithNostrExtension())}),a(8,"mat-icon",42),i(9,"span"),s(10,"Login with Nostr Extension"),t()()(),i(11,"div",14),a(12,"div",15),i(13,"div",16),s(14,"Or"),t(),a(15,"div",15),t()()}e&2&&(o(8),n("svgIcon","feather:zap"))}function de(e,m){e&1&&(i(0,"mat-error"),s(1," Secret key is required "),t())}function ge(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function ue(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function fe(e,m){e&1&&(i(0,"mat-error"),s(1," Password is required "),t())}function he(e,m){e&1&&(i(0,"span"),s(1,"Login"),t())}function _e(e,m){e&1&&a(0,"mat-progress-spinner",43)}function ye(e,m){if(e&1&&(i(0,"angor-alert",39),s(1),t()),e&2){let g=S();n("appearance","outline")("showIcon",!1)("type",g.menemonicAlert.type)("@shake",g.menemonicAlert.type==="error"),o(),I(" ",g.menemonicAlert.message," ")}}function ve(e,m){e&1&&(i(0,"mat-error"),s(1," Menemonic is required "),t())}function xe(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function we(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function Se(e,m){e&1&&(i(0,"mat-error"),s(1," Passphrase is required "),t())}function Ee(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye")}function Le(e,m){e&1&&a(0,"mat-icon",42),e&2&&n("svgIcon","heroicons_solid:eye-slash")}function Ie(e,m){e&1&&(i(0,"mat-error"),s(1," Password is required "),t())}function Ce(e,m){e&1&&(i(0,"span"),s(1,"Login"),t())}function be(e,m){e&1&&a(0,"mat-progress-spinner",43)}var me=(()=>{let m=class m{constructor(p,d,r){this._formBuilder=p,this._router=d,this._signerService=r,this.secAlert={type:"error",message:""},this.showSecAlert=!1,this.menemonicAlert={type:"error",message:""},this.showMenemonicAlert=!1,this.loading=!1,this.isInstalledExtension=!1,this.privateKey=new Uint8Array,this.publicKey="",this.npub="",this.nsec=""}ngOnInit(){this.initializeForms(),this.checkNostrExtensionAvailability()}initializeForms(){this.SecretKeyLoginForm=this._formBuilder.group({secretKey:["",[x.required,x.minLength(3)]],password:["",x.required]}),this.MenemonicLoginForm=this._formBuilder.group({menemonic:["",[x.required,x.minLength(3)]],passphrase:[""],password:["",x.required]})}checkNostrExtensionAvailability(){let p=globalThis;p.nostr&&typeof p.nostr.signEvent=="function"?this.isInstalledExtension=!0:this.isInstalledExtension=!1}loginWithSecretKey(){if(this.SecretKeyLoginForm.invalid)return;let p=this.SecretKeyLoginForm.get("secretKey")?.value,d=this.SecretKeyLoginForm.get("password")?.value;this.loading=!0,this.showSecAlert=!1;try{if(this._signerService.handleLoginWithKey(p,d))this._router.navigateByUrl("/home");else throw new Error("Secret key is missing or invalid.")}catch(r){this.loading=!1,this.secAlert.message=r instanceof Error?r.message:"An unexpected error occurred.",this.showSecAlert=!0,console.error("Login error: ",r)}}loginWithMenemonic(){if(this.MenemonicLoginForm.invalid)return;let p=this.MenemonicLoginForm.get("menemonic")?.value,d=this.MenemonicLoginForm.get("passphrase")?.value||"",r=this.MenemonicLoginForm.get("password")?.value;this.loading=!0,this.showMenemonicAlert=!1,this._signerService.handleLoginWithMenemonic(p,d,r)?this._router.navigateByUrl("/home"):(this.loading=!1,this.menemonicAlert.message="Menemonic is missing or invalid.",this.showMenemonicAlert=!0)}loginWithNostrExtension(){return C(this,null,function*(){(yield this._signerService.handleLoginWithExtension())?this._router.navigateByUrl("/home"):console.error("Failed to log in using Nostr extension")})}};m.\u0275fac=function(d){return new(d||m)(w(Z),w(K),w(ne))},m.\u0275cmp=b({type:m,selectors:[["auth-sign-in"]],standalone:!0,features:[A],decls:86,vars:27,consts:[["secretPasswordField",""],["passphraseField",""],["menemonicPasswordField",""],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],["class","mt-8",3,"appearance","showIcon","type",4,"ngIf"],[4,"ngIf"],[1,"mt-8",3,"ngSubmit","formGroup"],[1,"mt-8","flex","items-center"],[1,"mt-px","flex-auto","border-t"],[1,"text-secondary","mx-2"],[1,"w-full"],["matInput","","formControlName","secretKey","autocomplete","secretKey"],["matInput","","type","password","autocomplete","current-password-seckey",3,"formControlName"],["mat-icon-button","","type","button","matSuffix","",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],["mat-flat-button","","color","primary",1,"angor-mat-button-large","mt-6","w-full",3,"disabled"],["diameter","24","mode","indeterminate",4,"ngIf"],["matInput","","formControlName","menemonic","autocomplete","menemonic"],["matInput","","type","password","autocomplete","current-passphrase-menemonic",3,"formControlName"],["matInput","","type","password","autocomplete","current-password-menemonic",3,"formControlName"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-top-16","-right-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-8","flex","items-center","space-x-4"],["type","button","mat-stroked-button","",1,"flex-auto","space-x-2",3,"click"],[1,"icon-size-5",3,"svgIcon"],["diameter","24","mode","indeterminate"]],template:function(d,r){if(d&1){let u=L();i(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),a(4,"img",7),t(),i(5,"div",8),s(6," Login "),t(),i(7,"div",9)(8,"div"),s(9,"Don't have an account?"),t(),i(10,"a",10),s(11,"Register"),t()(),c(12,ce,2,5,"angor-alert",11)(13,pe,16,1,"div",12),i(14,"form",13),y("ngSubmit",function(){return h(u),_(r.loginWithSecretKey())}),i(15,"div",14),a(16,"div",15),i(17,"div",16),s(18,"Enter secret key"),t(),a(19,"div",15),t(),i(20,"mat-form-field",17)(21,"mat-label"),s(22,"Secret Key"),t(),a(23,"input",18),c(24,de,2,0,"mat-error"),t(),i(25,"mat-form-field",17)(26,"mat-label"),s(27,"Password"),t(),a(28,"input",19,0),i(30,"button",20),y("click",function(){h(u);let l=v(29);return _(l.type==="password"?l.type="text":l.type="password")}),c(31,ge,1,1,"mat-icon",21)(32,ue,1,1,"mat-icon",21),t(),c(33,fe,2,0,"mat-error",12),t(),i(34,"button",22),c(35,he,2,0,"span",12)(36,_e,1,0,"mat-progress-spinner",23),t()(),i(37,"div",14),a(38,"div",15),i(39,"div",16),s(40,"Or enter menemonic"),t(),a(41,"div",15),t(),c(42,ye,2,5,"angor-alert",11),i(43,"form",13),y("ngSubmit",function(){return h(u),_(r.loginWithMenemonic())}),i(44,"mat-form-field",17)(45,"mat-label"),s(46,"Menemonic"),t(),a(47,"input",24),c(48,ve,2,0,"mat-error"),t(),i(49,"mat-form-field",17)(50,"mat-label"),s(51,"Passphrase (Optional)"),t(),a(52,"input",25,1),i(54,"button",20),y("click",function(){h(u);let l=v(53);return _(l.type==="password"?l.type="text":l.type="password")}),c(55,xe,1,1,"mat-icon",21)(56,we,1,1,"mat-icon",21),t(),c(57,Se,2,0,"mat-error",12),t(),i(58,"mat-form-field",17)(59,"mat-label"),s(60,"Password"),t(),a(61,"input",26,2),i(63,"button",20),y("click",function(){h(u);let l=v(62);return _(l.type==="password"?l.type="text":l.type="password")}),c(64,Ee,1,1,"mat-icon",21)(65,Le,1,1,"mat-icon",21),t(),c(66,Ie,2,0,"mat-error",12),t(),i(67,"button",22),c(68,Ce,2,0,"span",12)(69,be,1,0,"mat-progress-spinner",23),t()()()(),i(70,"div",27),M(),i(71,"svg",28)(72,"g",29),a(73,"circle",30)(74,"circle",31),t()(),i(75,"svg",32)(76,"defs")(77,"pattern",33),a(78,"rect",34),t()(),a(79,"rect",35),t(),F(),i(80,"div",36)(81,"div",37)(82,"div"),s(83,"Angor Hub"),t()(),i(84,"div",38),s(85," Angor Hub is a Nostr client customized around the Angor protocol, a decentralized crowdfunding platform. "),t()()()()}if(d&2){let u=v(29),f=v(53),l=v(62);o(10),n("routerLink",k(26,le)),o(2),n("ngIf",r.showSecAlert),o(),n("ngIf",r.isInstalledExtension),o(),n("formGroup",r.SecretKeyLoginForm),o(10),E(r.SecretKeyLoginForm.get("secretKey").hasError("required")?24:-1),o(4),n("formControlName","password"),o(3),n("ngIf",u.type==="password"),o(),n("ngIf",u.type==="text"),o(),n("ngIf",r.SecretKeyLoginForm.get("password").hasError("required")),o(),n("disabled",r.SecretKeyLoginForm.invalid),o(),n("ngIf",!r.loading),o(),n("ngIf",r.loading),o(6),n("ngIf",r.showMenemonicAlert),o(),n("formGroup",r.MenemonicLoginForm),o(5),E(r.MenemonicLoginForm.get("menemonic").hasError("required")?48:-1),o(4),n("formControlName","passphrase"),o(3),n("ngIf",f.type==="password"),o(),n("ngIf",f.type==="text"),o(),n("ngIf",r.MenemonicLoginForm.get("passphrase").hasError("required")),o(4),n("formControlName","password"),o(3),n("ngIf",l.type==="password"),o(),n("ngIf",l.type==="text"),o(),n("ngIf",r.MenemonicLoginForm.get("password").hasError("required")),o(),n("disabled",r.MenemonicLoginForm.invalid),o(),n("ngIf",!r.loading),o(),n("ngIf",r.loading)}},dependencies:[V,oe,$,J,R,H,Y,ee,Q,X,z,W,q,P,B,ie,te,U,j,G,O,D,re,se,ae,N,T],encapsulation:2});let e=m;return e})();var Xe=[{path:"",component:me}];export{Xe as default}; diff --git a/chunk-5F4DOZP3.js b/chunk-5F4DOZP3.js new file mode 100644 index 0000000..08355f7 --- /dev/null +++ b/chunk-5F4DOZP3.js @@ -0,0 +1 @@ +import{a as me,b as de,c as pe,d as ue}from"./chunk-ON6SO2QP.js";import{a as he,b as fe,c as ge,d as ve}from"./chunk-K7XPURVS.js";import{h as Ze}from"./chunk-3Q7ZV3LD.js";import{b as ot}from"./chunk-MYVAGBPZ.js";import{t as tt,u as nt,v as at}from"./chunk-6S6AYVUH.js";import{A as Ge,B as Je,D as qe,H as Xe,L as Ye,T as et,V as Z,W as G,q as Ke,t as se,y as W,z as Q}from"./chunk-4AZPYN7Q.js";import{d as it}from"./chunk-BLRJMPLX.js";import{$ as B,X as We,Z as P,_ as Qe,ba as E,ca as T}from"./chunk-MH4Z64LL.js";import{$a as h,Aa as D,Ab as Le,Ba as o,Bb as _,Ca as k,D as q,Db as ie,Eb as ne,F as be,Fb as ae,Hb as w,Ib as je,Jb as Oe,Kb as j,Mb as Ne,Ob as Y,P as ye,Pa as v,Q as b,Qb as ee,Rb as Ve,Ua as s,W as Ee,Wa as we,Wb as oe,Z as z,_ as $,_a as U,a as J,ab as H,ba as y,bb as K,cb as c,db as l,dc as re,eb as m,gc as ze,h as L,hb as Ae,ia as M,ib as X,ic as $e,j as Me,ja as I,k as A,ka as Te,l as N,lb as x,nb as u,p as Ie,q as Ce,qa as De,r as V,t as ke,tb as Pe,tc as Ue,ub as Be,vb as Re,wc as ce,xc as He,yb as R,yc as le,za as Fe,zb as p}from"./chunk-LP5NDBXI.js";var rt=(()=>{let a=class a{constructor(){}};a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=y({type:a,selectors:[["chat"]],standalone:!0,features:[w],decls:3,vars:0,consts:[[1,"absolute","inset-0","flex","min-w-0","flex-col","overflow-hidden"],[1,"flex","flex-auto","overflow-hidden"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1),m(2,"router-outlet"),l()())},dependencies:[ce],encapsulation:2,changeDetection:0});let t=a;return t})();var Se=4;var S=(()=>{let a=class a{constructor(e,i,r,d,g){this._metadataService=e,this._signerService=i,this._indexedDBService=r,this._relayService=d,this._sanitizer=g,this.chatList=[],this.latestMessageTimestamps={},this.messageQueue=[],this.isDecrypting=!1,this._chat=new N(null),this._chats=new N(null),this._contact=new N(null),this._contacts=new N(null),this._profile=new N(null),this._unsubscribeAll=new A}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}get contact$(){return this._contact.asObservable()}get contacts$(){return this._contacts.asObservable()}get profile$(){return this._profile.asObservable()}getContact(e){return L(this,null,function*(){try{let i=yield this._metadataService.fetchMetadataWithCache(e);if(i){let r={pubKey:e,displayName:i.name,picture:i.picture,about:i.about};this._contact.next(r),this._indexedDBService.getMetadataStream().pipe(b(this._unsubscribeAll)).subscribe(d=>{if(d&&d.pubkey===e){let g={pubKey:e,displayName:d.metadata.name,picture:d.metadata.picture,about:d.metadata.about};this._contact.next(g)}})}}catch(i){console.error("Error fetching contact metadata:",i)}})}getContacts(){return new Me(e=>(this._indexedDBService.getAllUsers().then(i=>{i.length>0&&(this._contacts.next(i),e.next(i));let r=i.map(d=>d.pubKey);r.length>0&&this.subscribeToRealTimeContacts(r,e)}).catch(i=>{console.error("Error loading cached contacts from IndexedDB:",i),e.error(i)}),()=>{console.log("Unsubscribing from contacts updates.")}))}subscribeToRealTimeContacts(e,i){this._metadataService.fetchMetadataForMultipleKeys(e).then(r=>{let d=[...this._contacts.value||[]];r.forEach(g=>{let f=d.findIndex(F=>F.pubKey===g.pubkey),C={pubKey:g.pubkey,displayName:g.name,picture:g.picture,about:g.about};f!==-1?d[f]=J(J({},d[f]),C):d.push(C)}),this._contacts.next(d),i.next(d)}).catch(r=>{console.error("Error fetching metadata for contacts:",r),i.error(r)})}getProfile(){return L(this,null,function*(){try{let e=this._signerService.getPublicKey(),i=yield this._metadataService.fetchMetadataWithCache(e);i&&(this._profile.next(i),this._indexedDBService.getMetadataStream().pipe(b(this._unsubscribeAll)).subscribe(r=>{r&&r.pubkey===e&&this._profile.next(r.metadata)}))}catch(e){console.error("Error fetching profile metadata:",e)}})}getChats(){return L(this,null,function*(){let e=this._signerService.getPublicKey(),i=yield this._signerService.isUsingExtension(),r=yield this._signerService.getSecretKey("123");return this.subscribeToChatList(e,i,r),this.getChatListStream()})}subscribeToChatList(e,i,r){return this._relayService.ensureConnectedRelays().then(()=>{let d=[{kinds:[Se],authors:[e]},{kinds:[Se],"#p":[e]}];this._relayService.getPool().subscribeMany(this._relayService.getConnectedRelays(),d,{onevent:g=>L(this,null,function*(){let f=g.pubkey===e?g.tags.find(F=>F[0]==="p")?.[1]||"":g.pubkey;if(!f)return;let C=this.latestMessageTimestamps[f]||0;g.created_at>C&&(this.latestMessageTimestamps[f]=g.created_at,this.messageQueue.push(g),this.processNextMessage(e,i,r))}),oneose:()=>{console.log("Subscription closed"),this._chats.next(this.chatList)}})}),this.getChatListStream()}processNextMessage(e,i,r){return L(this,null,function*(){if(this.isDecrypting||this.messageQueue.length===0)return;this.isDecrypting=!0;let d=this.messageQueue.shift();if(!d){this.isDecrypting=!1;return}let f=d.pubkey===e?d.tags.find(C=>C[0]==="p")?.[1]||"":d.pubkey;if(!f){this.isDecrypting=!1;return}try{let C=yield this.decryptReceivedMessage(d,i,r,f);if(C){let F=d.created_at*1e3;this.addOrUpdateChatList(f,C,F)}}catch(C){console.error("Failed to decrypt message:",C)}finally{this.isDecrypting=!1,this.processNextMessage(e,i,r)}})}addOrUpdateChatList(e,i,r){let d=this.chatList.find(g=>g.contact?.pubKey===e);if(d)d.lastMessageAt&&new Date(d.lastMessageAt).getTime()new Date(f.lastMessageAt).getTime()-new Date(g.lastMessageAt).getTime()),this._chats.next(this.chatList)}fetchMetadataForPubKey(e){this._metadataService.fetchMetadataWithCache(e).then(i=>{let r=this.chatList.find(d=>d.contact?.pubKey===e);r&&i&&(r.contact=J(J({},r.contact),i),this._chats.next(this.chatList))}).catch(i=>{console.error(`Failed to fetch metadata for pubKey: ${e}`,i)})}getChatListStream(){return this._chats.asObservable()}decryptReceivedMessage(e,i,r,d){return L(this,null,function*(){return"Decrypted message"})}updateChat(e,i){return this.chats$.pipe(be(1),ye(r=>{let d=i.contact?.pubKey;if(!d)return V("No public key found for this chat");let g={kind:4,pubkey:d,content:JSON.stringify(i),created_at:Math.floor(Date.now()/1e3),tags:[["p",d]]};return g.id=it(g),Ie(this._relayService.publishEventToRelays(g)).pipe(ke(()=>{if(r){let f=r.findIndex(C=>C.id===e);f!==-1&&(r[f]=i,this._chats.next(r))}return i}),q(f=>(console.error("Failed to update chat via Nostr:",f),V(f))))}))}getChatById(e){let i=e,r=this._signerService.getPublicKey(),d=this._signerService.isUsingExtension(),g=this._signerService.getSecretKey("123");return this.chats$.pipe(be(1),ye(f=>{let C=f?.find(gt=>gt.id===e);if(C)return this._chat.next(C),Ce(C);let F={id:i,contact:{pubKey:i,picture:"/images/avatars/avatar-placeholder.png"},lastMessage:"",lastMessageAt:new Date().toISOString(),messages:[]},ft=f?[...f,F]:[F];return this._chats.next(ft),this._chat.next(F),Ce(F)}),q(f=>(console.error("Error fetching chat by id from Nostr:",f),V(f))))}resetChat(){this._chat.next(null)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}};a.\u0275fac=function(i){return new(i||a)(z(at),z(ot),z(tt),z(nt),z(Ue))},a.\u0275prov=Ee({token:a,factory:a.\u0275fac,providedIn:"root"});let t=a;return t})();function vt(t,a){if(t&1&&(c(0,"div",8),p(1),l()),t&2){let n,e=u().$implicit;o(),_(" ",(n=e==null||e.name==null?null:e.name.charAt(0))!==null&&n!==void 0?n:""," ")}}function _t(t,a){if(t&1&&m(0,"img",10),t&2){let n=u().$implicit;s("src",n.picture||"/images/avatars/avatar-placeholder.png",D)}}function xt(t,a){if(t&1&&(c(0,"div",11),p(1),l()),t&2){let n,e=u().$implicit;o(),_(" ",(n=e==null||e.name==null?null:e.name.charAt(0))!==null&&n!==void 0?n:""," ")}}function Ct(t,a){if(t&1&&(v(0,vt,2,1,"div",8),c(1,"div",7)(2,"div",9),v(3,_t,1,1,"img",10)(4,xt,2,1,"div",11),l(),c(5,"div",12)(6,"div",13),p(7),l(),c(8,"div",14),p(9),l()()()),t&2){let n,e=a.$implicit,i=a.$index,r=u(2);h(i===0||((n=e==null||e.name==null?null:e.name.charAt(0))!==null&&n!==void 0?n:"")!==((n=r.contacts[i-1]==null||r.contacts[i-1].name==null?null:r.contacts[i-1].name.charAt(0))!==null&&n!==void 0?n:"")?0:-1),o(3),h(e.picture?3:-1),o(),h(e.picture?-1:4),o(3),_(" ",e.name," "),o(2),_(" ",e.about," ")}}function bt(t,a){if(t&1&&H(0,Ct,10,5,"div",7,U().trackByFn,!0),t&2){let n=u();K(n.contacts)}}function yt(t,a){t&1&&(c(0,"div",6),p(1," There are no contacts! "),l())}var ct=(()=>{let a=class a{constructor(e){this._chatService=e,this.contacts=[],this._unsubscribeAll=new A}ngOnInit(){this._chatService.contacts$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.contacts=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(e,i){return i.id||e}};a.\u0275fac=function(i){return new(i||a)(k(S))},a.\u0275cmp=y({type:a,selectors:[["chat-new-chat"]],inputs:{drawer:"drawer"},standalone:!0,features:[w],decls:9,vars:2,consts:[[1,"bg-card","flex","h-full","flex-auto","flex-col","overflow-hidden","dark:bg-default"],[1,"-mb-px","flex","h-18","flex-0","items-center","bg-gray-50","px-6","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-2xl","font-semibold"],[1,"relative","overflow-y-auto"],[1,"border-t","p-8","text-center","text-4xl","font-semibold","tracking-tight","sm:p-16"],[1,"z-20","flex","cursor-pointer","items-center","border-b","px-6","py-4","dark:hover:bg-hover","hover:bg-gray-100","md:px-8"],[1,"text-secondary","sticky","top-0","z-10","-mt-px","border-b","border-t","bg-gray-100","px-6","py-1","font-medium","uppercase","dark:bg-gray-900","md:px-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","overflow-hidden","rounded-full"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","min-w-0"],[1,"truncate","font-medium","leading-5"],[1,"text-secondary","truncate","leading-5"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"New chat"),l()(),c(6,"div",5),v(7,bt,2,0)(8,yt,2,0,"div",6),l()()),i&2&&(o(3),s("svgIcon","heroicons_outline:arrow-long-left"),o(4),h(r.contacts.length?7:8))},dependencies:[B,P,T,E],encapsulation:2,changeDetection:0});let t=a;return t})();function wt(t,a){if(t&1&&m(0,"img",10),t&2){let n=u();s("src",n.profile.picture||"/images/avatars/avatar-placeholder.png",D)("alt","Profile picture")}}function St(t,a){if(t&1&&(c(0,"div",11),p(1),l()),t&2){let n=u();o(),_(" ",n.profile.name.charAt(0)," ")}}var mt=(()=>{let a=class a{constructor(e){this._chatService=e,this._unsubscribeAll=new A}ngOnInit(){this._chatService.profile$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.profile=e})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};a.\u0275fac=function(i){return new(i||a)(k(S))},a.\u0275cmp=y({type:a,selectors:[["chat-profile"]],inputs:{drawer:"drawer"},standalone:!0,features:[w],decls:35,vars:11,consts:[[1,"bg-card","flex","flex-auto","flex-col","dark:bg-default"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-6","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-2xl","font-semibold"],[1,"px-6"],[1,"group","relative","mx-auto","mt-8","flex","h-40","w-40","flex-0","rounded-full"],[1,"absolute","inset-0","hidden","cursor-pointer","flex-col","items-center","justify-center","rounded-full","bg-gray-800","bg-opacity-80","backdrop-blur","backdrop-filter","group-hover:flex"],[1,"text-white",3,"svgIcon"],[1,"mx-6","mt-2","text-center","font-medium","text-white"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-full","w-full","rounded-full","object-cover",3,"src","alt"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-8xl","font-semibold","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"mx-2","mt-8","flex","flex-col"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"ngModel"],[1,"mt-4","flex","items-center","justify-end"],["mat-button","",3,"click"],["mat-flat-button","",1,"ml-2",3,"color"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"Profile"),l()(),c(6,"div",5)(7,"div",6)(8,"div",7),m(9,"mat-icon",8),c(10,"div",9),p(11," Change Profile Photo "),l()(),v(12,wt,1,2,"img",10)(13,St,2,1,"div",11),l(),c(14,"div",12)(15,"mat-form-field")(16,"mat-label"),p(17,"Name"),l(),m(18,"mat-icon",13)(19,"input",14),l(),c(20,"mat-form-field")(21,"mat-label"),p(22,"Username"),l(),m(23,"mat-icon",13)(24,"input",14),l(),c(25,"mat-form-field")(26,"mat-label"),p(27,"About"),l(),m(28,"mat-icon",13)(29,"input",14),l(),c(30,"div",15)(31,"button",16),x("click",function(){return r.drawer.close()}),p(32,"Cancel"),l(),c(33,"button",17),p(34," Save "),l()()()()()),i&2&&(o(3),s("svgIcon","heroicons_outline:arrow-long-left"),o(6),s("svgIcon","heroicons_outline:camera"),o(3),h(r.profile.picture?12:-1),o(),h(r.profile.picture?-1:13),o(5),s("svgIcon","heroicons_solid:user-circle"),o(),s("ngModel",r.profile.name),o(4),s("svgIcon","heroicons_solid:at-symbol"),o(),s("ngModel",r.profile.username),o(4),s("svgIcon","heroicons_solid:identification"),o(),s("ngModel",r.profile.about),o(4),s("color","primary"))},dependencies:[B,We,P,T,E,Q,W,Ke,se,G,Z,et,qe,Xe,Ye],encapsulation:2,changeDetection:0});let t=a;return t})();var kt=(t,a)=>({"dark:hover:bg-hover hover:bg-gray-100":t,"bg-primary-50 dark:bg-hover":a}),Et=t=>[t],Tt=(t,a)=>({"absolute inset-0 z-20 flex lg:static lg:inset-auto":t,"hidden lg:flex":a});function Dt(t,a){if(t&1&&m(0,"chat-new-chat",6),t&2){u();let n=R(3);s("drawer",n)}}function Ft(t,a){if(t&1&&m(0,"chat-profile",6),t&2){u();let n=R(3);s("drawer",n)}}function At(t,a){if(t&1&&m(0,"img",15),t&2){let n=u(2);s("src",n.profile.picture||"/images/avatars/avatar-placeholder.png",D)}}function Pt(t,a){if(t&1&&(c(0,"div",16),p(1),l()),t&2){let n=u(2);o(),_(" ",n.profile.name?n.profile.name.charAt(0):""," ")}}function Bt(t,a){if(t&1&&m(0,"div",38),t&2){let n=u().$implicit,e=u(3);we("ring-primary-50",e.selectedChat&&e.selectedChat.id===n.id)}}function Rt(t,a){if(t&1&&m(0,"img",31),t&2){let n=u().$implicit;s("src",n.contact.picture||"/images/avatars/avatar-placeholder.png",D)}}function Lt(t,a){if(t&1&&(c(0,"div",16),p(1),l()),t&2){let n=u().$implicit;o(),_(" ",!(n==null||n.contact==null)&&n.contact.name?n.contact.name.charAt(0):""," ")}}function jt(t,a){t&1&&m(0,"mat-icon",37),t&2&&s("svgIcon","heroicons_solid:speaker-x-mark")}function Ot(t,a){if(t&1&&(c(0,"a",28)(1,"div",29),v(2,Bt,1,2,"div",30)(3,Rt,1,1,"img",31)(4,Lt,2,1,"div",16),l(),c(5,"div",32)(6,"div",33),p(7),l(),c(8,"div",34),p(9),l()(),c(10,"div",35)(11,"div",36),p(12),l(),v(13,jt,1,1,"mat-icon",37),l()()),t&2){let n=a.$implicit,e=u(3);s("ngClass",j(13,kt,!e.selectedChat||e.selectedChat.id!==n.id,e.selectedChat&&e.selectedChat.id===n.id))("routerLink",Oe(16,Et,n.id)),o(2),h(n.unreadCount>0?2:-1),o(),h(n.contact.picture?3:-1),o(),h(n.contact.picture?-1:4),o(3),_(" ",n.contact.name," "),o(),we("text-primary",n.unreadCount>0)("dark:text-primary-500",n.unreadCount>0),o(),_(" ",n.lastMessage," "),o(3),_(" ",n.lastMessageAt," "),o(),h(n.muted?13:-1)}}function Nt(t,a){if(t&1&&H(0,Ot,14,18,"a",28,U().trackByFn,!0),t&2){let n=u(2);K(n.filteredChats)}}function Vt(t,a){t&1&&(c(0,"div",9),m(1,"mat-icon",39),c(2,"div",40),p(3," No chats "),l()()),t&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function zt(t,a){if(t&1){let n=X();c(0,"div",8)(1,"div",11)(2,"div",12)(3,"div",13),x("click",function(){M(n);let i=u();return I(i.openProfile())}),c(4,"div",14),v(5,At,1,1,"img",15)(6,Pt,2,1,"div",16),l(),c(7,"div",17),p(8),l()(),c(9,"button",18),x("click",function(){M(n);let i=u();return I(i.openNewChat())}),m(10,"mat-icon",19),l(),c(11,"button",20),m(12,"mat-icon",19),c(13,"mat-menu",null,1)(15,"button",21),m(16,"mat-icon",19),p(17," New group "),l(),c(18,"button",21),m(19,"mat-icon",19),p(20," Create a room "),l(),c(21,"button",22),x("click",function(){M(n);let i=u();return I(i.openProfile())}),m(22,"mat-icon",19),p(23," Profile "),l(),c(24,"button",21),m(25,"mat-icon",19),p(26," Archived "),l(),c(27,"button",21),m(28,"mat-icon",19),p(29," Starred "),l(),c(30,"button",21),m(31,"mat-icon",19),p(32," Settings "),l()()()(),c(33,"div",23)(34,"mat-form-field",24),m(35,"mat-icon",25),c(36,"input",26,2),x("input",function(){M(n);let i=R(37),r=u();return I(r.filterChats(i.value))}),l()()()(),c(38,"div",27),v(39,Nt,2,0)(40,Vt,4,1,"div",9),l()()}if(t&2){let n=R(14),e=u();o(5),h(e.profile.picture?5:-1),o(),h(e.profile.picture?-1:6),o(2),_(" ",e.profile.name," "),o(2),s("svgIcon","heroicons_outline:plus-circle"),o(),s("matMenuTriggerFor",n),o(),s("svgIcon","heroicons_outline:ellipsis-vertical"),o(4),s("svgIcon","heroicons_outline:user-group"),o(3),s("svgIcon","heroicons_outline:chat-bubble-left-right"),o(3),s("svgIcon","heroicons_outline:user-circle"),o(3),s("svgIcon","heroicons_outline:archive-box"),o(3),s("svgIcon","heroicons_outline:star"),o(3),s("svgIcon","heroicons_outline:cog-8-tooth"),o(3),s("subscriptSizing","dynamic"),o(),s("svgIcon","heroicons_solid:magnifying-glass"),o(),s("autocomplete","off")("placeholder","Search or start new chat"),o(3),h(e.filteredChats.length>0?39:40)}}function $t(t,a){t&1&&(c(0,"div",9),m(1,"mat-icon",39),c(2,"div",40),p(3," No chats "),l()()),t&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function Ut(t,a){if(t&1&&(c(0,"div",10),m(1,"router-outlet"),l()),t&2){let n=u();s("ngClass",j(1,Tt,n.selectedChat&&n.selectedChat.id,!n.selectedChat||!n.selectedChat.id))}}var dt=(()=>{let a=class a{constructor(e,i){this._chatService=e,this._changeDetectorRef=i,this.drawerOpened=!1,this._unsubscribeAll=new A}ngOnInit(){this._chatService.chats$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.chats=this.filteredChats=e,this._changeDetectorRef.markForCheck()}),this._chatService.profile$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.profile=e,this._changeDetectorRef.markForCheck()}),this._chatService.chat$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.selectedChat=e,this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete(),this._chatService.resetChat()}filterChats(e){if(!e){this.filteredChats=this.chats;return}this.filteredChats=this.chats.filter(i=>i.contact.name.toLowerCase().includes(e.toLowerCase()))}openNewChat(){this.drawerComponent="new-chat",this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}openProfile(){this.drawerComponent="profile",this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}trackByFn(e,i){return i.id||e}};a.\u0275fac=function(i){return new(i||a)(k(S),k(oe))},a.\u0275cmp=y({type:a,selectors:[["chat-chats"]],standalone:!0,features:[w],decls:10,vars:7,consts:[["drawer",""],["chatsHeaderMenu",""],["searchField",""],[1,"bg-card","relative","flex","w-full","flex-auto","dark:bg-transparent"],[1,"h-full","flex-auto",3,"hasBackdrop"],[1,"w-full","dark:bg-gray-900","sm:w-100","lg:border-r","lg:shadow-none",3,"openedChange","autoFocus","opened"],[3,"drawer"],[1,"flex","overflow-hidden"],[1,"bg-card","relative","flex","w-full","min-w-0","flex-auto","flex-col","dark:bg-transparent","lg:min-w-100","lg:max-w-100"],[1,"flex","h-full","flex-auto","flex-col","items-center","justify-center"],[1,"flex-auto","border-l",3,"ngClass"],[1,"flex","flex-0","flex-col","border-b","bg-gray-50","px-8","py-4","dark:bg-transparent"],[1,"flex","items-center"],[1,"mr-1","flex","cursor-pointer","items-center",3,"click"],[1,"h-10","w-10"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Profile picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","truncate","font-medium"],["mat-icon-button","",1,"ml-auto",3,"click"],[3,"svgIcon"],["mat-icon-button","",1,"-mr-4","ml-1",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"mt-4"],[1,"angor-mat-rounded","angor-mat-dense","w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"input","autocomplete","placeholder"],[1,"flex-auto","overflow-y-auto"],[1,"z-20","flex","cursor-pointer","items-center","border-b","px-8","py-5",3,"ngClass","routerLink"],[1,"relative","flex","h-10","w-10","flex-0","items-center","justify-center"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900",3,"ring-primary-50"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"ml-4","min-w-0"],[1,"truncate","font-medium","leading-5"],[1,"text-secondary","truncate","leading-5"],[1,"ml-auto","flex","flex-col","items-end","self-start","pl-2"],[1,"text-secondary","text-sm","leading-5"],[1,"text-hint","icon-size-5",3,"svgIcon"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(i,r){if(i&1){let d=X();c(0,"div",3)(1,"mat-drawer-container",4)(2,"mat-drawer",5,0),ae("openedChange",function(f){return M(d),ne(r.drawerOpened,f)||(r.drawerOpened=f),I(f)}),v(4,Dt,1,1,"chat-new-chat",6)(5,Ft,1,1,"chat-profile",6),l(),c(6,"mat-drawer-content",7),v(7,zt,41,17,"div",8)(8,$t,4,1,"div",9)(9,Ut,2,4,"div",10),l()()()}i&2&&(o(),s("hasBackdrop",!1),o(),s("autoFocus",!1),ie("opened",r.drawerOpened),o(2),h(r.drawerComponent==="new-chat"?4:-1),o(),h(r.drawerComponent==="profile"?5:-1),o(2),h(r.chats&&r.chats.length>0?7:8),o(2),h(r.chats&&r.chats.length>0?9:-1))},dependencies:[ve,fe,ge,he,ct,mt,B,P,T,E,ue,de,me,pe,Q,W,se,G,Z,re,le,ce],encapsulation:2,changeDetection:0});let t=a;return t})();function Ht(t,a){if(t&1&&m(0,"img",8),t&2){let n=u();s("src",n.chat.contact.picture||"/images/avatars/avatar-placeholder.png",D)("alt","Contact picture")}}function Kt(t,a){if(t&1&&(c(0,"div",9),p(1),l()),t&2){let n=u();o(),_(" ",!(n.chat==null||n.chat.contact==null)&&n.chat.contact.name?n.chat.contact.name.charAt(0):""," ")}}var pt=(()=>{let a=class a{constructor(){}};a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=y({type:a,selectors:[["chat-contact-info"]],inputs:{chat:"chat",drawer:"drawer"},standalone:!0,features:[w],decls:15,vars:5,consts:[[1,"bg-card","flex","h-full","flex-auto","flex-col","dark:bg-default"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-4","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-lg","font-medium"],[1,"overflow-y-auto"],[1,"mt-8","flex","flex-col","items-center"],[1,"h-40","w-40","rounded-full"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-full","w-full","rounded-full","object-cover",3,"src","alt"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-8xl","font-semibold","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"mt-4","text-lg","font-medium"],[1,"text-secondary","mt-0.5","text-md"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"Contact info"),l()(),c(6,"div",5)(7,"div",6)(8,"div",7),v(9,Ht,1,2,"img",8)(10,Kt,2,1,"div",9),l(),c(11,"div",10),p(12),l(),c(13,"div",11),p(14),l()()()()),i&2&&(o(3),s("svgIcon","heroicons_outline:x-mark"),o(6),h(r.chat.contact.picture?9:-1),o(),h(r.chat.contact.picture?-1:10),o(2),Le(r.chat.contact.name),o(2),_(" ",r.chat.contact.about," "))},dependencies:[B,P,T,E],encapsulation:2,changeDetection:0});let t=a;return t})();var Wt=["messageInput"],Qt=()=>["./"],Zt=(t,a,n,e)=>({"items-end":t,"items-start":a,"mt-0.5":n,"mt-3":e}),Gt=(t,a)=>({"bg-blue-500 text-blue-50":t,"bg-gray-500 text-gray-50":a}),Jt=(t,a)=>({"-right-1 -mr-px mb-px text-blue-500":t,"-left-1 -ml-px mb-px -scale-x-1 text-gray-500":a}),qt=(t,a)=>({"mr-3":t,"ml-3":a});function Xt(t,a){if(t&1&&m(0,"img",15),t&2){let n=u(2);s("src",n.chat.contact.picture||"/images/avatars/avatar-placeholder.png",D)}}function Yt(t,a){if(t&1&&(c(0,"div",16),p(1),l()),t&2){let n,e=u(2);o(),_(" ",(n=e.chat==null||e.chat.contact==null||e.chat.contact.name==null?null:e.chat.contact.name.charAt(0))!==null&&n!==void 0?n:""," ")}}function ei(t,a){t&1&&(m(0,"mat-icon",12),p(1," Mute notifications ")),t&2&&s("svgIcon","heroicons_outline:speaker-x-mark")}function ti(t,a){t&1&&(m(0,"mat-icon",12),p(1," Unmute notifications ")),t&2&&s("svgIcon","heroicons_outline:speaker-wave")}function ii(t,a){if(t&1&&(c(0,"div",31),m(1,"div",36),c(2,"div",37),p(3),Y(4,"date"),l(),m(5,"div",36),l()),t&2){let n=u().$implicit;o(3),_(" ",ee(4,1,n.createdAt,"longDate")," ")}}function ni(t,a){t&1&&Ae(0)}function ai(t,a){if(t&1&&(c(0,"div",33),v(1,ni,1,0,"ng-container",38),l()),t&2){let n=u().$implicit;u(2);let e=R(4);s("ngClass",j(2,Jt,n.isMine,!n.isMine)),o(),s("ngTemplateOutlet",e)}}function oi(t,a){if(t&1&&(c(0,"div",35),p(1),Y(2,"date"),l()),t&2){let n=u().$implicit;s("ngClass",j(5,qt,n.isMine,!n.isMine)),o(),_(" ",ee(2,2,n.createdAt,"HH:mm")," ")}}function ri(t,a){if(t&1&&(v(0,ii,6,4,"div",31),Y(1,"date"),Y(2,"date"),c(3,"div",23)(4,"div",32),v(5,ai,2,5,"div",33),m(6,"div",34),l(),v(7,oi,3,8,"div",35),l()),t&2){let n=a.$implicit,e=a.$index,i=a.$count,r=u(2);h(e===0||ee(1,6,r.chat.messages[e-1].createdAt,"d")!==ee(2,9,n.createdAt,"d")?0:-1),o(3),s("ngClass",Ne(12,Zt,n.isMine,!n.isMine,e>0&&r.chat.messages[e-1].isMine===n.isMine,e>0&&r.chat.messages[e-1].isMine!==n.isMine)),o(),s("ngClass",j(17,Gt,n.isMine,!n.isMine)),o(),h(e===i-1||r.chat.messages[e+1].isMine!==n.isMine?5:-1),o(),s("innerHTML",n.value,Fe),o(),h(e===0||e===i-1||r.chat.messages[e+1].isMine!==n.isMine||r.chat.messages[e+1].createdAt!==n.createdAt?7:-1)}}function ci(t,a){if(t&1){let n=X();c(0,"mat-drawer-container",5)(1,"mat-drawer",7,1),ae("openedChange",function(i){M(n);let r=u();return ne(r.drawerOpened,i)||(r.drawerOpened=i),I(i)}),m(3,"chat-contact-info",8),l(),c(4,"mat-drawer-content",9)(5,"div",10)(6,"a",11),x("click",function(){M(n);let i=u();return I(i.resetChat())}),m(7,"mat-icon",12),l(),c(8,"div",13),x("click",function(){M(n);let i=u();return I(i.openContactInfo())}),c(9,"div",14),v(10,Xt,1,1,"img",15)(11,Yt,2,1,"div",16),l(),c(12,"div",17),p(13),l()(),c(14,"button",18),m(15,"mat-icon",12),c(16,"mat-menu",null,2)(18,"button",19),x("click",function(){M(n);let i=u();return I(i.openContactInfo())}),m(19,"mat-icon",12),p(20," Contact info "),l(),c(21,"button",20),m(22,"mat-icon",12),p(23," Select messages "),l(),c(24,"button",19),x("click",function(){M(n);let i=u();return I(i.toggleMuteNotifications())}),v(25,ei,2,1)(26,ti,2,1),l(),c(27,"button",20),m(28,"mat-icon",12),p(29," Clear messages "),l(),c(30,"button",20),m(31,"mat-icon",12),p(32," Delete chat "),l()()()(),c(33,"div",21)(34,"div",22),H(35,ri,8,20,"div",23,U().trackByFn,!0),l()(),c(37,"div",24)(38,"div",25)(39,"button",26),m(40,"mat-icon",12),l(),c(41,"button",27),m(42,"mat-icon",12),l()(),c(43,"mat-form-field",28),m(44,"textarea",29,3),l(),c(46,"div",30)(47,"button",26),m(48,"mat-icon",12),l()()()()()}if(t&2){let n=R(2),e=R(17),i=u();s("hasBackdrop",!1),o(),s("autoFocus",!1)("mode",i.drawerMode)("position","end"),ie("opened",i.drawerOpened),o(2),s("drawer",n)("chat",i.chat),o(3),s("routerLink",je(23,Qt)),o(),s("svgIcon","heroicons_outline:arrow-long-left"),o(3),h(i.chat.contact.picture?10:-1),o(),h(i.chat.contact.picture?-1:11),o(2),_(" ",i.chat.contact.name," "),o(),s("matMenuTriggerFor",e),o(),s("svgIcon","heroicons_outline:ellipsis-vertical"),o(4),s("svgIcon","heroicons_outline:user-circle"),o(3),s("svgIcon","heroicons_outline:check-circle"),o(3),h(i.chat.muted?-1:25),o(),h(i.chat.muted?26:-1),o(2),s("svgIcon","heroicons_outline:backspace"),o(3),s("svgIcon","heroicons_outline:trash"),o(4),K(i.chat.messages),o(5),s("svgIcon","heroicons_outline:face-smile"),o(2),s("svgIcon","heroicons_outline:paper-clip"),o(6),s("svgIcon","heroicons_outline:paper-airplane")}}function li(t,a){t&1&&(c(0,"div",6),m(1,"mat-icon",39),c(2,"div",40),p(3," Select a conversation or start a new chat "),l()()),t&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function si(t,a){t&1&&(Te(),c(0,"svg",41)(1,"g",42),m(2,"path",43),l()())}var ut=(()=>{let a=class a{constructor(e,i,r,d){this._changeDetectorRef=e,this._chatService=i,this._angorMediaWatcherService=r,this._ngZone=d,this.drawerMode="side",this.drawerOpened=!1,this._unsubscribeAll=new A}_resizeMessageInput(){this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.messageInput.nativeElement.style.height="auto",this._changeDetectorRef.detectChanges(),this.messageInput.nativeElement.style.height=`${this.messageInput.nativeElement.scrollHeight}px`,this._changeDetectorRef.detectChanges()})})}ngOnInit(){this._chatService.chat$.pipe(b(this._unsubscribeAll)).subscribe(e=>{this.chat=e,this._changeDetectorRef.markForCheck()}),this._angorMediaWatcherService.onMediaChange$.pipe(b(this._unsubscribeAll)).subscribe(({matchingAliases:e})=>{e.includes("lg")?this.drawerMode="side":this.drawerMode="over",this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openContactInfo(){this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}resetChat(){this._chatService.resetChat(),this.drawerOpened=!1,this._changeDetectorRef.markForCheck()}toggleMuteNotifications(){this.chat.muted=!this.chat.muted,this._chatService.updateChat(this.chat.id,this.chat).subscribe()}trackByFn(e,i){return i.id||e}};a.\u0275fac=function(i){return new(i||a)(k(oe),k(S),k(Ze),k(De))},a.\u0275cmp=y({type:a,selectors:[["chat-conversation"]],viewQuery:function(i,r){if(i&1&&Pe(Wt,5),i&2){let d;Be(d=Re())&&(r.messageInput=d.first)}},hostBindings:function(i,r){i&1&&x("input",function(){return r._resizeMessageInput()})("ngModelChange",function(){return r._resizeMessageInput()})},standalone:!0,features:[w],decls:5,vars:1,consts:[["speechBubbleExtension",""],["drawer",""],["conversationHeaderMenu",""],["messageInput",""],[1,"bg-card","flex","flex-auto","flex-col","overflow-y-auto","dark:bg-default","lg:overflow-hidden"],[1,"h-full","flex-auto",3,"hasBackdrop"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"w-full","dark:bg-gray-900","sm:w-100","lg:border-l","lg:shadow-none",3,"openedChange","autoFocus","mode","position","opened"],[3,"drawer","chat"],[1,"flex","flex-col","overflow-hidden"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-4","dark:bg-transparent","md:px-6"],["mat-icon-button","",1,"md:-ml-2","lg:hidden",3,"click","routerLink"],[3,"svgIcon"],[1,"ml-2","mr-2","flex","cursor-pointer","items-center","lg:ml-0",3,"click"],[1,"relative","flex","h-10","w-10","flex-0","items-center","justify-center"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","truncate","text-lg","font-medium","leading-5"],["mat-icon-button","",1,"ml-auto",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item",""],[1,"flex","flex-col-reverse","overflow-y-auto","h-full"],[1,"bg-card","flex","flex-auto","shrink","flex-col","p-6","dark:bg-transparent"],[1,"flex","flex-col",3,"ngClass"],[1,"flex","items-end","border-t","bg-gray-50","p-4","dark:bg-transparent"],[1,"my-px","flex","h-11","items-center"],["mat-icon-button",""],["mat-icon-button","",1,"ml-0.5"],["subscriptSizing","dynamic",1,"angor-mat-dense","angor-mat-rounded","angor-mat-bold","ml-4","w-full"],["matInput","","cdkTextareaAutosize",""],[1,"my-px","ml-4","flex","h-11","items-center"],[1,"-mx-6","my-3","flex","items-center","justify-center"],[1,"relative","max-w-3/4","rounded-lg","px-3","py-2",3,"ngClass"],[1,"absolute","bottom-0","w-3",3,"ngClass"],[1,"min-w-4","leading-5",3,"innerHTML"],[1,"text-secondary","my-0.5","text-sm","font-medium",3,"ngClass"],[1,"flex-auto","border-b"],[1,"text-secondary","mx-4","flex-0","text-sm","font-medium","leading-5"],[4,"ngTemplateOutlet"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"],["width","100%","height","100%","viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["d","M1.01522827,0.516204834 C-8.83532715,54.3062744 61.7609863,70.5215302 64.8009949,64.3061218 C68.8074951,54.8859711 30.1663208,52.9997559 37.5036011,0.516204834 L1.01522827,0.516204834 Z","fill","currentColor","fill-rule","nonzero"]],template:function(i,r){i&1&&(c(0,"div",4),v(1,ci,49,24,"mat-drawer-container",5)(2,li,4,1,"div",6)(3,si,3,0,"ng-template",null,0,Ve),l()),i&2&&(o(),h(r.chat?1:2))},dependencies:[ve,fe,ge,he,pt,B,Qe,P,le,T,E,ue,de,me,pe,re,ze,Q,W,G,Z,Ge,Je,$e],encapsulation:2,changeDetection:0});let t=a;return t})();var ht=(()=>{let a=class a{constructor(){}};a.\u0275fac=function(i){return new(i||a)},a.\u0275cmp=y({type:a,selectors:[["chat-empty-conversation"]],standalone:!0,features:[w],decls:5,vars:1,consts:[[1,"bg-card","flex","flex-auto","flex-col","overflow-y-auto","dark:bg-default","lg:overflow-hidden"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1),m(2,"mat-icon",2),c(3,"div",3),p(4," Select a conversation or start a new chat "),l()()()),i&2&&(o(2),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))},dependencies:[T,E],encapsulation:2,changeDetection:0});let t=a;return t})();var mi=(t,a)=>{let n=$(S),e=$(He);return n.getChatById(t.paramMap.get("id")).pipe(q(i=>{console.error(i);let r=a.url.split("/").slice(0,-1).join("/");return e.navigateByUrl(r),V(i)}))},yn=[{path:"",component:rt,resolve:{chats:()=>$(S).getChats(),contacts:()=>$(S).getContacts(),profile:()=>$(S).getProfile()},children:[{path:"",component:dt,children:[{path:"",pathMatch:"full",component:ht},{path:":id",component:ut,resolve:{conversation:mi}}]}]}];export{yn as default}; diff --git a/chunk-PWH2GQNP.js b/chunk-6S6AYVUH.js similarity index 99% rename from chunk-PWH2GQNP.js rename to chunk-6S6AYVUH.js index 51fc926..19085f8 100644 --- a/chunk-PWH2GQNP.js +++ b/chunk-6S6AYVUH.js @@ -1 +1 @@ -import{g as ci}from"./chunk-7WK6GZSZ.js";import{E as De,F as Oe,a as ce,d as ye,e as Ve,f as we,h as ze,i as pt,j as oi,m as gt,n as L,o as ai}from"./chunk-MH4Z64LL.js";import{A as Qt,B as Me,C as lt,Ca as H,Ea as Le,Fa as Fe,Ia as xe,Na as ut,Oa as ft,Q as je,R as qt,Ra as ti,Sa as ii,T as Gt,Ub as ri,W as z,X as he,Xb as fe,Y as Kt,Z as D,_ as ht,_b as ni,a as me,b as Be,bc as Z,c as Ce,ca as de,cc as si,da as ue,e as xr,g as Dr,ga as Jt,h as M,ha as dt,i as ae,j as ot,k as U,l as ie,oa as Ne,pa as re,q as at,qa as K,sa as ne,wa as ei,y as ct}from"./chunk-LP5NDBXI.js";var ui=xr((di,vt)=>{(function(u){if(typeof di=="object"&&typeof vt<"u")vt.exports=u();else if(typeof define=="function"&&define.amd)define([],u);else{var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e=this,e.localforage=u()}})(function(){var u,e,d;return function t(i,s,h){function f(E,x){if(!s[E]){if(!i[E]){var w=typeof Ce=="function"&&Ce;if(!x&&w)return w(E,!0);if(m)return m(E,!0);var R=new Error("Cannot find module '"+E+"'");throw R.code="MODULE_NOT_FOUND",R}var I=s[E]={exports:{}};i[E][0].call(I.exports,function(k){var X=i[E][1][k];return f(X||k)},I,I.exports,t,i,s,h)}return s[E].exports}for(var m=typeof Ce=="function"&&Ce,C=0;C"u"&&t(3);var w=Promise;function R(r,o){o&&r.then(function(n){o(null,n)},function(n){o(n)})}function I(r,o,n){typeof o=="function"&&r.then(o),typeof n=="function"&&r.catch(n)}function k(r){return typeof r!="string"&&(console.warn(r+" used as a key, but it is not a string."),r=String(r)),r}function X(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var V="local-forage-detect-blob-support",J=void 0,Y={},Qe=Object.prototype.toString,le="readonly",b="readwrite";function T(r){for(var o=r.length,n=new ArrayBuffer(o),c=new Uint8Array(n),l=0;l=43)}}).catch(function(){return!1})}function j(r){return typeof J=="boolean"?w.resolve(J):P(r).then(function(o){return J=o,J})}function W(r){var o=Y[r.name],n={};n.promise=new w(function(c,l){n.resolve=c,n.reject=l}),o.deferredOperations.push(n),o.dbReady?o.dbReady=o.dbReady.then(function(){return n.promise}):o.dbReady=n.promise}function $(r){var o=Y[r.name],n=o.deferredOperations.pop();if(n)return n.resolve(),n.promise}function Q(r,o){var n=Y[r.name],c=n.deferredOperations.pop();if(c)return c.reject(o),c.promise}function q(r,o){return new w(function(n,c){if(Y[r.name]=Y[r.name]||Pt(),r.db)if(o)W(r),r.db.close();else return n(r.db);var l=[r.name];o&&l.push(r.version);var a=C.open.apply(C,l);o&&(a.onupgradeneeded=function(p){var g=a.result;try{g.createObjectStore(r.storeName),p.oldVersion<=1&&g.createObjectStore(V)}catch(_){if(_.name==="ConstraintError")console.warn('The database "'+r.name+'" has been upgraded from version '+p.oldVersion+" to version "+p.newVersion+', but the storage "'+r.storeName+'" already exists.');else throw _}}),a.onerror=function(p){p.preventDefault(),c(a.error)},a.onsuccess=function(){var p=a.result;p.onversionchange=function(g){g.target.close()},n(p),$(r)}})}function ee(r){return q(r,!1)}function Se(r){return q(r,!0)}function ke(r,o){if(!r.db)return!0;var n=!r.db.objectStoreNames.contains(r.storeName),c=r.versionr.db.version;if(c&&(r.version!==o&&console.warn('The database "'+r.name+`" can't be downgraded from version `+r.db.version+" to version "+r.version+"."),r.version=r.db.version),l||n){if(n){var a=r.db.version+1;a>r.version&&(r.version=a)}return!0}return!1}function qe(r){return new w(function(o,n){var c=new FileReader;c.onerror=n,c.onloadend=function(l){var a=btoa(l.target.result||"");o({__local_forage_encoded_blob:!0,data:a,type:r.type})},c.readAsBinaryString(r)})}function _e(r){var o=T(atob(r.data));return x([o],{type:r.type})}function Ot(r){return r&&r.__local_forage_encoded_blob}function Di(r){var o=this,n=o._initReady().then(function(){var c=Y[o._dbInfo.name];if(c&&c.dbReady)return c.dbReady});return I(n,r,r),n}function Oi(r){W(r);for(var o=Y[r.name],n=o.forages,c=0;c0&&(!r.db||a.name==="InvalidStateError"||a.name==="NotFoundError"))return w.resolve().then(function(){if(!r.db||a.name==="NotFoundError"&&!r.db.objectStoreNames.contains(r.storeName)&&r.version<=r.db.version)return r.db&&(r.version=r.db.version+1),Se(r)}).then(function(){return Oi(r).then(function(){te(r,o,n,c-1)})}).catch(n);n(a)}}function Pt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Pi(r){var o=this,n={db:null};if(r)for(var c in r)n[c]=r[c];var l=Y[n.name];l||(l=Pt(),Y[n.name]=l),l.forages.push(o),o._initReady||(o._initReady=o.ready,o.ready=Di);var a=[];function p(){return w.resolve()}for(var g=0;g>4,y[l++]=(p&15)<<4|g>>2,y[l++]=(g&3)<<6|_&63;return v}function et(r){var o=new Uint8Array(r),n="",c;for(c=0;c>2],n+=se[(o[c]&3)<<4|o[c+1]>>4],n+=se[(o[c+1]&15)<<2|o[c+2]>>6],n+=se[o[c+2]&63];return o.length%3===2?n=n.substring(0,n.length-1)+"=":o.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function Yi(r,o){var n="";if(r&&(n=zt.call(r)),r&&(n==="[object ArrayBuffer]"||r.buffer&&zt.call(r.buffer)==="[object ArrayBuffer]")){var c,l=Te;r instanceof ArrayBuffer?(c=r,l+=Ke):(c=r.buffer,n==="[object Int8Array]"?l+=kt:n==="[object Uint8Array]"?l+=Tt:n==="[object Uint8ClampedArray]"?l+=At:n==="[object Int16Array]"?l+=Bt:n==="[object Uint16Array]"?l+=jt:n==="[object Int32Array]"?l+=Mt:n==="[object Uint32Array]"?l+=Nt:n==="[object Float32Array]"?l+=Lt:n==="[object Float64Array]"?l+=Ft:o(new Error("Failed to get type for BinaryArray"))),o(l+et(c))}else if(n==="[object Blob]"){var a=new FileReader;a.onload=function(){var p=zi+r.type+"~"+et(this.result);o(Te+Je+p)},a.readAsArrayBuffer(r)}else try{o(JSON.stringify(r))}catch(p){console.error("Couldn't convert value into a JSON string: ",r),o(null,p)}}function Wi(r){if(r.substring(0,Ge)!==Te)return JSON.parse(r);var o=r.substring(Vt),n=r.substring(Ge,Vt),c;if(n===Je&&It.test(o)){var l=o.match(It);c=l[1],o=o.substring(l[0].length)}var a=Yt(o);switch(n){case Ke:return a;case Je:return x([a],{type:c});case kt:return new Int8Array(a);case Tt:return new Uint8Array(a);case At:return new Uint8ClampedArray(a);case Bt:return new Int16Array(a);case jt:return new Uint16Array(a);case Mt:return new Int32Array(a);case Nt:return new Uint32Array(a);case Lt:return new Float32Array(a);case Ft:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}}var tt={serialize:Yi,deserialize:Wi,stringToBuffer:Yt,bufferToString:et};function Wt(r,o,n,c){r.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,c)}function Hi(r){var o=this,n={db:null};if(r)for(var c in r)n[c]=typeof r[c]!="string"?r[c].toString():r[c];var l=new w(function(a,p){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(g){return p(g)}n.db.transaction(function(g){Wt(g,n,function(){o._dbInfo=n,a()},function(_,v){p(v)})},p)});return n.serializer=tt,l}function oe(r,o,n,c,l,a){r.executeSql(n,c,l,function(p,g){g.code===g.SYNTAX_ERR?p.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[o.storeName],function(_,v){v.rows.length?a(_,g):Wt(_,o,function(){_.executeSql(n,c,l,a)},a)},a):a(p,g)},a)}function Xi(r,o){var n=this;r=k(r);var c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT * FROM "+p.storeName+" WHERE key = ? LIMIT 1",[r],function(_,v){var y=v.rows.length?v.rows.item(0).value:null;y&&(y=p.serializer.deserialize(y)),l(y)},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Ui(r,o){var n=this,c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT * FROM "+p.storeName,[],function(_,v){for(var y=v.rows,S=y.length,O=0;O0){p(Ht.apply(l,[r,_,n,c-1]));return}g(O)}})})}).catch(g)});return R(a,n),a}function $i(r,o,n){return Ht.apply(this,[r,o,n,1])}function Zi(r,o){var n=this;r=k(r);var c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"DELETE FROM "+p.storeName+" WHERE key = ?",[r],function(){l()},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Qi(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"DELETE FROM "+a.storeName,[],function(){c()},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function qi(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"SELECT COUNT(key) as c FROM "+a.storeName,[],function(g,_){var v=_.rows.item(0).c;c(v)},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function Gi(r,o){var n=this,c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT key FROM "+p.storeName+" WHERE id = ? LIMIT 1",[r+1],function(_,v){var y=v.rows.length?v.rows.item(0).key:null;l(y)},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Ki(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"SELECT key FROM "+a.storeName,[],function(g,_){for(var v=[],y=0;y<_.rows.length;y++)v.push(_.rows.item(y).key);c(v)},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function Ji(r){return new w(function(o,n){r.transaction(function(c){c.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(l,a){for(var p=[],g=0;g0}function sr(r){var o=this,n={};if(r)for(var c in r)n[c]=r[c];return n.keyPrefix=Xt(r,o._defaultConfig),nr()?(o._dbInfo=n,n.serializer=tt,w.resolve()):w.reject()}function or(r){var o=this,n=o.ready().then(function(){for(var c=o._dbInfo.keyPrefix,l=localStorage.length-1;l>=0;l--){var a=localStorage.key(l);a.indexOf(c)===0&&localStorage.removeItem(a)}});return R(n,r),n}function ar(r,o){var n=this;r=k(r);var c=n.ready().then(function(){var l=n._dbInfo,a=localStorage.getItem(l.keyPrefix+r);return a&&(a=l.serializer.deserialize(a)),a});return R(c,o),c}function cr(r,o){var n=this,c=n.ready().then(function(){for(var l=n._dbInfo,a=l.keyPrefix,p=a.length,g=localStorage.length,_=1,v=0;v=0;p--){var g=localStorage.key(p);g.indexOf(a)===0&&localStorage.removeItem(g)}}):l=w.reject("Invalid arguments"),R(l,o),l}var gr={_driver:"localStorageWrapper",_initStorage:sr,_support:ir(),iterate:cr,getItem:ar,setItem:fr,removeItem:ur,clear:or,length:dr,key:lr,keys:hr,dropInstance:pr},_r=function(o,n){return o===n||typeof o=="number"&&typeof n=="number"&&isNaN(o)&&isNaN(n)},vr=function(o,n){for(var c=o.length,l=0;l"u"?"undefined":h(n))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var c in n){if(c==="storeName"&&(n[c]=n[c].replace(/\W/g,"_")),c==="version"&&typeof n[c]!="number")return new Error("Database version must be a number.");this._config[c]=n[c]}return"driver"in n&&n.driver?this.setDriver(this._config.driver):!0}else return typeof n=="string"?this._config[n]:this._config},r.prototype.defineDriver=function(n,c,l){var a=new w(function(p,g){try{var _=n._driver,v=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!n._driver){g(v);return}for(var y=it.concat("_initStorage"),S=0,O=y.length;Sthis._markSelected(s)):this._markSelected(d[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let d=this._hasQueuedChanges();return this._emitChangeEvent(),d}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let d=this._hasQueuedChanges();return this._emitChangeEvent(),d}setSelection(...e){this._verifyValueAssignment(e);let d=this.selected,t=new Set(e);e.forEach(s=>this._markSelected(s)),d.filter(s=>!t.has(this._getConcreteValue(s,t))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let d=this._hasQueuedChanges();return e&&this._emitChangeEvent(),d}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,d){if(this.compareWith){d=d??this._selection;for(let t of d)if(this.compareWith(e,t))return t;return e}else return e}};var Kr=(()=>{let e=class e{constructor(){this._listeners=[]}notify(t,i){for(let s of this._listeners)s(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Tr=20,Ye=(()=>{let e=class e{constructor(t,i,s){this._ngZone=t,this._platform=i,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Tr){return this._platform.isBrowser?new ot(i=>{this._globalSubscription||this._addGlobalListener();let s=t>0?this._scrolled.pipe(lt(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):at()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let s=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Me(h=>!h||s.indexOf(h)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((s,h)=>{this._scrollableContainsElement(h,t)&&i.push(h)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let s=ai(i),h=t.getElementRef().nativeElement;do if(s==h)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return ct(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(D(K),D(ce),D(Z,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Ar=(()=>{let e=class e{constructor(t,i,s,h){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=s,this.dir=h,this._destroyed=new U,this._elementScrolled=new ot(f=>this.ngZone.runOutsideAngular(()=>ct(this.elementRef.nativeElement,"scroll").pipe(je(this._destroyed)).subscribe(f)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=s?t.end:t.start),t.right==null&&(t.right=s?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),s&&we()!=ye.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),we()==ye.INVERTED?t.left=t.right:we()==ye.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;Ve()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",s="right",h=this.elementRef.nativeElement;if(t=="top")return h.scrollTop;if(t=="bottom")return h.scrollHeight-h.clientHeight-h.scrollTop;let f=this.dir&&this.dir.value=="rtl";return t=="start"?t=f?s:i:t=="end"&&(t=f?i:s),f&&we()==ye.INVERTED?t==i?h.scrollWidth-h.clientWidth-h.scrollLeft:h.scrollLeft:f&&we()==ye.NEGATED?t==i?h.scrollLeft+h.scrollWidth-h.clientWidth:-h.scrollLeft:t==i?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(H(ne),H(Ye),H(K),H(De,8))},e.\u0275dir=ue({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let u=e;return u})(),Br=20,We=(()=>{let e=class e{constructor(t,i,s){this._platform=t,this._change=new U,this._changeListener=h=>{this._change.next(h)},this._document=s,i.runOutsideAngular(()=>{if(t.isBrowser){let h=this._getWindow();h.addEventListener("resize",this._changeListener),h.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+s,right:t.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),s=t.documentElement,h=s.getBoundingClientRect(),f=-h.top||t.body.scrollTop||i.scrollY||s.scrollTop||0,m=-h.left||t.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:f,left:m}}change(t=Br){return t>0?this._change.pipe(lt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(D(ce),D(K),D(Z,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var hi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({});let u=e;return u})(),_t=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({imports:[Oe,hi,Oe,hi]});let u=e;return u})();var pe=Dr(ui());var fi=(()=>{let e=class e{constructor(){this.metadataSubject=new ie(null),this.projectsSubject=new ie([]),this.projectStatsSubject=new ie({}),this.userStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"users",description:"Store for user metadata"}),this.projectsStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"projects",description:"Store for projects"}),this.projectStatsStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"projectStats",description:"Store for project statistics"}),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB()}getProjectsObservable(){return this.projectsSubject.asObservable()}saveProject(t){return M(this,null,function*(){try{yield this.projectsStore.setItem(t.projectIdentifier,t);let i=yield this.getAllProjects();this.projectsSubject.next(i)}catch(i){console.error(`Error saving project ${t.projectIdentifier} to IndexedDB:`,i)}})}getProject(t){return M(this,null,function*(){try{return(yield this.projectsStore.getItem(t))||null}catch(i){return console.error(`Error getting project ${t} from IndexedDB:`,i),null}})}getAllProjects(){return M(this,null,function*(){try{let t=[];return yield this.projectsStore.iterate(i=>{t.push(i)}),t}catch(t){return console.error("Error getting all projects from IndexedDB:",t),[]}})}getProjectStatsObservable(){return this.projectStatsSubject.asObservable()}saveProjectStats(t,i){return M(this,null,function*(){try{yield this.projectStatsStore.setItem(t,i);let s=yield this.getAllProjectStats();this.projectStatsSubject.next(s)}catch(s){console.error(`Error saving project stats for ${t} to IndexedDB:`,s)}})}getProjectStats(t){return M(this,null,function*(){try{return(yield this.projectStatsStore.getItem(t))||null}catch(i){return console.error(`Error getting project stats for ${t} from IndexedDB:`,i),null}})}getMetadataStream(){return this.metadataSubject.asObservable()}getUserMetadata(t){return M(this,null,function*(){try{return yield this.userStore.getItem(t)}catch(i){return console.error("Error getting metadata from IndexedDB:",i),null}})}saveUserMetadata(t,i){return M(this,null,function*(){try{yield this.userStore.setItem(t,i),this.metadataSubject.next({pubkey:t,metadata:i})}catch(s){console.error("Error saving metadata to IndexedDB:",s)}})}removeUserMetadata(t){return M(this,null,function*(){try{yield this.userStore.removeItem(t),this.metadataSubject.next({pubkey:t,metadata:null})}catch(i){console.error("Error removing metadata from IndexedDB:",i)}})}loadAllProjectsFromDB(){return M(this,null,function*(){try{let t=yield this.getAllProjects();this.projectsSubject.next(t)}catch(t){console.error("Error loading projects from IndexedDB:",t)}})}getAllProjectStats(){return M(this,null,function*(){try{let t={};return yield this.projectStatsStore.iterate((i,s)=>{t[s]=i}),t}catch(t){return console.error("Error getting all project stats from IndexedDB:",t),{}}})}loadAllProjectStatsFromDB(){return M(this,null,function*(){try{let t=yield this.getAllProjectStats();this.projectStatsSubject.next(t)}catch(t){console.error("Error loading project stats from IndexedDB:",t)}})}getAllUsers(){return M(this,null,function*(){try{let t=[];return yield this.userStore.iterate(i=>{t.push(i)}),t}catch(t){return console.error("Error getting all users from IndexedDB:",t),[]}})}clearAllMetadata(){return M(this,null,function*(){try{yield this.userStore.clear(),this.metadataSubject.next(null)}catch(t){console.error("Error clearing all metadata:",t)}})}searchUsersByMetadata(t){return M(this,null,function*(){try{let i=[],s=t.toLowerCase();return yield this.userStore.iterate((h,f)=>{JSON.stringify(h).toLowerCase().includes(s)&&i.push({pubkey:f,user:h})}),i}catch(i){return console.error("Error searching users by metadata from IndexedDB:",i),[]}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var pi=(()=>{let e=class e{constructor(){this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new ie(null),this.relaysSubject=new ie([]),this.pool=new ci,this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityChangeHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){let t=JSON.parse(localStorage.getItem("nostrRelays")||"[]"),i=[{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write",ws:void 0},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write",ws:void 0}];return t.length>0?t.map(s=>Be(me({},s),{connected:!1,retries:0,retryTimeout:null,ws:void 0})):i}saveRelaysToLocalStorage(){let t=this.relays.map(i=>({url:i.url,accessType:i.accessType,connected:i.connected,retries:i.retries,retryTimeout:i.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(t)),this.relaysSubject.next(this.relays)}connectToRelay(t){t.connected||(t.ws=new WebSocket(t.url),t.ws.onopen=()=>{t.connected=!0,t.retries=0,clearTimeout(t.retryTimeout),this.saveRelaysToLocalStorage(),console.log(`Connected to relay: ${t.url}`)},t.ws.onerror=()=>{this.handleRelayError(t)},t.ws.onclose=()=>{t.connected=!1,this.handleRelayError(t)},t.ws.onmessage=i=>{try{let s=typeof i.data=="string"?i.data:i.data.toString("utf-8"),h=JSON.parse(s);this.eventSubject.next(h)}catch(s){console.error("Error parsing WebSocket message:",s)}})}handleRelayError(t){if(t.retries>=this.maxRetries){console.error(`Max retries reached for relay: ${t.url}. No further attempts will be made.`);return}let i=this.retryDelay*t.retries;t.retries++,t.retryTimeout=setTimeout(()=>{this.connectToRelay(t),console.log(`Retrying connection to relay: ${t.url} (Attempt ${t.retries})`)},i)}connectToRelays(){this.relays.forEach(t=>{t.connected||this.connectToRelay(t)})}ensureConnectedRelays(){return M(this,null,function*(){return this.connectToRelays(),new Promise(t=>{let i=()=>{this.getConnectedRelays().length>0?t():setTimeout(i,1e3)};i()})})}setupVisibilityChangeHandling(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(t=>{t.ws&&t.ws.close()})})}getConnectedRelays(){return this.relays.filter(t=>t.connected).map(t=>t.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(t){this.relays.filter(s=>s.accessType==="write"||s.accessType==="read-write").forEach(s=>{s.connected&&s.ws?.readyState===WebSocket.OPEN&&(s.ws.send(JSON.stringify(t)),console.log(`Event published to ${s.url}`))})}publishEventToRelays(t){return M(this,null,function*(){let i=this.getPool(),s=this.getConnectedRelays();if(s.length===0)throw new Error("No connected relays");let h=s.map(f=>M(this,null,function*(){try{return yield i.publish([f],t),console.log(`Event published to relay: ${f}`),this.eventSubject.next(t),t}catch(m){throw console.error(`Failed to publish event to relay: ${f}`,m),m}}));try{return yield Promise.any(h),t}catch(f){throw console.error("Failed to publish event: AggregateError",f),this.handlePublishFailure(f),f}})}handlePublishFailure(t){t instanceof AggregateError?console.error("All relays failed to publish the event. Retrying..."):console.error("An unexpected error occurred:",t)}addRelay(t,i="read-write"){if(this.relays.some(s=>s.url===t))console.log(`Relay with URL ${t} already exists.`);else{let s={url:t,connected:!1,retries:0,retryTimeout:null,accessType:i,ws:void 0};this.relays.push(s),this.connectToRelay(s),this.saveRelaysToLocalStorage()}}removeRelay(t){this.relays=this.relays.filter(i=>i.url!==t),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){let t=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(i=>t.includes(i.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(t,i){let s=this.relays.find(h=>h.url===t);s&&(s.accessType=i,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Ln=(()=>{let e=class e{constructor(t,i){this.indexedDBService=t,this.relayService=i,this.metadataSubject=new ie(null),this.requestQueue=new Set,this.isProcessingQueue=!1,this.maxRequestsPerBatch=3,this.requestDelay=5e3}getMetadataStream(){return this.metadataSubject.asObservable().pipe(Gt(2e3))}enqueueRequest(t){this.requestQueue.add(t),this.processQueue()}fetchMetadataForMultipleKeys(t){return M(this,null,function*(){let i={kinds:[0],authors:t};try{yield this.relayService.ensureConnectedRelays();let s=this.relayService.getConnectedRelays();if(s.length===0)return console.error("No relays are connected."),[];let h=[],f=this.relayService.getPool().subscribeMany(s,[i],{onevent:m=>M(this,null,function*(){if(m.kind===0)try{let C=JSON.parse(m.content);yield this.indexedDBService.saveUserMetadata(m.pubkey,C),h.push({pubkey:m.pubkey,metadata:C})}catch(C){console.error("Error parsing metadata:",C)}}),oneose:()=>{console.log("Relay connection closed.")}});return setTimeout(()=>{f.close()},10*60*1e3),h}catch(s){return console.error("Failed to fetch metadata for multiple keys:",s),[]}})}processQueue(){return M(this,null,function*(){if(!(this.isProcessingQueue||this.requestQueue.size===0)){for(this.isProcessingQueue=!0;this.requestQueue.size>0;){let t=Array.from(this.requestQueue).slice(0,this.maxRequestsPerBatch);this.requestQueue=new Set(Array.from(this.requestQueue).slice(this.maxRequestsPerBatch)),yield Promise.all(t.map(i=>M(this,null,function*(){try{let s=yield this.fetchMetadataRealtime(i);s&&(yield this.indexedDBService.saveUserMetadata(i,s),this.metadataSubject.next(s))}catch(s){console.error(`Failed to update metadata for user: ${i}`,s)}}))),yield new Promise(i=>setTimeout(i,this.requestDelay))}this.isProcessingQueue=!1}})}fetchMetadataWithCache(t){return M(this,null,function*(){let i=yield this.indexedDBService.getUserMetadata(t);return i?this.metadataSubject.next(i):this.enqueueRequest(t),this.subscribeToMetadataUpdates(t),i})}subscribeToMetadataUpdates(t){this.relayService.ensureConnectedRelays().then(()=>{let i={authors:[t],kinds:[0]};this.relayService.getPool().subscribeMany(this.relayService.getConnectedRelays(),[i],{onevent:s=>M(this,null,function*(){if(s.pubkey===t&&s.kind===0)try{let h=JSON.parse(s.content);yield this.indexedDBService.saveUserMetadata(t,h),this.metadataSubject.next(h)}catch(h){console.error("Error parsing updated metadata:",h)}}),oneose(){}})})}fetchMetadataRealtime(t){return M(this,null,function*(){yield this.relayService.ensureConnectedRelays();let i=this.relayService.getConnectedRelays();if(i.length===0)throw new Error("No connected relays");return new Promise(s=>{let h=this.relayService.getPool().subscribeMany(i,[{authors:[t],kinds:[0]}],{onevent:f=>{if(f.pubkey===t&&f.kind===0)try{let m=JSON.parse(f.content);s(m)}catch(m){console.error("Error parsing event content:",m),s(null)}finally{h.close()}},oneose(){h.close(),s(null)}})})})}refreshAllStoredMetadata(){return M(this,null,function*(){let t=yield this.indexedDBService.getAllUsers();if(!t||t.length===0){console.log("No stored users found in IndexedDB");return}t.forEach(i=>this.enqueueRequest(i.pubkey))})}getUserMetadata(t){return M(this,null,function*(){try{let i=yield this.indexedDBService.getUserMetadata(t);if(i)return i;let s=yield this.fetchMetadataRealtime(t);return s?(yield this.indexedDBService.saveUserMetadata(t,s),s):null}catch(i){return console.error(`Error fetching metadata for user ${t}:`,i),null}})}};e.\u0275fac=function(i){return new(i||e)(D(fi),D(pi))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Pe=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},mt=class extends Pe{constructor(e,d,t,i,s){super(),this.component=e,this.viewContainerRef=d,this.injector=t,this.componentFactoryResolver=i,this.projectableNodes=s}},Ie=class extends Pe{constructor(e,d,t,i){super(),this.templateRef=e,this.viewContainerRef=d,this.context=t,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,d=this.context){return this.context=d,super.attach(e)}detach(){return this.context=void 0,super.detach()}},yt=class extends Pe{constructor(e){super(),this.element=e instanceof ne?e.nativeElement:e}},He=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof mt)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ie)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof yt)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Xe=class extends He{constructor(e,d,t,i,s){super(),this.outletElement=e,this._componentFactoryResolver=d,this._appRef=t,this._defaultInjector=i,this.attachDomPortal=h=>{this._document;let f=h.element;f.parentNode;let m=this._document.createComment("dom-portal");f.parentNode.insertBefore(m,f),this.outletElement.appendChild(f),this._attachedPortal=h,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(f,m)})},this._document=s}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=t.create(e.injector||this._defaultInjector||Ne.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let d=e.viewContainerRef,t=d.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(i=>this.outletElement.appendChild(i)),t.detectChanges(),this.setDisposeFn(()=>{let i=d.indexOf(t);i!==-1&&d.remove(i)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Qn=(()=>{let e=class e extends He{constructor(t,i,s){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new re,this.attachDomPortal=h=>{this._document;let f=h.element;f.parentNode;let m=this._document.createComment("dom-portal");h.setAttachedHost(this),f.parentNode.insertBefore(m,f),this._getRootNode().appendChild(f),this._attachedPortal=h,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(f,m)})},this._document=s}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,h=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),f=i.createComponent(h,i.length,t.injector||i.injector,t.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(f.hostView.rootNodes[0]),super.setDisposeFn(()=>f.destroy()),this._attachedPortal=t,this._attachedRef=f,this.attached.emit(f),f}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(i){return new(i||e)(H(Fe),H(xe),H(Z))},e.\u0275dir=ue({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ut]});let u=e;return u})();var gi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({});let u=e;return u})();var _i=Ve(),wt=class{constructor(e,d){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=L(-this._previousScrollPosition.left),e.style.top=L(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,d=this._document.body,t=e.style,i=d.style,s=t.scrollBehavior||"",h=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),_i&&(t.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_i&&(t.scrollBehavior=s,i.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let d=this._document.body,t=this._viewportRuler.getViewportSize();return d.scrollHeight>t.height||d.scrollWidth>t.width}};var bt=class{constructor(e,d,t,i){this._scrollDispatcher=e,this._ngZone=d,this._viewportRuler=t,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Me(d=>!d||!this._overlayRef.overlayElement.contains(d.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ue=class{enable(){}disable(){}attach(){}};function St(u,e){return e.some(d=>{let t=u.bottomd.bottom,s=u.rightd.right;return t||i||s||h})}function vi(u,e){return e.some(d=>{let t=u.topd.bottom,s=u.leftd.right;return t||i||s||h})}var Et=class{constructor(e,d,t,i){this._scrollDispatcher=e,this._viewportRuler=d,this._ngZone=t,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:i}=this._viewportRuler.getViewportSize();St(d,[{width:t,height:i,bottom:i,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Fr=(()=>{let e=class e{constructor(t,i,s,h){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new Ue,this.close=f=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,f),this.block=()=>new wt(this._viewportRuler,this._document),this.reposition=f=>new Et(this._scrollDispatcher,this._viewportRuler,this._ngZone,f),this._document=h}};e.\u0275fac=function(i){return new(i||e)(D(Ye),D(We),D(K),D(Z))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),$e=class{constructor(e){if(this.scrollStrategy=new Ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let d=Object.keys(e);for(let t of d)e[t]!==void 0&&(this[t]=e[t])}}};var Rt=class{constructor(e,d){this.connectionPair=e,this.scrollableViewProperties=d}};var Ri=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(i){return new(i||e)(D(Z))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Vr=(()=>{let e=class e extends Ri{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=s=>{let h=this._attachedOverlays;for(let f=h.length-1;f>-1;f--)if(h[f]._keydownEvents.observers.length>0){let m=h[f]._keydownEvents;this._ngZone?this._ngZone.run(()=>m.next(s)):m.next(s);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(i){return new(i||e)(D(Z),D(K,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),zr=(()=>{let e=class e extends Ri{constructor(t,i,s){super(t),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=h=>{this._pointerDownEventTarget=ze(h)},this._clickListener=h=>{let f=ze(h),m=h.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:f;this._pointerDownEventTarget=null;let C=this._attachedOverlays.slice();for(let E=C.length-1;E>-1;E--){let x=C[E];if(x._outsidePointerEvents.observers.length<1||!x.hasAttached())continue;if(mi(x.overlayElement,f)||mi(x.overlayElement,m))break;let w=x._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>w.next(h)):w.next(h)}}}add(t){if(super.add(t),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(i){return new(i||e)(D(Z),D(ce),D(K,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();function mi(u,e){let d=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===u)return!0;t=d&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Ci=(()=>{let e=class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pt()){let s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let h=0;hthis._backdropClick.next(w),this._backdropTransitionendHandler=w=>{this._disposeBackdrop(w.target)},this._keydownEvents=new U,this._outsidePointerEvents=new U,this._renders=new U,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=ni(()=>ti(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let d=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ii(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof d?.onDestroy=="function"&&d.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=me(me({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Be(me({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=L(this._config.width),e.height=L(this._config.height),e.minWidth=L(this._config.minWidth),e.minHeight=L(this._config.minHeight),e.maxWidth=L(this._config.maxWidth),e.maxHeight=L(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,d,t){let i=gt(d||[]).filter(s=>!!s);i.length&&(t?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(je(Qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},yi="cdk-overlay-connected-position-bounding-box",Yr=/([A-Za-z%]+)$/,xt=class{get positions(){return this._preferredPositions}constructor(e,d,t,i,s){this._viewportRuler=d,this._document=t,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new U,this._resizeSubscription=ae.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(yi),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,d=this._overlayRect,t=this._viewportRect,i=this._containerRect,s=[],h;for(let f of this._preferredPositions){let m=this._getOriginPoint(e,i,f),C=this._getOverlayPoint(m,d,f),E=this._getOverlayFit(C,d,t,f);if(E.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(f,m);return}if(this._canFitWithFlexibleDimensions(E,C,t)){s.push({position:f,origin:m,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(m,f)});continue}(!h||h.overlayFit.visibleAream&&(m=E,f=C)}this._isPushed=!1,this._applyPosition(f.position,f.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(h.position,h.originPoint);return}this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ge(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let d=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,d)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,d,t){let i;if(t.originX=="center")i=e.left+e.width/2;else{let h=this._isRtl()?e.right:e.left,f=this._isRtl()?e.left:e.right;i=t.originX=="start"?h:f}d.left<0&&(i-=d.left);let s;return t.originY=="center"?s=e.top+e.height/2:s=t.originY=="top"?e.top:e.bottom,d.top<0&&(s-=d.top),{x:i,y:s}}_getOverlayPoint(e,d,t){let i;t.overlayX=="center"?i=-d.width/2:t.overlayX==="start"?i=this._isRtl()?-d.width:0:i=this._isRtl()?0:-d.width;let s;return t.overlayY=="center"?s=-d.height/2:s=t.overlayY=="top"?0:-d.height,{x:e.x+i,y:e.y+s}}_getOverlayFit(e,d,t,i){let s=bi(d),{x:h,y:f}=e,m=this._getOffset(i,"x"),C=this._getOffset(i,"y");m&&(h+=m),C&&(f+=C);let E=0-h,x=h+s.width-t.width,w=0-f,R=f+s.height-t.height,I=this._subtractOverflows(s.width,E,x),k=this._subtractOverflows(s.height,w,R),X=I*k;return{visibleArea:X,isCompletelyWithinViewport:s.width*s.height===X,fitsInViewportVertically:k===s.height,fitsInViewportHorizontally:I==s.width}}_canFitWithFlexibleDimensions(e,d,t){if(this._hasFlexibleDimensions){let i=t.bottom-d.y,s=t.right-d.x,h=wi(this._overlayRef.getConfig().minHeight),f=wi(this._overlayRef.getConfig().minWidth),m=e.fitsInViewportVertically||h!=null&&h<=i,C=e.fitsInViewportHorizontally||f!=null&&f<=s;return m&&C}return!1}_pushOverlayOnScreen(e,d,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=bi(d),s=this._viewportRect,h=Math.max(e.x+i.width-s.width,0),f=Math.max(e.y+i.height-s.height,0),m=Math.max(s.top-t.top-e.y,0),C=Math.max(s.left-t.left-e.x,0),E=0,x=0;return i.width<=s.width?E=C||-h:E=e.xI&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.y-I/2)}let m=d.overlayX==="start"&&!i||d.overlayX==="end"&&i,C=d.overlayX==="end"&&!i||d.overlayX==="start"&&i,E,x,w;if(C)w=t.width-e.x+this._viewportMargin*2,E=e.x-this._viewportMargin;else if(m)x=e.x,E=t.right-e.x;else{let R=Math.min(t.right-e.x+t.left,e.x),I=this._lastBoundingBoxSize.width;E=R*2,x=e.x-R,E>I&&!this._isInitialRender&&!this._growAfterOpen&&(x=e.x-I/2)}return{top:h,left:x,bottom:f,right:w,width:E,height:s}}_setBoundingBoxStyles(e,d){let t=this._calculateBoundingBoxRect(e,d);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;i.height=L(t.height),i.top=L(t.top),i.bottom=L(t.bottom),i.width=L(t.width),i.left=L(t.left),i.right=L(t.right),d.overlayX==="center"?i.alignItems="center":i.alignItems=d.overlayX==="end"?"flex-end":"flex-start",d.overlayY==="center"?i.justifyContent="center":i.justifyContent=d.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=L(s)),h&&(i.maxWidth=L(h))}this._lastBoundingBoxSize=t,ge(this._boundingBox.style,i)}_resetBoundingBoxStyles(){ge(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ge(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,d){let t={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(i){let E=this._viewportRuler.getViewportScrollPosition();ge(t,this._getExactOverlayY(d,e,E)),ge(t,this._getExactOverlayX(d,e,E))}else t.position="static";let f="",m=this._getOffset(d,"x"),C=this._getOffset(d,"y");m&&(f+=`translateX(${m}px) `),C&&(f+=`translateY(${C}px)`),t.transform=f.trim(),h.maxHeight&&(i?t.maxHeight=L(h.maxHeight):s&&(t.maxHeight="")),h.maxWidth&&(i?t.maxWidth=L(h.maxWidth):s&&(t.maxWidth="")),ge(this._pane.style,t)}_getExactOverlayY(e,d,t){let i={top:"",bottom:""},s=this._getOverlayPoint(d,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),e.overlayY==="bottom"){let h=this._document.documentElement.clientHeight;i.bottom=`${h-(s.y+this._overlayRect.height)}px`}else i.top=L(s.y);return i}_getExactOverlayX(e,d,t){let i={left:"",right:""},s=this._getOverlayPoint(d,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t));let h;if(this._isRtl()?h=e.overlayX==="end"?"left":"right":h=e.overlayX==="end"?"right":"left",h==="right"){let f=this._document.documentElement.clientWidth;i.right=`${f-(s.x+this._overlayRect.width)}px`}else i.left=L(s.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),d=this._pane.getBoundingClientRect(),t=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vi(e,t),isOriginOutsideView:St(e,t),isOverlayClipped:vi(d,t),isOverlayOutsideView:St(d,t)}}_subtractOverflows(e,...d){return d.reduce((t,i)=>t-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+d-this._viewportMargin,width:e-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,d){return d==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&>(e).forEach(d=>{d!==""&&this._appliedPanelClasses.indexOf(d)===-1&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ne)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let d=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+d,height:t,width:d}}};function ge(u,e){for(let d in e)e.hasOwnProperty(d)&&(u[d]=e[d]);return u}function wi(u){if(typeof u!="number"&&u!=null){let[e,d]=u.split(Yr);return!d||d==="px"?parseFloat(e):null}return u||null}function bi(u){return{top:Math.floor(u.top),right:Math.floor(u.right),bottom:Math.floor(u.bottom),left:Math.floor(u.left),width:Math.floor(u.width),height:Math.floor(u.height)}}function Wr(u,e){return u===e?!0:u.isOriginClipped===e.isOriginClipped&&u.isOriginOutsideView===e.isOriginOutsideView&&u.isOverlayClipped===e.isOverlayClipped&&u.isOverlayOutsideView===e.isOverlayOutsideView}var Si="cdk-global-overlay-wrapper",Dt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let d=e.getConfig();this._overlayRef=e,this._width&&!d.width&&e.updateSize({width:this._width}),this._height&&!d.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Si),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:h,maxHeight:f}=t,m=(i==="100%"||i==="100vw")&&(!h||h==="100%"||h==="100vw"),C=(s==="100%"||s==="100vh")&&(!f||f==="100%"||f==="100vh"),E=this._xPosition,x=this._xOffset,w=this._overlayRef.getConfig().direction==="rtl",R="",I="",k="";m?k="flex-start":E==="center"?(k="center",w?I=x:R=x):w?E==="left"||E==="end"?(k="flex-end",R=x):(E==="right"||E==="start")&&(k="flex-start",I=x):E==="left"||E==="start"?(k="flex-start",R=x):(E==="right"||E==="end")&&(k="flex-end",I=x),e.position=this._cssPosition,e.marginLeft=m?"0":R,e.marginTop=C?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=m?"0":I,d.justifyContent=k,d.alignItems=C?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,t=d.style;d.classList.remove(Si),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Hr=(()=>{let e=class e{constructor(t,i,s,h){this._viewportRuler=t,this._document=i,this._platform=s,this._overlayContainer=h}global(){return new Dt}flexibleConnectedTo(t){return new xt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(i){return new(i||e)(D(We),D(Z),D(ce),D(Ci))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Xr=0,Ze=(()=>{let e=class e{constructor(t,i,s,h,f,m,C,E,x,w,R,I){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=h,this._keyboardDispatcher=f,this._injector=m,this._ngZone=C,this._document=E,this._directionality=x,this._location=w,this._outsideClickDispatcher=R,this._animationsModuleType=I}create(t){let i=this._createHostElement(),s=this._createPaneElement(i),h=this._createPortalOutlet(s),f=new $e(t);return f.direction=f.direction||this._directionality.value,new Ct(h,i,s,f,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Jt))}position(){return this._positionBuilder}_createPaneElement(t){let i=this._document.createElement("div");return i.id=`cdk-overlay-${Xr++}`,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ri)),new Xe(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(i){return new(i||e)(D(Fr),D(Ci),D(Fe),D(Hr),D(Vr),D(Ne),D(K),D(Z),D(De),D(si),D(zr),D(ei,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Ur=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xi=new Kt("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let u=ht(Ze);return()=>u.scrollStrategies.reposition()}}),Ei=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(i){return new(i||e)(H(ne))},e.\u0275dir=ue({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let u=e;return u})(),gs=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,i,s,h,f){this._overlay=t,this._dir=f,this._backdropSubscription=ae.EMPTY,this._attachSubscription=ae.EMPTY,this._detachSubscription=ae.EMPTY,this._positionSubscription=ae.EMPTY,this._disposeOnNavigation=!1,this._ngZone=ht(K),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new re,this.positionChange=new re,this.attach=new re,this.detach=new re,this.overlayKeydown=new re,this.overlayOutsideClick=new re,this._templatePortal=new Ie(i,s),this._scrollStrategyFactory=h,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ur);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!oi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),h=ze(i);(!s||s!==h&&!s.contains(h))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new $e({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Ei?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ei?this.origin.elementRef.nativeElement:this.origin instanceof ne?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(qt(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(H(Ze),H(Le),H(xe),H(xi),H(De,8))},e.\u0275dir=ue({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",fe],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",fe],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",fe],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",fe],push:[2,"cdkConnectedOverlayPush","push",fe],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",fe]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ft,dt]});let u=e;return u})();function $r(u){return()=>u.scrollStrategies.reposition()}var Zr={provide:xi,deps:[Ze],useFactory:$r},_s=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({providers:[Ze,Zr],imports:[Oe,gi,_t,_t]});let u=e;return u})();export{li as a,Kr as b,Ye as c,Ar as d,We as e,hi as f,mt as g,Ie as h,He as i,Qn as j,gi as k,Fr as l,$e as m,Ci as n,Ct as o,Ze as p,Ei as q,gs as r,_s as s,fi as t,pi as u,Ln as v}; +import{h as ci}from"./chunk-BLRJMPLX.js";import{E as De,F as Oe,a as ce,d as ye,e as Ve,f as we,h as ze,i as pt,j as oi,m as gt,n as L,o as ai}from"./chunk-MH4Z64LL.js";import{A as Qt,B as Me,C as lt,Ca as H,Ea as Le,Fa as Fe,Ia as xe,Na as ut,Oa as ft,Q as je,R as qt,Ra as ti,Sa as ii,T as Gt,Ub as ri,W as z,X as he,Xb as fe,Y as Kt,Z as D,_ as ht,_b as ni,a as me,b as Be,bc as Z,c as Ce,ca as de,cc as si,da as ue,e as xr,g as Dr,ga as Jt,h as M,ha as dt,i as ae,j as ot,k as U,l as ie,oa as Ne,pa as re,q as at,qa as K,sa as ne,wa as ei,y as ct}from"./chunk-LP5NDBXI.js";var ui=xr((di,vt)=>{(function(u){if(typeof di=="object"&&typeof vt<"u")vt.exports=u();else if(typeof define=="function"&&define.amd)define([],u);else{var e;typeof window<"u"?e=window:typeof global<"u"?e=global:typeof self<"u"?e=self:e=this,e.localforage=u()}})(function(){var u,e,d;return function t(i,s,h){function f(E,x){if(!s[E]){if(!i[E]){var w=typeof Ce=="function"&&Ce;if(!x&&w)return w(E,!0);if(m)return m(E,!0);var R=new Error("Cannot find module '"+E+"'");throw R.code="MODULE_NOT_FOUND",R}var I=s[E]={exports:{}};i[E][0].call(I.exports,function(k){var X=i[E][1][k];return f(X||k)},I,I.exports,t,i,s,h)}return s[E].exports}for(var m=typeof Ce=="function"&&Ce,C=0;C"u"&&t(3);var w=Promise;function R(r,o){o&&r.then(function(n){o(null,n)},function(n){o(n)})}function I(r,o,n){typeof o=="function"&&r.then(o),typeof n=="function"&&r.catch(n)}function k(r){return typeof r!="string"&&(console.warn(r+" used as a key, but it is not a string."),r=String(r)),r}function X(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var V="local-forage-detect-blob-support",J=void 0,Y={},Qe=Object.prototype.toString,le="readonly",b="readwrite";function T(r){for(var o=r.length,n=new ArrayBuffer(o),c=new Uint8Array(n),l=0;l=43)}}).catch(function(){return!1})}function j(r){return typeof J=="boolean"?w.resolve(J):P(r).then(function(o){return J=o,J})}function W(r){var o=Y[r.name],n={};n.promise=new w(function(c,l){n.resolve=c,n.reject=l}),o.deferredOperations.push(n),o.dbReady?o.dbReady=o.dbReady.then(function(){return n.promise}):o.dbReady=n.promise}function $(r){var o=Y[r.name],n=o.deferredOperations.pop();if(n)return n.resolve(),n.promise}function Q(r,o){var n=Y[r.name],c=n.deferredOperations.pop();if(c)return c.reject(o),c.promise}function q(r,o){return new w(function(n,c){if(Y[r.name]=Y[r.name]||Pt(),r.db)if(o)W(r),r.db.close();else return n(r.db);var l=[r.name];o&&l.push(r.version);var a=C.open.apply(C,l);o&&(a.onupgradeneeded=function(p){var g=a.result;try{g.createObjectStore(r.storeName),p.oldVersion<=1&&g.createObjectStore(V)}catch(_){if(_.name==="ConstraintError")console.warn('The database "'+r.name+'" has been upgraded from version '+p.oldVersion+" to version "+p.newVersion+', but the storage "'+r.storeName+'" already exists.');else throw _}}),a.onerror=function(p){p.preventDefault(),c(a.error)},a.onsuccess=function(){var p=a.result;p.onversionchange=function(g){g.target.close()},n(p),$(r)}})}function ee(r){return q(r,!1)}function Se(r){return q(r,!0)}function ke(r,o){if(!r.db)return!0;var n=!r.db.objectStoreNames.contains(r.storeName),c=r.versionr.db.version;if(c&&(r.version!==o&&console.warn('The database "'+r.name+`" can't be downgraded from version `+r.db.version+" to version "+r.version+"."),r.version=r.db.version),l||n){if(n){var a=r.db.version+1;a>r.version&&(r.version=a)}return!0}return!1}function qe(r){return new w(function(o,n){var c=new FileReader;c.onerror=n,c.onloadend=function(l){var a=btoa(l.target.result||"");o({__local_forage_encoded_blob:!0,data:a,type:r.type})},c.readAsBinaryString(r)})}function _e(r){var o=T(atob(r.data));return x([o],{type:r.type})}function Ot(r){return r&&r.__local_forage_encoded_blob}function Di(r){var o=this,n=o._initReady().then(function(){var c=Y[o._dbInfo.name];if(c&&c.dbReady)return c.dbReady});return I(n,r,r),n}function Oi(r){W(r);for(var o=Y[r.name],n=o.forages,c=0;c0&&(!r.db||a.name==="InvalidStateError"||a.name==="NotFoundError"))return w.resolve().then(function(){if(!r.db||a.name==="NotFoundError"&&!r.db.objectStoreNames.contains(r.storeName)&&r.version<=r.db.version)return r.db&&(r.version=r.db.version+1),Se(r)}).then(function(){return Oi(r).then(function(){te(r,o,n,c-1)})}).catch(n);n(a)}}function Pt(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function Pi(r){var o=this,n={db:null};if(r)for(var c in r)n[c]=r[c];var l=Y[n.name];l||(l=Pt(),Y[n.name]=l),l.forages.push(o),o._initReady||(o._initReady=o.ready,o.ready=Di);var a=[];function p(){return w.resolve()}for(var g=0;g>4,y[l++]=(p&15)<<4|g>>2,y[l++]=(g&3)<<6|_&63;return v}function et(r){var o=new Uint8Array(r),n="",c;for(c=0;c>2],n+=se[(o[c]&3)<<4|o[c+1]>>4],n+=se[(o[c+1]&15)<<2|o[c+2]>>6],n+=se[o[c+2]&63];return o.length%3===2?n=n.substring(0,n.length-1)+"=":o.length%3===1&&(n=n.substring(0,n.length-2)+"=="),n}function Yi(r,o){var n="";if(r&&(n=zt.call(r)),r&&(n==="[object ArrayBuffer]"||r.buffer&&zt.call(r.buffer)==="[object ArrayBuffer]")){var c,l=Te;r instanceof ArrayBuffer?(c=r,l+=Ke):(c=r.buffer,n==="[object Int8Array]"?l+=kt:n==="[object Uint8Array]"?l+=Tt:n==="[object Uint8ClampedArray]"?l+=At:n==="[object Int16Array]"?l+=Bt:n==="[object Uint16Array]"?l+=jt:n==="[object Int32Array]"?l+=Mt:n==="[object Uint32Array]"?l+=Nt:n==="[object Float32Array]"?l+=Lt:n==="[object Float64Array]"?l+=Ft:o(new Error("Failed to get type for BinaryArray"))),o(l+et(c))}else if(n==="[object Blob]"){var a=new FileReader;a.onload=function(){var p=zi+r.type+"~"+et(this.result);o(Te+Je+p)},a.readAsArrayBuffer(r)}else try{o(JSON.stringify(r))}catch(p){console.error("Couldn't convert value into a JSON string: ",r),o(null,p)}}function Wi(r){if(r.substring(0,Ge)!==Te)return JSON.parse(r);var o=r.substring(Vt),n=r.substring(Ge,Vt),c;if(n===Je&&It.test(o)){var l=o.match(It);c=l[1],o=o.substring(l[0].length)}var a=Yt(o);switch(n){case Ke:return a;case Je:return x([a],{type:c});case kt:return new Int8Array(a);case Tt:return new Uint8Array(a);case At:return new Uint8ClampedArray(a);case Bt:return new Int16Array(a);case jt:return new Uint16Array(a);case Mt:return new Int32Array(a);case Nt:return new Uint32Array(a);case Lt:return new Float32Array(a);case Ft:return new Float64Array(a);default:throw new Error("Unkown type: "+n)}}var tt={serialize:Yi,deserialize:Wi,stringToBuffer:Yt,bufferToString:et};function Wt(r,o,n,c){r.executeSql("CREATE TABLE IF NOT EXISTS "+o.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,c)}function Hi(r){var o=this,n={db:null};if(r)for(var c in r)n[c]=typeof r[c]!="string"?r[c].toString():r[c];var l=new w(function(a,p){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(g){return p(g)}n.db.transaction(function(g){Wt(g,n,function(){o._dbInfo=n,a()},function(_,v){p(v)})},p)});return n.serializer=tt,l}function oe(r,o,n,c,l,a){r.executeSql(n,c,l,function(p,g){g.code===g.SYNTAX_ERR?p.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[o.storeName],function(_,v){v.rows.length?a(_,g):Wt(_,o,function(){_.executeSql(n,c,l,a)},a)},a):a(p,g)},a)}function Xi(r,o){var n=this;r=k(r);var c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT * FROM "+p.storeName+" WHERE key = ? LIMIT 1",[r],function(_,v){var y=v.rows.length?v.rows.item(0).value:null;y&&(y=p.serializer.deserialize(y)),l(y)},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Ui(r,o){var n=this,c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT * FROM "+p.storeName,[],function(_,v){for(var y=v.rows,S=y.length,O=0;O0){p(Ht.apply(l,[r,_,n,c-1]));return}g(O)}})})}).catch(g)});return R(a,n),a}function $i(r,o,n){return Ht.apply(this,[r,o,n,1])}function Zi(r,o){var n=this;r=k(r);var c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"DELETE FROM "+p.storeName+" WHERE key = ?",[r],function(){l()},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Qi(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"DELETE FROM "+a.storeName,[],function(){c()},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function qi(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"SELECT COUNT(key) as c FROM "+a.storeName,[],function(g,_){var v=_.rows.item(0).c;c(v)},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function Gi(r,o){var n=this,c=new w(function(l,a){n.ready().then(function(){var p=n._dbInfo;p.db.transaction(function(g){oe(g,p,"SELECT key FROM "+p.storeName+" WHERE id = ? LIMIT 1",[r+1],function(_,v){var y=v.rows.length?v.rows.item(0).key:null;l(y)},function(_,v){a(v)})})}).catch(a)});return R(c,o),c}function Ki(r){var o=this,n=new w(function(c,l){o.ready().then(function(){var a=o._dbInfo;a.db.transaction(function(p){oe(p,a,"SELECT key FROM "+a.storeName,[],function(g,_){for(var v=[],y=0;y<_.rows.length;y++)v.push(_.rows.item(y).key);c(v)},function(g,_){l(_)})})}).catch(l)});return R(n,r),n}function Ji(r){return new w(function(o,n){r.transaction(function(c){c.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(l,a){for(var p=[],g=0;g0}function sr(r){var o=this,n={};if(r)for(var c in r)n[c]=r[c];return n.keyPrefix=Xt(r,o._defaultConfig),nr()?(o._dbInfo=n,n.serializer=tt,w.resolve()):w.reject()}function or(r){var o=this,n=o.ready().then(function(){for(var c=o._dbInfo.keyPrefix,l=localStorage.length-1;l>=0;l--){var a=localStorage.key(l);a.indexOf(c)===0&&localStorage.removeItem(a)}});return R(n,r),n}function ar(r,o){var n=this;r=k(r);var c=n.ready().then(function(){var l=n._dbInfo,a=localStorage.getItem(l.keyPrefix+r);return a&&(a=l.serializer.deserialize(a)),a});return R(c,o),c}function cr(r,o){var n=this,c=n.ready().then(function(){for(var l=n._dbInfo,a=l.keyPrefix,p=a.length,g=localStorage.length,_=1,v=0;v=0;p--){var g=localStorage.key(p);g.indexOf(a)===0&&localStorage.removeItem(g)}}):l=w.reject("Invalid arguments"),R(l,o),l}var gr={_driver:"localStorageWrapper",_initStorage:sr,_support:ir(),iterate:cr,getItem:ar,setItem:fr,removeItem:ur,clear:or,length:dr,key:lr,keys:hr,dropInstance:pr},_r=function(o,n){return o===n||typeof o=="number"&&typeof n=="number"&&isNaN(o)&&isNaN(n)},vr=function(o,n){for(var c=o.length,l=0;l"u"?"undefined":h(n))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var c in n){if(c==="storeName"&&(n[c]=n[c].replace(/\W/g,"_")),c==="version"&&typeof n[c]!="number")return new Error("Database version must be a number.");this._config[c]=n[c]}return"driver"in n&&n.driver?this.setDriver(this._config.driver):!0}else return typeof n=="string"?this._config[n]:this._config},r.prototype.defineDriver=function(n,c,l){var a=new w(function(p,g){try{var _=n._driver,v=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!n._driver){g(v);return}for(var y=it.concat("_initStorage"),S=0,O=y.length;Sthis._markSelected(s)):this._markSelected(d[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(t=>this._markSelected(t));let d=this._hasQueuedChanges();return this._emitChangeEvent(),d}deselect(...e){this._verifyValueAssignment(e),e.forEach(t=>this._unmarkSelected(t));let d=this._hasQueuedChanges();return this._emitChangeEvent(),d}setSelection(...e){this._verifyValueAssignment(e);let d=this.selected,t=new Set(e);e.forEach(s=>this._markSelected(s)),d.filter(s=>!t.has(this._getConcreteValue(s,t))).forEach(s=>this._unmarkSelected(s));let i=this._hasQueuedChanges();return this._emitChangeEvent(),i}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let d=this._hasQueuedChanges();return e&&this._emitChangeEvent(),d}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,d){if(this.compareWith){d=d??this._selection;for(let t of d)if(this.compareWith(e,t))return t;return e}else return e}};var Kr=(()=>{let e=class e{constructor(){this._listeners=[]}notify(t,i){for(let s of this._listeners)s(t,i)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(i=>t!==i)}}ngOnDestroy(){this._listeners=[]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Tr=20,Ye=(()=>{let e=class e{constructor(t,i,s){this._ngZone=t,this._platform=i,this._scrolled=new U,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Tr){return this._platform.isBrowser?new ot(i=>{this._globalSubscription||this._addGlobalListener();let s=t>0?this._scrolled.pipe(lt(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):at()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){let s=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Me(h=>!h||s.indexOf(h)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((s,h)=>{this._scrollableContainsElement(h,t)&&i.push(h)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let s=ai(i),h=t.getElementRef().nativeElement;do if(s==h)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let t=this._getWindow();return ct(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(i){return new(i||e)(D(K),D(ce),D(Z,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Ar=(()=>{let e=class e{constructor(t,i,s,h){this.elementRef=t,this.scrollDispatcher=i,this.ngZone=s,this.dir=h,this._destroyed=new U,this._elementScrolled=new ot(f=>this.ngZone.runOutsideAngular(()=>ct(this.elementRef.nativeElement,"scroll").pipe(je(this._destroyed)).subscribe(f)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let i=this.elementRef.nativeElement,s=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=s?t.end:t.start),t.right==null&&(t.right=s?t.start:t.end),t.bottom!=null&&(t.top=i.scrollHeight-i.clientHeight-t.bottom),s&&we()!=ye.NORMAL?(t.left!=null&&(t.right=i.scrollWidth-i.clientWidth-t.left),we()==ye.INVERTED?t.left=t.right:we()==ye.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=i.scrollWidth-i.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let i=this.elementRef.nativeElement;Ve()?i.scrollTo(t):(t.top!=null&&(i.scrollTop=t.top),t.left!=null&&(i.scrollLeft=t.left))}measureScrollOffset(t){let i="left",s="right",h=this.elementRef.nativeElement;if(t=="top")return h.scrollTop;if(t=="bottom")return h.scrollHeight-h.clientHeight-h.scrollTop;let f=this.dir&&this.dir.value=="rtl";return t=="start"?t=f?s:i:t=="end"&&(t=f?i:s),f&&we()==ye.INVERTED?t==i?h.scrollWidth-h.clientWidth-h.scrollLeft:h.scrollLeft:f&&we()==ye.NEGATED?t==i?h.scrollLeft+h.scrollWidth-h.clientWidth:-h.scrollLeft:t==i?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft}};e.\u0275fac=function(i){return new(i||e)(H(ne),H(Ye),H(K),H(De,8))},e.\u0275dir=ue({type:e,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0});let u=e;return u})(),Br=20,We=(()=>{let e=class e{constructor(t,i,s){this._platform=t,this._change=new U,this._changeListener=h=>{this._change.next(h)},this._document=s,i.runOutsideAngular(()=>{if(t.isBrowser){let h=this._getWindow();h.addEventListener("resize",this._changeListener),h.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:s}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+s,right:t.left+i,height:s,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,i=this._getWindow(),s=t.documentElement,h=s.getBoundingClientRect(),f=-h.top||t.body.scrollTop||i.scrollY||s.scrollTop||0,m=-h.left||t.body.scrollLeft||i.scrollX||s.scrollLeft||0;return{top:f,left:m}}change(t=Br){return t>0?this._change.pipe(lt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(i){return new(i||e)(D(ce),D(K),D(Z,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var hi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({});let u=e;return u})(),_t=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({imports:[Oe,hi,Oe,hi]});let u=e;return u})();var pe=Dr(ui());var fi=(()=>{let e=class e{constructor(){this.metadataSubject=new ie(null),this.projectsSubject=new ie([]),this.projectStatsSubject=new ie({}),this.userStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"users",description:"Store for user metadata"}),this.projectsStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"projects",description:"Store for projects"}),this.projectStatsStore=pe.default.createInstance({driver:pe.default.INDEXEDDB,name:"angor-hub",version:1,storeName:"projectStats",description:"Store for project statistics"}),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB()}getProjectsObservable(){return this.projectsSubject.asObservable()}saveProject(t){return M(this,null,function*(){try{yield this.projectsStore.setItem(t.projectIdentifier,t);let i=yield this.getAllProjects();this.projectsSubject.next(i)}catch(i){console.error(`Error saving project ${t.projectIdentifier} to IndexedDB:`,i)}})}getProject(t){return M(this,null,function*(){try{return(yield this.projectsStore.getItem(t))||null}catch(i){return console.error(`Error getting project ${t} from IndexedDB:`,i),null}})}getAllProjects(){return M(this,null,function*(){try{let t=[];return yield this.projectsStore.iterate(i=>{t.push(i)}),t}catch(t){return console.error("Error getting all projects from IndexedDB:",t),[]}})}getProjectStatsObservable(){return this.projectStatsSubject.asObservable()}saveProjectStats(t,i){return M(this,null,function*(){try{yield this.projectStatsStore.setItem(t,i);let s=yield this.getAllProjectStats();this.projectStatsSubject.next(s)}catch(s){console.error(`Error saving project stats for ${t} to IndexedDB:`,s)}})}getProjectStats(t){return M(this,null,function*(){try{return(yield this.projectStatsStore.getItem(t))||null}catch(i){return console.error(`Error getting project stats for ${t} from IndexedDB:`,i),null}})}getMetadataStream(){return this.metadataSubject.asObservable()}getUserMetadata(t){return M(this,null,function*(){try{return yield this.userStore.getItem(t)}catch(i){return console.error("Error getting metadata from IndexedDB:",i),null}})}saveUserMetadata(t,i){return M(this,null,function*(){try{yield this.userStore.setItem(t,i),this.metadataSubject.next({pubkey:t,metadata:i})}catch(s){console.error("Error saving metadata to IndexedDB:",s)}})}removeUserMetadata(t){return M(this,null,function*(){try{yield this.userStore.removeItem(t),this.metadataSubject.next({pubkey:t,metadata:null})}catch(i){console.error("Error removing metadata from IndexedDB:",i)}})}loadAllProjectsFromDB(){return M(this,null,function*(){try{let t=yield this.getAllProjects();this.projectsSubject.next(t)}catch(t){console.error("Error loading projects from IndexedDB:",t)}})}getAllProjectStats(){return M(this,null,function*(){try{let t={};return yield this.projectStatsStore.iterate((i,s)=>{t[s]=i}),t}catch(t){return console.error("Error getting all project stats from IndexedDB:",t),{}}})}loadAllProjectStatsFromDB(){return M(this,null,function*(){try{let t=yield this.getAllProjectStats();this.projectStatsSubject.next(t)}catch(t){console.error("Error loading project stats from IndexedDB:",t)}})}getAllUsers(){return M(this,null,function*(){try{let t=[];return yield this.userStore.iterate(i=>{t.push(i)}),t}catch(t){return console.error("Error getting all users from IndexedDB:",t),[]}})}clearAllMetadata(){return M(this,null,function*(){try{yield this.userStore.clear(),this.metadataSubject.next(null)}catch(t){console.error("Error clearing all metadata:",t)}})}searchUsersByMetadata(t){return M(this,null,function*(){try{let i=[],s=t.toLowerCase();return yield this.userStore.iterate((h,f)=>{JSON.stringify(h).toLowerCase().includes(s)&&i.push({pubkey:f,user:h})}),i}catch(i){return console.error("Error searching users by metadata from IndexedDB:",i),[]}})}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var pi=(()=>{let e=class e{constructor(){this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new ie(null),this.relaysSubject=new ie([]),this.pool=new ci,this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityChangeHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){let t=JSON.parse(localStorage.getItem("nostrRelays")||"[]"),i=[{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write",ws:void 0},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write",ws:void 0}];return t.length>0?t.map(s=>Be(me({},s),{connected:!1,retries:0,retryTimeout:null,ws:void 0})):i}saveRelaysToLocalStorage(){let t=this.relays.map(i=>({url:i.url,accessType:i.accessType,connected:i.connected,retries:i.retries,retryTimeout:i.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(t)),this.relaysSubject.next(this.relays)}connectToRelay(t){t.connected||(t.ws=new WebSocket(t.url),t.ws.onopen=()=>{t.connected=!0,t.retries=0,clearTimeout(t.retryTimeout),this.saveRelaysToLocalStorage(),console.log(`Connected to relay: ${t.url}`)},t.ws.onerror=()=>{this.handleRelayError(t)},t.ws.onclose=()=>{t.connected=!1,this.handleRelayError(t)},t.ws.onmessage=i=>{try{let s=typeof i.data=="string"?i.data:i.data.toString("utf-8"),h=JSON.parse(s);this.eventSubject.next(h)}catch(s){console.error("Error parsing WebSocket message:",s)}})}handleRelayError(t){if(t.retries>=this.maxRetries){console.error(`Max retries reached for relay: ${t.url}. No further attempts will be made.`);return}let i=this.retryDelay*t.retries;t.retries++,t.retryTimeout=setTimeout(()=>{this.connectToRelay(t),console.log(`Retrying connection to relay: ${t.url} (Attempt ${t.retries})`)},i)}connectToRelays(){this.relays.forEach(t=>{t.connected||this.connectToRelay(t)})}ensureConnectedRelays(){return M(this,null,function*(){return this.connectToRelays(),new Promise(t=>{let i=()=>{this.getConnectedRelays().length>0?t():setTimeout(i,1e3)};i()})})}setupVisibilityChangeHandling(){document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(t=>{t.ws&&t.ws.close()})})}getConnectedRelays(){return this.relays.filter(t=>t.connected).map(t=>t.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(t){this.relays.filter(s=>s.accessType==="write"||s.accessType==="read-write").forEach(s=>{s.connected&&s.ws?.readyState===WebSocket.OPEN&&(s.ws.send(JSON.stringify(t)),console.log(`Event published to ${s.url}`))})}publishEventToRelays(t){return M(this,null,function*(){let i=this.getPool(),s=this.getConnectedRelays();if(s.length===0)throw new Error("No connected relays");let h=s.map(f=>M(this,null,function*(){try{return yield i.publish([f],t),console.log(`Event published to relay: ${f}`),this.eventSubject.next(t),t}catch(m){throw console.error(`Failed to publish event to relay: ${f}`,m),m}}));try{return yield Promise.any(h),t}catch(f){throw console.error("Failed to publish event: AggregateError",f),this.handlePublishFailure(f),f}})}handlePublishFailure(t){t instanceof AggregateError?console.error("All relays failed to publish the event. Retrying..."):console.error("An unexpected error occurred:",t)}addRelay(t,i="read-write"){if(this.relays.some(s=>s.url===t))console.log(`Relay with URL ${t} already exists.`);else{let s={url:t,connected:!1,retries:0,retryTimeout:null,accessType:i,ws:void 0};this.relays.push(s),this.connectToRelay(s),this.saveRelaysToLocalStorage()}}removeRelay(t){this.relays=this.relays.filter(i=>i.url!==t),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){let t=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(i=>t.includes(i.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(t,i){let s=this.relays.find(h=>h.url===t);s&&(s.accessType=i,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Ln=(()=>{let e=class e{constructor(t,i){this.indexedDBService=t,this.relayService=i,this.metadataSubject=new ie(null),this.requestQueue=new Set,this.isProcessingQueue=!1,this.maxRequestsPerBatch=3,this.requestDelay=5e3}getMetadataStream(){return this.metadataSubject.asObservable().pipe(Gt(2e3))}enqueueRequest(t){this.requestQueue.add(t),this.processQueue()}fetchMetadataForMultipleKeys(t){return M(this,null,function*(){let i={kinds:[0],authors:t};try{yield this.relayService.ensureConnectedRelays();let s=this.relayService.getConnectedRelays();if(s.length===0)return console.error("No relays are connected."),[];let h=[],f=this.relayService.getPool().subscribeMany(s,[i],{onevent:m=>M(this,null,function*(){if(m.kind===0)try{let C=JSON.parse(m.content);yield this.indexedDBService.saveUserMetadata(m.pubkey,C),h.push({pubkey:m.pubkey,metadata:C})}catch(C){console.error("Error parsing metadata:",C)}}),oneose:()=>{console.log("Relay connection closed.")}});return setTimeout(()=>{f.close()},10*60*1e3),h}catch(s){return console.error("Failed to fetch metadata for multiple keys:",s),[]}})}processQueue(){return M(this,null,function*(){if(!(this.isProcessingQueue||this.requestQueue.size===0)){for(this.isProcessingQueue=!0;this.requestQueue.size>0;){let t=Array.from(this.requestQueue).slice(0,this.maxRequestsPerBatch);this.requestQueue=new Set(Array.from(this.requestQueue).slice(this.maxRequestsPerBatch)),yield Promise.all(t.map(i=>M(this,null,function*(){try{let s=yield this.fetchMetadataRealtime(i);s&&(yield this.indexedDBService.saveUserMetadata(i,s),this.metadataSubject.next(s))}catch(s){console.error(`Failed to update metadata for user: ${i}`,s)}}))),yield new Promise(i=>setTimeout(i,this.requestDelay))}this.isProcessingQueue=!1}})}fetchMetadataWithCache(t){return M(this,null,function*(){let i=yield this.indexedDBService.getUserMetadata(t);return i?this.metadataSubject.next(i):this.enqueueRequest(t),this.subscribeToMetadataUpdates(t),i})}subscribeToMetadataUpdates(t){this.relayService.ensureConnectedRelays().then(()=>{let i={authors:[t],kinds:[0]};this.relayService.getPool().subscribeMany(this.relayService.getConnectedRelays(),[i],{onevent:s=>M(this,null,function*(){if(s.pubkey===t&&s.kind===0)try{let h=JSON.parse(s.content);yield this.indexedDBService.saveUserMetadata(t,h),this.metadataSubject.next(h)}catch(h){console.error("Error parsing updated metadata:",h)}}),oneose(){}})})}fetchMetadataRealtime(t){return M(this,null,function*(){yield this.relayService.ensureConnectedRelays();let i=this.relayService.getConnectedRelays();if(i.length===0)throw new Error("No connected relays");return new Promise(s=>{let h=this.relayService.getPool().subscribeMany(i,[{authors:[t],kinds:[0]}],{onevent:f=>{if(f.pubkey===t&&f.kind===0)try{let m=JSON.parse(f.content);s(m)}catch(m){console.error("Error parsing event content:",m),s(null)}finally{h.close()}},oneose(){h.close(),s(null)}})})})}refreshAllStoredMetadata(){return M(this,null,function*(){let t=yield this.indexedDBService.getAllUsers();if(!t||t.length===0){console.log("No stored users found in IndexedDB");return}t.forEach(i=>this.enqueueRequest(i.pubkey))})}getUserMetadata(t){return M(this,null,function*(){try{let i=yield this.indexedDBService.getUserMetadata(t);if(i)return i;let s=yield this.fetchMetadataRealtime(t);return s?(yield this.indexedDBService.saveUserMetadata(t,s),s):null}catch(i){return console.error(`Error fetching metadata for user ${t}:`,i),null}})}};e.\u0275fac=function(i){return new(i||e)(D(fi),D(pi))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();var Pe=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},mt=class extends Pe{constructor(e,d,t,i,s){super(),this.component=e,this.viewContainerRef=d,this.injector=t,this.componentFactoryResolver=i,this.projectableNodes=s}},Ie=class extends Pe{constructor(e,d,t,i){super(),this.templateRef=e,this.viewContainerRef=d,this.context=t,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,d=this.context){return this.context=d,super.attach(e)}detach(){return this.context=void 0,super.detach()}},yt=class extends Pe{constructor(e){super(),this.element=e instanceof ne?e.nativeElement:e}},He=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof mt)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Ie)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof yt)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Xe=class extends He{constructor(e,d,t,i,s){super(),this.outletElement=e,this._componentFactoryResolver=d,this._appRef=t,this._defaultInjector=i,this.attachDomPortal=h=>{this._document;let f=h.element;f.parentNode;let m=this._document.createComment("dom-portal");f.parentNode.insertBefore(m,f),this.outletElement.appendChild(f),this._attachedPortal=h,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(f,m)})},this._document=s}attachComponentPortal(e){let t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),i;return e.viewContainerRef?(i=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>i.destroy())):(i=t.create(e.injector||this._defaultInjector||Ne.NULL),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=e,i}attachTemplatePortal(e){let d=e.viewContainerRef,t=d.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return t.rootNodes.forEach(i=>this.outletElement.appendChild(i)),t.detectChanges(),this.setDisposeFn(()=>{let i=d.indexOf(t);i!==-1&&d.remove(i)}),this._attachedPortal=e,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var Qn=(()=>{let e=class e extends He{constructor(t,i,s){super(),this._componentFactoryResolver=t,this._viewContainerRef=i,this._isInitialized=!1,this.attached=new re,this.attachDomPortal=h=>{this._document;let f=h.element;f.parentNode;let m=this._document.createComment("dom-portal");h.setAttachedHost(this),f.parentNode.insertBefore(m,f),this._getRootNode().appendChild(f),this._attachedPortal=h,super.setDisposeFn(()=>{m.parentNode&&m.parentNode.replaceChild(f,m)})},this._document=s}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let i=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,h=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),f=i.createComponent(h,i.length,t.injector||i.injector,t.projectableNodes||void 0);return i!==this._viewContainerRef&&this._getRootNode().appendChild(f.hostView.rootNodes[0]),super.setDisposeFn(()=>f.destroy()),this._attachedPortal=t,this._attachedRef=f,this.attached.emit(f),f}attachTemplatePortal(t){t.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}};e.\u0275fac=function(i){return new(i||e)(H(Fe),H(xe),H(Z))},e.\u0275dir=ue({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[ut]});let u=e;return u})();var gi=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({});let u=e;return u})();var _i=Ve(),wt=class{constructor(e,d){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=L(-this._previousScrollPosition.left),e.style.top=L(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,d=this._document.body,t=e.style,i=d.style,s=t.scrollBehavior||"",h=i.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),_i&&(t.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_i&&(t.scrollBehavior=s,i.scrollBehavior=h)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let d=this._document.body,t=this._viewportRuler.getViewportSize();return d.scrollHeight>t.height||d.scrollWidth>t.width}};var bt=class{constructor(e,d,t,i){this._scrollDispatcher=e,this._ngZone=d,this._viewportRuler=t,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Me(d=>!d||!this._overlayRef.overlayElement.contains(d.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Ue=class{enable(){}disable(){}attach(){}};function St(u,e){return e.some(d=>{let t=u.bottomd.bottom,s=u.rightd.right;return t||i||s||h})}function vi(u,e){return e.some(d=>{let t=u.topd.bottom,s=u.leftd.right;return t||i||s||h})}var Et=class{constructor(e,d,t,i){this._scrollDispatcher=e,this._viewportRuler=d,this._ngZone=t,this._config=i,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:i}=this._viewportRuler.getViewportSize();St(d,[{width:t,height:i,bottom:i,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Fr=(()=>{let e=class e{constructor(t,i,s,h){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=s,this.noop=()=>new Ue,this.close=f=>new bt(this._scrollDispatcher,this._ngZone,this._viewportRuler,f),this.block=()=>new wt(this._viewportRuler,this._document),this.reposition=f=>new Et(this._scrollDispatcher,this._viewportRuler,this._ngZone,f),this._document=h}};e.\u0275fac=function(i){return new(i||e)(D(Ye),D(We),D(K),D(Z))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),$e=class{constructor(e){if(this.scrollStrategy=new Ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let d=Object.keys(e);for(let t of d)e[t]!==void 0&&(this[t]=e[t])}}};var Rt=class{constructor(e,d){this.connectionPair=e,this.scrollableViewProperties=d}};var Ri=(()=>{let e=class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(i){return new(i||e)(D(Z))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Vr=(()=>{let e=class e extends Ri{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=s=>{let h=this._attachedOverlays;for(let f=h.length-1;f>-1;f--)if(h[f]._keydownEvents.observers.length>0){let m=h[f]._keydownEvents;this._ngZone?this._ngZone.run(()=>m.next(s)):m.next(s);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(i){return new(i||e)(D(Z),D(K,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),zr=(()=>{let e=class e extends Ri{constructor(t,i,s){super(t),this._platform=i,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=h=>{this._pointerDownEventTarget=ze(h)},this._clickListener=h=>{let f=ze(h),m=h.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:f;this._pointerDownEventTarget=null;let C=this._attachedOverlays.slice();for(let E=C.length-1;E>-1;E--){let x=C[E];if(x._outsidePointerEvents.observers.length<1||!x.hasAttached())continue;if(mi(x.overlayElement,f)||mi(x.overlayElement,m))break;let w=x._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>w.next(h)):w.next(h)}}}add(t){if(super.add(t),!this._isAttached){let i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(i){return new(i||e)(D(Z),D(ce),D(K,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})();function mi(u,e){let d=typeof ShadowRoot<"u"&&ShadowRoot,t=e;for(;t;){if(t===u)return!0;t=d&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var Ci=(()=>{let e=class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||pt()){let s=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let h=0;hthis._backdropClick.next(w),this._backdropTransitionendHandler=w=>{this._disposeBackdrop(w.target)},this._keydownEvents=new U,this._outsidePointerEvents=new U,this._renders=new U,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy,this._afterRenderRef=ni(()=>ti(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let d=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=ii(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof d?.onDestroy=="function"&&d.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=me(me({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Be(me({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=L(this._config.width),e.height=L(this._config.height),e.minWidth=L(this._config.minWidth),e.minHeight=L(this._config.minHeight),e.maxWidth=L(this._config.maxWidth),e.maxHeight=L(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,d,t){let i=gt(d||[]).filter(s=>!!s);i.length&&(t?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(je(Qt(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},yi="cdk-overlay-connected-position-bounding-box",Yr=/([A-Za-z%]+)$/,xt=class{get positions(){return this._preferredPositions}constructor(e,d,t,i,s){this._viewportRuler=d,this._document=t,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new U,this._resizeSubscription=ae.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(yi),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,d=this._overlayRect,t=this._viewportRect,i=this._containerRect,s=[],h;for(let f of this._preferredPositions){let m=this._getOriginPoint(e,i,f),C=this._getOverlayPoint(m,d,f),E=this._getOverlayFit(C,d,t,f);if(E.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(f,m);return}if(this._canFitWithFlexibleDimensions(E,C,t)){s.push({position:f,origin:m,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(m,f)});continue}(!h||h.overlayFit.visibleAream&&(m=E,f=C)}this._isPushed=!1,this._applyPosition(f.position,f.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(h.position,h.originPoint);return}this._applyPosition(h.position,h.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ge(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yi),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let d=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,d)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,d,t){let i;if(t.originX=="center")i=e.left+e.width/2;else{let h=this._isRtl()?e.right:e.left,f=this._isRtl()?e.left:e.right;i=t.originX=="start"?h:f}d.left<0&&(i-=d.left);let s;return t.originY=="center"?s=e.top+e.height/2:s=t.originY=="top"?e.top:e.bottom,d.top<0&&(s-=d.top),{x:i,y:s}}_getOverlayPoint(e,d,t){let i;t.overlayX=="center"?i=-d.width/2:t.overlayX==="start"?i=this._isRtl()?-d.width:0:i=this._isRtl()?0:-d.width;let s;return t.overlayY=="center"?s=-d.height/2:s=t.overlayY=="top"?0:-d.height,{x:e.x+i,y:e.y+s}}_getOverlayFit(e,d,t,i){let s=bi(d),{x:h,y:f}=e,m=this._getOffset(i,"x"),C=this._getOffset(i,"y");m&&(h+=m),C&&(f+=C);let E=0-h,x=h+s.width-t.width,w=0-f,R=f+s.height-t.height,I=this._subtractOverflows(s.width,E,x),k=this._subtractOverflows(s.height,w,R),X=I*k;return{visibleArea:X,isCompletelyWithinViewport:s.width*s.height===X,fitsInViewportVertically:k===s.height,fitsInViewportHorizontally:I==s.width}}_canFitWithFlexibleDimensions(e,d,t){if(this._hasFlexibleDimensions){let i=t.bottom-d.y,s=t.right-d.x,h=wi(this._overlayRef.getConfig().minHeight),f=wi(this._overlayRef.getConfig().minWidth),m=e.fitsInViewportVertically||h!=null&&h<=i,C=e.fitsInViewportHorizontally||f!=null&&f<=s;return m&&C}return!1}_pushOverlayOnScreen(e,d,t){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=bi(d),s=this._viewportRect,h=Math.max(e.x+i.width-s.width,0),f=Math.max(e.y+i.height-s.height,0),m=Math.max(s.top-t.top-e.y,0),C=Math.max(s.left-t.left-e.x,0),E=0,x=0;return i.width<=s.width?E=C||-h:E=e.xI&&!this._isInitialRender&&!this._growAfterOpen&&(h=e.y-I/2)}let m=d.overlayX==="start"&&!i||d.overlayX==="end"&&i,C=d.overlayX==="end"&&!i||d.overlayX==="start"&&i,E,x,w;if(C)w=t.width-e.x+this._viewportMargin*2,E=e.x-this._viewportMargin;else if(m)x=e.x,E=t.right-e.x;else{let R=Math.min(t.right-e.x+t.left,e.x),I=this._lastBoundingBoxSize.width;E=R*2,x=e.x-R,E>I&&!this._isInitialRender&&!this._growAfterOpen&&(x=e.x-I/2)}return{top:h,left:x,bottom:f,right:w,width:E,height:s}}_setBoundingBoxStyles(e,d){let t=this._calculateBoundingBoxRect(e,d);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,h=this._overlayRef.getConfig().maxWidth;i.height=L(t.height),i.top=L(t.top),i.bottom=L(t.bottom),i.width=L(t.width),i.left=L(t.left),i.right=L(t.right),d.overlayX==="center"?i.alignItems="center":i.alignItems=d.overlayX==="end"?"flex-end":"flex-start",d.overlayY==="center"?i.justifyContent="center":i.justifyContent=d.overlayY==="bottom"?"flex-end":"flex-start",s&&(i.maxHeight=L(s)),h&&(i.maxWidth=L(h))}this._lastBoundingBoxSize=t,ge(this._boundingBox.style,i)}_resetBoundingBoxStyles(){ge(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ge(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,d){let t={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,h=this._overlayRef.getConfig();if(i){let E=this._viewportRuler.getViewportScrollPosition();ge(t,this._getExactOverlayY(d,e,E)),ge(t,this._getExactOverlayX(d,e,E))}else t.position="static";let f="",m=this._getOffset(d,"x"),C=this._getOffset(d,"y");m&&(f+=`translateX(${m}px) `),C&&(f+=`translateY(${C}px)`),t.transform=f.trim(),h.maxHeight&&(i?t.maxHeight=L(h.maxHeight):s&&(t.maxHeight="")),h.maxWidth&&(i?t.maxWidth=L(h.maxWidth):s&&(t.maxWidth="")),ge(this._pane.style,t)}_getExactOverlayY(e,d,t){let i={top:"",bottom:""},s=this._getOverlayPoint(d,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t)),e.overlayY==="bottom"){let h=this._document.documentElement.clientHeight;i.bottom=`${h-(s.y+this._overlayRect.height)}px`}else i.top=L(s.y);return i}_getExactOverlayX(e,d,t){let i={left:"",right:""},s=this._getOverlayPoint(d,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,t));let h;if(this._isRtl()?h=e.overlayX==="end"?"left":"right":h=e.overlayX==="end"?"right":"left",h==="right"){let f=this._document.documentElement.clientWidth;i.right=`${f-(s.x+this._overlayRect.width)}px`}else i.left=L(s.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),d=this._pane.getBoundingClientRect(),t=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vi(e,t),isOriginOutsideView:St(e,t),isOverlayClipped:vi(d,t),isOverlayOutsideView:St(d,t)}}_subtractOverflows(e,...d){return d.reduce((t,i)=>t-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+e-this._viewportMargin,bottom:t.top+d-this._viewportMargin,width:e-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,d){return d==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&>(e).forEach(d=>{d!==""&&this._appliedPanelClasses.indexOf(d)===-1&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ne)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let d=e.width||0,t=e.height||0;return{top:e.y,bottom:e.y+t,left:e.x,right:e.x+d,height:t,width:d}}};function ge(u,e){for(let d in e)e.hasOwnProperty(d)&&(u[d]=e[d]);return u}function wi(u){if(typeof u!="number"&&u!=null){let[e,d]=u.split(Yr);return!d||d==="px"?parseFloat(e):null}return u||null}function bi(u){return{top:Math.floor(u.top),right:Math.floor(u.right),bottom:Math.floor(u.bottom),left:Math.floor(u.left),width:Math.floor(u.width),height:Math.floor(u.height)}}function Wr(u,e){return u===e?!0:u.isOriginClipped===e.isOriginClipped&&u.isOriginOutsideView===e.isOriginOutsideView&&u.isOverlayClipped===e.isOverlayClipped&&u.isOverlayOutsideView===e.isOverlayOutsideView}var Si="cdk-global-overlay-wrapper",Dt=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let d=e.getConfig();this._overlayRef=e,this._width&&!d.width&&e.updateSize({width:this._width}),this._height&&!d.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(Si),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:h,maxHeight:f}=t,m=(i==="100%"||i==="100vw")&&(!h||h==="100%"||h==="100vw"),C=(s==="100%"||s==="100vh")&&(!f||f==="100%"||f==="100vh"),E=this._xPosition,x=this._xOffset,w=this._overlayRef.getConfig().direction==="rtl",R="",I="",k="";m?k="flex-start":E==="center"?(k="center",w?I=x:R=x):w?E==="left"||E==="end"?(k="flex-end",R=x):(E==="right"||E==="start")&&(k="flex-start",I=x):E==="left"||E==="start"?(k="flex-start",R=x):(E==="right"||E==="end")&&(k="flex-end",I=x),e.position=this._cssPosition,e.marginLeft=m?"0":R,e.marginTop=C?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=m?"0":I,d.justifyContent=k,d.alignItems=C?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,t=d.style;d.classList.remove(Si),t.justifyContent=t.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},Hr=(()=>{let e=class e{constructor(t,i,s,h){this._viewportRuler=t,this._document=i,this._platform=s,this._overlayContainer=h}global(){return new Dt}flexibleConnectedTo(t){return new xt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(i){return new(i||e)(D(We),D(Z),D(ce),D(Ci))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Xr=0,Ze=(()=>{let e=class e{constructor(t,i,s,h,f,m,C,E,x,w,R,I){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=s,this._positionBuilder=h,this._keyboardDispatcher=f,this._injector=m,this._ngZone=C,this._document=E,this._directionality=x,this._location=w,this._outsideClickDispatcher=R,this._animationsModuleType=I}create(t){let i=this._createHostElement(),s=this._createPaneElement(i),h=this._createPortalOutlet(s),f=new $e(t);return f.direction=f.direction||this._directionality.value,new Ct(h,i,s,f,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Jt))}position(){return this._positionBuilder}_createPaneElement(t){let i=this._document.createElement("div");return i.id=`cdk-overlay-${Xr++}`,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){let t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(ri)),new Xe(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(i){return new(i||e)(D(Fr),D(Ci),D(Fe),D(Hr),D(Vr),D(Ne),D(K),D(Z),D(De),D(si),D(zr),D(ei,8))},e.\u0275prov=z({token:e,factory:e.\u0275fac,providedIn:"root"});let u=e;return u})(),Ur=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xi=new Kt("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let u=ht(Ze);return()=>u.scrollStrategies.reposition()}}),Ei=(()=>{let e=class e{constructor(t){this.elementRef=t}};e.\u0275fac=function(i){return new(i||e)(H(ne))},e.\u0275dir=ue({type:e,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0});let u=e;return u})(),gs=(()=>{let e=class e{get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}constructor(t,i,s,h,f){this._overlay=t,this._dir=f,this._backdropSubscription=ae.EMPTY,this._attachSubscription=ae.EMPTY,this._detachSubscription=ae.EMPTY,this._positionSubscription=ae.EMPTY,this._disposeOnNavigation=!1,this._ngZone=ht(K),this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.hasBackdrop=!1,this.lockPosition=!1,this.flexibleDimensions=!1,this.growAfterOpen=!1,this.push=!1,this.backdropClick=new re,this.positionChange=new re,this.attach=new re,this.detach=new re,this.overlayKeydown=new re,this.overlayOutsideClick=new re,this._templatePortal=new Ie(i,s),this._scrollStrategyFactory=h,this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ur);let t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!oi(i)&&(i.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let s=this._getOriginElement(),h=ze(i);(!s||s!==h&&!s.contains(h))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new $e({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Ei?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ei?this.origin.elementRef.nativeElement:this.origin instanceof ne?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(qt(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(H(Ze),H(Le),H(xe),H(xi),H(De,8))},e.\u0275dir=ue({type:e,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",fe],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",fe],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",fe],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",fe],push:[2,"cdkConnectedOverlayPush","push",fe],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",fe]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[ft,dt]});let u=e;return u})();function $r(u){return()=>u.scrollStrategies.reposition()}var Zr={provide:xi,deps:[Ze],useFactory:$r},_s=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=de({type:e}),e.\u0275inj=he({providers:[Ze,Zr],imports:[Oe,gi,_t,_t]});let u=e;return u})();export{li as a,Kr as b,Ye as c,Ar as d,We as e,hi as f,mt as g,Ie as h,He as i,Qn as j,gi as k,Fr as l,$e as m,Ci as n,Ct as o,Ze as p,Ei as q,gs as r,_s as s,fi as t,pi as u,Ln as v}; diff --git a/chunk-7WK6GZSZ.js b/chunk-BLRJMPLX.js similarity index 99% rename from chunk-7WK6GZSZ.js rename to chunk-BLRJMPLX.js index 17a7cea..a72d47d 100644 --- a/chunk-7WK6GZSZ.js +++ b/chunk-BLRJMPLX.js @@ -1 +1 @@ -import{a as Q,b as ut,f as rs,h as K}from"./chunk-LP5NDBXI.js";function ar(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function cn(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function fr(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");ar(t.outputLen),ar(t.blockLen)}function ee(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function lr(t,e){cn(t);let n=e.outputLen;if(t.lengtht instanceof Uint8Array;var xe=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ht=(t,e)=>t<<32-e|t>>>e,os=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!os)throw new Error("Non little-endian hardware is not supported");function ss(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function le(t){if(typeof t=="string"&&(t=ss(t)),!ur(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function hr(...t){let e=new Uint8Array(t.reduce((r,o)=>r+o.length,0)),n=0;return t.forEach(r=>{if(!ur(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}var ne=class{clone(){return this._cloneInto()}},xf={}.toString;function dr(t){let e=r=>t().update(le(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function me(t=32){if(be&&typeof be.getRandomValues=="function")return be.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}function is(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);let o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Ee=class extends ne{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=xe(this.buffer)}update(e){ee(this);let{view:n,buffer:r,blockLen:o}=this;e=le(e);let s=e.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let u=i;ul.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;ut&e^~t&n,as=(t,e,n)=>t&e^t&n^e&n,fs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),It=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ut=new Uint32Array(64),an=class extends Ee{constructor(){super(64,32,8,!1),this.A=It[0]|0,this.B=It[1]|0,this.C=It[2]|0,this.D=It[3]|0,this.E=It[4]|0,this.F=It[5]|0,this.G=It[6]|0,this.H=It[7]|0}get(){let{A:e,B:n,C:r,D:o,E:s,F:i,G:c,H:a}=this;return[e,n,r,o,s,i,c,a]}set(e,n,r,o,s,i,c,a){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=a|0}process(e,n){for(let u=0;u<16;u++,n+=4)Ut[u]=e.getUint32(n,!1);for(let u=16;u<64;u++){let p=Ut[u-15],y=Ut[u-2],g=ht(p,7)^ht(p,18)^p>>>3,h=ht(y,17)^ht(y,19)^y>>>10;Ut[u]=h+Ut[u-7]+g+Ut[u-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:a,G:f,H:l}=this;for(let u=0;u<64;u++){let p=ht(c,6)^ht(c,11)^ht(c,25),y=l+p+cs(c,a,f)+fs[u]+Ut[u]|0,h=(ht(r,2)^ht(r,13)^ht(r,22))+as(r,o,s)|0;l=f,f=a,a=c,c=i+y|0,i=s,s=o,o=r,r=y+h|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,a=a+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(r,o,s,i,c,a,f,l)}roundClean(){Ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var ve=dr(()=>new an);var hn={};rs(hn,{bitGet:()=>ys,bitLen:()=>gs,bitMask:()=>ue,bitSet:()=>ws,bytesToHex:()=>Dt,bytesToNumberBE:()=>Y,bytesToNumberLE:()=>_e,concatBytes:()=>At,createHmacDrbg:()=>un,ensureBytes:()=>W,equalBytes:()=>ds,hexToBytes:()=>Wt,hexToNumber:()=>ln,numberToBytesBE:()=>dt,numberToBytesLE:()=>Le,numberToHexUnpadded:()=>yr,numberToVarBytesBE:()=>hs,utf8ToBytes:()=>ps,validateObject:()=>kt});var gr=BigInt(0),Be=BigInt(1),ls=BigInt(2),Ae=t=>t instanceof Uint8Array,us=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Dt(t){if(!Ae(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+o.length,0)),n=0;return t.forEach(r=>{if(!Ae(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function ds(t,e){if(t.length!==e.length)return!1;for(let n=0;ngr;t>>=Be,e+=1);return e}function ys(t,e){return t>>BigInt(e)&Be}var ws=(t,e,n)=>t|(n?Be:gr)<(ls<new Uint8Array(t),pr=t=>Uint8Array.from(t);function un(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=fn(t),o=fn(t),s=0,i=()=>{r.fill(1),o.fill(0),s=0},c=(...u)=>n(o,r,...u),a=(u=fn())=>{o=c(pr([0]),u),r=c(),u.length!==0&&(o=c(pr([1]),u),r=c())},f=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let u=0,p=[];for(;u{i(),a(u);let y;for(;!(y=p(f()));)a();return i(),y}}var bs={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function kt(t,e,n={}){let r=(o,s,i)=>{let c=bs[s];if(typeof c!="function")throw new Error(`Invalid validator "${s}", expected function`);let a=t[o];if(!(i&&a===void 0)&&!c(a,t))throw new Error(`Invalid param ${String(o)}=${a} (${typeof a}), expected ${s}`)};for(let[o,s]of Object.entries(e))r(o,s,!1);for(let[o,s]of Object.entries(n))r(o,s,!0);return t}var Z=BigInt(0),V=BigInt(1),zt=BigInt(2),xs=BigInt(3),dn=BigInt(4),wr=BigInt(5),br=BigInt(8),ms=BigInt(9),Es=BigInt(16);function z(t,e){let n=t%e;return n>=Z?n:e+n}function vs(t,e,n){if(n<=Z||e 0");if(n===V)return Z;let r=V;for(;e>Z;)e&V&&(r=r*t%n),t=t*t%n,e>>=V;return r}function ot(t,e,n){let r=t;for(;e-- >Z;)r*=r,r%=n;return r}function Se(t,e){if(t===Z||e<=Z)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=z(t,e),r=e,o=Z,s=V,i=V,c=Z;for(;n!==Z;){let f=r/n,l=r%n,u=o-i*f,p=s-c*f;r=n,n=l,o=i,s=c,i=u,c=p}if(r!==V)throw new Error("invert: does not exist");return z(o,e)}function Bs(t){let e=(t-V)/zt,n,r,o;for(n=t-V,r=0;n%zt===Z;n/=zt,r++);for(o=zt;o(r[o]="function",r),e);return kt(t,n)}function Ls(t,e,n){if(n 0");if(n===Z)return t.ONE;if(n===V)return e;let r=t.ONE,o=e;for(;n>Z;)n&V&&(r=t.mul(r,o)),o=t.sqr(o),n>>=V;return r}function Ss(t,e){let n=new Array(e.length),r=e.reduce((s,i,c)=>t.is0(i)?s:(n[c]=s,t.mul(s,i)),t.ONE),o=t.inv(r);return e.reduceRight((s,i,c)=>t.is0(i)?s:(n[c]=t.mul(s,n[c]),t.mul(s,i)),o),n}function gn(t,e){let n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function xr(t,e,n=!1,r={}){if(t<=Z)throw new Error(`Expected Field ORDER > 0, got ${t}`);let{nBitLength:o,nByteLength:s}=gn(t,e);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");let i=As(t),c=Object.freeze({ORDER:t,BITS:o,BYTES:s,MASK:ue(o),ZERO:Z,ONE:V,create:a=>z(a,t),isValid:a=>{if(typeof a!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof a}`);return Z<=a&&aa===Z,isOdd:a=>(a&V)===V,neg:a=>z(-a,t),eql:(a,f)=>a===f,sqr:a=>z(a*a,t),add:(a,f)=>z(a+f,t),sub:(a,f)=>z(a-f,t),mul:(a,f)=>z(a*f,t),pow:(a,f)=>Ls(c,a,f),div:(a,f)=>z(a*Se(f,t),t),sqrN:a=>a*a,addN:(a,f)=>a+f,subN:(a,f)=>a-f,mulN:(a,f)=>a*f,inv:a=>Se(a,t),sqrt:r.sqrt||(a=>i(c,a)),invertBatch:a=>Ss(c,a),cmov:(a,f,l)=>l?f:a,toBytes:a=>n?Le(a,s):dt(a,s),fromBytes:a=>{if(a.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${a.length}`);return n?_e(a):Y(a)}});return Object.freeze(c)}function mr(t){if(typeof t!="bigint")throw new Error("field order must be bigint");let e=t.toString(2).length;return Math.ceil(e/8)}function yn(t){let e=mr(t);return e+Math.ceil(e/2)}function Er(t,e,n=!1){let r=t.length,o=mr(e),s=yn(e);if(r<16||r1024)throw new Error(`expected ${s}-1024 bytes of input, got ${r}`);let i=n?Y(t):_e(t),c=z(i,e-V)+V;return n?Le(c,o):dt(c,o)}var Is=BigInt(0),wn=BigInt(1);function vr(t,e){let n=(o,s)=>{let i=s.negate();return o?i:s},r=o=>{let s=Math.ceil(e/o)+1,i=2**(o-1);return{windows:s,windowSize:i}};return{constTimeNegate:n,unsafeLadder(o,s){let i=t.ZERO,c=o;for(;s>Is;)s&wn&&(i=i.add(c)),c=c.double(),s>>=wn;return i},precomputeWindow(o,s){let{windows:i,windowSize:c}=r(s),a=[],f=o,l=f;for(let u=0;u>=y,d>a&&(d-=p,i+=wn);let w=h,b=h+Math.abs(d)-1,m=g%2!==0,A=d<0;d===0?l=l.add(n(m,s[w])):f=f.add(n(A,s[b]))}return{p:f,f:l}},wNAFCached(o,s,i,c){let a=o._WINDOW_SIZE||1,f=s.get(o);return f||(f=this.precomputeWindow(o,a),a!==1&&s.set(o,c(f))),this.wNAF(a,f,i)}}}function bn(t){return pn(t.Fp),kt(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(ut(Q(Q({},gn(t.n,t.nBitLength)),t),{p:t.Fp.ORDER}))}function Us(t){let e=bn(t);kt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:n,Fp:r,a:o}=e;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(Q({},e))}var{bytesToNumberBE:ks,hexToBytes:Os}=hn,Zt={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){let{Err:e}=Zt;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");let n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:ks(r),l:t.subarray(n+2)}},toSig(t){let{Err:e}=Zt,n=typeof t=="string"?Os(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");let{d:o,l:s}=Zt._parseInt(n.subarray(2)),{d:i,l:c}=Zt._parseInt(s);if(c.length)throw new e("Invalid signature: left bytes after parsing");return{r:o,s:i}},hexFromSig(t){let e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,n=f=>{let l=f.toString(16);return l.length&1?`0${l}`:l},r=e(n(t.s)),o=e(n(t.r)),s=r.length/2,i=o.length/2,c=n(s),a=n(i);return`30${n(i+s+4)}02${a}${o}02${c}${r}`}},_t=BigInt(0),ct=BigInt(1),Hf=BigInt(2),Br=BigInt(3),Pf=BigInt(4);function Rs(t){let e=Us(t),{Fp:n}=e,r=e.toBytes||((g,h,d)=>{let w=h.toAffine();return At(Uint8Array.from([4]),n.toBytes(w.x),n.toBytes(w.y))}),o=e.fromBytes||(g=>{let h=g.subarray(1),d=n.fromBytes(h.subarray(0,n.BYTES)),w=n.fromBytes(h.subarray(n.BYTES,2*n.BYTES));return{x:d,y:w}});function s(g){let{a:h,b:d}=e,w=n.sqr(g),b=n.mul(w,g);return n.add(n.add(b,n.mul(g,h)),d)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function i(g){return typeof g=="bigint"&&_tn.eql(m,n.ZERO);return b(d)&&b(w)?u.ZERO:new u(d,w,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){let d=n.invertBatch(h.map(w=>w.pz));return h.map((w,b)=>w.toAffine(d[b])).map(u.fromAffine)}static fromHex(h){let d=u.fromAffine(o(W("pointHex",h)));return d.assertValidity(),d}static fromPrivateKey(h){return u.BASE.multiply(a(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}let{x:h,y:d}=this.toAffine();if(!n.isValid(h)||!n.isValid(d))throw new Error("bad point: x or y not FE");let w=n.sqr(d),b=s(h);if(!n.eql(w,b))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:h}=this.toAffine();if(n.isOdd)return!n.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);let{px:d,py:w,pz:b}=this,{px:m,py:A,pz:I}=h,B=n.eql(n.mul(d,I),n.mul(m,b)),_=n.eql(n.mul(w,I),n.mul(A,b));return B&&_}negate(){return new u(this.px,n.neg(this.py),this.pz)}double(){let{a:h,b:d}=e,w=n.mul(d,Br),{px:b,py:m,pz:A}=this,I=n.ZERO,B=n.ZERO,_=n.ZERO,S=n.mul(b,b),R=n.mul(m,m),k=n.mul(A,A),U=n.mul(b,m);return U=n.add(U,U),_=n.mul(b,A),_=n.add(_,_),I=n.mul(h,_),B=n.mul(w,k),B=n.add(I,B),I=n.sub(R,B),B=n.add(R,B),B=n.mul(I,B),I=n.mul(U,I),_=n.mul(w,_),k=n.mul(h,k),U=n.sub(S,k),U=n.mul(h,U),U=n.add(U,_),_=n.add(S,S),S=n.add(_,S),S=n.add(S,k),S=n.mul(S,U),B=n.add(B,S),k=n.mul(m,A),k=n.add(k,k),S=n.mul(k,U),I=n.sub(I,S),_=n.mul(k,R),_=n.add(_,_),_=n.add(_,_),new u(I,B,_)}add(h){l(h);let{px:d,py:w,pz:b}=this,{px:m,py:A,pz:I}=h,B=n.ZERO,_=n.ZERO,S=n.ZERO,R=e.a,k=n.mul(e.b,Br),U=n.mul(d,m),P=n.mul(w,A),$=n.mul(b,I),j=n.add(d,w),x=n.add(m,A);j=n.mul(j,x),x=n.add(U,P),j=n.sub(j,x),x=n.add(d,b);let E=n.add(m,I);return x=n.mul(x,E),E=n.add(U,$),x=n.sub(x,E),E=n.add(w,b),B=n.add(A,I),E=n.mul(E,B),B=n.add(P,$),E=n.sub(E,B),S=n.mul(R,x),B=n.mul(k,$),S=n.add(B,S),B=n.sub(P,S),S=n.add(P,S),_=n.mul(B,S),P=n.add(U,U),P=n.add(P,U),$=n.mul(R,$),x=n.mul(k,x),P=n.add(P,$),$=n.sub(U,$),$=n.mul(R,$),x=n.add(x,$),U=n.mul(P,x),_=n.add(_,U),U=n.mul(E,x),B=n.mul(j,B),B=n.sub(B,U),U=n.mul(j,P),S=n.mul(E,S),S=n.add(S,U),new u(B,_,S)}subtract(h){return this.add(h.negate())}is0(){return this.equals(u.ZERO)}wNAF(h){return y.wNAFCached(this,f,h,d=>{let w=n.invertBatch(d.map(b=>b.pz));return d.map((b,m)=>b.toAffine(w[m])).map(u.fromAffine)})}multiplyUnsafe(h){let d=u.ZERO;if(h===_t)return d;if(c(h),h===ct)return this;let{endo:w}=e;if(!w)return y.unsafeLadder(this,h);let{k1neg:b,k1:m,k2neg:A,k2:I}=w.splitScalar(h),B=d,_=d,S=this;for(;m>_t||I>_t;)m&ct&&(B=B.add(S)),I&ct&&(_=_.add(S)),S=S.double(),m>>=ct,I>>=ct;return b&&(B=B.negate()),A&&(_=_.negate()),_=new u(n.mul(_.px,w.beta),_.py,_.pz),B.add(_)}multiply(h){c(h);let d=h,w,b,{endo:m}=e;if(m){let{k1neg:A,k1:I,k2neg:B,k2:_}=m.splitScalar(d),{p:S,f:R}=this.wNAF(I),{p:k,f:U}=this.wNAF(_);S=y.constTimeNegate(A,S),k=y.constTimeNegate(B,k),k=new u(n.mul(k.px,m.beta),k.py,k.pz),w=S.add(k),b=R.add(U)}else{let{p:A,f:I}=this.wNAF(d);w=A,b=I}return u.normalizeZ([w,b])[0]}multiplyAndAddUnsafe(h,d,w){let b=u.BASE,m=(I,B)=>B===_t||B===ct||!I.equals(b)?I.multiplyUnsafe(B):I.multiply(B),A=m(this,d).add(m(h,w));return A.is0()?void 0:A}toAffine(h){let{px:d,py:w,pz:b}=this,m=this.is0();h==null&&(h=m?n.ONE:n.inv(b));let A=n.mul(d,h),I=n.mul(w,h),B=n.mul(b,h);if(m)return{x:n.ZERO,y:n.ZERO};if(!n.eql(B,n.ONE))throw new Error("invZ was invalid");return{x:A,y:I}}isTorsionFree(){let{h,isTorsionFree:d}=e;if(h===ct)return!0;if(d)return d(u,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h,clearCofactor:d}=e;return h===ct?this:d?d(u,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),r(u,this,h)}toHex(h=!0){return Dt(this.toRawBytes(h))}}u.BASE=new u(e.Gx,e.Gy,n.ONE),u.ZERO=new u(n.ZERO,n.ONE,n.ZERO);let p=e.nBitLength,y=vr(u,e.endo?Math.ceil(p/2):p);return{CURVE:e,ProjectivePoint:u,normPrivateKeyToScalar:a,weierstrassEquation:s,isWithinCurveOrder:i}}function Cs(t){let e=bn(t);return kt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(Q({lowS:!0},e))}function Ar(t){let e=Cs(t),{Fp:n,n:r}=e,o=n.BYTES+1,s=2*n.BYTES+1;function i(x){return _tDt(dt(x,e.nByteLength));function g(x){let E=r>>ct;return x>E}function h(x){return g(x)?c(-x):x}let d=(x,E,T)=>Y(x.slice(E,T));class w{constructor(E,T,O){this.r=E,this.s=T,this.recovery=O,this.assertValidity()}static fromCompact(E){let T=e.nByteLength;return E=W("compactSignature",E,T*2),new w(d(E,0,T),d(E,T,2*T))}static fromDER(E){let{r:T,s:O}=Zt.toSig(W("DER",E));return new w(T,O)}assertValidity(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(E){return new w(this.r,this.s,E)}recoverPublicKey(E){let{r:T,s:O,recovery:v}=this,C=_(W("msgHash",E));if(v==null||![0,1,2,3].includes(v))throw new Error("recovery id invalid");let M=v===2||v===3?T+e.n:T;if(M>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");let q=v&1?"03":"02",G=f.fromHex(q+y(M)),F=a(M),rt=c(-C*F),it=c(O*F),tt=f.BASE.multiplyAndAddUnsafe(G,rt,it);if(!tt)throw new Error("point at infinify");return tt.assertValidity(),tt}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Wt(this.toDERHex())}toDERHex(){return Zt.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Wt(this.toCompactHex())}toCompactHex(){return y(this.r)+y(this.s)}}let b={isValidPrivateKey(x){try{return l(x),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let x=yn(e.n);return Er(e.randomBytes(x),e.n)},precompute(x=8,E=f.BASE){return E._setWindowSize(x),E.multiply(BigInt(3)),E}};function m(x,E=!0){return f.fromPrivateKey(x).toRawBytes(E)}function A(x){let E=x instanceof Uint8Array,T=typeof x=="string",O=(E||T)&&x.length;return E?O===o||O===s:T?O===2*o||O===2*s:x instanceof f}function I(x,E,T=!0){if(A(x))throw new Error("first arg must be private key");if(!A(E))throw new Error("second arg must be public key");return f.fromHex(E).multiply(l(x)).toRawBytes(T)}let B=e.bits2int||function(x){let E=Y(x),T=x.length*8-e.nBitLength;return T>0?E>>BigInt(T):E},_=e.bits2int_modN||function(x){return c(B(x))},S=ue(e.nBitLength);function R(x){if(typeof x!="bigint")throw new Error("bigint expected");if(!(_t<=x&&xnt in T))throw new Error("sign() legacy options not supported");let{hash:O,randomBytes:v}=e,{lowS:C,prehash:M,extraEntropy:q}=T;C==null&&(C=!0),x=W("msgHash",x),M&&(x=W("prehashed msgHash",O(x)));let G=_(x),F=l(E),rt=[R(F),R(G)];if(q!=null){let nt=q===!0?v(n.BYTES):q;rt.push(W("extraEntropy",nt))}let it=At(...rt),tt=G;function yt(nt){let Ft=B(nt);if(!p(Ft))return;let sr=a(Ft),wt=f.BASE.multiply(Ft).toAffine(),te=c(wt.x);if(te===_t)return;let we=c(sr*c(tt+te*F));if(we===_t)return;let ir=(wt.x===te?0:2)|Number(wt.y&ct),cr=we;return C&&g(we)&&(cr=h(we),ir^=1),new w(te,cr,ir)}return{seed:it,k2sig:yt}}let U={lowS:e.lowS,prehash:!1},P={lowS:e.lowS,prehash:!1};function $(x,E,T=U){let{seed:O,k2sig:v}=k(x,E,T),C=e;return un(C.hash.outputLen,C.nByteLength,C.hmac)(O,v)}f.BASE._setWindowSize(8);function j(x,E,T,O=P){let v=x;if(E=W("msgHash",E),T=W("publicKey",T),"strict"in O)throw new Error("options.strict was renamed to lowS");let{lowS:C,prehash:M}=O,q,G;try{if(typeof v=="string"||v instanceof Uint8Array)try{q=w.fromDER(v)}catch(wt){if(!(wt instanceof Zt.Err))throw wt;q=w.fromCompact(v)}else if(typeof v=="object"&&typeof v.r=="bigint"&&typeof v.s=="bigint"){let{r:wt,s:te}=v;q=new w(wt,te)}else throw new Error("PARSE");G=f.fromHex(T)}catch(wt){if(wt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(C&&q.hasHighS())return!1;M&&(E=e.hash(E));let{r:F,s:rt}=q,it=_(E),tt=a(rt),yt=c(it*tt),nt=c(F*tt),Ft=f.BASE.multiplyAndAddUnsafe(G,yt,nt)?.toAffine();return Ft?c(Ft.x)===F:!1}return{CURVE:e,getPublicKey:m,getSharedSecret:I,sign:$,verify:j,ProjectivePoint:f,Signature:w,utils:b}}var Te=class extends ne{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,fr(e);let r=le(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let i=0;inew Te(t,e).update(n).digest();xn.create=(t,e)=>new Te(t,e);function Ns(t){return{hash:t,hmac:(e,...n)=>xn(t,e,hr(...n)),randomBytes:me}}function _r(t,e){let n=r=>Ar(Q(Q({},t),Ns(r)));return Object.freeze(ut(Q({},n(e)),{create:n}))}var Oe=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ie=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Tr=BigInt(1),Ue=BigInt(2),Lr=(t,e)=>(t+e/Ue)/e;function Ir(t){let e=Oe,n=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),i=BigInt(23),c=BigInt(44),a=BigInt(88),f=t*t*t%e,l=f*f*t%e,u=ot(l,n,e)*l%e,p=ot(u,n,e)*l%e,y=ot(p,Ue,e)*f%e,g=ot(y,o,e)*y%e,h=ot(g,s,e)*g%e,d=ot(h,c,e)*h%e,w=ot(d,a,e)*d%e,b=ot(w,c,e)*h%e,m=ot(b,n,e)*l%e,A=ot(m,i,e)*g%e,I=ot(A,r,e)*f%e,B=ot(I,Ue,e);if(!En.eql(En.sqr(B),t))throw new Error("Cannot find square root");return B}var En=xr(Oe,void 0,void 0,{sqrt:Ir}),Ot=_r({a:BigInt(0),b:BigInt(7),Fp:En,n:Ie,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let e=Ie,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Tr*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),c=Lr(s*t,e),a=Lr(-r*t,e),f=z(t-c*n-a*o,e),l=z(-c*r-a*s,e),u=f>i,p=l>i;if(u&&(f=e-f),p&&(l=e-l),f>i||l>i)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:u,k1:f,k2neg:p,k2:l}}}},ve),Re=BigInt(0),Ur=t=>typeof t=="bigint"&&Retypeof t=="bigint"&&Reo.charCodeAt(0)));n=At(r,r),Sr[t]=n}return ve(At(n,...e))}var An=t=>t.toRawBytes(!0).slice(1),vn=t=>dt(t,32),mn=t=>z(t,Oe),he=t=>z(t,Ie),_n=Ot.ProjectivePoint,Ps=(t,e,n)=>_n.BASE.multiplyAndAddUnsafe(t,e,n);function Bn(t){let e=Ot.utils.normPrivateKeyToScalar(t),n=_n.fromPrivateKey(e);return{scalar:n.hasEvenY()?e:he(-e),bytes:An(n)}}function kr(t){if(!Ur(t))throw new Error("bad x: need 0 < x < p");let e=mn(t*t),n=mn(e*t+BigInt(7)),r=Ir(n);r%Ue!==Re&&(r=mn(-r));let o=new _n(t,r,Tr);return o.assertValidity(),o}function Or(...t){return he(Y(ke("BIP0340/challenge",...t)))}function $s(t){return Bn(t).bytes}function qs(t,e,n=me(32)){let r=W("message",t),{bytes:o,scalar:s}=Bn(e),i=W("auxRand",n,32),c=vn(s^Y(ke("BIP0340/aux",i))),a=ke("BIP0340/nonce",c,o,r),f=he(Y(a));if(f===Re)throw new Error("sign failed: k is zero");let{bytes:l,scalar:u}=Bn(f),p=Or(l,o,r),y=new Uint8Array(64);if(y.set(l,0),y.set(vn(he(u+p*s)),32),!Rr(y,r,o))throw new Error("sign: Invalid signature produced");return y}function Rr(t,e,n){let r=W("signature",t,64),o=W("message",e),s=W("publicKey",n,32);try{let i=kr(Y(s)),c=Y(r.subarray(0,32));if(!Ur(c))return!1;let a=Y(r.subarray(32,64));if(!Hs(a))return!1;let f=Or(vn(c),An(i),o),l=Ps(i,a,he(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==c)}catch{return!1}}var re={getPublicKey:$s,sign:qs,verify:Rr,utils:{randomPrivateKey:Ot.utils.randomPrivateKey,lift_x:kr,pointToBytes:An,numberToBytesBE:dt,bytesToNumberBE:Y,taggedHash:ke,mod:z}};var Ce=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;var Ln=t=>t instanceof Uint8Array;var Ne=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),pt=(t,e)=>t<<32-e|t>>>e,Ms=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Ms)throw new Error("Non little-endian hardware is not supported");var js=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function J(t){if(!Ln(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+o.length,0)),n=0;return t.forEach(r=>{if(!Ln(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}var oe=class{clone(){return this._cloneInto()}};function Sn(t){let e=r=>t().update(Rt(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function He(t=32){if(Ce&&typeof Ce.getRandomValues=="function")return Ce.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}function Tn(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Vs(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}function Cr(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function Ds(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Tn(t.outputLen),Tn(t.blockLen)}function Ws(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function zs(t,e){Cr(t);let n=e.outputLen;if(t.length>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Pe=class extends oe{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Ne(this.buffer)}update(e){st.exists(this);let{view:n,buffer:r,blockLen:o}=this;e=Rt(e);let s=e.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let u=i;ul.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;ut&e^~t&n,Ys=(t,e,n)=>t&e^t&n^e&n,Xs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ct=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nt=new Uint32Array(64),$e=class extends Pe{constructor(){super(64,32,8,!1),this.A=Ct[0]|0,this.B=Ct[1]|0,this.C=Ct[2]|0,this.D=Ct[3]|0,this.E=Ct[4]|0,this.F=Ct[5]|0,this.G=Ct[6]|0,this.H=Ct[7]|0}get(){let{A:e,B:n,C:r,D:o,E:s,F:i,G:c,H:a}=this;return[e,n,r,o,s,i,c,a]}set(e,n,r,o,s,i,c,a){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=a|0}process(e,n){for(let u=0;u<16;u++,n+=4)Nt[u]=e.getUint32(n,!1);for(let u=16;u<64;u++){let p=Nt[u-15],y=Nt[u-2],g=pt(p,7)^pt(p,18)^p>>>3,h=pt(y,17)^pt(y,19)^y>>>10;Nt[u]=h+Nt[u-7]+g+Nt[u-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:a,G:f,H:l}=this;for(let u=0;u<64;u++){let p=pt(c,6)^pt(c,11)^pt(c,25),y=l+p+Js(c,a,f)+Xs[u]+Nt[u]|0,h=(pt(r,2)^pt(r,13)^pt(r,22))+Ys(r,o,s)|0;l=f,f=a,a=c,c=i+y|0,i=s,s=o,o=r,r=y+h|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,a=a+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(r,o,s,i,c,a,f,l)}roundClean(){Nt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},In=class extends $e{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}},Ht=Sn(()=>new $e),ll=Sn(()=>new In);function Jt(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function bt(...t){let e=(o,s)=>i=>o(s(i)),n=Array.from(t).reverse().reduce((o,s)=>o?e(o,s.encode):s.encode,void 0),r=t.reduce((o,s)=>o?e(o,s.decode):s.decode,void 0);return{encode:n,decode:r}}function Lt(t){return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return e.map(n=>{if(Jt(n),n<0||n>=t.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${t.length})`);return t[n]})},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("alphabet.decode input should be array of strings");return e.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);let r=t.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${t}`);return r})}}}function St(t=""){if(typeof t!="string")throw new Error("join separator should be string");return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of e)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return e.join(t)},decode:e=>{if(typeof e!="string")throw new Error("join.decode input should be string");return e.split(t)}}}function je(t,e="="){if(Jt(t),typeof e!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*t%8;)n.push(e);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let o of n)if(typeof o!="string")throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===e;r--)if(!((r-1)*t%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function Mr(t){if(typeof t!="function")throw new Error("normalize fn should be function");return{encode:e=>e,decode:e=>t(e)}}function Nr(t,e,n){if(e<2)throw new Error(`convertRadix: wrong from=${e}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(t))throw new Error("convertRadix: data should be array");if(!t.length)return[];let r=0,o=[],s=Array.from(t);for(s.forEach(i=>{if(Jt(i),i<0||i>=e)throw new Error(`Wrong integer: ${i}`)});;){let i=0,c=!0;for(let a=r;ae?jr(e,t%e):t,qe=(t,e)=>t+(e-jr(t,e));function Un(t,e,n,r){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(qe(e,n)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${n} carryBits=${qe(e,n)}`);let o=0,s=0,i=2**n-1,c=[];for(let a of t){if(Jt(a),a>=2**e)throw new Error(`convertRadix2: invalid data word=${a} from=${e}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${e}`);for(s+=e;s>=n;s-=n)c.push((o>>s-n&i)>>>0);o&=2**s-1}if(o=o<=e)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&s>0&&c.push(o>>>0),c}function Qs(t){return Jt(t),{encode:e=>{if(!(e instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Nr(Array.from(e),2**8,t)},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Nr(e,t,2**8))}}}function Pt(t,e=!1){if(Jt(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(qe(8,t)>32||qe(t,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Un(Array.from(n),8,t,!e)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Un(n,t,8,e))}}}function Hr(t){if(typeof t!="function")throw new Error("unsafeWrapper fn should be function");return function(...e){try{return t.apply(null,e)}catch{}}}function Fs(t,e){if(Jt(t),typeof e!="function")throw new Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");let r=e(n).slice(0,t),o=new Uint8Array(n.length+t);return o.set(n),o.set(r,n.length),o},decode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");let r=n.slice(0,-t),o=e(r).slice(0,t),s=n.slice(-t);for(let i=0;it.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),at=bt(Pt(6),Lt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),je(6),St("")),ni=bt(Pt(6),Lt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),je(6),St("")),On=t=>bt(Qs(58),Lt(t),St("")),Me=On("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),pl=On("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),gl=On("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Pr=[0,2,3,5,6,7,9,10,11],ri={encode(t){let e="";for(let n=0;nbt(Fs(4,e=>t(t(e))),Me),kn=bt(Lt("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),St("")),$r=[996825010,642813549,513874426,1027748829,705979059];function de(t){let e=t>>25,n=(t&33554431)<<5;for(let r=0;r<$r.length;r++)(e>>r&1)===1&&(n^=$r[r]);return n}function qr(t,e,n=1){let r=t.length,o=1;for(let s=0;s126)throw new Error(`Invalid prefix (${t})`);o=de(o)^i>>5}o=de(o);for(let s=0;sp)throw new TypeError(`Length ${y} exceeds limit ${p}`);return l=l.toLowerCase(),`${l}1${kn.encode(u)}${qr(l,u,e)}`}function c(l,u=90){if(typeof l!="string")throw new Error(`bech32.decode input should be string, not ${typeof l}`);if(l.length<8||u!==!1&&l.length>u)throw new TypeError(`Wrong string length: ${l.length} (${l}). Expected (8..${u})`);let p=l.toLowerCase();if(l!==p&&l!==l.toUpperCase())throw new Error("String must be lowercase or uppercase");l=p;let y=l.lastIndexOf("1");if(y===0||y===-1)throw new Error('Letter "1" must be present between prefix and data only');let g=l.slice(0,y),h=l.slice(y+1);if(h.length<6)throw new Error("Data must be at least 6 characters long");let d=kn.decode(h).slice(0,-6),w=qr(g,d,e);if(!h.endsWith(w))throw new Error(`Invalid checksum in ${l}: expected "${w}"`);return{prefix:g,words:d}}let a=Hr(c);function f(l){let{prefix:u,words:p}=c(l,!1);return{prefix:u,words:p,bytes:r(p)}}return{encode:i,decode:c,decodeToBytes:f,decodeUnsafe:a,fromWords:r,fromWordsUnsafe:s,toWords:o}}var $t=Kr("bech32"),wl=Kr("bech32m"),oi={encode:t=>new TextDecoder().decode(t),decode:t=>new TextEncoder().encode(t)},si=bt(Pt(4),Lt("0123456789abcdef"),St(""),Mr(t=>{if(typeof t!="string"||t.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof t} with length ${t.length}`);return t.toLowerCase()})),ii={utf8:oi,hex:si,base16:ti,base32:ei,base64:at,base64url:ni,base58:Me,base58xmr:ri},bl=`Invalid encoding type. Available types: ${Object.keys(ii).join(", ")}`;function Ke(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`positive integer expected, not ${t}`)}function Rn(t){if(typeof t!="boolean")throw new Error(`boolean expected, not ${t}`)}function Cn(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function N(t,...e){if(!Cn(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function qt(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function pe(t,e){N(t);let n=e.outputLen;if(t.lengthnew Uint8Array(t.buffer,t.byteOffset,t.byteLength);var H=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Mt=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ci=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!ci)throw new Error("Non little-endian hardware is not supported");function ai(t){if(typeof t!="string")throw new Error(`string expected, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function xt(t){if(typeof t=="string")t=ai(t);else if(Cn(t))t=t.slice();else throw new Error(`Uint8Array expected, got ${typeof t}`);return t}function Vr(t,e){if(e==null||typeof e!="object")throw new Error("options must be defined");return Object.assign(t,e)}function Yt(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r(Object.assign(e,t),e);function Xt(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);let o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Tt=16,Hn=new Uint8Array(16),Et=H(Hn),fi=225,li=(t,e,n,r)=>{let o=r&1;return{s3:n<<31|r>>>1,s2:e<<31|n>>>1,s1:t<<31|e>>>1,s0:t>>>1^fi<<24&-(o&1)}},ft=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255|0;function ui(t){t.reverse();let e=t[15]&1,n=0;for(let r=0;r>>1|n,n=(o&1)<<7}return t[0]^=-e&225,t}var hi=t=>t>64*1024?8:t>1024?4:2,De=class{constructor(e,n){this.blockLen=Tt,this.outputLen=Tt,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=xt(e),N(e,16);let r=Mt(e),o=r.getUint32(0,!1),s=r.getUint32(4,!1),i=r.getUint32(8,!1),c=r.getUint32(12,!1),a=[];for(let g=0;g<128;g++)a.push({s0:ft(o),s1:ft(s),s2:ft(i),s3:ft(c)}),{s0:o,s1:s,s2:i,s3:c}=li(o,s,i,c);let f=hi(n||1024);if(![1,2,4,8].includes(f))throw new Error(`ghash: wrong window size=${f}, should be 2, 4 or 8`);this.W=f;let u=128/f,p=this.windowSize=2**f,y=[];for(let g=0;g>>f-A-1&1))continue;let{s0:B,s1:_,s2:S,s3:R}=a[f*g+A];d^=B,w^=_,b^=S,m^=R}y.push({s0:d,s1:w,s2:b,s3:m})}this.t=y}_updateBlock(e,n,r,o){e^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;let{W:s,t:i,windowSize:c}=this,a=0,f=0,l=0,u=0,p=(1<>>8*h&255;for(let w=8/s-1;w>=0;w--){let b=d>>>s*w&p,{s0:m,s1:A,s2:I,s3:B}=i[y*c+b];a^=m,f^=A,l^=I,u^=B,y+=1}}this.s0=a,this.s1=f,this.s2=l,this.s3=u}update(e){e=xt(e),qt(this);let n=H(e),r=Math.floor(e.length/Tt),o=e.length%Tt;for(let s=0;st(o,r.length).update(xt(r)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(r,o)=>t(r,o),e}var Pn=Dr((t,e)=>new De(t,e)),Wr=Dr((t,e)=>new Nn(t,e));var et=16,Mn=4,We=new Uint8Array(et),di=283;function jn(t){return t<<1^di&-(t>>7)}function ie(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(e&1),t=jn(t);return n}var qn=(()=>{let t=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=jn(r))t[n]=r;let e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=(r^r>>4^r>>5^r>>6^r>>7^99)&255}return e})(),pi=qn.map((t,e)=>qn.indexOf(e)),gi=t=>t<<24|t>>>8,$n=t=>t<<8|t>>>24;function zr(t,e){if(t.length!==256)throw new Error("Wrong sbox length");let n=new Uint32Array(256).map((f,l)=>e(t[l])),r=n.map($n),o=r.map($n),s=o.map($n),i=new Uint32Array(256*256),c=new Uint32Array(256*256),a=new Uint16Array(256*256);for(let f=0;f<256;f++)for(let l=0;l<256;l++){let u=f*256+l;i[u]=n[f]^r[l],c[u]=o[f]^s[l],a[u]=t[f]<<8|t[l]}return{sbox:t,sbox2:a,T0:n,T1:r,T2:o,T3:s,T01:i,T23:c}}var Kn=zr(qn,t=>ie(t,3)<<24|t<<16|t<<8|ie(t,2)),Zr=zr(pi,t=>ie(t,11)<<24|ie(t,13)<<16|ie(t,9)<<8|ie(t,14)),yi=(()=>{let t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=jn(n))t[e]=n;return t})();function Kt(t){N(t);let e=t.length;if(![16,24,32].includes(e))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${e}`);let{sbox2:n}=Kn,r=H(t),o=r.length,s=c=>vt(n,c,c,c,c),i=new Uint32Array(e+28);i.set(r);for(let c=o;c6&&c%o===4&&(a=s(a)),i[c]=i[c-o]^a}return i}function Gr(t){let e=Kt(t),n=e.slice(),r=e.length,{sbox2:o}=Kn,{T0:s,T1:i,T2:c,T3:a}=Zr;for(let f=0;f>>8&255]^c[u>>>16&255]^a[u>>>24]}return n}function jt(t,e,n,r,o,s){return t[n<<8&65280|r>>>8&255]^e[o>>>8&65280|s>>>24&255]}function vt(t,e,n,r,o){return t[e&255|n&65280]|t[r>>>16&255|o>>>16&65280]<<16}function lt(t,e,n,r,o){let{sbox2:s,T01:i,T23:c}=Kn,a=0;e^=t[a++],n^=t[a++],r^=t[a++],o^=t[a++];let f=t.length/4-2;for(let g=0;g=0;d--)h=h+(s[d]&255)|0,s[d]=h&255,h>>>=8;({s0:c,s1:a,s2:f,s3:l}=lt(t,i[0],i[1],i[2],i[3]))}let y=et*Math.floor(u.length/Mn);if(y>>0,c.setUint32(l,p,e),{s0:y,s1:g,s2:h,s3:d}=lt(t,i[0],i[1],i[2],i[3]);let w=et*Math.floor(a.length/Mn);if(wr(o,s),decrypt:(o,s)=>r(o,s)}});function Yr(t){if(N(t),t.length%et!==0)throw new Error(`aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size ${et}`)}function Xr(t,e,n){let r=t.length,o=r%et;if(!e&&o!==0)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");let s=H(t);if(e){let a=et-o;a||(a=et),r=r+a}let i=ce(r,n),c=H(i);return{b:s,o:c,out:i}}function Qr(t,e){if(!e)return t;let n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");let r=t[n-1];if(r<=0||r>16)throw new Error(`aes/pcks5: wrong padding byte: ${r}`);let o=t.subarray(0,-r);for(let s=0;s{N(o);let{b:i,o:c,out:a}=Xr(o,r,s),f=Kt(e),l=0;for(;l+4<=i.length;){let{s0:u,s1:p,s2:y,s3:g}=lt(f,i[l+0],i[l+1],i[l+2],i[l+3]);c[l++]=u,c[l++]=p,c[l++]=y,c[l++]=g}if(r){let u=Fr(o.subarray(l*4)),{s0:p,s1:y,s2:g,s3:h}=lt(f,u[0],u[1],u[2],u[3]);c[l++]=p,c[l++]=y,c[l++]=g,c[l++]=h}return f.fill(0),a},decrypt:(o,s)=>{Yr(o);let i=Gr(e),c=ce(o.length,s),a=H(o),f=H(c);for(let l=0;l+4<=a.length;){let{s0:u,s1:p,s2:y,s3:g}=Jr(i,a[l+0],a[l+1],a[l+2],a[l+3]);f[l++]=u,f[l++]=p,f[l++]=y,f[l++]=g}return i.fill(0),Qr(c,r)}}}),Vn=mt({blockSize:16,nonceLength:16},function(e,n,r={}){N(e),N(n,16);let o=!r.disablePadding;return{encrypt:(s,i)=>{let c=Kt(e),{b:a,o:f,out:l}=Xr(s,o,i),u=H(n),p=u[0],y=u[1],g=u[2],h=u[3],d=0;for(;d+4<=a.length;)p^=a[d+0],y^=a[d+1],g^=a[d+2],h^=a[d+3],{s0:p,s1:y,s2:g,s3:h}=lt(c,p,y,g,h),f[d++]=p,f[d++]=y,f[d++]=g,f[d++]=h;if(o){let w=Fr(s.subarray(d*4));p^=w[0],y^=w[1],g^=w[2],h^=w[3],{s0:p,s1:y,s2:g,s3:h}=lt(c,p,y,g,h),f[d++]=p,f[d++]=y,f[d++]=g,f[d++]=h}return c.fill(0),l},decrypt:(s,i)=>{Yr(s);let c=Gr(e),a=H(n),f=ce(s.length,i),l=H(s),u=H(f),p=a[0],y=a[1],g=a[2],h=a[3];for(let d=0;d+4<=l.length;){let w=p,b=y,m=g,A=h;p=l[d+0],y=l[d+1],g=l[d+2],h=l[d+3];let{s0:I,s1:B,s2:_,s3:S}=Jr(c,p,y,g,h);u[d++]=I^w,u[d++]=B^b,u[d++]=_^m,u[d++]=S^A}return c.fill(0),Qr(f,o)}}}),Ol=mt({blockSize:16,nonceLength:16},function(e,n){N(e),N(n,16);function r(o,s,i){let c=Kt(e),a=o.length;i=ce(a,i);let f=H(o),l=H(i),u=s?l:f,p=H(n),y=p[0],g=p[1],h=p[2],d=p[3];for(let b=0;b+4<=f.length;){let{s0:m,s1:A,s2:I,s3:B}=lt(c,y,g,h,d);l[b+0]=f[b+0]^m,l[b+1]=f[b+1]^A,l[b+2]=f[b+2]^I,l[b+3]=f[b+3]^B,y=u[b++],g=u[b++],h=u[b++],d=u[b++]}let w=et*Math.floor(f.length/Mn);if(wr(o,!0,s),decrypt:(o,s)=>r(o,!1,s)}});function to(t,e,n,r,o){let s=t.create(n,r.length+(o?.length||0));o&&s.update(o),s.update(r);let i=new Uint8Array(16),c=Mt(i);return o&&Xt(c,0,BigInt(o.length*8),e),Xt(c,8,BigInt(r.length*8),e),s.update(i),s.digest()}var Rl=mt({blockSize:16,nonceLength:12,tagLength:16},function(e,n,r){if(N(n),n.length===0)throw new Error("aes/gcm: empty nonce");let o=16;function s(c,a,f){let l=to(Pn,!1,c,f,r);for(let u=0;u{N(c);let{xk:a,authKey:f,counter:l,tagMask:u}=i(),p=new Uint8Array(c.length+o);ge(a,!1,l,c,p);let y=s(f,u,p.subarray(0,p.length-o));return p.set(y,c.length),a.fill(0),p},decrypt:c=>{if(N(c),c.lengthr=>{if(!Number.isSafeInteger(r)||e>r||r>n)throw new Error(`${t}: invalid value=${r}, must be [${e}..${n}]`)},Cl=mt({blockSize:16,nonceLength:12,tagLength:16},function(e,n,r){let s=ze("AAD",0,68719476736),i=ze("plaintext",0,2**36),c=ze("nonce",12,12),a=ze("ciphertext",16,2**36+16);N(n),c(n.length),r&&(N(r),s(r.length));function f(){let p=e.length;if(p!==16&&p!==24&&p!==32)throw new Error(`key length must be 16, 24 or 32 bytes, got: ${p} bytes`);let y=Kt(e),g=new Uint8Array(p),h=new Uint8Array(16),d=H(n),w=0,b=d[0],m=d[1],A=d[2],I=0;for(let B of[h,g].map(H)){let _=H(B);for(let S=0;S<_.length;S+=2){let{s0:R,s1:k}=lt(y,w,b,m,A);_[S+0]=R,_[S+1]=k,w=++I}}return y.fill(0),{authKey:h,encKey:Kt(g)}}function l(p,y,g){let h=to(Wr,!0,y,g,r);for(let I=0;I<12;I++)h[I]^=n[I];h[15]&=127;let d=H(h),w=d[0],b=d[1],m=d[2],A=d[3];return{s0:w,s1:b,s2:m,s3:A}=lt(p,w,b,m,A),d[0]=w,d[1]=b,d[2]=m,d[3]=A,h}function u(p,y,g){let h=y.slice();return h[15]|=128,ge(p,!0,h,g)}return{encrypt:p=>{N(p),i(p.length);let{encKey:y,authKey:g}=f(),h=l(y,g,p),d=new Uint8Array(p.length+16);return d.set(h,p.length),d.set(u(y,h,p)),y.fill(0),g.fill(0),d},decrypt:p=>{N(p),a(p.length);let y=p.subarray(-16),{encKey:g,authKey:h}=f(),d=u(g,y,p.subarray(0,-16)),w=l(g,h,d);if(g.fill(0),h.fill(0),!Yt(y,w))throw new Error("invalid polyval tag");return d}}});var X=(t,e)=>t[e++]&255|(t[e++]&255)<<8,Dn=class{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=xt(e),N(e,32);let n=X(e,0),r=X(e,2),o=X(e,4),s=X(e,6),i=X(e,8),c=X(e,10),a=X(e,12),f=X(e,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|s<<9)&8191,this.r[4]=(s>>>4|i<<12)&255,this.r[5]=i>>>1&8190,this.r[6]=(i>>>14|c<<2)&8191,this.r[7]=(c>>>11|a<<5)&8065,this.r[8]=(a>>>8|f<<8)&8191,this.r[9]=f>>>5&127;for(let l=0;l<8;l++)this.pad[l]=X(e,16+2*l)}process(e,n,r=!1){let o=r?0:2048,{h:s,r:i}=this,c=i[0],a=i[1],f=i[2],l=i[3],u=i[4],p=i[5],y=i[6],g=i[7],h=i[8],d=i[9],w=X(e,n+0),b=X(e,n+2),m=X(e,n+4),A=X(e,n+6),I=X(e,n+8),B=X(e,n+10),_=X(e,n+12),S=X(e,n+14),R=s[0]+(w&8191),k=s[1]+((w>>>13|b<<3)&8191),U=s[2]+((b>>>10|m<<6)&8191),P=s[3]+((m>>>7|A<<9)&8191),$=s[4]+((A>>>4|I<<12)&8191),j=s[5]+(I>>>1&8191),x=s[6]+((I>>>14|B<<2)&8191),E=s[7]+((B>>>11|_<<5)&8191),T=s[8]+((_>>>8|S<<8)&8191),O=s[9]+(S>>>5|o),v=0,C=v+R*c+k*(5*d)+U*(5*h)+P*(5*g)+$*(5*y);v=C>>>13,C&=8191,C+=j*(5*p)+x*(5*u)+E*(5*l)+T*(5*f)+O*(5*a),v+=C>>>13,C&=8191;let M=v+R*a+k*c+U*(5*d)+P*(5*h)+$*(5*g);v=M>>>13,M&=8191,M+=j*(5*y)+x*(5*p)+E*(5*u)+T*(5*l)+O*(5*f),v+=M>>>13,M&=8191;let q=v+R*f+k*a+U*c+P*(5*d)+$*(5*h);v=q>>>13,q&=8191,q+=j*(5*g)+x*(5*y)+E*(5*p)+T*(5*u)+O*(5*l),v+=q>>>13,q&=8191;let G=v+R*l+k*f+U*a+P*c+$*(5*d);v=G>>>13,G&=8191,G+=j*(5*h)+x*(5*g)+E*(5*y)+T*(5*p)+O*(5*u),v+=G>>>13,G&=8191;let F=v+R*u+k*l+U*f+P*a+$*c;v=F>>>13,F&=8191,F+=j*(5*d)+x*(5*h)+E*(5*g)+T*(5*y)+O*(5*p),v+=F>>>13,F&=8191;let rt=v+R*p+k*u+U*l+P*f+$*a;v=rt>>>13,rt&=8191,rt+=j*c+x*(5*d)+E*(5*h)+T*(5*g)+O*(5*y),v+=rt>>>13,rt&=8191;let it=v+R*y+k*p+U*u+P*l+$*f;v=it>>>13,it&=8191,it+=j*a+x*c+E*(5*d)+T*(5*h)+O*(5*g),v+=it>>>13,it&=8191;let tt=v+R*g+k*y+U*p+P*u+$*l;v=tt>>>13,tt&=8191,tt+=j*f+x*a+E*c+T*(5*d)+O*(5*h),v+=tt>>>13,tt&=8191;let yt=v+R*h+k*g+U*y+P*p+$*u;v=yt>>>13,yt&=8191,yt+=j*l+x*f+E*a+T*c+O*(5*d),v+=yt>>>13,yt&=8191;let nt=v+R*d+k*h+U*g+P*y+$*p;v=nt>>>13,nt&=8191,nt+=j*u+x*l+E*f+T*a+O*c,v+=nt>>>13,nt&=8191,v=(v<<2)+v|0,v=v+C|0,C=v&8191,v=v>>>13,M+=v,s[0]=C,s[1]=M,s[2]=q,s[3]=G,s[4]=F,s[5]=rt,s[6]=it,s[7]=tt,s[8]=yt,s[9]=nt}finalize(){let{h:e,pad:n}=this,r=new Uint16Array(10),o=e[1]>>>13;e[1]&=8191;for(let c=2;c<10;c++)e[c]+=o,o=e[c]>>>13,e[c]&=8191;e[0]+=o*5,o=e[0]>>>13,e[0]&=8191,e[1]+=o,o=e[1]>>>13,e[1]&=8191,e[2]+=o,r[0]=e[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=e[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let s=(o^1)-1;for(let c=0;c<10;c++)r[c]&=s;s=~s;for(let c=0;c<10;c++)e[c]=e[c]&s|r[c];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let i=e[0]+n[0];e[0]=i&65535;for(let c=1;c<8;c++)i=(e[c]+n[c]|0)+(i>>>16)|0,e[c]=i&65535}update(e){qt(this);let{buffer:n,blockLen:r}=this;e=xt(e);let o=e.length;for(let s=0;s>>0,e[s++]=r[i]>>>8;return e}digest(){let{buffer:e,outputLen:n}=this;this.digestInto(e);let r=e.slice(0,n);return this.destroy(),r}};function bi(t){let e=(r,o)=>t(o).update(xt(r)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}var eo=bi(t=>new Dn(t));var ro=t=>Uint8Array.from(t.split("").map(e=>e.charCodeAt(0))),xi=ro("expand 16-byte k"),mi=ro("expand 32-byte k"),Ei=H(xi),oo=H(mi),jl=oo.slice();function L(t,e){return t<>>32-e}function Wn(t){return t.byteOffset%4===0}var Ze=64,vi=16,so=2**32-1,no=new Uint32Array;function Bi(t,e,n,r,o,s,i,c){let a=o.length,f=new Uint8Array(Ze),l=H(f),u=Wn(o)&&Wn(s),p=u?H(o):no,y=u?H(s):no;for(let g=0;g=so)throw new Error("arx: counter overflow");let h=Math.min(Ze,a-g);if(u&&h===Ze){let d=g/4;if(g%4!==0)throw new Error("arx: invalid block position");for(let w=0,b;w{N(c),N(a),N(f);let p=f.length;if(l||(l=new Uint8Array(p)),N(l),Ke(u),u<0||u>=so)throw new Error("arx: counter overflow");if(l.length0;)y.pop().fill(0);return l}}function ao(t,e,n,r,o,s=20){let i=t[0],c=t[1],a=t[2],f=t[3],l=e[0],u=e[1],p=e[2],y=e[3],g=e[4],h=e[5],d=e[6],w=e[7],b=o,m=n[0],A=n[1],I=n[2],B=i,_=c,S=a,R=f,k=l,U=u,P=p,$=y,j=g,x=h,E=d,T=w,O=b,v=m,C=A,M=I;for(let G=0;G{t.update(e);let n=e.length%16;n&&t.update(Li.subarray(n))},Si=new Uint8Array(32);function co(t,e,n,r,o){let s=t(e,n,Si),i=eo.create(s);o&&io(i,o),io(i,r);let c=new Uint8Array(16),a=Mt(c);Xt(a,0,BigInt(o?o.length:0),!0),Xt(a,8,BigInt(r.length),!0),i.update(c);let f=i.digest();return s.fill(0),f}var fo=t=>(e,n,r)=>(N(e,32),N(n),{encrypt:(s,i)=>{let c=s.length,a=c+16;i?N(i,a):i=new Uint8Array(a),t(e,n,s,i,1);let f=co(t,e,n,i.subarray(0,-16),r);return i.set(f,c),i},decrypt:(s,i)=>{let c=s.length,a=c-16;if(c<16)throw new Error("encrypted data must be at least 16 bytes");i?N(i,a):i=new Uint8Array(a);let f=s.subarray(0,-16),l=s.subarray(-16),u=co(t,e,n,f,r);if(!Yt(l,u))throw new Error("invalid tag");return t(e,n,f,i,1),i}}),Zl=mt({blockSize:64,nonceLength:12,tagLength:16},fo(Ge)),Gl=mt({blockSize:64,nonceLength:24,tagLength:16},fo(_i));var Je=class extends oe{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,st.hash(e);let r=Rt(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let i=0;inew Je(t,e).update(n).digest();ae.create=(t,e)=>new Je(t,e);function uo(t,e,n){return st.hash(t),n===void 0&&(n=new Uint8Array(t.outputLen)),ae(t,Rt(n),Rt(e))}var Zn=new Uint8Array([0]),lo=new Uint8Array;function ho(t,e,n,r=32){if(st.hash(t),st.number(r),r>255*t.outputLen)throw new Error("Length should be <= 255*HashLen");let o=Math.ceil(r/t.outputLen);n===void 0&&(n=lo);let s=new Uint8Array(o*t.outputLen),i=ae.create(t,e),c=i._cloneInto(),a=new Uint8Array(i.outputLen);for(let f=0;f{for(var n in e)Ti(t,n,{get:e[n],enumerable:!0})},Qt=Symbol("verified"),Ii=t=>t instanceof Object;function po(t){if(!Ii(t)||typeof t.kind!="number"||typeof t.content!="string"||typeof t.created_at!="number"||typeof t.pubkey!="string"||!t.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(t.tags))return!1;for(let e=0;eyo,QueueNode:()=>go,binarySearch:()=>Gn,insertEventIntoAscendingList:()=>Oi,insertEventIntoDescendingList:()=>ki,normalizeURL:()=>fe,utf8Decoder:()=>Bt,utf8Encoder:()=>gt});var Bt=new TextDecoder("utf-8"),gt=new TextEncoder;function fe(t){t.indexOf("://")===-1&&(t="wss://"+t);let e=new URL(t);return e.pathname=e.pathname.replace(/\/+/g,"/"),e.pathname.endsWith("/")&&(e.pathname=e.pathname.slice(0,-1)),(e.port==="80"&&e.protocol==="ws:"||e.port==="443"&&e.protocol==="wss:")&&(e.port=""),e.searchParams.sort(),e.hash="",e.toString()}function ki(t,e){let[n,r]=Gn(t,o=>e.id===o.id?0:e.created_at===o.created_at?-1:o.created_at-e.created_at);return r||t.splice(n,0,e),t}function Oi(t,e){let[n,r]=Gn(t,o=>e.id===o.id?0:e.created_at===o.created_at?-1:e.created_at-o.created_at);return r||t.splice(n,0,e),t}function Gn(t,e){let n=0,r=t.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),s=e(t[o]);if(s===0)return[o,!0];s<0?r=o-1:n=o+1}return[n,!1]}var go=class{value;next=null;prev=null;constructor(t){this.value=t}},yo=class{first;last;constructor(){this.first=null,this.last=null}enqueue(t){let e=new go(t);return this.last?this.last===this.first?(this.last=e,this.last.prev=this.first,this.first.next=e):(e.prev=this.last,this.last.next=e,this.last=e):(this.first=e,this.last=e),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){let e=this.first;return this.first=null,this.last=null,e.value}let t=this.first;return this.first=t.next,t.value}},Ri=class{generateSecretKey(){return re.utils.randomPrivateKey()}getPublicKey(t){return J(re.getPublicKey(t))}finalizeEvent(t,e){let n=t;return n.pubkey=J(re.getPublicKey(e)),n.id=Xe(n),n.sig=J(re.sign(Xe(n),e)),n[Qt]=!0,n}verifyEvent(t){if(typeof t[Qt]=="boolean")return t[Qt];let e=Xe(t);if(e!==t.id)return t[Qt]=!1,!1;try{let n=re.verify(t.sig,e,t.pubkey);return t[Qt]=n,n}catch{return t[Qt]=!1,!1}}};function Ci(t){if(!po(t))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,t.pubkey,t.created_at,t.kind,t.tags,t.content])}function Xe(t){let e=Ht(gt.encode(Ci(t)));return J(e)}var Qe=new Ri,iu=Qe.generateSecretKey,cu=Qe.getPublicKey,Vt=Qe.finalizeEvent,Fe=Qe.verifyEvent,Ni={};D(Ni,{Application:()=>Nc,BadgeAward:()=>Di,BadgeDefinition:()=>Tc,BlockedRelaysList:()=>dc,BookmarkList:()=>lc,Bookmarksets:()=>_c,Calendar:()=>Kc,CalendarEventRSVP:()=>Vc,ChannelCreation:()=>Eo,ChannelHideMessage:()=>Ao,ChannelMessage:()=>Bo,ChannelMetadata:()=>vo,ChannelMuteUser:()=>_o,ClassifiedListing:()=>$c,ClientAuth:()=>Lo,CommunitiesList:()=>uc,CommunityDefinition:()=>zc,CommunityPostApproval:()=>Fi,Contacts:()=>Mi,CreateOrUpdateProduct:()=>kc,CreateOrUpdateStall:()=>Uc,Curationsets:()=>Lc,Date:()=>Mc,DraftClassifiedListing:()=>qc,DraftLong:()=>Rc,Emojisets:()=>Cc,EncryptedDirectMessage:()=>ji,EncryptedDirectMessages:()=>Ki,EventDeletion:()=>Vi,FileMetadata:()=>Zi,FileServerPreference:()=>wc,Followsets:()=>vc,GenericRepost:()=>Wi,Genericlists:()=>Bc,HTTPAuth:()=>Xn,Handlerinformation:()=>Wc,Handlerrecommendation:()=>Dc,Highlights:()=>ic,InterestsList:()=>gc,Interestsets:()=>Ic,JobFeedback:()=>nc,JobRequest:()=>tc,JobResult:()=>ec,Label:()=>Qi,LightningPubRPC:()=>xc,LiveChatMessage:()=>Gi,LiveEvent:()=>Hc,LongFormArticle:()=>Oc,Metadata:()=>Pi,Mutelist:()=>cc,NWCWalletInfo:()=>bc,NWCWalletRequest:()=>So,NWCWalletResponse:()=>mc,NostrConnect:()=>Ec,OpenTimestamps:()=>zi,Pinlist:()=>ac,ProblemTracker:()=>Ji,ProfileBadges:()=>Sc,PublicChatsList:()=>hc,Reaction:()=>Yn,RecommendRelay:()=>qi,RelayList:()=>fc,Relaysets:()=>Ac,Report:()=>Yi,Reporting:()=>Xi,Repost:()=>Jn,SearchRelaysList:()=>pc,ShortTextNote:()=>$i,Time:()=>jc,UserEmojiList:()=>yc,UserStatuses:()=>Pc,Zap:()=>sc,ZapGoal:()=>rc,ZapRequest:()=>oc,classifyKind:()=>Hi,isEphemeralKind:()=>xo,isParameterizedReplaceableKind:()=>mo,isRegularKind:()=>wo,isReplaceableKind:()=>bo});function wo(t){return 1e3<=t&&t<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(t)}function bo(t){return[0,3].includes(t)||1e4<=t&&t<2e4}function xo(t){return 2e4<=t&&t<3e4}function mo(t){return 3e4<=t&&t<4e4}function Hi(t){return wo(t)?"regular":bo(t)?"replaceable":xo(t)?"ephemeral":mo(t)?"parameterized":"unknown"}var Pi=0,$i=1,qi=2,Mi=3,ji=4,Ki=4,Vi=5,Jn=6,Yn=7,Di=8,Wi=16,Eo=40,vo=41,Bo=42,Ao=43,_o=44,zi=1040,Zi=1063,Gi=1311,Ji=1971,Yi=1984,Xi=1984,Qi=1985,Fi=4550,tc=5999,ec=6999,nc=7e3,rc=9041,oc=9734,sc=9735,ic=9802,cc=1e4,ac=10001,fc=10002,lc=10003,uc=10004,hc=10005,dc=10006,pc=10007,gc=10015,yc=10030,wc=10096,bc=13194,xc=21e3,Lo=22242,So=23194,mc=23195,Ec=24133,Xn=27235,vc=3e4,Bc=30001,Ac=30002,_c=30003,Lc=30004,Sc=30008,Tc=30009,Ic=30015,Uc=30017,kc=30018,Oc=30023,Rc=30024,Cc=30030,Nc=30078,Hc=30311,Pc=30315,$c=30402,qc=30403,Mc=31922,jc=31923,Kc=31924,Vc=31925,Dc=31989,Wc=31990,zc=34550;function Zc(t,e){if(t.ids&&t.ids.indexOf(e.id)===-1||t.kinds&&t.kinds.indexOf(e.kind)===-1||t.authors&&t.authors.indexOf(e.pubkey)===-1)return!1;for(let n in t)if(n[0]==="#"){let r=n.slice(1),o=t[`#${r}`];if(o&&!e.tags.find(([s,i])=>s===n.slice(1)&&o.indexOf(i)!==-1))return!1}return!(t.since&&e.created_att.until)}function Gc(t,e){for(let n=0;ntn,getInt:()=>To,getSubscriptionId:()=>Io,matchEventId:()=>Yc,matchEventKind:()=>Qc,matchEventPubkey:()=>Xc});function tn(t,e){let n=e.length+3,r=t.indexOf(`"${e}":`)+n,o=t.slice(r).indexOf('"')+r+1;return t.slice(o,o+64)}function To(t,e){let n=e.length,r=t.indexOf(`"${e}":`)+n+3,o=t.slice(r),s=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,s),10)}function Io(t){let e=t.slice(0,22).indexOf('"EVENT"');if(e===-1)return null;let n=t.slice(e+7+1).indexOf('"');if(n===-1)return null;let r=e+7+1+n,o=t.slice(r+1,80).indexOf('"');if(o===-1)return null;let s=r+1+o;return t.slice(r+1,s)}function Yc(t,e){return e===tn(t,"id")}function Xc(t,e){return e===tn(t,"pubkey")}function Qc(t,e){return e===To(t,"kind")}var Fc={};D(Fc,{makeAuthEvent:()=>Uo});function Uo(t,e){return{kind:Lo,created_at:Math.floor(Date.now()/1e3),tags:[["relay",t],["challenge",e]],content:""}}function ta(){return K(this,null,function*(){return new Promise(t=>{let e=new MessageChannel,n=()=>{e.port1.removeEventListener("message",n),t()};e.port1.addEventListener("message",n),e.port2.postMessage(0),e.port1.start()})})}var ea=t=>(t[Qt]=!0,!0),ko=class{url;_connected=!1;onclose=null;onnotice=t=>console.debug(`NOTICE from ${this.url}: ${t}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new yo;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(t,e){this.url=fe(t),this.verifyEvent=e.verifyEvent,this._WebSocket=e.websocketImplementation||WebSocket}static connect(t,e){return K(this,null,function*(){let n=new ko(t,e);return yield n.connect(),n})}closeAllSubscriptions(t){for(let[e,n]of this.openSubs)n.close(t);this.openSubs.clear();for(let[e,n]of this.openEventPublishes)n.reject(new Error(t));this.openEventPublishes.clear();for(let[e,n]of this.openCountRequests)n.reject(new Error(t));this.openCountRequests.clear()}get connected(){return this._connected}connect(){return K(this,null,function*(){return this.connectionPromise?this.connectionPromise:(this.challenge=void 0,this.connectionPromise=new Promise((t,e)=>{this.connectionTimeoutHandle=setTimeout(()=>{e("connection timed out"),this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection timed out")},this.connectionTimeout);try{this.ws=new this._WebSocket(this.url)}catch(n){e(n);return}this.ws.onopen=()=>{clearTimeout(this.connectionTimeoutHandle),this._connected=!0,t()},this.ws.onerror=n=>{e(n.message||"websocket error"),this._connected&&(this._connected=!1,this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection errored"))},this.ws.onclose=()=>K(this,null,function*(){this._connected&&(this._connected=!1,this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection closed"))}),this.ws.onmessage=this._onmessage.bind(this)}),this.connectionPromise)})}runQueue(){return K(this,null,function*(){for(this.queueRunning=!0;this.handleNext()!==!1;)yield ta();this.queueRunning=!1})}handleNext(){let t=this.incomingMessageQueue.dequeue();if(!t)return!1;let e=Io(t);if(e){let n=this.openSubs.get(e);if(!n)return;let r=tn(t,"id"),o=n.alreadyHaveEvent?.(r);if(n.receivedEvent?.(this,r),o)return}try{let n=JSON.parse(t);switch(n[0]){case"EVENT":{let r=this.openSubs.get(n[1]),o=n[2];this.verifyEvent(o)&&Gc(r.filters,o)&&r.onevent(o);return}case"COUNT":{let r=n[1],o=n[2],s=this.openCountRequests.get(r);s&&(s.resolve(o.count),this.openCountRequests.delete(r));return}case"EOSE":{let r=this.openSubs.get(n[1]);if(!r)return;r.receivedEose();return}case"OK":{let r=n[1],o=n[2],s=n[3],i=this.openEventPublishes.get(r);o?i.resolve(s):i.reject(new Error(s)),this.openEventPublishes.delete(r);return}case"CLOSED":{let r=n[1],o=this.openSubs.get(r);if(!o)return;o.closed=!0,o.close(n[2]);return}case"NOTICE":this.onnotice(n[1]);return;case"AUTH":{this.challenge=n[1],this._onauth?.(n[1]);return}}}catch{return}}send(t){return K(this,null,function*(){if(!this.connectionPromise)throw new Error("sending on closed connection");this.connectionPromise.then(()=>{this.ws?.send(t)})})}auth(t){return K(this,null,function*(){if(!this.challenge)throw new Error("can't perform auth, no challenge was received");let e=yield t(Uo(this.url,this.challenge)),n=new Promise((r,o)=>{this.openEventPublishes.set(e.id,{resolve:r,reject:o})});return this.send('["AUTH",'+JSON.stringify(e)+"]"),n})}publish(t){return K(this,null,function*(){let e=new Promise((n,r)=>{this.openEventPublishes.set(t.id,{resolve:n,reject:r})});return this.send('["EVENT",'+JSON.stringify(t)+"]"),e})}count(t,e){return K(this,null,function*(){this.serial++;let n=e?.id||"count:"+this.serial,r=new Promise((o,s)=>{this.openCountRequests.set(n,{resolve:o,reject:s})});return this.send('["COUNT","'+n+'",'+JSON.stringify(t).substring(1)),r})}subscribe(t,e){let n=this.prepareSubscription(t,e);return n.fire(),n}prepareSubscription(t,e){this.serial++;let n=e.id||"sub:"+this.serial,r=new na(this,n,t,e);return this.openSubs.set(n,r),r}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(t){this.incomingMessageQueue.enqueue(t.data),this.queueRunning||this.runQueue()}},na=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(t,e,n,r){this.relay=t,this.filters=n,this.id=e,this.alreadyHaveEvent=r.alreadyHaveEvent,this.receivedEvent=r.receivedEvent,this.eoseTimeout=r.eoseTimeout||t.baseEoseTimeout,this.oneose=r.oneose,this.onclose=r.onclose,this.onevent=r.onevent||(o=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,o)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(t="closed by caller"){!this.closed&&this.relay.connected&&(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),this.onclose?.(t)}},ra;try{ra=WebSocket}catch{}var oa=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(t){this.verifyEvent=t.verifyEvent,this._WebSocket=t.websocketImplementation}ensureRelay(t,e){return K(this,null,function*(){t=fe(t);let n=this.relays.get(t);return n||(n=new ko(t,{verifyEvent:this.trustedRelayURLs.has(t)?ea:this.verifyEvent,websocketImplementation:this._WebSocket}),e?.connectionTimeout&&(n.connectionTimeout=e.connectionTimeout),this.relays.set(t,n)),yield n.connect(),n})}close(t){t.map(fe).forEach(e=>{this.relays.get(e)?.close()})}subscribeMany(t,e,n){return this.subscribeManyMap(Object.fromEntries(t.map(r=>[r,e])),n)}subscribeManyMap(t,e){this.trackRelays&&(e.receivedEvent=(p,y)=>{let g=this.seenOn.get(y);g||(g=new Set,this.seenOn.set(y,g)),g.add(p)});let n=new Set,r=[],o=Object.keys(t).length,s=[],i=p=>{s[p]=!0,s.filter(y=>y).length===o&&(e.oneose?.(),i=()=>{})},c=[],a=(p,y)=>{i(p),c[p]=y,c.filter(g=>g).length===o&&(e.onclose?.(c),a=()=>{})},f=p=>{if(e.alreadyHaveEvent?.(p))return!0;let y=n.has(p);return n.add(p),y},l=Promise.all(Object.entries(t).map((p,y,g)=>K(this,null,function*(){if(g.indexOf(p)!==y){a(y,"duplicate url");return}let[h,d]=p;h=fe(h);let w;try{w=yield this.ensureRelay(h,{connectionTimeout:e.maxWait?Math.max(e.maxWait*.8,e.maxWait-1e3):void 0})}catch(m){a(y,m?.message||String(m));return}let b=w.subscribe(d,ut(Q({},e),{oneose:()=>i(y),onclose:m=>a(y,m),alreadyHaveEvent:f,eoseTimeout:e.maxWait}));r.push(b)})));return{close(){return K(this,null,function*(){yield l,r.forEach(p=>{p.close()})})}}}subscribeManyEose(t,e,n){let r=this.subscribeMany(t,e,ut(Q({},n),{oneose(){r.close()}}));return r}querySync(t,e,n){return K(this,null,function*(){return new Promise(r=>K(this,null,function*(){let o=[];this.subscribeManyEose(t,[e],ut(Q({},n),{onevent(s){o.push(s)},onclose(s){r(o)}}))}))})}get(t,e,n){return K(this,null,function*(){e.limit=1;let r=yield this.querySync(t,e,n);return r.sort((o,s)=>s.created_at-o.created_at),r[0]||null})}publish(t,e){return t.map(fe).map((n,r,o)=>K(this,null,function*(){return o.indexOf(n)!==r?Promise.reject("duplicate url"):(yield this.ensureRelay(n)).publish(e)}))}listConnectionStatus(){let t=new Map;return this.relays.forEach((e,n)=>t.set(n,e.connected)),t}destroy(){this.relays.forEach(t=>t.close()),this.relays=new Map}},Oo;try{Oo=WebSocket}catch{}var au=class extends oa{constructor(){super({verifyEvent:Fe,websocketImplementation:Oo})}},sa={};D(sa,{BECH32_REGEX:()=>Ro,Bech32MaxSize:()=>Qn,decode:()=>en,encodeBytes:()=>nn,naddrEncode:()=>ha,neventEncode:()=>ua,noteEncode:()=>fa,nprofileEncode:()=>la,npubEncode:()=>aa,nrelayEncode:()=>da,nsecEncode:()=>ca});var Qn=5e3,Ro=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ia(t){let e=new Uint8Array(4);return e[0]=t>>24&255,e[1]=t>>16&255,e[2]=t>>8&255,e[3]=t&255,e}function en(t){let{prefix:e,words:n}=$t.decode(t,Qn),r=new Uint8Array($t.fromWords(n));switch(e){case"nprofile":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:J(o[0][0]),relays:o[1]?o[1].map(s=>Bt.decode(s)):[]}}}case"nevent":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:J(o[0][0]),relays:o[1]?o[1].map(s=>Bt.decode(s)):[],author:o[2]?.[0]?J(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(J(o[3][0]),16):void 0}}}case"naddr":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Bt.decode(o[0][0]),pubkey:J(o[2][0]),kind:parseInt(J(o[3][0]),16),relays:o[1]?o[1].map(s=>Bt.decode(s)):[]}}}case"nrelay":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:Bt.decode(o[0][0])}}case"nsec":return{type:e,data:r};case"npub":case"note":return{type:e,data:J(r)};default:throw new Error(`unknown prefix ${e}`)}}function Ye(t){let e={},n=t;for(;n.length>0;){let r=n[0],o=n[1],s=n.slice(2,2+o);if(n=n.slice(2+o),s.lengthgt.encode(n))});return ye("nprofile",e)}function ua(t){let e;t.kind!==void 0&&(e=ia(t.kind));let n=rn({0:[Gt(t.id)],1:(t.relays||[]).map(r=>gt.encode(r)),2:t.author?[Gt(t.author)]:[],3:e?[new Uint8Array(e)]:[]});return ye("nevent",n)}function ha(t){let e=new ArrayBuffer(4);new DataView(e).setUint32(0,t.kind,!1);let n=rn({0:[gt.encode(t.identifier)],1:(t.relays||[]).map(r=>gt.encode(r)),2:[Gt(t.pubkey)],3:[new Uint8Array(e)]});return ye("naddr",n)}function da(t){let e=rn({0:[gt.encode(t)]});return ye("nrelay",e)}function rn(t){let e=[];return Object.entries(t).reverse().forEach(([n,r])=>{r.forEach(o=>{let s=new Uint8Array(o.length+2);s.set([parseInt(n)],0),s.set([o.length],1),s.set(o,2),e.push(s)})}),se(...e)}var pa={};D(pa,{decrypt:()=>ga,encrypt:()=>Co});function Co(t,e,n){return K(this,null,function*(){let r=t instanceof Uint8Array?J(t):t,o=Ot.getSharedSecret(r,"02"+e),s=No(o),i=Uint8Array.from(He(16)),c=gt.encode(n),a=Vn(s,i).encrypt(c),f=at.encode(new Uint8Array(a)),l=at.encode(new Uint8Array(i.buffer));return`${f}?iv=${l}`})}function ga(t,e,n){return K(this,null,function*(){let r=t instanceof Uint8Array?J(t):t,[o,s]=n.split("?iv="),i=Ot.getSharedSecret(r,"02"+e),c=No(i),a=at.decode(s),f=at.decode(o),l=Vn(c,a).decrypt(f);return Bt.decode(l)})}function No(t){return t.slice(1,33)}var ya={};D(ya,{NIP05_REGEX:()=>Ho,isValid:()=>xa,queryProfile:()=>Po,searchDomain:()=>ba,useFetchImplementation:()=>wa});var Ho=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,on;try{on=fetch}catch{}function wa(t){on=t}function ba(t,e=""){return K(this,null,function*(){try{let n=`https://${t}/.well-known/nostr.json?name=${e}`;return(yield(yield on(n,{redirect:"error"})).json()).names}catch{return{}}})}function Po(t){return K(this,null,function*(){let e=t.match(Ho);if(!e)return null;let[n,r="_",o]=e;try{let s=`https://${o}/.well-known/nostr.json?name=${r}`,i=yield(yield on(s,{redirect:"error"})).json(),c=i.names[r];return c?{pubkey:c,relays:i.relays?.[c]}:null}catch{return null}})}function xa(t,e){return K(this,null,function*(){let n=yield Po(e);return n?n.pubkey===t:!1})}var ma={};D(ma,{parse:()=>Ea});function Ea(t){let e={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(let r of t.tags)r[0]==="e"&&r[1]&&n.push(r),r[0]==="p"&&r[1]&&e.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;rAa,useFetchImplementation:()=>Ba});var $o;try{$o=fetch}catch{}function Ba(t){$o=t}function Aa(t){return K(this,null,function*(){return yield(yield fetch(t.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})}var _a={};D(_a,{getPow:()=>qo,minePow:()=>La});function qo(t){let e=0;for(let n=0;n=e)break}return r}var Sa={};D(Sa,{finishRepostEvent:()=>Ta,getRepostedEvent:()=>Ia,getRepostedEventPointer:()=>Mo});function Ta(t,e,n,r){return Vt({kind:Jn,tags:[...t.tags??[],["e",e.id,n],["p",e.pubkey]],content:t.content===""?"":JSON.stringify(e),created_at:t.created_at},r)}function Mo(t){if(t.kind!==Jn)return;let e,n;for(let r=t.tags.length-1;r>=0&&(e===void 0||n===void 0);r--){let o=t.tags[r];o.length>=2&&(o[0]==="e"&&e===void 0?e=o:o[0]==="p"&&n===void 0&&(n=o))}if(e!==void 0)return{id:e[1],relays:[e[2],n?.[2]].filter(r=>typeof r=="string"),author:n?.[1]}}function Ia(t,{skipVerification:e}={}){let n=Mo(t);if(n===void 0||t.content==="")return;let r;try{r=JSON.parse(t.content)}catch{return}if(r.id===n.id&&!(!e&&!Fe(r)))return r}var Ua={};D(Ua,{NOSTR_URI_REGEX:()=>sn,parse:()=>Oa,test:()=>ka});var sn=new RegExp(`nostr:(${Ro.source})`);function ka(t){return typeof t=="string"&&new RegExp(`^${sn.source}$`).test(t)}function Oa(t){let e=t.match(new RegExp(`^${sn.source}$`));if(!e)throw new Error(`Invalid Nostr URI: ${t}`);return{uri:e[0],value:e[1],decoded:en(e[1])}}var Ra={};D(Ra,{finishReactionEvent:()=>Ca,getReactedEventPointer:()=>Na});function Ca(t,e,n){let r=e.tags.filter(o=>o.length>=2&&(o[0]==="e"||o[0]==="p"));return Vt(ut(Q({},t),{kind:Yn,tags:[...t.tags??[],...r,["e",e.id],["p",e.pubkey]],content:t.content??"+"}),n)}function Na(t){if(t.kind!==Yn)return;let e,n;for(let r=t.tags.length-1;r>=0&&(e===void 0||n===void 0);r--){let o=t.tags[r];o.length>=2&&(o[0]==="e"&&e===void 0?e=o:o[0]==="p"&&n===void 0&&(n=o))}if(!(e===void 0||n===void 0))return{id:e[1],relays:[e[2],n[2]].filter(r=>r!==void 0),author:n[1]}}var Ha={};D(Ha,{matchAll:()=>Pa,regex:()=>Fn,replaceAll:()=>$a});var Fn=()=>new RegExp(`\\b${sn.source}\\b`,"g");function*Pa(t){let e=t.matchAll(Fn());for(let n of e)try{let[r,o]=n;yield{uri:r,value:o,decoded:en(o),start:n.index,end:n.index+r.length}}catch{}}function $a(t,e){return t.replaceAll(Fn(),(n,r)=>e({uri:n,value:r,decoded:en(r)}))}var qa={};D(qa,{channelCreateEvent:()=>Ma,channelHideMessageEvent:()=>Va,channelMessageEvent:()=>Ka,channelMetadataEvent:()=>ja,channelMuteUserEvent:()=>Da});var Ma=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:Eo,tags:[...t.tags??[]],content:n,created_at:t.created_at},e)},ja=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:vo,tags:[["e",t.channel_create_event_id],...t.tags??[]],content:n,created_at:t.created_at},e)},Ka=(t,e)=>{let n=[["e",t.channel_create_event_id,t.relay_url,"root"]];return t.reply_to_channel_message_event_id&&n.push(["e",t.reply_to_channel_message_event_id,t.relay_url,"reply"]),Vt({kind:Bo,tags:[...n,...t.tags??[]],content:t.content,created_at:t.created_at},e)},Va=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:Ao,tags:[["e",t.channel_message_event_id],...t.tags??[]],content:n,created_at:t.created_at},e)},Da=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:_o,tags:[["p",t.pubkey_to_mute],...t.tags??[]],content:n,created_at:t.created_at},e)},Wa={};D(Wa,{EMOJI_SHORTCODE_REGEX:()=>jo,matchAll:()=>za,regex:()=>tr,replaceAll:()=>Za});var jo=/:(\w+):/,tr=()=>new RegExp(`\\B${jo.source}\\B`,"g");function*za(t){let e=t.matchAll(tr());for(let n of e)try{let[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function Za(t,e){return t.replaceAll(tr(),(n,r)=>e({shortcode:n,name:r}))}var Ga={};D(Ga,{useFetchImplementation:()=>Ja,validateGithub:()=>Ya});var er;try{er=fetch}catch{}function Ja(t){er=t}function Ya(t,e,n){return K(this,null,function*(){try{return(yield(yield er(`https://gist.github.com/${e}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${t}`}catch{return!1}})}var Xa={};D(Xa,{decrypt:()=>Go,encrypt:()=>Zo,getConversationKey:()=>Do,v2:()=>nf});var Ko=1,Vo=65535;function Do(t,e){let n=Ot.getSharedSecret(t,"02"+e).subarray(1,33);return uo(Ht,n,"nip44-v2")}function Wo(t,e){let n=ho(Ht,t,e,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}}function nr(t){if(!Number.isSafeInteger(t)||t<1)throw new Error("expected positive integer");if(t<=32)return 32;let e=1<Vo)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");let e=new Uint8Array(2);return new DataView(e.buffer).setUint16(0,t,!1),e}function Fa(t){let e=gt.encode(t),n=e.length,r=Qa(n),o=new Uint8Array(nr(n)-n);return se(r,e,o)}function tf(t){let e=new DataView(t.buffer).getUint16(0),n=t.subarray(2,2+e);if(eVo||n.length!==e||t.length!==2+nr(e))throw new Error("invalid padding");return Bt.decode(n)}function zo(t,e,n){if(n.length!==32)throw new Error("AAD associated data must be 32 bytes");let r=se(n,e);return ae(Ht,t,r)}function ef(t){if(typeof t!="string")throw new Error("payload must be a valid string");let e=t.length;if(e<132||e>87472)throw new Error("invalid payload length: "+e);if(t[0]==="#")throw new Error("unknown encryption version");let n;try{n=at.decode(t)}catch(s){throw new Error("invalid base64: "+s.message)}let r=n.length;if(r<99||r>65603)throw new Error("invalid data length: "+r);let o=n[0];if(o!==2)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}function Zo(t,e,n=He(32)){let{chacha_key:r,chacha_nonce:o,hmac_key:s}=Wo(e,n),i=Fa(t),c=Ge(r,o,i),a=zo(s,c,n);return at.encode(se(new Uint8Array([2]),n,c,a))}function Go(t,e){let{nonce:n,ciphertext:r,mac:o}=ef(t),{chacha_key:s,chacha_nonce:i,hmac_key:c}=Wo(e,n),a=zo(c,r,n);if(!Yt(a,o))throw new Error("invalid MAC");let f=Ge(s,i,r);return tf(f)}var nf={utils:{getConversationKey:Do,calcPaddedLen:nr},encrypt:Zo,decrypt:Go},rf={};D(rf,{makeNwcRequestEvent:()=>sf,parseConnectionString:()=>of});function of(t){let{pathname:e,searchParams:n}=new URL(t),r=e,o=n.get("relay"),s=n.get("secret");if(!r||!o||!s)throw new Error("invalid connection string");return{pubkey:r,relay:o,secret:s}}function sf(t,e,n){return K(this,null,function*(){let o=yield Co(e,t,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),s={kind:So,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",t]]};return Vt(s,e)})}var cf={};D(cf,{getZapEndpoint:()=>ff,makeZapReceipt:()=>hf,makeZapRequest:()=>lf,useFetchImplementation:()=>af,validateZapRequest:()=>uf});var rr;try{rr=fetch}catch{}function af(t){rr=t}function ff(t){return K(this,null,function*(){try{let e="",{lud06:n,lud16:r}=JSON.parse(t.content);if(n){let{words:i}=$t.decode(n,1e3),c=$t.fromWords(i);e=Bt.decode(c)}else if(r){let[i,c]=r.split("@");e=new URL(`/.well-known/lnurlp/${i}`,`https://${c}`).toString()}else return null;let s=yield(yield rr(e)).json();if(s.allowsNostr&&s.nostrPubkey)return s.callback}catch{}return null})}function lf({profile:t,event:e,amount:n,relays:r,comment:o=""}){if(!n)throw new Error("amount not given");if(!t)throw new Error("profile not given");let s={kind:9734,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",t],["amount",n.toString()],["relays",...r]]};return e&&s.tags.push(["e",e]),s}function uf(t){let e;try{e=JSON.parse(t)}catch{return"Invalid zap request JSON."}if(!po(e))return"Zap request is not a valid Nostr event.";if(!Fe(e))return"Invalid signature on zap request.";let n=e.tags.find(([s,i])=>s==="p"&&i);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=e.tags.find(([s,i])=>s==="e"&&i);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":e.tags.find(([s,i])=>s==="relays"&&i)?null:"Zap request doesn't have a 'relays' tag."}function hf({zapRequest:t,preimage:e,bolt11:n,paidAt:r}){let o=JSON.parse(t),s=o.tags.filter(([c])=>c==="e"||c==="p"||c==="a"),i={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...s,["P",o.pubkey],["bolt11",n],["description",t]]};return e&&i.tags.push(["preimage",e]),i}var df={};D(df,{getToken:()=>pf,hashPayload:()=>or,unpackEventFromToken:()=>Yo,validateEvent:()=>ns,validateEventKind:()=>Qo,validateEventMethodTag:()=>ts,validateEventPayloadTag:()=>es,validateEventTimestamp:()=>Xo,validateEventUrlTag:()=>Fo,validateToken:()=>gf});var Jo="Nostr ";function pf(t,e,n,r=!1,o){return K(this,null,function*(){let s={kind:Xn,tags:[["u",t],["method",e]],created_at:Math.round(new Date().getTime()/1e3),content:""};o&&s.tags.push(["payload",or(o)]);let i=yield n(s);return(r?Jo:"")+at.encode(gt.encode(JSON.stringify(i)))})}function gf(t,e,n){return K(this,null,function*(){let r=yield Yo(t).catch(s=>{throw s});return yield ns(r,e,n).catch(s=>{throw s})})}function Yo(t){return K(this,null,function*(){if(!t)throw new Error("Missing token");t=t.replace(Jo,"");let e=Bt.decode(at.decode(t));if(!e||e.length===0||!e.startsWith("{"))throw new Error("Invalid token");return JSON.parse(e)})}function Xo(t){return t.created_at?Math.round(new Date().getTime()/1e3)-t.created_at<60:!1}function Qo(t){return t.kind===Xn}function Fo(t,e){let n=t.tags.find(r=>r[0]==="u");return n?n.length>0&&n[1]===e:!1}function ts(t,e){let n=t.tags.find(r=>r[0]==="method");return n?n.length>0&&n[1].toLowerCase()===e.toLowerCase():!1}function or(t){let e=Ht(gt.encode(JSON.stringify(t)));return J(e)}function es(t,e){let n=t.tags.find(o=>o[0]==="payload");if(!n)return!1;let r=or(e);return n.length>0&&n[1]===r}function ns(t,e,n,r){return K(this,null,function*(){if(!Fe(t))throw new Error("Invalid nostr event, signature invalid");if(!Qo(t))throw new Error("Invalid nostr event, kind invalid");if(!Xo(t))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Fo(t,e))throw new Error("Invalid nostr event, url tag invalid");if(!ts(t,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&typeof r=="object"&&Object.keys(r).length>0&&!es(t,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})}export{J as a,at as b,yl as c,iu as d,cu as e,Vt as f,au as g,sa as h,pa as i}; +import{a as Q,b as ut,f as rs,h as K}from"./chunk-LP5NDBXI.js";function ar(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function cn(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function fr(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");ar(t.outputLen),ar(t.blockLen)}function ee(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function lr(t,e){cn(t);let n=e.outputLen;if(t.lengtht instanceof Uint8Array;var xe=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ht=(t,e)=>t<<32-e|t>>>e,os=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!os)throw new Error("Non little-endian hardware is not supported");function ss(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function le(t){if(typeof t=="string"&&(t=ss(t)),!ur(t))throw new Error(`expected Uint8Array, got ${typeof t}`);return t}function hr(...t){let e=new Uint8Array(t.reduce((r,o)=>r+o.length,0)),n=0;return t.forEach(r=>{if(!ur(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}var ne=class{clone(){return this._cloneInto()}},xf={}.toString;function dr(t){let e=r=>t().update(le(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function me(t=32){if(be&&typeof be.getRandomValues=="function")return be.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}function is(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);let o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Ee=class extends ne{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=xe(this.buffer)}update(e){ee(this);let{view:n,buffer:r,blockLen:o}=this;e=le(e);let s=e.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let u=i;ul.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;ut&e^~t&n,as=(t,e,n)=>t&e^t&n^e&n,fs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),It=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ut=new Uint32Array(64),an=class extends Ee{constructor(){super(64,32,8,!1),this.A=It[0]|0,this.B=It[1]|0,this.C=It[2]|0,this.D=It[3]|0,this.E=It[4]|0,this.F=It[5]|0,this.G=It[6]|0,this.H=It[7]|0}get(){let{A:e,B:n,C:r,D:o,E:s,F:i,G:c,H:a}=this;return[e,n,r,o,s,i,c,a]}set(e,n,r,o,s,i,c,a){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=a|0}process(e,n){for(let u=0;u<16;u++,n+=4)Ut[u]=e.getUint32(n,!1);for(let u=16;u<64;u++){let p=Ut[u-15],y=Ut[u-2],g=ht(p,7)^ht(p,18)^p>>>3,h=ht(y,17)^ht(y,19)^y>>>10;Ut[u]=h+Ut[u-7]+g+Ut[u-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:a,G:f,H:l}=this;for(let u=0;u<64;u++){let p=ht(c,6)^ht(c,11)^ht(c,25),y=l+p+cs(c,a,f)+fs[u]+Ut[u]|0,h=(ht(r,2)^ht(r,13)^ht(r,22))+as(r,o,s)|0;l=f,f=a,a=c,c=i+y|0,i=s,s=o,o=r,r=y+h|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,a=a+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(r,o,s,i,c,a,f,l)}roundClean(){Ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};var ve=dr(()=>new an);var hn={};rs(hn,{bitGet:()=>ys,bitLen:()=>gs,bitMask:()=>ue,bitSet:()=>ws,bytesToHex:()=>Dt,bytesToNumberBE:()=>Y,bytesToNumberLE:()=>_e,concatBytes:()=>At,createHmacDrbg:()=>un,ensureBytes:()=>W,equalBytes:()=>ds,hexToBytes:()=>Wt,hexToNumber:()=>ln,numberToBytesBE:()=>dt,numberToBytesLE:()=>Le,numberToHexUnpadded:()=>yr,numberToVarBytesBE:()=>hs,utf8ToBytes:()=>ps,validateObject:()=>kt});var gr=BigInt(0),Be=BigInt(1),ls=BigInt(2),Ae=t=>t instanceof Uint8Array,us=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Dt(t){if(!Ae(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+o.length,0)),n=0;return t.forEach(r=>{if(!Ae(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function ds(t,e){if(t.length!==e.length)return!1;for(let n=0;ngr;t>>=Be,e+=1);return e}function ys(t,e){return t>>BigInt(e)&Be}var ws=(t,e,n)=>t|(n?Be:gr)<(ls<new Uint8Array(t),pr=t=>Uint8Array.from(t);function un(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=fn(t),o=fn(t),s=0,i=()=>{r.fill(1),o.fill(0),s=0},c=(...u)=>n(o,r,...u),a=(u=fn())=>{o=c(pr([0]),u),r=c(),u.length!==0&&(o=c(pr([1]),u),r=c())},f=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let u=0,p=[];for(;u{i(),a(u);let y;for(;!(y=p(f()));)a();return i(),y}}var bs={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function kt(t,e,n={}){let r=(o,s,i)=>{let c=bs[s];if(typeof c!="function")throw new Error(`Invalid validator "${s}", expected function`);let a=t[o];if(!(i&&a===void 0)&&!c(a,t))throw new Error(`Invalid param ${String(o)}=${a} (${typeof a}), expected ${s}`)};for(let[o,s]of Object.entries(e))r(o,s,!1);for(let[o,s]of Object.entries(n))r(o,s,!0);return t}var Z=BigInt(0),V=BigInt(1),zt=BigInt(2),xs=BigInt(3),dn=BigInt(4),wr=BigInt(5),br=BigInt(8),ms=BigInt(9),Es=BigInt(16);function z(t,e){let n=t%e;return n>=Z?n:e+n}function vs(t,e,n){if(n<=Z||e 0");if(n===V)return Z;let r=V;for(;e>Z;)e&V&&(r=r*t%n),t=t*t%n,e>>=V;return r}function ot(t,e,n){let r=t;for(;e-- >Z;)r*=r,r%=n;return r}function Se(t,e){if(t===Z||e<=Z)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=z(t,e),r=e,o=Z,s=V,i=V,c=Z;for(;n!==Z;){let f=r/n,l=r%n,u=o-i*f,p=s-c*f;r=n,n=l,o=i,s=c,i=u,c=p}if(r!==V)throw new Error("invert: does not exist");return z(o,e)}function Bs(t){let e=(t-V)/zt,n,r,o;for(n=t-V,r=0;n%zt===Z;n/=zt,r++);for(o=zt;o(r[o]="function",r),e);return kt(t,n)}function Ls(t,e,n){if(n 0");if(n===Z)return t.ONE;if(n===V)return e;let r=t.ONE,o=e;for(;n>Z;)n&V&&(r=t.mul(r,o)),o=t.sqr(o),n>>=V;return r}function Ss(t,e){let n=new Array(e.length),r=e.reduce((s,i,c)=>t.is0(i)?s:(n[c]=s,t.mul(s,i)),t.ONE),o=t.inv(r);return e.reduceRight((s,i,c)=>t.is0(i)?s:(n[c]=t.mul(s,n[c]),t.mul(s,i)),o),n}function gn(t,e){let n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function xr(t,e,n=!1,r={}){if(t<=Z)throw new Error(`Expected Field ORDER > 0, got ${t}`);let{nBitLength:o,nByteLength:s}=gn(t,e);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");let i=As(t),c=Object.freeze({ORDER:t,BITS:o,BYTES:s,MASK:ue(o),ZERO:Z,ONE:V,create:a=>z(a,t),isValid:a=>{if(typeof a!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof a}`);return Z<=a&&aa===Z,isOdd:a=>(a&V)===V,neg:a=>z(-a,t),eql:(a,f)=>a===f,sqr:a=>z(a*a,t),add:(a,f)=>z(a+f,t),sub:(a,f)=>z(a-f,t),mul:(a,f)=>z(a*f,t),pow:(a,f)=>Ls(c,a,f),div:(a,f)=>z(a*Se(f,t),t),sqrN:a=>a*a,addN:(a,f)=>a+f,subN:(a,f)=>a-f,mulN:(a,f)=>a*f,inv:a=>Se(a,t),sqrt:r.sqrt||(a=>i(c,a)),invertBatch:a=>Ss(c,a),cmov:(a,f,l)=>l?f:a,toBytes:a=>n?Le(a,s):dt(a,s),fromBytes:a=>{if(a.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${a.length}`);return n?_e(a):Y(a)}});return Object.freeze(c)}function mr(t){if(typeof t!="bigint")throw new Error("field order must be bigint");let e=t.toString(2).length;return Math.ceil(e/8)}function yn(t){let e=mr(t);return e+Math.ceil(e/2)}function Er(t,e,n=!1){let r=t.length,o=mr(e),s=yn(e);if(r<16||r1024)throw new Error(`expected ${s}-1024 bytes of input, got ${r}`);let i=n?Y(t):_e(t),c=z(i,e-V)+V;return n?Le(c,o):dt(c,o)}var Is=BigInt(0),wn=BigInt(1);function vr(t,e){let n=(o,s)=>{let i=s.negate();return o?i:s},r=o=>{let s=Math.ceil(e/o)+1,i=2**(o-1);return{windows:s,windowSize:i}};return{constTimeNegate:n,unsafeLadder(o,s){let i=t.ZERO,c=o;for(;s>Is;)s&wn&&(i=i.add(c)),c=c.double(),s>>=wn;return i},precomputeWindow(o,s){let{windows:i,windowSize:c}=r(s),a=[],f=o,l=f;for(let u=0;u>=y,d>a&&(d-=p,i+=wn);let w=h,b=h+Math.abs(d)-1,m=g%2!==0,A=d<0;d===0?l=l.add(n(m,s[w])):f=f.add(n(A,s[b]))}return{p:f,f:l}},wNAFCached(o,s,i,c){let a=o._WINDOW_SIZE||1,f=s.get(o);return f||(f=this.precomputeWindow(o,a),a!==1&&s.set(o,c(f))),this.wNAF(a,f,i)}}}function bn(t){return pn(t.Fp),kt(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(ut(Q(Q({},gn(t.n,t.nBitLength)),t),{p:t.Fp.ORDER}))}function Us(t){let e=bn(t);kt(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:n,Fp:r,a:o}=e;if(n){if(!r.eql(o,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(Q({},e))}var{bytesToNumberBE:ks,hexToBytes:Os}=hn,Zt={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){let{Err:e}=Zt;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");let n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:ks(r),l:t.subarray(n+2)}},toSig(t){let{Err:e}=Zt,n=typeof t=="string"?Os(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");let{d:o,l:s}=Zt._parseInt(n.subarray(2)),{d:i,l:c}=Zt._parseInt(s);if(c.length)throw new e("Invalid signature: left bytes after parsing");return{r:o,s:i}},hexFromSig(t){let e=f=>Number.parseInt(f[0],16)&8?"00"+f:f,n=f=>{let l=f.toString(16);return l.length&1?`0${l}`:l},r=e(n(t.s)),o=e(n(t.r)),s=r.length/2,i=o.length/2,c=n(s),a=n(i);return`30${n(i+s+4)}02${a}${o}02${c}${r}`}},_t=BigInt(0),ct=BigInt(1),Hf=BigInt(2),Br=BigInt(3),Pf=BigInt(4);function Rs(t){let e=Us(t),{Fp:n}=e,r=e.toBytes||((g,h,d)=>{let w=h.toAffine();return At(Uint8Array.from([4]),n.toBytes(w.x),n.toBytes(w.y))}),o=e.fromBytes||(g=>{let h=g.subarray(1),d=n.fromBytes(h.subarray(0,n.BYTES)),w=n.fromBytes(h.subarray(n.BYTES,2*n.BYTES));return{x:d,y:w}});function s(g){let{a:h,b:d}=e,w=n.sqr(g),b=n.mul(w,g);return n.add(n.add(b,n.mul(g,h)),d)}if(!n.eql(n.sqr(e.Gy),s(e.Gx)))throw new Error("bad generator point: equation left != right");function i(g){return typeof g=="bigint"&&_tn.eql(m,n.ZERO);return b(d)&&b(w)?u.ZERO:new u(d,w,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(h){let d=n.invertBatch(h.map(w=>w.pz));return h.map((w,b)=>w.toAffine(d[b])).map(u.fromAffine)}static fromHex(h){let d=u.fromAffine(o(W("pointHex",h)));return d.assertValidity(),d}static fromPrivateKey(h){return u.BASE.multiply(a(h))}_setWindowSize(h){this._WINDOW_SIZE=h,f.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}let{x:h,y:d}=this.toAffine();if(!n.isValid(h)||!n.isValid(d))throw new Error("bad point: x or y not FE");let w=n.sqr(d),b=s(h);if(!n.eql(w,b))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:h}=this.toAffine();if(n.isOdd)return!n.isOdd(h);throw new Error("Field doesn't support isOdd")}equals(h){l(h);let{px:d,py:w,pz:b}=this,{px:m,py:A,pz:I}=h,B=n.eql(n.mul(d,I),n.mul(m,b)),_=n.eql(n.mul(w,I),n.mul(A,b));return B&&_}negate(){return new u(this.px,n.neg(this.py),this.pz)}double(){let{a:h,b:d}=e,w=n.mul(d,Br),{px:b,py:m,pz:A}=this,I=n.ZERO,B=n.ZERO,_=n.ZERO,S=n.mul(b,b),R=n.mul(m,m),k=n.mul(A,A),U=n.mul(b,m);return U=n.add(U,U),_=n.mul(b,A),_=n.add(_,_),I=n.mul(h,_),B=n.mul(w,k),B=n.add(I,B),I=n.sub(R,B),B=n.add(R,B),B=n.mul(I,B),I=n.mul(U,I),_=n.mul(w,_),k=n.mul(h,k),U=n.sub(S,k),U=n.mul(h,U),U=n.add(U,_),_=n.add(S,S),S=n.add(_,S),S=n.add(S,k),S=n.mul(S,U),B=n.add(B,S),k=n.mul(m,A),k=n.add(k,k),S=n.mul(k,U),I=n.sub(I,S),_=n.mul(k,R),_=n.add(_,_),_=n.add(_,_),new u(I,B,_)}add(h){l(h);let{px:d,py:w,pz:b}=this,{px:m,py:A,pz:I}=h,B=n.ZERO,_=n.ZERO,S=n.ZERO,R=e.a,k=n.mul(e.b,Br),U=n.mul(d,m),P=n.mul(w,A),$=n.mul(b,I),j=n.add(d,w),x=n.add(m,A);j=n.mul(j,x),x=n.add(U,P),j=n.sub(j,x),x=n.add(d,b);let E=n.add(m,I);return x=n.mul(x,E),E=n.add(U,$),x=n.sub(x,E),E=n.add(w,b),B=n.add(A,I),E=n.mul(E,B),B=n.add(P,$),E=n.sub(E,B),S=n.mul(R,x),B=n.mul(k,$),S=n.add(B,S),B=n.sub(P,S),S=n.add(P,S),_=n.mul(B,S),P=n.add(U,U),P=n.add(P,U),$=n.mul(R,$),x=n.mul(k,x),P=n.add(P,$),$=n.sub(U,$),$=n.mul(R,$),x=n.add(x,$),U=n.mul(P,x),_=n.add(_,U),U=n.mul(E,x),B=n.mul(j,B),B=n.sub(B,U),U=n.mul(j,P),S=n.mul(E,S),S=n.add(S,U),new u(B,_,S)}subtract(h){return this.add(h.negate())}is0(){return this.equals(u.ZERO)}wNAF(h){return y.wNAFCached(this,f,h,d=>{let w=n.invertBatch(d.map(b=>b.pz));return d.map((b,m)=>b.toAffine(w[m])).map(u.fromAffine)})}multiplyUnsafe(h){let d=u.ZERO;if(h===_t)return d;if(c(h),h===ct)return this;let{endo:w}=e;if(!w)return y.unsafeLadder(this,h);let{k1neg:b,k1:m,k2neg:A,k2:I}=w.splitScalar(h),B=d,_=d,S=this;for(;m>_t||I>_t;)m&ct&&(B=B.add(S)),I&ct&&(_=_.add(S)),S=S.double(),m>>=ct,I>>=ct;return b&&(B=B.negate()),A&&(_=_.negate()),_=new u(n.mul(_.px,w.beta),_.py,_.pz),B.add(_)}multiply(h){c(h);let d=h,w,b,{endo:m}=e;if(m){let{k1neg:A,k1:I,k2neg:B,k2:_}=m.splitScalar(d),{p:S,f:R}=this.wNAF(I),{p:k,f:U}=this.wNAF(_);S=y.constTimeNegate(A,S),k=y.constTimeNegate(B,k),k=new u(n.mul(k.px,m.beta),k.py,k.pz),w=S.add(k),b=R.add(U)}else{let{p:A,f:I}=this.wNAF(d);w=A,b=I}return u.normalizeZ([w,b])[0]}multiplyAndAddUnsafe(h,d,w){let b=u.BASE,m=(I,B)=>B===_t||B===ct||!I.equals(b)?I.multiplyUnsafe(B):I.multiply(B),A=m(this,d).add(m(h,w));return A.is0()?void 0:A}toAffine(h){let{px:d,py:w,pz:b}=this,m=this.is0();h==null&&(h=m?n.ONE:n.inv(b));let A=n.mul(d,h),I=n.mul(w,h),B=n.mul(b,h);if(m)return{x:n.ZERO,y:n.ZERO};if(!n.eql(B,n.ONE))throw new Error("invZ was invalid");return{x:A,y:I}}isTorsionFree(){let{h,isTorsionFree:d}=e;if(h===ct)return!0;if(d)return d(u,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h,clearCofactor:d}=e;return h===ct?this:d?d(u,this):this.multiplyUnsafe(e.h)}toRawBytes(h=!0){return this.assertValidity(),r(u,this,h)}toHex(h=!0){return Dt(this.toRawBytes(h))}}u.BASE=new u(e.Gx,e.Gy,n.ONE),u.ZERO=new u(n.ZERO,n.ONE,n.ZERO);let p=e.nBitLength,y=vr(u,e.endo?Math.ceil(p/2):p);return{CURVE:e,ProjectivePoint:u,normPrivateKeyToScalar:a,weierstrassEquation:s,isWithinCurveOrder:i}}function Cs(t){let e=bn(t);return kt(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(Q({lowS:!0},e))}function Ar(t){let e=Cs(t),{Fp:n,n:r}=e,o=n.BYTES+1,s=2*n.BYTES+1;function i(x){return _tDt(dt(x,e.nByteLength));function g(x){let E=r>>ct;return x>E}function h(x){return g(x)?c(-x):x}let d=(x,E,T)=>Y(x.slice(E,T));class w{constructor(E,T,O){this.r=E,this.s=T,this.recovery=O,this.assertValidity()}static fromCompact(E){let T=e.nByteLength;return E=W("compactSignature",E,T*2),new w(d(E,0,T),d(E,T,2*T))}static fromDER(E){let{r:T,s:O}=Zt.toSig(W("DER",E));return new w(T,O)}assertValidity(){if(!p(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!p(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(E){return new w(this.r,this.s,E)}recoverPublicKey(E){let{r:T,s:O,recovery:v}=this,C=_(W("msgHash",E));if(v==null||![0,1,2,3].includes(v))throw new Error("recovery id invalid");let M=v===2||v===3?T+e.n:T;if(M>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");let q=v&1?"03":"02",G=f.fromHex(q+y(M)),F=a(M),rt=c(-C*F),it=c(O*F),tt=f.BASE.multiplyAndAddUnsafe(G,rt,it);if(!tt)throw new Error("point at infinify");return tt.assertValidity(),tt}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new w(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Wt(this.toDERHex())}toDERHex(){return Zt.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Wt(this.toCompactHex())}toCompactHex(){return y(this.r)+y(this.s)}}let b={isValidPrivateKey(x){try{return l(x),!0}catch{return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let x=yn(e.n);return Er(e.randomBytes(x),e.n)},precompute(x=8,E=f.BASE){return E._setWindowSize(x),E.multiply(BigInt(3)),E}};function m(x,E=!0){return f.fromPrivateKey(x).toRawBytes(E)}function A(x){let E=x instanceof Uint8Array,T=typeof x=="string",O=(E||T)&&x.length;return E?O===o||O===s:T?O===2*o||O===2*s:x instanceof f}function I(x,E,T=!0){if(A(x))throw new Error("first arg must be private key");if(!A(E))throw new Error("second arg must be public key");return f.fromHex(E).multiply(l(x)).toRawBytes(T)}let B=e.bits2int||function(x){let E=Y(x),T=x.length*8-e.nBitLength;return T>0?E>>BigInt(T):E},_=e.bits2int_modN||function(x){return c(B(x))},S=ue(e.nBitLength);function R(x){if(typeof x!="bigint")throw new Error("bigint expected");if(!(_t<=x&&xnt in T))throw new Error("sign() legacy options not supported");let{hash:O,randomBytes:v}=e,{lowS:C,prehash:M,extraEntropy:q}=T;C==null&&(C=!0),x=W("msgHash",x),M&&(x=W("prehashed msgHash",O(x)));let G=_(x),F=l(E),rt=[R(F),R(G)];if(q!=null){let nt=q===!0?v(n.BYTES):q;rt.push(W("extraEntropy",nt))}let it=At(...rt),tt=G;function yt(nt){let Ft=B(nt);if(!p(Ft))return;let sr=a(Ft),wt=f.BASE.multiply(Ft).toAffine(),te=c(wt.x);if(te===_t)return;let we=c(sr*c(tt+te*F));if(we===_t)return;let ir=(wt.x===te?0:2)|Number(wt.y&ct),cr=we;return C&&g(we)&&(cr=h(we),ir^=1),new w(te,cr,ir)}return{seed:it,k2sig:yt}}let U={lowS:e.lowS,prehash:!1},P={lowS:e.lowS,prehash:!1};function $(x,E,T=U){let{seed:O,k2sig:v}=k(x,E,T),C=e;return un(C.hash.outputLen,C.nByteLength,C.hmac)(O,v)}f.BASE._setWindowSize(8);function j(x,E,T,O=P){let v=x;if(E=W("msgHash",E),T=W("publicKey",T),"strict"in O)throw new Error("options.strict was renamed to lowS");let{lowS:C,prehash:M}=O,q,G;try{if(typeof v=="string"||v instanceof Uint8Array)try{q=w.fromDER(v)}catch(wt){if(!(wt instanceof Zt.Err))throw wt;q=w.fromCompact(v)}else if(typeof v=="object"&&typeof v.r=="bigint"&&typeof v.s=="bigint"){let{r:wt,s:te}=v;q=new w(wt,te)}else throw new Error("PARSE");G=f.fromHex(T)}catch(wt){if(wt.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(C&&q.hasHighS())return!1;M&&(E=e.hash(E));let{r:F,s:rt}=q,it=_(E),tt=a(rt),yt=c(it*tt),nt=c(F*tt),Ft=f.BASE.multiplyAndAddUnsafe(G,yt,nt)?.toAffine();return Ft?c(Ft.x)===F:!1}return{CURVE:e,getPublicKey:m,getSharedSecret:I,sign:$,verify:j,ProjectivePoint:f,Signature:w,utils:b}}var Te=class extends ne{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,fr(e);let r=le(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let i=0;inew Te(t,e).update(n).digest();xn.create=(t,e)=>new Te(t,e);function Ns(t){return{hash:t,hmac:(e,...n)=>xn(t,e,hr(...n)),randomBytes:me}}function _r(t,e){let n=r=>Ar(Q(Q({},t),Ns(r)));return Object.freeze(ut(Q({},n(e)),{create:n}))}var Oe=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ie=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Tr=BigInt(1),Ue=BigInt(2),Lr=(t,e)=>(t+e/Ue)/e;function Ir(t){let e=Oe,n=BigInt(3),r=BigInt(6),o=BigInt(11),s=BigInt(22),i=BigInt(23),c=BigInt(44),a=BigInt(88),f=t*t*t%e,l=f*f*t%e,u=ot(l,n,e)*l%e,p=ot(u,n,e)*l%e,y=ot(p,Ue,e)*f%e,g=ot(y,o,e)*y%e,h=ot(g,s,e)*g%e,d=ot(h,c,e)*h%e,w=ot(d,a,e)*d%e,b=ot(w,c,e)*h%e,m=ot(b,n,e)*l%e,A=ot(m,i,e)*g%e,I=ot(A,r,e)*f%e,B=ot(I,Ue,e);if(!En.eql(En.sqr(B),t))throw new Error("Cannot find square root");return B}var En=xr(Oe,void 0,void 0,{sqrt:Ir}),Ot=_r({a:BigInt(0),b:BigInt(7),Fp:En,n:Ie,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{let e=Ie,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Tr*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),o=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),c=Lr(s*t,e),a=Lr(-r*t,e),f=z(t-c*n-a*o,e),l=z(-c*r-a*s,e),u=f>i,p=l>i;if(u&&(f=e-f),p&&(l=e-l),f>i||l>i)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:u,k1:f,k2neg:p,k2:l}}}},ve),Re=BigInt(0),Ur=t=>typeof t=="bigint"&&Retypeof t=="bigint"&&Reo.charCodeAt(0)));n=At(r,r),Sr[t]=n}return ve(At(n,...e))}var An=t=>t.toRawBytes(!0).slice(1),vn=t=>dt(t,32),mn=t=>z(t,Oe),he=t=>z(t,Ie),_n=Ot.ProjectivePoint,Ps=(t,e,n)=>_n.BASE.multiplyAndAddUnsafe(t,e,n);function Bn(t){let e=Ot.utils.normPrivateKeyToScalar(t),n=_n.fromPrivateKey(e);return{scalar:n.hasEvenY()?e:he(-e),bytes:An(n)}}function kr(t){if(!Ur(t))throw new Error("bad x: need 0 < x < p");let e=mn(t*t),n=mn(e*t+BigInt(7)),r=Ir(n);r%Ue!==Re&&(r=mn(-r));let o=new _n(t,r,Tr);return o.assertValidity(),o}function Or(...t){return he(Y(ke("BIP0340/challenge",...t)))}function $s(t){return Bn(t).bytes}function qs(t,e,n=me(32)){let r=W("message",t),{bytes:o,scalar:s}=Bn(e),i=W("auxRand",n,32),c=vn(s^Y(ke("BIP0340/aux",i))),a=ke("BIP0340/nonce",c,o,r),f=he(Y(a));if(f===Re)throw new Error("sign failed: k is zero");let{bytes:l,scalar:u}=Bn(f),p=Or(l,o,r),y=new Uint8Array(64);if(y.set(l,0),y.set(vn(he(u+p*s)),32),!Rr(y,r,o))throw new Error("sign: Invalid signature produced");return y}function Rr(t,e,n){let r=W("signature",t,64),o=W("message",e),s=W("publicKey",n,32);try{let i=kr(Y(s)),c=Y(r.subarray(0,32));if(!Ur(c))return!1;let a=Y(r.subarray(32,64));if(!Hs(a))return!1;let f=Or(vn(c),An(i),o),l=Ps(i,a,he(-f));return!(!l||!l.hasEvenY()||l.toAffine().x!==c)}catch{return!1}}var re={getPublicKey:$s,sign:qs,verify:Rr,utils:{randomPrivateKey:Ot.utils.randomPrivateKey,lift_x:kr,pointToBytes:An,numberToBytesBE:dt,bytesToNumberBE:Y,taggedHash:ke,mod:z}};var Ce=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;var Ln=t=>t instanceof Uint8Array;var Ne=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),pt=(t,e)=>t<<32-e|t>>>e,Ms=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Ms)throw new Error("Non little-endian hardware is not supported");var js=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function J(t){if(!Ln(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+o.length,0)),n=0;return t.forEach(r=>{if(!Ln(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}var oe=class{clone(){return this._cloneInto()}};function Sn(t){let e=r=>t().update(Rt(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function He(t=32){if(Ce&&typeof Ce.getRandomValues=="function")return Ce.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}function Tn(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Vs(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}function Cr(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function Ds(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Tn(t.outputLen),Tn(t.blockLen)}function Ws(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function zs(t,e){Cr(t);let n=e.outputLen;if(t.length>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Pe=class extends oe{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=Ne(this.buffer)}update(e){st.exists(this);let{view:n,buffer:r,blockLen:o}=this;e=Rt(e);let s=e.length;for(let i=0;io-i&&(this.process(r,0),i=0);for(let u=i;ul.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;ut&e^~t&n,Ys=(t,e,n)=>t&e^t&n^e&n,Xs=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ct=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nt=new Uint32Array(64),$e=class extends Pe{constructor(){super(64,32,8,!1),this.A=Ct[0]|0,this.B=Ct[1]|0,this.C=Ct[2]|0,this.D=Ct[3]|0,this.E=Ct[4]|0,this.F=Ct[5]|0,this.G=Ct[6]|0,this.H=Ct[7]|0}get(){let{A:e,B:n,C:r,D:o,E:s,F:i,G:c,H:a}=this;return[e,n,r,o,s,i,c,a]}set(e,n,r,o,s,i,c,a){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=c|0,this.H=a|0}process(e,n){for(let u=0;u<16;u++,n+=4)Nt[u]=e.getUint32(n,!1);for(let u=16;u<64;u++){let p=Nt[u-15],y=Nt[u-2],g=pt(p,7)^pt(p,18)^p>>>3,h=pt(y,17)^pt(y,19)^y>>>10;Nt[u]=h+Nt[u-7]+g+Nt[u-16]|0}let{A:r,B:o,C:s,D:i,E:c,F:a,G:f,H:l}=this;for(let u=0;u<64;u++){let p=pt(c,6)^pt(c,11)^pt(c,25),y=l+p+Js(c,a,f)+Xs[u]+Nt[u]|0,h=(pt(r,2)^pt(r,13)^pt(r,22))+Ys(r,o,s)|0;l=f,f=a,a=c,c=i+y|0,i=s,s=o,o=r,r=y+h|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,c=c+this.E|0,a=a+this.F|0,f=f+this.G|0,l=l+this.H|0,this.set(r,o,s,i,c,a,f,l)}roundClean(){Nt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},In=class extends $e{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}},Ht=Sn(()=>new $e),ll=Sn(()=>new In);function Jt(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function bt(...t){let e=(o,s)=>i=>o(s(i)),n=Array.from(t).reverse().reduce((o,s)=>o?e(o,s.encode):s.encode,void 0),r=t.reduce((o,s)=>o?e(o,s.decode):s.decode,void 0);return{encode:n,decode:r}}function Lt(t){return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return e.map(n=>{if(Jt(n),n<0||n>=t.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${t.length})`);return t[n]})},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("alphabet.decode input should be array of strings");return e.map(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);let r=t.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${t}`);return r})}}}function St(t=""){if(typeof t!="string")throw new Error("join separator should be string");return{encode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="string")throw new Error("join.encode input should be array of strings");for(let n of e)if(typeof n!="string")throw new Error(`join.encode: non-string input=${n}`);return e.join(t)},decode:e=>{if(typeof e!="string")throw new Error("join.decode input should be string");return e.split(t)}}}function je(t,e="="){if(Jt(t),typeof e!="string")throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let r of n)if(typeof r!="string")throw new Error(`padding.encode: non-string input=${r}`);for(;n.length*t%8;)n.push(e);return n},decode(n){if(!Array.isArray(n)||n.length&&typeof n[0]!="string")throw new Error("padding.encode input should be array of strings");for(let o of n)if(typeof o!="string")throw new Error(`padding.decode: non-string input=${o}`);let r=n.length;if(r*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&n[r-1]===e;r--)if(!((r-1)*t%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,r)}}}function Mr(t){if(typeof t!="function")throw new Error("normalize fn should be function");return{encode:e=>e,decode:e=>t(e)}}function Nr(t,e,n){if(e<2)throw new Error(`convertRadix: wrong from=${e}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(t))throw new Error("convertRadix: data should be array");if(!t.length)return[];let r=0,o=[],s=Array.from(t);for(s.forEach(i=>{if(Jt(i),i<0||i>=e)throw new Error(`Wrong integer: ${i}`)});;){let i=0,c=!0;for(let a=r;ae?jr(e,t%e):t,qe=(t,e)=>t+(e-jr(t,e));function Un(t,e,n,r){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(e<=0||e>32)throw new Error(`convertRadix2: wrong from=${e}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(qe(e,n)>32)throw new Error(`convertRadix2: carry overflow from=${e} to=${n} carryBits=${qe(e,n)}`);let o=0,s=0,i=2**n-1,c=[];for(let a of t){if(Jt(a),a>=2**e)throw new Error(`convertRadix2: invalid data word=${a} from=${e}`);if(o=o<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${e}`);for(s+=e;s>=n;s-=n)c.push((o>>s-n&i)>>>0);o&=2**s-1}if(o=o<=e)throw new Error("Excess padding");if(!r&&o)throw new Error(`Non-zero padding: ${o}`);return r&&s>0&&c.push(o>>>0),c}function Qs(t){return Jt(t),{encode:e=>{if(!(e instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Nr(Array.from(e),2**8,t)},decode:e=>{if(!Array.isArray(e)||e.length&&typeof e[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Nr(e,t,2**8))}}}function Pt(t,e=!1){if(Jt(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(qe(8,t)>32||qe(t,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Un(Array.from(n),8,t,!e)},decode:n=>{if(!Array.isArray(n)||n.length&&typeof n[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Un(n,t,8,e))}}}function Hr(t){if(typeof t!="function")throw new Error("unsafeWrapper fn should be function");return function(...e){try{return t.apply(null,e)}catch{}}}function Fs(t,e){if(Jt(t),typeof e!="function")throw new Error("checksum fn should be function");return{encode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");let r=e(n).slice(0,t),o=new Uint8Array(n.length+t);return o.set(n),o.set(r,n.length),o},decode(n){if(!(n instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");let r=n.slice(0,-t),o=e(r).slice(0,t),s=n.slice(-t);for(let i=0;it.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),at=bt(Pt(6),Lt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),je(6),St("")),ni=bt(Pt(6),Lt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),je(6),St("")),On=t=>bt(Qs(58),Lt(t),St("")),Me=On("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),pl=On("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),gl=On("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),Pr=[0,2,3,5,6,7,9,10,11],ri={encode(t){let e="";for(let n=0;nbt(Fs(4,e=>t(t(e))),Me),kn=bt(Lt("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),St("")),$r=[996825010,642813549,513874426,1027748829,705979059];function de(t){let e=t>>25,n=(t&33554431)<<5;for(let r=0;r<$r.length;r++)(e>>r&1)===1&&(n^=$r[r]);return n}function qr(t,e,n=1){let r=t.length,o=1;for(let s=0;s126)throw new Error(`Invalid prefix (${t})`);o=de(o)^i>>5}o=de(o);for(let s=0;sp)throw new TypeError(`Length ${y} exceeds limit ${p}`);return l=l.toLowerCase(),`${l}1${kn.encode(u)}${qr(l,u,e)}`}function c(l,u=90){if(typeof l!="string")throw new Error(`bech32.decode input should be string, not ${typeof l}`);if(l.length<8||u!==!1&&l.length>u)throw new TypeError(`Wrong string length: ${l.length} (${l}). Expected (8..${u})`);let p=l.toLowerCase();if(l!==p&&l!==l.toUpperCase())throw new Error("String must be lowercase or uppercase");l=p;let y=l.lastIndexOf("1");if(y===0||y===-1)throw new Error('Letter "1" must be present between prefix and data only');let g=l.slice(0,y),h=l.slice(y+1);if(h.length<6)throw new Error("Data must be at least 6 characters long");let d=kn.decode(h).slice(0,-6),w=qr(g,d,e);if(!h.endsWith(w))throw new Error(`Invalid checksum in ${l}: expected "${w}"`);return{prefix:g,words:d}}let a=Hr(c);function f(l){let{prefix:u,words:p}=c(l,!1);return{prefix:u,words:p,bytes:r(p)}}return{encode:i,decode:c,decodeToBytes:f,decodeUnsafe:a,fromWords:r,fromWordsUnsafe:s,toWords:o}}var $t=Kr("bech32"),wl=Kr("bech32m"),oi={encode:t=>new TextDecoder().decode(t),decode:t=>new TextEncoder().encode(t)},si=bt(Pt(4),Lt("0123456789abcdef"),St(""),Mr(t=>{if(typeof t!="string"||t.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof t} with length ${t.length}`);return t.toLowerCase()})),ii={utf8:oi,hex:si,base16:ti,base32:ei,base64:at,base64url:ni,base58:Me,base58xmr:ri},bl=`Invalid encoding type. Available types: ${Object.keys(ii).join(", ")}`;function Ke(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`positive integer expected, not ${t}`)}function Rn(t){if(typeof t!="boolean")throw new Error(`boolean expected, not ${t}`)}function Cn(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function N(t,...e){if(!Cn(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function qt(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function pe(t,e){N(t);let n=e.outputLen;if(t.lengthnew Uint8Array(t.buffer,t.byteOffset,t.byteLength);var H=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),Mt=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),ci=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!ci)throw new Error("Non little-endian hardware is not supported");function ai(t){if(typeof t!="string")throw new Error(`string expected, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function xt(t){if(typeof t=="string")t=ai(t);else if(Cn(t))t=t.slice();else throw new Error(`Uint8Array expected, got ${typeof t}`);return t}function Vr(t,e){if(e==null||typeof e!="object")throw new Error("options must be defined");return Object.assign(t,e)}function Yt(t,e){if(t.length!==e.length)return!1;let n=0;for(let r=0;r(Object.assign(e,t),e);function Xt(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);let o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),c=Number(n&s),a=r?4:0,f=r?0:4;t.setUint32(e+a,i,r),t.setUint32(e+f,c,r)}var Tt=16,Hn=new Uint8Array(16),Et=H(Hn),fi=225,li=(t,e,n,r)=>{let o=r&1;return{s3:n<<31|r>>>1,s2:e<<31|n>>>1,s1:t<<31|e>>>1,s0:t>>>1^fi<<24&-(o&1)}},ft=t=>(t>>>0&255)<<24|(t>>>8&255)<<16|(t>>>16&255)<<8|t>>>24&255|0;function ui(t){t.reverse();let e=t[15]&1,n=0;for(let r=0;r>>1|n,n=(o&1)<<7}return t[0]^=-e&225,t}var hi=t=>t>64*1024?8:t>1024?4:2,De=class{constructor(e,n){this.blockLen=Tt,this.outputLen=Tt,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,e=xt(e),N(e,16);let r=Mt(e),o=r.getUint32(0,!1),s=r.getUint32(4,!1),i=r.getUint32(8,!1),c=r.getUint32(12,!1),a=[];for(let g=0;g<128;g++)a.push({s0:ft(o),s1:ft(s),s2:ft(i),s3:ft(c)}),{s0:o,s1:s,s2:i,s3:c}=li(o,s,i,c);let f=hi(n||1024);if(![1,2,4,8].includes(f))throw new Error(`ghash: wrong window size=${f}, should be 2, 4 or 8`);this.W=f;let u=128/f,p=this.windowSize=2**f,y=[];for(let g=0;g>>f-A-1&1))continue;let{s0:B,s1:_,s2:S,s3:R}=a[f*g+A];d^=B,w^=_,b^=S,m^=R}y.push({s0:d,s1:w,s2:b,s3:m})}this.t=y}_updateBlock(e,n,r,o){e^=this.s0,n^=this.s1,r^=this.s2,o^=this.s3;let{W:s,t:i,windowSize:c}=this,a=0,f=0,l=0,u=0,p=(1<>>8*h&255;for(let w=8/s-1;w>=0;w--){let b=d>>>s*w&p,{s0:m,s1:A,s2:I,s3:B}=i[y*c+b];a^=m,f^=A,l^=I,u^=B,y+=1}}this.s0=a,this.s1=f,this.s2=l,this.s3=u}update(e){e=xt(e),qt(this);let n=H(e),r=Math.floor(e.length/Tt),o=e.length%Tt;for(let s=0;st(o,r.length).update(xt(r)).digest(),n=t(new Uint8Array(16),0);return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=(r,o)=>t(r,o),e}var Pn=Dr((t,e)=>new De(t,e)),Wr=Dr((t,e)=>new Nn(t,e));var et=16,Mn=4,We=new Uint8Array(et),di=283;function jn(t){return t<<1^di&-(t>>7)}function ie(t,e){let n=0;for(;e>0;e>>=1)n^=t&-(e&1),t=jn(t);return n}var qn=(()=>{let t=new Uint8Array(256);for(let n=0,r=1;n<256;n++,r^=jn(r))t[n]=r;let e=new Uint8Array(256);e[0]=99;for(let n=0;n<255;n++){let r=t[255-n];r|=r<<8,e[t[n]]=(r^r>>4^r>>5^r>>6^r>>7^99)&255}return e})(),pi=qn.map((t,e)=>qn.indexOf(e)),gi=t=>t<<24|t>>>8,$n=t=>t<<8|t>>>24;function zr(t,e){if(t.length!==256)throw new Error("Wrong sbox length");let n=new Uint32Array(256).map((f,l)=>e(t[l])),r=n.map($n),o=r.map($n),s=o.map($n),i=new Uint32Array(256*256),c=new Uint32Array(256*256),a=new Uint16Array(256*256);for(let f=0;f<256;f++)for(let l=0;l<256;l++){let u=f*256+l;i[u]=n[f]^r[l],c[u]=o[f]^s[l],a[u]=t[f]<<8|t[l]}return{sbox:t,sbox2:a,T0:n,T1:r,T2:o,T3:s,T01:i,T23:c}}var Kn=zr(qn,t=>ie(t,3)<<24|t<<16|t<<8|ie(t,2)),Zr=zr(pi,t=>ie(t,11)<<24|ie(t,13)<<16|ie(t,9)<<8|ie(t,14)),yi=(()=>{let t=new Uint8Array(16);for(let e=0,n=1;e<16;e++,n=jn(n))t[e]=n;return t})();function Kt(t){N(t);let e=t.length;if(![16,24,32].includes(e))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${e}`);let{sbox2:n}=Kn,r=H(t),o=r.length,s=c=>vt(n,c,c,c,c),i=new Uint32Array(e+28);i.set(r);for(let c=o;c6&&c%o===4&&(a=s(a)),i[c]=i[c-o]^a}return i}function Gr(t){let e=Kt(t),n=e.slice(),r=e.length,{sbox2:o}=Kn,{T0:s,T1:i,T2:c,T3:a}=Zr;for(let f=0;f>>8&255]^c[u>>>16&255]^a[u>>>24]}return n}function jt(t,e,n,r,o,s){return t[n<<8&65280|r>>>8&255]^e[o>>>8&65280|s>>>24&255]}function vt(t,e,n,r,o){return t[e&255|n&65280]|t[r>>>16&255|o>>>16&65280]<<16}function lt(t,e,n,r,o){let{sbox2:s,T01:i,T23:c}=Kn,a=0;e^=t[a++],n^=t[a++],r^=t[a++],o^=t[a++];let f=t.length/4-2;for(let g=0;g=0;d--)h=h+(s[d]&255)|0,s[d]=h&255,h>>>=8;({s0:c,s1:a,s2:f,s3:l}=lt(t,i[0],i[1],i[2],i[3]))}let y=et*Math.floor(u.length/Mn);if(y>>0,c.setUint32(l,p,e),{s0:y,s1:g,s2:h,s3:d}=lt(t,i[0],i[1],i[2],i[3]);let w=et*Math.floor(a.length/Mn);if(wr(o,s),decrypt:(o,s)=>r(o,s)}});function Yr(t){if(N(t),t.length%et!==0)throw new Error(`aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size ${et}`)}function Xr(t,e,n){let r=t.length,o=r%et;if(!e&&o!==0)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");let s=H(t);if(e){let a=et-o;a||(a=et),r=r+a}let i=ce(r,n),c=H(i);return{b:s,o:c,out:i}}function Qr(t,e){if(!e)return t;let n=t.length;if(!n)throw new Error("aes/pcks5: empty ciphertext not allowed");let r=t[n-1];if(r<=0||r>16)throw new Error(`aes/pcks5: wrong padding byte: ${r}`);let o=t.subarray(0,-r);for(let s=0;s{N(o);let{b:i,o:c,out:a}=Xr(o,r,s),f=Kt(e),l=0;for(;l+4<=i.length;){let{s0:u,s1:p,s2:y,s3:g}=lt(f,i[l+0],i[l+1],i[l+2],i[l+3]);c[l++]=u,c[l++]=p,c[l++]=y,c[l++]=g}if(r){let u=Fr(o.subarray(l*4)),{s0:p,s1:y,s2:g,s3:h}=lt(f,u[0],u[1],u[2],u[3]);c[l++]=p,c[l++]=y,c[l++]=g,c[l++]=h}return f.fill(0),a},decrypt:(o,s)=>{Yr(o);let i=Gr(e),c=ce(o.length,s),a=H(o),f=H(c);for(let l=0;l+4<=a.length;){let{s0:u,s1:p,s2:y,s3:g}=Jr(i,a[l+0],a[l+1],a[l+2],a[l+3]);f[l++]=u,f[l++]=p,f[l++]=y,f[l++]=g}return i.fill(0),Qr(c,r)}}}),Vn=mt({blockSize:16,nonceLength:16},function(e,n,r={}){N(e),N(n,16);let o=!r.disablePadding;return{encrypt:(s,i)=>{let c=Kt(e),{b:a,o:f,out:l}=Xr(s,o,i),u=H(n),p=u[0],y=u[1],g=u[2],h=u[3],d=0;for(;d+4<=a.length;)p^=a[d+0],y^=a[d+1],g^=a[d+2],h^=a[d+3],{s0:p,s1:y,s2:g,s3:h}=lt(c,p,y,g,h),f[d++]=p,f[d++]=y,f[d++]=g,f[d++]=h;if(o){let w=Fr(s.subarray(d*4));p^=w[0],y^=w[1],g^=w[2],h^=w[3],{s0:p,s1:y,s2:g,s3:h}=lt(c,p,y,g,h),f[d++]=p,f[d++]=y,f[d++]=g,f[d++]=h}return c.fill(0),l},decrypt:(s,i)=>{Yr(s);let c=Gr(e),a=H(n),f=ce(s.length,i),l=H(s),u=H(f),p=a[0],y=a[1],g=a[2],h=a[3];for(let d=0;d+4<=l.length;){let w=p,b=y,m=g,A=h;p=l[d+0],y=l[d+1],g=l[d+2],h=l[d+3];let{s0:I,s1:B,s2:_,s3:S}=Jr(c,p,y,g,h);u[d++]=I^w,u[d++]=B^b,u[d++]=_^m,u[d++]=S^A}return c.fill(0),Qr(f,o)}}}),Ol=mt({blockSize:16,nonceLength:16},function(e,n){N(e),N(n,16);function r(o,s,i){let c=Kt(e),a=o.length;i=ce(a,i);let f=H(o),l=H(i),u=s?l:f,p=H(n),y=p[0],g=p[1],h=p[2],d=p[3];for(let b=0;b+4<=f.length;){let{s0:m,s1:A,s2:I,s3:B}=lt(c,y,g,h,d);l[b+0]=f[b+0]^m,l[b+1]=f[b+1]^A,l[b+2]=f[b+2]^I,l[b+3]=f[b+3]^B,y=u[b++],g=u[b++],h=u[b++],d=u[b++]}let w=et*Math.floor(f.length/Mn);if(wr(o,!0,s),decrypt:(o,s)=>r(o,!1,s)}});function to(t,e,n,r,o){let s=t.create(n,r.length+(o?.length||0));o&&s.update(o),s.update(r);let i=new Uint8Array(16),c=Mt(i);return o&&Xt(c,0,BigInt(o.length*8),e),Xt(c,8,BigInt(r.length*8),e),s.update(i),s.digest()}var Rl=mt({blockSize:16,nonceLength:12,tagLength:16},function(e,n,r){if(N(n),n.length===0)throw new Error("aes/gcm: empty nonce");let o=16;function s(c,a,f){let l=to(Pn,!1,c,f,r);for(let u=0;u{N(c);let{xk:a,authKey:f,counter:l,tagMask:u}=i(),p=new Uint8Array(c.length+o);ge(a,!1,l,c,p);let y=s(f,u,p.subarray(0,p.length-o));return p.set(y,c.length),a.fill(0),p},decrypt:c=>{if(N(c),c.lengthr=>{if(!Number.isSafeInteger(r)||e>r||r>n)throw new Error(`${t}: invalid value=${r}, must be [${e}..${n}]`)},Cl=mt({blockSize:16,nonceLength:12,tagLength:16},function(e,n,r){let s=ze("AAD",0,68719476736),i=ze("plaintext",0,2**36),c=ze("nonce",12,12),a=ze("ciphertext",16,2**36+16);N(n),c(n.length),r&&(N(r),s(r.length));function f(){let p=e.length;if(p!==16&&p!==24&&p!==32)throw new Error(`key length must be 16, 24 or 32 bytes, got: ${p} bytes`);let y=Kt(e),g=new Uint8Array(p),h=new Uint8Array(16),d=H(n),w=0,b=d[0],m=d[1],A=d[2],I=0;for(let B of[h,g].map(H)){let _=H(B);for(let S=0;S<_.length;S+=2){let{s0:R,s1:k}=lt(y,w,b,m,A);_[S+0]=R,_[S+1]=k,w=++I}}return y.fill(0),{authKey:h,encKey:Kt(g)}}function l(p,y,g){let h=to(Wr,!0,y,g,r);for(let I=0;I<12;I++)h[I]^=n[I];h[15]&=127;let d=H(h),w=d[0],b=d[1],m=d[2],A=d[3];return{s0:w,s1:b,s2:m,s3:A}=lt(p,w,b,m,A),d[0]=w,d[1]=b,d[2]=m,d[3]=A,h}function u(p,y,g){let h=y.slice();return h[15]|=128,ge(p,!0,h,g)}return{encrypt:p=>{N(p),i(p.length);let{encKey:y,authKey:g}=f(),h=l(y,g,p),d=new Uint8Array(p.length+16);return d.set(h,p.length),d.set(u(y,h,p)),y.fill(0),g.fill(0),d},decrypt:p=>{N(p),a(p.length);let y=p.subarray(-16),{encKey:g,authKey:h}=f(),d=u(g,y,p.subarray(0,-16)),w=l(g,h,d);if(g.fill(0),h.fill(0),!Yt(y,w))throw new Error("invalid polyval tag");return d}}});var X=(t,e)=>t[e++]&255|(t[e++]&255)<<8,Dn=class{constructor(e){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,e=xt(e),N(e,32);let n=X(e,0),r=X(e,2),o=X(e,4),s=X(e,6),i=X(e,8),c=X(e,10),a=X(e,12),f=X(e,14);this.r[0]=n&8191,this.r[1]=(n>>>13|r<<3)&8191,this.r[2]=(r>>>10|o<<6)&7939,this.r[3]=(o>>>7|s<<9)&8191,this.r[4]=(s>>>4|i<<12)&255,this.r[5]=i>>>1&8190,this.r[6]=(i>>>14|c<<2)&8191,this.r[7]=(c>>>11|a<<5)&8065,this.r[8]=(a>>>8|f<<8)&8191,this.r[9]=f>>>5&127;for(let l=0;l<8;l++)this.pad[l]=X(e,16+2*l)}process(e,n,r=!1){let o=r?0:2048,{h:s,r:i}=this,c=i[0],a=i[1],f=i[2],l=i[3],u=i[4],p=i[5],y=i[6],g=i[7],h=i[8],d=i[9],w=X(e,n+0),b=X(e,n+2),m=X(e,n+4),A=X(e,n+6),I=X(e,n+8),B=X(e,n+10),_=X(e,n+12),S=X(e,n+14),R=s[0]+(w&8191),k=s[1]+((w>>>13|b<<3)&8191),U=s[2]+((b>>>10|m<<6)&8191),P=s[3]+((m>>>7|A<<9)&8191),$=s[4]+((A>>>4|I<<12)&8191),j=s[5]+(I>>>1&8191),x=s[6]+((I>>>14|B<<2)&8191),E=s[7]+((B>>>11|_<<5)&8191),T=s[8]+((_>>>8|S<<8)&8191),O=s[9]+(S>>>5|o),v=0,C=v+R*c+k*(5*d)+U*(5*h)+P*(5*g)+$*(5*y);v=C>>>13,C&=8191,C+=j*(5*p)+x*(5*u)+E*(5*l)+T*(5*f)+O*(5*a),v+=C>>>13,C&=8191;let M=v+R*a+k*c+U*(5*d)+P*(5*h)+$*(5*g);v=M>>>13,M&=8191,M+=j*(5*y)+x*(5*p)+E*(5*u)+T*(5*l)+O*(5*f),v+=M>>>13,M&=8191;let q=v+R*f+k*a+U*c+P*(5*d)+$*(5*h);v=q>>>13,q&=8191,q+=j*(5*g)+x*(5*y)+E*(5*p)+T*(5*u)+O*(5*l),v+=q>>>13,q&=8191;let G=v+R*l+k*f+U*a+P*c+$*(5*d);v=G>>>13,G&=8191,G+=j*(5*h)+x*(5*g)+E*(5*y)+T*(5*p)+O*(5*u),v+=G>>>13,G&=8191;let F=v+R*u+k*l+U*f+P*a+$*c;v=F>>>13,F&=8191,F+=j*(5*d)+x*(5*h)+E*(5*g)+T*(5*y)+O*(5*p),v+=F>>>13,F&=8191;let rt=v+R*p+k*u+U*l+P*f+$*a;v=rt>>>13,rt&=8191,rt+=j*c+x*(5*d)+E*(5*h)+T*(5*g)+O*(5*y),v+=rt>>>13,rt&=8191;let it=v+R*y+k*p+U*u+P*l+$*f;v=it>>>13,it&=8191,it+=j*a+x*c+E*(5*d)+T*(5*h)+O*(5*g),v+=it>>>13,it&=8191;let tt=v+R*g+k*y+U*p+P*u+$*l;v=tt>>>13,tt&=8191,tt+=j*f+x*a+E*c+T*(5*d)+O*(5*h),v+=tt>>>13,tt&=8191;let yt=v+R*h+k*g+U*y+P*p+$*u;v=yt>>>13,yt&=8191,yt+=j*l+x*f+E*a+T*c+O*(5*d),v+=yt>>>13,yt&=8191;let nt=v+R*d+k*h+U*g+P*y+$*p;v=nt>>>13,nt&=8191,nt+=j*u+x*l+E*f+T*a+O*c,v+=nt>>>13,nt&=8191,v=(v<<2)+v|0,v=v+C|0,C=v&8191,v=v>>>13,M+=v,s[0]=C,s[1]=M,s[2]=q,s[3]=G,s[4]=F,s[5]=rt,s[6]=it,s[7]=tt,s[8]=yt,s[9]=nt}finalize(){let{h:e,pad:n}=this,r=new Uint16Array(10),o=e[1]>>>13;e[1]&=8191;for(let c=2;c<10;c++)e[c]+=o,o=e[c]>>>13,e[c]&=8191;e[0]+=o*5,o=e[0]>>>13,e[0]&=8191,e[1]+=o,o=e[1]>>>13,e[1]&=8191,e[2]+=o,r[0]=e[0]+5,o=r[0]>>>13,r[0]&=8191;for(let c=1;c<10;c++)r[c]=e[c]+o,o=r[c]>>>13,r[c]&=8191;r[9]-=8192;let s=(o^1)-1;for(let c=0;c<10;c++)r[c]&=s;s=~s;for(let c=0;c<10;c++)e[c]=e[c]&s|r[c];e[0]=(e[0]|e[1]<<13)&65535,e[1]=(e[1]>>>3|e[2]<<10)&65535,e[2]=(e[2]>>>6|e[3]<<7)&65535,e[3]=(e[3]>>>9|e[4]<<4)&65535,e[4]=(e[4]>>>12|e[5]<<1|e[6]<<14)&65535,e[5]=(e[6]>>>2|e[7]<<11)&65535,e[6]=(e[7]>>>5|e[8]<<8)&65535,e[7]=(e[8]>>>8|e[9]<<5)&65535;let i=e[0]+n[0];e[0]=i&65535;for(let c=1;c<8;c++)i=(e[c]+n[c]|0)+(i>>>16)|0,e[c]=i&65535}update(e){qt(this);let{buffer:n,blockLen:r}=this;e=xt(e);let o=e.length;for(let s=0;s>>0,e[s++]=r[i]>>>8;return e}digest(){let{buffer:e,outputLen:n}=this;this.digestInto(e);let r=e.slice(0,n);return this.destroy(),r}};function bi(t){let e=(r,o)=>t(o).update(xt(r)).digest(),n=t(new Uint8Array(32));return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=r=>t(r),e}var eo=bi(t=>new Dn(t));var ro=t=>Uint8Array.from(t.split("").map(e=>e.charCodeAt(0))),xi=ro("expand 16-byte k"),mi=ro("expand 32-byte k"),Ei=H(xi),oo=H(mi),jl=oo.slice();function L(t,e){return t<>>32-e}function Wn(t){return t.byteOffset%4===0}var Ze=64,vi=16,so=2**32-1,no=new Uint32Array;function Bi(t,e,n,r,o,s,i,c){let a=o.length,f=new Uint8Array(Ze),l=H(f),u=Wn(o)&&Wn(s),p=u?H(o):no,y=u?H(s):no;for(let g=0;g=so)throw new Error("arx: counter overflow");let h=Math.min(Ze,a-g);if(u&&h===Ze){let d=g/4;if(g%4!==0)throw new Error("arx: invalid block position");for(let w=0,b;w{N(c),N(a),N(f);let p=f.length;if(l||(l=new Uint8Array(p)),N(l),Ke(u),u<0||u>=so)throw new Error("arx: counter overflow");if(l.length0;)y.pop().fill(0);return l}}function ao(t,e,n,r,o,s=20){let i=t[0],c=t[1],a=t[2],f=t[3],l=e[0],u=e[1],p=e[2],y=e[3],g=e[4],h=e[5],d=e[6],w=e[7],b=o,m=n[0],A=n[1],I=n[2],B=i,_=c,S=a,R=f,k=l,U=u,P=p,$=y,j=g,x=h,E=d,T=w,O=b,v=m,C=A,M=I;for(let G=0;G{t.update(e);let n=e.length%16;n&&t.update(Li.subarray(n))},Si=new Uint8Array(32);function co(t,e,n,r,o){let s=t(e,n,Si),i=eo.create(s);o&&io(i,o),io(i,r);let c=new Uint8Array(16),a=Mt(c);Xt(a,0,BigInt(o?o.length:0),!0),Xt(a,8,BigInt(r.length),!0),i.update(c);let f=i.digest();return s.fill(0),f}var fo=t=>(e,n,r)=>(N(e,32),N(n),{encrypt:(s,i)=>{let c=s.length,a=c+16;i?N(i,a):i=new Uint8Array(a),t(e,n,s,i,1);let f=co(t,e,n,i.subarray(0,-16),r);return i.set(f,c),i},decrypt:(s,i)=>{let c=s.length,a=c-16;if(c<16)throw new Error("encrypted data must be at least 16 bytes");i?N(i,a):i=new Uint8Array(a);let f=s.subarray(0,-16),l=s.subarray(-16),u=co(t,e,n,f,r);if(!Yt(l,u))throw new Error("invalid tag");return t(e,n,f,i,1),i}}),Zl=mt({blockSize:64,nonceLength:12,tagLength:16},fo(Ge)),Gl=mt({blockSize:64,nonceLength:24,tagLength:16},fo(_i));var Je=class extends oe{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,st.hash(e);let r=Rt(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let o=this.blockLen,s=new Uint8Array(o);s.set(r.length>o?e.create().update(r).digest():r);for(let i=0;inew Je(t,e).update(n).digest();ae.create=(t,e)=>new Je(t,e);function uo(t,e,n){return st.hash(t),n===void 0&&(n=new Uint8Array(t.outputLen)),ae(t,Rt(n),Rt(e))}var Zn=new Uint8Array([0]),lo=new Uint8Array;function ho(t,e,n,r=32){if(st.hash(t),st.number(r),r>255*t.outputLen)throw new Error("Length should be <= 255*HashLen");let o=Math.ceil(r/t.outputLen);n===void 0&&(n=lo);let s=new Uint8Array(o*t.outputLen),i=ae.create(t,e),c=i._cloneInto(),a=new Uint8Array(i.outputLen);for(let f=0;f{for(var n in e)Ti(t,n,{get:e[n],enumerable:!0})},Qt=Symbol("verified"),Ii=t=>t instanceof Object;function po(t){if(!Ii(t)||typeof t.kind!="number"||typeof t.content!="string"||typeof t.created_at!="number"||typeof t.pubkey!="string"||!t.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(t.tags))return!1;for(let e=0;eyo,QueueNode:()=>go,binarySearch:()=>Gn,insertEventIntoAscendingList:()=>Oi,insertEventIntoDescendingList:()=>ki,normalizeURL:()=>fe,utf8Decoder:()=>Bt,utf8Encoder:()=>gt});var Bt=new TextDecoder("utf-8"),gt=new TextEncoder;function fe(t){t.indexOf("://")===-1&&(t="wss://"+t);let e=new URL(t);return e.pathname=e.pathname.replace(/\/+/g,"/"),e.pathname.endsWith("/")&&(e.pathname=e.pathname.slice(0,-1)),(e.port==="80"&&e.protocol==="ws:"||e.port==="443"&&e.protocol==="wss:")&&(e.port=""),e.searchParams.sort(),e.hash="",e.toString()}function ki(t,e){let[n,r]=Gn(t,o=>e.id===o.id?0:e.created_at===o.created_at?-1:o.created_at-e.created_at);return r||t.splice(n,0,e),t}function Oi(t,e){let[n,r]=Gn(t,o=>e.id===o.id?0:e.created_at===o.created_at?-1:e.created_at-o.created_at);return r||t.splice(n,0,e),t}function Gn(t,e){let n=0,r=t.length-1;for(;n<=r;){let o=Math.floor((n+r)/2),s=e(t[o]);if(s===0)return[o,!0];s<0?r=o-1:n=o+1}return[n,!1]}var go=class{value;next=null;prev=null;constructor(t){this.value=t}},yo=class{first;last;constructor(){this.first=null,this.last=null}enqueue(t){let e=new go(t);return this.last?this.last===this.first?(this.last=e,this.last.prev=this.first,this.first.next=e):(e.prev=this.last,this.last.next=e,this.last=e):(this.first=e,this.last=e),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){let e=this.first;return this.first=null,this.last=null,e.value}let t=this.first;return this.first=t.next,t.value}},Ri=class{generateSecretKey(){return re.utils.randomPrivateKey()}getPublicKey(t){return J(re.getPublicKey(t))}finalizeEvent(t,e){let n=t;return n.pubkey=J(re.getPublicKey(e)),n.id=Xe(n),n.sig=J(re.sign(Xe(n),e)),n[Qt]=!0,n}verifyEvent(t){if(typeof t[Qt]=="boolean")return t[Qt];let e=Xe(t);if(e!==t.id)return t[Qt]=!1,!1;try{let n=re.verify(t.sig,e,t.pubkey);return t[Qt]=n,n}catch{return t[Qt]=!1,!1}}};function Ci(t){if(!po(t))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,t.pubkey,t.created_at,t.kind,t.tags,t.content])}function Xe(t){let e=Ht(gt.encode(Ci(t)));return J(e)}var Qe=new Ri,iu=Qe.generateSecretKey,cu=Qe.getPublicKey,Vt=Qe.finalizeEvent,Fe=Qe.verifyEvent,Ni={};D(Ni,{Application:()=>Nc,BadgeAward:()=>Di,BadgeDefinition:()=>Tc,BlockedRelaysList:()=>dc,BookmarkList:()=>lc,Bookmarksets:()=>_c,Calendar:()=>Kc,CalendarEventRSVP:()=>Vc,ChannelCreation:()=>Eo,ChannelHideMessage:()=>Ao,ChannelMessage:()=>Bo,ChannelMetadata:()=>vo,ChannelMuteUser:()=>_o,ClassifiedListing:()=>$c,ClientAuth:()=>Lo,CommunitiesList:()=>uc,CommunityDefinition:()=>zc,CommunityPostApproval:()=>Fi,Contacts:()=>Mi,CreateOrUpdateProduct:()=>kc,CreateOrUpdateStall:()=>Uc,Curationsets:()=>Lc,Date:()=>Mc,DraftClassifiedListing:()=>qc,DraftLong:()=>Rc,Emojisets:()=>Cc,EncryptedDirectMessage:()=>ji,EncryptedDirectMessages:()=>Ki,EventDeletion:()=>Vi,FileMetadata:()=>Zi,FileServerPreference:()=>wc,Followsets:()=>vc,GenericRepost:()=>Wi,Genericlists:()=>Bc,HTTPAuth:()=>Xn,Handlerinformation:()=>Wc,Handlerrecommendation:()=>Dc,Highlights:()=>ic,InterestsList:()=>gc,Interestsets:()=>Ic,JobFeedback:()=>nc,JobRequest:()=>tc,JobResult:()=>ec,Label:()=>Qi,LightningPubRPC:()=>xc,LiveChatMessage:()=>Gi,LiveEvent:()=>Hc,LongFormArticle:()=>Oc,Metadata:()=>Pi,Mutelist:()=>cc,NWCWalletInfo:()=>bc,NWCWalletRequest:()=>So,NWCWalletResponse:()=>mc,NostrConnect:()=>Ec,OpenTimestamps:()=>zi,Pinlist:()=>ac,ProblemTracker:()=>Ji,ProfileBadges:()=>Sc,PublicChatsList:()=>hc,Reaction:()=>Yn,RecommendRelay:()=>qi,RelayList:()=>fc,Relaysets:()=>Ac,Report:()=>Yi,Reporting:()=>Xi,Repost:()=>Jn,SearchRelaysList:()=>pc,ShortTextNote:()=>$i,Time:()=>jc,UserEmojiList:()=>yc,UserStatuses:()=>Pc,Zap:()=>sc,ZapGoal:()=>rc,ZapRequest:()=>oc,classifyKind:()=>Hi,isEphemeralKind:()=>xo,isParameterizedReplaceableKind:()=>mo,isRegularKind:()=>wo,isReplaceableKind:()=>bo});function wo(t){return 1e3<=t&&t<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(t)}function bo(t){return[0,3].includes(t)||1e4<=t&&t<2e4}function xo(t){return 2e4<=t&&t<3e4}function mo(t){return 3e4<=t&&t<4e4}function Hi(t){return wo(t)?"regular":bo(t)?"replaceable":xo(t)?"ephemeral":mo(t)?"parameterized":"unknown"}var Pi=0,$i=1,qi=2,Mi=3,ji=4,Ki=4,Vi=5,Jn=6,Yn=7,Di=8,Wi=16,Eo=40,vo=41,Bo=42,Ao=43,_o=44,zi=1040,Zi=1063,Gi=1311,Ji=1971,Yi=1984,Xi=1984,Qi=1985,Fi=4550,tc=5999,ec=6999,nc=7e3,rc=9041,oc=9734,sc=9735,ic=9802,cc=1e4,ac=10001,fc=10002,lc=10003,uc=10004,hc=10005,dc=10006,pc=10007,gc=10015,yc=10030,wc=10096,bc=13194,xc=21e3,Lo=22242,So=23194,mc=23195,Ec=24133,Xn=27235,vc=3e4,Bc=30001,Ac=30002,_c=30003,Lc=30004,Sc=30008,Tc=30009,Ic=30015,Uc=30017,kc=30018,Oc=30023,Rc=30024,Cc=30030,Nc=30078,Hc=30311,Pc=30315,$c=30402,qc=30403,Mc=31922,jc=31923,Kc=31924,Vc=31925,Dc=31989,Wc=31990,zc=34550;function Zc(t,e){if(t.ids&&t.ids.indexOf(e.id)===-1||t.kinds&&t.kinds.indexOf(e.kind)===-1||t.authors&&t.authors.indexOf(e.pubkey)===-1)return!1;for(let n in t)if(n[0]==="#"){let r=n.slice(1),o=t[`#${r}`];if(o&&!e.tags.find(([s,i])=>s===n.slice(1)&&o.indexOf(i)!==-1))return!1}return!(t.since&&e.created_att.until)}function Gc(t,e){for(let n=0;ntn,getInt:()=>To,getSubscriptionId:()=>Io,matchEventId:()=>Yc,matchEventKind:()=>Qc,matchEventPubkey:()=>Xc});function tn(t,e){let n=e.length+3,r=t.indexOf(`"${e}":`)+n,o=t.slice(r).indexOf('"')+r+1;return t.slice(o,o+64)}function To(t,e){let n=e.length,r=t.indexOf(`"${e}":`)+n+3,o=t.slice(r),s=Math.min(o.indexOf(","),o.indexOf("}"));return parseInt(o.slice(0,s),10)}function Io(t){let e=t.slice(0,22).indexOf('"EVENT"');if(e===-1)return null;let n=t.slice(e+7+1).indexOf('"');if(n===-1)return null;let r=e+7+1+n,o=t.slice(r+1,80).indexOf('"');if(o===-1)return null;let s=r+1+o;return t.slice(r+1,s)}function Yc(t,e){return e===tn(t,"id")}function Xc(t,e){return e===tn(t,"pubkey")}function Qc(t,e){return e===To(t,"kind")}var Fc={};D(Fc,{makeAuthEvent:()=>Uo});function Uo(t,e){return{kind:Lo,created_at:Math.floor(Date.now()/1e3),tags:[["relay",t],["challenge",e]],content:""}}function ta(){return K(this,null,function*(){return new Promise(t=>{let e=new MessageChannel,n=()=>{e.port1.removeEventListener("message",n),t()};e.port1.addEventListener("message",n),e.port2.postMessage(0),e.port1.start()})})}var ea=t=>(t[Qt]=!0,!0),ko=class{url;_connected=!1;onclose=null;onnotice=t=>console.debug(`NOTICE from ${this.url}: ${t}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new yo;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(t,e){this.url=fe(t),this.verifyEvent=e.verifyEvent,this._WebSocket=e.websocketImplementation||WebSocket}static connect(t,e){return K(this,null,function*(){let n=new ko(t,e);return yield n.connect(),n})}closeAllSubscriptions(t){for(let[e,n]of this.openSubs)n.close(t);this.openSubs.clear();for(let[e,n]of this.openEventPublishes)n.reject(new Error(t));this.openEventPublishes.clear();for(let[e,n]of this.openCountRequests)n.reject(new Error(t));this.openCountRequests.clear()}get connected(){return this._connected}connect(){return K(this,null,function*(){return this.connectionPromise?this.connectionPromise:(this.challenge=void 0,this.connectionPromise=new Promise((t,e)=>{this.connectionTimeoutHandle=setTimeout(()=>{e("connection timed out"),this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection timed out")},this.connectionTimeout);try{this.ws=new this._WebSocket(this.url)}catch(n){e(n);return}this.ws.onopen=()=>{clearTimeout(this.connectionTimeoutHandle),this._connected=!0,t()},this.ws.onerror=n=>{e(n.message||"websocket error"),this._connected&&(this._connected=!1,this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection errored"))},this.ws.onclose=()=>K(this,null,function*(){this._connected&&(this._connected=!1,this.connectionPromise=void 0,this.onclose?.(),this.closeAllSubscriptions("relay connection closed"))}),this.ws.onmessage=this._onmessage.bind(this)}),this.connectionPromise)})}runQueue(){return K(this,null,function*(){for(this.queueRunning=!0;this.handleNext()!==!1;)yield ta();this.queueRunning=!1})}handleNext(){let t=this.incomingMessageQueue.dequeue();if(!t)return!1;let e=Io(t);if(e){let n=this.openSubs.get(e);if(!n)return;let r=tn(t,"id"),o=n.alreadyHaveEvent?.(r);if(n.receivedEvent?.(this,r),o)return}try{let n=JSON.parse(t);switch(n[0]){case"EVENT":{let r=this.openSubs.get(n[1]),o=n[2];this.verifyEvent(o)&&Gc(r.filters,o)&&r.onevent(o);return}case"COUNT":{let r=n[1],o=n[2],s=this.openCountRequests.get(r);s&&(s.resolve(o.count),this.openCountRequests.delete(r));return}case"EOSE":{let r=this.openSubs.get(n[1]);if(!r)return;r.receivedEose();return}case"OK":{let r=n[1],o=n[2],s=n[3],i=this.openEventPublishes.get(r);o?i.resolve(s):i.reject(new Error(s)),this.openEventPublishes.delete(r);return}case"CLOSED":{let r=n[1],o=this.openSubs.get(r);if(!o)return;o.closed=!0,o.close(n[2]);return}case"NOTICE":this.onnotice(n[1]);return;case"AUTH":{this.challenge=n[1],this._onauth?.(n[1]);return}}}catch{return}}send(t){return K(this,null,function*(){if(!this.connectionPromise)throw new Error("sending on closed connection");this.connectionPromise.then(()=>{this.ws?.send(t)})})}auth(t){return K(this,null,function*(){if(!this.challenge)throw new Error("can't perform auth, no challenge was received");let e=yield t(Uo(this.url,this.challenge)),n=new Promise((r,o)=>{this.openEventPublishes.set(e.id,{resolve:r,reject:o})});return this.send('["AUTH",'+JSON.stringify(e)+"]"),n})}publish(t){return K(this,null,function*(){let e=new Promise((n,r)=>{this.openEventPublishes.set(t.id,{resolve:n,reject:r})});return this.send('["EVENT",'+JSON.stringify(t)+"]"),e})}count(t,e){return K(this,null,function*(){this.serial++;let n=e?.id||"count:"+this.serial,r=new Promise((o,s)=>{this.openCountRequests.set(n,{resolve:o,reject:s})});return this.send('["COUNT","'+n+'",'+JSON.stringify(t).substring(1)),r})}subscribe(t,e){let n=this.prepareSubscription(t,e);return n.fire(),n}prepareSubscription(t,e){this.serial++;let n=e.id||"sub:"+this.serial,r=new na(this,n,t,e);return this.openSubs.set(n,r),r}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(t){this.incomingMessageQueue.enqueue(t.data),this.queueRunning||this.runQueue()}},na=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(t,e,n,r){this.relay=t,this.filters=n,this.id=e,this.alreadyHaveEvent=r.alreadyHaveEvent,this.receivedEvent=r.receivedEvent,this.eoseTimeout=r.eoseTimeout||t.baseEoseTimeout,this.oneose=r.oneose,this.onclose=r.onclose,this.onevent=r.onevent||(o=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,o)})}fire(){this.relay.send('["REQ","'+this.id+'",'+JSON.stringify(this.filters).substring(1)),this.eoseTimeoutHandle=setTimeout(this.receivedEose.bind(this),this.eoseTimeout)}receivedEose(){this.eosed||(clearTimeout(this.eoseTimeoutHandle),this.eosed=!0,this.oneose?.())}close(t="closed by caller"){!this.closed&&this.relay.connected&&(this.relay.send('["CLOSE",'+JSON.stringify(this.id)+"]"),this.closed=!0),this.relay.openSubs.delete(this.id),this.onclose?.(t)}},ra;try{ra=WebSocket}catch{}var oa=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(t){this.verifyEvent=t.verifyEvent,this._WebSocket=t.websocketImplementation}ensureRelay(t,e){return K(this,null,function*(){t=fe(t);let n=this.relays.get(t);return n||(n=new ko(t,{verifyEvent:this.trustedRelayURLs.has(t)?ea:this.verifyEvent,websocketImplementation:this._WebSocket}),e?.connectionTimeout&&(n.connectionTimeout=e.connectionTimeout),this.relays.set(t,n)),yield n.connect(),n})}close(t){t.map(fe).forEach(e=>{this.relays.get(e)?.close()})}subscribeMany(t,e,n){return this.subscribeManyMap(Object.fromEntries(t.map(r=>[r,e])),n)}subscribeManyMap(t,e){this.trackRelays&&(e.receivedEvent=(p,y)=>{let g=this.seenOn.get(y);g||(g=new Set,this.seenOn.set(y,g)),g.add(p)});let n=new Set,r=[],o=Object.keys(t).length,s=[],i=p=>{s[p]=!0,s.filter(y=>y).length===o&&(e.oneose?.(),i=()=>{})},c=[],a=(p,y)=>{i(p),c[p]=y,c.filter(g=>g).length===o&&(e.onclose?.(c),a=()=>{})},f=p=>{if(e.alreadyHaveEvent?.(p))return!0;let y=n.has(p);return n.add(p),y},l=Promise.all(Object.entries(t).map((p,y,g)=>K(this,null,function*(){if(g.indexOf(p)!==y){a(y,"duplicate url");return}let[h,d]=p;h=fe(h);let w;try{w=yield this.ensureRelay(h,{connectionTimeout:e.maxWait?Math.max(e.maxWait*.8,e.maxWait-1e3):void 0})}catch(m){a(y,m?.message||String(m));return}let b=w.subscribe(d,ut(Q({},e),{oneose:()=>i(y),onclose:m=>a(y,m),alreadyHaveEvent:f,eoseTimeout:e.maxWait}));r.push(b)})));return{close(){return K(this,null,function*(){yield l,r.forEach(p=>{p.close()})})}}}subscribeManyEose(t,e,n){let r=this.subscribeMany(t,e,ut(Q({},n),{oneose(){r.close()}}));return r}querySync(t,e,n){return K(this,null,function*(){return new Promise(r=>K(this,null,function*(){let o=[];this.subscribeManyEose(t,[e],ut(Q({},n),{onevent(s){o.push(s)},onclose(s){r(o)}}))}))})}get(t,e,n){return K(this,null,function*(){e.limit=1;let r=yield this.querySync(t,e,n);return r.sort((o,s)=>s.created_at-o.created_at),r[0]||null})}publish(t,e){return t.map(fe).map((n,r,o)=>K(this,null,function*(){return o.indexOf(n)!==r?Promise.reject("duplicate url"):(yield this.ensureRelay(n)).publish(e)}))}listConnectionStatus(){let t=new Map;return this.relays.forEach((e,n)=>t.set(n,e.connected)),t}destroy(){this.relays.forEach(t=>t.close()),this.relays=new Map}},Oo;try{Oo=WebSocket}catch{}var au=class extends oa{constructor(){super({verifyEvent:Fe,websocketImplementation:Oo})}},sa={};D(sa,{BECH32_REGEX:()=>Ro,Bech32MaxSize:()=>Qn,decode:()=>en,encodeBytes:()=>nn,naddrEncode:()=>ha,neventEncode:()=>ua,noteEncode:()=>fa,nprofileEncode:()=>la,npubEncode:()=>aa,nrelayEncode:()=>da,nsecEncode:()=>ca});var Qn=5e3,Ro=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ia(t){let e=new Uint8Array(4);return e[0]=t>>24&255,e[1]=t>>16&255,e[2]=t>>8&255,e[3]=t&255,e}function en(t){let{prefix:e,words:n}=$t.decode(t,Qn),r=new Uint8Array($t.fromWords(n));switch(e){case"nprofile":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:J(o[0][0]),relays:o[1]?o[1].map(s=>Bt.decode(s)):[]}}}case"nevent":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nevent");if(o[0][0].length!==32)throw new Error("TLV 0 should be 32 bytes");if(o[2]&&o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(o[3]&&o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:J(o[0][0]),relays:o[1]?o[1].map(s=>Bt.decode(s)):[],author:o[2]?.[0]?J(o[2][0]):void 0,kind:o[3]?.[0]?parseInt(J(o[3][0]),16):void 0}}}case"naddr":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!o[2]?.[0])throw new Error("missing TLV 2 for naddr");if(o[2][0].length!==32)throw new Error("TLV 2 should be 32 bytes");if(!o[3]?.[0])throw new Error("missing TLV 3 for naddr");if(o[3][0].length!==4)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Bt.decode(o[0][0]),pubkey:J(o[2][0]),kind:parseInt(J(o[3][0]),16),relays:o[1]?o[1].map(s=>Bt.decode(s)):[]}}}case"nrelay":{let o=Ye(r);if(!o[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:Bt.decode(o[0][0])}}case"nsec":return{type:e,data:r};case"npub":case"note":return{type:e,data:J(r)};default:throw new Error(`unknown prefix ${e}`)}}function Ye(t){let e={},n=t;for(;n.length>0;){let r=n[0],o=n[1],s=n.slice(2,2+o);if(n=n.slice(2+o),s.lengthgt.encode(n))});return ye("nprofile",e)}function ua(t){let e;t.kind!==void 0&&(e=ia(t.kind));let n=rn({0:[Gt(t.id)],1:(t.relays||[]).map(r=>gt.encode(r)),2:t.author?[Gt(t.author)]:[],3:e?[new Uint8Array(e)]:[]});return ye("nevent",n)}function ha(t){let e=new ArrayBuffer(4);new DataView(e).setUint32(0,t.kind,!1);let n=rn({0:[gt.encode(t.identifier)],1:(t.relays||[]).map(r=>gt.encode(r)),2:[Gt(t.pubkey)],3:[new Uint8Array(e)]});return ye("naddr",n)}function da(t){let e=rn({0:[gt.encode(t)]});return ye("nrelay",e)}function rn(t){let e=[];return Object.entries(t).reverse().forEach(([n,r])=>{r.forEach(o=>{let s=new Uint8Array(o.length+2);s.set([parseInt(n)],0),s.set([o.length],1),s.set(o,2),e.push(s)})}),se(...e)}var pa={};D(pa,{decrypt:()=>ga,encrypt:()=>Co});function Co(t,e,n){return K(this,null,function*(){let r=t instanceof Uint8Array?J(t):t,o=Ot.getSharedSecret(r,"02"+e),s=No(o),i=Uint8Array.from(He(16)),c=gt.encode(n),a=Vn(s,i).encrypt(c),f=at.encode(new Uint8Array(a)),l=at.encode(new Uint8Array(i.buffer));return`${f}?iv=${l}`})}function ga(t,e,n){return K(this,null,function*(){let r=t instanceof Uint8Array?J(t):t,[o,s]=n.split("?iv="),i=Ot.getSharedSecret(r,"02"+e),c=No(i),a=at.decode(s),f=at.decode(o),l=Vn(c,a).decrypt(f);return Bt.decode(l)})}function No(t){return t.slice(1,33)}var ya={};D(ya,{NIP05_REGEX:()=>Ho,isValid:()=>xa,queryProfile:()=>Po,searchDomain:()=>ba,useFetchImplementation:()=>wa});var Ho=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,on;try{on=fetch}catch{}function wa(t){on=t}function ba(t,e=""){return K(this,null,function*(){try{let n=`https://${t}/.well-known/nostr.json?name=${e}`;return(yield(yield on(n,{redirect:"error"})).json()).names}catch{return{}}})}function Po(t){return K(this,null,function*(){let e=t.match(Ho);if(!e)return null;let[n,r="_",o]=e;try{let s=`https://${o}/.well-known/nostr.json?name=${r}`,i=yield(yield on(s,{redirect:"error"})).json(),c=i.names[r];return c?{pubkey:c,relays:i.relays?.[c]}:null}catch{return null}})}function xa(t,e){return K(this,null,function*(){let n=yield Po(e);return n?n.pubkey===t:!1})}var ma={};D(ma,{parse:()=>Ea});function Ea(t){let e={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(let r of t.tags)r[0]==="e"&&r[1]&&n.push(r),r[0]==="p"&&r[1]&&e.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;rAa,useFetchImplementation:()=>Ba});var $o;try{$o=fetch}catch{}function Ba(t){$o=t}function Aa(t){return K(this,null,function*(){return yield(yield fetch(t.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})}var _a={};D(_a,{getPow:()=>qo,minePow:()=>La});function qo(t){let e=0;for(let n=0;n=e)break}return r}var Sa={};D(Sa,{finishRepostEvent:()=>Ta,getRepostedEvent:()=>Ia,getRepostedEventPointer:()=>Mo});function Ta(t,e,n,r){return Vt({kind:Jn,tags:[...t.tags??[],["e",e.id,n],["p",e.pubkey]],content:t.content===""?"":JSON.stringify(e),created_at:t.created_at},r)}function Mo(t){if(t.kind!==Jn)return;let e,n;for(let r=t.tags.length-1;r>=0&&(e===void 0||n===void 0);r--){let o=t.tags[r];o.length>=2&&(o[0]==="e"&&e===void 0?e=o:o[0]==="p"&&n===void 0&&(n=o))}if(e!==void 0)return{id:e[1],relays:[e[2],n?.[2]].filter(r=>typeof r=="string"),author:n?.[1]}}function Ia(t,{skipVerification:e}={}){let n=Mo(t);if(n===void 0||t.content==="")return;let r;try{r=JSON.parse(t.content)}catch{return}if(r.id===n.id&&!(!e&&!Fe(r)))return r}var Ua={};D(Ua,{NOSTR_URI_REGEX:()=>sn,parse:()=>Oa,test:()=>ka});var sn=new RegExp(`nostr:(${Ro.source})`);function ka(t){return typeof t=="string"&&new RegExp(`^${sn.source}$`).test(t)}function Oa(t){let e=t.match(new RegExp(`^${sn.source}$`));if(!e)throw new Error(`Invalid Nostr URI: ${t}`);return{uri:e[0],value:e[1],decoded:en(e[1])}}var Ra={};D(Ra,{finishReactionEvent:()=>Ca,getReactedEventPointer:()=>Na});function Ca(t,e,n){let r=e.tags.filter(o=>o.length>=2&&(o[0]==="e"||o[0]==="p"));return Vt(ut(Q({},t),{kind:Yn,tags:[...t.tags??[],...r,["e",e.id],["p",e.pubkey]],content:t.content??"+"}),n)}function Na(t){if(t.kind!==Yn)return;let e,n;for(let r=t.tags.length-1;r>=0&&(e===void 0||n===void 0);r--){let o=t.tags[r];o.length>=2&&(o[0]==="e"&&e===void 0?e=o:o[0]==="p"&&n===void 0&&(n=o))}if(!(e===void 0||n===void 0))return{id:e[1],relays:[e[2],n[2]].filter(r=>r!==void 0),author:n[1]}}var Ha={};D(Ha,{matchAll:()=>Pa,regex:()=>Fn,replaceAll:()=>$a});var Fn=()=>new RegExp(`\\b${sn.source}\\b`,"g");function*Pa(t){let e=t.matchAll(Fn());for(let n of e)try{let[r,o]=n;yield{uri:r,value:o,decoded:en(o),start:n.index,end:n.index+r.length}}catch{}}function $a(t,e){return t.replaceAll(Fn(),(n,r)=>e({uri:n,value:r,decoded:en(r)}))}var qa={};D(qa,{channelCreateEvent:()=>Ma,channelHideMessageEvent:()=>Va,channelMessageEvent:()=>Ka,channelMetadataEvent:()=>ja,channelMuteUserEvent:()=>Da});var Ma=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:Eo,tags:[...t.tags??[]],content:n,created_at:t.created_at},e)},ja=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:vo,tags:[["e",t.channel_create_event_id],...t.tags??[]],content:n,created_at:t.created_at},e)},Ka=(t,e)=>{let n=[["e",t.channel_create_event_id,t.relay_url,"root"]];return t.reply_to_channel_message_event_id&&n.push(["e",t.reply_to_channel_message_event_id,t.relay_url,"reply"]),Vt({kind:Bo,tags:[...n,...t.tags??[]],content:t.content,created_at:t.created_at},e)},Va=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:Ao,tags:[["e",t.channel_message_event_id],...t.tags??[]],content:n,created_at:t.created_at},e)},Da=(t,e)=>{let n;if(typeof t.content=="object")n=JSON.stringify(t.content);else if(typeof t.content=="string")n=t.content;else return;return Vt({kind:_o,tags:[["p",t.pubkey_to_mute],...t.tags??[]],content:n,created_at:t.created_at},e)},Wa={};D(Wa,{EMOJI_SHORTCODE_REGEX:()=>jo,matchAll:()=>za,regex:()=>tr,replaceAll:()=>Za});var jo=/:(\w+):/,tr=()=>new RegExp(`\\B${jo.source}\\B`,"g");function*za(t){let e=t.matchAll(tr());for(let n of e)try{let[r,o]=n;yield{shortcode:r,name:o,start:n.index,end:n.index+r.length}}catch{}}function Za(t,e){return t.replaceAll(tr(),(n,r)=>e({shortcode:n,name:r}))}var Ga={};D(Ga,{useFetchImplementation:()=>Ja,validateGithub:()=>Ya});var er;try{er=fetch}catch{}function Ja(t){er=t}function Ya(t,e,n){return K(this,null,function*(){try{return(yield(yield er(`https://gist.github.com/${e}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${t}`}catch{return!1}})}var Xa={};D(Xa,{decrypt:()=>Go,encrypt:()=>Zo,getConversationKey:()=>Do,v2:()=>nf});var Ko=1,Vo=65535;function Do(t,e){let n=Ot.getSharedSecret(t,"02"+e).subarray(1,33);return uo(Ht,n,"nip44-v2")}function Wo(t,e){let n=ho(Ht,t,e,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}}function nr(t){if(!Number.isSafeInteger(t)||t<1)throw new Error("expected positive integer");if(t<=32)return 32;let e=1<Vo)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");let e=new Uint8Array(2);return new DataView(e.buffer).setUint16(0,t,!1),e}function Fa(t){let e=gt.encode(t),n=e.length,r=Qa(n),o=new Uint8Array(nr(n)-n);return se(r,e,o)}function tf(t){let e=new DataView(t.buffer).getUint16(0),n=t.subarray(2,2+e);if(eVo||n.length!==e||t.length!==2+nr(e))throw new Error("invalid padding");return Bt.decode(n)}function zo(t,e,n){if(n.length!==32)throw new Error("AAD associated data must be 32 bytes");let r=se(n,e);return ae(Ht,t,r)}function ef(t){if(typeof t!="string")throw new Error("payload must be a valid string");let e=t.length;if(e<132||e>87472)throw new Error("invalid payload length: "+e);if(t[0]==="#")throw new Error("unknown encryption version");let n;try{n=at.decode(t)}catch(s){throw new Error("invalid base64: "+s.message)}let r=n.length;if(r<99||r>65603)throw new Error("invalid data length: "+r);let o=n[0];if(o!==2)throw new Error("unknown encryption version "+o);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}function Zo(t,e,n=He(32)){let{chacha_key:r,chacha_nonce:o,hmac_key:s}=Wo(e,n),i=Fa(t),c=Ge(r,o,i),a=zo(s,c,n);return at.encode(se(new Uint8Array([2]),n,c,a))}function Go(t,e){let{nonce:n,ciphertext:r,mac:o}=ef(t),{chacha_key:s,chacha_nonce:i,hmac_key:c}=Wo(e,n),a=zo(c,r,n);if(!Yt(a,o))throw new Error("invalid MAC");let f=Ge(s,i,r);return tf(f)}var nf={utils:{getConversationKey:Do,calcPaddedLen:nr},encrypt:Zo,decrypt:Go},rf={};D(rf,{makeNwcRequestEvent:()=>sf,parseConnectionString:()=>of});function of(t){let{pathname:e,searchParams:n}=new URL(t),r=e,o=n.get("relay"),s=n.get("secret");if(!r||!o||!s)throw new Error("invalid connection string");return{pubkey:r,relay:o,secret:s}}function sf(t,e,n){return K(this,null,function*(){let o=yield Co(e,t,JSON.stringify({method:"pay_invoice",params:{invoice:n}})),s={kind:So,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",t]]};return Vt(s,e)})}var cf={};D(cf,{getZapEndpoint:()=>ff,makeZapReceipt:()=>hf,makeZapRequest:()=>lf,useFetchImplementation:()=>af,validateZapRequest:()=>uf});var rr;try{rr=fetch}catch{}function af(t){rr=t}function ff(t){return K(this,null,function*(){try{let e="",{lud06:n,lud16:r}=JSON.parse(t.content);if(n){let{words:i}=$t.decode(n,1e3),c=$t.fromWords(i);e=Bt.decode(c)}else if(r){let[i,c]=r.split("@");e=new URL(`/.well-known/lnurlp/${i}`,`https://${c}`).toString()}else return null;let s=yield(yield rr(e)).json();if(s.allowsNostr&&s.nostrPubkey)return s.callback}catch{}return null})}function lf({profile:t,event:e,amount:n,relays:r,comment:o=""}){if(!n)throw new Error("amount not given");if(!t)throw new Error("profile not given");let s={kind:9734,created_at:Math.round(Date.now()/1e3),content:o,tags:[["p",t],["amount",n.toString()],["relays",...r]]};return e&&s.tags.push(["e",e]),s}function uf(t){let e;try{e=JSON.parse(t)}catch{return"Invalid zap request JSON."}if(!po(e))return"Zap request is not a valid Nostr event.";if(!Fe(e))return"Invalid signature on zap request.";let n=e.tags.find(([s,i])=>s==="p"&&i);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=e.tags.find(([s,i])=>s==="e"&&i);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":e.tags.find(([s,i])=>s==="relays"&&i)?null:"Zap request doesn't have a 'relays' tag."}function hf({zapRequest:t,preimage:e,bolt11:n,paidAt:r}){let o=JSON.parse(t),s=o.tags.filter(([c])=>c==="e"||c==="p"||c==="a"),i={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...s,["P",o.pubkey],["bolt11",n],["description",t]]};return e&&i.tags.push(["preimage",e]),i}var df={};D(df,{getToken:()=>pf,hashPayload:()=>or,unpackEventFromToken:()=>Yo,validateEvent:()=>ns,validateEventKind:()=>Qo,validateEventMethodTag:()=>ts,validateEventPayloadTag:()=>es,validateEventTimestamp:()=>Xo,validateEventUrlTag:()=>Fo,validateToken:()=>gf});var Jo="Nostr ";function pf(t,e,n,r=!1,o){return K(this,null,function*(){let s={kind:Xn,tags:[["u",t],["method",e]],created_at:Math.round(new Date().getTime()/1e3),content:""};o&&s.tags.push(["payload",or(o)]);let i=yield n(s);return(r?Jo:"")+at.encode(gt.encode(JSON.stringify(i)))})}function gf(t,e,n){return K(this,null,function*(){let r=yield Yo(t).catch(s=>{throw s});return yield ns(r,e,n).catch(s=>{throw s})})}function Yo(t){return K(this,null,function*(){if(!t)throw new Error("Missing token");t=t.replace(Jo,"");let e=Bt.decode(at.decode(t));if(!e||e.length===0||!e.startsWith("{"))throw new Error("Invalid token");return JSON.parse(e)})}function Xo(t){return t.created_at?Math.round(new Date().getTime()/1e3)-t.created_at<60:!1}function Qo(t){return t.kind===Xn}function Fo(t,e){let n=t.tags.find(r=>r[0]==="u");return n?n.length>0&&n[1]===e:!1}function ts(t,e){let n=t.tags.find(r=>r[0]==="method");return n?n.length>0&&n[1].toLowerCase()===e.toLowerCase():!1}function or(t){let e=Ht(gt.encode(JSON.stringify(t)));return J(e)}function es(t,e){let n=t.tags.find(o=>o[0]==="payload");if(!n)return!1;let r=or(e);return n.length>0&&n[1]===r}function ns(t,e,n,r){return K(this,null,function*(){if(!Fe(t))throw new Error("Invalid nostr event, signature invalid");if(!Qo(t))throw new Error("Invalid nostr event, kind invalid");if(!Xo(t))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Fo(t,e))throw new Error("Invalid nostr event, url tag invalid");if(!ts(t,n))throw new Error("Invalid nostr event, method tag invalid");if(r&&typeof r=="object"&&Object.keys(r).length>0&&!es(t,r))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})}export{J as a,at as b,yl as c,Xe as d,iu as e,cu as f,Vt as g,au as h,sa as i,pa as j}; diff --git a/chunk-L5KTQ534.js b/chunk-G4C2NSS4.js similarity index 97% rename from chunk-L5KTQ534.js rename to chunk-G4C2NSS4.js index 6b464e7..480f707 100644 --- a/chunk-L5KTQ534.js +++ b/chunk-G4C2NSS4.js @@ -1 +1 @@ -import{b as M}from"./chunk-ZSOMQRTJ.js";import"./chunk-7WK6GZSZ.js";import{$a as m,Ba as l,Bb as y,Ca as s,Hb as C,Ib as k,J as g,Ob as E,Pa as w,Q as f,Qb as L,R as x,S as h,Ua as b,ba as v,cb as n,db as o,eb as _,jc as j,k as d,nb as S,xc as I,yc as A,z as p,zb as r}from"./chunk-LP5NDBXI.js";var F=()=>["/login"];function P(t,e){if(t&1&&(r(0),E(1,"i18nPlural")),t&2){let c=S();y(" Redirecting in ",L(1,1,c.countdown,c.countdownMapping)," ")}}function R(t,e){t&1&&r(0," You are now being redirected! ")}var D=(()=>{let e=class e{constructor(a,i){this._router=a,this._signerService=i,this.countdown=5,this.countdownMapping={"=1":"# second",other:"# seconds"},this._unsubscribeAll=new d}ngOnInit(){p(1e3,1e3).pipe(x(()=>this.countdown>0),f(this._unsubscribeAll),h(()=>this.countdown--),g(()=>{this.logout(),this._router.navigate(["login"])})).subscribe()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}logout(){this._signerService.logout(),console.log("User logged out and keys removed from localStorage.")}};e.\u0275fac=function(i){return new(i||e)(s(I),s(M))},e.\u0275cmp=v({type:e,selectors:[["auth-logout"]],standalone:!0,features:[C],decls:15,vars:4,consts:[[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:justify-center"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"mx-auto","w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","justify-center","font-medium"],[1,"text-secondary","mt-8","text-center","text-md","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"]],template:function(i,u){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),_(4,"img",4),o(),n(5,"div",5),r(6," You have logout! "),o(),n(7,"div",6),w(8,P,2,4)(9,R,1,0),o(),n(10,"div",7)(11,"span"),r(12,"Go to"),o(),n(13,"a",8),r(14,"login "),o()()()()()),i&2&&(l(8),m(u.countdown>0?8:-1),l(),m(u.countdown===0?9:-1),l(4),b("routerLink",k(3,F)))},dependencies:[A,j],encapsulation:2});let t=e;return t})();var W=[{path:"",component:D}];export{W as default}; +import{b as M}from"./chunk-MYVAGBPZ.js";import"./chunk-BLRJMPLX.js";import{$a as m,Ba as l,Bb as y,Ca as s,Hb as C,Ib as k,J as g,Ob as E,Pa as w,Q as f,Qb as L,R as x,S as h,Ua as b,ba as v,cb as n,db as o,eb as _,jc as j,k as d,nb as S,xc as I,yc as A,z as p,zb as r}from"./chunk-LP5NDBXI.js";var F=()=>["/login"];function P(t,e){if(t&1&&(r(0),E(1,"i18nPlural")),t&2){let c=S();y(" Redirecting in ",L(1,1,c.countdown,c.countdownMapping)," ")}}function R(t,e){t&1&&r(0," You are now being redirected! ")}var D=(()=>{let e=class e{constructor(a,i){this._router=a,this._signerService=i,this.countdown=5,this.countdownMapping={"=1":"# second",other:"# seconds"},this._unsubscribeAll=new d}ngOnInit(){p(1e3,1e3).pipe(x(()=>this.countdown>0),f(this._unsubscribeAll),h(()=>this.countdown--),g(()=>{this.logout(),this._router.navigate(["login"])})).subscribe()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}logout(){this._signerService.logout(),console.log("User logged out and keys removed from localStorage.")}};e.\u0275fac=function(i){return new(i||e)(s(I),s(M))},e.\u0275cmp=v({type:e,selectors:[["auth-logout"]],standalone:!0,features:[C],decls:15,vars:4,consts:[[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:justify-center"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"mx-auto","w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","justify-center","font-medium"],[1,"text-secondary","mt-8","text-center","text-md","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"]],template:function(i,u){i&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),_(4,"img",4),o(),n(5,"div",5),r(6," You have logout! "),o(),n(7,"div",6),w(8,P,2,4)(9,R,1,0),o(),n(10,"div",7)(11,"span"),r(12,"Go to"),o(),n(13,"a",8),r(14,"login "),o()()()()()),i&2&&(l(8),m(u.countdown>0?8:-1),l(),m(u.countdown===0?9:-1),l(4),b("routerLink",k(3,F)))},dependencies:[A,j],encapsulation:2});let t=e;return t})();var W=[{path:"",component:D}];export{W as default}; diff --git a/chunk-BK7YAMGQ.js b/chunk-HGT4ACXZ.js similarity index 99% rename from chunk-BK7YAMGQ.js rename to chunk-HGT4ACXZ.js index a3a8225..98c6d33 100644 --- a/chunk-BK7YAMGQ.js +++ b/chunk-HGT4ACXZ.js @@ -1 +1 @@ -import{c as st,f as ot,g as nt,p as m,s as rt}from"./chunk-PWH2GQNP.js";import{C as tt,D as it,E as et,H as w,a as W,c as q,j as K,k as T,l as I,u as J}from"./chunk-MH4Z64LL.js";import{Ab as G,Ba as x,Ca as r,Hb as U,Ia as N,Q as h,Sa as k,Ua as V,Wa as v,Wb as B,X as C,Y as u,_ as g,a as d,ba as P,bc as Z,ca as E,cb as y,da as A,db as Y,dc as $,ia as R,ib as j,ja as O,k as f,kc as Q,lb as b,oa as L,qa as M,sa as p,tb as H,ub as z,vb as F,wa as S,zb as X}from"./chunk-LP5NDBXI.js";var ft=["tooltip"],ht=20;var ct=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ht})}});function ut(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ht})}var gt={provide:ct,deps:[m],useFactory:ut};function vt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var yt=new u("mat-tooltip-default-options",{providedIn:"root",factory:vt});var at="tooltip-panel",lt=q({passive:!0}),bt=8,Tt=8,It=24,wt=200,qt=(()=>{let o=class o{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let i=T(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){let i=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,s,n,c,_,dt,pt,D,l,mt){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=s,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=dt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Dt,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new f,this._injector=g(L),this._scrollStrategy=pt,this._document=mt,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures),l.tooltipClass&&(this.tooltipClass=l.tooltipClass)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=bt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,lt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new nt(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=e.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${at}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!K(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),s.main)),this._addOffset(d(d({},e.fallback),s.fallback))])}_addOffset(t){let i=Tt,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:s,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:s,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:s,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:s,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),k(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:s}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&s==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${at}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,e)},this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,lt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}};o.\u0275fac=function(i){return new(i||o)(r(m),r(p),r(st),r(N),r(M),r(W),r(J),r(tt),r(ct),r(et),r(yt,8),r(Z))},o.\u0275dir=A({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let a=o;return a})(),Dt=(()=>{let o=class o{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>It&&t.width>=wt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(t?s:e),i.classList.add(t?e:s),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};o.\u0275fac=function(i){return new(i||o)(r(B),r(p),r(S,8))},o.\u0275cmp=P({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&H(ft,7),i&2){let s;z(s=F())&&(e._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)})},standalone:!0,features:[U],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,e){if(i&1){let s=j();y(0,"div",1,0),b("animationend",function(c){return R(s),O(e._handleAnimationEnd(c))}),y(2,"div",2),X(3),Y()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),x(3),G(e.message))},dependencies:[$],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let a=o;return a})();var Kt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=E({type:o}),o.\u0275inj=C({providers:[gt],imports:[it,Q,rt,w,w,ot]});let a=o;return a})();export{qt as a,Kt as b}; +import{c as st,f as ot,g as nt,p as m,s as rt}from"./chunk-6S6AYVUH.js";import{C as tt,D as it,E as et,H as w,a as W,c as q,j as K,k as T,l as I,u as J}from"./chunk-MH4Z64LL.js";import{Ab as G,Ba as x,Ca as r,Hb as U,Ia as N,Q as h,Sa as k,Ua as V,Wa as v,Wb as B,X as C,Y as u,_ as g,a as d,ba as P,bc as Z,ca as E,cb as y,da as A,db as Y,dc as $,ia as R,ib as j,ja as O,k as f,kc as Q,lb as b,oa as L,qa as M,sa as p,tb as H,ub as z,vb as F,wa as S,zb as X}from"./chunk-LP5NDBXI.js";var ft=["tooltip"],ht=20;var ct=new u("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(m);return()=>a.scrollStrategies.reposition({scrollThrottle:ht})}});function ut(a){return()=>a.scrollStrategies.reposition({scrollThrottle:ht})}var gt={provide:ct,deps:[m],useFactory:ut};function vt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var yt=new u("mat-tooltip-default-options",{providedIn:"root",factory:vt});var at="tooltip-panel",lt=q({passive:!0}),bt=8,Tt=8,It=24,wt=200,qt=(()=>{let o=class o{get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=T(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let i=T(t);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=I(t)}get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=I(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(t){let i=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(t,i,e,s,n,c,_,dt,pt,D,l,mt){this._overlay=t,this._elementRef=i,this._scrollDispatcher=e,this._viewContainerRef=s,this._ngZone=n,this._platform=c,this._ariaDescriber=_,this._focusMonitor=dt,this._dir=D,this._defaultOptions=l,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=Dt,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new f,this._injector=g(L),this._scrollStrategy=pt,this._document=mt,l&&(this._showDelay=l.showDelay,this._hideDelay=l.hideDelay,l.position&&(this.position=l.position),l.positionAtOrigin&&(this.positionAtOrigin=l.positionAtOrigin),l.touchGestures&&(this.touchGestures=l.touchGestures),l.tooltipClass&&(this.tooltipClass=l.tooltipClass)),D.change.pipe(h(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=bt}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(h(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,e])=>{t.removeEventListener(i,e,lt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let e=this._createOverlay(i);this._detach(),this._portal=this._portal||new nt(this._tooltipComponent,this._viewContainerRef);let s=this._tooltipInstance=e.attach(this._portal).instance;s._triggerElement=this._elementRef.nativeElement,s._mouseLeaveHideDelay=this._hideDelay,s.afterHidden().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),s.show(t)}hide(t=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(t):(i._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof p)return this._overlayRef;this._detach()}let i=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return e.positionChanges.pipe(h(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:`${this._cssClassPrefix}-${at}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(h(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(h(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(h(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!K(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let i=t.getConfig().positionStrategy,e=this._getOrigin(),s=this._getOverlayPosition();i.withPositions([this._addOffset(d(d({},e.main),s.main)),this._addOffset(d(d({},e.fallback),s.fallback))])}_addOffset(t){let i=Tt,e=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-i:t.originY==="bottom"?t.offsetY=i:t.originX==="start"?t.offsetX=e?-i:i:t.originX==="end"&&(t.offsetX=e?i:-i),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"||i=="below"?e={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={originX:"start",originY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={originX:"end",originY:"center"});let{x:s,y:n}=this._invertPosition(e.originX,e.originY);return{main:e,fallback:{originX:s,originY:n}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",i=this.position,e;i=="above"?e={overlayX:"center",overlayY:"bottom"}:i=="below"?e={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&t||i=="right"&&!t?e={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&t||i=="left"&&!t)&&(e={overlayX:"start",overlayY:"center"});let{x:s,y:n}=this._invertPosition(e.overlayX,e.overlayY);return{main:e,fallback:{overlayX:s,overlayY:n}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),k(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:i}}_updateCurrentPositionClass(t){let{overlayY:i,originX:e,originY:s}=t,n;if(i==="center"?this._dir&&this._dir.value==="rtl"?n=e==="end"?"left":"right":n=e==="start"?"left":"right":n=i==="bottom"&&s==="top"?"above":"below",n!==this._currentPosition){let c=this._overlayRef;if(c){let _=`${this._cssClassPrefix}-${at}-`;c.removePanelClass(_+this._currentPosition),c.addPanelClass(_+n)}this._currentPosition=n}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let i;t.x!==void 0&&t.y!==void 0&&(i=t),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let i=t.targetTouches?.[0],e=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let s=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,e)},this._defaultOptions.touchLongPressShowDelay??s)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",i=>{let e=i.relatedTarget;(!e||!this._overlayRef?.overlayElement.contains(e))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",i],["touchcancel",i])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([i,e])=>{this._elementRef.nativeElement.addEventListener(i,e,lt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let i=this._document.elementFromPoint(t.clientX,t.clientY),e=this._elementRef.nativeElement;i!==e&&!e.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let i=this._elementRef.nativeElement,e=i.style;(t==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(e.userSelect=e.msUserSelect=e.webkitUserSelect=e.MozUserSelect="none"),(t==="on"||!i.draggable)&&(e.webkitUserDrag="none"),e.touchAction="none",e.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}};o.\u0275fac=function(i){return new(i||o)(r(m),r(p),r(st),r(N),r(M),r(W),r(J),r(tt),r(ct),r(et),r(yt,8),r(Z))},o.\u0275dir=A({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,e){i&2&&v("mat-mdc-tooltip-disabled",e.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"],standalone:!0});let a=o;return a})(),Dt=(()=>{let o=class o{constructor(t,i,e){this._changeDetectorRef=t,this._elementRef=i,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new f,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled=e==="NoopAnimations"}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>It&&t.width>=wt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let i=this._tooltip.nativeElement,e=this._showAnimation,s=this._hideAnimation;if(i.classList.remove(t?s:e),i.classList.add(t?e:s),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let n=getComputedStyle(i);(n.getPropertyValue("animation-duration")==="0s"||n.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}};o.\u0275fac=function(i){return new(i||o)(r(B),r(p),r(S,8))},o.\u0275cmp=P({type:o,selectors:[["mat-tooltip-component"]],viewQuery:function(i,e){if(i&1&&H(ft,7),i&2){let s;z(s=F())&&(e._tooltip=s.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,e){i&1&&b("mouseleave",function(n){return e._handleMouseLeave(n)})},standalone:!0,features:[U],decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,e){if(i&1){let s=j();y(0,"div",1,0),b("animationend",function(c){return R(s),O(e._handleAnimationEnd(c))}),y(2,"div",2),X(3),Y()()}i&2&&(v("mdc-tooltip--multiline",e._isMultiline),V("ngClass",e.tooltipClass),x(3),G(e.message))},dependencies:[$],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-app-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-app-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-app-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-app-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-app-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-app-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-app-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-app-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0});let a=o;return a})();var Kt=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=E({type:o}),o.\u0275inj=C({providers:[gt],imports:[it,Q,rt,w,w,ot]});let a=o;return a})();export{qt as a,Kt as b}; diff --git a/chunk-HXTGFYHM.js b/chunk-HXTGFYHM.js deleted file mode 100644 index 1bcc518..0000000 --- a/chunk-HXTGFYHM.js +++ /dev/null @@ -1 +0,0 @@ -import{a as se,b as me,c as de,d as pe}from"./chunk-LKKRLEHJ.js";import{a as ue,b as he,c as fe,d as ge}from"./chunk-TXXDQLF3.js";import{h as Ze}from"./chunk-3Q7ZV3LD.js";import{b as at}from"./chunk-ZSOMQRTJ.js";import{t as tt,u as it,v as nt}from"./chunk-PWH2GQNP.js";import{A as Ge,B as qe,D as Je,H as Xe,L as Ye,T as et,V as W,W as Q,q as Ke,t as le,y as H,z as K}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as B,X as We,Z as A,_ as Qe,ba as k,ca as E}from"./chunk-MH4Z64LL.js";import{$a as h,Aa as D,Ab as Pe,Ba as o,Bb as v,Ca as I,D as Se,Db as te,Eb as ie,F as Ie,Fb as ne,Hb as y,Ib as je,Jb as Le,Kb as L,Mb as Oe,Ob as J,P as Ce,Pa as g,Q as C,Qb as X,Rb as Ne,Ua as s,W as ke,Wa as be,Wb as ae,Z as j,_ as V,_a as z,a as G,ab as $,ba as b,bb as U,cb as c,db as l,dc as oe,eb as m,gc as Ve,h as P,hb as Fe,ia as M,ib as q,ic as ze,j as we,ja as S,k as F,ka as Ee,l as N,lb as x,nb as u,oc as $e,q as Me,qa as Te,r as ee,t as xe,tb as Ae,tc as Ue,ub as Be,vb as Re,wc as re,xc as He,yb as R,yc as ce,za as De,zb as p}from"./chunk-LP5NDBXI.js";var ot=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=b({type:n,selectors:[["chat"]],standalone:!0,features:[y],decls:3,vars:0,consts:[[1,"absolute","inset-0","flex","min-w-0","flex-col","overflow-hidden"],[1,"flex","flex-auto","overflow-hidden"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1),m(2,"router-outlet"),l()())},dependencies:[re],encapsulation:2,changeDetection:0});let e=n;return e})();var ye=4;var w=(()=>{let n=class n{constructor(t,i,r,d,f,_){this._httpClient=t,this._metadataService=i,this._signerService=r,this._indexedDBService=d,this._relayService=f,this._sanitizer=_,this.chatList=[],this.latestMessageTimestamps={},this.messageQueue=[],this.isDecrypting=!1,this._chat=new N(null),this._chats=new N(null),this._contact=new N(null),this._contacts=new N(null),this._profile=new N(null),this._unsubscribeAll=new F}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}get contact$(){return this._contact.asObservable()}get contacts$(){return this._contacts.asObservable()}get profile$(){return this._profile.asObservable()}getContact(t){return P(this,null,function*(){try{let i=yield this._metadataService.fetchMetadataWithCache(t);if(i){let r={pubKey:t,displayName:i.name,picture:i.picture,about:i.about};this._contact.next(r),this._indexedDBService.getMetadataStream().pipe(C(this._unsubscribeAll)).subscribe(d=>{if(d&&d.pubkey===t){let f={pubKey:t,displayName:d.metadata.name,picture:d.metadata.picture,about:d.metadata.about};this._contact.next(f)}})}}catch(i){console.error("Error fetching contact metadata:",i)}})}getContacts(){return new we(t=>(this._indexedDBService.getAllUsers().then(i=>{i.length>0&&(this._contacts.next(i),t.next(i));let r=i.map(d=>d.pubKey);r.length>0&&this.subscribeToRealTimeContacts(r,t)}).catch(i=>{console.error("Error loading cached contacts from IndexedDB:",i),t.error(i)}),()=>{console.log("Unsubscribing from contacts updates.")}))}subscribeToRealTimeContacts(t,i){this._metadataService.fetchMetadataForMultipleKeys(t).then(r=>{let d=[...this._contacts.value||[]];r.forEach(f=>{let _=d.findIndex(Z=>Z.pubKey===f.pubkey),T={pubKey:f.pubkey,displayName:f.name,picture:f.picture,about:f.about};_!==-1?d[_]=G(G({},d[_]),T):d.push(T)}),this._contacts.next(d),i.next(d)}).catch(r=>{console.error("Error fetching metadata for contacts:",r),i.error(r)})}getProfile(){return P(this,null,function*(){try{let t=this._signerService.getPublicKey(),i=yield this._metadataService.fetchMetadataWithCache(t);i&&(this._profile.next(i),this._indexedDBService.getMetadataStream().pipe(C(this._unsubscribeAll)).subscribe(r=>{r&&r.pubkey===t&&this._profile.next(r.metadata)}))}catch(t){console.error("Error fetching profile metadata:",t)}})}getChatById(t){return this._httpClient.get("api/apps/chat/chat",{params:{id:t}}).pipe(xe(i=>(this._chat.next(i),i)),Ce(i=>i?Me(i):ee("Could not find chat with id "+t)))}getChats(){return P(this,null,function*(){let t=this._signerService.getPublicKey(),i=yield this._signerService.isUsingExtension(),r=yield this._signerService.getSecretKey("123");return this.subscribeToChatList(t,i,r),this.getChatListStream()})}subscribeToChatList(t,i,r){return this._relayService.ensureConnectedRelays().then(()=>{let d=[{kinds:[ye],authors:[t]},{kinds:[ye],"#p":[t]}];this._relayService.getPool().subscribeMany(this._relayService.getConnectedRelays(),d,{onevent:f=>P(this,null,function*(){let _=f.pubkey===t?f.tags.find(Z=>Z[0]==="p")?.[1]||"":f.pubkey;if(!_)return;let T=this.latestMessageTimestamps[_]||0;f.created_at>T&&(this.latestMessageTimestamps[_]=f.created_at,this.messageQueue.push(f),this.processNextMessage(t,i,r))}),oneose:()=>{console.log("Subscription closed"),this._chats.next(this.chatList)}})}),this.getChatListStream()}processNextMessage(t,i,r){return P(this,null,function*(){if(this.isDecrypting||this.messageQueue.length===0)return;this.isDecrypting=!0;let d=this.messageQueue.shift();if(!d){this.isDecrypting=!1;return}let _=d.pubkey===t?d.tags.find(T=>T[0]==="p")?.[1]||"":d.pubkey;if(!_){this.isDecrypting=!1;return}try{let T=yield this.decryptReceivedMessage(d,i,r,_);if(T){let Z=d.created_at*1e3;this.addOrUpdateChatList(_,T,Z)}}catch(T){console.error("Failed to decrypt message:",T)}finally{this.isDecrypting=!1,this.processNextMessage(t,i,r)}})}addOrUpdateChatList(t,i,r){let d=this.chatList.find(f=>f.contact?.pubKey===t);if(d)d.lastMessageAt&&new Date(d.lastMessageAt).getTime()new Date(_.lastMessageAt).getTime()-new Date(f.lastMessageAt).getTime()),this._chats.next(this.chatList)}fetchMetadataForPubKey(t){this._metadataService.fetchMetadataWithCache(t).then(i=>{let r=this.chatList.find(d=>d.contact?.pubKey===t);r&&i&&(r.contact=G(G({},r.contact),i),this._chats.next(this.chatList))}).catch(i=>{console.error(`Failed to fetch metadata for pubKey: ${t}`,i)})}getChatListStream(){return this._chats.asObservable()}decryptReceivedMessage(t,i,r,d){return P(this,null,function*(){return"Decrypted message"})}updateChat(t,i){return this.chats$.pipe(Ie(1),Ce(r=>this._httpClient.patch("api/apps/chat/chat",{id:t,chat:i}).pipe(xe(d=>{if(r){let f=r.findIndex(_=>_.id===t);f!==-1&&(r[f]=d,this._chats.next(r))}return d}))))}resetChat(){this._chat.next(null)}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}};n.\u0275fac=function(i){return new(i||n)(j($e),j(nt),j(at),j(tt),j(it),j(Ue))},n.\u0275prov=ke({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();function ht(e,n){if(e&1&&(c(0,"div",8),p(1),l()),e&2){let a,t=u().$implicit;o(),v(" ",(a=t==null||t.name==null?null:t.name.charAt(0))!==null&&a!==void 0?a:""," ")}}function ft(e,n){if(e&1&&m(0,"img",10),e&2){let a=u().$implicit;s("src",a.picture||"/images/avatars/avatar-placeholder.png",D)}}function gt(e,n){if(e&1&&(c(0,"div",11),p(1),l()),e&2){let a=u().$implicit;o(),v(" ",a.name.charAt(0)," ")}}function vt(e,n){if(e&1&&(g(0,ht,2,1,"div",8),c(1,"div",7)(2,"div",9),g(3,ft,1,1,"img",10)(4,gt,2,1,"div",11),l(),c(5,"div",12)(6,"div",13),p(7),l(),c(8,"div",14),p(9),l()()()),e&2){let a,t=n.$implicit,i=n.$index,r=u(2);h(i===0||((a=t==null||t.name==null?null:t.name.charAt(0))!==null&&a!==void 0?a:"")!==((a=r.contacts[i-1]==null||r.contacts[i-1].name==null?null:r.contacts[i-1].name.charAt(0))!==null&&a!==void 0?a:"")?0:-1),o(3),h(t.picture?3:-1),o(),h(t.picture?-1:4),o(3),v(" ",t.name," "),o(2),v(" ",t.about," ")}}function _t(e,n){if(e&1&&$(0,vt,10,5,"div",7,z().trackByFn,!0),e&2){let a=u();U(a.contacts)}}function xt(e,n){e&1&&(c(0,"div",6),p(1," There are no contacts! "),l())}var rt=(()=>{let n=class n{constructor(t){this._chatService=t,this.contacts=[],this._unsubscribeAll=new F}ngOnInit(){this._chatService.contacts$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.contacts=t})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(t,i){return i.id||t}};n.\u0275fac=function(i){return new(i||n)(I(w))},n.\u0275cmp=b({type:n,selectors:[["chat-new-chat"]],inputs:{drawer:"drawer"},standalone:!0,features:[y],decls:9,vars:2,consts:[[1,"bg-card","flex","h-full","flex-auto","flex-col","overflow-hidden","dark:bg-default"],[1,"-mb-px","flex","h-18","flex-0","items-center","bg-gray-50","px-6","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-2xl","font-semibold"],[1,"relative","overflow-y-auto"],[1,"border-t","p-8","text-center","text-4xl","font-semibold","tracking-tight","sm:p-16"],[1,"z-20","flex","cursor-pointer","items-center","border-b","px-6","py-4","dark:hover:bg-hover","hover:bg-gray-100","md:px-8"],[1,"text-secondary","sticky","top-0","z-10","-mt-px","border-b","border-t","bg-gray-100","px-6","py-1","font-medium","uppercase","dark:bg-gray-900","md:px-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","overflow-hidden","rounded-full"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","min-w-0"],[1,"truncate","font-medium","leading-5"],[1,"text-secondary","truncate","leading-5"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"New chat"),l()(),c(6,"div",5),g(7,_t,2,0)(8,xt,2,0,"div",6),l()()),i&2&&(o(3),s("svgIcon","heroicons_outline:arrow-long-left"),o(4),h(r.contacts.length?7:8))},dependencies:[B,A,E,k],encapsulation:2,changeDetection:0});let e=n;return e})();function Ct(e,n){if(e&1&&m(0,"img",10),e&2){let a=u();s("src",a.profile.picture||"/images/avatars/avatar-placeholder.png",D)("alt","Profile picture")}}function bt(e,n){if(e&1&&(c(0,"div",11),p(1),l()),e&2){let a=u();o(),v(" ",a.profile.name.charAt(0)," ")}}var st=(()=>{let n=class n{constructor(t){this._chatService=t,this._unsubscribeAll=new F}ngOnInit(){this._chatService.profile$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.profile=t})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};n.\u0275fac=function(i){return new(i||n)(I(w))},n.\u0275cmp=b({type:n,selectors:[["chat-profile"]],inputs:{drawer:"drawer"},standalone:!0,features:[y],decls:35,vars:11,consts:[[1,"bg-card","flex","flex-auto","flex-col","dark:bg-default"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-6","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-2xl","font-semibold"],[1,"px-6"],[1,"group","relative","mx-auto","mt-8","flex","h-40","w-40","flex-0","rounded-full"],[1,"absolute","inset-0","hidden","cursor-pointer","flex-col","items-center","justify-center","rounded-full","bg-gray-800","bg-opacity-80","backdrop-blur","backdrop-filter","group-hover:flex"],[1,"text-white",3,"svgIcon"],[1,"mx-6","mt-2","text-center","font-medium","text-white"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-full","w-full","rounded-full","object-cover",3,"src","alt"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-8xl","font-semibold","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"mx-2","mt-8","flex","flex-col"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"ngModel"],[1,"mt-4","flex","items-center","justify-end"],["mat-button","",3,"click"],["mat-flat-button","",1,"ml-2",3,"color"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"Profile"),l()(),c(6,"div",5)(7,"div",6)(8,"div",7),m(9,"mat-icon",8),c(10,"div",9),p(11," Change Profile Photo "),l()(),g(12,Ct,1,2,"img",10)(13,bt,2,1,"div",11),l(),c(14,"div",12)(15,"mat-form-field")(16,"mat-label"),p(17,"Name"),l(),m(18,"mat-icon",13)(19,"input",14),l(),c(20,"mat-form-field")(21,"mat-label"),p(22,"Username"),l(),m(23,"mat-icon",13)(24,"input",14),l(),c(25,"mat-form-field")(26,"mat-label"),p(27,"About"),l(),m(28,"mat-icon",13)(29,"input",14),l(),c(30,"div",15)(31,"button",16),x("click",function(){return r.drawer.close()}),p(32,"Cancel"),l(),c(33,"button",17),p(34," Save "),l()()()()()),i&2&&(o(3),s("svgIcon","heroicons_outline:arrow-long-left"),o(6),s("svgIcon","heroicons_outline:camera"),o(3),h(r.profile.picture?12:-1),o(),h(r.profile.picture?-1:13),o(5),s("svgIcon","heroicons_solid:user-circle"),o(),s("ngModel",r.profile.name),o(4),s("svgIcon","heroicons_solid:at-symbol"),o(),s("ngModel",r.profile.username),o(4),s("svgIcon","heroicons_solid:identification"),o(),s("ngModel",r.profile.about),o(4),s("color","primary"))},dependencies:[B,We,A,E,k,K,H,Ke,le,Q,W,et,Je,Xe,Ye],encapsulation:2,changeDetection:0});let e=n;return e})();var Mt=(e,n)=>({"dark:hover:bg-hover hover:bg-gray-100":e,"bg-primary-50 dark:bg-hover":n}),St=e=>[e],It=(e,n)=>({"absolute inset-0 z-20 flex lg:static lg:inset-auto":e,"hidden lg:flex":n});function kt(e,n){if(e&1&&m(0,"chat-new-chat",6),e&2){u();let a=R(3);s("drawer",a)}}function Et(e,n){if(e&1&&m(0,"chat-profile",6),e&2){u();let a=R(3);s("drawer",a)}}function Tt(e,n){if(e&1&&m(0,"img",15),e&2){let a=u(2);s("src",a.profile.picture||"/images/avatars/avatar-placeholder.png",D)}}function Dt(e,n){if(e&1&&(c(0,"div",16),p(1),l()),e&2){let a=u(2);o(),v(" ",a.profile.name?a.profile.name.charAt(0):""," ")}}function Ft(e,n){if(e&1&&m(0,"div",38),e&2){let a=u().$implicit,t=u(3);be("ring-primary-50",t.selectedChat&&t.selectedChat.id===a.id)}}function At(e,n){if(e&1&&m(0,"img",31),e&2){let a=u().$implicit;s("src",a.contact||"/images/avatars/avatar-placeholder.png",D)}}function Bt(e,n){if(e&1&&(c(0,"div",16),p(1),l()),e&2){let a=u().$implicit;o(),v(" ",!(a==null||a.contact==null)&&a.contact.name?a.contact.name.charAt(0):""," ")}}function Rt(e,n){e&1&&m(0,"mat-icon",37),e&2&&s("svgIcon","heroicons_solid:speaker-x-mark")}function Pt(e,n){if(e&1&&(c(0,"a",28)(1,"div",29),g(2,Ft,1,2,"div",30)(3,At,1,1,"img",31)(4,Bt,2,1,"div",16),l(),c(5,"div",32)(6,"div",33),p(7),l(),c(8,"div",34),p(9),l()(),c(10,"div",35)(11,"div",36),p(12),l(),g(13,Rt,1,1,"mat-icon",37),l()()),e&2){let a=n.$implicit,t=u(3);s("ngClass",L(13,Mt,!t.selectedChat||t.selectedChat.id!==a.id,t.selectedChat&&t.selectedChat.id===a.id))("routerLink",Le(16,St,a.id)),o(2),h(a.unreadCount>0?2:-1),o(),h(a.contact.picture?3:-1),o(),h(a.contact.picture?-1:4),o(3),v(" ",a.contact.name," "),o(),be("text-primary",a.unreadCount>0)("dark:text-primary-500",a.unreadCount>0),o(),v(" ",a.lastMessage," "),o(3),v(" ",a.lastMessageAt," "),o(),h(a.muted?13:-1)}}function jt(e,n){if(e&1&&$(0,Pt,14,18,"a",28,z().trackByFn,!0),e&2){let a=u(2);U(a.filteredChats)}}function Lt(e,n){e&1&&(c(0,"div",9),m(1,"mat-icon",39),c(2,"div",40),p(3," No chats "),l()()),e&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function Ot(e,n){if(e&1){let a=q();c(0,"div",8)(1,"div",11)(2,"div",12)(3,"div",13),x("click",function(){M(a);let i=u();return S(i.openProfile())}),c(4,"div",14),g(5,Tt,1,1,"img",15)(6,Dt,2,1,"div",16),l(),c(7,"div",17),p(8),l()(),c(9,"button",18),x("click",function(){M(a);let i=u();return S(i.openNewChat())}),m(10,"mat-icon",19),l(),c(11,"button",20),m(12,"mat-icon",19),c(13,"mat-menu",null,1)(15,"button",21),m(16,"mat-icon",19),p(17," New group "),l(),c(18,"button",21),m(19,"mat-icon",19),p(20," Create a room "),l(),c(21,"button",22),x("click",function(){M(a);let i=u();return S(i.openProfile())}),m(22,"mat-icon",19),p(23," Profile "),l(),c(24,"button",21),m(25,"mat-icon",19),p(26," Archived "),l(),c(27,"button",21),m(28,"mat-icon",19),p(29," Starred "),l(),c(30,"button",21),m(31,"mat-icon",19),p(32," Settings "),l()()()(),c(33,"div",23)(34,"mat-form-field",24),m(35,"mat-icon",25),c(36,"input",26,2),x("input",function(){M(a);let i=R(37),r=u();return S(r.filterChats(i.value))}),l()()()(),c(38,"div",27),g(39,jt,2,0)(40,Lt,4,1,"div",9),l()()}if(e&2){let a=R(14),t=u();o(5),h(t.profile.picture?5:-1),o(),h(t.profile.picture?-1:6),o(2),v(" ",t.profile.name," "),o(2),s("svgIcon","heroicons_outline:plus-circle"),o(),s("matMenuTriggerFor",a),o(),s("svgIcon","heroicons_outline:ellipsis-vertical"),o(4),s("svgIcon","heroicons_outline:user-group"),o(3),s("svgIcon","heroicons_outline:chat-bubble-left-right"),o(3),s("svgIcon","heroicons_outline:user-circle"),o(3),s("svgIcon","heroicons_outline:archive-box"),o(3),s("svgIcon","heroicons_outline:star"),o(3),s("svgIcon","heroicons_outline:cog-8-tooth"),o(3),s("subscriptSizing","dynamic"),o(),s("svgIcon","heroicons_solid:magnifying-glass"),o(),s("autocomplete","off")("placeholder","Search or start new chat"),o(3),h(t.filteredChats.length>0?39:40)}}function Nt(e,n){e&1&&(c(0,"div",9),m(1,"mat-icon",39),c(2,"div",40),p(3," No chats "),l()()),e&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function Vt(e,n){if(e&1&&(c(0,"div",10),m(1,"router-outlet"),l()),e&2){let a=u();s("ngClass",L(1,It,a.selectedChat&&a.selectedChat.id,!a.selectedChat||!a.selectedChat.id))}}var mt=(()=>{let n=class n{constructor(t,i){this._chatService=t,this._changeDetectorRef=i,this.drawerOpened=!1,this._unsubscribeAll=new F}ngOnInit(){this._chatService.chats$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.chats=this.filteredChats=t,this._changeDetectorRef.markForCheck()}),this._chatService.profile$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.profile=t,this._changeDetectorRef.markForCheck()}),this._chatService.chat$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.selectedChat=t,this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete(),this._chatService.resetChat()}filterChats(t){if(!t){this.filteredChats=this.chats;return}this.filteredChats=this.chats.filter(i=>i.contact.name.toLowerCase().includes(t.toLowerCase()))}openNewChat(){this.drawerComponent="new-chat",this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}openProfile(){this.drawerComponent="profile",this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}trackByFn(t,i){return i.id||t}};n.\u0275fac=function(i){return new(i||n)(I(w),I(ae))},n.\u0275cmp=b({type:n,selectors:[["chat-chats"]],standalone:!0,features:[y],decls:10,vars:7,consts:[["drawer",""],["chatsHeaderMenu",""],["searchField",""],[1,"bg-card","relative","flex","w-full","flex-auto","dark:bg-transparent"],[1,"h-full","flex-auto",3,"hasBackdrop"],[1,"w-full","dark:bg-gray-900","sm:w-100","lg:border-r","lg:shadow-none",3,"openedChange","autoFocus","opened"],[3,"drawer"],[1,"flex","overflow-hidden"],[1,"bg-card","relative","flex","w-full","min-w-0","flex-auto","flex-col","dark:bg-transparent","lg:min-w-100","lg:max-w-100"],[1,"flex","h-full","flex-auto","flex-col","items-center","justify-center"],[1,"flex-auto","border-l",3,"ngClass"],[1,"flex","flex-0","flex-col","border-b","bg-gray-50","px-8","py-4","dark:bg-transparent"],[1,"flex","items-center"],[1,"mr-1","flex","cursor-pointer","items-center",3,"click"],[1,"h-10","w-10"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Profile picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","truncate","font-medium"],["mat-icon-button","",1,"ml-auto",3,"click"],[3,"svgIcon"],["mat-icon-button","",1,"-mr-4","ml-1",3,"matMenuTriggerFor"],["mat-menu-item",""],["mat-menu-item","",3,"click"],[1,"mt-4"],[1,"angor-mat-rounded","angor-mat-dense","w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"input","autocomplete","placeholder"],[1,"flex-auto","overflow-y-auto"],[1,"z-20","flex","cursor-pointer","items-center","border-b","px-8","py-5",3,"ngClass","routerLink"],[1,"relative","flex","h-10","w-10","flex-0","items-center","justify-center"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900",3,"ring-primary-50"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"ml-4","min-w-0"],[1,"truncate","font-medium","leading-5"],[1,"text-secondary","truncate","leading-5"],[1,"ml-auto","flex","flex-col","items-end","self-start","pl-2"],[1,"text-secondary","text-sm","leading-5"],[1,"text-hint","icon-size-5",3,"svgIcon"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(i,r){if(i&1){let d=q();c(0,"div",3)(1,"mat-drawer-container",4)(2,"mat-drawer",5,0),ne("openedChange",function(_){return M(d),ie(r.drawerOpened,_)||(r.drawerOpened=_),S(_)}),g(4,kt,1,1,"chat-new-chat",6)(5,Et,1,1,"chat-profile",6),l(),c(6,"mat-drawer-content",7),g(7,Ot,41,17,"div",8)(8,Nt,4,1,"div",9)(9,Vt,2,4,"div",10),l()()()}i&2&&(o(),s("hasBackdrop",!1),o(),s("autoFocus",!1),te("opened",r.drawerOpened),o(2),h(r.drawerComponent==="new-chat"?4:-1),o(),h(r.drawerComponent==="profile"?5:-1),o(2),h(r.chats&&r.chats.length>0?7:8),o(2),h(r.chats&&r.chats.length>0?9:-1))},dependencies:[ge,he,fe,ue,rt,st,B,A,E,k,pe,me,se,de,K,H,le,Q,W,oe,ce,re],encapsulation:2,changeDetection:0});let e=n;return e})();function zt(e,n){if(e&1&&m(0,"img",8),e&2){let a=u();s("src",a.chat.contact.picture||"/images/avatars/avatar-placeholder.png",D)("alt","Contact picture")}}function $t(e,n){if(e&1&&(c(0,"div",9),p(1),l()),e&2){let a=u();o(),v(" ",!(a.chat==null||a.chat.contact==null)&&a.chat.contact.name?a.chat.contact.name.charAt(0):""," ")}}var dt=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=b({type:n,selectors:[["chat-contact-info"]],inputs:{chat:"chat",drawer:"drawer"},standalone:!0,features:[y],decls:15,vars:5,consts:[[1,"bg-card","flex","h-full","flex-auto","flex-col","dark:bg-default"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-4","dark:bg-transparent"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-2","text-lg","font-medium"],[1,"overflow-y-auto"],[1,"mt-8","flex","flex-col","items-center"],[1,"h-40","w-40","rounded-full"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-full","w-full","rounded-full","object-cover",3,"src","alt"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-8xl","font-semibold","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"mt-4","text-lg","font-medium"],[1,"text-secondary","mt-0.5","text-md"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1)(2,"button",2),x("click",function(){return r.drawer.close()}),m(3,"mat-icon",3),l(),c(4,"div",4),p(5,"Contact info"),l()(),c(6,"div",5)(7,"div",6)(8,"div",7),g(9,zt,1,2,"img",8)(10,$t,2,1,"div",9),l(),c(11,"div",10),p(12),l(),c(13,"div",11),p(14),l()()()()),i&2&&(o(3),s("svgIcon","heroicons_outline:x-mark"),o(6),h(r.chat.contact.picture?9:-1),o(),h(r.chat.contact.picture?-1:10),o(2),Pe(r.chat.contact.name),o(2),v(" ",r.chat.contact.about," "))},dependencies:[B,A,E,k],encapsulation:2,changeDetection:0});let e=n;return e})();var Ut=["messageInput"],Ht=()=>["./"],Kt=(e,n,a,t)=>({"items-end":e,"items-start":n,"mt-0.5":a,"mt-3":t}),Wt=(e,n)=>({"bg-blue-500 text-blue-50":e,"bg-gray-500 text-gray-50":n}),Qt=(e,n)=>({"-right-1 -mr-px mb-px text-blue-500":e,"-left-1 -ml-px mb-px -scale-x-1 text-gray-500":n}),Zt=(e,n)=>({"mr-3":e,"ml-3":n});function Gt(e,n){if(e&1&&m(0,"img",15),e&2){let a=u(2);s("src",a.chat.contact.picture||"/images/avatars/avatar-placeholder.png",D)}}function qt(e,n){if(e&1&&(c(0,"div",16),p(1),l()),e&2){let a,t=u(2);o(),v(" ",(a=t.chat==null||t.chat.contact==null||t.chat.contact.name==null?null:t.chat.contact.name.charAt(0))!==null&&a!==void 0?a:""," ")}}function Jt(e,n){e&1&&(m(0,"mat-icon",12),p(1," Mute notifications ")),e&2&&s("svgIcon","heroicons_outline:speaker-x-mark")}function Xt(e,n){e&1&&(m(0,"mat-icon",12),p(1," Unmute notifications ")),e&2&&s("svgIcon","heroicons_outline:speaker-wave")}function Yt(e,n){if(e&1&&(c(0,"div",31),m(1,"div",36),c(2,"div",37),p(3),J(4,"date"),l(),m(5,"div",36),l()),e&2){let a=u().$implicit;o(3),v(" ",X(4,1,a.createdAt,"longDate")," ")}}function ei(e,n){e&1&&Fe(0)}function ti(e,n){if(e&1&&(c(0,"div",33),g(1,ei,1,0,"ng-container",38),l()),e&2){let a=u().$implicit;u(2);let t=R(4);s("ngClass",L(2,Qt,a.isMine,!a.isMine)),o(),s("ngTemplateOutlet",t)}}function ii(e,n){if(e&1&&(c(0,"div",35),p(1),J(2,"date"),l()),e&2){let a=u().$implicit;s("ngClass",L(5,Zt,a.isMine,!a.isMine)),o(),v(" ",X(2,2,a.createdAt,"HH:mm")," ")}}function ni(e,n){if(e&1&&(g(0,Yt,6,4,"div",31),J(1,"date"),J(2,"date"),c(3,"div",23)(4,"div",32),g(5,ti,2,5,"div",33),m(6,"div",34),l(),g(7,ii,3,8,"div",35),l()),e&2){let a=n.$implicit,t=n.$index,i=n.$count,r=u(2);h(t===0||X(1,6,r.chat.messages[t-1].createdAt,"d")!==X(2,9,a.createdAt,"d")?0:-1),o(3),s("ngClass",Oe(12,Kt,a.isMine,!a.isMine,t>0&&r.chat.messages[t-1].isMine===a.isMine,t>0&&r.chat.messages[t-1].isMine!==a.isMine)),o(),s("ngClass",L(17,Wt,a.isMine,!a.isMine)),o(),h(t===i-1||r.chat.messages[t+1].isMine!==a.isMine?5:-1),o(),s("innerHTML",a.value,De),o(),h(t===0||t===i-1||r.chat.messages[t+1].isMine!==a.isMine||r.chat.messages[t+1].createdAt!==a.createdAt?7:-1)}}function ai(e,n){if(e&1){let a=q();c(0,"mat-drawer-container",5)(1,"mat-drawer",7,1),ne("openedChange",function(i){M(a);let r=u();return ie(r.drawerOpened,i)||(r.drawerOpened=i),S(i)}),m(3,"chat-contact-info",8),l(),c(4,"mat-drawer-content",9)(5,"div",10)(6,"a",11),x("click",function(){M(a);let i=u();return S(i.resetChat())}),m(7,"mat-icon",12),l(),c(8,"div",13),x("click",function(){M(a);let i=u();return S(i.openContactInfo())}),c(9,"div",14),g(10,Gt,1,1,"img",15)(11,qt,2,1,"div",16),l(),c(12,"div",17),p(13),l()(),c(14,"button",18),m(15,"mat-icon",12),c(16,"mat-menu",null,2)(18,"button",19),x("click",function(){M(a);let i=u();return S(i.openContactInfo())}),m(19,"mat-icon",12),p(20," Contact info "),l(),c(21,"button",20),m(22,"mat-icon",12),p(23," Select messages "),l(),c(24,"button",19),x("click",function(){M(a);let i=u();return S(i.toggleMuteNotifications())}),g(25,Jt,2,1)(26,Xt,2,1),l(),c(27,"button",20),m(28,"mat-icon",12),p(29," Clear messages "),l(),c(30,"button",20),m(31,"mat-icon",12),p(32," Delete chat "),l()()()(),c(33,"div",21)(34,"div",22),$(35,ni,8,20,"div",23,z().trackByFn,!0),l()(),c(37,"div",24)(38,"div",25)(39,"button",26),m(40,"mat-icon",12),l(),c(41,"button",27),m(42,"mat-icon",12),l()(),c(43,"mat-form-field",28),m(44,"textarea",29,3),l(),c(46,"div",30)(47,"button",26),m(48,"mat-icon",12),l()()()()()}if(e&2){let a=R(2),t=R(17),i=u();s("hasBackdrop",!1),o(),s("autoFocus",!1)("mode",i.drawerMode)("position","end"),te("opened",i.drawerOpened),o(2),s("drawer",a)("chat",i.chat),o(3),s("routerLink",je(23,Ht)),o(),s("svgIcon","heroicons_outline:arrow-long-left"),o(3),h(i.chat.contact.picture?10:-1),o(),h(i.chat.contact.picture?-1:11),o(2),v(" ",i.chat.contact.name," "),o(),s("matMenuTriggerFor",t),o(),s("svgIcon","heroicons_outline:ellipsis-vertical"),o(4),s("svgIcon","heroicons_outline:user-circle"),o(3),s("svgIcon","heroicons_outline:check-circle"),o(3),h(i.chat.muted?-1:25),o(),h(i.chat.muted?26:-1),o(2),s("svgIcon","heroicons_outline:backspace"),o(3),s("svgIcon","heroicons_outline:trash"),o(4),U(i.chat.messages),o(5),s("svgIcon","heroicons_outline:face-smile"),o(2),s("svgIcon","heroicons_outline:paper-clip"),o(6),s("svgIcon","heroicons_outline:paper-airplane")}}function oi(e,n){e&1&&(c(0,"div",6),m(1,"mat-icon",39),c(2,"div",40),p(3," Select a conversation or start a new chat "),l()()),e&2&&(o(),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))}function ri(e,n){e&1&&(Ee(),c(0,"svg",41)(1,"g",42),m(2,"path",43),l()())}var pt=(()=>{let n=class n{constructor(t,i,r,d){this._changeDetectorRef=t,this._chatService=i,this._angorMediaWatcherService=r,this._ngZone=d,this.drawerMode="side",this.drawerOpened=!1,this._unsubscribeAll=new F}_resizeMessageInput(){this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.messageInput.nativeElement.style.height="auto",this._changeDetectorRef.detectChanges(),this.messageInput.nativeElement.style.height=`${this.messageInput.nativeElement.scrollHeight}px`,this._changeDetectorRef.detectChanges()})})}ngOnInit(){this._chatService.chat$.pipe(C(this._unsubscribeAll)).subscribe(t=>{this.chat=t,this._changeDetectorRef.markForCheck()}),this._angorMediaWatcherService.onMediaChange$.pipe(C(this._unsubscribeAll)).subscribe(({matchingAliases:t})=>{t.includes("lg")?this.drawerMode="side":this.drawerMode="over",this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openContactInfo(){this.drawerOpened=!0,this._changeDetectorRef.markForCheck()}resetChat(){this._chatService.resetChat(),this.drawerOpened=!1,this._changeDetectorRef.markForCheck()}toggleMuteNotifications(){this.chat.muted=!this.chat.muted,this._chatService.updateChat(this.chat.id,this.chat).subscribe()}trackByFn(t,i){return i.id||t}};n.\u0275fac=function(i){return new(i||n)(I(ae),I(w),I(Ze),I(Te))},n.\u0275cmp=b({type:n,selectors:[["chat-conversation"]],viewQuery:function(i,r){if(i&1&&Ae(Ut,5),i&2){let d;Be(d=Re())&&(r.messageInput=d.first)}},hostBindings:function(i,r){i&1&&x("input",function(){return r._resizeMessageInput()})("ngModelChange",function(){return r._resizeMessageInput()})},standalone:!0,features:[y],decls:5,vars:1,consts:[["speechBubbleExtension",""],["drawer",""],["conversationHeaderMenu",""],["messageInput",""],[1,"bg-card","flex","flex-auto","flex-col","overflow-y-auto","dark:bg-default","lg:overflow-hidden"],[1,"h-full","flex-auto",3,"hasBackdrop"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"w-full","dark:bg-gray-900","sm:w-100","lg:border-l","lg:shadow-none",3,"openedChange","autoFocus","mode","position","opened"],[3,"drawer","chat"],[1,"flex","flex-col","overflow-hidden"],[1,"flex","h-18","flex-0","items-center","border-b","bg-gray-50","px-4","dark:bg-transparent","md:px-6"],["mat-icon-button","",1,"md:-ml-2","lg:hidden",3,"click","routerLink"],[3,"svgIcon"],[1,"ml-2","mr-2","flex","cursor-pointer","items-center","lg:ml-0",3,"click"],[1,"relative","flex","h-10","w-10","flex-0","items-center","justify-center"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Contact picture",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","truncate","text-lg","font-medium","leading-5"],["mat-icon-button","",1,"ml-auto",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-menu-item",""],[1,"flex","flex-col-reverse","overflow-y-auto"],[1,"bg-card","flex","flex-auto","shrink","flex-col","p-6","dark:bg-transparent"],[1,"flex","flex-col",3,"ngClass"],[1,"flex","items-end","border-t","bg-gray-50","p-4","dark:bg-transparent"],[1,"my-px","flex","h-11","items-center"],["mat-icon-button",""],["mat-icon-button","",1,"ml-0.5"],["subscriptSizing","dynamic",1,"angor-mat-dense","angor-mat-rounded","angor-mat-bold","ml-4","w-full"],["matInput","","cdkTextareaAutosize",""],[1,"my-px","ml-4","flex","h-11","items-center"],[1,"-mx-6","my-3","flex","items-center","justify-center"],[1,"relative","max-w-3/4","rounded-lg","px-3","py-2",3,"ngClass"],[1,"absolute","bottom-0","w-3",3,"ngClass"],[1,"min-w-4","leading-5",3,"innerHTML"],[1,"text-secondary","my-0.5","text-sm","font-medium",3,"ngClass"],[1,"flex-auto","border-b"],[1,"text-secondary","mx-4","flex-0","text-sm","font-medium","leading-5"],[4,"ngTemplateOutlet"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"],["width","100%","height","100%","viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["d","M1.01522827,0.516204834 C-8.83532715,54.3062744 61.7609863,70.5215302 64.8009949,64.3061218 C68.8074951,54.8859711 30.1663208,52.9997559 37.5036011,0.516204834 L1.01522827,0.516204834 Z","fill","currentColor","fill-rule","nonzero"]],template:function(i,r){i&1&&(c(0,"div",4),g(1,ai,49,24,"mat-drawer-container",5)(2,oi,4,1,"div",6)(3,ri,3,0,"ng-template",null,0,Ne),l()),i&2&&(o(),h(r.chat?1:2))},dependencies:[ge,he,fe,ue,dt,B,Qe,A,ce,E,k,pe,me,se,de,oe,Ve,K,H,Q,W,Ge,qe,ze],encapsulation:2,changeDetection:0});let e=n;return e})();var ut=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=b({type:n,selectors:[["chat-empty-conversation"]],standalone:!0,features:[y],decls:5,vars:1,consts:[[1,"bg-card","flex","flex-auto","flex-col","overflow-y-auto","dark:bg-default","lg:overflow-hidden"],[1,"flex","flex-auto","flex-col","items-center","justify-center","bg-gray-100","dark:bg-transparent"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-2xl","font-semibold","tracking-tight"]],template:function(i,r){i&1&&(c(0,"div",0)(1,"div",1),m(2,"mat-icon",2),c(3,"div",3),p(4," Select a conversation or start a new chat "),l()()()),i&2&&(o(2),s("svgIcon","heroicons_outline:chat-bubble-oval-left-ellipsis"))},dependencies:[E,k],encapsulation:2,changeDetection:0});let e=n;return e})();var ci=(e,n)=>{let a=V(w),t=V(He);return a.getChatById(e.paramMap.get("id")).pipe(Se(i=>{console.error(i);let r=n.url.split("/").slice(0,-1).join("/");return t.navigateByUrl(r),ee(i)}))},xn=[{path:"",component:ot,resolve:{chats:()=>V(w).getChats(),contacts:()=>V(w).getContacts(),profile:()=>V(w).getProfile()},children:[{path:"",component:mt,children:[{path:"",pathMatch:"full",component:ut},{path:":id",component:pt,resolve:{conversation:ci}}]}]}];export{xn as default}; diff --git a/chunk-L2RASMKO.js b/chunk-I33GKPRG.js similarity index 99% rename from chunk-L2RASMKO.js rename to chunk-I33GKPRG.js index 524dfcb..f3e1f34 100644 --- a/chunk-L2RASMKO.js +++ b/chunk-I33GKPRG.js @@ -1 +1 @@ -import{g as tt,h as It,i as xt,j as O,k as T,m as wt,n as q,o as y,p as f,s as Y}from"./chunk-PWH2GQNP.js";import{C as $,D as Tt,E as X,H as J,a as Ot,g as V,j as z,l as K,x as G,y as H}from"./chunk-MH4Z64LL.js";import{A as lt,B as C,Ca as c,Ea as mt,F as k,Hb as B,Na as P,O as E,Pa as M,Sa as ut,Ta as A,W as R,Wa as pt,Wb as Dt,X as F,Y as p,Z as d,_,a as m,b as st,ba as L,bc as N,ca as S,cb as gt,cc as At,da as ct,db as ft,ha as dt,jb as _t,k as u,lb as vt,oa as g,pa as ht,q as rt,qa as j,sa as D,tb as yt,ub as bt,vb as Ct,w,wa as Z}from"./chunk-LP5NDBXI.js";function Vt(n,i){}var v=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var at=(()=>{let i=class i extends xt{constructor(t,e,a,o,l,r,h,b){super(),this._elementRef=t,this._focusTrapFactory=e,this._config=o,this._interactivityChecker=l,this._ngZone=r,this._overlayRef=h,this._focusMonitor=b,this._platform=_(Ot),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=_(Dt),this._injector=_(g),this._isDestroyed=!1,this.attachDomPortal=U=>{this._portalOutlet.hasAttached();let Pt=this._portalOutlet.attachDomPortal(U);return this._contentAttached(),Pt},this._document=a,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let a=()=>{t.removeEventListener("blur",a),t.removeEventListener("mousedown",a),t.removeAttribute("tabindex")};t.addEventListener("blur",a),t.addEventListener("mousedown",a)})),t.focus(e)}_focusByCssSelector(t,e){let a=this._elementRef.nativeElement.querySelector(t);a&&this._forceFocus(a,e)}_trapFocus(){this._isDestroyed||ut(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let a=V(),o=this._elementRef.nativeElement;(!a||a===this._document.body||a===o||o.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,e=V();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=V()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};i.\u0275fac=function(e){return new(e||i)(c(D),c(H),c(N,8),c(v),c(G),c(j),c(y),c($))},i.\u0275cmp=L({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,a){if(e&1&&yt(O,7),e&2){let o;bt(o=Ct())&&(a._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,a){e&2&&A("id",a._config.id||null)("role",a._config.role)("aria-modal",a._config.ariaModal)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null)},standalone:!0,features:[P,B],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,a){e&1&&M(0,Vt,0,0,"ng-template",0)},dependencies:[O],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=i;return n})(),I=class{constructor(i,s){this.overlayRef=i,this.config=s,this.closed=new u,this.disableClose=s.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!z(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{s.closeOnOverlayDetachments!==!1&&this.close()})}close(i,s){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(i),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",s=""){return this.overlayRef.updateSize({width:i,height:s}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}},zt=new p("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=_(f);return()=>n.scrollStrategies.block()}}),Gt=new p("DialogData"),Ht=new p("DefaultDialogConfig");var $t=0,nt=(()=>{let i=class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,e,a,o,l,r){this._overlay=t,this._injector=e,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u,this._afterOpenedAtThisLevel=new u,this._ariaHiddenElements=new Map,this.afterAllClosed=w(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0))),this._scrollStrategy=r}open(t,e){let a=this._defaultOptions||new v;e=m(m({},a),e),e.id=e.id||`cdk-dialog-${$t++}`,e.id&&this.getDialogById(e.id);let o=this._getOverlayConfig(e),l=this._overlay.create(o),r=new I(l,e),h=this._attachContainer(l,r,e);return r.containerInstance=h,this._attachDialogContent(t,r,h,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,!0)),this.afterOpened.next(r),r}closeAll(){et(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){et(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),et(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let e=new wt({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,a){let o=a.injector||a.viewContainerRef?.injector,l=[{provide:v,useValue:a},{provide:I,useValue:e},{provide:y,useValue:t}],r;a.container?typeof a.container=="function"?r=a.container:(r=a.container.type,l.push(...a.container.providers(a))):r=at;let h=new tt(r,a.viewContainerRef,g.create({parent:o||this._injector,providers:l}),a.componentFactoryResolver);return t.attach(h).instance}_attachDialogContent(t,e,a,o){if(t instanceof mt){let l=this._createInjector(o,e,a,void 0),r={$implicit:o.data,dialogRef:e};o.templateContext&&(r=m(m({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),a.attachTemplatePortal(new It(t,null,r,l))}else{let l=this._createInjector(o,e,a,this._injector),r=a.attachComponentPortal(new tt(t,o.viewContainerRef,l,o.componentFactoryResolver));e.componentRef=r,e.componentInstance=r.instance}}_createInjector(t,e,a,o){let l=t.injector||t.viewContainerRef?.injector,r=[{provide:Gt,useValue:t.data},{provide:I,useValue:e}];return t.providers&&(typeof t.providers=="function"?r.push(...t.providers(e,t,a)):r.push(...t.providers)),t.direction&&(!l||!l.get(X,null,{optional:!0}))&&r.push({provide:X,useValue:{value:t.direction,change:rt()}}),g.create({parent:l||o,providers:r})}_removeOpenDialog(t,e){let a=this.openDialogs.indexOf(t);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let e=t.parentElement.children;for(let a=e.length-1;a>-1;a--){let o=e[a];o!==t&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};i.\u0275fac=function(e){return new(e||i)(d(f),d(g),d(Ht,8),d(i,12),d(q),d(zt))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function et(n,i){let s=n.length;for(;s--;)i(n[s])}var kt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=S({type:i}),i.\u0275inj=F({providers:[nt],imports:[Y,T,Tt,T]});let n=i;return n})();function qt(n,i){}var x=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},ot="mdc-dialog--open",Et="mdc-dialog--opening",Rt="mdc-dialog--closing",Yt=150,Qt=75,Wt=(()=>{let i=class i extends at{constructor(t,e,a,o,l,r,h,b,U){super(t,e,a,o,l,r,h,U),this._animationMode=b,this._animationStateChanged=new ht,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Lt(this._config.enterAnimationDuration)??Yt:0,this._exitAnimationDuration=this._animationsEnabled?Lt(this._config.exitAnimationDuration)??Qt:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ft,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Et,ot)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ot),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ot),this._animationsEnabled?(this._hostElement.style.setProperty(Ft,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Rt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Et,Rt)}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}};i.\u0275fac=function(e){return new(e||i)(c(D),c(H),c(N,8),c(x),c(G),c(j),c(y),c(Z,8),c($))},i.\u0275cmp=L({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,a){e&2&&(_t("id",a._config.id),A("aria-modal",a._config.ariaModal)("role",a._config.role)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null),pt("_mat-animation-noopable",!a._animationsEnabled)("mat-mdc-dialog-container-with-actions",a._actionSectionCount>0))},standalone:!0,features:[P,B],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,a){e&1&&(gt(0,"div",0)(1,"div",1),M(2,qt,0,0,"ng-template",2),ft()())},dependencies:[O],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let n=i;return n})(),Ft="--mat-dialog-transition-duration";function Lt(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?K(n.substring(0,n.length-2)):n.endsWith("s")?K(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Q=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(Q||{}),W=class{constructor(i,s,t){this._ref=i,this._containerInstance=t,this._afterOpened=new u,this._beforeClosed=new u,this._state=Q.OPEN,this.disableClose=s.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(C(e=>e.state==="opened"),k(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(C(e=>e.state==="closed"),k(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),lt(this.backdropClick(),this.keydownEvents().pipe(C(e=>e.keyCode===27&&!this.disableClose&&!z(e)))).subscribe(e=>{this.disableClose||(e.preventDefault(),St(this,e.type==="keydown"?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(C(s=>s.state==="closing"),k(1)).subscribe(s=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=Q.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let s=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?s.left(i.left):s.right(i.right):s.centerHorizontally(),i&&(i.top||i.bottom)?i.top?s.top(i.top):s.bottom(i.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",s=""){return this._ref.updateSize(i,s),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=Q.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function St(n,i,s){return n._closeInteractionType=i,n.close(s)}var Ut=new p("MatMdcDialogData"),Zt=new p("mat-mdc-dialog-default-options"),Kt=new p("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=_(f);return()=>n.scrollStrategies.block()}});var Xt=0,jt=(()=>{let i=class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,e,a,o,l,r,h,b){this._overlay=t,this._defaultOptions=o,this._scrollStrategy=l,this._parentDialog=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u,this._afterOpenedAtThisLevel=new u,this.dialogConfigClass=x,this.afterAllClosed=w(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0))),this._dialog=e.get(nt),this._dialogRefConstructor=W,this._dialogContainerType=Wt,this._dialogDataToken=Ut}open(t,e){let a;e=m(m({},this._defaultOptions||new x),e),e.id=e.id||`mat-mdc-dialog-${Xt++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(t,st(m({},e),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:v,useValue:e}]},templateContext:()=>({dialogRef:a}),providers:(l,r,h)=>(a=new this._dialogRefConstructor(l,e,h),a.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:h},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:a}])}));return a.componentRef=o.componentRef,a.componentInstance=o.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(a);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}};i.\u0275fac=function(e){return new(e||i)(d(f),d(g),d(At,8),d(Zt,8),d(Kt),d(i,12),d(q),d(Z,8))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var $e=(()=>{let i=class i{constructor(t,e,a){this.dialogRef=t,this._elementRef=e,this._dialog=a,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Jt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){St(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};i.\u0275fac=function(e){return new(e||i)(c(W,8),c(D),c(jt))},i.\u0275dir=ct({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,a){e&1&&vt("click",function(l){return a._onButtonClick(l)}),e&2&&A("aria-label",a.ariaLabel||null)("type",a.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[dt]});let n=i;return n})();function Jt(n,i){let s=n.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-mdc-dialog-container");)s=s.parentElement;return s?i.find(t=>t.id===s.id):null}var qe=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=S({type:i}),i.\u0275inj=F({providers:[jt],imports:[kt,Y,T,J,J]});let n=i;return n})();export{W as a,Ut as b,jt as c,$e as d,qe as e}; +import{g as tt,h as It,i as xt,j as O,k as T,m as wt,n as q,o as y,p as f,s as Y}from"./chunk-6S6AYVUH.js";import{C as $,D as Tt,E as X,H as J,a as Ot,g as V,j as z,l as K,x as G,y as H}from"./chunk-MH4Z64LL.js";import{A as lt,B as C,Ca as c,Ea as mt,F as k,Hb as B,Na as P,O as E,Pa as M,Sa as ut,Ta as A,W as R,Wa as pt,Wb as Dt,X as F,Y as p,Z as d,_,a as m,b as st,ba as L,bc as N,ca as S,cb as gt,cc as At,da as ct,db as ft,ha as dt,jb as _t,k as u,lb as vt,oa as g,pa as ht,q as rt,qa as j,sa as D,tb as yt,ub as bt,vb as Ct,w,wa as Z}from"./chunk-LP5NDBXI.js";function Vt(n,i){}var v=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}};var at=(()=>{let i=class i extends xt{constructor(t,e,a,o,l,r,h,b){super(),this._elementRef=t,this._focusTrapFactory=e,this._config=o,this._interactivityChecker=l,this._ngZone=r,this._overlayRef=h,this._focusMonitor=b,this._platform=_(Ot),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=_(Dt),this._injector=_(g),this._isDestroyed=!1,this.attachDomPortal=U=>{this._portalOutlet.hasAttached();let Pt=this._portalOutlet.attachDomPortal(U);return this._contentAttached(),Pt},this._document=a,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let e=this._ariaLabelledByQueue.indexOf(t);e>-1&&(this._ariaLabelledByQueue.splice(e,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),e}attachTemplatePortal(t){this._portalOutlet.hasAttached();let e=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),e}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,e){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let a=()=>{t.removeEventListener("blur",a),t.removeEventListener("mousedown",a),t.removeAttribute("tabindex")};t.addEventListener("blur",a),t.addEventListener("mousedown",a)})),t.focus(e)}_focusByCssSelector(t,e){let a=this._elementRef.nativeElement.querySelector(t);a&&this._forceFocus(a,e)}_trapFocus(){this._isDestroyed||ut(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus();break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement()||this._focusDialogContainer();break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus);break}},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,e=null;if(typeof t=="string"?e=this._document.querySelector(t):typeof t=="boolean"?e=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(e=t),this._config.restoreFocus&&e&&typeof e.focus=="function"){let a=V(),o=this._elementRef.nativeElement;(!a||a===this._document.body||a===o||o.contains(a))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){let t=this._elementRef.nativeElement,e=V();return t===e||t.contains(e)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=V()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}};i.\u0275fac=function(e){return new(e||i)(c(D),c(H),c(N,8),c(v),c(G),c(j),c(y),c($))},i.\u0275cmp=L({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(e,a){if(e&1&&yt(O,7),e&2){let o;bt(o=Ct())&&(a._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(e,a){e&2&&A("id",a._config.id||null)("role",a._config.role)("aria-modal",a._config.ariaModal)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null)},standalone:!0,features:[P,B],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,a){e&1&&M(0,Vt,0,0,"ng-template",0)},dependencies:[O],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2});let n=i;return n})(),I=class{constructor(i,s){this.overlayRef=i,this.config=s,this.closed=new u,this.disableClose=s.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=s.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!z(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=i.detachments().subscribe(()=>{s.closeOnOverlayDetachments!==!1&&this.close()})}close(i,s){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=s?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(i),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",s=""){return this.overlayRef.updateSize({width:i,height:s}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}},zt=new p("DialogScrollStrategy",{providedIn:"root",factory:()=>{let n=_(f);return()=>n.scrollStrategies.block()}}),Gt=new p("DialogData"),Ht=new p("DefaultDialogConfig");var $t=0,nt=(()=>{let i=class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(t,e,a,o,l,r){this._overlay=t,this._injector=e,this._defaultOptions=a,this._parentDialog=o,this._overlayContainer=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u,this._afterOpenedAtThisLevel=new u,this._ariaHiddenElements=new Map,this.afterAllClosed=w(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0))),this._scrollStrategy=r}open(t,e){let a=this._defaultOptions||new v;e=m(m({},a),e),e.id=e.id||`cdk-dialog-${$t++}`,e.id&&this.getDialogById(e.id);let o=this._getOverlayConfig(e),l=this._overlay.create(o),r=new I(l,e),h=this._attachContainer(l,r,e);return r.containerInstance=h,this._attachDialogContent(t,r,h,e),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.closed.subscribe(()=>this._removeOpenDialog(r,!0)),this.afterOpened.next(r),r}closeAll(){et(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){et(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),et(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let e=new wt({positionStrategy:t.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachContainer(t,e,a){let o=a.injector||a.viewContainerRef?.injector,l=[{provide:v,useValue:a},{provide:I,useValue:e},{provide:y,useValue:t}],r;a.container?typeof a.container=="function"?r=a.container:(r=a.container.type,l.push(...a.container.providers(a))):r=at;let h=new tt(r,a.viewContainerRef,g.create({parent:o||this._injector,providers:l}),a.componentFactoryResolver);return t.attach(h).instance}_attachDialogContent(t,e,a,o){if(t instanceof mt){let l=this._createInjector(o,e,a,void 0),r={$implicit:o.data,dialogRef:e};o.templateContext&&(r=m(m({},r),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),a.attachTemplatePortal(new It(t,null,r,l))}else{let l=this._createInjector(o,e,a,this._injector),r=a.attachComponentPortal(new tt(t,o.viewContainerRef,l,o.componentFactoryResolver));e.componentRef=r,e.componentInstance=r.instance}}_createInjector(t,e,a,o){let l=t.injector||t.viewContainerRef?.injector,r=[{provide:Gt,useValue:t.data},{provide:I,useValue:e}];return t.providers&&(typeof t.providers=="function"?r.push(...t.providers(e,t,a)):r.push(...t.providers)),t.direction&&(!l||!l.get(X,null,{optional:!0}))&&r.push({provide:X,useValue:{value:t.direction,change:rt()}}),g.create({parent:l||o,providers:r})}_removeOpenDialog(t,e){let a=this.openDialogs.indexOf(t);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,l)=>{o?l.setAttribute("aria-hidden",o):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),e&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){let t=this._overlayContainer.getContainerElement();if(t.parentElement){let e=t.parentElement.children;for(let a=e.length-1;a>-1;a--){let o=e[a];o!==t&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}};i.\u0275fac=function(e){return new(e||i)(d(f),d(g),d(Ht,8),d(i,12),d(q),d(zt))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function et(n,i){let s=n.length;for(;s--;)i(n[s])}var kt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=S({type:i}),i.\u0275inj=F({providers:[nt],imports:[Y,T,Tt,T]});let n=i;return n})();function qt(n,i){}var x=class{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}},ot="mdc-dialog--open",Et="mdc-dialog--opening",Rt="mdc-dialog--closing",Yt=150,Qt=75,Wt=(()=>{let i=class i extends at{constructor(t,e,a,o,l,r,h,b,U){super(t,e,a,o,l,r,h,U),this._animationMode=b,this._animationStateChanged=new ht,this._animationsEnabled=this._animationMode!=="NoopAnimations",this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Lt(this._config.enterAnimationDuration)??Yt:0,this._exitAnimationDuration=this._animationsEnabled?Lt(this._config.exitAnimationDuration)??Qt:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ft,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Et,ot)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ot),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ot),this._animationsEnabled?(this._hostElement.style.setProperty(Ft,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Rt)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Et,Rt)}_waitForAnimationToComplete(t,e){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(e,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let e=super.attachComponentPortal(t);return e.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),e}};i.\u0275fac=function(e){return new(e||i)(c(D),c(H),c(N,8),c(x),c(G),c(j),c(y),c(Z,8),c($))},i.\u0275cmp=L({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(e,a){e&2&&(_t("id",a._config.id),A("aria-modal",a._config.ariaModal)("role",a._config.role)("aria-labelledby",a._config.ariaLabel?null:a._ariaLabelledByQueue[0])("aria-label",a._config.ariaLabel)("aria-describedby",a._config.ariaDescribedBy||null),pt("_mat-animation-noopable",!a._animationsEnabled)("mat-mdc-dialog-container-with-actions",a._actionSectionCount>0))},standalone:!0,features:[P,B],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(e,a){e&1&&(gt(0,"div",0)(1,"div",1),M(2,qt,0,0,"ng-template",2),ft()())},dependencies:[O],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 80vw);min-width:var(--mat-dialog-container-min-width, 0)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, 80vw)}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12));border-radius:var(--mdc-dialog-container-shape, var(--mat-app-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-app-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 0 24px 9px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-app-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-app-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-app-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-app-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-app-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-app-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-app-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-app-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-app-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-app-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-app-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-app-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 8px);justify-content:var(--mat-dialog-actions-alignment, start)}.cdk-high-contrast-active .mat-mdc-dialog-actions{border-top-color:CanvasText}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}'],encapsulation:2});let n=i;return n})(),Ft="--mat-dialog-transition-duration";function Lt(n){return n==null?null:typeof n=="number"?n:n.endsWith("ms")?K(n.substring(0,n.length-2)):n.endsWith("s")?K(n.substring(0,n.length-1))*1e3:n==="0"?0:null}var Q=function(n){return n[n.OPEN=0]="OPEN",n[n.CLOSING=1]="CLOSING",n[n.CLOSED=2]="CLOSED",n}(Q||{}),W=class{constructor(i,s,t){this._ref=i,this._containerInstance=t,this._afterOpened=new u,this._beforeClosed=new u,this._state=Q.OPEN,this.disableClose=s.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(C(e=>e.state==="opened"),k(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(C(e=>e.state==="closed"),k(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),lt(this.backdropClick(),this.keydownEvents().pipe(C(e=>e.keyCode===27&&!this.disableClose&&!z(e)))).subscribe(e=>{this.disableClose||(e.preventDefault(),St(this,e.type==="keydown"?"keyboard":"mouse"))})}close(i){this._result=i,this._containerInstance._animationStateChanged.pipe(C(s=>s.state==="closing"),k(1)).subscribe(s=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),s.totalTime+100)}),this._state=Q.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let s=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?s.left(i.left):s.right(i.right):s.centerHorizontally(),i&&(i.top||i.bottom)?i.top?s.top(i.top):s.bottom(i.bottom):s.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",s=""){return this._ref.updateSize(i,s),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=Q.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function St(n,i,s){return n._closeInteractionType=i,n.close(s)}var Ut=new p("MatMdcDialogData"),Zt=new p("mat-mdc-dialog-default-options"),Kt=new p("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let n=_(f);return()=>n.scrollStrategies.block()}});var Xt=0,jt=(()=>{let i=class i{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(t,e,a,o,l,r,h,b){this._overlay=t,this._defaultOptions=o,this._scrollStrategy=l,this._parentDialog=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new u,this._afterOpenedAtThisLevel=new u,this.dialogConfigClass=x,this.afterAllClosed=w(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(E(void 0))),this._dialog=e.get(nt),this._dialogRefConstructor=W,this._dialogContainerType=Wt,this._dialogDataToken=Ut}open(t,e){let a;e=m(m({},this._defaultOptions||new x),e),e.id=e.id||`mat-mdc-dialog-${Xt++}`,e.scrollStrategy=e.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(t,st(m({},e),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:e},{provide:v,useValue:e}]},templateContext:()=>({dialogRef:a}),providers:(l,r,h)=>(a=new this._dialogRefConstructor(l,e,h),a.updatePosition(e?.position),[{provide:this._dialogContainerType,useValue:h},{provide:this._dialogDataToken,useValue:r.data},{provide:this._dialogRefConstructor,useValue:a}])}));return a.componentRef=o.componentRef,a.componentInstance=o.componentInstance,this.openDialogs.push(a),this.afterOpened.next(a),a.afterClosed().subscribe(()=>{let l=this.openDialogs.indexOf(a);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||this._getAfterAllClosed().next())}),a}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}};i.\u0275fac=function(e){return new(e||i)(d(f),d(g),d(At,8),d(Zt,8),d(Kt),d(i,12),d(q),d(Z,8))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var $e=(()=>{let i=class i{constructor(t,e,a){this.dialogRef=t,this._elementRef=e,this._dialog=a,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Jt(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){St(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}};i.\u0275fac=function(e){return new(e||i)(c(W,8),c(D),c(jt))},i.\u0275dir=ct({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(e,a){e&1&&vt("click",function(l){return a._onButtonClick(l)}),e&2&&A("aria-label",a.ariaLabel||null)("type",a.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[dt]});let n=i;return n})();function Jt(n,i){let s=n.nativeElement.parentElement;for(;s&&!s.classList.contains("mat-mdc-dialog-container");)s=s.parentElement;return s?i.find(t=>t.id===s.id):null}var qe=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=S({type:i}),i.\u0275inj=F({providers:[jt],imports:[kt,Y,T,J,J]});let n=i;return n})();export{W as a,Ut as b,jt as c,$e as d,qe as e}; diff --git a/chunk-TXXDQLF3.js b/chunk-K7XPURVS.js similarity index 99% rename from chunk-TXXDQLF3.js rename to chunk-K7XPURVS.js index 0d9c083..c2c8564 100644 --- a/chunk-TXXDQLF3.js +++ b/chunk-K7XPURVS.js @@ -1 +1 @@ -import{c as Me,d as F,e as Fe,f as Y}from"./chunk-PWH2GQNP.js";import{c as Se,d as Z,g as L,h as U,j as q}from"./chunk-4AZPYN7Q.js";import{C as De,E as xe,H as G,a as be,j as Ce,k as m,x as ke,y as ye}from"./chunk-MH4Z64LL.js";import{$a as z,A as X,B as l,Ba as he,Ca as a,E as ee,F as te,G as T,Gb as H,Hb as M,I as ie,Na as le,O as A,Pa as P,Q as c,Qa as pe,Sa as V,Ta as me,V as re,Va as ue,Wa as y,Wb as g,X as ne,Y as R,_ as w,ba as v,bc as ve,ca as ae,cb as D,db as x,ia as oe,ib as fe,ja as se,k as h,kb as _e,lb as ge,mb as we,nb as Q,oa as O,ob as S,pa as b,pb as p,qa as C,sa as k,sb as W,t as j,ta as de,tb as N,ub as f,vb as _,wa as ce,y as J}from"./chunk-LP5NDBXI.js";var Ee=["*"],Te=["content"],Ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Re=["mat-drawer","mat-drawer-content","*"];function Oe(o,r){if(o&1){let E=fe();D(0,"div",1),ge("click",function(){oe(E);let t=Q();return se(t._onBackdropClicked())}),x()}if(o&2){let E=Q();y("mat-drawer-shown",E._isShowingBackdrop())}}function Pe(o,r){o&1&&(D(0,"mat-drawer-content"),p(1,2),x())}var Ve={transformDrawer:Se("transform",[U("open, open-instant",L({transform:"none",visibility:"visible"})),U("void",L({"box-shadow":"none",visibility:"hidden"})),q("void => open-instant",Z("0ms")),q("void <=> open, open-instant => void",Z("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var ze=new R("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Qe}),Ie=new R("MAT_DRAWER_CONTAINER");function Qe(){return!1}var K=(()=>{let r=class r extends F{constructor(e,t,i,s,d){super(i,s,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};r.\u0275fac=function(t){return new(t||r)(a(g),a(re(()=>Ne)),a(k),a(Me),a(C))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,i){t&2&&ue("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},standalone:!0,features:[H([{provide:F,useExisting:r}]),le,M],ngContentSelectors:Ee,decls:1,vars:0,template:function(t,i){t&1&&(S(),p(0))},encapsulation:2,changeDetection:0});let o=r;return o})(),We=(()=>{let r=class r{get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=m(e)}get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=m(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(m(e))}constructor(e,t,i,s,d,I,B,Be){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=i,this._platform=s,this._ngZone=d,this._interactivityChecker=I,this._doc=B,this._container=Be,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h,this._animationEnd=new h,this._animationState="void",this.openedChange=new b(!0),this._openedStream=this.openedChange.pipe(l(n=>n),j(()=>{})),this.openedStart=this._animationStarted.pipe(l(n=>n.fromState!==n.toState&&n.toState.indexOf("open")===0),T(void 0)),this._closedStream=this.openedChange.pipe(l(n=>!n),j(()=>{})),this.closedStart=this._animationStarted.pipe(l(n=>n.fromState!==n.toState&&n.toState==="void"),T(void 0)),this._destroyed=new h,this.onPositionChanged=new b,this._modeChanged=new h,this._injector=w(O),this._changeDetectorRef=w(g),this.openedChange.pipe(c(this._destroyed)).subscribe(n=>{n?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{J(this._elementRef.nativeElement,"keydown").pipe(l(n=>n.keyCode===27&&!this.disableClose&&!Ce(n)),c(this._destroyed)).subscribe(n=>this._ngZone.run(()=>{this.close(),n.stopPropagation(),n.preventDefault()}))}),this._animationEnd.pipe(ie((n,u)=>n.fromState===u.fromState&&n.toState===u.toState)).subscribe(n=>{let{fromState:u,toState:$}=n;($.indexOf("open")===0&&u==="void"||$==="void"&&u.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{e.removeEventListener("blur",i),e.removeEventListener("mousedown",i),e.removeAttribute("tabindex")};e.addEventListener("blur",i),e.addEventListener("mousedown",i)})),e.focus(t)}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":V(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,t,i){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(i)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(te(1)).subscribe(d=>s(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,i=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,t)),i.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}};r.\u0275fac=function(t){return new(t||r)(a(k),a(ye),a(De),a(be),a(C),a(ke),a(ve,8),a(Ie,8))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer"]],viewQuery:function(t,i){if(t&1&&N(Te,5),t&2){let s;f(s=_())&&(i._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,i){t&1&&we("@transform.start",function(d){return i._animationStarted.next(d)})("@transform.done",function(d){return i._animationEnd.next(d)}),t&2&&(_e("@transform",i._animationState),me("align",null),y("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side")("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[M],ngContentSelectors:Ee,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,i){t&1&&(S(),D(0,"div",1,0),p(2),x())},dependencies:[F],encapsulation:2,data:{animation:[Ve.transformDrawer]},changeDetection:0});let o=r;return o})(),Ne=(()=>{let r=class r{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=m(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:m(e)}get scrollable(){return this._userContent||this._content}constructor(e,t,i,s,d,I=!1,B){this._dir=e,this._element=t,this._ngZone=i,this._changeDetectorRef=s,this._animationMode=B,this._drawers=new de,this.backdropClick=new b,this._destroyed=new h,this._doCheckSubject=new h,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h,this._injector=w(O),e&&e.change.pipe(c(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(c(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=I}ngAfterContentInit(){this._allDrawers.changes.pipe(A(this._allDrawers),c(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(A(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(ee(10),c(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,t-=i}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();t+=i,e-=i}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(l(t=>t.fromState!==t.toState),c(this._drawers.changes)).subscribe(t=>{t.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(c(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(c(this._drawers.changes)).subscribe(()=>{V(()=>{this._validateDrawers()},{injector:this._injector,phase:pe.Read})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(c(X(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}};r.\u0275fac=function(t){return new(t||r)(a(xe,8),a(k),a(C),a(g),a(Fe),a(ze),a(ce,8))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer-container"]],contentQueries:function(t,i,s){if(t&1&&(W(s,K,5),W(s,We,5)),t&2){let d;f(d=_())&&(i._content=d.first),f(d=_())&&(i._allDrawers=d)}},viewQuery:function(t,i){if(t&1&&N(K,5),t&2){let s;f(s=_())&&(i._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,i){t&2&&y("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[H([{provide:Ie,useExisting:r}]),M],ngContentSelectors:Re,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){t&1&&(S(Ae),P(0,Oe,1,2,"div",0),p(1),p(2,1),P(3,Pe,2,0,"mat-drawer-content")),t&2&&(z(i.hasBackdrop?0:-1),he(3),z(i._content?-1:3))},dependencies:[K],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});let o=r;return o})();var _t=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ae({type:r}),r.\u0275inj=ne({imports:[G,Y,Y,G]});let o=r;return o})();export{K as a,We as b,Ne as c,_t as d}; +import{c as Me,d as F,e as Fe,f as Y}from"./chunk-6S6AYVUH.js";import{c as Se,d as Z,g as L,h as U,j as q}from"./chunk-4AZPYN7Q.js";import{C as De,E as xe,H as G,a as be,j as Ce,k as m,x as ke,y as ye}from"./chunk-MH4Z64LL.js";import{$a as z,A as X,B as l,Ba as he,Ca as a,E as ee,F as te,G as T,Gb as H,Hb as M,I as ie,Na as le,O as A,Pa as P,Q as c,Qa as pe,Sa as V,Ta as me,V as re,Va as ue,Wa as y,Wb as g,X as ne,Y as R,_ as w,ba as v,bc as ve,ca as ae,cb as D,db as x,ia as oe,ib as fe,ja as se,k as h,kb as _e,lb as ge,mb as we,nb as Q,oa as O,ob as S,pa as b,pb as p,qa as C,sa as k,sb as W,t as j,ta as de,tb as N,ub as f,vb as _,wa as ce,y as J}from"./chunk-LP5NDBXI.js";var Ee=["*"],Te=["content"],Ae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Re=["mat-drawer","mat-drawer-content","*"];function Oe(o,r){if(o&1){let E=fe();D(0,"div",1),ge("click",function(){oe(E);let t=Q();return se(t._onBackdropClicked())}),x()}if(o&2){let E=Q();y("mat-drawer-shown",E._isShowingBackdrop())}}function Pe(o,r){o&1&&(D(0,"mat-drawer-content"),p(1,2),x())}var Ve={transformDrawer:Se("transform",[U("open, open-instant",L({transform:"none",visibility:"visible"})),U("void",L({"box-shadow":"none",visibility:"hidden"})),q("void => open-instant",Z("0ms")),q("void <=> open, open-instant => void",Z("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};var ze=new R("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:Qe}),Ie=new R("MAT_DRAWER_CONTAINER");function Qe(){return!1}var K=(()=>{let r=class r extends F{constructor(e,t,i,s,d){super(i,s,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}};r.\u0275fac=function(t){return new(t||r)(a(g),a(re(()=>Ne)),a(k),a(Me),a(C))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,i){t&2&&ue("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px")},standalone:!0,features:[H([{provide:F,useExisting:r}]),le,M],ngContentSelectors:Ee,decls:1,vars:0,template:function(t,i){t&1&&(S(),p(0))},encapsulation:2,changeDetection:0});let o=r;return o})(),We=(()=>{let r=class r{get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=m(e)}get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=m(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(m(e))}constructor(e,t,i,s,d,I,B,Be){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=i,this._platform=s,this._ngZone=d,this._interactivityChecker=I,this._doc=B,this._container=Be,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h,this._animationEnd=new h,this._animationState="void",this.openedChange=new b(!0),this._openedStream=this.openedChange.pipe(l(n=>n),j(()=>{})),this.openedStart=this._animationStarted.pipe(l(n=>n.fromState!==n.toState&&n.toState.indexOf("open")===0),T(void 0)),this._closedStream=this.openedChange.pipe(l(n=>!n),j(()=>{})),this.closedStart=this._animationStarted.pipe(l(n=>n.fromState!==n.toState&&n.toState==="void"),T(void 0)),this._destroyed=new h,this.onPositionChanged=new b,this._modeChanged=new h,this._injector=w(O),this._changeDetectorRef=w(g),this.openedChange.pipe(c(this._destroyed)).subscribe(n=>{n?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{J(this._elementRef.nativeElement,"keydown").pipe(l(n=>n.keyCode===27&&!this.disableClose&&!Ce(n)),c(this._destroyed)).subscribe(n=>this._ngZone.run(()=>{this.close(),n.stopPropagation(),n.preventDefault()}))}),this._animationEnd.pipe(ie((n,u)=>n.fromState===u.fromState&&n.toState===u.toState)).subscribe(n=>{let{fromState:u,toState:$}=n;($.indexOf("open")===0&&u==="void"||$==="void"&&u.indexOf("open")===0)&&this.openedChange.emit(this._opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{e.removeEventListener("blur",i),e.removeEventListener("mousedown",i),e.removeAttribute("tabindex")};e.addEventListener("blur",i),e.addEventListener("mousedown",i)})),e.focus(t)}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":V(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,t,i){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(i)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(s=>{this.openedChange.pipe(te(1)).subscribe(d=>s(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,i=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,t)),i.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}};r.\u0275fac=function(t){return new(t||r)(a(k),a(ye),a(De),a(be),a(C),a(ke),a(ve,8),a(Ie,8))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer"]],viewQuery:function(t,i){if(t&1&&N(Te,5),t&2){let s;f(s=_())&&(i._content=s.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,i){t&1&&we("@transform.start",function(d){return i._animationStarted.next(d)})("@transform.done",function(d){return i._animationEnd.next(d)}),t&2&&(_e("@transform",i._animationState),me("align",null),y("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side")("mat-drawer-opened",i.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],standalone:!0,features:[M],ngContentSelectors:Ee,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,i){t&1&&(S(),D(0,"div",1,0),p(2),x())},dependencies:[F],encapsulation:2,data:{animation:[Ve.transformDrawer]},changeDetection:0});let o=r;return o})(),Ne=(()=>{let r=class r{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=m(e)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:m(e)}get scrollable(){return this._userContent||this._content}constructor(e,t,i,s,d,I=!1,B){this._dir=e,this._element=t,this._ngZone=i,this._changeDetectorRef=s,this._animationMode=B,this._drawers=new de,this.backdropClick=new b,this._destroyed=new h,this._doCheckSubject=new h,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h,this._injector=w(O),e&&e.change.pipe(c(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(c(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=I}ngAfterContentInit(){this._allDrawers.changes.pipe(A(this._allDrawers),c(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(A(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(ee(10),c(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,t-=i}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();t+=i,e-=i}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(l(t=>t.fromState!==t.toState),c(this._drawers.changes)).subscribe(t=>{t.toState!=="open-instant"&&this._animationMode!=="NoopAnimations"&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(c(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(c(this._drawers.changes)).subscribe(()=>{V(()=>{this._validateDrawers()},{injector:this._injector,phase:pe.Read})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(c(X(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}};r.\u0275fac=function(t){return new(t||r)(a(xe,8),a(k),a(C),a(g),a(Fe),a(ze),a(ce,8))},r.\u0275cmp=v({type:r,selectors:[["mat-drawer-container"]],contentQueries:function(t,i,s){if(t&1&&(W(s,K,5),W(s,We,5)),t&2){let d;f(d=_())&&(i._content=d.first),f(d=_())&&(i._allDrawers=d)}},viewQuery:function(t,i){if(t&1&&N(K,5),t&2){let s;f(s=_())&&(i._userContent=s.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,i){t&2&&y("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[H([{provide:Ie,useExisting:r}]),M],ngContentSelectors:Re,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){t&1&&(S(Ae),P(0,Oe,1,2,"div",0),p(1),p(2,1),P(3,Pe,2,0,"mat-drawer-content")),t&2&&(z(i.hasBackdrop?0:-1),he(3),z(i._content?-1:3))},dependencies:[K],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-app-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-app-background));box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-app-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow);background-color:var(--mat-sidenav-container-background-color, var(--mat-app-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));width:var(--mat-sidenav-container-width);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-app-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0});let o=r;return o})();var _t=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=ae({type:r}),r.\u0275inj=ne({imports:[G,Y,Y,G]});let o=r;return o})();export{K as a,We as b,Ne as c,_t as d}; diff --git a/chunk-ZSOMQRTJ.js b/chunk-MYVAGBPZ.js similarity index 99% rename from chunk-ZSOMQRTJ.js rename to chunk-MYVAGBPZ.js index 0dec1c7..33c4034 100644 --- a/chunk-ZSOMQRTJ.js +++ b/chunk-MYVAGBPZ.js @@ -1,4 +1,4 @@ -import{a as kr,b as Ke,c as Ir,d as Ur,e as ie,f as Lr,h as W,i as Hr}from"./chunk-7WK6GZSZ.js";import{W as oe,Z as Sr,a as $,b as it,e as _e,f as Dn,g as Rn,h as O}from"./chunk-LP5NDBXI.js";var Kr=_e(se=>{"use strict";se.byteLength=jn;se.toByteArray=Vn;se.fromByteArray=Wn;var st=[],J=[],qn=typeof Uint8Array<"u"?Uint8Array:Array,Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_t=0,Tr=Ne.length;_t0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function jn(r){var t=_r(r),e=t[0],n=t[1];return(e+n)*3/4-n}function Mn(r,t,e){return(t+e)*3/4-e}function Vn(r){var t,e=_r(r),n=e[0],o=e[1],i=new qn(Mn(r,n,o)),s=0,a=o>0?n-4:n,c;for(c=0;c>16&255,i[s++]=t>>8&255,i[s++]=t&255;return o===2&&(t=J[r.charCodeAt(c)]<<2|J[r.charCodeAt(c+1)]>>4,i[s++]=t&255),o===1&&(t=J[r.charCodeAt(c)]<<10|J[r.charCodeAt(c+1)]<<4|J[r.charCodeAt(c+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function $n(r){return st[r>>18&63]+st[r>>12&63]+st[r>>6&63]+st[r&63]}function Pn(r,t,e){for(var n,o=[],i=t;ia?a:s+i));return n===1?(t=r[e-1],o.push(st[t>>2]+st[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],o.push(st[t>>10]+st[t>>4&63]+st[t<<2&63]+"=")),o.join("")}});var Nr=_e(Ce=>{Ce.read=function(r,t,e,n,o){var i,s,a=o*8-n-1,c=(1<>1,l=-7,u=e?o-1:0,p=e?-1:1,b=r[t+u];for(u+=p,i=b&(1<<-l)-1,b>>=-l,l+=a;l>0;i=i*256+r[t+u],u+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[t+u],u+=p,l-=8);if(i===0)i=1-f;else{if(i===c)return s?NaN:(b?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-f}return(b?-1:1)*s*Math.pow(2,i-n)};Ce.write=function(r,t,e,n,o,i){var s,a,c,f=i*8-o-1,l=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,m=n?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+u>=1?t+=p/c:t+=p*Math.pow(2,1-u),t*c>=2&&(s++,c/=2),s+u>=l?(a=0,s=l):s+u>=1?(a=(t*c-1)*Math.pow(2,o),s=s+u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;r[e+b]=a&255,b+=m,a/=256,o-=8);for(s=s<0;r[e+b]=s&255,b+=m,s/=256,f-=8);r[e+b-m]|=h*128}});var Gr=_e(Vt=>{"use strict";var Fe=Kr(),Mt=Nr(),Cr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vt.Buffer=d;Vt.SlowBuffer=Jn;Vt.INSPECT_MAX_BYTES=50;var ae=2147483647;Vt.kMaxLength=ae;d.TYPED_ARRAY_SUPPORT=Gn();!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gn(){try{var r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function ct(r){if(r>ae)throw new RangeError('The value "'+r+'" is invalid for option "size"');var t=new Uint8Array(r);return Object.setPrototypeOf(t,d.prototype),t}function d(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return qe(r)}return Dr(r,t,e)}d.poolSize=8192;function Dr(r,t,e){if(typeof r=="string")return Zn(r,t);if(ArrayBuffer.isView(r))return Yn(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(at(r,ArrayBuffer)||r&&at(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(r,SharedArrayBuffer)||r&&at(r.buffer,SharedArrayBuffer)))return De(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return d.from(n,t,e);var o=Xn(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return d.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}d.from=function(r,t,e){return Dr(r,t,e)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function Rr(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function zn(r,t,e){return Rr(r),r<=0?ct(r):t!==void 0?typeof e=="string"?ct(r).fill(t,e):ct(r).fill(t):ct(r)}d.alloc=function(r,t,e){return zn(r,t,e)};function qe(r){return Rr(r),ct(r<0?0:je(r)|0)}d.allocUnsafe=function(r){return qe(r)};d.allocUnsafeSlow=function(r){return qe(r)};function Zn(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var e=qr(r,t)|0,n=ct(e),o=n.write(r,t);return o!==e&&(n=n.slice(0,o)),n}function Oe(r){for(var t=r.length<0?0:je(r.length)|0,e=ct(t),n=0;n=ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae.toString(16)+" bytes");return r|0}function Jn(r){return+r!=r&&(r=0),d.alloc(+r)}d.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==d.prototype};d.compare=function(t,e){if(at(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),at(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(t)||!d.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,o=e.length,i=0,s=Math.min(n,o);io.length?d.from(s).copy(o,i):Uint8Array.prototype.set.call(o,s,i);else if(d.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function qr(r,t){if(d.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||at(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Re(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Wr(r).length;default:if(o)return n?-1:Re(r).length;t=(""+t).toLowerCase(),o=!0}}d.byteLength=qr;function Qn(r,t,e){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return uo(this,t,e);case"utf8":case"utf-8":return Mr(this,t,e);case"ascii":return ao(this,t,e);case"latin1":case"binary":return co(this,t,e);case"base64":return io(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fo(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}d.prototype._isBuffer=!0;function Kt(r,t,e){var n=r[t];r[t]=r[e],r[e]=n}d.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ee&&(t+=" ... "),""};Cr&&(d.prototype[Cr]=d.prototype.inspect);d.prototype.compare=function(t,e,n,o,i){if(at(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),e<0||n>t.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&e>=n)return 0;if(o>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,i>>>=0,this===t)return 0;for(var s=i-o,a=n-e,c=Math.min(s,a),f=this.slice(o,i),l=t.slice(e,n),u=0;u2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Me(e)&&(e=o?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(o)return-1;e=r.length-1}else if(e<0)if(o)e=0;else return-1;if(typeof t=="string"&&(t=d.from(t,n)),d.isBuffer(t))return t.length===0?-1:Fr(r,t,e,n,o);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):Fr(r,[t],e,n,o);throw new TypeError("val must be string, number or Buffer")}function Fr(r,t,e,n,o){var i=1,s=r.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;i=2,s/=2,a/=2,e/=2}function c(b,m){return i===1?b[m]:b.readUInt16BE(m*i)}var f;if(o){var l=-1;for(f=e;fs&&(e=s-a),f=e;f>=0;f--){for(var u=!0,p=0;po&&(n=o)):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-e;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var s=!1;;)switch(o){case"hex":return to(this,t,e,n);case"utf8":case"utf-8":return eo(this,t,e,n);case"ascii":case"latin1":case"binary":return ro(this,t,e,n);case"base64":return no(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oo(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function io(r,t,e){return t===0&&e===r.length?Fe.fromByteArray(r):Fe.fromByteArray(r.slice(t,e))}function Mr(r,t,e){e=Math.min(r.length,e);for(var n=[],o=t;o239?4:i>223?3:i>191?2:1;if(o+a<=e){var c,f,l,u;switch(a){case 1:i<128&&(s=i);break;case 2:c=r[o+1],(c&192)===128&&(u=(i&31)<<6|c&63,u>127&&(s=u));break;case 3:c=r[o+1],f=r[o+2],(c&192)===128&&(f&192)===128&&(u=(i&15)<<12|(c&63)<<6|f&63,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:c=r[o+1],f=r[o+2],l=r[o+3],(c&192)===128&&(f&192)===128&&(l&192)===128&&(u=(i&15)<<18|(c&63)<<12|(f&63)<<6|l&63,u>65535&&u<1114112&&(s=u))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return so(n)}var Or=4096;function so(r){var t=r.length;if(t<=Or)return String.fromCharCode.apply(String,r);for(var e="",n=0;nn)&&(e=n);for(var o="",i=t;in&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t],i=1,s=0;++s>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t+--e],i=1;e>0&&(i*=256);)o+=this[t+--e]*i;return o};d.prototype.readUint8=d.prototype.readUInt8=function(t,e){return t=t>>>0,e||V(t,1,this.length),this[t]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||V(t,2,this.length),this[t]|this[t+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||V(t,2,this.length),this[t]<<8|this[t+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};d.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t],i=1,s=0;++s=i&&(o-=Math.pow(2,8*e)),o};d.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=e,i=1,s=this[t+--o];o>0&&(i*=256);)s+=this[t+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s};d.prototype.readInt8=function(t,e){return t=t>>>0,e||V(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};d.prototype.readInt16LE=function(t,e){t=t>>>0,e||V(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};d.prototype.readInt16BE=function(t,e){t=t>>>0,e||V(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};d.prototype.readInt32LE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};d.prototype.readInt32BE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};d.prototype.readFloatLE=function(t,e){return t=t>>>0,e||V(t,4,this.length),Mt.read(this,t,!0,23,4)};d.prototype.readFloatBE=function(t,e){return t=t>>>0,e||V(t,4,this.length),Mt.read(this,t,!1,23,4)};d.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||V(t,8,this.length),Mt.read(this,t,!0,52,8)};d.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||V(t,8,this.length),Mt.read(this,t,!1,52,8)};function G(r,t,e,n,o,i){if(!d.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||tr.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;G(this,t,e,n,i,0)}var s=1,a=0;for(this[e]=t&255;++a>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;G(this,t,e,n,i,0)}var s=n-1,a=1;for(this[e+s]=t&255;--s>=0&&(a*=256);)this[e+s]=t/a&255;return e+n};d.prototype.writeUint8=d.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,1,255,0),this[e]=t&255,e+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};d.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){var i=Math.pow(2,8*n-1);G(this,t,e,n,i-1,-i)}var s=0,a=1,c=0;for(this[e]=t&255;++s>0)-c&255;return e+n};d.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){var i=Math.pow(2,8*n-1);G(this,t,e,n,i-1,-i)}var s=n-1,a=1,c=0;for(this[e+s]=t&255;--s>=0&&(a*=256);)t<0&&c===0&&this[e+s+1]!==0&&(c=1),this[e+s]=(t/a>>0)-c&255;return e+n};d.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};d.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};d.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};d.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};d.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function Vr(r,t,e,n,o,i){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function $r(r,t,e,n,o){return t=+t,e=e>>>0,o||Vr(r,t,e,4,34028234663852886e22,-34028234663852886e22),Mt.write(r,t,e,n,23,4),e+4}d.prototype.writeFloatLE=function(t,e,n){return $r(this,t,e,!0,n)};d.prototype.writeFloatBE=function(t,e,n){return $r(this,t,e,!1,n)};function Pr(r,t,e,n,o){return t=+t,e=e>>>0,o||Vr(r,t,e,8,17976931348623157e292,-17976931348623157e292),Mt.write(r,t,e,n,52,8),e+8}d.prototype.writeDoubleLE=function(t,e,n){return Pr(this,t,e,!0,n)};d.prototype.writeDoubleBE=function(t,e,n){return Pr(this,t,e,!1,n)};d.prototype.copy=function(t,e,n,o){if(!d.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=e;s55295&&e<57344){if(!o){if(e>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(t-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((t-=1)<0)break;i.push(e)}else if(e<2048){if((t-=2)<0)break;i.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;i.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return i}function po(r){for(var t=[],e=0;e>8,o=e%256,i.push(o),i.push(n);return i}function Wr(r){return Fe.toByteArray(ho(r))}function ce(r,t,e,n){for(var o=0;o=t.length||o>=r.length);++o)t[o+e]=r[o];return o}function at(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function Me(r){return r!==r}var bo=function(){for(var r="0123456789abcdef",t=new Array(256),e=0;e<16;++e)for(var n=e*16,o=0;o<16;++o)t[n+o]=r[e]+r[o];return t}()});var Dt=Rn(Gr());var xo=`abandon +import{a as kr,b as Ke,c as Ir,e as Ur,f as ie,g as Lr,i as W,j as Hr}from"./chunk-BLRJMPLX.js";import{W as oe,Z as Sr,a as $,b as it,e as _e,f as Dn,g as Rn,h as O}from"./chunk-LP5NDBXI.js";var Kr=_e(se=>{"use strict";se.byteLength=jn;se.toByteArray=Vn;se.fromByteArray=Wn;var st=[],J=[],qn=typeof Uint8Array<"u"?Uint8Array:Array,Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_t=0,Tr=Ne.length;_t0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");e===-1&&(e=t);var n=e===t?0:4-e%4;return[e,n]}function jn(r){var t=_r(r),e=t[0],n=t[1];return(e+n)*3/4-n}function Mn(r,t,e){return(t+e)*3/4-e}function Vn(r){var t,e=_r(r),n=e[0],o=e[1],i=new qn(Mn(r,n,o)),s=0,a=o>0?n-4:n,c;for(c=0;c>16&255,i[s++]=t>>8&255,i[s++]=t&255;return o===2&&(t=J[r.charCodeAt(c)]<<2|J[r.charCodeAt(c+1)]>>4,i[s++]=t&255),o===1&&(t=J[r.charCodeAt(c)]<<10|J[r.charCodeAt(c+1)]<<4|J[r.charCodeAt(c+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function $n(r){return st[r>>18&63]+st[r>>12&63]+st[r>>6&63]+st[r&63]}function Pn(r,t,e){for(var n,o=[],i=t;ia?a:s+i));return n===1?(t=r[e-1],o.push(st[t>>2]+st[t<<4&63]+"==")):n===2&&(t=(r[e-2]<<8)+r[e-1],o.push(st[t>>10]+st[t>>4&63]+st[t<<2&63]+"=")),o.join("")}});var Nr=_e(Ce=>{Ce.read=function(r,t,e,n,o){var i,s,a=o*8-n-1,c=(1<>1,l=-7,u=e?o-1:0,p=e?-1:1,b=r[t+u];for(u+=p,i=b&(1<<-l)-1,b>>=-l,l+=a;l>0;i=i*256+r[t+u],u+=p,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[t+u],u+=p,l-=8);if(i===0)i=1-f;else{if(i===c)return s?NaN:(b?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-f}return(b?-1:1)*s*Math.pow(2,i-n)};Ce.write=function(r,t,e,n,o,i){var s,a,c,f=i*8-o-1,l=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,m=n?1:-1,h=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+u>=1?t+=p/c:t+=p*Math.pow(2,1-u),t*c>=2&&(s++,c/=2),s+u>=l?(a=0,s=l):s+u>=1?(a=(t*c-1)*Math.pow(2,o),s=s+u):(a=t*Math.pow(2,u-1)*Math.pow(2,o),s=0));o>=8;r[e+b]=a&255,b+=m,a/=256,o-=8);for(s=s<0;r[e+b]=s&255,b+=m,s/=256,f-=8);r[e+b-m]|=h*128}});var Gr=_e(Vt=>{"use strict";var Fe=Kr(),Mt=Nr(),Cr=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Vt.Buffer=d;Vt.SlowBuffer=Jn;Vt.INSPECT_MAX_BYTES=50;var ae=2147483647;Vt.kMaxLength=ae;d.TYPED_ARRAY_SUPPORT=Gn();!d.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Gn(){try{var r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),r.foo()===42}catch{return!1}}Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}});Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}});function ct(r){if(r>ae)throw new RangeError('The value "'+r+'" is invalid for option "size"');var t=new Uint8Array(r);return Object.setPrototypeOf(t,d.prototype),t}function d(r,t,e){if(typeof r=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return qe(r)}return Dr(r,t,e)}d.poolSize=8192;function Dr(r,t,e){if(typeof r=="string")return Zn(r,t);if(ArrayBuffer.isView(r))return Yn(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(at(r,ArrayBuffer)||r&&at(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(at(r,SharedArrayBuffer)||r&&at(r.buffer,SharedArrayBuffer)))return De(r,t,e);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return d.from(n,t,e);var o=Xn(r);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return d.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}d.from=function(r,t,e){return Dr(r,t,e)};Object.setPrototypeOf(d.prototype,Uint8Array.prototype);Object.setPrototypeOf(d,Uint8Array);function Rr(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function zn(r,t,e){return Rr(r),r<=0?ct(r):t!==void 0?typeof e=="string"?ct(r).fill(t,e):ct(r).fill(t):ct(r)}d.alloc=function(r,t,e){return zn(r,t,e)};function qe(r){return Rr(r),ct(r<0?0:je(r)|0)}d.allocUnsafe=function(r){return qe(r)};d.allocUnsafeSlow=function(r){return qe(r)};function Zn(r,t){if((typeof t!="string"||t==="")&&(t="utf8"),!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var e=qr(r,t)|0,n=ct(e),o=n.write(r,t);return o!==e&&(n=n.slice(0,o)),n}function Oe(r){for(var t=r.length<0?0:je(r.length)|0,e=ct(t),n=0;n=ae)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae.toString(16)+" bytes");return r|0}function Jn(r){return+r!=r&&(r=0),d.alloc(+r)}d.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==d.prototype};d.compare=function(t,e){if(at(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),at(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(t)||!d.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,o=e.length,i=0,s=Math.min(n,o);io.length?d.from(s).copy(o,i):Uint8Array.prototype.set.call(o,s,i);else if(d.isBuffer(s))s.copy(o,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return o};function qr(r,t){if(d.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||at(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var e=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&e===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Re(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Wr(r).length;default:if(o)return n?-1:Re(r).length;t=(""+t).toLowerCase(),o=!0}}d.byteLength=qr;function Qn(r,t,e){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return uo(this,t,e);case"utf8":case"utf-8":return Mr(this,t,e);case"ascii":return ao(this,t,e);case"latin1":case"binary":return co(this,t,e);case"base64":return io(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fo(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}d.prototype._isBuffer=!0;function Kt(r,t,e){var n=r[t];r[t]=r[e],r[e]=n}d.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;ee&&(t+=" ... "),""};Cr&&(d.prototype[Cr]=d.prototype.inspect);d.prototype.compare=function(t,e,n,o,i){if(at(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(e===void 0&&(e=0),n===void 0&&(n=t?t.length:0),o===void 0&&(o=0),i===void 0&&(i=this.length),e<0||n>t.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&e>=n)return 0;if(o>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,o>>>=0,i>>>=0,this===t)return 0;for(var s=i-o,a=n-e,c=Math.min(s,a),f=this.slice(o,i),l=t.slice(e,n),u=0;u2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,Me(e)&&(e=o?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(o)return-1;e=r.length-1}else if(e<0)if(o)e=0;else return-1;if(typeof t=="string"&&(t=d.from(t,n)),d.isBuffer(t))return t.length===0?-1:Fr(r,t,e,n,o);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):Fr(r,[t],e,n,o);throw new TypeError("val must be string, number or Buffer")}function Fr(r,t,e,n,o){var i=1,s=r.length,a=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||t.length<2)return-1;i=2,s/=2,a/=2,e/=2}function c(b,m){return i===1?b[m]:b.readUInt16BE(m*i)}var f;if(o){var l=-1;for(f=e;fs&&(e=s-a),f=e;f>=0;f--){for(var u=!0,p=0;po&&(n=o)):n=o;var i=t.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,o===void 0&&(o="utf8")):(o=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-e;if((n===void 0||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var s=!1;;)switch(o){case"hex":return to(this,t,e,n);case"utf8":case"utf-8":return eo(this,t,e,n);case"ascii":case"latin1":case"binary":return ro(this,t,e,n);case"base64":return no(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oo(this,t,e,n);default:if(s)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),s=!0}};d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function io(r,t,e){return t===0&&e===r.length?Fe.fromByteArray(r):Fe.fromByteArray(r.slice(t,e))}function Mr(r,t,e){e=Math.min(r.length,e);for(var n=[],o=t;o239?4:i>223?3:i>191?2:1;if(o+a<=e){var c,f,l,u;switch(a){case 1:i<128&&(s=i);break;case 2:c=r[o+1],(c&192)===128&&(u=(i&31)<<6|c&63,u>127&&(s=u));break;case 3:c=r[o+1],f=r[o+2],(c&192)===128&&(f&192)===128&&(u=(i&15)<<12|(c&63)<<6|f&63,u>2047&&(u<55296||u>57343)&&(s=u));break;case 4:c=r[o+1],f=r[o+2],l=r[o+3],(c&192)===128&&(f&192)===128&&(l&192)===128&&(u=(i&15)<<18|(c&63)<<12|(f&63)<<6|l&63,u>65535&&u<1114112&&(s=u))}}s===null?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),o+=a}return so(n)}var Or=4096;function so(r){var t=r.length;if(t<=Or)return String.fromCharCode.apply(String,r);for(var e="",n=0;nn)&&(e=n);for(var o="",i=t;in&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),ee)throw new RangeError("Trying to access beyond buffer length")}d.prototype.readUintLE=d.prototype.readUIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t],i=1,s=0;++s>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t+--e],i=1;e>0&&(i*=256);)o+=this[t+--e]*i;return o};d.prototype.readUint8=d.prototype.readUInt8=function(t,e){return t=t>>>0,e||V(t,1,this.length),this[t]};d.prototype.readUint16LE=d.prototype.readUInt16LE=function(t,e){return t=t>>>0,e||V(t,2,this.length),this[t]|this[t+1]<<8};d.prototype.readUint16BE=d.prototype.readUInt16BE=function(t,e){return t=t>>>0,e||V(t,2,this.length),this[t]<<8|this[t+1]};d.prototype.readUint32LE=d.prototype.readUInt32LE=function(t,e){return t=t>>>0,e||V(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};d.prototype.readUint32BE=d.prototype.readUInt32BE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};d.prototype.readIntLE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=this[t],i=1,s=0;++s=i&&(o-=Math.pow(2,8*e)),o};d.prototype.readIntBE=function(t,e,n){t=t>>>0,e=e>>>0,n||V(t,e,this.length);for(var o=e,i=1,s=this[t+--o];o>0&&(i*=256);)s+=this[t+--o]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*e)),s};d.prototype.readInt8=function(t,e){return t=t>>>0,e||V(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};d.prototype.readInt16LE=function(t,e){t=t>>>0,e||V(t,2,this.length);var n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};d.prototype.readInt16BE=function(t,e){t=t>>>0,e||V(t,2,this.length);var n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};d.prototype.readInt32LE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};d.prototype.readInt32BE=function(t,e){return t=t>>>0,e||V(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};d.prototype.readFloatLE=function(t,e){return t=t>>>0,e||V(t,4,this.length),Mt.read(this,t,!0,23,4)};d.prototype.readFloatBE=function(t,e){return t=t>>>0,e||V(t,4,this.length),Mt.read(this,t,!1,23,4)};d.prototype.readDoubleLE=function(t,e){return t=t>>>0,e||V(t,8,this.length),Mt.read(this,t,!0,52,8)};d.prototype.readDoubleBE=function(t,e){return t=t>>>0,e||V(t,8,this.length),Mt.read(this,t,!1,52,8)};function G(r,t,e,n,o,i){if(!d.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||tr.length)throw new RangeError("Index out of range")}d.prototype.writeUintLE=d.prototype.writeUIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;G(this,t,e,n,i,0)}var s=1,a=0;for(this[e]=t&255;++a>>0,n=n>>>0,!o){var i=Math.pow(2,8*n)-1;G(this,t,e,n,i,0)}var s=n-1,a=1;for(this[e+s]=t&255;--s>=0&&(a*=256);)this[e+s]=t/a&255;return e+n};d.prototype.writeUint8=d.prototype.writeUInt8=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,1,255,0),this[e]=t&255,e+1};d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,65535,0),this[e]=t&255,this[e+1]=t>>>8,e+2};d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=t&255,e+2};d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255,e+4};d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};d.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){var i=Math.pow(2,8*n-1);G(this,t,e,n,i-1,-i)}var s=0,a=1,c=0;for(this[e]=t&255;++s>0)-c&255;return e+n};d.prototype.writeIntBE=function(t,e,n,o){if(t=+t,e=e>>>0,!o){var i=Math.pow(2,8*n-1);G(this,t,e,n,i-1,-i)}var s=n-1,a=1,c=0;for(this[e+s]=t&255;--s>=0&&(a*=256);)t<0&&c===0&&this[e+s+1]!==0&&(c=1),this[e+s]=(t/a>>0)-c&255;return e+n};d.prototype.writeInt8=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=t&255,e+1};d.prototype.writeInt16LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,32767,-32768),this[e]=t&255,this[e+1]=t>>>8,e+2};d.prototype.writeInt16BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=t&255,e+2};d.prototype.writeInt32LE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,2147483647,-2147483648),this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4};d.prototype.writeInt32BE=function(t,e,n){return t=+t,e=e>>>0,n||G(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255,e+4};function Vr(r,t,e,n,o,i){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function $r(r,t,e,n,o){return t=+t,e=e>>>0,o||Vr(r,t,e,4,34028234663852886e22,-34028234663852886e22),Mt.write(r,t,e,n,23,4),e+4}d.prototype.writeFloatLE=function(t,e,n){return $r(this,t,e,!0,n)};d.prototype.writeFloatBE=function(t,e,n){return $r(this,t,e,!1,n)};function Pr(r,t,e,n,o){return t=+t,e=e>>>0,o||Vr(r,t,e,8,17976931348623157e292,-17976931348623157e292),Mt.write(r,t,e,n,52,8),e+8}d.prototype.writeDoubleLE=function(t,e,n){return Pr(this,t,e,!0,n)};d.prototype.writeDoubleBE=function(t,e,n){return Pr(this,t,e,!1,n)};d.prototype.copy=function(t,e,n,o){if(!d.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&o!==0&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e>>0,n=n===void 0?this.length:n>>>0,t||(t=0);var s;if(typeof t=="number")for(s=e;s55295&&e<57344){if(!o){if(e>56319){(t-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=e;continue}if(e<56320){(t-=3)>-1&&i.push(239,191,189),o=e;continue}e=(o-55296<<10|e-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,e<128){if((t-=1)<0)break;i.push(e)}else if(e<2048){if((t-=2)<0)break;i.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;i.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;i.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return i}function po(r){for(var t=[],e=0;e>8,o=e%256,i.push(o),i.push(n);return i}function Wr(r){return Fe.toByteArray(ho(r))}function ce(r,t,e,n){for(var o=0;o=t.length||o>=r.length);++o)t[o+e]=r[o];return o}function at(r,t){return r instanceof t||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===t.name}function Me(r){return r!==r}var bo=function(){for(var r="0123456789abcdef",t=new Array(256),e=0;e<16;++e)for(var n=e*16,o=0;o<16;++o)t[n+o]=r[e]+r[o];return t}()});var Dt=Rn(Gr());var xo=`abandon ability able about diff --git a/chunk-7KVKKYAR.js b/chunk-NX4YLCAX.js similarity index 98% rename from chunk-7KVKKYAR.js rename to chunk-NX4YLCAX.js index 38c22eb..b65f8a6 100644 --- a/chunk-7KVKKYAR.js +++ b/chunk-NX4YLCAX.js @@ -1 +1 @@ -import{b as me}from"./chunk-SJC7NN3X.js";import{a as xe}from"./chunk-DQUACDFU.js";import{b as pe}from"./chunk-BK7YAMGQ.js";import{c as ge,d as je,e as ve,f as ye}from"./chunk-TCWZV6BW.js";import{t as _,v as ue}from"./chunk-PWH2GQNP.js";import"./chunk-GTCJWQQT.js";import{V as he,W as fe,t as ie,y as oe,z as se}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as ce,V as re,X as ne,Z as ae,ba as le,ca as de}from"./chunk-MH4Z64LL.js";import{Aa as M,Ba as p,Bb as x,Ca as j,D,Hb as q,Ib as W,Jb as H,Pa as I,Q as k,Ua as f,W as P,Wb as Q,Z as b,a as T,b as U,ba as K,cb as n,db as l,dc as G,eb as v,ec as Y,fb as B,fc as J,gb as N,h as d,ia as S,ib as L,ja as w,k as $,ka as z,kc as X,l as A,la as R,lb as C,nb as E,oc as Z,q as F,rb as O,tc as ee,xc as te,yb as V,zb as u}from"./chunk-LP5NDBXI.js";var be=(()=>{let i=class i{constructor(e,t,r){this.http=e,this.indexerService=t,this.indexedDBService=r,this.offset=0,this.limit=20,this.totalProjects=0,this.loading=!1,this.projects=[],this.noMoreProjects=!1,this.totalProjectsFetched=!1,this.selectedNetwork="testnet",this.loadNetwork()}loadNetwork(){this.selectedNetwork=this.indexerService.getNetwork()}fetchProjects(){return d(this,null,function*(){if(this.loading||this.noMoreProjects)return[];this.loading=!0;let e=this.indexerService.getPrimaryIndexer(this.selectedNetwork),t=this.totalProjectsFetched?`${e}api/query/Angor/projects?offset=${this.offset}&limit=${this.limit}`:`${e}api/query/Angor/projects?limit=${this.limit}`;try{let r=yield this.http.get(t,{observe:"response"}).toPromise();if(!this.totalProjectsFetched&&r&&r.headers){let h=r.headers.get("pagination-total");this.totalProjects=h?+h:0,this.totalProjectsFetched=!0,this.offset=Math.max(this.totalProjects-this.limit,0)}let a=r?.body||[];if(!a.length)return this.noMoreProjects=!0,[];let o=a.filter(h=>!this.projects.some(y=>y.projectIdentifier===h.projectIdentifier));if(!o.length)return this.noMoreProjects=!0,[];let c=o.map(h=>d(this,null,function*(){yield this.indexedDBService.saveProject(h)})),g=o.map(h=>d(this,null,function*(){try{let y=yield this.indexedDBService.getProjectStats(h.projectIdentifier);return h.totalInvestmentsCount=y?.investorCount??0,h}catch(y){return console.error(`Error fetching details for project ${h.projectIdentifier}:`,y),h}}));return yield Promise.all([...c,...g]),this.projects=[...this.projects,...o],this.offset=Math.max(this.offset-this.limit,0),o}catch(r){return console.error("Error fetching projects:",r),[]}finally{this.loading=!1}})}fetchProjectStats(e){let r=`${this.indexerService.getPrimaryIndexer(this.selectedNetwork)}api/query/Angor/projects/${e}/stats`;return this.http.get(r).pipe(D(a=>(console.error(`Error fetching stats for project ${e}:`,a),F({}))))}fetchAndSaveProjectStats(e){return d(this,null,function*(){try{let t=yield this.fetchProjectStats(e).toPromise();return t&&(yield this.indexedDBService.saveProjectStats(e,t)),t}catch(t){return console.error(`Error fetching and saving stats for project ${e}:`,t),null}})}fetchProjectDetails(e){let r=`${this.indexerService.getPrimaryIndexer(this.selectedNetwork)}api/query/Angor/projects/${e}`;return this.http.get(r).pipe(D(a=>(console.error(`Error fetching details for project ${e}:`,a),F({}))))}fetchAndSaveProjectDetails(e){return d(this,null,function*(){try{let t=yield this.fetchProjectDetails(e).toPromise();return t&&(yield this.indexedDBService.saveProject(t)),t}catch(t){return console.error(`Error fetching and saving details for project ${e}:`,t),null}})}getAllProjectsFromDB(){return d(this,null,function*(){return this.indexedDBService.getAllProjects()})}getProjectStatsFromDB(e){return d(this,null,function*(){return this.indexedDBService.getProjectStats(e)})}getProjects(){return this.projects}resetProjects(){this.projects=[],this.noMoreProjects=!1,this.offset=0,this.totalProjectsFetched=!1}};i.\u0275fac=function(t){return new(t||i)(b(Z),b(ye),b(_))},i.\u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();var Se=(()=>{let i=class i{constructor(){this.projects=[],this.projectsSubject=new A([])}getProjectsObservable(){return this.projectsSubject.asObservable()}setProjects(e){this.projects=e,this.projectsSubject.next(this.projects)}getProjects(){return this.projects}hasProjects(){return this.projects.length>0}updateProject(e){let t=this.projects.findIndex(r=>r.nostrPubKey===e.nostrPubKey);t>-1?this.projects[t]=e:this.projects.push(e),this.projectsSubject.next(this.projects)}getProjectByPubKey(e){return this.projects.find(t=>t.nostrPubKey===e)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();var Ee=()=>[],_e=s=>({"-ml-3":s});function Fe(s,i){if(s&1&&(B(0),v(1,"img",41),N()),s&2){let m=i.index,e=E().$implicit;p(),O("alt","Investor avatar ",m+1,""),f("ngClass",H(4,_e,e.totalInvestmentsCount>1&&m>0))("src","images/avatars/avatar-placeholder.png",M)}}function De(s,i){if(s&1&&(B(0),n(1,"angor-card",24)(2,"div",25),v(3,"img",26),l(),n(4,"div",27)(5,"div",28),v(6,"img",29),l()(),n(7,"div",30)(8,"div",31)(9,"div",32)(10,"div",33),u(11),l(),n(12,"div",34),u(13),l()(),n(14,"div",35)(15,"button",36),v(16,"mat-icon",37),l()()(),v(17,"hr",38),n(18,"div",31)(19,"div",39),u(20),l(),n(21,"div",40),I(22,Fe,2,6,"ng-container",20),l()()()(),N()),s&2){let m=i.$implicit,e=E();p(3),f("src",e.getSafeUrl(m==null?null:m.banner,!0)||"images/pages/profile/cover.jpg",M),p(3),f("src",e.getSafeUrl(m==null?null:m.picture,!1)||"images/avatars/avatar-placeholder.png",M),p(5),x(" ",m.displayName||m.nostrPubKey," "),p(2),x(" ",m.about||"No description available"," "),p(3),f("svgIcon","heroicons_solid:user-plus"),p(4),x(" ",m.totalInvestmentsCount||0," investors "),p(2),f("ngForOf",W(7,Ee).constructor(m.totalInvestmentsCount||0))}}function ke(s,i){if(s&1&&(n(0,"div",42),u(1),l()),s&2){let m=E();p(),x(" ",m.errorMessage," ")}}var we=(()=>{let i=class i{constructor(e,t,r,a,o,c,g){this.projectService=e,this.router=t,this.stateService=r,this.metadataService=a,this.indexedDBService=o,this.changeDetectorRef=c,this.sanitizer=g,this.projects=[],this.errorMessage="",this.loading=!1,this.metadataLoadLimit=5,this._unsubscribeAll=new $,this.filteredProjects=[]}ngOnInit(){return d(this,null,function*(){this.loadInitialProjects(),this.subscribeToMetadataUpdates()})}loadInitialProjects(){return d(this,null,function*(){try{if(this.loading=!0,this.projects=this.stateService.getProjects(),this.projects.length===0)yield this.loadProjectsFromService();else{this.filteredProjects=[...this.projects];let e=this.getProjectsWithoutMetadata();e.length>0&&(yield this.loadMetadataForProjects(e))}}catch{this.handleError("Error loading initial projects")}finally{this.loading=!1,this.changeDetectorRef.detectChanges()}})}loadProjectsFromService(){return d(this,null,function*(){try{let e=yield this.projectService.fetchProjects();if(e.length===0){this.errorMessage="No projects found";return}this.projects=e,this.filteredProjects=[...this.projects],this.stateService.setProjects(this.projects);let t=e.map(r=>r.nostrPubKey);yield this.loadMetadataForProjects(t)}catch{this.handleError("Error fetching projects from service")}})}subscribeToMetadataUpdates(){this.indexedDBService.getMetadataStream().pipe(k(this._unsubscribeAll)).subscribe(e=>{if(e){let t=this.projects.find(r=>r.nostrPubKey===e.pubkey);t&&this.updateProjectMetadata(t,e.metadata)}})}getProjectsWithoutMetadata(){return this.projects.filter(e=>!e.displayName||!e.about).map(e=>e.nostrPubKey)}loadMetadataForProjects(e){return d(this,null,function*(){let t=e.map(o=>d(this,null,function*(){let c=yield this.indexedDBService.getUserMetadata(o);return c?{pubkey:o,metadata:c}:null})),r=yield Promise.all(t),a=r.filter(o=>o===null).map((o,c)=>e[c]);r.forEach(o=>{if(o&&o.metadata){let c=this.projects.find(g=>g.nostrPubKey===o.pubkey);c&&this.updateProjectMetadata(c,o.metadata)}}),a.length>0&&(yield this.metadataService.fetchMetadataForMultipleKeys(a).then(o=>{o.forEach(c=>{let g=this.projects.find(h=>h.nostrPubKey===c.pubkey);g&&this.updateProjectMetadata(g,c)}),this.changeDetectorRef.detectChanges()}).catch(o=>{console.error("Error fetching metadata for projects:",o)}))})}loadProjects(){return d(this,null,function*(){this.loading||this.errorMessage==="No more projects found"||(this.loading=!0,this.projectService.fetchProjects().then(e=>d(this,null,function*(){if(e.length===0&&this.projects.length===0)this.errorMessage="No projects found";else if(e.length===0)this.errorMessage="No more projects found";else{this.projects=[...this.projects,...e],this.filteredProjects=[...this.projects];let t=e.map(r=>r.nostrPubKey);yield this.loadMetadataForProjects(t),this.stateService.setProjects(this.projects),this.projects.forEach(r=>this.subscribeToProjectMetadata(r))}this.loading=!1,this.changeDetectorRef.detectChanges()})).catch(e=>{console.error("Error fetching projects:",e),this.errorMessage="Error fetching projects. Please try again later.",this.loading=!1,this.changeDetectorRef.detectChanges()}))})}loadMetadataForProject(e){return d(this,null,function*(){try{let t=yield this.metadataService.fetchMetadataWithCache(e.nostrPubKey);t?this.updateProjectMetadata(e,t):console.warn(`No metadata found for project ${e.nostrPubKey}`)}catch(t){console.error(`Error fetching metadata for project ${e.nostrPubKey}:`,t)}})}updateProjectMetadata(e,t){let r=U(T({},e),{displayName:t.name||"",about:t.about?t.about.replace(/<\/?[^>]+(>|$)/g,""):"",picture:t.picture||"",banner:t.banner||""}),a=this.projects.findIndex(o=>o.projectIdentifier===e.projectIdentifier);a!==-1&&(this.projects[a]=r,this.projects=[...this.projects]),this.filteredProjects=[...this.projects],this.changeDetectorRef.detectChanges()}subscribeToProjectMetadata(e){this.metadataService.getMetadataStream().pipe(k(this._unsubscribeAll)).subscribe(t=>{t&&t.pubkey===e.nostrPubKey&&this.updateProjectMetadata(e,t.metadata)})}goToProjectDetails(e){this.router.navigate(["/projects",e.projectIdentifier])}filterByQuery(e){if(!e){this.filteredProjects=[...this.projects];return}this.filteredProjects=this.projects.filter(t=>t.displayName?.toLowerCase().includes(e.toLowerCase())||t.about?.toLowerCase().includes(e.toLowerCase()))}toggleCompleted(e){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}handleError(e){console.error(e),this.errorMessage=e,this.loading=!1,this.changeDetectorRef.detectChanges()}getSafeUrl(e,t){if(e&&typeof e=="string"&&this.isImageUrl(e))return this.sanitizer.bypassSecurityTrustUrl(e);{let r=t?"/images/pages/profile/cover.jpg":"images/avatars/avatar-placeholder.png";return this.sanitizer.bypassSecurityTrustUrl(r)}}isImageUrl(e){return/\.(jpeg|jpg|gif|png|svg|bmp|webp|tiff|ico)$/i.test(e)}};i.\u0275fac=function(t){return new(t||i)(j(be),j(te),j(Se),j(ue),j(_),j(Q),j(ee))},i.\u0275cmp=K({type:i,selectors:[["explore"]],standalone:!0,features:[q],decls:29,vars:7,consts:[["query",""],[1,"absolute","inset-0","flex","min-w-0","flex-col","overflow-y-auto"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","max-w-xs","flex-auto","flex-col","sm:max-w-5xl"],[1,"flex","w-full","max-w-xs","flex-col","items-center","justify-between","sm:max-w-none","sm:flex-row"],[1,"mt-4","w-full","sm:mt-0","sm:w-72",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["placeholder","Search ...","matInput","",3,"input"],[1,"mt-8","sm:ml-auto","sm:mt-0",3,"change","color"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2","mt-10"],[4,"ngFor","ngForOf"],[1,"flex","justify-center","mt-10"],["mat-raised-button","","color","primary",3,"click","disabled"],["class","error-message",4,"ngIf"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","h-32"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8"],[1,"bg-card","-mt-12","rounded-full","p-1"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"mr-4","flex-1","min-w-0"],[1,"text-2xl","font-semibold","leading-tight","truncate"],[1,"text-secondary","mt-1","leading-tight","truncate"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border"],["mat-icon-button",""],[1,"icon-size-5",3,"svgIcon"],[1,"my-6","w-full","border-t"],[1,"text-secondary","mr-3","text-md","font-medium"],[1,"flex","items-center"],[1,"text-card","ring-bg-card","m-0.5","h-6","w-6","rounded-full","ring-2",3,"ngClass","src","alt"],[1,"error-message"]],template:function(t,r){if(t&1){let a=L();n(0,"div",1)(1,"div",2),z(),n(2,"svg",3)(3,"g",4),v(4,"circle",5)(5,"circle",6),l()(),R(),n(6,"div",7)(7,"h2",8),u(8,"Explore Projects"),l(),n(9,"div",9),u(10," What\u2019s your next investment? "),l(),n(11,"div",10),u(12," Check out our projects and find your next investment opportunity. "),l()()(),n(13,"div",11)(14,"div",12)(15,"div",13)(16,"mat-form-field",14),v(17,"mat-icon",15),n(18,"input",16,0),C("input",function(){S(a);let c=V(19);return w(r.filterByQuery(c.value))}),l()(),n(20,"mat-slide-toggle",17),C("change",function(c){return S(a),w(r.toggleCompleted(c))}),u(21," Hide completed "),l()()(),n(22,"div",18)(23,"div",19),I(24,De,23,8,"ng-container",20),l(),n(25,"div",21)(26,"button",22),C("click",function(){return S(a),w(r.loadProjects())}),u(27),l()(),I(28,ke,2,1,"div",23),l()()()}t&2&&(p(16),f("subscriptSizing","dynamic"),p(),f("svgIcon","heroicons_solid:magnifying-glass"),p(3),f("color","primary"),p(4),f("ngForOf",r.projects),p(2),f("disabled",r.loading),p(),x(" ",r.loading?"Loading...":"Load More Projects"," "),p(),f("ngIf",!r.loading&&r.errorMessage))},dependencies:[ce,ne,ae,de,le,xe,se,oe,ie,ge,re,fe,he,ve,je,G,pe,me,X,Y,J],encapsulation:2});let s=i;return s})();var vt=[{path:"",component:we}];export{vt as default}; +import{b as me}from"./chunk-SJC7NN3X.js";import{a as xe}from"./chunk-DQUACDFU.js";import{b as pe}from"./chunk-HGT4ACXZ.js";import{c as ge,d as je,e as ve,f as ye}from"./chunk-OV5Y7PXG.js";import{t as _,v as ue}from"./chunk-6S6AYVUH.js";import"./chunk-GTCJWQQT.js";import{V as he,W as fe,t as ie,y as oe,z as se}from"./chunk-4AZPYN7Q.js";import"./chunk-BLRJMPLX.js";import{$ as ce,V as re,X as ne,Z as ae,ba as le,ca as de}from"./chunk-MH4Z64LL.js";import{Aa as M,Ba as p,Bb as x,Ca as j,D,Hb as q,Ib as W,Jb as H,Pa as I,Q as k,Ua as f,W as P,Wb as Q,Z as b,a as T,b as U,ba as K,cb as n,db as l,dc as G,eb as v,ec as Y,fb as B,fc as J,gb as N,h as d,ia as S,ib as L,ja as w,k as $,ka as z,kc as X,l as A,la as R,lb as C,nb as E,oc as Z,q as F,rb as O,tc as ee,xc as te,yb as V,zb as u}from"./chunk-LP5NDBXI.js";var be=(()=>{let i=class i{constructor(e,t,r){this.http=e,this.indexerService=t,this.indexedDBService=r,this.offset=0,this.limit=20,this.totalProjects=0,this.loading=!1,this.projects=[],this.noMoreProjects=!1,this.totalProjectsFetched=!1,this.selectedNetwork="testnet",this.loadNetwork()}loadNetwork(){this.selectedNetwork=this.indexerService.getNetwork()}fetchProjects(){return d(this,null,function*(){if(this.loading||this.noMoreProjects)return[];this.loading=!0;let e=this.indexerService.getPrimaryIndexer(this.selectedNetwork),t=this.totalProjectsFetched?`${e}api/query/Angor/projects?offset=${this.offset}&limit=${this.limit}`:`${e}api/query/Angor/projects?limit=${this.limit}`;try{let r=yield this.http.get(t,{observe:"response"}).toPromise();if(!this.totalProjectsFetched&&r&&r.headers){let h=r.headers.get("pagination-total");this.totalProjects=h?+h:0,this.totalProjectsFetched=!0,this.offset=Math.max(this.totalProjects-this.limit,0)}let a=r?.body||[];if(!a.length)return this.noMoreProjects=!0,[];let o=a.filter(h=>!this.projects.some(y=>y.projectIdentifier===h.projectIdentifier));if(!o.length)return this.noMoreProjects=!0,[];let c=o.map(h=>d(this,null,function*(){yield this.indexedDBService.saveProject(h)})),g=o.map(h=>d(this,null,function*(){try{let y=yield this.indexedDBService.getProjectStats(h.projectIdentifier);return h.totalInvestmentsCount=y?.investorCount??0,h}catch(y){return console.error(`Error fetching details for project ${h.projectIdentifier}:`,y),h}}));return yield Promise.all([...c,...g]),this.projects=[...this.projects,...o],this.offset=Math.max(this.offset-this.limit,0),o}catch(r){return console.error("Error fetching projects:",r),[]}finally{this.loading=!1}})}fetchProjectStats(e){let r=`${this.indexerService.getPrimaryIndexer(this.selectedNetwork)}api/query/Angor/projects/${e}/stats`;return this.http.get(r).pipe(D(a=>(console.error(`Error fetching stats for project ${e}:`,a),F({}))))}fetchAndSaveProjectStats(e){return d(this,null,function*(){try{let t=yield this.fetchProjectStats(e).toPromise();return t&&(yield this.indexedDBService.saveProjectStats(e,t)),t}catch(t){return console.error(`Error fetching and saving stats for project ${e}:`,t),null}})}fetchProjectDetails(e){let r=`${this.indexerService.getPrimaryIndexer(this.selectedNetwork)}api/query/Angor/projects/${e}`;return this.http.get(r).pipe(D(a=>(console.error(`Error fetching details for project ${e}:`,a),F({}))))}fetchAndSaveProjectDetails(e){return d(this,null,function*(){try{let t=yield this.fetchProjectDetails(e).toPromise();return t&&(yield this.indexedDBService.saveProject(t)),t}catch(t){return console.error(`Error fetching and saving details for project ${e}:`,t),null}})}getAllProjectsFromDB(){return d(this,null,function*(){return this.indexedDBService.getAllProjects()})}getProjectStatsFromDB(e){return d(this,null,function*(){return this.indexedDBService.getProjectStats(e)})}getProjects(){return this.projects}resetProjects(){this.projects=[],this.noMoreProjects=!1,this.offset=0,this.totalProjectsFetched=!1}};i.\u0275fac=function(t){return new(t||i)(b(Z),b(ye),b(_))},i.\u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();var Se=(()=>{let i=class i{constructor(){this.projects=[],this.projectsSubject=new A([])}getProjectsObservable(){return this.projectsSubject.asObservable()}setProjects(e){this.projects=e,this.projectsSubject.next(this.projects)}getProjects(){return this.projects}hasProjects(){return this.projects.length>0}updateProject(e){let t=this.projects.findIndex(r=>r.nostrPubKey===e.nostrPubKey);t>-1?this.projects[t]=e:this.projects.push(e),this.projectsSubject.next(this.projects)}getProjectByPubKey(e){return this.projects.find(t=>t.nostrPubKey===e)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"});let s=i;return s})();var Ee=()=>[],_e=s=>({"-ml-3":s});function Fe(s,i){if(s&1&&(B(0),v(1,"img",41),N()),s&2){let m=i.index,e=E().$implicit;p(),O("alt","Investor avatar ",m+1,""),f("ngClass",H(4,_e,e.totalInvestmentsCount>1&&m>0))("src","images/avatars/avatar-placeholder.png",M)}}function De(s,i){if(s&1&&(B(0),n(1,"angor-card",24)(2,"div",25),v(3,"img",26),l(),n(4,"div",27)(5,"div",28),v(6,"img",29),l()(),n(7,"div",30)(8,"div",31)(9,"div",32)(10,"div",33),u(11),l(),n(12,"div",34),u(13),l()(),n(14,"div",35)(15,"button",36),v(16,"mat-icon",37),l()()(),v(17,"hr",38),n(18,"div",31)(19,"div",39),u(20),l(),n(21,"div",40),I(22,Fe,2,6,"ng-container",20),l()()()(),N()),s&2){let m=i.$implicit,e=E();p(3),f("src",e.getSafeUrl(m==null?null:m.banner,!0)||"images/pages/profile/cover.jpg",M),p(3),f("src",e.getSafeUrl(m==null?null:m.picture,!1)||"images/avatars/avatar-placeholder.png",M),p(5),x(" ",m.displayName||m.nostrPubKey," "),p(2),x(" ",m.about||"No description available"," "),p(3),f("svgIcon","heroicons_solid:user-plus"),p(4),x(" ",m.totalInvestmentsCount||0," investors "),p(2),f("ngForOf",W(7,Ee).constructor(m.totalInvestmentsCount||0))}}function ke(s,i){if(s&1&&(n(0,"div",42),u(1),l()),s&2){let m=E();p(),x(" ",m.errorMessage," ")}}var we=(()=>{let i=class i{constructor(e,t,r,a,o,c,g){this.projectService=e,this.router=t,this.stateService=r,this.metadataService=a,this.indexedDBService=o,this.changeDetectorRef=c,this.sanitizer=g,this.projects=[],this.errorMessage="",this.loading=!1,this.metadataLoadLimit=5,this._unsubscribeAll=new $,this.filteredProjects=[]}ngOnInit(){return d(this,null,function*(){this.loadInitialProjects(),this.subscribeToMetadataUpdates()})}loadInitialProjects(){return d(this,null,function*(){try{if(this.loading=!0,this.projects=this.stateService.getProjects(),this.projects.length===0)yield this.loadProjectsFromService();else{this.filteredProjects=[...this.projects];let e=this.getProjectsWithoutMetadata();e.length>0&&(yield this.loadMetadataForProjects(e))}}catch{this.handleError("Error loading initial projects")}finally{this.loading=!1,this.changeDetectorRef.detectChanges()}})}loadProjectsFromService(){return d(this,null,function*(){try{let e=yield this.projectService.fetchProjects();if(e.length===0){this.errorMessage="No projects found";return}this.projects=e,this.filteredProjects=[...this.projects],this.stateService.setProjects(this.projects);let t=e.map(r=>r.nostrPubKey);yield this.loadMetadataForProjects(t)}catch{this.handleError("Error fetching projects from service")}})}subscribeToMetadataUpdates(){this.indexedDBService.getMetadataStream().pipe(k(this._unsubscribeAll)).subscribe(e=>{if(e){let t=this.projects.find(r=>r.nostrPubKey===e.pubkey);t&&this.updateProjectMetadata(t,e.metadata)}})}getProjectsWithoutMetadata(){return this.projects.filter(e=>!e.displayName||!e.about).map(e=>e.nostrPubKey)}loadMetadataForProjects(e){return d(this,null,function*(){let t=e.map(o=>d(this,null,function*(){let c=yield this.indexedDBService.getUserMetadata(o);return c?{pubkey:o,metadata:c}:null})),r=yield Promise.all(t),a=r.filter(o=>o===null).map((o,c)=>e[c]);r.forEach(o=>{if(o&&o.metadata){let c=this.projects.find(g=>g.nostrPubKey===o.pubkey);c&&this.updateProjectMetadata(c,o.metadata)}}),a.length>0&&(yield this.metadataService.fetchMetadataForMultipleKeys(a).then(o=>{o.forEach(c=>{let g=this.projects.find(h=>h.nostrPubKey===c.pubkey);g&&this.updateProjectMetadata(g,c)}),this.changeDetectorRef.detectChanges()}).catch(o=>{console.error("Error fetching metadata for projects:",o)}))})}loadProjects(){return d(this,null,function*(){this.loading||this.errorMessage==="No more projects found"||(this.loading=!0,this.projectService.fetchProjects().then(e=>d(this,null,function*(){if(e.length===0&&this.projects.length===0)this.errorMessage="No projects found";else if(e.length===0)this.errorMessage="No more projects found";else{this.projects=[...this.projects,...e],this.filteredProjects=[...this.projects];let t=e.map(r=>r.nostrPubKey);yield this.loadMetadataForProjects(t),this.stateService.setProjects(this.projects),this.projects.forEach(r=>this.subscribeToProjectMetadata(r))}this.loading=!1,this.changeDetectorRef.detectChanges()})).catch(e=>{console.error("Error fetching projects:",e),this.errorMessage="Error fetching projects. Please try again later.",this.loading=!1,this.changeDetectorRef.detectChanges()}))})}loadMetadataForProject(e){return d(this,null,function*(){try{let t=yield this.metadataService.fetchMetadataWithCache(e.nostrPubKey);t?this.updateProjectMetadata(e,t):console.warn(`No metadata found for project ${e.nostrPubKey}`)}catch(t){console.error(`Error fetching metadata for project ${e.nostrPubKey}:`,t)}})}updateProjectMetadata(e,t){let r=U(T({},e),{displayName:t.name||"",about:t.about?t.about.replace(/<\/?[^>]+(>|$)/g,""):"",picture:t.picture||"",banner:t.banner||""}),a=this.projects.findIndex(o=>o.projectIdentifier===e.projectIdentifier);a!==-1&&(this.projects[a]=r,this.projects=[...this.projects]),this.filteredProjects=[...this.projects],this.changeDetectorRef.detectChanges()}subscribeToProjectMetadata(e){this.metadataService.getMetadataStream().pipe(k(this._unsubscribeAll)).subscribe(t=>{t&&t.pubkey===e.nostrPubKey&&this.updateProjectMetadata(e,t.metadata)})}goToProjectDetails(e){this.router.navigate(["/projects",e.projectIdentifier])}filterByQuery(e){if(!e){this.filteredProjects=[...this.projects];return}this.filteredProjects=this.projects.filter(t=>t.displayName?.toLowerCase().includes(e.toLowerCase())||t.about?.toLowerCase().includes(e.toLowerCase()))}toggleCompleted(e){}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}handleError(e){console.error(e),this.errorMessage=e,this.loading=!1,this.changeDetectorRef.detectChanges()}getSafeUrl(e,t){if(e&&typeof e=="string"&&this.isImageUrl(e))return this.sanitizer.bypassSecurityTrustUrl(e);{let r=t?"/images/pages/profile/cover.jpg":"images/avatars/avatar-placeholder.png";return this.sanitizer.bypassSecurityTrustUrl(r)}}isImageUrl(e){return/\.(jpeg|jpg|gif|png|svg|bmp|webp|tiff|ico)$/i.test(e)}};i.\u0275fac=function(t){return new(t||i)(j(be),j(te),j(Se),j(ue),j(_),j(Q),j(ee))},i.\u0275cmp=K({type:i,selectors:[["explore"]],standalone:!0,features:[q],decls:29,vars:7,consts:[["query",""],[1,"absolute","inset-0","flex","min-w-0","flex-col","overflow-y-auto"],[1,"dark","relative","flex-0","overflow-hidden","bg-gray-800","px-4","py-8","sm:p-16"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],[1,"relative","z-10","flex","flex-col","items-center"],[1,"text-xl","font-semibold"],[1,"mt-1","text-center","text-4xl","font-extrabold","leading-tight","tracking-tight","sm:text-7xl"],[1,"text-secondary","mt-6","max-w-2xl","text-center","tracking-tight","sm:text-2xl"],[1,"p-6","sm:p-10"],[1,"mx-auto","flex","w-full","max-w-xs","flex-auto","flex-col","sm:max-w-5xl"],[1,"flex","w-full","max-w-xs","flex-col","items-center","justify-between","sm:max-w-none","sm:flex-row"],[1,"mt-4","w-full","sm:mt-0","sm:w-72",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["placeholder","Search ...","matInput","",3,"input"],[1,"mt-8","sm:ml-auto","sm:mt-0",3,"change","color"],[1,"mx-auto","flex","w-full","flex-auto","flex-col","sm:max-w-5xl"],[1,"grid","w-full","min-w-0","grid-cols-1","gap-6","sm:grid-cols-1","md:grid-cols-1","lg:grid-cols-2","mt-10"],[4,"ngFor","ngForOf"],[1,"flex","justify-center","mt-10"],["mat-raised-button","","color","primary",3,"click","disabled"],["class","error-message",4,"ngIf"],[1,"filter-info","flex","w-full","flex-col"],[1,"flex","h-32"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';","alt","Card cover image",1,"object-cover",3,"src"],[1,"flex","px-8"],[1,"bg-card","-mt-12","rounded-full","p-1"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';","alt","Project logo",1,"h-24","w-24","rounded-full","object-cover",3,"src"],[1,"flex","flex-col","px-8","pb-6","pt-4"],[1,"flex","items-center","justify-between"],[1,"mr-4","flex-1","min-w-0"],[1,"text-2xl","font-semibold","leading-tight","truncate"],[1,"text-secondary","mt-1","leading-tight","truncate"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","border"],["mat-icon-button",""],[1,"icon-size-5",3,"svgIcon"],[1,"my-6","w-full","border-t"],[1,"text-secondary","mr-3","text-md","font-medium"],[1,"flex","items-center"],[1,"text-card","ring-bg-card","m-0.5","h-6","w-6","rounded-full","ring-2",3,"ngClass","src","alt"],[1,"error-message"]],template:function(t,r){if(t&1){let a=L();n(0,"div",1)(1,"div",2),z(),n(2,"svg",3)(3,"g",4),v(4,"circle",5)(5,"circle",6),l()(),R(),n(6,"div",7)(7,"h2",8),u(8,"Explore Projects"),l(),n(9,"div",9),u(10," What\u2019s your next investment? "),l(),n(11,"div",10),u(12," Check out our projects and find your next investment opportunity. "),l()()(),n(13,"div",11)(14,"div",12)(15,"div",13)(16,"mat-form-field",14),v(17,"mat-icon",15),n(18,"input",16,0),C("input",function(){S(a);let c=V(19);return w(r.filterByQuery(c.value))}),l()(),n(20,"mat-slide-toggle",17),C("change",function(c){return S(a),w(r.toggleCompleted(c))}),u(21," Hide completed "),l()()(),n(22,"div",18)(23,"div",19),I(24,De,23,8,"ng-container",20),l(),n(25,"div",21)(26,"button",22),C("click",function(){return S(a),w(r.loadProjects())}),u(27),l()(),I(28,ke,2,1,"div",23),l()()()}t&2&&(p(16),f("subscriptSizing","dynamic"),p(),f("svgIcon","heroicons_solid:magnifying-glass"),p(3),f("color","primary"),p(4),f("ngForOf",r.projects),p(2),f("disabled",r.loading),p(),x(" ",r.loading?"Loading...":"Load More Projects"," "),p(),f("ngIf",!r.loading&&r.errorMessage))},dependencies:[ce,ne,ae,de,le,xe,se,oe,ie,ge,re,fe,he,ve,je,G,pe,me,X,Y,J],encapsulation:2});let s=i;return s})();var vt=[{path:"",component:we}];export{vt as default}; diff --git a/chunk-LKKRLEHJ.js b/chunk-ON6SO2QP.js similarity index 99% rename from chunk-LKKRLEHJ.js rename to chunk-ON6SO2QP.js index 7f1afd3..98aeb86 100644 --- a/chunk-LKKRLEHJ.js +++ b/chunk-ON6SO2QP.js @@ -1 +1 @@ -import{f as Be,h as Ne,m as He,p as P,s as Ye}from"./chunk-PWH2GQNP.js";import{c as me,d as Y,g as u,h as ce,j as z}from"./chunk-4AZPYN7Q.js";import{A as Oe,C as re,E as Fe,H as le,N as je,O as Le,c as Te,j as Se,w as xe,z as Ae}from"./chunk-MH4Z64LL.js";import{$a as we,A as S,B as f,Ba as J,Ca as r,Ea as ee,F as W,Gb as Pe,H as G,Hb as ae,Ia as Me,O as x,Oa as te,P as K,Pa as ie,Q as A,Sa as ye,Ta as y,Ua as ne,Wa as Ie,Wb as k,X as _e,Xb as R,Y as v,Ya as Ce,_ as O,a as E,b as pe,ba as Z,bc as Ee,ca as ge,cb as I,da as fe,db as L,eb as se,i as D,ia as b,ib as ke,ja as M,k as T,ka as ve,kc as De,lb as B,n as Q,nb as c,oa as q,ob as oe,pa as F,pb as N,q as X,qa as $,sa as j,sb as H,ta as be,tb as Re,ub as C,vb as w}from"./chunk-LP5NDBXI.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let l=ke();I(0,"div",0),B("keydown",function(t){b(l);let i=c();return M(i._handleKeydown(t))})("click",function(){b(l);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(l);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(l);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let l=c();Ce(l._classList),ne("id",l.panelId)("@transformMenu",l._panelAnimationState),y("aria-label",l.ariaLabel||null)("aria-labelledby",l.ariaLabelledby||null)("aria-describedby",l.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),z("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:me("fadeInItems",[ce("showing",u({opacity:1})),z("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,zt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var V=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new F,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ye(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let m=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(m)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(j),r($),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(ee,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(oe(),ie(0,it,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var lt={provide:Qe,deps:[P],useFactory:rt},ze=Te({passive:!0});var Vt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,m,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=m,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new F,this.onMenuOpen=this.menuOpened,this.menuClosed=new F,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof V?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ze)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ze),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof V&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof V?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(f(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,m]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,m],[p,_]=[i,n],g=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}g=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=m==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:g},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:g},{originX:i,originY:h,overlayX:p,overlayY:m,offsetY:-g},{originX:n,originY:h,overlayX:_,overlayY:m,offsetY:-g}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(f(s=>s!==this._menuItemInstance),f(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(f(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof V&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ne(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(j),r(Me),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(re),r($))},o.\u0275dir=fe({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=ge({type:o}),o.\u0275inj=_e({providers:[lt],imports:[De,Le,le,Ye,Be,le]});let a=o;return a})();export{ue as a,V as b,Vt as c,Ut as d}; +import{f as Be,h as Ne,m as He,p as P,s as Ye}from"./chunk-6S6AYVUH.js";import{c as me,d as Y,g as u,h as ce,j as z}from"./chunk-4AZPYN7Q.js";import{A as Oe,C as re,E as Fe,H as le,N as je,O as Le,c as Te,j as Se,w as xe,z as Ae}from"./chunk-MH4Z64LL.js";import{$a as we,A as S,B as f,Ba as J,Ca as r,Ea as ee,F as W,Gb as Pe,H as G,Hb as ae,Ia as Me,O as x,Oa as te,P as K,Pa as ie,Q as A,Sa as ye,Ta as y,Ua as ne,Wa as Ie,Wb as k,X as _e,Xb as R,Y as v,Ya as Ce,_ as O,a as E,b as pe,ba as Z,bc as Ee,ca as ge,cb as I,da as fe,db as L,eb as se,i as D,ia as b,ib as ke,ja as M,k as T,ka as ve,kc as De,lb as B,n as Q,nb as c,oa as q,ob as oe,pa as F,pb as N,q as X,qa as $,sa as j,sb as H,ta as be,tb as Re,ub as C,vb as w}from"./chunk-LP5NDBXI.js";var qe=["mat-menu-item",""],$e=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Je=["mat-icon, [matMenuItemIcon]","*"];function et(a,o){a&1&&(ve(),I(0,"svg",2),se(1,"polygon",3),L())}var tt=["*"];function it(a,o){if(a&1){let l=ke();I(0,"div",0),B("keydown",function(t){b(l);let i=c();return M(i._handleKeydown(t))})("click",function(){b(l);let t=c();return M(t.closed.emit("click"))})("@transformMenu.start",function(t){b(l);let i=c();return M(i._onAnimationStart(t))})("@transformMenu.done",function(t){b(l);let i=c();return M(i._onAnimationDone(t))}),I(1,"div",1),N(2),L()()}if(a&2){let l=c();Ce(l._classList),ne("id",l.panelId)("@transformMenu",l._panelAnimationState),y("aria-label",l.ariaLabel||null)("aria-labelledby",l.ariaLabelledby||null)("aria-describedby",l.ariaDescribedby||null)}}var de=new v("MAT_MENU_PANEL"),ue=(()=>{let o=class o{constructor(e,t,i,n,s){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=n,this._changeDetectorRef=s,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new T,this._focused=new T,this._highlighted=!1,this._triggersSubmenu=!1,n?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i enter",Y("120ms cubic-bezier(0, 0, 0.2, 1)",u({opacity:1,transform:"scale(1)"}))),z("* => void",Y("100ms 25ms linear",u({opacity:0})))]),fadeInItems:me("fadeInItems",[ce("showing",u({opacity:1})),z("void => *",[u({opacity:0}),Y("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Yt=U.fadeInItems,zt=U.transformMenu,st=0,ot=new v("mat-menu-default-options",{providedIn:"root",factory:at});function at(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var V=(()=>{let o=class o{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass,i=E({},this._classList);t&&t.length&&t.split(" ").forEach(n=>{i[n]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(n=>{i[n]=!0}),this._elementRef.nativeElement.className=""),this._classList=i}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,n){this._elementRef=e,this._changeDetectorRef=n,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new be,this._classList={},this._panelAnimationState="void",this._animationDone=new T,this.closed=new F,this.close=this.closed,this.panelId=`mat-menu-panel-${st++}`,this._injector=O(q),this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new xe(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(e=>S(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),n=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[n]&&!i[n].disabled?t.setActiveItem(n):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe(x(this._directDescendantItems),K(t=>S(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:Se(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ye(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){if(this._baseElevation===null){let m=(typeof getComputedStyle=="function"?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(m)}let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,n=Object.keys(this._classList).find(s=>s.startsWith(this._elevationPrefix));if(!n||n===this._previousElevation){let s=E({},this._classList);this._previousElevation&&(s[this._previousElevation]=!1),s[i]=!0,this._previousElevation=i,this._classList=s}}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=pe(E({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(x(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};o.\u0275fac=function(t){return new(t||o)(r(j),r($),r(ot),r(k))},o.\u0275cmp=Z({type:o,selectors:[["mat-menu"]],contentQueries:function(t,i,n){if(t&1&&(H(n,nt,5),H(n,ue,5),H(n,ue,4)),t&2){let s;C(s=w())&&(i.lazyContent=s.first),C(s=w())&&(i._allItems=s),C(s=w())&&(i.items=s)}},viewQuery:function(t,i){if(t&1&&Re(ee,5),t&2){let n;C(n=w())&&(i.templateRef=n.first)}},hostVars:3,hostBindings:function(t,i){t&2&&y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",R],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:R(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[Pe([{provide:de,useExisting:o}]),te,ae],ngContentSelectors:tt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(oe(),ie(0,it,3,7,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape, var(--mat-app-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-app-surface-container));will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.mat-mdc-menu-panel.ng-animating:has(.mat-mdc-menu-content:empty){display:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-app-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px}[dir=rtl] .mat-mdc-menu-item{padding-right:var(--mat-menu-item-leading-spacing);padding-left:var(--mat-menu-item-trailing-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-right:var(--mat-menu-item-with-icon-leading-spacing);padding-left:var(--mat-menu-item-with-icon-trailing-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-app-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[U.transformMenu,U.fadeInItems]},changeDetection:0});let a=o;return a})(),Qe=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let a=O(P);return()=>a.scrollStrategies.reposition()}});function rt(a){return()=>a.scrollStrategies.reposition()}var lt={provide:Qe,deps:[P],useFactory:rt},ze=Te({passive:!0});var Vt=(()=>{let o=class o{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,n,s,m,d,h,p){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=m,this._dir=d,this._focusMonitor=h,this._ngZone=p,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=D.EMPTY,this._hoverSubscription=D.EMPTY,this._menuCloseSubscription=D.EMPTY,this._changeDetectorRef=O(k),this._handleTouchStart=_=>{Oe(_)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new F,this.onMenuOpen=this.menuOpened,this.menuClosed=new F,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof V?s:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ze)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ze),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),n=i.positionStrategy;this._setPosition(e,n),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof V&&(e._startAnimation(),e._directDescendantItems.changes.pipe(A(e.close)).subscribe(()=>{n.withLockedPosition(!1).reapplyLastPosition(),n.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof V?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(f(i=>i.toState==="void"),W(1),A(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new He({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let n=i.connectionPair.overlayX==="start"?"after":"before",s=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(n,s)):e.setPositionClasses(n,s)})}_setPosition(e,t){let[i,n]=e.xPosition==="before"?["end","start"]:["start","end"],[s,m]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[d,h]=[s,m],[p,_]=[i,n],g=0;if(this.triggersSubmenu()){if(_=i=e.xPosition==="before"?"start":"end",n=p=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let he=this._parentMaterialMenu.items.first;this._parentInnerPadding=he?he._getHostElement().offsetTop:0}g=s==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(d=s==="top"?"bottom":"top",h=m==="top"?"bottom":"top");t.withPositions([{originX:i,originY:d,overlayX:p,overlayY:s,offsetY:g},{originX:n,originY:d,overlayX:_,overlayY:s,offsetY:g},{originX:i,originY:h,overlayX:p,overlayY:m,offsetY:-g},{originX:n,originY:h,overlayX:_,overlayY:m,offsetY:-g}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:X(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(f(s=>s!==this._menuItemInstance),f(()=>this._menuOpen)):X();return S(e,i,n,t)}_handleMousedown(e){Ae(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(f(e=>e===this._menuItemInstance&&!e.disabled),G(0,Q)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof V&&this.menu._isAnimating?this.menu._animationDone.pipe(W(1),G(0,Q),A(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ne(e.templateRef,this._viewContainerRef)),this._portal}};o.\u0275fac=function(t){return new(t||o)(r(P),r(j),r(Me),r(Qe),r(de,8),r(ue,10),r(Fe,8),r(re),r($))},o.\u0275dir=fe({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&B("click",function(s){return i._handleClick(s)})("mousedown",function(s){return i._handleMousedown(s)})("keydown",function(s){return i._handleKeydown(s)}),t&2&&y("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let a=o;return a})(),Ut=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=ge({type:o}),o.\u0275inj=_e({providers:[lt],imports:[De,Le,le,Ye,Be,le]});let a=o;return a})();export{ue as a,V as b,Vt as c,Ut as d}; diff --git a/chunk-TCWZV6BW.js b/chunk-OV5Y7PXG.js similarity index 99% rename from chunk-TCWZV6BW.js rename to chunk-OV5Y7PXG.js index 66b563e..a11d606 100644 --- a/chunk-TCWZV6BW.js +++ b/chunk-OV5Y7PXG.js @@ -1 +1 @@ -import{a as Ue,e as $e,f as Ze,p as ge,q as _e,r as fe,s as Je}from"./chunk-PWH2GQNP.js";import{C as at,E as rt,F as st,G as nt,J as ct,O as ot,c as pe,d as ue,g as Z,h as He,j as J,k as Xe,l as Ye,v as et,w as tt,z as it}from"./chunk-4AZPYN7Q.js";import{B as Pe,C as Fe,E as Ve,H as D,I as ze,M as Ke,N as je,P as qe,Q as Ne,S as We,T as Be,U as Ge,V as me,W as Qe,j as de,s as Re,t as he,v as Le}from"./chunk-MH4Z64LL.js";import{$a as R,A as z,Ab as le,B as re,Ba as u,Ca as c,F as ye,Gb as F,Hb as U,I as ke,O as se,Oa as Q,P as ne,Pa as x,Q as I,Ta as w,Ua as y,V as Ce,W as Ie,Wa as E,Wb as $,X as K,Xb as h,Y as O,Ya as xe,Yb as V,Za as Ae,_ as Se,ba as j,ca as q,cb as l,da as ce,db as d,dc as Te,eb as k,ha as N,ia as _,ib as L,ja as f,jb as De,k as T,ka as W,kc as Ee,lb as C,na as B,nb as M,ob as H,pa as S,pb as P,qa as Me,sa as G,sb as X,t as ae,tb as A,ub as b,vb as v,w as we,wa as Oe,yb as Y,zb as oe}from"./chunk-LP5NDBXI.js";var Ot=["trigger"],xt=["panel"],At=[[["mat-select-trigger"]],"*"],Dt=["mat-select-trigger","*"];function Tt(r,a){if(r&1&&(l(0,"span",4),oe(1),d()),r&2){let o=M();u(),le(o.placeholder)}}function Et(r,a){r&1&&P(0)}function Rt(r,a){if(r&1&&(l(0,"span",11),oe(1),d()),r&2){let o=M(2);u(),le(o.triggerValue)}}function Lt(r,a){if(r&1&&(l(0,"span",5),x(1,Et,1,0)(2,Rt,2,1,"span",11),d()),r&2){let o=M();u(),R(o.customTrigger?1:2)}}function Pt(r,a){if(r&1){let o=L();l(0,"div",12,1),C("@transformPanel.done",function(t){_(o);let i=M();return f(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){_(o);let i=M();return f(i._handleKeydown(t))}),P(2,1),d()}if(r&2){let o=M();Ae("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),y("ngClass",o.panelClass)("@transformPanel","showing"),w("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var Ft={transformPanelWrap:pe("transformPanelWrap",[J("* => void",Ye("@transformPanel",[Xe()],{optional:!0}))]),transformPanel:pe("transformPanel",[He("void",Z({opacity:0,transform:"scale(1, 0.8)"})),J("void => showing",ue("120ms cubic-bezier(0, 0, 0.2, 1)",Z({opacity:1,transform:"scale(1, 1)"}))),J("* => void",ue("100ms linear",Z({opacity:0})))])};var pt=0,gt=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=Se(ge);return()=>r.scrollStrategies.reposition()}});function Vt(r){return()=>r.scrollStrategies.reposition()}var zt=new O("MAT_SELECT_CONFIG"),Kt={provide:gt,deps:[ge],useFactory:Vt},_t=new O("MatSelectTrigger"),be=class{constructor(a,o){this.source=a,this.value=o}},Ci=(()=>{let a=class a{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,s=Be(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&s===1?i.scrollTop=0:i.scrollTop=Ge(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new be(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(st.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,s,n,g,m,bt,vt,ve,wt,yt,kt,te){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=n,this._dir=g,this._parentFormField=vt,this.ngControl=ve,this._liveAnnouncer=kt,this._defaultOptions=te,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(p,ie)=>p===ie,this._uid=`mat-select-${pt++}`,this._triggerAriaLabelledBy=null,this._destroy=new T,this.stateChanges=new T,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${pt++}`,this._panelDoneAnimatingStream=new T,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new T,this.optionSelectionChanges=we(()=>{let p=this.options;return p?p.changes.pipe(se(p),ne(()=>z(...p.map(ie=>ie.onSelectionChange)))):this._initialized.pipe(ne(()=>this.optionSelectionChanges))}),this.openedChange=new S,this._openedStream=this.openedChange.pipe(re(p=>p),ae(()=>{})),this._closedStream=this.openedChange.pipe(re(p=>!p),ae(()=>{})),this.selectionChange=new S,this.valueChange=new S,this._trackedModal=null,this._skipPredicate=p=>this.panelOpen?!1:p.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),te?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=te.typeaheadDebounceInterval),this._errorStateTracker=new ze(s,ve,bt,m,this.stateChanges),this._scrollStrategyFactory=yt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(wt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ue(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ke(),I(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(I(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(I(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(se(null),I(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&he(this._trackedModal,"aria-owns",t),Re(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;he(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,s=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&s&&!de(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let g=this.selected;n.onKeydown(e);let m=this.selected;m&&g!==m&&this._liveAnnouncer.announce(m.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,s=i===40||i===38,n=t.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!de(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let g=this.options.some(m=>!m.disabled&&!m.selected);this.options.forEach(m=>{m.disabled||(g?m.select():m.deselect())})}else{let g=t.activeItemIndex;t.onKeydown(e),this._multiple&&s&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==g&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ye(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof _e?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Le(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=z(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(I(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),z(...this.options.map(t=>t._stateChanges)).pipe(I(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};a.\u0275fac=function(t){return new(t||a)(c($e),c($),c(Me),c(Ke),c(G),c(Ve,8),c(ct,8),c(ot,8),c(tt,8),c(nt,10),B("tabindex"),c(gt),c(Pe),c(zt,8))},a.\u0275cmp=j({type:a,selectors:[["mat-select"]],contentQueries:function(t,i,s){if(t&1&&(X(s,_t,5),X(s,We,5),X(s,Ne,5)),t&2){let n;b(n=v())&&(i.customTrigger=n.first),b(n=v())&&(i.options=n),b(n=v())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(A(Ot,5),A(xt,5),A(fe,5)),t&2){let s;b(s=v())&&(i.trigger=s.first),b(s=v())&&(i.panel=s.first),b(s=v())&&(i._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&C("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(w("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),E("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",h],disableRipple:[2,"disableRipple","disableRipple",h],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:V(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",h],placeholder:"placeholder",required:[2,"required","required",h],multiple:[2,"multiple","multiple",h],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",h],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",V],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[F([{provide:et,useExisting:a},{provide:qe,useExisting:a}]),Q,N,U],ngContentSelectors:Dt,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let s=L();H(At),l(0,"div",2,0),C("click",function(){return _(s),f(i.open())}),l(3,"div",3),x(4,Tt,2,1,"span",4)(5,Lt,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),W(),l(8,"svg",8),k(9,"path",9),d()()()(),x(10,Pt,3,9,"ng-template",10),C("backdropClick",function(){return _(s),f(i.close())})("attach",function(){return _(s),f(i._onAttached())})("detach",function(){return _(s),f(i.close())})}if(t&2){let s=Y(1);u(3),w("id",i._valueId),u(),R(i.empty?4:5),u(6),y("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[_e,fe,Te],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Ft.transformPanel]},changeDetection:0});let r=a;return r})(),Ii=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275dir=ce({type:a,selectors:[["mat-select-trigger"]],standalone:!0,features:[F([{provide:_t,useExisting:a}])]});let r=a;return r})(),Si=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=q({type:a}),a.\u0275inj=K({providers:[Kt],imports:[Ee,Je,me,D,Ze,it,me,D]});let r=a;return r})();var jt=["switch"],qt=["*"];function Nt(r,a){r&1&&(l(0,"span",10),W(),l(1,"svg",12),k(2,"path",13),d(),l(3,"svg",14),k(4,"path",15),d()())}var Wt=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),Bt={provide:at,useExisting:Ce(()=>ft),multi:!0},ee=class{constructor(a,o){this.source=a,this.checked=o}},Gt=0,ft=(()=>{let a=class a{_createChangeEvent(e){return new ee(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,i,s,n,g){this._elementRef=e,this._focusMonitor=t,this._changeDetectorRef=i,this.defaults=n,this._onChange=m=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new S,this.toggleChange=new S,this.tabIndex=parseInt(s)||0,this.color=n.color||"accent",this._noopAnimations=g==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++Gt}`,this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ee(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};a.\u0275fac=function(t){return new(t||a)(c(G),c(Fe),c($),B("tabindex"),c(Wt),c(Oe,8))},a.\u0275cmp=j({type:a,selectors:[["mat-slide-toggle"]],viewQuery:function(t,i){if(t&1&&A(jt,5),t&2){let s;b(s=v())&&(i._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,i){t&2&&(De("id",i.id),w("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),xe(i.color?"mat-"+i.color:""),E("mat-mdc-slide-toggle-focused",i._focused)("mat-mdc-slide-toggle-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",h],color:"color",disabled:[2,"disabled","disabled",h],disableRipple:[2,"disableRipple","disableRipple",h],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:V(e)],checked:[2,"checked","checked",h],hideIcon:[2,"hideIcon","hideIcon",h],disabledInteractive:[2,"disabledInteractive","disabledInteractive",h]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[F([Bt,{provide:rt,useExisting:a,multi:!0}]),Q,N,U],ngContentSelectors:qt,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,i){if(t&1){let s=L();H(),l(0,"div",1)(1,"button",2,0),C("click",function(){return _(s),f(i._handleClick())}),k(3,"span",3),l(4,"span",4)(5,"span",5)(6,"span",6),k(7,"span",7),d(),l(8,"span",8),k(9,"span",9),d(),x(10,Nt,5,0,"span",10),d()()(),l(11,"label",11),C("click",function(g){return _(s),f(g.stopPropagation())}),P(12),d()()}if(t&2){let s=Y(2);y("labelPosition",i.labelPosition),u(),E("mdc-switch--selected",i.checked)("mdc-switch--unselected",!i.checked)("mdc-switch--checked",i.checked)("mdc-switch--disabled",i.disabled)("mat-mdc-slide-toggle-disabled-interactive",i.disabledInteractive),y("tabIndex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("disabled",i.disabled&&!i.disabledInteractive),w("id",i.buttonId)("name",i.name)("aria-label",i.ariaLabel)("aria-labelledby",i._getAriaLabelledBy())("aria-describedby",i.ariaDescribedby)("aria-required",i.required||null)("aria-checked",i.checked)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),u(8),y("matRippleTrigger",s)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),u(),R(i.hideIcon?-1:10),u(),y("for",i.buttonId),w("id",i._labelId)}},dependencies:[je,Qe],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0});let r=a;return r})();var Bi=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=q({type:a}),a.\u0275inj=K({imports:[ft,D,D]});let r=a;return r})();var Qi=(()=>{let a=class a{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){this.getIndexers("mainnet").length===0&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),this.getIndexers("testnet").length===0&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(e,t){let i=this.getIndexers(t);i.includes(e)||(i.push(e),this.saveIndexers(i,t))}getIndexers(e){let t=e==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey;return JSON.parse(localStorage.getItem(t)||"[]")}saveIndexers(e,t){let i=t==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey;localStorage.setItem(i,JSON.stringify(e))}setPrimaryIndexer(e,t){if(this.getIndexers(t).includes(e)){let i=t==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.setItem(i,e)}}getPrimaryIndexer(e){let t=e==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;return localStorage.getItem(t)}removeIndexer(e,t){let i=this.getIndexers(t),s=i.indexOf(e);if(s!==-1&&(i.splice(s,1),this.saveIndexers(i,t),e===this.getPrimaryIndexer(t))){let n=t==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem(n)}}clearAllIndexers(e){let t=e==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,i=e==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem(t),localStorage.removeItem(i)}setNetwork(e){localStorage.setItem(this.networkStorageKey,e)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=Ie({token:a,factory:a.\u0275fac,providedIn:"root"});let r=a;return r})();export{Ci as a,Ii as b,Si as c,ft as d,Bi as e,Qi as f}; +import{a as Ue,e as $e,f as Ze,p as ge,q as _e,r as fe,s as Je}from"./chunk-6S6AYVUH.js";import{C as at,E as rt,F as st,G as nt,J as ct,O as ot,c as pe,d as ue,g as Z,h as He,j as J,k as Xe,l as Ye,v as et,w as tt,z as it}from"./chunk-4AZPYN7Q.js";import{B as Pe,C as Fe,E as Ve,H as D,I as ze,M as Ke,N as je,P as qe,Q as Ne,S as We,T as Be,U as Ge,V as me,W as Qe,j as de,s as Re,t as he,v as Le}from"./chunk-MH4Z64LL.js";import{$a as R,A as z,Ab as le,B as re,Ba as u,Ca as c,F as ye,Gb as F,Hb as U,I as ke,O as se,Oa as Q,P as ne,Pa as x,Q as I,Ta as w,Ua as y,V as Ce,W as Ie,Wa as E,Wb as $,X as K,Xb as h,Y as O,Ya as xe,Yb as V,Za as Ae,_ as Se,ba as j,ca as q,cb as l,da as ce,db as d,dc as Te,eb as k,ha as N,ia as _,ib as L,ja as f,jb as De,k as T,ka as W,kc as Ee,lb as C,na as B,nb as M,ob as H,pa as S,pb as P,qa as Me,sa as G,sb as X,t as ae,tb as A,ub as b,vb as v,w as we,wa as Oe,yb as Y,zb as oe}from"./chunk-LP5NDBXI.js";var Ot=["trigger"],xt=["panel"],At=[[["mat-select-trigger"]],"*"],Dt=["mat-select-trigger","*"];function Tt(r,a){if(r&1&&(l(0,"span",4),oe(1),d()),r&2){let o=M();u(),le(o.placeholder)}}function Et(r,a){r&1&&P(0)}function Rt(r,a){if(r&1&&(l(0,"span",11),oe(1),d()),r&2){let o=M(2);u(),le(o.triggerValue)}}function Lt(r,a){if(r&1&&(l(0,"span",5),x(1,Et,1,0)(2,Rt,2,1,"span",11),d()),r&2){let o=M();u(),R(o.customTrigger?1:2)}}function Pt(r,a){if(r&1){let o=L();l(0,"div",12,1),C("@transformPanel.done",function(t){_(o);let i=M();return f(i._panelDoneAnimatingStream.next(t.toState))})("keydown",function(t){_(o);let i=M();return f(i._handleKeydown(t))}),P(2,1),d()}if(r&2){let o=M();Ae("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",o._getPanelTheme(),""),y("ngClass",o.panelClass)("@transformPanel","showing"),w("id",o.id+"-panel")("aria-multiselectable",o.multiple)("aria-label",o.ariaLabel||null)("aria-labelledby",o._getPanelAriaLabelledby())}}var Ft={transformPanelWrap:pe("transformPanelWrap",[J("* => void",Ye("@transformPanel",[Xe()],{optional:!0}))]),transformPanel:pe("transformPanel",[He("void",Z({opacity:0,transform:"scale(1, 0.8)"})),J("void => showing",ue("120ms cubic-bezier(0, 0, 0.2, 1)",Z({opacity:1,transform:"scale(1, 1)"}))),J("* => void",ue("100ms linear",Z({opacity:0})))])};var pt=0,gt=new O("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=Se(ge);return()=>r.scrollStrategies.reposition()}});function Vt(r){return()=>r.scrollStrategies.reposition()}var zt=new O("MAT_SELECT_CONFIG"),Kt={provide:gt,deps:[ge],useFactory:Vt},_t=new O("MatSelectTrigger"),be=class{constructor(a,o){this.source=a,this.value=o}},Ci=(()=>{let a=class a{_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,s=Be(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&s===1?i.scrollTop=0:i.scrollTop=Ge(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new be(this,e)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(st.required)??!1}set required(e){this._required=e,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,i,s,n,g,m,bt,vt,ve,wt,yt,kt,te){this._viewportRuler=e,this._changeDetectorRef=t,this._elementRef=n,this._dir=g,this._parentFormField=vt,this.ngControl=ve,this._liveAnnouncer=kt,this._defaultOptions=te,this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._panelOpen=!1,this._compareWith=(p,ie)=>p===ie,this._uid=`mat-select-${pt++}`,this._triggerAriaLabelledBy=null,this._destroy=new T,this.stateChanges=new T,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId=`mat-select-value-${pt++}`,this._panelDoneAnimatingStream=new T,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._multiple=!1,this.disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._initialized=new T,this.optionSelectionChanges=we(()=>{let p=this.options;return p?p.changes.pipe(se(p),ne(()=>z(...p.map(ie=>ie.onSelectionChange)))):this._initialized.pipe(ne(()=>this.optionSelectionChanges))}),this.openedChange=new S,this._openedStream=this.openedChange.pipe(re(p=>p),ae(()=>{})),this._closedStream=this.openedChange.pipe(re(p=>!p),ae(()=>{})),this.selectionChange=new S,this.valueChange=new S,this._trackedModal=null,this._skipPredicate=p=>this.panelOpen?!1:p.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),te?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=te.typeaheadDebounceInterval),this._errorStateTracker=new ze(s,ve,bt,m,this.stateChanges),this._scrollStrategyFactory=yt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(wt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ue(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ke(),I(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe(I(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(I(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(se(null),I(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&he(this._trackedModal,"aria-owns",t),Re(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;he(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next())}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,s=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&s&&!de(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let g=this.selected;n.onKeydown(e);let m=this.selected;m&&g!==m&&this._liveAnnouncer.announce(m.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,s=i===40||i===38,n=t.isTyping();if(s&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!de(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let g=this.options.some(m=>!m.disabled&&!m.selected);this.options.forEach(m=>{m.disabled||(g?m.select():m.deselect())})}else{let g=t.activeItemIndex;t.onKeydown(e),this._multiple&&s&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==g&&t.activeItem._selectViaInteraction()}}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe(ye(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return i.value!=null&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof _e?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Le(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=z(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(I(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),z(...this.options.map(t=>t._stateChanges)).pipe(I(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId(),t=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}};a.\u0275fac=function(t){return new(t||a)(c($e),c($),c(Me),c(Ke),c(G),c(Ve,8),c(ct,8),c(ot,8),c(tt,8),c(nt,10),B("tabindex"),c(gt),c(Pe),c(zt,8))},a.\u0275cmp=j({type:a,selectors:[["mat-select"]],contentQueries:function(t,i,s){if(t&1&&(X(s,_t,5),X(s,We,5),X(s,Ne,5)),t&2){let n;b(n=v())&&(i.customTrigger=n.first),b(n=v())&&(i.options=n),b(n=v())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(A(Ot,5),A(xt,5),A(fe,5)),t&2){let s;b(s=v())&&(i.trigger=s.first),b(s=v())&&(i.panel=s.first),b(s=v())&&(i._overlayDir=s.first)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,i){t&1&&C("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(w("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),E("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",h],disableRipple:[2,"disableRipple","disableRipple",h],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:V(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",h],placeholder:"placeholder",required:[2,"required","required",h],multiple:[2,"multiple","multiple",h],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",h],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",V],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[F([{provide:et,useExisting:a},{provide:qe,useExisting:a}]),Q,N,U],ngContentSelectors:Dt,decls:11,vars:8,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","attach","detach","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let s=L();H(At),l(0,"div",2,0),C("click",function(){return _(s),f(i.open())}),l(3,"div",3),x(4,Tt,2,1,"span",4)(5,Lt,3,1,"span",5),d(),l(6,"div",6)(7,"div",7),W(),l(8,"svg",8),k(9,"path",9),d()()()(),x(10,Pt,3,9,"ng-template",10),C("backdropClick",function(){return _(s),f(i.close())})("attach",function(){return _(s),f(i._onAttached())})("detach",function(){return _(s),f(i.close())})}if(t&2){let s=Y(1);u(3),w("id",i._valueId),u(),R(i.empty?4:5),u(6),y("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||s)("cdkConnectedOverlayOpen",i.panelOpen)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)}},dependencies:[_e,fe,Te],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-app-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-app-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-app-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-app-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-app-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-app-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}div.mat-mdc-select-panel .mat-mdc-option{--mdc-list-list-item-container-color: var(--mat-select-panel-background-color)}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-app-on-surface-variant))}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform)}'],encapsulation:2,data:{animation:[Ft.transformPanel]},changeDetection:0});let r=a;return r})(),Ii=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275dir=ce({type:a,selectors:[["mat-select-trigger"]],standalone:!0,features:[F([{provide:_t,useExisting:a}])]});let r=a;return r})(),Si=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=q({type:a}),a.\u0275inj=K({providers:[Kt],imports:[Ee,Je,me,D,Ze,it,me,D]});let r=a;return r})();var jt=["switch"],qt=["*"];function Nt(r,a){r&1&&(l(0,"span",10),W(),l(1,"svg",12),k(2,"path",13),d(),l(3,"svg",14),k(4,"path",15),d()())}var Wt=new O("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),Bt={provide:at,useExisting:Ce(()=>ft),multi:!0},ee=class{constructor(a,o){this.source=a,this.checked=o}},Gt=0,ft=(()=>{let a=class a{_createChangeEvent(e){return new ee(this,e)}get buttonId(){return`${this.id||this._uniqueId}-button`}focus(){this._switchElement.nativeElement.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,t,i,s,n,g){this._elementRef=e,this._focusMonitor=t,this._changeDetectorRef=i,this.defaults=n,this._onChange=m=>{},this._onTouched=()=>{},this._validatorOnChange=()=>{},this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.disabled=!1,this.disableRipple=!1,this.tabIndex=0,this.change=new S,this.toggleChange=new S,this.tabIndex=parseInt(s)||0,this.color=n.color||"accent",this._noopAnimations=g==="NoopAnimations",this.id=this._uniqueId=`mat-mdc-slide-toggle-${++Gt}`,this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ee(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}};a.\u0275fac=function(t){return new(t||a)(c(G),c(Fe),c($),B("tabindex"),c(Wt),c(Oe,8))},a.\u0275cmp=j({type:a,selectors:[["mat-slide-toggle"]],viewQuery:function(t,i){if(t&1&&A(jt,5),t&2){let s;b(s=v())&&(i._switchElement=s.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,i){t&2&&(De("id",i.id),w("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),xe(i.color?"mat-"+i.color:""),E("mat-mdc-slide-toggle-focused",i._focused)("mat-mdc-slide-toggle-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",h],color:"color",disabled:[2,"disabled","disabled",h],disableRipple:[2,"disableRipple","disableRipple",h],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:V(e)],checked:[2,"checked","checked",h],hideIcon:[2,"hideIcon","hideIcon",h],disabledInteractive:[2,"disabledInteractive","disabledInteractive",h]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],standalone:!0,features:[F([Bt,{provide:rt,useExisting:a,multi:!0}]),Q,N,U],ngContentSelectors:qt,decls:13,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,i){if(t&1){let s=L();H(),l(0,"div",1)(1,"button",2,0),C("click",function(){return _(s),f(i._handleClick())}),k(3,"span",3),l(4,"span",4)(5,"span",5)(6,"span",6),k(7,"span",7),d(),l(8,"span",8),k(9,"span",9),d(),x(10,Nt,5,0,"span",10),d()()(),l(11,"label",11),C("click",function(g){return _(s),f(g.stopPropagation())}),P(12),d()()}if(t&2){let s=Y(2);y("labelPosition",i.labelPosition),u(),E("mdc-switch--selected",i.checked)("mdc-switch--unselected",!i.checked)("mdc-switch--checked",i.checked)("mdc-switch--disabled",i.disabled)("mat-mdc-slide-toggle-disabled-interactive",i.disabledInteractive),y("tabIndex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("disabled",i.disabled&&!i.disabledInteractive),w("id",i.buttonId)("name",i.name)("aria-label",i.ariaLabel)("aria-labelledby",i._getAriaLabelledBy())("aria-describedby",i.ariaDescribedby)("aria-required",i.required||null)("aria-checked",i.checked)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),u(8),y("matRippleTrigger",s)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),u(),R(i.hideIcon?-1:10),u(),y("for",i.buttonId),w("id",i._labelId)}},dependencies:[je,Qe],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mdc-switch-track-width)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mdc-switch-track-height);border-radius:var(--mdc-switch-track-shape, var(--mat-app-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mdc-switch-disabled-track-opacity)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-switch-track-outline-width);border-color:var(--mat-switch-track-outline-color, var(--mat-app-outline))}.cdk-high-contrast-active .mdc-switch__track::before,.cdk-high-contrast-active .mdc-switch__track::after{border-color:currentColor}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-switch-selected-track-outline-width);border-color:var(--mat-switch-selected-track-outline-color)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-switch-disabled-unselected-track-outline-width);border-color:var(--mat-switch-disabled-unselected-track-outline-color, var(--mat-app-on-surface))}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mdc-switch-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-hover-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mdc-switch-unselected-focus-track-color, var(--mat-app-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mdc-switch-unselected-pressed-track-color, var(--mat-app-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mdc-switch-disabled-unselected-track-color, var(--mat-app-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mdc-switch-selected-track-color, var(--mat-app-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-switch-visible-track-opacity);transition:var(--mat-switch-visible-track-transition)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-switch-hidden-track-opacity);transition:var(--mat-switch-hidden-track-transition)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-hover-track-color, var(--mat-app-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mdc-switch-selected-focus-track-color, var(--mat-app-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mdc-switch-selected-pressed-track-color, var(--mat-app-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mdc-switch-disabled-selected-track-color, var(--mat-app-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mdc-switch-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mdc-switch-handle-width);height:var(--mdc-switch-handle-height);border-radius:var(--mdc-switch-handle-shape, var(--mat-app-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-switch-unselected-handle-size);height:var(--mat-switch-unselected-handle-size);margin:var(--mat-switch-unselected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-unselected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-switch-selected-handle-size);height:var(--mat-switch-selected-handle-size);margin:var(--mat-switch-selected-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-switch-selected-with-icon-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-switch-with-icon-handle-size);height:var(--mat-switch-with-icon-handle-size)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-switch-pressed-handle-size);height:var(--mat-switch-pressed-handle-size)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-selected-pressed-handle-horizontal-margin)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-switch-unselected-pressed-handle-horizontal-margin)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-selected-handle-opacity)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-switch-disabled-unselected-handle-opacity)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}.cdk-high-contrast-active .mdc-switch__handle::before,.cdk-high-contrast-active .mdc-switch__handle::after{border-color:currentColor}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-selected-handle-color, var(--mat-app-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-hover-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-selected-focus-handle-color, var(--mat-app-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-selected-pressed-handle-color, var(--mat-app-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-selected-handle-color, var(--mat-app-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mdc-switch-unselected-handle-color, var(--mat-app-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-hover-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mdc-switch-unselected-focus-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mdc-switch-unselected-pressed-handle-color, var(--mat-app-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mdc-switch-disabled-unselected-handle-color, var(--mat-app-on-surface))}.mdc-switch__handle::before{background:var(--mdc-switch-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mdc-switch-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mdc-switch-state-layer-size);height:var(--mdc-switch-state-layer-size)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{opacity:.04;transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mdc-switch .mdc-switch__ripple::after{opacity:.12}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-hover-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-focus-state-layer-color, var(--mat-app-on-surface))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-unselected-pressed-state-layer-color, var(--mat-app-on-surface));opacity:var(--mdc-switch-unselected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mdc-switch-selected-hover-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mdc-switch-selected-focus-state-layer-color, var(--mat-app-primary))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mdc-switch-selected-pressed-state-layer-color, var(--mat-app-primary));opacity:var(--mdc-switch-selected-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-unselected-icon-opacity)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mdc-switch-disabled-selected-icon-opacity)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mdc-switch-unselected-icon-size);height:var(--mdc-switch-unselected-icon-size);fill:var(--mdc-switch-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-unselected-icon-color, var(--mat-app-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mdc-switch-selected-icon-size);height:var(--mdc-switch-selected-icon-size);fill:var(--mdc-switch-selected-icon-color, var(--mat-app-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mdc-switch-disabled-selected-icon-color, var(--mat-app-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-switch-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-switch-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-switch-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-switch-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-switch-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-switch-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-mdc-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mdc-switch-disabled-label-text-color)}'],encapsulation:2,changeDetection:0});let r=a;return r})();var Bi=(()=>{let a=class a{};a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=q({type:a}),a.\u0275inj=K({imports:[ft,D,D]});let r=a;return r})();var Qi=(()=>{let a=class a{constructor(){this.mainnetLocalStorageKey="mainnetIndexers",this.testnetLocalStorageKey="testnetIndexers",this.mainnetPrimaryIndexerKey="mainnetPrimaryIndexer",this.testnetPrimaryIndexerKey="testnetPrimaryIndexer",this.networkStorageKey="selectedNetwork",this.defaultMainnetIndexer="https://btc.indexer.angor.io/",this.defaultTestnetIndexer="https://tbtc.indexer.angor.io/",this.initializeDefaultIndexers()}initializeDefaultIndexers(){this.getIndexers("mainnet").length===0&&(this.addIndexer(this.defaultMainnetIndexer,"mainnet"),this.setPrimaryIndexer(this.defaultMainnetIndexer,"mainnet")),this.getIndexers("testnet").length===0&&(this.addIndexer(this.defaultTestnetIndexer,"testnet"),this.setPrimaryIndexer(this.defaultTestnetIndexer,"testnet"))}addIndexer(e,t){let i=this.getIndexers(t);i.includes(e)||(i.push(e),this.saveIndexers(i,t))}getIndexers(e){let t=e==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey;return JSON.parse(localStorage.getItem(t)||"[]")}saveIndexers(e,t){let i=t==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey;localStorage.setItem(i,JSON.stringify(e))}setPrimaryIndexer(e,t){if(this.getIndexers(t).includes(e)){let i=t==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.setItem(i,e)}}getPrimaryIndexer(e){let t=e==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;return localStorage.getItem(t)}removeIndexer(e,t){let i=this.getIndexers(t),s=i.indexOf(e);if(s!==-1&&(i.splice(s,1),this.saveIndexers(i,t),e===this.getPrimaryIndexer(t))){let n=t==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem(n)}}clearAllIndexers(e){let t=e==="mainnet"?this.mainnetLocalStorageKey:this.testnetLocalStorageKey,i=e==="mainnet"?this.mainnetPrimaryIndexerKey:this.testnetPrimaryIndexerKey;localStorage.removeItem(t),localStorage.removeItem(i)}setNetwork(e){localStorage.setItem(this.networkStorageKey,e)}getNetwork(){return localStorage.getItem(this.networkStorageKey)||"testnet"}};a.\u0275fac=function(t){return new(t||a)},a.\u0275prov=Ie({token:a,factory:a.\u0275fac,providedIn:"root"});let r=a;return r})();export{Ci as a,Ii as b,Si as c,ft as d,Bi as e,Qi as f}; diff --git a/chunk-PS53JEOB.js b/chunk-SCHRUTWR.js similarity index 99% rename from chunk-PS53JEOB.js rename to chunk-SCHRUTWR.js index b0a04d2..c9e190e 100644 --- a/chunk-PS53JEOB.js +++ b/chunk-SCHRUTWR.js @@ -1 +1 @@ -import{a as Rt,b as Pt,c as Dt,d as Me}from"./chunk-TXXDQLF3.js";import{a as bt,b as yt,c as wt}from"./chunk-L2RASMKO.js";import{h as kt}from"./chunk-3Q7ZV3LD.js";import"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{a as xe,b as Nt,c as j,d as ke,e as Ie,f as Ce}from"./chunk-TCWZV6BW.js";import{a as Tt,b as Y}from"./chunk-ZSOMQRTJ.js";import{b as _t,u as Se,v as Ft}from"./chunk-PWH2GQNP.js";import"./chunk-GTCJWQQT.js";import{A as It,B as Ct,D as U,F as D,H as N,I as K,L as ye,M as Q,O as $,P as H,Q as Mt,R as ae,S as we,T as M,U as R,V as O,W as P,q as V,r as St,s as xt,t as z,u as be,y as A,z as T}from"./chunk-4AZPYN7Q.js";import{f as Et}from"./chunk-7WK6GZSZ.js";import{$ as S,C as ft,H as Ue,N as ht,O as gt,S as _e,V as W,W as vt,X as B,Z as oe,ba as I,ca as C}from"./chunk-MH4Z64LL.js";import{$a as nt,Aa as tt,Ab as Z,Ba as a,Bb as q,Ca as u,Db as X,Eb as ee,Fb as te,Hb as y,Jb as ue,Kb as ze,Oa as it,Ob as ct,Pa as x,Pb as lt,Q as Ke,Rb as Ae,Sa as rt,Ta as De,Ua as d,W as Qe,Wa as Ve,Wb as ie,X as $e,Xb as re,Y as Re,Yb as Be,Z as He,_ as Pe,ab as ot,ba as b,bb as at,ca as Ye,cb as n,db as r,dc as ge,eb as m,ec as ve,fc as ne,h as G,hc as mt,i as Le,ia as v,ib as k,ja as _,k as We,kc as F,lb as p,na as Ze,nb as E,oa as Je,ob as st,pa as Xe,pb as dt,qa as fe,sa as he,tb as ce,tc as ut,ub as le,vb as me,wa as et,xc as pt,yb as w,zb as c}from"./chunk-LP5NDBXI.js";var Kt=["input"],Qt=["formField"],$t=["*"],Ht=0,Oe=class{constructor(o,f){this.source=o,this.value=f}};var Yt=new Re("MatRadioGroup"),Zt=new Re("mat-radio-default-options",{providedIn:"root",factory:Jt});function Jt(){return{color:"accent",disabledInteractive:!1}}var Xt=(()=>{let o=class o{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,t,l,h,g,pe,qe){this._elementRef=i,this._changeDetector=t,this._focusMonitor=l,this._radioDispatcher=h,this._defaultOptions=pe,this._ngZone=Pe(fe),this._uniqueId=`mat-radio-${++Ht}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Xe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this._injector=Pe(Je),this._onInputClick=Wt=>{this.disabled&&this.disabledInteractive&&Wt.preventDefault()},this.radioGroup=e,this._noopAnimations=g==="NoopAnimations",this._disabledInteractive=pe?.disabledInteractive??!1,qe&&(this.tabIndex=Be(qe,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._inputElement.nativeElement.addEventListener("click",this._onInputClick)})}ngOnDestroy(){this._inputElement?.nativeElement.removeEventListener("click",this._onInputClick),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Oe(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let t=this._inputElement?.nativeElement;t&&(t.setAttribute("tabindex",i+""),this._previousTabIndex=i,rt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===t&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===t&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}};o.\u0275fac=function(i){return new(i||o)(u(Yt,8),u(he),u(ie),u(ft),u(_t),u(et,8),u(Zt,8),Ze("tabindex"))},o.\u0275cmp=b({type:o,selectors:[["mat-radio-button"]],viewQuery:function(i,t){if(i&1&&(ce(Kt,5),ce(Qt,7,he)),i&2){let l;le(l=me())&&(t._inputElement=l.first),le(l=me())&&(t._rippleTrigger=l.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,t){i&1&&p("focus",function(){return t._inputElement.nativeElement.focus()}),i&2&&(De("id",t.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Ve("mat-primary",t.color==="primary")("mat-accent",t.color==="accent")("mat-warn",t.color==="warn")("mat-mdc-radio-checked",t.checked)("mat-mdc-radio-disabled",t.disabled)("mat-mdc-radio-disabled-interactive",t.disabledInteractive)("_mat-animation-noopable",t._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",re],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Be(e)],checked:[2,"checked","checked",re],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",re],required:[2,"required","required",re],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",re]},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[it,y],ngContentSelectors:$t,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,t){if(i&1){let l=k();st(),n(0,"div",2,0)(2,"div",3)(3,"div",4),p("click",function(g){return v(l),_(t._onTouchTargetClick(g))}),r(),n(4,"input",5,1),p("change",function(g){return v(l),_(t._onInputInteraction(g))}),r(),n(6,"div",6),m(7,"div",7)(8,"div",8),r(),n(9,"div",9),m(10,"div",10),r()(),n(11,"label",11),dt(12),r()()}i&2&&(d("labelPosition",t.labelPosition),a(2),Ve("mdc-radio--disabled",t.disabled),a(2),d("id",t.inputId)("checked",t.checked)("disabled",t.disabled&&!t.disabledInteractive)("required",t.required),De("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),a(5),d("matRippleTrigger",t._rippleTrigger.nativeElement)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0),a(2),d("for",t.inputId))},dependencies:[ht,vt],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-app-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let s=o;return s})(),Ee=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=Ye({type:o}),o.\u0275inj=$e({imports:[Ue,F,gt,Xt,Ue]});let s=o;return s})();function ti(s,o){s&1&&m(0,"mat-icon",22),s&2&&d("svgIcon","heroicons_solid:check-circle")}function ii(s,o){s&1&&m(0,"mat-icon",21),s&2&&d("svgIcon","heroicons_outline:check-circle")}function ri(s,o){if(s&1){let f=k();n(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),c(4),r(),n(5,"div",17),c(6),r()()(),n(7,"div",18)(8,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.setPrimaryIndexer("mainnet",i))}),x(9,ti,1,1,"mat-icon",20)(10,ii,1,1,"ng-template",null,0,Ae),r(),n(12,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeIndexer("mainnet",i))}),m(13,"mat-icon",21),r()()()}if(s&2){let f=o.$implicit,e=w(11);a(4),Z(f.url),a(2),q("Primary: ",f.primary?"Yes":"No",""),a(3),d("ngIf",f.primary)("ngIfElse",e),a(4),d("svgIcon","heroicons_outline:trash")}}function ni(s,o){s&1&&m(0,"mat-icon",22),s&2&&d("svgIcon","heroicons_solid:check-circle")}function oi(s,o){s&1&&m(0,"mat-icon",21),s&2&&d("svgIcon","heroicons_outline:check-circle")}function ai(s,o){if(s&1){let f=k();n(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),c(4),r(),n(5,"div",17),c(6),r()()(),n(7,"div",18)(8,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.setPrimaryIndexer("testnet",i))}),x(9,ni,1,1,"mat-icon",20)(10,oi,1,1,"ng-template",null,0,Ae),r(),n(12,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeIndexer("testnet",i))}),m(13,"mat-icon",21),r()()()}if(s&2){let f=o.$implicit,e=w(11);a(4),Z(f.url),a(2),q("Primary: ",f.primary?"Yes":"No",""),a(3),d("ngIf",f.primary)("ngIfElse",e),a(4),d("svgIcon","heroicons_outline:trash")}}var Vt=(()=>{let o=class o{constructor(e){this.indexerService=e,this.mainnetIndexers=[],this.testnetIndexers=[],this.newMainnetIndexerUrl="",this.newTestnetIndexerUrl=""}ngOnInit(){this.loadIndexers()}loadIndexers(){this.mainnetIndexers=this.indexerService.getIndexers("mainnet").map(e=>({url:e,primary:e===this.indexerService.getPrimaryIndexer("mainnet")})),this.testnetIndexers=this.indexerService.getIndexers("testnet").map(e=>({url:e,primary:e===this.indexerService.getPrimaryIndexer("testnet")})),console.log("Mainnet Indexers:",this.mainnetIndexers),console.log("Testnet Indexers:",this.testnetIndexers)}addIndexer(e){e==="mainnet"&&this.newMainnetIndexerUrl?(this.indexerService.addIndexer(this.newMainnetIndexerUrl,"mainnet"),this.loadIndexers(),this.newMainnetIndexerUrl=""):e==="testnet"&&this.newTestnetIndexerUrl&&(this.indexerService.addIndexer(this.newTestnetIndexerUrl,"testnet"),this.loadIndexers(),this.newTestnetIndexerUrl="")}removeIndexer(e,i){this.indexerService.removeIndexer(i.url,e),this.loadIndexers()}setPrimaryIndexer(e,i){this.indexerService.setPrimaryIndexer(i.url,e),this.loadIndexers()}trackByFn(e,i){return i.url}};o.\u0275fac=function(i){return new(i||o)(u(Ce))},o.\u0275cmp=b({type:o,selectors:[["settings-indexer"]],standalone:!0,features:[y],decls:27,vars:12,consts:[["nonPrimaryIcon",""],[1,"w-full","max-w-3xl"],[1,"w-full","mb-8"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","","placeholder","Mainnet Indexer URL",3,"ngModelChange","ngModel"],["mat-icon-button","","matSuffix","",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"mt-8"],[1,"flex","flex-col","divide-y","border-b","border-t"],["class","flex flex-col py-6 sm:flex-row sm:items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"w-full","mb-8","mt-10"],["matInput","","placeholder","Testnet Indexer URL",3,"ngModelChange","ngModel"],[1,"flex","flex-col","py-6","sm:flex-row","sm:items-center"],[1,"flex","items-center"],[1,"ml-4"],[1,"font-medium"],[1,"text-sm","text-gray-500"],[1,"mt-4","flex","items-center","sm:ml-auto","sm:mt-0"],["mat-icon-button","",3,"click"],["class","text-primary",3,"svgIcon",4,"ngIf","ngIfElse"],[1,"text-hint",3,"svgIcon"],[1,"text-primary",3,"svgIcon"]],template:function(i,t){i&1&&(n(0,"div",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4,"Add Mainnet Indexer"),r(),m(5,"mat-icon",4),n(6,"input",5),te("ngModelChange",function(h){return ee(t.newMainnetIndexerUrl,h)||(t.newMainnetIndexerUrl=h),h}),r(),n(7,"button",6),p("click",function(){return t.addIndexer("mainnet")}),m(8,"mat-icon",7),r()()(),n(9,"div",8)(10,"h3"),c(11,"Mainnet Indexers"),r(),n(12,"div",9),x(13,ri,14,5,"div",10),r()(),n(14,"div",11)(15,"mat-form-field",3)(16,"mat-label"),c(17,"Add Testnet Indexer"),r(),m(18,"mat-icon",4),n(19,"input",12),te("ngModelChange",function(h){return ee(t.newTestnetIndexerUrl,h)||(t.newTestnetIndexerUrl=h),h}),r(),n(20,"button",6),p("click",function(){return t.addIndexer("testnet")}),m(21,"mat-icon",7),r()()(),n(22,"div",8)(23,"h3"),c(24,"Testnet Indexers"),r(),n(25,"div",9),x(26,ai,14,5,"div",10),r()()()),i&2&&(a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newMainnetIndexerUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(5),d("ngForOf",t.mainnetIndexers)("ngForTrackBy",t.trackByFn),a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newTestnetIndexerUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(5),d("ngForOf",t.testnetIndexers)("ngForTrackBy",t.trackByFn))},dependencies:[M,U,N,ye,R,Ee,C,I,T,A,V,z,be,P,O,j,W,S,oe,F,ve,ne],encapsulation:2,changeDetection:0});let s=o;return s})();var zt=s=>({"ring ring-inset ring-primary":s});function si(s,o){s&1&&m(0,"mat-icon",12),s&2&&d("svgIcon","heroicons_solid:check-circle")}function di(s,o){s&1&&m(0,"mat-icon",12),s&2&&d("svgIcon","heroicons_solid:check-circle")}var At=(()=>{let o=class o{constructor(e,i){this.fb=e,this.indexerService=i,this.selectedNetwork="testnet"}ngOnInit(){this.networkForm=this.fb.group({network:[this.indexerService.getNetwork()]}),this.selectedNetwork=this.indexerService.getNetwork()}setNetwork(e){this.selectedNetwork=e,this.indexerService.setNetwork(this.selectedNetwork)}save(){this.indexerService.setNetwork(this.selectedNetwork)}cancel(){this.selectedNetwork=this.indexerService.getNetwork()}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(Ce))},o.\u0275cmp=b({type:o,selectors:[["settings-network"]],standalone:!0,features:[y],decls:24,vars:8,consts:[[1,"w-full","max-w-3xl"],[1,"text-xl"],[1,"text-secondary"],[1,"mt-8","grid","w-full","max-w-3xl","gap-6","sm:grid-cols-2"],[1,"bg-card","relative","flex","cursor-pointer","flex-col","items-start","justify-start","rounded-md","p-6","shadow",3,"click","ngClass"],["class","absolute right-0 top-0 mr-3 mt-3 text-primary icon-size-7",3,"svgIcon",4,"ngIf"],[1,"font-semibold"],[1,"text-secondary","mt-1","whitespace-normal"],[1,"mb-10","mt-11","border-t","w-full","max-w-3xl"],[1,"flex","items-center","justify-end","w-full","max-w-3xl"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","type","button","color","primary",1,"ml-4",3,"click"],[1,"absolute","right-0","top-0","mr-3","mt-3","text-primary","icon-size-7",3,"svgIcon"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"div",1),c(2,"Change your network"),r(),n(3,"div",2),c(4," Switch between Mainnet and Testnet to change your network settings. "),r()(),n(5,"div",3)(6,"div",4),p("click",function(){return t.setNetwork("mainnet")}),x(7,si,1,1,"mat-icon",5),n(8,"div",6),c(9,"Mainnet"),r(),n(10,"div",7),c(11," The live Bitcoin network. "),r()(),n(12,"div",4),p("click",function(){return t.setNetwork("testnet")}),x(13,di,1,1,"mat-icon",5),n(14,"div",6),c(15,"Testnet"),r(),n(16,"div",7),c(17," The Bitcoin testing network. "),r()()(),m(18,"div",8),n(19,"div",9)(20,"button",10),p("click",function(){return t.cancel()}),c(21,"Cancel"),r(),n(22,"button",11),p("click",function(){return t.save()}),c(23,"Save"),r()()),i&2&&(a(6),d("ngClass",ue(4,zt,t.selectedNetwork==="mainnet")),a(),d("ngIf",t.selectedNetwork==="mainnet"),a(5),d("ngClass",ue(6,zt,t.selectedNetwork==="testnet")),a(),d("ngIf",t.selectedNetwork==="testnet"))},dependencies:[M,R,Ee,ge,C,I,T,P,j,W,S,B,F,ne],encapsulation:2,changeDetection:0});let s=o;return s})();var Bt=(()=>{let o=class o{constructor(e){this._formBuilder=e}ngOnInit(){this.notificationsForm=this._formBuilder.group({communication:[!0],security:[!0],meetups:[!1],comments:[!1],mention:[!0],follow:[!0],inquiry:[!0]})}};o.\u0275fac=function(i){return new(i||o)(u(we))},o.\u0275cmp=b({type:o,selectors:[["settings-notifications"]],standalone:!0,features:[y],decls:61,vars:16,consts:[["communication",""],["securityToggle",""],["meetupsToggle",""],["comments",""],["mention",""],["follow",""],["inquiry",""],[1,"w-full","max-w-3xl"],[3,"formGroup"],[1,"w-full","text-xl"],[1,"mt-8","grid","w-full","grid-cols-1","gap-6"],[1,"flex","items-center","justify-between"],[1,"flex-auto","cursor-pointer",3,"click"],[1,"font-medium","leading-6"],[1,"text-secondary","text-md"],[1,"ml-2",3,"color","formControlName"],[1,"my-10","border-t"],[1,"mt-8","w-full","font-medium"],[1,"mt-4","grid","w-full","grid-cols-1","gap-4"],[1,"flex-auto","cursor-pointer","leading-6",3,"click"],[1,"flex","items-center","justify-end"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","button",1,"ml-4",3,"color"]],template:function(i,t){if(i&1){let l=k();n(0,"div",7)(1,"form",8)(2,"div",9),c(3,"Alerts"),r(),n(4,"div",10)(5,"div",11)(6,"div",12),p("click",function(){v(l);let g=w(12);return _(g.toggle())}),n(7,"div",13),c(8,"Communication"),r(),n(9,"div",14),c(10," Get news, announcements, and product updates. "),r()(),m(11,"mat-slide-toggle",15,0),r(),n(13,"div",11)(14,"div",12),p("click",function(){v(l);let g=w(20);return _(g.toggle())}),n(15,"div",13),c(16,"Security"),r(),n(17,"div",14),c(18," Get important notifications about your account security. "),r()(),m(19,"mat-slide-toggle",15,1),r(),n(21,"div",11)(22,"div",12),p("click",function(){v(l);let g=w(28);return _(g.toggle())}),n(23,"div",13),c(24,"Meetups"),r(),n(25,"div",14),c(26," Get an email when a Meetup is posted close to my location. "),r()(),m(27,"mat-slide-toggle",15,2),r()(),m(29,"div",16),n(30,"div",9),c(31,"Account Activity"),r(),n(32,"div",17),c(33,"Email me when:"),r(),n(34,"div",18)(35,"div",11)(36,"div",19),p("click",function(){v(l);let g=w(39);return _(g.toggle())}),c(37," someone comments on one of my items "),r(),m(38,"mat-slide-toggle",15,3),r(),n(40,"div",11)(41,"div",19),p("click",function(){v(l);let g=w(44);return _(g.toggle())}),c(42," someone mentions me "),r(),m(43,"mat-slide-toggle",15,4),r(),n(45,"div",11)(46,"div",19),p("click",function(){v(l);let g=w(49);return _(g.toggle())}),c(47," someone follows me "),r(),m(48,"mat-slide-toggle",15,5),r(),n(50,"div",11)(51,"div",19),p("click",function(){v(l);let g=w(54);return _(g.toggle())}),c(52," someone replies to my job posting "),r(),m(53,"mat-slide-toggle",15,6),r()(),m(55,"div",16),n(56,"div",20)(57,"button",21),c(58,"Cancel"),r(),n(59,"button",22),c(60," Save "),r()()()()}i&2&&(a(),d("formGroup",t.notificationsForm),a(10),d("color","primary")("formControlName","communication"),a(8),d("color","primary")("formControlName","security"),a(8),d("color","primary")("formControlName","meetups"),a(11),d("color","primary")("formControlName","comments"),a(5),d("color","primary")("formControlName","mention"),a(5),d("color","primary")("formControlName","follow"),a(5),d("color","primary")("formControlName","inquiry"),a(6),d("color","primary"))},dependencies:[M,Q,N,K,R,$,H,Ie,ke,S,B],encapsulation:2,changeDetection:0});let s=o;return s})();function ui(s,o){if(s&1&&(n(0,"mat-option",24)(1,"div",14),c(2),r()()),s&2){let f=o.$implicit;d("value",f.value),a(2),Z(f.label)}}function pi(s,o){if(s&1){let f=k();n(0,"div",9)(1,"div",10)(2,"div",11),m(3,"img",12),r(),n(4,"div",13)(5,"div",14),c(6),r(),n(7,"div",15),c(8),r()()(),n(9,"div",16)(10,"mat-form-field",17)(11,"mat-select",18),te("ngModelChange",function(i){let t=v(f).$implicit;return ee(t.accessType,i)||(t.accessType=i),_(i)}),p("selectionChange",function(){let i=v(f).$implicit,t=E();return _(t.updateRelayAccess(i))}),n(12,"mat-select-trigger",19)(13,"span",20),c(14),ct(15,"titlecase"),r()(),x(16,ui,3,2,"mat-option",21),r()(),n(17,"button",22),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeRelay(i.url))}),m(18,"mat-icon",23),r()()()}if(s&2){let f=o.$implicit,e=E();a(3),d("src",e.getSafeUrl(e.relayFavIcon(f.url)),tt),a(3),Z(f.url),a(2),q("Status: ",e.getRelayStatus(f),""),a(2),d("subscriptSizing","dynamic"),a(),X("ngModel",f.accessType),a(3),Z(lt(15,8,f.accessType)),a(2),d("ngForOf",e.accessOptions),a(2),d("svgIcon","heroicons_outline:trash")}}var Ut=(()=>{let o=class o{constructor(e,i,t,l){this.relayService=e,this.cdr=i,this.zone=t,this.sanitizer=l,this.relays=[],this.accessOptions=[],this.newRelayUrl="",this.subscriptions=new Le}ngOnInit(){this.subscriptions.add(this.relayService.getRelays().subscribe(e=>{this.zone.run(()=>{this.relays=e,this.cdr.markForCheck()})})),this.accessOptions=[{label:"Read",value:"read",description:"Reads only, does not write, unless explicitly specified on publish action."},{label:"Write",value:"write",description:"Writes your events, profile, and other metadata updates. Connects on-demand."},{label:"Read and Write",value:"read-write",description:"Reads and writes events, profiles, and other metadata. Always connected."}]}ngOnDestroy(){this.subscriptions.unsubscribe()}addRelay(){this.newRelayUrl&&(this.relayService.addRelay(this.newRelayUrl),this.newRelayUrl="")}updateRelayAccess(e){console.log("Relay Access Updated:",e.url,e.accessType),this.relayService.updateRelayAccessType(e.url,e.accessType)}removeRelay(e){this.relayService.removeRelay(e)}trackByFn(e,i){return i.url||e}getRelayStatus(e){return e.connected?"Connected":"Disconnected"}relayFavIcon(e){return e.replace("wss://","https://").replace("ws://","https://")+"/favicon.ico"}getSafeUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}};o.\u0275fac=function(i){return new(i||o)(u(Se),u(ie),u(fe),u(ut))},o.\u0275cmp=b({type:o,selectors:[["settings-relay"]],standalone:!0,features:[y],decls:11,vars:6,consts:[[1,"w-full","max-w-3xl"],[1,"w-full"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","","placeholder","Relay URL",3,"ngModelChange","ngModel"],["mat-icon-button","","matSuffix","",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"mt-8","flex","flex-col","divide-y","border-b","border-t"],["class","flex flex-col py-6 sm:flex-row sm:items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"flex","flex-col","py-6","sm:flex-row","sm:items-center"],[1,"flex","items-center"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","overflow-hidden","rounded-full"],["onerror","this.src='/images/avatars/avatar-placeholder.png'","alt","relay avatar",1,"h-full","w-full","object-cover",3,"src"],[1,"ml-4"],[1,"font-medium"],[1,"text-sm","text-gray-500"],[1,"mt-4","flex","items-center","sm:ml-auto","sm:mt-0"],[1,"angor-mat-dense","w-50",3,"subscriptSizing"],[3,"ngModelChange","selectionChange","ngModel"],[1,"text-md"],[1,"ml-1","font-medium"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"text-hint",3,"svgIcon"],[3,"value"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4,"Add Relay"),r(),m(5,"mat-icon",3),n(6,"input",4),te("ngModelChange",function(h){return ee(t.newRelayUrl,h)||(t.newRelayUrl=h),h}),r(),n(7,"button",5),p("click",function(){return t.addRelay()}),m(8,"mat-icon",6),r()()(),n(9,"div",7),x(10,pi,19,10,"div",8),r()()),i&2&&(a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newRelayUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(2),d("ngForOf",t.relays)("ngForTrackBy",t.trackByFn))},dependencies:[T,A,V,z,be,C,I,P,O,S,oe,j,xe,Nt,_e,W,mt,F,ve,M,U,N,ye],encapsulation:2,changeDetection:0});let s=o;return s})();var Ne=(()=>{let o=class o{constructor(e){this.signerService=e,this.storageKey="userPassword"}savePassword(e,i){let t=Date.now()+i*60*1e3,l={password:e,expirationTime:t};sessionStorage.setItem(this.storageKey,JSON.stringify(l))}getPassword(){let e=sessionStorage.getItem(this.storageKey);if(!e)return null;let{password:i,expirationTime:t}=JSON.parse(e);return Date.now()>t?(this.clearPassword(),null):i}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(e,i,t){return G(this,null,function*(){try{let l=yield this.signerService.getSecretKey(e);if(!l)throw new Error("Incorrect current password.");yield this.signerService.setSecretKey(l,i);let h=yield this.signerService.getNsec(e);return h&&(yield this.signerService.setNsec(h,i)),this.clearPassword(),t&&this.savePassword(i,60),!0}catch(l){return console.error("Failed to change password: ",l),!1}})}};o.\u0275fac=function(i){return new(i||o)(He(Y))},o.\u0275prov=Qe({token:o,factory:o.\u0275fac,providedIn:"root"});let s=o;return s})();var jt=(()=>{let o=class o{constructor(e,i,t){this._formBuilder=e,this._passwordService=i,this._signerService=t}ngOnInit(){this.securityForm=this._formBuilder.group({currentPassword:["",D.required],newPassword:["",[D.required,D.minLength(3)]],twoStep:[!0],askPasswordChange:[!1],savePassword:[!1]})}changePassword(){return G(this,null,function*(){if(this.securityForm.invalid)return;let e=this.securityForm.get("currentPassword")?.value,i=this.securityForm.get("newPassword")?.value,t=this.securityForm.get("savePassword")?.value;try{let l=yield this._passwordService.changePassword(e,i,t);alert(l?"Password successfully changed.":"Password change failed. Please check your credentials.")}catch(l){console.error("Error during password change:",l)}})}};o.\u0275fac=function(i){return new(i||o)(u(we),u(Ne),u(Y))},o.\u0275cmp=b({type:o,selectors:[["settings-security"]],standalone:!0,features:[y],decls:43,vars:10,consts:[["savePasswordToggle",""],[1,"w-full","max-w-3xl"],[3,"formGroup"],[1,"w-full"],[1,"text-xl"],[1,"text-secondary"],[1,"mt-8","grid","w-full","gap-6","sm:grid-cols-4"],[1,"sm:col-span-4"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["type","password","matInput","","required","",3,"formControlName"],[1,"text-hint","mt-1","text-md"],[1,"my-10","border-t"],[1,"flex","items-center","justify-between","sm:col-span-4"],[1,"flex-auto","cursor-pointer",3,"click"],[1,"font-medium","leading-6"],[1,"text-secondary","text-md"],[1,"ml-4",3,"color","formControlName"],[1,"flex","items-center","justify-end"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","button",1,"ml-4",3,"click","color"]],template:function(i,t){if(i&1){let l=k();n(0,"div",1)(1,"form",2)(2,"div",3)(3,"div",4),c(4,"Change your password"),r(),n(5,"div",5),c(6," You can only change your password twice within 24 hours! "),r()(),n(7,"div",6)(8,"div",7)(9,"mat-form-field",8)(10,"mat-label"),c(11,"Current password"),r(),m(12,"mat-icon",9)(13,"input",10),r()(),n(14,"div",7)(15,"mat-form-field",8)(16,"mat-label"),c(17,"New password"),r(),m(18,"mat-icon",9)(19,"input",10),r(),n(20,"div",11),c(21," Minimum 3 characters. "),r()()(),m(22,"div",12),n(23,"div",3)(24,"div",4),c(25,"Password preferences"),r(),n(26,"div",5),c(27," Manage how your password is saved for future logins. "),r()(),n(28,"div",6)(29,"div",13)(30,"div",14),p("click",function(){v(l);let g=w(36);return _(g.toggle())}),n(31,"div",15),c(32," Save password for future decrypting sensitive information. "),r(),n(33,"div",16),c(34," Enable this option to save your password locally for 60 minutes. "),r()(),m(35,"mat-slide-toggle",17,0),r()(),m(37,"div",12),n(38,"div",18)(39,"button",19),c(40,"Cancel"),r(),n(41,"button",20),p("click",function(){return v(l),_(t.changePassword())}),c(42," Save "),r()()()()}i&2&&(a(),d("formGroup",t.securityForm),a(8),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:key"),a(),d("formControlName","currentPassword"),a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:key"),a(),d("formControlName","newPassword"),a(16),d("color","primary")("formControlName","savePassword"),a(6),d("color","primary"))},dependencies:[M,Q,U,N,K,Mt,R,$,H,T,A,V,z,C,I,P,O,Ie,ke,S,B],encapsulation:2,changeDetection:0});let s=o;return s})();function hi(s,o){s&1&&(n(0,"mat-error"),c(1," Password is required "),r())}var Gt=(()=>{let o=class o{constructor(e,i,t){this.fb=e,this.dialogRef=i,this.data=t,this.passwordForm=this.fb.group({password:["",D.required],duration:["0",D.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(bt),u(yt))},o.\u0275cmp=b({type:o,selectors:[["password-dialog"]],standalone:!0,features:[y],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"w-full","mt-5"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(i,t){i&1&&(n(0,"h1",0),c(1,"Enter Password"),r(),n(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),c(6,"Password"),r(),n(7,"mat-icon",4),c(8,"lock"),r(),m(9,"input",5),x(10,hi,2,0,"mat-error",6),r(),n(11,"mat-form-field",7)(12,"mat-label"),c(13,"Duration"),r(),n(14,"mat-select",8)(15,"mat-option",9),c(16,"0 Minute"),r(),n(17,"mat-option",10),c(18,"1 Minute"),r(),n(19,"mat-option",11),c(20,"5 Minutes"),r(),n(21,"mat-option",12),c(22,"10 Minutes"),r(),n(23,"mat-option",13),c(24,"1 Hour"),r()()()()(),n(25,"div",14)(26,"button",15),p("click",function(){return t.onCancel()}),c(27,"Cancel"),r(),n(28,"button",16),p("click",function(){return t.onSubmit()}),c(29," Submit "),r()()),i&2&&(a(3),d("formGroup",t.passwordForm),a(),d("subscriptSizing","dynamic"),a(5),d("formControlName","password"),a(),d("ngIf",t.passwordForm.get("password").hasError("required")),a(18),d("disabled",t.passwordForm.invalid))},dependencies:[Me,S,B,C,I,M,Q,U,N,K,_e,V,A,R,$,H,F,ne,j,St,z,xe,T,P,O],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});let s=o;return s})();var qt=(()=>{let o=class o{constructor(e,i,t,l,h,g,pe){this.fb=e,this.signerService=i,this.metadataService=t,this.relayService=l,this.router=h,this.dialog=g,this.password=pe}ngOnInit(){this.profileForm=this.fb.group({name:["",D.required],username:[""],displayName:[""],website:[""],about:[""],picture:[""],banner:[""],lud06:[""],lud16:["",D.pattern("^[a-z0-9._-]+@[a-z0-9.-]+.[a-z]{2,4}$")],nip05:["",D.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]}),this.setValues()}setValues(){return G(this,null,function*(){let e=yield this.metadataService.getUserMetadata(this.signerService.getPublicKey());e&&this.profileForm.setValue({name:e.name||"",username:e.username||"",displayName:e.displayName||"",website:e.website||"",about:e.about||"",picture:e.picture||"",banner:e.banner||"",lud06:e.lud06||"",lud16:e.lud16||"",nip05:e.nip05||""})})}onSubmit(){this.profileForm.valid?this.submit():console.error("Form is invalid")}submit(){return G(this,null,function*(){let e=this.profileForm.value;if(this.content=JSON.stringify(e),this.signerService.isUsingSecretKey()){let i=this.password.getPassword();if(i)try{let t=yield this.signerService.getSecretKey(i);this.signEvent(t)}catch(t){console.error(t)}else this.dialog.open(Gt,{width:"300px",disableClose:!0}).afterClosed().subscribe(l=>G(this,null,function*(){if(l&&l.password)try{let h=yield this.signerService.getSecretKey(l.password);this.signEvent(h),l.duration!=0&&this.password.savePassword(l.password,l.duration)}catch(h){console.error(h)}else console.error("Password not provided")}))}else if(this.signerService.isUsingExtension()){let i=this.signerService.getUnsignedEvent(0,[],this.content),t=yield this.signerService.signEventWithExtension(i);this.publishSignedEvent(t)}})}signEvent(e){return G(this,null,function*(){let i=this.signerService.getUnsignedEvent(0,[],this.content),t=Tt(e),l=Et(i,t);this.publishSignedEvent(l)})}publishSignedEvent(e){this.relayService.publishEventToRelays(e),console.log("Profile Updated!"),this.router.navigate(["/profile"])}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(Y),u(Ft),u(Se),u(pt),u(wt),u(Ne))},o.\u0275cmp=b({type:o,selectors:[["settings-profile"]],standalone:!0,features:[y],decls:70,vars:23,consts:[[1,"w-full","max-w-3xl"],[3,"ngSubmit","formGroup"],[1,"w-full"],[1,"text-secondary"],[1,"mt-8","grid","w-full","gap-6","sm:grid-cols-4"],[1,"sm:col-span-4"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"formControlName"],["matInput","","cdkTextareaAutosize","",3,"formControlName","cdkAutosizeMinRows"],[1,"text-hint","mt-1","text-md"],[1,"flex","items-center","justify-end","mt-8"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","submit","color","primary",1,"ml-4"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"form",1),p("ngSubmit",function(){return t.onSubmit()}),n(2,"div",2)(3,"div",3),c(4," Following information is publicly displayed, be careful! "),r()(),n(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),c(9,"Name"),r(),m(10,"mat-icon",7)(11,"input",8),r()(),n(12,"div",5)(13,"mat-form-field",6)(14,"mat-label"),c(15,"Username"),r(),m(16,"input",8),r()(),n(17,"div",5)(18,"mat-form-field",6)(19,"mat-label"),c(20,"Display Name"),r(),m(21,"input",8),r()(),n(22,"div",5)(23,"mat-form-field",6)(24,"mat-label"),c(25,"Website"),r(),m(26,"input",8),r()(),n(27,"div",5)(28,"mat-form-field",6)(29,"mat-label"),c(30,"About"),r(),m(31,"textarea",9),r(),n(32,"div",10),c(33," Brief description for your profile. Basic HTML and Emoji are allowed. "),r()(),n(34,"div",5)(35,"mat-form-field",6)(36,"mat-label"),c(37,"Profile Picture URL"),r(),m(38,"input",8),r()(),n(39,"div",5)(40,"mat-form-field",6)(41,"mat-label"),c(42,"Banner URL"),r(),m(43,"input",8),r()(),n(44,"div",5)(45,"mat-form-field",6)(46,"mat-label"),c(47,"LUD06"),r(),m(48,"input",8),n(49,"mat-hint"),c(50," LUD06 is an LNURL (Lightning Network URL) for receiving Bitcoin payments over the Lightning Network. "),r()()(),n(51,"div",5)(52,"mat-form-field",6)(53,"mat-label"),c(54,"LUD16"),r(),m(55,"input",8),n(56,"mat-hint"),c(57," LUD16 is a Lightning address, similar to an email format, used to receive Bitcoin payments via the Lightning Network. "),r()()(),n(58,"div",5)(59,"mat-form-field",6)(60,"mat-label"),c(61,"NIP05"),r(),m(62,"input",8),n(63,"mat-hint"),c(64," NIP05 provides a user-friendly identifier for Nostr, similar to an email address, to help identify and verify your public identity. "),r()()()(),n(65,"div",11)(66,"button",12),c(67,"Cancel"),r(),n(68,"button",13),c(69,"Save"),r()()()()),i&2&&(a(),d("formGroup",t.profileForm),a(6),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:user"),a(),d("formControlName","name"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","username"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","displayName"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","website"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","about")("cdkAutosizeMinRows",5),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","picture"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","banner"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","lud06"),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","lud16"),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","nip05"))},dependencies:[M,Q,U,N,K,R,$,H,T,A,V,xt,z,C,I,P,O,It,Ct,j,W,S,B,F],encapsulation:2,changeDetection:0});let s=o;return s})();var gi=["drawer"],vi=(s,o)=>({"dark:hover:bg-hover hover:bg-gray-100":s,"bg-primary-50 dark:bg-hover":o}),_i=(s,o)=>({"text-hint":s,"text-primary dark:text-primary-500":o}),bi=s=>({"text-primary dark:text-primary-500":s});function yi(s,o){if(s&1){let f=k();n(0,"div",17),p("click",function(){let i=v(f).$implicit,t=E();return _(t.goToPanel(i.id))}),m(1,"mat-icon",18),n(2,"div",19)(3,"div",20),c(4),r(),n(5,"div",21),c(6),r()()()}if(s&2){let f=o.$implicit,e=E();d("ngClass",ze(6,vi,!e.selectedPanel||e.selectedPanel!==f.id,e.selectedPanel&&e.selectedPanel===f.id)),a(),d("ngClass",ze(9,_i,!e.selectedPanel||e.selectedPanel!==f.id,e.selectedPanel&&e.selectedPanel===f.id))("svgIcon",f.icon),a(2),d("ngClass",ue(12,bi,e.selectedPanel&&e.selectedPanel===f.id)),a(),q(" ",f.title," "),a(2),q(" ",f.description," ")}}function wi(s,o){s&1&&m(0,"settings-relay")}function Si(s,o){s&1&&m(0,"settings-network")}function xi(s,o){s&1&&m(0,"settings-indexer")}function ki(s,o){s&1&&m(0,"settings-profile")}function Ii(s,o){s&1&&m(0,"settings-security")}function Ci(s,o){s&1&&m(0,"settings-notifications")}var Lt=(()=>{let o=class o{constructor(e,i,t){this._changeDetectorRef=e,this._angorMediaWatcherService=i,this._signerService=t,this.drawerMode="side",this.drawerOpened=!0,this.panels=[{id:"relay",icon:"heroicons_outline:server",title:"Relay",description:"Manage and configure your existing relays and update their access roles and permissions."},{id:"network",icon:"heroicons_outline:globe-alt",title:"Network",description:"Switch between mainnet and testnet for different Bitcoin network configurations."},{id:"indexer",icon:"heroicons_outline:chart-bar",title:"Indexer",description:"Add, remove, and manage your indexers, including setting the primary indexer."},{id:"profile",icon:"heroicons_outline:user",title:"Profile",description:"Update your personal profile, manage your account details, and modify your private information."},{id:"notifications",icon:"heroicons_outline:bell",title:"Notifications",description:"Control when and how you\u2019ll be notified across various communication channels."},{id:"security",icon:"heroicons_outline:shield-check",title:"Password Management",description:"Manage your password and decryption settings, including saving passwords for future decrypting sensitive information."}],this.selectedPanel="relay",this._unsubscribeAll=new We}ngOnInit(){let e={id:"security",icon:"heroicons_outline:shield-check",title:"Password Management",description:"Manage your password and decryption settings, including saving passwords for future decrypting sensitive information."};this._signerService.isUsingSecretKey()?this.panels.some(t=>t.id==="security")||(this.panels.push(e),console.log("Extension not used, security panel added")):(this.panels=this.panels.filter(i=>i.id!=="security"),console.log("Extension used, security panel removed")),this._changeDetectorRef.markForCheck(),this._angorMediaWatcherService.onMediaChange$.pipe(Ke(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.drawerMode=i.includes("lg")?"side":"over",this.drawerOpened=this.drawerMode==="side",this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}goToPanel(e){this.selectedPanel=e,this.drawerMode==="over"&&this.drawer.close()}getPanelInfo(e){return this.panels.find(i=>i.id===e)}trackByFn(e,i){return i.id||e}};o.\u0275fac=function(i){return new(i||o)(u(ie),u(kt),u(Y))},o.\u0275cmp=b({type:o,selectors:[["settings"]],viewQuery:function(i,t){if(i&1&&ce(gi,5),i&2){let l;le(l=me())&&(t.drawer=l.first)}},standalone:!0,features:[y],decls:27,vars:7,consts:[["drawer",""],[1,"flex","w-full","min-w-0","flex-col","sm:absolute","sm:inset-0","sm:overflow-hidden"],[1,"flex-auto","sm:h-full"],[1,"dark:bg-gray-900","sm:w-96",3,"autoFocus","mode","opened"],[1,"m-8","mr-6","flex","items-center","justify-between","sm:my-10"],[1,"text-4xl","font-extrabold","leading-none","tracking-tight"],[1,"lg:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"flex","flex-col","divide-y","border-b","border-t"],[1,"flex","cursor-pointer","px-8","py-5",3,"ngClass"],[1,"flex","flex-col"],[1,"flex-auto","px-6","pb-12","pt-9","md:p-8","md:pb-12","lg:p-12"],[1,"flex","items-center"],["mat-icon-button","",1,"-ml-2","lg:hidden",3,"click"],[1,"ml-2","text-3xl","font-bold","leading-none","tracking-tight","lg:ml-0"],[1,"mt-8"],[1,"flex","cursor-pointer","px-8","py-5",3,"click","ngClass"],[3,"ngClass","svgIcon"],[1,"ml-3"],[1,"font-medium","leading-6",3,"ngClass"],[1,"text-secondary","mt-0.5"]],template:function(i,t){if(i&1){let l=k();n(0,"div",1)(1,"mat-drawer-container",2)(2,"mat-drawer",3,0)(4,"div",4)(5,"div",5),c(6," Settings "),r(),n(7,"div",6)(8,"button",7),p("click",function(){v(l);let g=w(3);return _(g.close())}),m(9,"mat-icon",8),r()()(),n(10,"div",9),ot(11,yi,7,14,"div",10,t.trackByFn,!0),r()(),n(13,"mat-drawer-content",11)(14,"div",12)(15,"div",13)(16,"button",14),p("click",function(){v(l);let g=w(3);return _(g.toggle())}),m(17,"mat-icon",8),r(),n(18,"div",15),c(19),r()(),n(20,"div",16),x(21,wi,1,0,"settings-relay")(22,Si,1,0,"settings-network")(23,xi,1,0,"settings-indexer")(24,ki,1,0,"settings-profile")(25,Ii,1,0,"settings-security")(26,Ci,1,0,"settings-notifications"),r()()()()()}if(i&2){let l;a(2),d("autoFocus",!1)("mode",t.drawerMode)("opened",t.drawerOpened),a(7),d("svgIcon","heroicons_outline:x-mark"),a(2),at(t.panels),a(6),d("svgIcon","heroicons_outline:bars-3"),a(2),q(" ",t.getPanelInfo(t.selectedPanel).title," "),a(2),nt((l=t.selectedPanel)==="relay"?21:l==="network"?22:l==="indexer"?23:l==="profile"?24:l==="security"?25:l==="notifications"?26:-1)}},dependencies:[Me,Pt,Dt,Rt,S,oe,C,I,ge,qt,jt,Bt,Ut,At,Vt],encapsulation:2,changeDetection:0});let s=o;return s})();var Yn=[{path:"",component:Lt}];export{Yn as default}; +import{a as Rt,b as Pt,c as Dt,d as Me}from"./chunk-K7XPURVS.js";import{a as bt,b as yt,c as wt}from"./chunk-I33GKPRG.js";import{h as kt}from"./chunk-3Q7ZV3LD.js";import"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{a as xe,b as Nt,c as j,d as ke,e as Ie,f as Ce}from"./chunk-OV5Y7PXG.js";import{a as Tt,b as Y}from"./chunk-MYVAGBPZ.js";import{b as _t,u as Se,v as Ft}from"./chunk-6S6AYVUH.js";import"./chunk-GTCJWQQT.js";import{A as It,B as Ct,D as U,F as D,H as N,I as K,L as ye,M as Q,O as $,P as H,Q as Mt,R as ae,S as we,T as M,U as R,V as O,W as P,q as V,r as St,s as xt,t as z,u as be,y as A,z as T}from"./chunk-4AZPYN7Q.js";import{g as Et}from"./chunk-BLRJMPLX.js";import{$ as S,C as ft,H as Ue,N as ht,O as gt,S as _e,V as W,W as vt,X as B,Z as oe,ba as I,ca as C}from"./chunk-MH4Z64LL.js";import{$a as nt,Aa as tt,Ab as Z,Ba as a,Bb as q,Ca as u,Db as X,Eb as ee,Fb as te,Hb as y,Jb as ue,Kb as ze,Oa as it,Ob as ct,Pa as x,Pb as lt,Q as Ke,Rb as Ae,Sa as rt,Ta as De,Ua as d,W as Qe,Wa as Ve,Wb as ie,X as $e,Xb as re,Y as Re,Yb as Be,Z as He,_ as Pe,ab as ot,ba as b,bb as at,ca as Ye,cb as n,db as r,dc as ge,eb as m,ec as ve,fc as ne,h as G,hc as mt,i as Le,ia as v,ib as k,ja as _,k as We,kc as F,lb as p,na as Ze,nb as E,oa as Je,ob as st,pa as Xe,pb as dt,qa as fe,sa as he,tb as ce,tc as ut,ub as le,vb as me,wa as et,xc as pt,yb as w,zb as c}from"./chunk-LP5NDBXI.js";var Kt=["input"],Qt=["formField"],$t=["*"],Ht=0,Oe=class{constructor(o,f){this.source=o,this.value=f}};var Yt=new Re("MatRadioGroup"),Zt=new Re("mat-radio-default-options",{providedIn:"root",factory:Jt});function Jt(){return{color:"accent",disabledInteractive:!1}}var Xt=(()=>{let o=class o{get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,t,l,h,g,pe,qe){this._elementRef=i,this._changeDetector=t,this._focusMonitor=l,this._radioDispatcher=h,this._defaultOptions=pe,this._ngZone=Pe(fe),this._uniqueId=`mat-radio-${++Ht}`,this.id=this._uniqueId,this.disableRipple=!1,this.tabIndex=0,this.change=new Xe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this._injector=Pe(Je),this._onInputClick=Wt=>{this.disabled&&this.disabledInteractive&&Wt.preventDefault()},this.radioGroup=e,this._noopAnimations=g==="NoopAnimations",this._disabledInteractive=pe?.disabledInteractive??!1,qe&&(this.tabIndex=Be(qe,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._inputElement.nativeElement.addEventListener("click",this._onInputClick)})}ngOnDestroy(){this._inputElement?.nativeElement.removeEventListener("click",this._onInputClick),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Oe(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let t=this._inputElement?.nativeElement;t&&(t.setAttribute("tabindex",i+""),this._previousTabIndex=i,rt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===t&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===t&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}};o.\u0275fac=function(i){return new(i||o)(u(Yt,8),u(he),u(ie),u(ft),u(_t),u(et,8),u(Zt,8),Ze("tabindex"))},o.\u0275cmp=b({type:o,selectors:[["mat-radio-button"]],viewQuery:function(i,t){if(i&1&&(ce(Kt,5),ce(Qt,7,he)),i&2){let l;le(l=me())&&(t._inputElement=l.first),le(l=me())&&(t._rippleTrigger=l.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,t){i&1&&p("focus",function(){return t._inputElement.nativeElement.focus()}),i&2&&(De("id",t.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),Ve("mat-primary",t.color==="primary")("mat-accent",t.color==="accent")("mat-warn",t.color==="warn")("mat-mdc-radio-checked",t.checked)("mat-mdc-radio-disabled",t.disabled)("mat-mdc-radio-disabled-interactive",t.disabledInteractive)("_mat-animation-noopable",t._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",re],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Be(e)],checked:[2,"checked","checked",re],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",re],required:[2,"required","required",re],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",re]},outputs:{change:"change"},exportAs:["matRadioButton"],standalone:!0,features:[it,y],ngContentSelectors:$t,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,t){if(i&1){let l=k();st(),n(0,"div",2,0)(2,"div",3)(3,"div",4),p("click",function(g){return v(l),_(t._onTouchTargetClick(g))}),r(),n(4,"input",5,1),p("change",function(g){return v(l),_(t._onInputInteraction(g))}),r(),n(6,"div",6),m(7,"div",7)(8,"div",8),r(),n(9,"div",9),m(10,"div",10),r()(),n(11,"label",11),dt(12),r()()}i&2&&(d("labelPosition",t.labelPosition),a(2),Ve("mdc-radio--disabled",t.disabled),a(2),d("id",t.inputId)("checked",t.checked)("disabled",t.disabled&&!t.disabledInteractive)("required",t.required),De("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby)("aria-disabled",t.disabled&&t.disabledInteractive?"true":null),a(5),d("matRippleTrigger",t._rippleTrigger.nativeElement)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0),a(2),d("for",t.inputId))},dependencies:[ht,vt],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled])~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size);top:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2);left:calc(-1*(var(--mdc-radio-state-layer-size) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color, var(--mat-app-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color, var(--mat-app-primary))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color, var(--mat-app-on-surface));opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-app-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-app-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-app-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-app-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-app-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-app-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-app-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let s=o;return s})(),Ee=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=Ye({type:o}),o.\u0275inj=$e({imports:[Ue,F,gt,Xt,Ue]});let s=o;return s})();function ti(s,o){s&1&&m(0,"mat-icon",22),s&2&&d("svgIcon","heroicons_solid:check-circle")}function ii(s,o){s&1&&m(0,"mat-icon",21),s&2&&d("svgIcon","heroicons_outline:check-circle")}function ri(s,o){if(s&1){let f=k();n(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),c(4),r(),n(5,"div",17),c(6),r()()(),n(7,"div",18)(8,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.setPrimaryIndexer("mainnet",i))}),x(9,ti,1,1,"mat-icon",20)(10,ii,1,1,"ng-template",null,0,Ae),r(),n(12,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeIndexer("mainnet",i))}),m(13,"mat-icon",21),r()()()}if(s&2){let f=o.$implicit,e=w(11);a(4),Z(f.url),a(2),q("Primary: ",f.primary?"Yes":"No",""),a(3),d("ngIf",f.primary)("ngIfElse",e),a(4),d("svgIcon","heroicons_outline:trash")}}function ni(s,o){s&1&&m(0,"mat-icon",22),s&2&&d("svgIcon","heroicons_solid:check-circle")}function oi(s,o){s&1&&m(0,"mat-icon",21),s&2&&d("svgIcon","heroicons_outline:check-circle")}function ai(s,o){if(s&1){let f=k();n(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),c(4),r(),n(5,"div",17),c(6),r()()(),n(7,"div",18)(8,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.setPrimaryIndexer("testnet",i))}),x(9,ni,1,1,"mat-icon",20)(10,oi,1,1,"ng-template",null,0,Ae),r(),n(12,"button",19),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeIndexer("testnet",i))}),m(13,"mat-icon",21),r()()()}if(s&2){let f=o.$implicit,e=w(11);a(4),Z(f.url),a(2),q("Primary: ",f.primary?"Yes":"No",""),a(3),d("ngIf",f.primary)("ngIfElse",e),a(4),d("svgIcon","heroicons_outline:trash")}}var Vt=(()=>{let o=class o{constructor(e){this.indexerService=e,this.mainnetIndexers=[],this.testnetIndexers=[],this.newMainnetIndexerUrl="",this.newTestnetIndexerUrl=""}ngOnInit(){this.loadIndexers()}loadIndexers(){this.mainnetIndexers=this.indexerService.getIndexers("mainnet").map(e=>({url:e,primary:e===this.indexerService.getPrimaryIndexer("mainnet")})),this.testnetIndexers=this.indexerService.getIndexers("testnet").map(e=>({url:e,primary:e===this.indexerService.getPrimaryIndexer("testnet")})),console.log("Mainnet Indexers:",this.mainnetIndexers),console.log("Testnet Indexers:",this.testnetIndexers)}addIndexer(e){e==="mainnet"&&this.newMainnetIndexerUrl?(this.indexerService.addIndexer(this.newMainnetIndexerUrl,"mainnet"),this.loadIndexers(),this.newMainnetIndexerUrl=""):e==="testnet"&&this.newTestnetIndexerUrl&&(this.indexerService.addIndexer(this.newTestnetIndexerUrl,"testnet"),this.loadIndexers(),this.newTestnetIndexerUrl="")}removeIndexer(e,i){this.indexerService.removeIndexer(i.url,e),this.loadIndexers()}setPrimaryIndexer(e,i){this.indexerService.setPrimaryIndexer(i.url,e),this.loadIndexers()}trackByFn(e,i){return i.url}};o.\u0275fac=function(i){return new(i||o)(u(Ce))},o.\u0275cmp=b({type:o,selectors:[["settings-indexer"]],standalone:!0,features:[y],decls:27,vars:12,consts:[["nonPrimaryIcon",""],[1,"w-full","max-w-3xl"],[1,"w-full","mb-8"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","","placeholder","Mainnet Indexer URL",3,"ngModelChange","ngModel"],["mat-icon-button","","matSuffix","",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"mt-8"],[1,"flex","flex-col","divide-y","border-b","border-t"],["class","flex flex-col py-6 sm:flex-row sm:items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"w-full","mb-8","mt-10"],["matInput","","placeholder","Testnet Indexer URL",3,"ngModelChange","ngModel"],[1,"flex","flex-col","py-6","sm:flex-row","sm:items-center"],[1,"flex","items-center"],[1,"ml-4"],[1,"font-medium"],[1,"text-sm","text-gray-500"],[1,"mt-4","flex","items-center","sm:ml-auto","sm:mt-0"],["mat-icon-button","",3,"click"],["class","text-primary",3,"svgIcon",4,"ngIf","ngIfElse"],[1,"text-hint",3,"svgIcon"],[1,"text-primary",3,"svgIcon"]],template:function(i,t){i&1&&(n(0,"div",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4,"Add Mainnet Indexer"),r(),m(5,"mat-icon",4),n(6,"input",5),te("ngModelChange",function(h){return ee(t.newMainnetIndexerUrl,h)||(t.newMainnetIndexerUrl=h),h}),r(),n(7,"button",6),p("click",function(){return t.addIndexer("mainnet")}),m(8,"mat-icon",7),r()()(),n(9,"div",8)(10,"h3"),c(11,"Mainnet Indexers"),r(),n(12,"div",9),x(13,ri,14,5,"div",10),r()(),n(14,"div",11)(15,"mat-form-field",3)(16,"mat-label"),c(17,"Add Testnet Indexer"),r(),m(18,"mat-icon",4),n(19,"input",12),te("ngModelChange",function(h){return ee(t.newTestnetIndexerUrl,h)||(t.newTestnetIndexerUrl=h),h}),r(),n(20,"button",6),p("click",function(){return t.addIndexer("testnet")}),m(21,"mat-icon",7),r()()(),n(22,"div",8)(23,"h3"),c(24,"Testnet Indexers"),r(),n(25,"div",9),x(26,ai,14,5,"div",10),r()()()),i&2&&(a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newMainnetIndexerUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(5),d("ngForOf",t.mainnetIndexers)("ngForTrackBy",t.trackByFn),a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newTestnetIndexerUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(5),d("ngForOf",t.testnetIndexers)("ngForTrackBy",t.trackByFn))},dependencies:[M,U,N,ye,R,Ee,C,I,T,A,V,z,be,P,O,j,W,S,oe,F,ve,ne],encapsulation:2,changeDetection:0});let s=o;return s})();var zt=s=>({"ring ring-inset ring-primary":s});function si(s,o){s&1&&m(0,"mat-icon",12),s&2&&d("svgIcon","heroicons_solid:check-circle")}function di(s,o){s&1&&m(0,"mat-icon",12),s&2&&d("svgIcon","heroicons_solid:check-circle")}var At=(()=>{let o=class o{constructor(e,i){this.fb=e,this.indexerService=i,this.selectedNetwork="testnet"}ngOnInit(){this.networkForm=this.fb.group({network:[this.indexerService.getNetwork()]}),this.selectedNetwork=this.indexerService.getNetwork()}setNetwork(e){this.selectedNetwork=e,this.indexerService.setNetwork(this.selectedNetwork)}save(){this.indexerService.setNetwork(this.selectedNetwork)}cancel(){this.selectedNetwork=this.indexerService.getNetwork()}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(Ce))},o.\u0275cmp=b({type:o,selectors:[["settings-network"]],standalone:!0,features:[y],decls:24,vars:8,consts:[[1,"w-full","max-w-3xl"],[1,"text-xl"],[1,"text-secondary"],[1,"mt-8","grid","w-full","max-w-3xl","gap-6","sm:grid-cols-2"],[1,"bg-card","relative","flex","cursor-pointer","flex-col","items-start","justify-start","rounded-md","p-6","shadow",3,"click","ngClass"],["class","absolute right-0 top-0 mr-3 mt-3 text-primary icon-size-7",3,"svgIcon",4,"ngIf"],[1,"font-semibold"],[1,"text-secondary","mt-1","whitespace-normal"],[1,"mb-10","mt-11","border-t","w-full","max-w-3xl"],[1,"flex","items-center","justify-end","w-full","max-w-3xl"],["mat-stroked-button","","type","button",3,"click"],["mat-flat-button","","type","button","color","primary",1,"ml-4",3,"click"],[1,"absolute","right-0","top-0","mr-3","mt-3","text-primary","icon-size-7",3,"svgIcon"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"div",1),c(2,"Change your network"),r(),n(3,"div",2),c(4," Switch between Mainnet and Testnet to change your network settings. "),r()(),n(5,"div",3)(6,"div",4),p("click",function(){return t.setNetwork("mainnet")}),x(7,si,1,1,"mat-icon",5),n(8,"div",6),c(9,"Mainnet"),r(),n(10,"div",7),c(11," The live Bitcoin network. "),r()(),n(12,"div",4),p("click",function(){return t.setNetwork("testnet")}),x(13,di,1,1,"mat-icon",5),n(14,"div",6),c(15,"Testnet"),r(),n(16,"div",7),c(17," The Bitcoin testing network. "),r()()(),m(18,"div",8),n(19,"div",9)(20,"button",10),p("click",function(){return t.cancel()}),c(21,"Cancel"),r(),n(22,"button",11),p("click",function(){return t.save()}),c(23,"Save"),r()()),i&2&&(a(6),d("ngClass",ue(4,zt,t.selectedNetwork==="mainnet")),a(),d("ngIf",t.selectedNetwork==="mainnet"),a(5),d("ngClass",ue(6,zt,t.selectedNetwork==="testnet")),a(),d("ngIf",t.selectedNetwork==="testnet"))},dependencies:[M,R,Ee,ge,C,I,T,P,j,W,S,B,F,ne],encapsulation:2,changeDetection:0});let s=o;return s})();var Bt=(()=>{let o=class o{constructor(e){this._formBuilder=e}ngOnInit(){this.notificationsForm=this._formBuilder.group({communication:[!0],security:[!0],meetups:[!1],comments:[!1],mention:[!0],follow:[!0],inquiry:[!0]})}};o.\u0275fac=function(i){return new(i||o)(u(we))},o.\u0275cmp=b({type:o,selectors:[["settings-notifications"]],standalone:!0,features:[y],decls:61,vars:16,consts:[["communication",""],["securityToggle",""],["meetupsToggle",""],["comments",""],["mention",""],["follow",""],["inquiry",""],[1,"w-full","max-w-3xl"],[3,"formGroup"],[1,"w-full","text-xl"],[1,"mt-8","grid","w-full","grid-cols-1","gap-6"],[1,"flex","items-center","justify-between"],[1,"flex-auto","cursor-pointer",3,"click"],[1,"font-medium","leading-6"],[1,"text-secondary","text-md"],[1,"ml-2",3,"color","formControlName"],[1,"my-10","border-t"],[1,"mt-8","w-full","font-medium"],[1,"mt-4","grid","w-full","grid-cols-1","gap-4"],[1,"flex-auto","cursor-pointer","leading-6",3,"click"],[1,"flex","items-center","justify-end"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","button",1,"ml-4",3,"color"]],template:function(i,t){if(i&1){let l=k();n(0,"div",7)(1,"form",8)(2,"div",9),c(3,"Alerts"),r(),n(4,"div",10)(5,"div",11)(6,"div",12),p("click",function(){v(l);let g=w(12);return _(g.toggle())}),n(7,"div",13),c(8,"Communication"),r(),n(9,"div",14),c(10," Get news, announcements, and product updates. "),r()(),m(11,"mat-slide-toggle",15,0),r(),n(13,"div",11)(14,"div",12),p("click",function(){v(l);let g=w(20);return _(g.toggle())}),n(15,"div",13),c(16,"Security"),r(),n(17,"div",14),c(18," Get important notifications about your account security. "),r()(),m(19,"mat-slide-toggle",15,1),r(),n(21,"div",11)(22,"div",12),p("click",function(){v(l);let g=w(28);return _(g.toggle())}),n(23,"div",13),c(24,"Meetups"),r(),n(25,"div",14),c(26," Get an email when a Meetup is posted close to my location. "),r()(),m(27,"mat-slide-toggle",15,2),r()(),m(29,"div",16),n(30,"div",9),c(31,"Account Activity"),r(),n(32,"div",17),c(33,"Email me when:"),r(),n(34,"div",18)(35,"div",11)(36,"div",19),p("click",function(){v(l);let g=w(39);return _(g.toggle())}),c(37," someone comments on one of my items "),r(),m(38,"mat-slide-toggle",15,3),r(),n(40,"div",11)(41,"div",19),p("click",function(){v(l);let g=w(44);return _(g.toggle())}),c(42," someone mentions me "),r(),m(43,"mat-slide-toggle",15,4),r(),n(45,"div",11)(46,"div",19),p("click",function(){v(l);let g=w(49);return _(g.toggle())}),c(47," someone follows me "),r(),m(48,"mat-slide-toggle",15,5),r(),n(50,"div",11)(51,"div",19),p("click",function(){v(l);let g=w(54);return _(g.toggle())}),c(52," someone replies to my job posting "),r(),m(53,"mat-slide-toggle",15,6),r()(),m(55,"div",16),n(56,"div",20)(57,"button",21),c(58,"Cancel"),r(),n(59,"button",22),c(60," Save "),r()()()()}i&2&&(a(),d("formGroup",t.notificationsForm),a(10),d("color","primary")("formControlName","communication"),a(8),d("color","primary")("formControlName","security"),a(8),d("color","primary")("formControlName","meetups"),a(11),d("color","primary")("formControlName","comments"),a(5),d("color","primary")("formControlName","mention"),a(5),d("color","primary")("formControlName","follow"),a(5),d("color","primary")("formControlName","inquiry"),a(6),d("color","primary"))},dependencies:[M,Q,N,K,R,$,H,Ie,ke,S,B],encapsulation:2,changeDetection:0});let s=o;return s})();function ui(s,o){if(s&1&&(n(0,"mat-option",24)(1,"div",14),c(2),r()()),s&2){let f=o.$implicit;d("value",f.value),a(2),Z(f.label)}}function pi(s,o){if(s&1){let f=k();n(0,"div",9)(1,"div",10)(2,"div",11),m(3,"img",12),r(),n(4,"div",13)(5,"div",14),c(6),r(),n(7,"div",15),c(8),r()()(),n(9,"div",16)(10,"mat-form-field",17)(11,"mat-select",18),te("ngModelChange",function(i){let t=v(f).$implicit;return ee(t.accessType,i)||(t.accessType=i),_(i)}),p("selectionChange",function(){let i=v(f).$implicit,t=E();return _(t.updateRelayAccess(i))}),n(12,"mat-select-trigger",19)(13,"span",20),c(14),ct(15,"titlecase"),r()(),x(16,ui,3,2,"mat-option",21),r()(),n(17,"button",22),p("click",function(){let i=v(f).$implicit,t=E();return _(t.removeRelay(i.url))}),m(18,"mat-icon",23),r()()()}if(s&2){let f=o.$implicit,e=E();a(3),d("src",e.getSafeUrl(e.relayFavIcon(f.url)),tt),a(3),Z(f.url),a(2),q("Status: ",e.getRelayStatus(f),""),a(2),d("subscriptSizing","dynamic"),a(),X("ngModel",f.accessType),a(3),Z(lt(15,8,f.accessType)),a(2),d("ngForOf",e.accessOptions),a(2),d("svgIcon","heroicons_outline:trash")}}var Ut=(()=>{let o=class o{constructor(e,i,t,l){this.relayService=e,this.cdr=i,this.zone=t,this.sanitizer=l,this.relays=[],this.accessOptions=[],this.newRelayUrl="",this.subscriptions=new Le}ngOnInit(){this.subscriptions.add(this.relayService.getRelays().subscribe(e=>{this.zone.run(()=>{this.relays=e,this.cdr.markForCheck()})})),this.accessOptions=[{label:"Read",value:"read",description:"Reads only, does not write, unless explicitly specified on publish action."},{label:"Write",value:"write",description:"Writes your events, profile, and other metadata updates. Connects on-demand."},{label:"Read and Write",value:"read-write",description:"Reads and writes events, profiles, and other metadata. Always connected."}]}ngOnDestroy(){this.subscriptions.unsubscribe()}addRelay(){this.newRelayUrl&&(this.relayService.addRelay(this.newRelayUrl),this.newRelayUrl="")}updateRelayAccess(e){console.log("Relay Access Updated:",e.url,e.accessType),this.relayService.updateRelayAccessType(e.url,e.accessType)}removeRelay(e){this.relayService.removeRelay(e)}trackByFn(e,i){return i.url||e}getRelayStatus(e){return e.connected?"Connected":"Disconnected"}relayFavIcon(e){return e.replace("wss://","https://").replace("ws://","https://")+"/favicon.ico"}getSafeUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}};o.\u0275fac=function(i){return new(i||o)(u(Se),u(ie),u(fe),u(ut))},o.\u0275cmp=b({type:o,selectors:[["settings-relay"]],standalone:!0,features:[y],decls:11,vars:6,consts:[[1,"w-full","max-w-3xl"],[1,"w-full"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","","placeholder","Relay URL",3,"ngModelChange","ngModel"],["mat-icon-button","","matSuffix","",3,"click"],[1,"icon-size-5",3,"svgIcon"],[1,"mt-8","flex","flex-col","divide-y","border-b","border-t"],["class","flex flex-col py-6 sm:flex-row sm:items-center",4,"ngFor","ngForOf","ngForTrackBy"],[1,"flex","flex-col","py-6","sm:flex-row","sm:items-center"],[1,"flex","items-center"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","overflow-hidden","rounded-full"],["onerror","this.src='/images/avatars/avatar-placeholder.png'","alt","relay avatar",1,"h-full","w-full","object-cover",3,"src"],[1,"ml-4"],[1,"font-medium"],[1,"text-sm","text-gray-500"],[1,"mt-4","flex","items-center","sm:ml-auto","sm:mt-0"],[1,"angor-mat-dense","w-50",3,"subscriptSizing"],[3,"ngModelChange","selectionChange","ngModel"],[1,"text-md"],[1,"ml-1","font-medium"],[3,"value",4,"ngFor","ngForOf"],["mat-icon-button","",3,"click"],[1,"text-hint",3,"svgIcon"],[3,"value"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4,"Add Relay"),r(),m(5,"mat-icon",3),n(6,"input",4),te("ngModelChange",function(h){return ee(t.newRelayUrl,h)||(t.newRelayUrl=h),h}),r(),n(7,"button",5),p("click",function(){return t.addRelay()}),m(8,"mat-icon",6),r()()(),n(9,"div",7),x(10,pi,19,10,"div",8),r()()),i&2&&(a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:link"),a(),X("ngModel",t.newRelayUrl),a(2),d("svgIcon","heroicons_solid:plus-circle"),a(2),d("ngForOf",t.relays)("ngForTrackBy",t.trackByFn))},dependencies:[T,A,V,z,be,C,I,P,O,S,oe,j,xe,Nt,_e,W,mt,F,ve,M,U,N,ye],encapsulation:2,changeDetection:0});let s=o;return s})();var Ne=(()=>{let o=class o{constructor(e){this.signerService=e,this.storageKey="userPassword"}savePassword(e,i){let t=Date.now()+i*60*1e3,l={password:e,expirationTime:t};sessionStorage.setItem(this.storageKey,JSON.stringify(l))}getPassword(){let e=sessionStorage.getItem(this.storageKey);if(!e)return null;let{password:i,expirationTime:t}=JSON.parse(e);return Date.now()>t?(this.clearPassword(),null):i}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(e,i,t){return G(this,null,function*(){try{let l=yield this.signerService.getSecretKey(e);if(!l)throw new Error("Incorrect current password.");yield this.signerService.setSecretKey(l,i);let h=yield this.signerService.getNsec(e);return h&&(yield this.signerService.setNsec(h,i)),this.clearPassword(),t&&this.savePassword(i,60),!0}catch(l){return console.error("Failed to change password: ",l),!1}})}};o.\u0275fac=function(i){return new(i||o)(He(Y))},o.\u0275prov=Qe({token:o,factory:o.\u0275fac,providedIn:"root"});let s=o;return s})();var jt=(()=>{let o=class o{constructor(e,i,t){this._formBuilder=e,this._passwordService=i,this._signerService=t}ngOnInit(){this.securityForm=this._formBuilder.group({currentPassword:["",D.required],newPassword:["",[D.required,D.minLength(3)]],twoStep:[!0],askPasswordChange:[!1],savePassword:[!1]})}changePassword(){return G(this,null,function*(){if(this.securityForm.invalid)return;let e=this.securityForm.get("currentPassword")?.value,i=this.securityForm.get("newPassword")?.value,t=this.securityForm.get("savePassword")?.value;try{let l=yield this._passwordService.changePassword(e,i,t);alert(l?"Password successfully changed.":"Password change failed. Please check your credentials.")}catch(l){console.error("Error during password change:",l)}})}};o.\u0275fac=function(i){return new(i||o)(u(we),u(Ne),u(Y))},o.\u0275cmp=b({type:o,selectors:[["settings-security"]],standalone:!0,features:[y],decls:43,vars:10,consts:[["savePasswordToggle",""],[1,"w-full","max-w-3xl"],[3,"formGroup"],[1,"w-full"],[1,"text-xl"],[1,"text-secondary"],[1,"mt-8","grid","w-full","gap-6","sm:grid-cols-4"],[1,"sm:col-span-4"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["type","password","matInput","","required","",3,"formControlName"],[1,"text-hint","mt-1","text-md"],[1,"my-10","border-t"],[1,"flex","items-center","justify-between","sm:col-span-4"],[1,"flex-auto","cursor-pointer",3,"click"],[1,"font-medium","leading-6"],[1,"text-secondary","text-md"],[1,"ml-4",3,"color","formControlName"],[1,"flex","items-center","justify-end"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","button",1,"ml-4",3,"click","color"]],template:function(i,t){if(i&1){let l=k();n(0,"div",1)(1,"form",2)(2,"div",3)(3,"div",4),c(4,"Change your password"),r(),n(5,"div",5),c(6," You can only change your password twice within 24 hours! "),r()(),n(7,"div",6)(8,"div",7)(9,"mat-form-field",8)(10,"mat-label"),c(11,"Current password"),r(),m(12,"mat-icon",9)(13,"input",10),r()(),n(14,"div",7)(15,"mat-form-field",8)(16,"mat-label"),c(17,"New password"),r(),m(18,"mat-icon",9)(19,"input",10),r(),n(20,"div",11),c(21," Minimum 3 characters. "),r()()(),m(22,"div",12),n(23,"div",3)(24,"div",4),c(25,"Password preferences"),r(),n(26,"div",5),c(27," Manage how your password is saved for future logins. "),r()(),n(28,"div",6)(29,"div",13)(30,"div",14),p("click",function(){v(l);let g=w(36);return _(g.toggle())}),n(31,"div",15),c(32," Save password for future decrypting sensitive information. "),r(),n(33,"div",16),c(34," Enable this option to save your password locally for 60 minutes. "),r()(),m(35,"mat-slide-toggle",17,0),r()(),m(37,"div",12),n(38,"div",18)(39,"button",19),c(40,"Cancel"),r(),n(41,"button",20),p("click",function(){return v(l),_(t.changePassword())}),c(42," Save "),r()()()()}i&2&&(a(),d("formGroup",t.securityForm),a(8),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:key"),a(),d("formControlName","currentPassword"),a(2),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:key"),a(),d("formControlName","newPassword"),a(16),d("color","primary")("formControlName","savePassword"),a(6),d("color","primary"))},dependencies:[M,Q,U,N,K,Mt,R,$,H,T,A,V,z,C,I,P,O,Ie,ke,S,B],encapsulation:2,changeDetection:0});let s=o;return s})();function hi(s,o){s&1&&(n(0,"mat-error"),c(1," Password is required "),r())}var Gt=(()=>{let o=class o{constructor(e,i,t){this.fb=e,this.dialogRef=i,this.data=t,this.passwordForm=this.fb.group({password:["",D.required],duration:["0",D.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(bt),u(yt))},o.\u0275cmp=b({type:o,selectors:[["password-dialog"]],standalone:!0,features:[y],decls:30,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"w-full",3,"subscriptSizing"],["matPrefix",""],["matInput","","type","password",3,"formControlName"],[4,"ngIf"],[1,"w-full","mt-5"],["formControlName","duration"],["value","0"],["value","1"],["value","5"],["value","10"],["value","60"],["mat-dialog-actions",""],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(i,t){i&1&&(n(0,"h1",0),c(1,"Enter Password"),r(),n(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),c(6,"Password"),r(),n(7,"mat-icon",4),c(8,"lock"),r(),m(9,"input",5),x(10,hi,2,0,"mat-error",6),r(),n(11,"mat-form-field",7)(12,"mat-label"),c(13,"Duration"),r(),n(14,"mat-select",8)(15,"mat-option",9),c(16,"0 Minute"),r(),n(17,"mat-option",10),c(18,"1 Minute"),r(),n(19,"mat-option",11),c(20,"5 Minutes"),r(),n(21,"mat-option",12),c(22,"10 Minutes"),r(),n(23,"mat-option",13),c(24,"1 Hour"),r()()()()(),n(25,"div",14)(26,"button",15),p("click",function(){return t.onCancel()}),c(27,"Cancel"),r(),n(28,"button",16),p("click",function(){return t.onSubmit()}),c(29," Submit "),r()()),i&2&&(a(3),d("formGroup",t.passwordForm),a(),d("subscriptSizing","dynamic"),a(5),d("formControlName","password"),a(),d("ngIf",t.passwordForm.get("password").hasError("required")),a(18),d("disabled",t.passwordForm.invalid))},dependencies:[Me,S,B,C,I,M,Q,U,N,K,_e,V,A,R,$,H,F,ne,j,St,z,xe,T,P,O],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0});let s=o;return s})();var qt=(()=>{let o=class o{constructor(e,i,t,l,h,g,pe){this.fb=e,this.signerService=i,this.metadataService=t,this.relayService=l,this.router=h,this.dialog=g,this.password=pe}ngOnInit(){this.profileForm=this.fb.group({name:["",D.required],username:[""],displayName:[""],website:[""],about:[""],picture:[""],banner:[""],lud06:[""],lud16:["",D.pattern("^[a-z0-9._-]+@[a-z0-9.-]+.[a-z]{2,4}$")],nip05:["",D.pattern("^[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,4}$")]}),this.setValues()}setValues(){return G(this,null,function*(){let e=yield this.metadataService.getUserMetadata(this.signerService.getPublicKey());e&&this.profileForm.setValue({name:e.name||"",username:e.username||"",displayName:e.displayName||"",website:e.website||"",about:e.about||"",picture:e.picture||"",banner:e.banner||"",lud06:e.lud06||"",lud16:e.lud16||"",nip05:e.nip05||""})})}onSubmit(){this.profileForm.valid?this.submit():console.error("Form is invalid")}submit(){return G(this,null,function*(){let e=this.profileForm.value;if(this.content=JSON.stringify(e),this.signerService.isUsingSecretKey()){let i=this.password.getPassword();if(i)try{let t=yield this.signerService.getSecretKey(i);this.signEvent(t)}catch(t){console.error(t)}else this.dialog.open(Gt,{width:"300px",disableClose:!0}).afterClosed().subscribe(l=>G(this,null,function*(){if(l&&l.password)try{let h=yield this.signerService.getSecretKey(l.password);this.signEvent(h),l.duration!=0&&this.password.savePassword(l.password,l.duration)}catch(h){console.error(h)}else console.error("Password not provided")}))}else if(this.signerService.isUsingExtension()){let i=this.signerService.getUnsignedEvent(0,[],this.content),t=yield this.signerService.signEventWithExtension(i);this.publishSignedEvent(t)}})}signEvent(e){return G(this,null,function*(){let i=this.signerService.getUnsignedEvent(0,[],this.content),t=Tt(e),l=Et(i,t);this.publishSignedEvent(l)})}publishSignedEvent(e){this.relayService.publishEventToRelays(e),console.log("Profile Updated!"),this.router.navigate(["/profile"])}};o.\u0275fac=function(i){return new(i||o)(u(ae),u(Y),u(Ft),u(Se),u(pt),u(wt),u(Ne))},o.\u0275cmp=b({type:o,selectors:[["settings-profile"]],standalone:!0,features:[y],decls:70,vars:23,consts:[[1,"w-full","max-w-3xl"],[3,"ngSubmit","formGroup"],[1,"w-full"],[1,"text-secondary"],[1,"mt-8","grid","w-full","gap-6","sm:grid-cols-4"],[1,"sm:col-span-4"],[1,"w-full",3,"subscriptSizing"],["matPrefix","",1,"icon-size-5",3,"svgIcon"],["matInput","",3,"formControlName"],["matInput","","cdkTextareaAutosize","",3,"formControlName","cdkAutosizeMinRows"],[1,"text-hint","mt-1","text-md"],[1,"flex","items-center","justify-end","mt-8"],["mat-stroked-button","","type","button"],["mat-flat-button","","type","submit","color","primary",1,"ml-4"]],template:function(i,t){i&1&&(n(0,"div",0)(1,"form",1),p("ngSubmit",function(){return t.onSubmit()}),n(2,"div",2)(3,"div",3),c(4," Following information is publicly displayed, be careful! "),r()(),n(5,"div",4)(6,"div",5)(7,"mat-form-field",6)(8,"mat-label"),c(9,"Name"),r(),m(10,"mat-icon",7)(11,"input",8),r()(),n(12,"div",5)(13,"mat-form-field",6)(14,"mat-label"),c(15,"Username"),r(),m(16,"input",8),r()(),n(17,"div",5)(18,"mat-form-field",6)(19,"mat-label"),c(20,"Display Name"),r(),m(21,"input",8),r()(),n(22,"div",5)(23,"mat-form-field",6)(24,"mat-label"),c(25,"Website"),r(),m(26,"input",8),r()(),n(27,"div",5)(28,"mat-form-field",6)(29,"mat-label"),c(30,"About"),r(),m(31,"textarea",9),r(),n(32,"div",10),c(33," Brief description for your profile. Basic HTML and Emoji are allowed. "),r()(),n(34,"div",5)(35,"mat-form-field",6)(36,"mat-label"),c(37,"Profile Picture URL"),r(),m(38,"input",8),r()(),n(39,"div",5)(40,"mat-form-field",6)(41,"mat-label"),c(42,"Banner URL"),r(),m(43,"input",8),r()(),n(44,"div",5)(45,"mat-form-field",6)(46,"mat-label"),c(47,"LUD06"),r(),m(48,"input",8),n(49,"mat-hint"),c(50," LUD06 is an LNURL (Lightning Network URL) for receiving Bitcoin payments over the Lightning Network. "),r()()(),n(51,"div",5)(52,"mat-form-field",6)(53,"mat-label"),c(54,"LUD16"),r(),m(55,"input",8),n(56,"mat-hint"),c(57," LUD16 is a Lightning address, similar to an email format, used to receive Bitcoin payments via the Lightning Network. "),r()()(),n(58,"div",5)(59,"mat-form-field",6)(60,"mat-label"),c(61,"NIP05"),r(),m(62,"input",8),n(63,"mat-hint"),c(64," NIP05 provides a user-friendly identifier for Nostr, similar to an email address, to help identify and verify your public identity. "),r()()()(),n(65,"div",11)(66,"button",12),c(67,"Cancel"),r(),n(68,"button",13),c(69,"Save"),r()()()()),i&2&&(a(),d("formGroup",t.profileForm),a(6),d("subscriptSizing","dynamic"),a(3),d("svgIcon","heroicons_solid:user"),a(),d("formControlName","name"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","username"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","displayName"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","website"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","about")("cdkAutosizeMinRows",5),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","picture"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","banner"),a(2),d("subscriptSizing","dynamic"),a(3),d("formControlName","lud06"),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","lud16"),a(4),d("subscriptSizing","dynamic"),a(3),d("formControlName","nip05"))},dependencies:[M,Q,U,N,K,R,$,H,T,A,V,xt,z,C,I,P,O,It,Ct,j,W,S,B,F],encapsulation:2,changeDetection:0});let s=o;return s})();var gi=["drawer"],vi=(s,o)=>({"dark:hover:bg-hover hover:bg-gray-100":s,"bg-primary-50 dark:bg-hover":o}),_i=(s,o)=>({"text-hint":s,"text-primary dark:text-primary-500":o}),bi=s=>({"text-primary dark:text-primary-500":s});function yi(s,o){if(s&1){let f=k();n(0,"div",17),p("click",function(){let i=v(f).$implicit,t=E();return _(t.goToPanel(i.id))}),m(1,"mat-icon",18),n(2,"div",19)(3,"div",20),c(4),r(),n(5,"div",21),c(6),r()()()}if(s&2){let f=o.$implicit,e=E();d("ngClass",ze(6,vi,!e.selectedPanel||e.selectedPanel!==f.id,e.selectedPanel&&e.selectedPanel===f.id)),a(),d("ngClass",ze(9,_i,!e.selectedPanel||e.selectedPanel!==f.id,e.selectedPanel&&e.selectedPanel===f.id))("svgIcon",f.icon),a(2),d("ngClass",ue(12,bi,e.selectedPanel&&e.selectedPanel===f.id)),a(),q(" ",f.title," "),a(2),q(" ",f.description," ")}}function wi(s,o){s&1&&m(0,"settings-relay")}function Si(s,o){s&1&&m(0,"settings-network")}function xi(s,o){s&1&&m(0,"settings-indexer")}function ki(s,o){s&1&&m(0,"settings-profile")}function Ii(s,o){s&1&&m(0,"settings-security")}function Ci(s,o){s&1&&m(0,"settings-notifications")}var Lt=(()=>{let o=class o{constructor(e,i,t){this._changeDetectorRef=e,this._angorMediaWatcherService=i,this._signerService=t,this.drawerMode="side",this.drawerOpened=!0,this.panels=[{id:"relay",icon:"heroicons_outline:server",title:"Relay",description:"Manage and configure your existing relays and update their access roles and permissions."},{id:"network",icon:"heroicons_outline:globe-alt",title:"Network",description:"Switch between mainnet and testnet for different Bitcoin network configurations."},{id:"indexer",icon:"heroicons_outline:chart-bar",title:"Indexer",description:"Add, remove, and manage your indexers, including setting the primary indexer."},{id:"profile",icon:"heroicons_outline:user",title:"Profile",description:"Update your personal profile, manage your account details, and modify your private information."},{id:"notifications",icon:"heroicons_outline:bell",title:"Notifications",description:"Control when and how you\u2019ll be notified across various communication channels."},{id:"security",icon:"heroicons_outline:shield-check",title:"Password Management",description:"Manage your password and decryption settings, including saving passwords for future decrypting sensitive information."}],this.selectedPanel="relay",this._unsubscribeAll=new We}ngOnInit(){let e={id:"security",icon:"heroicons_outline:shield-check",title:"Password Management",description:"Manage your password and decryption settings, including saving passwords for future decrypting sensitive information."};this._signerService.isUsingSecretKey()?this.panels.some(t=>t.id==="security")||(this.panels.push(e),console.log("Extension not used, security panel added")):(this.panels=this.panels.filter(i=>i.id!=="security"),console.log("Extension used, security panel removed")),this._changeDetectorRef.markForCheck(),this._angorMediaWatcherService.onMediaChange$.pipe(Ke(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.drawerMode=i.includes("lg")?"side":"over",this.drawerOpened=this.drawerMode==="side",this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(),this._unsubscribeAll.complete()}goToPanel(e){this.selectedPanel=e,this.drawerMode==="over"&&this.drawer.close()}getPanelInfo(e){return this.panels.find(i=>i.id===e)}trackByFn(e,i){return i.id||e}};o.\u0275fac=function(i){return new(i||o)(u(ie),u(kt),u(Y))},o.\u0275cmp=b({type:o,selectors:[["settings"]],viewQuery:function(i,t){if(i&1&&ce(gi,5),i&2){let l;le(l=me())&&(t.drawer=l.first)}},standalone:!0,features:[y],decls:27,vars:7,consts:[["drawer",""],[1,"flex","w-full","min-w-0","flex-col","sm:absolute","sm:inset-0","sm:overflow-hidden"],[1,"flex-auto","sm:h-full"],[1,"dark:bg-gray-900","sm:w-96",3,"autoFocus","mode","opened"],[1,"m-8","mr-6","flex","items-center","justify-between","sm:my-10"],[1,"text-4xl","font-extrabold","leading-none","tracking-tight"],[1,"lg:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"flex","flex-col","divide-y","border-b","border-t"],[1,"flex","cursor-pointer","px-8","py-5",3,"ngClass"],[1,"flex","flex-col"],[1,"flex-auto","px-6","pb-12","pt-9","md:p-8","md:pb-12","lg:p-12"],[1,"flex","items-center"],["mat-icon-button","",1,"-ml-2","lg:hidden",3,"click"],[1,"ml-2","text-3xl","font-bold","leading-none","tracking-tight","lg:ml-0"],[1,"mt-8"],[1,"flex","cursor-pointer","px-8","py-5",3,"click","ngClass"],[3,"ngClass","svgIcon"],[1,"ml-3"],[1,"font-medium","leading-6",3,"ngClass"],[1,"text-secondary","mt-0.5"]],template:function(i,t){if(i&1){let l=k();n(0,"div",1)(1,"mat-drawer-container",2)(2,"mat-drawer",3,0)(4,"div",4)(5,"div",5),c(6," Settings "),r(),n(7,"div",6)(8,"button",7),p("click",function(){v(l);let g=w(3);return _(g.close())}),m(9,"mat-icon",8),r()()(),n(10,"div",9),ot(11,yi,7,14,"div",10,t.trackByFn,!0),r()(),n(13,"mat-drawer-content",11)(14,"div",12)(15,"div",13)(16,"button",14),p("click",function(){v(l);let g=w(3);return _(g.toggle())}),m(17,"mat-icon",8),r(),n(18,"div",15),c(19),r()(),n(20,"div",16),x(21,wi,1,0,"settings-relay")(22,Si,1,0,"settings-network")(23,xi,1,0,"settings-indexer")(24,ki,1,0,"settings-profile")(25,Ii,1,0,"settings-security")(26,Ci,1,0,"settings-notifications"),r()()()()()}if(i&2){let l;a(2),d("autoFocus",!1)("mode",t.drawerMode)("opened",t.drawerOpened),a(7),d("svgIcon","heroicons_outline:x-mark"),a(2),at(t.panels),a(6),d("svgIcon","heroicons_outline:bars-3"),a(2),q(" ",t.getPanelInfo(t.selectedPanel).title," "),a(2),nt((l=t.selectedPanel)==="relay"?21:l==="network"?22:l==="indexer"?23:l==="profile"?24:l==="security"?25:l==="notifications"?26:-1)}},dependencies:[Me,Pt,Dt,Rt,S,oe,C,I,ge,qt,jt,Bt,Ut,At,Vt],encapsulation:2,changeDetection:0});let s=o;return s})();var Yn=[{path:"",component:Lt}];export{Yn as default}; diff --git a/chunk-JB4C5CO3.js b/chunk-V2SEKFEW.js similarity index 98% rename from chunk-JB4C5CO3.js rename to chunk-V2SEKFEW.js index 4b750e7..ee1f8fa 100644 --- a/chunk-JB4C5CO3.js +++ b/chunk-V2SEKFEW.js @@ -1 +1 @@ -import{a as le,b as se,c as de,d as pe}from"./chunk-7TGJR4WL.js";import{a as me}from"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{b as ae}from"./chunk-ZSOMQRTJ.js";import{a as Y}from"./chunk-GTCJWQQT.js";import{D as J,F as f,H as W,I as X,M as Z,O as $,P as ee,S as te,T as re,U as ie,V as oe,W as ne,q as L,r as j,u as P,y as z,z as G}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as H,X as D,Z as Q,ba as K,ca as O}from"./chunk-MH4Z64LL.js";import{$a as E,Ba as o,Bb as R,Ca as v,Hb as U,Ib as h,Pa as p,Ua as r,ba as C,cb as t,db as e,eb as l,fc as T,ia as x,ib as M,ja as w,ka as S,kc as q,la as F,lb as _,nb as I,tb as k,ub as N,vb as A,xc as V,yb as b,yc as B,zb as n}from"./chunk-LP5NDBXI.js";var ye=["registerNgForm"],xe=()=>["/login"],ce=()=>["./"];function we(i,m){if(i&1&&(t(0,"angor-alert",10),n(1),e()),i&2){let y=I();r("appearance","outline")("showIcon",!1)("type",y.alert.type)("@shake",y.alert.type==="error"),o(),R(" ",y.alert.message," ")}}function _e(i,m){i&1&&(t(0,"mat-error"),n(1," Full name is required "),e())}function be(i,m){i&1&&(t(0,"mat-error"),n(1," Username is required "),e())}function Ce(i,m){i&1&&l(0,"mat-icon",37),i&2&&r("svgIcon","heroicons_solid:eye")}function Se(i,m){i&1&&l(0,"mat-icon",37),i&2&&r("svgIcon","heroicons_solid:eye-slash")}function Fe(i,m){i&1&&(t(0,"mat-error"),n(1," Password is required "),e())}function Ee(i,m){i&1&&l(0,"mat-progress-spinner",38),i&2&&r("diameter",24)("mode","indeterminate")}var ue=(()=>{let m=class m{constructor(c,s,a){this._formBuilder=c,this._router=s,this._signerService=a,this.alert={type:"success",message:""},this.showAlert=!1}ngOnInit(){this.registerForm=this._formBuilder.group({name:["",f.required],username:["",f.required],about:[""],avatarUrl:[""],password:["",f.required],agreements:["",f.requiredTrue]})}register(){if(this.registerForm.invalid)return;this.registerForm.disable(),this.showAlert=!1;let c=this.registerForm.get("name")?.value,s=this.registerForm.get("username")?.value,a=this.registerForm.get("about")?.value,d=this.registerForm.get("avatarUrl")?.value,g=this.registerForm.get("password")?.value,u=this._signerService.generateAndStoreKeys(g);if(!u){this.registerForm.enable(),this.alert={type:"error",message:"Error generating keys. Please try again."},this.showAlert=!0;return}let{secretKey:fe,pubkey:ge,npub:ve,nsec:he}=u;console.log("User Metadata:",{secretKey:fe,name:c,username:s,about:a,avatarUrl:d,password:g,pubkey:ge,npub:ve,nsec:he}),this.alert={type:"success",message:"Account created successfully!"},this.showAlert=!0,this._router.navigateByUrl("/home")}};m.\u0275fac=function(s){return new(s||m)(v(te),v(V),v(ae))},m.\u0275cmp=C({type:m,selectors:[["auth-register"]],viewQuery:function(s,a){if(s&1&&k(ye,5),s&2){let d;N(d=A())&&(a.registerNgForm=d.first)}},standalone:!0,features:[U],decls:72,vars:23,consts:[["registerNgForm","ngForm"],["passwordField",""],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-8",3,"formGroup"],[1,"w-full"],["id","name","matInput","","autocomplete","name",3,"formControlName"],[4,"ngIf"],["id","username","matInput","","autocomplete","username",3,"formControlName"],["id","about","matInput","",3,"formControlName"],["id","avatarUrl","matInput","","autocomplete","avatarUrl",3,"formControlName"],["id","password","matInput","","type","password","autocomplete","password",3,"formControlName"],["mat-icon-button","","type","button","matSuffix","",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],[1,"mt-1.5","inline-flex","w-full","items-end"],[1,"-ml-2",3,"color","formControlName"],["mat-flat-button","",1,"angor-mat-button-large","mt-6","w-full",3,"click","color","disabled"],[3,"diameter","mode",4,"ngIf"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-top-16","-right-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"icon-size-5",3,"svgIcon"],[3,"diameter","mode"]],template:function(s,a){if(s&1){let d=M();t(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),l(4,"img",6),e(),t(5,"div",7),n(6," Register "),e(),t(7,"div",8)(8,"div"),n(9,"Already have an account?"),e(),t(10,"a",9),n(11,"Login "),e()(),p(12,we,2,5,"angor-alert",10),t(13,"form",11,0)(15,"mat-form-field",12)(16,"mat-label"),n(17,"Full name"),e(),l(18,"input",13),p(19,_e,2,0,"mat-error",14),e(),t(20,"mat-form-field",12)(21,"mat-label"),n(22,"Username"),e(),l(23,"input",15),p(24,be,2,0,"mat-error",14),e(),t(25,"mat-form-field",12)(26,"mat-label"),n(27,"About"),e(),l(28,"textarea",16),e(),t(29,"mat-form-field",12)(30,"mat-label"),n(31,"Avatar URL"),e(),l(32,"input",17),e(),t(33,"mat-form-field",12)(34,"mat-label"),n(35,"Password"),e(),l(36,"input",18,1),t(38,"button",19),_("click",function(){x(d);let u=b(37);return w(u.type==="password"?u.type="text":u.type="password")}),p(39,Ce,1,1,"mat-icon",20)(40,Se,1,1,"mat-icon",20),e(),p(41,Fe,2,0,"mat-error",14),e(),t(42,"div",21)(43,"mat-checkbox",22)(44,"span"),n(45,"I agree with"),e(),t(46,"a",9),n(47,"Terms"),e(),t(48,"span"),n(49,"and"),e(),t(50,"a",9),n(51,"Privacy Policy"),e()()(),t(52,"button",23),_("click",function(){return x(d),w(a.register())}),t(53,"span"),n(54,"Create your account"),e(),p(55,Ee,1,2,"mat-progress-spinner",24),e()()()(),t(56,"div",25),S(),t(57,"svg",26)(58,"g",27),l(59,"circle",28)(60,"circle",29),e()(),t(61,"svg",30)(62,"defs")(63,"pattern",31),l(64,"rect",32),e()(),l(65,"rect",33),e(),F(),t(66,"div",34)(67,"div",35)(68,"div"),n(69,"Angor Hub"),e()(),t(70,"div",36),n(71," Angor Hub is a Nostr client that is customized around the Angor protocol, a decentralized crowdfunding platform. "),e()()()()}if(s&2){let d=b(37);o(10),r("routerLink",h(20,xe)),o(2),E(a.showAlert?12:-1),o(),r("formGroup",a.registerForm),o(5),r("formControlName","name"),o(),r("ngIf",a.registerForm.get("name").hasError("required")),o(4),r("formControlName","username"),o(),r("ngIf",a.registerForm.get("username").hasError("required")),o(4),r("formControlName","about"),o(4),r("formControlName","avatarUrl"),o(4),r("formControlName","password"),o(3),r("ngIf",d.type==="password"),o(),r("ngIf",d.type==="text"),o(),r("ngIf",a.registerForm.get("password").hasError("required")),o(2),r("color","primary")("formControlName","agreements"),o(3),r("routerLink",h(21,ce)),o(4),r("routerLink",h(22,ce)),o(2),r("color","primary")("disabled",a.registerForm.invalid),o(3),r("ngIf",a.registerForm.disabled)}},dependencies:[B,me,re,Z,J,W,X,ie,$,ee,G,z,L,j,P,ne,oe,H,D,Q,O,K,se,le,pe,de,q,T],encapsulation:2,data:{animation:Y}});let i=m;return i})();var Ze=[{path:"",component:ue}];export{Ze as default}; +import{a as le,b as se,c as de,d as pe}from"./chunk-7TGJR4WL.js";import{a as me}from"./chunk-2L6QON5Y.js";import"./chunk-HXPRHIP3.js";import{b as ae}from"./chunk-MYVAGBPZ.js";import{a as Y}from"./chunk-GTCJWQQT.js";import{D as J,F as f,H as W,I as X,M as Z,O as $,P as ee,S as te,T as re,U as ie,V as oe,W as ne,q as L,r as j,u as P,y as z,z as G}from"./chunk-4AZPYN7Q.js";import"./chunk-BLRJMPLX.js";import{$ as H,X as D,Z as Q,ba as K,ca as O}from"./chunk-MH4Z64LL.js";import{$a as E,Ba as o,Bb as R,Ca as v,Hb as U,Ib as h,Pa as p,Ua as r,ba as C,cb as t,db as e,eb as l,fc as T,ia as x,ib as M,ja as w,ka as S,kc as q,la as F,lb as _,nb as I,tb as k,ub as N,vb as A,xc as V,yb as b,yc as B,zb as n}from"./chunk-LP5NDBXI.js";var ye=["registerNgForm"],xe=()=>["/login"],ce=()=>["./"];function we(i,m){if(i&1&&(t(0,"angor-alert",10),n(1),e()),i&2){let y=I();r("appearance","outline")("showIcon",!1)("type",y.alert.type)("@shake",y.alert.type==="error"),o(),R(" ",y.alert.message," ")}}function _e(i,m){i&1&&(t(0,"mat-error"),n(1," Full name is required "),e())}function be(i,m){i&1&&(t(0,"mat-error"),n(1," Username is required "),e())}function Ce(i,m){i&1&&l(0,"mat-icon",37),i&2&&r("svgIcon","heroicons_solid:eye")}function Se(i,m){i&1&&l(0,"mat-icon",37),i&2&&r("svgIcon","heroicons_solid:eye-slash")}function Fe(i,m){i&1&&(t(0,"mat-error"),n(1," Password is required "),e())}function Ee(i,m){i&1&&l(0,"mat-progress-spinner",38),i&2&&r("diameter",24)("mode","indeterminate")}var ue=(()=>{let m=class m{constructor(c,s,a){this._formBuilder=c,this._router=s,this._signerService=a,this.alert={type:"success",message:""},this.showAlert=!1}ngOnInit(){this.registerForm=this._formBuilder.group({name:["",f.required],username:["",f.required],about:[""],avatarUrl:[""],password:["",f.required],agreements:["",f.requiredTrue]})}register(){if(this.registerForm.invalid)return;this.registerForm.disable(),this.showAlert=!1;let c=this.registerForm.get("name")?.value,s=this.registerForm.get("username")?.value,a=this.registerForm.get("about")?.value,d=this.registerForm.get("avatarUrl")?.value,g=this.registerForm.get("password")?.value,u=this._signerService.generateAndStoreKeys(g);if(!u){this.registerForm.enable(),this.alert={type:"error",message:"Error generating keys. Please try again."},this.showAlert=!0;return}let{secretKey:fe,pubkey:ge,npub:ve,nsec:he}=u;console.log("User Metadata:",{secretKey:fe,name:c,username:s,about:a,avatarUrl:d,password:g,pubkey:ge,npub:ve,nsec:he}),this.alert={type:"success",message:"Account created successfully!"},this.showAlert=!0,this._router.navigateByUrl("/home")}};m.\u0275fac=function(s){return new(s||m)(v(te),v(V),v(ae))},m.\u0275cmp=C({type:m,selectors:[["auth-register"]],viewQuery:function(s,a){if(s&1&&k(ye,5),s&2){let d;N(d=A())&&(a.registerNgForm=d.first)}},standalone:!0,features:[U],decls:72,vars:23,consts:[["registerNgForm","ngForm"],["passwordField",""],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"w-12"],["src","images/logo/logo.svg"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-8",3,"formGroup"],[1,"w-full"],["id","name","matInput","","autocomplete","name",3,"formControlName"],[4,"ngIf"],["id","username","matInput","","autocomplete","username",3,"formControlName"],["id","about","matInput","",3,"formControlName"],["id","avatarUrl","matInput","","autocomplete","avatarUrl",3,"formControlName"],["id","password","matInput","","type","password","autocomplete","password",3,"formControlName"],["mat-icon-button","","type","button","matSuffix","",3,"click"],["class","icon-size-5",3,"svgIcon",4,"ngIf"],[1,"mt-1.5","inline-flex","w-full","items-end"],[1,"-ml-2",3,"color","formControlName"],["mat-flat-button","",1,"angor-mat-button-large","mt-6","w-full",3,"click","color","disabled"],[3,"diameter","mode",4,"ngIf"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"absolute","inset-0","pointer-events-none"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-top-16","-right-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"icon-size-5",3,"svgIcon"],[3,"diameter","mode"]],template:function(s,a){if(s&1){let d=M();t(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),l(4,"img",6),e(),t(5,"div",7),n(6," Register "),e(),t(7,"div",8)(8,"div"),n(9,"Already have an account?"),e(),t(10,"a",9),n(11,"Login "),e()(),p(12,we,2,5,"angor-alert",10),t(13,"form",11,0)(15,"mat-form-field",12)(16,"mat-label"),n(17,"Full name"),e(),l(18,"input",13),p(19,_e,2,0,"mat-error",14),e(),t(20,"mat-form-field",12)(21,"mat-label"),n(22,"Username"),e(),l(23,"input",15),p(24,be,2,0,"mat-error",14),e(),t(25,"mat-form-field",12)(26,"mat-label"),n(27,"About"),e(),l(28,"textarea",16),e(),t(29,"mat-form-field",12)(30,"mat-label"),n(31,"Avatar URL"),e(),l(32,"input",17),e(),t(33,"mat-form-field",12)(34,"mat-label"),n(35,"Password"),e(),l(36,"input",18,1),t(38,"button",19),_("click",function(){x(d);let u=b(37);return w(u.type==="password"?u.type="text":u.type="password")}),p(39,Ce,1,1,"mat-icon",20)(40,Se,1,1,"mat-icon",20),e(),p(41,Fe,2,0,"mat-error",14),e(),t(42,"div",21)(43,"mat-checkbox",22)(44,"span"),n(45,"I agree with"),e(),t(46,"a",9),n(47,"Terms"),e(),t(48,"span"),n(49,"and"),e(),t(50,"a",9),n(51,"Privacy Policy"),e()()(),t(52,"button",23),_("click",function(){return x(d),w(a.register())}),t(53,"span"),n(54,"Create your account"),e(),p(55,Ee,1,2,"mat-progress-spinner",24),e()()()(),t(56,"div",25),S(),t(57,"svg",26)(58,"g",27),l(59,"circle",28)(60,"circle",29),e()(),t(61,"svg",30)(62,"defs")(63,"pattern",31),l(64,"rect",32),e()(),l(65,"rect",33),e(),F(),t(66,"div",34)(67,"div",35)(68,"div"),n(69,"Angor Hub"),e()(),t(70,"div",36),n(71," Angor Hub is a Nostr client that is customized around the Angor protocol, a decentralized crowdfunding platform. "),e()()()()}if(s&2){let d=b(37);o(10),r("routerLink",h(20,xe)),o(2),E(a.showAlert?12:-1),o(),r("formGroup",a.registerForm),o(5),r("formControlName","name"),o(),r("ngIf",a.registerForm.get("name").hasError("required")),o(4),r("formControlName","username"),o(),r("ngIf",a.registerForm.get("username").hasError("required")),o(4),r("formControlName","about"),o(4),r("formControlName","avatarUrl"),o(4),r("formControlName","password"),o(3),r("ngIf",d.type==="password"),o(),r("ngIf",d.type==="text"),o(),r("ngIf",a.registerForm.get("password").hasError("required")),o(2),r("color","primary")("formControlName","agreements"),o(3),r("routerLink",h(21,ce)),o(4),r("routerLink",h(22,ce)),o(2),r("color","primary")("disabled",a.registerForm.invalid),o(3),r("ngIf",a.registerForm.disabled)}},dependencies:[B,me,re,Z,J,W,X,ie,$,ee,G,z,L,j,P,ne,oe,H,D,Q,O,K,se,le,pe,de,q,T],encapsulation:2,data:{animation:Y}});let i=m;return i})();var Ze=[{path:"",component:ue}];export{Ze as default}; diff --git a/chunk-FSQVH6RP.js b/chunk-VNXQB3RV.js similarity index 99% rename from chunk-FSQVH6RP.js rename to chunk-VNXQB3RV.js index f1364fd..31fe3ab 100644 --- a/chunk-FSQVH6RP.js +++ b/chunk-VNXQB3RV.js @@ -1 +1 @@ -import{a as se,b as de}from"./chunk-BVVMJWCI.js";import{a as ee,b as te,c as ie,d as ne}from"./chunk-LKKRLEHJ.js";import{a as ve}from"./chunk-DQUACDFU.js";import{a as Q,b as Z}from"./chunk-BK7YAMGQ.js";import{b as pe}from"./chunk-ZSOMQRTJ.js";import{t as oe,v as ce}from"./chunk-PWH2GQNP.js";import"./chunk-GTCJWQQT.js";import{A as ae,B as re,V as le,W as me,y as O,z as G}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as J,X as V,Y as K,Z as q,ba as X,ca as $}from"./chunk-MH4Z64LL.js";import{Aa as b,Ab as E,Ba as a,Bb as A,Ca as g,Hb as z,Ib as s,Jb as U,Pa as F,Q as y,Rb as D,Ua as r,Wb as H,ba as k,cb as e,db as t,dc as P,eb as n,fb as _,fc as B,gb as I,h as C,ia as j,ib as T,ja as L,k as M,kc as N,lb as R,nb as w,qb as h,tc as Y,yb as m,yc as W,zb as i}from"./chunk-LP5NDBXI.js";var c=()=>["./"],Ce=p=>({"rotate-180":p});function Me(p,u){if(p&1&&(_(0),n(1,"img",169),I()),p&2){let d=w();a(),h("alt",(d.metadata==null?null:d.metadata.display_name)||(d.metadata==null?null:d.metadata.name)||"Avatar"),r("src",d.getSafeUrl(d.metadata==null?null:d.metadata.picture),b)}}function ke(p,u){if(p&1&&n(0,"img",170),p&2){let d=w();h("alt",(d.metadata==null?null:d.metadata.display_name)||(d.metadata==null?null:d.metadata.name)||"Avatar")}}var ue=(()=>{let u=class u{constructor(o,v,l,x,S){this._changeDetectorRef=o,this._metadataService=v,this._signerService=l,this._indexedDBService=x,this._sanitizer=S,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new M}ngOnInit(){this.loadUserProfile(),this._indexedDBService.getMetadataStream().pipe(y(this._unsubscribeAll)).subscribe(o=>{o&&o.pubkey===this.user?.pubkey&&(this.metadata=o.metadata,this._changeDetectorRef.detectChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){return C(this,null,function*(){this.isLoading=!0,this.errorMessage=null;let o=this._signerService.getPublicKey();if(!o){this.errorMessage="No public key found. Please log in again.",this.isLoading=!1,this._changeDetectorRef.detectChanges();return}this.user={pubkey:o};try{let v=yield this._metadataService.fetchMetadataWithCache(o);v&&(this.metadata=v,this._changeDetectorRef.detectChanges()),this._metadataService.getMetadataStream().pipe(y(this._unsubscribeAll)).subscribe(l=>{l&&l.pubkey===o&&(this.metadata=l,this._changeDetectorRef.detectChanges())})}catch(v){console.error("Failed to load profile data:",v),this.errorMessage="Failed to load profile data. Please try again later.",this._changeDetectorRef.detectChanges()}finally{this.isLoading=!1,this._changeDetectorRef.detectChanges()}})}getSafeUrl(o){return this._sanitizer.bypassSecurityTrustUrl(o)}};u.\u0275fac=function(v){return new(v||u)(g(H),g(ce),g(pe),g(oe),g(Y))},u.\u0275cmp=k({type:u,selectors:[["profile"]],standalone:!0,features:[z],decls:958,vars:148,consts:[["defaultAvatar",""],["listCard08Menu","matMenu"],["listCard09Menu","matMenu"],["listCard02Menu","matMenu"],["listCard01Menu","matMenu"],["listCard04Menu","matMenu"],["postCardMenu01","matMenu"],["expandableCard02","angorCard"],["postCardMenu02","matMenu"],["postCardMenu08","matMenu"],["postCardMenu04","matMenu"],["postCardMenu10","matMenu"],["postCardMenu03","matMenu"],["postCardMenu09","matMenu"],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"bg-card","flex","flex-col","shadow"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';",1,"h-40","object-cover","lg:h-80",3,"src","alt"],[1,"bg-card","mx-auto","flex","w-full","max-w-5xl","flex-0","flex-col","items-center","px-8","lg:h-18","lg:flex-row"],[1,"-mt-26","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"text-lg","font-bold","leading-none"],[1,"text-secondary"],[1,"mx-8","hidden","h-8","border-l-2","lg:flex"],[1,"mt-6","flex","items-center","space-x-6","lg:mt-0"],[1,"flex","flex-col","items-center"],[1,"font-bold"],[1,"text-secondary","text-sm","font-medium"],[1,"mb-4","mt-8","flex","items-center","space-x-6","lg:m-0","lg:ml-auto"],[1,"font-medium",3,"routerLink"],[1,"text-secondary",3,"routerLink"],[1,"mx-auto","flex","w-full","max-w-5xl","flex-auto","justify-center","p-6","sm:p-8"],[1,"mr-8","hidden","flex-col","items-start","lg:flex"],[1,"flex","w-full","max-w-80","flex-col","p-8"],[1,"text-2xl","font-semibold","leading-tight"],[1,"mt-4"],[1,"my-6","w-full","border-t"],[1,"flex","flex-col"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],[1,"leading-none"],[1,"mt-4","flex","items-center"],["mat-flat-button","",1,"mt-8","px-6",3,"color","routerLink"],[1,"mt-8","flex","w-full","max-w-80","flex-col","px-8","pb-4","pt-6"],[1,"flex","items-center","justify-between"],[1,"-mr-3"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item",""],[1,"mt-6","flex","justify-between"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"h-14","w-14","rounded-full"],[1,"mt-3","flex","justify-between"],[1,"-mx-3","mt-6","flex","items-center"],["mat-button","",1,"px-3",3,"color","routerLink"],["src","images/cards/14-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/15-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/16-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/17-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/18-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/19-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/20-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/21-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/22-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/23-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/24-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/25-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/26-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/27-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/28-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/29-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],[1,"mt-5","flex","flex-col"],["src","images/cards/coffee-shop-01-320x200.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],[1,"flex","min-w-0","flex-col"],[1,"font-medium","leading-none"],[1,"mt-1","truncate","text-md","leading-none"],[1,"text-secondary","mt-2","text-md","leading-none"],[1,"mt-6","flex","items-center"],["src","images/cards/coffee-shop-02-512x512.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],["src","images/cards/coffee-shop-03-320x320.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],["src","images/cards/sneakers-01-320x200.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],[1,"flex"],[1,"mr-2","mt-0.5","icon-size-5",3,"svgIcon"],[1,"mt-5","flex"],[1,"text-secondary","whitespace-nowrap","hover:underline",3,"routerLink"],[1,"-mx-3","mt-4","flex","items-center"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-4","h-10","w-10","rounded-full"],[1,"leading-tight"],[1,"mt-8","flex"],[1,"flex","flex-col","items-start"],[1,"flex","w-full","max-w-140","flex-col","p-6","pb-6","sm:p-8"],[1,"text-xl","font-semibold"],[1,"mt-8","flex","flex-col","items-start","sm:flex-row"],[1,"mb-6","flex","items-center","sm:mb-0"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-12","w-12","min-w-12","rounded-full",3,"src","alt"],[1,"sm:hidden"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","sm:mt-8"],["mat-button","",1,"mr-1","px-3"],[1,"ml-2"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],[1,"mt-8","flex","w-full","max-w-140","flex-col"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"],["mat-icon-button","",1,"-mr-4","ml-auto",3,"matMenuTriggerFor"],[1,"my-2"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],[1,"relative","mb-4"],["src","images/cards/14-640x480.jpg","alt","Card cover image",1,"h-80","object-cover"],[1,"absolute","bottom-0","left-0","m-4","flex","h-8","w-8","cursor-pointer","items-center","justify-center","rounded-full","bg-gray-700",3,"matTooltip","matTooltipPosition"],[1,"text-gray-100","icon-size-4",3,"svgIcon"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"text-red-500","icon-size-5",3,"svgIcon"],[1,"mx-6","mb-6","mt-4","border-b","sm:mx-8"],[1,"mx-6","mb-4","flex","flex-col","sm:mx-8","sm:mb-6","sm:flex-row","sm:items-center"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"text-card","m-0.5","h-6","w-6","rounded-full","ring-2","ring-white"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"text-card","m-0.5","-ml-3","h-6","w-6","rounded-full","ring-2","ring-white"],[1,"ml-3","text-md","tracking-tight"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"-ml-2","mr-1","px-3","sm:ml-0"],["mat-button","",1,"px-3","sm:-mr-4",3,"click"],[1,"mr-1"],[1,"rotate-0","transition-transform","duration-150","ease-in-out","icon-size-5",3,"ngClass","svgIcon"],["angorCardExpansion",""],[1,"m-0","border-b"],[1,"mx-4","mb-3","mt-6","flex","flex-col","sm:mx-8"],[1,"flex","items-start"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-5","h-12","w-12","rounded-full"],[1,"-mr-3","ml-auto","mt-3","flex","items-center"],["mat-icon-button",""],[1,"mx-4","my-0","border-b","sm:mx-8"],[1,"max-h-120","overflow-y-auto"],[1,"relative","mx-4","my-6","flex","flex-col","sm:mx-8"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-4","h-8","w-8","rounded-full"],[1,"mt-0.5","flex","flex-col"],[1,"text-secondary","mt-2","flex","items-center","text-sm"],[1,"mr-2","cursor-pointer","hover:underline"],[1,"mr-2"],[1,"ml-12","mt-8","flex","items-start"],[1,"mt-8","flex","items-start"],[1,"mx-6","mb-1","mt-6","flex","items-center","sm:mx-8"],[1,"m-6","sm:mx-8"],["mat-button","",1,"px-3","sm:-mr-3"],[1,"mx-6","mb-4","flex","sm:mx-8"],[1,"flex","h-80","pr-1"],["src","images/cards/17-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","flex-col","pl-1"],[1,"flex","h-40","pb-1"],["src","images/cards/18-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","h-40","pt-1"],["src","images/cards/19-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"mx-6","mb-4","sm:mx-8"],[1,"flex","flex-col","overflow-hidden","rounded","border"],[1,"flex","h-80"],["src","images/cards/36-640x480.jpg","alt","Card cover image",1,"object-cover"],[1,"m-4"],[1,"text-lg","font-medium"],[1,"text-secondary","mt-1"],[1,"text-hint","mt-2","text-sm"],["src","images/cards/15-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","h-80","pl-1"],["src","images/cards/16-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","overflow-hidden","rounded","border"],[1,"w-40","flex-0"],["src","images/cards/35-640x480.jpg","alt","Card cover image",1,"h-full","w-full","object-cover"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","w-32","rounded-full","ring-4","object-cover",3,"src","alt"],["src","/images/avatars/avatar-placeholder.png","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","w-32","rounded-full","ring-4",3,"alt"]],template:function(v,l){if(v&1){let x=T();e(0,"div",14)(1,"div",15)(2,"div"),n(3,"img",16),t(),e(4,"div",17)(5,"div",18),F(6,Me,2,2,"ng-container",19)(7,ke,1,1,"ng-template",null,0,D),t(),e(9,"div",20)(10,"div",21),i(11),t(),e(12,"div",22),i(13),t()(),n(14,"div",23),e(15,"div",24)(16,"div",25)(17,"span",26),i(18,"200k"),t(),e(19,"span",27),i(20,"FOLLOWERS"),t()(),e(21,"div",25)(22,"span",26),i(23,"1.2k"),t(),e(24,"span",27),i(25,"FOLLOWING"),t()()(),e(26,"div",28)(27,"a",29),i(28," Notes "),t(),e(29,"a",30),i(30," About "),t(),e(31,"a",30),i(32," Followers "),t(),e(33,"a",30),i(34," Gallery "),t()()()(),e(35,"div",31)(36,"div",32)(37,"angor-card",33)(38,"div",34),i(39,"About Me"),t(),e(40,"div",35),i(41),t(),n(42,"hr",36),e(43,"div",37)(44,"div",38),n(45,"mat-icon",39),e(46,"span",40),i(47,"London, UK"),t()(),e(48,"div",41),n(49,"mat-icon",39),e(50,"span",40),i(51,"ACME Corp. Lead UX Designer"),t()(),e(52,"div",41),n(53,"mat-icon",39),e(54,"span",40),i(55,"April, 24"),t()()(),e(56,"a",42),i(57," See complete bio "),t()(),e(58,"angor-card",43)(59,"div",44)(60,"div",34),i(61," Followers "),t(),e(62,"div",45)(63,"button",46),n(64,"mat-icon",47),t(),e(65,"mat-menu",null,1)(67,"button",48),i(68,"Find friends"),t()()()(),e(69,"div",37)(70,"div",49),n(71,"img",50)(72,"img",50)(73,"img",50)(74,"img",50),t(),e(75,"div",51),n(76,"img",50)(77,"img",50)(78,"img",50)(79,"img",50),t(),e(80,"div",51),n(81,"img",50)(82,"img",50)(83,"img",50)(84,"img",50),t(),e(85,"div",51),n(86,"img",50)(87,"img",50)(88,"img",50)(89,"img",50),t()(),e(90,"div",52)(91,"a",53),i(92," See all followers "),t()()(),e(93,"angor-card",43)(94,"div",44)(95,"div",34),i(96," Gallery "),t(),e(97,"div",45)(98,"button",46),n(99,"mat-icon",47),t(),e(100,"mat-menu",null,2)(102,"button",48),i(103,"Add image"),t(),e(104,"button",48),i(105,"Add video"),t()()()(),e(106,"div",37)(107,"div",49),n(108,"img",54)(109,"img",55)(110,"img",56)(111,"img",57),t(),e(112,"div",51),n(113,"img",58)(114,"img",59)(115,"img",60)(116,"img",61),t(),e(117,"div",51),n(118,"img",62)(119,"img",63)(120,"img",64)(121,"img",65),t(),e(122,"div",51),n(123,"img",66)(124,"img",67)(125,"img",68)(126,"img",69),t()(),e(127,"div",52)(128,"a",53),i(129," See entire gallery "),t()()(),e(130,"angor-card",43)(131,"div",44)(132,"div",34),i(133," Groups "),t(),e(134,"div",45)(135,"button",46),n(136,"mat-icon",47),t(),e(137,"mat-menu",null,3)(139,"button",48),i(140,"Search for groups"),t()()()(),e(141,"div",70)(142,"div",38),n(143,"img",71),e(144,"div",72)(145,"div",73),i(146," The Port Cafe "),t(),e(147,"div",74),i(148," Best cafe of the downtown New York "),t(),e(149,"div",75),i(150," 1.2k followers "),t()()(),e(151,"div",76),n(152,"img",77),e(153,"div",72)(154,"div",73),i(155," Design House LLC. "),t(),e(156,"div",74),i(157," UI/UX, brand and product design "),t(),e(158,"div",75),i(159," 957 followers "),t()()(),e(160,"div",76),n(161,"img",78),e(162,"div",72)(163,"div",73),i(164," Crax Laser Tag "),t(),e(165,"div",74),i(166," 30% off with group of 6 people "),t(),e(167,"div",75),i(168," 342 followers "),t()()(),e(169,"div",76),n(170,"img",79),e(171,"div",72)(172,"div",73),i(173," Roadster Clothing Inc. "),t(),e(174,"div",74),i(175," $25 off on orders $500 and over "),t(),e(176,"div",75),i(177," 4.7k followers "),t()()()(),e(178,"div",52)(179,"a",53),i(180," See all groups "),t()()(),e(181,"angor-card",43)(182,"div",44)(183,"div",34),i(184,"News"),t(),e(185,"div",45)(186,"button",46),n(187,"mat-icon",47),t(),e(188,"mat-menu",null,4)(190,"button",48),i(191,"Mark all as read"),t()()()(),e(192,"div",70)(193,"div",80),n(194,"mat-icon",81),e(195,"div")(196,"b"),i(197,"20% OFF"),t(),i(198," in your favorite hats shop on next Friday. "),t()(),e(199,"div",82),n(200,"mat-icon",81),e(201,"div"),i(202," Upcoming meetups within 20 miles. "),e(203,"a",83),i(204,"See details "),t()()(),e(205,"div",82),n(206,"mat-icon",81),e(207,"div"),i(208," Concerts from your favorite bands available within 100 miles. "),e(209,"a",83),i(210,"See details "),t()()()(),e(211,"div",84)(212,"a",53),i(213," See all news "),t()()(),e(214,"angor-card",43)(215,"div",44)(216,"div",34),i(217," Activity Feed "),t(),e(218,"div",45)(219,"button",46),n(220,"mat-icon",47),t(),e(221,"mat-menu",null,5)(223,"button",48),i(224,"Clear activities"),t()()()(),e(225,"div",70)(226,"div",80),n(227,"img",85),e(228,"div",72)(229,"div",86),i(230," Amelia Edwards commented on John Silverton's photo "),t(),e(231,"div",75),i(232," 4 minutes ago "),t()()(),e(233,"div",87),n(234,"img",85),e(235,"div",72)(236,"div",86),i(237," Lew Silverton changed his profile photo "),t(),e(238,"div",75),i(239," 25 minutes ago "),t()()(),e(240,"div",87),n(241,"img",85),e(242,"div",72)(243,"div",86),i(244," Display Name liked your photo "),t(),e(245,"div",75),i(246," 3 hours ago "),t()()(),e(247,"div",87),n(248,"img",85),e(249,"div",72)(250,"div",86),i(251," Marleah Eagleston commented on John Silverton's photo "),t(),e(252,"div",75),i(253," Yesterday "),t()()()(),e(254,"div",52)(255,"a",53),i(256," See entire activity feed "),t()()()(),e(257,"div",88)(258,"angor-card",89)(259,"div",90),i(260,"Create Post"),t(),e(261,"div",91)(262,"div",92),n(263,"img",93),e(264,"div",94),i(265),t()(),e(266,"mat-form-field",95),n(267,"textarea",96),t()(),e(268,"div",97)(269,"button",98),n(270,"mat-icon",47),e(271,"span",99),i(272,"Photo / Video"),t()(),e(273,"button",100),n(274,"mat-icon",47),e(275,"span",99),i(276,"Tag Friends"),t()(),e(277,"button",100),n(278,"mat-icon",47),e(279,"span",99),i(280,"Feeling"),t()(),e(281,"button",101),n(282,"mat-icon",47),t(),e(283,"mat-menu",null,6)(285,"button",102)(286,"span",38),n(287,"mat-icon",39),e(288,"span"),i(289,"Tag Friends"),t()()(),e(290,"button",102)(291,"span",38),n(292,"mat-icon",39),e(293,"span"),i(294,"Feeling"),t()()(),e(295,"button",48)(296,"span",38),n(297,"mat-icon",39),e(298,"span"),i(299,"Live"),t()()(),e(300,"button",48)(301,"span",38),n(302,"mat-icon",39),e(303,"span"),i(304,"Gif"),t()()(),e(305,"button",48)(306,"span",38),n(307,"mat-icon",39),e(308,"span"),i(309,"Check in"),t()()()()()(),e(310,"angor-card",103,7)(312,"div",104),n(313,"img",85),e(314,"div",37)(315,"span",105),i(316,"Caroline Lundu"),t(),e(317,"span",106),i(318,"29 minutes ago"),t()(),e(319,"button",107),n(320,"mat-icon",47),t(),e(321,"mat-menu",null,8)(323,"button",48)(324,"span",38),n(325,"mat-icon",39),e(326,"span"),i(327,"Save post"),t()()(),e(328,"button",48)(329,"span",38),n(330,"mat-icon",39),e(331,"span"),i(332,"Hide post"),t()()(),e(333,"button",48)(334,"span",38),n(335,"mat-icon",39),e(336,"span"),i(337,"Snooze for 30 days"),t()()(),e(338,"button",48)(339,"span",38),n(340,"mat-icon",39),e(341,"span"),i(342,"Hide all"),t()()(),n(343,"mat-divider",108),e(344,"button",48)(345,"span",38),n(346,"mat-icon",39),e(347,"span"),i(348,"Report post"),t()()(),e(349,"button",48)(350,"span",38),n(351,"mat-icon",39),e(352,"span"),i(353,"Turn on notifications for this post"),t()()()()(),e(354,"div",109),i(355," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(356,"div",110),n(357,"img",111),e(358,"div",112),n(359,"mat-icon",113),t()(),e(360,"div",114)(361,"button",98),n(362,"mat-icon",115),e(363,"span",99),i(364,"Unlike"),t()(),e(365,"button",98),n(366,"mat-icon",47),e(367,"span",99),i(368,"Comment"),t()(),e(369,"button",98),n(370,"mat-icon",47),e(371,"span",99),i(372,"Share"),t()()(),n(373,"hr",116),e(374,"div",117)(375,"div",38),n(376,"img",118)(377,"img",119)(378,"img",119)(379,"img",119),e(380,"div",120),i(381," You and 24 more liked this "),t()(),n(382,"div",121),e(383,"div",122)(384,"button",123),i(385," 4 shares "),t(),e(386,"button",124),R("click",function(){j(x);let f=m(311);return L(f.expanded=!f.expanded)}),e(387,"span",125),i(388,"5 Comments"),t(),n(389,"mat-icon",126),t()()(),_(390,127),n(391,"hr",128),e(392,"div",129)(393,"div",130),n(394,"img",131),e(395,"mat-form-field",95),n(396,"textarea",96),t()(),e(397,"div",132)(398,"button",133),n(399,"mat-icon",47),t(),e(400,"button",133),n(401,"mat-icon",47),t(),e(402,"button",133),n(403,"mat-icon",47),t()()(),n(404,"hr",134),e(405,"div",135)(406,"div",136)(407,"div",130),n(408,"img",137),e(409,"div",138)(410,"span")(411,"b"),i(412,"Rutherford Brannan"),t(),i(413," Oh, I\u2019m in.. Let\u2019s arrange a trip for the next weekend if you want! "),t(),e(414,"div",139)(415,"span",140),i(416,"Like"),t(),e(417,"span",140),i(418,"Reply"),t(),e(419,"span",140),i(420,"Hide replies"),t(),e(421,"span",141),i(422,"\u2022"),t(),e(423,"span"),i(424,"17 min"),t()()()(),e(425,"div",142),n(426,"img",137),e(427,"div",138)(428,"span")(429,"b"),i(430,"Caroline Lundu"),t(),i(431," Yes!! Let's talk about it on lunch! "),t(),e(432,"div",139)(433,"span",140),i(434,"Like"),t(),e(435,"span",140),i(436,"Reply"),t(),e(437,"span",141),i(438,"\u2022"),t(),e(439,"span"),i(440,"15 min"),t()()()(),e(441,"div",142),n(442,"img",137),e(443,"div",138)(444,"span")(445,"b"),i(446,"Barbara Cotilla"),t(),i(447," Count me in !!! "),t(),e(448,"div",139)(449,"span",140),i(450,"Like"),t(),e(451,"span",140),i(452,"Reply"),t(),e(453,"span",141),i(454,"\u2022"),t(),e(455,"span"),i(456,"12 min"),t()()()(),e(457,"div",143),n(458,"img",137),e(459,"div",138)(460,"span")(461,"b"),i(462,"Alan Marti"),t(),i(463," The color of the sky doesn\u2019t look natural at all, do you really think this is natural? I\u2019d say Photoshop! Your trip isn't going to worth it since you won't be seeing this exact sky. "),t(),e(464,"div",139)(465,"span",140),i(466,"Like"),t(),e(467,"span",140),i(468,"Reply"),t(),e(469,"span",140),i(470,"Hide replies"),t(),e(471,"span",141),i(472,"\u2022"),t(),e(473,"span"),i(474,"24 min"),t()()()(),e(475,"div",142),n(476,"img",137),e(477,"div",138)(478,"span")(479,"b"),i(480,"Caroline Lundu"),t(),i(481," Hey, Alan! You must be fun at parties! "),t(),e(482,"div",139)(483,"span",140),i(484,"Like"),t(),e(485,"span",140),i(486,"Reply"),t(),e(487,"span",141),i(488,"\u2022"),t(),e(489,"span"),i(490,"22 min"),t()()()(),e(491,"div",142),n(492,"img",137),e(493,"div",138)(494,"span")(495,"b"),i(496,"Alan Marti"),t(),i(497," Caroline, I'm telling the truth, and if you cannot stand the truth, maybe we shouldn't be friends anymore... "),t(),e(498,"div",139)(499,"span",140),i(500,"Like"),t(),e(501,"span",140),i(502,"Reply"),t(),e(503,"span",141),i(504,"\u2022"),t(),e(505,"span"),i(506,"20 min"),t()()()(),e(507,"div",142),n(508,"img",137),e(509,"div",138)(510,"span")(511,"b"),i(512,"Caroline Lundu"),t(),i(513," Dude! Relax! I'm just messing with you... "),t(),e(514,"div",139)(515,"span",140),i(516,"Like"),t(),e(517,"span",140),i(518,"Reply"),t(),e(519,"span",141),i(520,"\u2022"),t(),e(521,"span"),i(522,"18 min"),t()()()(),e(523,"div",142),n(524,"img",137),e(525,"div",138)(526,"span")(527,"b"),i(528,"Alan Marti"),t(),i(529," Sorry! I had a bad morning, let's talk about this in couple hours, I need to relax a bit :( "),t(),e(530,"div",139)(531,"span",140),i(532,"Like"),t(),e(533,"span",140),i(534,"Reply"),t(),e(535,"span",141),i(536,"\u2022"),t(),e(537,"span"),i(538,"16 min"),t()()()(),e(539,"div",143),n(540,"img",137),e(541,"div",138)(542,"span")(543,"b"),i(544,"Marleah Eagleston"),t(),i(545," Count me in, too! "),t(),e(546,"div",139)(547,"span",140),i(548,"Like"),t(),e(549,"span",140),i(550,"Reply"),t(),e(551,"span",141),i(552,"\u2022"),t(),e(553,"span"),i(554,"34 min"),t()()()()()(),I(),t(),e(555,"angor-card",103)(556,"div",144),n(557,"img",85),e(558,"div",37)(559,"span",105),i(560,"Caroline Lundu"),t(),e(561,"span",106),i(562,"29 minutes ago"),t()(),e(563,"button",107),n(564,"mat-icon",47),t(),e(565,"mat-menu",null,9)(567,"button",48)(568,"span",38),n(569,"mat-icon",39),e(570,"span"),i(571,"Save post"),t()()(),e(572,"button",48)(573,"span",38),n(574,"mat-icon",39),e(575,"span"),i(576,"Hide post"),t()()(),e(577,"button",48)(578,"span",38),n(579,"mat-icon",39),e(580,"span"),i(581,"Snooze for 30 days"),t()()(),e(582,"button",48)(583,"span",38),n(584,"mat-icon",39),e(585,"span"),i(586,"Hide all"),t()()(),n(587,"mat-divider",108),e(588,"button",48)(589,"span",38),n(590,"mat-icon",39),e(591,"span"),i(592,"Report post"),t()()(),e(593,"button",48)(594,"span",38),n(595,"mat-icon",39),e(596,"span"),i(597,"Turn on notifications for this post"),t()()()()(),e(598,"div",145)(599,"p"),i(600," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. Let's build some happy little clouds up here. I was blessed with a very steady hand; and it comes in very handy when you're doing these little delicate things. This is the fun part. "),t(),e(601,"p",35),i(602," Isn't it great to do something you can't fail at? Little trees and bushes grow however makes them happy. Trees get lonely too, so we'll give him a little friend. There are no mistakes. You can fix anything that happens. "),t()(),e(603,"div",114)(604,"button",98),n(605,"mat-icon",115),e(606,"span",99),i(607,"Unlike"),t()(),e(608,"button",98),n(609,"mat-icon",47),e(610,"span",99),i(611,"Comment"),t()(),e(612,"button",98),n(613,"mat-icon",47),e(614,"span",99),i(615,"Share"),t()()(),n(616,"hr",116),e(617,"div",117)(618,"div",38),n(619,"img",118)(620,"img",119)(621,"img",119)(622,"img",119),e(623,"div",120),i(624," You and 24 more liked this "),t()(),n(625,"div",121),e(626,"div",122)(627,"button",123),i(628," 4 shares "),t(),e(629,"button",146),i(630," No comments "),t()()()(),e(631,"angor-card",103)(632,"div",104),n(633,"img",85),e(634,"div",37)(635,"span",105),i(636,"Marleah Eagleston"),t(),e(637,"span",106),i(638,"29 minutes ago"),t()(),e(639,"button",107),n(640,"mat-icon",47),t(),e(641,"mat-menu",null,10)(643,"button",48)(644,"span",38),n(645,"mat-icon",39),e(646,"span"),i(647,"Save post"),t()()(),e(648,"button",48)(649,"span",38),n(650,"mat-icon",39),e(651,"span"),i(652,"Hide post"),t()()(),e(653,"button",48)(654,"span",38),n(655,"mat-icon",39),e(656,"span"),i(657,"Snooze for 30 days"),t()()(),e(658,"button",48)(659,"span",38),n(660,"mat-icon",39),e(661,"span"),i(662,"Hide all"),t()()(),n(663,"mat-divider",108),e(664,"button",48)(665,"span",38),n(666,"mat-icon",39),e(667,"span"),i(668,"Report post"),t()()(),e(669,"button",48)(670,"span",38),n(671,"mat-icon",39),e(672,"span"),i(673,"Turn on notifications for this post"),t()()()()(),e(674,"div",109),i(675," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(676,"div",147)(677,"div",148),n(678,"img",149),t(),e(679,"div",150)(680,"div",151),n(681,"img",152),t(),e(682,"div",153),n(683,"img",154),t()()(),e(684,"div",114)(685,"button",98),n(686,"mat-icon",115),e(687,"span",99),i(688,"Unlike"),t()(),e(689,"button",98),n(690,"mat-icon",47),e(691,"span",99),i(692,"Comment"),t()(),e(693,"button",98),n(694,"mat-icon",47),e(695,"span",99),i(696,"Share"),t()()(),n(697,"hr",116),e(698,"div",117)(699,"div",38),n(700,"img",118)(701,"img",119)(702,"img",119)(703,"img",119),e(704,"div",120),i(705," You and 24 more liked this "),t()(),n(706,"div",121),e(707,"div",122)(708,"button",123),i(709," 4 shares "),t(),e(710,"button",146),i(711," No comments "),t()()()(),e(712,"angor-card",103)(713,"div",104),n(714,"img",85),e(715,"div",37)(716,"span",73),i(717,"Caroline Lundu"),t(),e(718,"span",106),i(719,"29 minutes ago"),t()(),e(720,"button",107),n(721,"mat-icon",47),t(),e(722,"mat-menu",null,11)(724,"button",48)(725,"span",38),n(726,"mat-icon",39),e(727,"span"),i(728,"Save post"),t()()(),e(729,"button",48)(730,"span",38),n(731,"mat-icon",39),e(732,"span"),i(733,"Hide post"),t()()(),e(734,"button",48)(735,"span",38),n(736,"mat-icon",39),e(737,"span"),i(738,"Snooze for 30 days"),t()()(),e(739,"button",48)(740,"span",38),n(741,"mat-icon",39),e(742,"span"),i(743,"Hide all"),t()()(),n(744,"mat-divider",108),e(745,"button",48)(746,"span",38),n(747,"mat-icon",39),e(748,"span"),i(749,"Report post"),t()()(),e(750,"button",48)(751,"span",38),n(752,"mat-icon",39),e(753,"span"),i(754,"Turn on notifications for this post"),t()()()()(),e(755,"div",109),i(756," Hey!! I never saw this one, it was amazing.. I think I\u2019m going to buy myself a set and try his technique at home! "),t(),e(757,"div",155)(758,"div",156)(759,"div",157),n(760,"img",158),t(),e(761,"div",159)(762,"div",160),i(763," Take a look behind the scenes of Rob Boss episodes "),t(),e(764,"div",161),i(765," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. "),t(),e(766,"div",162),i(767," example.com "),t()()()(),e(768,"div",114)(769,"button",98),n(770,"mat-icon",115),e(771,"span",99),i(772,"Unlike"),t()(),e(773,"button",98),n(774,"mat-icon",47),e(775,"span",99),i(776,"Comment"),t()(),e(777,"button",98),n(778,"mat-icon",47),e(779,"span",99),i(780,"Share"),t()()(),n(781,"hr",116),e(782,"div",117)(783,"div",38),n(784,"img",118)(785,"img",119)(786,"img",119)(787,"img",119),e(788,"div",120),i(789," You and 24 more liked this "),t()(),n(790,"div",121),e(791,"div",122)(792,"button",123),i(793," 4 shares "),t(),e(794,"button",146),i(795," No comments "),t()()()(),e(796,"angor-card",103)(797,"div",104),n(798,"img",85),e(799,"div",37)(800,"span",105),i(801,"Marleah Eagleston"),t(),e(802,"span",106),i(803,"29 minutes ago"),t()(),e(804,"button",107),n(805,"mat-icon",47),t(),e(806,"mat-menu",null,12)(808,"button",48)(809,"span",38),n(810,"mat-icon",39),e(811,"span"),i(812,"Save post"),t()()(),e(813,"button",48)(814,"span",38),n(815,"mat-icon",39),e(816,"span"),i(817,"Hide post"),t()()(),e(818,"button",48)(819,"span",38),n(820,"mat-icon",39),e(821,"span"),i(822,"Snooze for 30 days"),t()()(),e(823,"button",48)(824,"span",38),n(825,"mat-icon",39),e(826,"span"),i(827,"Hide all"),t()()(),n(828,"mat-divider",108),e(829,"button",48)(830,"span",38),n(831,"mat-icon",39),e(832,"span"),i(833,"Report post"),t()()(),e(834,"button",48)(835,"span",38),n(836,"mat-icon",39),e(837,"span"),i(838,"Turn on notifications for this post"),t()()()()(),e(839,"div",109),i(840," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(841,"div",147)(842,"div",148),n(843,"img",163),t(),e(844,"div",164),n(845,"img",165),t()(),e(846,"div",114)(847,"button",98),n(848,"mat-icon",115),e(849,"span",99),i(850,"Unlike"),t()(),e(851,"button",98),n(852,"mat-icon",47),e(853,"span",99),i(854,"Comment"),t()(),e(855,"button",98),n(856,"mat-icon",47),e(857,"span",99),i(858,"Share"),t()()(),n(859,"hr",116),e(860,"div",117)(861,"div",38),n(862,"img",118)(863,"img",119)(864,"img",119)(865,"img",119),e(866,"div",120),i(867," You and 24 more liked this "),t()(),n(868,"div",121),e(869,"div",122)(870,"button",123),i(871," 4 shares "),t(),e(872,"button",146),i(873," No comments "),t()()()(),e(874,"angor-card",103)(875,"div",104),n(876,"img",85),e(877,"div",37)(878,"span",105),i(879,"Caroline Lundu"),t(),e(880,"span",106),i(881,"29 minutes ago"),t()(),e(882,"button",107),n(883,"mat-icon",47),t(),e(884,"mat-menu",null,13)(886,"button",48)(887,"span",38),n(888,"mat-icon",39),e(889,"span"),i(890,"Save post"),t()()(),e(891,"button",48)(892,"span",38),n(893,"mat-icon",39),e(894,"span"),i(895,"Hide post"),t()()(),e(896,"button",48)(897,"span",38),n(898,"mat-icon",39),e(899,"span"),i(900,"Snooze for 30 days"),t()()(),e(901,"button",48)(902,"span",38),n(903,"mat-icon",39),e(904,"span"),i(905,"Hide all"),t()()(),n(906,"mat-divider",108),e(907,"button",48)(908,"span",38),n(909,"mat-icon",39),e(910,"span"),i(911,"Report post"),t()()(),e(912,"button",48)(913,"span",38),n(914,"mat-icon",39),e(915,"span"),i(916,"Turn on notifications for this post"),t()()()()(),e(917,"div",109),i(918," Hey!! I never saw this episode, it was amazing.. I think I\u2019m going to buy myself a set and try his technique at home! "),t(),e(919,"div",155)(920,"div",166)(921,"div",167),n(922,"img",168),t(),e(923,"div",159)(924,"div",160),i(925," Rob Boss - Season 09 Episode 04 "),t(),e(926,"div",161),i(927," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. "),t(),e(928,"div",162),i(929," example.com "),t()()()(),e(930,"div",114)(931,"button",98),n(932,"mat-icon",115),e(933,"span",99),i(934,"Unlike"),t()(),e(935,"button",98),n(936,"mat-icon",47),e(937,"span",99),i(938,"Comment"),t()(),e(939,"button",98),n(940,"mat-icon",47),e(941,"span",99),i(942,"Share"),t()()(),n(943,"hr",116),e(944,"div",117)(945,"div",38),n(946,"img",118)(947,"img",119)(948,"img",119)(949,"img",119),e(950,"div",120),i(951," You and 24 more liked this "),t()(),n(952,"div",121),e(953,"div",122)(954,"button",123),i(955," 4 shares "),t(),e(956,"button",146),i(957," No comments "),t()()()()()()()}if(v&2){let x=m(8),S=m(66),f=m(101),ge=m(138),xe=m(189),he=m(222),Se=m(284),fe=m(311),be=m(322),Ee=m(566),ye=m(642),_e=m(723),Ie=m(807),we=m(885);a(3),h("alt",(l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Banner"),r("src",(l.metadata==null?null:l.metadata.banner)||"/images/pages/profile/cover.jpg",b),a(3),r("ngIf",l.metadata==null?null:l.metadata.picture)("ngIfElse",x),a(5),E((l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Unknown User"),a(2),E((l.metadata==null?null:l.metadata.username)||(l.metadata==null?null:l.metadata.name)),a(14),r("routerLink",s(134,c)),a(2),r("routerLink",s(135,c)),a(2),r("routerLink",s(136,c)),a(2),r("routerLink",s(137,c)),a(8),A(" ",(l.metadata==null?null:l.metadata.about)||""," "),a(4),r("svgIcon","heroicons_solid:map-pin"),a(4),r("svgIcon","heroicons_solid:briefcase"),a(4),r("svgIcon","heroicons_solid:cake"),a(3),r("color","primary")("routerLink",s(138,c)),a(7),r("matMenuTriggerFor",S),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(27),r("color","primary")("routerLink",s(139,c)),a(7),r("matMenuTriggerFor",f),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(29),r("color","primary")("routerLink",s(140,c)),a(7),r("matMenuTriggerFor",ge),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(43),r("color","primary")("routerLink",s(141,c)),a(7),r("matMenuTriggerFor",xe),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(7),r("svgIcon","heroicons_solid:bell"),a(6),r("svgIcon","heroicons_solid:bell"),a(3),r("routerLink",s(142,c)),a(3),r("svgIcon","heroicons_solid:bell"),a(3),r("routerLink",s(143,c)),a(3),r("color","primary")("routerLink",s(144,c)),a(7),r("matMenuTriggerFor",he),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(35),r("color","primary")("routerLink",s(145,c)),a(8),h("alt",(l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Avatar"),r("src",(l.metadata==null?null:l.metadata.picture)||"images/avatars/avatar-placeholder.png",b),a(2),E((l.metadata==null?null:l.metadata.name)||"Unknown User"),a(),r("subscriptSizing","dynamic"),a(),r("placeholder","What's on your mind?")("rows",3),a(3),r("svgIcon","heroicons_solid:photo"),a(4),r("svgIcon","heroicons_solid:user-circle"),a(4),r("svgIcon","heroicons_solid:face-smile"),a(3),r("matMenuTriggerFor",Se),a(),r("svgIcon","heroicons_solid:ellipsis-horizontal"),a(5),r("svgIcon","heroicons_solid:user-circle"),a(5),r("svgIcon","heroicons_solid:face-smile"),a(5),r("svgIcon","heroicons_solid:play"),a(5),r("svgIcon","heroicons_solid:sparkles"),a(5),r("svgIcon","heroicons_solid:map-pin"),a(12),r("matMenuTriggerFor",be),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(7),r("matTooltip","Barmouth / UK")("matTooltipPosition","right"),a(),r("svgIcon","heroicons_solid:map-pin"),a(3),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(19),r("ngClass",U(146,Ce,fe.expanded))("svgIcon","heroicons_mini:chevron-down"),a(6),r("subscriptSizing","dynamic"),a(),r("placeholder","Write a comment...")("rows",3),a(3),r("svgIcon","heroicons_solid:sparkles"),a(2),r("svgIcon","heroicons_solid:face-smile"),a(2),r("svgIcon","heroicons_solid:photo"),a(160),r("matMenuTriggerFor",Ee),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(10),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",ye),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(15),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",_e),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(18),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",Ie),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(12),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",we),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(18),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share")}},dependencies:[W,ve,$,X,J,K,V,q,ne,te,ee,ie,G,O,me,le,ae,re,de,se,Z,Q,P,N,B],encapsulation:2,changeDetection:0});let p=u;return p})();var at=[{path:"",component:ue}];export{at as default}; +import{a as se,b as de}from"./chunk-BVVMJWCI.js";import{a as ee,b as te,c as ie,d as ne}from"./chunk-ON6SO2QP.js";import{a as ve}from"./chunk-DQUACDFU.js";import{a as Q,b as Z}from"./chunk-HGT4ACXZ.js";import{b as pe}from"./chunk-MYVAGBPZ.js";import{t as oe,v as ce}from"./chunk-6S6AYVUH.js";import"./chunk-GTCJWQQT.js";import{A as ae,B as re,V as le,W as me,y as O,z as G}from"./chunk-4AZPYN7Q.js";import"./chunk-BLRJMPLX.js";import{$ as J,X as V,Y as K,Z as q,ba as X,ca as $}from"./chunk-MH4Z64LL.js";import{Aa as b,Ab as E,Ba as a,Bb as A,Ca as g,Hb as z,Ib as s,Jb as U,Pa as F,Q as y,Rb as D,Ua as r,Wb as H,ba as k,cb as e,db as t,dc as P,eb as n,fb as _,fc as B,gb as I,h as C,ia as j,ib as T,ja as L,k as M,kc as N,lb as R,nb as w,qb as h,tc as Y,yb as m,yc as W,zb as i}from"./chunk-LP5NDBXI.js";var c=()=>["./"],Ce=p=>({"rotate-180":p});function Me(p,u){if(p&1&&(_(0),n(1,"img",169),I()),p&2){let d=w();a(),h("alt",(d.metadata==null?null:d.metadata.display_name)||(d.metadata==null?null:d.metadata.name)||"Avatar"),r("src",d.getSafeUrl(d.metadata==null?null:d.metadata.picture),b)}}function ke(p,u){if(p&1&&n(0,"img",170),p&2){let d=w();h("alt",(d.metadata==null?null:d.metadata.display_name)||(d.metadata==null?null:d.metadata.name)||"Avatar")}}var ue=(()=>{let u=class u{constructor(o,v,l,x,S){this._changeDetectorRef=o,this._metadataService=v,this._signerService=l,this._indexedDBService=x,this._sanitizer=S,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new M}ngOnInit(){this.loadUserProfile(),this._indexedDBService.getMetadataStream().pipe(y(this._unsubscribeAll)).subscribe(o=>{o&&o.pubkey===this.user?.pubkey&&(this.metadata=o.metadata,this._changeDetectorRef.detectChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){return C(this,null,function*(){this.isLoading=!0,this.errorMessage=null;let o=this._signerService.getPublicKey();if(!o){this.errorMessage="No public key found. Please log in again.",this.isLoading=!1,this._changeDetectorRef.detectChanges();return}this.user={pubkey:o};try{let v=yield this._metadataService.fetchMetadataWithCache(o);v&&(this.metadata=v,this._changeDetectorRef.detectChanges()),this._metadataService.getMetadataStream().pipe(y(this._unsubscribeAll)).subscribe(l=>{l&&l.pubkey===o&&(this.metadata=l,this._changeDetectorRef.detectChanges())})}catch(v){console.error("Failed to load profile data:",v),this.errorMessage="Failed to load profile data. Please try again later.",this._changeDetectorRef.detectChanges()}finally{this.isLoading=!1,this._changeDetectorRef.detectChanges()}})}getSafeUrl(o){return this._sanitizer.bypassSecurityTrustUrl(o)}};u.\u0275fac=function(v){return new(v||u)(g(H),g(ce),g(pe),g(oe),g(Y))},u.\u0275cmp=k({type:u,selectors:[["profile"]],standalone:!0,features:[z],decls:958,vars:148,consts:[["defaultAvatar",""],["listCard08Menu","matMenu"],["listCard09Menu","matMenu"],["listCard02Menu","matMenu"],["listCard01Menu","matMenu"],["listCard04Menu","matMenu"],["postCardMenu01","matMenu"],["expandableCard02","angorCard"],["postCardMenu02","matMenu"],["postCardMenu08","matMenu"],["postCardMenu04","matMenu"],["postCardMenu10","matMenu"],["postCardMenu03","matMenu"],["postCardMenu09","matMenu"],[1,"flex","min-w-0","flex-auto","flex-col"],[1,"bg-card","flex","flex-col","shadow"],["onerror","this.onerror=null; this.src='/images/pages/profile/cover.jpg';",1,"h-40","object-cover","lg:h-80",3,"src","alt"],[1,"bg-card","mx-auto","flex","w-full","max-w-5xl","flex-0","flex-col","items-center","px-8","lg:h-18","lg:flex-row"],[1,"-mt-26","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"text-lg","font-bold","leading-none"],[1,"text-secondary"],[1,"mx-8","hidden","h-8","border-l-2","lg:flex"],[1,"mt-6","flex","items-center","space-x-6","lg:mt-0"],[1,"flex","flex-col","items-center"],[1,"font-bold"],[1,"text-secondary","text-sm","font-medium"],[1,"mb-4","mt-8","flex","items-center","space-x-6","lg:m-0","lg:ml-auto"],[1,"font-medium",3,"routerLink"],[1,"text-secondary",3,"routerLink"],[1,"mx-auto","flex","w-full","max-w-5xl","flex-auto","justify-center","p-6","sm:p-8"],[1,"mr-8","hidden","flex-col","items-start","lg:flex"],[1,"flex","w-full","max-w-80","flex-col","p-8"],[1,"text-2xl","font-semibold","leading-tight"],[1,"mt-4"],[1,"my-6","w-full","border-t"],[1,"flex","flex-col"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],[1,"leading-none"],[1,"mt-4","flex","items-center"],["mat-flat-button","",1,"mt-8","px-6",3,"color","routerLink"],[1,"mt-8","flex","w-full","max-w-80","flex-col","px-8","pb-4","pt-6"],[1,"flex","items-center","justify-between"],[1,"-mr-3"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item",""],[1,"mt-6","flex","justify-between"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"h-14","w-14","rounded-full"],[1,"mt-3","flex","justify-between"],[1,"-mx-3","mt-6","flex","items-center"],["mat-button","",1,"px-3",3,"color","routerLink"],["src","images/cards/14-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/15-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/16-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/17-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/18-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/19-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/20-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/21-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/22-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/23-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/24-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/25-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/26-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/27-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/28-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],["src","images/cards/29-640x480.jpg","alt","Card cover image",1,"h-14","w-14","rounded","object-cover"],[1,"mt-5","flex","flex-col"],["src","images/cards/coffee-shop-01-320x200.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],[1,"flex","min-w-0","flex-col"],[1,"font-medium","leading-none"],[1,"mt-1","truncate","text-md","leading-none"],[1,"text-secondary","mt-2","text-md","leading-none"],[1,"mt-6","flex","items-center"],["src","images/cards/coffee-shop-02-512x512.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],["src","images/cards/coffee-shop-03-320x320.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],["src","images/cards/sneakers-01-320x200.jpg","alt","Card cover image",1,"mr-4","h-14","w-14","rounded","object-cover"],[1,"flex"],[1,"mr-2","mt-0.5","icon-size-5",3,"svgIcon"],[1,"mt-5","flex"],[1,"text-secondary","whitespace-nowrap","hover:underline",3,"routerLink"],[1,"-mx-3","mt-4","flex","items-center"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-4","h-10","w-10","rounded-full"],[1,"leading-tight"],[1,"mt-8","flex"],[1,"flex","flex-col","items-start"],[1,"flex","w-full","max-w-140","flex-col","p-6","pb-6","sm:p-8"],[1,"text-xl","font-semibold"],[1,"mt-8","flex","flex-col","items-start","sm:flex-row"],[1,"mb-6","flex","items-center","sm:mb-0"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-12","w-12","min-w-12","rounded-full",3,"src","alt"],[1,"sm:hidden"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","sm:mt-8"],["mat-button","",1,"mr-1","px-3"],[1,"ml-2"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],[1,"mt-8","flex","w-full","max-w-140","flex-col"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],[1,"font-semibold","leading-none"],[1,"text-secondary","mt-1","text-sm","leading-none"],["mat-icon-button","",1,"-mr-4","ml-auto",3,"matMenuTriggerFor"],[1,"my-2"],[1,"mx-6","mb-6","mt-2","sm:mx-8"],[1,"relative","mb-4"],["src","images/cards/14-640x480.jpg","alt","Card cover image",1,"h-80","object-cover"],[1,"absolute","bottom-0","left-0","m-4","flex","h-8","w-8","cursor-pointer","items-center","justify-center","rounded-full","bg-gray-700",3,"matTooltip","matTooltipPosition"],[1,"text-gray-100","icon-size-4",3,"svgIcon"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"text-red-500","icon-size-5",3,"svgIcon"],[1,"mx-6","mb-6","mt-4","border-b","sm:mx-8"],[1,"mx-6","mb-4","flex","flex-col","sm:mx-8","sm:mb-6","sm:flex-row","sm:items-center"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"text-card","m-0.5","h-6","w-6","rounded-full","ring-2","ring-white"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"text-card","m-0.5","-ml-3","h-6","w-6","rounded-full","ring-2","ring-white"],[1,"ml-3","text-md","tracking-tight"],[1,"hidden","flex-auto","sm:flex"],[1,"mt-4","flex","items-center","sm:mt-0"],["mat-button","",1,"-ml-2","mr-1","px-3","sm:ml-0"],["mat-button","",1,"px-3","sm:-mr-4",3,"click"],[1,"mr-1"],[1,"rotate-0","transition-transform","duration-150","ease-in-out","icon-size-5",3,"ngClass","svgIcon"],["angorCardExpansion",""],[1,"m-0","border-b"],[1,"mx-4","mb-3","mt-6","flex","flex-col","sm:mx-8"],[1,"flex","items-start"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-5","h-12","w-12","rounded-full"],[1,"-mr-3","ml-auto","mt-3","flex","items-center"],["mat-icon-button",""],[1,"mx-4","my-0","border-b","sm:mx-8"],[1,"max-h-120","overflow-y-auto"],[1,"relative","mx-4","my-6","flex","flex-col","sm:mx-8"],["src","images/avatars/avatar-placeholder.png","alt","Card cover image",1,"mr-4","h-8","w-8","rounded-full"],[1,"mt-0.5","flex","flex-col"],[1,"text-secondary","mt-2","flex","items-center","text-sm"],[1,"mr-2","cursor-pointer","hover:underline"],[1,"mr-2"],[1,"ml-12","mt-8","flex","items-start"],[1,"mt-8","flex","items-start"],[1,"mx-6","mb-1","mt-6","flex","items-center","sm:mx-8"],[1,"m-6","sm:mx-8"],["mat-button","",1,"px-3","sm:-mr-3"],[1,"mx-6","mb-4","flex","sm:mx-8"],[1,"flex","h-80","pr-1"],["src","images/cards/17-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","flex-col","pl-1"],[1,"flex","h-40","pb-1"],["src","images/cards/18-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","h-40","pt-1"],["src","images/cards/19-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"mx-6","mb-4","sm:mx-8"],[1,"flex","flex-col","overflow-hidden","rounded","border"],[1,"flex","h-80"],["src","images/cards/36-640x480.jpg","alt","Card cover image",1,"object-cover"],[1,"m-4"],[1,"text-lg","font-medium"],[1,"text-secondary","mt-1"],[1,"text-hint","mt-2","text-sm"],["src","images/cards/15-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","h-80","pl-1"],["src","images/cards/16-640x480.jpg","alt","Card cover image",1,"rounded","object-cover"],[1,"flex","overflow-hidden","rounded","border"],[1,"w-40","flex-0"],["src","images/cards/35-640x480.jpg","alt","Card cover image",1,"h-full","w-full","object-cover"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","w-32","rounded-full","ring-4","object-cover",3,"src","alt"],["src","/images/avatars/avatar-placeholder.png","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","w-32","rounded-full","ring-4",3,"alt"]],template:function(v,l){if(v&1){let x=T();e(0,"div",14)(1,"div",15)(2,"div"),n(3,"img",16),t(),e(4,"div",17)(5,"div",18),F(6,Me,2,2,"ng-container",19)(7,ke,1,1,"ng-template",null,0,D),t(),e(9,"div",20)(10,"div",21),i(11),t(),e(12,"div",22),i(13),t()(),n(14,"div",23),e(15,"div",24)(16,"div",25)(17,"span",26),i(18,"200k"),t(),e(19,"span",27),i(20,"FOLLOWERS"),t()(),e(21,"div",25)(22,"span",26),i(23,"1.2k"),t(),e(24,"span",27),i(25,"FOLLOWING"),t()()(),e(26,"div",28)(27,"a",29),i(28," Notes "),t(),e(29,"a",30),i(30," About "),t(),e(31,"a",30),i(32," Followers "),t(),e(33,"a",30),i(34," Gallery "),t()()()(),e(35,"div",31)(36,"div",32)(37,"angor-card",33)(38,"div",34),i(39,"About Me"),t(),e(40,"div",35),i(41),t(),n(42,"hr",36),e(43,"div",37)(44,"div",38),n(45,"mat-icon",39),e(46,"span",40),i(47,"London, UK"),t()(),e(48,"div",41),n(49,"mat-icon",39),e(50,"span",40),i(51,"ACME Corp. Lead UX Designer"),t()(),e(52,"div",41),n(53,"mat-icon",39),e(54,"span",40),i(55,"April, 24"),t()()(),e(56,"a",42),i(57," See complete bio "),t()(),e(58,"angor-card",43)(59,"div",44)(60,"div",34),i(61," Followers "),t(),e(62,"div",45)(63,"button",46),n(64,"mat-icon",47),t(),e(65,"mat-menu",null,1)(67,"button",48),i(68,"Find friends"),t()()()(),e(69,"div",37)(70,"div",49),n(71,"img",50)(72,"img",50)(73,"img",50)(74,"img",50),t(),e(75,"div",51),n(76,"img",50)(77,"img",50)(78,"img",50)(79,"img",50),t(),e(80,"div",51),n(81,"img",50)(82,"img",50)(83,"img",50)(84,"img",50),t(),e(85,"div",51),n(86,"img",50)(87,"img",50)(88,"img",50)(89,"img",50),t()(),e(90,"div",52)(91,"a",53),i(92," See all followers "),t()()(),e(93,"angor-card",43)(94,"div",44)(95,"div",34),i(96," Gallery "),t(),e(97,"div",45)(98,"button",46),n(99,"mat-icon",47),t(),e(100,"mat-menu",null,2)(102,"button",48),i(103,"Add image"),t(),e(104,"button",48),i(105,"Add video"),t()()()(),e(106,"div",37)(107,"div",49),n(108,"img",54)(109,"img",55)(110,"img",56)(111,"img",57),t(),e(112,"div",51),n(113,"img",58)(114,"img",59)(115,"img",60)(116,"img",61),t(),e(117,"div",51),n(118,"img",62)(119,"img",63)(120,"img",64)(121,"img",65),t(),e(122,"div",51),n(123,"img",66)(124,"img",67)(125,"img",68)(126,"img",69),t()(),e(127,"div",52)(128,"a",53),i(129," See entire gallery "),t()()(),e(130,"angor-card",43)(131,"div",44)(132,"div",34),i(133," Groups "),t(),e(134,"div",45)(135,"button",46),n(136,"mat-icon",47),t(),e(137,"mat-menu",null,3)(139,"button",48),i(140,"Search for groups"),t()()()(),e(141,"div",70)(142,"div",38),n(143,"img",71),e(144,"div",72)(145,"div",73),i(146," The Port Cafe "),t(),e(147,"div",74),i(148," Best cafe of the downtown New York "),t(),e(149,"div",75),i(150," 1.2k followers "),t()()(),e(151,"div",76),n(152,"img",77),e(153,"div",72)(154,"div",73),i(155," Design House LLC. "),t(),e(156,"div",74),i(157," UI/UX, brand and product design "),t(),e(158,"div",75),i(159," 957 followers "),t()()(),e(160,"div",76),n(161,"img",78),e(162,"div",72)(163,"div",73),i(164," Crax Laser Tag "),t(),e(165,"div",74),i(166," 30% off with group of 6 people "),t(),e(167,"div",75),i(168," 342 followers "),t()()(),e(169,"div",76),n(170,"img",79),e(171,"div",72)(172,"div",73),i(173," Roadster Clothing Inc. "),t(),e(174,"div",74),i(175," $25 off on orders $500 and over "),t(),e(176,"div",75),i(177," 4.7k followers "),t()()()(),e(178,"div",52)(179,"a",53),i(180," See all groups "),t()()(),e(181,"angor-card",43)(182,"div",44)(183,"div",34),i(184,"News"),t(),e(185,"div",45)(186,"button",46),n(187,"mat-icon",47),t(),e(188,"mat-menu",null,4)(190,"button",48),i(191,"Mark all as read"),t()()()(),e(192,"div",70)(193,"div",80),n(194,"mat-icon",81),e(195,"div")(196,"b"),i(197,"20% OFF"),t(),i(198," in your favorite hats shop on next Friday. "),t()(),e(199,"div",82),n(200,"mat-icon",81),e(201,"div"),i(202," Upcoming meetups within 20 miles. "),e(203,"a",83),i(204,"See details "),t()()(),e(205,"div",82),n(206,"mat-icon",81),e(207,"div"),i(208," Concerts from your favorite bands available within 100 miles. "),e(209,"a",83),i(210,"See details "),t()()()(),e(211,"div",84)(212,"a",53),i(213," See all news "),t()()(),e(214,"angor-card",43)(215,"div",44)(216,"div",34),i(217," Activity Feed "),t(),e(218,"div",45)(219,"button",46),n(220,"mat-icon",47),t(),e(221,"mat-menu",null,5)(223,"button",48),i(224,"Clear activities"),t()()()(),e(225,"div",70)(226,"div",80),n(227,"img",85),e(228,"div",72)(229,"div",86),i(230," Amelia Edwards commented on John Silverton's photo "),t(),e(231,"div",75),i(232," 4 minutes ago "),t()()(),e(233,"div",87),n(234,"img",85),e(235,"div",72)(236,"div",86),i(237," Lew Silverton changed his profile photo "),t(),e(238,"div",75),i(239," 25 minutes ago "),t()()(),e(240,"div",87),n(241,"img",85),e(242,"div",72)(243,"div",86),i(244," Display Name liked your photo "),t(),e(245,"div",75),i(246," 3 hours ago "),t()()(),e(247,"div",87),n(248,"img",85),e(249,"div",72)(250,"div",86),i(251," Marleah Eagleston commented on John Silverton's photo "),t(),e(252,"div",75),i(253," Yesterday "),t()()()(),e(254,"div",52)(255,"a",53),i(256," See entire activity feed "),t()()()(),e(257,"div",88)(258,"angor-card",89)(259,"div",90),i(260,"Create Post"),t(),e(261,"div",91)(262,"div",92),n(263,"img",93),e(264,"div",94),i(265),t()(),e(266,"mat-form-field",95),n(267,"textarea",96),t()(),e(268,"div",97)(269,"button",98),n(270,"mat-icon",47),e(271,"span",99),i(272,"Photo / Video"),t()(),e(273,"button",100),n(274,"mat-icon",47),e(275,"span",99),i(276,"Tag Friends"),t()(),e(277,"button",100),n(278,"mat-icon",47),e(279,"span",99),i(280,"Feeling"),t()(),e(281,"button",101),n(282,"mat-icon",47),t(),e(283,"mat-menu",null,6)(285,"button",102)(286,"span",38),n(287,"mat-icon",39),e(288,"span"),i(289,"Tag Friends"),t()()(),e(290,"button",102)(291,"span",38),n(292,"mat-icon",39),e(293,"span"),i(294,"Feeling"),t()()(),e(295,"button",48)(296,"span",38),n(297,"mat-icon",39),e(298,"span"),i(299,"Live"),t()()(),e(300,"button",48)(301,"span",38),n(302,"mat-icon",39),e(303,"span"),i(304,"Gif"),t()()(),e(305,"button",48)(306,"span",38),n(307,"mat-icon",39),e(308,"span"),i(309,"Check in"),t()()()()()(),e(310,"angor-card",103,7)(312,"div",104),n(313,"img",85),e(314,"div",37)(315,"span",105),i(316,"Caroline Lundu"),t(),e(317,"span",106),i(318,"29 minutes ago"),t()(),e(319,"button",107),n(320,"mat-icon",47),t(),e(321,"mat-menu",null,8)(323,"button",48)(324,"span",38),n(325,"mat-icon",39),e(326,"span"),i(327,"Save post"),t()()(),e(328,"button",48)(329,"span",38),n(330,"mat-icon",39),e(331,"span"),i(332,"Hide post"),t()()(),e(333,"button",48)(334,"span",38),n(335,"mat-icon",39),e(336,"span"),i(337,"Snooze for 30 days"),t()()(),e(338,"button",48)(339,"span",38),n(340,"mat-icon",39),e(341,"span"),i(342,"Hide all"),t()()(),n(343,"mat-divider",108),e(344,"button",48)(345,"span",38),n(346,"mat-icon",39),e(347,"span"),i(348,"Report post"),t()()(),e(349,"button",48)(350,"span",38),n(351,"mat-icon",39),e(352,"span"),i(353,"Turn on notifications for this post"),t()()()()(),e(354,"div",109),i(355," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(356,"div",110),n(357,"img",111),e(358,"div",112),n(359,"mat-icon",113),t()(),e(360,"div",114)(361,"button",98),n(362,"mat-icon",115),e(363,"span",99),i(364,"Unlike"),t()(),e(365,"button",98),n(366,"mat-icon",47),e(367,"span",99),i(368,"Comment"),t()(),e(369,"button",98),n(370,"mat-icon",47),e(371,"span",99),i(372,"Share"),t()()(),n(373,"hr",116),e(374,"div",117)(375,"div",38),n(376,"img",118)(377,"img",119)(378,"img",119)(379,"img",119),e(380,"div",120),i(381," You and 24 more liked this "),t()(),n(382,"div",121),e(383,"div",122)(384,"button",123),i(385," 4 shares "),t(),e(386,"button",124),R("click",function(){j(x);let f=m(311);return L(f.expanded=!f.expanded)}),e(387,"span",125),i(388,"5 Comments"),t(),n(389,"mat-icon",126),t()()(),_(390,127),n(391,"hr",128),e(392,"div",129)(393,"div",130),n(394,"img",131),e(395,"mat-form-field",95),n(396,"textarea",96),t()(),e(397,"div",132)(398,"button",133),n(399,"mat-icon",47),t(),e(400,"button",133),n(401,"mat-icon",47),t(),e(402,"button",133),n(403,"mat-icon",47),t()()(),n(404,"hr",134),e(405,"div",135)(406,"div",136)(407,"div",130),n(408,"img",137),e(409,"div",138)(410,"span")(411,"b"),i(412,"Rutherford Brannan"),t(),i(413," Oh, I\u2019m in.. Let\u2019s arrange a trip for the next weekend if you want! "),t(),e(414,"div",139)(415,"span",140),i(416,"Like"),t(),e(417,"span",140),i(418,"Reply"),t(),e(419,"span",140),i(420,"Hide replies"),t(),e(421,"span",141),i(422,"\u2022"),t(),e(423,"span"),i(424,"17 min"),t()()()(),e(425,"div",142),n(426,"img",137),e(427,"div",138)(428,"span")(429,"b"),i(430,"Caroline Lundu"),t(),i(431," Yes!! Let's talk about it on lunch! "),t(),e(432,"div",139)(433,"span",140),i(434,"Like"),t(),e(435,"span",140),i(436,"Reply"),t(),e(437,"span",141),i(438,"\u2022"),t(),e(439,"span"),i(440,"15 min"),t()()()(),e(441,"div",142),n(442,"img",137),e(443,"div",138)(444,"span")(445,"b"),i(446,"Barbara Cotilla"),t(),i(447," Count me in !!! "),t(),e(448,"div",139)(449,"span",140),i(450,"Like"),t(),e(451,"span",140),i(452,"Reply"),t(),e(453,"span",141),i(454,"\u2022"),t(),e(455,"span"),i(456,"12 min"),t()()()(),e(457,"div",143),n(458,"img",137),e(459,"div",138)(460,"span")(461,"b"),i(462,"Alan Marti"),t(),i(463," The color of the sky doesn\u2019t look natural at all, do you really think this is natural? I\u2019d say Photoshop! Your trip isn't going to worth it since you won't be seeing this exact sky. "),t(),e(464,"div",139)(465,"span",140),i(466,"Like"),t(),e(467,"span",140),i(468,"Reply"),t(),e(469,"span",140),i(470,"Hide replies"),t(),e(471,"span",141),i(472,"\u2022"),t(),e(473,"span"),i(474,"24 min"),t()()()(),e(475,"div",142),n(476,"img",137),e(477,"div",138)(478,"span")(479,"b"),i(480,"Caroline Lundu"),t(),i(481," Hey, Alan! You must be fun at parties! "),t(),e(482,"div",139)(483,"span",140),i(484,"Like"),t(),e(485,"span",140),i(486,"Reply"),t(),e(487,"span",141),i(488,"\u2022"),t(),e(489,"span"),i(490,"22 min"),t()()()(),e(491,"div",142),n(492,"img",137),e(493,"div",138)(494,"span")(495,"b"),i(496,"Alan Marti"),t(),i(497," Caroline, I'm telling the truth, and if you cannot stand the truth, maybe we shouldn't be friends anymore... "),t(),e(498,"div",139)(499,"span",140),i(500,"Like"),t(),e(501,"span",140),i(502,"Reply"),t(),e(503,"span",141),i(504,"\u2022"),t(),e(505,"span"),i(506,"20 min"),t()()()(),e(507,"div",142),n(508,"img",137),e(509,"div",138)(510,"span")(511,"b"),i(512,"Caroline Lundu"),t(),i(513," Dude! Relax! I'm just messing with you... "),t(),e(514,"div",139)(515,"span",140),i(516,"Like"),t(),e(517,"span",140),i(518,"Reply"),t(),e(519,"span",141),i(520,"\u2022"),t(),e(521,"span"),i(522,"18 min"),t()()()(),e(523,"div",142),n(524,"img",137),e(525,"div",138)(526,"span")(527,"b"),i(528,"Alan Marti"),t(),i(529," Sorry! I had a bad morning, let's talk about this in couple hours, I need to relax a bit :( "),t(),e(530,"div",139)(531,"span",140),i(532,"Like"),t(),e(533,"span",140),i(534,"Reply"),t(),e(535,"span",141),i(536,"\u2022"),t(),e(537,"span"),i(538,"16 min"),t()()()(),e(539,"div",143),n(540,"img",137),e(541,"div",138)(542,"span")(543,"b"),i(544,"Marleah Eagleston"),t(),i(545," Count me in, too! "),t(),e(546,"div",139)(547,"span",140),i(548,"Like"),t(),e(549,"span",140),i(550,"Reply"),t(),e(551,"span",141),i(552,"\u2022"),t(),e(553,"span"),i(554,"34 min"),t()()()()()(),I(),t(),e(555,"angor-card",103)(556,"div",144),n(557,"img",85),e(558,"div",37)(559,"span",105),i(560,"Caroline Lundu"),t(),e(561,"span",106),i(562,"29 minutes ago"),t()(),e(563,"button",107),n(564,"mat-icon",47),t(),e(565,"mat-menu",null,9)(567,"button",48)(568,"span",38),n(569,"mat-icon",39),e(570,"span"),i(571,"Save post"),t()()(),e(572,"button",48)(573,"span",38),n(574,"mat-icon",39),e(575,"span"),i(576,"Hide post"),t()()(),e(577,"button",48)(578,"span",38),n(579,"mat-icon",39),e(580,"span"),i(581,"Snooze for 30 days"),t()()(),e(582,"button",48)(583,"span",38),n(584,"mat-icon",39),e(585,"span"),i(586,"Hide all"),t()()(),n(587,"mat-divider",108),e(588,"button",48)(589,"span",38),n(590,"mat-icon",39),e(591,"span"),i(592,"Report post"),t()()(),e(593,"button",48)(594,"span",38),n(595,"mat-icon",39),e(596,"span"),i(597,"Turn on notifications for this post"),t()()()()(),e(598,"div",145)(599,"p"),i(600," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. Let's build some happy little clouds up here. I was blessed with a very steady hand; and it comes in very handy when you're doing these little delicate things. This is the fun part. "),t(),e(601,"p",35),i(602," Isn't it great to do something you can't fail at? Little trees and bushes grow however makes them happy. Trees get lonely too, so we'll give him a little friend. There are no mistakes. You can fix anything that happens. "),t()(),e(603,"div",114)(604,"button",98),n(605,"mat-icon",115),e(606,"span",99),i(607,"Unlike"),t()(),e(608,"button",98),n(609,"mat-icon",47),e(610,"span",99),i(611,"Comment"),t()(),e(612,"button",98),n(613,"mat-icon",47),e(614,"span",99),i(615,"Share"),t()()(),n(616,"hr",116),e(617,"div",117)(618,"div",38),n(619,"img",118)(620,"img",119)(621,"img",119)(622,"img",119),e(623,"div",120),i(624," You and 24 more liked this "),t()(),n(625,"div",121),e(626,"div",122)(627,"button",123),i(628," 4 shares "),t(),e(629,"button",146),i(630," No comments "),t()()()(),e(631,"angor-card",103)(632,"div",104),n(633,"img",85),e(634,"div",37)(635,"span",105),i(636,"Marleah Eagleston"),t(),e(637,"span",106),i(638,"29 minutes ago"),t()(),e(639,"button",107),n(640,"mat-icon",47),t(),e(641,"mat-menu",null,10)(643,"button",48)(644,"span",38),n(645,"mat-icon",39),e(646,"span"),i(647,"Save post"),t()()(),e(648,"button",48)(649,"span",38),n(650,"mat-icon",39),e(651,"span"),i(652,"Hide post"),t()()(),e(653,"button",48)(654,"span",38),n(655,"mat-icon",39),e(656,"span"),i(657,"Snooze for 30 days"),t()()(),e(658,"button",48)(659,"span",38),n(660,"mat-icon",39),e(661,"span"),i(662,"Hide all"),t()()(),n(663,"mat-divider",108),e(664,"button",48)(665,"span",38),n(666,"mat-icon",39),e(667,"span"),i(668,"Report post"),t()()(),e(669,"button",48)(670,"span",38),n(671,"mat-icon",39),e(672,"span"),i(673,"Turn on notifications for this post"),t()()()()(),e(674,"div",109),i(675," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(676,"div",147)(677,"div",148),n(678,"img",149),t(),e(679,"div",150)(680,"div",151),n(681,"img",152),t(),e(682,"div",153),n(683,"img",154),t()()(),e(684,"div",114)(685,"button",98),n(686,"mat-icon",115),e(687,"span",99),i(688,"Unlike"),t()(),e(689,"button",98),n(690,"mat-icon",47),e(691,"span",99),i(692,"Comment"),t()(),e(693,"button",98),n(694,"mat-icon",47),e(695,"span",99),i(696,"Share"),t()()(),n(697,"hr",116),e(698,"div",117)(699,"div",38),n(700,"img",118)(701,"img",119)(702,"img",119)(703,"img",119),e(704,"div",120),i(705," You and 24 more liked this "),t()(),n(706,"div",121),e(707,"div",122)(708,"button",123),i(709," 4 shares "),t(),e(710,"button",146),i(711," No comments "),t()()()(),e(712,"angor-card",103)(713,"div",104),n(714,"img",85),e(715,"div",37)(716,"span",73),i(717,"Caroline Lundu"),t(),e(718,"span",106),i(719,"29 minutes ago"),t()(),e(720,"button",107),n(721,"mat-icon",47),t(),e(722,"mat-menu",null,11)(724,"button",48)(725,"span",38),n(726,"mat-icon",39),e(727,"span"),i(728,"Save post"),t()()(),e(729,"button",48)(730,"span",38),n(731,"mat-icon",39),e(732,"span"),i(733,"Hide post"),t()()(),e(734,"button",48)(735,"span",38),n(736,"mat-icon",39),e(737,"span"),i(738,"Snooze for 30 days"),t()()(),e(739,"button",48)(740,"span",38),n(741,"mat-icon",39),e(742,"span"),i(743,"Hide all"),t()()(),n(744,"mat-divider",108),e(745,"button",48)(746,"span",38),n(747,"mat-icon",39),e(748,"span"),i(749,"Report post"),t()()(),e(750,"button",48)(751,"span",38),n(752,"mat-icon",39),e(753,"span"),i(754,"Turn on notifications for this post"),t()()()()(),e(755,"div",109),i(756," Hey!! I never saw this one, it was amazing.. I think I\u2019m going to buy myself a set and try his technique at home! "),t(),e(757,"div",155)(758,"div",156)(759,"div",157),n(760,"img",158),t(),e(761,"div",159)(762,"div",160),i(763," Take a look behind the scenes of Rob Boss episodes "),t(),e(764,"div",161),i(765," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. "),t(),e(766,"div",162),i(767," example.com "),t()()()(),e(768,"div",114)(769,"button",98),n(770,"mat-icon",115),e(771,"span",99),i(772,"Unlike"),t()(),e(773,"button",98),n(774,"mat-icon",47),e(775,"span",99),i(776,"Comment"),t()(),e(777,"button",98),n(778,"mat-icon",47),e(779,"span",99),i(780,"Share"),t()()(),n(781,"hr",116),e(782,"div",117)(783,"div",38),n(784,"img",118)(785,"img",119)(786,"img",119)(787,"img",119),e(788,"div",120),i(789," You and 24 more liked this "),t()(),n(790,"div",121),e(791,"div",122)(792,"button",123),i(793," 4 shares "),t(),e(794,"button",146),i(795," No comments "),t()()()(),e(796,"angor-card",103)(797,"div",104),n(798,"img",85),e(799,"div",37)(800,"span",105),i(801,"Marleah Eagleston"),t(),e(802,"span",106),i(803,"29 minutes ago"),t()(),e(804,"button",107),n(805,"mat-icon",47),t(),e(806,"mat-menu",null,12)(808,"button",48)(809,"span",38),n(810,"mat-icon",39),e(811,"span"),i(812,"Save post"),t()()(),e(813,"button",48)(814,"span",38),n(815,"mat-icon",39),e(816,"span"),i(817,"Hide post"),t()()(),e(818,"button",48)(819,"span",38),n(820,"mat-icon",39),e(821,"span"),i(822,"Snooze for 30 days"),t()()(),e(823,"button",48)(824,"span",38),n(825,"mat-icon",39),e(826,"span"),i(827,"Hide all"),t()()(),n(828,"mat-divider",108),e(829,"button",48)(830,"span",38),n(831,"mat-icon",39),e(832,"span"),i(833,"Report post"),t()()(),e(834,"button",48)(835,"span",38),n(836,"mat-icon",39),e(837,"span"),i(838,"Turn on notifications for this post"),t()()()()(),e(839,"div",109),i(840," Look at that sky! I so want to be there.. Can we arrange a trip? Is that a possibility? Please!!! "),t(),e(841,"div",147)(842,"div",148),n(843,"img",163),t(),e(844,"div",164),n(845,"img",165),t()(),e(846,"div",114)(847,"button",98),n(848,"mat-icon",115),e(849,"span",99),i(850,"Unlike"),t()(),e(851,"button",98),n(852,"mat-icon",47),e(853,"span",99),i(854,"Comment"),t()(),e(855,"button",98),n(856,"mat-icon",47),e(857,"span",99),i(858,"Share"),t()()(),n(859,"hr",116),e(860,"div",117)(861,"div",38),n(862,"img",118)(863,"img",119)(864,"img",119)(865,"img",119),e(866,"div",120),i(867," You and 24 more liked this "),t()(),n(868,"div",121),e(869,"div",122)(870,"button",123),i(871," 4 shares "),t(),e(872,"button",146),i(873," No comments "),t()()()(),e(874,"angor-card",103)(875,"div",104),n(876,"img",85),e(877,"div",37)(878,"span",105),i(879,"Caroline Lundu"),t(),e(880,"span",106),i(881,"29 minutes ago"),t()(),e(882,"button",107),n(883,"mat-icon",47),t(),e(884,"mat-menu",null,13)(886,"button",48)(887,"span",38),n(888,"mat-icon",39),e(889,"span"),i(890,"Save post"),t()()(),e(891,"button",48)(892,"span",38),n(893,"mat-icon",39),e(894,"span"),i(895,"Hide post"),t()()(),e(896,"button",48)(897,"span",38),n(898,"mat-icon",39),e(899,"span"),i(900,"Snooze for 30 days"),t()()(),e(901,"button",48)(902,"span",38),n(903,"mat-icon",39),e(904,"span"),i(905,"Hide all"),t()()(),n(906,"mat-divider",108),e(907,"button",48)(908,"span",38),n(909,"mat-icon",39),e(910,"span"),i(911,"Report post"),t()()(),e(912,"button",48)(913,"span",38),n(914,"mat-icon",39),e(915,"span"),i(916,"Turn on notifications for this post"),t()()()()(),e(917,"div",109),i(918," Hey!! I never saw this episode, it was amazing.. I think I\u2019m going to buy myself a set and try his technique at home! "),t(),e(919,"div",155)(920,"div",166)(921,"div",167),n(922,"img",168),t(),e(923,"div",159)(924,"div",160),i(925," Rob Boss - Season 09 Episode 04 "),t(),e(926,"div",161),i(927," We'll put a happy little sky in here. We touch the canvas, the canvas takes what it wants. A little happy sunlight shining through there. "),t(),e(928,"div",162),i(929," example.com "),t()()()(),e(930,"div",114)(931,"button",98),n(932,"mat-icon",115),e(933,"span",99),i(934,"Unlike"),t()(),e(935,"button",98),n(936,"mat-icon",47),e(937,"span",99),i(938,"Comment"),t()(),e(939,"button",98),n(940,"mat-icon",47),e(941,"span",99),i(942,"Share"),t()()(),n(943,"hr",116),e(944,"div",117)(945,"div",38),n(946,"img",118)(947,"img",119)(948,"img",119)(949,"img",119),e(950,"div",120),i(951," You and 24 more liked this "),t()(),n(952,"div",121),e(953,"div",122)(954,"button",123),i(955," 4 shares "),t(),e(956,"button",146),i(957," No comments "),t()()()()()()()}if(v&2){let x=m(8),S=m(66),f=m(101),ge=m(138),xe=m(189),he=m(222),Se=m(284),fe=m(311),be=m(322),Ee=m(566),ye=m(642),_e=m(723),Ie=m(807),we=m(885);a(3),h("alt",(l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Banner"),r("src",(l.metadata==null?null:l.metadata.banner)||"/images/pages/profile/cover.jpg",b),a(3),r("ngIf",l.metadata==null?null:l.metadata.picture)("ngIfElse",x),a(5),E((l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Unknown User"),a(2),E((l.metadata==null?null:l.metadata.username)||(l.metadata==null?null:l.metadata.name)),a(14),r("routerLink",s(134,c)),a(2),r("routerLink",s(135,c)),a(2),r("routerLink",s(136,c)),a(2),r("routerLink",s(137,c)),a(8),A(" ",(l.metadata==null?null:l.metadata.about)||""," "),a(4),r("svgIcon","heroicons_solid:map-pin"),a(4),r("svgIcon","heroicons_solid:briefcase"),a(4),r("svgIcon","heroicons_solid:cake"),a(3),r("color","primary")("routerLink",s(138,c)),a(7),r("matMenuTriggerFor",S),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(27),r("color","primary")("routerLink",s(139,c)),a(7),r("matMenuTriggerFor",f),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(29),r("color","primary")("routerLink",s(140,c)),a(7),r("matMenuTriggerFor",ge),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(43),r("color","primary")("routerLink",s(141,c)),a(7),r("matMenuTriggerFor",xe),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(7),r("svgIcon","heroicons_solid:bell"),a(6),r("svgIcon","heroicons_solid:bell"),a(3),r("routerLink",s(142,c)),a(3),r("svgIcon","heroicons_solid:bell"),a(3),r("routerLink",s(143,c)),a(3),r("color","primary")("routerLink",s(144,c)),a(7),r("matMenuTriggerFor",he),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(35),r("color","primary")("routerLink",s(145,c)),a(8),h("alt",(l.metadata==null?null:l.metadata.display_name)||(l.metadata==null?null:l.metadata.name)||"Avatar"),r("src",(l.metadata==null?null:l.metadata.picture)||"images/avatars/avatar-placeholder.png",b),a(2),E((l.metadata==null?null:l.metadata.name)||"Unknown User"),a(),r("subscriptSizing","dynamic"),a(),r("placeholder","What's on your mind?")("rows",3),a(3),r("svgIcon","heroicons_solid:photo"),a(4),r("svgIcon","heroicons_solid:user-circle"),a(4),r("svgIcon","heroicons_solid:face-smile"),a(3),r("matMenuTriggerFor",Se),a(),r("svgIcon","heroicons_solid:ellipsis-horizontal"),a(5),r("svgIcon","heroicons_solid:user-circle"),a(5),r("svgIcon","heroicons_solid:face-smile"),a(5),r("svgIcon","heroicons_solid:play"),a(5),r("svgIcon","heroicons_solid:sparkles"),a(5),r("svgIcon","heroicons_solid:map-pin"),a(12),r("matMenuTriggerFor",be),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(7),r("matTooltip","Barmouth / UK")("matTooltipPosition","right"),a(),r("svgIcon","heroicons_solid:map-pin"),a(3),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(19),r("ngClass",U(146,Ce,fe.expanded))("svgIcon","heroicons_mini:chevron-down"),a(6),r("subscriptSizing","dynamic"),a(),r("placeholder","Write a comment...")("rows",3),a(3),r("svgIcon","heroicons_solid:sparkles"),a(2),r("svgIcon","heroicons_solid:face-smile"),a(2),r("svgIcon","heroicons_solid:photo"),a(160),r("matMenuTriggerFor",Ee),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(10),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",ye),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(15),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",_e),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(18),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",Ie),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(12),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share"),a(26),r("matMenuTriggerFor",we),a(),r("svgIcon","heroicons_solid:ellipsis-vertical"),a(5),r("svgIcon","heroicons_solid:arrow-up-tray"),a(5),r("svgIcon","heroicons_solid:eye-slash"),a(5),r("svgIcon","heroicons_solid:clock"),a(5),r("svgIcon","heroicons_solid:minus-circle"),a(6),r("svgIcon","heroicons_solid:exclamation-triangle"),a(5),r("svgIcon","heroicons_solid:bell"),a(18),r("svgIcon","heroicons_solid:heart"),a(4),r("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),a(4),r("svgIcon","heroicons_solid:share")}},dependencies:[W,ve,$,X,J,K,V,q,ne,te,ee,ie,G,O,me,le,ae,re,de,se,Z,Q,P,N,B],encapsulation:2,changeDetection:0});let p=u;return p})();var at=[{path:"",component:ue}];export{at as default}; diff --git a/index.html b/index.html index 4dd55c5..4967062 100644 --- a/index.html +++ b/index.html @@ -42,5 +42,5 @@ - + diff --git a/main-IO7HEYYC.js b/main-QSBPRLJZ.js similarity index 99% rename from main-IO7HEYYC.js rename to main-QSBPRLJZ.js index 2374c69..f2c8daf 100644 --- a/main-IO7HEYYC.js +++ b/main-QSBPRLJZ.js @@ -1,10 +1,10 @@ -import{a as qc,b as kc}from"./chunk-SJC7NN3X.js";import{a as Fc,b as Rc}from"./chunk-BVVMJWCI.js";import{a as na,b as uo,c as mo,d as oa}from"./chunk-LKKRLEHJ.js";import{a as ot,b as rt}from"./chunk-BK7YAMGQ.js";import{b as gc,c as fc,d as hc,e as so}from"./chunk-L2RASMKO.js";import{a as xe,b as C,c as _c,d as co,e as xc,f as wc,g as $a,h as pi}from"./chunk-3Q7ZV3LD.js";import{a as qt}from"./chunk-HXPRHIP3.js";import{b as fo}from"./chunk-ZSOMQRTJ.js";import{e as uc,f as dc,h as oo,l as ro,m as mc,p as ti,s as pc,t as go,v as Hc}from"./chunk-PWH2GQNP.js";import{a as gi}from"./chunk-GTCJWQQT.js";import{A as Tc,B as Dc,C as Ac,D as Ic,H as Mc,K as Ec,N as Oc,T as Nc,U as Lc,V as Pc,W as po,a as oe,b as Wt,c as oc,d as ei,e as rc,f as sc,g as ut,h as lc,j as Vr,m as cc,n as aa,o as Wr,p as no,w as bc,x as vc,y as yc,z as lo}from"./chunk-4AZPYN7Q.js";import"./chunk-7WK6GZSZ.js";import{$ as et,E as Kl,G as Ql,H as Jr,J as Xl,K as io,L as Br,P as ec,Q as tc,R as ic,S as ao,T as ac,U as nc,V as Ga,X as Sc,Z as Xe,a as ia,aa as Cc,ba as he,ca as be,h as Gl,j as eo,k as mi,q as $l,r as Zl,s as zr,t as to,v as Yl}from"./chunk-MH4Z64LL.js";import{$ as Qt,$a as q,A as Ai,Aa as Ye,Ab as $n,Ac as Bl,B as $e,Ba as m,Bb as ae,Bc as Vl,Ca as j,Cb as Zn,Cc as Wl,D as Sl,Dc as Ul,E as Un,Ea as Lr,F as Ze,Ga as Ml,Gb as Va,H as Yi,Ha as Mi,Hb as G,Ia as Ba,Ib as Yn,J as Cl,Ja as El,Jb as qe,K as ql,Kb as Ct,Lb as Pl,M as kl,Mb as Fl,Nb as Rl,O as Tl,Oa as Pr,Ob as Ei,P as Je,Pa as A,Q as B,Qb as Oi,Rb as it,S as Ht,Sa as Ol,Ta as Fr,Tb as Wa,U as le,Ua as f,V as Dl,W as O,Wa as Ke,Wb as ce,X as ja,Xa as Nl,Xb as Ni,Y as Ne,Ya as li,Z as P,_ as I,_a as zt,a as M,ab as Pe,b as ne,ba as U,bb as Fe,bc as nt,c as yl,ca as za,cb as y,d as Ra,da as Ja,db as _,dc as _e,e as Di,ea as Ii,eb as S,ec as Hl,fa as Al,fb as Jt,fc as Kn,g as Er,gb as Bt,gc as yt,h as zn,ha as tt,hb as ye,i as Jn,ia as K,ib as re,ic as Qn,j as Bn,ja as Q,k as Z,ka as Il,kc as Xi,l as Ft,lb as Y,m as Rt,mc as jl,nb as h,nc as Hr,o as _l,oa as Or,ob as Gn,oc as ci,p as Ha,pa as ct,pb as Qi,pc as Ua,q as vt,qa as Ki,qc as jr,r as Kt,rb as Ll,rc as zl,s as xl,sa as jt,sb as Rr,sc as Jl,t as Ee,tb as Qe,tc as ea,u as Vn,ub as Re,uc as Vt,vb as He,vc as ta,w as wl,wa as Nr,wc as ui,x as Wn,xc as je,y as Zi,yb as te,yc as di,za as Xt,zb as z,zc as Xn}from"./chunk-LP5NDBXI.js";var yp=Di(()=>{});var La=Di((Cr,_p)=>{(function(i,e){typeof Cr=="object"?_p.exports=Cr=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(Cr,function(){var i=i||function(e,a){var t;if(typeof window<"u"&&window.crypto&&(t=window.crypto),typeof self<"u"&&self.crypto&&(t=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(t=globalThis.crypto),!t&&typeof window<"u"&&window.msCrypto&&(t=window.msCrypto),!t&&typeof global<"u"&&global.crypto&&(t=global.crypto),!t&&typeof yl=="function")try{t=yp()}catch{}var n=function(){if(t){if(typeof t.getRandomValues=="function")try{return t.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof t.randomBytes=="function")try{return t.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function w(){}return function(k){var R;return w.prototype=k,R=new w,w.prototype=null,R}}(),r={},s=r.lib={},l=s.Base=function(){return{extend:function(w){var k=o(this);return w&&k.mixIn(w),(!k.hasOwnProperty("init")||this.init===k.init)&&(k.init=function(){k.$super.init.apply(this,arguments)}),k.init.prototype=k,k.$super=this,k},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var k in w)w.hasOwnProperty(k)&&(this[k]=w[k]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(w,k){w=this.words=w||[],k!=a?this.sigBytes=k:this.sigBytes=w.length*4},toString:function(w){return(w||g).stringify(this)},concat:function(w){var k=this.words,R=w.words,J=this.sigBytes,pe=w.sigBytes;if(this.clamp(),J%4)for(var ee=0;ee>>2]>>>24-ee%4*8&255;k[J+ee>>>2]|=ve<<24-(J+ee)%4*8}else for(var fe=0;fe>>2]=R[fe>>>2];return this.sigBytes+=pe,this},clamp:function(){var w=this.words,k=this.sigBytes;w[k>>>2]&=4294967295<<32-k%4*8,w.length=e.ceil(k/4)},clone:function(){var w=l.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var k=[],R=0;R>>2]>>>24-pe%4*8&255;J.push((ee>>>4).toString(16)),J.push((ee&15).toString(16))}return J.join("")},parse:function(w){for(var k=w.length,R=[],J=0;J>>3]|=parseInt(w.substr(J,2),16)<<24-J%8*4;return new c.init(R,k/2)}},x=d.Latin1={stringify:function(w){for(var k=w.words,R=w.sigBytes,J=[],pe=0;pe>>2]>>>24-pe%4*8&255;J.push(String.fromCharCode(ee))}return J.join("")},parse:function(w){for(var k=w.length,R=[],J=0;J>>2]|=(w.charCodeAt(J)&255)<<24-J%4*8;return new c.init(R,k)}},b=d.Utf8={stringify:function(w){try{return decodeURIComponent(escape(x.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return x.parse(unescape(encodeURIComponent(w)))}},v=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=b.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var k,R=this._data,J=R.words,pe=R.sigBytes,ee=this.blockSize,ve=ee*4,fe=pe/ve;w?fe=e.ceil(fe):fe=e.max((fe|0)-this._minBufferSize,0);var Se=fe*ee,ze=e.min(Se*4,pe);if(Se){for(var Lt=0;Lt{(function(i,e){typeof qr=="object"?xp.exports=qr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(qr,function(i){return function(){var e=i,a=e.lib,t=a.WordArray,n=e.enc,o=n.Base64={stringify:function(s){var l=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var g=[],x=0;x>>2]>>>24-x%4*8&255,v=l[x+1>>>2]>>>24-(x+1)%4*8&255,T=l[x+2>>>2]>>>24-(x+2)%4*8&255,E=b<<16|v<<8|T,w=0;w<4&&x+w*.75>>6*(3-w)&63));var k=d.charAt(64);if(k)for(;g.length%4;)g.push(k);return g.join("")},parse:function(s){var l=s.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var g=0;g>>6-x%4*2,T=b|v;d[g>>>2]|=T<<24-g%4*8,g++}return t.create(d,g)}}(),i.enc.Base64})});var Cp=Di((kr,Sp)=>{(function(i,e){typeof kr=="object"?Sp.exports=kr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(kr,function(i){return i.enc.Utf8})});var kp=Di((Tr,qp)=>{(function(i,e){typeof Tr=="object"?qp.exports=Tr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(Tr,function(i){return function(e){var a=i,t=a.lib,n=t.WordArray,o=t.Hasher,r=a.algo,s=[],l=[];(function(){function g(T){for(var E=e.sqrt(T),w=2;w<=E;w++)if(!(T%w))return!1;return!0}function x(T){return(T-(T|0))*4294967296|0}for(var b=2,v=0;v<64;)g(b)&&(v<8&&(s[v]=x(e.pow(b,1/2))),l[v]=x(e.pow(b,1/3)),v++),b++})();var c=[],d=r.SHA256=o.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(g,x){for(var b=this._hash.words,v=b[0],T=b[1],E=b[2],w=b[3],k=b[4],R=b[5],J=b[6],pe=b[7],ee=0;ee<64;ee++){if(ee<16)c[ee]=g[x+ee]|0;else{var ve=c[ee-15],fe=(ve<<25|ve>>>7)^(ve<<14|ve>>>18)^ve>>>3,Se=c[ee-2],ze=(Se<<15|Se>>>17)^(Se<<13|Se>>>19)^Se>>>10;c[ee]=fe+c[ee-7]+ze+c[ee-16]}var Lt=k&R^~k&J,Yt=v&T^v&E^T&E,Pa=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),Hn=(k<<26|k>>>6)^(k<<21|k>>>11)^(k<<7|k>>>25),Fa=pe+Hn+Lt+l[ee]+c[ee],F=Pa+Yt;pe=J,J=R,R=k,k=w+Fa|0,w=E,E=T,T=v,v=Fa+F|0}b[0]=b[0]+v|0,b[1]=b[1]+T|0,b[2]=b[2]+E|0,b[3]=b[3]+w|0,b[4]=b[4]+k|0,b[5]=b[5]+R|0,b[6]=b[6]+J|0,b[7]=b[7]+pe|0},_doFinalize:function(){var g=this._data,x=g.words,b=this._nDataBytes*8,v=g.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=e.floor(b/4294967296),x[(v+64>>>9<<4)+15]=b,g.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=o._createHelper(d),a.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var Dp=Di((Dr,Tp)=>{(function(i,e){typeof Dr=="object"?Tp.exports=Dr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(Dr,function(i){(function(){var e=i,a=e.lib,t=a.Base,n=e.enc,o=n.Utf8,r=e.algo,s=r.HMAC=t.extend({init:function(l,c){l=this._hasher=new l.init,typeof c=="string"&&(c=o.parse(c));var d=l.blockSize,g=d*4;c.sigBytes>g&&(c=l.finalize(c)),c.clamp();for(var x=this._oKey=c.clone(),b=this._iKey=c.clone(),v=x.words,T=b.words,E=0;E{(function(i,e,a){typeof Ar=="object"?Ap.exports=Ar=e(La(),kp(),Dp()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(i.CryptoJS)})(Ar,function(i){return i.HmacSHA256})});var jc=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["app-root"]],standalone:!0,features:[G],decls:1,vars:0,template:function(n,o){n&1&&S(0,"router-outlet")},dependencies:[ui],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]});let i=e;return i})();var ii=class extends Error{},ho=class extends ii{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},bo=class extends ii{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},vo=class extends ii{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},kt=class extends ii{},ra=class extends ii{constructor(e){super(`Invalid unit ${e}`)}},Ae=class extends ii{},Tt=class extends ii{constructor(){super("Zone is an abstract class")}};var N="numeric",Dt="short",dt="long",fi={year:N,month:N,day:N},Za={year:N,month:Dt,day:N},Ur={year:N,month:Dt,day:N,weekday:Dt},Ya={year:N,month:dt,day:N},Ka={year:N,month:dt,day:N,weekday:dt},Qa={hour:N,minute:N},Xa={hour:N,minute:N,second:N},en={hour:N,minute:N,second:N,timeZoneName:Dt},tn={hour:N,minute:N,second:N,timeZoneName:dt},an={hour:N,minute:N,hourCycle:"h23"},nn={hour:N,minute:N,second:N,hourCycle:"h23"},on={hour:N,minute:N,second:N,hourCycle:"h23",timeZoneName:Dt},rn={hour:N,minute:N,second:N,hourCycle:"h23",timeZoneName:dt},sn={year:N,month:N,day:N,hour:N,minute:N},ln={year:N,month:N,day:N,hour:N,minute:N,second:N},cn={year:N,month:Dt,day:N,hour:N,minute:N},un={year:N,month:Dt,day:N,hour:N,minute:N,second:N},Gr={year:N,month:Dt,day:N,weekday:Dt,hour:N,minute:N},dn={year:N,month:dt,day:N,hour:N,minute:N,timeZoneName:Dt},mn={year:N,month:dt,day:N,hour:N,minute:N,second:N,timeZoneName:Dt},pn={year:N,month:dt,day:N,weekday:dt,hour:N,minute:N,timeZoneName:dt},gn={year:N,month:dt,day:N,weekday:dt,hour:N,minute:N,second:N,timeZoneName:dt};var mt=class{get type(){throw new Tt}get name(){throw new Tt}get ianaName(){return this.name}get isUniversal(){throw new Tt}offsetName(e,a){throw new Tt}formatOffset(e,a){throw new Tt}offset(e){throw new Tt}equals(e){throw new Tt}get isValid(){throw new Tt}};var $r=null,Li=class i extends mt{static get instance(){return $r===null&&($r=new i),$r}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:a,locale:t}){return _o(e,a,t)}formatOffset(e,a){return hi(this.offset(e),a)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var wo={};function og(i){return wo[i]||(wo[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),wo[i]}var rg={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function sg(i,e){let a=i.format(e).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(a),[,n,o,r,s,l,c,d]=t;return[r,n,o,s,l,c,d]}function lg(i,e){let a=i.formatToParts(e),t=[];for(let n=0;n=0?v:1e3+v,(x-b)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var zc={};function cg(i,e={}){let a=JSON.stringify([i,e]),t=zc[a];return t||(t=new Intl.ListFormat(i,e),zc[a]=t),t}var Zr={};function Yr(i,e={}){let a=JSON.stringify([i,e]),t=Zr[a];return t||(t=new Intl.DateTimeFormat(i,e),Zr[a]=t),t}var Kr={};function ug(i,e={}){let a=JSON.stringify([i,e]),t=Kr[a];return t||(t=new Intl.NumberFormat(i,e),Kr[a]=t),t}var Qr={};function dg(i,e={}){let r=e,{base:a}=r,t=Ra(r,["base"]),n=JSON.stringify([i,t]),o=Qr[n];return o||(o=new Intl.RelativeTimeFormat(i,e),Qr[n]=o),o}var fn=null;function mg(){return fn||(fn=new Intl.DateTimeFormat().resolvedOptions().locale,fn)}var Jc={};function pg(i){let e=Jc[i];if(!e){let a=new Intl.Locale(i);e="getWeekInfo"in a?a.getWeekInfo():a.weekInfo,Jc[i]=e}return e}function gg(i){let e=i.indexOf("-x-");e!==-1&&(i=i.substring(0,e));let a=i.indexOf("-u-");if(a===-1)return[i];{let t,n;try{t=Yr(i).resolvedOptions(),n=i}catch{let l=i.substring(0,a);t=Yr(l).resolvedOptions(),n=l}let{numberingSystem:o,calendar:r}=t;return[n,o,r]}}function fg(i,e,a){return(a||e)&&(i.includes("-u-")||(i+="-u"),a&&(i+=`-ca-${a}`),e&&(i+=`-nu-${e}`)),i}function hg(i){let e=[];for(let a=1;a<=12;a++){let t=L.utc(2009,a,1);e.push(i(t))}return e}function bg(i){let e=[];for(let a=1;a<=7;a++){let t=L.utc(2016,11,13+a);e.push(i(t))}return e}function So(i,e,a,t){let n=i.listingMode();return n==="error"?null:n==="en"?a(e):t(e)}function vg(i){return i.numberingSystem&&i.numberingSystem!=="latn"?!1:i.numberingSystem==="latn"||!i.locale||i.locale.startsWith("en")||new Intl.DateTimeFormat(i.intl).resolvedOptions().numberingSystem==="latn"}var Xr=class{constructor(e,a,t){this.padTo=t.padTo||0,this.floor=t.floor||!1;let s=t,{padTo:n,floor:o}=s,r=Ra(s,["padTo","floor"]);if(!a||Object.keys(r).length>0){let l=M({useGrouping:!1},t);t.padTo>0&&(l.minimumIntegerDigits=t.padTo),this.inf=ug(e,l)}}format(e){if(this.inf){let a=this.floor?Math.floor(e):e;return this.inf.format(a)}else{let a=this.floor?Math.floor(e):la(e,3);return ke(a,this.padTo)}}},es=class{constructor(e,a,t){this.opts=t,this.originalZone=void 0;let n;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let r=-1*(e.offset/60),s=r>=0?`Etc/GMT+${r}`:`Etc/GMT${r}`;e.offset!==0&&at.create(s).valid?(n=s,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o=M({},this.opts);o.timeZone=o.timeZone||n,this.dtf=Yr(a,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(a=>{if(a.type==="timeZoneName"){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ne(M({},a),{value:t})}else return a}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},ts=class{constructor(e,a,t){this.opts=M({style:"long"},t),!a&&Co()&&(this.rtf=dg(e,t))}format(e,a){return this.rtf?this.rtf.format(e,a):Bc(a,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,a){return this.rtf?this.rtf.formatToParts(e,a):[]}},yg={firstDay:1,minimalDays:4,weekend:[6,7]},de=class i{static fromOpts(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,a,t,n,o=!1){let r=e||ue.defaultLocale,s=r||(o?"en-US":mg()),l=a||ue.defaultNumberingSystem,c=t||ue.defaultOutputCalendar,d=hn(n)||ue.defaultWeekSettings;return new i(s,l,c,d,r)}static resetCache(){fn=null,Zr={},Kr={},Qr={}}static fromObject({locale:e,numberingSystem:a,outputCalendar:t,weekSettings:n}={}){return i.create(e,a,t,n)}constructor(e,a,t,n,o){let[r,s,l]=gg(e);this.locale=r,this.numberingSystem=a||s||null,this.outputCalendar=t||l||null,this.weekSettings=n,this.intl=fg(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vg(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),a=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&a?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,hn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(ne(M({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(ne(M({},e),{defaultToEN:!1}))}months(e,a=!1){return So(this,e,is,()=>{let t=a?{month:e,day:"numeric"}:{month:e},n=a?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=hg(o=>this.extract(o,t,"month"))),this.monthsCache[n][e]})}weekdays(e,a=!1){return So(this,e,as,()=>{let t=a?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=a?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=bg(o=>this.extract(o,t,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return So(this,void 0,()=>ns,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[L.utc(2016,11,13,9),L.utc(2016,11,13,19)].map(a=>this.extract(a,e,"dayperiod"))}return this.meridiemCache})}eras(e){return So(this,e,os,()=>{let a={era:e};return this.eraCache[e]||(this.eraCache[e]=[L.utc(-40,1,1),L.utc(2017,1,1)].map(t=>this.extract(t,a,"era"))),this.eraCache[e]})}extract(e,a,t){let n=this.dtFormatter(e,a),o=n.formatToParts(),r=o.find(s=>s.type.toLowerCase()===t);return r?r.value:null}numberFormatter(e={}){return new Xr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,a={}){return new es(e,this.intl,a)}relFormatter(e={}){return new ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cg(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:qo()?pg(this.locale):yg}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var ss=null,Be=class i extends mt{static get utcInstance(){return ss===null&&(ss=new i(0)),ss}static instance(e){return e===0?i.utcInstance:new i(e)}static parseSpecifier(e){if(e){let a=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(a)return new i(Pi(a[1],a[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${hi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${hi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,a){return hi(this.fixed,a)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var bn=class extends mt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function At(i,e){let a;if(W(i)||i===null)return e;if(i instanceof mt)return i;if(Vc(i)){let t=i.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Li.instance:t==="utc"||t==="gmt"?Be.utcInstance:Be.parseSpecifier(t)||at.create(i)}else return It(i)?Be.instance(i):typeof i=="object"&&"offset"in i&&typeof i.offset=="function"?i:new bn(i)}var ls={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Wc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},_g=ls.hanidec.replace(/[\[|\]]/g,"").split("");function Uc(i){let e=parseInt(i,10);if(isNaN(e)){e="";for(let a=0;a=o&&t<=r&&(e+=t-o)}}return parseInt(e,10)}else return e}var ca={};function Gc(){ca={}}function _t({numberingSystem:i},e=""){let a=i||"latn";return ca[a]||(ca[a]={}),ca[a][e]||(ca[a][e]=new RegExp(`${ls[a]}${e}`)),ca[a][e]}var $c=()=>Date.now(),Zc="system",Yc=null,Kc=null,Qc=null,Xc=60,eu,tu=null,ue=class{static get now(){return $c}static set now(e){$c=e}static set defaultZone(e){Zc=e}static get defaultZone(){return At(Zc,Li.instance)}static get defaultLocale(){return Yc}static set defaultLocale(e){Yc=e}static get defaultNumberingSystem(){return Kc}static set defaultNumberingSystem(e){Kc=e}static get defaultOutputCalendar(){return Qc}static set defaultOutputCalendar(e){Qc=e}static get defaultWeekSettings(){return tu}static set defaultWeekSettings(e){tu=hn(e)}static get twoDigitCutoffYear(){return Xc}static set twoDigitCutoffYear(e){Xc=e%100}static get throwOnInvalid(){return eu}static set throwOnInvalid(e){eu=e}static resetCaches(){de.resetCache(),at.resetCache(),L.resetCache(),Gc()}};var Ve=class{constructor(e,a){this.reason=e,this.explanation=a}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var iu=[0,31,59,90,120,151,181,212,243,273,304,334],au=[0,31,60,91,121,152,182,213,244,274,305,335];function xt(i,e){return new Ve("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${i}, which is invalid`)}function ko(i,e,a){let t=new Date(Date.UTC(i,e-1,a));i<100&&i>=0&&t.setUTCFullYear(t.getUTCFullYear()-1900);let n=t.getUTCDay();return n===0?7:n}function nu(i,e,a){return a+(Ri(i)?au:iu)[e-1]}function ou(i,e){let a=Ri(i)?au:iu,t=a.findIndex(o=>oFi(t,e,a)?(c=t+1,l=1):c=t,M({weekYear:c,weekNumber:l,weekday:s},_n(i))}function cs(i,e=4,a=1){let{weekYear:t,weekNumber:n,weekday:o}=i,r=To(ko(t,1,e),a),s=bi(t),l=n*7+o-r-7+e,c;l<1?(c=t-1,l+=bi(c)):l>s?(c=t+1,l-=bi(t)):c=t;let{month:d,day:g}=ou(c,l);return M({year:c,month:d,day:g},_n(i))}function Do(i){let{year:e,month:a,day:t}=i,n=nu(e,a,t);return M({year:e,ordinal:n},_n(i))}function us(i){let{year:e,ordinal:a}=i,{month:t,day:n}=ou(e,a);return M({year:e,month:t,day:n},_n(i))}function ds(i,e){if(!W(i.localWeekday)||!W(i.localWeekNumber)||!W(i.localWeekYear)){if(!W(i.weekday)||!W(i.weekNumber)||!W(i.weekYear))throw new kt("Cannot mix locale-based week fields with ISO-based week fields");return W(i.localWeekday)||(i.weekday=i.localWeekday),W(i.localWeekNumber)||(i.weekNumber=i.localWeekNumber),W(i.localWeekYear)||(i.weekYear=i.localWeekYear),delete i.localWeekday,delete i.localWeekNumber,delete i.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function ru(i,e=4,a=1){let t=yn(i.weekYear),n=pt(i.weekNumber,1,Fi(i.weekYear,e,a)),o=pt(i.weekday,1,7);return t?n?o?!1:xt("weekday",i.weekday):xt("week",i.weekNumber):xt("weekYear",i.weekYear)}function su(i){let e=yn(i.year),a=pt(i.ordinal,1,bi(i.year));return e?a?!1:xt("ordinal",i.ordinal):xt("year",i.year)}function ms(i){let e=yn(i.year),a=pt(i.month,1,12),t=pt(i.day,1,ua(i.year,i.month));return e?a?t?!1:xt("day",i.day):xt("month",i.month):xt("year",i.year)}function ps(i){let{hour:e,minute:a,second:t,millisecond:n}=i,o=pt(e,0,23)||e===24&&a===0&&t===0&&n===0,r=pt(a,0,59),s=pt(t,0,59),l=pt(n,0,999);return o?r?s?l?!1:xt("millisecond",n):xt("second",t):xt("minute",a):xt("hour",e)}function W(i){return typeof i>"u"}function It(i){return typeof i=="number"}function yn(i){return typeof i=="number"&&i%1===0}function Vc(i){return typeof i=="string"}function cu(i){return Object.prototype.toString.call(i)==="[object Date]"}function Co(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function qo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function uu(i){return Array.isArray(i)?i:[i]}function gs(i,e,a){if(i.length!==0)return i.reduce((t,n)=>{let o=[e(n),n];return t&&a(t[0],o[0])===t[0]?t:o},null)[1]}function du(i,e){return e.reduce((a,t)=>(a[t]=i[t],a),{})}function vi(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function hn(i){if(i==null)return null;if(typeof i!="object")throw new Ae("Week settings must be an object");if(!pt(i.firstDay,1,7)||!pt(i.minimalDays,1,7)||!Array.isArray(i.weekend)||i.weekend.some(e=>!pt(e,1,7)))throw new Ae("Invalid week settings");return{firstDay:i.firstDay,minimalDays:i.minimalDays,weekend:Array.from(i.weekend)}}function pt(i,e,a){return yn(i)&&i>=e&&i<=a}function xg(i,e){return i-e*Math.floor(i/e)}function ke(i,e=2){let a=i<0,t;return a?t="-"+(""+-i).padStart(e,"0"):t=(""+i).padStart(e,"0"),t}function ai(i){if(!(W(i)||i===null||i===""))return parseInt(i,10)}function yi(i){if(!(W(i)||i===null||i===""))return parseFloat(i)}function xn(i){if(!(W(i)||i===null||i==="")){let e=parseFloat("0."+i)*1e3;return Math.floor(e)}}function la(i,e,a=!1){let t=10**e;return(a?Math.trunc:Math.round)(i*t)/t}function Ri(i){return i%4===0&&(i%100!==0||i%400===0)}function bi(i){return Ri(i)?366:365}function ua(i,e){let a=xg(e-1,12)+1,t=i+(e-a)/12;return a===2?Ri(t)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][a-1]}function sa(i){let e=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(e=new Date(e),e.setUTCFullYear(i.year,i.month-1,i.day)),+e}function lu(i,e,a){return-To(ko(i,1,e),a)+e-1}function Fi(i,e=4,a=1){let t=lu(i,e,a),n=lu(i+1,e,a);return(bi(i)-t+n)/7}function wn(i){return i>99?i:i>ue.twoDigitCutoffYear?1900+i:2e3+i}function _o(i,e,a,t=null){let n=new Date(i),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(o.timeZone=t);let r=M({timeZoneName:e},o),s=new Intl.DateTimeFormat(a,r).formatToParts(n).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Pi(i,e){let a=parseInt(i,10);Number.isNaN(a)&&(a=0);let t=parseInt(e,10)||0,n=a<0||Object.is(a,-0)?-t:t;return a*60+n}function fs(i){let e=Number(i);if(typeof i=="boolean"||i===""||Number.isNaN(e))throw new Ae(`Invalid unit value ${i}`);return e}function da(i,e){let a={};for(let t in i)if(vi(i,t)){let n=i[t];if(n==null)continue;a[e(t)]=fs(n)}return a}function hi(i,e){let a=Math.trunc(Math.abs(i/60)),t=Math.trunc(Math.abs(i%60)),n=i>=0?"+":"-";switch(e){case"short":return`${n}${ke(a,2)}:${ke(t,2)}`;case"narrow":return`${n}${a}${t>0?`:${t}`:""}`;case"techie":return`${n}${ke(a,2)}${ke(t,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function _n(i){return du(i,["hour","minute","second","millisecond"])}var wg=["January","February","March","April","May","June","July","August","September","October","November","December"],hs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Sg=["J","F","M","A","M","J","J","A","S","O","N","D"];function is(i){switch(i){case"narrow":return[...Sg];case"short":return[...hs];case"long":return[...wg];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var bs=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vs=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Cg=["M","T","W","T","F","S","S"];function as(i){switch(i){case"narrow":return[...Cg];case"short":return[...vs];case"long":return[...bs];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ns=["AM","PM"],qg=["Before Christ","Anno Domini"],kg=["BC","AD"],Tg=["B","A"];function os(i){switch(i){case"narrow":return[...Tg];case"short":return[...kg];case"long":return[...qg];default:return null}}function mu(i){return ns[i.hour<12?0:1]}function pu(i,e){return as(e)[i.weekday-1]}function gu(i,e){return is(e)[i.month-1]}function fu(i,e){return os(e)[i.year<0?0:1]}function Bc(i,e,a="always",t=!1){let n={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(i)===-1;if(a==="auto"&&o){let g=i==="days";switch(e){case 1:return g?"tomorrow":`next ${n[i][0]}`;case-1:return g?"yesterday":`last ${n[i][0]}`;case 0:return g?"today":`this ${n[i][0]}`;default:}}let r=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,c=n[i],d=t?l?c[1]:c[2]||c[1]:l?n[i][0]:i;return r?`${s} ${d} ago`:`in ${s} ${d}`}function hu(i,e){let a="";for(let t of i)t.literal?a+=t.val:a+=e(t.val);return a}var Dg={D:fi,DD:Za,DDD:Ya,DDDD:Ka,t:Qa,tt:Xa,ttt:en,tttt:tn,T:an,TT:nn,TTT:on,TTTT:rn,f:sn,ff:cn,fff:dn,ffff:pn,F:ln,FF:un,FFF:mn,FFFF:gn},We=class i{static create(e,a={}){return new i(e,a)}static parseFormat(e){let a=null,t="",n=!1,o=[];for(let r=0;r0&&o.push({literal:n||/^\s+$/.test(t),val:t}),a=null,t="",n=!n):n||s===a?t+=s:(t.length>0&&o.push({literal:/^\s+$/.test(t),val:t}),t=s,a=s)}return t.length>0&&o.push({literal:n||/^\s+$/.test(t),val:t}),o}static macroTokenToFormatOpts(e){return Dg[e]}constructor(e,a){this.opts=a,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,a){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,M(M({},this.opts),a)).format()}dtFormatter(e,a={}){return this.loc.dtFormatter(e,M(M({},this.opts),a))}formatDateTime(e,a){return this.dtFormatter(e,a).format()}formatDateTimeParts(e,a){return this.dtFormatter(e,a).formatToParts()}formatInterval(e,a){return this.dtFormatter(e.start,a).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,a){return this.dtFormatter(e,a).resolvedOptions()}num(e,a=0){if(this.opts.forceSimple)return ke(e,a);let t=M({},this.opts);return a>0&&(t.padTo=a),this.loc.numberFormatter(t).format(e)}formatDateTimeFromString(e,a){let t=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(b,v)=>this.loc.extract(e,b,v),r=b=>e.isOffsetFixed&&e.offset===0&&b.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,b.format):"",s=()=>t?mu(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(b,v)=>t?gu(e,b):o(v?{month:b}:{month:b,day:"numeric"},"month"),c=(b,v)=>t?pu(e,b):o(v?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),d=b=>{let v=i.macroTokenToFormatOpts(b);return v?this.formatWithSystemDefault(e,v):b},g=b=>t?fu(e,b):o({era:b},"era"),x=b=>{switch(b){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(e.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(e.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(e.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(b)}};return hu(i.parseFormat(a),x)}formatDurationFromString(e,a){let t=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=l=>c=>{let d=t(c);return d?this.num(l.get(d),c.length):c},o=i.parseFormat(a),r=o.reduce((l,{literal:c,val:d})=>c?l:l.concat(d),[]),s=e.shiftTo(...r.map(t).filter(l=>l));return hu(o,n(s))}};var vu=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function pa(...i){let e=i.reduce((a,t)=>a+t.source,"");return RegExp(`^${e}$`)}function ga(...i){return e=>i.reduce(([a,t,n],o)=>{let[r,s,l]=o(e,n);return[M(M({},a),r),s||t,l]},[{},null,1]).slice(0,2)}function fa(i,...e){if(i==null)return[null,null];for(let[a,t]of e){let n=a.exec(i);if(n)return t(n)}return[null,null]}function yu(...i){return(e,a)=>{let t={},n;for(n=0;nb!==void 0&&(v||b&&d)?-b:b;return[{years:x(yi(a)),months:x(yi(t)),weeks:x(yi(n)),days:x(yi(o)),hours:x(yi(r)),minutes:x(yi(s)),seconds:x(yi(l),l==="-0"),milliseconds:x(xn(c),g)}]}var zg={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xs(i,e,a,t,n,o,r){let s={year:e.length===2?wn(ai(e)):ai(e),month:hs.indexOf(a)+1,day:ai(t),hour:ai(n),minute:ai(o)};return r&&(s.second=ai(r)),i&&(s.weekday=i.length>3?bs.indexOf(i)+1:vs.indexOf(i)+1),s}var Jg=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Bg(i){let[,e,a,t,n,o,r,s,l,c,d,g]=i,x=xs(e,n,t,a,o,r,s),b;return l?b=zg[l]:c?b=0:b=Pi(d,g),[x,new Be(b)]}function Vg(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Wg=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ug=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gg=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function bu(i){let[,e,a,t,n,o,r,s]=i;return[xs(e,n,t,a,o,r,s),Be.utcInstance]}function $g(i){let[,e,a,t,n,o,r,s]=i;return[xs(e,s,a,t,n,o,r),Be.utcInstance]}var Zg=pa(Ig,_s),Yg=pa(Mg,_s),Kg=pa(Eg,_s),Qg=pa(xu),Su=ga(Fg,ha,Sn,Cn),Xg=ga(Og,ha,Sn,Cn),ef=ga(Ng,ha,Sn,Cn),tf=ga(ha,Sn,Cn);function Cu(i){return fa(i,[Zg,Su],[Yg,Xg],[Kg,ef],[Qg,tf])}function qu(i){return fa(Vg(i),[Jg,Bg])}function ku(i){return fa(i,[Wg,bu],[Ug,bu],[Gg,$g])}function Tu(i){return fa(i,[Hg,jg])}var af=ga(ha);function Du(i){return fa(i,[Rg,af])}var nf=pa(Lg,Pg),of=pa(wu),rf=ga(ha,Sn,Cn);function Au(i){return fa(i,[nf,Su],[of,rf])}var Iu="Invalid Duration",Eu={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},sf=M({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Eu),wt=146097/400,ba=146097/4800,lf=M({years:{quarters:4,months:12,weeks:wt/7,days:wt,hours:wt*24,minutes:wt*24*60,seconds:wt*24*60*60,milliseconds:wt*24*60*60*1e3},quarters:{months:3,weeks:wt/28,days:wt/4,hours:wt*24/4,minutes:wt*24*60/4,seconds:wt*24*60*60/4,milliseconds:wt*24*60*60*1e3/4},months:{weeks:ba/7,days:ba,hours:ba*24,minutes:ba*24*60,seconds:ba*24*60*60,milliseconds:ba*24*60*60*1e3}},Eu),Hi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],cf=Hi.slice(0).reverse();function _i(i,e,a=!1){let t={values:a?e.values:M(M({},i.values),e.values||{}),loc:i.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||i.conversionAccuracy,matrix:e.matrix||i.matrix};return new Ie(t)}function Ou(i,e){let a=e.milliseconds??0;for(let t of cf.slice(1))e[t]&&(a+=e[t]*i[t].milliseconds);return a}function Mu(i,e){let a=Ou(i,e)<0?-1:1;Hi.reduceRight((t,n)=>{if(W(e[n]))return t;if(t){let o=e[t]*a,r=i[n][t],s=Math.floor(o/r);e[n]+=s*a,e[t]-=s*r*a}return n},null),Hi.reduce((t,n)=>{if(W(e[n]))return t;if(t){let o=e[t]%1;e[t]-=o,e[n]+=o*i[t][n]}return n},null)}function uf(i){let e={};for(let[a,t]of Object.entries(i))t!==0&&(e[a]=t);return e}var Ie=class i{constructor(e){let a=e.conversionAccuracy==="longterm"||!1,t=a?lf:sf;e.matrix&&(t=e.matrix),this.values=e.values,this.loc=e.loc||de.create(),this.conversionAccuracy=a?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t,this.isLuxonDuration=!0}static fromMillis(e,a){return i.fromObject({milliseconds:e},a)}static fromObject(e,a={}){if(e==null||typeof e!="object")throw new Ae(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new i({values:da(e,i.normalizeUnit),loc:de.fromObject(a),conversionAccuracy:a.conversionAccuracy,matrix:a.matrix})}static fromDurationLike(e){if(It(e))return i.fromMillis(e);if(i.isDuration(e))return e;if(typeof e=="object")return i.fromObject(e);throw new Ae(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,a){let[t]=Tu(e);return t?i.fromObject(t,a):i.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,a){let[t]=Du(e);return t?i.fromObject(t,a):i.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,a=null){if(!e)throw new Ae("need to specify a reason the Duration is invalid");let t=e instanceof Ve?e:new Ve(e,a);if(ue.throwOnInvalid)throw new vo(t);return new i({invalid:t})}static normalizeUnit(e){let a={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!a)throw new ra(e);return a}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,a={}){let t=ne(M({},a),{floor:a.round!==!1&&a.floor!==!1});return this.isValid?We.create(this.loc,t).formatDurationFromString(this,e):Iu}toHuman(e={}){if(!this.isValid)return Iu;let a=Hi.map(t=>{let n=this.values[t];return W(n)?null:this.loc.numberFormatter(ne(M({style:"unit",unitDisplay:"long"},e),{unit:t.slice(0,-1)})).format(n)}).filter(t=>t);return this.loc.listFormatter(M({type:"conjunction",style:e.listStyle||"narrow"},e)).format(a)}toObject(){return this.isValid?M({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=la(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let a=this.toMillis();return a<0||a>=864e5?null:(e=ne(M({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e),{includeOffset:!1}),L.fromMillis(a,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ou(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let a=i.fromDurationLike(e),t={};for(let n of Hi)(vi(a.values,n)||vi(this.values,n))&&(t[n]=a.get(n)+this.get(n));return _i(this,{values:t},!0)}minus(e){if(!this.isValid)return this;let a=i.fromDurationLike(e);return this.plus(a.negate())}mapUnits(e){if(!this.isValid)return this;let a={};for(let t of Object.keys(this.values))a[t]=fs(e(this.values[t],t));return _i(this,{values:a},!0)}get(e){return this[i.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let a=M(M({},this.values),da(e,i.normalizeUnit));return _i(this,{values:a})}reconfigure({locale:e,numberingSystem:a,conversionAccuracy:t,matrix:n}={}){let r={loc:this.loc.clone({locale:e,numberingSystem:a}),matrix:n,conversionAccuracy:t};return _i(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Mu(this.matrix,e),_i(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=uf(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(r=>i.normalizeUnit(r));let a={},t={},n=this.toObject(),o;for(let r of Hi)if(e.indexOf(r)>=0){o=r;let s=0;for(let c in t)s+=this.matrix[c][r]*t[c],t[c]=0;It(n[r])&&(s+=n[r]);let l=Math.trunc(s);a[r]=l,t[r]=(s*1e3-l*1e3)/1e3}else It(n[r])&&(t[r]=n[r]);for(let r in t)t[r]!==0&&(a[o]+=r===o?t[r]:t[r]/this.matrix[o][r]);return Mu(this.matrix,a),_i(this,{values:a},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let a of Object.keys(this.values))e[a]=this.values[a]===0?0:-this.values[a];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function a(t,n){return t===void 0||t===0?n===void 0||n===0:t===n}for(let t of Hi)if(!a(this.values[t],e.values[t]))return!1;return!0}};var va="Invalid Interval";function df(i,e){return!i||!i.isValid?xi.invalid("missing or invalid start"):!e||!e.isValid?xi.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:a}={}){return this.isValid?i.fromDateTimes(e||this.s,a||this.e):this}splitAt(...e){if(!this.isValid)return[];let a=e.map(ya).filter(r=>this.contains(r)).sort((r,s)=>r.toMillis()-s.toMillis()),t=[],{s:n}=this,o=0;for(;n+this.e?this.e:r;t.push(i.fromDateTimes(n,s)),n=s,o+=1}return t}splitBy(e){let a=Ie.fromDurationLike(e);if(!this.isValid||!a.isValid||a.as("milliseconds")===0)return[];let{s:t}=this,n=1,o,r=[];for(;tl*n));o=+s>+this.e?this.e:s,r.push(i.fromDateTimes(t,o)),t=o,n+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let a=this.s>e.s?this.s:e.s,t=this.e=t?null:i.fromDateTimes(a,t)}union(e){if(!this.isValid)return this;let a=this.se.e?this.e:e.e;return i.fromDateTimes(a,t)}static merge(e){let[a,t]=e.sort((n,o)=>n.s-o.s).reduce(([n,o],r)=>o?o.overlaps(r)||o.abutsStart(r)?[n,o.union(r)]:[n.concat([o]),r]:[n,r],[[],null]);return t&&a.push(t),a}static xor(e){let a=null,t=0,n=[],o=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),r=Array.prototype.concat(...o),s=r.sort((l,c)=>l.time-c.time);for(let l of s)t+=l.type==="s"?1:-1,t===1?a=l.time:(a&&+a!=+l.time&&n.push(i.fromDateTimes(a,l.time)),a=null);return i.merge(n)}difference(...e){return i.xor([this].concat(e)).map(a=>this.intersection(a)).filter(a=>a&&!a.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:va}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=fi,a={}){return this.isValid?We.create(this.s.loc.clone(a),e).formatInterval(this):va}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:va}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:va}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:va}toFormat(e,{separator:a=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${a}${this.e.toFormat(e)}`:va}toDuration(e,a){return this.isValid?this.e.diff(this.s,e,a):Ie.invalid(this.invalidReason)}mapEndpoints(e){return i.fromDateTimes(e(this.s),e(this.e))}};var Mt=class{static hasDST(e=ue.defaultZone){let a=L.now().setZone(e).set({month:12});return!e.isUniversal&&a.offset!==a.set({month:6}).offset}static isValidIANAZone(e){return at.isValidZone(e)}static normalizeZone(e){return At(e,ue.defaultZone)}static getStartOfWeek({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getWeekendDays().slice()}static months(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||de.create(a,t,o)).months(e)}static monthsFormat(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||de.create(a,t,o)).months(e,!0)}static weekdays(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null}={}){return(n||de.create(a,t,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null}={}){return(n||de.create(a,t,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return de.create(e).meridiems()}static eras(e="short",{locale:a=null}={}){return de.create(a,null,"gregory").eras(e)}static features(){return{relative:Co(),localeWeek:qo()}}};function Nu(i,e){let a=n=>n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),t=a(e)-a(i);return Math.floor(Ie.fromMillis(t).as("days"))}function mf(i,e,a){let t=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Nu(l,c);return(d-d%7)/7}],["days",Nu]],n={},o=i,r,s;for(let[l,c]of t)a.indexOf(l)>=0&&(r=l,n[l]=c(i,e),s=o.plus(n),s>e?(n[l]--,i=o.plus(n),i>e&&(s=i,n[l]--,i=o.plus(n))):i=s);return[i,n,s,r]}function Lu(i,e,a,t){let[n,o,r,s]=mf(i,e,a),l=e-n,c=a.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);c.length===0&&(r0?Ie.fromMillis(l,t).shiftTo(...c).plus(d):d}var pf="missing Intl.DateTimeFormat.formatToParts support";function me(i,e=a=>a){return{regex:i,deser:([a])=>e(Uc(a))}}var gf="\xA0",Ru=`[ ${gf}]`,Hu=new RegExp(Ru,"g");function ff(i){return i.replace(/\./g,"\\.?").replace(Hu,Ru)}function Pu(i){return i.replace(/\./g,"").replace(Hu," ").toLowerCase()}function Et(i,e){return i===null?null:{regex:RegExp(i.map(ff).join("|")),deser:([a])=>i.findIndex(t=>Pu(a)===Pu(t))+e}}function Fu(i,e){return{regex:i,deser:([,a,t])=>Pi(a,t),groups:e}}function Ao(i){return{regex:i,deser:([e])=>e}}function hf(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function bf(i,e){let a=_t(e),t=_t(e,"{2}"),n=_t(e,"{3}"),o=_t(e,"{4}"),r=_t(e,"{6}"),s=_t(e,"{1,2}"),l=_t(e,"{1,3}"),c=_t(e,"{1,6}"),d=_t(e,"{1,9}"),g=_t(e,"{2,4}"),x=_t(e,"{4,6}"),b=E=>({regex:RegExp(hf(E.val)),deser:([w])=>w,literal:!0}),T=(E=>{if(i.literal)return b(E);switch(E.val){case"G":return Et(e.eras("short"),0);case"GG":return Et(e.eras("long"),0);case"y":return me(c);case"yy":return me(g,wn);case"yyyy":return me(o);case"yyyyy":return me(x);case"yyyyyy":return me(r);case"M":return me(s);case"MM":return me(t);case"MMM":return Et(e.months("short",!0),1);case"MMMM":return Et(e.months("long",!0),1);case"L":return me(s);case"LL":return me(t);case"LLL":return Et(e.months("short",!1),1);case"LLLL":return Et(e.months("long",!1),1);case"d":return me(s);case"dd":return me(t);case"o":return me(l);case"ooo":return me(n);case"HH":return me(t);case"H":return me(s);case"hh":return me(t);case"h":return me(s);case"mm":return me(t);case"m":return me(s);case"q":return me(s);case"qq":return me(t);case"s":return me(s);case"ss":return me(t);case"S":return me(l);case"SSS":return me(n);case"u":return Ao(d);case"uu":return Ao(s);case"uuu":return me(a);case"a":return Et(e.meridiems(),0);case"kkkk":return me(o);case"kk":return me(g,wn);case"W":return me(s);case"WW":return me(t);case"E":case"c":return me(a);case"EEE":return Et(e.weekdays("short",!1),1);case"EEEE":return Et(e.weekdays("long",!1),1);case"ccc":return Et(e.weekdays("short",!0),1);case"cccc":return Et(e.weekdays("long",!0),1);case"Z":case"ZZ":return Fu(new RegExp(`([+-]${s.source})(?::(${t.source}))?`),2);case"ZZZ":return Fu(new RegExp(`([+-]${s.source})(${t.source})?`),2);case"z":return Ao(/[a-z_+-/]{1,256}?/i);case" ":return Ao(/[^\S\n\r]/);default:return b(E)}})(i)||{invalidReason:pf};return T.token=i,T}var vf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function yf(i,e,a){let{type:t,value:n}=i;if(t==="literal"){let l=/^\s+$/.test(n);return{literal:!l,val:l?" ":n}}let o=e[t],r=t;t==="hour"&&(e.hour12!=null?r=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?r="hour12":r="hour24":r=a.hour12?"hour12":"hour24");let s=vf[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function _f(i){return[`^${i.map(a=>a.regex).reduce((a,t)=>`${a}(${t.source})`,"")}$`,i]}function xf(i,e,a){let t=i.match(e);if(t){let n={},o=1;for(let r in a)if(vi(a,r)){let s=a[r],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(n[s.token.val[0]]=s.deser(t.slice(o,o+l))),o+=l}return[t,n]}else return[t,{}]}function wf(i){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},a=null,t;return W(i.z)||(a=at.create(i.z)),W(i.Z)||(a||(a=new Be(i.Z)),t=i.Z),W(i.q)||(i.M=(i.q-1)*3+1),W(i.h)||(i.h<12&&i.a===1?i.h+=12:i.h===12&&i.a===0&&(i.h=0)),i.G===0&&i.y&&(i.y=-i.y),W(i.u)||(i.S=xn(i.u)),[Object.keys(i).reduce((o,r)=>{let s=e(r);return s&&(o[s]=i[r]),o},{}),a,t]}var ws=null;function Sf(){return ws||(ws=L.fromMillis(1555555555555)),ws}function Cf(i,e){if(i.literal)return i;let a=We.macroTokenToFormatOpts(i.val),t=qs(a,e);return t==null||t.includes(void 0)?i:t}function Ss(i,e){return Array.prototype.concat(...i.map(a=>Cf(a,e)))}var qn=class{constructor(e,a){if(this.locale=e,this.format=a,this.tokens=Ss(We.parseFormat(a),e),this.units=this.tokens.map(t=>bf(t,e)),this.disqualifyingUnit=this.units.find(t=>t.invalidReason),!this.disqualifyingUnit){let[t,n]=_f(this.units);this.regex=RegExp(t,"i"),this.handlers=n}}explainFromTokens(e){if(this.isValid){let[a,t]=xf(e,this.regex,this.handlers),[n,o,r]=t?wf(t):[null,null,void 0];if(vi(t,"a")&&vi(t,"H"))throw new kt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:a,matches:t,result:n,zone:o,specificOffset:r}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Cs(i,e,a){return new qn(i,a).explainFromTokens(e)}function ju(i,e,a){let{result:t,zone:n,specificOffset:o,invalidReason:r}=Cs(i,e,a);return[t,n,o,r]}function qs(i,e){if(!i)return null;let t=We.create(e,i).dtFormatter(Sf()),n=t.formatToParts(),o=t.resolvedOptions();return n.map(r=>yf(r,i,o))}var ks="Invalid DateTime",zu=864e13;function kn(i){return new Ve("unsupported zone",`the zone "${i.name}" is not supported`)}function Ts(i){return i.weekData===null&&(i.weekData=vn(i.c)),i.weekData}function Ds(i){return i.localWeekData===null&&(i.localWeekData=vn(i.c,i.loc.getMinDaysInFirstWeek(),i.loc.getStartOfWeek())),i.localWeekData}function ji(i,e){let a={ts:i.ts,zone:i.zone,c:i.c,o:i.o,loc:i.loc,invalid:i.invalid};return new L(ne(M(M({},a),e),{old:a}))}function $u(i,e,a){let t=i-e*60*1e3,n=a.offset(t);if(e===n)return[t,e];t-=(n-e)*60*1e3;let o=a.offset(t);return n===o?[t,n]:[i-Math.min(n,o)*60*1e3,Math.max(n,o)]}function Io(i,e){i+=e*60*1e3;let a=new Date(i);return{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}function Eo(i,e,a){return $u(sa(i),e,a)}function Ju(i,e){let a=i.o,t=i.c.year+Math.trunc(e.years),n=i.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o=ne(M({},i.c),{year:t,month:n,day:Math.min(i.c.day,ua(t,n))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),r=Ie.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=sa(o),[l,c]=$u(s,a,i.zone);return r!==0&&(l+=r,c=i.zone.offset(l)),{ts:l,o:c}}function _a(i,e,a,t,n,o){let{setZone:r,zone:s}=a;if(i&&Object.keys(i).length!==0||e){let l=e||s,c=L.fromObject(i,ne(M({},a),{zone:l,specificOffset:o}));return r?c:c.setZone(s)}else return L.invalid(new Ve("unparsable",`the input "${n}" can't be parsed as ${t}`))}function Mo(i,e,a=!0){return i.isValid?We.create(de.create("en-US"),{allowZ:a,forceSimple:!0}).formatDateTimeFromString(i,e):null}function As(i,e){let a=i.c.year>9999||i.c.year<0,t="";return a&&i.c.year>=0&&(t+="+"),t+=ke(i.c.year,a?6:4),e?(t+="-",t+=ke(i.c.month),t+="-",t+=ke(i.c.day)):(t+=ke(i.c.month),t+=ke(i.c.day)),t}function Bu(i,e,a,t,n,o){let r=ke(i.c.hour);return e?(r+=":",r+=ke(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!a)&&(r+=":")):r+=ke(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!a)&&(r+=ke(i.c.second),(i.c.millisecond!==0||!t)&&(r+=".",r+=ke(i.c.millisecond,3))),n&&(i.isOffsetFixed&&i.offset===0&&!o?r+="Z":i.o<0?(r+="-",r+=ke(Math.trunc(-i.o/60)),r+=":",r+=ke(Math.trunc(-i.o%60))):(r+="+",r+=ke(Math.trunc(i.o/60)),r+=":",r+=ke(Math.trunc(i.o%60)))),o&&(r+="["+i.zone.ianaName+"]"),r}var Zu={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Yu=["year","month","day","hour","minute","second","millisecond"],Tf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Df=["year","ordinal","hour","minute","second","millisecond"];function Af(i){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[i.toLowerCase()];if(!e)throw new ra(i);return e}function Vu(i){switch(i.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Af(i)}}function If(i){return No[i]||(Oo===void 0&&(Oo=ue.now()),No[i]=i.offset(Oo)),No[i]}function Wu(i,e){let a=At(e.zone,ue.defaultZone);if(!a.isValid)return L.invalid(kn(a));let t=de.fromObject(e),n,o;if(W(i.year))n=ue.now();else{for(let l of Yu)W(i[l])&&(i[l]=Zu[l]);let r=ms(i)||ps(i);if(r)return L.invalid(r);let s=If(a);[n,o]=Eo(i,s,a)}return new L({ts:n,zone:a,loc:t,o})}function Uu(i,e,a){let t=W(a.round)?!0:a.round,n=(r,s)=>(r=la(r,t||a.calendary?0:2,!0),e.loc.clone(a).relFormatter(a).format(r,s)),o=r=>a.calendary?e.hasSame(i,r)?0:e.startOf(r).diff(i.startOf(r),r).get(r):e.diff(i,r).get(r);if(a.unit)return n(o(a.unit),a.unit);for(let r of a.units){let s=o(r);if(Math.abs(s)>=1)return n(s,r)}return n(i>e?-0:0,a.units[a.units.length-1])}function Gu(i){let e={},a;return i.length>0&&typeof i[i.length-1]=="object"?(e=i[i.length-1],a=Array.from(i).slice(0,i.length-1)):a=Array.from(i),[e,a]}var Oo,No={},L=class i{constructor(e){let a=e.zone||ue.defaultZone,t=e.invalid||(Number.isNaN(e.ts)?new Ve("invalid input"):null)||(a.isValid?null:kn(a));this.ts=W(e.ts)?ue.now():e.ts;let n=null,o=null;if(!t)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(a))[n,o]=[e.old.c,e.old.o];else{let s=It(e.o)&&!e.old?e.o:a.offset(this.ts);n=Io(this.ts,s),t=Number.isNaN(n.year)?new Ve("invalid input"):null,n=t?null:n,o=t?null:s}this._zone=a,this.loc=e.loc||de.create(),this.invalid=t,this.weekData=null,this.localWeekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new i({})}static local(){let[e,a]=Gu(arguments),[t,n,o,r,s,l,c]=a;return Wu({year:t,month:n,day:o,hour:r,minute:s,second:l,millisecond:c},e)}static utc(){let[e,a]=Gu(arguments),[t,n,o,r,s,l,c]=a;return e.zone=Be.utcInstance,Wu({year:t,month:n,day:o,hour:r,minute:s,second:l,millisecond:c},e)}static fromJSDate(e,a={}){let t=cu(e)?e.valueOf():NaN;if(Number.isNaN(t))return i.invalid("invalid input");let n=At(a.zone,ue.defaultZone);return n.isValid?new i({ts:t,zone:n,loc:de.fromObject(a)}):i.invalid(kn(n))}static fromMillis(e,a={}){if(It(e))return e<-zu||e>zu?i.invalid("Timestamp out of range"):new i({ts:e,zone:At(a.zone,ue.defaultZone),loc:de.fromObject(a)});throw new Ae(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,a={}){if(It(e))return new i({ts:e*1e3,zone:At(a.zone,ue.defaultZone),loc:de.fromObject(a)});throw new Ae("fromSeconds requires a numerical input")}static fromObject(e,a={}){e=e||{};let t=At(a.zone,ue.defaultZone);if(!t.isValid)return i.invalid(kn(t));let n=de.fromObject(a),o=da(e,Vu),{minDaysInFirstWeek:r,startOfWeek:s}=ds(o,n),l=ue.now(),c=W(a.specificOffset)?t.offset(l):a.specificOffset,d=!W(o.ordinal),g=!W(o.year),x=!W(o.month)||!W(o.day),b=g||x,v=o.weekYear||o.weekNumber;if((b||d)&&v)throw new kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(x&&d)throw new kt("Can't mix ordinal dates with month/day");let T=v||o.weekday&&!b,E,w,k=Io(l,c);T?(E=Tf,w=qf,k=vn(k,r,s)):d?(E=Df,w=kf,k=Do(k)):(E=Yu,w=Zu);let R=!1;for(let ze of E){let Lt=o[ze];W(Lt)?R?o[ze]=w[ze]:o[ze]=k[ze]:R=!0}let J=T?ru(o,r,s):d?su(o):ms(o),pe=J||ps(o);if(pe)return i.invalid(pe);let ee=T?cs(o,r,s):d?us(o):o,[ve,fe]=Eo(ee,c,t),Se=new i({ts:ve,zone:t,o:fe,loc:n});return o.weekday&&b&&e.weekday!==Se.weekday?i.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:i.invalid(Se.invalid)}static fromISO(e,a={}){let[t,n]=Cu(e);return _a(t,n,a,"ISO 8601",e)}static fromRFC2822(e,a={}){let[t,n]=qu(e);return _a(t,n,a,"RFC 2822",e)}static fromHTTP(e,a={}){let[t,n]=ku(e);return _a(t,n,a,"HTTP",a)}static fromFormat(e,a,t={}){if(W(e)||W(a))throw new Ae("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,l,c,d]=ju(r,e,a);return d?i.invalid(d):_a(s,l,t,`format ${a}`,e,c)}static fromString(e,a,t={}){return i.fromFormat(e,a,t)}static fromSQL(e,a={}){let[t,n]=Au(e);return _a(t,n,a,"SQL",e)}static invalid(e,a=null){if(!e)throw new Ae("need to specify a reason the DateTime is invalid");let t=e instanceof Ve?e:new Ve(e,a);if(ue.throwOnInvalid)throw new ho(t);return new i({invalid:t})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,a={}){let t=qs(e,de.fromObject(a));return t?t.map(n=>n?n.val:null).join(""):null}static expandFormat(e,a={}){return Ss(We.parseFormat(e),de.fromObject(a)).map(n=>n.val).join("")}static resetCache(){Oo=void 0,No={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ts(this).weekYear:NaN}get weekNumber(){return this.isValid?Ts(this).weekNumber:NaN}get weekday(){return this.isValid?Ts(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ds(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ds(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ds(this).weekYear:NaN}get ordinal(){return this.isValid?Do(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,a=6e4,t=sa(this.c),n=this.zone.offset(t-e),o=this.zone.offset(t+e),r=this.zone.offset(t-n*a),s=this.zone.offset(t-o*a);if(r===s)return[this];let l=t-r*a,c=t-s*a,d=Io(l,r),g=Io(c,s);return d.hour===g.hour&&d.minute===g.minute&&d.second===g.second&&d.millisecond===g.millisecond?[ji(this,{ts:l}),ji(this,{ts:c})]:[this]}get isInLeapYear(){return Ri(this.year)}get daysInMonth(){return ua(this.year,this.month)}get daysInYear(){return this.isValid?bi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Fi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Fi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:a,numberingSystem:t,calendar:n}=We.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:a,numberingSystem:t,outputCalendar:n}}toUTC(e=0,a={}){return this.setZone(Be.instance(e),a)}toLocal(){return this.setZone(ue.defaultZone)}setZone(e,{keepLocalTime:a=!1,keepCalendarTime:t=!1}={}){if(e=At(e,ue.defaultZone),e.equals(this.zone))return this;if(e.isValid){let n=this.ts;if(a||t){let o=e.offset(this.ts),r=this.toObject();[n]=Eo(r,o,e)}return ji(this,{ts:n,zone:e})}else return i.invalid(kn(e))}reconfigure({locale:e,numberingSystem:a,outputCalendar:t}={}){let n=this.loc.clone({locale:e,numberingSystem:a,outputCalendar:t});return ji(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let a=da(e,Vu),{minDaysInFirstWeek:t,startOfWeek:n}=ds(a,this.loc),o=!W(a.weekYear)||!W(a.weekNumber)||!W(a.weekday),r=!W(a.ordinal),s=!W(a.year),l=!W(a.month)||!W(a.day),c=s||l,d=a.weekYear||a.weekNumber;if((c||r)&&d)throw new kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&r)throw new kt("Can't mix ordinal dates with month/day");let g;o?g=cs(M(M({},vn(this.c,t,n)),a),t,n):W(a.ordinal)?(g=M(M({},this.toObject()),a),W(a.day)&&(g.day=Math.min(ua(g.year,g.month),g.day))):g=us(M(M({},Do(this.c)),a));let[x,b]=Eo(g,this.o,this.zone);return ji(this,{ts:x,o:b})}plus(e){if(!this.isValid)return this;let a=Ie.fromDurationLike(e);return ji(this,Ju(this,a))}minus(e){if(!this.isValid)return this;let a=Ie.fromDurationLike(e).negate();return ji(this,Ju(this,a))}startOf(e,{useLocaleWeeks:a=!1}={}){if(!this.isValid)return this;let t={},n=Ie.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break;case"milliseconds":break}if(n==="weeks")if(a){let o=this.loc.getStartOfWeek(),{weekday:r}=this;rthis.valueOf(),s=r?this:e,l=r?e:this,c=Lu(s,l,o,n);return r?c.negate():c}diffNow(e="milliseconds",a={}){return this.diff(i.now(),e,a)}until(e){return this.isValid?xi.fromDateTimes(this,e):this}hasSame(e,a,t){if(!this.isValid)return!1;let n=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(a,t)<=n&&n<=o.endOf(a,t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let a=e.base||i.fromObject({},{zone:this.zone}),t=e.padding?thisa.valueOf(),Math.min)}static max(...e){if(!e.every(i.isDateTime))throw new Ae("max requires all arguments be DateTimes");return gs(e,a=>a.valueOf(),Math.max)}static fromFormatExplain(e,a,t={}){let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return Cs(r,e,a)}static fromStringExplain(e,a,t={}){return i.fromFormatExplain(e,a,t)}static buildFormatParser(e,a={}){let{locale:t=null,numberingSystem:n=null}=a,o=de.fromOpts({locale:t,numberingSystem:n,defaultToEN:!0});return new qn(o,e)}static fromFormatParser(e,a,t={}){if(W(e)||W(a))throw new Ae("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});if(!r.equals(a.locale))throw new Ae(`fromFormatParser called with a locale of ${r}, but the format parser was created for ${a.locale}`);let{result:s,zone:l,specificOffset:c,invalidReason:d}=a.explainFromTokens(e);return d?i.invalid(d):_a(s,l,t,`format ${a.format}`,e,c)}static get DATE_SHORT(){return fi}static get DATE_MED(){return Za}static get DATE_MED_WITH_WEEKDAY(){return Ur}static get DATE_FULL(){return Ya}static get DATE_HUGE(){return Ka}static get TIME_SIMPLE(){return Qa}static get TIME_WITH_SECONDS(){return Xa}static get TIME_WITH_SHORT_OFFSET(){return en}static get TIME_WITH_LONG_OFFSET(){return tn}static get TIME_24_SIMPLE(){return an}static get TIME_24_WITH_SECONDS(){return nn}static get TIME_24_WITH_SHORT_OFFSET(){return on}static get TIME_24_WITH_LONG_OFFSET(){return rn}static get DATETIME_SHORT(){return sn}static get DATETIME_SHORT_WITH_SECONDS(){return ln}static get DATETIME_MED(){return cn}static get DATETIME_MED_WITH_SECONDS(){return un}static get DATETIME_MED_WITH_WEEKDAY(){return Gr}static get DATETIME_FULL(){return dn}static get DATETIME_FULL_WITH_SECONDS(){return mn}static get DATETIME_HUGE(){return pn}static get DATETIME_HUGE_WITH_SECONDS(){return gn}};function ya(i){if(L.isDateTime(i))return i;if(i&&i.valueOf&&It(i.valueOf()))return L.fromJSDate(i);if(i&&typeof i=="object")return L.fromObject(i);throw new Ae(`Unknown datetime argument: ${i}, of type ${typeof i}`)}var Mf=new Ne("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Ef});function Ef(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}function Of(i,e){let a=Array(i);for(let t=0;t{let e=class e extends io{constructor(t,n){super(),this._useUTC=!!n?.useUtc,this._firstDayOfWeek=n?.firstDayOfWeek||0,this._defaultOutputCalendar=n?.defaultOutputCalendar||"gregory",this.setLocale(t||L.local().locale)}getYear(t){return t.year}getMonth(t){return t.month-1}getDate(t){return t.day}getDayOfWeek(t){return t.weekday}getMonthNames(t){return Mt.months(t,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Of(31,n=>t.format(L.utc(2017,1,n+1).toJSDate()))}getDayOfWeekNames(t){let n=Mt.weekdays(t,{locale:this.locale});return n.unshift(n.pop()),n}getYearName(t){return t.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(t){return t.daysInMonth}clone(t){return L.fromObject(t.toObject(),this._getOptions())}createDate(t,n,o){let r=this._getOptions();if(n<0||n>11)throw Error(`Invalid month index "${n}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);let s=this._useUTC?L.utc(t,n+1,o,r):L.local(t,n+1,o,r);if(!this.isValid(s))throw Error(`Invalid date "${o}". Reason: "${s.invalidReason}".`);return s}today(){let t=this._getOptions();return this._useUTC?L.utc(t):L.local(t)}parse(t,n){let o=this._getOptions();if(typeof t=="string"&&t.length>0){let r=L.fromISO(t,o);if(this.isValid(r))return r;let s=Array.isArray(n)?n:[n];if(!n.length)throw Error("Formats array must not be empty.");for(let l of s){let c=L.fromFormat(t,l,o);if(this.isValid(c))return c}return this.invalid()}else{if(typeof t=="number")return L.fromMillis(t,o);if(t instanceof Date)return L.fromJSDate(t,o);if(t instanceof L)return L.fromMillis(t.toMillis(),o)}return null}format(t,n){if(!this.isValid(t))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?t.setLocale(this.locale).setZone("utc").toFormat(n):t.setLocale(this.locale).toFormat(n)}addCalendarYears(t,n){return t.reconfigure(this._getOptions()).plus({years:n})}addCalendarMonths(t,n){return t.reconfigure(this._getOptions()).plus({months:n})}addCalendarDays(t,n){return t.reconfigure(this._getOptions()).plus({days:n})}toIso8601(t){return t.toISO()}deserialize(t){let n=this._getOptions(),o;if(t instanceof Date&&(o=L.fromJSDate(t,n)),typeof t=="string"){if(!t)return null;o=L.fromISO(t,n)}return o&&this.isValid(o)?o:super.deserialize(t)}isDateInstance(t){return t instanceof L}isValid(t){return t.isValid}invalid(){return L.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}};e.\u0275fac=function(n){return new(n||e)(P(Xl,8),P(Mf,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})();function Qu(i){return new le(3e3,!1)}function Nf(){return new le(3100,!1)}function Lf(){return new le(3101,!1)}function Pf(i){return new le(3001,!1)}function Ff(i){return new le(3003,!1)}function Rf(i){return new le(3004,!1)}function Hf(i,e){return new le(3005,!1)}function jf(){return new le(3006,!1)}function zf(){return new le(3007,!1)}function Jf(i,e){return new le(3008,!1)}function Bf(i){return new le(3002,!1)}function Vf(i,e,a,t,n){return new le(3010,!1)}function Wf(){return new le(3011,!1)}function Uf(){return new le(3012,!1)}function Gf(){return new le(3200,!1)}function $f(){return new le(3202,!1)}function Zf(){return new le(3013,!1)}function Yf(i){return new le(3014,!1)}function Kf(i){return new le(3015,!1)}function Qf(i){return new le(3016,!1)}function Xf(i,e){return new le(3404,!1)}function eh(i){return new le(3502,!1)}function th(i){return new le(3503,!1)}function ih(){return new le(3300,!1)}function ah(i){return new le(3504,!1)}function nh(i){return new le(3301,!1)}function oh(i,e){return new le(3302,!1)}function rh(i){return new le(3303,!1)}function sh(i,e){return new le(3400,!1)}function lh(i){return new le(3401,!1)}function ch(i){return new le(3402,!1)}function uh(i,e){return new le(3505,!1)}function wi(i){switch(i.length){case 0:return new aa;case 1:return i[0];default:return new Wr(i)}}function md(i,e,a=new Map,t=new Map){let n=[],o=[],r=-1,s=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==r,g=d&&s||new Map;l.forEach((x,b)=>{let v=b,T=x;if(b!=="offset")switch(v=i.normalizePropertyName(v,n),T){case no:T=a.get(b);break;case Wt:T=t.get(b);break;default:T=i.normalizeStyleValue(b,v,T,n);break}g.set(v,T)}),d||o.push(g),s=g,r=c}),n.length)throw eh(n);return o}function Qs(i,e,a,t){switch(e){case"start":i.onStart(()=>t(a&&Is(a,"start",i)));break;case"done":i.onDone(()=>t(a&&Is(a,"done",i)));break;case"destroy":i.onDestroy(()=>t(a&&Is(a,"destroy",i)));break}}function Is(i,e,a){let t=a.totalTime,n=!!a.disabled,o=Xs(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),r=i._data;return r!=null&&(o._data=r),o}function Xs(i,e,a,t,n="",o=0,r){return{element:i,triggerName:e,fromState:a,toState:t,phaseName:n,totalTime:o,disabled:!!r}}function ft(i,e,a){let t=i.get(e);return t||i.set(e,t=a),t}function Xu(i){let e=i.indexOf(":"),a=i.substring(1,e),t=i.slice(e+1);return[a,t]}var dh=typeof document>"u"?null:document.documentElement;function el(i){let e=i.parentNode||i.host||null;return e===dh?null:e}function mh(i){return i.substring(1,6)=="ebkit"}var zi=null,ed=!1;function ph(i){zi||(zi=gh()||{},ed=zi.style?"WebkitAppearance"in zi.style:!1);let e=!0;return zi.style&&!mh(i)&&(e=i in zi.style,!e&&ed&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in zi.style)),e}function gh(){return typeof document<"u"?document.body:null}function pd(i,e){for(;e;){if(e===i)return!0;e=el(e)}return!1}function gd(i,e,a){if(a)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var tl=(()=>{let e=class e{validateStyleProperty(t){return ph(t)}containsElement(t,n){return pd(t,n)}getParentElement(t){return el(t)}query(t,n,o){return gd(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,r,s,l=[],c){return new aa(o,r)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})(),ol=class ol{};ol.NOOP=new tl;var Vi=ol,Wi=class{};var fh=1e3,fd="{{",hh="}}",hd="ng-enter",Ps="ng-leave",Lo="ng-trigger",jo=".ng-trigger",td="ng-animating",Fs=".ng-animating";function ni(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rs(parseFloat(e[1]),e[2])}function Rs(i,e){switch(e){case"s":return i*fh;default:return i}}function zo(i,e,a){return i.hasOwnProperty("duration")?i:bh(i,e,a)}function bh(i,e,a){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,r="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(Qu(i)),{duration:0,delay:0,easing:""};n=Rs(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=Rs(parseFloat(l),s[4]));let c=s[5];c&&(r=c)}else n=i;if(!a){let s=!1,l=e.length;n<0&&(e.push(Nf()),s=!0),o<0&&(e.push(Lf()),s=!0),s&&e.splice(l,0,Qu(i))}return{duration:n,delay:o,easing:r}}function vh(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function Ut(i,e,a){e.forEach((t,n)=>{let o=il(n);a&&!a.has(n)&&a.set(n,i.style[o]),i.style[o]=t})}function Bi(i,e){e.forEach((a,t)=>{let n=il(t);i.style[n]=""})}function Tn(i){return Array.isArray(i)?i.length==1?i[0]:sc(i):i}function yh(i,e,a){let t=e.params||{},n=bd(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||a.push(Pf(o))})}var Hs=new RegExp(`${fd}\\s*(.+?)\\s*${hh}`,"g");function bd(i){let e=[];if(typeof i=="string"){let a;for(;a=Hs.exec(i);)e.push(a[1]);Hs.lastIndex=0}return e}function An(i,e,a){let t=`${i}`,n=t.replace(Hs,(o,r)=>{let s=e[r];return s==null&&(a.push(Ff(r)),s=""),s.toString()});return n==t?i:n}var _h=/-+([a-z0-9])/g;function il(i){return i.replace(_h,(...e)=>e[1].toUpperCase())}function xh(i,e){return i===0||e===0}function wh(i,e,a){if(a.size&&e.length){let t=e[0],n=[];if(a.forEach((o,r)=>{t.has(r)||n.push(r),t.set(r,o)}),n.length)for(let o=1;or.set(s,al(i,s)))}}return e}function gt(i,e,a){switch(e.type){case oe.Trigger:return i.visitTrigger(e,a);case oe.State:return i.visitState(e,a);case oe.Transition:return i.visitTransition(e,a);case oe.Sequence:return i.visitSequence(e,a);case oe.Group:return i.visitGroup(e,a);case oe.Animate:return i.visitAnimate(e,a);case oe.Keyframes:return i.visitKeyframes(e,a);case oe.Style:return i.visitStyle(e,a);case oe.Reference:return i.visitReference(e,a);case oe.AnimateChild:return i.visitAnimateChild(e,a);case oe.AnimateRef:return i.visitAnimateRef(e,a);case oe.Query:return i.visitQuery(e,a);case oe.Stagger:return i.visitStagger(e,a);default:throw Rf(e.type)}}function al(i,e){return window.getComputedStyle(i)[e]}var Sh=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Jo=class extends Wi{normalizePropertyName(e,a){return il(e)}normalizeStyleValue(e,a,t,n){let o="",r=t.toString().trim();if(Sh.has(a)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(Hf(e,t))}return r+o}};var Bo="*";function Ch(i,e){let a=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>qh(t,a,e)):a.push(i),a}function qh(i,e,a){if(i[0]==":"){let l=kh(i,a);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return a.push(Kf(i)),e;let n=t[1],o=t[2],r=t[3];e.push(id(n,r));let s=n==Bo&&r==Bo;o[0]=="<"&&!s&&e.push(id(r,n))}function kh(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,t)=>parseFloat(t)>parseFloat(a);case":decrement":return(a,t)=>parseFloat(t) *"}}var Po=new Set(["true","1"]),Fo=new Set(["false","0"]);function id(i,e){let a=Po.has(i)||Fo.has(i),t=Po.has(e)||Fo.has(e);return(n,o)=>{let r=i==Bo||i==n,s=e==Bo||e==o;return!r&&a&&typeof n=="boolean"&&(r=n?Po.has(i):Fo.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?Po.has(e):Fo.has(e)),r&&s}}var vd=":self",Th=new RegExp(`s*${vd}s*,?`,"g");function yd(i,e,a,t){return new js(i).build(e,a,t)}var ad="",js=class{constructor(e){this._driver=e}build(e,a,t){let n=new zs(a);return this._resetContextStyleTimingState(n),gt(this,Tn(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ad,e.collectedStyles=new Map,e.collectedStyles.set(ad,new Map),e.currentTime=0}visitTrigger(e,a){let t=a.queryCount=0,n=a.depCount=0,o=[],r=[];return e.name.charAt(0)=="@"&&a.errors.push(jf()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(a),s.type==oe.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,a))}),l.name=c}else if(s.type==oe.Transition){let l=this.visitTransition(s,a);t+=l.queryCount,n+=l.depCount,r.push(l)}else a.errors.push(zf())}),{type:oe.Trigger,name:e.name,states:o,transitions:r,queryCount:t,depCount:n,options:null}}visitState(e,a){let t=this.visitStyle(e.styles,a),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,r=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{bd(l).forEach(c=>{r.hasOwnProperty(c)||o.add(c)})})}),o.size&&a.errors.push(Jf(e.name,[...o.values()]))}return{type:oe.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,a){a.queryCount=0,a.depCount=0;let t=gt(this,Tn(e.animation),a),n=Ch(e.expr,a.errors);return{type:oe.Transition,matchers:n,animation:t,queryCount:a.queryCount,depCount:a.depCount,options:Ji(e.options)}}visitSequence(e,a){return{type:oe.Sequence,steps:e.steps.map(t=>gt(this,t,a)),options:Ji(e.options)}}visitGroup(e,a){let t=a.currentTime,n=0,o=e.steps.map(r=>{a.currentTime=t;let s=gt(this,r,a);return n=Math.max(n,a.currentTime),s});return a.currentTime=n,{type:oe.Group,steps:o,options:Ji(e.options)}}visitAnimate(e,a){let t=Mh(e.timings,a.errors);a.currentAnimateTimings=t;let n,o=e.styles?e.styles:ut({});if(o.type==oe.Keyframes)n=this.visitKeyframes(o,a);else{let r=e.styles,s=!1;if(!r){s=!0;let c={};t.easing&&(c.easing=t.easing),r=ut(c)}a.currentTime+=t.duration+t.delay;let l=this.visitStyle(r,a);l.isEmptyStep=s,n=l}return a.currentAnimateTimings=null,{type:oe.Animate,timings:t,style:n,options:null}}visitStyle(e,a){let t=this._makeStyleAst(e,a);return this._validateStyleAst(t,a),t}_makeStyleAst(e,a){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Wt?t.push(s):a.errors.push(Bf(s)):t.push(new Map(Object.entries(s)));let o=!1,r=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(r=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(fd)>=0){o=!0;break}}}),{type:oe.Style,styles:t,easing:r,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,a){let t=a.currentAnimateTimings,n=a.currentTime,o=a.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,l)=>{let c=a.collectedStyles.get(a.currentQuerySelector),d=c.get(l),g=!0;d&&(o!=n&&o>=d.startTime&&n<=d.endTime&&(a.errors.push(Vf(l,d.startTime,d.endTime,o,n)),g=!1),o=d.startTime),g&&c.set(l,{startTime:o,endTime:n}),a.options&&yh(s,a.options,a.errors)})})}visitKeyframes(e,a){let t={type:oe.Keyframes,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(Wf()),t;let n=1,o=0,r=[],s=!1,l=!1,c=0,d=e.steps.map(w=>{let k=this._makeStyleAst(w,a),R=k.offset!=null?k.offset:Ih(k.styles),J=0;return R!=null&&(o++,J=k.offset=R),l=l||J<0||J>1,s=s||J0&&o{let R=x>0?k==b?1:x*k:r[k],J=R*E;a.currentTime=v+T.delay+J,T.duration=J,this._validateStyleAst(w,a),w.offset=R,t.styles.push(w)}),t}visitReference(e,a){return{type:oe.Reference,animation:gt(this,Tn(e.animation),a),options:Ji(e.options)}}visitAnimateChild(e,a){return a.depCount++,{type:oe.AnimateChild,options:Ji(e.options)}}visitAnimateRef(e,a){return{type:oe.AnimateRef,animation:this.visitReference(e.animation,a),options:Ji(e.options)}}visitQuery(e,a){let t=a.currentQuerySelector,n=e.options||{};a.queryCount++,a.currentQuery=e;let[o,r]=Dh(e.selector);a.currentQuerySelector=t.length?t+" "+o:o,ft(a.collectedStyles,a.currentQuerySelector,new Map);let s=gt(this,Tn(e.animation),a);return a.currentQuery=null,a.currentQuerySelector=t,{type:oe.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:s,originalSelector:e.selector,options:Ji(e.options)}}visitStagger(e,a){a.currentQuery||a.errors.push(Zf());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:zo(e.timings,a.errors,!0);return{type:oe.Stagger,animation:gt(this,Tn(e.animation),a),timings:t,options:null}}};function Dh(i){let e=!!i.split(/\s*,\s*/).find(a=>a==vd);return e&&(i=i.replace(Th,"")),i=i.replace(/@\*/g,jo).replace(/@\w+/g,a=>jo+"-"+a.slice(1)).replace(/:animating/g,Fs),[i,e]}function Ah(i){return i?M({},i):null}var zs=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Ih(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(a=>{if(a instanceof Map&&a.has("offset")){let t=a;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let a=i;e=parseFloat(a.get("offset")),a.delete("offset")}return e}function Mh(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=zo(i,e).duration;return Ms(o,0,"")}let a=i;if(a.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Ms(0,0,"");return o.dynamic=!0,o.strValue=a,o}let n=zo(a,e);return Ms(n.duration,n.delay,n.easing)}function Ji(i){return i?(i=M({},i),i.params&&(i.params=Ah(i.params))):i={},i}function Ms(i,e,a){return{duration:i,delay:e,easing:a}}function nl(i,e,a,t,n,o,r=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:a,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:r,subTimeline:s}}var In=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,a){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...a)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Eh=1,Oh=":enter",Nh=new RegExp(Oh,"g"),Lh=":leave",Ph=new RegExp(Lh,"g");function _d(i,e,a,t,n,o=new Map,r=new Map,s,l,c=[]){return new Js().buildKeyframes(i,e,a,t,n,o,r,s,l,c)}var Js=class{buildKeyframes(e,a,t,n,o,r,s,l,c,d=[]){c=c||new In;let g=new Bs(e,a,c,n,o,d,[]);g.options=l;let x=l.delay?ni(l.delay):0;g.currentTimeline.delayNextStep(x),g.currentTimeline.setStyles([r],null,g.errors,l),gt(this,t,g);let b=g.timelines.filter(v=>v.containsAnimation());if(b.length&&s.size){let v;for(let T=b.length-1;T>=0;T--){let E=b[T];if(E.element===a){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([s],null,g.errors,l)}return b.length?b.map(v=>v.buildKeyframes()):[nl(a,[],[],[],0,x,"",!1)]}visitTrigger(e,a){}visitState(e,a){}visitTransition(e,a){}visitAnimateChild(e,a){let t=a.subInstructions.get(a.element);if(t){let n=a.createSubContext(e.options),o=a.currentTimeline.currentTime,r=this._visitSubInstructions(t,n,n.options);o!=r&&a.transformIntoNewTimeline(r)}a.previousNode=e}visitAnimateRef(e,a){let t=a.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],a,t),this.visitReference(e.animation,t),a.transformIntoNewTimeline(t.currentTimeline.currentTime),a.previousNode=e}_applyAnimationRefDelays(e,a,t){for(let n of e){let o=n?.delay;if(o){let r=typeof o=="number"?o:ni(An(o,n?.params??{},a.errors));t.delayNextStep(r)}}}_visitSubInstructions(e,a,t){let o=a.currentTimeline.currentTime,r=t.duration!=null?ni(t.duration):null,s=t.delay!=null?ni(t.delay):null;return r!==0&&e.forEach(l=>{let c=a.appendInstructionToTimeline(l,r,s);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,a){a.updateOptions(e.options,!0),gt(this,e.animation,a),a.previousNode=e}visitSequence(e,a){let t=a.subContextCount,n=a,o=e.options;if(o&&(o.params||o.delay)&&(n=a.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==oe.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Vo);let r=ni(o.delay);n.delayNextStep(r)}e.steps.length&&(e.steps.forEach(r=>gt(this,r,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),a.previousNode=e}visitGroup(e,a){let t=[],n=a.currentTimeline.currentTime,o=e.options&&e.options.delay?ni(e.options.delay):0;e.steps.forEach(r=>{let s=a.createSubContext(e.options);o&&s.delayNextStep(o),gt(this,r,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(r=>a.currentTimeline.mergeTimelineCollectedStyles(r)),a.transformIntoNewTimeline(n),a.previousNode=e}_visitTiming(e,a){if(e.dynamic){let t=e.strValue,n=a.params?An(t,a.params,a.errors):t;return zo(n,a.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,a){let t=a.currentAnimateTimings=this._visitTiming(e.timings,a),n=a.currentTimeline;t.delay&&(a.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==oe.Keyframes?this.visitKeyframes(o,a):(a.incrementTime(t.duration),this.visitStyle(o,a),n.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=e}visitStyle(e,a){let t=a.currentTimeline,n=a.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,a.errors,a.options),a.previousNode=e}visitKeyframes(e,a){let t=a.currentAnimateTimings,n=a.currentTimeline.duration,o=t.duration,s=a.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,a.errors,a.options),s.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(s),a.transformIntoNewTimeline(n+o),a.previousNode=e}visitQuery(e,a){let t=a.currentTimeline.currentTime,n=e.options||{},o=n.delay?ni(n.delay):0;o&&(a.previousNode.type===oe.Style||t==0&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Vo);let r=t,s=a.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,a.errors);a.currentQueryTotal=s.length;let l=null;s.forEach((c,d)=>{a.currentQueryIndex=d;let g=a.createSubContext(e.options,c);o&&g.delayNextStep(o),c===a.element&&(l=g.currentTimeline),gt(this,e.animation,g),g.currentTimeline.applyStylesToKeyframe();let x=g.currentTimeline.currentTime;r=Math.max(r,x)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(r),l&&(a.currentTimeline.mergeTimelineCollectedStyles(l),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=e}visitStagger(e,a){let t=a.parentContext,n=a.currentTimeline,o=e.timings,r=Math.abs(o.duration),s=r*(a.currentQueryTotal-1),l=r*a.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let d=a.currentTimeline;l&&d.delayNextStep(l);let g=d.currentTime;gt(this,e.animation,a),a.previousNode=e,t.currentStaggerTime=n.currentTime-g+(n.startTime-t.currentTimeline.startTime)}},Vo={},Bs=class i{constructor(e,a,t,n,o,r,s,l){this._driver=e,this.element=a,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=r,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wo(this._driver,a,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,a){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=ni(t.duration)),t.delay!=null&&(n.delay=ni(t.delay));let o=t.params;if(o){let r=n.params;r||(r=this.options.params={}),Object.keys(o).forEach(s=>{(!a||!r.hasOwnProperty(s))&&(r[s]=An(o[s],r,this.errors))})}}_copyOptions(){let e={};if(this.options){let a=this.options.params;if(a){let t=e.params={};Object.keys(a).forEach(n=>{t[n]=a[n]})}}return e}createSubContext(e=null,a,t){let n=a||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Vo,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,a,t){let n={duration:a??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Vs(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,a,t,n,o,r){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(Nh,"."+this._enterClassName),e=e.replace(Ph,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!o&&s.length==0&&r.push(Yf(a)),s}},Wo=class i{constructor(e,a,t,n){this._driver=e,this.element=a,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+e),a&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,a){return this.applyStylesToKeyframe(),new i(this._driver,e,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Eh,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,a){this._localTimelineStyles.set(e,a),this._globalTimelineStyles.set(e,a),this._styleSummary.set(e,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[a,t]of this._globalTimelineStyles)this._backFill.set(a,t||Wt),this._currentKeyframe.set(a,Wt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,a,t,n){a&&this._previousKeyframe.set("easing",a);let o=n&&n.params||{},r=Fh(e,this._globalTimelineStyles);for(let[s,l]of r){let c=An(l,o,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Wt),this._updateStyle(s,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,a)=>{this._currentKeyframe.set(a,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,e)}))}snapshotCurrentStyles(){for(let[e,a]of this._localTimelineStyles)this._pendingStyles.set(e,a),this._updateStyle(e,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let a in this._currentKeyframe)e.push(a);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((a,t)=>{let n=this._styleSummary.get(t);(!n||a.time>n.time)&&this._updateStyle(t,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,a=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((d,g)=>{d===no?e.add(g):d===Wt&&a.add(g)}),t||c.set("offset",l/this.duration),n.push(c)});let o=[...e.values()],r=[...a.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return nl(this.element,n,o,r,this.duration,this.startTime,this.easing,!1)}},Vs=class extends Wo{constructor(e,a,t,n,o,r,s=!1){super(e,a,r.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:a,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&a){let o=[],r=t+a,s=a/r,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",nd(s)),o.push(c);let d=e.length-1;for(let g=1;g<=d;g++){let x=new Map(e[g]),b=x.get("offset"),v=a+b*t;x.set("offset",nd(v/r)),o.push(x)}t=r,a=0,n="",e=o}return nl(this.element,e,this.preStyleProps,this.postStyleProps,t,a,n,!0)}};function nd(i,e=3){let a=Math.pow(10,e-1);return Math.round(i*a)/a}function Fh(i,e){let a=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)a.set(o,Wt)}else for(let[o,r]of n)a.set(o,r)}),a}function od(i,e,a,t,n,o,r,s,l,c,d,g,x){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:a,fromStyles:o,toState:t,toStyles:r,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:g,errors:x}}var Es={},Uo=class{constructor(e,a,t){this._triggerName=e,this.ast=a,this._stateStyles=t}match(e,a,t,n){return Rh(this.ast.matchers,e,a,t,n)}buildStyles(e,a,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(a,t):new Map}build(e,a,t,n,o,r,s,l,c,d){let g=[],x=this.ast.options&&this.ast.options.params||Es,b=s&&s.params||Es,v=this.buildStyles(t,b,g),T=l&&l.params||Es,E=this.buildStyles(n,T,g),w=new Set,k=new Map,R=new Map,J=n==="void",pe={params:xd(T,x),delay:this.ast.options?.delay},ee=d?[]:_d(e,a,this.ast.animation,o,r,v,E,pe,c,g),ve=0;return ee.forEach(fe=>{ve=Math.max(fe.duration+fe.delay,ve)}),g.length?od(a,this._triggerName,t,n,J,v,E,[],[],k,R,ve,g):(ee.forEach(fe=>{let Se=fe.element,ze=ft(k,Se,new Set);fe.preStyleProps.forEach(Yt=>ze.add(Yt));let Lt=ft(R,Se,new Set);fe.postStyleProps.forEach(Yt=>Lt.add(Yt)),Se!==a&&w.add(Se)}),od(a,this._triggerName,t,n,J,v,E,ee,[...w.values()],k,R,ve))}};function Rh(i,e,a,t,n){return i.some(o=>o(e,a,t,n))}function xd(i,e){let a=M({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(a[t]=n)}),a}var Ws=class{constructor(e,a,t){this.styles=e,this.defaultParams=a,this.normalizer=t}buildStyles(e,a){let t=new Map,n=xd(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((r,s)=>{r&&(r=An(r,n,a));let l=this.normalizer.normalizePropertyName(s,a);r=this.normalizer.normalizeStyleValue(s,l,r,a),t.set(s,r)})}),t}};function Hh(i,e,a){return new Us(i,e,a)}var Us=class{constructor(e,a,t){this.name=e,this.ast=a,this._normalizer=t,this.transitionFactories=[],this.states=new Map,a.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Ws(n.style,o,t))}),rd(this.states,"true","1"),rd(this.states,"false","0"),a.transitions.forEach(n=>{this.transitionFactories.push(new Uo(e,n,this.states))}),this.fallbackTransition=jh(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,a,t,n){return this.transitionFactories.find(r=>r.match(e,a,t,n))||null}matchStyles(e,a,t){return this.fallbackTransition.buildStyles(e,a,t)}};function jh(i,e,a){let t=[(r,s)=>!0],n={type:oe.Sequence,steps:[],options:null},o={type:oe.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new Uo(i,o,e)}function rd(i,e,a){i.has(e)?i.has(a)||i.set(a,i.get(e)):i.has(a)&&i.set(e,i.get(a))}var zh=new In,Gs=class{constructor(e,a,t){this.bodyNode=e,this._driver=a,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,a){let t=[],n=[],o=yd(this._driver,a,t,n);if(t.length)throw th(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,a,t){let n=e.element,o=md(this._normalizer,e.keyframes,a,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,a,t={}){let n=[],o=this._animations.get(e),r,s=new Map;if(o?(r=_d(this._driver,a,o,hd,Ps,new Map,new Map,t,zh,n),r.forEach(d=>{let g=ft(s,d.element,new Map);d.postStyleProps.forEach(x=>g.set(x,null))})):(n.push(ih()),r=[]),n.length)throw ah(n);s.forEach((d,g)=>{d.forEach((x,b)=>{d.set(b,this._driver.computeStyle(g,b,Wt))})});let l=r.map(d=>{let g=s.get(d.element);return this._buildPlayer(d,new Map,g)}),c=wi(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let a=this._getPlayer(e);a.destroy(),this._playersById.delete(e);let t=this.players.indexOf(a);t>=0&&this.players.splice(t,1)}_getPlayer(e){let a=this._playersById.get(e);if(!a)throw nh(e);return a}listen(e,a,t,n){let o=Xs(a,"","","");return Qs(this._getPlayer(e),t,o,n),()=>{}}command(e,a,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let r=n[0]||{};this.create(e,a,r);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},sd="ng-animate-queued",Jh=".ng-animate-queued",Os="ng-animate-disabled",Bh=".ng-animate-disabled",Vh="ng-star-inserted",Wh=".ng-star-inserted",Uh=[],wd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gh={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ot="__ng_removed",Mn=class{get params(){return this.options.params}constructor(e,a=""){this.namespaceId=a;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=Zh(n),t){let o=e,{value:r}=o,s=Ra(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let a=e.params;if(a){let t=this.options.params;Object.keys(a).forEach(n=>{t[n]==null&&(t[n]=a[n])})}}},Dn="void",Ns=new Mn(Dn),$s=class{constructor(e,a,t){this.id=e,this.hostElement=a,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,St(a,this._hostClassName)}listen(e,a,t,n){if(!this._triggers.has(a))throw oh(t,a);if(t==null||t.length==0)throw rh(a);if(!Yh(t))throw sh(t,a);let o=ft(this._elementListeners,e,[]),r={name:a,phase:t,callback:n};o.push(r);let s=ft(this._engine.statesByElement,e,new Map);return s.has(a)||(St(e,Lo),St(e,Lo+"-"+a),s.set(a,Ns)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(r);l>=0&&o.splice(l,1),this._triggers.has(a)||s.delete(a)})}}register(e,a){return this._triggers.has(e)?!1:(this._triggers.set(e,a),!0)}_getTrigger(e){let a=this._triggers.get(e);if(!a)throw lh(e);return a}trigger(e,a,t,n=!0){let o=this._getTrigger(a),r=new En(this.id,a,e),s=this._engine.statesByElement.get(e);s||(St(e,Lo),St(e,Lo+"-"+a),this._engine.statesByElement.set(e,s=new Map));let l=s.get(a),c=new Mn(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(a,c),l||(l=Ns),!(c.value===Dn)&&l.value===c.value){if(!Xh(l.params,c.params)){let T=[],E=o.matchStyles(l.value,l.params,T),w=o.matchStyles(c.value,c.params,T);T.length?this._engine.reportError(T):this._engine.afterFlush(()=>{Bi(e,E),Ut(e,w)})}return}let x=ft(this._engine.playersByElement,e,[]);x.forEach(T=>{T.namespaceId==this.id&&T.triggerName==a&&T.queued&&T.destroy()});let b=o.matchTransition(l.value,c.value,e,c.params),v=!1;if(!b){if(!n)return;b=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:b,fromState:l,toState:c,player:r,isFallbackTransition:v}),v||(St(e,sd),r.onStart(()=>{xa(e,sd)})),r.onDone(()=>{let T=this.players.indexOf(r);T>=0&&this.players.splice(T,1);let E=this._engine.playersByElement.get(e);if(E){let w=E.indexOf(r);w>=0&&E.splice(w,1)}}),this.players.push(r),x.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(a=>a.delete(e)),this._elementListeners.forEach((a,t)=>{this._elementListeners.set(t,a.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let a=this._engine.playersByElement.get(e);a&&(a.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,a){let t=this._engine.driver.query(e,jo,!0);t.forEach(n=>{if(n[Ot])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(r=>r.triggerLeaveAnimation(n,a,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,a,t,n){let o=this._engine.statesByElement.get(e),r=new Map;if(o){let s=[];if(o.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Dn,n);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,a,r),t&&wi(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let a=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(a&&t){let n=new Set;a.forEach(o=>{let r=o.name;if(n.has(r))return;n.add(r);let l=this._triggers.get(r).fallbackTransition,c=t.get(r)||Ns,d=new Mn(Dn),g=new En(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:l,fromState:c,toState:d,player:g,isFallbackTransition:!0})})}}removeNode(e,a){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,a),this.triggerLeaveAnimation(e,a,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let r=e;for(;r=r.parentNode;)if(t.statesByElement.get(r)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,a);else{let o=e[Ot];(!o||o===wd)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,a))}}insertNode(e,a){St(e,this._hostClassName)}drainQueuedTransitions(e){let a=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,r=this._elementListeners.get(o);r&&r.forEach(s=>{if(s.name==t.triggerName){let l=Xs(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,Qs(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):a.push(t)}),this._queue=[],a.sort((t,n)=>{let o=t.transition.ast.depCount,r=n.transition.ast.depCount;return o==0||r==0?o-r:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Zs=class{_onRemovalComplete(e,a){this.onRemovalComplete(e,a)}constructor(e,a,t){this.bodyNode=e,this.driver=a,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(a=>{a.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,a){let t=new $s(e,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(t,a):(this.newHostElements.set(a,t),this.collectEnterElement(a)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,a){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let r=!1,s=this.driver.getParentElement(a);for(;s;){let l=n.get(s);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),r=!0;break}s=this.driver.getParentElement(s)}r||t.unshift(e)}else t.push(e);return n.set(a,e),e}register(e,a){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,a)),t}registerTrigger(e,a,t){let n=this._namespaceLookup[e];n&&n.register(a,t)&&this.totalAnimations++}destroy(e,a){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(a),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let a=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&a.add(o)}}return a}trigger(e,a,t,n){if(Ro(a)){let o=this._fetchNamespace(e);if(o)return o.trigger(a,t,n),!0}return!1}insertNode(e,a,t,n){if(!Ro(a))return;let o=a[Ot];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let r=this.collectedLeaveElements.indexOf(a);r>=0&&this.collectedLeaveElements.splice(r,1)}if(e){let r=this._fetchNamespace(e);r&&r.insertNode(a,t)}n&&this.collectEnterElement(a)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,a){a?this.disabledNodes.has(e)||(this.disabledNodes.add(e),St(e,Os)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xa(e,Os))}removeNode(e,a,t){if(Ro(a)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(a,t):this.markElementAsRemoved(e,a,!1,t);let o=this.namespacesByHostElement.get(a);o&&o.id!==e&&o.removeNode(a,t)}else this._onRemovalComplete(a,t)}markElementAsRemoved(e,a,t,n,o){this.collectedLeaveElements.push(a),a[Ot]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,a,t,n,o){return Ro(a)?this._fetchNamespace(e).listen(a,t,n,o):()=>{}}_buildInstruction(e,a,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,a,o)}destroyInnerAnimations(e){let a=this.driver.query(e,jo,!0);a.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(a=this.driver.query(e,Fs,!0),a.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let a=this.playersByElement.get(e);a&&a.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let a=this.playersByQueriedElement.get(e);a&&a.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return wi(this.players).onDone(()=>e());e()})}processLeaveNode(e){let a=e[Ot];if(a&&a.setForRemoval){if(e[Ot]=wd,a.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(a.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}e.classList?.contains(Os)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Bh,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],a.length?wi(a).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw ch(e)}_flushAnimations(e,a){let t=new In,n=[],o=new Map,r=[],s=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(F=>{d.add(F);let V=this.driver.query(F,Jh,!0);for(let $=0;${let $=hd+T++;v.set(V,$),F.forEach(se=>St(se,$))});let E=[],w=new Set,k=new Set;for(let F=0;Fw.add(se)):k.add(V))}let R=new Map,J=ud(x,Array.from(w));J.forEach((F,V)=>{let $=Ps+T++;R.set(V,$),F.forEach(se=>St(se,$))}),e.push(()=>{b.forEach((F,V)=>{let $=v.get(V);F.forEach(se=>xa(se,$))}),J.forEach((F,V)=>{let $=R.get(V);F.forEach(se=>xa(se,$))}),E.forEach(F=>{this.processLeaveNode(F)})});let pe=[],ee=[];for(let F=this._namespaceList.length-1;F>=0;F--)this._namespaceList[F].drainQueuedTransitions(a).forEach($=>{let se=$.player,Le=$.element;if(pe.push(se),this.collectedEnterElements.length){let Ge=Le[Ot];if(Ge&&Ge.setForMove){if(Ge.previousTriggersValues&&Ge.previousTriggersValues.has($.triggerName)){let Ti=Ge.previousTriggersValues.get($.triggerName),bt=this.statesByElement.get($.element);if(bt&&bt.has($.triggerName)){let jn=bt.get($.triggerName);jn.value=Ti,bt.set($.triggerName,jn)}}se.destroy();return}}let Pt=!g||!this.driver.containsElement(g,Le),lt=R.get(Le),si=v.get(Le),Ce=this._buildInstruction($,t,si,lt,Pt);if(Ce.errors&&Ce.errors.length){ee.push(Ce);return}if(Pt){se.onStart(()=>Bi(Le,Ce.fromStyles)),se.onDestroy(()=>Ut(Le,Ce.toStyles)),n.push(se);return}if($.isFallbackTransition){se.onStart(()=>Bi(Le,Ce.fromStyles)),se.onDestroy(()=>Ut(Le,Ce.toStyles)),n.push(se);return}let vl=[];Ce.timelines.forEach(Ge=>{Ge.stretchStartingKeyframe=!0,this.disabledNodes.has(Ge.element)||vl.push(Ge)}),Ce.timelines=vl,t.append(Le,Ce.timelines);let ng={instruction:Ce,player:se,element:Le};r.push(ng),Ce.queriedElements.forEach(Ge=>ft(s,Ge,[]).push(se)),Ce.preStyleProps.forEach((Ge,Ti)=>{if(Ge.size){let bt=l.get(Ti);bt||l.set(Ti,bt=new Set),Ge.forEach((jn,Mr)=>bt.add(Mr))}}),Ce.postStyleProps.forEach((Ge,Ti)=>{let bt=c.get(Ti);bt||c.set(Ti,bt=new Set),Ge.forEach((jn,Mr)=>bt.add(Mr))})});if(ee.length){let F=[];ee.forEach(V=>{F.push(uh(V.triggerName,V.errors))}),pe.forEach(V=>V.destroy()),this.reportError(F)}let ve=new Map,fe=new Map;r.forEach(F=>{let V=F.element;t.has(V)&&(fe.set(V,V),this._beforeAnimationBuild(F.player.namespaceId,F.instruction,ve))}),n.forEach(F=>{let V=F.element;this._getPreviousPlayers(V,!1,F.namespaceId,F.triggerName,null).forEach(se=>{ft(ve,V,[]).push(se),se.destroy()})});let Se=E.filter(F=>dd(F,l,c)),ze=new Map;cd(ze,this.driver,k,c,Wt).forEach(F=>{dd(F,l,c)&&Se.push(F)});let Yt=new Map;b.forEach((F,V)=>{cd(Yt,this.driver,new Set(F),l,no)}),Se.forEach(F=>{let V=ze.get(F),$=Yt.get(F);ze.set(F,new Map([...V?.entries()??[],...$?.entries()??[]]))});let Pa=[],Hn=[],Fa={};r.forEach(F=>{let{element:V,player:$,instruction:se}=F;if(t.has(V)){if(d.has(V)){$.onDestroy(()=>Ut(V,se.toStyles)),$.disabled=!0,$.overrideTotalTime(se.totalTime),n.push($);return}let Le=Fa;if(fe.size>1){let lt=V,si=[];for(;lt=lt.parentNode;){let Ce=fe.get(lt);if(Ce){Le=Ce;break}si.push(lt)}si.forEach(Ce=>fe.set(Ce,Le))}let Pt=this._buildAnimation($.namespaceId,se,ve,o,Yt,ze);if($.setRealPlayer(Pt),Le===Fa)Pa.push($);else{let lt=this.playersByElement.get(Le);lt&<.length&&($.parentPlayer=wi(lt)),n.push($)}}else Bi(V,se.fromStyles),$.onDestroy(()=>Ut(V,se.toStyles)),Hn.push($),d.has(V)&&n.push($)}),Hn.forEach(F=>{let V=o.get(F.element);if(V&&V.length){let $=wi(V);F.setRealPlayer($)}}),n.forEach(F=>{F.parentPlayer?F.syncPlayerEvents(F.parentPlayer):F.destroy()});for(let F=0;F!Pt.destroyed);Le.length?Kh(this,V,Le):this.processLeaveNode(V)}return E.length=0,Pa.forEach(F=>{this.players.push(F),F.onDone(()=>{F.destroy();let V=this.players.indexOf(F);this.players.splice(V,1)}),F.play()}),Pa}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,a,t,n,o){let r=[];if(a){let s=this.playersByQueriedElement.get(e);s&&(r=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==Dn;s.forEach(c=>{c.queued||!l&&c.triggerName!=n||r.push(c)})}}return(t||n)&&(r=r.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),r}_beforeAnimationBuild(e,a,t){let n=a.triggerName,o=a.element,r=a.isRemovalTransition?void 0:e,s=a.isRemovalTransition?void 0:n;for(let l of a.timelines){let c=l.element,d=c!==o,g=ft(t,c,[]);this._getPreviousPlayers(c,d,r,s,a.toState).forEach(b=>{let v=b.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),b.destroy(),g.push(b)})}Bi(o,a.fromStyles)}_buildAnimation(e,a,t,n,o,r){let s=a.triggerName,l=a.element,c=[],d=new Set,g=new Set,x=a.timelines.map(v=>{let T=v.element;d.add(T);let E=T[Ot];if(E&&E.removedBeforeQueried)return new aa(v.duration,v.delay);let w=T!==l,k=Qh((t.get(T)||Uh).map(ve=>ve.getRealPlayer())).filter(ve=>{let fe=ve;return fe.element?fe.element===T:!1}),R=o.get(T),J=r.get(T),pe=md(this._normalizer,v.keyframes,R,J),ee=this._buildPlayer(v,pe,k);if(v.subTimeline&&n&&g.add(T),w){let ve=new En(e,s,T);ve.setRealPlayer(ee),c.push(ve)}return ee});c.forEach(v=>{ft(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>$h(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>St(v,td));let b=wi(x);return b.onDestroy(()=>{d.forEach(v=>xa(v,td)),Ut(l,a.toStyles)}),g.forEach(v=>{ft(n,v,[]).push(b)}),b}_buildPlayer(e,a,t){return a.length>0?this.driver.animate(e.element,a,e.duration,e.delay,e.easing,t):new aa(e.duration,e.delay)}},En=class{constructor(e,a,t){this.namespaceId=e,this.triggerName=a,this.element=t,this._player=new aa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((a,t)=>{a.forEach(n=>Qs(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let a=this._player;a.triggerCallback&&e.onStart(()=>a.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,a){ft(this._queuedCallbacks,e,[]).push(a)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let a=this._player;a.triggerCallback&&a.triggerCallback(e)}};function $h(i,e,a){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(a);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function Zh(i){return i??null}function Ro(i){return i&&i.nodeType===1}function Yh(i){return i=="start"||i=="done"}function ld(i,e){let a=i.style.display;return i.style.display=e??"none",a}function cd(i,e,a,t,n){let o=[];a.forEach(l=>o.push(ld(l)));let r=[];t.forEach((l,c)=>{let d=new Map;l.forEach(g=>{let x=e.computeStyle(c,g,n);d.set(g,x),(!x||x.length==0)&&(c[Ot]=Gh,r.push(c))}),i.set(c,d)});let s=0;return a.forEach(l=>ld(l,o[s++])),r}function ud(i,e){let a=new Map;if(i.forEach(s=>a.set(s,[])),e.length==0)return a;let t=1,n=new Set(e),o=new Map;function r(s){if(!s)return t;let l=o.get(s);if(l)return l;let c=s.parentNode;return a.has(c)?l=c:n.has(c)?l=t:l=r(c),o.set(s,l),l}return e.forEach(s=>{let l=r(s);l!==t&&a.get(l).push(s)}),a}function St(i,e){i.classList?.add(e)}function xa(i,e){i.classList?.remove(e)}function Kh(i,e,a){wi(a).onDone(()=>i.processLeaveNode(e))}function Qh(i){let e=[];return Sd(i,e),e}function Sd(i,e){for(let a=0;an.add(o)):e.set(i,t),a.delete(i),!0}var Sa=class{constructor(e,a,t){this._driver=a,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new Zs(e.body,a,t),this._timelineEngine=new Gs(e.body,a,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,a,t,n,o){let r=e+"-"+n,s=this._triggerCache[r];if(!s){let l=[],c=[],d=yd(this._driver,o,l,c);if(l.length)throw Xf(n,l);c.length&&void 0,s=Hh(n,d,this._normalizer),this._triggerCache[r]=s}this._transitionEngine.registerTrigger(a,n,s)}register(e,a){this._transitionEngine.register(e,a)}destroy(e,a){this._transitionEngine.destroy(e,a)}onInsert(e,a,t,n){this._transitionEngine.insertNode(e,a,t,n)}onRemove(e,a,t){this._transitionEngine.removeNode(e,a,t)}disableAnimations(e,a){this._transitionEngine.markElementAsDisabled(e,a)}process(e,a,t,n){if(t.charAt(0)=="@"){let[o,r]=Xu(t),s=n;this._timelineEngine.command(o,a,r,s)}else this._transitionEngine.trigger(e,a,t,n)}listen(e,a,t,n,o){if(t.charAt(0)=="@"){let[r,s]=Xu(t);return this._timelineEngine.listen(r,a,s,o)}return this._transitionEngine.listen(e,a,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function e0(i,e){let a=null,t=null;return Array.isArray(e)&&e.length?(a=Ls(e[0]),e.length>1&&(t=Ls(e[e.length-1]))):e instanceof Map&&(a=Ls(e)),a||t?new Ys(i,a,t):null}var wa=class wa{constructor(e,a,t){this._element=e,this._startStyles=a,this._endStyles=t,this._state=0;let n=wa.initialStylesByElement.get(e);n||wa.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&Ut(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ut(this._element,this._initialStyles),this._endStyles&&(Ut(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(wa.initialStylesByElement.delete(this._element),this._startStyles&&(Bi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bi(this._element,this._endStyles),this._endStyles=null),Ut(this._element,this._initialStyles),this._state=3)}};wa.initialStylesByElement=new WeakMap;var Ys=wa;function Ls(i){let e=null;return i.forEach((a,t)=>{t0(t)&&(e=e||new Map,e.set(t,a))}),e}function t0(i){return i==="display"||i==="position"}var Go=class{constructor(e,a,t,n){this.element=e,this.keyframes=a,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let a=()=>this._onFinish();this.domPlayer.addEventListener("finish",a),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",a)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let a=[];return e.forEach(t=>{a.push(Object.fromEntries(t))}),a}_triggerWebAnimation(e,a,t){return e.animate(this._convertKeyframesToObject(a),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:al(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let a=e==="start"?this._onStartFns:this._onDoneFns;a.forEach(t=>t()),a.length=0}},$o=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,a){return pd(e,a)}getParentElement(e){return el(e)}query(e,a,t){return gd(e,a,t)}computeStyle(e,a,t){return al(e,a)}animate(e,a,t,n,o,r=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let c=new Map,d=r.filter(b=>b instanceof Go);xh(t,n)&&d.forEach(b=>{b.currentSnapshot.forEach((v,T)=>c.set(T,v))});let g=vh(a).map(b=>new Map(b));g=wh(e,g,c);let x=e0(e,g);return new Go(e,g,l,x)}};var Ho="@",Cd="@.disabled",Zo=class{constructor(e,a,t,n){this.namespaceId=e,this.delegate=a,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,a){return this.delegate.createElement(e,a)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,a){this.delegate.appendChild(e,a),this.engine.onInsert(this.namespaceId,a,e,!1)}insertBefore(e,a,t,n=!0){this.delegate.insertBefore(e,a,t),this.engine.onInsert(this.namespaceId,a,e,n)}removeChild(e,a,t){this.parentNode(a)&&this.engine.onRemove(this.namespaceId,a,this.delegate)}selectRootElement(e,a){return this.delegate.selectRootElement(e,a)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,a,t,n){this.delegate.setAttribute(e,a,t,n)}removeAttribute(e,a,t){this.delegate.removeAttribute(e,a,t)}addClass(e,a){this.delegate.addClass(e,a)}removeClass(e,a){this.delegate.removeClass(e,a)}setStyle(e,a,t,n){this.delegate.setStyle(e,a,t,n)}removeStyle(e,a,t){this.delegate.removeStyle(e,a,t)}setProperty(e,a,t){a.charAt(0)==Ho&&a==Cd?this.disableAnimations(e,!!t):this.delegate.setProperty(e,a,t)}setValue(e,a){this.delegate.setValue(e,a)}listen(e,a,t){return this.delegate.listen(e,a,t)}disableAnimations(e,a){this.engine.disableAnimations(e,a)}},Ks=class extends Zo{constructor(e,a,t,n,o){super(a,t,n,o),this.factory=e,this.namespaceId=a}setProperty(e,a,t){a.charAt(0)==Ho?a.charAt(1)=="."&&a==Cd?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,a.slice(1),t):this.delegate.setProperty(e,a,t)}listen(e,a,t){if(a.charAt(0)==Ho){let n=i0(e),o=a.slice(1),r="";return o.charAt(0)!=Ho&&([o,r]=a0(o)),this.engine.listen(this.namespaceId,n,o,r,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,a,t)}};function i0(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function a0(i){let e=i.indexOf("."),a=i.substring(0,e),t=i.slice(e+1);return[a,t]}var Yo=class{constructor(e,a,t){this.delegate=e,this.engine=a,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,a.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,a){let t="",n=this.delegate.createRenderer(e,a);if(!e||!a?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let g=()=>c.delete(n);d=new Zo(t,n,this.engine,g),c.set(n,d)}return d}let o=a.id,r=a.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,r,e,c.name,c)};return a.data.animation.forEach(s),new Ks(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,a,t){if(e>=0&&ea(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[r,s]=o;r(s)}),this._animationCallbacksBuffer=[]})}),n.push([a,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var o0=(()=>{let e=class e extends Sa{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(P(nt),P(Vi),P(Wi))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})();function r0(){return new Jo}function s0(i,e,a){return new Yo(i,e,a)}var qd=[{provide:Wi,useFactory:r0},{provide:Sa,useClass:o0},{provide:Ml,useFactory:s0,deps:[zl,Sa,Ki]}],l0=[{provide:Vi,useFactory:()=>new $o},{provide:Nr,useValue:"BrowserAnimations"},...qd],u3=[{provide:Vi,useClass:tl},{provide:Nr,useValue:"NoopAnimations"},...qd];function kd(){return El("NgEagerAnimations"),[...l0]}var Ko=new Ne("ANGOR_MOCK_API_DEFAULT_DELAY");var Qo=class{constructor(e,a){this.url=e,this.delay=a,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return Kt(()=>new Error("Execution limit has been reached!"));if(!this._reply)return Kt(()=>new Error("Response callback function does not exist!"));if(!this.request)return Kt(()=>new Error("Request does not exist!"));this._replied++;let e=this._reply({request:this.request,urlParams:this.urlParams});return e instanceof Bn?e.pipe(Ze(1)):vt(e).pipe(Ze(1))}reply(e){this._reply=e}replyCount(e){this._replyCount=e}};var X=(()=>{let e=class e{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(t,n){let o={handler:void 0,urlParams:{}},r=n.split("/"),s=this._handlers[t.toLowerCase()];for(let[l,c]of s){let d=l.split("/");if(r.length===d.length&&d.every((x,b)=>x.startsWith(":")||x===r[b])){o.handler=c,o.urlParams=_c(d.map((x,b)=>x.startsWith(":")?[x.substring(1),r[b]]:void 0).filter(Boolean));break}}return o}onGet(t,n){return this._registerHandler("get",t,n)}onPost(t,n){return this._registerHandler("post",t,n)}onPatch(t,n){return this._registerHandler("patch",t,n)}onDelete(t,n){return this._registerHandler("delete",t,n)}onPut(t,n){return this._registerHandler("put",t,n)}onHead(t,n){return this._registerHandler("head",t,n)}onJsonp(t,n){return this._registerHandler("jsonp",t,n)}onOptions(t,n){return this._registerHandler("options",t,n)}_registerHandler(t,n,o){let r=new Qo(n,o);return this._handlers[t].set(n,r),r}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Td=(i,e)=>{let a=I(Ko),t=I(X),{handler:n,urlParams:o}=t.findHandler(i.method.toUpperCase(),i.url);return n?(n.request=i,n.urlParams=o,n.response.pipe(Yi(n.delay??a??0),Je(r=>{if(!r)return Kt(()=>new Hr({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));let s={status:r[0],body:r[1]};return s.status>=200&&s.status<300?vt(new jl({body:s.body,status:s.status,statusText:"OK"})):Kt(()=>new Hr({error:s.body?.error,status:s.status,statusText:"ERROR"}))}))):e(i)};var Te=class{static guid(){let e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let t=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(a==="x"?t:t&3|8).toString(16)})}};var c0=(i,e,a,t,n,o,r,s)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":i,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":e,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":a,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":t,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":n,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":o,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":r,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":s});function u0(i,e){i&1&&(y(0,"div",1)(1,"button",6),S(2,"mat-icon",7),_()()),i&2&&(m(),f("matDialogClose",void 0),m(),f("svgIcon","heroicons_outline:x-mark"))}function d0(i,e){if(i&1&&(y(0,"div",3),S(1,"mat-icon",8),_()),i&2){let a=h();f("ngClass",Rl(2,c0,a.data.icon.color==="primary",a.data.icon.color==="accent",a.data.icon.color==="warn",a.data.icon.color==="basic",a.data.icon.color==="info",a.data.icon.color==="success",a.data.icon.color==="warning",a.data.icon.color==="error")),m(),f("svgIcon",a.data.icon.name)}}function m0(i,e){if(i&1&&S(0,"div",9),i&2){let a=h(2);f("innerHTML",a.data.title,Xt)}}function p0(i,e){if(i&1&&S(0,"div",10),i&2){let a=h(2);f("innerHTML",a.data.message,Xt)}}function g0(i,e){if(i&1&&(y(0,"div",4),A(1,m0,1,1,"div",9)(2,p0,1,1,"div",10),_()),i&2){let a=h();m(),q(a.data.title?1:-1),m(),q(a.data.message?2:-1)}}function f0(i,e){if(i&1&&(y(0,"button",11),z(1),_()),i&2){let a=h(2);f("matDialogClose","cancelled"),m(),ae(" ",a.data.actions.cancel.label," ")}}function h0(i,e){if(i&1&&(y(0,"button",12),z(1),_()),i&2){let a=h(2);f("color",a.data.actions.confirm.color)("matDialogClose","confirmed"),m(),ae(" ",a.data.actions.confirm.label," ")}}function b0(i,e){if(i&1&&(y(0,"div",5),A(1,f0,2,2,"button",11)(2,h0,2,3,"button",12),_()),i&2){let a=h();m(),q(a.data.actions.cancel.show?1:-1),m(),q(a.data.actions.confirm.show?2:-1)}}var Dd=(()=>{let e=class e{constructor(){this.data=I(gc)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[G],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(n,o){n&1&&(y(0,"div",0),A(1,u0,3,2,"div",1),y(2,"div",2),A(3,d0,2,11,"div",3)(4,g0,3,2,"div",4),_(),A(5,b0,3,2,"div",5),_()),n&2&&(m(),q(o.data.dismissible?1:-1),m(2),q(o.data.icon.show?3:-1),m(),q(o.data.title||o.data.message?4:-1),m(),q(o.data.actions.confirm.show||o.data.actions.cancel.show?5:-1))},dependencies:[et,Sc,Xe,so,hc,be,he,_e],styles:[`@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important} +import{a as qc,b as kc}from"./chunk-SJC7NN3X.js";import{a as Fc,b as Rc}from"./chunk-BVVMJWCI.js";import{a as na,b as uo,c as mo,d as oa}from"./chunk-ON6SO2QP.js";import{a as ot,b as rt}from"./chunk-HGT4ACXZ.js";import{b as gc,c as fc,d as hc,e as so}from"./chunk-I33GKPRG.js";import{a as xe,b as C,c as _c,d as co,e as xc,f as wc,g as $a,h as pi}from"./chunk-3Q7ZV3LD.js";import{a as qt}from"./chunk-HXPRHIP3.js";import{b as fo}from"./chunk-MYVAGBPZ.js";import{e as uc,f as dc,h as oo,l as ro,m as mc,p as ti,s as pc,t as go,v as Hc}from"./chunk-6S6AYVUH.js";import{a as gi}from"./chunk-GTCJWQQT.js";import{A as Tc,B as Dc,C as Ac,D as Ic,H as Mc,K as Ec,N as Oc,T as Nc,U as Lc,V as Pc,W as po,a as oe,b as Wt,c as oc,d as ei,e as rc,f as sc,g as ut,h as lc,j as Vr,m as cc,n as aa,o as Wr,p as no,w as bc,x as vc,y as yc,z as lo}from"./chunk-4AZPYN7Q.js";import"./chunk-BLRJMPLX.js";import{$ as et,E as Kl,G as Ql,H as Jr,J as Xl,K as io,L as Br,P as ec,Q as tc,R as ic,S as ao,T as ac,U as nc,V as Ga,X as Sc,Z as Xe,a as ia,aa as Cc,ba as he,ca as be,h as Gl,j as eo,k as mi,q as $l,r as Zl,s as zr,t as to,v as Yl}from"./chunk-MH4Z64LL.js";import{$ as Qt,$a as q,A as Ai,Aa as Ye,Ab as $n,Ac as Bl,B as $e,Ba as m,Bb as ae,Bc as Vl,Ca as j,Cb as Zn,Cc as Wl,D as Sl,Dc as Ul,E as Un,Ea as Lr,F as Ze,Ga as Ml,Gb as Va,H as Yi,Ha as Mi,Hb as G,Ia as Ba,Ib as Yn,J as Cl,Ja as El,Jb as qe,K as ql,Kb as Ct,Lb as Pl,M as kl,Mb as Fl,Nb as Rl,O as Tl,Oa as Pr,Ob as Ei,P as Je,Pa as A,Q as B,Qb as Oi,Rb as it,S as Ht,Sa as Ol,Ta as Fr,Tb as Wa,U as le,Ua as f,V as Dl,W as O,Wa as Ke,Wb as ce,X as ja,Xa as Nl,Xb as Ni,Y as Ne,Ya as li,Z as P,_ as I,_a as zt,a as M,ab as Pe,b as ne,ba as U,bb as Fe,bc as nt,c as yl,ca as za,cb as y,d as Ra,da as Ja,db as _,dc as _e,e as Di,ea as Ii,eb as S,ec as Hl,fa as Al,fb as Jt,fc as Kn,g as Er,gb as Bt,gc as yt,h as zn,ha as tt,hb as ye,i as Jn,ia as K,ib as re,ic as Qn,j as Bn,ja as Q,k as Z,ka as Il,kc as Xi,l as Ft,lb as Y,m as Rt,mc as jl,nb as h,nc as Hr,o as _l,oa as Or,ob as Gn,oc as ci,p as Ha,pa as ct,pb as Qi,pc as Ua,q as vt,qa as Ki,qc as jr,r as Kt,rb as Ll,rc as zl,s as xl,sa as jt,sb as Rr,sc as Jl,t as Ee,tb as Qe,tc as ea,u as Vn,ub as Re,uc as Vt,vb as He,vc as ta,w as wl,wa as Nr,wc as ui,x as Wn,xc as je,y as Zi,yb as te,yc as di,za as Xt,zb as z,zc as Xn}from"./chunk-LP5NDBXI.js";var yp=Di(()=>{});var La=Di((Cr,_p)=>{(function(i,e){typeof Cr=="object"?_p.exports=Cr=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(Cr,function(){var i=i||function(e,a){var t;if(typeof window<"u"&&window.crypto&&(t=window.crypto),typeof self<"u"&&self.crypto&&(t=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(t=globalThis.crypto),!t&&typeof window<"u"&&window.msCrypto&&(t=window.msCrypto),!t&&typeof global<"u"&&global.crypto&&(t=global.crypto),!t&&typeof yl=="function")try{t=yp()}catch{}var n=function(){if(t){if(typeof t.getRandomValues=="function")try{return t.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof t.randomBytes=="function")try{return t.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function w(){}return function(k){var R;return w.prototype=k,R=new w,w.prototype=null,R}}(),r={},s=r.lib={},l=s.Base=function(){return{extend:function(w){var k=o(this);return w&&k.mixIn(w),(!k.hasOwnProperty("init")||this.init===k.init)&&(k.init=function(){k.$super.init.apply(this,arguments)}),k.init.prototype=k,k.$super=this,k},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var k in w)w.hasOwnProperty(k)&&(this[k]=w[k]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=s.WordArray=l.extend({init:function(w,k){w=this.words=w||[],k!=a?this.sigBytes=k:this.sigBytes=w.length*4},toString:function(w){return(w||g).stringify(this)},concat:function(w){var k=this.words,R=w.words,J=this.sigBytes,pe=w.sigBytes;if(this.clamp(),J%4)for(var ee=0;ee>>2]>>>24-ee%4*8&255;k[J+ee>>>2]|=ve<<24-(J+ee)%4*8}else for(var fe=0;fe>>2]=R[fe>>>2];return this.sigBytes+=pe,this},clamp:function(){var w=this.words,k=this.sigBytes;w[k>>>2]&=4294967295<<32-k%4*8,w.length=e.ceil(k/4)},clone:function(){var w=l.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var k=[],R=0;R>>2]>>>24-pe%4*8&255;J.push((ee>>>4).toString(16)),J.push((ee&15).toString(16))}return J.join("")},parse:function(w){for(var k=w.length,R=[],J=0;J>>3]|=parseInt(w.substr(J,2),16)<<24-J%8*4;return new c.init(R,k/2)}},x=d.Latin1={stringify:function(w){for(var k=w.words,R=w.sigBytes,J=[],pe=0;pe>>2]>>>24-pe%4*8&255;J.push(String.fromCharCode(ee))}return J.join("")},parse:function(w){for(var k=w.length,R=[],J=0;J>>2]|=(w.charCodeAt(J)&255)<<24-J%4*8;return new c.init(R,k)}},b=d.Utf8={stringify:function(w){try{return decodeURIComponent(escape(x.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return x.parse(unescape(encodeURIComponent(w)))}},v=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=b.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var k,R=this._data,J=R.words,pe=R.sigBytes,ee=this.blockSize,ve=ee*4,fe=pe/ve;w?fe=e.ceil(fe):fe=e.max((fe|0)-this._minBufferSize,0);var Se=fe*ee,ze=e.min(Se*4,pe);if(Se){for(var Lt=0;Lt{(function(i,e){typeof qr=="object"?xp.exports=qr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(qr,function(i){return function(){var e=i,a=e.lib,t=a.WordArray,n=e.enc,o=n.Base64={stringify:function(s){var l=s.words,c=s.sigBytes,d=this._map;s.clamp();for(var g=[],x=0;x>>2]>>>24-x%4*8&255,v=l[x+1>>>2]>>>24-(x+1)%4*8&255,T=l[x+2>>>2]>>>24-(x+2)%4*8&255,E=b<<16|v<<8|T,w=0;w<4&&x+w*.75>>6*(3-w)&63));var k=d.charAt(64);if(k)for(;g.length%4;)g.push(k);return g.join("")},parse:function(s){var l=s.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var g=0;g>>6-x%4*2,T=b|v;d[g>>>2]|=T<<24-g%4*8,g++}return t.create(d,g)}}(),i.enc.Base64})});var Cp=Di((kr,Sp)=>{(function(i,e){typeof kr=="object"?Sp.exports=kr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(kr,function(i){return i.enc.Utf8})});var kp=Di((Tr,qp)=>{(function(i,e){typeof Tr=="object"?qp.exports=Tr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(Tr,function(i){return function(e){var a=i,t=a.lib,n=t.WordArray,o=t.Hasher,r=a.algo,s=[],l=[];(function(){function g(T){for(var E=e.sqrt(T),w=2;w<=E;w++)if(!(T%w))return!1;return!0}function x(T){return(T-(T|0))*4294967296|0}for(var b=2,v=0;v<64;)g(b)&&(v<8&&(s[v]=x(e.pow(b,1/2))),l[v]=x(e.pow(b,1/3)),v++),b++})();var c=[],d=r.SHA256=o.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(g,x){for(var b=this._hash.words,v=b[0],T=b[1],E=b[2],w=b[3],k=b[4],R=b[5],J=b[6],pe=b[7],ee=0;ee<64;ee++){if(ee<16)c[ee]=g[x+ee]|0;else{var ve=c[ee-15],fe=(ve<<25|ve>>>7)^(ve<<14|ve>>>18)^ve>>>3,Se=c[ee-2],ze=(Se<<15|Se>>>17)^(Se<<13|Se>>>19)^Se>>>10;c[ee]=fe+c[ee-7]+ze+c[ee-16]}var Lt=k&R^~k&J,Yt=v&T^v&E^T&E,Pa=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),Hn=(k<<26|k>>>6)^(k<<21|k>>>11)^(k<<7|k>>>25),Fa=pe+Hn+Lt+l[ee]+c[ee],F=Pa+Yt;pe=J,J=R,R=k,k=w+Fa|0,w=E,E=T,T=v,v=Fa+F|0}b[0]=b[0]+v|0,b[1]=b[1]+T|0,b[2]=b[2]+E|0,b[3]=b[3]+w|0,b[4]=b[4]+k|0,b[5]=b[5]+R|0,b[6]=b[6]+J|0,b[7]=b[7]+pe|0},_doFinalize:function(){var g=this._data,x=g.words,b=this._nDataBytes*8,v=g.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=e.floor(b/4294967296),x[(v+64>>>9<<4)+15]=b,g.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var g=o.clone.call(this);return g._hash=this._hash.clone(),g}});a.SHA256=o._createHelper(d),a.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var Dp=Di((Dr,Tp)=>{(function(i,e){typeof Dr=="object"?Tp.exports=Dr=e(La()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(Dr,function(i){(function(){var e=i,a=e.lib,t=a.Base,n=e.enc,o=n.Utf8,r=e.algo,s=r.HMAC=t.extend({init:function(l,c){l=this._hasher=new l.init,typeof c=="string"&&(c=o.parse(c));var d=l.blockSize,g=d*4;c.sigBytes>g&&(c=l.finalize(c)),c.clamp();for(var x=this._oKey=c.clone(),b=this._iKey=c.clone(),v=x.words,T=b.words,E=0;E{(function(i,e,a){typeof Ar=="object"?Ap.exports=Ar=e(La(),kp(),Dp()):typeof define=="function"&&define.amd?define(["./core","./sha256","./hmac"],e):e(i.CryptoJS)})(Ar,function(i){return i.HmacSHA256})});var jc=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["app-root"]],standalone:!0,features:[G],decls:1,vars:0,template:function(n,o){n&1&&S(0,"router-outlet")},dependencies:[ui],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]});let i=e;return i})();var ii=class extends Error{},ho=class extends ii{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},bo=class extends ii{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},vo=class extends ii{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},kt=class extends ii{},ra=class extends ii{constructor(e){super(`Invalid unit ${e}`)}},Ae=class extends ii{},Tt=class extends ii{constructor(){super("Zone is an abstract class")}};var N="numeric",Dt="short",dt="long",fi={year:N,month:N,day:N},Za={year:N,month:Dt,day:N},Ur={year:N,month:Dt,day:N,weekday:Dt},Ya={year:N,month:dt,day:N},Ka={year:N,month:dt,day:N,weekday:dt},Qa={hour:N,minute:N},Xa={hour:N,minute:N,second:N},en={hour:N,minute:N,second:N,timeZoneName:Dt},tn={hour:N,minute:N,second:N,timeZoneName:dt},an={hour:N,minute:N,hourCycle:"h23"},nn={hour:N,minute:N,second:N,hourCycle:"h23"},on={hour:N,minute:N,second:N,hourCycle:"h23",timeZoneName:Dt},rn={hour:N,minute:N,second:N,hourCycle:"h23",timeZoneName:dt},sn={year:N,month:N,day:N,hour:N,minute:N},ln={year:N,month:N,day:N,hour:N,minute:N,second:N},cn={year:N,month:Dt,day:N,hour:N,minute:N},un={year:N,month:Dt,day:N,hour:N,minute:N,second:N},Gr={year:N,month:Dt,day:N,weekday:Dt,hour:N,minute:N},dn={year:N,month:dt,day:N,hour:N,minute:N,timeZoneName:Dt},mn={year:N,month:dt,day:N,hour:N,minute:N,second:N,timeZoneName:Dt},pn={year:N,month:dt,day:N,weekday:dt,hour:N,minute:N,timeZoneName:dt},gn={year:N,month:dt,day:N,weekday:dt,hour:N,minute:N,second:N,timeZoneName:dt};var mt=class{get type(){throw new Tt}get name(){throw new Tt}get ianaName(){return this.name}get isUniversal(){throw new Tt}offsetName(e,a){throw new Tt}formatOffset(e,a){throw new Tt}offset(e){throw new Tt}equals(e){throw new Tt}get isValid(){throw new Tt}};var $r=null,Li=class i extends mt{static get instance(){return $r===null&&($r=new i),$r}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:a,locale:t}){return _o(e,a,t)}formatOffset(e,a){return hi(this.offset(e),a)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}};var wo={};function og(i){return wo[i]||(wo[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),wo[i]}var rg={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function sg(i,e){let a=i.format(e).replace(/\u200E/g,""),t=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(a),[,n,o,r,s,l,c,d]=t;return[r,n,o,s,l,c,d]}function lg(i,e){let a=i.formatToParts(e),t=[];for(let n=0;n=0?v:1e3+v,(x-b)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}};var zc={};function cg(i,e={}){let a=JSON.stringify([i,e]),t=zc[a];return t||(t=new Intl.ListFormat(i,e),zc[a]=t),t}var Zr={};function Yr(i,e={}){let a=JSON.stringify([i,e]),t=Zr[a];return t||(t=new Intl.DateTimeFormat(i,e),Zr[a]=t),t}var Kr={};function ug(i,e={}){let a=JSON.stringify([i,e]),t=Kr[a];return t||(t=new Intl.NumberFormat(i,e),Kr[a]=t),t}var Qr={};function dg(i,e={}){let r=e,{base:a}=r,t=Ra(r,["base"]),n=JSON.stringify([i,t]),o=Qr[n];return o||(o=new Intl.RelativeTimeFormat(i,e),Qr[n]=o),o}var fn=null;function mg(){return fn||(fn=new Intl.DateTimeFormat().resolvedOptions().locale,fn)}var Jc={};function pg(i){let e=Jc[i];if(!e){let a=new Intl.Locale(i);e="getWeekInfo"in a?a.getWeekInfo():a.weekInfo,Jc[i]=e}return e}function gg(i){let e=i.indexOf("-x-");e!==-1&&(i=i.substring(0,e));let a=i.indexOf("-u-");if(a===-1)return[i];{let t,n;try{t=Yr(i).resolvedOptions(),n=i}catch{let l=i.substring(0,a);t=Yr(l).resolvedOptions(),n=l}let{numberingSystem:o,calendar:r}=t;return[n,o,r]}}function fg(i,e,a){return(a||e)&&(i.includes("-u-")||(i+="-u"),a&&(i+=`-ca-${a}`),e&&(i+=`-nu-${e}`)),i}function hg(i){let e=[];for(let a=1;a<=12;a++){let t=L.utc(2009,a,1);e.push(i(t))}return e}function bg(i){let e=[];for(let a=1;a<=7;a++){let t=L.utc(2016,11,13+a);e.push(i(t))}return e}function So(i,e,a,t){let n=i.listingMode();return n==="error"?null:n==="en"?a(e):t(e)}function vg(i){return i.numberingSystem&&i.numberingSystem!=="latn"?!1:i.numberingSystem==="latn"||!i.locale||i.locale.startsWith("en")||new Intl.DateTimeFormat(i.intl).resolvedOptions().numberingSystem==="latn"}var Xr=class{constructor(e,a,t){this.padTo=t.padTo||0,this.floor=t.floor||!1;let s=t,{padTo:n,floor:o}=s,r=Ra(s,["padTo","floor"]);if(!a||Object.keys(r).length>0){let l=M({useGrouping:!1},t);t.padTo>0&&(l.minimumIntegerDigits=t.padTo),this.inf=ug(e,l)}}format(e){if(this.inf){let a=this.floor?Math.floor(e):e;return this.inf.format(a)}else{let a=this.floor?Math.floor(e):la(e,3);return ke(a,this.padTo)}}},es=class{constructor(e,a,t){this.opts=t,this.originalZone=void 0;let n;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let r=-1*(e.offset/60),s=r>=0?`Etc/GMT+${r}`:`Etc/GMT${r}`;e.offset!==0&&at.create(s).valid?(n=s,this.dt=e):(n="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o=M({},this.opts);o.timeZone=o.timeZone||n,this.dtf=Yr(a,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(a=>{if(a.type==="timeZoneName"){let t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return ne(M({},a),{value:t})}else return a}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},ts=class{constructor(e,a,t){this.opts=M({style:"long"},t),!a&&Co()&&(this.rtf=dg(e,t))}format(e,a){return this.rtf?this.rtf.format(e,a):Bc(a,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,a){return this.rtf?this.rtf.formatToParts(e,a):[]}},yg={firstDay:1,minimalDays:4,weekend:[6,7]},de=class i{static fromOpts(e){return i.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,a,t,n,o=!1){let r=e||ue.defaultLocale,s=r||(o?"en-US":mg()),l=a||ue.defaultNumberingSystem,c=t||ue.defaultOutputCalendar,d=hn(n)||ue.defaultWeekSettings;return new i(s,l,c,d,r)}static resetCache(){fn=null,Zr={},Kr={},Qr={}}static fromObject({locale:e,numberingSystem:a,outputCalendar:t,weekSettings:n}={}){return i.create(e,a,t,n)}constructor(e,a,t,n,o){let[r,s,l]=gg(e);this.locale=r,this.numberingSystem=a||s||null,this.outputCalendar=t||l||null,this.weekSettings=n,this.intl=fg(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=vg(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),a=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&a?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:i.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,hn(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone(ne(M({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(ne(M({},e),{defaultToEN:!1}))}months(e,a=!1){return So(this,e,is,()=>{let t=a?{month:e,day:"numeric"}:{month:e},n=a?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=hg(o=>this.extract(o,t,"month"))),this.monthsCache[n][e]})}weekdays(e,a=!1){return So(this,e,as,()=>{let t=a?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=a?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=bg(o=>this.extract(o,t,"weekday"))),this.weekdaysCache[n][e]})}meridiems(){return So(this,void 0,()=>ns,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[L.utc(2016,11,13,9),L.utc(2016,11,13,19)].map(a=>this.extract(a,e,"dayperiod"))}return this.meridiemCache})}eras(e){return So(this,e,os,()=>{let a={era:e};return this.eraCache[e]||(this.eraCache[e]=[L.utc(-40,1,1),L.utc(2017,1,1)].map(t=>this.extract(t,a,"era"))),this.eraCache[e]})}extract(e,a,t){let n=this.dtFormatter(e,a),o=n.formatToParts(),r=o.find(s=>s.type.toLowerCase()===t);return r?r.value:null}numberFormatter(e={}){return new Xr(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,a={}){return new es(e,this.intl,a)}relFormatter(e={}){return new ts(this.intl,this.isEnglish(),e)}listFormatter(e={}){return cg(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:qo()?pg(this.locale):yg}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}};var ss=null,Be=class i extends mt{static get utcInstance(){return ss===null&&(ss=new i(0)),ss}static instance(e){return e===0?i.utcInstance:new i(e)}static parseSpecifier(e){if(e){let a=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(a)return new i(Pi(a[1],a[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${hi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${hi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,a){return hi(this.fixed,a)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}};var bn=class extends mt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function At(i,e){let a;if(W(i)||i===null)return e;if(i instanceof mt)return i;if(Vc(i)){let t=i.toLowerCase();return t==="default"?e:t==="local"||t==="system"?Li.instance:t==="utc"||t==="gmt"?Be.utcInstance:Be.parseSpecifier(t)||at.create(i)}else return It(i)?Be.instance(i):typeof i=="object"&&"offset"in i&&typeof i.offset=="function"?i:new bn(i)}var ls={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Wc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},_g=ls.hanidec.replace(/[\[|\]]/g,"").split("");function Uc(i){let e=parseInt(i,10);if(isNaN(e)){e="";for(let a=0;a=o&&t<=r&&(e+=t-o)}}return parseInt(e,10)}else return e}var ca={};function Gc(){ca={}}function _t({numberingSystem:i},e=""){let a=i||"latn";return ca[a]||(ca[a]={}),ca[a][e]||(ca[a][e]=new RegExp(`${ls[a]}${e}`)),ca[a][e]}var $c=()=>Date.now(),Zc="system",Yc=null,Kc=null,Qc=null,Xc=60,eu,tu=null,ue=class{static get now(){return $c}static set now(e){$c=e}static set defaultZone(e){Zc=e}static get defaultZone(){return At(Zc,Li.instance)}static get defaultLocale(){return Yc}static set defaultLocale(e){Yc=e}static get defaultNumberingSystem(){return Kc}static set defaultNumberingSystem(e){Kc=e}static get defaultOutputCalendar(){return Qc}static set defaultOutputCalendar(e){Qc=e}static get defaultWeekSettings(){return tu}static set defaultWeekSettings(e){tu=hn(e)}static get twoDigitCutoffYear(){return Xc}static set twoDigitCutoffYear(e){Xc=e%100}static get throwOnInvalid(){return eu}static set throwOnInvalid(e){eu=e}static resetCaches(){de.resetCache(),at.resetCache(),L.resetCache(),Gc()}};var Ve=class{constructor(e,a){this.reason=e,this.explanation=a}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}};var iu=[0,31,59,90,120,151,181,212,243,273,304,334],au=[0,31,60,91,121,152,182,213,244,274,305,335];function xt(i,e){return new Ve("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${i}, which is invalid`)}function ko(i,e,a){let t=new Date(Date.UTC(i,e-1,a));i<100&&i>=0&&t.setUTCFullYear(t.getUTCFullYear()-1900);let n=t.getUTCDay();return n===0?7:n}function nu(i,e,a){return a+(Ri(i)?au:iu)[e-1]}function ou(i,e){let a=Ri(i)?au:iu,t=a.findIndex(o=>oFi(t,e,a)?(c=t+1,l=1):c=t,M({weekYear:c,weekNumber:l,weekday:s},_n(i))}function cs(i,e=4,a=1){let{weekYear:t,weekNumber:n,weekday:o}=i,r=To(ko(t,1,e),a),s=bi(t),l=n*7+o-r-7+e,c;l<1?(c=t-1,l+=bi(c)):l>s?(c=t+1,l-=bi(t)):c=t;let{month:d,day:g}=ou(c,l);return M({year:c,month:d,day:g},_n(i))}function Do(i){let{year:e,month:a,day:t}=i,n=nu(e,a,t);return M({year:e,ordinal:n},_n(i))}function us(i){let{year:e,ordinal:a}=i,{month:t,day:n}=ou(e,a);return M({year:e,month:t,day:n},_n(i))}function ds(i,e){if(!W(i.localWeekday)||!W(i.localWeekNumber)||!W(i.localWeekYear)){if(!W(i.weekday)||!W(i.weekNumber)||!W(i.weekYear))throw new kt("Cannot mix locale-based week fields with ISO-based week fields");return W(i.localWeekday)||(i.weekday=i.localWeekday),W(i.localWeekNumber)||(i.weekNumber=i.localWeekNumber),W(i.localWeekYear)||(i.weekYear=i.localWeekYear),delete i.localWeekday,delete i.localWeekNumber,delete i.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function ru(i,e=4,a=1){let t=yn(i.weekYear),n=pt(i.weekNumber,1,Fi(i.weekYear,e,a)),o=pt(i.weekday,1,7);return t?n?o?!1:xt("weekday",i.weekday):xt("week",i.weekNumber):xt("weekYear",i.weekYear)}function su(i){let e=yn(i.year),a=pt(i.ordinal,1,bi(i.year));return e?a?!1:xt("ordinal",i.ordinal):xt("year",i.year)}function ms(i){let e=yn(i.year),a=pt(i.month,1,12),t=pt(i.day,1,ua(i.year,i.month));return e?a?t?!1:xt("day",i.day):xt("month",i.month):xt("year",i.year)}function ps(i){let{hour:e,minute:a,second:t,millisecond:n}=i,o=pt(e,0,23)||e===24&&a===0&&t===0&&n===0,r=pt(a,0,59),s=pt(t,0,59),l=pt(n,0,999);return o?r?s?l?!1:xt("millisecond",n):xt("second",t):xt("minute",a):xt("hour",e)}function W(i){return typeof i>"u"}function It(i){return typeof i=="number"}function yn(i){return typeof i=="number"&&i%1===0}function Vc(i){return typeof i=="string"}function cu(i){return Object.prototype.toString.call(i)==="[object Date]"}function Co(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function qo(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function uu(i){return Array.isArray(i)?i:[i]}function gs(i,e,a){if(i.length!==0)return i.reduce((t,n)=>{let o=[e(n),n];return t&&a(t[0],o[0])===t[0]?t:o},null)[1]}function du(i,e){return e.reduce((a,t)=>(a[t]=i[t],a),{})}function vi(i,e){return Object.prototype.hasOwnProperty.call(i,e)}function hn(i){if(i==null)return null;if(typeof i!="object")throw new Ae("Week settings must be an object");if(!pt(i.firstDay,1,7)||!pt(i.minimalDays,1,7)||!Array.isArray(i.weekend)||i.weekend.some(e=>!pt(e,1,7)))throw new Ae("Invalid week settings");return{firstDay:i.firstDay,minimalDays:i.minimalDays,weekend:Array.from(i.weekend)}}function pt(i,e,a){return yn(i)&&i>=e&&i<=a}function xg(i,e){return i-e*Math.floor(i/e)}function ke(i,e=2){let a=i<0,t;return a?t="-"+(""+-i).padStart(e,"0"):t=(""+i).padStart(e,"0"),t}function ai(i){if(!(W(i)||i===null||i===""))return parseInt(i,10)}function yi(i){if(!(W(i)||i===null||i===""))return parseFloat(i)}function xn(i){if(!(W(i)||i===null||i==="")){let e=parseFloat("0."+i)*1e3;return Math.floor(e)}}function la(i,e,a=!1){let t=10**e;return(a?Math.trunc:Math.round)(i*t)/t}function Ri(i){return i%4===0&&(i%100!==0||i%400===0)}function bi(i){return Ri(i)?366:365}function ua(i,e){let a=xg(e-1,12)+1,t=i+(e-a)/12;return a===2?Ri(t)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][a-1]}function sa(i){let e=Date.UTC(i.year,i.month-1,i.day,i.hour,i.minute,i.second,i.millisecond);return i.year<100&&i.year>=0&&(e=new Date(e),e.setUTCFullYear(i.year,i.month-1,i.day)),+e}function lu(i,e,a){return-To(ko(i,1,e),a)+e-1}function Fi(i,e=4,a=1){let t=lu(i,e,a),n=lu(i+1,e,a);return(bi(i)-t+n)/7}function wn(i){return i>99?i:i>ue.twoDigitCutoffYear?1900+i:2e3+i}function _o(i,e,a,t=null){let n=new Date(i),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};t&&(o.timeZone=t);let r=M({timeZoneName:e},o),s=new Intl.DateTimeFormat(a,r).formatToParts(n).find(l=>l.type.toLowerCase()==="timezonename");return s?s.value:null}function Pi(i,e){let a=parseInt(i,10);Number.isNaN(a)&&(a=0);let t=parseInt(e,10)||0,n=a<0||Object.is(a,-0)?-t:t;return a*60+n}function fs(i){let e=Number(i);if(typeof i=="boolean"||i===""||Number.isNaN(e))throw new Ae(`Invalid unit value ${i}`);return e}function da(i,e){let a={};for(let t in i)if(vi(i,t)){let n=i[t];if(n==null)continue;a[e(t)]=fs(n)}return a}function hi(i,e){let a=Math.trunc(Math.abs(i/60)),t=Math.trunc(Math.abs(i%60)),n=i>=0?"+":"-";switch(e){case"short":return`${n}${ke(a,2)}:${ke(t,2)}`;case"narrow":return`${n}${a}${t>0?`:${t}`:""}`;case"techie":return`${n}${ke(a,2)}${ke(t,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function _n(i){return du(i,["hour","minute","second","millisecond"])}var wg=["January","February","March","April","May","June","July","August","September","October","November","December"],hs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Sg=["J","F","M","A","M","J","J","A","S","O","N","D"];function is(i){switch(i){case"narrow":return[...Sg];case"short":return[...hs];case"long":return[...wg];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var bs=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],vs=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Cg=["M","T","W","T","F","S","S"];function as(i){switch(i){case"narrow":return[...Cg];case"short":return[...vs];case"long":return[...bs];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ns=["AM","PM"],qg=["Before Christ","Anno Domini"],kg=["BC","AD"],Tg=["B","A"];function os(i){switch(i){case"narrow":return[...Tg];case"short":return[...kg];case"long":return[...qg];default:return null}}function mu(i){return ns[i.hour<12?0:1]}function pu(i,e){return as(e)[i.weekday-1]}function gu(i,e){return is(e)[i.month-1]}function fu(i,e){return os(e)[i.year<0?0:1]}function Bc(i,e,a="always",t=!1){let n={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(i)===-1;if(a==="auto"&&o){let g=i==="days";switch(e){case 1:return g?"tomorrow":`next ${n[i][0]}`;case-1:return g?"yesterday":`last ${n[i][0]}`;case 0:return g?"today":`this ${n[i][0]}`;default:}}let r=Object.is(e,-0)||e<0,s=Math.abs(e),l=s===1,c=n[i],d=t?l?c[1]:c[2]||c[1]:l?n[i][0]:i;return r?`${s} ${d} ago`:`in ${s} ${d}`}function hu(i,e){let a="";for(let t of i)t.literal?a+=t.val:a+=e(t.val);return a}var Dg={D:fi,DD:Za,DDD:Ya,DDDD:Ka,t:Qa,tt:Xa,ttt:en,tttt:tn,T:an,TT:nn,TTT:on,TTTT:rn,f:sn,ff:cn,fff:dn,ffff:pn,F:ln,FF:un,FFF:mn,FFFF:gn},We=class i{static create(e,a={}){return new i(e,a)}static parseFormat(e){let a=null,t="",n=!1,o=[];for(let r=0;r0&&o.push({literal:n||/^\s+$/.test(t),val:t}),a=null,t="",n=!n):n||s===a?t+=s:(t.length>0&&o.push({literal:/^\s+$/.test(t),val:t}),t=s,a=s)}return t.length>0&&o.push({literal:n||/^\s+$/.test(t),val:t}),o}static macroTokenToFormatOpts(e){return Dg[e]}constructor(e,a){this.opts=a,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,a){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,M(M({},this.opts),a)).format()}dtFormatter(e,a={}){return this.loc.dtFormatter(e,M(M({},this.opts),a))}formatDateTime(e,a){return this.dtFormatter(e,a).format()}formatDateTimeParts(e,a){return this.dtFormatter(e,a).formatToParts()}formatInterval(e,a){return this.dtFormatter(e.start,a).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,a){return this.dtFormatter(e,a).resolvedOptions()}num(e,a=0){if(this.opts.forceSimple)return ke(e,a);let t=M({},this.opts);return a>0&&(t.padTo=a),this.loc.numberFormatter(t).format(e)}formatDateTimeFromString(e,a){let t=this.loc.listingMode()==="en",n=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(b,v)=>this.loc.extract(e,b,v),r=b=>e.isOffsetFixed&&e.offset===0&&b.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,b.format):"",s=()=>t?mu(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(b,v)=>t?gu(e,b):o(v?{month:b}:{month:b,day:"numeric"},"month"),c=(b,v)=>t?pu(e,b):o(v?{weekday:b}:{weekday:b,month:"long",day:"numeric"},"weekday"),d=b=>{let v=i.macroTokenToFormatOpts(b);return v?this.formatWithSystemDefault(e,v):b},g=b=>t?fu(e,b):o({era:b},"era"),x=b=>{switch(b){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(e.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(e.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(e.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(b)}};return hu(i.parseFormat(a),x)}formatDurationFromString(e,a){let t=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=l=>c=>{let d=t(c);return d?this.num(l.get(d),c.length):c},o=i.parseFormat(a),r=o.reduce((l,{literal:c,val:d})=>c?l:l.concat(d),[]),s=e.shiftTo(...r.map(t).filter(l=>l));return hu(o,n(s))}};var vu=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function pa(...i){let e=i.reduce((a,t)=>a+t.source,"");return RegExp(`^${e}$`)}function ga(...i){return e=>i.reduce(([a,t,n],o)=>{let[r,s,l]=o(e,n);return[M(M({},a),r),s||t,l]},[{},null,1]).slice(0,2)}function fa(i,...e){if(i==null)return[null,null];for(let[a,t]of e){let n=a.exec(i);if(n)return t(n)}return[null,null]}function yu(...i){return(e,a)=>{let t={},n;for(n=0;nb!==void 0&&(v||b&&d)?-b:b;return[{years:x(yi(a)),months:x(yi(t)),weeks:x(yi(n)),days:x(yi(o)),hours:x(yi(r)),minutes:x(yi(s)),seconds:x(yi(l),l==="-0"),milliseconds:x(xn(c),g)}]}var zg={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xs(i,e,a,t,n,o,r){let s={year:e.length===2?wn(ai(e)):ai(e),month:hs.indexOf(a)+1,day:ai(t),hour:ai(n),minute:ai(o)};return r&&(s.second=ai(r)),i&&(s.weekday=i.length>3?bs.indexOf(i)+1:vs.indexOf(i)+1),s}var Jg=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Bg(i){let[,e,a,t,n,o,r,s,l,c,d,g]=i,x=xs(e,n,t,a,o,r,s),b;return l?b=zg[l]:c?b=0:b=Pi(d,g),[x,new Be(b)]}function Vg(i){return i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Wg=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ug=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Gg=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function bu(i){let[,e,a,t,n,o,r,s]=i;return[xs(e,n,t,a,o,r,s),Be.utcInstance]}function $g(i){let[,e,a,t,n,o,r,s]=i;return[xs(e,s,a,t,n,o,r),Be.utcInstance]}var Zg=pa(Ig,_s),Yg=pa(Mg,_s),Kg=pa(Eg,_s),Qg=pa(xu),Su=ga(Fg,ha,Sn,Cn),Xg=ga(Og,ha,Sn,Cn),ef=ga(Ng,ha,Sn,Cn),tf=ga(ha,Sn,Cn);function Cu(i){return fa(i,[Zg,Su],[Yg,Xg],[Kg,ef],[Qg,tf])}function qu(i){return fa(Vg(i),[Jg,Bg])}function ku(i){return fa(i,[Wg,bu],[Ug,bu],[Gg,$g])}function Tu(i){return fa(i,[Hg,jg])}var af=ga(ha);function Du(i){return fa(i,[Rg,af])}var nf=pa(Lg,Pg),of=pa(wu),rf=ga(ha,Sn,Cn);function Au(i){return fa(i,[nf,Su],[of,rf])}var Iu="Invalid Duration",Eu={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},sf=M({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},Eu),wt=146097/400,ba=146097/4800,lf=M({years:{quarters:4,months:12,weeks:wt/7,days:wt,hours:wt*24,minutes:wt*24*60,seconds:wt*24*60*60,milliseconds:wt*24*60*60*1e3},quarters:{months:3,weeks:wt/28,days:wt/4,hours:wt*24/4,minutes:wt*24*60/4,seconds:wt*24*60*60/4,milliseconds:wt*24*60*60*1e3/4},months:{weeks:ba/7,days:ba,hours:ba*24,minutes:ba*24*60,seconds:ba*24*60*60,milliseconds:ba*24*60*60*1e3}},Eu),Hi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],cf=Hi.slice(0).reverse();function _i(i,e,a=!1){let t={values:a?e.values:M(M({},i.values),e.values||{}),loc:i.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||i.conversionAccuracy,matrix:e.matrix||i.matrix};return new Ie(t)}function Ou(i,e){let a=e.milliseconds??0;for(let t of cf.slice(1))e[t]&&(a+=e[t]*i[t].milliseconds);return a}function Mu(i,e){let a=Ou(i,e)<0?-1:1;Hi.reduceRight((t,n)=>{if(W(e[n]))return t;if(t){let o=e[t]*a,r=i[n][t],s=Math.floor(o/r);e[n]+=s*a,e[t]-=s*r*a}return n},null),Hi.reduce((t,n)=>{if(W(e[n]))return t;if(t){let o=e[t]%1;e[t]-=o,e[n]+=o*i[t][n]}return n},null)}function uf(i){let e={};for(let[a,t]of Object.entries(i))t!==0&&(e[a]=t);return e}var Ie=class i{constructor(e){let a=e.conversionAccuracy==="longterm"||!1,t=a?lf:sf;e.matrix&&(t=e.matrix),this.values=e.values,this.loc=e.loc||de.create(),this.conversionAccuracy=a?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t,this.isLuxonDuration=!0}static fromMillis(e,a){return i.fromObject({milliseconds:e},a)}static fromObject(e,a={}){if(e==null||typeof e!="object")throw new Ae(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new i({values:da(e,i.normalizeUnit),loc:de.fromObject(a),conversionAccuracy:a.conversionAccuracy,matrix:a.matrix})}static fromDurationLike(e){if(It(e))return i.fromMillis(e);if(i.isDuration(e))return e;if(typeof e=="object")return i.fromObject(e);throw new Ae(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,a){let[t]=Tu(e);return t?i.fromObject(t,a):i.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,a){let[t]=Du(e);return t?i.fromObject(t,a):i.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,a=null){if(!e)throw new Ae("need to specify a reason the Duration is invalid");let t=e instanceof Ve?e:new Ve(e,a);if(ue.throwOnInvalid)throw new vo(t);return new i({invalid:t})}static normalizeUnit(e){let a={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!a)throw new ra(e);return a}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,a={}){let t=ne(M({},a),{floor:a.round!==!1&&a.floor!==!1});return this.isValid?We.create(this.loc,t).formatDurationFromString(this,e):Iu}toHuman(e={}){if(!this.isValid)return Iu;let a=Hi.map(t=>{let n=this.values[t];return W(n)?null:this.loc.numberFormatter(ne(M({style:"unit",unitDisplay:"long"},e),{unit:t.slice(0,-1)})).format(n)}).filter(t=>t);return this.loc.listFormatter(M({type:"conjunction",style:e.listStyle||"narrow"},e)).format(a)}toObject(){return this.isValid?M({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=la(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let a=this.toMillis();return a<0||a>=864e5?null:(e=ne(M({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e),{includeOffset:!1}),L.fromMillis(a,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?Ou(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let a=i.fromDurationLike(e),t={};for(let n of Hi)(vi(a.values,n)||vi(this.values,n))&&(t[n]=a.get(n)+this.get(n));return _i(this,{values:t},!0)}minus(e){if(!this.isValid)return this;let a=i.fromDurationLike(e);return this.plus(a.negate())}mapUnits(e){if(!this.isValid)return this;let a={};for(let t of Object.keys(this.values))a[t]=fs(e(this.values[t],t));return _i(this,{values:a},!0)}get(e){return this[i.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let a=M(M({},this.values),da(e,i.normalizeUnit));return _i(this,{values:a})}reconfigure({locale:e,numberingSystem:a,conversionAccuracy:t,matrix:n}={}){let r={loc:this.loc.clone({locale:e,numberingSystem:a}),matrix:n,conversionAccuracy:t};return _i(this,r)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return Mu(this.matrix,e),_i(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=uf(this.normalize().shiftToAll().toObject());return _i(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(r=>i.normalizeUnit(r));let a={},t={},n=this.toObject(),o;for(let r of Hi)if(e.indexOf(r)>=0){o=r;let s=0;for(let c in t)s+=this.matrix[c][r]*t[c],t[c]=0;It(n[r])&&(s+=n[r]);let l=Math.trunc(s);a[r]=l,t[r]=(s*1e3-l*1e3)/1e3}else It(n[r])&&(t[r]=n[r]);for(let r in t)t[r]!==0&&(a[o]+=r===o?t[r]:t[r]/this.matrix[o][r]);return Mu(this.matrix,a),_i(this,{values:a},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let a of Object.keys(this.values))e[a]=this.values[a]===0?0:-this.values[a];return _i(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function a(t,n){return t===void 0||t===0?n===void 0||n===0:t===n}for(let t of Hi)if(!a(this.values[t],e.values[t]))return!1;return!0}};var va="Invalid Interval";function df(i,e){return!i||!i.isValid?xi.invalid("missing or invalid start"):!e||!e.isValid?xi.invalid("missing or invalid end"):ee:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:a}={}){return this.isValid?i.fromDateTimes(e||this.s,a||this.e):this}splitAt(...e){if(!this.isValid)return[];let a=e.map(ya).filter(r=>this.contains(r)).sort((r,s)=>r.toMillis()-s.toMillis()),t=[],{s:n}=this,o=0;for(;n+this.e?this.e:r;t.push(i.fromDateTimes(n,s)),n=s,o+=1}return t}splitBy(e){let a=Ie.fromDurationLike(e);if(!this.isValid||!a.isValid||a.as("milliseconds")===0)return[];let{s:t}=this,n=1,o,r=[];for(;tl*n));o=+s>+this.e?this.e:s,r.push(i.fromDateTimes(t,o)),t=o,n+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let a=this.s>e.s?this.s:e.s,t=this.e=t?null:i.fromDateTimes(a,t)}union(e){if(!this.isValid)return this;let a=this.se.e?this.e:e.e;return i.fromDateTimes(a,t)}static merge(e){let[a,t]=e.sort((n,o)=>n.s-o.s).reduce(([n,o],r)=>o?o.overlaps(r)||o.abutsStart(r)?[n,o.union(r)]:[n.concat([o]),r]:[n,r],[[],null]);return t&&a.push(t),a}static xor(e){let a=null,t=0,n=[],o=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),r=Array.prototype.concat(...o),s=r.sort((l,c)=>l.time-c.time);for(let l of s)t+=l.type==="s"?1:-1,t===1?a=l.time:(a&&+a!=+l.time&&n.push(i.fromDateTimes(a,l.time)),a=null);return i.merge(n)}difference(...e){return i.xor([this].concat(e)).map(a=>this.intersection(a)).filter(a=>a&&!a.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:va}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=fi,a={}){return this.isValid?We.create(this.s.loc.clone(a),e).formatInterval(this):va}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:va}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:va}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:va}toFormat(e,{separator:a=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${a}${this.e.toFormat(e)}`:va}toDuration(e,a){return this.isValid?this.e.diff(this.s,e,a):Ie.invalid(this.invalidReason)}mapEndpoints(e){return i.fromDateTimes(e(this.s),e(this.e))}};var Mt=class{static hasDST(e=ue.defaultZone){let a=L.now().setZone(e).set({month:12});return!e.isUniversal&&a.offset!==a.set({month:6}).offset}static isValidIANAZone(e){return at.isValidZone(e)}static normalizeZone(e){return At(e,ue.defaultZone)}static getStartOfWeek({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:a=null}={}){return(a||de.create(e)).getWeekendDays().slice()}static months(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||de.create(a,t,o)).months(e)}static monthsFormat(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||de.create(a,t,o)).months(e,!0)}static weekdays(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null}={}){return(n||de.create(a,t,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:a=null,numberingSystem:t=null,locObj:n=null}={}){return(n||de.create(a,t,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return de.create(e).meridiems()}static eras(e="short",{locale:a=null}={}){return de.create(a,null,"gregory").eras(e)}static features(){return{relative:Co(),localeWeek:qo()}}};function Nu(i,e){let a=n=>n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),t=a(e)-a(i);return Math.floor(Ie.fromMillis(t).as("days"))}function mf(i,e,a){let t=[["years",(l,c)=>c.year-l.year],["quarters",(l,c)=>c.quarter-l.quarter+(c.year-l.year)*4],["months",(l,c)=>c.month-l.month+(c.year-l.year)*12],["weeks",(l,c)=>{let d=Nu(l,c);return(d-d%7)/7}],["days",Nu]],n={},o=i,r,s;for(let[l,c]of t)a.indexOf(l)>=0&&(r=l,n[l]=c(i,e),s=o.plus(n),s>e?(n[l]--,i=o.plus(n),i>e&&(s=i,n[l]--,i=o.plus(n))):i=s);return[i,n,s,r]}function Lu(i,e,a,t){let[n,o,r,s]=mf(i,e,a),l=e-n,c=a.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);c.length===0&&(r0?Ie.fromMillis(l,t).shiftTo(...c).plus(d):d}var pf="missing Intl.DateTimeFormat.formatToParts support";function me(i,e=a=>a){return{regex:i,deser:([a])=>e(Uc(a))}}var gf="\xA0",Ru=`[ ${gf}]`,Hu=new RegExp(Ru,"g");function ff(i){return i.replace(/\./g,"\\.?").replace(Hu,Ru)}function Pu(i){return i.replace(/\./g,"").replace(Hu," ").toLowerCase()}function Et(i,e){return i===null?null:{regex:RegExp(i.map(ff).join("|")),deser:([a])=>i.findIndex(t=>Pu(a)===Pu(t))+e}}function Fu(i,e){return{regex:i,deser:([,a,t])=>Pi(a,t),groups:e}}function Ao(i){return{regex:i,deser:([e])=>e}}function hf(i){return i.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function bf(i,e){let a=_t(e),t=_t(e,"{2}"),n=_t(e,"{3}"),o=_t(e,"{4}"),r=_t(e,"{6}"),s=_t(e,"{1,2}"),l=_t(e,"{1,3}"),c=_t(e,"{1,6}"),d=_t(e,"{1,9}"),g=_t(e,"{2,4}"),x=_t(e,"{4,6}"),b=E=>({regex:RegExp(hf(E.val)),deser:([w])=>w,literal:!0}),T=(E=>{if(i.literal)return b(E);switch(E.val){case"G":return Et(e.eras("short"),0);case"GG":return Et(e.eras("long"),0);case"y":return me(c);case"yy":return me(g,wn);case"yyyy":return me(o);case"yyyyy":return me(x);case"yyyyyy":return me(r);case"M":return me(s);case"MM":return me(t);case"MMM":return Et(e.months("short",!0),1);case"MMMM":return Et(e.months("long",!0),1);case"L":return me(s);case"LL":return me(t);case"LLL":return Et(e.months("short",!1),1);case"LLLL":return Et(e.months("long",!1),1);case"d":return me(s);case"dd":return me(t);case"o":return me(l);case"ooo":return me(n);case"HH":return me(t);case"H":return me(s);case"hh":return me(t);case"h":return me(s);case"mm":return me(t);case"m":return me(s);case"q":return me(s);case"qq":return me(t);case"s":return me(s);case"ss":return me(t);case"S":return me(l);case"SSS":return me(n);case"u":return Ao(d);case"uu":return Ao(s);case"uuu":return me(a);case"a":return Et(e.meridiems(),0);case"kkkk":return me(o);case"kk":return me(g,wn);case"W":return me(s);case"WW":return me(t);case"E":case"c":return me(a);case"EEE":return Et(e.weekdays("short",!1),1);case"EEEE":return Et(e.weekdays("long",!1),1);case"ccc":return Et(e.weekdays("short",!0),1);case"cccc":return Et(e.weekdays("long",!0),1);case"Z":case"ZZ":return Fu(new RegExp(`([+-]${s.source})(?::(${t.source}))?`),2);case"ZZZ":return Fu(new RegExp(`([+-]${s.source})(${t.source})?`),2);case"z":return Ao(/[a-z_+-/]{1,256}?/i);case" ":return Ao(/[^\S\n\r]/);default:return b(E)}})(i)||{invalidReason:pf};return T.token=i,T}var vf={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function yf(i,e,a){let{type:t,value:n}=i;if(t==="literal"){let l=/^\s+$/.test(n);return{literal:!l,val:l?" ":n}}let o=e[t],r=t;t==="hour"&&(e.hour12!=null?r=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?r="hour12":r="hour24":r=a.hour12?"hour12":"hour24");let s=vf[r];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function _f(i){return[`^${i.map(a=>a.regex).reduce((a,t)=>`${a}(${t.source})`,"")}$`,i]}function xf(i,e,a){let t=i.match(e);if(t){let n={},o=1;for(let r in a)if(vi(a,r)){let s=a[r],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(n[s.token.val[0]]=s.deser(t.slice(o,o+l))),o+=l}return[t,n]}else return[t,{}]}function wf(i){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},a=null,t;return W(i.z)||(a=at.create(i.z)),W(i.Z)||(a||(a=new Be(i.Z)),t=i.Z),W(i.q)||(i.M=(i.q-1)*3+1),W(i.h)||(i.h<12&&i.a===1?i.h+=12:i.h===12&&i.a===0&&(i.h=0)),i.G===0&&i.y&&(i.y=-i.y),W(i.u)||(i.S=xn(i.u)),[Object.keys(i).reduce((o,r)=>{let s=e(r);return s&&(o[s]=i[r]),o},{}),a,t]}var ws=null;function Sf(){return ws||(ws=L.fromMillis(1555555555555)),ws}function Cf(i,e){if(i.literal)return i;let a=We.macroTokenToFormatOpts(i.val),t=qs(a,e);return t==null||t.includes(void 0)?i:t}function Ss(i,e){return Array.prototype.concat(...i.map(a=>Cf(a,e)))}var qn=class{constructor(e,a){if(this.locale=e,this.format=a,this.tokens=Ss(We.parseFormat(a),e),this.units=this.tokens.map(t=>bf(t,e)),this.disqualifyingUnit=this.units.find(t=>t.invalidReason),!this.disqualifyingUnit){let[t,n]=_f(this.units);this.regex=RegExp(t,"i"),this.handlers=n}}explainFromTokens(e){if(this.isValid){let[a,t]=xf(e,this.regex,this.handlers),[n,o,r]=t?wf(t):[null,null,void 0];if(vi(t,"a")&&vi(t,"H"))throw new kt("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:a,matches:t,result:n,zone:o,specificOffset:r}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function Cs(i,e,a){return new qn(i,a).explainFromTokens(e)}function ju(i,e,a){let{result:t,zone:n,specificOffset:o,invalidReason:r}=Cs(i,e,a);return[t,n,o,r]}function qs(i,e){if(!i)return null;let t=We.create(e,i).dtFormatter(Sf()),n=t.formatToParts(),o=t.resolvedOptions();return n.map(r=>yf(r,i,o))}var ks="Invalid DateTime",zu=864e13;function kn(i){return new Ve("unsupported zone",`the zone "${i.name}" is not supported`)}function Ts(i){return i.weekData===null&&(i.weekData=vn(i.c)),i.weekData}function Ds(i){return i.localWeekData===null&&(i.localWeekData=vn(i.c,i.loc.getMinDaysInFirstWeek(),i.loc.getStartOfWeek())),i.localWeekData}function ji(i,e){let a={ts:i.ts,zone:i.zone,c:i.c,o:i.o,loc:i.loc,invalid:i.invalid};return new L(ne(M(M({},a),e),{old:a}))}function $u(i,e,a){let t=i-e*60*1e3,n=a.offset(t);if(e===n)return[t,e];t-=(n-e)*60*1e3;let o=a.offset(t);return n===o?[t,n]:[i-Math.min(n,o)*60*1e3,Math.max(n,o)]}function Io(i,e){i+=e*60*1e3;let a=new Date(i);return{year:a.getUTCFullYear(),month:a.getUTCMonth()+1,day:a.getUTCDate(),hour:a.getUTCHours(),minute:a.getUTCMinutes(),second:a.getUTCSeconds(),millisecond:a.getUTCMilliseconds()}}function Eo(i,e,a){return $u(sa(i),e,a)}function Ju(i,e){let a=i.o,t=i.c.year+Math.trunc(e.years),n=i.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o=ne(M({},i.c),{year:t,month:n,day:Math.min(i.c.day,ua(t,n))+Math.trunc(e.days)+Math.trunc(e.weeks)*7}),r=Ie.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=sa(o),[l,c]=$u(s,a,i.zone);return r!==0&&(l+=r,c=i.zone.offset(l)),{ts:l,o:c}}function _a(i,e,a,t,n,o){let{setZone:r,zone:s}=a;if(i&&Object.keys(i).length!==0||e){let l=e||s,c=L.fromObject(i,ne(M({},a),{zone:l,specificOffset:o}));return r?c:c.setZone(s)}else return L.invalid(new Ve("unparsable",`the input "${n}" can't be parsed as ${t}`))}function Mo(i,e,a=!0){return i.isValid?We.create(de.create("en-US"),{allowZ:a,forceSimple:!0}).formatDateTimeFromString(i,e):null}function As(i,e){let a=i.c.year>9999||i.c.year<0,t="";return a&&i.c.year>=0&&(t+="+"),t+=ke(i.c.year,a?6:4),e?(t+="-",t+=ke(i.c.month),t+="-",t+=ke(i.c.day)):(t+=ke(i.c.month),t+=ke(i.c.day)),t}function Bu(i,e,a,t,n,o){let r=ke(i.c.hour);return e?(r+=":",r+=ke(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!a)&&(r+=":")):r+=ke(i.c.minute),(i.c.millisecond!==0||i.c.second!==0||!a)&&(r+=ke(i.c.second),(i.c.millisecond!==0||!t)&&(r+=".",r+=ke(i.c.millisecond,3))),n&&(i.isOffsetFixed&&i.offset===0&&!o?r+="Z":i.o<0?(r+="-",r+=ke(Math.trunc(-i.o/60)),r+=":",r+=ke(Math.trunc(-i.o%60))):(r+="+",r+=ke(Math.trunc(i.o/60)),r+=":",r+=ke(Math.trunc(i.o%60)))),o&&(r+="["+i.zone.ianaName+"]"),r}var Zu={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},kf={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Yu=["year","month","day","hour","minute","second","millisecond"],Tf=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Df=["year","ordinal","hour","minute","second","millisecond"];function Af(i){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[i.toLowerCase()];if(!e)throw new ra(i);return e}function Vu(i){switch(i.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Af(i)}}function If(i){return No[i]||(Oo===void 0&&(Oo=ue.now()),No[i]=i.offset(Oo)),No[i]}function Wu(i,e){let a=At(e.zone,ue.defaultZone);if(!a.isValid)return L.invalid(kn(a));let t=de.fromObject(e),n,o;if(W(i.year))n=ue.now();else{for(let l of Yu)W(i[l])&&(i[l]=Zu[l]);let r=ms(i)||ps(i);if(r)return L.invalid(r);let s=If(a);[n,o]=Eo(i,s,a)}return new L({ts:n,zone:a,loc:t,o})}function Uu(i,e,a){let t=W(a.round)?!0:a.round,n=(r,s)=>(r=la(r,t||a.calendary?0:2,!0),e.loc.clone(a).relFormatter(a).format(r,s)),o=r=>a.calendary?e.hasSame(i,r)?0:e.startOf(r).diff(i.startOf(r),r).get(r):e.diff(i,r).get(r);if(a.unit)return n(o(a.unit),a.unit);for(let r of a.units){let s=o(r);if(Math.abs(s)>=1)return n(s,r)}return n(i>e?-0:0,a.units[a.units.length-1])}function Gu(i){let e={},a;return i.length>0&&typeof i[i.length-1]=="object"?(e=i[i.length-1],a=Array.from(i).slice(0,i.length-1)):a=Array.from(i),[e,a]}var Oo,No={},L=class i{constructor(e){let a=e.zone||ue.defaultZone,t=e.invalid||(Number.isNaN(e.ts)?new Ve("invalid input"):null)||(a.isValid?null:kn(a));this.ts=W(e.ts)?ue.now():e.ts;let n=null,o=null;if(!t)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(a))[n,o]=[e.old.c,e.old.o];else{let s=It(e.o)&&!e.old?e.o:a.offset(this.ts);n=Io(this.ts,s),t=Number.isNaN(n.year)?new Ve("invalid input"):null,n=t?null:n,o=t?null:s}this._zone=a,this.loc=e.loc||de.create(),this.invalid=t,this.weekData=null,this.localWeekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new i({})}static local(){let[e,a]=Gu(arguments),[t,n,o,r,s,l,c]=a;return Wu({year:t,month:n,day:o,hour:r,minute:s,second:l,millisecond:c},e)}static utc(){let[e,a]=Gu(arguments),[t,n,o,r,s,l,c]=a;return e.zone=Be.utcInstance,Wu({year:t,month:n,day:o,hour:r,minute:s,second:l,millisecond:c},e)}static fromJSDate(e,a={}){let t=cu(e)?e.valueOf():NaN;if(Number.isNaN(t))return i.invalid("invalid input");let n=At(a.zone,ue.defaultZone);return n.isValid?new i({ts:t,zone:n,loc:de.fromObject(a)}):i.invalid(kn(n))}static fromMillis(e,a={}){if(It(e))return e<-zu||e>zu?i.invalid("Timestamp out of range"):new i({ts:e,zone:At(a.zone,ue.defaultZone),loc:de.fromObject(a)});throw new Ae(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,a={}){if(It(e))return new i({ts:e*1e3,zone:At(a.zone,ue.defaultZone),loc:de.fromObject(a)});throw new Ae("fromSeconds requires a numerical input")}static fromObject(e,a={}){e=e||{};let t=At(a.zone,ue.defaultZone);if(!t.isValid)return i.invalid(kn(t));let n=de.fromObject(a),o=da(e,Vu),{minDaysInFirstWeek:r,startOfWeek:s}=ds(o,n),l=ue.now(),c=W(a.specificOffset)?t.offset(l):a.specificOffset,d=!W(o.ordinal),g=!W(o.year),x=!W(o.month)||!W(o.day),b=g||x,v=o.weekYear||o.weekNumber;if((b||d)&&v)throw new kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(x&&d)throw new kt("Can't mix ordinal dates with month/day");let T=v||o.weekday&&!b,E,w,k=Io(l,c);T?(E=Tf,w=qf,k=vn(k,r,s)):d?(E=Df,w=kf,k=Do(k)):(E=Yu,w=Zu);let R=!1;for(let ze of E){let Lt=o[ze];W(Lt)?R?o[ze]=w[ze]:o[ze]=k[ze]:R=!0}let J=T?ru(o,r,s):d?su(o):ms(o),pe=J||ps(o);if(pe)return i.invalid(pe);let ee=T?cs(o,r,s):d?us(o):o,[ve,fe]=Eo(ee,c,t),Se=new i({ts:ve,zone:t,o:fe,loc:n});return o.weekday&&b&&e.weekday!==Se.weekday?i.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Se.toISO()}`):Se.isValid?Se:i.invalid(Se.invalid)}static fromISO(e,a={}){let[t,n]=Cu(e);return _a(t,n,a,"ISO 8601",e)}static fromRFC2822(e,a={}){let[t,n]=qu(e);return _a(t,n,a,"RFC 2822",e)}static fromHTTP(e,a={}){let[t,n]=ku(e);return _a(t,n,a,"HTTP",a)}static fromFormat(e,a,t={}){if(W(e)||W(a))throw new Ae("fromFormat requires an input string and a format");let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,l,c,d]=ju(r,e,a);return d?i.invalid(d):_a(s,l,t,`format ${a}`,e,c)}static fromString(e,a,t={}){return i.fromFormat(e,a,t)}static fromSQL(e,a={}){let[t,n]=Au(e);return _a(t,n,a,"SQL",e)}static invalid(e,a=null){if(!e)throw new Ae("need to specify a reason the DateTime is invalid");let t=e instanceof Ve?e:new Ve(e,a);if(ue.throwOnInvalid)throw new ho(t);return new i({invalid:t})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,a={}){let t=qs(e,de.fromObject(a));return t?t.map(n=>n?n.val:null).join(""):null}static expandFormat(e,a={}){return Ss(We.parseFormat(e),de.fromObject(a)).map(n=>n.val).join("")}static resetCache(){Oo=void 0,No={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ts(this).weekYear:NaN}get weekNumber(){return this.isValid?Ts(this).weekNumber:NaN}get weekday(){return this.isValid?Ts(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ds(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ds(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ds(this).weekYear:NaN}get ordinal(){return this.isValid?Do(this.c).ordinal:NaN}get monthShort(){return this.isValid?Mt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Mt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Mt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Mt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,a=6e4,t=sa(this.c),n=this.zone.offset(t-e),o=this.zone.offset(t+e),r=this.zone.offset(t-n*a),s=this.zone.offset(t-o*a);if(r===s)return[this];let l=t-r*a,c=t-s*a,d=Io(l,r),g=Io(c,s);return d.hour===g.hour&&d.minute===g.minute&&d.second===g.second&&d.millisecond===g.millisecond?[ji(this,{ts:l}),ji(this,{ts:c})]:[this]}get isInLeapYear(){return Ri(this.year)}get daysInMonth(){return ua(this.year,this.month)}get daysInYear(){return this.isValid?bi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Fi(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Fi(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:a,numberingSystem:t,calendar:n}=We.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:a,numberingSystem:t,outputCalendar:n}}toUTC(e=0,a={}){return this.setZone(Be.instance(e),a)}toLocal(){return this.setZone(ue.defaultZone)}setZone(e,{keepLocalTime:a=!1,keepCalendarTime:t=!1}={}){if(e=At(e,ue.defaultZone),e.equals(this.zone))return this;if(e.isValid){let n=this.ts;if(a||t){let o=e.offset(this.ts),r=this.toObject();[n]=Eo(r,o,e)}return ji(this,{ts:n,zone:e})}else return i.invalid(kn(e))}reconfigure({locale:e,numberingSystem:a,outputCalendar:t}={}){let n=this.loc.clone({locale:e,numberingSystem:a,outputCalendar:t});return ji(this,{loc:n})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let a=da(e,Vu),{minDaysInFirstWeek:t,startOfWeek:n}=ds(a,this.loc),o=!W(a.weekYear)||!W(a.weekNumber)||!W(a.weekday),r=!W(a.ordinal),s=!W(a.year),l=!W(a.month)||!W(a.day),c=s||l,d=a.weekYear||a.weekNumber;if((c||r)&&d)throw new kt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&r)throw new kt("Can't mix ordinal dates with month/day");let g;o?g=cs(M(M({},vn(this.c,t,n)),a),t,n):W(a.ordinal)?(g=M(M({},this.toObject()),a),W(a.day)&&(g.day=Math.min(ua(g.year,g.month),g.day))):g=us(M(M({},Do(this.c)),a));let[x,b]=Eo(g,this.o,this.zone);return ji(this,{ts:x,o:b})}plus(e){if(!this.isValid)return this;let a=Ie.fromDurationLike(e);return ji(this,Ju(this,a))}minus(e){if(!this.isValid)return this;let a=Ie.fromDurationLike(e).negate();return ji(this,Ju(this,a))}startOf(e,{useLocaleWeeks:a=!1}={}){if(!this.isValid)return this;let t={},n=Ie.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0;break;case"milliseconds":break}if(n==="weeks")if(a){let o=this.loc.getStartOfWeek(),{weekday:r}=this;rthis.valueOf(),s=r?this:e,l=r?e:this,c=Lu(s,l,o,n);return r?c.negate():c}diffNow(e="milliseconds",a={}){return this.diff(i.now(),e,a)}until(e){return this.isValid?xi.fromDateTimes(this,e):this}hasSame(e,a,t){if(!this.isValid)return!1;let n=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(a,t)<=n&&n<=o.endOf(a,t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let a=e.base||i.fromObject({},{zone:this.zone}),t=e.padding?thisa.valueOf(),Math.min)}static max(...e){if(!e.every(i.isDateTime))throw new Ae("max requires all arguments be DateTimes");return gs(e,a=>a.valueOf(),Math.max)}static fromFormatExplain(e,a,t={}){let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});return Cs(r,e,a)}static fromStringExplain(e,a,t={}){return i.fromFormatExplain(e,a,t)}static buildFormatParser(e,a={}){let{locale:t=null,numberingSystem:n=null}=a,o=de.fromOpts({locale:t,numberingSystem:n,defaultToEN:!0});return new qn(o,e)}static fromFormatParser(e,a,t={}){if(W(e)||W(a))throw new Ae("fromFormatParser requires an input string and a format parser");let{locale:n=null,numberingSystem:o=null}=t,r=de.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0});if(!r.equals(a.locale))throw new Ae(`fromFormatParser called with a locale of ${r}, but the format parser was created for ${a.locale}`);let{result:s,zone:l,specificOffset:c,invalidReason:d}=a.explainFromTokens(e);return d?i.invalid(d):_a(s,l,t,`format ${a.format}`,e,c)}static get DATE_SHORT(){return fi}static get DATE_MED(){return Za}static get DATE_MED_WITH_WEEKDAY(){return Ur}static get DATE_FULL(){return Ya}static get DATE_HUGE(){return Ka}static get TIME_SIMPLE(){return Qa}static get TIME_WITH_SECONDS(){return Xa}static get TIME_WITH_SHORT_OFFSET(){return en}static get TIME_WITH_LONG_OFFSET(){return tn}static get TIME_24_SIMPLE(){return an}static get TIME_24_WITH_SECONDS(){return nn}static get TIME_24_WITH_SHORT_OFFSET(){return on}static get TIME_24_WITH_LONG_OFFSET(){return rn}static get DATETIME_SHORT(){return sn}static get DATETIME_SHORT_WITH_SECONDS(){return ln}static get DATETIME_MED(){return cn}static get DATETIME_MED_WITH_SECONDS(){return un}static get DATETIME_MED_WITH_WEEKDAY(){return Gr}static get DATETIME_FULL(){return dn}static get DATETIME_FULL_WITH_SECONDS(){return mn}static get DATETIME_HUGE(){return pn}static get DATETIME_HUGE_WITH_SECONDS(){return gn}};function ya(i){if(L.isDateTime(i))return i;if(i&&i.valueOf&&It(i.valueOf()))return L.fromJSDate(i);if(i&&typeof i=="object")return L.fromObject(i);throw new Ae(`Unknown datetime argument: ${i}, of type ${typeof i}`)}var Mf=new Ne("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:Ef});function Ef(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}function Of(i,e){let a=Array(i);for(let t=0;t{let e=class e extends io{constructor(t,n){super(),this._useUTC=!!n?.useUtc,this._firstDayOfWeek=n?.firstDayOfWeek||0,this._defaultOutputCalendar=n?.defaultOutputCalendar||"gregory",this.setLocale(t||L.local().locale)}getYear(t){return t.year}getMonth(t){return t.month-1}getDate(t){return t.day}getDayOfWeek(t){return t.weekday}getMonthNames(t){return Mt.months(t,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Of(31,n=>t.format(L.utc(2017,1,n+1).toJSDate()))}getDayOfWeekNames(t){let n=Mt.weekdays(t,{locale:this.locale});return n.unshift(n.pop()),n}getYearName(t){return t.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(t){return t.daysInMonth}clone(t){return L.fromObject(t.toObject(),this._getOptions())}createDate(t,n,o){let r=this._getOptions();if(n<0||n>11)throw Error(`Invalid month index "${n}". Month index has to be between 0 and 11.`);if(o<1)throw Error(`Invalid date "${o}". Date has to be greater than 0.`);let s=this._useUTC?L.utc(t,n+1,o,r):L.local(t,n+1,o,r);if(!this.isValid(s))throw Error(`Invalid date "${o}". Reason: "${s.invalidReason}".`);return s}today(){let t=this._getOptions();return this._useUTC?L.utc(t):L.local(t)}parse(t,n){let o=this._getOptions();if(typeof t=="string"&&t.length>0){let r=L.fromISO(t,o);if(this.isValid(r))return r;let s=Array.isArray(n)?n:[n];if(!n.length)throw Error("Formats array must not be empty.");for(let l of s){let c=L.fromFormat(t,l,o);if(this.isValid(c))return c}return this.invalid()}else{if(typeof t=="number")return L.fromMillis(t,o);if(t instanceof Date)return L.fromJSDate(t,o);if(t instanceof L)return L.fromMillis(t.toMillis(),o)}return null}format(t,n){if(!this.isValid(t))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?t.setLocale(this.locale).setZone("utc").toFormat(n):t.setLocale(this.locale).toFormat(n)}addCalendarYears(t,n){return t.reconfigure(this._getOptions()).plus({years:n})}addCalendarMonths(t,n){return t.reconfigure(this._getOptions()).plus({months:n})}addCalendarDays(t,n){return t.reconfigure(this._getOptions()).plus({days:n})}toIso8601(t){return t.toISO()}deserialize(t){let n=this._getOptions(),o;if(t instanceof Date&&(o=L.fromJSDate(t,n)),typeof t=="string"){if(!t)return null;o=L.fromISO(t,n)}return o&&this.isValid(o)?o:super.deserialize(t)}isDateInstance(t){return t instanceof L}isValid(t){return t.isValid}invalid(){return L.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}};e.\u0275fac=function(n){return new(n||e)(P(Xl,8),P(Mf,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})();function Qu(i){return new le(3e3,!1)}function Nf(){return new le(3100,!1)}function Lf(){return new le(3101,!1)}function Pf(i){return new le(3001,!1)}function Ff(i){return new le(3003,!1)}function Rf(i){return new le(3004,!1)}function Hf(i,e){return new le(3005,!1)}function jf(){return new le(3006,!1)}function zf(){return new le(3007,!1)}function Jf(i,e){return new le(3008,!1)}function Bf(i){return new le(3002,!1)}function Vf(i,e,a,t,n){return new le(3010,!1)}function Wf(){return new le(3011,!1)}function Uf(){return new le(3012,!1)}function Gf(){return new le(3200,!1)}function $f(){return new le(3202,!1)}function Zf(){return new le(3013,!1)}function Yf(i){return new le(3014,!1)}function Kf(i){return new le(3015,!1)}function Qf(i){return new le(3016,!1)}function Xf(i,e){return new le(3404,!1)}function eh(i){return new le(3502,!1)}function th(i){return new le(3503,!1)}function ih(){return new le(3300,!1)}function ah(i){return new le(3504,!1)}function nh(i){return new le(3301,!1)}function oh(i,e){return new le(3302,!1)}function rh(i){return new le(3303,!1)}function sh(i,e){return new le(3400,!1)}function lh(i){return new le(3401,!1)}function ch(i){return new le(3402,!1)}function uh(i,e){return new le(3505,!1)}function wi(i){switch(i.length){case 0:return new aa;case 1:return i[0];default:return new Wr(i)}}function md(i,e,a=new Map,t=new Map){let n=[],o=[],r=-1,s=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==r,g=d&&s||new Map;l.forEach((x,b)=>{let v=b,T=x;if(b!=="offset")switch(v=i.normalizePropertyName(v,n),T){case no:T=a.get(b);break;case Wt:T=t.get(b);break;default:T=i.normalizeStyleValue(b,v,T,n);break}g.set(v,T)}),d||o.push(g),s=g,r=c}),n.length)throw eh(n);return o}function Qs(i,e,a,t){switch(e){case"start":i.onStart(()=>t(a&&Is(a,"start",i)));break;case"done":i.onDone(()=>t(a&&Is(a,"done",i)));break;case"destroy":i.onDestroy(()=>t(a&&Is(a,"destroy",i)));break}}function Is(i,e,a){let t=a.totalTime,n=!!a.disabled,o=Xs(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,t??i.totalTime,n),r=i._data;return r!=null&&(o._data=r),o}function Xs(i,e,a,t,n="",o=0,r){return{element:i,triggerName:e,fromState:a,toState:t,phaseName:n,totalTime:o,disabled:!!r}}function ft(i,e,a){let t=i.get(e);return t||i.set(e,t=a),t}function Xu(i){let e=i.indexOf(":"),a=i.substring(1,e),t=i.slice(e+1);return[a,t]}var dh=typeof document>"u"?null:document.documentElement;function el(i){let e=i.parentNode||i.host||null;return e===dh?null:e}function mh(i){return i.substring(1,6)=="ebkit"}var zi=null,ed=!1;function ph(i){zi||(zi=gh()||{},ed=zi.style?"WebkitAppearance"in zi.style:!1);let e=!0;return zi.style&&!mh(i)&&(e=i in zi.style,!e&&ed&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in zi.style)),e}function gh(){return typeof document<"u"?document.body:null}function pd(i,e){for(;e;){if(e===i)return!0;e=el(e)}return!1}function gd(i,e,a){if(a)return Array.from(i.querySelectorAll(e));let t=i.querySelector(e);return t?[t]:[]}var tl=(()=>{let e=class e{validateStyleProperty(t){return ph(t)}containsElement(t,n){return pd(t,n)}getParentElement(t){return el(t)}query(t,n,o){return gd(t,n,o)}computeStyle(t,n,o){return o||""}animate(t,n,o,r,s,l=[],c){return new aa(o,r)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})(),ol=class ol{};ol.NOOP=new tl;var Vi=ol,Wi=class{};var fh=1e3,fd="{{",hh="}}",hd="ng-enter",Ps="ng-leave",Lo="ng-trigger",jo=".ng-trigger",td="ng-animating",Fs=".ng-animating";function ni(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rs(parseFloat(e[1]),e[2])}function Rs(i,e){switch(e){case"s":return i*fh;default:return i}}function zo(i,e,a){return i.hasOwnProperty("duration")?i:bh(i,e,a)}function bh(i,e,a){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,o=0,r="";if(typeof i=="string"){let s=i.match(t);if(s===null)return e.push(Qu(i)),{duration:0,delay:0,easing:""};n=Rs(parseFloat(s[1]),s[2]);let l=s[3];l!=null&&(o=Rs(parseFloat(l),s[4]));let c=s[5];c&&(r=c)}else n=i;if(!a){let s=!1,l=e.length;n<0&&(e.push(Nf()),s=!0),o<0&&(e.push(Lf()),s=!0),s&&e.splice(l,0,Qu(i))}return{duration:n,delay:o,easing:r}}function vh(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function Ut(i,e,a){e.forEach((t,n)=>{let o=il(n);a&&!a.has(n)&&a.set(n,i.style[o]),i.style[o]=t})}function Bi(i,e){e.forEach((a,t)=>{let n=il(t);i.style[n]=""})}function Tn(i){return Array.isArray(i)?i.length==1?i[0]:sc(i):i}function yh(i,e,a){let t=e.params||{},n=bd(i);n.length&&n.forEach(o=>{t.hasOwnProperty(o)||a.push(Pf(o))})}var Hs=new RegExp(`${fd}\\s*(.+?)\\s*${hh}`,"g");function bd(i){let e=[];if(typeof i=="string"){let a;for(;a=Hs.exec(i);)e.push(a[1]);Hs.lastIndex=0}return e}function An(i,e,a){let t=`${i}`,n=t.replace(Hs,(o,r)=>{let s=e[r];return s==null&&(a.push(Ff(r)),s=""),s.toString()});return n==t?i:n}var _h=/-+([a-z0-9])/g;function il(i){return i.replace(_h,(...e)=>e[1].toUpperCase())}function xh(i,e){return i===0||e===0}function wh(i,e,a){if(a.size&&e.length){let t=e[0],n=[];if(a.forEach((o,r)=>{t.has(r)||n.push(r),t.set(r,o)}),n.length)for(let o=1;or.set(s,al(i,s)))}}return e}function gt(i,e,a){switch(e.type){case oe.Trigger:return i.visitTrigger(e,a);case oe.State:return i.visitState(e,a);case oe.Transition:return i.visitTransition(e,a);case oe.Sequence:return i.visitSequence(e,a);case oe.Group:return i.visitGroup(e,a);case oe.Animate:return i.visitAnimate(e,a);case oe.Keyframes:return i.visitKeyframes(e,a);case oe.Style:return i.visitStyle(e,a);case oe.Reference:return i.visitReference(e,a);case oe.AnimateChild:return i.visitAnimateChild(e,a);case oe.AnimateRef:return i.visitAnimateRef(e,a);case oe.Query:return i.visitQuery(e,a);case oe.Stagger:return i.visitStagger(e,a);default:throw Rf(e.type)}}function al(i,e){return window.getComputedStyle(i)[e]}var Sh=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Jo=class extends Wi{normalizePropertyName(e,a){return il(e)}normalizeStyleValue(e,a,t,n){let o="",r=t.toString().trim();if(Sh.has(a)&&t!==0&&t!=="0")if(typeof t=="number")o="px";else{let s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&n.push(Hf(e,t))}return r+o}};var Bo="*";function Ch(i,e){let a=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(t=>qh(t,a,e)):a.push(i),a}function qh(i,e,a){if(i[0]==":"){let l=kh(i,a);if(typeof l=="function"){e.push(l);return}i=l}let t=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return a.push(Kf(i)),e;let n=t[1],o=t[2],r=t[3];e.push(id(n,r));let s=n==Bo&&r==Bo;o[0]=="<"&&!s&&e.push(id(r,n))}function kh(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(a,t)=>parseFloat(t)>parseFloat(a);case":decrement":return(a,t)=>parseFloat(t) *"}}var Po=new Set(["true","1"]),Fo=new Set(["false","0"]);function id(i,e){let a=Po.has(i)||Fo.has(i),t=Po.has(e)||Fo.has(e);return(n,o)=>{let r=i==Bo||i==n,s=e==Bo||e==o;return!r&&a&&typeof n=="boolean"&&(r=n?Po.has(i):Fo.has(i)),!s&&t&&typeof o=="boolean"&&(s=o?Po.has(e):Fo.has(e)),r&&s}}var vd=":self",Th=new RegExp(`s*${vd}s*,?`,"g");function yd(i,e,a,t){return new js(i).build(e,a,t)}var ad="",js=class{constructor(e){this._driver=e}build(e,a,t){let n=new zs(a);return this._resetContextStyleTimingState(n),gt(this,Tn(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=ad,e.collectedStyles=new Map,e.collectedStyles.set(ad,new Map),e.currentTime=0}visitTrigger(e,a){let t=a.queryCount=0,n=a.depCount=0,o=[],r=[];return e.name.charAt(0)=="@"&&a.errors.push(jf()),e.definitions.forEach(s=>{if(this._resetContextStyleTimingState(a),s.type==oe.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,o.push(this.visitState(l,a))}),l.name=c}else if(s.type==oe.Transition){let l=this.visitTransition(s,a);t+=l.queryCount,n+=l.depCount,r.push(l)}else a.errors.push(zf())}),{type:oe.Trigger,name:e.name,states:o,transitions:r,queryCount:t,depCount:n,options:null}}visitState(e,a){let t=this.visitStyle(e.styles,a),n=e.options&&e.options.params||null;if(t.containsDynamicStyles){let o=new Set,r=n||{};t.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{bd(l).forEach(c=>{r.hasOwnProperty(c)||o.add(c)})})}),o.size&&a.errors.push(Jf(e.name,[...o.values()]))}return{type:oe.State,name:e.name,style:t,options:n?{params:n}:null}}visitTransition(e,a){a.queryCount=0,a.depCount=0;let t=gt(this,Tn(e.animation),a),n=Ch(e.expr,a.errors);return{type:oe.Transition,matchers:n,animation:t,queryCount:a.queryCount,depCount:a.depCount,options:Ji(e.options)}}visitSequence(e,a){return{type:oe.Sequence,steps:e.steps.map(t=>gt(this,t,a)),options:Ji(e.options)}}visitGroup(e,a){let t=a.currentTime,n=0,o=e.steps.map(r=>{a.currentTime=t;let s=gt(this,r,a);return n=Math.max(n,a.currentTime),s});return a.currentTime=n,{type:oe.Group,steps:o,options:Ji(e.options)}}visitAnimate(e,a){let t=Mh(e.timings,a.errors);a.currentAnimateTimings=t;let n,o=e.styles?e.styles:ut({});if(o.type==oe.Keyframes)n=this.visitKeyframes(o,a);else{let r=e.styles,s=!1;if(!r){s=!0;let c={};t.easing&&(c.easing=t.easing),r=ut(c)}a.currentTime+=t.duration+t.delay;let l=this.visitStyle(r,a);l.isEmptyStep=s,n=l}return a.currentAnimateTimings=null,{type:oe.Animate,timings:t,style:n,options:null}}visitStyle(e,a){let t=this._makeStyleAst(e,a);return this._validateStyleAst(t,a),t}_makeStyleAst(e,a){let t=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let s of n)typeof s=="string"?s===Wt?t.push(s):a.errors.push(Bf(s)):t.push(new Map(Object.entries(s)));let o=!1,r=null;return t.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(r=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(fd)>=0){o=!0;break}}}),{type:oe.Style,styles:t,easing:r,offset:e.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(e,a){let t=a.currentAnimateTimings,n=a.currentTime,o=a.currentTime;t&&o>0&&(o-=t.duration+t.delay),e.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,l)=>{let c=a.collectedStyles.get(a.currentQuerySelector),d=c.get(l),g=!0;d&&(o!=n&&o>=d.startTime&&n<=d.endTime&&(a.errors.push(Vf(l,d.startTime,d.endTime,o,n)),g=!1),o=d.startTime),g&&c.set(l,{startTime:o,endTime:n}),a.options&&yh(s,a.options,a.errors)})})}visitKeyframes(e,a){let t={type:oe.Keyframes,styles:[],options:null};if(!a.currentAnimateTimings)return a.errors.push(Wf()),t;let n=1,o=0,r=[],s=!1,l=!1,c=0,d=e.steps.map(w=>{let k=this._makeStyleAst(w,a),R=k.offset!=null?k.offset:Ih(k.styles),J=0;return R!=null&&(o++,J=k.offset=R),l=l||J<0||J>1,s=s||J0&&o{let R=x>0?k==b?1:x*k:r[k],J=R*E;a.currentTime=v+T.delay+J,T.duration=J,this._validateStyleAst(w,a),w.offset=R,t.styles.push(w)}),t}visitReference(e,a){return{type:oe.Reference,animation:gt(this,Tn(e.animation),a),options:Ji(e.options)}}visitAnimateChild(e,a){return a.depCount++,{type:oe.AnimateChild,options:Ji(e.options)}}visitAnimateRef(e,a){return{type:oe.AnimateRef,animation:this.visitReference(e.animation,a),options:Ji(e.options)}}visitQuery(e,a){let t=a.currentQuerySelector,n=e.options||{};a.queryCount++,a.currentQuery=e;let[o,r]=Dh(e.selector);a.currentQuerySelector=t.length?t+" "+o:o,ft(a.collectedStyles,a.currentQuerySelector,new Map);let s=gt(this,Tn(e.animation),a);return a.currentQuery=null,a.currentQuerySelector=t,{type:oe.Query,selector:o,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:s,originalSelector:e.selector,options:Ji(e.options)}}visitStagger(e,a){a.currentQuery||a.errors.push(Zf());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:zo(e.timings,a.errors,!0);return{type:oe.Stagger,animation:gt(this,Tn(e.animation),a),timings:t,options:null}}};function Dh(i){let e=!!i.split(/\s*,\s*/).find(a=>a==vd);return e&&(i=i.replace(Th,"")),i=i.replace(/@\*/g,jo).replace(/@\w+/g,a=>jo+"-"+a.slice(1)).replace(/:animating/g,Fs),[i,e]}function Ah(i){return i?M({},i):null}var zs=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Ih(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(a=>{if(a instanceof Map&&a.has("offset")){let t=a;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let a=i;e=parseFloat(a.get("offset")),a.delete("offset")}return e}function Mh(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let o=zo(i,e).duration;return Ms(o,0,"")}let a=i;if(a.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=Ms(0,0,"");return o.dynamic=!0,o.strValue=a,o}let n=zo(a,e);return Ms(n.duration,n.delay,n.easing)}function Ji(i){return i?(i=M({},i),i.params&&(i.params=Ah(i.params))):i={},i}function Ms(i,e,a){return{duration:i,delay:e,easing:a}}function nl(i,e,a,t,n,o,r=null,s=!1){return{type:1,element:i,keyframes:e,preStyleProps:a,postStyleProps:t,duration:n,delay:o,totalTime:n+o,easing:r,subTimeline:s}}var In=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,a){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...a)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Eh=1,Oh=":enter",Nh=new RegExp(Oh,"g"),Lh=":leave",Ph=new RegExp(Lh,"g");function _d(i,e,a,t,n,o=new Map,r=new Map,s,l,c=[]){return new Js().buildKeyframes(i,e,a,t,n,o,r,s,l,c)}var Js=class{buildKeyframes(e,a,t,n,o,r,s,l,c,d=[]){c=c||new In;let g=new Bs(e,a,c,n,o,d,[]);g.options=l;let x=l.delay?ni(l.delay):0;g.currentTimeline.delayNextStep(x),g.currentTimeline.setStyles([r],null,g.errors,l),gt(this,t,g);let b=g.timelines.filter(v=>v.containsAnimation());if(b.length&&s.size){let v;for(let T=b.length-1;T>=0;T--){let E=b[T];if(E.element===a){v=E;break}}v&&!v.allowOnlyTimelineStyles()&&v.setStyles([s],null,g.errors,l)}return b.length?b.map(v=>v.buildKeyframes()):[nl(a,[],[],[],0,x,"",!1)]}visitTrigger(e,a){}visitState(e,a){}visitTransition(e,a){}visitAnimateChild(e,a){let t=a.subInstructions.get(a.element);if(t){let n=a.createSubContext(e.options),o=a.currentTimeline.currentTime,r=this._visitSubInstructions(t,n,n.options);o!=r&&a.transformIntoNewTimeline(r)}a.previousNode=e}visitAnimateRef(e,a){let t=a.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],a,t),this.visitReference(e.animation,t),a.transformIntoNewTimeline(t.currentTimeline.currentTime),a.previousNode=e}_applyAnimationRefDelays(e,a,t){for(let n of e){let o=n?.delay;if(o){let r=typeof o=="number"?o:ni(An(o,n?.params??{},a.errors));t.delayNextStep(r)}}}_visitSubInstructions(e,a,t){let o=a.currentTimeline.currentTime,r=t.duration!=null?ni(t.duration):null,s=t.delay!=null?ni(t.delay):null;return r!==0&&e.forEach(l=>{let c=a.appendInstructionToTimeline(l,r,s);o=Math.max(o,c.duration+c.delay)}),o}visitReference(e,a){a.updateOptions(e.options,!0),gt(this,e.animation,a),a.previousNode=e}visitSequence(e,a){let t=a.subContextCount,n=a,o=e.options;if(o&&(o.params||o.delay)&&(n=a.createSubContext(o),n.transformIntoNewTimeline(),o.delay!=null)){n.previousNode.type==oe.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Vo);let r=ni(o.delay);n.delayNextStep(r)}e.steps.length&&(e.steps.forEach(r=>gt(this,r,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>t&&n.transformIntoNewTimeline()),a.previousNode=e}visitGroup(e,a){let t=[],n=a.currentTimeline.currentTime,o=e.options&&e.options.delay?ni(e.options.delay):0;e.steps.forEach(r=>{let s=a.createSubContext(e.options);o&&s.delayNextStep(o),gt(this,r,s),n=Math.max(n,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(r=>a.currentTimeline.mergeTimelineCollectedStyles(r)),a.transformIntoNewTimeline(n),a.previousNode=e}_visitTiming(e,a){if(e.dynamic){let t=e.strValue,n=a.params?An(t,a.params,a.errors):t;return zo(n,a.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,a){let t=a.currentAnimateTimings=this._visitTiming(e.timings,a),n=a.currentTimeline;t.delay&&(a.incrementTime(t.delay),n.snapshotCurrentStyles());let o=e.style;o.type==oe.Keyframes?this.visitKeyframes(o,a):(a.incrementTime(t.duration),this.visitStyle(o,a),n.applyStylesToKeyframe()),a.currentAnimateTimings=null,a.previousNode=e}visitStyle(e,a){let t=a.currentTimeline,n=a.currentAnimateTimings;!n&&t.hasCurrentStyleProperties()&&t.forwardFrame();let o=n&&n.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(o):t.setStyles(e.styles,o,a.errors,a.options),a.previousNode=e}visitKeyframes(e,a){let t=a.currentAnimateTimings,n=a.currentTimeline.duration,o=t.duration,s=a.createSubContext().currentTimeline;s.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,a.errors,a.options),s.applyStylesToKeyframe()}),a.currentTimeline.mergeTimelineCollectedStyles(s),a.transformIntoNewTimeline(n+o),a.previousNode=e}visitQuery(e,a){let t=a.currentTimeline.currentTime,n=e.options||{},o=n.delay?ni(n.delay):0;o&&(a.previousNode.type===oe.Style||t==0&&a.currentTimeline.hasCurrentStyleProperties())&&(a.currentTimeline.snapshotCurrentStyles(),a.previousNode=Vo);let r=t,s=a.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.optional,a.errors);a.currentQueryTotal=s.length;let l=null;s.forEach((c,d)=>{a.currentQueryIndex=d;let g=a.createSubContext(e.options,c);o&&g.delayNextStep(o),c===a.element&&(l=g.currentTimeline),gt(this,e.animation,g),g.currentTimeline.applyStylesToKeyframe();let x=g.currentTimeline.currentTime;r=Math.max(r,x)}),a.currentQueryIndex=0,a.currentQueryTotal=0,a.transformIntoNewTimeline(r),l&&(a.currentTimeline.mergeTimelineCollectedStyles(l),a.currentTimeline.snapshotCurrentStyles()),a.previousNode=e}visitStagger(e,a){let t=a.parentContext,n=a.currentTimeline,o=e.timings,r=Math.abs(o.duration),s=r*(a.currentQueryTotal-1),l=r*a.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=t.currentStaggerTime;break}let d=a.currentTimeline;l&&d.delayNextStep(l);let g=d.currentTime;gt(this,e.animation,a),a.previousNode=e,t.currentStaggerTime=n.currentTime-g+(n.startTime-t.currentTimeline.startTime)}},Vo={},Bs=class i{constructor(e,a,t,n,o,r,s,l){this._driver=e,this.element=a,this.subInstructions=t,this._enterClassName=n,this._leaveClassName=o,this.errors=r,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vo,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Wo(this._driver,a,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,a){if(!e)return;let t=e,n=this.options;t.duration!=null&&(n.duration=ni(t.duration)),t.delay!=null&&(n.delay=ni(t.delay));let o=t.params;if(o){let r=n.params;r||(r=this.options.params={}),Object.keys(o).forEach(s=>{(!a||!r.hasOwnProperty(s))&&(r[s]=An(o[s],r,this.errors))})}}_copyOptions(){let e={};if(this.options){let a=this.options.params;if(a){let t=e.params={};Object.keys(a).forEach(n=>{t[n]=a[n]})}}return e}createSubContext(e=null,a,t){let n=a||this.element,o=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,t||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Vo,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,a,t){let n={duration:a??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},o=new Vs(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(o),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,a,t,n,o,r){let s=[];if(n&&s.push(this.element),e.length>0){e=e.replace(Nh,"."+this._enterClassName),e=e.replace(Ph,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!o&&s.length==0&&r.push(Yf(a)),s}},Wo=class i{constructor(e,a,t,n){this._driver=e,this.element=a,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(a),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(a,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let a=this._keyframes.size===1&&this._pendingStyles.size;this.duration||a?(this.forwardTime(this.currentTime+e),a&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,a){return this.applyStylesToKeyframe(),new i(this._driver,e,a||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Eh,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,a){this._localTimelineStyles.set(e,a),this._globalTimelineStyles.set(e,a),this._styleSummary.set(e,{time:this.currentTime,value:a})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[a,t]of this._globalTimelineStyles)this._backFill.set(a,t||Wt),this._currentKeyframe.set(a,Wt);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,a,t,n){a&&this._previousKeyframe.set("easing",a);let o=n&&n.params||{},r=Fh(e,this._globalTimelineStyles);for(let[s,l]of r){let c=An(l,o,t);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Wt),this._updateStyle(s,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,a)=>{this._currentKeyframe.set(a,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,a)=>{this._currentKeyframe.has(a)||this._currentKeyframe.set(a,e)}))}snapshotCurrentStyles(){for(let[e,a]of this._localTimelineStyles)this._pendingStyles.set(e,a),this._updateStyle(e,a)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let a in this._currentKeyframe)e.push(a);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((a,t)=>{let n=this._styleSummary.get(t);(!n||a.time>n.time)&&this._updateStyle(t,a.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,a=new Set,t=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((d,g)=>{d===no?e.add(g):d===Wt&&a.add(g)}),t||c.set("offset",l/this.duration),n.push(c)});let o=[...e.values()],r=[...a.values()];if(t){let s=n[0],l=new Map(s);s.set("offset",0),l.set("offset",1),n=[s,l]}return nl(this.element,n,o,r,this.duration,this.startTime,this.easing,!1)}},Vs=class extends Wo{constructor(e,a,t,n,o,r,s=!1){super(e,a,r.delay),this.keyframes=t,this.preStyleProps=n,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:a,duration:t,easing:n}=this.timings;if(this._stretchStartingKeyframe&&a){let o=[],r=t+a,s=a/r,l=new Map(e[0]);l.set("offset",0),o.push(l);let c=new Map(e[0]);c.set("offset",nd(s)),o.push(c);let d=e.length-1;for(let g=1;g<=d;g++){let x=new Map(e[g]),b=x.get("offset"),v=a+b*t;x.set("offset",nd(v/r)),o.push(x)}t=r,a=0,n="",e=o}return nl(this.element,e,this.preStyleProps,this.postStyleProps,t,a,n,!0)}};function nd(i,e=3){let a=Math.pow(10,e-1);return Math.round(i*a)/a}function Fh(i,e){let a=new Map,t;return i.forEach(n=>{if(n==="*"){t??=e.keys();for(let o of t)a.set(o,Wt)}else for(let[o,r]of n)a.set(o,r)}),a}function od(i,e,a,t,n,o,r,s,l,c,d,g,x){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:a,fromStyles:o,toState:t,toStyles:r,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:g,errors:x}}var Es={},Uo=class{constructor(e,a,t){this._triggerName=e,this.ast=a,this._stateStyles=t}match(e,a,t,n){return Rh(this.ast.matchers,e,a,t,n)}buildStyles(e,a,t){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(a,t):new Map}build(e,a,t,n,o,r,s,l,c,d){let g=[],x=this.ast.options&&this.ast.options.params||Es,b=s&&s.params||Es,v=this.buildStyles(t,b,g),T=l&&l.params||Es,E=this.buildStyles(n,T,g),w=new Set,k=new Map,R=new Map,J=n==="void",pe={params:xd(T,x),delay:this.ast.options?.delay},ee=d?[]:_d(e,a,this.ast.animation,o,r,v,E,pe,c,g),ve=0;return ee.forEach(fe=>{ve=Math.max(fe.duration+fe.delay,ve)}),g.length?od(a,this._triggerName,t,n,J,v,E,[],[],k,R,ve,g):(ee.forEach(fe=>{let Se=fe.element,ze=ft(k,Se,new Set);fe.preStyleProps.forEach(Yt=>ze.add(Yt));let Lt=ft(R,Se,new Set);fe.postStyleProps.forEach(Yt=>Lt.add(Yt)),Se!==a&&w.add(Se)}),od(a,this._triggerName,t,n,J,v,E,ee,[...w.values()],k,R,ve))}};function Rh(i,e,a,t,n){return i.some(o=>o(e,a,t,n))}function xd(i,e){let a=M({},e);return Object.entries(i).forEach(([t,n])=>{n!=null&&(a[t]=n)}),a}var Ws=class{constructor(e,a,t){this.styles=e,this.defaultParams=a,this.normalizer=t}buildStyles(e,a){let t=new Map,n=xd(e,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((r,s)=>{r&&(r=An(r,n,a));let l=this.normalizer.normalizePropertyName(s,a);r=this.normalizer.normalizeStyleValue(s,l,r,a),t.set(s,r)})}),t}};function Hh(i,e,a){return new Us(i,e,a)}var Us=class{constructor(e,a,t){this.name=e,this.ast=a,this._normalizer=t,this.transitionFactories=[],this.states=new Map,a.states.forEach(n=>{let o=n.options&&n.options.params||{};this.states.set(n.name,new Ws(n.style,o,t))}),rd(this.states,"true","1"),rd(this.states,"false","0"),a.transitions.forEach(n=>{this.transitionFactories.push(new Uo(e,n,this.states))}),this.fallbackTransition=jh(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,a,t,n){return this.transitionFactories.find(r=>r.match(e,a,t,n))||null}matchStyles(e,a,t){return this.fallbackTransition.buildStyles(e,a,t)}};function jh(i,e,a){let t=[(r,s)=>!0],n={type:oe.Sequence,steps:[],options:null},o={type:oe.Transition,animation:n,matchers:t,options:null,queryCount:0,depCount:0};return new Uo(i,o,e)}function rd(i,e,a){i.has(e)?i.has(a)||i.set(a,i.get(e)):i.has(a)&&i.set(e,i.get(a))}var zh=new In,Gs=class{constructor(e,a,t){this.bodyNode=e,this._driver=a,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,a){let t=[],n=[],o=yd(this._driver,a,t,n);if(t.length)throw th(t);n.length&&void 0,this._animations.set(e,o)}_buildPlayer(e,a,t){let n=e.element,o=md(this._normalizer,e.keyframes,a,t);return this._driver.animate(n,o,e.duration,e.delay,e.easing,[],!0)}create(e,a,t={}){let n=[],o=this._animations.get(e),r,s=new Map;if(o?(r=_d(this._driver,a,o,hd,Ps,new Map,new Map,t,zh,n),r.forEach(d=>{let g=ft(s,d.element,new Map);d.postStyleProps.forEach(x=>g.set(x,null))})):(n.push(ih()),r=[]),n.length)throw ah(n);s.forEach((d,g)=>{d.forEach((x,b)=>{d.set(b,this._driver.computeStyle(g,b,Wt))})});let l=r.map(d=>{let g=s.get(d.element);return this._buildPlayer(d,new Map,g)}),c=wi(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let a=this._getPlayer(e);a.destroy(),this._playersById.delete(e);let t=this.players.indexOf(a);t>=0&&this.players.splice(t,1)}_getPlayer(e){let a=this._playersById.get(e);if(!a)throw nh(e);return a}listen(e,a,t,n){let o=Xs(a,"","","");return Qs(this._getPlayer(e),t,o,n),()=>{}}command(e,a,t,n){if(t=="register"){this.register(e,n[0]);return}if(t=="create"){let r=n[0]||{};this.create(e,a,r);return}let o=this._getPlayer(e);switch(t){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(n[0]));break;case"destroy":this.destroy(e);break}}},sd="ng-animate-queued",Jh=".ng-animate-queued",Os="ng-animate-disabled",Bh=".ng-animate-disabled",Vh="ng-star-inserted",Wh=".ng-star-inserted",Uh=[],wd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gh={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ot="__ng_removed",Mn=class{get params(){return this.options.params}constructor(e,a=""){this.namespaceId=a;let t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=Zh(n),t){let o=e,{value:r}=o,s=Ra(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let a=e.params;if(a){let t=this.options.params;Object.keys(a).forEach(n=>{t[n]==null&&(t[n]=a[n])})}}},Dn="void",Ns=new Mn(Dn),$s=class{constructor(e,a,t){this.id=e,this.hostElement=a,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,St(a,this._hostClassName)}listen(e,a,t,n){if(!this._triggers.has(a))throw oh(t,a);if(t==null||t.length==0)throw rh(a);if(!Yh(t))throw sh(t,a);let o=ft(this._elementListeners,e,[]),r={name:a,phase:t,callback:n};o.push(r);let s=ft(this._engine.statesByElement,e,new Map);return s.has(a)||(St(e,Lo),St(e,Lo+"-"+a),s.set(a,Ns)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(r);l>=0&&o.splice(l,1),this._triggers.has(a)||s.delete(a)})}}register(e,a){return this._triggers.has(e)?!1:(this._triggers.set(e,a),!0)}_getTrigger(e){let a=this._triggers.get(e);if(!a)throw lh(e);return a}trigger(e,a,t,n=!0){let o=this._getTrigger(a),r=new En(this.id,a,e),s=this._engine.statesByElement.get(e);s||(St(e,Lo),St(e,Lo+"-"+a),this._engine.statesByElement.set(e,s=new Map));let l=s.get(a),c=new Mn(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(a,c),l||(l=Ns),!(c.value===Dn)&&l.value===c.value){if(!Xh(l.params,c.params)){let T=[],E=o.matchStyles(l.value,l.params,T),w=o.matchStyles(c.value,c.params,T);T.length?this._engine.reportError(T):this._engine.afterFlush(()=>{Bi(e,E),Ut(e,w)})}return}let x=ft(this._engine.playersByElement,e,[]);x.forEach(T=>{T.namespaceId==this.id&&T.triggerName==a&&T.queued&&T.destroy()});let b=o.matchTransition(l.value,c.value,e,c.params),v=!1;if(!b){if(!n)return;b=o.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:b,fromState:l,toState:c,player:r,isFallbackTransition:v}),v||(St(e,sd),r.onStart(()=>{xa(e,sd)})),r.onDone(()=>{let T=this.players.indexOf(r);T>=0&&this.players.splice(T,1);let E=this._engine.playersByElement.get(e);if(E){let w=E.indexOf(r);w>=0&&E.splice(w,1)}}),this.players.push(r),x.push(r),r}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(a=>a.delete(e)),this._elementListeners.forEach((a,t)=>{this._elementListeners.set(t,a.filter(n=>n.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let a=this._engine.playersByElement.get(e);a&&(a.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,a){let t=this._engine.driver.query(e,jo,!0);t.forEach(n=>{if(n[Ot])return;let o=this._engine.fetchNamespacesByElement(n);o.size?o.forEach(r=>r.triggerLeaveAnimation(n,a,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,a,t,n){let o=this._engine.statesByElement.get(e),r=new Map;if(o){let s=[];if(o.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Dn,n);d&&s.push(d)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,a,r),t&&wi(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let a=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(a&&t){let n=new Set;a.forEach(o=>{let r=o.name;if(n.has(r))return;n.add(r);let l=this._triggers.get(r).fallbackTransition,c=t.get(r)||Ns,d=new Mn(Dn),g=new En(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:l,fromState:c,toState:d,player:g,isFallbackTransition:!0})})}}removeNode(e,a){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,a),this.triggerLeaveAnimation(e,a,!0))return;let n=!1;if(t.totalAnimations){let o=t.players.length?t.playersByQueriedElement.get(e):[];if(o&&o.length)n=!0;else{let r=e;for(;r=r.parentNode;)if(t.statesByElement.get(r)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)t.markElementAsRemoved(this.id,e,!1,a);else{let o=e[Ot];(!o||o===wd)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,a))}}insertNode(e,a){St(e,this._hostClassName)}drainQueuedTransitions(e){let a=[];return this._queue.forEach(t=>{let n=t.player;if(n.destroyed)return;let o=t.element,r=this._elementListeners.get(o);r&&r.forEach(s=>{if(s.name==t.triggerName){let l=Xs(o,t.triggerName,t.fromState.value,t.toState.value);l._data=e,Qs(t.player,s.phase,l,s.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):a.push(t)}),this._queue=[],a.sort((t,n)=>{let o=t.transition.ast.depCount,r=n.transition.ast.depCount;return o==0||r==0?o-r:this._engine.driver.containsElement(t.element,n.element)?1:-1})}destroy(e){this.players.forEach(a=>a.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Zs=class{_onRemovalComplete(e,a){this.onRemovalComplete(e,a)}constructor(e,a,t){this.bodyNode=e,this.driver=a,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(n,o)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(a=>{a.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,a){let t=new $s(e,a,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,a)?this._balanceNamespaceList(t,a):(this.newHostElements.set(a,t),this.collectEnterElement(a)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,a){let t=this._namespaceList,n=this.namespacesByHostElement;if(t.length-1>=0){let r=!1,s=this.driver.getParentElement(a);for(;s;){let l=n.get(s);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),r=!0;break}s=this.driver.getParentElement(s)}r||t.unshift(e)}else t.push(e);return n.set(a,e),e}register(e,a){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,a)),t}registerTrigger(e,a,t){let n=this._namespaceLookup[e];n&&n.register(a,t)&&this.totalAnimations++}destroy(e,a){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let n=this._namespaceList.indexOf(t);n>=0&&this._namespaceList.splice(n,1),t.destroy(a),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let a=new Set,t=this.statesByElement.get(e);if(t){for(let n of t.values())if(n.namespaceId){let o=this._fetchNamespace(n.namespaceId);o&&a.add(o)}}return a}trigger(e,a,t,n){if(Ro(a)){let o=this._fetchNamespace(e);if(o)return o.trigger(a,t,n),!0}return!1}insertNode(e,a,t,n){if(!Ro(a))return;let o=a[Ot];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let r=this.collectedLeaveElements.indexOf(a);r>=0&&this.collectedLeaveElements.splice(r,1)}if(e){let r=this._fetchNamespace(e);r&&r.insertNode(a,t)}n&&this.collectEnterElement(a)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,a){a?this.disabledNodes.has(e)||(this.disabledNodes.add(e),St(e,Os)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),xa(e,Os))}removeNode(e,a,t){if(Ro(a)){let n=e?this._fetchNamespace(e):null;n?n.removeNode(a,t):this.markElementAsRemoved(e,a,!1,t);let o=this.namespacesByHostElement.get(a);o&&o.id!==e&&o.removeNode(a,t)}else this._onRemovalComplete(a,t)}markElementAsRemoved(e,a,t,n,o){this.collectedLeaveElements.push(a),a[Ot]={namespaceId:e,setForRemoval:n,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,a,t,n,o){return Ro(a)?this._fetchNamespace(e).listen(a,t,n,o):()=>{}}_buildInstruction(e,a,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,n,e.fromState.options,e.toState.options,a,o)}destroyInnerAnimations(e){let a=this.driver.query(e,jo,!0);a.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(a=this.driver.query(e,Fs,!0),a.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let a=this.playersByElement.get(e);a&&a.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let a=this.playersByQueriedElement.get(e);a&&a.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return wi(this.players).onDone(()=>e());e()})}processLeaveNode(e){let a=e[Ot];if(a&&a.setForRemoval){if(e[Ot]=wd,a.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(a.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,a.setForRemoval)}e.classList?.contains(Os)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Bh,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let a=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,n)=>this._balanceNamespaceList(t,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],a.length?wi(a).onDone(()=>{t.forEach(n=>n())}):t.forEach(n=>n())}}reportError(e){throw ch(e)}_flushAnimations(e,a){let t=new In,n=[],o=new Map,r=[],s=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(F=>{d.add(F);let V=this.driver.query(F,Jh,!0);for(let $=0;${let $=hd+T++;v.set(V,$),F.forEach(se=>St(se,$))});let E=[],w=new Set,k=new Set;for(let F=0;Fw.add(se)):k.add(V))}let R=new Map,J=ud(x,Array.from(w));J.forEach((F,V)=>{let $=Ps+T++;R.set(V,$),F.forEach(se=>St(se,$))}),e.push(()=>{b.forEach((F,V)=>{let $=v.get(V);F.forEach(se=>xa(se,$))}),J.forEach((F,V)=>{let $=R.get(V);F.forEach(se=>xa(se,$))}),E.forEach(F=>{this.processLeaveNode(F)})});let pe=[],ee=[];for(let F=this._namespaceList.length-1;F>=0;F--)this._namespaceList[F].drainQueuedTransitions(a).forEach($=>{let se=$.player,Le=$.element;if(pe.push(se),this.collectedEnterElements.length){let Ge=Le[Ot];if(Ge&&Ge.setForMove){if(Ge.previousTriggersValues&&Ge.previousTriggersValues.has($.triggerName)){let Ti=Ge.previousTriggersValues.get($.triggerName),bt=this.statesByElement.get($.element);if(bt&&bt.has($.triggerName)){let jn=bt.get($.triggerName);jn.value=Ti,bt.set($.triggerName,jn)}}se.destroy();return}}let Pt=!g||!this.driver.containsElement(g,Le),lt=R.get(Le),si=v.get(Le),Ce=this._buildInstruction($,t,si,lt,Pt);if(Ce.errors&&Ce.errors.length){ee.push(Ce);return}if(Pt){se.onStart(()=>Bi(Le,Ce.fromStyles)),se.onDestroy(()=>Ut(Le,Ce.toStyles)),n.push(se);return}if($.isFallbackTransition){se.onStart(()=>Bi(Le,Ce.fromStyles)),se.onDestroy(()=>Ut(Le,Ce.toStyles)),n.push(se);return}let vl=[];Ce.timelines.forEach(Ge=>{Ge.stretchStartingKeyframe=!0,this.disabledNodes.has(Ge.element)||vl.push(Ge)}),Ce.timelines=vl,t.append(Le,Ce.timelines);let ng={instruction:Ce,player:se,element:Le};r.push(ng),Ce.queriedElements.forEach(Ge=>ft(s,Ge,[]).push(se)),Ce.preStyleProps.forEach((Ge,Ti)=>{if(Ge.size){let bt=l.get(Ti);bt||l.set(Ti,bt=new Set),Ge.forEach((jn,Mr)=>bt.add(Mr))}}),Ce.postStyleProps.forEach((Ge,Ti)=>{let bt=c.get(Ti);bt||c.set(Ti,bt=new Set),Ge.forEach((jn,Mr)=>bt.add(Mr))})});if(ee.length){let F=[];ee.forEach(V=>{F.push(uh(V.triggerName,V.errors))}),pe.forEach(V=>V.destroy()),this.reportError(F)}let ve=new Map,fe=new Map;r.forEach(F=>{let V=F.element;t.has(V)&&(fe.set(V,V),this._beforeAnimationBuild(F.player.namespaceId,F.instruction,ve))}),n.forEach(F=>{let V=F.element;this._getPreviousPlayers(V,!1,F.namespaceId,F.triggerName,null).forEach(se=>{ft(ve,V,[]).push(se),se.destroy()})});let Se=E.filter(F=>dd(F,l,c)),ze=new Map;cd(ze,this.driver,k,c,Wt).forEach(F=>{dd(F,l,c)&&Se.push(F)});let Yt=new Map;b.forEach((F,V)=>{cd(Yt,this.driver,new Set(F),l,no)}),Se.forEach(F=>{let V=ze.get(F),$=Yt.get(F);ze.set(F,new Map([...V?.entries()??[],...$?.entries()??[]]))});let Pa=[],Hn=[],Fa={};r.forEach(F=>{let{element:V,player:$,instruction:se}=F;if(t.has(V)){if(d.has(V)){$.onDestroy(()=>Ut(V,se.toStyles)),$.disabled=!0,$.overrideTotalTime(se.totalTime),n.push($);return}let Le=Fa;if(fe.size>1){let lt=V,si=[];for(;lt=lt.parentNode;){let Ce=fe.get(lt);if(Ce){Le=Ce;break}si.push(lt)}si.forEach(Ce=>fe.set(Ce,Le))}let Pt=this._buildAnimation($.namespaceId,se,ve,o,Yt,ze);if($.setRealPlayer(Pt),Le===Fa)Pa.push($);else{let lt=this.playersByElement.get(Le);lt&<.length&&($.parentPlayer=wi(lt)),n.push($)}}else Bi(V,se.fromStyles),$.onDestroy(()=>Ut(V,se.toStyles)),Hn.push($),d.has(V)&&n.push($)}),Hn.forEach(F=>{let V=o.get(F.element);if(V&&V.length){let $=wi(V);F.setRealPlayer($)}}),n.forEach(F=>{F.parentPlayer?F.syncPlayerEvents(F.parentPlayer):F.destroy()});for(let F=0;F!Pt.destroyed);Le.length?Kh(this,V,Le):this.processLeaveNode(V)}return E.length=0,Pa.forEach(F=>{this.players.push(F),F.onDone(()=>{F.destroy();let V=this.players.indexOf(F);this.players.splice(V,1)}),F.play()}),Pa}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,a,t,n,o){let r=[];if(a){let s=this.playersByQueriedElement.get(e);s&&(r=s)}else{let s=this.playersByElement.get(e);if(s){let l=!o||o==Dn;s.forEach(c=>{c.queued||!l&&c.triggerName!=n||r.push(c)})}}return(t||n)&&(r=r.filter(s=>!(t&&t!=s.namespaceId||n&&n!=s.triggerName))),r}_beforeAnimationBuild(e,a,t){let n=a.triggerName,o=a.element,r=a.isRemovalTransition?void 0:e,s=a.isRemovalTransition?void 0:n;for(let l of a.timelines){let c=l.element,d=c!==o,g=ft(t,c,[]);this._getPreviousPlayers(c,d,r,s,a.toState).forEach(b=>{let v=b.getRealPlayer();v.beforeDestroy&&v.beforeDestroy(),b.destroy(),g.push(b)})}Bi(o,a.fromStyles)}_buildAnimation(e,a,t,n,o,r){let s=a.triggerName,l=a.element,c=[],d=new Set,g=new Set,x=a.timelines.map(v=>{let T=v.element;d.add(T);let E=T[Ot];if(E&&E.removedBeforeQueried)return new aa(v.duration,v.delay);let w=T!==l,k=Qh((t.get(T)||Uh).map(ve=>ve.getRealPlayer())).filter(ve=>{let fe=ve;return fe.element?fe.element===T:!1}),R=o.get(T),J=r.get(T),pe=md(this._normalizer,v.keyframes,R,J),ee=this._buildPlayer(v,pe,k);if(v.subTimeline&&n&&g.add(T),w){let ve=new En(e,s,T);ve.setRealPlayer(ee),c.push(ve)}return ee});c.forEach(v=>{ft(this.playersByQueriedElement,v.element,[]).push(v),v.onDone(()=>$h(this.playersByQueriedElement,v.element,v))}),d.forEach(v=>St(v,td));let b=wi(x);return b.onDestroy(()=>{d.forEach(v=>xa(v,td)),Ut(l,a.toStyles)}),g.forEach(v=>{ft(n,v,[]).push(b)}),b}_buildPlayer(e,a,t){return a.length>0?this.driver.animate(e.element,a,e.duration,e.delay,e.easing,t):new aa(e.duration,e.delay)}},En=class{constructor(e,a,t){this.namespaceId=e,this.triggerName=a,this.element=t,this._player=new aa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((a,t)=>{a.forEach(n=>Qs(e,t,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let a=this._player;a.triggerCallback&&e.onStart(()=>a.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,a){ft(this._queuedCallbacks,e,[]).push(a)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let a=this._player;a.triggerCallback&&a.triggerCallback(e)}};function $h(i,e,a){let t=i.get(e);if(t){if(t.length){let n=t.indexOf(a);t.splice(n,1)}t.length==0&&i.delete(e)}return t}function Zh(i){return i??null}function Ro(i){return i&&i.nodeType===1}function Yh(i){return i=="start"||i=="done"}function ld(i,e){let a=i.style.display;return i.style.display=e??"none",a}function cd(i,e,a,t,n){let o=[];a.forEach(l=>o.push(ld(l)));let r=[];t.forEach((l,c)=>{let d=new Map;l.forEach(g=>{let x=e.computeStyle(c,g,n);d.set(g,x),(!x||x.length==0)&&(c[Ot]=Gh,r.push(c))}),i.set(c,d)});let s=0;return a.forEach(l=>ld(l,o[s++])),r}function ud(i,e){let a=new Map;if(i.forEach(s=>a.set(s,[])),e.length==0)return a;let t=1,n=new Set(e),o=new Map;function r(s){if(!s)return t;let l=o.get(s);if(l)return l;let c=s.parentNode;return a.has(c)?l=c:n.has(c)?l=t:l=r(c),o.set(s,l),l}return e.forEach(s=>{let l=r(s);l!==t&&a.get(l).push(s)}),a}function St(i,e){i.classList?.add(e)}function xa(i,e){i.classList?.remove(e)}function Kh(i,e,a){wi(a).onDone(()=>i.processLeaveNode(e))}function Qh(i){let e=[];return Sd(i,e),e}function Sd(i,e){for(let a=0;an.add(o)):e.set(i,t),a.delete(i),!0}var Sa=class{constructor(e,a,t){this._driver=a,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(n,o)=>{},this._transitionEngine=new Zs(e.body,a,t),this._timelineEngine=new Gs(e.body,a,t),this._transitionEngine.onRemovalComplete=(n,o)=>this.onRemovalComplete(n,o)}registerTrigger(e,a,t,n,o){let r=e+"-"+n,s=this._triggerCache[r];if(!s){let l=[],c=[],d=yd(this._driver,o,l,c);if(l.length)throw Xf(n,l);c.length&&void 0,s=Hh(n,d,this._normalizer),this._triggerCache[r]=s}this._transitionEngine.registerTrigger(a,n,s)}register(e,a){this._transitionEngine.register(e,a)}destroy(e,a){this._transitionEngine.destroy(e,a)}onInsert(e,a,t,n){this._transitionEngine.insertNode(e,a,t,n)}onRemove(e,a,t){this._transitionEngine.removeNode(e,a,t)}disableAnimations(e,a){this._transitionEngine.markElementAsDisabled(e,a)}process(e,a,t,n){if(t.charAt(0)=="@"){let[o,r]=Xu(t),s=n;this._timelineEngine.command(o,a,r,s)}else this._transitionEngine.trigger(e,a,t,n)}listen(e,a,t,n,o){if(t.charAt(0)=="@"){let[r,s]=Xu(t);return this._timelineEngine.listen(r,a,s,o)}return this._transitionEngine.listen(e,a,t,n,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function e0(i,e){let a=null,t=null;return Array.isArray(e)&&e.length?(a=Ls(e[0]),e.length>1&&(t=Ls(e[e.length-1]))):e instanceof Map&&(a=Ls(e)),a||t?new Ys(i,a,t):null}var wa=class wa{constructor(e,a,t){this._element=e,this._startStyles=a,this._endStyles=t,this._state=0;let n=wa.initialStylesByElement.get(e);n||wa.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&Ut(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ut(this._element,this._initialStyles),this._endStyles&&(Ut(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(wa.initialStylesByElement.delete(this._element),this._startStyles&&(Bi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bi(this._element,this._endStyles),this._endStyles=null),Ut(this._element,this._initialStyles),this._state=3)}};wa.initialStylesByElement=new WeakMap;var Ys=wa;function Ls(i){let e=null;return i.forEach((a,t)=>{t0(t)&&(e=e||new Map,e.set(t,a))}),e}function t0(i){return i==="display"||i==="position"}var Go=class{constructor(e,a,t,n){this.element=e,this.keyframes=a,this.options=t,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let a=()=>this._onFinish();this.domPlayer.addEventListener("finish",a),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",a)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let a=[];return e.forEach(t=>{a.push(Object.fromEntries(t))}),a}_triggerWebAnimation(e,a,t){return e.animate(this._convertKeyframesToObject(a),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,n)=>{n!=="offset"&&e.set(n,this._finished?t:al(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let a=e==="start"?this._onStartFns:this._onDoneFns;a.forEach(t=>t()),a.length=0}},$o=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,a){return pd(e,a)}getParentElement(e){return el(e)}query(e,a,t){return gd(e,a,t)}computeStyle(e,a,t){return al(e,a)}animate(e,a,t,n,o,r=[]){let s=n==0?"both":"forwards",l={duration:t,delay:n,fill:s};o&&(l.easing=o);let c=new Map,d=r.filter(b=>b instanceof Go);xh(t,n)&&d.forEach(b=>{b.currentSnapshot.forEach((v,T)=>c.set(T,v))});let g=vh(a).map(b=>new Map(b));g=wh(e,g,c);let x=e0(e,g);return new Go(e,g,l,x)}};var Ho="@",Cd="@.disabled",Zo=class{constructor(e,a,t,n){this.namespaceId=e,this.delegate=a,this.engine=t,this._onDestroy=n,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,a){return this.delegate.createElement(e,a)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,a){this.delegate.appendChild(e,a),this.engine.onInsert(this.namespaceId,a,e,!1)}insertBefore(e,a,t,n=!0){this.delegate.insertBefore(e,a,t),this.engine.onInsert(this.namespaceId,a,e,n)}removeChild(e,a,t){this.parentNode(a)&&this.engine.onRemove(this.namespaceId,a,this.delegate)}selectRootElement(e,a){return this.delegate.selectRootElement(e,a)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,a,t,n){this.delegate.setAttribute(e,a,t,n)}removeAttribute(e,a,t){this.delegate.removeAttribute(e,a,t)}addClass(e,a){this.delegate.addClass(e,a)}removeClass(e,a){this.delegate.removeClass(e,a)}setStyle(e,a,t,n){this.delegate.setStyle(e,a,t,n)}removeStyle(e,a,t){this.delegate.removeStyle(e,a,t)}setProperty(e,a,t){a.charAt(0)==Ho&&a==Cd?this.disableAnimations(e,!!t):this.delegate.setProperty(e,a,t)}setValue(e,a){this.delegate.setValue(e,a)}listen(e,a,t){return this.delegate.listen(e,a,t)}disableAnimations(e,a){this.engine.disableAnimations(e,a)}},Ks=class extends Zo{constructor(e,a,t,n,o){super(a,t,n,o),this.factory=e,this.namespaceId=a}setProperty(e,a,t){a.charAt(0)==Ho?a.charAt(1)=="."&&a==Cd?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,a.slice(1),t):this.delegate.setProperty(e,a,t)}listen(e,a,t){if(a.charAt(0)==Ho){let n=i0(e),o=a.slice(1),r="";return o.charAt(0)!=Ho&&([o,r]=a0(o)),this.engine.listen(this.namespaceId,n,o,r,s=>{let l=s._data||-1;this.factory.scheduleListenerCallback(l,t,s)})}return this.delegate.listen(e,a,t)}};function i0(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function a0(i){let e=i.indexOf("."),a=i.substring(0,e),t=i.slice(e+1);return[a,t]}var Yo=class{constructor(e,a,t){this.delegate=e,this.engine=a,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,a.onRemovalComplete=(n,o)=>{o?.removeChild(null,n)}}createRenderer(e,a){let t="",n=this.delegate.createRenderer(e,a);if(!e||!a?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let g=()=>c.delete(n);d=new Zo(t,n,this.engine,g),c.set(n,d)}return d}let o=a.id,r=a.id+"-"+this._currentId;this._currentId++,this.engine.register(r,e);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,r,e,c.name,c)};return a.data.animation.forEach(s),new Ks(this,r,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,a,t){if(e>=0&&ea(t));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(o=>{let[r,s]=o;r(s)}),this._animationCallbacksBuffer=[]})}),n.push([a,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var o0=(()=>{let e=class e extends Sa{constructor(t,n,o){super(t,n,o)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(n){return new(n||e)(P(nt),P(Vi),P(Wi))},e.\u0275prov=O({token:e,factory:e.\u0275fac});let i=e;return i})();function r0(){return new Jo}function s0(i,e,a){return new Yo(i,e,a)}var qd=[{provide:Wi,useFactory:r0},{provide:Sa,useClass:o0},{provide:Ml,useFactory:s0,deps:[zl,Sa,Ki]}],l0=[{provide:Vi,useFactory:()=>new $o},{provide:Nr,useValue:"BrowserAnimations"},...qd],u3=[{provide:Vi,useClass:tl},{provide:Nr,useValue:"NoopAnimations"},...qd];function kd(){return El("NgEagerAnimations"),[...l0]}var Ko=new Ne("ANGOR_MOCK_API_DEFAULT_DELAY");var Qo=class{constructor(e,a){this.url=e,this.delay=a,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return Kt(()=>new Error("Execution limit has been reached!"));if(!this._reply)return Kt(()=>new Error("Response callback function does not exist!"));if(!this.request)return Kt(()=>new Error("Request does not exist!"));this._replied++;let e=this._reply({request:this.request,urlParams:this.urlParams});return e instanceof Bn?e.pipe(Ze(1)):vt(e).pipe(Ze(1))}reply(e){this._reply=e}replyCount(e){this._replyCount=e}};var X=(()=>{let e=class e{constructor(){this._handlers={get:new Map,post:new Map,patch:new Map,delete:new Map,put:new Map,head:new Map,jsonp:new Map,options:new Map}}findHandler(t,n){let o={handler:void 0,urlParams:{}},r=n.split("/"),s=this._handlers[t.toLowerCase()];for(let[l,c]of s){let d=l.split("/");if(r.length===d.length&&d.every((x,b)=>x.startsWith(":")||x===r[b])){o.handler=c,o.urlParams=_c(d.map((x,b)=>x.startsWith(":")?[x.substring(1),r[b]]:void 0).filter(Boolean));break}}return o}onGet(t,n){return this._registerHandler("get",t,n)}onPost(t,n){return this._registerHandler("post",t,n)}onPatch(t,n){return this._registerHandler("patch",t,n)}onDelete(t,n){return this._registerHandler("delete",t,n)}onPut(t,n){return this._registerHandler("put",t,n)}onHead(t,n){return this._registerHandler("head",t,n)}onJsonp(t,n){return this._registerHandler("jsonp",t,n)}onOptions(t,n){return this._registerHandler("options",t,n)}_registerHandler(t,n,o){let r=new Qo(n,o);return this._handlers[t].set(n,r),r}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Td=(i,e)=>{let a=I(Ko),t=I(X),{handler:n,urlParams:o}=t.findHandler(i.method.toUpperCase(),i.url);return n?(n.request=i,n.urlParams=o,n.response.pipe(Yi(n.delay??a??0),Je(r=>{if(!r)return Kt(()=>new Hr({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));let s={status:r[0],body:r[1]};return s.status>=200&&s.status<300?vt(new jl({body:s.body,status:s.status,statusText:"OK"})):Kt(()=>new Hr({error:s.body?.error,status:s.status,statusText:"ERROR"}))}))):e(i)};var Te=class{static guid(){let e=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let t=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(a==="x"?t:t&3|8).toString(16)})}};var c0=(i,e,a,t,n,o,r,s)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":i,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":e,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":a,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":t,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":n,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":o,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":r,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":s});function u0(i,e){i&1&&(y(0,"div",1)(1,"button",6),S(2,"mat-icon",7),_()()),i&2&&(m(),f("matDialogClose",void 0),m(),f("svgIcon","heroicons_outline:x-mark"))}function d0(i,e){if(i&1&&(y(0,"div",3),S(1,"mat-icon",8),_()),i&2){let a=h();f("ngClass",Rl(2,c0,a.data.icon.color==="primary",a.data.icon.color==="accent",a.data.icon.color==="warn",a.data.icon.color==="basic",a.data.icon.color==="info",a.data.icon.color==="success",a.data.icon.color==="warning",a.data.icon.color==="error")),m(),f("svgIcon",a.data.icon.name)}}function m0(i,e){if(i&1&&S(0,"div",9),i&2){let a=h(2);f("innerHTML",a.data.title,Xt)}}function p0(i,e){if(i&1&&S(0,"div",10),i&2){let a=h(2);f("innerHTML",a.data.message,Xt)}}function g0(i,e){if(i&1&&(y(0,"div",4),A(1,m0,1,1,"div",9)(2,p0,1,1,"div",10),_()),i&2){let a=h();m(),q(a.data.title?1:-1),m(),q(a.data.message?2:-1)}}function f0(i,e){if(i&1&&(y(0,"button",11),z(1),_()),i&2){let a=h(2);f("matDialogClose","cancelled"),m(),ae(" ",a.data.actions.cancel.label," ")}}function h0(i,e){if(i&1&&(y(0,"button",12),z(1),_()),i&2){let a=h(2);f("color",a.data.actions.confirm.color)("matDialogClose","confirmed"),m(),ae(" ",a.data.actions.confirm.label," ")}}function b0(i,e){if(i&1&&(y(0,"div",5),A(1,f0,2,2,"button",11)(2,h0,2,3,"button",12),_()),i&2){let a=h();m(),q(a.data.actions.cancel.show?1:-1),m(),q(a.data.actions.confirm.show?2:-1)}}var Dd=(()=>{let e=class e{constructor(){this.data=I(gc)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[G],decls:6,vars:4,consts:[[1,"relative","flex","h-full","w-full","flex-col"],[1,"absolute","right-0","top-0","pr-4","pt-4"],[1,"flex","flex-auto","flex-col","items-center","p-8","pb-6","sm:flex-row","sm:items-start","sm:pb-8"],[1,"flex","h-10","w-10","flex-0","items-center","justify-center","rounded-full","sm:mr-4",3,"ngClass"],[1,"mt-4","flex","flex-col","items-center","space-y-1","text-center","sm:mt-0","sm:items-start","sm:pr-8","sm:text-left"],[1,"flex","items-center","justify-center","space-x-3","bg-gray-50","px-6","py-4","dark:bg-black","dark:bg-opacity-10","sm:justify-end"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[1,"text-current",3,"svgIcon"],[1,"text-xl","font-medium","leading-6",3,"innerHTML"],[1,"text-secondary",3,"innerHTML"],["mat-stroked-button","",3,"matDialogClose"],["mat-flat-button","",3,"color","matDialogClose"]],template:function(n,o){n&1&&(y(0,"div",0),A(1,u0,3,2,"div",1),y(2,"div",2),A(3,d0,2,11,"div",3)(4,g0,3,2,"div",4),_(),A(5,b0,3,2,"div",5),_()),n&2&&(m(),q(o.data.dismissible?1:-1),m(2),q(o.data.icon.show?3:-1),m(),q(o.data.title||o.data.message?4:-1),m(),q(o.data.actions.confirm.show||o.data.actions.cancel.show?5:-1))},dependencies:[et,Sc,Xe,so,hc,be,he,_e],styles:[`@media (min-width: 960px){.angor-confirmation-dialog-panel{width:32rem}}.angor-confirmation-dialog-panel .mat-mdc-dialog-container .mat-mdc-dialog-surface{padding:0!important} `],encapsulation:2});let i=e;return i})();var Ad=(()=>{let e=class e{constructor(){this._matDialog=I(fc),this._defaultConfig={title:"Confirm action",message:"Are you sure you want to confirm this action?",icon:{show:!0,name:"heroicons_outline:exclamation-triangle",color:"warn"},actions:{confirm:{show:!0,label:"Confirm",color:"warn"},cancel:{show:!0,label:"Cancel"}},dismissible:!1}}open(t={}){let n=co({},this._defaultConfig,t);return this._matDialog.open(Dd,{autoFocus:!1,disableClose:!n.dismissible,data:n,panelClass:"angor-confirmation-dialog-panel"})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ca=(()=>{let e=class e{constructor(){this._auto$=new Ft(!0),this._mode$=new Ft("indeterminate"),this._progress$=new Ft(0),this._show$=new Ft(!1),this._urlMap=new Map}get auto$(){return this._auto$.asObservable()}get mode$(){return this._mode$.asObservable()}get progress$(){return this._progress$.asObservable()}get show$(){return this._show$.asObservable()}show(){this._show$.next(!0)}hide(){this._show$.next(!1)}setAutoMode(t){this._auto$.next(t)}setMode(t){this._mode$.next(t)}setProgress(t){if(t<0||t>100){console.error("Progress value must be between 0 and 100!");return}this._progress$.next(t)}_setLoadingStatus(t,n){if(!n){console.error("The request URL must be provided!");return}t===!0?(this._urlMap.set(n,t),this._show$.next(!0)):t===!1&&this._urlMap.has(n)&&this._urlMap.delete(n),this._urlMap.size===0&&this._show$.next(!1)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Id=(i,e)=>{let a=I(Ca),t=!1;return a.auto$.pipe(Ze(1)).subscribe(n=>{t=n}),t?(a._setLoadingStatus(!0,i.url),e(i).pipe(Cl(()=>{a._setLoadingStatus(!1,i.url)}))):e(i)};var er=(()=>{let e=class e{constructor(){this._platform=I(ia),this.osName="os-unknown",this._platform.isBrowser&&(navigator.userAgent.includes("Win")&&(this.osName="os-windows"),navigator.userAgent.includes("Mac")&&(this.osName="os-mac"),navigator.userAgent.includes("X11")&&(this.osName="os-unix"),navigator.userAgent.includes("Linux")&&(this.osName="os-linux"),this._platform.IOS&&(this.osName="os-ios"),this._platform.ANDROID&&(this.osName="os-android"))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Md=(()=>{let e=class e{constructor(){this._document=I(nt),this._router=I(je),this._router.events.pipe($e(t=>t instanceof Vt),Ze(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Ed=i=>{let e=[{provide:Ql,useValue:{doctype:!0,theme:!1,version:!0}},{provide:vc,useValue:{appearance:"fill"}},{provide:Ko,useValue:i?.mockApi?.delay??0},{provide:wc,useValue:i?.angor??{}},Al(so),{provide:Qt,useValue:()=>I(Ad),multi:!0},Ua(jr([Id])),{provide:Qt,useValue:()=>I(Ca),multi:!0},{provide:Qt,useValue:()=>I(pi),multi:!0},{provide:Qt,useValue:()=>I(er),multi:!0},{provide:Qt,useValue:()=>I(Md),multi:!0},{provide:Qt,useValue:()=>I(qt),multi:!0}];return i?.mockApi?.services&&e.push(Ua(jr([Td])),{provide:Wa,deps:[...i.mockApi.services],useFactory:()=>()=>null,multi:!0}),e};function Od(i){return i&&i.constructor&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function Nd(i){return i}function rl(i,e){e=e||{};let a=e.delimiter||".",t=e.maxDepth,n=e.transformKey||Nd,o={};function r(s,l,c){c=c||1,Object.keys(s).forEach(function(d){let g=s[d],x=e.safe&&Array.isArray(g),b=Object.prototype.toString.call(g),v=Od(g),T=b==="[object Object]"||b==="[object Array]",E=l?l+a+n(d):n(d);if(!x&&!v&&T&&Object.keys(g).length&&(!e.maxDepth||c0&&(x=s(g.shift()),b=s(g[0]))}v[x]=sl(i[d],e)}),o}var cl=class{translations;constructor(e){this.translations=e}getTranslation(e){return vt(this.translations.get(e)||{})}},Rd=new Ne("TRANSLOCO_LOADER");function Ld(i,e){return i&&(Object.prototype.hasOwnProperty.call(i,e)?i[e]:e.split(".").reduce((a,t)=>a?.[t],i))}function y0(i,e,a){i=M({},i);let t=e.split("."),n=t.length-1;return t.reduce((o,r,s)=>(s===n?o[r]=a:o[r]=Array.isArray(o[r])?o[r].slice():M({},o[r]),o&&o[r]),i),i}function Hd(i){return i?Array.isArray(i)?i.length:dl(i)?Object.keys(i).length:i?i.length:0:0}function _0(i){return Hd(i)===0}function x0(i){return typeof i=="function"}function tr(i){return typeof i=="string"}function dl(i){return!!i&&typeof i=="object"&&!Array.isArray(i)}function w0(i){return i.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,a)=>a==0?e.toLowerCase():e.toUpperCase()).replace(/\s+|_|-|\//g,"")}function ul(i){return i==null}function Pd(i){return ul(i)===!1}function jd(i){return i&&typeof i.scope=="string"}function S0(i){return Array.isArray(i)&&i.every(jd)}function C0(i){return i&&dl(i.loader)}function q0(i){return sl(i)}function Fd(i){return rl(i,{safe:!0})}var qa=new Ne("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>On}),On={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function k0(i={}){return ne(M(M({},On),i),{missingHandler:M(M({},On.missingHandler),i.missingHandler),flatten:M(M({},On.flatten),i.flatten)})}var zd=new Ne("TRANSLOCO_TRANSPILER"),T0=(()=>{class i{interpolationMatcher;constructor(a){this.interpolationMatcher=D0(a??On)}transpile(a,t={},n,o){return tr(a)?a.replace(this.interpolationMatcher,(r,s)=>(s=s.trim(),Pd(t[s])?t[s]:Pd(n[s])?this.transpile(n[s],t,n,o):"")):(t&&(dl(a)?a=this.handleObject(a,t,n,o):Array.isArray(a)&&(a=this.handleArray(a,t,n,o))),a)}handleObject(a,t={},n,o){let r=a;return Object.keys(t).forEach(s=>{let l=Ld(r,s),c=Ld(t,s),d=this.transpile(l,c,n,o);r=y0(r,s,d)}),r}handleArray(a,t={},n,o){return a.map(r=>this.transpile(r,t,n,o))}static \u0275fac=function(t){return new(t||i)(P(qa,8))};static \u0275prov=O({token:i,factory:i.\u0275fac})}return i})();function D0(i){let[e,a]=i.interpolation;return new RegExp(`${e}(.*?)${a}`,"g")}var Jd=new Ne("TRANSLOCO_MISSING_HANDLER"),A0=(()=>{class i{handle(a,t){if(t.missingHandler.logMissingKey&&!t.prodMode){let n=`Missing translation for '${a}'`;console.warn(`%c ${n}`,"font-size: 12px; color: red")}return a}static \u0275fac=function(t){return new(t||i)};static \u0275prov=O({token:i,factory:i.\u0275fac})}return i})(),Bd=new Ne("TRANSLOCO_INTERCEPTOR"),I0=(()=>{class i{preSaveTranslation(a){return a}preSaveTranslationKey(a,t){return t}static \u0275fac=function(t){return new(t||i)};static \u0275prov=O({token:i,factory:i.\u0275fac})}return i})(),Vd=new Ne("TRANSLOCO_FALLBACK_STRATEGY"),M0=(()=>{class i{userConfig;constructor(a){this.userConfig=a}getNextLangs(){let a=this.userConfig.fallbackLang;if(!a)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(a)?a:[a]}static \u0275fac=function(t){return new(t||i)(P(qa))};static \u0275prov=O({token:i,factory:i.\u0275fac})}return i})();function ir(i){if(!i)return"";let e=i.split("/");return e.pop(),e.join("/")}function Gi(i){return i?i.split("/").pop():""}function E0(i,e){return Object.keys(i).reduce((a,t)=>(a[`${e}/${t}`]=i[t],a),{})}function O0(i,e){return C0(i)?E0(i.loader,e):void 0}function ll(i){return{scope:ir(i)||null,langName:Gi(i)}}function Wd(i){let{path:e,inlineLoader:a,mainLoader:t,data:n}=i;if(a){let o=a[e];if(x0(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${e}`;return a[e]().then(r=>r.default?r.default:r)}return t.getTranslation(e,n)}function N0({mainLoader:i,path:e,data:a,fallbackPath:t,inlineLoader:n}){return(t?[e,t]:[e]).map(r=>{let s=Wd({path:r,mainLoader:i,inlineLoader:n,data:a});return Ha(s).pipe(Ee(l=>({translation:l,lang:r})))})}var L0;var Ud=(()=>{class i{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;subscription=null;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new Z;events$=this.events.asObservable();config;constructor(a,t,n,o,r,s){this.loader=a,this.parser=t,this.missingHandler=n,this.interceptor=o,this.fallbackStrategy=s,this.loader||(this.loader=new cl(this.translations)),L0=this,this.config=JSON.parse(JSON.stringify(r)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Ft(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(l=>{l.type==="translationLoadSuccess"&&l.wasFailure&&this.setActiveLang(l.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(a){this.defaultLang=a}getActiveLang(){return this.lang.getValue()}setActiveLang(a){return this.parser.onLangChanged?.(a),this.lang.next(a),this.events.next({type:"langChanged",payload:ll(a)}),this}setAvailableLangs(a){this.availableLangs=a}getAvailableLangs(){return this.availableLangs}load(a,t={}){let n=this.cache.get(a);if(n)return n;let o,r=this._isLangScoped(a),s;r&&(s=ir(a));let l={path:a,mainLoader:this.loader,inlineLoader:t.inlineLoader,data:r?{scope:s}:void 0};if(this.useFallbackTranslation(a)){let d=r?`${s}/${this.firstFallbackLang}`:this.firstFallbackLang,g=N0(ne(M({},l),{fallbackPath:d}));o=Wn(g)}else{let d=Wd(l);o=Ha(d)}let c=o.pipe(ql(this.config.failedRetries),Ht(d=>{if(Array.isArray(d)){d.forEach(g=>{this.handleSuccess(g.lang,g.translation),g.lang!==a&&this.cache.set(g.lang,vt({}))});return}this.handleSuccess(a,d)}),Sl(d=>(this.config.prodMode||console.error(`Error while trying to load "${a}"`,d),this.handleFailure(a,t))),kl(1));return this.cache.set(a,c),c}translate(a,t={},n=this.getActiveLang()){if(!a)return a;let{scope:o,resolveLang:r}=this.resolveLangAndScope(n);if(Array.isArray(a))return a.map(c=>this.translate(o?`${o}.${c}`:c,t,r));a=o?`${o}.${a}`:a;let s=this.getTranslation(r),l=s[a];return l?this.parser.transpile(l,t,s,a):this._handleMissingKey(a,l,t)}selectTranslate(a,t,n,o=!1){let r,s=(c,d)=>this.load(c,d).pipe(Ee(()=>o?this.translateObject(a,t,c):this.translate(a,t,c)));if(ul(n))return this.langChanges$.pipe(Je(c=>s(c)));if(S0(n)||jd(n)){let c=Array.isArray(n)?n[0]:n;n=c.scope,r=O0(c,c.scope)}if(n=n,this.isLang(n)||this.isScopeWithLang(n))return s(n);let l=n;return this.langChanges$.pipe(Je(c=>s(`${l}/${c}`,{inlineLoader:r})))}isScopeWithLang(a){return this.isLang(Gi(a))}translateObject(a,t={},n=this.getActiveLang()){if(tr(a)||Array.isArray(a)){let{resolveLang:r,scope:s}=this.resolveLangAndScope(n);if(Array.isArray(a))return a.map(d=>this.translateObject(s?`${s}.${d}`:d,t,r));let l=this.getTranslation(r);a=s?`${s}.${a}`:a;let c=q0(this.getObjectByKey(l,a));return _0(c)?this.translate(a,t,n):this.parser.transpile(c,t,l,a)}let o=[];for(let[r,s]of this.getEntries(a))o.push(this.translateObject(r,s,n));return o}selectTranslateObject(a,t,n){if(tr(a)||Array.isArray(a))return this.selectTranslate(a,t,n,!0);let[[o,r],...s]=this.getEntries(a);return this.selectTranslateObject(o,r,n).pipe(Ee(l=>{let c=[l];for(let[d,g]of s)c.push(this.translateObject(d,g,n));return c}))}getTranslation(a){if(a){if(this.isLang(a))return this.translations.get(a)||{};{let{scope:t,resolveLang:n}=this.resolveLangAndScope(a),o=this.translations.get(n)||{};return this.getObjectByKey(o,t)}}return this.translations}selectTranslation(a){let t=this.langChanges$;if(a){let n=Gi(a)!==a;this.isLang(a)||n?t=vt(a):t=this.langChanges$.pipe(Ee(o=>`${a}/${o}`))}return t.pipe(Je(n=>this.load(n).pipe(Ee(()=>this.getTranslation(n)))))}setTranslation(a,t=this.getActiveLang(),n={}){let r=M(M({},{merge:!0,emitChange:!0}),n),s=ir(t),l=a;if(s){let b=this.getMappedScope(s);l=Fd({[b]:a})}let c=s?Gi(t):t,d=M(M({},r.merge&&this.getTranslation(c)),l),g=this.config.flatten.aot?d:Fd(d),x=this.interceptor.preSaveTranslation(g,c);this.translations.set(c,x),r.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(a,t,n=this.getActiveLang(),o={}){let r=this.interceptor.preSaveTranslationKey(a,t,n),s={[a]:r};this.setTranslation(s,n,ne(M({},o),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:a}){let t=Array.isArray(a)?a[0]:a;a&&this.useFallbackTranslation(t)&&(this.firstFallbackLang=t)}_handleMissingKey(a,t,n){if(this.config.missingHandler.allowEmpty&&t==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(a,n,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(a,this.getMissingHandlerData(),n)}_isLangScoped(a){return this.getAvailableLangsIds().indexOf(a)===-1}isLang(a){return this.getAvailableLangsIds().indexOf(a)!==-1}_loadDependencies(a,t){let n=Gi(a);return this._isLangScoped(a)&&!this.isLoadedTranslation(n)?Vn([this.load(n),this.load(a,{inlineLoader:t})]):this.load(a,{inlineLoader:t})}_completeScopeWithLang(a){return this._isLangScoped(a)&&!this.isLang(Gi(a))?`${a}/${this.getActiveLang()}`:a}_setScopeAlias(a,t){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[a]=t}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(a){return Hd(this.getTranslation(a))}getAvailableLangsIds(){let a=this.getAvailableLangs()[0];return tr(a)?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return ne(M({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(a){return this.config.missingHandler.useFallbackTranslation&&a!==this.firstFallbackLang}handleSuccess(a,t){this.setTranslation(t,a,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:ll(a)}),this.failedLangs.forEach(n=>this.cache.delete(n)),this.failedLangs.clear()}handleFailure(a,t){ul(t.failedCounter)&&(t.failedCounter=0,t.fallbackLangs||(t.fallbackLangs=this.fallbackStrategy.getNextLangs(a)));let n=a.split("/"),r=t.fallbackLangs[t.failedCounter];if(this.failedLangs.add(a),this.cache.has(r))return this.handleSuccess(r,this.getTranslation(r)),_l;let s=r===n[n.length-1];if(!r||s){let c="Unable to load translation and all the fallback languages";throw n.length>1&&(c+=", did you misspelled the scope name?"),new Error(c)}let l=r;return n.length>1&&(n[n.length-1]=r,l=n.join("/")),t.failedCounter++,this.events.next({type:"translationLoadFailure",payload:ll(a)}),this.load(l,t)}getMappedScope(a){let{scopeMapping:t={}}=this.config;return t[a]||w0(a)}resolveLangAndScope(a){let t=a,n;if(this._isLangScoped(a)){let o=Gi(a),r=this.isLang(o);t=r?o:this.getActiveLang(),n=this.getMappedScope(r?ir(a):a)}return{scope:n,resolveLang:t}}getObjectByKey(a,t){let n={},o=`${t}.`;for(let r in a)r.startsWith(o)&&(n[r.replace(o,"")]=a[r]);return n}getEntries(a){return a instanceof Map?a.entries():Object.entries(a)}static \u0275fac=function(t){return new(t||i)(P(Rd,8),P(zd),P(Jd),P(Bd),P(qa),P(Vd))};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var r5=new Ne("TRANSLOCO_LANG"),s5=new Ne("TRANSLOCO_LOADING_TEMPLATE"),l5=new Ne("TRANSLOCO_SCOPE");function Gd(i){let e=[R0(T0),j0(A0),z0(I0),H0(M0)];return i.config&&e.push(P0(i.config)),i.loader&&e.push(F0(i.loader)),e}function P0(i){return Ii([{provide:qa,useValue:k0(i)}])}function F0(i){return Ii([{provide:Rd,useClass:i}])}function R0(i){return Ii([{provide:zd,useClass:i,deps:[qa]}])}function H0(i){return Ii([{provide:Vd,useClass:i,deps:[qa]}])}function j0(i){return Ii([{provide:Jd,useClass:i}])}function z0(i){return Ii([{provide:Bd,useClass:i}])}var c5=new Ne("TRANSLOCO_TEST_LANGS - Available testing languages"),u5=new Ne("TRANSLOCO_TEST_OPTIONS - Testing options");var ka=(()=>{let e=class e{constructor(){this._httpClient=I(ci),this._navigation=new Rt(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/common/navigation").pipe(Ht(t=>{this._navigation.next(t)}))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var ar=(()=>{let e=class e{constructor(t){this._httpClient=t,this._notifications=new Rt(1)}get notifications$(){return this._notifications.asObservable()}getAll(){return this._httpClient.get("api/common/notifications").pipe(Ht(t=>{this._notifications.next(t)}))}create(t){return this.notifications$.pipe(Ze(1),Je(n=>this._httpClient.post("api/common/notifications",{notification:t}).pipe(Ee(o=>(this._notifications.next([...n,o]),o)))))}update(t,n){return this.notifications$.pipe(Ze(1),Je(o=>this._httpClient.patch("api/common/notifications",{id:t,notification:n}).pipe(Ee(r=>{let s=o.findIndex(l=>l.id===t);return o[s]=r,this._notifications.next(o),r}))))}delete(t){return this.notifications$.pipe(Ze(1),Je(n=>this._httpClient.delete("api/common/notifications",{params:{id:t}}).pipe(Ee(o=>{let r=n.findIndex(s=>s.id===t);return n.splice(r,1),this._notifications.next(n),o}))))}markAllAsRead(){return this.notifications$.pipe(Ze(1),Je(t=>this._httpClient.get("api/common/notifications/mark-all-as-read").pipe(Ee(n=>(t.forEach((o,r)=>{t[r].read=!0}),this._notifications.next(t),n)))))}};e.\u0275fac=function(n){return new(n||e)(P(ci))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var nr=(()=>{let e=class e{constructor(t){this._httpClient=t,this._chat=new Ft(null),this._chats=new Ft(null)}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}getChats(){return this._httpClient.get("api/apps/chat/chats").pipe(Ht(t=>{this._chats.next(t)}))}getChatById(t){return this._httpClient.get("api/apps/chat/chat",{params:{id:t}}).pipe(Ee(n=>(this._chat.next(n),n)),Je(n=>n?vt(n):Kt("Could not found chat with id of "+t+"!")))}};e.\u0275fac=function(n){return new(n||e)(P(ci))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Yd=()=>{let i=I(ka),e=I(ar),a=I(nr);return Wn([i.get(),e.getAll(),a.getChats()])};var or=class{constructor(e){this.version=e,this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}};var Ta=new or("0.0.1").full;function V0(i,e){if(i&1&&S(0,"mat-progress-bar",0),i&2){let a=h();f("mode",a.mode)("value",a.progress)}}var Da=(()=>{let e=class e{constructor(){this._angorLoadingService=I(Ca),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new Z}ngOnChanges(t){"autoMode"in t&&this._angorLoadingService.setAutoMode(mi(t.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.mode=t}),this._angorLoadingService.progress$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.progress=t}),this._angorLoadingService.show$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.show=t})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],standalone:!0,features:[tt,G],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(n,o){n&1&&A(0,V0,1,2,"mat-progress-bar",0),n&2&&q(o.show?0:-1)},dependencies:[kc,qc],styles:[`angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px} `],encapsulation:2});let i=e;return i})();function W0(i,e){i&1&&S(0,"router-outlet")}var Qd=(()=>{let e=class e{constructor(){this._unsubscribeAll=new Z}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["empty-layout"]],standalone:!0,features:[G],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(n,o){n&1&&(S(0,"angor-loading-bar"),y(1,"div",0)(2,"div",1),A(3,W0,1,0,"router-outlet"),_()()),n&2&&(m(3),q(3))},dependencies:[Da,ui],encapsulation:2});let i=e;return i})();function U0(i,e){i&1&&S(0,"mat-icon",3)}var rr=(()=>{let e=class e{constructor(){this._document=I(nt)}toggleFullscreen(){if(!this._document.fullscreenEnabled){console.log("Fullscreen is not available in this browser.");return}this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")})}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],standalone:!0,features:[G],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(n,o){if(n&1){let r=re();y(0,"button",1),Y("click",function(){return K(r),Q(o.toggleFullscreen())}),ye(1,2),_(),A(2,U0,1,0,"ng-template",null,0,it)}if(n&2){let r=te(3);f("matTooltip",o.tooltip||"Toggle Fullscreen"),m(),f("ngTemplateOutlet",o.iconTpl||r)}},dependencies:[et,Xe,rt,ot,yt,be,he],encapsulation:2,changeDetection:0});let i=e;return i})();var ge=(()=>{let e=class e{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(t,n){this._componentRegistry.set(t,n)}deregisterComponent(t){this._componentRegistry.delete(t)}getComponent(t){return this._componentRegistry.get(t)}storeNavigation(t,n){this._navigationStore.set(t,n)}getNavigation(t){return this._navigationStore.get(t)??[]}deleteNavigation(t){this._navigationStore.has(t)||console.warn(`Navigation with the key '${t}' does not exist.`),this._navigationStore.delete(t)}getFlatNavigation(t,n=[]){for(let o of t)o.type==="basic"?n.push(o):o.children&&this.getFlatNavigation(o.children,n);return n}getItem(t,n){for(let o of n){if(o.id===t)return o;if(o.children){let r=this.getItem(t,o.children);if(r)return r}}return null}getItemParent(t,n,o){for(let r of n){if(r.id===t)return o;if(r.children){let s=this.getItemParent(t,r.children,r);if(s)return s}}return null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var sr=i=>({"angor-horizontal-navigation-item-active-forced":i}),em=i=>[i];function G0(i,e){i&1&&ye(0)}function $0(i,e){if(i&1&&(y(0,"div",2),A(1,G0,1,0,"ng-container",7),_()),i&2){let a,t,n,o,r=h(),s=te(9);f("ngClass",qe(10,sr,r.item.active))("routerLink",qe(12,em,r.item.link))("fragment",(a=r.item.fragment)!==null&&a!==void 0?a:null)("preserveFragment",(t=r.item.preserveFragment)!==null&&t!==void 0?t:!1)("queryParams",(n=r.item.queryParams)!==null&&n!==void 0?n:null)("queryParamsHandling",(o=r.item.queryParamsHandling)!==null&&o!==void 0?o:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",r.isActiveMatchOptions)("matTooltip",r.item.tooltip||""),m(),f("ngTemplateOutlet",s)}}function Z0(i,e){i&1&&ye(0)}function Y0(i,e){if(i&1&&(y(0,"a",3),A(1,Z0,1,0,"ng-container",7),_()),i&2){let a=h(),t=te(9);f("href",a.item.link,Ye)("target",a.item.target||"_self")("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function K0(i,e){i&1&&ye(0)}function Q0(i,e){if(i&1){let a=re();y(0,"div",8),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,K0,1,0,"ng-container",7),_()}if(i&2){let a=h(),t=te(9);f("ngClass",qe(3,sr,a.item.active))("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function X0(i,e){i&1&&ye(0)}function eb(i,e){if(i&1){let a=re();y(0,"div",9),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,X0,1,0,"ng-container",7),_()}if(i&2){let a,t,n,o,r=h(),s=te(9);f("ngClass",qe(10,sr,r.item.active))("routerLink",qe(12,em,r.item.link))("fragment",(a=r.item.fragment)!==null&&a!==void 0?a:null)("preserveFragment",(t=r.item.preserveFragment)!==null&&t!==void 0?t:!1)("queryParams",(n=r.item.queryParams)!==null&&n!==void 0?n:null)("queryParamsHandling",(o=r.item.queryParamsHandling)!==null&&o!==void 0?o:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",r.isActiveMatchOptions)("matTooltip",r.item.tooltip||""),m(),f("ngTemplateOutlet",s)}}function tb(i,e){i&1&&ye(0)}function ib(i,e){if(i&1){let a=re();y(0,"a",10),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,tb,1,0,"ng-container",7),_()}if(i&2){let a=h(),t=te(9);f("href",a.item.link,Ye)("target",a.item.target||"_self")("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function ab(i,e){i&1&&ye(0)}function nb(i,e){if(i&1&&(y(0,"div",4),A(1,ab,1,0,"ng-container",7),_()),i&2){let a=h(),t=te(9);f("ngClass",qe(3,sr,a.item.active))("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function ob(i,e){i&1&&ye(0)}function rb(i,e){if(i&1&&(y(0,"div",6),A(1,ob,1,0,"ng-container",7),_()),i&2){h();let a=te(9);m(),f("ngTemplateOutlet",a)}}function sb(i,e){if(i&1&&S(0,"mat-icon",11),i&2){let a=h(2);f("ngClass",a.item.classes==null?null:a.item.classes.icon)("svgIcon",a.item.icon)}}function lb(i,e){if(i&1&&(y(0,"div",15)(1,"span",14),z(2),_()()),i&2){let a=h(2);m(),f("ngClass",a.item.classes==null?null:a.item.classes.subtitle),m(),ae(" ",a.item.subtitle," ")}}function cb(i,e){if(i&1&&(y(0,"div",16)(1,"div",17),z(2),_()()),i&2){let a=h(2);m(),f("ngClass",a.item.badge.classes),m(),ae(" ",a.item.badge.title," ")}}function ub(i,e){if(i&1&&(A(0,sb,1,2,"mat-icon",11),y(1,"div",12)(2,"div",13)(3,"span",14),z(4),_()(),A(5,lb,3,2,"div",15),_(),A(6,cb,3,2,"div",16)),i&2){let a=h();q(a.item.icon?0:-1),m(3),f("ngClass",a.item.classes==null?null:a.item.classes.title),m(),ae(" ",a.item.title," "),m(),q(a.item.subtitle?5:-1),m(),q(a.item.badge?6:-1)}}var lr=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._angorUtilsService=I(qt),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new Z}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorHorizontalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"href","target","matTooltip"],[1,"angor-horizontal-navigation-item","angor-horizontal-navigation-item-disabled"],[4,"ngTemplateOutlet"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-horizontal-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],["mat-menu-item","",1,"angor-horizontal-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(n,o){n&1&&(y(0,"div",1),A(1,$0,2,14,"div",2)(2,Y0,2,4,"a",3)(3,Q0,2,5,"div",4)(4,eb,2,14,"div",2)(5,ib,2,4,"a",5)(6,nb,2,5,"div",4)(7,rb,2,1,"div",6),_(),A(8,ub,7,5,"ng-template",null,0,it)),n&2&&(Ke("angor-horizontal-navigation-item-has-subtitle",!!o.item.subtitle),f("ngClass",o.item.classes==null?null:o.item.classes.wrapper),m(),q(o.item.link&&!o.item.externalLink&&!o.item.function&&!o.item.disabled?1:-1),m(),q(o.item.link&&o.item.externalLink&&!o.item.function&&!o.item.disabled?2:-1),m(),q(!o.item.link&&o.item.function&&!o.item.disabled?3:-1),m(),q(o.item.link&&!o.item.externalLink&&o.item.function&&!o.item.disabled?4:-1),m(),q(o.item.link&&o.item.externalLink&&o.item.function&&!o.item.disabled?5:-1),m(),q(!o.item.link&&!o.item.function&&!o.item.disabled?6:-1),m(),q(o.item.disabled?7:-1))},dependencies:[_e,di,Xn,rt,ot,yt,oa,na,be,he],encapsulation:2,changeDetection:0});let i=e;return i})();var tm=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._unsubscribeAll=new Z}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(n,o){n&1&&S(0,"div",0),n&2&&f("ngClass",o.item.classes==null?null:o.item.classes.wrapper)},dependencies:[_e],encapsulation:2,changeDetection:0});let i=e;return i})();var db=["matMenu"],mb=(i,e)=>({"angor-horizontal-navigation-menu-active":i,"angor-horizontal-navigation-menu-active-forced":e}),im=i=>({$implicit:i}),pb=(i,e)=>({"angor-horizontal-navigation-item-disabled":i,"angor-horizontal-navigation-item-active-forced":e});function gb(i,e){i&1&&ye(0)}function fb(i,e){if(i&1){let a=re();y(0,"div",6,2),Y("onMenuOpen",function(){K(a);let n=h();return Q(n.triggerChangeDetection())})("onMenuClose",function(){K(a);let n=h();return Q(n.triggerChangeDetection())}),A(2,gb,1,0,"ng-container",7),_()}if(i&2){let a=te(1),t=h(),n=te(2),o=te(6);f("ngClass",Ct(4,mb,a.menuOpen,t.item.active))("matMenuTriggerFor",n),m(2),f("ngTemplateOutlet",o)("ngTemplateOutletContext",qe(7,im,t.item))}}function hb(i,e){if(i&1&&(y(0,"div",8),S(1,"angor-horizontal-navigation-basic-item",11),_()),i&2){let a=h(2).$implicit,t=h();f("disabled",a.disabled),m(),f("item",a)("name",t.name)}}function bb(i,e){i&1&&ye(0)}function vb(i,e){if(i&1&&(y(0,"div",9),A(1,bb,1,0,"ng-container",7),S(2,"angor-horizontal-navigation-branch-item",12,3),_()),i&2){let a=te(3),t=h(2).$implicit,n=h(),o=te(6);f("disabled",t.disabled)("matMenuTriggerFor",a.matMenu),m(),f("ngTemplateOutlet",o)("ngTemplateOutletContext",qe(7,im,t)),m(),f("child",!0)("item",t)("name",n.name)}}function yb(i,e){if(i&1&&(y(0,"div",10),S(1,"angor-horizontal-navigation-divider-item",11),_()),i&2){let a=h(2).$implicit,t=h();m(),f("item",a)("name",t.name)}}function _b(i,e){if(i&1&&A(0,hb,2,3,"div",8)(1,vb,4,9,"div",9)(2,yb,2,2,"div",10),i&2){let a=h().$implicit;q(a.type==="basic"?0:-1),m(),q(a.type==="aside"||a.type==="collapsable"||a.type==="group"?1:-1),m(),q(a.type==="divider"?2:-1)}}function xb(i,e){if(i&1&&A(0,_b,3,3),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}function wb(i,e){if(i&1&&S(0,"mat-icon",15),i&2){let a=h().$implicit;f("ngClass",a.classes==null?null:a.classes.icon)("svgIcon",a.icon)}}function Sb(i,e){if(i&1&&(y(0,"div",19)(1,"span",18),z(2),_()()),i&2){let a=h().$implicit;m(),f("ngClass",a.classes==null?null:a.classes.subtitle),m(),ae(" ",a.subtitle," ")}}function Cb(i,e){if(i&1&&(y(0,"div",20)(1,"div",21),z(2),_()()),i&2){let a=h().$implicit;m(),f("ngClass",a.badge.classes),m(),ae(" ",a.badge.title," ")}}function qb(i,e){if(i&1&&(y(0,"div",13)(1,"div",14),A(2,wb,1,2,"mat-icon",15),y(3,"div",16)(4,"div",17)(5,"span",18),z(6),_()(),A(7,Sb,3,2,"div",19),_(),A(8,Cb,3,2,"div",20),_()()),i&2){let a=e.$implicit;Ke("angor-horizontal-navigation-item-has-subtitle",!!a.subtitle),f("ngClass",a.classes==null?null:a.classes.wrapper),m(),f("ngClass",Ct(10,pb,a.disabled,a.active))("matTooltip",a.tooltip||""),m(),q(a.icon?2:-1),m(3),f("ngClass",a.classes==null?null:a.classes.title),m(),ae(" ",a.title," "),m(),q(a.subtitle?7:-1),m(),q(a.badge?8:-1)}}var am=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this.child=!1,this._unsubscribeAll=new Z}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(t,n){return n.id||t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(n,o){if(n&1&&Qe(db,7),n&2){let r;Re(r=He())&&(o.matMenu=r.first)}},inputs:{child:"child",item:"item",name:"name"},standalone:!0,features:[G],decls:7,vars:2,consts:[["matMenu","matMenu"],["itemTemplate",""],["trigger","matMenuTrigger"],["branch",""],[3,"ngClass","matMenuTriggerFor"],[1,"angor-horizontal-navigation-menu-panel",3,"overlapTrigger"],[3,"onMenuOpen","onMenuClose","ngClass","matMenuTriggerFor"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"angor-horizontal-navigation-menu-item"],[3,"item","name"],[3,"child","item","name"],[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"],[1,"angor-horizontal-navigation-item",3,"ngClass","matTooltip"],[1,"angor-horizontal-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-horizontal-navigation-item-title-wrapper"],[1,"angor-horizontal-navigation-item-title"],[3,"ngClass"],[1,"angor-horizontal-navigation-item-subtitle","text-hint"],[1,"angor-horizontal-navigation-item-badge"],[1,"angor-horizontal-navigation-item-badge-content",3,"ngClass"]],template:function(n,o){n&1&&(A(0,fb,3,9,"div",4),y(1,"mat-menu",5,0),Pe(3,xb,1,1,null,null,o.trackByFn,!0),_(),A(5,qb,9,13,"ng-template",null,1,it)),n&2&&(q(o.child?-1:0),m(),f("overlapTrigger",!1),m(2),Fe(o.item.children))},dependencies:()=>[e,_e,oa,uo,na,mo,yt,lr,tm,rt,ot,be,he],encapsulation:2,changeDetection:0});let i=e;return i})();var nm=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._unsubscribeAll=new Z}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(n,o){n&1&&S(0,"div",0),n&2&&f("ngClass",o.item.classes==null?null:o.item.classes.wrapper)},dependencies:[_e],encapsulation:2,changeDetection:0});let i=e;return i})();function kb(i,e){if(i&1&&S(0,"angor-horizontal-navigation-basic-item",1),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Tb(i,e){if(i&1&&S(0,"angor-horizontal-navigation-branch-item",1),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Db(i,e){if(i&1&&S(0,"angor-horizontal-navigation-spacer-item",1),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Ab(i,e){if(i&1&&A(0,kb,1,2,"angor-horizontal-navigation-basic-item",1)(1,Tb,1,2,"angor-horizontal-navigation-branch-item",1)(2,Db,1,2,"angor-horizontal-navigation-spacer-item",1),i&2){let a=h().$implicit;q(a.type==="basic"?0:-1),m(),q(a.type==="aside"||a.type==="collapsable"||a.type==="group"?1:-1),m(),q(a.type==="spacer"?2:-1)}}function Ib(i,e){if(i&1&&A(0,Ab,3,3),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}var om=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._angorUtilsService=I(qt),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new Rt(1),this._unsubscribeAll=new Z}ngOnChanges(t){"navigation"in t&&this._changeDetectorRef.markForCheck()}ngOnInit(){this.name===""&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this)}ngOnDestroy(){this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}trackByFn(t,n){return n.id||t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],standalone:!0,features:[tt,G],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(n,o){n&1&&(y(0,"div",0),Pe(1,Ib,1,1,null,null,o.trackByFn,!0),_()),n&2&&(m(),Fe(o.navigation))},dependencies:[lr,am,nm],styles:[`angor-horizontal-navigation .angor-horizontal-navigation-wrapper{display:flex;align-items:center}@media (min-width: 600px){angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item:hover .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item:hover .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper{border-radius:4px;overflow:hidden}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{padding:0 16px;cursor:pointer;-webkit-user-select:none;user-select:none}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-icon{margin-right:12px}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active .angor-horizontal-navigation-item-wrapper,angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-branch-item .angor-horizontal-navigation-menu-active-forced .angor-horizontal-navigation-item-wrapper{background-color:var(--angor-bg-hover)}angor-horizontal-navigation .angor-horizontal-navigation-wrapper angor-horizontal-navigation-spacer-item{margin:12px 0}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item{height:auto;min-height:0;line-height:normal;white-space:normal}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-branch-item,.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{display:flex;flex:1 1 auto}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item{margin:8px -16px}.angor-horizontal-navigation-menu-panel .angor-horizontal-navigation-menu-item angor-horizontal-navigation-divider-item .angor-horizontal-navigation-item-wrapper{height:1px;box-shadow:0 1px}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-title,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-title{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))!important}.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-subtitle,.dark .angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-subtitle{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active .angor-horizontal-navigation-item-icon,.angor-horizontal-navigation-menu-item angor-horizontal-navigation-basic-item .angor-horizontal-navigation-item-active-forced .angor-horizontal-navigation-item-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity))!important}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper{width:100%}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper.angor-horizontal-navigation-item-has-subtitle .angor-horizontal-navigation-item{min-height:56px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;min-height:48px;width:100%;font-size:13px;font-weight:500;text-decoration:none}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-title-wrapper .angor-horizontal-navigation-item-subtitle{font-size:12px}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge{margin-left:auto}.angor-horizontal-navigation-menu-item .angor-horizontal-navigation-item-wrapper .angor-horizontal-navigation-item .angor-horizontal-navigation-item-badge .angor-horizontal-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px} `],encapsulation:2,data:{animation:gi},changeDetection:0});let i=e;return i})();var cr=i=>({"angor-vertical-navigation-item-active-forced":i}),rm=i=>[i];function Mb(i,e){i&1&&ye(0)}function Eb(i,e){if(i&1&&(y(0,"a",2),A(1,Mb,1,0,"ng-container",6),_()),i&2){let a,t,n,o,r=h(),s=te(9);f("ngClass",qe(10,cr,r.item.active))("routerLink",qe(12,rm,r.item.link))("fragment",(a=r.item.fragment)!==null&&a!==void 0?a:null)("preserveFragment",(t=r.item.preserveFragment)!==null&&t!==void 0?t:!1)("queryParams",(n=r.item.queryParams)!==null&&n!==void 0?n:null)("queryParamsHandling",(o=r.item.queryParamsHandling)!==null&&o!==void 0?o:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",r.isActiveMatchOptions)("matTooltip",r.item.tooltip||""),m(),f("ngTemplateOutlet",s)}}function Ob(i,e){i&1&&ye(0)}function Nb(i,e){if(i&1&&(y(0,"a",3),A(1,Ob,1,0,"ng-container",6),_()),i&2){let a=h(),t=te(9);f("href",a.item.link,Ye)("target",a.item.target||"_self")("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function Lb(i,e){i&1&&ye(0)}function Pb(i,e){if(i&1){let a=re();y(0,"div",7),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,Lb,1,0,"ng-container",6),_()}if(i&2){let a=h(),t=te(9);f("ngClass",qe(3,cr,a.item.active))("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function Fb(i,e){i&1&&ye(0)}function Rb(i,e){if(i&1){let a=re();y(0,"a",8),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,Fb,1,0,"ng-container",6),_()}if(i&2){let a,t,n,o,r=h(),s=te(9);f("ngClass",qe(10,cr,r.item.active))("routerLink",qe(12,rm,r.item.link))("fragment",(a=r.item.fragment)!==null&&a!==void 0?a:null)("preserveFragment",(t=r.item.preserveFragment)!==null&&t!==void 0?t:!1)("queryParams",(n=r.item.queryParams)!==null&&n!==void 0?n:null)("queryParamsHandling",(o=r.item.queryParamsHandling)!==null&&o!==void 0?o:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",r.isActiveMatchOptions)("matTooltip",r.item.tooltip||""),m(),f("ngTemplateOutlet",s)}}function Hb(i,e){i&1&&ye(0)}function jb(i,e){if(i&1){let a=re();y(0,"a",9),Y("click",function(){K(a);let n=h();return Q(n.item.function(n.item))}),A(1,Hb,1,0,"ng-container",6),_()}if(i&2){let a=h(),t=te(9);f("href",a.item.link,Ye)("target",a.item.target||"_self")("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function zb(i,e){i&1&&ye(0)}function Jb(i,e){if(i&1&&(y(0,"div",4),A(1,zb,1,0,"ng-container",6),_()),i&2){let a=h(),t=te(9);f("ngClass",qe(3,cr,a.item.active))("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function Bb(i,e){i&1&&ye(0)}function Vb(i,e){if(i&1&&(y(0,"div",5),A(1,Bb,1,0,"ng-container",6),_()),i&2){let a=h(),t=te(9);f("matTooltip",a.item.tooltip||""),m(),f("ngTemplateOutlet",t)}}function Wb(i,e){if(i&1&&S(0,"mat-icon",10),i&2){let a=h(2);f("ngClass",a.item.classes==null?null:a.item.classes.icon)("svgIcon",a.item.icon)}}function Ub(i,e){if(i&1&&(y(0,"div",14)(1,"span",13),z(2),_()()),i&2){let a=h(2);m(),f("ngClass",a.item.classes==null?null:a.item.classes.subtitle),m(),ae(" ",a.item.subtitle," ")}}function Gb(i,e){if(i&1&&(y(0,"div",15)(1,"div",16),z(2),_()()),i&2){let a=h(2);m(),f("ngClass",a.item.badge.classes),m(),ae(" ",a.item.badge.title," ")}}function $b(i,e){if(i&1&&(A(0,Wb,1,2,"mat-icon",10),y(1,"div",11)(2,"div",12)(3,"span",13),z(4),_()(),A(5,Ub,3,2,"div",14),_(),A(6,Gb,3,2,"div",15)),i&2){let a=h();q(a.item.icon?0:-1),m(3),f("ngClass",a.item.classes==null?null:a.item.classes.title),m(),ae(" ",a.item.title," "),m(),q(a.item.subtitle?5:-1),m(),q(a.item.badge?6:-1)}}var Si=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._angorUtilsService=I(qt),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new Z}ngOnInit(){this.isActiveMatchOptions=this.item.isActiveMatchOptions??this.item.exactMatch?this._angorUtilsService.exactMatchOptions:this._angorUtilsService.subsetMatchOptions,this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:10,vars:10,consts:[["itemTemplate",""],[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"href","target","matTooltip"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item","angor-vertical-navigation-item-disabled",3,"matTooltip"],[4,"ngTemplateOutlet"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","ngClass","routerLink","fragment","preserveFragment","queryParams","queryParamsHandling","routerLinkActive","routerLinkActiveOptions","matTooltip"],[1,"angor-vertical-navigation-item",3,"click","href","target","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"]],template:function(n,o){n&1&&(y(0,"div",1),A(1,Eb,2,14,"a",2)(2,Nb,2,4,"a",3)(3,Pb,2,5,"div",4)(4,Rb,2,14,"a",2)(5,jb,2,4,"a",3)(6,Jb,2,5,"div",4)(7,Vb,2,2,"div",5),_(),A(8,$b,7,5,"ng-template",null,0,it)),n&2&&(Ke("angor-vertical-navigation-item-has-subtitle",!!o.item.subtitle),f("ngClass",o.item.classes==null?null:o.item.classes.wrapper),m(),q(o.item.link&&!o.item.externalLink&&!o.item.function&&!o.item.disabled?1:-1),m(),q(o.item.link&&o.item.externalLink&&!o.item.function&&!o.item.disabled?2:-1),m(),q(!o.item.link&&o.item.function&&!o.item.disabled?3:-1),m(),q(o.item.link&&!o.item.externalLink&&o.item.function&&!o.item.disabled?4:-1),m(),q(o.item.link&&o.item.externalLink&&o.item.function&&!o.item.disabled?5:-1),m(),q(!o.item.link&&!o.item.function&&!o.item.disabled?6:-1),m(),q(o.item.disabled?7:-1))},dependencies:[_e,di,Xn,rt,ot,yt,be,he],encapsulation:2,changeDetection:0});let i=e;return i})();var Ci=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._unsubscribeAll=new Z}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(n,o){n&1&&S(0,"div",0),n&2&&f("ngClass",o.item.classes==null?null:o.item.classes.wrapper)},dependencies:[_e],encapsulation:2,changeDetection:0});let i=e;return i})();var qi=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._unsubscribeAll=new Z}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[G],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(n,o){n&1&&S(0,"div",0),n&2&&f("ngClass",o.item.classes==null?null:o.item.classes.wrapper)},dependencies:[_e],encapsulation:2,changeDetection:0});let i=e;return i})();function Zb(i,e){if(i&1&&S(0,"mat-icon",2),i&2){let a=h();f("ngClass",a.item.classes==null?null:a.item.classes.icon)("svgIcon",a.item.icon)}}function Yb(i,e){if(i&1&&(y(0,"div",6)(1,"span",5),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.classes==null?null:a.item.classes.subtitle),m(),ae(" ",a.item.subtitle," ")}}function Kb(i,e){if(i&1&&(y(0,"div",7)(1,"div",8),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.badge.classes),m(),ae(" ",a.item.badge.title," ")}}function Qb(i,e){if(i&1&&S(0,"angor-vertical-navigation-basic-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Xb(i,e){if(i&1&&S(0,"angor-vertical-navigation-collapsable-item",10),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function ev(i,e){if(i&1&&S(0,"angor-vertical-navigation-divider-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function tv(i,e){if(i&1&&S(0,"angor-vertical-navigation-group-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function iv(i,e){if(i&1&&S(0,"angor-vertical-navigation-spacer-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function av(i,e){if(i&1&&A(0,Qb,1,2,"angor-vertical-navigation-basic-item",9)(1,Xb,1,3,"angor-vertical-navigation-collapsable-item",10)(2,ev,1,2,"angor-vertical-navigation-divider-item",9)(3,tv,1,2,"angor-vertical-navigation-group-item",9)(4,iv,1,2,"angor-vertical-navigation-spacer-item",9),i&2){let a=h().$implicit;q(a.type==="basic"?0:-1),m(),q(a.type==="collapsable"?1:-1),m(),q(a.type==="divider"?2:-1),m(),q(a.type==="group"?3:-1),m(),q(a.type==="spacer"?4:-1)}}function nv(i,e){if(i&1&&A(0,av,5,5),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}var Ia=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._angorNavigationService=I(ge),this._unsubscribeAll=new Z}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(t,n){return n.id||t}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[G],decls:11,vars:8,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(n,o){n&1&&(y(0,"div",0)(1,"div",1),A(2,Zb,1,2,"mat-icon",2),y(3,"div",3)(4,"div",4)(5,"span",5),z(6),_()(),A(7,Yb,3,2,"div",6),_(),A(8,Kb,3,2,"div",7),_()(),Pe(9,nv,1,1,null,null,o.trackByFn,!0)),n&2&&(Ke("angor-vertical-navigation-item-has-subtitle",!!o.item.subtitle),f("ngClass",o.item.classes==null?null:o.item.classes.wrapper),m(2),q(o.item.icon?2:-1),m(3),f("ngClass",o.item.classes==null?null:o.item.classes.title),m(),ae(" ",o.item.title," "),m(),q(o.item.subtitle?7:-1),m(),q(o.item.badge?8:-1),m(),Fe(o.item.children))},dependencies:()=>[e,_e,be,he,Si,Ma,Ci,qi],encapsulation:2,changeDetection:0});let i=e;return i})();var ov=i=>({"angor-vertical-navigation-item-disabled":i});function rv(i,e){if(i&1&&S(0,"mat-icon",2),i&2){let a=h();f("ngClass",a.item.classes==null?null:a.item.classes.icon)("svgIcon",a.item.icon)}}function sv(i,e){if(i&1&&(y(0,"div",6)(1,"span",5),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.classes==null?null:a.item.classes.subtitle),m(),ae(" ",a.item.subtitle," ")}}function lv(i,e){if(i&1&&(y(0,"div",7)(1,"div",10),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.badge.classes),m(),ae(" ",a.item.badge.title," ")}}function cv(i,e){if(i&1&&S(0,"angor-vertical-navigation-basic-item",11),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function uv(i,e){if(i&1&&S(0,"angor-vertical-navigation-collapsable-item",12),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function dv(i,e){if(i&1&&S(0,"angor-vertical-navigation-divider-item",11),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function mv(i,e){if(i&1&&S(0,"angor-vertical-navigation-group-item",11),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function pv(i,e){if(i&1&&S(0,"angor-vertical-navigation-spacer-item",11),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function gv(i,e){if(i&1&&A(0,cv,1,2,"angor-vertical-navigation-basic-item",11)(1,uv,1,3,"angor-vertical-navigation-collapsable-item",12)(2,dv,1,2,"angor-vertical-navigation-divider-item",11)(3,mv,1,2,"angor-vertical-navigation-group-item",11)(4,pv,1,2,"angor-vertical-navigation-spacer-item",11),i&2){let a=h().$implicit;q(a.type==="basic"?0:-1),m(),q(a.type==="collapsable"?1:-1),m(),q(a.type==="divider"?2:-1),m(),q(a.type==="group"?3:-1),m(),q(a.type==="spacer"?4:-1)}}function fv(i,e){if(i&1&&A(0,gv,5,5),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}function hv(i,e){if(i&1&&(y(0,"div",9),Pe(1,fv,1,1,null,null,zt().trackByFn,!0),_()),i&2){let a=h();f("@expandCollapse",void 0),m(),Fe(a.item.children)}}var Ma=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._router=I(je),this._angorNavigationService=I(ge),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new Z}get classList(){return{"angor-vertical-navigation-item-collapsed":this.isCollapsed,"angor-vertical-navigation-item-expanded":this.isExpanded}}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._hasActiveChild(this.item,this._router.url)?this.expand():this.autoCollapse&&this.collapse(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.pipe(B(this._unsubscribeAll)).subscribe(t=>{t!==null&&this._isChildrenOf(t,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe(B(this._unsubscribeAll)).subscribe(t=>{t!==null&&(this._isChildrenOf(this.item,t)||this._hasActiveChild(this.item,this._router.url)||this.item!==t&&this.collapse())}),this._router.events.pipe($e(t=>t instanceof Vt),B(this._unsubscribeAll)).subscribe(t=>{this._hasActiveChild(this.item,t.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}collapse(){this.item.disabled||this.isCollapsed||(this.isCollapsed=!0,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemCollapsed.next(this.item))}expand(){this.item.disabled||this.isCollapsed&&(this.isCollapsed=!1,this.isExpanded=!this.isCollapsed,this._changeDetectorRef.markForCheck(),this._angorVerticalNavigationComponent.onCollapsableItemExpanded.next(this.item))}toggleCollapsable(){this.isCollapsed?this.expand():this.collapse()}trackByFn(t,n){return n.id||t}_hasActiveChild(t,n){let o=t.children;if(!o)return!1;for(let r of o)if(r.children&&this._hasActiveChild(r,n)||r.link&&this._router.isActive(r.link,r.exactMatch||!1))return!0;return!1}_isChildrenOf(t,n){let o=t.children;if(!o)return!1;if(o.indexOf(n)>-1)return!0;for(let r of o)if(r.children&&this._isChildrenOf(r,n))return!0;return!1}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(n,o){n&2&&li(o.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[G],decls:11,vars:14,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"click","ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-arrow","icon-size-4",3,"svgIcon"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(n,o){n&1&&(y(0,"div",0)(1,"div",1),Y("click",function(){return o.toggleCollapsable()}),A(2,rv,1,2,"mat-icon",2),y(3,"div",3)(4,"div",4)(5,"span",5),z(6),_()(),A(7,sv,3,2,"div",6),_(),A(8,lv,3,2,"div",7),S(9,"mat-icon",8),_()(),A(10,hv,3,1,"div",9)),n&2&&(Ke("angor-vertical-navigation-item-has-subtitle",!!o.item.subtitle),f("ngClass",o.item.classes==null?null:o.item.classes.wrapper),m(),f("ngClass",qe(12,ov,o.item.disabled))("matTooltip",o.item.tooltip||""),m(),q(o.item.icon?2:-1),m(3),f("ngClass",o.item.classes==null?null:o.item.classes.title),m(),ae(" ",o.item.title," "),m(),q(o.item.subtitle?7:-1),m(),q(o.item.badge?8:-1),m(),f("svgIcon","heroicons_solid:chevron-right"),m(),q(o.isCollapsed?-1:10))},dependencies:()=>[e,_e,rt,ot,be,he,Si,Ci,Ia,qi],encapsulation:2,data:{animation:gi},changeDetection:0});let i=e;return i})();var bv=(i,e,a)=>({"angor-vertical-navigation-item-active":i,"angor-vertical-navigation-item-disabled":e,"angor-vertical-navigation-item-active-forced":a});function vv(i,e){if(i&1&&S(0,"mat-icon",2),i&2){let a=h();f("ngClass",a.item.classes==null?null:a.item.classes.icon)("svgIcon",a.item.icon)}}function yv(i,e){if(i&1&&(y(0,"div",6)(1,"span",5),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.classes==null?null:a.item.classes.subtitle),m(),ae(" ",a.item.subtitle," ")}}function _v(i,e){if(i&1&&(y(0,"div",7)(1,"div",9),z(2),_()()),i&2){let a=h();m(),f("ngClass",a.item.badge.classes),m(),ae(" ",a.item.badge.title," ")}}function xv(i,e){if(i&1&&S(0,"angor-vertical-navigation-basic-item",10),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function wv(i,e){if(i&1&&S(0,"angor-vertical-navigation-collapsable-item",11),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function Sv(i,e){if(i&1&&S(0,"angor-vertical-navigation-divider-item",10),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function Cv(i,e){if(i&1&&S(0,"angor-vertical-navigation-group-item",10),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function qv(i,e){if(i&1&&S(0,"angor-vertical-navigation-spacer-item",10),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)}}function kv(i,e){if(i&1&&A(0,xv,1,2,"angor-vertical-navigation-basic-item",10)(1,wv,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Sv,1,2,"angor-vertical-navigation-divider-item",10)(3,Cv,1,2,"angor-vertical-navigation-group-item",10)(4,qv,1,2,"angor-vertical-navigation-spacer-item",10),i&2){let a=h().$implicit;q(a.type==="basic"?0:-1),m(),q(a.type==="collapsable"?1:-1),m(),q(a.type==="divider"?2:-1),m(),q(a.type==="group"?3:-1),m(),q(a.type==="spacer"?4:-1)}}function Tv(i,e){if(i&1&&A(0,kv,5,5),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}function Dv(i,e){if(i&1&&(y(0,"div",8),Pe(1,Tv,1,1,null,null,zt().trackByFn,!0),_()),i&2){let a=h();m(),Fe(a.item.children)}}var sm=(()=>{let e=class e{constructor(){this._changeDetectorRef=I(ce),this._router=I(je),this._angorNavigationService=I(ge),this.active=!1,this._unsubscribeAll=new Z}ngOnChanges(t){"activeItemId"in t&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe($e(t=>t instanceof Vt),B(this._unsubscribeAll)).subscribe(t=>{this._markIfActive(t.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe(B(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(t,n){return n.id||t}_hasActiveChild(t,n){let o=t.children;if(!o)return!1;for(let r of o){if(r.children&&this._hasActiveChild(r,n))return!0;if(r.type==="basic"&&r.link&&this._router.isActive(r.link,r.exactMatch||!1))return!0}return!1}_markIfActive(t){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,t)&&(this.active=!0),this._changeDetectorRef.markForCheck()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},standalone:!0,features:[tt,G],decls:10,vars:15,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"],[1,"angor-vertical-navigation-item",3,"ngClass","matTooltip"],[1,"angor-vertical-navigation-item-icon",3,"ngClass","svgIcon"],[1,"angor-vertical-navigation-item-title-wrapper"],[1,"angor-vertical-navigation-item-title"],[3,"ngClass"],[1,"angor-vertical-navigation-item-subtitle"],[1,"angor-vertical-navigation-item-badge"],[1,"angor-vertical-navigation-item-children"],[1,"angor-vertical-navigation-item-badge-content",3,"ngClass"],[3,"item","name"],[3,"item","name","autoCollapse"]],template:function(n,o){n&1&&(y(0,"div",0)(1,"div",1),A(2,vv,1,2,"mat-icon",2),y(3,"div",3)(4,"div",4)(5,"span",5),z(6),_()(),A(7,yv,3,2,"div",6),_(),A(8,_v,3,2,"div",7),_()(),A(9,Dv,3,0,"div",8)),n&2&&(Ke("angor-vertical-navigation-item-has-subtitle",!!o.item.subtitle),f("ngClass",o.item.classes==null?null:o.item.classes.wrapper),m(),f("ngClass",Pl(11,bv,o.active,o.item.disabled,o.item.active))("matTooltip",o.item.tooltip||""),m(),q(o.item.icon?2:-1),m(3),f("ngClass",o.item.classes==null?null:o.item.classes.title),m(),ae(" ",o.item.title," "),m(),q(o.item.subtitle?7:-1),m(),q(o.item.badge?8:-1),m(),q(o.skipChildren?-1:9))},dependencies:[_e,rt,ot,be,he,Si,Ma,Ci,Ia,qi],encapsulation:2,changeDetection:0});let i=e;return i})();var ur=class{constructor(e,a,t,n){this.x=e,this.y=a,this.w=t,this.h=n}},Nn=class{constructor(e,a){this.x=e,this.y=a}};function Gt(i){return getComputedStyle(i)}function st(i,e){for(var a in e){var t=e[a];typeof t=="number"&&(t=t+"px"),i.style[a]=t}return i}function dr(i){var e=document.createElement("div");return e.className=i,e}var lm=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ki(i,e){if(!lm)throw new Error("No element matching method supported");return lm.call(i,e)}function Oa(i){i.remove?i.remove():i.parentNode&&i.parentNode.removeChild(i)}function cm(i,e){return Array.prototype.filter.call(i.children,function(a){return ki(a,e)})}var Oe={main:"ps",rtl:"ps__rtl",element:{thumb:function(i){return"ps__thumb-"+i},rail:function(i){return"ps__rail-"+i},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(i){return"ps--active-"+i},scrolling:function(i){return"ps--scrolling-"+i}}},mm={x:null,y:null};function pm(i,e){var a=i.element.classList,t=Oe.state.scrolling(e);a.contains(t)?clearTimeout(mm[e]):a.add(t)}function gm(i,e){mm[e]=setTimeout(function(){return i.isAlive&&i.element.classList.remove(Oe.state.scrolling(e))},i.settings.scrollingThreshold)}function Av(i,e){pm(i,e),gm(i,e)}var Ln=function(e){this.element=e,this.handlers={}},fm={isEmpty:{configurable:!0}};Ln.prototype.bind=function(e,a){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(a),this.element.addEventListener(e,a,!1)};Ln.prototype.unbind=function(e,a){var t=this;this.handlers[e]=this.handlers[e].filter(function(n){return a&&n!==a?!0:(t.element.removeEventListener(e,n,!1),!1)})};Ln.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)};fm.isEmpty.get=function(){var i=this;return Object.keys(this.handlers).every(function(e){return i.handlers[e].length===0})};Object.defineProperties(Ln.prototype,fm);var Na=function(){this.eventElements=[]};Na.prototype.eventElement=function(e){var a=this.eventElements.filter(function(t){return t.element===e})[0];return a||(a=new Ln(e),this.eventElements.push(a)),a};Na.prototype.bind=function(e,a,t){this.eventElement(e).bind(a,t)};Na.prototype.unbind=function(e,a,t){var n=this.eventElement(e);n.unbind(a,t),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)};Na.prototype.unbindAll=function(){this.eventElements.forEach(function(e){return e.unbindAll()}),this.eventElements=[]};Na.prototype.once=function(e,a,t){var n=this.eventElement(e),o=function(r){n.unbind(a,o),t(r)};n.bind(a,o)};function mr(i){if(typeof window.CustomEvent=="function")return new CustomEvent(i);var e=document.createEvent("CustomEvent");return e.initCustomEvent(i,!1,!1,void 0),e}function pr(i,e,a,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1);var o;if(e==="top")o=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(e==="left")o=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Iv(i,a,o,t,n)}function Iv(i,e,a,t,n){var o=a[0],r=a[1],s=a[2],l=a[3],c=a[4],d=a[5];t===void 0&&(t=!0),n===void 0&&(n=!1);var g=i.element;i.reach[l]=null,g[s]<1&&(i.reach[l]="start"),g[s]>i[o]-i[r]-1&&(i.reach[l]="end"),e&&(g.dispatchEvent(mr("ps-scroll-"+l)),e<0?g.dispatchEvent(mr("ps-scroll-"+c)):e>0&&g.dispatchEvent(mr("ps-scroll-"+d)),t&&Av(i,l)),i.reach[l]&&(e||n)&&g.dispatchEvent(mr("ps-"+l+"-reach-"+i.reach[l]))}function De(i){return parseInt(i,10)||0}function Mv(i){return ki(i,"input,[contenteditable]")||ki(i,"select,[contenteditable]")||ki(i,"textarea,[contenteditable]")||ki(i,"button,[contenteditable]")}function Ev(i){var e=Gt(i);return De(e.width)+De(e.paddingLeft)+De(e.paddingRight)+De(e.borderLeftWidth)+De(e.borderRightWidth)}var Ea={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function oi(i){var e=i.element,a=Math.floor(e.scrollTop),t=e.getBoundingClientRect();i.containerWidth=Math.round(t.width),i.containerHeight=Math.round(t.height),i.contentWidth=e.scrollWidth,i.contentHeight=e.scrollHeight,e.contains(i.scrollbarXRail)||(cm(e,Oe.element.rail("x")).forEach(function(n){return Oa(n)}),e.appendChild(i.scrollbarXRail)),e.contains(i.scrollbarYRail)||(cm(e,Oe.element.rail("y")).forEach(function(n){return Oa(n)}),e.appendChild(i.scrollbarYRail)),!i.settings.suppressScrollX&&i.containerWidth+i.settings.scrollXMarginOffset=i.railXWidth-i.scrollbarXWidth&&(i.scrollbarXLeft=i.railXWidth-i.scrollbarXWidth),i.scrollbarYTop>=i.railYHeight-i.scrollbarYHeight&&(i.scrollbarYTop=i.railYHeight-i.scrollbarYHeight),Ov(e,i),i.scrollbarXActive?e.classList.add(Oe.state.active("x")):(e.classList.remove(Oe.state.active("x")),i.scrollbarXWidth=0,i.scrollbarXLeft=0,e.scrollLeft=i.isRtl===!0?i.contentWidth:0),i.scrollbarYActive?e.classList.add(Oe.state.active("y")):(e.classList.remove(Oe.state.active("y")),i.scrollbarYHeight=0,i.scrollbarYTop=0,e.scrollTop=0)}function um(i,e){return i.settings.minScrollbarLength&&(e=Math.max(e,i.settings.minScrollbarLength)),i.settings.maxScrollbarLength&&(e=Math.min(e,i.settings.maxScrollbarLength)),e}function Ov(i,e){var a={width:e.railXWidth},t=Math.floor(i.scrollTop);e.isRtl?a.left=e.negativeScrollAdjustment+i.scrollLeft+e.containerWidth-e.contentWidth:a.left=i.scrollLeft,e.isScrollbarXUsingBottom?a.bottom=e.scrollbarXBottom-t:a.top=e.scrollbarXTop+t,st(e.scrollbarXRail,a);var n={top:t,height:e.railYHeight};e.isScrollbarYUsingRight?e.isRtl?n.right=e.contentWidth-(e.negativeScrollAdjustment+i.scrollLeft)-e.scrollbarYRight-e.scrollbarYOuterWidth-9:n.right=e.scrollbarYRight-i.scrollLeft:e.isRtl?n.left=e.negativeScrollAdjustment+i.scrollLeft+e.containerWidth*2-e.contentWidth-e.scrollbarYLeft-e.scrollbarYOuterWidth:n.left=e.scrollbarYLeft+i.scrollLeft,st(e.scrollbarYRail,n),st(e.scrollbarX,{left:e.scrollbarXLeft,width:e.scrollbarXWidth-e.railBorderXWidth}),st(e.scrollbarY,{top:e.scrollbarYTop,height:e.scrollbarYHeight-e.railBorderYWidth})}function Nv(i){var e=i.element;i.event.bind(i.scrollbarY,"mousedown",function(a){return a.stopPropagation()}),i.event.bind(i.scrollbarYRail,"mousedown",function(a){var t=a.pageY-window.pageYOffset-i.scrollbarYRail.getBoundingClientRect().top,n=t>i.scrollbarYTop?1:-1;i.element.scrollTop+=n*i.containerHeight,oi(i),a.stopPropagation()}),i.event.bind(i.scrollbarX,"mousedown",function(a){return a.stopPropagation()}),i.event.bind(i.scrollbarXRail,"mousedown",function(a){var t=a.pageX-window.pageXOffset-i.scrollbarXRail.getBoundingClientRect().left,n=t>i.scrollbarXLeft?1:-1;i.element.scrollLeft+=n*i.containerWidth,oi(i),a.stopPropagation()})}function Lv(i){dm(i,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),dm(i,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])}function dm(i,e){var a=e[0],t=e[1],n=e[2],o=e[3],r=e[4],s=e[5],l=e[6],c=e[7],d=e[8],g=i.element,x=null,b=null,v=null;function T(k){k.touches&&k.touches[0]&&(k[n]=k.touches[0].pageY),g[l]=x+v*(k[n]-b),pm(i,c),oi(i),k.stopPropagation(),k.type.startsWith("touch")&&k.changedTouches.length>1&&k.preventDefault()}function E(){gm(i,c),i[d].classList.remove(Oe.state.clicking),i.event.unbind(i.ownerDocument,"mousemove",T)}function w(k,R){x=g[l],R&&k.touches&&(k[n]=k.touches[0].pageY),b=k[n],v=(i[t]-i[a])/(i[o]-i[s]),R?i.event.bind(i.ownerDocument,"touchmove",T):(i.event.bind(i.ownerDocument,"mousemove",T),i.event.once(i.ownerDocument,"mouseup",E),k.preventDefault()),i[d].classList.add(Oe.state.clicking),k.stopPropagation()}i.event.bind(i[r],"mousedown",function(k){w(k)}),i.event.bind(i[r],"touchstart",function(k){w(k,!0)})}function Pv(i){var e=i.element,a=function(){return ki(e,":hover")},t=function(){return ki(i.scrollbarX,":focus")||ki(i.scrollbarY,":focus")};function n(o,r){var s=Math.floor(e.scrollTop);if(o===0){if(!i.scrollbarYActive)return!1;if(s===0&&r>0||s>=i.contentHeight-i.containerHeight&&r<0)return!i.settings.wheelPropagation}var l=e.scrollLeft;if(r===0){if(!i.scrollbarXActive)return!1;if(l===0&&o<0||l>=i.contentWidth-i.containerWidth&&o>0)return!i.settings.wheelPropagation}return!0}i.event.bind(i.ownerDocument,"keydown",function(o){if(!(o.isDefaultPrevented&&o.isDefaultPrevented()||o.defaultPrevented)&&!(!a()&&!t())){var r=document.activeElement?document.activeElement:i.ownerDocument.activeElement;if(r){if(r.tagName==="IFRAME")r=r.contentDocument.activeElement;else for(;r.shadowRoot;)r=r.shadowRoot.activeElement;if(Mv(r))return}var s=0,l=0;switch(o.which){case 37:o.metaKey?s=-i.contentWidth:o.altKey?s=-i.containerWidth:s=-30;break;case 38:o.metaKey?l=i.contentHeight:o.altKey?l=i.containerHeight:l=30;break;case 39:o.metaKey?s=i.contentWidth:o.altKey?s=i.containerWidth:s=30;break;case 40:o.metaKey?l=-i.contentHeight:o.altKey?l=-i.containerHeight:l=-30;break;case 32:o.shiftKey?l=i.containerHeight:l=-i.containerHeight;break;case 33:l=i.containerHeight;break;case 34:l=-i.containerHeight;break;case 36:l=i.contentHeight;break;case 35:l=-i.contentHeight;break;default:return}i.settings.suppressScrollX&&s!==0||i.settings.suppressScrollY&&l!==0||(e.scrollTop-=l,e.scrollLeft+=s,oi(i),n(s,l)&&o.preventDefault())}})}function Fv(i){var e=i.element;function a(r,s){var l=Math.floor(e.scrollTop),c=e.scrollTop===0,d=l+e.offsetHeight===e.scrollHeight,g=e.scrollLeft===0,x=e.scrollLeft+e.offsetWidth===e.scrollWidth,b;return Math.abs(s)>Math.abs(r)?b=c||d:b=g||x,b?!i.settings.wheelPropagation:!0}function t(r){var s=r.deltaX,l=-1*r.deltaY;return(typeof s>"u"||typeof l>"u")&&(s=-1*r.wheelDeltaX/6,l=r.wheelDeltaY/6),r.deltaMode&&r.deltaMode===1&&(s*=10,l*=10),s!==s&&l!==l&&(s=0,l=r.wheelDelta),r.shiftKey?[-l,-s]:[s,l]}function n(r,s,l){if(!Ea.isWebKit&&e.querySelector("select:focus"))return!0;if(!e.contains(r))return!1;for(var c=r;c&&c!==e;){if(c.classList.contains(Oe.element.consuming))return!0;var d=Gt(c);if(l&&d.overflowY.match(/(scroll|auto)/)){var g=c.scrollHeight-c.clientHeight;if(g>0&&(c.scrollTop>0&&l<0||c.scrollTop0))return!0}if(s&&d.overflowX.match(/(scroll|auto)/)){var x=c.scrollWidth-c.clientWidth;if(x>0&&(c.scrollLeft>0&&s<0||c.scrollLeft0))return!0}c=c.parentNode}return!1}function o(r){var s=t(r),l=s[0],c=s[1];if(!n(r.target,l,c)){var d=!1;i.settings.useBothWheelAxes?i.scrollbarYActive&&!i.scrollbarXActive?(c?e.scrollTop-=c*i.settings.wheelSpeed:e.scrollTop+=l*i.settings.wheelSpeed,d=!0):i.scrollbarXActive&&!i.scrollbarYActive&&(l?e.scrollLeft+=l*i.settings.wheelSpeed:e.scrollLeft-=c*i.settings.wheelSpeed,d=!0):(e.scrollTop-=c*i.settings.wheelSpeed,e.scrollLeft+=l*i.settings.wheelSpeed),oi(i),d=d||a(l,c),d&&!r.ctrlKey&&(r.stopPropagation(),r.preventDefault())}}typeof window.onwheel<"u"?i.event.bind(e,"wheel",o):typeof window.onmousewheel<"u"&&i.event.bind(e,"mousewheel",o)}function Rv(i){if(!Ea.supportsTouch&&!Ea.supportsIePointer)return;var e=i.element;function a(v,T){var E=Math.floor(e.scrollTop),w=e.scrollLeft,k=Math.abs(v),R=Math.abs(T);if(R>k){if(T<0&&E===i.contentHeight-i.containerHeight||T>0&&E===0)return window.scrollY===0&&T>0&&Ea.isChrome}else if(k>R&&(v<0&&w===i.contentWidth-i.containerWidth||v>0&&w===0))return!0;return!0}function t(v,T){e.scrollTop-=T,e.scrollLeft-=v,oi(i)}var n={},o=0,r={},s=null;function l(v){return v.targetTouches?v.targetTouches[0]:v}function c(v){return v.pointerType&&v.pointerType==="pen"&&v.buttons===0?!1:!!(v.targetTouches&&v.targetTouches.length===1||v.pointerType&&v.pointerType!=="mouse"&&v.pointerType!==v.MSPOINTER_TYPE_MOUSE)}function d(v){if(c(v)){var T=l(v);n.pageX=T.pageX,n.pageY=T.pageY,o=new Date().getTime(),s!==null&&clearInterval(s)}}function g(v,T,E){if(!e.contains(v))return!1;for(var w=v;w&&w!==e;){if(w.classList.contains(Oe.element.consuming))return!0;var k=Gt(w);if(E&&k.overflowY.match(/(scroll|auto)/)){var R=w.scrollHeight-w.clientHeight;if(R>0&&(w.scrollTop>0&&E<0||w.scrollTop0))return!0}if(T&&k.overflowX.match(/(scroll|auto)/)){var J=w.scrollWidth-w.clientWidth;if(J>0&&(w.scrollLeft>0&&T<0||w.scrollLeft0))return!0}w=w.parentNode}return!1}function x(v){if(c(v)){var T=l(v),E={pageX:T.pageX,pageY:T.pageY},w=E.pageX-n.pageX,k=E.pageY-n.pageY;if(g(v.target,w,k))return;t(w,k),n=E;var R=new Date().getTime(),J=R-o;J>0&&(r.x=w/J,r.y=k/J,o=R),a(w,k)&&v.preventDefault()}}function b(){i.settings.swipeEasing&&(clearInterval(s),s=setInterval(function(){if(i.isInitialized){clearInterval(s);return}if(!r.x&&!r.y){clearInterval(s);return}if(Math.abs(r.x)<.01&&Math.abs(r.y)<.01){clearInterval(s);return}if(!i.element){clearInterval(s);return}t(r.x*30,r.y*30),r.x*=.8,r.y*=.8},10))}Ea.supportsTouch?(i.event.bind(e,"touchstart",d),i.event.bind(e,"touchmove",x),i.event.bind(e,"touchend",b)):Ea.supportsIePointer&&(window.PointerEvent?(i.event.bind(e,"pointerdown",d),i.event.bind(e,"pointermove",x),i.event.bind(e,"pointerup",b)):window.MSPointerEvent&&(i.event.bind(e,"MSPointerDown",d),i.event.bind(e,"MSPointerMove",x),i.event.bind(e,"MSPointerUp",b)))}var Hv=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},jv={"click-rail":Nv,"drag-thumb":Lv,keyboard:Pv,wheel:Fv,touch:Rv},Pn=function(e,a){var t=this;if(a===void 0&&(a={}),typeof e=="string"&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=e,e.classList.add(Oe.main),this.settings=Hv();for(var n in a)this.settings[n]=a[n];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var o=function(){return e.classList.add(Oe.state.focus)},r=function(){return e.classList.remove(Oe.state.focus)};this.isRtl=Gt(e).direction==="rtl",this.isRtl===!0&&e.classList.add(Oe.rtl),this.isNegativeScroll=function(){var c=e.scrollLeft,d=null;return e.scrollLeft=-1,d=e.scrollLeft<0,e.scrollLeft=c,d}(),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Na,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=dr(Oe.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=dr(Oe.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",r),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var s=Gt(this.scrollbarXRail);this.scrollbarXBottom=parseInt(s.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=De(s.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=De(s.borderLeftWidth)+De(s.borderRightWidth),st(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=De(s.marginLeft)+De(s.marginRight),st(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=dr(Oe.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=dr(Oe.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",r),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=Gt(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=De(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ev(this.scrollbarY):null,this.railBorderYWidth=De(l.borderTopWidth)+De(l.borderBottomWidth),st(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=De(l.marginTop)+De(l.marginBottom),st(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(c){return jv[c](t)}),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",function(c){return t.onScroll(c)}),oi(this)};Pn.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,st(this.scrollbarXRail,{display:"block"}),st(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=De(Gt(this.scrollbarXRail).marginLeft)+De(Gt(this.scrollbarXRail).marginRight),this.railYMarginHeight=De(Gt(this.scrollbarYRail).marginTop)+De(Gt(this.scrollbarYRail).marginBottom),st(this.scrollbarXRail,{display:"none"}),st(this.scrollbarYRail,{display:"none"}),oi(this),pr(this,"top",0,!1,!0),pr(this,"left",0,!1,!0),st(this.scrollbarXRail,{display:""}),st(this.scrollbarYRail,{display:""}))};Pn.prototype.onScroll=function(e){this.isAlive&&(oi(this),pr(this,"top",this.element.scrollTop-this.lastScrollTop),pr(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};Pn.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Oa(this.scrollbarX),Oa(this.scrollbarY),Oa(this.scrollbarXRail),Oa(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};Pn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(e){return!e.match(/^ps([-_].+|)$/)}).join(" ")};var hm=Pn;var Fn=(()=>{let e=class e{constructor(){this._elementRef=I(jt),this._platform=I(ia),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new Z}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(t){"angorScrollbar"in t&&(this.angorScrollbar=mi(t.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in t&&(this._options=co({},this._options,t.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){Zi(window,"resize").pipe(B(this._unsubscribeAll),Un(150)).subscribe(()=>this.update())}ngOnDestroy(){this._destroyScrollbar(),this._unsubscribeAll.next(),this._unsubscribeAll.complete()}isEnabled(){return this.angorScrollbar}update(){this._ps?.update()}destroy(){this.ngOnDestroy()}geometry(t="scroll"){return new ur(this._elementRef.nativeElement[`${t}Left`],this._elementRef.nativeElement[`${t}Top`],this._elementRef.nativeElement[`${t}Width`],this._elementRef.nativeElement[`${t}Height`])}position(t=!1){return!t&&this._ps?new Nn(this._ps.reach.x||0,this._ps.reach.y||0):new Nn(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(t,n,o){n==null&&o==null?this.animateScrolling("scrollTop",t,o):(t!=null&&this.scrollToX(t,o),n!=null&&this.scrollToY(n,o))}scrollToX(t,n){this.animateScrolling("scrollLeft",t,n)}scrollToY(t,n){this.animateScrolling("scrollTop",t,n)}scrollToTop(t=0,n){this.animateScrolling("scrollTop",t,n)}scrollToBottom(t=0,n){let o=this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight;this.animateScrolling("scrollTop",o-t,n)}scrollToLeft(t=0,n){this.animateScrolling("scrollLeft",t,n)}scrollToRight(t=0,n){let o=this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth;this.animateScrolling("scrollLeft",o-t,n)}scrollToElement(t,n=0,o=!1,r){let s=this._elementRef.nativeElement.querySelector(t);if(!s)return;let l=s.getBoundingClientRect(),c=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(l.left,c.left,"scrollLeft",n,o,r),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(l.top,c.top,"scrollTop",n,o,r)}animateScrolling(t,n,o){this._animation&&window.cancelAnimationFrame(this._animation),!o||typeof window>"u"?this._elementRef.nativeElement[t]=n:n!==this._elementRef.nativeElement[t]&&this._smoothScroll(t,n,o)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new hm(this._elementRef.nativeElement,M({},this._options)))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(t,n,o,r,s,l){if(s&&t<=n-Math.abs(r))return;let c=this._elementRef.nativeElement[o],d=t-n+c;this.animateScrolling(o,d+r,l)}_smoothScroll(t,n,o){let r=0,s=this._elementRef.nativeElement[t],l=(s-n)/2,c=performance.now(),d=g=>{r+=Math.PI/(o/(g-c));let x=Math.round(n+l+l*Math.cos(r));this._elementRef.nativeElement[t]===s&&(r>=Math.PI?this.animateScrolling(t,n,0):(this._elementRef.nativeElement[t]=x,s=this._elementRef.nativeElement[t],c=g,this._animation=window.requestAnimationFrame(d)))};window.requestAnimationFrame(d)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=Ja({type:e,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],standalone:!0,features:[tt]});let i=e;return i})();var zv=["navigationContent"],Jv=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Bv=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],Vv=i=>({wheelPropagation:i,suppressScrollX:!0}),Wv=()=>({wheelPropagation:!1,suppressScrollX:!0});function Uv(i,e){if(i&1){let a=re();y(0,"angor-vertical-navigation-aside-item",10),Y("click",function(){K(a);let n=h(2).$implicit,o=h();return Q(o.toggleAside(n))}),_()}if(i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)("activeItemId",t.activeAsideItemId)("autoCollapse",t.autoCollapse)("skipChildren",!0)}}function Gv(i,e){if(i&1&&S(0,"angor-vertical-navigation-basic-item",8),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function $v(i,e){if(i&1&&S(0,"angor-vertical-navigation-collapsable-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function Zv(i,e){if(i&1&&S(0,"angor-vertical-navigation-divider-item",8),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Yv(i,e){if(i&1&&S(0,"angor-vertical-navigation-group-item",9),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function Kv(i,e){if(i&1&&S(0,"angor-vertical-navigation-spacer-item",8),i&2){let a=h(2).$implicit,t=h();f("item",a)("name",t.name)}}function Qv(i,e){if(i&1&&A(0,Uv,1,5,"angor-vertical-navigation-aside-item",7)(1,Gv,1,2,"angor-vertical-navigation-basic-item",8)(2,$v,1,3,"angor-vertical-navigation-collapsable-item",9)(3,Zv,1,2,"angor-vertical-navigation-divider-item",8)(4,Yv,1,3,"angor-vertical-navigation-group-item",9)(5,Kv,1,2,"angor-vertical-navigation-spacer-item",8),i&2){let a=h().$implicit;q(a.type==="aside"?0:-1),m(),q(a.type==="basic"?1:-1),m(),q(a.type==="collapsable"?2:-1),m(),q(a.type==="divider"?3:-1),m(),q(a.type==="group"?4:-1),m(),q(a.type==="spacer"?5:-1)}}function Xv(i,e){if(i&1&&A(0,Qv,6,6),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}function e1(i,e){if(i&1&&S(0,"angor-vertical-navigation-aside-item",9),i&2){let a=h(2).$implicit,t=h(2);f("item",a)("name",t.name)("autoCollapse",t.autoCollapse)}}function t1(i,e){if(i&1&&A(0,e1,1,3,"angor-vertical-navigation-aside-item",9),i&2){let a=h().$implicit,t=h(2);q(a.type==="aside"&&a.id===t.activeAsideItemId?0:-1)}}function i1(i,e){if(i&1&&A(0,t1,1,1),i&2){let a=e.$implicit;q(a.hidden&&!a.hidden(a)||!a.hidden?0:-1)}}function a1(i,e){if(i&1&&(y(0,"div",6),Pe(1,i1,1,1,null,null,zt().trackByFn,!0),_()),i&2){let a=h();f("angorScrollbarOptions",Yn(5,Wv))("@fadeInLeft",a.position==="left")("@fadeInRight",a.position==="right")("@fadeOutLeft",a.position==="left")("@fadeOutRight",a.position==="right"),m(),Fe(a.navigation)}}var gr=(()=>{let e=class e{constructor(){this._animationBuilder=I(cc),this._changeDetectorRef=I(ce),this._document=I(nt),this._elementRef=I(jt),this._renderer2=I(Mi),this._router=I(je),this._scrollStrategyOptions=I(ro),this._angorNavigationService=I(ge),this._angorUtilsService=I(qt),this.appearance="default",this.autoCollapse=!0,this.inner=!1,this.mode="side",this.name=this._angorUtilsService.randomId(),this.opened=!0,this.position="left",this.transparentOverlay=!1,this.appearanceChanged=new ct,this.modeChanged=new ct,this.openedChanged=new ct,this.positionChanged=new ct,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new Rt(1),this.onCollapsableItemExpanded=new Rt(1),this.onRefreshed=new Rt(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new Z,this._handleAsideOverlayClick=()=>{this.closeAside()},this._handleOverlayClick=()=>{this.close()}}get classList(){return{"angor-vertical-navigation-animations-enabled":this._animationsEnabled,[`angor-vertical-navigation-appearance-${this.appearance}`]:!0,"angor-vertical-navigation-hover":this._hovered,"angor-vertical-navigation-inner":this.inner,"angor-vertical-navigation-mode-over":this.mode==="over","angor-vertical-navigation-mode-side":this.mode==="side","angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":this.position==="left","angor-vertical-navigation-position-right":this.position==="right"}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(t){this._angorScrollbarDirectives=t,t.length!==0&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=Ai(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe(B(this._unsubscribeAll),Yi(250)).subscribe(()=>{t.forEach(n=>{n.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(t){if("appearance"in t&&this.appearanceChanged.next(t.appearance.currentValue),"inner"in t&&(this.inner=mi(t.inner.currentValue)),"mode"in t){let n=t.mode.currentValue,o=t.mode.previousValue;this._disableAnimations(),o==="over"&&n==="side"&&this._hideOverlay(),o==="side"&&n==="over"&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(n),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in t&&this._changeDetectorRef.markForCheck(),"opened"in t&&(this.opened=mi(t.opened.currentValue),this._toggleOpened(this.opened)),"position"in t&&this.positionChanged.next(t.position.currentValue),"transparentOverlay"in t&&(this.transparentOverlay=mi(t.transparentOverlay.currentValue))}ngOnInit(){this.name===""&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe($e(t=>t instanceof Vt),B(this._unsubscribeAll)).subscribe(()=>{this.mode==="over"&&this.opened&&this.close(),this.mode==="side"&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(t=>{t.forEach(n=>{let o=n.target;if(n.attributeName==="class")if(o.classList.contains("cdk-global-scrollblock")){let r=parseInt(o.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(r)}px`)}else this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",null)})}),this._mutationObserver.observe(this._document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{if(this._navigationContentEl)if(this._navigationContentEl.nativeElement.classList.contains("ps"))this._angorScrollbarDirectives.forEach(t=>{t.isEnabled()&&t.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{let t=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");t&&t.scrollIntoView()}})}ngOnDestroy(){this._mutationObserver.disconnect(),this.close(),this.closeAside(),this._angorNavigationService.deregisterComponent(this.name),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}refresh(){this._changeDetectorRef.markForCheck(),this.onRefreshed.next(!0)}open(){this.opened||this._toggleOpened(!0)}close(){this.opened&&(this.closeAside(),this._toggleOpened(!1))}toggle(){this.opened?this.close():this.open()}openAside(t){t.disabled||!t.id||(this.activeAsideItemId=t.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(t){this.activeAsideItemId===t.id?this.closeAside():this.openAside(t)}trackByFn(t,n){return n.id||t}_enableAnimations(){this._animationsEnabled||(this._animationsEnabled=!0)}_disableAnimations(){this._animationsEnabled&&(this._animationsEnabled=!1)}_showOverlay(){this._asideOverlay||(this._overlay=this._renderer2.createElement("div"),this._overlay.classList.add("angor-vertical-navigation-overlay"),this.transparentOverlay&&this._overlay.classList.add("angor-vertical-navigation-overlay-transparent"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._overlay),this._scrollStrategy.enable(),this._player=this._animationBuilder.build([ei("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",ut({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([ei("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",ut({opacity:0}))]).create(this._overlay),this._player.play(),this._player.onDone(()=>{this._overlay&&(this._overlay.removeEventListener("click",this._handleOverlayClick),this._overlay.parentNode.removeChild(this._overlay),this._overlay=null),this._scrollStrategy.disable()}))}_showAsideOverlay(){this._asideOverlay||(this._asideOverlay=this._renderer2.createElement("div"),this._asideOverlay.classList.add("angor-vertical-navigation-aside-overlay"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._asideOverlay),this._player=this._animationBuilder.build([ei("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",ut({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([ei("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",ut({opacity:0}))]).create(this._asideOverlay),this._player.play(),this._player.onDone(()=>{this._asideOverlay&&(this._asideOverlay.removeEventListener("click",this._handleAsideOverlayClick),this._asideOverlay.parentNode.removeChild(this._asideOverlay),this._asideOverlay=null)}))}_toggleOpened(t){this.opened=t,this._enableAnimations(),this.mode==="over"&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(t)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=U({type:e,selectors:[["angor-vertical-navigation"]],viewQuery:function(n,o){if(n&1&&(Qe(zv,5),Qe(Fn,5)),n&2){let r;Re(r=He())&&(o._navigationContentEl=r.first),Re(r=He())&&(o.angorScrollbarDirectives=r)}},hostVars:4,hostBindings:function(n,o){n&1&&Y("mouseenter",function(){return o._onMouseenter()})("mouseleave",function(){return o._onMouseleave()}),n&2&&(Nl(o.styleList),li(o.classList))},inputs:{appearance:"appearance",autoCollapse:"autoCollapse",inner:"inner",mode:"mode",name:"name",navigation:"navigation",opened:"opened",position:"position",transparentOverlay:"transparentOverlay"},outputs:{appearanceChanged:"appearanceChanged",modeChanged:"modeChanged",openedChanged:"openedChanged",positionChanged:"positionChanged"},exportAs:["angorVerticalNavigation"],standalone:!0,features:[tt,G],ngContentSelectors:Bv,decls:12,vars:4,consts:[["navigationContent",""],[1,"angor-vertical-navigation-wrapper"],[1,"angor-vertical-navigation-header"],["angorScrollbar","",1,"angor-vertical-navigation-content",3,"angorScrollbarOptions"],[1,"angor-vertical-navigation-content-header"],[1,"angor-vertical-navigation-footer"],["angorScrollbar","",1,"angor-vertical-navigation-aside-wrapper",3,"angorScrollbarOptions"],[3,"item","name","activeItemId","autoCollapse","skipChildren"],[3,"item","name"],[3,"item","name","autoCollapse"],[3,"click","item","name","activeItemId","autoCollapse","skipChildren"]],template:function(n,o){n&1&&(Gn(Jv),y(0,"div",1)(1,"div",2),Qi(2),_(),y(3,"div",3,0)(5,"div",4),Qi(6,1),_(),Pe(7,Xv,1,1,null,null,o.trackByFn,!0),_(),y(9,"div",5),Qi(10,2),_()(),A(11,a1,3,6,"div",6)),n&2&&(m(3),f("angorScrollbarOptions",qe(2,Vv,o.inner)),m(4),Fe(o.navigation),m(4),q(o.activeAsideItemId?11:-1))},dependencies:[Fn,sm,Si,Ma,Ci,Ia,qi],styles:[`:root{--angor-vertical-navigation-width: 280px}angor-vertical-navigation{position:sticky;display:flex;flex-direction:column;flex:1 0 auto;top:0;width:var(--angor-vertical-navigation-width);min-width:var(--angor-vertical-navigation-width);max-width:var(--angor-vertical-navigation-width);height:100vh;min-height:100vh;max-height:100vh;z-index:200}angor-vertical-navigation.angor-vertical-navigation-animations-enabled{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:visibility,margin-left,margin-right,transform,width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-animations-enabled .angor-vertical-navigation-wrapper{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:width,max-width,min-width}angor-vertical-navigation.angor-vertical-navigation-mode-over{position:fixed;top:0;bottom:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over{left:0;transform:translate3d(-100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-left .angor-vertical-navigation-wrapper{left:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over{right:0;transform:translate3d(100%,0,0)}angor-vertical-navigation.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-over.angor-vertical-navigation-opened{transform:translateZ(0)}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-wrapper{right:0}angor-vertical-navigation.angor-vertical-navigation-inner{position:relative;width:auto;min-width:0;max-width:none;height:auto;min-height:0;max-height:none;box-shadow:none}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper{position:relative;overflow:visible;height:auto}angor-vertical-navigation.angor-vertical-navigation-inner .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{overflow:visible!important}angor-vertical-navigation .angor-vertical-navigation-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;width:100%;height:100%;overflow:hidden;z-index:10;background:inherit;box-shadow:inset -1px 0 0 var(--angor-border)}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-divider-item{margin:24px 0}angor-vertical-navigation .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item{margin-top:24px}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper{position:absolute;display:flex;flex:1 1 auto;flex-direction:column;top:0;bottom:0;left:var(--angor-vertical-navigation-width);width:var(--angor-vertical-navigation-width);height:100%;z-index:5;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transition-duration:.4s;transition-property:left,right;transition-timing-function:cubic-bezier(.25,.8,.25,1);background:inherit}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item{padding:24px 0}angor-vertical-navigation .angor-vertical-navigation-aside-wrapper>angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper{display:none!important}angor-vertical-navigation.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item,angor-vertical-navigation angor-vertical-navigation-divider-item,angor-vertical-navigation angor-vertical-navigation-group-item,angor-vertical-navigation angor-vertical-navigation-spacer-item{display:flex;flex-direction:column;flex:1 0 auto;-webkit-user-select:none;user-select:none}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:10px 16px;font-size:13px;font-weight:500;line-height:20px;text-decoration:none;border-radius:6px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item.angor-vertical-navigation-item-disabled{cursor:default;opacity:.4}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:16px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{font-size:11px;line-height:1.5}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{margin-left:auto}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content,angor-vertical-navigation angor-vertical-navigation-spacer-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge .angor-vertical-navigation-item-badge-content{display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;white-space:nowrap;height:20px}angor-vertical-navigation angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{margin:0 12px}angor-vertical-navigation angor-vertical-navigation-aside-item,angor-vertical-navigation angor-vertical-navigation-basic-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item{margin-bottom:4px}angor-vertical-navigation angor-vertical-navigation-aside-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-basic-item .angor-vertical-navigation-item,angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item{cursor:pointer}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge+.angor-vertical-navigation-item-arrow{margin-left:8px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{height:20px;line-height:20px;margin-left:auto;transition:transform .3s cubic-bezier(.25,.8,.25,1),color 375ms cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{transform:rotate(90deg)}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:first-child{margin-top:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:6px}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children>*:last-child>.angor-vertical-navigation-item-children>*:last-child{padding-bottom:0}angor-vertical-navigation angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{overflow:hidden}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:56px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:72px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:88px}angor-vertical-navigation angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item-children .angor-vertical-navigation-item{padding-left:104px}angor-vertical-navigation angor-vertical-navigation-divider-item{margin:12px 0}angor-vertical-navigation angor-vertical-navigation-divider-item .angor-vertical-navigation-item-wrapper{height:1px;box-shadow:0 1px}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{display:none!important}angor-vertical-navigation angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}angor-vertical-navigation angor-vertical-navigation-spacer-item{margin:6px 0}.angor-vertical-navigation-overlay{position:absolute;inset:0;z-index:170;opacity:0;background-color:#0009}.angor-vertical-navigation-overlay+.angor-vertical-navigation-aside-overlay{background-color:transparent}.angor-vertical-navigation-aside-overlay{position:absolute;inset:0;z-index:169;opacity:0;background-color:#0000004d}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{color:currentColor}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{color:currentColor;opacity:.6}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{color:currentColor;opacity:.8}angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{color:currentColor;opacity:.5}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-title{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-disabled).angor-vertical-navigation-item-active-forced .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover{background-color:rgb(3 33 40 / var(--tw-bg-opacity));--tw-bg-opacity: .05}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *),angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover:is(.dark *){background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-bg-opacity: .12}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-aside-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-basic-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle,angor-vertical-navigation-collapsable-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:not(.angor-vertical-navigation-item-active-forced):not(.angor-vertical-navigation-item-active):not(.angor-vertical-navigation-item-disabled):hover .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title,angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow{opacity:1}angor-vertical-navigation-collapsable-item.angor-vertical-navigation-item-expanded>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-subtitle{opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity));opacity:1}angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title:is(.dark *){--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity))}:root{--angor-vertical-navigation-compact-width: 112px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact{width:var(--angor-vertical-navigation-compact-width);min-width:var(--angor-vertical-navigation-compact-width);max-width:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-compact-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-compact-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{margin:4px 8px 0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{flex-direction:column;justify-content:center;padding:12px;border-radius:6px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{margin-top:8px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-title{font-size:12px;font-weight:500;text-align:center;line-height:16px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper .angor-vertical-navigation-item-subtitle{display:none!important}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge{position:absolute;top:12px;left:64px}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-collapsable-item,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-compact .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-compact-width)}:root{--angor-vertical-navigation-width: 280px;--angor-vertical-navigation-dense-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over){width:var(--angor-vertical-navigation-dense-width);min-width:var(--angor-vertical-navigation-dense-width);max-width:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-dense-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-mode-over).angor-vertical-navigation-position-right.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-dense-width) - 24px);min-width:calc(var(--angor-vertical-navigation-dense-width) - 24px);max-width:calc(var(--angor-vertical-navigation-dense-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{transition:opacity .4s cubic-bezier(.25,.8,.25,1)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item:first-of-type{margin-top:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{padding:10px 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;opacity:0}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-collapsable-item .angor-vertical-navigation-item-children{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-dense:not(.angor-vertical-navigation-hover):not(.angor-vertical-navigation-mode-over) .angor-vertical-navigation-wrapper .angor-vertical-navigation-content angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item:before{content:"";position:absolute;top:20px;width:23px;border-top-width:2px}angor-vertical-navigation.angor-vertical-navigation-appearance-dense .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-dense-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper{width:var(--angor-vertical-navigation-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{width:calc(var(--angor-vertical-navigation-width) - 24px);min-width:calc(var(--angor-vertical-navigation-width) - 24px);max-width:calc(var(--angor-vertical-navigation-width) - 24px)}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge,angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-wrapper .angor-vertical-navigation-content .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{white-space:nowrap;animation:removeWhiteSpaceNoWrap 1ms linear .35s;animation-fill-mode:forwards}angor-vertical-navigation.angor-vertical-navigation-appearance-dense.angor-vertical-navigation-hover .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-width)}@keyframes removeWhiteSpaceNoWrap{0%{white-space:nowrap}99%{white-space:nowrap}to{white-space:normal}}:root{--angor-vertical-navigation-thin-width: 80px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin{width:var(--angor-vertical-navigation-thin-width);min-width:var(--angor-vertical-navigation-thin-width);max-width:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-mode-side{margin-left:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-left.angor-vertical-navigation-opened{margin-left:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-mode-side{margin-right:calc(var(--angor-vertical-navigation-thin-width) * -1)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right.angor-vertical-navigation-opened{margin-right:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin.angor-vertical-navigation-position-right .angor-vertical-navigation-aside-wrapper{left:auto;right:var(--angor-vertical-navigation-thin-width)}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item{flex-direction:column;justify-content:center;height:64px;min-height:64px;max-height:64px;padding:0 16px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper{display:flex;align-items:center;justify-content:center}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item{justify-content:center;padding:12px;border-radius:4px}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-icon{margin:0}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-aside-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-arrow,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-badge-content,angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-basic-item .angor-vertical-navigation-item-wrapper .angor-vertical-navigation-item .angor-vertical-navigation-item-title-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-collapsable-item{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-wrapper .angor-vertical-navigation-content>angor-vertical-navigation-group-item>.angor-vertical-navigation-item-wrapper{display:none}angor-vertical-navigation.angor-vertical-navigation-appearance-thin .angor-vertical-navigation-aside-wrapper{left:var(--angor-vertical-navigation-thin-width)} `],encapsulation:2,data:{animation:gi},changeDetection:0});let i=e;return i})();var n1=["notificationsOrigin"],o1=["notificationsPanel"],r1=i=>({unread:i}),s1=(i,e)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":i,"bg-primary":e});function l1(i,e){if(i&1&&(y(0,"span",4)(1,"span",6),z(2),_()()),i&2){let a=h();m(2),ae(" ",a.unreadCount," ")}}function c1(i,e){i&1&&ye(0)}function u1(i,e){if(i&1&&(y(0,"a",23),A(1,c1,1,0,"ng-container",25),_()),i&2){let a=h(2).$implicit,t=te(9);f("href",a.link,Ye),m(),f("ngTemplateOutlet",t)}}function d1(i,e){i&1&&ye(0)}function m1(i,e){if(i&1&&(y(0,"a",24),A(1,d1,1,0,"ng-container",25),_()),i&2){let a=h(2).$implicit,t=te(9);f("routerLink",a.link),m(),f("ngTemplateOutlet",t)}}function p1(i,e){if(i&1&&A(0,u1,2,2,"a",23)(1,m1,2,2,"a",24),i&2){let a=h().$implicit;q(a.useRouter?-1:0),m(),q(a.useRouter?1:-1)}}function g1(i,e){i&1&&ye(0)}function f1(i,e){if(i&1&&(y(0,"div",17),A(1,g1,1,0,"ng-container",25),_()),i&2){h();let a=te(9);m(),f("ngTemplateOutlet",a)}}function h1(i,e){if(i&1&&(y(0,"div",26),S(1,"mat-icon",32),_()),i&2){let a=h(2).$implicit;m(),f("svgIcon",a.icon)}}function b1(i,e){if(i&1&&S(0,"img",27),i&2){let a=h(2).$implicit;f("src",a.image,Ye)("alt","Notification image")}}function v1(i,e){if(i&1&&S(0,"div",29),i&2){let a=h(2).$implicit;f("innerHTML",a.title,Xt)}}function y1(i,e){if(i&1&&S(0,"div",30),i&2){let a=h(2).$implicit;f("innerHTML",a.description,Xt)}}function _1(i,e){if(i&1&&(A(0,h1,2,1,"div",26)(1,b1,1,2,"img",27),y(2,"div",28),A(3,v1,1,1,"div",29)(4,y1,1,1,"div",30),y(5,"div",31),z(6),Ei(7,"date"),_()()),i&2){let a=h().$implicit;q(a.icon&&!a.image?0:-1),m(),q(a.image?1:-1),m(2),q(a.title?3:-1),m(),q(a.description?4:-1),m(2),ae(" ",Oi(7,5,a.time,"MMM dd, h:mm a")," ")}}function x1(i,e){if(i&1){let a=re();y(0,"div",16),A(1,p1,2,2)(2,f1,2,1,"div",17),y(3,"div",18)(4,"button",19),Y("click",function(){let n=K(a).$implicit,o=h(2);return Q(o.toggleRead(n))}),S(5,"span",20),_(),y(6,"button",21),Y("click",function(){let n=K(a).$implicit,o=h(2);return Q(o.delete(n))}),S(7,"mat-icon",22),_()()(),A(8,_1,8,8,"ng-template",null,2,it)}if(i&2){let a=e.$implicit;f("ngClass",qe(7,r1,!a.read)),m(),q(a.link?1:-1),m(),q(a.link?-1:2),m(2),f("matTooltip",a.read?"Mark as unread":"Mark as read"),m(),f("ngClass",Ct(9,s1,a.read,!a.read)),m(),f("matTooltip","Remove"),m(),f("svgIcon","heroicons_solid:x-mark")}}function w1(i,e){i&1&&(y(0,"div",15)(1,"div",33),S(2,"mat-icon",34),_(),y(3,"div",35),z(4," No notifications "),_(),y(5,"div",36),z(6," When you have notifications, they will appear here. "),_()()),i&2&&(m(2),f("svgIcon","heroicons_outline:bell"))}function S1(i,e){if(i&1){let a=re();y(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),Y("click",function(){K(a);let n=h();return Q(n.closePanel())}),S(4,"mat-icon",10),_()(),y(5,"div",11),z(6,"Notifications"),_(),y(7,"div",12)(8,"button",13),Y("click",function(){K(a);let n=h();return Q(n.markAllAsRead())}),S(9,"mat-icon",10),_()()(),y(10,"div",14),Pe(11,x1,10,12,null,null,zt().trackByFn,!0),A(13,w1,7,1,"div",15),_()()}if(i&2){let a=h();m(4),f("svgIcon","heroicons_solid:x-mark"),m(4),f("matTooltip","Mark all as read")("disabled",a.unreadCount===0),m(),f("svgIcon","heroicons_solid:envelope-open"),m(2),Fe(a.notifications),m(2),q(!a.notifications||!a.notifications.length?13:-1)}}var fr=(()=>{let e=class e{constructor(t,n,o,r){this._changeDetectorRef=t,this._notificationsService=n,this._overlay=o,this._viewContainerRef=r,this.unreadCount=0,this._unsubscribeAll=new Z}ngOnInit(){this._notificationsService.notifications$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.notifications=t,this._calculateUnreadCount(),this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete(),this._overlayRef&&this._overlayRef.dispose()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new oo(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef.detach()}markAllAsRead(){this._notificationsService.markAllAsRead().subscribe()}toggleRead(t){t.read=!t.read,this._notificationsService.update(t.id,t).subscribe()}delete(t){this._notificationsService.delete(t.id).subscribe()}trackByFn(t,n){return n.id||t}_createOverlay(){this._overlayRef=this._overlay.create({hasBackdrop:!0,backdropClass:"angor-backdrop-on-mobile",scrollStrategy:this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().flexibleConnectedTo(this._notificationsOrigin._elementRef.nativeElement).withLockedPosition(!0).withPush(!0).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}_calculateUnreadCount(){let t=0;this.notifications&&this.notifications.length&&(t=this.notifications.filter(n=>!n.read).length),this.unreadCount=t}};e.\u0275fac=function(n){return new(n||e)(j(ce),j(ar),j(ti),j(Ba))},e.\u0275cmp=U({type:e,selectors:[["notifications"]],viewQuery:function(n,o){if(n&1&&(Qe(n1,5),Qe(o1,5)),n&2){let r;Re(r=He())&&(o._notificationsOrigin=r.first),Re(r=He())&&(o._notificationsPanel=r.first)}},exportAs:["notifications"],standalone:!0,features:[G],decls:6,vars:2,consts:[["notificationsOrigin",""],["notificationsPanel",""],["notificationContent",""],["mat-icon-button","",3,"click"],[1,"absolute","left-0","right-0","top-0","flex","h-3","items-center","justify-center"],[3,"svgIcon"],[1,"ml-4","mt-2.5","flex","h-4","min-w-4","shrink-0","items-center","justify-center","rounded-full","bg-teal-600","px-1","text-xs","font-medium","text-indigo-50"],[1,"fixed","inset-0","flex","flex-col","overflow-hidden","shadow-lg","sm:static","sm:inset-auto","sm:w-90","sm:min-w-90","sm:rounded-2xl"],[1,"flex","shrink-0","items-center","bg-primary","py-4","pl-6","pr-4","text-on-primary"],[1,"-ml-1","mr-3","sm:hidden"],[1,"text-current","icon-size-5",3,"svgIcon"],[1,"text-lg","font-medium","leading-10"],[1,"ml-auto"],["mat-icon-button","",1,"dark:text-white",3,"click","matTooltip","disabled"],[1,"bg-card","relative","flex","flex-auto","flex-col","divide-y","overflow-y-auto","sm:max-h-120"],[1,"flex","flex-auto","flex-col","items-center","justify-center","px-8","py-12","sm:justify-start"],[1,"group","flex","hover:bg-gray-50","dark:hover:bg-black","dark:hover:bg-opacity-5",3,"ngClass"],[1,"flex","flex-auto","py-5","pl-6"],[1,"relative","my-5","ml-2","mr-6","flex","flex-col"],["mat-icon-button","",1,"h-6","min-h-6","w-6",3,"click","matTooltip"],[1,"h-2","w-2","rounded-full",3,"ngClass"],["mat-icon-button","",1,"h-6","min-h-6","w-6","sm:opacity-0","sm:group-hover:opacity-100",3,"click","matTooltip"],[1,"icon-size-4",3,"svgIcon"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"href"],[1,"flex","flex-auto","cursor-pointer","py-5","pl-6",3,"routerLink"],[4,"ngTemplateOutlet"],[1,"mr-4","flex","h-8","w-8","shrink-0","items-center","justify-center","rounded-full","bg-gray-100","dark:bg-gray-700"],[1,"mr-4","h-8","w-8","shrink-0","overflow-hidden","rounded-full","object-cover","object-center",3,"src","alt"],[1,"flex","flex-auto","flex-col"],[1,"line-clamp-1","font-semibold",3,"innerHTML"],[1,"line-clamp-2",3,"innerHTML"],[1,"text-secondary","mt-2","text-sm","leading-none"],[1,"icon-size-5",3,"svgIcon"],[1,"flex","h-14","w-14","flex-0","items-center","justify-center","rounded-full","bg-primary-100","dark:bg-primary-600"],[1,"text-primary-700","dark:text-primary-50",3,"svgIcon"],[1,"mt-5","text-2xl","font-semibold","tracking-tight"],[1,"text-secondary","mt-1","w-full","max-w-60","text-center","text-md"]],template:function(n,o){if(n&1){let r=re();y(0,"button",3,0),Y("click",function(){return K(r),Q(o.openPanel())}),A(2,l1,3,1,"span",4),S(3,"mat-icon",5),_(),A(4,S1,14,5,"ng-template",null,1,it)}n&2&&(m(2),q(o.unreadCount>0?2:-1),m(),f("svgIcon","heroicons_outline:bell"))},dependencies:[et,Xe,be,he,rt,ot,_e,yt,di,Qn],encapsulation:2,changeDetection:0});let i=e;return i})();var C1=["messageInput"],q1=(i,e)=>({"-translate-x-full shadow sm:-translate-x-96 lg:-translate-x-80":i,"translate-x-0":e}),k1=()=>({wheelPropagation:!1}),T1=(i,e)=>({"dark:hover:bg-hover hover:bg-gray-100":i,"bg-primary-50 dark:bg-hover":e}),D1=(i,e,a,t)=>({"items-end":i,"items-start":e,"mt-0.5":a,"mt-3":t}),A1=(i,e)=>({"bg-blue-500 text-blue-50":i,"bg-gray-500 text-gray-50":e}),I1=(i,e)=>({"-right-1 -mr-px mb-px text-blue-500":i,"-left-1 -ml-px mb-px -scale-x-1 text-gray-500":e}),M1=(i,e)=>({"mr-3":i,"ml-3":e});function E1(i,e){i&1&&(y(0,"div",5)(1,"div",13),S(2,"mat-icon",14),_(),y(3,"div",15),z(4," Team Chat "),_(),y(5,"button",16),S(6,"mat-icon",17),_()()),i&2&&(m(2),f("svgIcon","heroicons_outline:chat-bubble-left-right"),m(4),f("svgIcon","heroicons_outline:x-mark"))}function O1(i,e){if(i&1&&S(0,"img",19),i&2){let a=h(2);f("src",a.chat.contact.avatar,Ye)}}function N1(i,e){if(i&1&&(y(0,"div",20),z(1),_()),i&2){let a=h(2);m(),ae(" ",a.chat.contact.name.charAt(0)," ")}}function L1(i,e){if(i&1&&(y(0,"div",6)(1,"div",18),A(2,O1,1,1,"img",19)(3,N1,2,1,"div",20),_(),y(4,"div",21),z(5),_(),y(6,"button",16),S(7,"mat-icon",17),_()()),i&2){let a=h();m(2),q(a.chat.contact.avatar?2:-1),m(),q(a.chat.contact.avatar?-1:3),m(2),ae(" ",a.chat.contact.name," "),m(2),f("svgIcon","heroicons_outline:x-mark")}}function P1(i,e){if(i&1&&S(0,"div",25),i&2){let a=h().$implicit,t=h();Ke("ring-primary-50",t.selectedChat&&t.selectedChat.id===a.id)}}function F1(i,e){if(i&1&&S(0,"img",19),i&2){let a=h().$implicit;f("src",a.contact.avatar,Ye)}}function R1(i,e){if(i&1&&(y(0,"div",20),z(1),_()),i&2){let a=h().$implicit;m(),ae(" ",a.contact.name.charAt(0)," ")}}function H1(i,e){if(i&1){let a=re();y(0,"div",22),Y("click",function(){let n=K(a).$implicit,o=h();return Q(o.selectChat(n.id))}),y(1,"div",23),A(2,P1,1,2,"div",24)(3,F1,1,1,"img",19)(4,R1,2,1,"div",20),_()()}if(i&2){let a=e.$implicit,t=h();f("ngClass",Ct(4,T1,!t.selectedChat||t.selectedChat.id!==a.id,t.selectedChat&&t.selectedChat.id===a.id)),m(2),q(a.unreadCount>0?2:-1),m(),q(a.contact.avatar?3:-1),m(),q(a.contact.avatar?-1:4)}}function j1(i,e){if(i&1&&(y(0,"div",34),S(1,"div",39),y(2,"div",40),z(3),Ei(4,"date"),_(),S(5,"div",39),_()),i&2){let a=h().$implicit;m(3),ae(" ",Oi(4,1,a.createdAt,"longDate")," ")}}function z1(i,e){i&1&&ye(0)}function J1(i,e){if(i&1&&(y(0,"div",36),A(1,z1,1,0,"ng-container",41),_()),i&2){let a=h().$implicit;h(2);let t=te(14);f("ngClass",Ct(2,I1,a.isMine,!a.isMine)),m(),f("ngTemplateOutlet",t)}}function B1(i,e){if(i&1&&(y(0,"div",38),z(1),Ei(2,"date"),_()),i&2){let a=h().$implicit;f("ngClass",Ct(5,M1,a.isMine,!a.isMine)),m(),ae(" ",Oi(2,2,a.createdAt,"HH:mm")," ")}}function V1(i,e){if(i&1&&(A(0,j1,6,4,"div",34),Ei(1,"date"),Ei(2,"date"),y(3,"div",28)(4,"div",35),A(5,J1,2,5,"div",36),S(6,"div",37),_(),A(7,B1,3,8,"div",38),_()),i&2){let a=e.$implicit,t=e.$index,n=e.$count,o=h(2);q(t===0||Oi(1,6,o.chat.messages[t-1].createdAt,"d")!==Oi(2,9,a.createdAt,"d")?0:-1),m(3),f("ngClass",Fl(12,D1,a.isMine,!a.isMine,t>0&&o.chat.messages[t-1].isMine===a.isMine,t>0&&o.chat.messages[t-1].isMine!==a.isMine)),m(),f("ngClass",Ct(17,A1,a.isMine,!a.isMine)),m(),q(t===n-1||o.chat.messages[t+1].isMine!==a.isMine?5:-1),m(),f("innerHTML",a.value,Xt),m(),q(t===0||t===n-1||o.chat.messages[t+1].isMine!==a.isMine||o.chat.messages[t+1].createdAt!==a.createdAt?7:-1)}}function W1(i,e){if(i&1&&(y(0,"div",26)(1,"div",27),Pe(2,V1,8,20,"div",28,zt().trackByFn,!0),_()(),y(4,"div",29)(5,"mat-form-field",30),S(6,"textarea",31,1),_(),y(8,"div",32)(9,"button",33),S(10,"mat-icon",17),_()()()),i&2){let a=h();m(2),Fe(a.chat.messages),m(3),f("subscriptSizing","dynamic"),m(5),f("svgIcon","heroicons_outline:paper-airplane")}}function U1(i,e){i&1&&(y(0,"div",12),S(1,"mat-icon",42),y(2,"div",43),z(3," Select a conversation "),_()()),i&2&&(m(),f("svgIcon","heroicons_outline:chat-bubble-bottom-center-text"))}function G1(i,e){i&1&&(Il(),y(0,"svg",44)(1,"g",45),S(2,"path",46),_()())}var hr=(()=>{let e=class e{constructor(t,n,o,r,s,l){this._document=t,this._elementRef=n,this._renderer2=o,this._ngZone=r,this._quickChatService=s,this._scrollStrategyOptions=l,this.opened=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new Z}get classList(){return{"quick-chat-opened":this.opened}}_resizeMessageInput(){this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.messageInput.nativeElement.style.height="auto",this.messageInput.nativeElement.style.height=`${this.messageInput.nativeElement.scrollHeight}px`})})}ngOnInit(){this._quickChatService.chat$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.chat=t}),this._quickChatService.chats$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.chats=t}),this._quickChatService.chat$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.selectedChat=t})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(t=>{t.forEach(n=>{let o=n.target;if(n.attributeName==="class")if(o.classList.contains("cdk-global-scrollblock")){let r=parseInt(o.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(r)}px`)}else this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",null)})}),this._mutationObserver.observe(this._document.documentElement,{attributes:!0,attributeFilter:["class"]})}ngOnDestroy(){this._mutationObserver.disconnect(),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}open(){this.opened||this._toggleOpened(!0)}close(){this.opened&&this._toggleOpened(!1)}toggle(){this.opened?this.close():this.open()}selectChat(t){this._toggleOpened(!0),this._quickChatService.getChatById(t).subscribe()}trackByFn(t,n){return n.id||t}_showOverlay(){this._hideOverlay(),this._overlay=this._renderer2.createElement("div"),this._overlay&&(this._overlay.classList.add("quick-chat-overlay"),this._renderer2.appendChild(this._elementRef.nativeElement.parentElement,this._overlay),this._scrollStrategy.enable(),this._overlay.addEventListener("click",()=>{this.close()}))}_hideOverlay(){this._overlay&&(this._overlay&&(this._overlay.parentNode.removeChild(this._overlay),this._overlay=null),this._scrollStrategy.disable())}_toggleOpened(t){this.opened=t,t?this._showOverlay():this._hideOverlay()}};e.\u0275fac=function(n){return new(n||e)(j(nt),j(jt),j(Mi),j(Ki),j(nr),j(ro))},e.\u0275cmp=U({type:e,selectors:[["quick-chat"]],viewQuery:function(n,o){if(n&1&&Qe(C1,5),n&2){let r;Re(r=He())&&(o.messageInput=r.first)}},hostVars:2,hostBindings:function(n,o){n&1&&Y("input",function(){return o._resizeMessageInput()})("ngModelChange",function(){return o._resizeMessageInput()}),n&2&&li(o.classList)},exportAs:["quickChat"],standalone:!0,features:[G],decls:15,vars:9,consts:[["speechBubbleExtension",""],["messageInput",""],[1,"fixed","bottom-0","top-0","w-full","sm:w-96","lg:sticky","lg:left-full","lg:h-screen","lg:w-16","lg:shadow"],[1,"bg-card","flex","h-full","w-full","flex-col","transition-transform","duration-400","ease-drawer","sm:w-96",3,"ngClass"],[1,"quick-chat-header","flex","flex-0","cursor-pointer","items-center","justify-start",3,"click"],[1,"flex","flex-auto","items-center","justify-center"],[1,"ml-3","flex","flex-auto","items-center"],[1,"flex","flex-auto","overflow-hidden","border-t"],["angorScrollbar","",1,"h-full","border-l","w-16","flex-0","overflow-y-hidden","overscroll-y-contain","sm:overflow-hidden","sm:overscroll-hidden",3,"angorScrollbarOptions"],[1,"flex-auto"],[1,"flex","cursor-pointer","items-center","px-4","py-3",3,"ngClass"],[1,"flex","flex-auto","flex-col","overflow-hidden","border-l","bg-gray-50","dark:bg-transparent"],[1,"flex","h-full","w-full","flex-auto","flex-col","items-center","justify-center","p-4"],[1,"flex","w-16","flex-0","items-center","justify-center"],[1,"icon-size-6",3,"svgIcon"],[1,"text-secondary","text-lg","font-medium"],["mat-icon-button","",1,"ml-auto","mr-4"],[3,"svgIcon"],[1,"relative","flex","h-10","w-10","flex-0","items-center","justify-center"],["alt","Contact avatar",1,"h-full","w-full","rounded-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","rounded-full","bg-gray-200","text-lg","uppercase","text-gray-600","dark:bg-gray-700","dark:text-gray-200"],[1,"ml-4","truncate","text-lg","font-medium","leading-5"],[1,"flex","cursor-pointer","items-center","px-4","py-3",3,"click","ngClass"],[1,"relative","flex","h-8","w-8","flex-0","items-center","justify-center"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900",3,"ring-primary-50"],[1,"ring-bg-card","absolute","bottom-0","right-0","-ml-0.5","h-2","w-2","flex-0","rounded-full","bg-primary","text-on-primary","ring-2","dark:bg-primary-500","dark:ring-gray-900"],[1,"flex","flex-col-reverse","overflow-y-auto","overscroll-y-contain"],[1,"flex","flex-auto","shrink","flex-col","p-6"],[1,"flex","flex-col",3,"ngClass"],[1,"flex","items-end","border-t","bg-gray-50","p-4","dark:bg-transparent"],[1,"angor-mat-dense","angor-mat-rounded","angor-mat-bold","w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize",""],[1,"my-px","ml-4","flex","h-11","items-center"],["mat-icon-button",""],[1,"-mx-6","my-3","flex","items-center","justify-center"],[1,"relative","max-w-3/4","rounded-lg","px-3","py-2",3,"ngClass"],[1,"absolute","bottom-0","w-3",3,"ngClass"],[1,"min-w-4","leading-5",3,"innerHTML"],[1,"text-secondary","my-0.5","text-sm","font-medium",3,"ngClass"],[1,"flex-auto","border-b"],[1,"text-secondary","mx-4","flex-0","text-sm","font-medium","leading-5"],[4,"ngTemplateOutlet"],[1,"icon-size-24",3,"svgIcon"],[1,"text-secondary","mt-4","text-center","text-xl","font-medium","tracking-tight"],["width","100%","height","100%","viewBox","0 0 66 66","xmlns","http://www.w3.org/2000/svg"],["id","Page-1","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["d","M1.01522827,0.516204834 C-8.83532715,54.3062744 61.7609863,70.5215302 64.8009949,64.3061218 C68.8074951,54.8859711 30.1663208,52.9997559 37.5036011,0.516204834 L1.01522827,0.516204834 Z","fill","currentColor","fill-rule","nonzero"]],template:function(n,o){if(n&1){let r=re();y(0,"div",2)(1,"div",3)(2,"div",4),Y("click",function(){return K(r),Q(o.toggle())}),A(3,E1,7,2,"div",5)(4,L1,8,4,"div",6),_(),y(5,"div",7)(6,"div",8)(7,"div",9),Pe(8,H1,5,7,"div",10,o.trackByFn,!0),_()(),y(10,"div",11),A(11,W1,11,2)(12,U1,4,1,"div",12),_()()()(),A(13,G1,3,0,"ng-template",null,0,it)}n&2&&(m(),f("ngClass",Ct(5,q1,o.opened,!o.opened)),m(2),q(!o.opened||o.opened&&!o.selectedChat?3:-1),m(),q(o.opened&&o.selectedChat?4:-1),m(2),f("angorScrollbarOptions",Yn(8,k1)),m(2),Fe(o.chats),m(3),q(o.chat?11:12))},dependencies:[_e,be,he,et,Xe,Fn,yt,lo,yc,po,Pc,Tc,Dc,Qn],styles:[`quick-chat{z-index:399}quick-chat>div{overflow:hidden}quick-chat.quick-chat-opened>div{overflow:visible}quick-chat:not(.quick-chat-opened)>div{overflow:visible;animation:addOverflowHidden 1ms linear .4s;animation-fill-mode:forwards}.quick-chat-header{height:64px}enterprise-layout .quick-chat-header,modern-layout .quick-chat-header{height:80px!important}.quick-chat-overlay{position:fixed;inset:0;z-index:299;opacity:1;background-color:transparent}@keyframes addOverflowHidden{0%{overflow:visible}99%{overflow:visible}to{overflow:hidden}} `],encapsulation:2});let i=e;return i})();var K1=["panel"],Q1=["*"];function X1(i,e){if(i&1){let a=re();y(0,"div",1,0),Y("@panelAnimation.done",function(n){K(a);let o=h();return Q(o._animationDone.next(n))}),Qi(2),_()}if(i&2){let a=e.id,t=h();li(t._classList),Ke("mat-mdc-autocomplete-visible",t.showPanel)("mat-mdc-autocomplete-hidden",!t.showPanel)("mat-primary",t._color==="primary")("mat-accent",t._color==="accent")("mat-warn",t._color==="warn"),f("id",t.id)("@panelAnimation",t.isOpen?"visible":"hidden"),Fr("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(a))}}var e4=oc("panelAnimation",[lc("void, hidden",ut({opacity:0,transform:"scaleY(0.8)"})),Vr(":enter, hidden => visible",[rc([ei("0.03s linear",ut({opacity:1})),ei("0.12s cubic-bezier(0, 0, 0.2, 1)",ut({transform:"scaleY(1)"}))])]),Vr(":leave, visible => hidden",[ei("0.075s linear",ut({opacity:0}))])]),t4=0,pl=class{constructor(e,a){this.source=e,this.option=a}},_m=new Ne("mat-autocomplete-default-options",{providedIn:"root",factory:i4});function i4(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}var xm=(()=>{let e=class e{get isOpen(){return this._isOpen&&this.showPanel}_setColor(t){this._color=t,this._changeDetectorRef.markForCheck()}set classList(t){this._classList=t,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(t){this._hideSingleSelectionIndicator=t,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(let t of this.options)t._changeDetectorRef.markForCheck()}constructor(t,n,o,r){this._changeDetectorRef=t,this._elementRef=n,this._defaults=o,this._activeOptionChanges=Jn.EMPTY,this._animationDone=new ct,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new ct,this.opened=new ct,this.closed=new ct,this.optionActivated=new ct,this.id=`mat-autocomplete-${t4++}`,this.inertGroups=r?.SAFARI||!1,this.autoActiveFirstOption=!!o.autoActiveFirstOption,this.autoSelectActiveOption=!!o.autoSelectActiveOption,this.requireSelection=!!o.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Yl(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){let n=new pl(this,t);this.optionSelected.emit(n)}_getPanelAriaLabelledby(t){if(this.ariaLabel)return null;let n=t?t+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:t}_skipPredicate(){return!1}};e.\u0275fac=function(n){return new(n||e)(j(ce),j(jt),j(_m),j(ia))},e.\u0275cmp=U({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(Rr(r,ao,5),Rr(r,tc,5)),n&2){let s;Re(s=He())&&(o.options=s),Re(s=He())&&(o.optionGroups=s)}},viewQuery:function(n,o){if(n&1&&(Qe(Lr,7),Qe(K1,5)),n&2){let r;Re(r=He())&&(o.template=r.first),Re(r=He())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Ni],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Ni],requireSelection:[2,"requireSelection","requireSelection",Ni],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Ni],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Ni]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[Va([{provide:ec,useExisting:e}]),Pr,G],ngContentSelectors:Q1,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(Gn(),A(0,X1,3,16,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:static;border-radius:var(--mat-autocomplete-container-shape, var(--mat-app-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow);background-color:var(--mat-autocomplete-background-color, var(--mat-app-surface-container))}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[e4]},changeDetection:0});let i=e;return i})();var a4={provide:Ac,useExisting:Dl(()=>gl),multi:!0};var br=new Ne("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let i=I(ti);return()=>i.scrollStrategies.reposition()}});function n4(i){return()=>i.scrollStrategies.reposition()}var o4={provide:br,deps:[ti],useFactory:n4},gl=(()=>{let e=class e{constructor(t,n,o,r,s,l,c,d,g,x,b){this._element=t,this._overlay=n,this._viewContainerRef=o,this._zone=r,this._changeDetectorRef=s,this._dir=c,this._formField=d,this._document=g,this._viewportRuler=x,this._defaults=b,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Jn.EMPTY,this._breakpointObserver=I($l),this._handsetLandscapeSubscription=Jn.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Z,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._initialized=new Z,this._injector=I(Or),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=wl(()=>{let v=this.autocomplete?this.autocomplete.options:null;return v?v.changes.pipe(Tl(v),Je(()=>Ai(...v.map(T=>T.onSelectionChange)))):this._initialized.pipe(Je(()=>this.optionSelections))}),this._handlePanelKeydown=v=>{(v.keyCode===27&&!eo(v)||v.keyCode===38&&eo(v,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),v.stopPropagation(),v.preventDefault())},this._trackedModal=null,this._scrollStrategy=l}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();let t=this._getWindow();typeof t<"u"&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){let t=this._getWindow();typeof t<"u"&&t.removeEventListener("blur",this._windowBlurHandler),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&to(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Ai(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe($e(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe($e(()=>this._overlayAttached)):vt()).pipe(Ee(t=>t instanceof ic?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Ai(Zi(this._document,"click"),Zi(this._document,"auxclick"),Zi(this._document,"touchend")).pipe($e(t=>{let n=Gl(t),o=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,r=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&n!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!o||!o.contains(n))&&(!r||!r.contains(n))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(n)}))}writeValue(t){Promise.resolve(null).then(()=>this._assignOptionValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){let n=t.keyCode,o=eo(t);if(n===27&&!o&&t.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&n===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){let r=this.autocomplete._keyManager.activeItem,s=n===38||n===40;n===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==r)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(t){let n=t.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(s=>s.selected);if(r){let s=this._getDisplayValue(r.value);o!==s&&r.deselect(!1)}}if(this._canOpen()&&this._document.activeElement===t.target){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_floatLabel(t=!1){this._formField&&this._formField.floatLabel==="auto"&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let t=new Bn(o=>{Ol(()=>{o.next()},{injector:this._injector})}),n=this.autocomplete.options.changes.pipe(Ht(()=>this._positionStrategy.reapplyLastPosition()),Yi(0));return Ai(t,n).pipe(Je(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Ze(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(t){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(t):t}_assignOptionValue(t){let n=this._getDisplayValue(t);t==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(t){this._formField?this._formField._control.value=t:this._element.nativeElement.value=t,this._previousValue=t}_setValueAndClose(t){let n=this.autocomplete,o=t?t.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),n._animationDone?n._animationDone.pipe(Ze(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(t,n){this.autocomplete?.options?.forEach(o=>{o!==t&&o.selected&&o.deselect(n)})}_openPanelInternal(t=this._element.nativeElement.value){if(this._attachOverlay(t),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;zr(this._trackedModal,"aria-owns",n)}}_attachOverlay(t){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new oo(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Zl.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=t,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let t=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=t.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=t.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new mc({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){let t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],s;this.position==="above"?s=r:this.position==="below"?s=n:s=[...n,...r],t.withPositions(s)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let t=this.autocomplete;if(t.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!t)return;let n=this.autocomplete.id;this._trackedModal&&to(this._trackedModal,"aria-owns",n),zr(t,"aria-owns",n),this._trackedModal=t}_clearFromModal(){if(this._trackedModal){let t=this.autocomplete.id;to(this._trackedModal,"aria-owns",t),this._trackedModal=null}}};e.\u0275fac=function(n){return new(n||e)(j(jt),j(ti),j(Ba),j(Ki),j(ce),j(br),j(Kl,8),j(bc,9),j(nt,8),j(uc),j(_m,8))},e.\u0275dir=Ja({type:e,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&Y("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(s){return o._handleInput(s)})("keydown",function(s){return o._handleKeydown(s)})("click",function(){return o._handleClick()}),n&2&&Fr("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Ni]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[Va([a4]),Pr,tt]});let i=e;return i})(),wm=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=za({type:e}),e.\u0275inj=ja({providers:[o4],imports:[pc,Ga,Jr,Xi,dc,Ga,Jr]});let i=e;return i})();var u4=["barSearchInput"],d4=["matAutocomplete"];function m4(i,e){if(i&1){let a=re();y(0,"button",5),Y("click",function(){K(a);let n=h(2);return Q(n.open())}),S(1,"mat-icon",6),_()}i&2&&(m(),f("svgIcon","heroicons_outline:magnifying-glass"))}function p4(i,e){i&1&&(y(0,"mat-option",14),z(1," No results found! "),_())}function g4(i,e){if(i&1){let a=re();y(0,"img",22),Y("error",function(n){K(a);let o=h(5);return Q(o.handleImageError(n))}),_()}if(i&2){let a=h().$implicit;Ll("alt","",a.name,"'s avatar"),f("src",a.avatar,Ye)}}function f4(i,e){i&1&&(Jt(0),S(1,"mat-icon",23),Bt()),i&2&&(m(),f("svgIcon","heroicons_outline:user-circle"))}function h4(i,e){if(i&1&&(y(0,"div",24),z(1),_()),i&2){let a=h().$implicit;m(),ae(" ",a.about," ")}}function b4(i,e){if(i&1&&(Jt(0),y(1,"mat-option",15)(2,"div",16)(3,"div",17),A(4,g4,1,3,"img",18)(5,f4,2,1,"ng-container",2),_(),y(6,"div",19)(7,"span",20),z(8),_(),A(9,h4,2,1,"div",21),_()()(),Bt()),i&2){let a=e.$implicit;m(),f("routerLink",a.link)("value",a.name),m(3),f("ngIf",a.avatar),m(),f("ngIf",!a.avatar),m(3),$n(a.name),m(),f("ngIf",a.about)}}function v4(i,e){if(i&1&&(Jt(0),A(1,b4,10,6,"ng-container",12),Bt()),i&2){let a=e.$implicit,t=h(3);m(),f("ngForOf",a.results)("ngForTrackBy",t.trackByFn)}}function y4(i,e){if(i&1){let a=re();y(0,"div",7),S(1,"mat-icon",8),y(2,"input",9,0),Y("keydown",function(n){K(a);let o=h(2);return Q(o.onKeydown(n))}),_(),y(4,"mat-autocomplete",10,1),A(6,p4,2,0,"mat-option",11)(7,v4,2,2,"ng-container",12),_(),y(8,"button",13),Y("click",function(){K(a);let n=h(2);return Q(n.close())}),S(9,"mat-icon",6),_()()}if(i&2){let a=te(5),t=h(2);f("@slideInTop",void 0)("@slideOutTop",void 0),m(),f("svgIcon","heroicons_outline:magnifying-glass"),m(),f("formControl",t.searchControl)("matAutocomplete",a)("placeholder","Search..."),m(2),f("autoSelectActiveOption",!0)("disableRipple",!0),m(2),f("ngIf",t.resultSets&&!t.resultSets.length),m(),f("ngForOf",t.resultSets)("ngForTrackBy",t.trackByFn),m(2),f("svgIcon","heroicons_outline:x-mark")}}function _4(i,e){if(i&1&&(y(0,"div"),A(1,m4,2,1,"button",3)(2,y4,10,12,"div",4),_()),i&2){let a=h();m(),f("ngIf",!a.opened),m(),f("ngIf",a.opened)}}var vr=(()=>{let e=class e{constructor(t,n){this._indexedDBService=t,this._sanitizer=n,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new ct,this.opened=!1,this.searchControl=new Ec,this._unsubscribeAll=new Z}set barSearchInput(t){t&&setTimeout(()=>{t.nativeElement.focus()})}set matAutocomplete(t){this._matAutocomplete=t}ngOnChanges(t){"appearance"in t&&this.close()}ngOnInit(){this.searchControl.valueChanges.pipe(Un(this.debounce),B(this._unsubscribeAll),Ee(t=>((!t||t.lengtht&&t.length>=this.minLength)).subscribe(t=>zn(this,null,function*(){let n=yield this._indexedDBService.searchUsersByMetadata(t);this.resultSets=n.map(o=>({label:"Project",results:[{name:o.user.name||o.user.displayName||o.pubkey,pubkey:o.pubkey,username:o.user.username||"",website:o.user.website||"",about:o.user.about?o.user.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:o.user.picture||null,banner:o.user.banner||null,link:`/project/${o.pubkey}`}]})),this.search.next(this.resultSets)}))}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(t){t.code==="Escape"&&this.appearance==="bar"&&!this._matAutocomplete.isOpen&&this.close()}open(){this.opened||(this.opened=!0)}close(){this.opened&&(this.searchControl.setValue(""),this.opened=!1)}trackByFn(t,n){return n.id||t}handleImageError(t){let n=t.target;n.onerror=null,n.src="images/avatars/avatar-placeholder.png"}};e.\u0275fac=function(n){return new(n||e)(j(go),j(ea))},e.\u0275cmp=U({type:e,selectors:[["search"]],viewQuery:function(n,o){if(n&1&&(Qe(u4,5),Qe(d4,5)),n&2){let r;Re(r=He())&&(o.barSearchInput=r.first),Re(r=He())&&(o.matAutocomplete=r.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],standalone:!0,features:[Va([{provide:br,useFactory:()=>{let t=I(ti);return()=>t.scrollStrategies.block()}}]),tt,G],decls:1,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],[4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],["class","bg-card absolute inset-0 z-99 flex shrink-0 items-center",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"bg-card","absolute","inset-0","z-99","flex","shrink-0","items-center"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],[1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete","placeholder"],[1,"max-h-128","rounded-b","border-t","shadow-md","sm:px-2",3,"autoSelectActiveOption","disableRipple"],["class","text-secondary pointer-events-none bg-transparent px-6 py-0 text-md",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5","h-10","w-10","shrink-0","sm:right-7",3,"click"],[1,"text-secondary","pointer-events-none","bg-transparent","px-6","py-0","text-md"],[1,"group","relative","mb-1","rounded-md","px-6","py-0","text-md","dark:hover:bg-hover","hover:bg-gray-100",3,"routerLink","value"],[1,"flex","items-center"],[1,"flex","h-8","w-8","shrink-0","items-center","justify-center","overflow-hidden","rounded-full","bg-primary-100","dark:bg-primary-800"],["class","h-full w-full object-cover",3,"src","alt","error",4,"ngIf"],[1,"ml-3","truncate"],[1,"font-semibold"],["class","text-sm text-gray-500",4,"ngIf"],[1,"h-full","w-full","object-cover",3,"error","src","alt"],[1,"m-0","text-primary","icon-size-5","dark:text-primary-400",3,"svgIcon"],[1,"text-sm","text-gray-500"]],template:function(n,o){n&1&&A(0,_4,3,2,"div",2),n&2&&f("ngIf",o.appearance==="bar")},dependencies:[et,Xe,be,he,Nc,Ic,Mc,wm,xm,ao,gl,Lc,Oc,Ga,di,lo,po,Xi,Hl,Kn],encapsulation:2,data:{animation:gi}});let i=e;return i})();function x4(i,e){if(i&1&&(Jt(0),S(1,"img",14),Bt()),i&2){let a=h();m(),f("src",a.getSafeUrl(a.metadata==null?null:a.metadata.picture),Ye)}}function w4(i,e){i&1&&S(0,"mat-icon",12),i&2&&f("svgIcon","heroicons_outline:user-circle")}var yr=(()=>{let e=class e{constructor(t,n,o,r,s,l,c){this._changeDetectorRef=t,this._router=n,this._angorConfigService=o,this._metadataService=r,this._signerService=s,this._indexedDBService=l,this.sanitizer=c,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new Z}ngOnInit(){this.loadUserProfile(),this._angorConfigService.config$.pipe(B(this._unsubscribeAll)).subscribe(t=>{localStorage.setItem("angorConfig",JSON.stringify(t)),this.config=t,this._changeDetectorRef.detectChanges()}),this.loadUserProfile(),this._indexedDBService.getMetadataStream().pipe(B(this._unsubscribeAll)).subscribe(t=>{t&&t.pubkey===this.user?.pubkey&&(this.metadata=t.metadata,this._changeDetectorRef.detectChanges())})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){return zn(this,null,function*(){this.isLoading=!0,this.errorMessage=null;let t=this._signerService.getPublicKey();if(!t){this.errorMessage="No public key found. Please log in again.",this.isLoading=!1,this._changeDetectorRef.detectChanges();return}this.user={pubkey:t};try{let n=yield this._metadataService.fetchMetadataWithCache(t);n&&(this.metadata=n,this._changeDetectorRef.detectChanges()),this._metadataService.getMetadataStream().pipe(B(this._unsubscribeAll)).subscribe(o=>{o&&o.pubkey===t&&(this.metadata=o,this._changeDetectorRef.detectChanges())})}catch(n){console.error("Failed to load profile data:",n),this.errorMessage="Failed to load profile data. Please try again later.",this._changeDetectorRef.detectChanges()}finally{this.isLoading=!1,this._changeDetectorRef.detectChanges()}})}logout(){this._router.navigate(["/logout"])}profile(){this._router.navigate(["/profile"])}setLayout(t){this._angorConfigService.config={layout:t},this._changeDetectorRef.detectChanges()}setScheme(t){this._angorConfigService.config={scheme:t},this._changeDetectorRef.detectChanges()}setTheme(t){this._angorConfigService.config={theme:t},this._changeDetectorRef.detectChanges()}getSafeUrl(t){return this.sanitizer.bypassSecurityTrustUrl(t)}};e.\u0275fac=function(n){return new(n||e)(j(ce),j(je),j($a),j(Hc),j(fo),j(go),j(ea))},e.\u0275cmp=U({type:e,selectors:[["user"]],standalone:!0,features:[G],decls:48,vars:12,consts:[["defaultAvatar",""],["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],[4,"ngIf","ngIfElse"],[3,"xPosition"],["mat-menu-item",""],[1,"flex","flex-col","leading-none"],[1,"mt-1.5","text-md","font-medium"],[1,"my-2"],["mat-menu-item","",3,"click"],[3,"svgIcon"],["mat-menu-item","",3,"matMenuTriggerFor"],["alt","User Avatar",1,"h-7","w-7","rounded-full","object-cover",3,"src"]],template:function(n,o){if(n&1){let r=re();y(0,"button",3)(1,"span",4),A(2,x4,2,1,"ng-container",5)(3,w4,1,1,"ng-template",null,0,it),_()(),y(5,"mat-menu",6,1)(7,"button",7)(8,"span",8)(9,"span"),z(10,"Logged in as"),_(),y(11,"span",9),z(12),_()()(),S(13,"mat-divider",10),y(14,"button",11),Y("click",function(){return K(r),Q(o.profile())}),S(15,"mat-icon",12),y(16,"span"),z(17,"Profile"),_()(),y(18,"button",13),S(19,"mat-icon",12),y(20,"span"),z(21,"Settings"),_()(),S(22,"mat-divider",10),y(23,"button",11),Y("click",function(){return K(r),Q(o.logout())}),S(24,"mat-icon",12),y(25,"span"),z(26,"logout"),_()()(),y(27,"mat-menu",null,2)(29,"button",11),Y("click",function(){return K(r),Q(o.setScheme("auto"))}),S(30,"mat-icon",12),y(31,"span"),z(32,"Auto Theme"),_()(),y(33,"button",11),Y("click",function(){return K(r),Q(o.setScheme("light"))}),S(34,"mat-icon",12),y(35,"span"),z(36,"Light Theme"),_()(),y(37,"button",11),Y("click",function(){return K(r),Q(o.setScheme("dark"))}),S(38,"mat-icon",12),y(39,"span"),z(40,"Dark Theme"),_()(),S(41,"mat-divider"),y(42,"button",11),Y("click",function(){return K(r),Q(o.setLayout("classic"))}),y(43,"span"),z(44,"Classic Layout"),_()(),y(45,"button",11),Y("click",function(){return K(r),Q(o.setLayout("modern"))}),y(46,"span"),z(47,"Modern Layout"),_()()()}if(n&2){let r=te(4),s=te(6),l=te(28);f("matMenuTriggerFor",s),m(2),f("ngIf",o.metadata==null?null:o.metadata.picture)("ngIfElse",r),m(3),f("xPosition","before"),m(7),$n((o.metadata==null?null:o.metadata.display_name)||(o.metadata==null?null:o.metadata.name)||"Unknown User"),m(3),f("svgIcon","heroicons_outline:user-circle"),m(3),f("matMenuTriggerFor",l),m(),f("svgIcon","heroicons_outline:cog-8-tooth"),m(5),f("svgIcon","heroicons_outline:arrow-right-on-rectangle"),m(6),f("svgIcon","heroicons_solid:bolt"),m(4),f("svgIcon","heroicons_solid:sun"),m(4),f("svgIcon","heroicons_solid:moon")}},dependencies:[et,Xe,oa,uo,na,mo,be,he,Rc,Fc,Xi,Kn],encapsulation:2,changeDetection:0});let i=e;return i})();function S4(i,e){if(i&1&&(y(0,"angor-vertical-navigation",1),Jt(1,13),y(2,"div",14),S(3,"img",15),_(),Bt(),_()),i&2){let a=h();f("mode","over")("name","mainNavigation")("navigation",a.navigation.default)("opened",!1)}}function C4(i,e){if(i&1&&(y(0,"div",16)(1,"div",17),S(2,"img",18)(3,"img",19),_(),S(4,"img",20),_(),S(5,"angor-horizontal-navigation",21)),i&2){let a=h();m(5),f("name","mainNavigation")("navigation",a.navigation.horizontal)}}function q4(i,e){if(i&1){let a=re();y(0,"button",22),Y("click",function(){K(a);let n=h();return Q(n.toggleNavigation("mainNavigation"))}),S(1,"mat-icon",9),_()}i&2&&(m(),f("svgIcon","heroicons_outline:bars-3"))}function k4(i,e){i&1&&S(0,"router-outlet")}var Cm=(()=>{let e=class e{constructor(t,n,o,r,s){this._activatedRoute=t,this._router=n,this._navigationService=o,this._angorMediaWatcherService=r,this._angorNavigationService=s,this._unsubscribeAll=new Z,this.version=Ta}get currentYear(){return new Date().getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.navigation=t}),this._angorMediaWatcherService.onMediaChange$.pipe(B(this._unsubscribeAll)).subscribe(({matchingAliases:t})=>{this.isScreenSmall=!t.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(t){let n=this._angorNavigationService.getComponent(t);n&&n.toggle()}};e.\u0275fac=function(n){return new(n||e)(j(ta),j(je),j(ka),j(pi),j(ge))},e.\u0275cmp=U({type:e,selectors:[["modern-layout"]],standalone:!0,features:[G],decls:20,vars:8,consts:[["quickChat","quickChat"],[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","sm:h-20","md:px-6","print:hidden"],["mat-icon-button",""],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],["mat-icon-button","",1,"lg:hidden",3,"click"],[3,"svgIcon"],[1,"flex","w-full","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","border-t","px-4","dark:bg-transparent","sm:h-20","md:px-6","print:hidden"],[1,"text-secondary","font-medium"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","px-8","pt-6"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"w-24","h-10"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"w-24","h-10","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","w-24","h-10","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"]],template:function(n,o){if(n&1){let r=re();S(0,"angor-loading-bar"),A(1,S4,4,4,"angor-vertical-navigation",1),y(2,"div",2)(3,"div",3),A(4,C4,6,2)(5,q4,2,1,"button",4),y(6,"div",5),S(7,"angor-fullscreen",6)(8,"search",7)(9,"notifications"),y(10,"button",8),Y("click",function(){K(r);let l=te(19);return Q(l.toggle())}),S(11,"mat-icon",9),_(),S(12,"user"),_()(),y(13,"div",10),A(14,k4,1,0,"router-outlet"),_(),y(15,"div",11)(16,"span",12),z(17),_()()(),S(18,"quick-chat",null,0)}n&2&&(m(),q(o.isScreenSmall?1:-1),m(3),q(o.isScreenSmall?-1:4),m(),q(o.isScreenSmall?5:-1),m(3),f("appearance","bar"),m(3),f("svgIcon","heroicons_outline:chat-bubble-left-right"),m(3),q(14),m(3),Zn("Angor \xA9 ",o.currentYear," - version ",o.version,""))},dependencies:[Da,gr,om,et,Xe,be,he,rr,vr,fr,yr,ui,hr],encapsulation:2});let i=e;return i})();function T4(i,e){i&1&&S(0,"router-outlet")}var qm=(()=>{let e=class e{constructor(t,n,o,r,s){this._activatedRoute=t,this._router=n,this._navigationService=o,this._angorMediaWatcherService=r,this._angorNavigationService=s,this._unsubscribeAll=new Z,this.version=Ta}get currentYear(){return new Date().getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.navigation=t}),this._angorMediaWatcherService.onMediaChange$.pipe(B(this._unsubscribeAll)).subscribe(({matchingAliases:t})=>{this.isScreenSmall=!t.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(t){let n=this._angorNavigationService.getComponent(t);n&&n.toggle()}};e.\u0275fac=function(n){return new(n||e)(j(ta),j(je),j(ka),j(pi),j(ge))},e.\u0275cmp=U({type:e,selectors:[["classic-layout"]],standalone:!0,features:[G],decls:24,vars:10,consts:[["quickChat","quickChat"],[1,"dark","bg-gray-900","print:hidden",3,"mode","name","navigation","opened"],["angorVerticalNavigationContentHeader",""],[1,"flex","h-20","items-center","p-6"],["src","images/logo/logo-text.svg","alt","Angor Hub",1,"w-30","dark:hidden"],["src","images/logo/logo-text-on-dark.svg","alt","Angor Hub",1,"hidden","w-30","dark:flex"],[1,"flex","w-full","min-w-0","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-16","w-full","flex-0","items-center","px-4","shadow","dark:border-b","dark:bg-transparent","dark:shadow-none","md:px-6","print:hidden"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"ml-auto","flex","items-center","space-x-0.5","pl-2","sm:space-x-2"],[1,"hidden","md:block"],[3,"appearance"],["mat-icon-button","",1,"lg:hidden",3,"click"],[1,"flex","flex-auto","flex-col"],[1,"bg-card","relative","z-49","flex","h-14","w-full","flex-0","items-center","justify-start","border-t","px-4","dark:bg-transparent","md:px-6","print:hidden"],[1,"text-secondary","font-medium"]],template:function(n,o){if(n&1){let r=re();S(0,"angor-loading-bar"),y(1,"angor-vertical-navigation",1),Jt(2,2),y(3,"div",3),S(4,"img",4)(5,"img",5),_(),Bt(),_(),y(6,"div",6)(7,"div",7)(8,"button",8),Y("click",function(){return K(r),Q(o.toggleNavigation("mainNavigation"))}),S(9,"mat-icon",9),_(),y(10,"div",10),S(11,"angor-fullscreen",11)(12,"search",12)(13,"notifications"),y(14,"button",13),Y("click",function(){K(r);let l=te(23);return Q(l.toggle())}),S(15,"mat-icon",9),_(),S(16,"user"),_()(),y(17,"div",14),A(18,T4,1,0,"router-outlet"),_(),y(19,"div",15)(20,"span",16),z(21),_()()(),S(22,"quick-chat",null,0)}n&2&&(m(),f("mode",o.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",o.navigation.default)("opened",!o.isScreenSmall),m(8),f("svgIcon","heroicons_outline:bars-3"),m(3),f("appearance","bar"),m(3),f("svgIcon","heroicons_outline:chat-bubble-left-right"),m(3),q(18),m(3),Zn("Angor \xA9 ",o.currentYear," - version ",o.version,""))},dependencies:[Da,gr,et,Xe,be,he,rr,vr,fr,yr,ui,hr],encapsulation:2});let i=e;return i})();function D4(i,e){i&1&&S(0,"empty-layout")}function A4(i,e){i&1&&S(0,"modern-layout")}function I4(i,e){i&1&&S(0,"classic-layout")}var _r=(()=>{let e=class e{constructor(t,n,o,r,s,l,c){this._activatedRoute=t,this._document=n,this._renderer2=o,this._router=r,this._angorConfigService=s,this._angorMediaWatcherService=l,this._angorPlatformService=c,this._unsubscribeAll=new Z}ngOnInit(){Vn([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe(B(this._unsubscribeAll),Ee(([t,n])=>{let o={scheme:t.scheme,theme:t.theme};return t.scheme==="auto"&&(o.scheme=n.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),o})).subscribe(t=>{this.scheme=t.scheme,this.theme=t.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe(B(this._unsubscribeAll)).subscribe(t=>{this.config=t,this._updateLayout()}),this._router.events.pipe($e(t=>t instanceof Vt),B(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",Ta),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let t=this._activatedRoute;for(;t.firstChild;)t=t.firstChild;this.layout=this.config.layout;let n=t.snapshot.queryParamMap.get("layout");n&&(this.layout=n,this.config&&(this.config.layout=n)),t.pathFromRoot.forEach(r=>{r.routeConfig&&r.routeConfig.data&&r.routeConfig.data.layout&&(this.layout=r.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(t=>{t.startsWith("theme-")&&this._document.body.classList.remove(t,t.split("-")[1])}),this._document.body.classList.add(this.theme)}};e.\u0275fac=function(n){return new(n||e)(j(ta),j(nt),j(Mi),j(je),j($a),j(pi),j(er))},e.\u0275cmp=U({type:e,selectors:[["layout"]],standalone:!0,features:[G],decls:3,vars:3,template:function(n,o){n&1&&A(0,D4,1,0,"empty-layout")(1,A4,1,0,"modern-layout")(2,I4,1,0,"classic-layout"),n&2&&(q(o.layout==="empty"?0:-1),m(),q(o.layout==="modern"?1:-1),m(),q(o.layout==="classic"?2:-1))},dependencies:[Qd,Cm,qm],styles:[`layout{display:flex;flex:1 1 auto;width:100%;max-width:100%;min-width:0}layout>*{position:relative;display:flex;flex:1 1 auto;width:100%}layout router-outlet+*{position:relative;display:flex;flex:1 1 auto;width:100%} -`],encapsulation:2});let i=e;return i})();var Rn=()=>{let i=I(fo),e=I(je);return i.getPublicKey()!==""?!0:e.parseUrl("/login")};var km=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:_r,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>import("./chunk-HUZYLRUH.js")},{path:"register",loadChildren:()=>import("./chunk-JB4C5CO3.js")}]},{path:"",canActivate:[Rn],canActivateChild:[Rn],component:_r,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>import("./chunk-L5KTQ534.js")}]},{path:"",canActivate:[Rn],canActivateChild:[Rn],component:_r,resolve:{initialData:Yd},children:[{path:"home",loadChildren:()=>import("./chunk-YH5J6DB5.js")},{path:"explore",loadChildren:()=>import("./chunk-7KVKKYAR.js")},{path:"profile",loadChildren:()=>import("./chunk-FSQVH6RP.js")},{path:"settings",loadChildren:()=>import("./chunk-PS53JEOB.js")},{path:"chat",loadChildren:()=>import("./chunk-HXTGFYHM.js")},{path:"404-not-found",pathMatch:"full",loadChildren:()=>import("./chunk-B7PWRZPI.js")},{path:"**",redirectTo:"404-not-found"}]}];var Tm=(()=>{let e=class e{constructor(){let t=I(ea),n=I(Cc);n.addSvgIconSet(t.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),n.addSvgIconSetInNamespace("mat_outline",t.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),n.addSvgIconSetInNamespace("mat_solid",t.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),n.addSvgIconSetInNamespace("feather",t.bypassSecurityTrustResourceUrl("icons/feather.svg")),n.addSvgIconSetInNamespace("heroicons_outline",t.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),n.addSvgIconSetInNamespace("heroicons_solid",t.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),n.addSvgIconSetInNamespace("heroicons_mini",t.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Dm=()=>[{provide:Qt,useValue:()=>I(Tm),multi:!0}];var Am=[{id:"9a67dff7-3c38-4052-a335-0cef93438ff6",title:"Web",slug:"web"},{id:"a89672f5-e00d-4be4-9194-cb9d29f82165",title:"Firebase",slug:"firebase"},{id:"02f42092-bb23-4552-9ddb-cfdcc235d48f",title:"Cloud",slug:"cloud"},{id:"5648a630-979f-4403-8c41-fc9790dea8cd",title:"Android",slug:"android"}],Im=[{id:"694e4e5f-f25f-470b-bd0e-26b1d4f64028",title:"Basics of Angular",slug:"basics-of-angular",description:"Introductory course for Angular and framework basics",category:"web",duration:30,totalSteps:11,updatedAt:"Jun 28, 2021",featured:!0,progress:{currentStep:3,completed:2}},{id:"f924007a-2ee9-470b-a316-8d21ed78277f",title:"Basics of TypeScript",slug:"basics-of-typeScript",description:"Beginner course for Typescript and its basics",category:"web",duration:60,totalSteps:11,updatedAt:"Nov 01, 2021",featured:!0,progress:{currentStep:5,completed:3}},{id:"0c06e980-abb5-4ba7-ab65-99a228cab36b",title:"Android N: Quick Settings",slug:"android-n-quick-settings",description:"Step by step guide for Android N: Quick Settings",category:"android",duration:120,totalSteps:11,updatedAt:"May 08, 2021",featured:!1,progress:{currentStep:10,completed:1}},{id:"1b9a9acc-9a36-403e-a1e7-b11780179e38",title:"Build an App for the Google Assistant with Firebase",slug:"build-an-app-for-the-google-assistant-with-firebase",description:"Dive deep into Google Assistant apps using Firebase",category:"firebase",duration:30,totalSteps:11,updatedAt:"Jan 09, 2021",featured:!1,progress:{currentStep:4,completed:3}},{id:"55eb415f-3f4e-4853-a22b-f0ae91331169",title:"Keep Sensitive Data Safe and Private",slug:"keep-sensitive-data-safe-and-private",description:"Learn how to keep your important data safe and private",category:"android",duration:45,totalSteps:11,updatedAt:"Jan 14, 2021",featured:!1,progress:{currentStep:6,completed:0}},{id:"fad2ab23-1011-4028-9a54-e52179ac4a50",title:"Manage Your Pivotal Cloud Foundry App's Using Apigee Edge",slug:"manage-your-pivotal-cloud-foundry-apps-using-apigee-Edge",description:"Introductory course for Pivotal Cloud Foundry App",category:"cloud",duration:90,totalSteps:11,updatedAt:"Jun 24, 2021",featured:!1,progress:{currentStep:6,completed:0}},{id:"c4bc107b-edc4-47a7-a7a8-4fb09732e794",title:"Build a PWA Using Workbox",slug:"build-a-pwa-using-workbox",description:"Step by step guide for building a PWA using Workbox",category:"web",duration:120,totalSteps:11,updatedAt:"Nov 19, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"1449f945-d032-460d-98e3-406565a22293",title:"Cloud Functions for Firebase",slug:"cloud-functions-for-firebase",description:"Beginners guide of Firebase Cloud Functions",category:"firebase",duration:45,totalSteps:11,updatedAt:"Jul 11, 2021",featured:!1,progress:{currentStep:3,completed:1}},{id:"f05e08ab-f3e3-4597-a032-6a4b69816f24",title:"Building a gRPC Service with Java",slug:"building-a-grpc-service-with-java",description:"Learn more about building a gRPC Service with Java",category:"cloud",duration:30,totalSteps:11,updatedAt:"Mar 13, 2021",featured:!1,progress:{currentStep:0,completed:1}},{id:"181728f4-87c8-45c5-b9cc-92265bcd2f4d",title:"Looking at Campaign Finance with BigQuery",slug:"looking-at-campaign-finance-with-bigquery",description:"Dive deep into BigQuery: Campaign Finance",category:"cloud",duration:60,totalSteps:11,updatedAt:"Nov 01, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"fcbfedbf-6187-4b3b-89d3-1a7cb4e11616",title:"Personalize Your iOS App with Firebase User Management",slug:"personalize-your-ios-app-with-firebase-user-management",description:"Dive deep into User Management on iOS apps using Firebase",category:"firebase",duration:90,totalSteps:11,updatedAt:"Aug 08, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"5213f6a1-1dd7-4b1d-b6e9-ffb7af534f28",title:"Customize Network Topology with Subnetworks",slug:"customize-network-topology-with-subnetworks",description:"Dive deep into Network Topology with Subnetworks",category:"web",duration:45,totalSteps:11,updatedAt:"May 12, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"02992ac9-d1a3-4167-b70e-8a1d5b5ba253",title:"Building Beautiful UIs with Flutter",slug:"building-beautiful-uis-with-flutter",description:"Dive deep into Flutter's hidden secrets for creating beautiful UIs",category:"web",duration:90,totalSteps:11,updatedAt:"Sep 18, 2021",featured:!1,progress:{currentStep:8,completed:2}},{id:"2139512f-41fb-4a4a-841a-0b4ac034f9b4",title:"Firebase Android",slug:"firebase-android",description:"Beginners guide of Firebase for Android",category:"android",duration:45,totalSteps:11,updatedAt:"Apr 24, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"65e0a0e0-d8c0-4117-a3cb-eb74f8e28809",title:"Simulating a Thread Network Using OpenThread",slug:"simulating-a-thread-network-using-openthread",description:"Introductory course for OpenThread and Simulating a Thread Network",category:"web",duration:45,totalSteps:11,updatedAt:"Jun 05, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"c202ebc9-9be3-433a-9d38-7003b3ed7b7a",title:"Your First Progressive Web App",slug:"your-first-progressive-web-app",description:"Step by step guide for creating a PWA from scratch",category:"web",duration:30,totalSteps:11,updatedAt:"Oct 14, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"980ae7da-9f77-4e30-aa98-1b1ea594e775",title:"Launch Cloud Datalab",slug:"launch-cloud-datalab",description:"From start to finish: Launch Cloud Datalab",category:"cloud",duration:60,totalSteps:11,updatedAt:"Dec 16, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"c9748ea9-4117-492c-bdb2-55085b515978",title:"Cloud Firestore",slug:"cloud-firestore",description:"Step by step guide for setting up Cloud Firestore",category:"firebase",duration:90,totalSteps:11,updatedAt:"Apr 04, 2021",featured:!1,progress:{currentStep:2,completed:0}}],Nt=` +`],encapsulation:2});let i=e;return i})();var Rn=()=>{let i=I(fo),e=I(je);return i.getPublicKey()!==""?!0:e.parseUrl("/login")};var km=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:_r,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>import("./chunk-42YXMLAE.js")},{path:"register",loadChildren:()=>import("./chunk-V2SEKFEW.js")}]},{path:"",canActivate:[Rn],canActivateChild:[Rn],component:_r,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>import("./chunk-G4C2NSS4.js")}]},{path:"",canActivate:[Rn],canActivateChild:[Rn],component:_r,resolve:{initialData:Yd},children:[{path:"home",loadChildren:()=>import("./chunk-YH5J6DB5.js")},{path:"explore",loadChildren:()=>import("./chunk-NX4YLCAX.js")},{path:"profile",loadChildren:()=>import("./chunk-VNXQB3RV.js")},{path:"settings",loadChildren:()=>import("./chunk-SCHRUTWR.js")},{path:"chat",loadChildren:()=>import("./chunk-5F4DOZP3.js")},{path:"404-not-found",pathMatch:"full",loadChildren:()=>import("./chunk-B7PWRZPI.js")},{path:"**",redirectTo:"404-not-found"}]}];var Tm=(()=>{let e=class e{constructor(){let t=I(ea),n=I(Cc);n.addSvgIconSet(t.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),n.addSvgIconSetInNamespace("mat_outline",t.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),n.addSvgIconSetInNamespace("mat_solid",t.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),n.addSvgIconSetInNamespace("feather",t.bypassSecurityTrustResourceUrl("icons/feather.svg")),n.addSvgIconSetInNamespace("heroicons_outline",t.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),n.addSvgIconSetInNamespace("heroicons_solid",t.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),n.addSvgIconSetInNamespace("heroicons_mini",t.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Dm=()=>[{provide:Qt,useValue:()=>I(Tm),multi:!0}];var Am=[{id:"9a67dff7-3c38-4052-a335-0cef93438ff6",title:"Web",slug:"web"},{id:"a89672f5-e00d-4be4-9194-cb9d29f82165",title:"Firebase",slug:"firebase"},{id:"02f42092-bb23-4552-9ddb-cfdcc235d48f",title:"Cloud",slug:"cloud"},{id:"5648a630-979f-4403-8c41-fc9790dea8cd",title:"Android",slug:"android"}],Im=[{id:"694e4e5f-f25f-470b-bd0e-26b1d4f64028",title:"Basics of Angular",slug:"basics-of-angular",description:"Introductory course for Angular and framework basics",category:"web",duration:30,totalSteps:11,updatedAt:"Jun 28, 2021",featured:!0,progress:{currentStep:3,completed:2}},{id:"f924007a-2ee9-470b-a316-8d21ed78277f",title:"Basics of TypeScript",slug:"basics-of-typeScript",description:"Beginner course for Typescript and its basics",category:"web",duration:60,totalSteps:11,updatedAt:"Nov 01, 2021",featured:!0,progress:{currentStep:5,completed:3}},{id:"0c06e980-abb5-4ba7-ab65-99a228cab36b",title:"Android N: Quick Settings",slug:"android-n-quick-settings",description:"Step by step guide for Android N: Quick Settings",category:"android",duration:120,totalSteps:11,updatedAt:"May 08, 2021",featured:!1,progress:{currentStep:10,completed:1}},{id:"1b9a9acc-9a36-403e-a1e7-b11780179e38",title:"Build an App for the Google Assistant with Firebase",slug:"build-an-app-for-the-google-assistant-with-firebase",description:"Dive deep into Google Assistant apps using Firebase",category:"firebase",duration:30,totalSteps:11,updatedAt:"Jan 09, 2021",featured:!1,progress:{currentStep:4,completed:3}},{id:"55eb415f-3f4e-4853-a22b-f0ae91331169",title:"Keep Sensitive Data Safe and Private",slug:"keep-sensitive-data-safe-and-private",description:"Learn how to keep your important data safe and private",category:"android",duration:45,totalSteps:11,updatedAt:"Jan 14, 2021",featured:!1,progress:{currentStep:6,completed:0}},{id:"fad2ab23-1011-4028-9a54-e52179ac4a50",title:"Manage Your Pivotal Cloud Foundry App's Using Apigee Edge",slug:"manage-your-pivotal-cloud-foundry-apps-using-apigee-Edge",description:"Introductory course for Pivotal Cloud Foundry App",category:"cloud",duration:90,totalSteps:11,updatedAt:"Jun 24, 2021",featured:!1,progress:{currentStep:6,completed:0}},{id:"c4bc107b-edc4-47a7-a7a8-4fb09732e794",title:"Build a PWA Using Workbox",slug:"build-a-pwa-using-workbox",description:"Step by step guide for building a PWA using Workbox",category:"web",duration:120,totalSteps:11,updatedAt:"Nov 19, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"1449f945-d032-460d-98e3-406565a22293",title:"Cloud Functions for Firebase",slug:"cloud-functions-for-firebase",description:"Beginners guide of Firebase Cloud Functions",category:"firebase",duration:45,totalSteps:11,updatedAt:"Jul 11, 2021",featured:!1,progress:{currentStep:3,completed:1}},{id:"f05e08ab-f3e3-4597-a032-6a4b69816f24",title:"Building a gRPC Service with Java",slug:"building-a-grpc-service-with-java",description:"Learn more about building a gRPC Service with Java",category:"cloud",duration:30,totalSteps:11,updatedAt:"Mar 13, 2021",featured:!1,progress:{currentStep:0,completed:1}},{id:"181728f4-87c8-45c5-b9cc-92265bcd2f4d",title:"Looking at Campaign Finance with BigQuery",slug:"looking-at-campaign-finance-with-bigquery",description:"Dive deep into BigQuery: Campaign Finance",category:"cloud",duration:60,totalSteps:11,updatedAt:"Nov 01, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"fcbfedbf-6187-4b3b-89d3-1a7cb4e11616",title:"Personalize Your iOS App with Firebase User Management",slug:"personalize-your-ios-app-with-firebase-user-management",description:"Dive deep into User Management on iOS apps using Firebase",category:"firebase",duration:90,totalSteps:11,updatedAt:"Aug 08, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"5213f6a1-1dd7-4b1d-b6e9-ffb7af534f28",title:"Customize Network Topology with Subnetworks",slug:"customize-network-topology-with-subnetworks",description:"Dive deep into Network Topology with Subnetworks",category:"web",duration:45,totalSteps:11,updatedAt:"May 12, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"02992ac9-d1a3-4167-b70e-8a1d5b5ba253",title:"Building Beautiful UIs with Flutter",slug:"building-beautiful-uis-with-flutter",description:"Dive deep into Flutter's hidden secrets for creating beautiful UIs",category:"web",duration:90,totalSteps:11,updatedAt:"Sep 18, 2021",featured:!1,progress:{currentStep:8,completed:2}},{id:"2139512f-41fb-4a4a-841a-0b4ac034f9b4",title:"Firebase Android",slug:"firebase-android",description:"Beginners guide of Firebase for Android",category:"android",duration:45,totalSteps:11,updatedAt:"Apr 24, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"65e0a0e0-d8c0-4117-a3cb-eb74f8e28809",title:"Simulating a Thread Network Using OpenThread",slug:"simulating-a-thread-network-using-openthread",description:"Introductory course for OpenThread and Simulating a Thread Network",category:"web",duration:45,totalSteps:11,updatedAt:"Jun 05, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"c202ebc9-9be3-433a-9d38-7003b3ed7b7a",title:"Your First Progressive Web App",slug:"your-first-progressive-web-app",description:"Step by step guide for creating a PWA from scratch",category:"web",duration:30,totalSteps:11,updatedAt:"Oct 14, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"980ae7da-9f77-4e30-aa98-1b1ea594e775",title:"Launch Cloud Datalab",slug:"launch-cloud-datalab",description:"From start to finish: Launch Cloud Datalab",category:"cloud",duration:60,totalSteps:11,updatedAt:"Dec 16, 2021",featured:!1,progress:{currentStep:0,completed:0}},{id:"c9748ea9-4117-492c-bdb2-55085b515978",title:"Cloud Firestore",slug:"cloud-firestore",description:"Step by step guide for setting up Cloud Firestore",category:"firebase",duration:90,totalSteps:11,updatedAt:"Apr 04, 2021",featured:!1,progress:{currentStep:2,completed:0}}],Nt=`

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aperiam lab et fugiat id magnam minus nemo quam voluptatem. Culpa deleniti explica nisi quod soluta. diff --git a/ngsw.json b/ngsw.json index fe00381..98f845e 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1726853408416, + "timestamp": 1726863281609, "index": "/index.html", "assetGroups": [ { @@ -13,34 +13,34 @@ "urls": [ "/chunk-2L6QON5Y.js", "/chunk-3Q7ZV3LD.js", + "/chunk-42YXMLAE.js", "/chunk-4AZPYN7Q.js", - "/chunk-7KVKKYAR.js", + "/chunk-5F4DOZP3.js", + "/chunk-6S6AYVUH.js", "/chunk-7TGJR4WL.js", - "/chunk-7WK6GZSZ.js", "/chunk-B7PWRZPI.js", - "/chunk-BK7YAMGQ.js", + "/chunk-BLRJMPLX.js", "/chunk-BVVMJWCI.js", "/chunk-DQUACDFU.js", - "/chunk-FSQVH6RP.js", + "/chunk-G4C2NSS4.js", "/chunk-GTCJWQQT.js", - "/chunk-HUZYLRUH.js", + "/chunk-HGT4ACXZ.js", "/chunk-HXPRHIP3.js", - "/chunk-HXTGFYHM.js", - "/chunk-JB4C5CO3.js", - "/chunk-L2RASMKO.js", - "/chunk-L5KTQ534.js", - "/chunk-LKKRLEHJ.js", + "/chunk-I33GKPRG.js", + "/chunk-K7XPURVS.js", "/chunk-LP5NDBXI.js", "/chunk-MH4Z64LL.js", - "/chunk-PS53JEOB.js", - "/chunk-PWH2GQNP.js", + "/chunk-MYVAGBPZ.js", + "/chunk-NX4YLCAX.js", + "/chunk-ON6SO2QP.js", + "/chunk-OV5Y7PXG.js", + "/chunk-SCHRUTWR.js", "/chunk-SJC7NN3X.js", - "/chunk-TCWZV6BW.js", - "/chunk-TXXDQLF3.js", + "/chunk-V2SEKFEW.js", + "/chunk-VNXQB3RV.js", "/chunk-YH5J6DB5.js", - "/chunk-ZSOMQRTJ.js", "/index.html", - "/main-IO7HEYYC.js", + "/main-QSBPRLJZ.js", "/manifest.webmanifest", "/polyfills-SCHOHYNV.js", "/styles-BGIKXNKH.css" @@ -141,32 +141,32 @@ "/app-icons/icon-96x96.png": "fbbea0384fa7300bb0c19bda205ba1c406b3ee21", "/chunk-2L6QON5Y.js": "8de60b51184be5faa27e985dfeff59fe72beb786", "/chunk-3Q7ZV3LD.js": "999eb5005b842e173e0c217004e92b9bf2475339", + "/chunk-42YXMLAE.js": "e8e043b7fe62745a95e7083a1738cf349d9b68c0", "/chunk-4AZPYN7Q.js": "e5430b0622c2ea3b6bb3583885ea13b77a349e53", - "/chunk-7KVKKYAR.js": "e77282fd8b957acfdacfa20d87e8021275c8c8f0", + "/chunk-5F4DOZP3.js": "ca6f56a57db585b7b5bde304d05ac04b699edbe7", + "/chunk-6S6AYVUH.js": "aa80f7d6dc4296e5f79a787b9e6318ecf52b47ad", "/chunk-7TGJR4WL.js": "7f7901f46f4d72934a39842e82a419158d8dc6b3", - "/chunk-7WK6GZSZ.js": "ca006d45044fae8549e27d25d94d142505388430", "/chunk-B7PWRZPI.js": "7b66a6c401e6bc646790576b855d92bbbd323be0", - "/chunk-BK7YAMGQ.js": "7ec52a2078a6679e4c95fbd09e5f251ad55b422f", + "/chunk-BLRJMPLX.js": "6823e6a2d3613c29b1cbaef18dabd9a774a2aee6", "/chunk-BVVMJWCI.js": "057e325446e0d32081724be5b8ea54842410accc", "/chunk-DQUACDFU.js": "8904cc56ccd23f8be9aa9eae9e9971e602308a38", - "/chunk-FSQVH6RP.js": "8b11b5a2643f1571a7d0134d72657f6ccbb1aa0c", + "/chunk-G4C2NSS4.js": "af334e81ddbd3a7f63b085ae1cd3d07bc0c53dda", "/chunk-GTCJWQQT.js": "e2647a39b081e66116bed64cf8bb7e2c1983d168", - "/chunk-HUZYLRUH.js": "86527aaaa1c3a6d00192aef23fd415142df7eab1", + "/chunk-HGT4ACXZ.js": "fc131e7e2d68c0e37b926fe6f97099b36ae45e1d", "/chunk-HXPRHIP3.js": "c8fb51a0ece1c646555b30d4ac64b380283198c1", - "/chunk-HXTGFYHM.js": "c5a3b52c7d1636dc56ebc0d50b8c850387f648ef", - "/chunk-JB4C5CO3.js": "81fec67e063fc1614252eec4c99b999d7e250428", - "/chunk-L2RASMKO.js": "641acd0a66449495a9e374090503c095f68b475f", - "/chunk-L5KTQ534.js": "11514408b47967923c32064af9348ffa295d6a51", - "/chunk-LKKRLEHJ.js": "f16401437e6fe33936a8c243a56ac9bc8f0ffe89", + "/chunk-I33GKPRG.js": "7b54e9e876a242ac9f09dd0897c5455bb85b9917", + "/chunk-K7XPURVS.js": "be6dd55be26b4a08089f2344e9fa69e7cb8780d1", "/chunk-LP5NDBXI.js": "add2973d8883b7274e50737661f18e37f52aec17", "/chunk-MH4Z64LL.js": "87e81762fb2f2b5e1d668d07994c5517377a2d6a", - "/chunk-PS53JEOB.js": "ddd88be88620caedcb43a01a5e2330e825bb0b4a", - "/chunk-PWH2GQNP.js": "30e055d335d25fa5d5b30e0be1de98f288b0b67b", + "/chunk-MYVAGBPZ.js": "a8c31acd72926d5466a68dd2c513b2a95bb7e7e6", + "/chunk-NX4YLCAX.js": "726cb01a56c5acf9e98df8b9e7c5633300068cdb", + "/chunk-ON6SO2QP.js": "35a826bb177999a353f600587aba612a2ea9dba3", + "/chunk-OV5Y7PXG.js": "49c5d3b5727fc67b1e4fe329035ddeee92060fdf", + "/chunk-SCHRUTWR.js": "fd4a16e442c83fcdf4d25b007a601254fc6bdc75", "/chunk-SJC7NN3X.js": "5848c0f9bdd25889383f7415f56419ae3fd44c9f", - "/chunk-TCWZV6BW.js": "ce29477ad074d6ba4d248d9dfec8558532e2db86", - "/chunk-TXXDQLF3.js": "4d48c1a562218f10038424b8f309b5d009675bc0", + "/chunk-V2SEKFEW.js": "96e2d662da3374f12ec9431bf5411e44b4556d10", + "/chunk-VNXQB3RV.js": "6056f6f6fb116a43313eb0fa77916d8e793da22b", "/chunk-YH5J6DB5.js": "ef0f47fa8a0627a4752acae302858a5989afc562", - "/chunk-ZSOMQRTJ.js": "bc51e89575f94a4f35e3d26151f71020996e6006", "/favicon-16x16.png": "6f5502cefd4027e8186601ca6d3cbf969795963c", "/favicon-32x32.png": "6f5502cefd4027e8186601ca6d3cbf969795963c", "/fonts/inter/Inter-italic.var.woff2": "5c2ff0c81a369e4ff3b060b5eeee59e82058a41e", @@ -229,8 +229,8 @@ "/images/logo/logo.svg": "eaadf840082d5fdcc0d728530b0fc7927e703ce9", "/images/pages/help-center/image-1.jpg": "806a87043b0c49207b587e50cf4deb8ca0008a6e", "/images/pages/profile/cover.jpg": "a874a39cd3b94a9a7a94faffe80f94c2db3f5a1e", - "/index.html": "631d786bef1265f979231a5701660f362b1c5370", - "/main-IO7HEYYC.js": "238e3839f5d7cff1ca27c4969bb3edf59aa528fc", + "/index.html": "0d3424ce8d85e19b53d861a069de1e3efeafc287", + "/main-QSBPRLJZ.js": "d6f0aec3f45577aeb0abb4028cc60c700b939803", "/manifest.webmanifest": "fd6065c16eb892ec6d23f8481bf59ff95e312888", "/polyfills-SCHOHYNV.js": "d45c76c5960bab3ace7fd6d211b9579456241f8a", "/styles-BGIKXNKH.css": "2f78213f961b44b63d9351f9f7516d6efe7d68b7"