From a41756d4e3b7b9ddd5c09cf860e8aa286d5299cb Mon Sep 17 00:00:00 2001 From: miladsoft Date: Sat, 26 Oct 2024 09:34:03 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/block-core/angor-hub/commit/1bd732d751eccb4210ccf9f2220f2898b2521f34 --- 389.0fc7edae525b0b80.js | 1 + 389.ea91c43b6c028724.js | 1 - 404.html | 2 +- index.html | 2 +- main.296eaf2bd85dc953.js | 1 - main.f89a6fddedd7073e.js | 1 + ngsw.json | 2 +- runtime.24140919c28461a1.js | 1 - runtime.f3564957519b9063.js | 1 + 9 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 389.0fc7edae525b0b80.js delete mode 100644 389.ea91c43b6c028724.js delete mode 100644 main.296eaf2bd85dc953.js create mode 100644 main.f89a6fddedd7073e.js delete mode 100644 runtime.24140919c28461a1.js create mode 100644 runtime.f3564957519b9063.js diff --git a/389.0fc7edae525b0b80.js b/389.0fc7edae525b0b80.js new file mode 100644 index 0000000..07c2eaa --- /dev/null +++ b/389.0fc7edae525b0b80.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[389],{1146:Ee=>{"use strict";for(var U="qpzry9x8gf2tvdw0s3jn54khce6mua7l",S={},x=0;x<32;x++){var y=U.charAt(x);if(void 0!==S[y])throw new TypeError(y+" is ambiguous");S[y]=x}function v(j){var F=j>>25;return(33554431&j)<<5^996825010&-(1&F)^642813549&-(F>>1&1)^513874426&-(F>>2&1)^1027748829&-(F>>3&1)^705979059&-(F>>4&1)}function A(j){for(var F=1,he=0;he126)return"Invalid prefix ("+j+")";F=v(F)^W>>5}for(F=v(F),he=0;he(F=F||90))return"Exceeds length limit";var he=j.toLowerCase(),W=j.toUpperCase();if(j!==he&&j!==W)return"Mixed-case string "+j;var ne=(j=he).lastIndexOf("1");if(-1===ne)return"No separator character for "+j;if(0===ne)return"Missing prefix for "+j;var o=j.slice(0,ne),ae=j.slice(ne+1);if(ae.length<6)return"Data too short";var ke=A(o);if("string"==typeof ke)return ke;for(var $e=[],de=0;de=ae.length)&&$e.push(se)}return 1!==ke?"Invalid checksum for "+j:{prefix:o,words:$e}}function q(j,F,he,W){for(var ne=0,o=0,ae=(1<=he;)ke.push(ne>>(o-=he)&ae);if(W)o>0&&ke.push(ne<=F)return"Excess padding";if(ne<(he=he||90))throw new TypeError("Exceeds length limit");var W=A(j=j.toLowerCase());if("string"==typeof W)throw new Error(W);for(var ne=j+"1",o=0;o>5)throw new Error("Non 5-bit word");W=v(W)^ae,ne+=U.charAt(ae)}for(o=0;o<6;++o)W=v(W);for(W^=1,o=0;o<6;++o)ne+=U.charAt(W>>5*(5-o)&31);return ne},toWordsUnsafe:function oe(j){var F=q(j,8,5,!0);if(Array.isArray(F))return F},toWords:function le(j){var F=q(j,8,5,!0);if(Array.isArray(F))return F;throw new Error(F)},fromWordsUnsafe:function ee(j){var F=q(j,5,8,!1);if(Array.isArray(F))return F},fromWords:function te(j){var F=q(j,5,8,!1);if(Array.isArray(F))return F;throw new Error(F)}}},7389:(Ee,U,S)=>{"use strict";S.r(U),S.d(U,{default:()=>Jc});var x={};S.r(x),S.d(x,{OG:()=>Rr,My:()=>mn,Ph:()=>At,lX:()=>Ir,Id:()=>sn,fg:()=>Fi,qj:()=>xt,aT:()=>yn,lq:()=>Jt,z:()=>$i,Q5:()=>Un});var y=S(467),v=S(5167),A=S(7403),h=S(177),T=S(9417),B=S(8834),N=S(1997),q=S(2102),oe=S(9213),le=S(9042),ee=S(9115),te=S(9183),j=S(450),F=S(4823),he=S(9192),W=S(8865),ne=S(3813),o=S(4438),ae=S(2577),ke=S(345);const $e=["qrcElement"];let de=(()=>{class t{constructor(e,r){this.renderer=e,this.sanitizer=r,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new o.bkB,this.context=null}ngOnChanges(){var e=this;return(0,y.A)(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((r,i)=>{(0,ae.dY)(this.qrdata,e,(s,u)=>{s?i(s):r(u)})})}toCanvas(e,r){return new Promise((i,s)=>{(0,ae.mo)(e,this.qrdata,r,u=>{u?s(u):i("success")})})}toSVG(e){return new Promise((r,i)=>{(0,ae.toString)(this.qrdata,e,(s,u)=>{s?i(s):r(u)})})}renderElement(e){for(const r of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,r);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return(0,y.A)(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const r={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},i=e.imageSrc,s=e.imageHeight||40,u=e.imageWidth||40;switch(e.elementType){case"canvas":{const f=e.renderer.createElement("canvas");e.context=f.getContext("2d"),e.toCanvas(f,r).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(f,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(f,"title",`${e.title}`),i&&e.context){e.centerImage=new Image(u,s),i!==e.centerImage.src&&(e.centerImage.crossOrigin="anonymous",e.centerImage.src=i),s!==e.centerImage.height&&(e.centerImage.height=s),u!==e.centerImage.width&&(e.centerImage.width=u);const g=e.centerImage;g&&(g.onload=()=>{e.context?.drawImage(g,f.width/2-u/2,f.height/2-s/2,u,s)})}e.renderElement(f),e.emitQRCodeURL(f)}).catch(g=>{console.error("[angularx-qrcode] canvas error:",g)});break}case"svg":{const f=e.renderer.createElement("div");e.toSVG(r).then(g=>{e.renderer.setProperty(f,"innerHTML",g);const m=f.firstChild;e.renderer.setAttribute(m,"height",`${e.width}`),e.renderer.setAttribute(m,"width",`${e.width}`),e.renderElement(m),e.emitQRCodeURL(m)}).catch(g=>{console.error("[angularx-qrcode] svg error:",g)});break}default:{const f=e.renderer.createElement("img");e.toDataURL(r).then(g=>{e.alt&&f.setAttribute("alt",e.alt),e.ariaLabel&&f.setAttribute("aria-label",e.ariaLabel),f.setAttribute("src",g),e.title&&f.setAttribute("title",e.title),e.renderElement(f),e.emitQRCodeURL(f)}).catch(g=>{console.error("[angularx-qrcode] img/url error:",g)})}}}catch(r){console.error("[angularx-qrcode] Error generating QR Code:",r.message)}})()}convertBase64ImageUrlToBlob(e){const r=e.split(";base64,"),i=r[0].split(":")[1],s=atob(r[1]),u=new Uint8Array(s.length);for(let f=0;f{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=o.$C({type:t})}static{this.\u0275inj=o.G2t({})}}return t})(),Yn=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=o.$C({type:t})}static{this.\u0275inj=o.G2t({})}}return t})();var Ge=S(1413),Pe=S(5351),kn=S(2798),Ve=S(882);S(6371);var et=S(6218),tt=S(600);function un(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Ye(t,...n){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(n.length>0&&!n.includes(t.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${t.length}`)}const Le={number:un,bool:function nt(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:Ye,hash:function Zn(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");un(t.outputLen),un(t.blockLen)},exists:function rt(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")},output:function it(t,n){Ye(t);const e=n.outputLen;if(t.lengtht instanceof Uint8Array,hn=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Oe=(t,n)=>t<<32-n|t>>>n;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const Xn=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Be(t){if(!fn(t))throw new Error("Uint8Array expected");let n="";for(let e=0;er+i.length,0));let e=0;return t.forEach(r=>{if(!fn(r))throw new Error("Uint8Array expected");n.set(r,e),e+=r.length}),n}class Sn{clone(){return this._cloneInto()}}function dn(t){const n=r=>t().update(je(r)).digest(),e=t();return n.outputLen=e.outputLen,n.blockLen=e.blockLen,n.create=()=>t(),n}function Zt(t=32){if(ze&&"function"==typeof ze.getRandomValues)return ze.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class Cn extends Sn{constructor(n,e,r,i){super(),this.blockLen=n,this.outputLen=e,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(n),this.view=hn(this.buffer)}update(n){Le.exists(this);const{view:e,buffer:r,blockLen:i}=this,s=(n=je(n)).length;for(let u=0;ui-u&&(this.process(r,0),u=0);for(let k=u;k>i&s),f=Number(e&s),m=r?0:4;t.setUint32(n+(r?4:0),u,r),t.setUint32(n+m,f,r)})(r,i-8,BigInt(8*this.length),s),this.process(r,0);const f=hn(n),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const m=g/4,M=this.get();if(m>M.length)throw new Error("_sha2: outputLen bigger than state");for(let k=0;kt&n^~t&e,In=(t,n,e)=>t&n^t&e^n&e,Rn=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]),Bt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Nt=new Uint32Array(64);class gn extends Cn{constructor(){super(64,32,8,!1),this.A=0|Bt[0],this.B=0|Bt[1],this.C=0|Bt[2],this.D=0|Bt[3],this.E=0|Bt[4],this.F=0|Bt[5],this.G=0|Bt[6],this.H=0|Bt[7]}get(){const{A:n,B:e,C:r,D:i,E:s,F:u,G:f,H:g}=this;return[n,e,r,i,s,u,f,g]}set(n,e,r,i,s,u,f,g){this.A=0|n,this.B=0|e,this.C=0|r,this.D=0|i,this.E=0|s,this.F=0|u,this.G=0|f,this.H=0|g}process(n,e){for(let k=0;k<16;k++,e+=4)Nt[k]=n.getUint32(e,!1);for(let k=16;k<64;k++){const O=Nt[k-15],L=Nt[k-2],P=Oe(O,7)^Oe(O,18)^O>>>3,I=Oe(L,17)^Oe(L,19)^L>>>10;Nt[k]=I+Nt[k-7]+P+Nt[k-16]|0}let{A:r,B:i,C:s,D:u,E:f,F:g,G:m,H:M}=this;for(let k=0;k<64;k++){const L=M+(Oe(f,6)^Oe(f,11)^Oe(f,25))+Tn(f,g,m)+Rn[k]+Nt[k]|0,I=(Oe(r,2)^Oe(r,13)^Oe(r,22))+In(r,i,s)|0;M=m,m=g,g=f,f=u+L|0,u=s,s=i,i=r,r=L+I|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,u=u+this.D|0,f=f+this.E|0,g=g+this.F|0,m=m+this.G|0,M=M+this.H|0,this.set(r,i,s,u,f,g,m,M)}roundClean(){Nt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Bn extends gn{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}}const Tt=dn(()=>new gn),Xt=(dn(()=>new Bn),BigInt(0),BigInt(1)),Nn=BigInt(2),Qt=t=>t instanceof Uint8Array,ps=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function mn(t){if(!Qt(t))throw new Error("Uint8Array expected");let n="";for(let e=0;er+i.length,0));let e=0;return t.forEach(r=>{if(!Qt(r))throw new Error("Uint8Array expected");n.set(r,e),e+=r.length}),n}const Rr=t=>(Nn<new Uint8Array(t),Di=t=>Uint8Array.from(t);function Fi(t,n,e){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");if("function"!=typeof e)throw new Error("hmacFn must be a function");let r=Br(t),i=Br(t),s=0;const u=()=>{r.fill(1),i.fill(0),s=0},f=(...k)=>e(i,r,...k),g=(k=Br())=>{i=f(Di([0]),k),r=f(),0!==k.length&&(i=f(Di([1]),k),r=f())},m=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let k=0;const O=[];for(;k{let L;for(u(),g(k);!(L=O(m()));)g();return u(),L}}const ys={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,n)=>n.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function Un(t,n,e={}){const r=(i,s,u)=>{const f=ys[s];if("function"!=typeof f)throw new Error(`Invalid validator "${s}", expected function`);const g=t[i];if(!(u&&void 0===g||f(g,t)))throw new Error(`Invalid param ${String(i)}=${g} (${typeof g}), expected ${s}`)};for(const[i,s]of Object.entries(n))r(i,s,!1);for(const[i,s]of Object.entries(e))r(i,s,!0);return t}const bt=BigInt(0),qe=BigInt(1),en=BigInt(2),vs=BigInt(3),Nr=BigInt(4),qi=BigInt(5),Gi=BigInt(8);function _t(t,n){const e=t%n;return e>=bt?e:n+e}function _s(t,n,e){if(e<=bt||n 0");if(e===qe)return bt;let r=qe;for(;n>bt;)n&qe&&(r=r*t%e),t=t*t%e,n>>=qe;return r}function Ut(t,n,e){let r=t;for(;n-- >bt;)r*=r,r%=e;return r}function rr(t,n){if(t===bt||n<=bt)throw new Error(`invert: expected positive integers, got n=${t} mod=${n}`);let e=_t(t,n),r=n,i=bt,s=qe,u=qe,f=bt;for(;e!==bt;){const m=r/e,M=r%e,k=i-u*m,O=s-f*m;r=e,e=M,i=u,s=f,u=k,f=O}if(r!==qe)throw new Error("invert: does not exist");return _t(i,n)}BigInt(9),BigInt(16);const Ms=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ur(t,n){const e=void 0!==n?n:t.toString(2).length;return{nBitLength:e,nByteLength:Math.ceil(e/8)}}const Is=BigInt(0),Pr=BigInt(1);function zi(t){return function ks(t){Un(t,Ms.reduce((r,i)=>(r[i]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(t.Fp),Un(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ur(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}const{Ph:Ns,aT:Us}=x,an={Err:class extends Error{constructor(n=""){super(n)}},_parseInt(t){const{Err:n}=an;if(t.length<2||2!==t[0])throw new n("Invalid signature integer tag");const e=t[1],r=t.subarray(2,e+2);if(!e||r.length!==e)throw new n("Invalid signature integer: wrong length");if(128&r[0])throw new n("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:Ns(r),l:t.subarray(e+2)}},toSig(t){const{Err:n}=an,e="string"==typeof t?Us(t):t;if(!(e instanceof Uint8Array))throw new Error("ui8a expected");let r=e.length;if(r<2||48!=e[0])throw new n("Invalid signature tag");if(e[1]!==r-2)throw new n("Invalid signature: incorrect length");const{d:i,l:s}=an._parseInt(e.subarray(2)),{d:u,l:f}=an._parseInt(s);if(f.length)throw new n("Invalid signature: left bytes after parsing");return{r:i,s:u}},hexFromSig(t){const n=m=>8&Number.parseInt(m[0],16)?"00"+m:m,e=m=>{const M=m.toString(16);return 1&M.length?`0${M}`:M},r=n(e(t.s)),i=n(e(t.r)),s=r.length/2,u=i.length/2,f=e(s),g=e(u);return`30${e(u+s+4)}02${g}${i}02${f}${r}`}},Ot=BigInt(0),st=BigInt(1),ir=(BigInt(2),BigInt(3));function Os(t){const n=function Ls(t){const n=zi(t);return Un(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}(t),{Fp:e,n:r}=n,i=e.BYTES+1,s=2*e.BYTES+1;function f(z){return _t(z,r)}function g(z){return rr(z,r)}const{ProjectivePoint:m,normPrivateKeyToScalar:M,weierstrassEquation:k,isWithinCurveOrder:O}=function Ps(t){const n=function Bs(t){const n=zi(t);Un(n,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:r,a:i}=n;if(e){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof e||"bigint"!=typeof e.beta||"function"!=typeof e.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...n})}(t),{Fp:e}=n,r=n.toBytes||((P,I,$)=>{const D=I.toAffine();return sn(Uint8Array.from([4]),e.toBytes(D.x),e.toBytes(D.y))}),i=n.fromBytes||(P=>{const I=P.subarray(1);return{x:e.fromBytes(I.subarray(0,e.BYTES)),y:e.fromBytes(I.subarray(e.BYTES,2*e.BYTES))}});function s(P){const{a:I,b:$}=n,D=e.sqr(P),H=e.mul(D,P);return e.add(e.add(H,e.mul(P,I)),$)}if(!e.eql(e.sqr(n.Gy),s(n.Gx)))throw new Error("bad generator point: equation left != right");function u(P){return"bigint"==typeof P&&Ote.eql(Z,e.ZERO);return H($)&&H(D)?k.ZERO:new k($,D,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(I){const $=e.invertBatch(I.map(D=>D.pz));return I.map((D,H)=>D.toAffine($[H])).map(k.fromAffine)}static fromHex(I){const $=k.fromAffine(i(xt("pointHex",I)));return $.assertValidity(),$}static fromPrivateKey(I){return k.BASE.multiply(g(I))}_setWindowSize(I){this._WINDOW_SIZE=I,m.delete(this)}assertValidity(){if(this.is0()){if(n.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:I,y:$}=this.toAffine();if(!e.isValid(I)||!e.isValid($))throw new Error("bad point: x or y not FE");const D=e.sqr($),H=s(I);if(!e.eql(D,H))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:I}=this.toAffine();if(e.isOdd)return!e.isOdd(I);throw new Error("Field doesn't support isOdd")}equals(I){M(I);const{px:$,py:D,pz:H}=this,{px:Z,py:V,pz:J}=I,G=e.eql(e.mul($,J),e.mul(Z,H)),Y=e.eql(e.mul(D,J),e.mul(V,H));return G&&Y}negate(){return new k(this.px,e.neg(this.py),this.pz)}double(){const{a:I,b:$}=n,D=e.mul($,ir),{px:H,py:Z,pz:V}=this;let J=e.ZERO,G=e.ZERO,Y=e.ZERO,Q=e.mul(H,H),X=e.mul(Z,Z),pe=e.mul(V,V),ie=e.mul(H,Z);return ie=e.add(ie,ie),Y=e.mul(H,V),Y=e.add(Y,Y),J=e.mul(I,Y),G=e.mul(D,pe),G=e.add(J,G),J=e.sub(X,G),G=e.add(X,G),G=e.mul(J,G),J=e.mul(ie,J),Y=e.mul(D,Y),pe=e.mul(I,pe),ie=e.sub(Q,pe),ie=e.mul(I,ie),ie=e.add(ie,Y),Y=e.add(Q,Q),Q=e.add(Y,Q),Q=e.add(Q,pe),Q=e.mul(Q,ie),G=e.add(G,Q),pe=e.mul(Z,V),pe=e.add(pe,pe),Q=e.mul(pe,ie),J=e.sub(J,Q),Y=e.mul(pe,X),Y=e.add(Y,Y),Y=e.add(Y,Y),new k(J,G,Y)}add(I){M(I);const{px:$,py:D,pz:H}=this,{px:Z,py:V,pz:J}=I;let G=e.ZERO,Y=e.ZERO,Q=e.ZERO;const X=n.a,pe=e.mul(n.b,ir);let ie=e.mul($,Z),ve=e.mul(D,V),_e=e.mul(H,J),Ae=e.add($,D),z=e.add(Z,V);Ae=e.mul(Ae,z),z=e.add(ie,ve),Ae=e.sub(Ae,z),z=e.add($,H);let K=e.add(Z,J);return z=e.mul(z,K),K=e.add(ie,_e),z=e.sub(z,K),K=e.add(D,H),G=e.add(V,J),K=e.mul(K,G),G=e.add(ve,_e),K=e.sub(K,G),Q=e.mul(X,z),G=e.mul(pe,_e),Q=e.add(G,Q),G=e.sub(ve,Q),Q=e.add(ve,Q),Y=e.mul(G,Q),ve=e.add(ie,ie),ve=e.add(ve,ie),_e=e.mul(X,_e),z=e.mul(pe,z),ve=e.add(ve,_e),_e=e.sub(ie,_e),_e=e.mul(X,_e),z=e.add(z,_e),ie=e.mul(ve,z),Y=e.add(Y,ie),ie=e.mul(K,z),G=e.mul(Ae,G),G=e.sub(G,ie),ie=e.mul(Ae,ve),Q=e.mul(K,Q),Q=e.add(Q,ie),new k(G,Y,Q)}subtract(I){return this.add(I.negate())}is0(){return this.equals(k.ZERO)}wNAF(I){return L.wNAFCached(this,m,I,$=>{const D=e.invertBatch($.map(H=>H.pz));return $.map((H,Z)=>H.toAffine(D[Z])).map(k.fromAffine)})}multiplyUnsafe(I){const $=k.ZERO;if(I===Ot)return $;if(f(I),I===st)return this;const{endo:D}=n;if(!D)return L.unsafeLadder(this,I);let{k1neg:H,k1:Z,k2neg:V,k2:J}=D.splitScalar(I),G=$,Y=$,Q=this;for(;Z>Ot||J>Ot;)Z&st&&(G=G.add(Q)),J&st&&(Y=Y.add(Q)),Q=Q.double(),Z>>=st,J>>=st;return H&&(G=G.negate()),V&&(Y=Y.negate()),Y=new k(e.mul(Y.px,D.beta),Y.py,Y.pz),G.add(Y)}multiply(I){f(I);let D,H,$=I;const{endo:Z}=n;if(Z){const{k1neg:V,k1:J,k2neg:G,k2:Y}=Z.splitScalar($);let{p:Q,f:X}=this.wNAF(J),{p:pe,f:ie}=this.wNAF(Y);Q=L.constTimeNegate(V,Q),pe=L.constTimeNegate(G,pe),pe=new k(e.mul(pe.px,Z.beta),pe.py,pe.pz),D=Q.add(pe),H=X.add(ie)}else{const{p:V,f:J}=this.wNAF($);D=V,H=J}return k.normalizeZ([D,H])[0]}multiplyAndAddUnsafe(I,$,D){const H=k.BASE,Z=(J,G)=>G!==Ot&&G!==st&&J.equals(H)?J.multiply(G):J.multiplyUnsafe(G),V=Z(this,$).add(Z(I,D));return V.is0()?void 0:V}toAffine(I){const{px:$,py:D,pz:H}=this,Z=this.is0();null==I&&(I=Z?e.ONE:e.inv(H));const V=e.mul($,I),J=e.mul(D,I),G=e.mul(H,I);if(Z)return{x:e.ZERO,y:e.ZERO};if(!e.eql(G,e.ONE))throw new Error("invZ was invalid");return{x:V,y:J}}isTorsionFree(){const{h:I,isTorsionFree:$}=n;if(I===st)return!0;if($)return $(k,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:I,clearCofactor:$}=n;return I===st?this:$?$(k,this):this.multiplyUnsafe(n.h)}toRawBytes(I=!0){return this.assertValidity(),r(k,this,I)}toHex(I=!0){return mn(this.toRawBytes(I))}}k.BASE=new k(n.Gx,n.Gy,e.ONE),k.ZERO=new k(e.ZERO,e.ONE,e.ZERO);const O=n.nBitLength,L=function Rs(t,n){const e=(i,s)=>{const u=s.negate();return i?u:s},r=i=>({windows:Math.ceil(n/i)+1,windowSize:2**(i-1)});return{constTimeNegate:e,unsafeLadder(i,s){let u=t.ZERO,f=i;for(;s>Is;)s&Pr&&(u=u.add(f)),f=f.double(),s>>=Pr;return u},precomputeWindow(i,s){const{windows:u,windowSize:f}=r(s),g=[];let m=i,M=m;for(let k=0;k>=L,$>g&&($-=O,u+=Pr);const D=I,H=I+Math.abs($)-1,V=$<0;0===$?M=M.add(e(P%2!=0,s[D])):m=m.add(e(V,s[H]))}return{p:m,f:M}},wNAFCached(i,s,u,f){const g=i._WINDOW_SIZE||1;let m=s.get(i);return m||(m=this.precomputeWindow(i,g),1!==g&&s.set(i,f(m))),this.wNAF(g,m,u)}}}(k,n.endo?Math.ceil(O/2):O);return{CURVE:n,ProjectivePoint:k,normPrivateKeyToScalar:g,weierstrassEquation:s,isWithinCurveOrder:u}}({...n,toBytes(z,K,fe){const be=K.toAffine(),re=e.toBytes(be.x),Me=sn;return fe?Me(Uint8Array.from([K.hasEvenY()?2:3]),re):Me(Uint8Array.from([4]),re,e.toBytes(be.y))},fromBytes(z){const K=z.length,fe=z[0],be=z.subarray(1);if(K!==i||2!==fe&&3!==fe){if(K===s&&4===fe)return{x:e.fromBytes(be.subarray(0,e.BYTES)),y:e.fromBytes(be.subarray(e.BYTES,2*e.BYTES))};throw new Error(`Point of length ${K} was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`)}{const re=At(be);if(!function u(z){return Otmn(Jt(z,n.nByteLength));function P(z){return z>r>>st}const $=(z,K,fe)=>At(z.slice(K,fe));class D{constructor(K,fe,be){this.r=K,this.s=fe,this.recovery=be,this.assertValidity()}static fromCompact(K){const fe=n.nByteLength;return K=xt("compactSignature",K,2*fe),new D($(K,0,fe),$(K,fe,2*fe))}static fromDER(K){const{r:fe,s:be}=an.toSig(xt("DER",K));return new D(fe,be)}assertValidity(){if(!O(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!O(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(K){return new D(this.r,this.s,K)}recoverPublicKey(K){const{r:fe,s:be,recovery:re}=this,Me=Y(xt("msgHash",K));if(null==re||![0,1,2,3].includes(re))throw new Error("recovery id invalid");const Re=2===re||3===re?fe+n.n:fe;if(Re>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const Et=m.fromHex((1&re?"03":"02")+L(Re)),kt=g(Re),Rt=f(-Me*kt),Lt=f(be*kt),St=m.BASE.multiplyAndAddUnsafe(Et,Rt,Lt);if(!St)throw new Error("point at infinify");return St.assertValidity(),St}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return yn(this.toDERHex())}toDERHex(){return an.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return yn(this.toCompactHex())}toCompactHex(){return L(this.r)+L(this.s)}}const H={isValidPrivateKey(z){try{return M(z),!0}catch{return!1}},normPrivateKeyToScalar:M,randomPrivateKey:()=>{const K=function Ts(t,n,e=!1){const r=(t=xt("privateHash",t)).length,i=Ur(n).nByteLength+8;if(i<24||r1024)throw new Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${r}`);return _t(e?Ir(t):At(t),n-qe)+qe}(n.randomBytes(e.BYTES+8),r);return Jt(K,n.nByteLength)},precompute:(z=8,K=m.BASE)=>(K._setWindowSize(z),K.multiply(BigInt(3)),K)};function V(z){const K=z instanceof Uint8Array,fe="string"==typeof z,be=(K||fe)&&z.length;return K?be===i||be===s:fe?be===2*i||be===2*s:z instanceof m}const G=n.bits2int||function(z){const K=At(z),fe=8*z.length-n.nBitLength;return fe>0?K>>BigInt(fe):K},Y=n.bits2int_modN||function(z){return f(G(z))},Q=Rr(n.nBitLength);function X(z){if("bigint"!=typeof z)throw new Error("bigint expected");if(!(Ot<=z&&zCt in fe))throw new Error("sign() legacy options not supported");const{hash:be,randomBytes:re}=n;let{lowS:Me,prehash:Re,extraEntropy:Ie}=fe;null==Me&&(Me=!0),z=xt("msgHash",z),Re&&(z=xt("prehashed msgHash",be(z)));const Et=Y(z),kt=M(K),Rt=[X(kt),X(Et)];if(null!=Ie){const Ct=!0===Ie?re(e.BYTES):Ie;Rt.push(xt("extraEntropy",Ct,e.BYTES))}const Lt=sn(...Rt),St=Et;return{seed:Lt,k2sig:function Gt(Ct){const xn=G(Ct);if(!O(xn))return;const hs=g(xn),zt=m.BASE.multiply(xn).toAffine(),Mn=f(zt.x);if(Mn===Ot)return;const Sr=f(hs*f(St+Mn*kt));if(Sr===Ot)return;let ds=(zt.x===Mn?0:2)|Number(zt.y&st),gs=Sr;return Me&&P(Sr)&&(gs=function I(z){return P(z)?f(-z):z}(Sr),ds^=1),new D(Mn,gs,ds)}}}(z,K,fe);return Fi(n.hash.outputLen,n.nByteLength,n.hmac)(be,re)},verify:function Ae(z,K,fe,be=ve){const re=z;if(K=xt("msgHash",K),fe=xt("publicKey",fe),"strict"in be)throw new Error("options.strict was renamed to lowS");const{lowS:Me,prehash:Re}=be;let Ie,Et;try{if("string"==typeof re||re instanceof Uint8Array)try{Ie=D.fromDER(re)}catch(zt){if(!(zt instanceof an.Err))throw zt;Ie=D.fromCompact(re)}else{if("object"!=typeof re||"bigint"!=typeof re.r||"bigint"!=typeof re.s)throw new Error("PARSE");{const{r:zt,s:Mn}=re;Ie=new D(zt,Mn)}}Et=m.fromHex(fe)}catch(zt){if("PARSE"===zt.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Me&&Ie.hasHighS())return!1;Re&&(K=n.hash(K));const{r:kt,s:Rt}=Ie,Lt=Y(K),St=g(Rt),Gt=f(Lt*St),Ct=f(kt*St),xn=m.BASE.multiplyAndAddUnsafe(Et,Gt,Ct)?.toAffine();return!!xn&&f(xn.x)===kt},ProjectivePoint:m,Signature:D,utils:H}}BigInt(4);class Vi extends Sn{constructor(n,e){super(),this.finished=!1,this.destroyed=!1,Le.hash(n);const r=je(e);if(this.iHash=n.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?n.create().update(r).digest():r);for(let u=0;unew Vi(t,n).update(e).digest();function zs(t){return{hash:t,hmac:(n,...e)=>vn(t,n,Fe(...e)),randomBytes:Zt}}vn.create=(t,n)=>new Vi(t,n);const or=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),sr=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Yi=BigInt(1),ar=BigInt(2),Ki=(t,n)=>(t+n/ar)/n;function Zi(t){const n=or,e=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),g=BigInt(88),m=t*t*t%n,M=m*m*t%n,k=Ut(M,e,n)*M%n,O=Ut(k,e,n)*M%n,L=Ut(O,ar,n)*m%n,P=Ut(L,i,n)*L%n,I=Ut(P,s,n)*P%n,$=Ut(I,f,n)*I%n,D=Ut($,g,n)*$%n,H=Ut(D,f,n)*I%n,Z=Ut(H,e,n)*M%n,V=Ut(Z,u,n)*P%n,J=Ut(V,r,n)*m%n,G=Ut(J,ar,n);if(!Or.eql(Or.sqr(G),t))throw new Error("Cannot find square root");return G}const Or=function Cs(t,n,e=!1,r={}){if(t<=bt)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:i,nByteLength:s}=Ur(t,n);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=function xs(t){if(t%Nr===vs){const n=(t+qe)/Nr;return function(r,i){const s=r.pow(i,n);if(!r.eql(r.sqr(s),i))throw new Error("Cannot find square root");return s}}if(t%Gi===qi){const n=(t-qi)/Gi;return function(r,i){const s=r.mul(i,en),u=r.pow(s,n),f=r.mul(i,u),g=r.mul(r.mul(f,en),u),m=r.mul(f,r.sub(g,r.ONE));if(!r.eql(r.sqr(m),i))throw new Error("Cannot find square root");return m}}return function Es(t){const n=(t-qe)/en;let e,r,i;for(e=t-qe,r=0;e%en===bt;e/=en,r++);for(i=en;i_t(g,t),isValid:g=>{if("bigint"!=typeof g)throw new Error("Invalid field element: expected bigint, got "+typeof g);return bt<=g&&gg===bt,isOdd:g=>(g&qe)===qe,neg:g=>_t(-g,t),eql:(g,m)=>g===m,sqr:g=>_t(g*g,t),add:(g,m)=>_t(g+m,t),sub:(g,m)=>_t(g-m,t),mul:(g,m)=>_t(g*m,t),pow:(g,m)=>function Ss(t,n,e){if(e 0");if(e===bt)return t.ONE;if(e===qe)return n;let r=t.ONE,i=n;for(;e>bt;)e&qe&&(r=t.mul(r,i)),i=t.sqr(i),e>>=qe;return r}(f,g,m),div:(g,m)=>_t(g*rr(m,t),t),sqrN:g=>g*g,addN:(g,m)=>g+m,subN:(g,m)=>g-m,mulN:(g,m)=>g*m,inv:g=>rr(g,t),sqrt:r.sqrt||(g=>u(f,g)),invertBatch:g=>function As(t,n){const e=new Array(n.length),r=n.reduce((s,u,f)=>t.is0(u)?s:(e[f]=s,t.mul(s,u)),t.ONE),i=t.inv(r);return n.reduceRight((s,u,f)=>t.is0(u)?s:(e[f]=t.mul(s,e[f]),t.mul(s,u)),i),e}(f,g),cmov:(g,m,M)=>M?m:g,toBytes:g=>e?$i(g,s):Jt(g,s),fromBytes:g=>{if(g.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${g.length}`);return e?Ir(g):At(g)}});return Object.freeze(f)}(or,void 0,void 0,{sqrt:Zi}),wn=function Ws(t,n){const e=r=>Os({...t,...zs(r)});return Object.freeze({...e(n),create:e})}({a:BigInt(0),b:BigInt(7),Fp:Or,n:sr,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const n=sr,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Yi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=e,u=BigInt("0x100000000000000000000000000000000"),f=Ki(s*t,n),g=Ki(-r*t,n);let m=_t(t-f*e-g*i,n),M=_t(-f*r-g*s,n);const k=m>u,O=M>u;if(k&&(m=n-m),O&&(M=n-M),m>u||M>u)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:k,k1:m,k2neg:O,k2:M}}}},Tt),lr=BigInt(0),Xi=t=>"bigint"==typeof t&&lri.charCodeAt(0)));e=sn(r,r),Qi[t]=e}return Tt(sn(e,...n))}const jr=t=>t.toRawBytes(!0).slice(1),$r=t=>Jt(t,32),Dr=t=>_t(t,or),Ln=t=>_t(t,sr),Fr=wn.ProjectivePoint;function qr(t){let n=wn.utils.normPrivateKeyToScalar(t),e=Fr.fromPrivateKey(n);return{scalar:e.hasEvenY()?n:Ln(-n),bytes:jr(e)}}function Ji(t){if(!Xi(t))throw new Error("bad x: need 0 < x < p");const n=Dr(t*t);let r=Zi(Dr(n*t+BigInt(7)));r%ar!==lr&&(r=Dr(-r));const i=new Fr(t,r,Yi);return i.assertValidity(),i}function eo(...t){return Ln(At(cr("BIP0340/challenge",...t)))}function to(t,n,e){const r=xt("signature",t,64),i=xt("message",n),s=xt("publicKey",e,32);try{const u=Ji(At(s)),f=At(r.subarray(0,32));if(!Xi(f))return!1;const g=At(r.subarray(32,64));if(!(t=>"bigint"==typeof t&&lrFr.BASE.multiplyAndAddUnsafe(t,n,e))(u,g,Ln(-m));return!(!M||!M.hasEvenY()||M.toAffine().x!==f)}catch{return!1}}const bn={getPublicKey:function Ys(t){return qr(t).bytes},sign:function Ks(t,n,e=Zt(32)){const r=xt("message",t),{bytes:i,scalar:s}=qr(n),u=xt("auxRand",e,32),f=$r(s^At(cr("BIP0340/aux",u))),g=cr("BIP0340/nonce",f,i,r),m=Ln(At(g));if(m===lr)throw new Error("sign failed: k is zero");const{bytes:M,scalar:k}=qr(m),O=eo(M,i,r),L=new Uint8Array(64);if(L.set(M,0),L.set($r(Ln(k+O*s)),32),!to(L,r,i))throw new Error("sign: Invalid signature produced");return L},verify:to,utils:{randomPrivateKey:wn.utils.randomPrivateKey,lift_x:Ji,pointToBytes:jr,numberToBytesBE:Jt,bytesToNumberBE:At,taggedHash:cr,mod:_t}};function ln(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function jt(...t){const n=(i,s)=>u=>i(s(u));return{encode:Array.from(t).reverse().reduce((i,s)=>i?n(i,s.encode):s.encode,void 0),decode:t.reduce((i,s)=>i?n(i,s.decode):s.decode,void 0)}}function $t(t){return{encode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("alphabet.encode input should be an array of numbers");return n.map(e=>{if(ln(e),e<0||e>=t.length)throw new Error(`Digit index outside alphabet: ${e} (alphabet: ${t.length})`);return t[e]})},decode:n=>{if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("alphabet.decode input should be array of strings");return n.map(e=>{if("string"!=typeof e)throw new Error(`alphabet.decode: not string element=${e}`);const r=t.indexOf(e);if(-1===r)throw new Error(`Unknown letter: "${e}". Allowed: ${t}`);return r})}}}function Dt(t=""){if("string"!=typeof t)throw new Error("join separator should be string");return{encode:n=>{if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("join.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return n.join(t)},decode:n=>{if("string"!=typeof n)throw new Error("join.decode input should be string");return n.split(t)}}}function On(t,n="="){if(ln(t),"string"!=typeof n)throw new Error("padding chr should be string");return{encode(e){if(!Array.isArray(e)||e.length&&"string"!=typeof e[0])throw new Error("padding.encode input should be array of strings");for(let r of e)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;e.length*t%8;)e.push(n);return e},decode(e){if(!Array.isArray(e)||e.length&&"string"!=typeof e[0])throw new Error("padding.encode input should be array of strings");for(let i of e)if("string"!=typeof i)throw new Error(`padding.decode: non-string input=${i}`);let r=e.length;if(r*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&e[r-1]===n;r--)if(!((r-1)*t%8))throw new Error("Invalid padding: string has too much padding");return e.slice(0,r)}}}function no(t){if("function"!=typeof t)throw new Error("normalize fn should be function");return{encode:n=>n,decode:n=>t(n)}}function ro(t,n,e){if(n<2)throw new Error(`convertRadix: wrong from=${n}, base cannot be less than 2`);if(e<2)throw new Error(`convertRadix: wrong to=${e}, 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;const i=[],s=Array.from(t);for(s.forEach(u=>{if(ln(u),u<0||u>=n)throw new Error(`Wrong integer: ${u}`)});;){let u=0,f=!0;for(let g=r;gn?io(n,t%n):t,ur=(t,n)=>t+(n-io(t,n));function Gr(t,n,e,r){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(n<=0||n>32)throw new Error(`convertRadix2: wrong from=${n}`);if(e<=0||e>32)throw new Error(`convertRadix2: wrong to=${e}`);if(ur(n,e)>32)throw new Error(`convertRadix2: carry overflow from=${n} to=${e} carryBits=${ur(n,e)}`);let i=0,s=0;const u=2**e-1,f=[];for(const g of t){if(ln(g),g>=2**n)throw new Error(`convertRadix2: invalid data word=${g} from=${n}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${n}`);for(s+=n;s>=e;s-=e)f.push((i>>s-e&u)>>>0);i&=2**s-1}if(i=i<=n)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&s>0&&f.push(i>>>0),f}function Wt(t,n=!1){if(ln(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(ur(8,t)>32||ur(t,8)>32)throw new Error("radix2: carry overflow");return{encode:e=>{if(!(e instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Gr(Array.from(e),8,t,!n)},decode:e=>{if(!Array.isArray(e)||e.length&&"number"!=typeof e[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Gr(e,t,8,n))}}}function so(t){if("function"!=typeof t)throw new Error("unsafeWrapper fn should be function");return function(...n){try{return t.apply(null,n)}catch{}}}jt(Wt(4),$t("0123456789ABCDEF"),Dt("")),jt(Wt(5),$t("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),On(5),Dt(""));const Ht=(jt(Wt(5),$t("0123456789ABCDEFGHIJKLMNOPQRSTUV"),On(5),Dt("")),jt(Wt(5),$t("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),Dt(""),no(t=>t.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),jt(Wt(6),$t("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),On(6),Dt(""))),zr=(jt(Wt(6),$t("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),On(6),Dt("")),t=>jt(function oo(t){return ln(t),{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return ro(Array.from(n),256,t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(ro(n,t,256))}}}(58),$t(t),Dt(""))),Wr=(zr("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),zr("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),zr("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),jt($t("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),Dt(""))),co=[996825010,642813549,513874426,1027748829,705979059];function jn(t){const n=t>>25;let e=(33554431&t)<<5;for(let r=0;r>r&1)&&(e^=co[r]);return e}function uo(t,n,e=1){const r=t.length;let i=1;for(let s=0;s126)throw new Error(`Invalid prefix (${t})`);i=jn(i)^u>>5}i=jn(i);for(let s=0;sk)throw new TypeError(`Wrong string length: ${M.length} (${M}). Expected (8..${k})`);const O=M.toLowerCase();if(M!==O&&M!==M.toUpperCase())throw new Error("String must be lowercase or uppercase");const L=(M=O).lastIndexOf("1");if(0===L||-1===L)throw new Error('Letter "1" must be present between prefix and data only');const P=M.slice(0,L),I=M.slice(L+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const $=Wr.decode(I).slice(0,-6),D=uo(P,$,n);if(!I.endsWith(D))throw new Error(`Invalid checksum in ${M}: expected "${D}"`);return{prefix:P,words:$}}return{encode:function u(M,k,O=90){if("string"!=typeof M)throw new Error("bech32.encode prefix should be string, not "+typeof M);if(!Array.isArray(k)||k.length&&"number"!=typeof k[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof k);const L=M.length+7+k.length;if(!1!==O&&L>O)throw new TypeError(`Length ${L} exceeds limit ${O}`);return`${M=M.toLowerCase()}1${Wr.encode(k)}${uo(M,k,n)}`},decode:f,decodeToBytes:function m(M){const{prefix:k,words:O}=f(M,!1);return{prefix:k,words:O,bytes:r(O)}},decodeUnsafe:so(f),fromWords:r,fromWordsUnsafe:s,toWords:i}}const _n=fo("bech32");fo("bech32m"),jt(Wt(4),$t("0123456789abcdef"),Dt(""),no(t=>{if("string"!=typeof t||t.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof t} with length ${t.length}`);return t.toLowerCase()}));var go=S(5693),Hr=S(9673),na=S(9608);const Ft=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Kr(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function Zr(t){if("string"==typeof t&&(t=Kr(t)),!(t=>t instanceof Uint8Array)(t))throw new Error("expected Uint8Array, got "+typeof t);return t}function Xr(t,n){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof n&&t.length!==n)throw new Error(`Uint8Array length ${n} expected`)}function Qr(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function po(t,...n){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(n.length>0&&!n.includes(t.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${t.length}`)}const It={number:Qr,bool:function la(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:po,hash:function ca(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("hash must be wrapped by utils.wrapConstructor");Qr(t.outputLen),Qr(t.blockLen)},exists:function ua(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")},output:function fa(t,n){po(t);const e=n.outputLen;if(t.length255&t[n++]|(255&t[n++])<<8;class ha{constructor(n){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,Xr(n=Zr(n),32);const e=Mt(n,0),r=Mt(n,2),i=Mt(n,4),s=Mt(n,6),u=Mt(n,8),f=Mt(n,10),g=Mt(n,12),m=Mt(n,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|r<<3),this.r[2]=7939&(r>>>10|i<<6),this.r[3]=8191&(i>>>7|s<<9),this.r[4]=255&(s>>>4|u<<12),this.r[5]=u>>>1&8190,this.r[6]=8191&(u>>>14|f<<2),this.r[7]=8065&(f>>>11|g<<5),this.r[8]=8191&(g>>>8|m<<8),this.r[9]=m>>>5&127;for(let M=0;M<8;M++)this.pad[M]=Mt(n,16+2*M)}process(n,e,r=!1){const i=r?0:2048,{h:s,r:u}=this,f=u[0],g=u[1],m=u[2],M=u[3],k=u[4],O=u[5],L=u[6],P=u[7],I=u[8],$=u[9],D=Mt(n,e+0),H=Mt(n,e+2),Z=Mt(n,e+4),V=Mt(n,e+6),J=Mt(n,e+8),G=Mt(n,e+10),Y=Mt(n,e+12),Q=Mt(n,e+14);let X=s[0]+(8191&D),pe=s[1]+(8191&(D>>>13|H<<3)),ie=s[2]+(8191&(H>>>10|Z<<6)),ve=s[3]+(8191&(Z>>>7|V<<9)),_e=s[4]+(8191&(V>>>4|J<<12)),Ae=s[5]+(J>>>1&8191),z=s[6]+(8191&(J>>>14|G<<2)),K=s[7]+(8191&(G>>>11|Y<<5)),fe=s[8]+(8191&(Y>>>8|Q<<8)),be=s[9]+(Q>>>5|i),re=0,Me=re+X*f+pe*(5*$)+ie*(5*I)+ve*(5*P)+_e*(5*L);re=Me>>>13,Me&=8191,Me+=Ae*(5*O)+z*(5*k)+K*(5*M)+fe*(5*m)+be*(5*g),re+=Me>>>13,Me&=8191;let Re=re+X*g+pe*f+ie*(5*$)+ve*(5*I)+_e*(5*P);re=Re>>>13,Re&=8191,Re+=Ae*(5*L)+z*(5*O)+K*(5*k)+fe*(5*M)+be*(5*m),re+=Re>>>13,Re&=8191;let Ie=re+X*m+pe*g+ie*f+ve*(5*$)+_e*(5*I);re=Ie>>>13,Ie&=8191,Ie+=Ae*(5*P)+z*(5*L)+K*(5*O)+fe*(5*k)+be*(5*M),re+=Ie>>>13,Ie&=8191;let Et=re+X*M+pe*m+ie*g+ve*f+_e*(5*$);re=Et>>>13,Et&=8191,Et+=Ae*(5*I)+z*(5*P)+K*(5*L)+fe*(5*O)+be*(5*k),re+=Et>>>13,Et&=8191;let kt=re+X*k+pe*M+ie*m+ve*g+_e*f;re=kt>>>13,kt&=8191,kt+=Ae*(5*$)+z*(5*I)+K*(5*P)+fe*(5*L)+be*(5*O),re+=kt>>>13,kt&=8191;let Rt=re+X*O+pe*k+ie*M+ve*m+_e*g;re=Rt>>>13,Rt&=8191,Rt+=Ae*f+z*(5*$)+K*(5*I)+fe*(5*P)+be*(5*L),re+=Rt>>>13,Rt&=8191;let Lt=re+X*L+pe*O+ie*k+ve*M+_e*m;re=Lt>>>13,Lt&=8191,Lt+=Ae*g+z*f+K*(5*$)+fe*(5*I)+be*(5*P),re+=Lt>>>13,Lt&=8191;let St=re+X*P+pe*L+ie*O+ve*k+_e*M;re=St>>>13,St&=8191,St+=Ae*m+z*g+K*f+fe*(5*$)+be*(5*I),re+=St>>>13,St&=8191;let Gt=re+X*I+pe*P+ie*L+ve*O+_e*k;re=Gt>>>13,Gt&=8191,Gt+=Ae*M+z*m+K*g+fe*f+be*(5*$),re+=Gt>>>13,Gt&=8191;let Ct=re+X*$+pe*I+ie*P+ve*L+_e*O;re=Ct>>>13,Ct&=8191,Ct+=Ae*k+z*M+K*m+fe*g+be*f,re+=Ct>>>13,Ct&=8191,re=(re<<2)+re|0,re=re+Me|0,Me=8191&re,re>>>=13,Re+=re,s[0]=Me,s[1]=Re,s[2]=Ie,s[3]=Et,s[4]=kt,s[5]=Rt,s[6]=Lt,s[7]=St,s[8]=Gt,s[9]=Ct}finalize(){const{h:n,pad:e}=this,r=new Uint16Array(10);let i=n[1]>>>13;n[1]&=8191;for(let f=2;f<10;f++)n[f]+=i,i=n[f]>>>13,n[f]&=8191;n[0]+=5*i,i=n[0]>>>13,n[0]&=8191,n[1]+=i,i=n[1]>>>13,n[1]&=8191,n[2]+=i,r[0]=n[0]+5,i=r[0]>>>13,r[0]&=8191;for(let f=1;f<10;f++)r[f]=n[f]+i,i=r[f]>>>13,r[f]&=8191;r[9]-=8192;let s=(1^i)-1;for(let f=0;f<10;f++)r[f]&=s;s=~s;for(let f=0;f<10;f++)n[f]=n[f]&s|r[f];n[0]=65535&(n[0]|n[1]<<13),n[1]=65535&(n[1]>>>3|n[2]<<10),n[2]=65535&(n[2]>>>6|n[3]<<7),n[3]=65535&(n[3]>>>9|n[4]<<4),n[4]=65535&(n[4]>>>12|n[5]<<1|n[6]<<14),n[5]=65535&(n[6]>>>2|n[7]<<11),n[6]=65535&(n[7]>>>5|n[8]<<8),n[7]=65535&(n[8]>>>8|n[9]<<5);let u=n[0]+e[0];n[0]=65535&u;for(let f=1;f<8;f++)u=(n[f]+e[f]|0)+(u>>>16)|0,n[f]=65535&u}update(n){It.exists(this);const{buffer:e,blockLen:r}=this,i=(n=Zr(n)).length;for(let s=0;s>>0,n[s++]=r[u]>>>8;return n}digest(){const{buffer:n,outputLen:e}=this;this.digestInto(n);const r=n.slice(0,e);return this.destroy(),r}}!function da(t){const n=(r,i)=>t(i).update(Zr(r)).digest(),e=t(new Uint8Array(32));n.outputLen=e.outputLen,n.blockLen=e.blockLen,n.create=r=>t(r)}(t=>new ha(t));const ga=Kr("expand 16-byte k"),pa=Kr("expand 32-byte k"),ma=Ft(ga),ya=Ft(pa),mo=t=>!(t.byteOffset%4),ge=(t,n)=>t<>>32-n;const yo=(t=>{const{core:n,rounds:e,counterRight:r,counterLen:i,allow128bitKeys:s,extendNonceFn:u,blockLen:f}=function sa(t,n){if(void 0!==n&&("object"!=typeof n||!(t=>"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object)(n)))throw new Error("options must be object or undefined");return Object.assign(t,n)}({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},t);It.number(i),It.number(e),It.number(f),It.bool(r),It.bool(s);const g=f/4;if(f%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(m,M,k,O,L=0)=>{if(It.bytes(m),It.bytes(M),It.bytes(k),O||(O=new Uint8Array(k.length)),It.bytes(O),It.number(L),L<0||L>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(O.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const ie=Math.min(f,Q-X);if(ie===f&&Y&&G){const ve=X/4;if(X%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let _e=0;_e{for(var e in n)xa(t,e,{get:n[e],enumerable:!0})};function _o(){return Be(bn.utils.randomPrivateKey())}function ei(t){return Be(bn.getPublicKey(t))}vt({},{MessageNode:()=>Eo,MessageQueue:()=>xo,insertEventIntoAscendingList:()=>Sa,insertEventIntoDescendingList:()=>ka,normalizeURL:()=>ti,utf8Decoder:()=>qt,utf8Encoder:()=>Pt});var qt=new TextDecoder("utf-8"),Pt=new TextEncoder;function ti(t){let n=new URL(t);return n.pathname=n.pathname.replace(/\/+/g,"/"),n.pathname.endsWith("/")&&(n.pathname=n.pathname.slice(0,-1)),("80"===n.port&&"ws:"===n.protocol||"443"===n.port&&"wss:"===n.protocol)&&(n.port=""),n.searchParams.sort(),n.hash="",n.toString()}function ka(t,n){let i,e=0,r=t.length-1,s=e;if(r<0)s=0;else if(n.created_at=t[e].created_at)s=e;else for(;;){if(r<=e+1){s=r;break}if(i=Math.floor(e+(r-e)/2),t[i].created_at>n.created_at)e=i;else{if(!(t[i].created_att[r].created_at)s=r+1;else if(n.created_at<=t[e].created_at)s=e;else for(;;){if(r<=e+1){s=r;break}if(i=Math.floor(e+(r-e)/2),t[i].created_atn.created_at)){s=i;break}r=i}}return t[s]?.id!==n.id?[...t.slice(0,s),n,...t.slice(s)]:t}var Eo=class{_value;_next;get value(){return this._value}set value(t){this._value=t}get next(){return this._next}set next(t){this._next=t}constructor(t){this._value=t,this._next=null}},xo=class{_first;_last;get first(){return this._first}set first(t){this._first=t}get last(){return this._last}set last(t){this._last=t}_size;get size(){return this._size}set size(t){this._size=t}constructor(){this._first=null,this._last=null,this._size=0}enqueue(t){const n=new Eo(t);return 0!==this._size&&this._last?(this._last.next=n,this._last=n):(this._first=n,this._last=n),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let t=this._first;return this._first=t.next,t.next=null,this._size--,t.value}},En=Symbol("verified");function Vt(t,n){const e=t;return e.pubkey=ei(n),e.id=Fn(e),e.sig=function Mo(t,n){return Be(bn.sign(Fn(t),n))}(e,n),e[En]=!0,e}function Fn(t){let n=Tt(Pt.encode(function Ta(t){if(!ni(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])}(t)));return Be(n)}var Ia=t=>t instanceof Object;function ni(t){if(!Ia(t)||"number"!=typeof t.kind||"string"!=typeof t.content||"number"!=typeof t.created_at||"string"!=typeof t.pubkey||!t.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(t.tags))return!1;for(let n=0;nn.id.startsWith(e))||t.kinds&&-1===t.kinds.indexOf(n.kind)||t.authors&&-1===t.authors.indexOf(n.pubkey)&&!t.authors.some(e=>n.pubkey.startsWith(e)))return!1;for(let e in t)if("#"===e[0]){let i=t[`#${e.slice(1)}`];if(i&&!n.tags.find(([s,u])=>s===e.slice(1)&&-1!==i.indexOf(u)))return!1}return!(t.since&&n.created_att.until)}function gr(t,n){let e=n.length+3,r=t.indexOf(`"${n}":`)+e,i=t.slice(r).indexOf('"')+r+1;return t.slice(i,i+64)}function So(t,n){let e=n.length,r=t.indexOf(`"${n}":`)+e+3,i=t.slice(r),s=Math.min(i.indexOf(","),i.indexOf("}"));return parseInt(i.slice(0,s),10)}function Ao(t){let n=t.slice(0,22).indexOf('"EVENT"');if(-1===n)return null;let e=t.slice(n+7+1).indexOf('"');if(-1===e)return null;let r=n+7+1+e,i=t.slice(r+1,80).indexOf('"');return-1===i?null:t.slice(r+1,r+1+i)}function Ua(t,n){return n===gr(t,"id")}function Pa(t,n){return n===gr(t,"pubkey")}function La(t,n){return n===So(t,"kind")}function To(t,n={}){let{listTimeout:e=3e3,getTimeout:r=3e3,countTimeout:i=3e3}=n;var s,M,u={},f={connect:[],disconnect:[],error:[],notice:[],auth:[]},g={},m={};function O(){return(O=(0,y.A)(function*(){return M||(M=new Promise((V,J)=>{try{s=new WebSocket(t)}catch(X){J(X)}s.onopen=()=>{f.connect.forEach(X=>X()),V()},s.onerror=()=>{M=void 0,f.error.forEach(X=>X()),J()},s.onclose=(0,y.A)(function*(){M=void 0,f.disconnect.forEach(X=>X())});let Y,G=new xo;function Q(){if(0===G.size)return clearInterval(Y),void(Y=null);var X=G.dequeue();if(!X)return;let pe=Ao(X);if(pe){let ie=u[pe];if(ie&&ie.alreadyHaveEvent&&ie.alreadyHaveEvent(gr(X,"id"),t))return}try{let ie=JSON.parse(X);switch(ie[0]){case"EVENT":{let z=ie[1],K=ie[2];return void(ni(K)&&u[z]&&(u[z].skipVerification||dr(K))&&function ko(t,n){for(let e=0;efe(K)))}case"COUNT":let ve=ie[1],_e=ie[2];return void(u[ve]&&(g[ve]?.count||[]).forEach(z=>z(_e)));case"EOSE":{let z=ie[1];return void(z in g&&(g[z].eose.forEach(K=>K()),g[z].eose=[]))}case"OK":{let z=ie[1],K=ie[2],fe=ie[3]||"";if(z in m){let{resolve:be,reject:re}=m[z];K?be(null):re(new Error(fe))}return}case"NOTICE":let Ae=ie[1];return void f.notice.forEach(z=>z(Ae));case"AUTH":{let z=ie[1];return void f.auth?.forEach(K=>K(z))}}}catch{return}}s.onmessage=X=>{G.enqueue(X.data),Y||(Y=setInterval(Q,0))}}))})).apply(this,arguments)}function L(){return 1===s?.readyState}function I(){return I=(0,y.A)(function*(){L()||(yield function k(){return O.apply(this,arguments)}())}),I.apply(this,arguments)}function $(V){return D.apply(this,arguments)}function D(){return(D=(0,y.A)(function*(V){let J=JSON.stringify(V);if(L()||(yield new Promise(G=>setTimeout(G,1e3)),L()))try{s.send(J)}catch(G){console.log(G)}})).apply(this,arguments)}const H=(V,{verb:J="REQ",skipVerification:G=!1,alreadyHaveEvent:Y=null,id:Q=Math.random().toString().slice(2)}={})=>{let X=Q;u[X]={id:X,filters:V,skipVerification:G,alreadyHaveEvent:Y},$([J,X,...V]);let pe={sub:(ie,ve={})=>H(ie||V,{skipVerification:ve.skipVerification||G,alreadyHaveEvent:ve.alreadyHaveEvent||Y,id:X}),unsub:()=>{delete u[X],delete g[X],$(["CLOSE",X])},on:(ie,ve)=>{g[X]=g[X]||{event:[],count:[],eose:[]},g[X][ie].push(ve)},off:(ie,ve)=>{let _e=g[X],Ae=_e[ie].indexOf(ve);Ae>=0&&_e[ie].splice(Ae,1)},get events(){return function Io(t){return ri.apply(this,arguments)}(pe)}};return pe};function Z(V,J){return new Promise((G,Y)=>{if(!V.id)return void Y(new Error(`event ${V} has no id`));let Q=V.id;$([J,V]),m[Q]={resolve:G,reject:Y}})}return{url:t,sub:H,on:(V,J)=>{f[V].push(J),"connect"===V&&1===s?.readyState&&J()},off:(V,J)=>{let G=f[V].indexOf(J);-1!==G&&f[V].splice(G,1)},list:(V,J)=>new Promise(G=>{let Y=H(V,J),Q=[],X=setTimeout(()=>{Y.unsub(),G(Q)},e);Y.on("eose",()=>{Y.unsub(),clearTimeout(X),G(Q)}),Y.on("event",pe=>{Q.push(pe)})}),get:(V,J)=>new Promise(G=>{let Y=H([V],J),Q=setTimeout(()=>{Y.unsub(),G(null)},r);Y.on("event",X=>{Y.unsub(),clearTimeout(Q),G(X)})}),count:V=>new Promise(J=>{let G=H(V,{...H,verb:"COUNT"}),Y=setTimeout(()=>{G.unsub(),J(null)},i);G.on("count",Q=>{G.unsub(),clearTimeout(Y),J(Q)})}),publish:V=>(0,y.A)(function*(){yield Z(V,"EVENT")})(),auth:V=>(0,y.A)(function*(){yield Z(V,"AUTH")})(),connect:function P(){return I.apply(this,arguments)},close(){f={connect:[],disconnect:[],error:[],notice:[],auth:[]},g={},m={},s?.readyState===WebSocket.OPEN&&s.close()},get status(){return s?.readyState??3}}}function ri(){return(ri=(0,tt.A)(function*(t){let n;const e=[],r=i=>{n?(n(i),n=void 0):e.push(i)};t.on("event",r);try{for(;;)e.length>0?yield e.shift():yield yield(0,et.A)(new Promise(s=>{n=s}))}finally{t.off("event",r)}})).apply(this,arguments)}vt({},{getHex64:()=>gr,getInt:()=>So,getSubscriptionId:()=>Ao,matchEventId:()=>Ua,matchEventKind:()=>La,matchEventPubkey:()=>Pa});var ii={};vt(ii,{BECH32_REGEX:()=>Bo,decode:()=>qn,naddrEncode:()=>Ga,neventEncode:()=>qa,noteEncode:()=>Da,nprofileEncode:()=>Fa,npubEncode:()=>$a,nrelayEncode:()=>za,nsecEncode:()=>ja});var Ro=5e3,Bo=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function qn(t){let{prefix:n,words:e}=_n.decode(t,Ro),r=new Uint8Array(_n.fromWords(e));switch(n){case"nprofile":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==i[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:Be(i[0][0]),relays:i[1]?i[1].map(s=>qt.decode(s)):[]}}}case"nevent":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==i[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(i[2]&&32!==i[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(i[3]&&4!==i[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:Be(i[0][0]),relays:i[1]?i[1].map(s=>qt.decode(s)):[],author:i[2]?.[0]?Be(i[2][0]):void 0,kind:i[3]?.[0]?parseInt(Be(i[3][0]),16):void 0}}}case"naddr":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!i[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==i[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!i[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==i[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:qt.decode(i[0][0]),pubkey:Be(i[2][0]),kind:parseInt(Be(i[3][0]),16),relays:i[1]?i[1].map(s=>qt.decode(s)):[]}}}case"nrelay":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:qt.decode(i[0][0])}}case"nsec":case"npub":case"note":return{type:n,data:Be(r)};default:throw new Error(`unknown prefix ${n}`)}}function pr(t){let n={},e=t;for(;e.length>0;){let r=e[0],i=e[1];if(!i)throw new Error(`malformed TLV ${r}`);let s=e.slice(2,2+i);if(e=e.slice(2+i),s.lengthPt.encode(e))}))}function qa(t){let n;return null!=t.kind&&(n=function Oa(t){const n=new Uint8Array(4);return n[0]=t>>24&255,n[1]=t>>16&255,n[2]=t>>8&255,n[3]=255&t,n}(t.kind)),Gn("nevent",mr({0:[De(t.id)],1:(t.relays||[]).map(r=>Pt.encode(r)),2:t.author?[De(t.author)]:[],3:n?[new Uint8Array(n)]:[]}))}function Ga(t){let n=new ArrayBuffer(4);return new DataView(n).setUint32(0,t.kind,!1),Gn("naddr",mr({0:[Pt.encode(t.identifier)],1:(t.relays||[]).map(r=>Pt.encode(r)),2:[De(t.pubkey)],3:[new Uint8Array(n)]}))}function za(t){return Gn("nrelay",mr({0:[Pt.encode(t)]}))}function mr(t){let n=[];return Object.entries(t).forEach(([e,r])=>{r.forEach(i=>{let s=new Uint8Array(i.length+2);s.set([parseInt(e)],0),s.set([i.length],1),s.set(i,2),n.push(s)})}),Fe(...n)}var si={};function No(t,n,e){return ai.apply(this,arguments)}function ai(){return(ai=(0,y.A)(function*(t,n,e){const i=Uo(wn.getSharedSecret(t,"02"+n));let s=Uint8Array.from(Zt(16)),u=Pt.encode(e),f=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),g=yield crypto.subtle.encrypt({name:"AES-CBC",iv:s},f,u);return`${Ht.encode(new Uint8Array(g))}?iv=${Ht.encode(new Uint8Array(s.buffer))}`})).apply(this,arguments)}function Ha(t,n,e){return li.apply(this,arguments)}function li(){return(li=(0,y.A)(function*(t,n,e){let[r,i]=e.split("?iv="),u=Uo(wn.getSharedSecret(t,"02"+n)),f=yield crypto.subtle.importKey("raw",u,{name:"AES-CBC"},!1,["decrypt"]),g=Ht.decode(r),m=Ht.decode(i),M=yield crypto.subtle.decrypt({name:"AES-CBC",iv:m},f,g);return qt.decode(M)})).apply(this,arguments)}function Uo(t){return t.slice(1,33)}vt(si,{decrypt:()=>Ha,encrypt:()=>No}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle),vt({},{NIP05_REGEX:()=>Po,queryProfile:()=>Za,searchDomain:()=>Ka,useFetchImplementation:()=>Ya});var yr,Po=/^(?:([\w.+-]+)@)?([\w.-]+)$/;try{yr=fetch}catch{}function Ya(t){yr=t}function Ka(t){return ci.apply(this,arguments)}function ci(){return(ci=(0,y.A)(function*(t,n=""){try{return(yield(yield yr(`https://${t}/.well-known/nostr.json?name=${n}`)).json()).names}catch{return{}}})).apply(this,arguments)}function Za(t){return ui.apply(this,arguments)}function ui(){return(ui=(0,y.A)(function*(t){const n=t.match(Po);if(!n)return null;const[e,r="_",i]=n;try{const s=yield yr(`https://${i}/.well-known/nostr.json?name=${r}`),{names:u,relays:f}=function Xa(t){const n={names:{}};for(const[e,r]of Object.entries(t.names))"string"==typeof e&&"string"==typeof r&&(n.names[e]=r);if(t.relays){n.relays={};for(const[e,r]of Object.entries(t.relays))"string"==typeof e&&Array.isArray(r)&&(n.relays[e]=r.filter(i=>"string"==typeof i))}return n}(yield s.json()),g=u[r];return g?{pubkey:g,relays:f?.[g]}:null}catch{return null}})).apply(this,arguments)}function Ja(t,n){let r=na.c.fromMasterSeed((0,Hr.kw)(t,n)).derive("m/44'/1237'/0'/0/0").privateKey;if(!r)throw new Error("could not derive private key");return Be(r)}function el(){return(0,Hr.we)(go.p)}function tl(t){return(0,Hr.JB)(t,go.p)}function rl(t){const n={reply:void 0,root:void 0,mentions:[],profiles:[]},e=[];for(const r of t.tags)"e"===r[0]&&r[1]&&e.push(r),"p"===r[0]&&r[1]&&n.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;r=n)break}return r}function al(t,n,e,r){return Vt({kind:6,tags:[...t.tags??[],["e",n.id,e],["p",n.pubkey]],content:""===t.content?"":JSON.stringify(n),created_at:t.created_at},r)}function Oo(t){if(6!==t.kind)return;let n,e;for(let r=t.tags.length-1;r>=0&&(void 0===n||void 0===e);r--){const i=t.tags[r];i.length>=2&&("e"===i[0]&&void 0===n?n=i:"p"===i[0]&&void 0===e&&(e=i))}return void 0!==n?{id:n[1],relays:[n[2],e?.[2]].filter(r=>"string"==typeof r),author:e?.[1]}:void 0}function ll(t,{skipVerification:n}={}){const e=Oo(t);if(void 0===e||""===t.content)return;let r;try{r=JSON.parse(t.content)}catch{return}return r.id===e.id&&(n||dr(r))?r:void 0}vt({},{generateSeedWords:()=>el,privateKeyFromSeedWords:()=>Ja,validateWords:()=>tl}),vt({},{parse:()=>rl}),vt({},{getPow:()=>Lo,minePow:()=>ol}),vt({},{finishRepostEvent:()=>al,getRepostedEvent:()=>ll,getRepostedEventPointer:()=>Oo}),vt({},{NOSTR_URI_REGEX:()=>vr,parse:()=>fl,test:()=>ul});var vr=new RegExp(`nostr:(${Bo.source})`);function ul(t){return"string"==typeof t&&new RegExp(`^${vr.source}$`).test(t)}function fl(t){const n=t.match(new RegExp(`^${vr.source}$`));if(!n)throw new Error(`Invalid Nostr URI: ${t}`);return{uri:n[0],value:n[1],decoded:qn(n[1])}}function dl(t,n,e){const r=n.tags.filter(i=>i.length>=2&&("e"===i[0]||"p"===i[0]));return Vt({...t,kind:7,tags:[...t.tags??[],...r,["e",n.id],["p",n.pubkey]],content:t.content??"+"},e)}function gl(t){if(7!==t.kind)return;let n,e;for(let r=t.tags.length-1;r>=0&&(void 0===n||void 0===e);r--){const i=t.tags[r];i.length>=2&&("e"===i[0]&&void 0===n?n=i:"p"===i[0]&&void 0===e&&(e=i))}return void 0!==n&&void 0!==e?{id:n[1],relays:[n[2],e[2]].filter(r=>void 0!==r),author:e[1]}:void 0}function ml(t,n){let e=[];(n.kind||-1)>=0&&e.push(`kind=${n.kind}`),n.until&&e.push(`created_at<${n.until}`),n.since&&e.push(`created_at>${n.since}`);let r=e.join("&");if(""===r)throw new Error("refusing to create a delegation without any conditions");let i=Tt(Pt.encode(`nostr:delegation:${n.pubkey}:${r}`)),s=Be(bn.sign(i,t));return{from:ei(t),to:n.pubkey,cond:r,sig:s}}function yl(t){let n=t.tags.find(f=>"delegation"===f[0]&&f.length>=4);if(!n)return null;let e=n[1],r=n[2],i=n[3],s=r.split("&");for(let f=0;f"===m&&t.created_at>parseInt(M))continue;return null}}let u=Tt(Pt.encode(`nostr:delegation:${t.pubkey}:${r}`));return bn.verify(i,u,e)?e:null}vt({},{finishReactionEvent:()=>dl,getReactedEventPointer:()=>gl}),vt({},{createDelegation:()=>ml,getDelegator:()=>yl}),vt({},{matchAll:()=>wl,regex:()=>fi,replaceAll:()=>bl});var fi=()=>new RegExp(`\\b${vr.source}\\b`,"g");function*wl(t){const n=t.matchAll(fi());for(const e of n)try{const[r,i]=e;yield{uri:r,value:i,decoded:qn(i),start:e.index,end:e.index+r.length}}catch{}}function bl(t,n){return t.replaceAll(fi(),(e,r)=>n({uri:e,value:r,decoded:qn(r)}))}vt({},{channelCreateEvent:()=>El,channelHideMessageEvent:()=>kl,channelMessageEvent:()=>Ml,channelMetadataEvent:()=>xl,channelMuteUserEvent:()=>Sl});var hi,El=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:40,tags:[...t.tags??[]],content:e,created_at:t.created_at},n)},xl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:41,tags:[["e",t.channel_create_event_id],...t.tags??[]],content:e,created_at:t.created_at},n)},Ml=(t,n)=>{const e=[["e",t.channel_create_event_id,t.relay_url,"root"]];return t.reply_to_channel_message_event_id&&e.push(["e",t.reply_to_channel_message_event_id,t.relay_url,"reply"]),Vt({kind:42,tags:[...e,...t.tags??[]],content:t.content,created_at:t.created_at},n)},kl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:43,tags:[["e",t.channel_message_event_id],...t.tags??[]],content:e,created_at:t.created_at},n)},Sl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:44,tags:[["p",t.pubkey_to_mute],...t.tags??[]],content:e,created_at:t.created_at},n)};vt({},{useFetchImplementation:()=>Cl,validateGithub:()=>Tl});try{hi=fetch}catch{}function Cl(t){hi=t}function Tl(t,n,e){return di.apply(this,arguments)}function di(){return(di=(0,y.A)(function*(t,n,e){try{return(yield(yield hi(`https://gist.github.com/${n}/${e}/raw`)).text())===`Verifying that I control the following Nostr public key: ${t}`}catch{return!1}})).apply(this,arguments)}vt({},{authenticate:()=>Rl});var Rl=function(){var t=(0,y.A)(function*({challenge:n,relay:e,sign:r}){const i={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e.url],["challenge",n]],content:""};return e.auth(yield r(i))});return function(e){return t.apply(this,arguments)}}();vt({},{decrypt:()=>Ul,encrypt:()=>Nl,utils:()=>cn});var pi,cn={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(t,n)=>wn.getSharedSecret(t,"02"+n).subarray(1,33),getMessageKeys(t,n){const e=((t,n,e,r,i)=>function _a(t,n,e,r=32){if(Le.hash(t),Le.number(r),r>255*t.outputLen)throw new Error("Length should be <= 255*HashLen");const i=Math.ceil(r/t.outputLen);void 0===e&&(e=bo);const s=new Uint8Array(i*t.outputLen),u=vn.create(t,n),f=u._cloneInto(),g=new Uint8Array(u.outputLen);for(let m=0;m=cn.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const r=cn.v2.calcPadding(e),i=new Uint8Array(r-e),s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,e),Fe(s,n,i)},unpad(t){const n=new DataView(t.buffer).getUint16(0),e=t.subarray(2,2+n);if(0===n||e.length!==n||t.length!==2+cn.v2.calcPadding(n))throw new Error("invalid padding");return qt.decode(e)}}};function Nl(t,n,e={}){const r=e.version??2;if(2!==r)throw new Error("unknown encryption version "+r);const i=e.salt??Zt(32);Xr(i,32);const s=cn.v2.getMessageKeys(t,i),u=cn.v2.pad(n),f=yo(s.encryption,s.nonce,u),g=vn(Tt,s.auth,f);return Ht.encode(Fe(new Uint8Array([r]),i,f,g))}function Ul(t,n){const e=cn.v2;Xr(t,32);const r=n.length;if(r=e.maxCiphertextSize)throw new Error("invalid ciphertext length: "+r);if("#"===n[0])throw new Error("unknown encryption version");let i;try{i=Ht.decode(n)}catch(O){throw new Error("invalid base64: "+O.message)}const s=i.subarray(0,1)[0];if(2!==s)throw new Error("unknown encryption version "+s);const u=i.subarray(1,33),f=i.subarray(33,-32),g=i.subarray(-32),m=e.getMessageKeys(t,u);if(!function aa(t,n){if(t.length!==n.length)throw new Error("equalBytes: Different size of Uint8Arrays");let e=!0;for(let r=0;rOl,parseConnectionString:()=>Ll}),vt({},{getZapEndpoint:()=>Dl,makeZapReceipt:()=>Gl,makeZapRequest:()=>Fl,useFetchImplementation:()=>$l,validateZapRequest:()=>ql});try{pi=fetch}catch{}function $l(t){pi=t}function Dl(t){return mi.apply(this,arguments)}function mi(){return(mi=(0,y.A)(function*(t){try{let n="",{lud06:e,lud16:r}=JSON.parse(t.content);if(e){let{words:u}=_n.decode(e,1e3),f=_n.fromWords(u);n=qt.decode(f)}else{if(!r)return null;{let[u,f]=r.split("@");n=`https://${f}/.well-known/lnurlp/${u}`}}let s=yield(yield pi(n)).json();if(s.allowsNostr&&s.nostrPubkey)return s.callback}catch{}return null})).apply(this,arguments)}function Fl({profile:t,event:n,amount:e,relays:r,comment:i=""}){if(!e)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:i,tags:[["p",t],["amount",e.toString()],["relays",...r]]};return n&&s.tags.push(["e",n]),s}function ql(t){let n;try{n=JSON.parse(t)}catch{return"Invalid zap request JSON."}if(!ni(n))return"Zap request is not a valid Nostr event.";if(!dr(n))return"Invalid signature on zap request.";let e=n.tags.find(([s,u])=>"p"===s&&u);if(!e)return"Zap request doesn't have a 'p' tag.";if(!e[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=n.tags.find(([s,u])=>"e"===s&&u);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":n.tags.find(([s,u])=>"relays"===s&&u)?null:"Zap request doesn't have a 'relays' tag."}function Gl({zapRequest:t,preimage:n,bolt11:e,paidAt:r}){let s=JSON.parse(t).tags.filter(([f])=>"e"===f||"p"===f||"a"===f),u={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...s,["bolt11",e],["description",t]]};return n&&u.tags.push(["preimage",n]),u}vt({},{getToken:()=>Wl,unpackEventFromToken:()=>$o,validateEvent:()=>Do,validateToken:()=>Hl});var jo="Nostr ";function Wl(t,n,e){return yi.apply(this,arguments)}function yi(){return(yi=(0,y.A)(function*(t,n,e,r=!1){if(!t||!n)throw new Error("Missing loginUrl or httpMethod");const i=function Ca(t=255){return{kind:t,content:"",tags:[],created_at:0}}(27235);i.tags=[["u",t],["method",n]],i.created_at=Math.round((new Date).getTime()/1e3);const s=yield e(i);return(r?jo:"")+Ht.encode(Pt.encode(JSON.stringify(s)))})).apply(this,arguments)}function Hl(t,n,e){return vi.apply(this,arguments)}function vi(){return(vi=(0,y.A)(function*(t,n,e){const r=yield $o(t).catch(s=>{throw s});return yield Do(r,n,e).catch(s=>{throw s})})).apply(this,arguments)}function $o(t){return wi.apply(this,arguments)}function wi(){return(wi=(0,y.A)(function*(t){if(!t)throw new Error("Missing token");t=t.replace(jo,"");const n=qt.decode(Ht.decode(t));if(!n||0===n.length||!n.startsWith("{"))throw new Error("Invalid token");return JSON.parse(n)})).apply(this,arguments)}function Do(t,n,e){return bi.apply(this,arguments)}function bi(){return(bi=(0,y.A)(function*(t,n,e){if(!t)throw new Error("Invalid nostr event");if(!dr(t))throw new Error("Invalid nostr event, signature invalid");if(27235!==t.kind)throw new Error("Invalid nostr event, kind invalid");if(!t.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-t.created_at>60)throw new Error("Invalid nostr event, expired");const r=t.tags.find(s=>"u"===s[0]);if(1!==r?.length&&r?.[1]!==n)throw new Error("Invalid nostr event, url tag invalid");const i=t.tags.find(s=>"method"===s[0]);if(1!==i?.length&&i?.[1].toLowerCase()!==e.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0})).apply(this,arguments)}function Te(){return Te=Object.assign?Object.assign.bind():function(t){for(var n=1;nt.reduce((n,e)=>n+e.toString(16).padStart(2,"0"),"");class zo extends Error{constructor(n,e,r,i){let s=n.toString();e&&(s+=` ${e}`),s+=": ",s+=i.message?i.message:JSON.stringify(i),super(s),this.status=void 0,this.statusText=void 0,this.headers=void 0,this.error=void 0,this.status=n,this.statusText=e,this.headers=r,this.error=i}}const Vl=["auth","endpoint","params","request_body","method","max_retries","base_url","user_agent","headers"],Yl="https://api.getalby.com";function Wo(t,n){return Ei.apply(this,arguments)}function Ei(){return(Ei=(0,y.A)(function*(t,n,e=0){const r=yield fetch(t,n);if(429===r.status&&e>0){const i=Number(r.headers.get("x-rate-limit-reset")),s=Number(r.headers.get("x-rate-limit-remaining")),u=1e3*i-Date.now();let f=1e3;return 0===s&&(f=u),yield new Promise(g=>setTimeout(g,f)),Wo(t,n,e-1)}return r})).apply(this,arguments)}function xi(){return(xi=(0,y.A)(function*(t){let{auth:n,endpoint:e,params:r={},request_body:i,method:s,max_retries:u,base_url:f=Yl,user_agent:g,headers:m}=t,M=function _i(t,n){if(null==t)return{};var e,r,i={},s=Object.keys(t);for(r=0;r=0||(i[e]=t[e]);return i}(t,Vl);const k=new URL(f+e);k.search=function Fo(t){return Object.entries(t).map(([n,e])=>n&&e?`${n}=${e}`:"").filter(n=>n).join("&")}(r);const O="POST"===s&&!!i,L=n?yield n.getAuthHeader(k.href,s):void 0,P=yield Wo(k.toString(),Te({headers:Te({},O?{"Content-Type":"application/json; charset=utf-8"}:void 0,L,m,{"User-Agent":g??"@getalby/sdk","X-User-Agent":g??"@getalby/sdk"}),method:s,body:O?JSON.stringify(i):void 0},M),u);if(!P.ok){const I=yield P.json();throw new zo(P.status,P.statusText,P.headers,I)}return P})).apply(this,arguments)}function wt(t){return Mi.apply(this,arguments)}function Mi(){return Mi=(0,y.A)(function*(t){return(yield function Kl(t){return xi.apply(this,arguments)}(t)).json()}),Mi.apply(this,arguments)}class Vo{constructor(n){this.bearer_token=void 0,this.bearer_token=n}getAuthHeader(){return{Authorization:`Bearer ${this.bearer_token}`}}}class rn extends Error{constructor(n,e){super(n),this.error=void 0,this.code=void 0,this.error=n,this.code=e}}class Yo extends rn{}class ki extends rn{}class Si extends ki{}class Ai extends ki{}class Ci extends rn{}class Ti extends rn{}class wr extends rn{}class Ko extends rn{}class Zo extends rn{}const Xo={alby:{authorizationUrl:"https://nwc.getalby.com/apps/new",relayUrl:"wss://relay.getalby.com/v1",walletPubkey:"69effe7b49a6dd5cf525bd0905917a5005ffe480b58eeb8e861418cf3ae760d9"}};class zn{static parseWalletConnectUrl(n){n=n.replace("nostrwalletconnect://","http://").replace("nostr+walletconnect://","http://").replace("nostrwalletconnect:","http://").replace("nostr+walletconnect:","http://");const e=new URL(n),r=e.searchParams.get("relay");if(!r)throw new Error("No relay URL found in connection string");const i={walletPubkey:e.host,relayUrl:r},s=e.searchParams.get("secret");s&&(i.secret=s);const u=e.searchParams.get("lud16");return u&&(i.lud16=u),i}static withNewSecret(n){return(n=n||{}).secret=_o(),new zn(n)}constructor(n){var e;this.relay=void 0,this.relayUrl=void 0,this.secret=void 0,this.lud16=void 0,this.walletPubkey=void 0,this.options=void 0,n&&n.nostrWalletConnectUrl&&(n=Te({},zn.parseWalletConnectUrl(n.nostrWalletConnectUrl),n));const r=Xo[(null==(e=n)?void 0:e.providerName)||"alby"];this.options=Te({},r,n||{}),this.relayUrl=this.options.relayUrl,this.relay=To(this.relayUrl),this.options.secret&&(this.secret=this.options.secret.toLowerCase().startsWith("nsec")?ii.decode(this.options.secret).data:this.options.secret),this.lud16=this.options.lud16,this.walletPubkey=this.options.walletPubkey.toLowerCase().startsWith("npub")?ii.decode(this.options.walletPubkey).data:this.options.walletPubkey,void 0===globalThis.WebSocket&&console.error("WebSocket is undefined. Make sure to `import websocket-polyfill` for nodejs environments")}get nostrWalletConnectUrl(){return this.getNostrWalletConnectUrl()}getNostrWalletConnectUrl(n=!0){let e=`nostr+walletconnect://${this.walletPubkey}?relay=${this.relayUrl}&pubkey=${this.publicKey}`;return n&&(e=`${e}&secret=${this.secret}`),e}get connected(){return 1===this.relay.status}get publicKey(){if(!this.secret)throw new Error("Missing secret key");return ei(this.secret)}getPublicKey(){return Promise.resolve(this.publicKey)}signEvent(n){if(!this.secret)throw new Error("Missing secret key");return Promise.resolve(Vt(n,this.secret))}getEventHash(n){return Fn(n)}close(){return this.relay.close()}encrypt(n,e){var r=this;return(0,y.A)(function*(){if(!r.secret)throw new Error("Missing secret");return yield si.encrypt(r.secret,n,e)})()}decrypt(n,e){var r=this;return(0,y.A)(function*(){if(!r.secret)throw new Error("Missing secret");return yield si.decrypt(r.secret,n,e)})()}getAuthorizationUrl(n){if(!this.options.authorizationUrl)throw new Error("Missing authorizationUrl option");const e=new URL(this.options.authorizationUrl);return null!=n&&n.name&&e.searchParams.set("name",n?.name),e.searchParams.set("pubkey",this.publicKey),null!=n&&n.returnTo&&e.searchParams.set("return_to",n.returnTo),null!=n&&n.budgetRenewal&&e.searchParams.set("budget_renewal",n.budgetRenewal),null!=n&&n.expiresAt&&e.searchParams.set("expires_at",Math.floor(n.expiresAt.getTime()/1e3).toString()),null!=n&&n.maxAmount&&e.searchParams.set("max_amount",n.maxAmount.toString()),void 0!==n?.editable&&e.searchParams.set("editable",n.editable.toString()),null!=n&&n.requestMethods&&e.searchParams.set("request_methods",n.requestMethods.join(" ")),e}initNWC(n={}){n.name||(n.name=document.location.host);const e=this.getAuthorizationUrl(n),r=window.outerHeight/2+window.screenY-300,i=window.outerWidth/2+window.screenX-200;return new Promise((s,u)=>{const f=window.open(e.toString(),`${document.title} - Wallet Connect`,`height=600,width=400,top=${r},left=${i}`);if(!f)return void u(new Error("failed to execute window.open"));const g=M=>{const k=M.data;k&&"nwc:success"===k.type&&M.origin===`${e.protocol}//${e.host}`&&(s(k),clearInterval(m),window.removeEventListener("message",g),f&&f.close())},m=setInterval(()=>{f&&f.closed&&(clearInterval(m),window.removeEventListener("message",g),u(new Error("Popup closed")))},500);window.addEventListener("message",g)})}getWalletServiceSupportedMethods(){var n=this;return(0,y.A)(function*(){return console.warn("getWalletServiceSupportedMethods is deprecated. Please use getWalletServiceInfo instead."),(yield n.getWalletServiceInfo()).capabilities})()}getWalletServiceInfo(){var n=this;return(0,y.A)(function*(){var e;yield n._checkConnected();const r=yield n.relay.list([{kinds:[13194],limit:1,authors:[n.walletPubkey]}],{eoseSubTimeout:1e4});if(!r.length)throw new Error("no info event (kind 13194) returned from relay");const i=r[0].content,s=r[0].tags.find(u=>"notifications"===u[0]);return{capabilities:i.split(/[ |,]/g),notifications:(null==s||null==(e=s[1])?void 0:e.split(" "))||[]}})()}getInfo(){var n=this;return(0,y.A)(function*(){try{return yield n.executeNip47Request("get_info",{},e=>!!e.methods)}catch(e){throw console.error("Failed to request get_info",e),e}})()}getBalance(){var n=this;return(0,y.A)(function*(){try{return yield n.executeNip47Request("get_balance",{},e=>void 0!==e.balance)}catch(e){throw console.error("Failed to request get_balance",e),e}})()}payInvoice(n){var e=this;return(0,y.A)(function*(){try{return yield e.executeNip47Request("pay_invoice",n,r=>!!r.preimage)}catch(r){throw console.error("Failed to request pay_invoice",r),r}})()}payKeysend(n){var e=this;return(0,y.A)(function*(){try{return yield e.executeNip47Request("pay_keysend",n,r=>!!r.preimage)}catch(r){throw console.error("Failed to request pay_keysend",r),r}})()}signMessage(n){var e=this;return(0,y.A)(function*(){try{return yield e.executeNip47Request("sign_message",n,r=>r.message===n.message&&!!r.signature)}catch(r){throw console.error("Failed to request sign_message",r),r}})()}multiPayInvoice(n){var e=this;return(0,y.A)(function*(){try{return{invoices:yield e.executeMultiNip47Request("multi_pay_invoice",n,n.invoices.length,r=>!!r.preimage),errors:[]}}catch(r){throw console.error("Failed to request multi_pay_invoice",r),r}})()}multiPayKeysend(n){var e=this;return(0,y.A)(function*(){try{return{keysends:yield e.executeMultiNip47Request("multi_pay_keysend",n,n.keysends.length,r=>!!r.preimage),errors:[]}}catch(r){throw console.error("Failed to request multi_pay_keysend",r),r}})()}makeInvoice(n){var e=this;return(0,y.A)(function*(){try{if(!n.amount)throw new Error("No amount specified");return yield e.executeNip47Request("make_invoice",n,r=>!!r.invoice)}catch(r){throw console.error("Failed to request make_invoice",r),r}})()}lookupInvoice(n){var e=this;return(0,y.A)(function*(){try{return yield e.executeNip47Request("lookup_invoice",n,r=>!!r.invoice)}catch(r){throw console.error("Failed to request lookup_invoice",r),r}})()}listTransactions(n){var e=this;return(0,y.A)(function*(){try{return yield e.executeNip47Request("list_transactions",n,r=>!!r.transactions)}catch(r){throw console.error("Failed to request list_transactions",r),r}})()}subscribeNotifications(n,e){var r=this;return(0,y.A)(function*(){var i=r;let s,u,f,g=!0;return(0,y.A)(function*(){for(;g;){try{yield i._checkConnected(),f=i.relay.sub([{kinds:[23196],authors:[i.walletPubkey],"#p":[i.publicKey]}]),console.info("subscribed to relay"),f.on("event",function(){var m=(0,y.A)(function*(M){const k=yield i.decrypt(i.walletPubkey,M.content);let O;try{O=JSON.parse(k)}catch(L){return void console.error("Failed to parse decrypted event content",L)}O.notification?(!e||e.indexOf(O.notification_type)>-1)&&n(O):console.error("No notification in response",O)});return function(M){return m.apply(this,arguments)}}()),yield new Promise(m=>{s=()=>{m()},u=()=>{console.info("relay disconnected"),s?.()},i.relay.on("disconnect",u)}),void 0!==u&&i.relay.off("disconnect",u)}catch(m){console.error("error subscribing to notifications",m||"unknown relay error")}g&&(yield new Promise(m=>setTimeout(m,1e3)))}})(),()=>{var m;g=!1,s?.(),null==(m=f)||m.unsub()}})()}executeNip47Request(n,e,r){var i=this;return(0,y.A)(function*(){var s=i;return yield i._checkConnected(),new Promise((u,f)=>{(0,y.A)(function*(){const g={method:n,params:e},m=yield s.encrypt(s.walletPubkey,JSON.stringify(g)),M={kind:23194,created_at:Math.floor(Date.now()/1e3),tags:[["p",s.walletPubkey]],content:m,pubkey:s.publicKey},k=yield s.signEvent(M),O=s.relay.sub([{kinds:[23195],authors:[s.walletPubkey],"#e":[k.id]}]),L=setTimeout(function(){O.unsub(),f(new Ai(`reply timeout: event ${k.id}`,"INTERNAL"))},6e4);O.on("event",function(){var I=(0,y.A)(function*($){clearTimeout(L),O.unsub();const D=yield s.decrypt(s.walletPubkey,$.content);let H;try{H=JSON.parse(D)}catch{return clearTimeout(L),O.unsub(),void f(new Ti("failed to deserialize response","INTERNAL"))}var Z,V;H.result?r(H.result)?u(H.result):(clearTimeout(L),O.unsub(),f(new wr("response from NWC failed validation: "+JSON.stringify(H.result),"INTERNAL"))):(clearTimeout(L),O.unsub(),f(new Yo((null==(Z=H.error)?void 0:Z.message)||"unknown Error",(null==(V=H.error)?void 0:V.code)||"INTERNAL")))});return function($){return I.apply(this,arguments)}}());const P=setTimeout(function(){O.unsub(),f(new Si(`publish timeout: ${k.id}`,"INTERNAL"))},5e3);try{yield s.relay.publish(k),clearTimeout(P)}catch(I){clearTimeout(P),f(new Ci(`failed to publish: ${I}`,"INTERNAL"))}})()})})()}executeMultiNip47Request(n,e,r,i){var s=this;return(0,y.A)(function*(){var u=s;yield s._checkConnected();const f=[];return new Promise((g,m)=>{(0,y.A)(function*(){const M={method:n,params:e},k=yield u.encrypt(u.walletPubkey,JSON.stringify(M)),O={kind:23194,created_at:Math.floor(Date.now()/1e3),tags:[["p",u.walletPubkey]],content:k,pubkey:u.publicKey},L=yield u.signEvent(O),P=u.relay.sub([{kinds:[23195],authors:[u.walletPubkey],"#e":[L.id]}]),I=setTimeout(function(){P.unsub(),m(new Ai(`reply timeout: event ${L.id}`,"INTERNAL"))},6e4);P.on("event",function(){var D=(0,y.A)(function*(H){const Z=yield u.decrypt(u.walletPubkey,H.content);let V;try{V=JSON.parse(Z)}catch{clearTimeout(I),P.unsub(),m(new Ti("failed to deserialize response","INTERNAL"))}if(V.result){var J;if(!i(V.result))return clearTimeout(I),P.unsub(),void m(new wr("Response from NWC failed validation: "+JSON.stringify(V.result),"INTERNAL"));const Q=null==(J=H.tags.find(X=>"d"===X[0]))?void 0:J[1];if(void 0===Q)return clearTimeout(I),P.unsub(),void m(new wr("No d tag found in response event","INTERNAL"));f.push(Te({},V.result,{dTag:Q})),f.length===r&&(clearTimeout(I),P.unsub(),g(f))}else{var G,Y;clearTimeout(I),P.unsub(),m(new Ko(null==(G=V.error)?void 0:G.message,null==(Y=V.error)?void 0:Y.code))}});return function(H){return D.apply(this,arguments)}}());const $=setTimeout(function(){P.unsub(),m(new Si(`Publish timeout: ${L.id}`,"INTERNAL"))},5e3);try{yield u.relay.publish(L),clearTimeout($)}catch(D){clearTimeout($),m(new Ci(`Failed to publish: ${D}`,"INTERNAL"))}})()})})()}_checkConnected(){var n=this;return(0,y.A)(function*(){if(!n.secret)throw new Error("Missing secret key");try{yield n.relay.connect()}catch{throw console.error("failed to connect to relay",n.relayUrl),new Zo("Failed to connect to "+n.relayUrl,"OTHER")}})()}}const Ql={get_info:"getInfo",get_balance:"getBalance",make_invoice:"makeInvoice",pay_invoice:"sendPayment",pay_keysend:"payKeysend",lookup_invoice:"lookupInvoice",list_transactions:"listTransactions",multi_pay_invoice:"sendMultiPayment",multi_pay_keysend:"multiKeysend",sign_message:"signMessage"};class br{get relay(){return console.warn("relay is deprecated. Please use client.relay instead."),this.client.relay}get relayUrl(){return console.warn("relayUrl is deprecated. Please use client.relayUrl instead."),this.client.relayUrl}get walletPubkey(){return console.warn("walletPubkey is deprecated. Please use client.walletPubkey instead."),this.client.walletPubkey}get options(){return this.client.options}get secret(){return console.warn("secret is deprecated. Please use client.secret instead."),this.client.secret}static withNewSecret(n){return(n=n||{}).secret=_o(),new br(n)}constructor(n){this._enabled=!1,this.client=void 0,this.subscribers=void 0,this.client=new zn(n),this.subscribers={}}on(n,e){this.subscribers[n]=e}notify(n,e){const r=this.subscribers[n];r&&r(e)}getNostrWalletConnectUrl(n=!0){return console.warn("getNostrWalletConnectUrl is deprecated. Please use client.getNostrWalletConnectUrl instead."),this.client.getNostrWalletConnectUrl(n)}get nostrWalletConnectUrl(){return console.warn("nostrWalletConnectUrl is deprecated. Please use client.nostrWalletConnectUrl instead."),this.client.nostrWalletConnectUrl}get connected(){return console.warn("connected is deprecated. Please use client.connected instead."),this.client.connected}get publicKey(){return console.warn("publicKey is deprecated. Please use client.publicKey instead."),this.client.publicKey}getPublicKey(){return this.client.getPublicKey()}signEvent(n){return this.client.signEvent(n)}getEventHash(n){return console.warn("getEventHash is deprecated. Please use client.getEventHash instead."),this.client.getEventHash(n)}enable(){var n=this;return(0,y.A)(function*(){n._enabled=!0})()}close(){return this.client.close()}encrypt(n,e){var r=this;return(0,y.A)(function*(){return console.warn("encrypt is deprecated. Please use client.encrypt instead."),r.client.encrypt(n,e)})()}decrypt(n,e){var r=this;return(0,y.A)(function*(){return console.warn("decrypt is deprecated. Please use client.decrypt instead."),r.client.decrypt(n,e)})()}getAuthorizationUrl(n){return console.warn("getAuthorizationUrl is deprecated. Please use client.getAuthorizationUrl instead."),this.client.getAuthorizationUrl(n)}initNWC(n={}){return console.warn("initNWC is deprecated. Please use client.initNWC instead."),this.client.initNWC(n)}getInfo(){var n=this;return(0,y.A)(function*(){yield n.checkEnabled();const e=["lightning","nostr"],r="Alby JS SDK";try{const i=yield n.client.getInfo(),s={methods:i.methods.map(u=>Ql[u]),node:{alias:i.alias,pubkey:i.pubkey,color:i.color},supports:e,version:r};return n.notify("getInfo",s),s}catch(i){return console.error("Using minimal getInfo",i),{methods:["sendPayment"],node:{},supports:e,version:r}}})()}getBalance(){var n=this;return(0,y.A)(function*(){yield n.checkEnabled();const e=yield n.client.getBalance(),r={balance:Math.floor(e.balance/1e3),currency:"sats"};return n.notify("getBalance",r),r})()}sendPayment(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const r={preimage:(yield e.client.payInvoice({invoice:n})).preimage};return e.notify("sendPayment",r),r})()}sendPaymentAsync(n){var e=this;return(0,y.A)(function*(){return yield e.checkEnabled(),e.client.payInvoice({invoice:n}),e.notify("sendPaymentAsync",{}),{}})()}keysend(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const r={preimage:(yield e.client.payKeysend(Qo(n))).preimage};return e.notify("keysend",r),r})()}signMessage(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const r=yield e.client.signMessage({message:n}),i={message:r.message,signature:r.signature};return e.notify("keysend",i),i})()}makeInvoice(n){var e=this;return(0,y.A)(function*(){var r;yield e.checkEnabled();const i="object"==typeof n?n:void 0,s=+(null!=(r=i?.amount)?r:n);if(!s)throw new Error("No amount specified");const u={paymentRequest:(yield e.client.makeInvoice({amount:1e3*s,description:i?.defaultMemo})).invoice};return e.notify("makeInvoice",u),u})()}lookupInvoice(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const r=yield e.client.lookupInvoice({invoice:n.paymentRequest,payment_hash:n.paymentHash}),i={preimage:r.preimage,paymentRequest:r.invoice,paid:!!r.settled_at};return e.notify("lookupInvoice",i),i})()}listTransactions(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const r={transactions:(yield e.client.listTransactions(n)).transactions.map(Jl)};return e.notify("listTransactions",r),r})()}sendMultiPayment(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const i={payments:(yield e.client.multiPayInvoice({invoices:n.map((s,u)=>({invoice:s,id:u.toString()}))})).invoices.map(s=>{const u=n[parseInt(s.dTag)];if(!u)throw new Error("Could not find paymentRequest matching response d tag");return{paymentRequest:u,preimage:s.preimage}}),errors:[]};return e.notify("sendMultiPayment",i),i})()}multiKeysend(n){var e=this;return(0,y.A)(function*(){yield e.checkEnabled();const i={keysends:(yield e.client.multiPayKeysend({keysends:n.map((s,u)=>Te({},Qo(s),{id:u.toString()}))})).keysends.map(s=>{const u=n[parseInt(s.dTag)];if(!u)throw new Error("Could not find keysend matching response d tag");return{keysend:u,preimage:s.preimage}}),errors:[]};return e.notify("multiKeysend",i),i})()}lnurl(n){throw new Error("Method not implemented.")}request(n,e){throw new Error("Method not implemented.")}verifyMessage(n,e){throw new Error("Method not implemented.")}checkEnabled(){var n=this;return(0,y.A)(function*(){if(!n._enabled)throw new Error("please call enable() and await the promise before calling this function")})()}}function Jl(t){return Te({},t,{amount:Math.floor(t.amount/1e3),fees_paid:t.fees_paid?Math.floor(t.fees_paid/1e3):0})}function Qo(t){return{amount:1e3*+t.amount,pubkey:t.destination,tlv_records:t.customRecords?Object.entries(t.customRecords).map(n=>({type:parseInt(n[0]),value:Go((new TextEncoder).encode(n[1]))})):[]}}const ec=br;function Jo(t){const n={};return t.recipient.customKey&&t.recipient.customValue&&(n[t.recipient.customKey]=t.recipient.customValue),n[7629169]=JSON.stringify(t.boostagram),{destination:t.recipient.address,amount:t.amount,custom_records:n}}class es{constructor(n,e){this.auth=void 0,this.defaultRequestOptions=void 0,this.auth="string"==typeof n?new Vo(n):n,this.defaultRequestOptions=Te({},e,{user_agent:e?.user_agent})}accountBalance(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/balance",params:n,method:"GET"}))}accountSummary(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/summary",params:n,method:"GET"}))}accountInformation(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/me",params:n,method:"GET"}))}accountValue4Value(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/value4value",params:n,method:"GET"}))}incomingInvoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices/incoming",params:n,method:"GET"}))}outgoingInvoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices/outgoing",params:n,method:"GET"}))}invoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices",params:n,method:"GET"}))}getInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/invoices/${n}`,method:"GET"}))}decodeInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/decode/bolt11/${n}`,method:"GET"}))}createInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices",request_body:n,method:"POST"}))}keysend(n,e){let r,i;return Array.isArray(n)?(r="/payments/keysend/multi",i={keysends:n.map(s=>Te({},s,{custom_records:s.customRecords}))}):(r="/payments/keysend",i=Te({},n,{custom_records:n.customRecords})),wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:r,request_body:i,method:"POST"}))}sendPayment(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/payments/bolt11",request_body:n,method:"POST"}))}sendBoostagram(n,e){let r,i;return Array.isArray(n)?(r="/payments/keysend/multi",i={keysends:n.map(s=>Jo(s))}):(r="/payments/keysend",i=Jo(n)),wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:r,request_body:i,method:"POST"}))}sendToAlbyAccount(n,e){return console.warn("sendToAlbyAccount is deprecated. Please use sendBoostagramToAlbyAccount instead."),this.sendBoostagramToAlbyAccount(n,e)}sendBoostagramToAlbyAccount(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/payments/keysend",request_body:{destination:"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3",custom_records:{696969:n.account},amount:n.amount,memo:n.memo},method:"POST"}))}createWebhookEndpoint(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/webhook_endpoints",request_body:n,method:"POST"}))}deleteWebhookEndpoint(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/webhook_endpoints/${n}`,method:"DELETE"}))}getSwapInfo(n){return wt(Te({auth:this.auth},this.defaultRequestOptions,n,{endpoint:"/swaps/info",method:"GET"}))}createSwap(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/swaps",method:"POST",request_body:n}))}}var _r={__proto__:null,NostrWebLNProvider:br,NWC:ec,OauthWeblnProvider:class{constructor(t){this.client=void 0,this.auth=void 0,this.oauth=void 0,this.subscribers=void 0,this.isExecuting=void 0,this.auth=t.auth,this.client=new es(t.auth),this.oauth=!0,this.subscribers={},this.isExecuting=!1}on(t,n){this.subscribers[t]=n}notify(t,n){const e=this.subscribers[t];e&&e(n)}enable(){var t=this;return(0,y.A)(function*(){var n;if(!t.isExecuting){if(null!=(n=t.auth.token)&&n.access_token)return{enabled:!0};if(typeof window>"u"||void 0===window.document)throw new Error("Missing access token");try{t.isExecuting=!0,yield t.openAuthorization()}finally{t.isExecuting=!1}}})()}sendPayment(t){var n=this;return(0,y.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.sendPayment({invoice:t});return n.notify("sendPayment",e),{preimage:e.payment_preimage}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}keysend(t){var n=this;return(0,y.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.keysend(t);return n.notify("keysend",e),{preimage:e.payment_preimage}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}getInfo(){return(0,y.A)(function*(){return{alias:"Alby"}})()}makeInvoice(t){var n=this;return(0,y.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.createInvoice({amount:parseInt(t.amount.toString()),description:t.defaultMemo});return n.notify("makeInvoice",e),{paymentRequest:e.payment_request}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}openAuthorization(){var t=this;return(0,y.A)(function*(){var n=t;const e=window.outerHeight/2+window.screenY-350,r=window.outerWidth/2+window.screenX-300,i=yield t.auth.generateAuthURL({code_challenge_method:"S256"});return new Promise((s,u)=>{const f=window.open(i,`${document.title} - WebLN enable`,`height=700,width=600,top=${e},left=${r}`);let g=!1;window.addEventListener("message",function(){var m=(0,y.A)(function*(M){const k=M.data;if(k&&"alby:oauth:success"===k.type&&M.origin===`${document.location.protocol}//${document.location.host}`&&!g){g=!0,console.info("Processing OAuth code response");const O=k.payload.code;try{yield n.auth.requestAccessToken(O),n.client=new es(n.auth),f&&f.close(),n.notify("enable"),s({enabled:!0})}catch(L){console.error(L),u({enabled:!1})}}});return function(M){return m.apply(this,arguments)}}())})})()}}},Ii=S(5416);class tc{constructor(n,e){this._document=e;const r=this._textarea=this._document.createElement("textarea"),i=r.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",r.setAttribute("aria-hidden","true"),r.value=n,r.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(r)}copy(){const n=this._textarea;let e=!1;try{if(n){const r=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),r&&r.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let Ri=(()=>{class t{constructor(e){this._document=e}copy(e){const r=this.beginCopy(e),i=r.copy();return r.destroy(),i}beginCopy(e){return new tc(e,this._document)}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(h.qQ))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function nc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){const i=o.eBV(e).$implicit,s=o.XpG(2);return o.Njj(s.invoiceAmount=i.value)}),o.j41(1,"mat-icon"),o.EFF(2),o.k0s(),o.j41(3,"span"),o.EFF(4),o.k0s()()}if(2&t){const e=n.$implicit;o.R7$(2),o.JRh(e.icon),o.R7$(2),o.JRh(e.label)}}function rc(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content")(1,"div",4),o.DNE(2,nc,5,2,"button",5),o.k0s(),o.nrm(3,"mat-divider"),o.j41(4,"mat-form-field",6)(5,"mat-label"),o.EFF(6,"Zap Amount"),o.k0s(),o.j41(7,"input",7),o.mxI("ngModelChange",function(i){o.eBV(e);const s=o.XpG();return o.DH7(s.invoiceAmount,i)||(s.invoiceAmount=i),o.Njj(i)}),o.k0s()(),o.j41(8,"mat-dialog-actions",8)(9,"button",9),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.generateInvoice())}),o.EFF(10," Generate Invoice "),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(2),o.Y8G("ngForOf",e.zapButtons),o.R7$(5),o.R50("ngModel",e.invoiceAmount)}}function ic(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",12)(1,"span"),o.EFF(2),o.k0s(),o.nrm(3,"mat-divider")(4,"qrcode",13),o.j41(5,"mat-dialog-actions",14)(6,"button",15),o.bIt("click",function(){o.eBV(e);const i=o.XpG(2);return o.Njj(i.copyInvoice())}),o.nrm(7,"mat-icon",16),o.k0s()()()}if(2&t){const e=o.XpG(2);o.R7$(2),o.SpI("Scan with phone to pay (",e.invoiceAmount," sats)"),o.R7$(2),o.Y8G("qrdata",e.lightningInvoice)("matTooltip","Lightning Invoice")("errorCorrectionLevel","M"),o.R7$(2),o.Y8G("matTooltip","Copy Invoice"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:clipboard-document")}}function oc(t,n){if(1&t&&(o.j41(0,"mat-dialog-content"),o.DNE(1,ic,8,6,"div",11),o.k0s()),2&t){const e=o.XpG();o.R7$(),o.Y8G("ngIf",e.displayQRCode)}}let sc=(()=>{class t{constructor(e,r,i){this._dialogRef=e,this._snackBar=r,this._clipboard=i,this.invoiceAmount="",this.lightningInvoice="",this.displayQRCode=!1,this.zapButtons=[{icon:"thumb_up",label:"50",value:50},{icon:"favorite",label:"100",value:100},{icon:"emoji_emotions",label:"500",value:500},{icon:"star",label:"1k",value:1e3},{icon:"celebration",label:"5k",value:5e3},{icon:"rocket",label:"10k",value:1e4},{icon:"local_fire_department",label:"100k",value:1e5},{icon:"flash_on",label:"500k",value:5e5},{icon:"diamond",label:"1M",value:1e6}]}generateInvoice(){var e=this;return(0,y.A)(function*(){if(!e.invoiceAmount||Number(e.invoiceAmount)<=0)e.openSnackBar("Please enter a valid amount","dismiss");else try{e.nwc=new _r.NostrWebLNProvider({nostrWalletConnectUrl:yield e.loadNWCUrl()}),yield e.nwc.enable();const r=yield e.nwc.makeInvoice({amount:Number(e.invoiceAmount)});e.lightningInvoice=r.paymentRequest,e.showQRCode()}catch(r){console.error("Error generating invoice:",r),e.openSnackBar("Failed to generate invoice","dismiss")}})()}loadNWCUrl(){return(0,y.A)(function*(){try{const e=_r.NostrWebLNProvider.withNewSecret();return yield e.initNWC({name:"Angor Hub"}),e.getNostrWalletConnectUrl()}catch(e){throw console.error("Error initializing NWC:",e),new Error("Failed to initialize NWC provider")}})()}showQRCode(){this.displayQRCode=!this.displayQRCode}copyInvoice(){this.lightningInvoice?(this._clipboard.copy(this.lightningInvoice),this.openSnackBar("Invoice copied","dismiss")):this.openSnackBar("No invoice available to copy","dismiss")}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}closeDialog(){this._dialogRef.close()}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(Pe.CP),o.rXU(Ii.UG),o.rXU(Ri))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["app-receive-dialog"]],standalone:!0,features:[o.aNF],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[4,"ngIf"],[1,"preset-buttons"],["mat-mini-fab","","color","primary",3,"click",4,"ngFor","ngForOf"],["appearance","outline",1,"sats-input"],["matInput","","placeholder","e.g., 100","type","number",3,"ngModelChange","ngModel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],["mat-mini-fab","","color","primary",3,"click"],["class","qrcode",4,"ngIf"],[1,"qrcode"],[1,"qrcode-image",3,"qrdata","matTooltip","errorCorrectionLevel"],["align","center"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(r,i){1&r&&(o.j41(0,"div",0)(1,"button",1),o.nrm(2,"mat-icon",2),o.k0s()(),o.j41(3,"h2"),o.EFF(4,"\u26a1 Receive Zap"),o.k0s(),o.DNE(5,rc,11,2,"mat-dialog-content",3)(6,oc,2,1,"mat-dialog-content",3)),2&r&&(o.R7$(),o.Y8G("matDialogClose",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:x-mark"),o.R7$(3),o.Y8G("ngIf",!i.displayQRCode),o.R7$(),o.Y8G("ngIf",i.displayQRCode))},dependencies:[Ve.vg,B.Hl,B.$z,B.iY,B.$0,oe.m_,oe.An,T.YN,T.me,T.Q0,T.BC,T.vS,q.nJ,q.rl,T.X1,h.MD,h.Sq,h.bT,kn.Ve,q.RG,le.fS,le.fg,Pe.Yi,Pe.E7,we,de,N.q,F.oV,Pe.tx],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;width:70px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:10px 0}.qrcode[_ngcontent-%COMP%]{text-align:center}.qrcode-image[_ngcontent-%COMP%]{width:100%!important}"]})}}return t})();for(var ts=S(1146),ac=S(3838),Yt=S(917),ns={bech32:"bc",pubKeyHash:0,scriptHash:5,validWitnessVersions:[0]},rs={bech32:"tb",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},is={bech32:"tbs",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},os={bech32:"bcrt",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},ss={bech32:"sb",pubKeyHash:63,scriptHash:123,validWitnessVersions:[0]},Wn=["option_data_loss_protect","initial_routing_sync","option_upfront_shutdown_script","gossip_queries","var_onion_optin","gossip_queries_ex","option_static_remotekey","payment_secret","basic_mpp","option_support_large_channel"],lc={m:new Yt.BN(1e3,10),u:new Yt.BN(1e6,10),n:new Yt.BN(1e9,10),p:new Yt.BN(1e12,10)},cc=new Yt.BN("2100000000000000000",10),as=new Yt.BN(1e11,10),Bi={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27},ls={},Er=0,Ni=Object.keys(Bi);Er0;)e=f.slice(0,33).toString("hex"),r=f.slice(33,41).toString("hex"),i=parseInt(f.slice(41,45).toString("hex"),16),s=parseInt(f.slice(45,49).toString("hex"),16),u=parseInt(f.slice(49,51).toString("hex"),16),f=f.slice(51),n.push({pubkey:e,short_channel_id:r,fee_base_msat:i,fee_proportional_millionths:s,cltv_expiry_delta:u});return n},5:function mc(t){for(var n=t.slice().reverse().map(function(i){return[!!(1&i),!!(2&i),!!(4&i),!!(8&i),!!(16&i)]}).reduce(function(i,s){return i.concat(s)},[]);n.length<2*Wn.length;)n.push(!1);var e={extra_bits:{}};if(Wn.forEach(function(i,s){var u;n[2*s]?u="required":n[2*s+1]&&(u="supported"),e[i]=u}),n.length>2*Wn.length){var r=n.slice(2*Wn.length);e.extra_bits={start_bit:2*Wn.length,bits:r,required:r.reduce(function(i,s,u){return u%2!=0?i||!1:i||s},!1)}}return e}};function dc(t){return function(n){return{tagCode:parseInt(t),words:ts.encode("unknown",n,Number.MAX_SAFE_INTEGER)}}}function xr(t){return t.reverse().reduce(function(n,e,r){return n+e*Math.pow(32,r)},0)}function on(t,n){var e=ac.hp.from(function gc(t,n,e){for(var r=0,i=0,s=(1<=e;)u.push(r>>(i-=e)&s);return i>0&&u.push(r<{class t{constructor(e){this.http=e}getLightning(e){return this.http.get(e).pipe((0,Pi.W)(r=>(console.error("Failed to fetch Lightning response:",r),(0,Ui.of)({status:"Failed"}))))}getLightningInvoice(e,r){return this.http.get(`${e}?amount=${r}`).pipe((0,Pi.W)(s=>(console.error("Failed to fetch Lightning invoice:",s),(0,Ui.of)({pr:"",status:"Failed"}))))}getLightningAddress(e){try{const[r,i]=e.split("@");return`https://${i}/.well-known/lnurlp/${r}`}catch{return console.error("Invalid Lightning address format:",e),""}}sendZapRequest(e,r,i,s){const u=encodeURIComponent(JSON.stringify(r));return this.http.get(`${e}?amount=${i}&nostr=${u}&lnurl=${s}`).pipe((0,Pi.W)(g=>(console.error("Failed to send zap request:",g),(0,Ui.of)({pr:"",status:"Failed"}))))}login(){return(0,y.A)(function*(){try{return window.webln&&!window.webln.isEnabled()&&(yield window.webln.enable()),!0}catch(e){return console.error("WebLN login failed:",e),!1}})()}hasWebln(){return!!window.webln}sendPayment(e){var r=this;return(0,y.A)(function*(){try{return r.hasWebln()?yield window.webln.sendPayment(e):(console.error("WebLN is not available"),null)}catch(i){throw console.error("Payment failed:",i),i}})()}payInvoice(e){var r=this;return(0,y.A)(function*(){if((yield r.login())&&r.hasWebln())try{return!!(yield r.sendPayment(e))}catch(s){return console.error("Failed to pay invoice:",s),!1}return console.error("WebLN not available or login failed"),!1})()}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(wc.Qq))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){const i=o.eBV(e).$implicit,s=o.XpG(2);return o.Njj(s.sats=i.value)}),o.j41(1,"mat-icon"),o.EFF(2),o.k0s(),o.j41(3,"span"),o.EFF(4),o.k0s()()}if(2&t){const e=n.$implicit;o.R7$(2),o.JRh(e.icon),o.R7$(2),o.JRh(e.label)}}function _c(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content")(1,"div",4),o.DNE(2,bc,5,2,"button",5),o.k0s(),o.nrm(3,"mat-divider"),o.j41(4,"mat-form-field",6)(5,"mat-label"),o.EFF(6,"Zap Amount"),o.k0s(),o.j41(7,"input",7),o.mxI("ngModelChange",function(i){o.eBV(e);const s=o.XpG();return o.DH7(s.sats,i)||(s.sats=i),o.Njj(i)}),o.k0s()(),o.j41(8,"mat-dialog-actions",8)(9,"button",9),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.sendZap())}),o.EFF(10," Create invoice "),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(2),o.Y8G("ngForOf",e.zapButtons),o.R7$(5),o.R50("ngModel",e.sats)}}function Ec(t,n){if(1&t&&(o.j41(0,"div",16)(1,"span"),o.EFF(2),o.k0s(),o.nrm(3,"mat-divider")(4,"qrcode",17),o.k0s()),2&t){const e=o.XpG(2);o.R7$(2),o.SpI("Scan with phone to pay (",e.invoiceAmount," sats)"),o.R7$(2),o.Y8G("qrdata",e.lightningInvoice)("matTooltip","Lightning Invoice")("errorCorrectionLevel","M")}}function xc(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content"),o.DNE(1,Ec,5,4,"div",11),o.j41(2,"mat-dialog-actions",12)(3,"button",13),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.copyInvoice())}),o.nrm(4,"mat-icon",14),o.k0s(),o.j41(5,"button",13),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.payInvoice())}),o.nrm(6,"mat-icon",15),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(),o.Y8G("ngIf",e.displayQRCode),o.R7$(2),o.Y8G("matTooltip","Copy Invoice"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:clipboard-document"),o.R7$(),o.Y8G("matTooltip","Pay Invoice"),o.R7$(),o.Y8G("svgIcon","feather:zap")}}let Mc=(()=>{class t{constructor(e,r,i,s,u){this._dialogRef=e,this._metadata=r,this._lightning=i,this._snackBar=s,this._clipboard=u,this.lightningInvoice="",this.showInvoiceSection=!1,this.displayQRCode=!1,this.invoiceAmount="?",this.zapButtons=[{icon:"thumb_up",label:"50",value:50},{icon:"favorite",label:"100",value:100},{icon:"emoji_emotions",label:"500",value:500},{icon:"star",label:"1k",value:1e3},{icon:"celebration",label:"5k",value:5e3},{icon:"rocket",label:"10k",value:1e4},{icon:"local_fire_department",label:"100k",value:1e5},{icon:"flash_on",label:"500k",value:5e5},{icon:"diamond",label:"1M",value:1e6}],this.getLightningInfo()}getLightningInfo(){let e="";if(this._metadata?.lud06){const{words:r}=ne.I.decode(this._metadata.lud06,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else if(this._metadata?.lud16?.toLowerCase().startsWith("lnurl")){const{words:r}=ne.I.decode(this._metadata.lud16,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else this._metadata?.lud16&&(e=this._lightning.getLightningAddress(this._metadata.lud16));""!==e?this._lightning.getLightning(e).subscribe(r=>{this.lightningResponse=r,"Failed"===this.lightningResponse.status?this.openSnackBar("Failed to lookup lightning address","dismiss"):this.lightningResponse.callback?this.showInvoiceSection=!0:this.openSnackBar("Couldn't find user's lightning address","dismiss")}):this.openSnackBar("No lightning address found","dismiss")}getLightningInvoice(e){var r=this;this.lightningResponse&&this.lightningResponse.callback&&this._lightning.getLightningInvoice(this.lightningResponse.callback,e).subscribe(function(){var i=(0,y.A)(function*(s){r.lightningInvoice=s.pr,r.setInvoiceAmount(r.lightningInvoice),r.showInvoiceSection=!0,r.showQRCode()});return function(s){return i.apply(this,arguments)}}())}setInvoiceAmount(e){if(e){const i=function vc(t,n){if("string"!=typeof t)throw new Error("Lightning Payment Request must be string");if("ln"!==t.slice(0,2).toLowerCase())throw new Error("Not a proper lightning payment request");var e=[],r=ts.decode(t,Number.MAX_SAFE_INTEGER);t=t.toLowerCase();var i=r.prefix,s=r.words,u=t.slice(i.length+1),f=s.slice(-104);s=s.slice(0,-104);var g=i.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(g&&!g[2]&&(g=i.match(/^ln(\S+)$/)),!g)throw new Error("Not a proper lightning payment request");e.push({name:"lightning_network",letters:"ln"});var M,m=g[1];if(n){if(void 0===n.bech32||void 0===n.pubKeyHash||void 0===n.scriptHash||!Array.isArray(n.validWitnessVersions))throw new Error("Invalid network");M=n}else switch(m){case ns.bech32:M=ns;break;case rs.bech32:M=rs;break;case is.bech32:M=is;break;case os.bech32:M=os;break;case ss.bech32:M=ss}if(!M||M.bech32!==m)throw new Error("Unknown coin bech32 prefix");e.push({name:"coin_network",letters:m,value:M});var O,k=g[2];k?(O=function yc(t,n){var e,r;if(t.slice(-1).match(/^[munp]$/))e=t.slice(-1),r=t.slice(0,-1);else{if(t.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");r=t}if(!r.match(/^\d+$/))throw new Error("Not a valid human readable amount");var i=new Yt.BN(r,10),s=e?i.mul(as).div(lc[e]):i.mul(as);if("p"===e&&!i.mod(new Yt.BN(10,10)).eq(new Yt.BN(0,10))||s.gt(cc))throw new Error("Amount is outside of valid range");return n?s.toString():s}(k+g[3],!0),e.push({name:"amount",letters:g[2]+g[3],value:O})):O=null,e.push({name:"separator",letters:"1"});var I,$,D,H,P=xr(s.slice(0,7));for(s=s.slice(7),e.push({name:"timestamp",letters:u.slice(0,7),value:P}),u=u.slice(7);s.length>0;){var Z=s[0].toString();I=ls[Z]||"unknown_tag",$=hc[Z]||dc(Z),D=xr((s=s.slice(1)).slice(0,2)),H=(s=s.slice(2)).slice(0,D),s=s.slice(D),e.push({name:I,tag:u[0],letters:u.slice(0,3+D),value:$(H)}),u=u.slice(3+D)}e.push({name:"signature",letters:u.slice(0,104),value:on(f,!0)}),u=u.slice(104),e.push({name:"checksum",letters:u});var V={paymentRequest:t,sections:e,get expiry(){var Q=e.find(function(X){return"expiry"===X.name});if(Q)return Y("timestamp")+Q.value},get route_hints(){return e.filter(function(Q){return"route_hint"===Q.name}).map(function(Q){return Q.value})}},J=function(Q){if("route_hint"===Q)return"continue";Object.defineProperty(V,Q,{get:function(){return Y(Q)}})};for(var G in Bi)J(G);return V;function Y(Q){var X=e.find(function(pe){return pe.name===Q});return X?X.value:void 0}}(e).sections.find(s=>"amount"===s.name);i&&(this.invoiceAmount=String(Number(i.value)/1e3))}}showQRCode(){this.displayQRCode=!this.displayQRCode}sendZap(){this.getLightningInvoice(String(1e3*Number(this.sats)))}payInvoice(){var e=this;return(0,y.A)(function*(){if(!e.lightningInvoice)return void console.error("Lightning invoice is not set");const r=new _r.NostrWebLNProvider({nostrWalletConnectUrl:yield e.loadNWCUrl()});r.enable().then(()=>r.sendPayment(e.lightningInvoice)).then(i=>{i&&i.preimage?(console.log(`Payment successful, preimage: ${i.preimage}`),e.openSnackBar("Zapped!","dismiss"),e._dialogRef.close()):e.listenForPaymentStatus(r)}).catch(i=>{console.error("Payment failed:",i),e.openSnackBar("Failed to pay invoice","dismiss"),e.listenForPaymentStatus(r)})})()}loadNWCUrl(){const e=_r.NostrWebLNProvider.withNewSecret();return e.initNWC({name:"Angor Hub"}).then(()=>e.getNostrWalletConnectUrl()).catch(r=>{throw console.error("Error initializing NWC:",r),r})}listenForPaymentStatus(e){const r=()=>{e.sendPayment(this.lightningInvoice).then(i=>{i&&i.preimage?(console.log("Payment confirmed, preimage:",i.preimage),this.openSnackBar("Payment confirmed!","dismiss"),this._dialogRef.close()):setTimeout(r,5e3)}).catch(i=>{console.error("Error checking payment status:",i),setTimeout(r,5e3)})};r()}copyInvoice(){this.lightningInvoice?(this._clipboard.copy(this.lightningInvoice),this.openSnackBar("Invoice copied","dismiss")):this.openSnackBar("No invoice available to copy","dismiss")}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}closeDialog(){this._dialogRef.close()}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(Pe.CP),o.rXU(Pe.Vh),o.rXU(cs),o.rXU(Ii.UG),o.rXU(Ri))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["app-send-dialog"]],standalone:!0,features:[o.aNF],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[4,"ngIf"],[1,"preset-buttons"],["mat-mini-fab","","color","primary",3,"click",4,"ngFor","ngForOf"],["appearance","outline",1,"sats-input"],["matInput","","placeholder","e.g., 100","type","number",3,"ngModelChange","ngModel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],["mat-mini-fab","","color","primary",3,"click"],["class","qrcode",4,"ngIf"],["align","center"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"],["color","#f79318",3,"svgIcon"],[1,"qrcode"],[1,"qrcode-image",3,"qrdata","matTooltip","errorCorrectionLevel"]],template:function(r,i){1&r&&(o.j41(0,"div",0)(1,"button",1),o.nrm(2,"mat-icon",2),o.k0s()(),o.j41(3,"h1"),o.EFF(4,"\u26a1 Send Zap"),o.k0s(),o.DNE(5,_c,11,2,"mat-dialog-content",3)(6,xc,7,5,"mat-dialog-content",3)),2&r&&(o.R7$(),o.Y8G("matDialogClose",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:x-mark"),o.R7$(3),o.Y8G("ngIf",!i.showInvoiceSection||!i.lightningInvoice),o.R7$(),o.Y8G("ngIf",i.showInvoiceSection&&i.lightningInvoice))},dependencies:[Ve.vg,B.Hl,B.$z,B.iY,B.$0,oe.m_,oe.An,T.YN,T.me,T.Q0,T.BC,T.vS,q.nJ,q.rl,T.X1,h.MD,h.Sq,h.bT,kn.Ve,q.RG,le.fS,le.fg,Pe.Yi,Pe.E7,we,de,N.q,F.oV,Pe.tx],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;width:70px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:10px 0}.qrcode[_ngcontent-%COMP%]{text-align:center}.qrcode-image[_ngcontent-%COMP%]{width:100%!important}"]})}}return t})();var Li=S(4930),kc=S(7291),us=S(6231),fs=S(7343);let Sc=(()=>{class t{constructor(e,r,i){this.relayService=e,this.signerService=r,this.queueService=i,this.followersSubject=new Ge.B,this.followingSubject=new Ge.B}getFollowersObservable(){return this.followersSubject.asObservable()}getFollowingObservable(){return this.followingSubject.asObservable()}getFollowers(e){var r=this;return(0,y.A)(function*(){const i=[{kinds:[3],"#p":[e]}],s=[];return new Promise((u,f)=>{r.queueService.addRequestToQueue(i).subscribe({next:m=>{s.push(m),r.followersSubject.next(m)},error:m=>{console.error("Error fetching followers:",m),f(m)},complete:()=>{u(s)}})})})()}getFollowing(e){var r=this;return(0,y.A)(function*(){const i=[{kinds:[3],authors:[e]}],s=[];return new Promise((u,f)=>{r.queueService.addRequestToQueue(i).subscribe({next:m=>{m.tags.filter(k=>"p"===k[0]).forEach(k=>{s.push(k[1]),r.followingSubject.next(m)})},error:m=>{console.error("Error fetching following:",m),f(m)},complete:()=>{u(s)}})})})()}follow(e){var r=this;return(0,y.A)(function*(){const i=r.getFollowingList();if(i.includes(e))return void console.log(`Already following ${e}`);const s=[...i,e];r.setFollowingList(s);const u=r.signerService.getUnsignedEvent(3,s.map(f=>["p",f]),"");yield r.publishSignedEvent(u),console.log(`Now following ${e}`)})()}unfollow(e){var r=this;return(0,y.A)(function*(){const i=r.getFollowingList();if(!i.includes(e))return void console.log(`Not following ${e}`);const s=i.filter(f=>f!==e);r.setFollowingList(s);const u=r.signerService.getUnsignedEvent(3,s.map(f=>["p",f]),"");yield r.publishSignedEvent(u),console.log(`Unfollowed ${e}`)})()}publishSignedEvent(e){var r=this;return(0,y.A)(function*(){let s;if(yield r.signerService.isUsingExtension())s=yield r.signerService.signEventWithExtension(e);else{const u=yield r.signerService.getDecryptedSecretKey();if(!u)throw new Error("Secret key is missing. Unable to sign event.");s=r.signerService.getSignedEvent(e,u)}r.relayService.publishEventToWriteRelays(s)})()}getFollowingListAsTags(){const e=this.getFollowingList(),r=[],i=this.relayService.getConnectedRelays();return e.forEach(s=>{i.forEach(u=>{r.push(["p",s,u,localStorage.getItem(`${s}`)||""])})}),r}setFollowingListFromTags(e){const r=[];e.forEach(i=>{r.push(i[1])}),this.setFollowingList(r)}setFollowingList(e){const i=Array.from(new Set(e)).filter(s=>s).join(",");localStorage.setItem("following",i)}getFollowingList(){const e=localStorage.getItem("following");return null===e||""===e?[]:e.split(",").filter(i=>/[a-f0-9]{64}/.test(i))}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(us.b),o.KVO(Li.A),o.KVO(fs.F))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ac=S(881),Cc=S(9979),Mr=S(5766);class Tc{constructor(n,e,r,i,s,u,f=[]){this.username="",this.picture="/images/avatars/avatar-placeholder.png",this.replyCount=0,this.likeCount=0,this.zapCount=0,this.repostCount=0,this.likedByMe=!1,this.replies=[],this.likers=[],this.reposters=[],this.zappers=[],this.relatedEventIds=[],this.rootEventId="",this.replyToEventId="",this.mentions=[],this.hashtags=[],this.repostedByMe=!1,this.tags=[],this.isAReply=!1,this.kind=e,this.pubkey=r,this.content=i,this.noteId=s,this.createdAt=u,this.date=new Date(1e3*this.createdAt),this.fromNow=this.calculateTimeFromNow(this.date),this.tags=f,this.id=n}calculateTimeFromNow(n){const r=Math.floor(((new Date).getTime()-n.getTime())/1e3);return r<60?`${r} seconds ago`:r<3600?`${Math.floor(r/60)} minutes ago`:r<86400?`${Math.floor(r/3600)} hours ago`:r<2592e3?`${Math.floor(r/86400)} days ago`:r<31536e3?`${Math.floor(r/2592e3)} months ago`:`${Math.floor(r/31536e3)} years ago`}}var kr=S(719),Oi=S(4412),Ic=S(3386),Rc=S(2827);let Bc=(()=>{class t{constructor(e,r,i,s){this.relayService=e,this.signerService=r,this.metadataService=i,this.queueService=s,this.eventsSubject=new Oi.t([]),this.isLoading=new Oi.t(!1),this.lastLoadedEventTime=null,this.pageSize=10,this.noMoreEvents=new Oi.t(!1),this.seenEventIds=new Set,this.likesMap=new Map,this.repliesMap=new Map,this.zapsMap=new Map,this.repostsMap=new Map,this.hasLikedMap=new Map,this.hasRepostedMap=new Map,this.jobQueue=[],this.isProcessingQueue=!1,this.myLikedNoteIds=[]}subscribeToEvents(e){var r=this;return(0,y.A)(function*(){yield r.relayService.ensureConnectedRelays();const i=r.relayService.getConnectedRelays().slice(0,3);if(!i||0===i.length)return void console.error("No connected relays available.");const s=[{kinds:[1],authors:e,limit:r.pageSize},{"#p":e,limit:1}];r.relayService.getPool().subscribeMany(i,s,{onevent:f=>{r.isReply(f)||r.handleNewOrUpdatedEvent(f);const g=r.getParentEventId(f);switch(g&&r.enqueueJob(g),f.kind){case 7:case 9735:case 6:r.enqueueJob(g)}},oneose:()=>{}})})()}getParentEventId(e){const r=e.tags.find(i=>"e"===i[0]);return r?r[1]:null}handleNewOrUpdatedEvent(e){var r=this;return(0,y.A)(function*(){switch(e.kind){case 1:if(!r.seenEventIds.has(e.id)){r.seenEventIds.add(e.id);const i=yield r.createNewEvent(e);r.eventsSubject.next([i]),r.updateEventInSubject(e.id)}break;case 7:r.handleLikeEvent(e);break;case 9735:r.handleZapEvent(e);break;case 6:r.handleRepostEvent(e);break;case 4:r.handleReplyEvent(e)}})()}handleLikeEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.likeCount+=1,s.likers=[...s.likers||[],e.pubkey],this.eventsSubject.next([s]))}}handleZapEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.zapCount+=1,s.zappers=[...s.zappers||[],e.pubkey],this.eventsSubject.next([s]))}}handleRepostEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.repostCount+=1,s.reposters=[...s.reposters||[],e.pubkey],this.eventsSubject.next([s]))}}handleReplyEvent(e){var r=this;return(0,y.A)(function*(){const i=e.tags.find(s=>"e"===s[0])?.[1];if(i){const s=yield r.createNewEvent(e),f=r.eventsSubject.getValue().find(g=>g.id===i);f&&(f.replyCount+=1,f.replies=[...f.replies||[],s],r.eventsSubject.next([f]))}})()}isReply(e){return e.tags.filter(i=>"e"===i[0]||"p"===i[0]).length>0}getMyLikes(){var e=this;return(0,y.A)(function*(){const r={kinds:[7],authors:[e.signerService.getPublicKey()]};try{return(yield e.fetchFilteredEvents(r)).forEach(s=>{const u=s.tags.find(f=>"e"===f[0]);u&&e.myLikedNoteIds.push(u[1])}),e.myLikedNoteIds}catch(i){return console.error("Failed to get user likes:",i),[]}})()}loadMoreEvents(e){var r=this;return(0,y.A)(function*(){if(r.isLoading.value||r.noMoreEvents.value)return;r.isLoading.next(!0);const i={authors:e,kinds:[1],until:r.lastLoadedEventTime||Math.floor(Date.now()/1e3),limit:r.pageSize};try{const s=yield r.fetchFilteredEvents(i);if(s.length0){r.lastLoadedEventTime=s[s.length-1].created_at;const u=s.filter(g=>!r.seenEventIds.has(g.id)&&!r.isReply(g));u.forEach(g=>r.seenEventIds.add(g.id));const f=yield Promise.all(u.map(g=>r.createNewEvent(g)));r.eventsSubject.next([...r.eventsSubject.getValue(),...f].sort((g,m)=>m.createdAt-g.createdAt))}else r.noMoreEvents.next(!0)}catch(s){console.error("Error loading more events:",s)}finally{r.isLoading.next(!1)}})()}fetchFilteredEvents(e){var r=this;return(0,y.A)(function*(){return new Promise((i,s)=>{const u=new Map,f=[];r.queueService.addRequestToQueue([e]).subscribe({next:g=>{u.has(g.id)||(u.set(g.id,g),f.push(g))},error:g=>{console.error("Error fetching events:",g),s(g)},complete:()=>{console.log("All events fetched and completed"),i(f)}})})})()}createNewEvent(e){var r=this;return(0,y.A)(function*(){const i=new Tc(e.id,e.kind,e.pubkey,e.content,e.id,e.created_at,e.tags);r.enqueueJob(e.id),yield r.processJobQueue(),i.likedByMe=r.myLikedNoteIds.includes(e.id);const s=yield r.metadataService.fetchMetadataWithCache(e.pubkey);return s&&(i.username=s.name||i.npub,i.picture=s.picture||"/images/avatars/avatar-placeholder.png"),i})()}enqueueJob(e){this.jobQueue.some(r=>r.eventId===e)||(this.jobQueue.push({eventId:e}),this.isProcessingQueue||this.processJobQueue())}processJobQueue(){var e=this;return(0,y.A)(function*(){if(e.isProcessingQueue)return;e.isProcessingQueue=!0;const r=[];for(;e.jobQueue.length>0||r.length>0;){for(;e.jobQueue.length>0&&r.length<10;){const i=e.jobQueue.shift();if(!i)break;yield e.delay(1e3);const s=e.processJobWithQueueService(i);r.push(s),s.then(()=>{r.splice(r.indexOf(s),1)}).catch(u=>{console.error("Error processing job:",u),r.splice(r.indexOf(s),1)})}yield Promise.race(r)}e.isProcessingQueue=!1})()}processJobWithQueueService(e){var r=this;return(0,y.A)(function*(){try{const i=yield r.fetchMultiFilterEvents(e.eventId);r.repliesMap.set(e.eventId,i.replies),r.likesMap.set(e.eventId,i.likers),r.zapsMap.set(e.eventId,i.zappers),r.repostsMap.set(e.eventId,i.reposters),r.updateEventInSubject(e.eventId)}catch(i){throw console.error("Error processing job with QueueService:",i),i}})()}delay(e){return new Promise(r=>setTimeout(r,e))}updateEventInSubject(e){const i=this.eventsSubject.getValue().map(s=>(s.id===e&&(s.replyCount=this.getRepliesCount(e),s.replies=this.repliesMap.get(e)||[],s.likeCount=this.getLikesCount(e),s.likers=this.likesMap.get(e)||[],s.zapCount=this.getZapsCount(e),s.zappers=this.zapsMap.get(e)||[],s.repostCount=this.getRepostsCount(e),s.reposters=this.repostsMap.get(e)||[]),s));this.eventsSubject.next(i)}fetchMultiFilterEvents(e){var r=this;return(0,y.A)(function*(){const i=[{"#e":[e],kinds:[1]},{"#e":[e],kinds:[7]},{"#e":[e],kinds:[9735]},{"#e":[e],kinds:[6]}],s=new Map,u=[],f=[],g=[],m=[],M=r.queueService.addRequestToQueue(i);return new Promise((k,O)=>{var L;M.subscribe({next:(L=(0,y.A)(function*(P){if(s.has(P.id)||s.set(P.id,P),1===P.kind){const I=yield r.createNewEvent(P);u.push(I)}else 7===P.kind?f.push(P.pubkey):9735===P.kind?g.push(P.pubkey):6===P.kind&&m.push(P.pubkey)}),function(I){return L.apply(this,arguments)}),error:L=>{console.error("Error fetching events:",L),O(L)},complete:()=>{k({replies:u,likers:f,zappers:g,reposters:m})}})})})()}getRepliesCount(e){return(this.repliesMap.get(e)||[]).length}getLikesCount(e){return(this.likesMap.get(e)||[]).length}getZapsCount(e){return(this.zapsMap.get(e)||[]).length}getRepostsCount(e){return(this.repostsMap.get(e)||[]).length}hasUserLiked(e){return this.hasLikedMap.get(e)||!1}hasUserReposted(e){return this.hasRepostedMap.get(e)||!1}getEventStream(){return this.eventsSubject.asObservable().pipe((0,Ic.c)(1e3))}hasMoreEvents(){return this.noMoreEvents.asObservable()}sendTextEvent(e){var r=this;return(0,y.A)(function*(){if(e)try{const s=r.signerService.getUnsignedEvent(1,[],e);let u;if(r.signerService.isUsingSecretKey()){const f=yield r.signerService.getDecryptedSecretKey(),g=(0,Mr.aT)(f);u=(0,kr.pC)(s,g)}else u=yield r.signerService.signEventWithExtension(s);yield r.relayService.publishEventToWriteRelays(u)}catch(i){console.error("Failed to send text event:",i)}})()}sendLikeEvent(e){var r=this;return(0,y.A)(function*(){if(e)try{const u=r.signerService.getUnsignedEvent(7,[["e",e.id],["p",e.pubkey]],"+");let f;if(r.signerService.isUsingSecretKey()){const g=yield r.signerService.getDecryptedSecretKey(),m=(0,Mr.aT)(g);f=(0,kr.pC)(u,m)}else f=yield r.signerService.signEventWithExtension(u);yield r.relayService.publishEventToWriteRelays(f),r.likesMap.set(e.id,[...r.likesMap.get(e.id)||[],r.signerService.getPublicKey()]),r.hasLikedMap.set(e.id,!0)}catch(i){console.error("Failed to send like event:",i)}})()}sendZapEvent(e,r){var i=this;return(0,y.A)(function*(){if(e&&!(r<=0))try{const s=[["e",e.id],["p",e.pubkey],["amount",r.toString()]],f=i.signerService.getUnsignedEvent(9735,s,`Zapped with ${r} sats`);let g;if(i.signerService.isUsingSecretKey()){const m=yield i.signerService.getDecryptedSecretKey(),M=(0,Mr.aT)(m);g=(0,kr.pC)(f,M)}else g=yield i.signerService.signEventWithExtension(f);yield i.relayService.publishEventToWriteRelays(g)}catch(s){console.error("Failed to send zap event:",s)}})()}sendReplyEvent(e,r){var i=this;return(0,y.A)(function*(){if(e)try{const u=i.signerService.getUnsignedEvent(1,[["e",e.id],["p",e.pubkey]],r);let f;if(i.signerService.isUsingSecretKey()){const g=yield i.signerService.getDecryptedSecretKey(),m=(0,Mr.aT)(g);f=(0,kr.pC)(u,m)}else f=yield i.signerService.signEventWithExtension(u);yield i.relayService.publishEventToWriteRelays(f)}catch(s){console.error("Failed to send reply event:",s)}})()}clearEvents(){this.eventsSubject.next([]),this.seenEventIds.clear(),this.lastLoadedEventTime=null,this.noMoreEvents.next(!1)}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(us.b),o.KVO(Li.A),o.KVO(Rc.T),o.KVO(fs.F))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nc=S(5645);const Uc=["eventInput"],Pc=["commentInput"],Lc=()=>["./"],Oc=t=>({"heart-beat":t}),jc=t=>({"rotate-180":t});function $c(t,n){if(1&t&&(o.qex(0),o.nrm(1,"img",36),o.bVm()),2&t){const e=o.XpG();o.R7$(),o.FS9("alt",(null==e.profileUser?null:e.profileUser.display_name)||(null==e.profileUser?null:e.profileUser.name)||""),o.Y8G("src",e.getSafeUrl(null==e.profileUser?null:e.profileUser.picture),o.B4B)}}function Dc(t,n){if(1&t&&o.nrm(0,"img",37),2&t){const e=o.XpG();o.FS9("alt",(null==e.profileUser?null:e.profileUser.display_name)||(null==e.profileUser?null:e.profileUser.name)||"")}}function Fc(t,n){if(1&t&&(o.j41(0,"div",38)(1,"div",39)(2,"span",40),o.EFF(3),o.k0s(),o.j41(4,"span",41),o.EFF(5,"FOLLOWERS"),o.k0s()(),o.j41(6,"div",39)(7,"span",42),o.EFF(8),o.k0s(),o.j41(9,"span",43),o.EFF(10,"FOLLOWING"),o.k0s()()()),2&t){const e=n.ngIf;o.R7$(2),o.Y8G("matTooltip","Total contact: "+e.totalContacts),o.R7$(),o.JRh(e.followersCount),o.R7$(5),o.JRh(e.followingCount),o.R7$(),o.Y8G("matTooltip","Total contact: "+e.totalContacts)}}function qc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div")(1,"button",44),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleFollow())}),o.nrm(2,"mat-icon",45),o.k0s()()}if(2&t){const e=o.XpG();o.R7$(),o.Y8G("matTooltip",e.isFollowing?"Unfollow":"Follow"),o.R7$(),o.Y8G("svgIcon",e.isFollowing?"heroicons_outline:user-minus":"heroicons_outline:user-plus")}}function Gc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",24),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.zap())}),o.j41(1,"span",25),o.nrm(2,"mat-icon",26),o.j41(3,"span"),o.EFF(4,"Send Zap"),o.k0s()()()}2&t&&(o.R7$(2),o.Y8G("svgIcon","feather:zap"))}function zc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",24),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.openReceiveZapDialog())}),o.j41(1,"span",25),o.nrm(2,"mat-icon",26),o.j41(3,"span"),o.EFF(4,"Receive Zap"),o.k0s()()()}2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:qr-code"))}function Wc(t,n){1&t&&(o.j41(0,"button",46)(1,"span",25),o.nrm(2,"mat-icon",26),o.j41(3,"span"),o.EFF(4,"Edit your profile"),o.k0s()()()),2&t&&(o.Y8G("routerLink","/settings/profile"),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:pencil-square"))}function Hc(t,n){1&t&&(o.j41(0,"button",47)(1,"span",25),o.nrm(2,"mat-icon",26),o.j41(3,"span"),o.EFF(4,"Report"),o.k0s()()()),2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_solid:exclamation-triangle"))}function Vc(t,n){1&t&&(o.j41(0,"button",47)(1,"span",25),o.nrm(2,"mat-icon",26),o.j41(3,"span"),o.EFF(4,"Turn on notifications"),o.k0s()()()),2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_solid:bell"))}function Yc(t,n){if(1&t&&(o.j41(0,"angor-card",48)(1,"div",49),o.EFF(2,"About"),o.k0s(),o.j41(3,"div",50),o.EFF(4),o.k0s(),o.j41(5,"a",51),o.EFF(6," See complete about "),o.k0s()()),2&t){const e=o.XpG();o.R7$(4),o.SpI(" ",(null==e.profileUser?null:e.profileUser.about)||""," "),o.R7$(),o.Y8G("color","primary")("routerLink",o.lJ4(3,Lc))}}function Kc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",70)(1,"emoji-mart",71),o.bIt("emojiClick",function(i){o.eBV(e);const s=o.XpG(2);return o.Njj(s.addEmoji(i))}),o.k0s()()}if(2&t){const e=o.XpG(2);o.R7$(),o.Y8G("darkMode",e.darkMode)}}function Zc(t,n){if(1&t){const e=o.RV6();o.j41(0,"angor-card",52)(1,"div",53)(2,"div",54),o.EFF(3,"Create Post"),o.k0s(),o.j41(4,"mat-slide-toggle",55),o.bIt("change",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.togglePreview())}),o.EFF(5," Preview "),o.k0s()(),o.j41(6,"div",56)(7,"div",57),o.nrm(8,"img",58),o.j41(9,"div",59),o.EFF(10),o.k0s()(),o.j41(11,"mat-form-field",60),o.nrm(12,"textarea",61,2),o.k0s()(),o.j41(14,"div",62)(15,"div",25)(16,"button",63),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleEmojiPicker())}),o.nrm(17,"mat-icon",22),o.j41(18,"span",64),o.EFF(19,"Feeling"),o.k0s()(),o.DNE(20,Kc,2,1,"div",65),o.j41(21,"button",66),o.nrm(22,"mat-icon",22),o.j41(23,"span",64),o.EFF(24,"Media"),o.k0s()(),o.j41(25,"button",66),o.nrm(26,"mat-icon",22),o.j41(27,"span",64),o.EFF(28,"Tag"),o.k0s()(),o.j41(29,"button",67),o.nrm(30,"mat-icon",22),o.k0s(),o.j41(31,"mat-menu",null,3)(33,"button",68)(34,"span",25),o.nrm(35,"mat-icon",26),o.j41(36,"span"),o.EFF(37,"Tag"),o.k0s()()(),o.j41(38,"button",68)(39,"span",25),o.nrm(40,"mat-icon",26),o.j41(41,"span"),o.EFF(42,"Feeling"),o.k0s()()(),o.j41(43,"button",47)(44,"span",25),o.nrm(45,"mat-icon",26),o.j41(46,"span"),o.EFF(47,"Live"),o.k0s()()(),o.j41(48,"button",47)(49,"span",25),o.nrm(50,"mat-icon",26),o.j41(51,"span"),o.EFF(52,"Gif"),o.k0s()()(),o.j41(53,"button",47)(54,"span",25),o.nrm(55,"mat-icon",26),o.j41(56,"span"),o.EFF(57,"Check in"),o.k0s()()()()(),o.j41(58,"button",69),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.sendEvent())}),o.nrm(59,"mat-icon",22),o.j41(60,"span",64),o.EFF(61,"Send"),o.k0s()()()()}if(2&t){const e=o.sdS(32),r=o.XpG();o.R7$(4),o.Y8G("color","primary"),o.R7$(4),o.FS9("alt",(null==r.currentUser?null:r.currentUser.display_name)||(null==r.currentUser?null:r.currentUser.name)||"Avatar"),o.Y8G("src",(null==r.currentUser?null:r.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(2),o.SpI(" ",(null==r.currentUser?null:r.currentUser.name)||"Unknown User"," "),o.R7$(),o.Y8G("subscriptSizing","dynamic"),o.R7$(),o.Y8G("placeholder","What's on your mind?")("rows",3),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(3),o.Y8G("ngIf",r.showEmojiPicker),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:photo"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",e),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-horizontal"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:user-circle"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:play"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:sparkles"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:map-pin"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:paper-airplane")}}function Xc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",70)(1,"emoji-mart",71),o.bIt("emojiClick",function(i){o.eBV(e);const s=o.XpG(2);return o.Njj(s.addEmojiTocomment(i))}),o.k0s()()}if(2&t){const e=o.XpG(2);o.R7$(),o.Y8G("darkMode",e.darkMode)}}function Qc(t,n){if(1&t){const e=o.RV6();o.j41(0,"angor-card",72,4)(2,"div",73),o.nrm(3,"img",74),o.j41(4,"div",75)(5,"span",76),o.EFF(6),o.k0s(),o.j41(7,"span",77),o.EFF(8,"1 minutes ago"),o.k0s()(),o.j41(9,"button",78),o.nrm(10,"mat-icon",22),o.k0s(),o.j41(11,"mat-menu",null,5)(13,"button",47)(14,"span",25),o.nrm(15,"mat-icon",26),o.j41(16,"span"),o.EFF(17,"Save post"),o.k0s()()(),o.j41(18,"button",47)(19,"span",25),o.nrm(20,"mat-icon",26),o.j41(21,"span"),o.EFF(22,"Hide post"),o.k0s()()(),o.j41(23,"button",47)(24,"span",25),o.nrm(25,"mat-icon",26),o.j41(26,"span"),o.EFF(27,"Snooze for 30 days"),o.k0s()()(),o.j41(28,"button",47)(29,"span",25),o.nrm(30,"mat-icon",26),o.j41(31,"span"),o.EFF(32,"Hide all"),o.k0s()()(),o.nrm(33,"mat-divider",27),o.j41(34,"button",47)(35,"span",25),o.nrm(36,"mat-icon",26),o.j41(37,"span"),o.EFF(38,"Report post"),o.k0s()()(),o.j41(39,"button",47)(40,"span",25),o.nrm(41,"mat-icon",26),o.j41(42,"span"),o.EFF(43,"Turn on notifications for this post"),o.k0s()()()()(),o.j41(44,"div",79),o.EFF(45),o.k0s(),o.nrm(46,"div",80),o.j41(47,"div",81)(48,"button",63),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleLike())}),o.nrm(49,"mat-icon",82),o.j41(50,"span",64),o.EFF(51),o.k0s()(),o.j41(52,"button",63),o.bIt("click",function(){o.eBV(e);const i=o.sdS(1);return o.Njj(i.expanded=!i.expanded)}),o.nrm(53,"mat-icon",22),o.j41(54,"span",64),o.EFF(55,"Comment"),o.k0s()(),o.j41(56,"button",83),o.nrm(57,"mat-icon",22),o.j41(58,"span",64),o.EFF(59,"Share"),o.k0s()()(),o.nrm(60,"hr",84),o.j41(61,"div",85)(62,"div",25),o.nrm(63,"img",86)(64,"img",87)(65,"img",87)(66,"img",87),o.j41(67,"div",88),o.EFF(68," You and 4 more liked this "),o.k0s()(),o.nrm(69,"div",89),o.j41(70,"div",90)(71,"button",91),o.EFF(72," 0 shares "),o.k0s(),o.j41(73,"button",92),o.bIt("click",function(){o.eBV(e);const i=o.sdS(1);return o.Njj(i.expanded=!i.expanded)}),o.j41(74,"span",93),o.EFF(75,"0 Comments"),o.k0s(),o.nrm(76,"mat-icon",94),o.k0s()()(),o.qex(77,95),o.nrm(78,"hr",96),o.j41(79,"div",97)(80,"div",98),o.nrm(81,"img",99),o.j41(82,"mat-form-field",60),o.nrm(83,"textarea",61,6),o.k0s()(),o.j41(85,"div",100)(86,"div",25)(87,"button",101),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleCommentEmojiPicker())}),o.nrm(88,"mat-icon",22),o.k0s(),o.DNE(89,Xc,2,1,"div",65),o.j41(90,"button",102),o.nrm(91,"mat-icon",22),o.k0s(),o.j41(92,"button",102),o.nrm(93,"mat-icon",22),o.k0s()(),o.j41(94,"button",103),o.nrm(95,"mat-icon",22),o.j41(96,"span",64),o.EFF(97,"Send"),o.k0s()()()(),o.bVm(),o.k0s()}if(2&t){const e=o.sdS(1),r=o.sdS(12),i=o.XpG();o.R7$(3),o.FS9("alt",(null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)||"Avatar"),o.Y8G("src",(null==i.currentUser?null:i.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(3),o.JRh((null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)),o.R7$(3),o.Y8G("matMenuTriggerFor",r),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:arrow-up-tray"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:eye-slash"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:clock"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:minus-circle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:bell"),o.R7$(4),o.SpI(" ",i.eventInput.nativeElement.value," "),o.R7$(4),o.Y8G("ngClass",o.eq3(29,Oc,i.isLiked))("svgIcon",i.isLiked?"heroicons_solid:heart":"heroicons_outline:heart"),o.R7$(2),o.JRh(i.isLiked?"Unlike":"Like"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:share"),o.R7$(19),o.Y8G("ngClass",o.eq3(31,jc,e.expanded))("svgIcon","heroicons_mini:chevron-down"),o.R7$(5),o.FS9("alt",(null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)||"Avatar"),o.Y8G("src",(null==i.currentUser?null:i.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(),o.Y8G("subscriptSizing","dynamic"),o.R7$(),o.Y8G("placeholder","Write a comment...")("rows",3),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(),o.Y8G("ngIf",i.showCommentEmojiPicker),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:photo"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:sparkles"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:paper-airplane")}}const Jc=[{path:"",component:(()=>{class t{constructor(e,r,i,s,u,f,g,m,M,k,O,L,P,I){this._changeDetectorRef=e,this._signerService=r,this._storageService=i,this._sanitizer=s,this._route=u,this._socialService=f,this._snackBar=g,this._lightning=m,this._dialog=M,this._angorConfigService=k,this._angorConfirmationService=O,this._eventService=L,this._subscriptionService=P,this._clipboard=I,this.darkMode=!1,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new Ge.B,this.allPublicKeys=[],this.isCurrentUserProfile=!1,this.isFollowing=!1,this.showEmojiPicker=!1,this.showCommentEmojiPicker=!1,this.lightningResponse=null,this.lightningInvoice=null,this.paymentInvoice="",this.invoiceAmount="?",this.isLiked=!1,this.isPreview=!1,this.posts=[],this.likes=[],this.myLikes=[],this.myLikedNoteIds=[],this.isLoadingPosts=!0,this.noEventsMessage="",this.totalContacts=0,this.followersCount=0,this.followingCount=0}ngOnInit(){var e=this;return(0,y.A)(function*(){e._angorConfigService.config$.subscribe(r=>{"auto"===r.scheme?e.detectSystemTheme():e.darkMode="dark"===r.scheme}),e._route.paramMap.subscribe(r=>{const i=r.get("pubkey");if(i)e.routePubKey=i;else{e.isCurrentUserProfile=!0;const s=e._signerService.getPublicKey();e.routePubKey=s}e.loadProfileUser(e.routePubKey),e.stats$=e._storageService.getContactStats$(e.routePubKey)})})()}ngOnDestroy(){this.subscriptionId&&this._subscriptionService.removeSubscriptionById(this.subscriptionId),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadCurrentUser(){var e=this;return(0,y.A)(function*(){e.currentUser=null,e._storageService.profile$.subscribe(r=>{r&&r.pubKey&&r.metadata&&r.pubKey===e.routePubKey&&(e.currentUser=r.metadata,e._changeDetectorRef.detectChanges())}),e._storageService.getProfile(e.routePubKey).then(r=>{e._changeDetectorRef.detectChanges(),e.currentUser=r})})()}loadProfileUser(e){var r=this;return(0,y.A)(function*(){if(r.isLoading=!0,r.errorMessage=null,r.profileUser=null,r._changeDetectorRef.detectChanges(),!e)return r.errorMessage="No public key found. Please log in again.",r.isLoading=!1,void r._changeDetectorRef.detectChanges();try{const i=yield r._storageService.getProfile(e);i&&(r.profileUser=i,r._changeDetectorRef.detectChanges()),r.subscribeToUserProfile(e)}catch(i){console.error("Error loading user profile:",i)}})()}subscribeToUserProfile(e){var r=this;this.subscriptionId=this._subscriptionService.addSubscriptions([{authors:[e],kinds:[0],limit:1}],function(){var s=(0,y.A)(function*(u){try{const f=JSON.parse(u.content);r.profileUser=f,yield r._storageService.saveProfile(e,f),r._changeDetectorRef.detectChanges()}catch(f){console.error("Error processing metadata event:",f)}});return function(u){return s.apply(this,arguments)}}())}getSafeUrl(e){return this._sanitizer.bypassSecurityTrustUrl(e)}toggleFollow(){var e=this;return(0,y.A)(function*(){try{const r=e._signerService.getPublicKey(),i=e.routePubKey||e.currentUserPubKey;if(!i||!r)return void console.error("Public key missing. Unable to toggle follow.");e.isFollowing?(yield e._socialService.unfollow(i),console.log(`Unfollowed ${i}`)):(yield e._socialService.follow(i),console.log(`Followed ${i}`)),e.isFollowing=!e.isFollowing,e._changeDetectorRef.detectChanges()}catch(r){console.error("Failed to toggle follow:",r)}})()}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}getLightningInfo(){let e="";if(this.profileUser?.lud06){const{words:r}=ne.I.decode(this.profileUser.lud06,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else if(this.profileUser?.lud16?.toLowerCase().startsWith("lnurl")){const{words:r}=ne.I.decode(this.profileUser.lud16,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else this.profileUser?.lud16&&(e=this._lightning.getLightningAddress(this.profileUser.lud16));""!==e?this._lightning.getLightning(e).subscribe(r=>{this.lightningResponse=r,"Failed"===this.lightningResponse.status?this.openSnackBar("Failed to lookup lightning address","dismiss"):this.lightningResponse.callback?this.openZapDialog():this.openSnackBar("couldn't find user's lightning address","dismiss")}):this.openSnackBar("No lightning address found","dismiss")}zap(){var e=this;return(0,y.A)(function*(){e.profileUser&&(e.profileUser.lud06||e.profileUser.lud16)?e.getLightningInfo():e.openSnackBar("user can't receive zaps","dismiss")})()}openZapDialog(){this._dialog.open(Mc,{width:"405px",maxHeight:"90vh",data:this.profileUser})}openReceiveZapDialog(){this._dialog.open(sc,{width:"405px",maxHeight:"90vh",data:this.profileUser})}toggleLike(){this.isLiked=!this.isLiked,this.isLiked&&setTimeout(()=>{this.isLiked=!1,this.isLiked=!0},300)}addEmoji(e){this.eventInput.nativeElement.value+=e.emoji.native,this.showEmojiPicker=!1}toggleEmojiPicker(){this.showCommentEmojiPicker=!1,this.showEmojiPicker=!this.showEmojiPicker}addEmojiTocomment(e){this.commentInput.nativeElement.value+=e.emoji.native,this.showCommentEmojiPicker=!1}detectSystemTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)");this.darkMode=e.matches,e.addEventListener("change",r=>{this.darkMode=r.matches})}togglePreview(){this.isPreview=!this.isPreview}sendEvent(){""!=this.eventInput.nativeElement.value&&this._eventService.sendTextEvent(this.eventInput.nativeElement.value).then(()=>{this._changeDetectorRef.markForCheck()}).catch(e=>{console.error("Failed to send Event:",e)})}copyHex(){this._clipboard.copy(this.routePubKey),this.openSnackBar("hex public key copied","dismiss")}copyNpub(){var e=this._signerService.getNpubFromPubkey(this.routePubKey);this._clipboard.copy(e),this.openSnackBar("npub public key copied","dismiss")}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(o.gRc),o.rXU(Li.A),o.rXU(kc.n),o.rXU(ke.up),o.rXU(he.nX),o.rXU(Sc),o.rXU(Ii.UG),o.rXU(cs),o.rXU(Pe.bZ),o.rXU(Ac.P),o.rXU(Cc.m),o.rXU(Bc),o.rXU(Nc.n),o.rXU(Ri))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["profile"]],viewQuery:function(r,i){if(1&r&&(o.GBs(Uc,5),o.GBs(Pc,5)),2&r){let s;o.mGM(s=o.lsd())&&(i.eventInput=s.first),o.mGM(s=o.lsd())&&(i.commentInput=s.first)}},standalone:!0,features:[o.aNF],decls:48,vars:22,consts:[["defaultAvatar",""],["profileMenu","matMenu"],["eventInput",""],["postCardMenu01","matMenu"],["expandableComments","angorCard"],["postCardMenu02","matMenu"],["commentInput",""],[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","flex-shrink-0","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-grow","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"max-w-full","truncate","text-lg","font-bold","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"text-secondary","max-w-full","truncate","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"mx-8","hidden","h-8","flex-shrink-0","border-l-2","lg:flex"],[1,"flex","flex-shrink-0","items-center","space-x-6","lg:mt-0"],["class","mt-6 flex flex-shrink-0 items-center space-x-6 lg:mt-0",4,"ngIf"],[1,"mb-4","mt-8","flex","flex-shrink-0","items-center","space-x-6","lg:m-0","lg:ml-auto"],[4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],[1,"my-2"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["mat-menu-item","",4,"ngIf"],[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"],["class","flex w-full max-w-80 flex-col p-8",4,"ngIf"],[1,"flex","w-full","flex-col","items-start"],["class","mb-8 flex w-full flex-col p-6 pb-6 sm:p-8",4,"ngIf"],["class","mb-8 flex w-full flex-col bg-primary-50 dark:bg-primary-800",4,"ngIf"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","max-w-fit","rounded-full","object-cover","ring-4",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","min-h-32","w-32","min-w-32","rounded-full","object-cover","ring-4",3,"alt"],[1,"mt-6","flex","flex-shrink-0","items-center","space-x-6","lg:mt-0"],[1,"flex","flex-col","items-center"],[1,"font-bold",3,"matTooltip"],[1,"text-secondary","text-sm","font-medium"],[1,"font-bold"],[1,"text-secondary","text-sm","font-medium",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"],["mat-menu-item","",3,"routerLink"],["mat-menu-item",""],[1,"flex","w-full","max-w-80","flex-col","p-8"],[1,"text-2xl","font-semibold","leading-tight"],[1,"mt-4"],["mat-flat-button","",1,"mt-8","px-6",3,"color","routerLink"],[1,"mb-8","flex","w-full","flex-col","p-6","pb-6","sm:p-8"],[1,"flex","justify-between"],[1,"text-xl","font-semibold"],[1,"-mr-4","ml-auto",3,"change","color"],[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","object-cover",3,"src","alt"],[1,"sm:hidden"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","justify-between","sm:mt-8"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"ml-2"],["class","emoji-picker-container-global",4,"ngIf"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],["mat-button","",1,"mr-1","flex","px-3",3,"click"],[1,"emoji-picker-container-global"],[3,"emojiClick","darkMode"],[1,"mb-8","flex","w-full","flex-col","bg-primary-50","dark:bg-primary-800"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full",3,"src","alt"],[1,"flex","flex-col"],[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,"mx-6","mb-6","mt-2","sm:mx-8"],[1,"relative","mb-4"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"text-red-500","icon-size-5",3,"ngClass","svgIcon"],["mat-button","",1,"mr-1","px-3"],[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"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-5","h-12","w-12","rounded-full","object-cover",3,"src","alt"],[1,"mt-3","flex","items-center","justify-between"],["mat-icon-button","",3,"click"],["mat-icon-button",""],["mat-button","",1,"mr-1","flex","px-3"]],template:function(r,i){if(1&r){const s=o.RV6();o.j41(0,"div",7)(1,"div",8)(2,"div"),o.nrm(3,"img",9),o.k0s(),o.j41(4,"div",10)(5,"div",11),o.DNE(6,$c,2,2,"ng-container",12)(7,Dc,1,1,"ng-template",null,0,o.C5r),o.k0s(),o.j41(9,"div",13)(10,"div",14),o.EFF(11),o.k0s(),o.j41(12,"div",15),o.EFF(13),o.k0s()(),o.nrm(14,"div",16),o.j41(15,"div",17),o.DNE(16,Fc,11,4,"div",18),o.nI1(17,"async"),o.nrm(18,"div",16),o.j41(19,"div",19),o.DNE(20,qc,3,2,"div",20),o.j41(21,"div")(22,"button",21),o.nrm(23,"mat-icon",22),o.k0s(),o.j41(24,"mat-menu",null,1),o.DNE(26,Gc,5,1,"button",23),o.j41(27,"button",24),o.bIt("click",function(){return o.eBV(s),o.Njj(i.copyHex())}),o.j41(28,"span",25),o.nrm(29,"mat-icon",26),o.j41(30,"span"),o.EFF(31,"Copy Public key (hex)"),o.k0s()()(),o.j41(32,"button",24),o.bIt("click",function(){return o.eBV(s),o.Njj(i.copyNpub())}),o.j41(33,"span",25),o.nrm(34,"mat-icon",26),o.j41(35,"span"),o.EFF(36,"Copy Public key (npub)"),o.k0s()()(),o.DNE(37,zc,5,1,"button",23),o.nrm(38,"mat-divider",27),o.DNE(39,Wc,5,2,"button",28)(40,Hc,5,1,"button",29)(41,Vc,5,1,"button",29),o.k0s()()()()()(),o.j41(42,"div",30)(43,"div",31),o.DNE(44,Yc,7,4,"angor-card",32),o.k0s(),o.j41(45,"div",33),o.DNE(46,Zc,62,19,"angor-card",34)(47,Qc,98,33,"angor-card",35),o.k0s()()()}if(2&r){const s=o.sdS(8),u=o.sdS(25);o.R7$(3),o.FS9("alt",(null==i.profileUser?null:i.profileUser.display_name)||(null==i.profileUser?null:i.profileUser.name)||"Banner"),o.Y8G("src",(null==i.profileUser?null:i.profileUser.banner)||"/images/pages/profile/cover.jpg",o.B4B),o.R7$(3),o.Y8G("ngIf",null==i.profileUser?null:i.profileUser.picture)("ngIfElse",s),o.R7$(5),o.SpI(" ",(null==i.profileUser?null:i.profileUser.display_name)||(null==i.profileUser?null:i.profileUser.name)||"Unknown User"," "),o.R7$(2),o.SpI(" ",(null==i.profileUser?null:i.profileUser.username)||(null==i.profileUser?null:i.profileUser.name)," "),o.R7$(3),o.Y8G("ngIf",o.bMT(17,20,i.stats$)),o.R7$(4),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(2),o.Y8G("matMenuTriggerFor",u),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),o.R7$(3),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(3),o.Y8G("svgIcon","heroicons_outline:clipboard-document"),o.R7$(5),o.Y8G("svgIcon","heroicons_outline:clipboard-document"),o.R7$(3),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(2),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(3),o.Y8G("ngIf",(null==i.profileUser?null:i.profileUser.about)&&""!==i.profileUser.about.trim()),o.R7$(2),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",i.isPreview)}},dependencies:[he.Wk,v.n,oe.m_,oe.An,B.Hl,B.It,B.$z,B.iY,ee.Cn,ee.kk,ee.fb,ee.Cp,q.RG,q.rl,le.fS,le.fg,A.xb,A.EE,N.w,N.q,F.uc,F.oV,h.YU,h.MD,h.bT,h.Jj,T.YN,we,W.Ic,j.sG,te.D6,Yn],styles:[".emoji-picker-container-global{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;width:350px;max-width:100%}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.loading-spinner{display:flex;justify-content:center;align-items:center;margin:20px 0}.loading-spinner .spinner{border:4px solid rgba(0,0,0,.1);border-left-color:#009fb5;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"],encapsulation:2,changeDetection:0})}}return t})()}]},2577:(Ee,U,S)=>{const y=S(531),v=S(8715),A=S(465),h=S(5510);function T(B,N,q,oe,le){const ee=[].slice.call(arguments,1),te=ee.length,j="function"==typeof ee[te-1];if(!j&&!y())throw new Error("Callback required as last argument");if(!j){if(te<1)throw new Error("Too few arguments provided");return 1===te?(q=N,N=oe=void 0):2===te&&!N.getContext&&(oe=q,q=N,N=void 0),new Promise(function(F,he){try{const W=v.create(q,oe);F(B(W,N,oe))}catch(W){he(W)}})}if(te<2)throw new Error("Too few arguments provided");2===te?(le=q,q=N,N=oe=void 0):3===te&&(N.getContext&&typeof le>"u"?(le=oe,oe=void 0):(le=oe,oe=q,q=N,N=void 0));try{const F=v.create(q,oe);le(null,B(F,N,oe))}catch(F){le(F)}}U.mo=T.bind(null,A.render),U.dY=T.bind(null,A.renderToDataURL),U.toString=T.bind(null,function(B,N,q){return h.render(B,q)})},531:Ee=>{Ee.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},919:(Ee,U,S)=>{const x=S(2656).getSymbolSize;U.getRowColCoords=function(v){if(1===v)return[];const A=Math.floor(v/7)+2,h=x(v),T=145===h?26:2*Math.ceil((h-13)/(2*A-2)),B=[h-7];for(let N=1;N{const x=S(838),y=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function v(A){this.mode=x.ALPHANUMERIC,this.data=A}v.getBitsLength=function(h){return 11*Math.floor(h/2)+h%2*6},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(h){let T;for(T=0;T+2<=this.data.length;T+=2){let B=45*y.indexOf(this.data[T]);B+=y.indexOf(this.data[T+1]),h.put(B,11)}this.data.length%2&&h.put(y.indexOf(this.data[T]),6)},Ee.exports=v},4481:Ee=>{function U(){this.buffer=[],this.length=0}U.prototype={get:function(S){const x=Math.floor(S/8);return 1==(this.buffer[x]>>>7-S%8&1)},put:function(S,x){for(let y=0;y>>x-y-1&1))},getLengthInBits:function(){return this.length},putBit:function(S){const x=Math.floor(this.length/8);this.buffer.length<=x&&this.buffer.push(0),S&&(this.buffer[x]|=128>>>this.length%8),this.length++}},Ee.exports=U},8038:Ee=>{function U(S){if(!S||S<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=S,this.data=new Uint8Array(S*S),this.reservedBit=new Uint8Array(S*S)}U.prototype.set=function(S,x,y,v){const A=S*this.size+x;this.data[A]=y,v&&(this.reservedBit[A]=!0)},U.prototype.get=function(S,x){return this.data[S*this.size+x]},U.prototype.xor=function(S,x,y){this.data[S*this.size+x]^=y},U.prototype.isReserved=function(S,x){return this.reservedBit[S*this.size+x]},Ee.exports=U},1736:(Ee,U,S)=>{const x=S(3174),y=S(838);function v(A){this.mode=y.BYTE,"string"==typeof A&&(A=x(A)),this.data=new Uint8Array(A)}v.getBitsLength=function(h){return 8*h},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(A){for(let h=0,T=this.data.length;h{const x=S(139),y=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],v=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];U.getBlocksCount=function(h,T){switch(T){case x.L:return y[4*(h-1)+0];case x.M:return y[4*(h-1)+1];case x.Q:return y[4*(h-1)+2];case x.H:return y[4*(h-1)+3];default:return}},U.getTotalCodewordsCount=function(h,T){switch(T){case x.L:return v[4*(h-1)+0];case x.M:return v[4*(h-1)+1];case x.Q:return v[4*(h-1)+2];case x.H:return v[4*(h-1)+3];default:return}}},139:(Ee,U)=>{U.L={bit:1},U.M={bit:0},U.Q={bit:3},U.H={bit:2},U.isValid=function(y){return y&&typeof y.bit<"u"&&y.bit>=0&&y.bit<4},U.from=function(y,v){if(U.isValid(y))return y;try{return function S(x){if("string"!=typeof x)throw new Error("Param is not a string");switch(x.toLowerCase()){case"l":case"low":return U.L;case"m":case"medium":return U.M;case"q":case"quartile":return U.Q;case"h":case"high":return U.H;default:throw new Error("Unknown EC Level: "+x)}}(y)}catch{return v}}},9202:(Ee,U,S)=>{const x=S(2656).getSymbolSize;U.getPositions=function(A){const h=x(A);return[[0,0],[h-7,0],[0,h-7]]}},9211:(Ee,U,S)=>{const x=S(2656),A=x.getBCHDigit(1335);U.getEncodedBits=function(T,B){const N=T.bit<<3|B;let q=N<<10;for(;x.getBCHDigit(q)-A>=0;)q^=1335<{const S=new Uint8Array(512),x=new Uint8Array(256);(function(){let v=1;for(let A=0;A<255;A++)S[A]=v,x[v]=A,v<<=1,256&v&&(v^=285);for(let A=255;A<512;A++)S[A]=S[A-255]})(),U.log=function(v){if(v<1)throw new Error("log("+v+")");return x[v]},U.exp=function(v){return S[v]},U.mul=function(v,A){return 0===v||0===A?0:S[x[v]+x[A]]}},1971:(Ee,U,S)=>{const x=S(838),y=S(2656);function v(A){this.mode=x.KANJI,this.data=A}v.getBitsLength=function(h){return 13*h},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(A){let h;for(h=0;h=33088&&T<=40956)T-=33088;else{if(!(T>=57408&&T<=60351))throw new Error("Invalid SJIS character: "+this.data[h]+"\nMake sure your charset is UTF-8");T-=49472}T=192*(T>>>8&255)+(255&T),A.put(T,13)}},Ee.exports=v},9366:(Ee,U)=>{U.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function x(y,v,A){switch(y){case U.Patterns.PATTERN000:return(v+A)%2==0;case U.Patterns.PATTERN001:return v%2==0;case U.Patterns.PATTERN010:return A%3==0;case U.Patterns.PATTERN011:return(v+A)%3==0;case U.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(A/3))%2==0;case U.Patterns.PATTERN101:return v*A%2+v*A%3==0;case U.Patterns.PATTERN110:return(v*A%2+v*A%3)%2==0;case U.Patterns.PATTERN111:return(v*A%3+(v+A)%2)%2==0;default:throw new Error("bad maskPattern:"+y)}}U.isValid=function(v){return null!=v&&""!==v&&!isNaN(v)&&v>=0&&v<=7},U.from=function(v){return U.isValid(v)?parseInt(v,10):void 0},U.getPenaltyN1=function(v){const A=v.size;let h=0,T=0,B=0,N=null,q=null;for(let oe=0;oe=5&&(h+=T-5+3),N=ee,T=1),ee=v.get(le,oe),ee===q?B++:(B>=5&&(h+=B-5+3),q=ee,B=1)}T>=5&&(h+=T-5+3),B>=5&&(h+=B-5+3)}return h},U.getPenaltyN2=function(v){const A=v.size;let h=0;for(let T=0;T=10&&(1488===T||93===T)&&h++,B=B<<1&2047|v.get(q,N),q>=10&&(1488===B||93===B)&&h++}return 40*h},U.getPenaltyN4=function(v){let A=0;const h=v.data.length;for(let B=0;B{const x=S(1604),y=S(6082);U.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},U.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},U.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},U.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},U.MIXED={bit:-1},U.getCharCountIndicator=function(h,T){if(!h.ccBits)throw new Error("Invalid mode: "+h);if(!x.isValid(T))throw new Error("Invalid version: "+T);return T>=1&&T<10?h.ccBits[0]:T<27?h.ccBits[1]:h.ccBits[2]},U.getBestModeForData=function(h){return y.testNumeric(h)?U.NUMERIC:y.testAlphanumeric(h)?U.ALPHANUMERIC:y.testKanji(h)?U.KANJI:U.BYTE},U.toString=function(h){if(h&&h.id)return h.id;throw new Error("Invalid mode")},U.isValid=function(h){return h&&h.bit&&h.ccBits},U.from=function(h,T){if(U.isValid(h))return h;try{return function v(A){if("string"!=typeof A)throw new Error("Param is not a string");switch(A.toLowerCase()){case"numeric":return U.NUMERIC;case"alphanumeric":return U.ALPHANUMERIC;case"kanji":return U.KANJI;case"byte":return U.BYTE;default:throw new Error("Unknown mode: "+A)}}(h)}catch{return T}}},7035:(Ee,U,S)=>{const x=S(838);function y(v){this.mode=x.NUMERIC,this.data=v.toString()}y.getBitsLength=function(A){return 10*Math.floor(A/3)+(A%3?A%3*3+1:0)},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(A){let h,T,B;for(h=0;h+3<=this.data.length;h+=3)T=this.data.substr(h,3),B=parseInt(T,10),A.put(B,10);const N=this.data.length-h;N>0&&(T=this.data.substr(h),B=parseInt(T,10),A.put(B,3*N+1))},Ee.exports=y},7767:(Ee,U,S)=>{const x=S(6965);U.mul=function(v,A){const h=new Uint8Array(v.length+A.length-1);for(let T=0;T=0;){const T=h[0];for(let N=0;N{const x=S(2656),y=S(139),v=S(4481),A=S(8038),h=S(919),T=S(9202),B=S(9366),N=S(2296),q=S(6758),oe=S(8925),le=S(9211),ee=S(838),te=S(7939);function ne(de,we,se){const ce=de.size,_=le.getEncodedBits(we,se);let a,c;for(a=0;a<15;a++)c=1==(_>>a&1),de.set(a<6?a:a<8?a+1:ce-15+a,8,c,!0),de.set(8,a<8?ce-a-1:a<9?15-a-1+1:15-a-1,c,!0);de.set(ce-8,8,1,!0)}function $e(de,we,se,ce){let _;if(Array.isArray(de))_=te.fromArray(de);else{if("string"!=typeof de)throw new Error("Invalid data");{let E=we;if(!E){const C=te.rawSplit(de);E=oe.getBestVersionForData(C,se)}_=te.fromString(de,E||40)}}const a=oe.getBestVersionForData(_,se);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(we){if(we=0&&d<=6&&(0===p||6===p)||p>=0&&p<=6&&(0===d||6===d)||d>=2&&d<=4&&p>=2&&p<=4,!0)}}(p,we),function F(de){const we=de.size;for(let se=8;se=7&&function W(de,we){const se=de.size,ce=oe.getEncodedBits(we);let _,a,c;for(let d=0;d<18;d++)_=Math.floor(d/3),a=d%3+se-8-3,c=1==(ce>>d&1),de.set(_,a,c,!0),de.set(a,_,c,!0)}(p,we),function o(de,we){const se=de.size;let ce=-1,_=se-1,a=7,c=0;for(let d=se-1;d>0;d-=2)for(6===d&&d--;;){for(let p=0;p<2;p++)if(!de.isReserved(_,d-p)){let E=!1;c>>a&1)),de.set(_,d-p,E),a--,-1===a&&(c++,a=7)}if(_+=ce,_<0||se<=_){_-=ce,ce=-ce;break}}}(p,c),isNaN(ce)&&(ce=B.getBestMask(p,ne.bind(null,p,se))),B.applyMask(ce,p),ne(p,se,ce),{modules:p,version:we,errorCorrectionLevel:se,maskPattern:ce,segments:_}}U.create=function(we,se){if(typeof we>"u"||""===we)throw new Error("No input text");let _,a,ce=y.M;return typeof se<"u"&&(ce=y.from(se.errorCorrectionLevel,y.M),_=oe.from(se.version),a=B.from(se.maskPattern),se.toSJISFunc&&x.setToSJISFunction(se.toSJISFunc)),$e(we,_,ce,a)}},6758:(Ee,U,S)=>{const x=S(7767);function y(v){this.genPoly=void 0,this.degree=v,this.degree&&this.initialize(this.degree)}y.prototype.initialize=function(A){this.degree=A,this.genPoly=x.generateECPolynomial(this.degree)},y.prototype.encode=function(A){if(!this.genPoly)throw new Error("Encoder not initialized");const h=new Uint8Array(A.length+this.degree);h.set(A);const T=x.mod(h,this.genPoly),B=this.degree-T.length;if(B>0){const N=new Uint8Array(this.degree);return N.set(T,B),N}return T},Ee.exports=y},6082:(Ee,U)=>{const S="[0-9]+";let y="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";y=y.replace(/u/g,"\\u");const v="(?:(?![A-Z0-9 $%*+\\-./:]|"+y+")(?:.|[\r\n]))+";U.KANJI=new RegExp(y,"g"),U.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),U.BYTE=new RegExp(v,"g"),U.NUMERIC=new RegExp(S,"g"),U.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const A=new RegExp("^"+y+"$"),h=new RegExp("^"+S+"$"),T=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");U.testKanji=function(N){return A.test(N)},U.testNumeric=function(N){return h.test(N)},U.testAlphanumeric=function(N){return T.test(N)}},7939:(Ee,U,S)=>{const x=S(838),y=S(7035),v=S(387),A=S(1736),h=S(1971),T=S(6082),B=S(2656),N=S(243);function q(W){return unescape(encodeURIComponent(W)).length}function oe(W,ne,o){const ae=[];let ke;for(;null!==(ke=W.exec(o));)ae.push({data:ke[0],index:ke.index,mode:ne,length:ke[0].length});return ae}function le(W){const ne=oe(T.NUMERIC,x.NUMERIC,W),o=oe(T.ALPHANUMERIC,x.ALPHANUMERIC,W);let ae,ke;return B.isKanjiModeEnabled()?(ae=oe(T.BYTE,x.BYTE,W),ke=oe(T.KANJI,x.KANJI,W)):(ae=oe(T.BYTE_KANJI,x.BYTE,W),ke=[]),ne.concat(o,ae,ke).sort(function(de,we){return de.index-we.index}).map(function(de){return{data:de.data,mode:de.mode,length:de.length}})}function ee(W,ne){switch(ne){case x.NUMERIC:return y.getBitsLength(W);case x.ALPHANUMERIC:return v.getBitsLength(W);case x.KANJI:return h.getBitsLength(W);case x.BYTE:return A.getBitsLength(W)}}function he(W,ne){let o;const ae=x.getBestModeForData(W);if(o=x.from(ne,ae),o!==x.BYTE&&o.bit=0?ne[ne.length-1]:null;return ae&&ae.mode===o.mode?(ne[ne.length-1].data+=o.data,ne):(ne.push(o),ne)},[])}(we))},U.rawSplit=function(ne){return U.fromArray(le(ne,B.isKanjiModeEnabled()))}},2656:(Ee,U)=>{let S;const x=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];U.getSymbolSize=function(v){if(!v)throw new Error('"version" cannot be null or undefined');if(v<1||v>40)throw new Error('"version" should be in range from 1 to 40');return 4*v+17},U.getSymbolTotalCodewords=function(v){return x[v]},U.getBCHDigit=function(y){let v=0;for(;0!==y;)v++,y>>>=1;return v},U.setToSJISFunction=function(v){if("function"!=typeof v)throw new Error('"toSJISFunc" is not a valid function.');S=v},U.isKanjiModeEnabled=function(){return typeof S<"u"},U.toSJIS=function(v){return S(v)}},1604:(Ee,U)=>{U.isValid=function(x){return!isNaN(x)&&x>=1&&x<=40}},8925:(Ee,U,S)=>{const x=S(2656),y=S(2296),v=S(139),A=S(838),h=S(1604),B=x.getBCHDigit(7973);function q(ee,te){return A.getCharCountIndicator(ee,te)+4}function oe(ee,te){let j=0;return ee.forEach(function(F){const he=q(F.mode,te);j+=he+F.getBitsLength()}),j}U.from=function(te,j){return h.isValid(te)?parseInt(te,10):j},U.getCapacity=function(te,j,F){if(!h.isValid(te))throw new Error("Invalid QR Code version");typeof F>"u"&&(F=A.BYTE);const ne=8*(x.getSymbolTotalCodewords(te)-y.getTotalCodewordsCount(te,j));if(F===A.MIXED)return ne;const o=ne-q(F,te);switch(F){case A.NUMERIC:return Math.floor(o/10*3);case A.ALPHANUMERIC:return Math.floor(o/11*2);case A.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},U.getBestVersionForData=function(te,j){let F;const he=v.from(j,v.M);if(Array.isArray(te)){if(te.length>1)return function le(ee,te){for(let j=1;j<=40;j++)if(oe(ee,j)<=U.getCapacity(j,te,A.MIXED))return j}(te,he);if(0===te.length)return 1;F=te[0]}else F=te;return function N(ee,te,j){for(let F=1;F<=40;F++)if(te<=U.getCapacity(F,j,ee))return F}(F.mode,F.getLength(),he)},U.getEncodedBits=function(te){if(!h.isValid(te)||te<7)throw new Error("Invalid QR Code version");let j=te<<12;for(;x.getBCHDigit(j)-B>=0;)j^=7973<{const x=S(8428);U.render=function(h,T,B){let N=B,q=T;typeof N>"u"&&(!T||!T.getContext)&&(N=T,T=void 0),T||(q=function v(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),N=x.getOptions(N);const oe=x.getImageWidth(h.modules.size,N),le=q.getContext("2d"),ee=le.createImageData(oe,oe);return x.qrToImageData(ee.data,h,N),function y(A,h,T){A.clearRect(0,0,h.width,h.height),h.style||(h.style={}),h.height=T,h.width=T,h.style.height=T+"px",h.style.width=T+"px"}(le,q,oe),le.putImageData(ee,0,0),q},U.renderToDataURL=function(h,T,B){let N=B;return typeof N>"u"&&(!T||!T.getContext)&&(N=T,T=void 0),N||(N={}),U.render(h,T,N).toDataURL(N.type||"image/png",(N.rendererOpts||{}).quality)}},5510:(Ee,U,S)=>{const x=S(8428);function y(h,T){const B=h.a/255,N=T+'="'+h.hex+'"';return B<1?N+" "+T+'-opacity="'+B.toFixed(2).slice(1)+'"':N}function v(h,T,B){let N=h+T;return typeof B<"u"&&(N+=" "+B),N}U.render=function(T,B,N){const q=x.getOptions(B),oe=T.modules.size,le=T.modules.data,ee=oe+2*q.margin,te=q.color.light.a?"':"",j="0&&te>0&&h[ee-1]||(N+=oe?v("M",te+B,.5+j+B):v("m",q,0),q=0,oe=!1),te+1',W=''+te+j+"\n";return"function"==typeof N&&N(null,W),W}},8428:(Ee,U)=>{function S(x){if("number"==typeof x&&(x=x.toString()),"string"!=typeof x)throw new Error("Color should be defined as hex string");let y=x.slice().replace("#","").split("");if(y.length<3||5===y.length||y.length>8)throw new Error("Invalid hex color: "+x);(3===y.length||4===y.length)&&(y=Array.prototype.concat.apply([],y.map(function(A){return[A,A]}))),6===y.length&&y.push("F","F");const v=parseInt(y.join(""),16);return{r:v>>24&255,g:v>>16&255,b:v>>8&255,a:255&v,hex:"#"+y.slice(0,6).join("")}}U.getOptions=function(y){y||(y={}),y.color||(y.color={});const A=y.width&&y.width>=21?y.width:void 0;return{width:A,scale:A?4:y.scale||4,margin:typeof y.margin>"u"||null===y.margin||y.margin<0?4:y.margin,color:{dark:S(y.color.dark||"#000000ff"),light:S(y.color.light||"#ffffffff")},type:y.type,rendererOpts:y.rendererOpts||{}}},U.getScale=function(y,v){return v.width&&v.width>=y+2*v.margin?v.width/(y+2*v.margin):v.scale},U.getImageWidth=function(y,v){const A=U.getScale(y,v);return Math.floor((y+2*v.margin)*A)},U.qrToImageData=function(y,v,A){const h=v.modules.size,T=v.modules.data,B=U.getScale(h,A),N=Math.floor((h+2*A.margin)*B),q=A.margin*B,oe=[A.color.light,A.color.dark];for(let le=0;le=q&&ee>=q&&le=65&&c<=70?c-55:c>=97&&c<=102?c-87:c-48&15}function N(_,a,c){var d=B(_,c);return c-1>=a&&(d|=B(_,c-1)<<4),d}function q(_,a,c,d){for(var p=0,E=Math.min(_.length,c),C=a;C=49?R-49+10:R>=17?R-17+10:R}return p}h.isBN=function(a){return a instanceof h||null!==a&&"object"==typeof a&&a.constructor.wordSize===h.wordSize&&Array.isArray(a.words)},h.max=function(a,c){return a.cmp(c)>0?a:c},h.min=function(a,c){return a.cmp(c)<0?a:c},h.prototype._init=function(a,c,d){if("number"==typeof a)return this._initNumber(a,c,d);if("object"==typeof a)return this._initArray(a,c,d);"hex"===c&&(c=16),v(c===(0|c)&&c>=2&&c<=36);var p=0;"-"===(a=a.toString().replace(/\s+/g,""))[0]&&(p++,this.negative=1),p=0;p-=3)this.words[E]|=(C=a[p]|a[p-1]<<8|a[p-2]<<16)<>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);else if("le"===d)for(p=0,E=0;p>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);return this.strip()},h.prototype._parseHex=function(a,c,d){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var p=0;p=c;p-=2)R=N(a,c,p)<=18?(E-=18,this.words[C+=1]|=R>>>26):E+=8;else for(p=(a.length-c)%2==0?c+1:c;p=18?(E-=18,this.words[C+=1]|=R>>>26):E+=8;this.strip()},h.prototype._parseBase=function(a,c,d){this.words=[0],this.length=1;for(var p=0,E=1;E<=67108863;E*=c)p++;p--,E=E/c|0;for(var C=a.length-d,R=C%p,w=Math.min(C,C-R)+d,l=0,b=d;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?""};var oe=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],le=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ee=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function j(_,a,c){c.negative=a.negative^_.negative;var d=_.length+a.length|0;c.length=d,d=d-1|0;var p=0|_.words[0],E=0|a.words[0],C=p*E,w=C/67108864|0;c.words[0]=67108863&C;for(var l=1;l>>26,ue=67108863&w,me=Math.min(l,a.length-1),ye=Math.max(0,l-_.length+1);ye<=me;ye++)b+=(C=(p=0|_.words[l-ye|0])*(E=0|a.words[ye])+ue)/67108864|0,ue=67108863&C;c.words[l]=0|ue,w=0|b}return 0!==w?c.words[l]=0|w:c.length--,c.strip()}h.prototype.toString=function(a,c){var d;if(c=0|c||1,16===(a=a||10)||"hex"===a){d="";for(var p=0,E=0,C=0;C>>24-p&16777215)||C!==this.length-1?oe[6-w.length]+w+d:w+d,(p+=2)>=26&&(p-=26,C--)}for(0!==E&&(d=E.toString(16)+d);d.length%c!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(a===(0|a)&&a>=2&&a<=36){var l=le[a],b=ee[a];d="";var ue=this.clone();for(ue.negative=0;!ue.isZero();){var me=ue.modn(b).toString(a);d=(ue=ue.idivn(b)).isZero()?me+d:oe[l-me.length]+me+d}for(this.isZero()&&(d="0"+d);d.length%c!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}v(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var a=this.words[0];return 2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:this.length>2&&v(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-a:a},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(a,c){return v(typeof T<"u"),this.toArrayLike(T,a,c)},h.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)},h.prototype.toArrayLike=function(a,c,d){var p=this.byteLength(),E=d||Math.max(1,p);v(p<=E,"byte array longer than desired length"),v(E>0,"Requested array length <= 0"),this.strip();var w,l,C="le"===c,R=new a(E),b=this.clone();if(C){for(l=0;!b.isZero();l++)w=b.andln(255),b.iushrn(8),R[l]=w;for(;l=4096&&(d+=13,c>>>=13),c>=64&&(d+=7,c>>>=7),c>=8&&(d+=4,c>>>=4),c>=2&&(d+=2,c>>>=2),d+c},h.prototype._zeroBits=function(a){if(0===a)return 26;var c=a,d=0;return 8191&c||(d+=13,c>>>=13),127&c||(d+=7,c>>>=7),15&c||(d+=4,c>>>=4),3&c||(d+=2,c>>>=2),1&c||d++,d},h.prototype.bitLength=function(){var c=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+c},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},h.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},h.prototype.iuand=function(a){var c;c=this.length>a.length?a:this;for(var d=0;da.length?this.clone().iand(a):a.clone().iand(this)},h.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},h.prototype.iuxor=function(a){var c,d;this.length>a.length?(c=this,d=a):(c=a,d=this);for(var p=0;pa.length?this.clone().ixor(a):a.clone().ixor(this)},h.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},h.prototype.inotn=function(a){v("number"==typeof a&&a>=0);var c=0|Math.ceil(a/26),d=a%26;this._expand(c),d>0&&c--;for(var p=0;p0&&(this.words[p]=~this.words[p]&67108863>>26-d),this.strip()},h.prototype.notn=function(a){return this.clone().inotn(a)},h.prototype.setn=function(a,c){v("number"==typeof a&&a>=0);var d=a/26|0,p=a%26;return this._expand(d+1),this.words[d]=c?this.words[d]|1<a.length?(d=this,p=a):(d=a,p=this);for(var E=0,C=0;C>>26;for(;0!==E&&C>>26;if(this.length=d.length,0!==E)this.words[this.length]=E,this.length++;else if(d!==this)for(;Ca.length?this.clone().iadd(a):a.clone().iadd(this)},h.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var p,E,d=this.cmp(a);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(p=this,E=a):(p=a,E=this);for(var C=0,R=0;R>26,this.words[R]=67108863&c;for(;0!==C&&R>26,this.words[R]=67108863&c;if(0===C&&R>>13,xe=0|p[1],Ce=8191&xe,Ue=xe>>>13,at=0|p[2],Se=8191&at,Ne=at>>>13,Kt=0|p[3],Ke=8191&Kt,Ze=Kt>>>13,Ar=0|p[4],lt=8191&Ar,ct=Ar>>>13,Cr=0|p[5],Xe=8191&Cr,ut=Cr>>>13,Hn=0|p[6],Qe=8191&Hn,He=Hn>>>13,Vn=0|p[7],ft=8191&Vn,ht=Vn>>>13,Yn=0|p[8],Ge=8191&Yn,Pe=Yn>>>13,kn=0|p[9],Ve=8191&kn,Je=kn>>>13,Kn=0|E[0],et=8191&Kn,tt=Kn>>>13,un=0|E[1],nt=8191&un,Ye=un>>>13,Zn=0|E[2],rt=8191&Zn,it=Zn>>>13,Tr=0|E[3],Le=8191&Tr,ze=Tr>>>13,fn=0|E[4],dt=8191&fn,gt=fn>>>13,hn=0|E[5],Oe=8191&hn,pt=hn>>>13,Xn=0|E[6],Be=8191&Xn,De=Xn>>>13,Qn=0|E[7],mt=8191&Qn,We=Qn>>>13,Jn=0|E[8],je=8191&Jn,Fe=Jn>>>13,Sn=0|E[9],ot=8191&Sn,yt=Sn>>>13;d.negative=a.negative^c.negative,d.length=19;var dn=(R+(w=Math.imul(me,et))|0)+((8191&(l=(l=Math.imul(me,tt))+Math.imul(ye,et)|0))<<13)|0;R=((b=Math.imul(ye,tt))+(l>>>13)|0)+(dn>>>26)|0,dn&=67108863,w=Math.imul(Ce,et),l=(l=Math.imul(Ce,tt))+Math.imul(Ue,et)|0,b=Math.imul(Ue,tt);var er=(R+(w=w+Math.imul(me,nt)|0)|0)+((8191&(l=(l=l+Math.imul(me,Ye)|0)+Math.imul(ye,nt)|0))<<13)|0;R=((b=b+Math.imul(ye,Ye)|0)+(l>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(Se,et),l=(l=Math.imul(Se,tt))+Math.imul(Ne,et)|0,b=Math.imul(Ne,tt),w=w+Math.imul(Ce,nt)|0,l=(l=l+Math.imul(Ce,Ye)|0)+Math.imul(Ue,nt)|0,b=b+Math.imul(Ue,Ye)|0;var tr=(R+(w=w+Math.imul(me,rt)|0)|0)+((8191&(l=(l=l+Math.imul(me,it)|0)+Math.imul(ye,rt)|0))<<13)|0;R=((b=b+Math.imul(ye,it)|0)+(l>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(Ke,et),l=(l=Math.imul(Ke,tt))+Math.imul(Ze,et)|0,b=Math.imul(Ze,tt),w=w+Math.imul(Se,nt)|0,l=(l=l+Math.imul(Se,Ye)|0)+Math.imul(Ne,nt)|0,b=b+Math.imul(Ne,Ye)|0,w=w+Math.imul(Ce,rt)|0,l=(l=l+Math.imul(Ce,it)|0)+Math.imul(Ue,rt)|0,b=b+Math.imul(Ue,it)|0;var Zt=(R+(w=w+Math.imul(me,Le)|0)|0)+((8191&(l=(l=l+Math.imul(me,ze)|0)+Math.imul(ye,Le)|0))<<13)|0;R=((b=b+Math.imul(ye,ze)|0)+(l>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(lt,et),l=(l=Math.imul(lt,tt))+Math.imul(ct,et)|0,b=Math.imul(ct,tt),w=w+Math.imul(Ke,nt)|0,l=(l=l+Math.imul(Ke,Ye)|0)+Math.imul(Ze,nt)|0,b=b+Math.imul(Ze,Ye)|0,w=w+Math.imul(Se,rt)|0,l=(l=l+Math.imul(Se,it)|0)+Math.imul(Ne,rt)|0,b=b+Math.imul(Ne,it)|0,w=w+Math.imul(Ce,Le)|0,l=(l=l+Math.imul(Ce,ze)|0)+Math.imul(Ue,Le)|0,b=b+Math.imul(Ue,ze)|0;var An=(R+(w=w+Math.imul(me,dt)|0)|0)+((8191&(l=(l=l+Math.imul(me,gt)|0)+Math.imul(ye,dt)|0))<<13)|0;R=((b=b+Math.imul(ye,gt)|0)+(l>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(Xe,et),l=(l=Math.imul(Xe,tt))+Math.imul(ut,et)|0,b=Math.imul(ut,tt),w=w+Math.imul(lt,nt)|0,l=(l=l+Math.imul(lt,Ye)|0)+Math.imul(ct,nt)|0,b=b+Math.imul(ct,Ye)|0,w=w+Math.imul(Ke,rt)|0,l=(l=l+Math.imul(Ke,it)|0)+Math.imul(Ze,rt)|0,b=b+Math.imul(Ze,it)|0,w=w+Math.imul(Se,Le)|0,l=(l=l+Math.imul(Se,ze)|0)+Math.imul(Ne,Le)|0,b=b+Math.imul(Ne,ze)|0,w=w+Math.imul(Ce,dt)|0,l=(l=l+Math.imul(Ce,gt)|0)+Math.imul(Ue,dt)|0,b=b+Math.imul(Ue,gt)|0;var Cn=(R+(w=w+Math.imul(me,Oe)|0)|0)+((8191&(l=(l=l+Math.imul(me,pt)|0)+Math.imul(ye,Oe)|0))<<13)|0;R=((b=b+Math.imul(ye,pt)|0)+(l>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,w=Math.imul(Qe,et),l=(l=Math.imul(Qe,tt))+Math.imul(He,et)|0,b=Math.imul(He,tt),w=w+Math.imul(Xe,nt)|0,l=(l=l+Math.imul(Xe,Ye)|0)+Math.imul(ut,nt)|0,b=b+Math.imul(ut,Ye)|0,w=w+Math.imul(lt,rt)|0,l=(l=l+Math.imul(lt,it)|0)+Math.imul(ct,rt)|0,b=b+Math.imul(ct,it)|0,w=w+Math.imul(Ke,Le)|0,l=(l=l+Math.imul(Ke,ze)|0)+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,ze)|0,w=w+Math.imul(Se,dt)|0,l=(l=l+Math.imul(Se,gt)|0)+Math.imul(Ne,dt)|0,b=b+Math.imul(Ne,gt)|0,w=w+Math.imul(Ce,Oe)|0,l=(l=l+Math.imul(Ce,pt)|0)+Math.imul(Ue,Oe)|0,b=b+Math.imul(Ue,pt)|0;var Tn=(R+(w=w+Math.imul(me,Be)|0)|0)+((8191&(l=(l=l+Math.imul(me,De)|0)+Math.imul(ye,Be)|0))<<13)|0;R=((b=b+Math.imul(ye,De)|0)+(l>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(ft,et),l=(l=Math.imul(ft,tt))+Math.imul(ht,et)|0,b=Math.imul(ht,tt),w=w+Math.imul(Qe,nt)|0,l=(l=l+Math.imul(Qe,Ye)|0)+Math.imul(He,nt)|0,b=b+Math.imul(He,Ye)|0,w=w+Math.imul(Xe,rt)|0,l=(l=l+Math.imul(Xe,it)|0)+Math.imul(ut,rt)|0,b=b+Math.imul(ut,it)|0,w=w+Math.imul(lt,Le)|0,l=(l=l+Math.imul(lt,ze)|0)+Math.imul(ct,Le)|0,b=b+Math.imul(ct,ze)|0,w=w+Math.imul(Ke,dt)|0,l=(l=l+Math.imul(Ke,gt)|0)+Math.imul(Ze,dt)|0,b=b+Math.imul(Ze,gt)|0,w=w+Math.imul(Se,Oe)|0,l=(l=l+Math.imul(Se,pt)|0)+Math.imul(Ne,Oe)|0,b=b+Math.imul(Ne,pt)|0,w=w+Math.imul(Ce,Be)|0,l=(l=l+Math.imul(Ce,De)|0)+Math.imul(Ue,Be)|0,b=b+Math.imul(Ue,De)|0;var In=(R+(w=w+Math.imul(me,mt)|0)|0)+((8191&(l=(l=l+Math.imul(me,We)|0)+Math.imul(ye,mt)|0))<<13)|0;R=((b=b+Math.imul(ye,We)|0)+(l>>>13)|0)+(In>>>26)|0,In&=67108863,w=Math.imul(Ge,et),l=(l=Math.imul(Ge,tt))+Math.imul(Pe,et)|0,b=Math.imul(Pe,tt),w=w+Math.imul(ft,nt)|0,l=(l=l+Math.imul(ft,Ye)|0)+Math.imul(ht,nt)|0,b=b+Math.imul(ht,Ye)|0,w=w+Math.imul(Qe,rt)|0,l=(l=l+Math.imul(Qe,it)|0)+Math.imul(He,rt)|0,b=b+Math.imul(He,it)|0,w=w+Math.imul(Xe,Le)|0,l=(l=l+Math.imul(Xe,ze)|0)+Math.imul(ut,Le)|0,b=b+Math.imul(ut,ze)|0,w=w+Math.imul(lt,dt)|0,l=(l=l+Math.imul(lt,gt)|0)+Math.imul(ct,dt)|0,b=b+Math.imul(ct,gt)|0,w=w+Math.imul(Ke,Oe)|0,l=(l=l+Math.imul(Ke,pt)|0)+Math.imul(Ze,Oe)|0,b=b+Math.imul(Ze,pt)|0,w=w+Math.imul(Se,Be)|0,l=(l=l+Math.imul(Se,De)|0)+Math.imul(Ne,Be)|0,b=b+Math.imul(Ne,De)|0,w=w+Math.imul(Ce,mt)|0,l=(l=l+Math.imul(Ce,We)|0)+Math.imul(Ue,mt)|0,b=b+Math.imul(Ue,We)|0;var Rn=(R+(w=w+Math.imul(me,je)|0)|0)+((8191&(l=(l=l+Math.imul(me,Fe)|0)+Math.imul(ye,je)|0))<<13)|0;R=((b=b+Math.imul(ye,Fe)|0)+(l>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,w=Math.imul(Ve,et),l=(l=Math.imul(Ve,tt))+Math.imul(Je,et)|0,b=Math.imul(Je,tt),w=w+Math.imul(Ge,nt)|0,l=(l=l+Math.imul(Ge,Ye)|0)+Math.imul(Pe,nt)|0,b=b+Math.imul(Pe,Ye)|0,w=w+Math.imul(ft,rt)|0,l=(l=l+Math.imul(ft,it)|0)+Math.imul(ht,rt)|0,b=b+Math.imul(ht,it)|0,w=w+Math.imul(Qe,Le)|0,l=(l=l+Math.imul(Qe,ze)|0)+Math.imul(He,Le)|0,b=b+Math.imul(He,ze)|0,w=w+Math.imul(Xe,dt)|0,l=(l=l+Math.imul(Xe,gt)|0)+Math.imul(ut,dt)|0,b=b+Math.imul(ut,gt)|0,w=w+Math.imul(lt,Oe)|0,l=(l=l+Math.imul(lt,pt)|0)+Math.imul(ct,Oe)|0,b=b+Math.imul(ct,pt)|0,w=w+Math.imul(Ke,Be)|0,l=(l=l+Math.imul(Ke,De)|0)+Math.imul(Ze,Be)|0,b=b+Math.imul(Ze,De)|0,w=w+Math.imul(Se,mt)|0,l=(l=l+Math.imul(Se,We)|0)+Math.imul(Ne,mt)|0,b=b+Math.imul(Ne,We)|0,w=w+Math.imul(Ce,je)|0,l=(l=l+Math.imul(Ce,Fe)|0)+Math.imul(Ue,je)|0,b=b+Math.imul(Ue,Fe)|0;var Bt=(R+(w=w+Math.imul(me,ot)|0)|0)+((8191&(l=(l=l+Math.imul(me,yt)|0)+Math.imul(ye,ot)|0))<<13)|0;R=((b=b+Math.imul(ye,yt)|0)+(l>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(Ve,nt),l=(l=Math.imul(Ve,Ye))+Math.imul(Je,nt)|0,b=Math.imul(Je,Ye),w=w+Math.imul(Ge,rt)|0,l=(l=l+Math.imul(Ge,it)|0)+Math.imul(Pe,rt)|0,b=b+Math.imul(Pe,it)|0,w=w+Math.imul(ft,Le)|0,l=(l=l+Math.imul(ft,ze)|0)+Math.imul(ht,Le)|0,b=b+Math.imul(ht,ze)|0,w=w+Math.imul(Qe,dt)|0,l=(l=l+Math.imul(Qe,gt)|0)+Math.imul(He,dt)|0,b=b+Math.imul(He,gt)|0,w=w+Math.imul(Xe,Oe)|0,l=(l=l+Math.imul(Xe,pt)|0)+Math.imul(ut,Oe)|0,b=b+Math.imul(ut,pt)|0,w=w+Math.imul(lt,Be)|0,l=(l=l+Math.imul(lt,De)|0)+Math.imul(ct,Be)|0,b=b+Math.imul(ct,De)|0,w=w+Math.imul(Ke,mt)|0,l=(l=l+Math.imul(Ke,We)|0)+Math.imul(Ze,mt)|0,b=b+Math.imul(Ze,We)|0,w=w+Math.imul(Se,je)|0,l=(l=l+Math.imul(Se,Fe)|0)+Math.imul(Ne,je)|0,b=b+Math.imul(Ne,Fe)|0;var Nt=(R+(w=w+Math.imul(Ce,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ce,yt)|0)+Math.imul(Ue,ot)|0))<<13)|0;R=((b=b+Math.imul(Ue,yt)|0)+(l>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(Ve,rt),l=(l=Math.imul(Ve,it))+Math.imul(Je,rt)|0,b=Math.imul(Je,it),w=w+Math.imul(Ge,Le)|0,l=(l=l+Math.imul(Ge,ze)|0)+Math.imul(Pe,Le)|0,b=b+Math.imul(Pe,ze)|0,w=w+Math.imul(ft,dt)|0,l=(l=l+Math.imul(ft,gt)|0)+Math.imul(ht,dt)|0,b=b+Math.imul(ht,gt)|0,w=w+Math.imul(Qe,Oe)|0,l=(l=l+Math.imul(Qe,pt)|0)+Math.imul(He,Oe)|0,b=b+Math.imul(He,pt)|0,w=w+Math.imul(Xe,Be)|0,l=(l=l+Math.imul(Xe,De)|0)+Math.imul(ut,Be)|0,b=b+Math.imul(ut,De)|0,w=w+Math.imul(lt,mt)|0,l=(l=l+Math.imul(lt,We)|0)+Math.imul(ct,mt)|0,b=b+Math.imul(ct,We)|0,w=w+Math.imul(Ke,je)|0,l=(l=l+Math.imul(Ke,Fe)|0)+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,Fe)|0;var gn=(R+(w=w+Math.imul(Se,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Se,yt)|0)+Math.imul(Ne,ot)|0))<<13)|0;R=((b=b+Math.imul(Ne,yt)|0)+(l>>>13)|0)+(gn>>>26)|0,gn&=67108863,w=Math.imul(Ve,Le),l=(l=Math.imul(Ve,ze))+Math.imul(Je,Le)|0,b=Math.imul(Je,ze),w=w+Math.imul(Ge,dt)|0,l=(l=l+Math.imul(Ge,gt)|0)+Math.imul(Pe,dt)|0,b=b+Math.imul(Pe,gt)|0,w=w+Math.imul(ft,Oe)|0,l=(l=l+Math.imul(ft,pt)|0)+Math.imul(ht,Oe)|0,b=b+Math.imul(ht,pt)|0,w=w+Math.imul(Qe,Be)|0,l=(l=l+Math.imul(Qe,De)|0)+Math.imul(He,Be)|0,b=b+Math.imul(He,De)|0,w=w+Math.imul(Xe,mt)|0,l=(l=l+Math.imul(Xe,We)|0)+Math.imul(ut,mt)|0,b=b+Math.imul(ut,We)|0,w=w+Math.imul(lt,je)|0,l=(l=l+Math.imul(lt,Fe)|0)+Math.imul(ct,je)|0,b=b+Math.imul(ct,Fe)|0;var Bn=(R+(w=w+Math.imul(Ke,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ke,yt)|0)+Math.imul(Ze,ot)|0))<<13)|0;R=((b=b+Math.imul(Ze,yt)|0)+(l>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,w=Math.imul(Ve,dt),l=(l=Math.imul(Ve,gt))+Math.imul(Je,dt)|0,b=Math.imul(Je,gt),w=w+Math.imul(Ge,Oe)|0,l=(l=l+Math.imul(Ge,pt)|0)+Math.imul(Pe,Oe)|0,b=b+Math.imul(Pe,pt)|0,w=w+Math.imul(ft,Be)|0,l=(l=l+Math.imul(ft,De)|0)+Math.imul(ht,Be)|0,b=b+Math.imul(ht,De)|0,w=w+Math.imul(Qe,mt)|0,l=(l=l+Math.imul(Qe,We)|0)+Math.imul(He,mt)|0,b=b+Math.imul(He,We)|0,w=w+Math.imul(Xe,je)|0,l=(l=l+Math.imul(Xe,Fe)|0)+Math.imul(ut,je)|0,b=b+Math.imul(ut,Fe)|0;var Tt=(R+(w=w+Math.imul(lt,ot)|0)|0)+((8191&(l=(l=l+Math.imul(lt,yt)|0)+Math.imul(ct,ot)|0))<<13)|0;R=((b=b+Math.imul(ct,yt)|0)+(l>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,w=Math.imul(Ve,Oe),l=(l=Math.imul(Ve,pt))+Math.imul(Je,Oe)|0,b=Math.imul(Je,pt),w=w+Math.imul(Ge,Be)|0,l=(l=l+Math.imul(Ge,De)|0)+Math.imul(Pe,Be)|0,b=b+Math.imul(Pe,De)|0,w=w+Math.imul(ft,mt)|0,l=(l=l+Math.imul(ft,We)|0)+Math.imul(ht,mt)|0,b=b+Math.imul(ht,We)|0,w=w+Math.imul(Qe,je)|0,l=(l=l+Math.imul(Qe,Fe)|0)+Math.imul(He,je)|0,b=b+Math.imul(He,Fe)|0;var nr=(R+(w=w+Math.imul(Xe,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Xe,yt)|0)+Math.imul(ut,ot)|0))<<13)|0;R=((b=b+Math.imul(ut,yt)|0)+(l>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ve,Be),l=(l=Math.imul(Ve,De))+Math.imul(Je,Be)|0,b=Math.imul(Je,De),w=w+Math.imul(Ge,mt)|0,l=(l=l+Math.imul(Ge,We)|0)+Math.imul(Pe,mt)|0,b=b+Math.imul(Pe,We)|0,w=w+Math.imul(ft,je)|0,l=(l=l+Math.imul(ft,Fe)|0)+Math.imul(ht,je)|0,b=b+Math.imul(ht,Fe)|0;var pn=(R+(w=w+Math.imul(Qe,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Qe,yt)|0)+Math.imul(He,ot)|0))<<13)|0;R=((b=b+Math.imul(He,yt)|0)+(l>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(Ve,mt),l=(l=Math.imul(Ve,We))+Math.imul(Je,mt)|0,b=Math.imul(Je,We),w=w+Math.imul(Ge,je)|0,l=(l=l+Math.imul(Ge,Fe)|0)+Math.imul(Pe,je)|0,b=b+Math.imul(Pe,Fe)|0;var Xt=(R+(w=w+Math.imul(ft,ot)|0)|0)+((8191&(l=(l=l+Math.imul(ft,yt)|0)+Math.imul(ht,ot)|0))<<13)|0;R=((b=b+Math.imul(ht,yt)|0)+(l>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,w=Math.imul(Ve,je),l=(l=Math.imul(Ve,Fe))+Math.imul(Je,je)|0,b=Math.imul(Je,Fe);var Nn=(R+(w=w+Math.imul(Ge,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ge,yt)|0)+Math.imul(Pe,ot)|0))<<13)|0;R=((b=b+Math.imul(Pe,yt)|0)+(l>>>13)|0)+(Nn>>>26)|0,Nn&=67108863;var Qt=(R+(w=Math.imul(Ve,ot))|0)+((8191&(l=(l=Math.imul(Ve,yt))+Math.imul(Je,ot)|0))<<13)|0;return R=((b=Math.imul(Je,yt))+(l>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,C[0]=dn,C[1]=er,C[2]=tr,C[3]=Zt,C[4]=An,C[5]=Cn,C[6]=Tn,C[7]=In,C[8]=Rn,C[9]=Bt,C[10]=Nt,C[11]=gn,C[12]=Bn,C[13]=Tt,C[14]=nr,C[15]=pn,C[16]=Xt,C[17]=Nn,C[18]=Qt,0!==R&&(C[19]=R,d.length++),d};function W(_,a,c){return(new ne).mulp(_,a,c)}function ne(_,a){this.x=_,this.y=a}Math.imul||(F=j),h.prototype.mulTo=function(a,c){var d,p=this.length+a.length;return d=10===this.length&&10===a.length?F(this,a,c):p<63?j(this,a,c):p<1024?function he(_,a,c){c.negative=a.negative^_.negative,c.length=_.length+a.length;for(var d=0,p=0,E=0;E>>26)|0)>>>26,C&=67108863}c.words[E]=R,d=C,C=p}return 0!==d?c.words[E]=d:c.length--,c.strip()}(this,a,c):W(this,a,c),d},ne.prototype.makeRBT=function(a){for(var c=new Array(a),d=h.prototype._countBits(a)-1,p=0;p>=1;return p},ne.prototype.permute=function(a,c,d,p,E,C){for(var R=0;R>>=1)E++;return 1<>>=13),E>>>=13;for(C=2*c;C>=26,c+=p/67108864|0,c+=E>>>26,this.words[d]=67108863&E}return 0!==c&&(this.words[d]=c,this.length++),this},h.prototype.muln=function(a){return this.clone().imuln(a)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(a){var c=function te(_){for(var a=new Array(_.bitLength()),c=0;c>>p}return a}(a);if(0===c.length)return new h(1);for(var d=this,p=0;p=0);var E,c=a%26,d=(a-c)/26,p=67108863>>>26-c<<26-c;if(0!==c){var C=0;for(E=0;E>>26-c}C&&(this.words[E]=C,this.length++)}if(0!==d){for(E=this.length-1;E>=0;E--)this.words[E+d]=this.words[E];for(E=0;E=0),p=c?(c-c%26)/26:0;var E=a%26,C=Math.min((a-E)/26,this.length),R=67108863^67108863>>>E<C)for(this.length-=C,l=0;l=0&&(0!==b||l>=p);l--){var ue=0|this.words[l];this.words[l]=b<<26-E|ue>>>E,b=ue&R}return w&&0!==b&&(w.words[w.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(a,c,d){return v(0===this.negative),this.iushrn(a,c,d)},h.prototype.shln=function(a){return this.clone().ishln(a)},h.prototype.ushln=function(a){return this.clone().iushln(a)},h.prototype.shrn=function(a){return this.clone().ishrn(a)},h.prototype.ushrn=function(a){return this.clone().iushrn(a)},h.prototype.testn=function(a){v("number"==typeof a&&a>=0);var c=a%26,d=(a-c)/26;return!(this.length<=d||!(this.words[d]&1<=0);var c=a%26,d=(a-c)/26;return v(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==c&&d++,this.length=Math.min(d,this.length),0!==c&&(this.words[this.length-1]&=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},h.prototype.isubn=function(a){if(v("number"==typeof a),v(a<67108864),a<0)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(w/67108864|0),this.words[E+d]=67108863&C}for(;E>26,this.words[E+d]=67108863&C;if(0===R)return this.strip();for(v(-1===R),R=0,E=0;E>26,this.words[E]=67108863&C;return this.negative=1,this.strip()},h.prototype._wordDiv=function(a,c){var d,p=this.clone(),E=a,C=0|E.words[E.length-1];0!=(d=26-this._countBits(C))&&(E=E.ushln(d),p.iushln(d),C=0|E.words[E.length-1]);var l,w=p.length-E.length;if("mod"!==c){(l=new h(null)).length=w+1,l.words=new Array(l.length);for(var b=0;b=0;me--){var ye=67108864*(0|p.words[E.length+me])+(0|p.words[E.length+me-1]);for(ye=Math.min(ye/C|0,67108863),p._ishlnsubmul(E,ye,me);0!==p.negative;)ye--,p.negative=0,p._ishlnsubmul(E,1,me),p.isZero()||(p.negative^=1);l&&(l.words[me]=ye)}return l&&l.strip(),p.strip(),"div"!==c&&0!==d&&p.iushrn(d),{div:l||null,mod:p}},h.prototype.divmod=function(a,c,d){return v(!a.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===a.negative?(C=this.neg().divmod(a,c),"mod"!==c&&(p=C.div.neg()),"div"!==c&&(E=C.mod.neg(),d&&0!==E.negative&&E.iadd(a)),{div:p,mod:E}):0===this.negative&&0!==a.negative?(C=this.divmod(a.neg(),c),"mod"!==c&&(p=C.div.neg()),{div:p,mod:C.mod}):this.negative&a.negative?(C=this.neg().divmod(a.neg(),c),"div"!==c&&(E=C.mod.neg(),d&&0!==E.negative&&E.isub(a)),{div:C.div,mod:E}):a.length>this.length||this.cmp(a)<0?{div:new h(0),mod:this}:1===a.length?"div"===c?{div:this.divn(a.words[0]),mod:null}:"mod"===c?{div:null,mod:new h(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new h(this.modn(a.words[0]))}:this._wordDiv(a,c);var p,E,C},h.prototype.div=function(a){return this.divmod(a,"div",!1).div},h.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},h.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},h.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var d=0!==c.div.negative?c.mod.isub(a):c.mod,p=a.ushrn(1),E=a.andln(1),C=d.cmp(p);return C<0||1===E&&0===C?c.div:0!==c.div.negative?c.div.isubn(1):c.div.iaddn(1)},h.prototype.modn=function(a){v(a<=67108863);for(var c=(1<<26)%a,d=0,p=this.length-1;p>=0;p--)d=(c*d+(0|this.words[p]))%a;return d},h.prototype.idivn=function(a){v(a<=67108863);for(var c=0,d=this.length-1;d>=0;d--){var p=(0|this.words[d])+67108864*c;this.words[d]=p/a|0,c=p%a}return this.strip()},h.prototype.divn=function(a){return this.clone().idivn(a)},h.prototype.egcd=function(a){v(0===a.negative),v(!a.isZero());var c=this,d=a.clone();c=0!==c.negative?c.umod(a):c.clone();for(var p=new h(1),E=new h(0),C=new h(0),R=new h(1),w=0;c.isEven()&&d.isEven();)c.iushrn(1),d.iushrn(1),++w;for(var l=d.clone(),b=c.clone();!c.isZero();){for(var ue=0,me=1;!(c.words[0]&me)&&ue<26;++ue,me<<=1);if(ue>0)for(c.iushrn(ue);ue-- >0;)(p.isOdd()||E.isOdd())&&(p.iadd(l),E.isub(b)),p.iushrn(1),E.iushrn(1);for(var ye=0,xe=1;!(d.words[0]&xe)&&ye<26;++ye,xe<<=1);if(ye>0)for(d.iushrn(ye);ye-- >0;)(C.isOdd()||R.isOdd())&&(C.iadd(l),R.isub(b)),C.iushrn(1),R.iushrn(1);c.cmp(d)>=0?(c.isub(d),p.isub(C),E.isub(R)):(d.isub(c),C.isub(p),R.isub(E))}return{a:C,b:R,gcd:d.iushln(w)}},h.prototype._invmp=function(a){v(0===a.negative),v(!a.isZero());var ue,c=this,d=a.clone();c=0!==c.negative?c.umod(a):c.clone();for(var p=new h(1),E=new h(0),C=d.clone();c.cmpn(1)>0&&d.cmpn(1)>0;){for(var R=0,w=1;!(c.words[0]&w)&&R<26;++R,w<<=1);if(R>0)for(c.iushrn(R);R-- >0;)p.isOdd()&&p.iadd(C),p.iushrn(1);for(var l=0,b=1;!(d.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(d.iushrn(l);l-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);c.cmp(d)>=0?(c.isub(d),p.isub(E)):(d.isub(c),E.isub(p))}return(ue=0===c.cmpn(1)?p:E).cmpn(0)<0&&ue.iadd(a),ue},h.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),d=a.clone();c.negative=0,d.negative=0;for(var p=0;c.isEven()&&d.isEven();p++)c.iushrn(1),d.iushrn(1);for(;;){for(;c.isEven();)c.iushrn(1);for(;d.isEven();)d.iushrn(1);var E=c.cmp(d);if(E<0){var C=c;c=d,d=C}else if(0===E||0===d.cmpn(1))break;c.isub(d)}return d.iushln(p)},h.prototype.invm=function(a){return this.egcd(a).a.umod(a)},h.prototype.isEven=function(){return!(1&this.words[0])},h.prototype.isOdd=function(){return!(1&~this.words[0])},h.prototype.andln=function(a){return this.words[0]&a},h.prototype.bincn=function(a){v("number"==typeof a);var c=a%26,d=(a-c)/26,p=1<>>26,this.words[C]=R&=67108863}return 0!==E&&(this.words[C]=E,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(a){var d,c=a<0;if(0!==this.negative&&!c)return-1;if(0===this.negative&&c)return 1;if(this.strip(),this.length>1)d=1;else{c&&(a=-a),v(a<=67108863,"Number is too big");var p=0|this.words[0];d=p===a?0:pa.length)return 1;if(this.length=0;d--){var p=0|this.words[d],E=0|a.words[d];if(p!==E){pE&&(c=1);break}}return c},h.prototype.gtn=function(a){return 1===this.cmpn(a)},h.prototype.gt=function(a){return 1===this.cmp(a)},h.prototype.gten=function(a){return this.cmpn(a)>=0},h.prototype.gte=function(a){return this.cmp(a)>=0},h.prototype.ltn=function(a){return-1===this.cmpn(a)},h.prototype.lt=function(a){return-1===this.cmp(a)},h.prototype.lten=function(a){return this.cmpn(a)<=0},h.prototype.lte=function(a){return this.cmp(a)<=0},h.prototype.eqn=function(a){return 0===this.cmpn(a)},h.prototype.eq=function(a){return 0===this.cmp(a)},h.red=function(a){return new se(a)},h.prototype.toRed=function(a){return v(!this.red,"Already a number in reduction context"),v(0===this.negative,"red works only with positives"),a.convertTo(this)._forceRed(a)},h.prototype.fromRed=function(){return v(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(a){return this.red=a,this},h.prototype.forceRed=function(a){return v(!this.red,"Already a number in reduction context"),this._forceRed(a)},h.prototype.redAdd=function(a){return v(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},h.prototype.redIAdd=function(a){return v(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},h.prototype.redSub=function(a){return v(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},h.prototype.redISub=function(a){return v(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},h.prototype.redShl=function(a){return v(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},h.prototype.redMul=function(a){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},h.prototype.redIMul=function(a){return v(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},h.prototype.redSqr=function(){return v(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return v(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return v(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return v(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return v(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(a){return v(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var o={k256:null,p224:null,p192:null,p25519:null};function ae(_,a){this.name=_,this.p=new h(a,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ke(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $e(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function we(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(_){if("string"==typeof _){var a=h._prime(_);this.m=a.p,this.prime=a}else v(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function ce(_){se.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ae.prototype._tmp=function(){var a=new h(null);return a.words=new Array(Math.ceil(this.n/13)),a},ae.prototype.ireduce=function(a){var d,c=a;do{this.split(c,this.tmp),d=(c=(c=this.imulK(c)).iadd(this.tmp)).bitLength()}while(d>this.n);var p=d0?c.isub(this.p):void 0!==c.strip?c.strip():c._strip(),c},ae.prototype.split=function(a,c){a.iushrn(this.n,0,c)},ae.prototype.imulK=function(a){return a.imul(this.k)},A(ke,ae),ke.prototype.split=function(a,c){for(var d=4194303,p=Math.min(a.length,9),E=0;E>>22,C=R}a.words[E-10]=C>>>=22,a.length-=0===C&&a.length>10?10:9},ke.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,d=0;d>>=26,a.words[d]=E,c=p}return 0!==c&&(a.words[a.length++]=c),a},h._prime=function(a){if(o[a])return o[a];var c;if("k256"===a)c=new ke;else if("p224"===a)c=new $e;else if("p192"===a)c=new de;else{if("p25519"!==a)throw new Error("Unknown prime "+a);c=new we}return o[a]=c,c},se.prototype._verify1=function(a){v(0===a.negative,"red works only with positives"),v(a.red,"red works only with red numbers")},se.prototype._verify2=function(a,c){v(!(a.negative|c.negative),"red works only with positives"),v(a.red&&a.red===c.red,"red works only with red numbers")},se.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},se.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},se.prototype.add=function(a,c){this._verify2(a,c);var d=a.add(c);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},se.prototype.iadd=function(a,c){this._verify2(a,c);var d=a.iadd(c);return d.cmp(this.m)>=0&&d.isub(this.m),d},se.prototype.sub=function(a,c){this._verify2(a,c);var d=a.sub(c);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},se.prototype.isub=function(a,c){this._verify2(a,c);var d=a.isub(c);return d.cmpn(0)<0&&d.iadd(this.m),d},se.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},se.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},se.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},se.prototype.isqr=function(a){return this.imul(a,a.clone())},se.prototype.sqr=function(a){return this.mul(a,a)},se.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(v(c%2==1),3===c){var d=this.m.add(new h(1)).iushrn(2);return this.pow(a,d)}for(var p=this.m.subn(1),E=0;!p.isZero()&&0===p.andln(1);)E++,p.iushrn(1);v(!p.isZero());var C=new h(1).toRed(this),R=C.redNeg(),w=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,w).cmp(R);)l.redIAdd(R);for(var b=this.pow(l,p),ue=this.pow(a,p.addn(1).iushrn(1)),me=this.pow(a,p),ye=E;0!==me.cmp(C);){for(var xe=me,Ce=0;0!==xe.cmp(C);Ce++)xe=xe.redSqr();v(Ce=0;E--){for(var b=c.words[E],ue=l-1;ue>=0;ue--){var me=b>>ue&1;C!==p[0]&&(C=this.sqr(C)),0!==me||0!==R?(R<<=1,R|=me,(4==++w||0===E&&0===ue)&&(C=this.mul(C,p[R]),w=0,R=0)):w=0}l=26}return C},se.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},se.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},h.mont=function(a){return new ce(a)},A(ce,se),ce.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},ce.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},ce.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var d=a.imul(c),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=d.isub(p).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},ce.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new h(0)._forceRed(this);var d=a.mul(c),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=d.isub(p).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},ce.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ee=S.nmd(Ee),this)},243:Ee=>{"use strict";var U={single_source_shortest_paths:function(S,x,y){var v={},A={};A[x]=0;var T,B,N,q,oe,ee,h=U.PriorityQueue.make();for(h.push(x,0);!h.empty();)for(N in q=(T=h.pop()).cost,oe=S[B=T.value]||{})oe.hasOwnProperty(N)&&(ee=q+oe[N],(typeof A[N]>"u"||A[N]>ee)&&(A[N]=ee,h.push(N,ee),v[N]=B));if(typeof y<"u"&&typeof A[y]>"u"){var F=["Could not find a path from ",x," to ",y,"."].join("");throw new Error(F)}return v},extract_shortest_path_from_predecessor_list:function(S,x){for(var y=[],v=x;v;)y.push(v),v=S[v];return y.reverse(),y},find_path:function(S,x,y){var v=U.single_source_shortest_paths(S,x,y);return U.extract_shortest_path_from_predecessor_list(v,y)},PriorityQueue:{make:function(S){var v,x=U.PriorityQueue,y={};for(v in S=S||{},x)x.hasOwnProperty(v)&&(y[v]=x[v]);return y.queue=[],y.sorter=S.sorter||x.default_sorter,y},default_sorter:function(S,x){return S.cost-x.cost},push:function(S,x){this.queue.push({value:S,cost:x}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ee.exports=U},3174:Ee=>{"use strict";Ee.exports=function(S){for(var x=[],y=S.length,v=0;v=55296&&A<=56319&&y>v+1){var h=S.charCodeAt(v+1);h>=56320&&h<=57343&&(A=1024*(A-55296)+h-56320+65536,v+=1)}A<128?x.push(A):A<2048?(x.push(A>>6|192),x.push(63&A|128)):A<55296||A>=57344&&A<65536?(x.push(A>>12|224),x.push(A>>6&63|128),x.push(63&A|128)):A>=65536&&A<=1114111?(x.push(A>>18|240),x.push(A>>12&63|128),x.push(A>>6&63|128),x.push(63&A|128)):x.push(239,191,189)}return new Uint8Array(x).buffer}},6371:Ee=>{"use strict";var U=Object.prototype.hasOwnProperty,S="~";function x(){}function y(T,B,N){this.fn=T,this.context=B,this.once=N||!1}function v(T,B,N,q,oe){if("function"!=typeof N)throw new TypeError("The listener must be a function");var le=new y(N,q||T,oe),ee=S?S+B:B;return T._events[ee]?T._events[ee].fn?T._events[ee]=[T._events[ee],le]:T._events[ee].push(le):(T._events[ee]=le,T._eventsCount++),T}function A(T,B){0==--T._eventsCount?T._events=new x:delete T._events[B]}function h(){this._events=new x,this._eventsCount=0}Object.create&&(x.prototype=Object.create(null),(new x).__proto__||(S=!1)),h.prototype.eventNames=function(){var N,q,B=[];if(0===this._eventsCount)return B;for(q in N=this._events)U.call(N,q)&&B.push(S?q.slice(1):q);return Object.getOwnPropertySymbols?B.concat(Object.getOwnPropertySymbols(N)):B},h.prototype.listeners=function(B){var q=this._events[S?S+B:B];if(!q)return[];if(q.fn)return[q.fn];for(var oe=0,le=q.length,ee=new Array(le);oe{},9183:(Ee,U,S)=>{"use strict";S.d(U,{D6:()=>ee,LG:()=>oe});var x=S(4438),y=S(177),v=S(6600);const A=["determinateSpinner"];function h(te,j){if(1&te&&(x.qSk(),x.j41(0,"svg",11),x.nrm(1,"circle",12),x.k0s()),2&te){const F=x.XpG();x.BMQ("viewBox",F._viewBox()),x.R7$(),x.xc7("stroke-dasharray",F._strokeCircumference(),"px")("stroke-dashoffset",F._strokeCircumference()/2,"px")("stroke-width",F._circleStrokeWidth(),"%"),x.BMQ("r",F._circleRadius())}}const T=new x.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function B(){return{diameter:N}}}),N=100;let oe=(()=>{class te{get color(){return this._color||this._defaultColor}set color(F){this._color=F}constructor(F,he,W){this._elementRef=F,this._defaultColor="primary",this._value=0,this._diameter=N,this._noopAnimations="NoopAnimations"===he&&!!W&&!W._forceAnimations,this.mode="mat-spinner"===F.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",W&&(W.color&&(this.color=this._defaultColor=W.color),W.diameter&&(this.diameter=W.diameter),W.strokeWidth&&(this.strokeWidth=W.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(F){this._value=Math.max(0,Math.min(100,F||0))}get diameter(){return this._diameter}set diameter(F){this._diameter=F||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(F){this._strokeWidth=F||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const F=2*this._circleRadius()+this.strokeWidth;return`0 0 ${F} ${F}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(he){return new(he||te)(x.rXU(x.aKT),x.rXU(x.bc$,8),x.rXU(T))}}static{this.\u0275cmp=x.VBU({type:te,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(he,W){if(1&he&&x.GBs(A,5),2&he){let ne;x.mGM(ne=x.lsd())&&(W._determinateCircle=ne.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(he,W){2&he&&(x.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===W.mode?W.value:null)("mode",W.mode),x.HbH("mat-"+W.color),x.xc7("width",W.diameter,"px")("height",W.diameter,"px")("--mdc-circular-progress-size",W.diameter+"px")("--mdc-circular-progress-active-indicator-width",W.diameter+"px"),x.AVh("_mat-animation-noopable",W._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===W.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",x.Udg],diameter:[2,"diameter","diameter",x.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",x.Udg]},exportAs:["matProgressSpinner"],standalone:!0,features:[x.GFd,x.aNF],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(he,W){if(1&he&&(x.DNE(0,h,2,8,"ng-template",null,0,x.C5r),x.j41(2,"div",2,1),x.qSk(),x.j41(4,"svg",3),x.nrm(5,"circle",4),x.k0s()(),x.joV(),x.j41(6,"div",5)(7,"div",6)(8,"div",7),x.eu8(9,8),x.k0s(),x.j41(10,"div",9),x.eu8(11,8),x.k0s(),x.j41(12,"div",10),x.eu8(13,8),x.k0s()()()),2&he){const ne=x.sdS(1);x.R7$(4),x.BMQ("viewBox",W._viewBox()),x.R7$(),x.xc7("stroke-dasharray",W._strokeCircumference(),"px")("stroke-dashoffset",W._strokeDashOffset(),"px")("stroke-width",W._circleStrokeWidth(),"%"),x.BMQ("r",W._circleRadius()),x.R7$(4),x.Y8G("ngTemplateOutlet",ne),x.R7$(2),x.Y8G("ngTemplateOutlet",ne),x.R7$(2),x.Y8G("ngTemplateOutlet",ne)}},dependencies:[y.T3],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}}return te})(),ee=(()=>{class te{static{this.\u0275fac=function(he){return new(he||te)}}static{this.\u0275mod=x.$C({type:te})}static{this.\u0275inj=x.G2t({imports:[y.MD,v.yE]})}}return te})()}}]); \ No newline at end of file diff --git a/389.ea91c43b6c028724.js b/389.ea91c43b6c028724.js deleted file mode 100644 index 8635d47..0000000 --- a/389.ea91c43b6c028724.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[389],{1146:Ee=>{"use strict";for(var N="qpzry9x8gf2tvdw0s3jn54khce6mua7l",S={},x=0;x<32;x++){var v=N.charAt(x);if(void 0!==S[v])throw new TypeError(v+" is ambiguous");S[v]=x}function y(j){var F=j>>25;return(33554431&j)<<5^996825010&-(1&F)^642813549&-(F>>1&1)^513874426&-(F>>2&1)^1027748829&-(F>>3&1)^705979059&-(F>>4&1)}function A(j){for(var F=1,he=0;he126)return"Invalid prefix ("+j+")";F=y(F)^W>>5}for(F=y(F),he=0;he(F=F||90))return"Exceeds length limit";var he=j.toLowerCase(),W=j.toUpperCase();if(j!==he&&j!==W)return"Mixed-case string "+j;var ne=(j=he).lastIndexOf("1");if(-1===ne)return"No separator character for "+j;if(0===ne)return"Missing prefix for "+j;var o=j.slice(0,ne),ae=j.slice(ne+1);if(ae.length<6)return"Data too short";var ke=A(o);if("string"==typeof ke)return ke;for(var De=[],de=0;de=ae.length)&&De.push(se)}return 1!==ke?"Invalid checksum for "+j:{prefix:o,words:De}}function q(j,F,he,W){for(var ne=0,o=0,ae=(1<=he;)ke.push(ne>>(o-=he)&ae);if(W)o>0&&ke.push(ne<=F)return"Excess padding";if(ne<(he=he||90))throw new TypeError("Exceeds length limit");var W=A(j=j.toLowerCase());if("string"==typeof W)throw new Error(W);for(var ne=j+"1",o=0;o>5)throw new Error("Non 5-bit word");W=y(W)^ae,ne+=N.charAt(ae)}for(o=0;o<6;++o)W=y(W);for(W^=1,o=0;o<6;++o)ne+=N.charAt(W>>5*(5-o)&31);return ne},toWordsUnsafe:function oe(j){var F=q(j,8,5,!0);if(Array.isArray(F))return F},toWords:function le(j){var F=q(j,8,5,!0);if(Array.isArray(F))return F;throw new Error(F)},fromWordsUnsafe:function ee(j){var F=q(j,5,8,!1);if(Array.isArray(F))return F},fromWords:function te(j){var F=q(j,5,8,!1);if(Array.isArray(F))return F;throw new Error(F)}}},7389:(Ee,N,S)=>{"use strict";S.r(N),S.d(N,{default:()=>Jc});var x={};S.r(x),S.d(x,{OG:()=>Rr,My:()=>mn,Ph:()=>At,lX:()=>Ir,Id:()=>sn,fg:()=>$i,qj:()=>xt,aT:()=>vn,lq:()=>Jt,z:()=>ji,Q5:()=>Nn});var v=S(467),y=S(5167),A=S(7403),h=S(177),T=S(9417),B=S(8834),U=S(1997),q=S(2102),oe=S(9213),le=S(9042),ee=S(9115),te=S(9183),j=S(450),F=S(4823),he=S(9192),W=S(8865),ne=S(3813),o=S(4438),ae=S(2577),ke=S(345);const De=["qrcElement"];let de=(()=>{class t{constructor(e,r){this.renderer=e,this.sanitizer=r,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new o.bkB,this.context=null}ngOnChanges(){var e=this;return(0,v.A)(function*(){yield e.createQRCode()})()}isValidQrCodeText(e){return!1===this.allowEmptyString?!(typeof e>"u"||""===e||"null"===e||null===e):!(typeof e>"u")}toDataURL(e){return new Promise((r,i)=>{(0,ae.dY)(this.qrdata,e,(s,u)=>{s?i(s):r(u)})})}toCanvas(e,r){return new Promise((i,s)=>{(0,ae.mo)(e,this.qrdata,r,u=>{u?s(u):i("success")})})}toSVG(e){return new Promise((r,i)=>{(0,ae.toString)(this.qrdata,e,(s,u)=>{s?i(s):r(u)})})}renderElement(e){for(const r of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,r);this.renderer.appendChild(this.qrcElement.nativeElement,e)}createQRCode(){var e=this;return(0,v.A)(function*(){e.version&&e.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),e.version=40):e.version&&e.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),e.version=1):void 0!==e.version&&isNaN(e.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),e.version=void 0);try{if(!e.isValidQrCodeText(e.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");e.isValidQrCodeText(e.qrdata)&&""===e.qrdata&&(e.qrdata=" ");const r={color:{dark:e.colorDark,light:e.colorLight},errorCorrectionLevel:e.errorCorrectionLevel,margin:e.margin,scale:e.scale,version:e.version,width:e.width},i=e.imageSrc,s=e.imageHeight||40,u=e.imageWidth||40;switch(e.elementType){case"canvas":{const f=e.renderer.createElement("canvas");e.context=f.getContext("2d"),e.toCanvas(f,r).then(()=>{if(e.ariaLabel&&e.renderer.setAttribute(f,"aria-label",`${e.ariaLabel}`),e.title&&e.renderer.setAttribute(f,"title",`${e.title}`),i&&e.context){e.centerImage=new Image(u,s),i!==e.centerImage.src&&(e.centerImage.crossOrigin="anonymous",e.centerImage.src=i),s!==e.centerImage.height&&(e.centerImage.height=s),u!==e.centerImage.width&&(e.centerImage.width=u);const g=e.centerImage;g&&(g.onload=()=>{e.context?.drawImage(g,f.width/2-u/2,f.height/2-s/2,u,s)})}e.renderElement(f),e.emitQRCodeURL(f)}).catch(g=>{console.error("[angularx-qrcode] canvas error:",g)});break}case"svg":{const f=e.renderer.createElement("div");e.toSVG(r).then(g=>{e.renderer.setProperty(f,"innerHTML",g);const m=f.firstChild;e.renderer.setAttribute(m,"height",`${e.width}`),e.renderer.setAttribute(m,"width",`${e.width}`),e.renderElement(m),e.emitQRCodeURL(m)}).catch(g=>{console.error("[angularx-qrcode] svg error:",g)});break}default:{const f=e.renderer.createElement("img");e.toDataURL(r).then(g=>{e.alt&&f.setAttribute("alt",e.alt),e.ariaLabel&&f.setAttribute("aria-label",e.ariaLabel),f.setAttribute("src",g),e.title&&f.setAttribute("title",e.title),e.renderElement(f),e.emitQRCodeURL(f)}).catch(g=>{console.error("[angularx-qrcode] img/url error:",g)})}}}catch(r){console.error("[angularx-qrcode] Error generating QR Code:",r.message)}})()}convertBase64ImageUrlToBlob(e){const r=e.split(";base64,"),i=r[0].split(":")[1],s=atob(r[1]),u=new Uint8Array(s.length);for(let f=0;f{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=o.$C({type:t})}static{this.\u0275inj=o.G2t({})}}return t})(),Yn=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=o.$C({type:t})}static{this.\u0275inj=o.G2t({})}}return t})();var Ge=S(1413),Pe=S(5351),kn=S(2798),Ve=S(882);S(6371);var et=S(6218),tt=S(600);function un(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function Ye(t,...n){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(n.length>0&&!n.includes(t.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${t.length}`)}const Le={number:un,bool:function nt(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:Ye,hash:function Zn(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");un(t.outputLen),un(t.blockLen)},exists:function rt(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")},output:function it(t,n){Ye(t);const e=n.outputLen;if(t.lengtht instanceof Uint8Array,hn=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Oe=(t,n)=>t<<32-n|t>>>n;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const Xn=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function Be(t){if(!fn(t))throw new Error("Uint8Array expected");let n="";for(let e=0;er+i.length,0));let e=0;return t.forEach(r=>{if(!fn(r))throw new Error("Uint8Array expected");n.set(r,e),e+=r.length}),n}class Sn{clone(){return this._cloneInto()}}function dn(t){const n=r=>t().update(je(r)).digest(),e=t();return n.outputLen=e.outputLen,n.blockLen=e.blockLen,n.create=()=>t(),n}function Zt(t=32){if(ze&&"function"==typeof ze.getRandomValues)return ze.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class Cn extends Sn{constructor(n,e,r,i){super(),this.blockLen=n,this.outputLen=e,this.padOffset=r,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(n),this.view=hn(this.buffer)}update(n){Le.exists(this);const{view:e,buffer:r,blockLen:i}=this,s=(n=je(n)).length;for(let u=0;ui-u&&(this.process(r,0),u=0);for(let k=u;k>i&s),f=Number(e&s),m=r?0:4;t.setUint32(n+(r?4:0),u,r),t.setUint32(n+m,f,r)})(r,i-8,BigInt(8*this.length),s),this.process(r,0);const f=hn(n),g=this.outputLen;if(g%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const m=g/4,M=this.get();if(m>M.length)throw new Error("_sha2: outputLen bigger than state");for(let k=0;kt&n^~t&e,In=(t,n,e)=>t&n^t&e^n&e,Rn=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]),Bt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ut=new Uint32Array(64);class gn extends Cn{constructor(){super(64,32,8,!1),this.A=0|Bt[0],this.B=0|Bt[1],this.C=0|Bt[2],this.D=0|Bt[3],this.E=0|Bt[4],this.F=0|Bt[5],this.G=0|Bt[6],this.H=0|Bt[7]}get(){const{A:n,B:e,C:r,D:i,E:s,F:u,G:f,H:g}=this;return[n,e,r,i,s,u,f,g]}set(n,e,r,i,s,u,f,g){this.A=0|n,this.B=0|e,this.C=0|r,this.D=0|i,this.E=0|s,this.F=0|u,this.G=0|f,this.H=0|g}process(n,e){for(let k=0;k<16;k++,e+=4)Ut[k]=n.getUint32(e,!1);for(let k=16;k<64;k++){const O=Ut[k-15],L=Ut[k-2],P=Oe(O,7)^Oe(O,18)^O>>>3,I=Oe(L,17)^Oe(L,19)^L>>>10;Ut[k]=I+Ut[k-7]+P+Ut[k-16]|0}let{A:r,B:i,C:s,D:u,E:f,F:g,G:m,H:M}=this;for(let k=0;k<64;k++){const L=M+(Oe(f,6)^Oe(f,11)^Oe(f,25))+Tn(f,g,m)+Rn[k]+Ut[k]|0,I=(Oe(r,2)^Oe(r,13)^Oe(r,22))+In(r,i,s)|0;M=m,m=g,g=f,f=u+L|0,u=s,s=i,i=r,r=L+I|0}r=r+this.A|0,i=i+this.B|0,s=s+this.C|0,u=u+this.D|0,f=f+this.E|0,g=g+this.F|0,m=m+this.G|0,M=M+this.H|0,this.set(r,i,s,u,f,g,m,M)}roundClean(){Ut.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Bn extends gn{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}}const Tt=dn(()=>new gn),Xt=(dn(()=>new Bn),BigInt(0),BigInt(1)),Un=BigInt(2),Qt=t=>t instanceof Uint8Array,ps=Array.from({length:256},(t,n)=>n.toString(16).padStart(2,"0"));function mn(t){if(!Qt(t))throw new Error("Uint8Array expected");let n="";for(let e=0;er+i.length,0));let e=0;return t.forEach(r=>{if(!Qt(r))throw new Error("Uint8Array expected");n.set(r,e),e+=r.length}),n}const Rr=t=>(Un<new Uint8Array(t),Di=t=>Uint8Array.from(t);function $i(t,n,e){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");if("function"!=typeof e)throw new Error("hmacFn must be a function");let r=Br(t),i=Br(t),s=0;const u=()=>{r.fill(1),i.fill(0),s=0},f=(...k)=>e(i,r,...k),g=(k=Br())=>{i=f(Di([0]),k),r=f(),0!==k.length&&(i=f(Di([1]),k),r=f())},m=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let k=0;const O=[];for(;k{let L;for(u(),g(k);!(L=O(m()));)g();return u(),L}}const vs={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,n)=>n.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function Nn(t,n,e={}){const r=(i,s,u)=>{const f=vs[s];if("function"!=typeof f)throw new Error(`Invalid validator "${s}", expected function`);const g=t[i];if(!(u&&void 0===g||f(g,t)))throw new Error(`Invalid param ${String(i)}=${g} (${typeof g}), expected ${s}`)};for(const[i,s]of Object.entries(n))r(i,s,!1);for(const[i,s]of Object.entries(e))r(i,s,!0);return t}const bt=BigInt(0),qe=BigInt(1),en=BigInt(2),ys=BigInt(3),Ur=BigInt(4),Fi=BigInt(5),qi=BigInt(8);function _t(t,n){const e=t%n;return e>=bt?e:n+e}function _s(t,n,e){if(e<=bt||n 0");if(e===qe)return bt;let r=qe;for(;n>bt;)n&qe&&(r=r*t%e),t=t*t%e,n>>=qe;return r}function Nt(t,n,e){let r=t;for(;n-- >bt;)r*=r,r%=e;return r}function rr(t,n){if(t===bt||n<=bt)throw new Error(`invert: expected positive integers, got n=${t} mod=${n}`);let e=_t(t,n),r=n,i=bt,s=qe,u=qe,f=bt;for(;e!==bt;){const m=r/e,M=r%e,k=i-u*m,O=s-f*m;r=e,e=M,i=u,s=f,u=k,f=O}if(r!==qe)throw new Error("invert: does not exist");return _t(i,n)}BigInt(9),BigInt(16);const Ms=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Nr(t,n){const e=void 0!==n?n:t.toString(2).length;return{nBitLength:e,nByteLength:Math.ceil(e/8)}}const Is=BigInt(0),Pr=BigInt(1);function Gi(t){return function ks(t){Nn(t,Ms.reduce((r,i)=>(r[i]="function",r),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(t.Fp),Nn(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Nr(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}const{Ph:Us,aT:Ns}=x,an={Err:class extends Error{constructor(n=""){super(n)}},_parseInt(t){const{Err:n}=an;if(t.length<2||2!==t[0])throw new n("Invalid signature integer tag");const e=t[1],r=t.subarray(2,e+2);if(!e||r.length!==e)throw new n("Invalid signature integer: wrong length");if(128&r[0])throw new n("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:Us(r),l:t.subarray(e+2)}},toSig(t){const{Err:n}=an,e="string"==typeof t?Ns(t):t;if(!(e instanceof Uint8Array))throw new Error("ui8a expected");let r=e.length;if(r<2||48!=e[0])throw new n("Invalid signature tag");if(e[1]!==r-2)throw new n("Invalid signature: incorrect length");const{d:i,l:s}=an._parseInt(e.subarray(2)),{d:u,l:f}=an._parseInt(s);if(f.length)throw new n("Invalid signature: left bytes after parsing");return{r:i,s:u}},hexFromSig(t){const n=m=>8&Number.parseInt(m[0],16)?"00"+m:m,e=m=>{const M=m.toString(16);return 1&M.length?`0${M}`:M},r=n(e(t.s)),i=n(e(t.r)),s=r.length/2,u=i.length/2,f=e(s),g=e(u);return`30${e(u+s+4)}02${g}${i}02${f}${r}`}},Ot=BigInt(0),st=BigInt(1),ir=(BigInt(2),BigInt(3));function Os(t){const n=function Ls(t){const n=Gi(t);return Nn(n,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...n})}(t),{Fp:e,n:r}=n,i=e.BYTES+1,s=2*e.BYTES+1;function f(z){return _t(z,r)}function g(z){return rr(z,r)}const{ProjectivePoint:m,normPrivateKeyToScalar:M,weierstrassEquation:k,isWithinCurveOrder:O}=function Ps(t){const n=function Bs(t){const n=Gi(t);Nn(n,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:e,Fp:r,a:i}=n;if(e){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof e||"bigint"!=typeof e.beta||"function"!=typeof e.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...n})}(t),{Fp:e}=n,r=n.toBytes||((P,I,D)=>{const $=I.toAffine();return sn(Uint8Array.from([4]),e.toBytes($.x),e.toBytes($.y))}),i=n.fromBytes||(P=>{const I=P.subarray(1);return{x:e.fromBytes(I.subarray(0,e.BYTES)),y:e.fromBytes(I.subarray(e.BYTES,2*e.BYTES))}});function s(P){const{a:I,b:D}=n,$=e.sqr(P),H=e.mul($,P);return e.add(e.add(H,e.mul(P,I)),D)}if(!e.eql(e.sqr(n.Gy),s(n.Gx)))throw new Error("bad generator point: equation left != right");function u(P){return"bigint"==typeof P&&Ote.eql(Z,e.ZERO);return H(D)&&H($)?k.ZERO:new k(D,$,e.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(I){const D=e.invertBatch(I.map($=>$.pz));return I.map(($,H)=>$.toAffine(D[H])).map(k.fromAffine)}static fromHex(I){const D=k.fromAffine(i(xt("pointHex",I)));return D.assertValidity(),D}static fromPrivateKey(I){return k.BASE.multiply(g(I))}_setWindowSize(I){this._WINDOW_SIZE=I,m.delete(this)}assertValidity(){if(this.is0()){if(n.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:I,y:D}=this.toAffine();if(!e.isValid(I)||!e.isValid(D))throw new Error("bad point: x or y not FE");const $=e.sqr(D),H=s(I);if(!e.eql($,H))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:I}=this.toAffine();if(e.isOdd)return!e.isOdd(I);throw new Error("Field doesn't support isOdd")}equals(I){M(I);const{px:D,py:$,pz:H}=this,{px:Z,py:V,pz:J}=I,G=e.eql(e.mul(D,J),e.mul(Z,H)),Y=e.eql(e.mul($,J),e.mul(V,H));return G&&Y}negate(){return new k(this.px,e.neg(this.py),this.pz)}double(){const{a:I,b:D}=n,$=e.mul(D,ir),{px:H,py:Z,pz:V}=this;let J=e.ZERO,G=e.ZERO,Y=e.ZERO,Q=e.mul(H,H),X=e.mul(Z,Z),pe=e.mul(V,V),ie=e.mul(H,Z);return ie=e.add(ie,ie),Y=e.mul(H,V),Y=e.add(Y,Y),J=e.mul(I,Y),G=e.mul($,pe),G=e.add(J,G),J=e.sub(X,G),G=e.add(X,G),G=e.mul(J,G),J=e.mul(ie,J),Y=e.mul($,Y),pe=e.mul(I,pe),ie=e.sub(Q,pe),ie=e.mul(I,ie),ie=e.add(ie,Y),Y=e.add(Q,Q),Q=e.add(Y,Q),Q=e.add(Q,pe),Q=e.mul(Q,ie),G=e.add(G,Q),pe=e.mul(Z,V),pe=e.add(pe,pe),Q=e.mul(pe,ie),J=e.sub(J,Q),Y=e.mul(pe,X),Y=e.add(Y,Y),Y=e.add(Y,Y),new k(J,G,Y)}add(I){M(I);const{px:D,py:$,pz:H}=this,{px:Z,py:V,pz:J}=I;let G=e.ZERO,Y=e.ZERO,Q=e.ZERO;const X=n.a,pe=e.mul(n.b,ir);let ie=e.mul(D,Z),ye=e.mul($,V),_e=e.mul(H,J),Ae=e.add(D,$),z=e.add(Z,V);Ae=e.mul(Ae,z),z=e.add(ie,ye),Ae=e.sub(Ae,z),z=e.add(D,H);let K=e.add(Z,J);return z=e.mul(z,K),K=e.add(ie,_e),z=e.sub(z,K),K=e.add($,H),G=e.add(V,J),K=e.mul(K,G),G=e.add(ye,_e),K=e.sub(K,G),Q=e.mul(X,z),G=e.mul(pe,_e),Q=e.add(G,Q),G=e.sub(ye,Q),Q=e.add(ye,Q),Y=e.mul(G,Q),ye=e.add(ie,ie),ye=e.add(ye,ie),_e=e.mul(X,_e),z=e.mul(pe,z),ye=e.add(ye,_e),_e=e.sub(ie,_e),_e=e.mul(X,_e),z=e.add(z,_e),ie=e.mul(ye,z),Y=e.add(Y,ie),ie=e.mul(K,z),G=e.mul(Ae,G),G=e.sub(G,ie),ie=e.mul(Ae,ye),Q=e.mul(K,Q),Q=e.add(Q,ie),new k(G,Y,Q)}subtract(I){return this.add(I.negate())}is0(){return this.equals(k.ZERO)}wNAF(I){return L.wNAFCached(this,m,I,D=>{const $=e.invertBatch(D.map(H=>H.pz));return D.map((H,Z)=>H.toAffine($[Z])).map(k.fromAffine)})}multiplyUnsafe(I){const D=k.ZERO;if(I===Ot)return D;if(f(I),I===st)return this;const{endo:$}=n;if(!$)return L.unsafeLadder(this,I);let{k1neg:H,k1:Z,k2neg:V,k2:J}=$.splitScalar(I),G=D,Y=D,Q=this;for(;Z>Ot||J>Ot;)Z&st&&(G=G.add(Q)),J&st&&(Y=Y.add(Q)),Q=Q.double(),Z>>=st,J>>=st;return H&&(G=G.negate()),V&&(Y=Y.negate()),Y=new k(e.mul(Y.px,$.beta),Y.py,Y.pz),G.add(Y)}multiply(I){f(I);let $,H,D=I;const{endo:Z}=n;if(Z){const{k1neg:V,k1:J,k2neg:G,k2:Y}=Z.splitScalar(D);let{p:Q,f:X}=this.wNAF(J),{p:pe,f:ie}=this.wNAF(Y);Q=L.constTimeNegate(V,Q),pe=L.constTimeNegate(G,pe),pe=new k(e.mul(pe.px,Z.beta),pe.py,pe.pz),$=Q.add(pe),H=X.add(ie)}else{const{p:V,f:J}=this.wNAF(D);$=V,H=J}return k.normalizeZ([$,H])[0]}multiplyAndAddUnsafe(I,D,$){const H=k.BASE,Z=(J,G)=>G!==Ot&&G!==st&&J.equals(H)?J.multiply(G):J.multiplyUnsafe(G),V=Z(this,D).add(Z(I,$));return V.is0()?void 0:V}toAffine(I){const{px:D,py:$,pz:H}=this,Z=this.is0();null==I&&(I=Z?e.ONE:e.inv(H));const V=e.mul(D,I),J=e.mul($,I),G=e.mul(H,I);if(Z)return{x:e.ZERO,y:e.ZERO};if(!e.eql(G,e.ONE))throw new Error("invZ was invalid");return{x:V,y:J}}isTorsionFree(){const{h:I,isTorsionFree:D}=n;if(I===st)return!0;if(D)return D(k,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:I,clearCofactor:D}=n;return I===st?this:D?D(k,this):this.multiplyUnsafe(n.h)}toRawBytes(I=!0){return this.assertValidity(),r(k,this,I)}toHex(I=!0){return mn(this.toRawBytes(I))}}k.BASE=new k(n.Gx,n.Gy,e.ONE),k.ZERO=new k(e.ZERO,e.ONE,e.ZERO);const O=n.nBitLength,L=function Rs(t,n){const e=(i,s)=>{const u=s.negate();return i?u:s},r=i=>({windows:Math.ceil(n/i)+1,windowSize:2**(i-1)});return{constTimeNegate:e,unsafeLadder(i,s){let u=t.ZERO,f=i;for(;s>Is;)s&Pr&&(u=u.add(f)),f=f.double(),s>>=Pr;return u},precomputeWindow(i,s){const{windows:u,windowSize:f}=r(s),g=[];let m=i,M=m;for(let k=0;k>=L,D>g&&(D-=O,u+=Pr);const $=I,H=I+Math.abs(D)-1,V=D<0;0===D?M=M.add(e(P%2!=0,s[$])):m=m.add(e(V,s[H]))}return{p:m,f:M}},wNAFCached(i,s,u,f){const g=i._WINDOW_SIZE||1;let m=s.get(i);return m||(m=this.precomputeWindow(i,g),1!==g&&s.set(i,f(m))),this.wNAF(g,m,u)}}}(k,n.endo?Math.ceil(O/2):O);return{CURVE:n,ProjectivePoint:k,normPrivateKeyToScalar:g,weierstrassEquation:s,isWithinCurveOrder:u}}({...n,toBytes(z,K,fe){const be=K.toAffine(),re=e.toBytes(be.x),Me=sn;return fe?Me(Uint8Array.from([K.hasEvenY()?2:3]),re):Me(Uint8Array.from([4]),re,e.toBytes(be.y))},fromBytes(z){const K=z.length,fe=z[0],be=z.subarray(1);if(K!==i||2!==fe&&3!==fe){if(K===s&&4===fe)return{x:e.fromBytes(be.subarray(0,e.BYTES)),y:e.fromBytes(be.subarray(e.BYTES,2*e.BYTES))};throw new Error(`Point of length ${K} was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`)}{const re=At(be);if(!function u(z){return Otmn(Jt(z,n.nByteLength));function P(z){return z>r>>st}const D=(z,K,fe)=>At(z.slice(K,fe));class ${constructor(K,fe,be){this.r=K,this.s=fe,this.recovery=be,this.assertValidity()}static fromCompact(K){const fe=n.nByteLength;return K=xt("compactSignature",K,2*fe),new $(D(K,0,fe),D(K,fe,2*fe))}static fromDER(K){const{r:fe,s:be}=an.toSig(xt("DER",K));return new $(fe,be)}assertValidity(){if(!O(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!O(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(K){return new $(this.r,this.s,K)}recoverPublicKey(K){const{r:fe,s:be,recovery:re}=this,Me=Y(xt("msgHash",K));if(null==re||![0,1,2,3].includes(re))throw new Error("recovery id invalid");const Re=2===re||3===re?fe+n.n:fe;if(Re>=e.ORDER)throw new Error("recovery id 2 or 3 invalid");const Et=m.fromHex((1&re?"03":"02")+L(Re)),kt=g(Re),Rt=f(-Me*kt),Lt=f(be*kt),St=m.BASE.multiplyAndAddUnsafe(Et,Rt,Lt);if(!St)throw new Error("point at infinify");return St.assertValidity(),St}hasHighS(){return P(this.s)}normalizeS(){return this.hasHighS()?new $(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return vn(this.toDERHex())}toDERHex(){return an.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return vn(this.toCompactHex())}toCompactHex(){return L(this.r)+L(this.s)}}const H={isValidPrivateKey(z){try{return M(z),!0}catch{return!1}},normPrivateKeyToScalar:M,randomPrivateKey:()=>{const K=function Ts(t,n,e=!1){const r=(t=xt("privateHash",t)).length,i=Nr(n).nByteLength+8;if(i<24||r1024)throw new Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${r}`);return _t(e?Ir(t):At(t),n-qe)+qe}(n.randomBytes(e.BYTES+8),r);return Jt(K,n.nByteLength)},precompute:(z=8,K=m.BASE)=>(K._setWindowSize(z),K.multiply(BigInt(3)),K)};function V(z){const K=z instanceof Uint8Array,fe="string"==typeof z,be=(K||fe)&&z.length;return K?be===i||be===s:fe?be===2*i||be===2*s:z instanceof m}const G=n.bits2int||function(z){const K=At(z),fe=8*z.length-n.nBitLength;return fe>0?K>>BigInt(fe):K},Y=n.bits2int_modN||function(z){return f(G(z))},Q=Rr(n.nBitLength);function X(z){if("bigint"!=typeof z)throw new Error("bigint expected");if(!(Ot<=z&&zCt in fe))throw new Error("sign() legacy options not supported");const{hash:be,randomBytes:re}=n;let{lowS:Me,prehash:Re,extraEntropy:Ie}=fe;null==Me&&(Me=!0),z=xt("msgHash",z),Re&&(z=xt("prehashed msgHash",be(z)));const Et=Y(z),kt=M(K),Rt=[X(kt),X(Et)];if(null!=Ie){const Ct=!0===Ie?re(e.BYTES):Ie;Rt.push(xt("extraEntropy",Ct,e.BYTES))}const Lt=sn(...Rt),St=Et;return{seed:Lt,k2sig:function Gt(Ct){const xn=G(Ct);if(!O(xn))return;const hs=g(xn),zt=m.BASE.multiply(xn).toAffine(),Mn=f(zt.x);if(Mn===Ot)return;const Sr=f(hs*f(St+Mn*kt));if(Sr===Ot)return;let ds=(zt.x===Mn?0:2)|Number(zt.y&st),gs=Sr;return Me&&P(Sr)&&(gs=function I(z){return P(z)?f(-z):z}(Sr),ds^=1),new $(Mn,gs,ds)}}}(z,K,fe);return $i(n.hash.outputLen,n.nByteLength,n.hmac)(be,re)},verify:function Ae(z,K,fe,be=ye){const re=z;if(K=xt("msgHash",K),fe=xt("publicKey",fe),"strict"in be)throw new Error("options.strict was renamed to lowS");const{lowS:Me,prehash:Re}=be;let Ie,Et;try{if("string"==typeof re||re instanceof Uint8Array)try{Ie=$.fromDER(re)}catch(zt){if(!(zt instanceof an.Err))throw zt;Ie=$.fromCompact(re)}else{if("object"!=typeof re||"bigint"!=typeof re.r||"bigint"!=typeof re.s)throw new Error("PARSE");{const{r:zt,s:Mn}=re;Ie=new $(zt,Mn)}}Et=m.fromHex(fe)}catch(zt){if("PARSE"===zt.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(Me&&Ie.hasHighS())return!1;Re&&(K=n.hash(K));const{r:kt,s:Rt}=Ie,Lt=Y(K),St=g(Rt),Gt=f(Lt*St),Ct=f(kt*St),xn=m.BASE.multiplyAndAddUnsafe(Et,Gt,Ct)?.toAffine();return!!xn&&f(xn.x)===kt},ProjectivePoint:m,Signature:$,utils:H}}BigInt(4);class Hi extends Sn{constructor(n,e){super(),this.finished=!1,this.destroyed=!1,Le.hash(n);const r=je(e);if(this.iHash=n.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?n.create().update(r).digest():r);for(let u=0;unew Hi(t,n).update(e).digest();function zs(t){return{hash:t,hmac:(n,...e)=>yn(t,n,Fe(...e)),randomBytes:Zt}}yn.create=(t,n)=>new Hi(t,n);const or=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),sr=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Vi=BigInt(1),ar=BigInt(2),Yi=(t,n)=>(t+n/ar)/n;function Ki(t){const n=or,e=BigInt(3),r=BigInt(6),i=BigInt(11),s=BigInt(22),u=BigInt(23),f=BigInt(44),g=BigInt(88),m=t*t*t%n,M=m*m*t%n,k=Nt(M,e,n)*M%n,O=Nt(k,e,n)*M%n,L=Nt(O,ar,n)*m%n,P=Nt(L,i,n)*L%n,I=Nt(P,s,n)*P%n,D=Nt(I,f,n)*I%n,$=Nt(D,g,n)*D%n,H=Nt($,f,n)*I%n,Z=Nt(H,e,n)*M%n,V=Nt(Z,u,n)*P%n,J=Nt(V,r,n)*m%n,G=Nt(J,ar,n);if(!Or.eql(Or.sqr(G),t))throw new Error("Cannot find square root");return G}const Or=function Cs(t,n,e=!1,r={}){if(t<=bt)throw new Error(`Expected Fp ORDER > 0, got ${t}`);const{nBitLength:i,nByteLength:s}=Nr(t,n);if(s>2048)throw new Error("Field lengths over 2048 bytes are not supported");const u=function xs(t){if(t%Ur===ys){const n=(t+qe)/Ur;return function(r,i){const s=r.pow(i,n);if(!r.eql(r.sqr(s),i))throw new Error("Cannot find square root");return s}}if(t%qi===Fi){const n=(t-Fi)/qi;return function(r,i){const s=r.mul(i,en),u=r.pow(s,n),f=r.mul(i,u),g=r.mul(r.mul(f,en),u),m=r.mul(f,r.sub(g,r.ONE));if(!r.eql(r.sqr(m),i))throw new Error("Cannot find square root");return m}}return function Es(t){const n=(t-qe)/en;let e,r,i;for(e=t-qe,r=0;e%en===bt;e/=en,r++);for(i=en;i_t(g,t),isValid:g=>{if("bigint"!=typeof g)throw new Error("Invalid field element: expected bigint, got "+typeof g);return bt<=g&&gg===bt,isOdd:g=>(g&qe)===qe,neg:g=>_t(-g,t),eql:(g,m)=>g===m,sqr:g=>_t(g*g,t),add:(g,m)=>_t(g+m,t),sub:(g,m)=>_t(g-m,t),mul:(g,m)=>_t(g*m,t),pow:(g,m)=>function Ss(t,n,e){if(e 0");if(e===bt)return t.ONE;if(e===qe)return n;let r=t.ONE,i=n;for(;e>bt;)e&qe&&(r=t.mul(r,i)),i=t.sqr(i),e>>=qe;return r}(f,g,m),div:(g,m)=>_t(g*rr(m,t),t),sqrN:g=>g*g,addN:(g,m)=>g+m,subN:(g,m)=>g-m,mulN:(g,m)=>g*m,inv:g=>rr(g,t),sqrt:r.sqrt||(g=>u(f,g)),invertBatch:g=>function As(t,n){const e=new Array(n.length),r=n.reduce((s,u,f)=>t.is0(u)?s:(e[f]=s,t.mul(s,u)),t.ONE),i=t.inv(r);return n.reduceRight((s,u,f)=>t.is0(u)?s:(e[f]=t.mul(s,e[f]),t.mul(s,u)),i),e}(f,g),cmov:(g,m,M)=>M?m:g,toBytes:g=>e?ji(g,s):Jt(g,s),fromBytes:g=>{if(g.length!==s)throw new Error(`Fp.fromBytes: expected ${s}, got ${g.length}`);return e?Ir(g):At(g)}});return Object.freeze(f)}(or,void 0,void 0,{sqrt:Ki}),wn=function Ws(t,n){const e=r=>Os({...t,...zs(r)});return Object.freeze({...e(n),create:e})}({a:BigInt(0),b:BigInt(7),Fp:Or,n:sr,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const n=sr,e=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Vi*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=e,u=BigInt("0x100000000000000000000000000000000"),f=Yi(s*t,n),g=Yi(-r*t,n);let m=_t(t-f*e-g*i,n),M=_t(-f*r-g*s,n);const k=m>u,O=M>u;if(k&&(m=n-m),O&&(M=n-M),m>u||M>u)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:k,k1:m,k2neg:O,k2:M}}}},Tt),lr=BigInt(0),Zi=t=>"bigint"==typeof t&&lri.charCodeAt(0)));e=sn(r,r),Xi[t]=e}return Tt(sn(e,...n))}const jr=t=>t.toRawBytes(!0).slice(1),Dr=t=>Jt(t,32),$r=t=>_t(t,or),Ln=t=>_t(t,sr),Fr=wn.ProjectivePoint;function qr(t){let n=wn.utils.normPrivateKeyToScalar(t),e=Fr.fromPrivateKey(n);return{scalar:e.hasEvenY()?n:Ln(-n),bytes:jr(e)}}function Qi(t){if(!Zi(t))throw new Error("bad x: need 0 < x < p");const n=$r(t*t);let r=Ki($r(n*t+BigInt(7)));r%ar!==lr&&(r=$r(-r));const i=new Fr(t,r,Vi);return i.assertValidity(),i}function Ji(...t){return Ln(At(cr("BIP0340/challenge",...t)))}function eo(t,n,e){const r=xt("signature",t,64),i=xt("message",n),s=xt("publicKey",e,32);try{const u=Qi(At(s)),f=At(r.subarray(0,32));if(!Zi(f))return!1;const g=At(r.subarray(32,64));if(!(t=>"bigint"==typeof t&&lrFr.BASE.multiplyAndAddUnsafe(t,n,e))(u,g,Ln(-m));return!(!M||!M.hasEvenY()||M.toAffine().x!==f)}catch{return!1}}const bn={getPublicKey:function Ys(t){return qr(t).bytes},sign:function Ks(t,n,e=Zt(32)){const r=xt("message",t),{bytes:i,scalar:s}=qr(n),u=xt("auxRand",e,32),f=Dr(s^At(cr("BIP0340/aux",u))),g=cr("BIP0340/nonce",f,i,r),m=Ln(At(g));if(m===lr)throw new Error("sign failed: k is zero");const{bytes:M,scalar:k}=qr(m),O=Ji(M,i,r),L=new Uint8Array(64);if(L.set(M,0),L.set(Dr(Ln(k+O*s)),32),!eo(L,r,i))throw new Error("sign: Invalid signature produced");return L},verify:eo,utils:{randomPrivateKey:wn.utils.randomPrivateKey,lift_x:Qi,pointToBytes:jr,numberToBytesBE:Jt,bytesToNumberBE:At,taggedHash:cr,mod:_t}};function ln(t){if(!Number.isSafeInteger(t))throw new Error(`Wrong integer: ${t}`)}function jt(...t){const n=(i,s)=>u=>i(s(u));return{encode:Array.from(t).reverse().reduce((i,s)=>i?n(i,s.encode):s.encode,void 0),decode:t.reduce((i,s)=>i?n(i,s.decode):s.decode,void 0)}}function Dt(t){return{encode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("alphabet.encode input should be an array of numbers");return n.map(e=>{if(ln(e),e<0||e>=t.length)throw new Error(`Digit index outside alphabet: ${e} (alphabet: ${t.length})`);return t[e]})},decode:n=>{if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("alphabet.decode input should be array of strings");return n.map(e=>{if("string"!=typeof e)throw new Error(`alphabet.decode: not string element=${e}`);const r=t.indexOf(e);if(-1===r)throw new Error(`Unknown letter: "${e}". Allowed: ${t}`);return r})}}}function $t(t=""){if("string"!=typeof t)throw new Error("join separator should be string");return{encode:n=>{if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("join.encode input should be array of strings");for(let e of n)if("string"!=typeof e)throw new Error(`join.encode: non-string input=${e}`);return n.join(t)},decode:n=>{if("string"!=typeof n)throw new Error("join.decode input should be string");return n.split(t)}}}function On(t,n="="){if(ln(t),"string"!=typeof n)throw new Error("padding chr should be string");return{encode(e){if(!Array.isArray(e)||e.length&&"string"!=typeof e[0])throw new Error("padding.encode input should be array of strings");for(let r of e)if("string"!=typeof r)throw new Error(`padding.encode: non-string input=${r}`);for(;e.length*t%8;)e.push(n);return e},decode(e){if(!Array.isArray(e)||e.length&&"string"!=typeof e[0])throw new Error("padding.encode input should be array of strings");for(let i of e)if("string"!=typeof i)throw new Error(`padding.decode: non-string input=${i}`);let r=e.length;if(r*t%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;r>0&&e[r-1]===n;r--)if(!((r-1)*t%8))throw new Error("Invalid padding: string has too much padding");return e.slice(0,r)}}}function to(t){if("function"!=typeof t)throw new Error("normalize fn should be function");return{encode:n=>n,decode:n=>t(n)}}function no(t,n,e){if(n<2)throw new Error(`convertRadix: wrong from=${n}, base cannot be less than 2`);if(e<2)throw new Error(`convertRadix: wrong to=${e}, 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;const i=[],s=Array.from(t);for(s.forEach(u=>{if(ln(u),u<0||u>=n)throw new Error(`Wrong integer: ${u}`)});;){let u=0,f=!0;for(let g=r;gn?ro(n,t%n):t,ur=(t,n)=>t+(n-ro(t,n));function Gr(t,n,e,r){if(!Array.isArray(t))throw new Error("convertRadix2: data should be array");if(n<=0||n>32)throw new Error(`convertRadix2: wrong from=${n}`);if(e<=0||e>32)throw new Error(`convertRadix2: wrong to=${e}`);if(ur(n,e)>32)throw new Error(`convertRadix2: carry overflow from=${n} to=${e} carryBits=${ur(n,e)}`);let i=0,s=0;const u=2**e-1,f=[];for(const g of t){if(ln(g),g>=2**n)throw new Error(`convertRadix2: invalid data word=${g} from=${n}`);if(i=i<32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${n}`);for(s+=n;s>=e;s-=e)f.push((i>>s-e&u)>>>0);i&=2**s-1}if(i=i<=n)throw new Error("Excess padding");if(!r&&i)throw new Error(`Non-zero padding: ${i}`);return r&&s>0&&f.push(i>>>0),f}function Wt(t,n=!1){if(ln(t),t<=0||t>32)throw new Error("radix2: bits should be in (0..32]");if(ur(8,t)>32||ur(t,8)>32)throw new Error("radix2: carry overflow");return{encode:e=>{if(!(e instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Gr(Array.from(e),8,t,!n)},decode:e=>{if(!Array.isArray(e)||e.length&&"number"!=typeof e[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Gr(e,t,8,n))}}}function oo(t){if("function"!=typeof t)throw new Error("unsafeWrapper fn should be function");return function(...n){try{return t.apply(null,n)}catch{}}}jt(Wt(4),Dt("0123456789ABCDEF"),$t("")),jt(Wt(5),Dt("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),On(5),$t(""));const Ht=(jt(Wt(5),Dt("0123456789ABCDEFGHIJKLMNOPQRSTUV"),On(5),$t("")),jt(Wt(5),Dt("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),$t(""),to(t=>t.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),jt(Wt(6),Dt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),On(6),$t(""))),zr=(jt(Wt(6),Dt("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),On(6),$t("")),t=>jt(function io(t){return ln(t),{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return no(Array.from(n),256,t)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(no(n,t,256))}}}(58),Dt(t),$t(""))),Wr=(zr("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),zr("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),zr("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),jt(Dt("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),$t(""))),lo=[996825010,642813549,513874426,1027748829,705979059];function jn(t){const n=t>>25;let e=(33554431&t)<<5;for(let r=0;r>r&1)&&(e^=lo[r]);return e}function co(t,n,e=1){const r=t.length;let i=1;for(let s=0;s126)throw new Error(`Invalid prefix (${t})`);i=jn(i)^u>>5}i=jn(i);for(let s=0;sk)throw new TypeError(`Wrong string length: ${M.length} (${M}). Expected (8..${k})`);const O=M.toLowerCase();if(M!==O&&M!==M.toUpperCase())throw new Error("String must be lowercase or uppercase");const L=(M=O).lastIndexOf("1");if(0===L||-1===L)throw new Error('Letter "1" must be present between prefix and data only');const P=M.slice(0,L),I=M.slice(L+1);if(I.length<6)throw new Error("Data must be at least 6 characters long");const D=Wr.decode(I).slice(0,-6),$=co(P,D,n);if(!I.endsWith($))throw new Error(`Invalid checksum in ${M}: expected "${$}"`);return{prefix:P,words:D}}return{encode:function u(M,k,O=90){if("string"!=typeof M)throw new Error("bech32.encode prefix should be string, not "+typeof M);if(!Array.isArray(k)||k.length&&"number"!=typeof k[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof k);const L=M.length+7+k.length;if(!1!==O&&L>O)throw new TypeError(`Length ${L} exceeds limit ${O}`);return`${M=M.toLowerCase()}1${Wr.encode(k)}${co(M,k,n)}`},decode:f,decodeToBytes:function m(M){const{prefix:k,words:O}=f(M,!1);return{prefix:k,words:O,bytes:r(O)}},decodeUnsafe:oo(f),fromWords:r,fromWordsUnsafe:s,toWords:i}}const _n=uo("bech32");uo("bech32m"),jt(Wt(4),Dt("0123456789abcdef"),$t(""),to(t=>{if("string"!=typeof t||t.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof t} with length ${t.length}`);return t.toLowerCase()}));var ho=S(5693),Hr=S(9673),na=S(9608);const Ft=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4));if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Kr(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}function Zr(t){if("string"==typeof t&&(t=Kr(t)),!(t=>t instanceof Uint8Array)(t))throw new Error("expected Uint8Array, got "+typeof t);return t}function Xr(t,n){if(!(t instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof n&&t.length!==n)throw new Error(`Uint8Array length ${n} expected`)}function Qr(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function go(t,...n){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(n.length>0&&!n.includes(t.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${t.length}`)}const It={number:Qr,bool:function la(t){if("boolean"!=typeof t)throw new Error(`Expected boolean, not ${t}`)},bytes:go,hash:function ca(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("hash must be wrapped by utils.wrapConstructor");Qr(t.outputLen),Qr(t.blockLen)},exists:function ua(t,n=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(n&&t.finished)throw new Error("Hash#digest() has already been called")},output:function fa(t,n){go(t);const e=n.outputLen;if(t.length255&t[n++]|(255&t[n++])<<8;class ha{constructor(n){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,Xr(n=Zr(n),32);const e=Mt(n,0),r=Mt(n,2),i=Mt(n,4),s=Mt(n,6),u=Mt(n,8),f=Mt(n,10),g=Mt(n,12),m=Mt(n,14);this.r[0]=8191&e,this.r[1]=8191&(e>>>13|r<<3),this.r[2]=7939&(r>>>10|i<<6),this.r[3]=8191&(i>>>7|s<<9),this.r[4]=255&(s>>>4|u<<12),this.r[5]=u>>>1&8190,this.r[6]=8191&(u>>>14|f<<2),this.r[7]=8065&(f>>>11|g<<5),this.r[8]=8191&(g>>>8|m<<8),this.r[9]=m>>>5&127;for(let M=0;M<8;M++)this.pad[M]=Mt(n,16+2*M)}process(n,e,r=!1){const i=r?0:2048,{h:s,r:u}=this,f=u[0],g=u[1],m=u[2],M=u[3],k=u[4],O=u[5],L=u[6],P=u[7],I=u[8],D=u[9],$=Mt(n,e+0),H=Mt(n,e+2),Z=Mt(n,e+4),V=Mt(n,e+6),J=Mt(n,e+8),G=Mt(n,e+10),Y=Mt(n,e+12),Q=Mt(n,e+14);let X=s[0]+(8191&$),pe=s[1]+(8191&($>>>13|H<<3)),ie=s[2]+(8191&(H>>>10|Z<<6)),ye=s[3]+(8191&(Z>>>7|V<<9)),_e=s[4]+(8191&(V>>>4|J<<12)),Ae=s[5]+(J>>>1&8191),z=s[6]+(8191&(J>>>14|G<<2)),K=s[7]+(8191&(G>>>11|Y<<5)),fe=s[8]+(8191&(Y>>>8|Q<<8)),be=s[9]+(Q>>>5|i),re=0,Me=re+X*f+pe*(5*D)+ie*(5*I)+ye*(5*P)+_e*(5*L);re=Me>>>13,Me&=8191,Me+=Ae*(5*O)+z*(5*k)+K*(5*M)+fe*(5*m)+be*(5*g),re+=Me>>>13,Me&=8191;let Re=re+X*g+pe*f+ie*(5*D)+ye*(5*I)+_e*(5*P);re=Re>>>13,Re&=8191,Re+=Ae*(5*L)+z*(5*O)+K*(5*k)+fe*(5*M)+be*(5*m),re+=Re>>>13,Re&=8191;let Ie=re+X*m+pe*g+ie*f+ye*(5*D)+_e*(5*I);re=Ie>>>13,Ie&=8191,Ie+=Ae*(5*P)+z*(5*L)+K*(5*O)+fe*(5*k)+be*(5*M),re+=Ie>>>13,Ie&=8191;let Et=re+X*M+pe*m+ie*g+ye*f+_e*(5*D);re=Et>>>13,Et&=8191,Et+=Ae*(5*I)+z*(5*P)+K*(5*L)+fe*(5*O)+be*(5*k),re+=Et>>>13,Et&=8191;let kt=re+X*k+pe*M+ie*m+ye*g+_e*f;re=kt>>>13,kt&=8191,kt+=Ae*(5*D)+z*(5*I)+K*(5*P)+fe*(5*L)+be*(5*O),re+=kt>>>13,kt&=8191;let Rt=re+X*O+pe*k+ie*M+ye*m+_e*g;re=Rt>>>13,Rt&=8191,Rt+=Ae*f+z*(5*D)+K*(5*I)+fe*(5*P)+be*(5*L),re+=Rt>>>13,Rt&=8191;let Lt=re+X*L+pe*O+ie*k+ye*M+_e*m;re=Lt>>>13,Lt&=8191,Lt+=Ae*g+z*f+K*(5*D)+fe*(5*I)+be*(5*P),re+=Lt>>>13,Lt&=8191;let St=re+X*P+pe*L+ie*O+ye*k+_e*M;re=St>>>13,St&=8191,St+=Ae*m+z*g+K*f+fe*(5*D)+be*(5*I),re+=St>>>13,St&=8191;let Gt=re+X*I+pe*P+ie*L+ye*O+_e*k;re=Gt>>>13,Gt&=8191,Gt+=Ae*M+z*m+K*g+fe*f+be*(5*D),re+=Gt>>>13,Gt&=8191;let Ct=re+X*D+pe*I+ie*P+ye*L+_e*O;re=Ct>>>13,Ct&=8191,Ct+=Ae*k+z*M+K*m+fe*g+be*f,re+=Ct>>>13,Ct&=8191,re=(re<<2)+re|0,re=re+Me|0,Me=8191&re,re>>>=13,Re+=re,s[0]=Me,s[1]=Re,s[2]=Ie,s[3]=Et,s[4]=kt,s[5]=Rt,s[6]=Lt,s[7]=St,s[8]=Gt,s[9]=Ct}finalize(){const{h:n,pad:e}=this,r=new Uint16Array(10);let i=n[1]>>>13;n[1]&=8191;for(let f=2;f<10;f++)n[f]+=i,i=n[f]>>>13,n[f]&=8191;n[0]+=5*i,i=n[0]>>>13,n[0]&=8191,n[1]+=i,i=n[1]>>>13,n[1]&=8191,n[2]+=i,r[0]=n[0]+5,i=r[0]>>>13,r[0]&=8191;for(let f=1;f<10;f++)r[f]=n[f]+i,i=r[f]>>>13,r[f]&=8191;r[9]-=8192;let s=(1^i)-1;for(let f=0;f<10;f++)r[f]&=s;s=~s;for(let f=0;f<10;f++)n[f]=n[f]&s|r[f];n[0]=65535&(n[0]|n[1]<<13),n[1]=65535&(n[1]>>>3|n[2]<<10),n[2]=65535&(n[2]>>>6|n[3]<<7),n[3]=65535&(n[3]>>>9|n[4]<<4),n[4]=65535&(n[4]>>>12|n[5]<<1|n[6]<<14),n[5]=65535&(n[6]>>>2|n[7]<<11),n[6]=65535&(n[7]>>>5|n[8]<<8),n[7]=65535&(n[8]>>>8|n[9]<<5);let u=n[0]+e[0];n[0]=65535&u;for(let f=1;f<8;f++)u=(n[f]+e[f]|0)+(u>>>16)|0,n[f]=65535&u}update(n){It.exists(this);const{buffer:e,blockLen:r}=this,i=(n=Zr(n)).length;for(let s=0;s>>0,n[s++]=r[u]>>>8;return n}digest(){const{buffer:n,outputLen:e}=this;this.digestInto(n);const r=n.slice(0,e);return this.destroy(),r}}!function da(t){const n=(r,i)=>t(i).update(Zr(r)).digest(),e=t(new Uint8Array(32));n.outputLen=e.outputLen,n.blockLen=e.blockLen,n.create=r=>t(r)}(t=>new ha(t));const ga=Kr("expand 16-byte k"),pa=Kr("expand 32-byte k"),ma=Ft(ga),va=Ft(pa),po=t=>!(t.byteOffset%4),ge=(t,n)=>t<>>32-n;const mo=(t=>{const{core:n,rounds:e,counterRight:r,counterLen:i,allow128bitKeys:s,extendNonceFn:u,blockLen:f}=function sa(t,n){if(void 0!==n&&("object"!=typeof n||!(t=>"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object)(n)))throw new Error("options must be object or undefined");return Object.assign(t,n)}({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},t);It.number(i),It.number(e),It.number(f),It.bool(r),It.bool(s);const g=f/4;if(f%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(m,M,k,O,L=0)=>{if(It.bytes(m),It.bytes(M),It.bytes(k),O||(O=new Uint8Array(k.length)),It.bytes(O),It.number(L),L<0||L>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(O.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const ie=Math.min(f,Q-X);if(ie===f&&Y&&G){const ye=X/4;if(X%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let _e=0;_e{for(var e in n)xa(t,e,{get:n[e],enumerable:!0})};function bo(){return Be(bn.utils.randomPrivateKey())}function ei(t){return Be(bn.getPublicKey(t))}yt({},{MessageNode:()=>_o,MessageQueue:()=>Eo,insertEventIntoAscendingList:()=>Sa,insertEventIntoDescendingList:()=>ka,normalizeURL:()=>ti,utf8Decoder:()=>qt,utf8Encoder:()=>Pt});var qt=new TextDecoder("utf-8"),Pt=new TextEncoder;function ti(t){let n=new URL(t);return n.pathname=n.pathname.replace(/\/+/g,"/"),n.pathname.endsWith("/")&&(n.pathname=n.pathname.slice(0,-1)),("80"===n.port&&"ws:"===n.protocol||"443"===n.port&&"wss:"===n.protocol)&&(n.port=""),n.searchParams.sort(),n.hash="",n.toString()}function ka(t,n){let i,e=0,r=t.length-1,s=e;if(r<0)s=0;else if(n.created_at=t[e].created_at)s=e;else for(;;){if(r<=e+1){s=r;break}if(i=Math.floor(e+(r-e)/2),t[i].created_at>n.created_at)e=i;else{if(!(t[i].created_att[r].created_at)s=r+1;else if(n.created_at<=t[e].created_at)s=e;else for(;;){if(r<=e+1){s=r;break}if(i=Math.floor(e+(r-e)/2),t[i].created_atn.created_at)){s=i;break}r=i}}return t[s]?.id!==n.id?[...t.slice(0,s),n,...t.slice(s)]:t}var _o=class{_value;_next;get value(){return this._value}set value(t){this._value=t}get next(){return this._next}set next(t){this._next=t}constructor(t){this._value=t,this._next=null}},Eo=class{_first;_last;get first(){return this._first}set first(t){this._first=t}get last(){return this._last}set last(t){this._last=t}_size;get size(){return this._size}set size(t){this._size=t}constructor(){this._first=null,this._last=null,this._size=0}enqueue(t){const n=new _o(t);return 0!==this._size&&this._last?(this._last.next=n,this._last=n):(this._first=n,this._last=n),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let t=this._first;return this._first=t.next,t.next=null,this._size--,t.value}},En=Symbol("verified");function Vt(t,n){const e=t;return e.pubkey=ei(n),e.id=Fn(e),e.sig=function xo(t,n){return Be(bn.sign(Fn(t),n))}(e,n),e[En]=!0,e}function Fn(t){let n=Tt(Pt.encode(function Ta(t){if(!ni(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])}(t)));return Be(n)}var Ia=t=>t instanceof Object;function ni(t){if(!Ia(t)||"number"!=typeof t.kind||"string"!=typeof t.content||"number"!=typeof t.created_at||"string"!=typeof t.pubkey||!t.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(t.tags))return!1;for(let n=0;nn.id.startsWith(e))||t.kinds&&-1===t.kinds.indexOf(n.kind)||t.authors&&-1===t.authors.indexOf(n.pubkey)&&!t.authors.some(e=>n.pubkey.startsWith(e)))return!1;for(let e in t)if("#"===e[0]){let i=t[`#${e.slice(1)}`];if(i&&!n.tags.find(([s,u])=>s===e.slice(1)&&-1!==i.indexOf(u)))return!1}return!(t.since&&n.created_att.until)}function gr(t,n){let e=n.length+3,r=t.indexOf(`"${n}":`)+e,i=t.slice(r).indexOf('"')+r+1;return t.slice(i,i+64)}function ko(t,n){let e=n.length,r=t.indexOf(`"${n}":`)+e+3,i=t.slice(r),s=Math.min(i.indexOf(","),i.indexOf("}"));return parseInt(i.slice(0,s),10)}function So(t){let n=t.slice(0,22).indexOf('"EVENT"');if(-1===n)return null;let e=t.slice(n+7+1).indexOf('"');if(-1===e)return null;let r=n+7+1+e,i=t.slice(r+1,80).indexOf('"');return-1===i?null:t.slice(r+1,r+1+i)}function Na(t,n){return n===gr(t,"id")}function Pa(t,n){return n===gr(t,"pubkey")}function La(t,n){return n===ko(t,"kind")}function Co(t,n={}){let{listTimeout:e=3e3,getTimeout:r=3e3,countTimeout:i=3e3}=n;var s,M,u={},f={connect:[],disconnect:[],error:[],notice:[],auth:[]},g={},m={};function O(){return(O=(0,v.A)(function*(){return M||(M=new Promise((V,J)=>{try{s=new WebSocket(t)}catch(X){J(X)}s.onopen=()=>{f.connect.forEach(X=>X()),V()},s.onerror=()=>{M=void 0,f.error.forEach(X=>X()),J()},s.onclose=(0,v.A)(function*(){M=void 0,f.disconnect.forEach(X=>X())});let Y,G=new Eo;function Q(){if(0===G.size)return clearInterval(Y),void(Y=null);var X=G.dequeue();if(!X)return;let pe=So(X);if(pe){let ie=u[pe];if(ie&&ie.alreadyHaveEvent&&ie.alreadyHaveEvent(gr(X,"id"),t))return}try{let ie=JSON.parse(X);switch(ie[0]){case"EVENT":{let z=ie[1],K=ie[2];return void(ni(K)&&u[z]&&(u[z].skipVerification||dr(K))&&function Mo(t,n){for(let e=0;efe(K)))}case"COUNT":let ye=ie[1],_e=ie[2];return void(u[ye]&&(g[ye]?.count||[]).forEach(z=>z(_e)));case"EOSE":{let z=ie[1];return void(z in g&&(g[z].eose.forEach(K=>K()),g[z].eose=[]))}case"OK":{let z=ie[1],K=ie[2],fe=ie[3]||"";if(z in m){let{resolve:be,reject:re}=m[z];K?be(null):re(new Error(fe))}return}case"NOTICE":let Ae=ie[1];return void f.notice.forEach(z=>z(Ae));case"AUTH":{let z=ie[1];return void f.auth?.forEach(K=>K(z))}}}catch{return}}s.onmessage=X=>{G.enqueue(X.data),Y||(Y=setInterval(Q,0))}}))})).apply(this,arguments)}function L(){return 1===s?.readyState}function I(){return I=(0,v.A)(function*(){L()||(yield function k(){return O.apply(this,arguments)}())}),I.apply(this,arguments)}function D(V){return $.apply(this,arguments)}function $(){return($=(0,v.A)(function*(V){let J=JSON.stringify(V);if(L()||(yield new Promise(G=>setTimeout(G,1e3)),L()))try{s.send(J)}catch(G){console.log(G)}})).apply(this,arguments)}const H=(V,{verb:J="REQ",skipVerification:G=!1,alreadyHaveEvent:Y=null,id:Q=Math.random().toString().slice(2)}={})=>{let X=Q;u[X]={id:X,filters:V,skipVerification:G,alreadyHaveEvent:Y},D([J,X,...V]);let pe={sub:(ie,ye={})=>H(ie||V,{skipVerification:ye.skipVerification||G,alreadyHaveEvent:ye.alreadyHaveEvent||Y,id:X}),unsub:()=>{delete u[X],delete g[X],D(["CLOSE",X])},on:(ie,ye)=>{g[X]=g[X]||{event:[],count:[],eose:[]},g[X][ie].push(ye)},off:(ie,ye)=>{let _e=g[X],Ae=_e[ie].indexOf(ye);Ae>=0&&_e[ie].splice(Ae,1)},get events(){return function To(t){return ri.apply(this,arguments)}(pe)}};return pe};function Z(V,J){return new Promise((G,Y)=>{if(!V.id)return void Y(new Error(`event ${V} has no id`));let Q=V.id;D([J,V]),m[Q]={resolve:G,reject:Y}})}return{url:t,sub:H,on:(V,J)=>{f[V].push(J),"connect"===V&&1===s?.readyState&&J()},off:(V,J)=>{let G=f[V].indexOf(J);-1!==G&&f[V].splice(G,1)},list:(V,J)=>new Promise(G=>{let Y=H(V,J),Q=[],X=setTimeout(()=>{Y.unsub(),G(Q)},e);Y.on("eose",()=>{Y.unsub(),clearTimeout(X),G(Q)}),Y.on("event",pe=>{Q.push(pe)})}),get:(V,J)=>new Promise(G=>{let Y=H([V],J),Q=setTimeout(()=>{Y.unsub(),G(null)},r);Y.on("event",X=>{Y.unsub(),clearTimeout(Q),G(X)})}),count:V=>new Promise(J=>{let G=H(V,{...H,verb:"COUNT"}),Y=setTimeout(()=>{G.unsub(),J(null)},i);G.on("count",Q=>{G.unsub(),clearTimeout(Y),J(Q)})}),publish:V=>(0,v.A)(function*(){yield Z(V,"EVENT")})(),auth:V=>(0,v.A)(function*(){yield Z(V,"AUTH")})(),connect:function P(){return I.apply(this,arguments)},close(){f={connect:[],disconnect:[],error:[],notice:[],auth:[]},g={},m={},s?.readyState===WebSocket.OPEN&&s.close()},get status(){return s?.readyState??3}}}function ri(){return(ri=(0,tt.A)(function*(t){let n;const e=[],r=i=>{n?(n(i),n=void 0):e.push(i)};t.on("event",r);try{for(;;)e.length>0?yield e.shift():yield yield(0,et.A)(new Promise(s=>{n=s}))}finally{t.off("event",r)}})).apply(this,arguments)}yt({},{getHex64:()=>gr,getInt:()=>ko,getSubscriptionId:()=>So,matchEventId:()=>Na,matchEventKind:()=>La,matchEventPubkey:()=>Pa});var ii={};yt(ii,{BECH32_REGEX:()=>Ro,decode:()=>qn,naddrEncode:()=>Ga,neventEncode:()=>qa,noteEncode:()=>$a,nprofileEncode:()=>Fa,npubEncode:()=>Da,nrelayEncode:()=>za,nsecEncode:()=>ja});var Io=5e3,Ro=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function qn(t){let{prefix:n,words:e}=_n.decode(t,Io),r=new Uint8Array(_n.fromWords(e));switch(n){case"nprofile":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==i[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:Be(i[0][0]),relays:i[1]?i[1].map(s=>qt.decode(s)):[]}}}case"nevent":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==i[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(i[2]&&32!==i[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(i[3]&&4!==i[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:Be(i[0][0]),relays:i[1]?i[1].map(s=>qt.decode(s)):[],author:i[2]?.[0]?Be(i[2][0]):void 0,kind:i[3]?.[0]?parseInt(Be(i[3][0]),16):void 0}}}case"naddr":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!i[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==i[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!i[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==i[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:qt.decode(i[0][0]),pubkey:Be(i[2][0]),kind:parseInt(Be(i[3][0]),16),relays:i[1]?i[1].map(s=>qt.decode(s)):[]}}}case"nrelay":{let i=pr(r);if(!i[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:qt.decode(i[0][0])}}case"nsec":case"npub":case"note":return{type:n,data:Be(r)};default:throw new Error(`unknown prefix ${n}`)}}function pr(t){let n={},e=t;for(;e.length>0;){let r=e[0],i=e[1];if(!i)throw new Error(`malformed TLV ${r}`);let s=e.slice(2,2+i);if(e=e.slice(2+i),s.lengthPt.encode(e))}))}function qa(t){let n;return null!=t.kind&&(n=function Oa(t){const n=new Uint8Array(4);return n[0]=t>>24&255,n[1]=t>>16&255,n[2]=t>>8&255,n[3]=255&t,n}(t.kind)),Gn("nevent",mr({0:[$e(t.id)],1:(t.relays||[]).map(r=>Pt.encode(r)),2:t.author?[$e(t.author)]:[],3:n?[new Uint8Array(n)]:[]}))}function Ga(t){let n=new ArrayBuffer(4);return new DataView(n).setUint32(0,t.kind,!1),Gn("naddr",mr({0:[Pt.encode(t.identifier)],1:(t.relays||[]).map(r=>Pt.encode(r)),2:[$e(t.pubkey)],3:[new Uint8Array(n)]}))}function za(t){return Gn("nrelay",mr({0:[Pt.encode(t)]}))}function mr(t){let n=[];return Object.entries(t).forEach(([e,r])=>{r.forEach(i=>{let s=new Uint8Array(i.length+2);s.set([parseInt(e)],0),s.set([i.length],1),s.set(i,2),n.push(s)})}),Fe(...n)}var si={};function Bo(t,n,e){return ai.apply(this,arguments)}function ai(){return(ai=(0,v.A)(function*(t,n,e){const i=Uo(wn.getSharedSecret(t,"02"+n));let s=Uint8Array.from(Zt(16)),u=Pt.encode(e),f=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),g=yield crypto.subtle.encrypt({name:"AES-CBC",iv:s},f,u);return`${Ht.encode(new Uint8Array(g))}?iv=${Ht.encode(new Uint8Array(s.buffer))}`})).apply(this,arguments)}function Ha(t,n,e){return li.apply(this,arguments)}function li(){return(li=(0,v.A)(function*(t,n,e){let[r,i]=e.split("?iv="),u=Uo(wn.getSharedSecret(t,"02"+n)),f=yield crypto.subtle.importKey("raw",u,{name:"AES-CBC"},!1,["decrypt"]),g=Ht.decode(r),m=Ht.decode(i),M=yield crypto.subtle.decrypt({name:"AES-CBC",iv:m},f,g);return qt.decode(M)})).apply(this,arguments)}function Uo(t){return t.slice(1,33)}yt(si,{decrypt:()=>Ha,encrypt:()=>Bo}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle),yt({},{NIP05_REGEX:()=>No,queryProfile:()=>Za,searchDomain:()=>Ka,useFetchImplementation:()=>Ya});var vr,No=/^(?:([\w.+-]+)@)?([\w.-]+)$/;try{vr=fetch}catch{}function Ya(t){vr=t}function Ka(t){return ci.apply(this,arguments)}function ci(){return(ci=(0,v.A)(function*(t,n=""){try{return(yield(yield vr(`https://${t}/.well-known/nostr.json?name=${n}`)).json()).names}catch{return{}}})).apply(this,arguments)}function Za(t){return ui.apply(this,arguments)}function ui(){return(ui=(0,v.A)(function*(t){const n=t.match(No);if(!n)return null;const[e,r="_",i]=n;try{const s=yield vr(`https://${i}/.well-known/nostr.json?name=${r}`),{names:u,relays:f}=function Xa(t){const n={names:{}};for(const[e,r]of Object.entries(t.names))"string"==typeof e&&"string"==typeof r&&(n.names[e]=r);if(t.relays){n.relays={};for(const[e,r]of Object.entries(t.relays))"string"==typeof e&&Array.isArray(r)&&(n.relays[e]=r.filter(i=>"string"==typeof i))}return n}(yield s.json()),g=u[r];return g?{pubkey:g,relays:f?.[g]}:null}catch{return null}})).apply(this,arguments)}function Ja(t,n){let r=na.c.fromMasterSeed((0,Hr.kw)(t,n)).derive("m/44'/1237'/0'/0/0").privateKey;if(!r)throw new Error("could not derive private key");return Be(r)}function el(){return(0,Hr.we)(ho.p)}function tl(t){return(0,Hr.JB)(t,ho.p)}function rl(t){const n={reply:void 0,root:void 0,mentions:[],profiles:[]},e=[];for(const r of t.tags)"e"===r[0]&&r[1]&&e.push(r),"p"===r[0]&&r[1]&&n.profiles.push({pubkey:r[1],relays:r[2]?[r[2]]:[]});for(let r=0;r=n)break}return r}function al(t,n,e,r){return Vt({kind:6,tags:[...t.tags??[],["e",n.id,e],["p",n.pubkey]],content:""===t.content?"":JSON.stringify(n),created_at:t.created_at},r)}function Lo(t){if(6!==t.kind)return;let n,e;for(let r=t.tags.length-1;r>=0&&(void 0===n||void 0===e);r--){const i=t.tags[r];i.length>=2&&("e"===i[0]&&void 0===n?n=i:"p"===i[0]&&void 0===e&&(e=i))}return void 0!==n?{id:n[1],relays:[n[2],e?.[2]].filter(r=>"string"==typeof r),author:e?.[1]}:void 0}function ll(t,{skipVerification:n}={}){const e=Lo(t);if(void 0===e||""===t.content)return;let r;try{r=JSON.parse(t.content)}catch{return}return r.id===e.id&&(n||dr(r))?r:void 0}yt({},{generateSeedWords:()=>el,privateKeyFromSeedWords:()=>Ja,validateWords:()=>tl}),yt({},{parse:()=>rl}),yt({},{getPow:()=>Po,minePow:()=>ol}),yt({},{finishRepostEvent:()=>al,getRepostedEvent:()=>ll,getRepostedEventPointer:()=>Lo}),yt({},{NOSTR_URI_REGEX:()=>yr,parse:()=>fl,test:()=>ul});var yr=new RegExp(`nostr:(${Ro.source})`);function ul(t){return"string"==typeof t&&new RegExp(`^${yr.source}$`).test(t)}function fl(t){const n=t.match(new RegExp(`^${yr.source}$`));if(!n)throw new Error(`Invalid Nostr URI: ${t}`);return{uri:n[0],value:n[1],decoded:qn(n[1])}}function dl(t,n,e){const r=n.tags.filter(i=>i.length>=2&&("e"===i[0]||"p"===i[0]));return Vt({...t,kind:7,tags:[...t.tags??[],...r,["e",n.id],["p",n.pubkey]],content:t.content??"+"},e)}function gl(t){if(7!==t.kind)return;let n,e;for(let r=t.tags.length-1;r>=0&&(void 0===n||void 0===e);r--){const i=t.tags[r];i.length>=2&&("e"===i[0]&&void 0===n?n=i:"p"===i[0]&&void 0===e&&(e=i))}return void 0!==n&&void 0!==e?{id:n[1],relays:[n[2],e[2]].filter(r=>void 0!==r),author:e[1]}:void 0}function ml(t,n){let e=[];(n.kind||-1)>=0&&e.push(`kind=${n.kind}`),n.until&&e.push(`created_at<${n.until}`),n.since&&e.push(`created_at>${n.since}`);let r=e.join("&");if(""===r)throw new Error("refusing to create a delegation without any conditions");let i=Tt(Pt.encode(`nostr:delegation:${n.pubkey}:${r}`)),s=Be(bn.sign(i,t));return{from:ei(t),to:n.pubkey,cond:r,sig:s}}function vl(t){let n=t.tags.find(f=>"delegation"===f[0]&&f.length>=4);if(!n)return null;let e=n[1],r=n[2],i=n[3],s=r.split("&");for(let f=0;f"===m&&t.created_at>parseInt(M))continue;return null}}let u=Tt(Pt.encode(`nostr:delegation:${t.pubkey}:${r}`));return bn.verify(i,u,e)?e:null}yt({},{finishReactionEvent:()=>dl,getReactedEventPointer:()=>gl}),yt({},{createDelegation:()=>ml,getDelegator:()=>vl}),yt({},{matchAll:()=>wl,regex:()=>fi,replaceAll:()=>bl});var fi=()=>new RegExp(`\\b${yr.source}\\b`,"g");function*wl(t){const n=t.matchAll(fi());for(const e of n)try{const[r,i]=e;yield{uri:r,value:i,decoded:qn(i),start:e.index,end:e.index+r.length}}catch{}}function bl(t,n){return t.replaceAll(fi(),(e,r)=>n({uri:e,value:r,decoded:qn(r)}))}yt({},{channelCreateEvent:()=>El,channelHideMessageEvent:()=>kl,channelMessageEvent:()=>Ml,channelMetadataEvent:()=>xl,channelMuteUserEvent:()=>Sl});var hi,El=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:40,tags:[...t.tags??[]],content:e,created_at:t.created_at},n)},xl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:41,tags:[["e",t.channel_create_event_id],...t.tags??[]],content:e,created_at:t.created_at},n)},Ml=(t,n)=>{const e=[["e",t.channel_create_event_id,t.relay_url,"root"]];return t.reply_to_channel_message_event_id&&e.push(["e",t.reply_to_channel_message_event_id,t.relay_url,"reply"]),Vt({kind:42,tags:[...e,...t.tags??[]],content:t.content,created_at:t.created_at},n)},kl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:43,tags:[["e",t.channel_message_event_id],...t.tags??[]],content:e,created_at:t.created_at},n)},Sl=(t,n)=>{let e;if("object"==typeof t.content)e=JSON.stringify(t.content);else{if("string"!=typeof t.content)return;e=t.content}return Vt({kind:44,tags:[["p",t.pubkey_to_mute],...t.tags??[]],content:e,created_at:t.created_at},n)};yt({},{useFetchImplementation:()=>Cl,validateGithub:()=>Tl});try{hi=fetch}catch{}function Cl(t){hi=t}function Tl(t,n,e){return di.apply(this,arguments)}function di(){return(di=(0,v.A)(function*(t,n,e){try{return(yield(yield hi(`https://gist.github.com/${n}/${e}/raw`)).text())===`Verifying that I control the following Nostr public key: ${t}`}catch{return!1}})).apply(this,arguments)}yt({},{authenticate:()=>Rl});var Rl=function(){var t=(0,v.A)(function*({challenge:n,relay:e,sign:r}){const i={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",e.url],["challenge",n]],content:""};return e.auth(yield r(i))});return function(e){return t.apply(this,arguments)}}();yt({},{decrypt:()=>Nl,encrypt:()=>Ul,utils:()=>cn});var pi,cn={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(t,n)=>wn.getSharedSecret(t,"02"+n).subarray(1,33),getMessageKeys(t,n){const e=((t,n,e,r,i)=>function _a(t,n,e,r=32){if(Le.hash(t),Le.number(r),r>255*t.outputLen)throw new Error("Length should be <= 255*HashLen");const i=Math.ceil(r/t.outputLen);void 0===e&&(e=wo);const s=new Uint8Array(i*t.outputLen),u=yn.create(t,n),f=u._cloneInto(),g=new Uint8Array(u.outputLen);for(let m=0;m=cn.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const r=cn.v2.calcPadding(e),i=new Uint8Array(r-e),s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,e),Fe(s,n,i)},unpad(t){const n=new DataView(t.buffer).getUint16(0),e=t.subarray(2,2+n);if(0===n||e.length!==n||t.length!==2+cn.v2.calcPadding(n))throw new Error("invalid padding");return qt.decode(e)}}};function Ul(t,n,e={}){const r=e.version??2;if(2!==r)throw new Error("unknown encryption version "+r);const i=e.salt??Zt(32);Xr(i,32);const s=cn.v2.getMessageKeys(t,i),u=cn.v2.pad(n),f=mo(s.encryption,s.nonce,u),g=yn(Tt,s.auth,f);return Ht.encode(Fe(new Uint8Array([r]),i,f,g))}function Nl(t,n){const e=cn.v2;Xr(t,32);const r=n.length;if(r=e.maxCiphertextSize)throw new Error("invalid ciphertext length: "+r);if("#"===n[0])throw new Error("unknown encryption version");let i;try{i=Ht.decode(n)}catch(O){throw new Error("invalid base64: "+O.message)}const s=i.subarray(0,1)[0];if(2!==s)throw new Error("unknown encryption version "+s);const u=i.subarray(1,33),f=i.subarray(33,-32),g=i.subarray(-32),m=e.getMessageKeys(t,u);if(!function aa(t,n){if(t.length!==n.length)throw new Error("equalBytes: Different size of Uint8Arrays");let e=!0;for(let r=0;rOl,parseConnectionString:()=>Ll}),yt({},{getZapEndpoint:()=>$l,makeZapReceipt:()=>Gl,makeZapRequest:()=>Fl,useFetchImplementation:()=>Dl,validateZapRequest:()=>ql});try{pi=fetch}catch{}function Dl(t){pi=t}function $l(t){return mi.apply(this,arguments)}function mi(){return(mi=(0,v.A)(function*(t){try{let n="",{lud06:e,lud16:r}=JSON.parse(t.content);if(e){let{words:u}=_n.decode(e,1e3),f=_n.fromWords(u);n=qt.decode(f)}else{if(!r)return null;{let[u,f]=r.split("@");n=`https://${f}/.well-known/lnurlp/${u}`}}let s=yield(yield pi(n)).json();if(s.allowsNostr&&s.nostrPubkey)return s.callback}catch{}return null})).apply(this,arguments)}function Fl({profile:t,event:n,amount:e,relays:r,comment:i=""}){if(!e)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:i,tags:[["p",t],["amount",e.toString()],["relays",...r]]};return n&&s.tags.push(["e",n]),s}function ql(t){let n;try{n=JSON.parse(t)}catch{return"Invalid zap request JSON."}if(!ni(n))return"Zap request is not a valid Nostr event.";if(!dr(n))return"Invalid signature on zap request.";let e=n.tags.find(([s,u])=>"p"===s&&u);if(!e)return"Zap request doesn't have a 'p' tag.";if(!e[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let r=n.tags.find(([s,u])=>"e"===s&&u);return r&&!r[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":n.tags.find(([s,u])=>"relays"===s&&u)?null:"Zap request doesn't have a 'relays' tag."}function Gl({zapRequest:t,preimage:n,bolt11:e,paidAt:r}){let s=JSON.parse(t).tags.filter(([f])=>"e"===f||"p"===f||"a"===f),u={kind:9735,created_at:Math.round(r.getTime()/1e3),content:"",tags:[...s,["bolt11",e],["description",t]]};return n&&u.tags.push(["preimage",n]),u}yt({},{getToken:()=>Wl,unpackEventFromToken:()=>jo,validateEvent:()=>Do,validateToken:()=>Hl});var Oo="Nostr ";function Wl(t,n,e){return vi.apply(this,arguments)}function vi(){return(vi=(0,v.A)(function*(t,n,e,r=!1){if(!t||!n)throw new Error("Missing loginUrl or httpMethod");const i=function Ca(t=255){return{kind:t,content:"",tags:[],created_at:0}}(27235);i.tags=[["u",t],["method",n]],i.created_at=Math.round((new Date).getTime()/1e3);const s=yield e(i);return(r?Oo:"")+Ht.encode(Pt.encode(JSON.stringify(s)))})).apply(this,arguments)}function Hl(t,n,e){return yi.apply(this,arguments)}function yi(){return(yi=(0,v.A)(function*(t,n,e){const r=yield jo(t).catch(s=>{throw s});return yield Do(r,n,e).catch(s=>{throw s})})).apply(this,arguments)}function jo(t){return wi.apply(this,arguments)}function wi(){return(wi=(0,v.A)(function*(t){if(!t)throw new Error("Missing token");t=t.replace(Oo,"");const n=qt.decode(Ht.decode(t));if(!n||0===n.length||!n.startsWith("{"))throw new Error("Invalid token");return JSON.parse(n)})).apply(this,arguments)}function Do(t,n,e){return bi.apply(this,arguments)}function bi(){return(bi=(0,v.A)(function*(t,n,e){if(!t)throw new Error("Invalid nostr event");if(!dr(t))throw new Error("Invalid nostr event, signature invalid");if(27235!==t.kind)throw new Error("Invalid nostr event, kind invalid");if(!t.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-t.created_at>60)throw new Error("Invalid nostr event, expired");const r=t.tags.find(s=>"u"===s[0]);if(1!==r?.length&&r?.[1]!==n)throw new Error("Invalid nostr event, url tag invalid");const i=t.tags.find(s=>"method"===s[0]);if(1!==i?.length&&i?.[1].toLowerCase()!==e.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0})).apply(this,arguments)}function Te(){return Te=Object.assign?Object.assign.bind():function(t){for(var n=1;nt.reduce((n,e)=>n+e.toString(16).padStart(2,"0"),"");class Go extends Error{constructor(n,e,r,i){let s=n.toString();e&&(s+=` ${e}`),s+=": ",s+=i.message?i.message:JSON.stringify(i),super(s),this.status=void 0,this.statusText=void 0,this.headers=void 0,this.error=void 0,this.status=n,this.statusText=e,this.headers=r,this.error=i}}const Vl=["auth","endpoint","params","request_body","method","max_retries","base_url","user_agent","headers"],Yl="https://api.getalby.com";function zo(t,n){return Ei.apply(this,arguments)}function Ei(){return(Ei=(0,v.A)(function*(t,n,e=0){const r=yield fetch(t,n);if(429===r.status&&e>0){const i=Number(r.headers.get("x-rate-limit-reset")),s=Number(r.headers.get("x-rate-limit-remaining")),u=1e3*i-Date.now();let f=1e3;return 0===s&&(f=u),yield new Promise(g=>setTimeout(g,f)),zo(t,n,e-1)}return r})).apply(this,arguments)}function xi(){return(xi=(0,v.A)(function*(t){let{auth:n,endpoint:e,params:r={},request_body:i,method:s,max_retries:u,base_url:f=Yl,user_agent:g,headers:m}=t,M=function _i(t,n){if(null==t)return{};var e,r,i={},s=Object.keys(t);for(r=0;r=0||(i[e]=t[e]);return i}(t,Vl);const k=new URL(f+e);k.search=function $o(t){return Object.entries(t).map(([n,e])=>n&&e?`${n}=${e}`:"").filter(n=>n).join("&")}(r);const O="POST"===s&&!!i,L=n?yield n.getAuthHeader(k.href,s):void 0,P=yield zo(k.toString(),Te({headers:Te({},O?{"Content-Type":"application/json; charset=utf-8"}:void 0,L,m,{"User-Agent":g??"@getalby/sdk","X-User-Agent":g??"@getalby/sdk"}),method:s,body:O?JSON.stringify(i):void 0},M),u);if(!P.ok){const I=yield P.json();throw new Go(P.status,P.statusText,P.headers,I)}return P})).apply(this,arguments)}function wt(t){return Mi.apply(this,arguments)}function Mi(){return Mi=(0,v.A)(function*(t){return(yield function Kl(t){return xi.apply(this,arguments)}(t)).json()}),Mi.apply(this,arguments)}class Ho{constructor(n){this.bearer_token=void 0,this.bearer_token=n}getAuthHeader(){return{Authorization:`Bearer ${this.bearer_token}`}}}class rn extends Error{constructor(n,e){super(n),this.error=void 0,this.code=void 0,this.error=n,this.code=e}}class Vo extends rn{}class ki extends rn{}class Si extends ki{}class Ai extends ki{}class Ci extends rn{}class Ti extends rn{}class wr extends rn{}class Yo extends rn{}class Ko extends rn{}const Zo={alby:{authorizationUrl:"https://nwc.getalby.com/apps/new",relayUrl:"wss://relay.getalby.com/v1",walletPubkey:"69effe7b49a6dd5cf525bd0905917a5005ffe480b58eeb8e861418cf3ae760d9"}};class zn{static parseWalletConnectUrl(n){n=n.replace("nostrwalletconnect://","http://").replace("nostr+walletconnect://","http://").replace("nostrwalletconnect:","http://").replace("nostr+walletconnect:","http://");const e=new URL(n),r=e.searchParams.get("relay");if(!r)throw new Error("No relay URL found in connection string");const i={walletPubkey:e.host,relayUrl:r},s=e.searchParams.get("secret");s&&(i.secret=s);const u=e.searchParams.get("lud16");return u&&(i.lud16=u),i}static withNewSecret(n){return(n=n||{}).secret=bo(),new zn(n)}constructor(n){var e;this.relay=void 0,this.relayUrl=void 0,this.secret=void 0,this.lud16=void 0,this.walletPubkey=void 0,this.options=void 0,n&&n.nostrWalletConnectUrl&&(n=Te({},zn.parseWalletConnectUrl(n.nostrWalletConnectUrl),n));const r=Zo[(null==(e=n)?void 0:e.providerName)||"alby"];this.options=Te({},r,n||{}),this.relayUrl=this.options.relayUrl,this.relay=Co(this.relayUrl),this.options.secret&&(this.secret=this.options.secret.toLowerCase().startsWith("nsec")?ii.decode(this.options.secret).data:this.options.secret),this.lud16=this.options.lud16,this.walletPubkey=this.options.walletPubkey.toLowerCase().startsWith("npub")?ii.decode(this.options.walletPubkey).data:this.options.walletPubkey,void 0===globalThis.WebSocket&&console.error("WebSocket is undefined. Make sure to `import websocket-polyfill` for nodejs environments")}get nostrWalletConnectUrl(){return this.getNostrWalletConnectUrl()}getNostrWalletConnectUrl(n=!0){let e=`nostr+walletconnect://${this.walletPubkey}?relay=${this.relayUrl}&pubkey=${this.publicKey}`;return n&&(e=`${e}&secret=${this.secret}`),e}get connected(){return 1===this.relay.status}get publicKey(){if(!this.secret)throw new Error("Missing secret key");return ei(this.secret)}getPublicKey(){return Promise.resolve(this.publicKey)}signEvent(n){if(!this.secret)throw new Error("Missing secret key");return Promise.resolve(Vt(n,this.secret))}getEventHash(n){return Fn(n)}close(){return this.relay.close()}encrypt(n,e){var r=this;return(0,v.A)(function*(){if(!r.secret)throw new Error("Missing secret");return yield si.encrypt(r.secret,n,e)})()}decrypt(n,e){var r=this;return(0,v.A)(function*(){if(!r.secret)throw new Error("Missing secret");return yield si.decrypt(r.secret,n,e)})()}getAuthorizationUrl(n){if(!this.options.authorizationUrl)throw new Error("Missing authorizationUrl option");const e=new URL(this.options.authorizationUrl);return null!=n&&n.name&&e.searchParams.set("name",n?.name),e.searchParams.set("pubkey",this.publicKey),null!=n&&n.returnTo&&e.searchParams.set("return_to",n.returnTo),null!=n&&n.budgetRenewal&&e.searchParams.set("budget_renewal",n.budgetRenewal),null!=n&&n.expiresAt&&e.searchParams.set("expires_at",Math.floor(n.expiresAt.getTime()/1e3).toString()),null!=n&&n.maxAmount&&e.searchParams.set("max_amount",n.maxAmount.toString()),void 0!==n?.editable&&e.searchParams.set("editable",n.editable.toString()),null!=n&&n.requestMethods&&e.searchParams.set("request_methods",n.requestMethods.join(" ")),e}initNWC(n={}){n.name||(n.name=document.location.host);const e=this.getAuthorizationUrl(n),r=window.outerHeight/2+window.screenY-300,i=window.outerWidth/2+window.screenX-200;return new Promise((s,u)=>{const f=window.open(e.toString(),`${document.title} - Wallet Connect`,`height=600,width=400,top=${r},left=${i}`);if(!f)return void u(new Error("failed to execute window.open"));const g=M=>{const k=M.data;k&&"nwc:success"===k.type&&M.origin===`${e.protocol}//${e.host}`&&(s(k),clearInterval(m),window.removeEventListener("message",g),f&&f.close())},m=setInterval(()=>{f&&f.closed&&(clearInterval(m),window.removeEventListener("message",g),u(new Error("Popup closed")))},500);window.addEventListener("message",g)})}getWalletServiceSupportedMethods(){var n=this;return(0,v.A)(function*(){return console.warn("getWalletServiceSupportedMethods is deprecated. Please use getWalletServiceInfo instead."),(yield n.getWalletServiceInfo()).capabilities})()}getWalletServiceInfo(){var n=this;return(0,v.A)(function*(){var e;yield n._checkConnected();const r=yield n.relay.list([{kinds:[13194],limit:1,authors:[n.walletPubkey]}],{eoseSubTimeout:1e4});if(!r.length)throw new Error("no info event (kind 13194) returned from relay");const i=r[0].content,s=r[0].tags.find(u=>"notifications"===u[0]);return{capabilities:i.split(/[ |,]/g),notifications:(null==s||null==(e=s[1])?void 0:e.split(" "))||[]}})()}getInfo(){var n=this;return(0,v.A)(function*(){try{return yield n.executeNip47Request("get_info",{},e=>!!e.methods)}catch(e){throw console.error("Failed to request get_info",e),e}})()}getBalance(){var n=this;return(0,v.A)(function*(){try{return yield n.executeNip47Request("get_balance",{},e=>void 0!==e.balance)}catch(e){throw console.error("Failed to request get_balance",e),e}})()}payInvoice(n){var e=this;return(0,v.A)(function*(){try{return yield e.executeNip47Request("pay_invoice",n,r=>!!r.preimage)}catch(r){throw console.error("Failed to request pay_invoice",r),r}})()}payKeysend(n){var e=this;return(0,v.A)(function*(){try{return yield e.executeNip47Request("pay_keysend",n,r=>!!r.preimage)}catch(r){throw console.error("Failed to request pay_keysend",r),r}})()}signMessage(n){var e=this;return(0,v.A)(function*(){try{return yield e.executeNip47Request("sign_message",n,r=>r.message===n.message&&!!r.signature)}catch(r){throw console.error("Failed to request sign_message",r),r}})()}multiPayInvoice(n){var e=this;return(0,v.A)(function*(){try{return{invoices:yield e.executeMultiNip47Request("multi_pay_invoice",n,n.invoices.length,r=>!!r.preimage),errors:[]}}catch(r){throw console.error("Failed to request multi_pay_invoice",r),r}})()}multiPayKeysend(n){var e=this;return(0,v.A)(function*(){try{return{keysends:yield e.executeMultiNip47Request("multi_pay_keysend",n,n.keysends.length,r=>!!r.preimage),errors:[]}}catch(r){throw console.error("Failed to request multi_pay_keysend",r),r}})()}makeInvoice(n){var e=this;return(0,v.A)(function*(){try{if(!n.amount)throw new Error("No amount specified");return yield e.executeNip47Request("make_invoice",n,r=>!!r.invoice)}catch(r){throw console.error("Failed to request make_invoice",r),r}})()}lookupInvoice(n){var e=this;return(0,v.A)(function*(){try{return yield e.executeNip47Request("lookup_invoice",n,r=>!!r.invoice)}catch(r){throw console.error("Failed to request lookup_invoice",r),r}})()}listTransactions(n){var e=this;return(0,v.A)(function*(){try{return yield e.executeNip47Request("list_transactions",n,r=>!!r.transactions)}catch(r){throw console.error("Failed to request list_transactions",r),r}})()}subscribeNotifications(n,e){var r=this;return(0,v.A)(function*(){var i=r;let s,u,f,g=!0;return(0,v.A)(function*(){for(;g;){try{yield i._checkConnected(),f=i.relay.sub([{kinds:[23196],authors:[i.walletPubkey],"#p":[i.publicKey]}]),console.info("subscribed to relay"),f.on("event",function(){var m=(0,v.A)(function*(M){const k=yield i.decrypt(i.walletPubkey,M.content);let O;try{O=JSON.parse(k)}catch(L){return void console.error("Failed to parse decrypted event content",L)}O.notification?(!e||e.indexOf(O.notification_type)>-1)&&n(O):console.error("No notification in response",O)});return function(M){return m.apply(this,arguments)}}()),yield new Promise(m=>{s=()=>{m()},u=()=>{console.info("relay disconnected"),s?.()},i.relay.on("disconnect",u)}),void 0!==u&&i.relay.off("disconnect",u)}catch(m){console.error("error subscribing to notifications",m||"unknown relay error")}g&&(yield new Promise(m=>setTimeout(m,1e3)))}})(),()=>{var m;g=!1,s?.(),null==(m=f)||m.unsub()}})()}executeNip47Request(n,e,r){var i=this;return(0,v.A)(function*(){var s=i;return yield i._checkConnected(),new Promise((u,f)=>{(0,v.A)(function*(){const g={method:n,params:e},m=yield s.encrypt(s.walletPubkey,JSON.stringify(g)),M={kind:23194,created_at:Math.floor(Date.now()/1e3),tags:[["p",s.walletPubkey]],content:m,pubkey:s.publicKey},k=yield s.signEvent(M),O=s.relay.sub([{kinds:[23195],authors:[s.walletPubkey],"#e":[k.id]}]),L=setTimeout(function(){O.unsub(),f(new Ai(`reply timeout: event ${k.id}`,"INTERNAL"))},6e4);O.on("event",function(){var I=(0,v.A)(function*(D){clearTimeout(L),O.unsub();const $=yield s.decrypt(s.walletPubkey,D.content);let H;try{H=JSON.parse($)}catch{return clearTimeout(L),O.unsub(),void f(new Ti("failed to deserialize response","INTERNAL"))}var Z,V;H.result?r(H.result)?u(H.result):(clearTimeout(L),O.unsub(),f(new wr("response from NWC failed validation: "+JSON.stringify(H.result),"INTERNAL"))):(clearTimeout(L),O.unsub(),f(new Vo((null==(Z=H.error)?void 0:Z.message)||"unknown Error",(null==(V=H.error)?void 0:V.code)||"INTERNAL")))});return function(D){return I.apply(this,arguments)}}());const P=setTimeout(function(){O.unsub(),f(new Si(`publish timeout: ${k.id}`,"INTERNAL"))},5e3);try{yield s.relay.publish(k),clearTimeout(P)}catch(I){clearTimeout(P),f(new Ci(`failed to publish: ${I}`,"INTERNAL"))}})()})})()}executeMultiNip47Request(n,e,r,i){var s=this;return(0,v.A)(function*(){var u=s;yield s._checkConnected();const f=[];return new Promise((g,m)=>{(0,v.A)(function*(){const M={method:n,params:e},k=yield u.encrypt(u.walletPubkey,JSON.stringify(M)),O={kind:23194,created_at:Math.floor(Date.now()/1e3),tags:[["p",u.walletPubkey]],content:k,pubkey:u.publicKey},L=yield u.signEvent(O),P=u.relay.sub([{kinds:[23195],authors:[u.walletPubkey],"#e":[L.id]}]),I=setTimeout(function(){P.unsub(),m(new Ai(`reply timeout: event ${L.id}`,"INTERNAL"))},6e4);P.on("event",function(){var $=(0,v.A)(function*(H){const Z=yield u.decrypt(u.walletPubkey,H.content);let V;try{V=JSON.parse(Z)}catch{clearTimeout(I),P.unsub(),m(new Ti("failed to deserialize response","INTERNAL"))}if(V.result){var J;if(!i(V.result))return clearTimeout(I),P.unsub(),void m(new wr("Response from NWC failed validation: "+JSON.stringify(V.result),"INTERNAL"));const Q=null==(J=H.tags.find(X=>"d"===X[0]))?void 0:J[1];if(void 0===Q)return clearTimeout(I),P.unsub(),void m(new wr("No d tag found in response event","INTERNAL"));f.push(Te({},V.result,{dTag:Q})),f.length===r&&(clearTimeout(I),P.unsub(),g(f))}else{var G,Y;clearTimeout(I),P.unsub(),m(new Yo(null==(G=V.error)?void 0:G.message,null==(Y=V.error)?void 0:Y.code))}});return function(H){return $.apply(this,arguments)}}());const D=setTimeout(function(){P.unsub(),m(new Si(`Publish timeout: ${L.id}`,"INTERNAL"))},5e3);try{yield u.relay.publish(L),clearTimeout(D)}catch($){clearTimeout(D),m(new Ci(`Failed to publish: ${$}`,"INTERNAL"))}})()})})()}_checkConnected(){var n=this;return(0,v.A)(function*(){if(!n.secret)throw new Error("Missing secret key");try{yield n.relay.connect()}catch{throw console.error("failed to connect to relay",n.relayUrl),new Ko("Failed to connect to "+n.relayUrl,"OTHER")}})()}}const Ql={get_info:"getInfo",get_balance:"getBalance",make_invoice:"makeInvoice",pay_invoice:"sendPayment",pay_keysend:"payKeysend",lookup_invoice:"lookupInvoice",list_transactions:"listTransactions",multi_pay_invoice:"sendMultiPayment",multi_pay_keysend:"multiKeysend",sign_message:"signMessage"};class br{get relay(){return console.warn("relay is deprecated. Please use client.relay instead."),this.client.relay}get relayUrl(){return console.warn("relayUrl is deprecated. Please use client.relayUrl instead."),this.client.relayUrl}get walletPubkey(){return console.warn("walletPubkey is deprecated. Please use client.walletPubkey instead."),this.client.walletPubkey}get options(){return this.client.options}get secret(){return console.warn("secret is deprecated. Please use client.secret instead."),this.client.secret}static withNewSecret(n){return(n=n||{}).secret=bo(),new br(n)}constructor(n){this._enabled=!1,this.client=void 0,this.subscribers=void 0,this.client=new zn(n),this.subscribers={}}on(n,e){this.subscribers[n]=e}notify(n,e){const r=this.subscribers[n];r&&r(e)}getNostrWalletConnectUrl(n=!0){return console.warn("getNostrWalletConnectUrl is deprecated. Please use client.getNostrWalletConnectUrl instead."),this.client.getNostrWalletConnectUrl(n)}get nostrWalletConnectUrl(){return console.warn("nostrWalletConnectUrl is deprecated. Please use client.nostrWalletConnectUrl instead."),this.client.nostrWalletConnectUrl}get connected(){return console.warn("connected is deprecated. Please use client.connected instead."),this.client.connected}get publicKey(){return console.warn("publicKey is deprecated. Please use client.publicKey instead."),this.client.publicKey}getPublicKey(){return this.client.getPublicKey()}signEvent(n){return this.client.signEvent(n)}getEventHash(n){return console.warn("getEventHash is deprecated. Please use client.getEventHash instead."),this.client.getEventHash(n)}enable(){var n=this;return(0,v.A)(function*(){n._enabled=!0})()}close(){return this.client.close()}encrypt(n,e){var r=this;return(0,v.A)(function*(){return console.warn("encrypt is deprecated. Please use client.encrypt instead."),r.client.encrypt(n,e)})()}decrypt(n,e){var r=this;return(0,v.A)(function*(){return console.warn("decrypt is deprecated. Please use client.decrypt instead."),r.client.decrypt(n,e)})()}getAuthorizationUrl(n){return console.warn("getAuthorizationUrl is deprecated. Please use client.getAuthorizationUrl instead."),this.client.getAuthorizationUrl(n)}initNWC(n={}){return console.warn("initNWC is deprecated. Please use client.initNWC instead."),this.client.initNWC(n)}getInfo(){var n=this;return(0,v.A)(function*(){yield n.checkEnabled();const e=["lightning","nostr"],r="Alby JS SDK";try{const i=yield n.client.getInfo(),s={methods:i.methods.map(u=>Ql[u]),node:{alias:i.alias,pubkey:i.pubkey,color:i.color},supports:e,version:r};return n.notify("getInfo",s),s}catch(i){return console.error("Using minimal getInfo",i),{methods:["sendPayment"],node:{},supports:e,version:r}}})()}getBalance(){var n=this;return(0,v.A)(function*(){yield n.checkEnabled();const e=yield n.client.getBalance(),r={balance:Math.floor(e.balance/1e3),currency:"sats"};return n.notify("getBalance",r),r})()}sendPayment(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const r={preimage:(yield e.client.payInvoice({invoice:n})).preimage};return e.notify("sendPayment",r),r})()}sendPaymentAsync(n){var e=this;return(0,v.A)(function*(){return yield e.checkEnabled(),e.client.payInvoice({invoice:n}),e.notify("sendPaymentAsync",{}),{}})()}keysend(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const r={preimage:(yield e.client.payKeysend(Xo(n))).preimage};return e.notify("keysend",r),r})()}signMessage(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const r=yield e.client.signMessage({message:n}),i={message:r.message,signature:r.signature};return e.notify("keysend",i),i})()}makeInvoice(n){var e=this;return(0,v.A)(function*(){var r;yield e.checkEnabled();const i="object"==typeof n?n:void 0,s=+(null!=(r=i?.amount)?r:n);if(!s)throw new Error("No amount specified");const u={paymentRequest:(yield e.client.makeInvoice({amount:1e3*s,description:i?.defaultMemo})).invoice};return e.notify("makeInvoice",u),u})()}lookupInvoice(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const r=yield e.client.lookupInvoice({invoice:n.paymentRequest,payment_hash:n.paymentHash}),i={preimage:r.preimage,paymentRequest:r.invoice,paid:!!r.settled_at};return e.notify("lookupInvoice",i),i})()}listTransactions(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const r={transactions:(yield e.client.listTransactions(n)).transactions.map(Jl)};return e.notify("listTransactions",r),r})()}sendMultiPayment(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const i={payments:(yield e.client.multiPayInvoice({invoices:n.map((s,u)=>({invoice:s,id:u.toString()}))})).invoices.map(s=>{const u=n[parseInt(s.dTag)];if(!u)throw new Error("Could not find paymentRequest matching response d tag");return{paymentRequest:u,preimage:s.preimage}}),errors:[]};return e.notify("sendMultiPayment",i),i})()}multiKeysend(n){var e=this;return(0,v.A)(function*(){yield e.checkEnabled();const i={keysends:(yield e.client.multiPayKeysend({keysends:n.map((s,u)=>Te({},Xo(s),{id:u.toString()}))})).keysends.map(s=>{const u=n[parseInt(s.dTag)];if(!u)throw new Error("Could not find keysend matching response d tag");return{keysend:u,preimage:s.preimage}}),errors:[]};return e.notify("multiKeysend",i),i})()}lnurl(n){throw new Error("Method not implemented.")}request(n,e){throw new Error("Method not implemented.")}verifyMessage(n,e){throw new Error("Method not implemented.")}checkEnabled(){var n=this;return(0,v.A)(function*(){if(!n._enabled)throw new Error("please call enable() and await the promise before calling this function")})()}}function Jl(t){return Te({},t,{amount:Math.floor(t.amount/1e3),fees_paid:t.fees_paid?Math.floor(t.fees_paid/1e3):0})}function Xo(t){return{amount:1e3*+t.amount,pubkey:t.destination,tlv_records:t.customRecords?Object.entries(t.customRecords).map(n=>({type:parseInt(n[0]),value:qo((new TextEncoder).encode(n[1]))})):[]}}const ec=br;function Qo(t){const n={};return t.recipient.customKey&&t.recipient.customValue&&(n[t.recipient.customKey]=t.recipient.customValue),n[7629169]=JSON.stringify(t.boostagram),{destination:t.recipient.address,amount:t.amount,custom_records:n}}class Jo{constructor(n,e){this.auth=void 0,this.defaultRequestOptions=void 0,this.auth="string"==typeof n?new Ho(n):n,this.defaultRequestOptions=Te({},e,{user_agent:e?.user_agent})}accountBalance(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/balance",params:n,method:"GET"}))}accountSummary(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/summary",params:n,method:"GET"}))}accountInformation(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/me",params:n,method:"GET"}))}accountValue4Value(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/user/value4value",params:n,method:"GET"}))}incomingInvoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices/incoming",params:n,method:"GET"}))}outgoingInvoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices/outgoing",params:n,method:"GET"}))}invoices(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices",params:n,method:"GET"}))}getInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/invoices/${n}`,method:"GET"}))}decodeInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/decode/bolt11/${n}`,method:"GET"}))}createInvoice(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/invoices",request_body:n,method:"POST"}))}keysend(n,e){let r,i;return Array.isArray(n)?(r="/payments/keysend/multi",i={keysends:n.map(s=>Te({},s,{custom_records:s.customRecords}))}):(r="/payments/keysend",i=Te({},n,{custom_records:n.customRecords})),wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:r,request_body:i,method:"POST"}))}sendPayment(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/payments/bolt11",request_body:n,method:"POST"}))}sendBoostagram(n,e){let r,i;return Array.isArray(n)?(r="/payments/keysend/multi",i={keysends:n.map(s=>Qo(s))}):(r="/payments/keysend",i=Qo(n)),wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:r,request_body:i,method:"POST"}))}sendToAlbyAccount(n,e){return console.warn("sendToAlbyAccount is deprecated. Please use sendBoostagramToAlbyAccount instead."),this.sendBoostagramToAlbyAccount(n,e)}sendBoostagramToAlbyAccount(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/payments/keysend",request_body:{destination:"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3",custom_records:{696969:n.account},amount:n.amount,memo:n.memo},method:"POST"}))}createWebhookEndpoint(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/webhook_endpoints",request_body:n,method:"POST"}))}deleteWebhookEndpoint(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:`/webhook_endpoints/${n}`,method:"DELETE"}))}getSwapInfo(n){return wt(Te({auth:this.auth},this.defaultRequestOptions,n,{endpoint:"/swaps/info",method:"GET"}))}createSwap(n,e){return wt(Te({auth:this.auth},this.defaultRequestOptions,e,{endpoint:"/swaps",method:"POST",request_body:n}))}}var _r={__proto__:null,NostrWebLNProvider:br,NWC:ec,OauthWeblnProvider:class{constructor(t){this.client=void 0,this.auth=void 0,this.oauth=void 0,this.subscribers=void 0,this.isExecuting=void 0,this.auth=t.auth,this.client=new Jo(t.auth),this.oauth=!0,this.subscribers={},this.isExecuting=!1}on(t,n){this.subscribers[t]=n}notify(t,n){const e=this.subscribers[t];e&&e(n)}enable(){var t=this;return(0,v.A)(function*(){var n;if(!t.isExecuting){if(null!=(n=t.auth.token)&&n.access_token)return{enabled:!0};if(typeof window>"u"||void 0===window.document)throw new Error("Missing access token");try{t.isExecuting=!0,yield t.openAuthorization()}finally{t.isExecuting=!1}}})()}sendPayment(t){var n=this;return(0,v.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.sendPayment({invoice:t});return n.notify("sendPayment",e),{preimage:e.payment_preimage}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}keysend(t){var n=this;return(0,v.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.keysend(t);return n.notify("keysend",e),{preimage:e.payment_preimage}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}getInfo(){return(0,v.A)(function*(){return{alias:"Alby"}})()}makeInvoice(t){var n=this;return(0,v.A)(function*(){if(!n.isExecuting)try{n.isExecuting=!0;const e=yield n.client.createInvoice({amount:parseInt(t.amount.toString()),description:t.defaultMemo});return n.notify("makeInvoice",e),{paymentRequest:e.payment_request}}catch(e){let r="Unknown Error";throw e instanceof Error&&(r=e.message),new Error(r)}finally{n.isExecuting=!1}})()}openAuthorization(){var t=this;return(0,v.A)(function*(){var n=t;const e=window.outerHeight/2+window.screenY-350,r=window.outerWidth/2+window.screenX-300,i=yield t.auth.generateAuthURL({code_challenge_method:"S256"});return new Promise((s,u)=>{const f=window.open(i,`${document.title} - WebLN enable`,`height=700,width=600,top=${e},left=${r}`);let g=!1;window.addEventListener("message",function(){var m=(0,v.A)(function*(M){const k=M.data;if(k&&"alby:oauth:success"===k.type&&M.origin===`${document.location.protocol}//${document.location.host}`&&!g){g=!0,console.info("Processing OAuth code response");const O=k.payload.code;try{yield n.auth.requestAccessToken(O),n.client=new Jo(n.auth),f&&f.close(),n.notify("enable"),s({enabled:!0})}catch(L){console.error(L),u({enabled:!1})}}});return function(M){return m.apply(this,arguments)}}())})})()}}},Ii=S(5416);class tc{constructor(n,e){this._document=e;const r=this._textarea=this._document.createElement("textarea"),i=r.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",r.setAttribute("aria-hidden","true"),r.value=n,r.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(r)}copy(){const n=this._textarea;let e=!1;try{if(n){const r=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),e=this._document.execCommand("copy"),r&&r.focus()}}catch{}return e}destroy(){const n=this._textarea;n&&(n.remove(),this._textarea=void 0)}}let es=(()=>{class t{constructor(e){this._document=e}copy(e){const r=this.beginCopy(e),i=r.copy();return r.destroy(),i}beginCopy(e){return new tc(e,this._document)}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(h.qQ))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function nc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){const i=o.eBV(e).$implicit,s=o.XpG(2);return o.Njj(s.invoiceAmount=i.value)}),o.j41(1,"mat-icon"),o.EFF(2),o.k0s(),o.j41(3,"span"),o.EFF(4),o.k0s()()}if(2&t){const e=n.$implicit;o.R7$(2),o.JRh(e.icon),o.R7$(2),o.JRh(e.label)}}function rc(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content")(1,"div",4),o.DNE(2,nc,5,2,"button",5),o.k0s(),o.nrm(3,"mat-divider"),o.j41(4,"mat-form-field",6)(5,"mat-label"),o.EFF(6,"Zap Amount"),o.k0s(),o.j41(7,"input",7),o.mxI("ngModelChange",function(i){o.eBV(e);const s=o.XpG();return o.DH7(s.invoiceAmount,i)||(s.invoiceAmount=i),o.Njj(i)}),o.k0s()(),o.j41(8,"mat-dialog-actions",8)(9,"button",9),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.generateInvoice())}),o.EFF(10," Generate Invoice "),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(2),o.Y8G("ngForOf",e.zapButtons),o.R7$(5),o.R50("ngModel",e.invoiceAmount)}}function ic(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",12)(1,"span"),o.EFF(2),o.k0s(),o.nrm(3,"mat-divider")(4,"qrcode",13),o.j41(5,"mat-dialog-actions",14)(6,"button",15),o.bIt("click",function(){o.eBV(e);const i=o.XpG(2);return o.Njj(i.copyInvoice())}),o.nrm(7,"mat-icon",16),o.k0s()()()}if(2&t){const e=o.XpG(2);o.R7$(2),o.SpI("Scan with phone to pay (",e.invoiceAmount," sats)"),o.R7$(2),o.Y8G("qrdata",e.lightningInvoice)("matTooltip","Lightning Invoice")("errorCorrectionLevel","M"),o.R7$(2),o.Y8G("matTooltip","Copy Invoice"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:clipboard-document")}}function oc(t,n){if(1&t&&(o.j41(0,"mat-dialog-content"),o.DNE(1,ic,8,6,"div",11),o.k0s()),2&t){const e=o.XpG();o.R7$(),o.Y8G("ngIf",e.displayQRCode)}}let sc=(()=>{class t{constructor(e,r,i){this._dialogRef=e,this._snackBar=r,this._clipboard=i,this.invoiceAmount="",this.lightningInvoice="",this.displayQRCode=!1,this.zapButtons=[{icon:"thumb_up",label:"50",value:50},{icon:"favorite",label:"100",value:100},{icon:"emoji_emotions",label:"500",value:500},{icon:"star",label:"1k",value:1e3},{icon:"celebration",label:"5k",value:5e3},{icon:"rocket",label:"10k",value:1e4},{icon:"local_fire_department",label:"100k",value:1e5},{icon:"flash_on",label:"500k",value:5e5},{icon:"diamond",label:"1M",value:1e6}]}generateInvoice(){var e=this;return(0,v.A)(function*(){if(!e.invoiceAmount||Number(e.invoiceAmount)<=0)e.openSnackBar("Please enter a valid amount","dismiss");else try{e.nwc=new _r.NostrWebLNProvider({nostrWalletConnectUrl:yield e.loadNWCUrl()}),yield e.nwc.enable();const r=yield e.nwc.makeInvoice({amount:Number(e.invoiceAmount)});e.lightningInvoice=r.paymentRequest,e.showQRCode()}catch(r){console.error("Error generating invoice:",r),e.openSnackBar("Failed to generate invoice","dismiss")}})()}loadNWCUrl(){return(0,v.A)(function*(){try{const e=_r.NostrWebLNProvider.withNewSecret();return yield e.initNWC({name:"Angor Hub"}),e.getNostrWalletConnectUrl()}catch(e){throw console.error("Error initializing NWC:",e),new Error("Failed to initialize NWC provider")}})()}showQRCode(){this.displayQRCode=!this.displayQRCode}copyInvoice(){this.lightningInvoice?(this._clipboard.copy(this.lightningInvoice),this.openSnackBar("Invoice copied","dismiss")):this.openSnackBar("No invoice available to copy","dismiss")}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}closeDialog(){this._dialogRef.close()}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(Pe.CP),o.rXU(Ii.UG),o.rXU(es))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["app-receive-dialog"]],standalone:!0,features:[o.aNF],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[4,"ngIf"],[1,"preset-buttons"],["mat-mini-fab","","color","primary",3,"click",4,"ngFor","ngForOf"],["appearance","outline",1,"sats-input"],["matInput","","placeholder","e.g., 100","type","number",3,"ngModelChange","ngModel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],["mat-mini-fab","","color","primary",3,"click"],["class","qrcode",4,"ngIf"],[1,"qrcode"],[1,"qrcode-image",3,"qrdata","matTooltip","errorCorrectionLevel"],["align","center"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(r,i){1&r&&(o.j41(0,"div",0)(1,"button",1),o.nrm(2,"mat-icon",2),o.k0s()(),o.j41(3,"h2"),o.EFF(4,"\u26a1 Receive Zap"),o.k0s(),o.DNE(5,rc,11,2,"mat-dialog-content",3)(6,oc,2,1,"mat-dialog-content",3)),2&r&&(o.R7$(),o.Y8G("matDialogClose",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:x-mark"),o.R7$(3),o.Y8G("ngIf",!i.displayQRCode),o.R7$(),o.Y8G("ngIf",i.displayQRCode))},dependencies:[Ve.vg,B.Hl,B.$z,B.iY,B.$0,oe.m_,oe.An,T.YN,T.me,T.Q0,T.BC,T.vS,q.nJ,q.rl,T.X1,h.MD,h.Sq,h.bT,kn.Ve,q.RG,le.fS,le.fg,Pe.Yi,Pe.E7,we,de,U.q,F.oV,Pe.tx],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;width:70px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:10px 0}.qrcode[_ngcontent-%COMP%]{text-align:center}.qrcode-image[_ngcontent-%COMP%]{width:100%!important}"]})}}return t})();for(var ts=S(1146),ac=S(3838),Yt=S(917),ns={bech32:"bc",pubKeyHash:0,scriptHash:5,validWitnessVersions:[0]},rs={bech32:"tb",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},is={bech32:"tbs",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},os={bech32:"bcrt",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},ss={bech32:"sb",pubKeyHash:63,scriptHash:123,validWitnessVersions:[0]},Wn=["option_data_loss_protect","initial_routing_sync","option_upfront_shutdown_script","gossip_queries","var_onion_optin","gossip_queries_ex","option_static_remotekey","payment_secret","basic_mpp","option_support_large_channel"],lc={m:new Yt.BN(1e3,10),u:new Yt.BN(1e6,10),n:new Yt.BN(1e9,10),p:new Yt.BN(1e12,10)},cc=new Yt.BN("2100000000000000000",10),as=new Yt.BN(1e11,10),Ri={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27},ls={},Er=0,Bi=Object.keys(Ri);Er0;)e=f.slice(0,33).toString("hex"),r=f.slice(33,41).toString("hex"),i=parseInt(f.slice(41,45).toString("hex"),16),s=parseInt(f.slice(45,49).toString("hex"),16),u=parseInt(f.slice(49,51).toString("hex"),16),f=f.slice(51),n.push({pubkey:e,short_channel_id:r,fee_base_msat:i,fee_proportional_millionths:s,cltv_expiry_delta:u});return n},5:function mc(t){for(var n=t.slice().reverse().map(function(i){return[!!(1&i),!!(2&i),!!(4&i),!!(8&i),!!(16&i)]}).reduce(function(i,s){return i.concat(s)},[]);n.length<2*Wn.length;)n.push(!1);var e={extra_bits:{}};if(Wn.forEach(function(i,s){var u;n[2*s]?u="required":n[2*s+1]&&(u="supported"),e[i]=u}),n.length>2*Wn.length){var r=n.slice(2*Wn.length);e.extra_bits={start_bit:2*Wn.length,bits:r,required:r.reduce(function(i,s,u){return u%2!=0?i||!1:i||s},!1)}}return e}};function dc(t){return function(n){return{tagCode:parseInt(t),words:ts.encode("unknown",n,Number.MAX_SAFE_INTEGER)}}}function xr(t){return t.reverse().reduce(function(n,e,r){return n+e*Math.pow(32,r)},0)}function on(t,n){var e=ac.hp.from(function gc(t,n,e){for(var r=0,i=0,s=(1<=e;)u.push(r>>(i-=e)&s);return i>0&&u.push(r<{class t{constructor(e){this.http=e}getLightning(e){return this.http.get(e).pipe((0,Ni.W)(r=>(console.error("Failed to fetch Lightning response:",r),(0,Ui.of)({status:"Failed"}))))}getLightningInvoice(e,r){return this.http.get(`${e}?amount=${r}`).pipe((0,Ni.W)(s=>(console.error("Failed to fetch Lightning invoice:",s),(0,Ui.of)({pr:"",status:"Failed"}))))}getLightningAddress(e){try{const[r,i]=e.split("@");return`https://${i}/.well-known/lnurlp/${r}`}catch{return console.error("Invalid Lightning address format:",e),""}}sendZapRequest(e,r,i,s){const u=encodeURIComponent(JSON.stringify(r));return this.http.get(`${e}?amount=${i}&nostr=${u}&lnurl=${s}`).pipe((0,Ni.W)(g=>(console.error("Failed to send zap request:",g),(0,Ui.of)({pr:"",status:"Failed"}))))}login(){return(0,v.A)(function*(){try{return window.webln&&!window.webln.isEnabled()&&(yield window.webln.enable()),!0}catch(e){return console.error("WebLN login failed:",e),!1}})()}hasWebln(){return!!window.webln}sendPayment(e){var r=this;return(0,v.A)(function*(){try{return r.hasWebln()?yield window.webln.sendPayment(e):(console.error("WebLN is not available"),null)}catch(i){throw console.error("Payment failed:",i),i}})()}payInvoice(e){var r=this;return(0,v.A)(function*(){if((yield r.login())&&r.hasWebln())try{return!!(yield r.sendPayment(e))}catch(s){return console.error("Failed to pay invoice:",s),!1}return console.error("WebLN not available or login failed"),!1})()}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(wc.Qq))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function bc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){const i=o.eBV(e).$implicit,s=o.XpG(2);return o.Njj(s.sats=i.value)}),o.j41(1,"mat-icon"),o.EFF(2),o.k0s(),o.j41(3,"span"),o.EFF(4),o.k0s()()}if(2&t){const e=n.$implicit;o.R7$(2),o.JRh(e.icon),o.R7$(2),o.JRh(e.label)}}function _c(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content")(1,"div",4),o.DNE(2,bc,5,2,"button",5),o.k0s(),o.nrm(3,"mat-divider"),o.j41(4,"mat-form-field",6)(5,"mat-label"),o.EFF(6,"Zap Amount"),o.k0s(),o.j41(7,"input",7),o.mxI("ngModelChange",function(i){o.eBV(e);const s=o.XpG();return o.DH7(s.sats,i)||(s.sats=i),o.Njj(i)}),o.k0s()(),o.j41(8,"mat-dialog-actions",8)(9,"button",9),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.sendZap())}),o.EFF(10," Create invoice "),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(2),o.Y8G("ngForOf",e.zapButtons),o.R7$(5),o.R50("ngModel",e.sats)}}function Ec(t,n){if(1&t&&(o.j41(0,"div",16)(1,"span"),o.EFF(2),o.k0s(),o.nrm(3,"mat-divider")(4,"qrcode",17),o.k0s()),2&t){const e=o.XpG(2);o.R7$(2),o.SpI("Scan with phone to pay (",e.invoiceAmount," sats)"),o.R7$(2),o.Y8G("qrdata",e.lightningInvoice)("matTooltip","Lightning Invoice")("errorCorrectionLevel","M")}}function xc(t,n){if(1&t){const e=o.RV6();o.j41(0,"mat-dialog-content"),o.DNE(1,Ec,5,4,"div",11),o.j41(2,"mat-dialog-actions",12)(3,"button",13),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.copyInvoice())}),o.nrm(4,"mat-icon",14),o.k0s(),o.j41(5,"button",13),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.payInvoice())}),o.nrm(6,"mat-icon",15),o.k0s()()()}if(2&t){const e=o.XpG();o.R7$(),o.Y8G("ngIf",e.displayQRCode),o.R7$(2),o.Y8G("matTooltip","Copy Invoice"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:clipboard-document"),o.R7$(),o.Y8G("matTooltip","Pay Invoice"),o.R7$(),o.Y8G("svgIcon","feather:zap")}}let Mc=(()=>{class t{constructor(e,r,i,s,u){this._dialogRef=e,this._metadata=r,this._lightning=i,this._snackBar=s,this._clipboard=u,this.lightningInvoice="",this.showInvoiceSection=!1,this.displayQRCode=!1,this.invoiceAmount="?",this.zapButtons=[{icon:"thumb_up",label:"50",value:50},{icon:"favorite",label:"100",value:100},{icon:"emoji_emotions",label:"500",value:500},{icon:"star",label:"1k",value:1e3},{icon:"celebration",label:"5k",value:5e3},{icon:"rocket",label:"10k",value:1e4},{icon:"local_fire_department",label:"100k",value:1e5},{icon:"flash_on",label:"500k",value:5e5},{icon:"diamond",label:"1M",value:1e6}],this.getLightningInfo()}getLightningInfo(){let e="";if(this._metadata?.lud06){const{words:r}=ne.I.decode(this._metadata.lud06,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else if(this._metadata?.lud16?.toLowerCase().startsWith("lnurl")){const{words:r}=ne.I.decode(this._metadata.lud16,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else this._metadata?.lud16&&(e=this._lightning.getLightningAddress(this._metadata.lud16));""!==e?this._lightning.getLightning(e).subscribe(r=>{this.lightningResponse=r,"Failed"===this.lightningResponse.status?this.openSnackBar("Failed to lookup lightning address","dismiss"):this.lightningResponse.callback?this.showInvoiceSection=!0:this.openSnackBar("Couldn't find user's lightning address","dismiss")}):this.openSnackBar("No lightning address found","dismiss")}getLightningInvoice(e){var r=this;this.lightningResponse&&this.lightningResponse.callback&&this._lightning.getLightningInvoice(this.lightningResponse.callback,e).subscribe(function(){var i=(0,v.A)(function*(s){r.lightningInvoice=s.pr,r.setInvoiceAmount(r.lightningInvoice),r.showInvoiceSection=!0,r.showQRCode()});return function(s){return i.apply(this,arguments)}}())}setInvoiceAmount(e){if(e){const i=function yc(t,n){if("string"!=typeof t)throw new Error("Lightning Payment Request must be string");if("ln"!==t.slice(0,2).toLowerCase())throw new Error("Not a proper lightning payment request");var e=[],r=ts.decode(t,Number.MAX_SAFE_INTEGER);t=t.toLowerCase();var i=r.prefix,s=r.words,u=t.slice(i.length+1),f=s.slice(-104);s=s.slice(0,-104);var g=i.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(g&&!g[2]&&(g=i.match(/^ln(\S+)$/)),!g)throw new Error("Not a proper lightning payment request");e.push({name:"lightning_network",letters:"ln"});var M,m=g[1];if(n){if(void 0===n.bech32||void 0===n.pubKeyHash||void 0===n.scriptHash||!Array.isArray(n.validWitnessVersions))throw new Error("Invalid network");M=n}else switch(m){case ns.bech32:M=ns;break;case rs.bech32:M=rs;break;case is.bech32:M=is;break;case os.bech32:M=os;break;case ss.bech32:M=ss}if(!M||M.bech32!==m)throw new Error("Unknown coin bech32 prefix");e.push({name:"coin_network",letters:m,value:M});var O,k=g[2];k?(O=function vc(t,n){var e,r;if(t.slice(-1).match(/^[munp]$/))e=t.slice(-1),r=t.slice(0,-1);else{if(t.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");r=t}if(!r.match(/^\d+$/))throw new Error("Not a valid human readable amount");var i=new Yt.BN(r,10),s=e?i.mul(as).div(lc[e]):i.mul(as);if("p"===e&&!i.mod(new Yt.BN(10,10)).eq(new Yt.BN(0,10))||s.gt(cc))throw new Error("Amount is outside of valid range");return n?s.toString():s}(k+g[3],!0),e.push({name:"amount",letters:g[2]+g[3],value:O})):O=null,e.push({name:"separator",letters:"1"});var I,D,$,H,P=xr(s.slice(0,7));for(s=s.slice(7),e.push({name:"timestamp",letters:u.slice(0,7),value:P}),u=u.slice(7);s.length>0;){var Z=s[0].toString();I=ls[Z]||"unknown_tag",D=hc[Z]||dc(Z),$=xr((s=s.slice(1)).slice(0,2)),H=(s=s.slice(2)).slice(0,$),s=s.slice($),e.push({name:I,tag:u[0],letters:u.slice(0,3+$),value:D(H)}),u=u.slice(3+$)}e.push({name:"signature",letters:u.slice(0,104),value:on(f,!0)}),u=u.slice(104),e.push({name:"checksum",letters:u});var V={paymentRequest:t,sections:e,get expiry(){var Q=e.find(function(X){return"expiry"===X.name});if(Q)return Y("timestamp")+Q.value},get route_hints(){return e.filter(function(Q){return"route_hint"===Q.name}).map(function(Q){return Q.value})}},J=function(Q){if("route_hint"===Q)return"continue";Object.defineProperty(V,Q,{get:function(){return Y(Q)}})};for(var G in Ri)J(G);return V;function Y(Q){var X=e.find(function(pe){return pe.name===Q});return X?X.value:void 0}}(e).sections.find(s=>"amount"===s.name);i&&(this.invoiceAmount=String(Number(i.value)/1e3))}}showQRCode(){this.displayQRCode=!this.displayQRCode}sendZap(){this.getLightningInvoice(String(1e3*Number(this.sats)))}payInvoice(){var e=this;return(0,v.A)(function*(){if(!e.lightningInvoice)return void console.error("Lightning invoice is not set");const r=new _r.NostrWebLNProvider({nostrWalletConnectUrl:yield e.loadNWCUrl()});r.enable().then(()=>r.sendPayment(e.lightningInvoice)).then(i=>{i&&i.preimage?(console.log(`Payment successful, preimage: ${i.preimage}`),e.openSnackBar("Zapped!","dismiss"),e._dialogRef.close()):e.listenForPaymentStatus(r)}).catch(i=>{console.error("Payment failed:",i),e.openSnackBar("Failed to pay invoice","dismiss"),e.listenForPaymentStatus(r)})})()}loadNWCUrl(){const e=_r.NostrWebLNProvider.withNewSecret();return e.initNWC({name:"Angor Hub"}).then(()=>e.getNostrWalletConnectUrl()).catch(r=>{throw console.error("Error initializing NWC:",r),r})}listenForPaymentStatus(e){const r=()=>{e.sendPayment(this.lightningInvoice).then(i=>{i&&i.preimage?(console.log("Payment confirmed, preimage:",i.preimage),this.openSnackBar("Payment confirmed!","dismiss"),this._dialogRef.close()):setTimeout(r,5e3)}).catch(i=>{console.error("Error checking payment status:",i),setTimeout(r,5e3)})};r()}copyInvoice(){this.lightningInvoice?(this._clipboard.copy(this.lightningInvoice),this.openSnackBar("Invoice copied","dismiss")):this.openSnackBar("No invoice available to copy","dismiss")}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}closeDialog(){this._dialogRef.close()}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(Pe.CP),o.rXU(Pe.Vh),o.rXU(cs),o.rXU(Ii.UG),o.rXU(es))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["app-send-dialog"]],standalone:!0,features:[o.aNF],decls:7,vars:4,consts:[[1,"absolute","right-0","top-0","pr-4","pt-4"],["mat-icon-button","",3,"matDialogClose"],[1,"text-secondary",3,"svgIcon"],[4,"ngIf"],[1,"preset-buttons"],["mat-mini-fab","","color","primary",3,"click",4,"ngFor","ngForOf"],["appearance","outline",1,"sats-input"],["matInput","","placeholder","e.g., 100","type","number",3,"ngModelChange","ngModel"],["align","end"],["mat-raised-button","","color","primary",3,"click"],["mat-mini-fab","","color","primary",3,"click"],["class","qrcode",4,"ngIf"],["align","center"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"],["color","#f79318",3,"svgIcon"],[1,"qrcode"],[1,"qrcode-image",3,"qrdata","matTooltip","errorCorrectionLevel"]],template:function(r,i){1&r&&(o.j41(0,"div",0)(1,"button",1),o.nrm(2,"mat-icon",2),o.k0s()(),o.j41(3,"h1"),o.EFF(4,"\u26a1 Send Zap"),o.k0s(),o.DNE(5,_c,11,2,"mat-dialog-content",3)(6,xc,7,5,"mat-dialog-content",3)),2&r&&(o.R7$(),o.Y8G("matDialogClose",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:x-mark"),o.R7$(3),o.Y8G("ngIf",!i.showInvoiceSection||!i.lightningInvoice),o.R7$(),o.Y8G("ngIf",i.showInvoiceSection&&i.lightningInvoice))},dependencies:[Ve.vg,B.Hl,B.$z,B.iY,B.$0,oe.m_,oe.An,T.YN,T.me,T.Q0,T.BC,T.vS,q.nJ,q.rl,T.X1,h.MD,h.Sq,h.bT,kn.Ve,q.RG,le.fS,le.fg,Pe.Yi,Pe.E7,we,de,U.q,F.oV,Pe.tx],styles:[".preset-buttons[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;justify-items:center;margin-bottom:20px}.preset-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:14px;font-weight:700;width:70px;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:60px!important}.sats-input[_ngcontent-%COMP%]{margin-top:20px;width:100%}.lightning-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly;margin:10px 0}.qrcode[_ngcontent-%COMP%]{text-align:center}.qrcode-image[_ngcontent-%COMP%]{width:100%!important}"]})}}return t})();var Pi=S(4930),kc=S(7291),us=S(6231),fs=S(7343);let Sc=(()=>{class t{constructor(e,r,i){this.relayService=e,this.signerService=r,this.queueService=i,this.followersSubject=new Ge.B,this.followingSubject=new Ge.B}getFollowersObservable(){return this.followersSubject.asObservable()}getFollowingObservable(){return this.followingSubject.asObservable()}getFollowers(e){var r=this;return(0,v.A)(function*(){const i=[{kinds:[3],"#p":[e]}],s=[];return new Promise((u,f)=>{r.queueService.addRequestToQueue(i).subscribe({next:m=>{s.push(m),r.followersSubject.next(m)},error:m=>{console.error("Error fetching followers:",m),f(m)},complete:()=>{u(s)}})})})()}getFollowing(e){var r=this;return(0,v.A)(function*(){const i=[{kinds:[3],authors:[e]}],s=[];return new Promise((u,f)=>{r.queueService.addRequestToQueue(i).subscribe({next:m=>{m.tags.filter(k=>"p"===k[0]).forEach(k=>{s.push(k[1]),r.followingSubject.next(m)})},error:m=>{console.error("Error fetching following:",m),f(m)},complete:()=>{u(s)}})})})()}follow(e){var r=this;return(0,v.A)(function*(){const i=r.getFollowingList();if(i.includes(e))return void console.log(`Already following ${e}`);const s=[...i,e];r.setFollowingList(s);const u=r.signerService.getUnsignedEvent(3,s.map(f=>["p",f]),"");yield r.publishSignedEvent(u),console.log(`Now following ${e}`)})()}unfollow(e){var r=this;return(0,v.A)(function*(){const i=r.getFollowingList();if(!i.includes(e))return void console.log(`Not following ${e}`);const s=i.filter(f=>f!==e);r.setFollowingList(s);const u=r.signerService.getUnsignedEvent(3,s.map(f=>["p",f]),"");yield r.publishSignedEvent(u),console.log(`Unfollowed ${e}`)})()}publishSignedEvent(e){var r=this;return(0,v.A)(function*(){let s;if(yield r.signerService.isUsingExtension())s=yield r.signerService.signEventWithExtension(e);else{const u=yield r.signerService.getDecryptedSecretKey();if(!u)throw new Error("Secret key is missing. Unable to sign event.");s=r.signerService.getSignedEvent(e,u)}r.relayService.publishEventToWriteRelays(s)})()}getFollowingListAsTags(){const e=this.getFollowingList(),r=[],i=this.relayService.getConnectedRelays();return e.forEach(s=>{i.forEach(u=>{r.push(["p",s,u,localStorage.getItem(`${s}`)||""])})}),r}setFollowingListFromTags(e){const r=[];e.forEach(i=>{r.push(i[1])}),this.setFollowingList(r)}setFollowingList(e){const i=Array.from(new Set(e)).filter(s=>s).join(",");localStorage.setItem("following",i)}getFollowingList(){const e=localStorage.getItem("following");return null===e||""===e?[]:e.split(",").filter(i=>/[a-f0-9]{64}/.test(i))}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(us.b),o.KVO(Pi.A),o.KVO(fs.F))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ac=S(881),Cc=S(9979),Mr=S(5766);class Tc{constructor(n,e,r,i,s,u,f=[]){this.username="",this.picture="/images/avatars/avatar-placeholder.png",this.replyCount=0,this.likeCount=0,this.zapCount=0,this.repostCount=0,this.likedByMe=!1,this.replies=[],this.likers=[],this.reposters=[],this.zappers=[],this.relatedEventIds=[],this.rootEventId="",this.replyToEventId="",this.mentions=[],this.hashtags=[],this.repostedByMe=!1,this.tags=[],this.isAReply=!1,this.kind=e,this.pubkey=r,this.content=i,this.noteId=s,this.createdAt=u,this.date=new Date(1e3*this.createdAt),this.fromNow=this.calculateTimeFromNow(this.date),this.tags=f,this.id=n}calculateTimeFromNow(n){const r=Math.floor(((new Date).getTime()-n.getTime())/1e3);return r<60?`${r} seconds ago`:r<3600?`${Math.floor(r/60)} minutes ago`:r<86400?`${Math.floor(r/3600)} hours ago`:r<2592e3?`${Math.floor(r/86400)} days ago`:r<31536e3?`${Math.floor(r/2592e3)} months ago`:`${Math.floor(r/31536e3)} years ago`}}var kr=S(719),Li=S(4412),Ic=S(3386),Rc=S(2827);let Bc=(()=>{class t{constructor(e,r,i,s){this.relayService=e,this.signerService=r,this.metadataService=i,this.queueService=s,this.eventsSubject=new Li.t([]),this.isLoading=new Li.t(!1),this.lastLoadedEventTime=null,this.pageSize=10,this.noMoreEvents=new Li.t(!1),this.seenEventIds=new Set,this.likesMap=new Map,this.repliesMap=new Map,this.zapsMap=new Map,this.repostsMap=new Map,this.hasLikedMap=new Map,this.hasRepostedMap=new Map,this.jobQueue=[],this.isProcessingQueue=!1,this.myLikedNoteIds=[]}subscribeToEvents(e){var r=this;return(0,v.A)(function*(){yield r.relayService.ensureConnectedRelays();const i=r.relayService.getConnectedRelays().slice(0,3);if(!i||0===i.length)return void console.error("No connected relays available.");const s=[{kinds:[1],authors:e,limit:r.pageSize},{"#p":e,limit:1}];r.relayService.getPool().subscribeMany(i,s,{onevent:f=>{r.isReply(f)||r.handleNewOrUpdatedEvent(f);const g=r.getParentEventId(f);switch(g&&r.enqueueJob(g),f.kind){case 7:case 9735:case 6:r.enqueueJob(g)}},oneose:()=>{}})})()}getParentEventId(e){const r=e.tags.find(i=>"e"===i[0]);return r?r[1]:null}handleNewOrUpdatedEvent(e){var r=this;return(0,v.A)(function*(){switch(e.kind){case 1:if(!r.seenEventIds.has(e.id)){r.seenEventIds.add(e.id);const i=yield r.createNewEvent(e);r.eventsSubject.next([i]),r.updateEventInSubject(e.id)}break;case 7:r.handleLikeEvent(e);break;case 9735:r.handleZapEvent(e);break;case 6:r.handleRepostEvent(e);break;case 4:r.handleReplyEvent(e)}})()}handleLikeEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.likeCount+=1,s.likers=[...s.likers||[],e.pubkey],this.eventsSubject.next([s]))}}handleZapEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.zapCount+=1,s.zappers=[...s.zappers||[],e.pubkey],this.eventsSubject.next([s]))}}handleRepostEvent(e){const r=e.tags.find(i=>"e"===i[0])?.[1];if(r){const s=this.eventsSubject.getValue().find(u=>u.id===r);s&&(s.repostCount+=1,s.reposters=[...s.reposters||[],e.pubkey],this.eventsSubject.next([s]))}}handleReplyEvent(e){var r=this;return(0,v.A)(function*(){const i=e.tags.find(s=>"e"===s[0])?.[1];if(i){const s=yield r.createNewEvent(e),f=r.eventsSubject.getValue().find(g=>g.id===i);f&&(f.replyCount+=1,f.replies=[...f.replies||[],s],r.eventsSubject.next([f]))}})()}isReply(e){return e.tags.filter(i=>"e"===i[0]||"p"===i[0]).length>0}getMyLikes(){var e=this;return(0,v.A)(function*(){const r={kinds:[7],authors:[e.signerService.getPublicKey()]};try{return(yield e.fetchFilteredEvents(r)).forEach(s=>{const u=s.tags.find(f=>"e"===f[0]);u&&e.myLikedNoteIds.push(u[1])}),e.myLikedNoteIds}catch(i){return console.error("Failed to get user likes:",i),[]}})()}loadMoreEvents(e){var r=this;return(0,v.A)(function*(){if(r.isLoading.value||r.noMoreEvents.value)return;r.isLoading.next(!0);const i={authors:e,kinds:[1],until:r.lastLoadedEventTime||Math.floor(Date.now()/1e3),limit:r.pageSize};try{const s=yield r.fetchFilteredEvents(i);if(s.length0){r.lastLoadedEventTime=s[s.length-1].created_at;const u=s.filter(g=>!r.seenEventIds.has(g.id)&&!r.isReply(g));u.forEach(g=>r.seenEventIds.add(g.id));const f=yield Promise.all(u.map(g=>r.createNewEvent(g)));r.eventsSubject.next([...r.eventsSubject.getValue(),...f].sort((g,m)=>m.createdAt-g.createdAt))}else r.noMoreEvents.next(!0)}catch(s){console.error("Error loading more events:",s)}finally{r.isLoading.next(!1)}})()}fetchFilteredEvents(e){var r=this;return(0,v.A)(function*(){return new Promise((i,s)=>{const u=new Map,f=[];r.queueService.addRequestToQueue([e]).subscribe({next:g=>{u.has(g.id)||(u.set(g.id,g),f.push(g))},error:g=>{console.error("Error fetching events:",g),s(g)},complete:()=>{console.log("All events fetched and completed"),i(f)}})})})()}createNewEvent(e){var r=this;return(0,v.A)(function*(){const i=new Tc(e.id,e.kind,e.pubkey,e.content,e.id,e.created_at,e.tags);r.enqueueJob(e.id),yield r.processJobQueue(),i.likedByMe=r.myLikedNoteIds.includes(e.id);const s=yield r.metadataService.fetchMetadataWithCache(e.pubkey);return s&&(i.username=s.name||i.npub,i.picture=s.picture||"/images/avatars/avatar-placeholder.png"),i})()}enqueueJob(e){this.jobQueue.some(r=>r.eventId===e)||(this.jobQueue.push({eventId:e}),this.isProcessingQueue||this.processJobQueue())}processJobQueue(){var e=this;return(0,v.A)(function*(){if(e.isProcessingQueue)return;e.isProcessingQueue=!0;const r=[];for(;e.jobQueue.length>0||r.length>0;){for(;e.jobQueue.length>0&&r.length<10;){const i=e.jobQueue.shift();if(!i)break;yield e.delay(1e3);const s=e.processJobWithQueueService(i);r.push(s),s.then(()=>{r.splice(r.indexOf(s),1)}).catch(u=>{console.error("Error processing job:",u),r.splice(r.indexOf(s),1)})}yield Promise.race(r)}e.isProcessingQueue=!1})()}processJobWithQueueService(e){var r=this;return(0,v.A)(function*(){try{const i=yield r.fetchMultiFilterEvents(e.eventId);r.repliesMap.set(e.eventId,i.replies),r.likesMap.set(e.eventId,i.likers),r.zapsMap.set(e.eventId,i.zappers),r.repostsMap.set(e.eventId,i.reposters),r.updateEventInSubject(e.eventId)}catch(i){throw console.error("Error processing job with QueueService:",i),i}})()}delay(e){return new Promise(r=>setTimeout(r,e))}updateEventInSubject(e){const i=this.eventsSubject.getValue().map(s=>(s.id===e&&(s.replyCount=this.getRepliesCount(e),s.replies=this.repliesMap.get(e)||[],s.likeCount=this.getLikesCount(e),s.likers=this.likesMap.get(e)||[],s.zapCount=this.getZapsCount(e),s.zappers=this.zapsMap.get(e)||[],s.repostCount=this.getRepostsCount(e),s.reposters=this.repostsMap.get(e)||[]),s));this.eventsSubject.next(i)}fetchMultiFilterEvents(e){var r=this;return(0,v.A)(function*(){const i=[{"#e":[e],kinds:[1]},{"#e":[e],kinds:[7]},{"#e":[e],kinds:[9735]},{"#e":[e],kinds:[6]}],s=new Map,u=[],f=[],g=[],m=[],M=r.queueService.addRequestToQueue(i);return new Promise((k,O)=>{var L;M.subscribe({next:(L=(0,v.A)(function*(P){if(s.has(P.id)||s.set(P.id,P),1===P.kind){const I=yield r.createNewEvent(P);u.push(I)}else 7===P.kind?f.push(P.pubkey):9735===P.kind?g.push(P.pubkey):6===P.kind&&m.push(P.pubkey)}),function(I){return L.apply(this,arguments)}),error:L=>{console.error("Error fetching events:",L),O(L)},complete:()=>{k({replies:u,likers:f,zappers:g,reposters:m})}})})})()}getRepliesCount(e){return(this.repliesMap.get(e)||[]).length}getLikesCount(e){return(this.likesMap.get(e)||[]).length}getZapsCount(e){return(this.zapsMap.get(e)||[]).length}getRepostsCount(e){return(this.repostsMap.get(e)||[]).length}hasUserLiked(e){return this.hasLikedMap.get(e)||!1}hasUserReposted(e){return this.hasRepostedMap.get(e)||!1}getEventStream(){return this.eventsSubject.asObservable().pipe((0,Ic.c)(1e3))}hasMoreEvents(){return this.noMoreEvents.asObservable()}sendTextEvent(e){var r=this;return(0,v.A)(function*(){if(e)try{const s=r.signerService.getUnsignedEvent(1,[],e);let u;if(r.signerService.isUsingSecretKey()){const f=yield r.signerService.getDecryptedSecretKey(),g=(0,Mr.aT)(f);u=(0,kr.pC)(s,g)}else u=yield r.signerService.signEventWithExtension(s);yield r.relayService.publishEventToWriteRelays(u)}catch(i){console.error("Failed to send text event:",i)}})()}sendLikeEvent(e){var r=this;return(0,v.A)(function*(){if(e)try{const u=r.signerService.getUnsignedEvent(7,[["e",e.id],["p",e.pubkey]],"+");let f;if(r.signerService.isUsingSecretKey()){const g=yield r.signerService.getDecryptedSecretKey(),m=(0,Mr.aT)(g);f=(0,kr.pC)(u,m)}else f=yield r.signerService.signEventWithExtension(u);yield r.relayService.publishEventToWriteRelays(f),r.likesMap.set(e.id,[...r.likesMap.get(e.id)||[],r.signerService.getPublicKey()]),r.hasLikedMap.set(e.id,!0)}catch(i){console.error("Failed to send like event:",i)}})()}sendZapEvent(e,r){var i=this;return(0,v.A)(function*(){if(e&&!(r<=0))try{const s=[["e",e.id],["p",e.pubkey],["amount",r.toString()]],f=i.signerService.getUnsignedEvent(9735,s,`Zapped with ${r} sats`);let g;if(i.signerService.isUsingSecretKey()){const m=yield i.signerService.getDecryptedSecretKey(),M=(0,Mr.aT)(m);g=(0,kr.pC)(f,M)}else g=yield i.signerService.signEventWithExtension(f);yield i.relayService.publishEventToWriteRelays(g)}catch(s){console.error("Failed to send zap event:",s)}})()}sendReplyEvent(e,r){var i=this;return(0,v.A)(function*(){if(e)try{const u=i.signerService.getUnsignedEvent(1,[["e",e.id],["p",e.pubkey]],r);let f;if(i.signerService.isUsingSecretKey()){const g=yield i.signerService.getDecryptedSecretKey(),m=(0,Mr.aT)(g);f=(0,kr.pC)(u,m)}else f=yield i.signerService.signEventWithExtension(u);yield i.relayService.publishEventToWriteRelays(f)}catch(s){console.error("Failed to send reply event:",s)}})()}clearEvents(){this.eventsSubject.next([]),this.seenEventIds.clear(),this.lastLoadedEventTime=null,this.noMoreEvents.next(!1)}static{this.\u0275fac=function(r){return new(r||t)(o.KVO(us.b),o.KVO(Pi.A),o.KVO(Rc.T),o.KVO(fs.F))}}static{this.\u0275prov=o.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Uc=S(5645);const Nc=["eventInput"],Pc=["commentInput"],Lc=()=>["./"],Oc=t=>({"heart-beat":t}),jc=t=>({"rotate-180":t});function Dc(t,n){if(1&t&&(o.qex(0),o.nrm(1,"img",32),o.bVm()),2&t){const e=o.XpG();o.R7$(),o.FS9("alt",(null==e.profileUser?null:e.profileUser.display_name)||(null==e.profileUser?null:e.profileUser.name)||""),o.Y8G("src",e.getSafeUrl(null==e.profileUser?null:e.profileUser.picture),o.B4B)}}function $c(t,n){if(1&t&&o.nrm(0,"img",33),2&t){const e=o.XpG();o.FS9("alt",(null==e.profileUser?null:e.profileUser.display_name)||(null==e.profileUser?null:e.profileUser.name)||"")}}function Fc(t,n){if(1&t&&(o.j41(0,"div",34)(1,"div",35)(2,"span",36),o.EFF(3),o.k0s(),o.j41(4,"span",37),o.EFF(5,"FOLLOWERS"),o.k0s()(),o.j41(6,"div",35)(7,"span",38),o.EFF(8),o.k0s(),o.j41(9,"span",39),o.EFF(10,"FOLLOWING"),o.k0s()()()),2&t){const e=n.ngIf;o.R7$(2),o.Y8G("matTooltip","Total contact: "+e.totalContacts),o.R7$(),o.JRh(e.followersCount),o.R7$(5),o.JRh(e.followingCount),o.R7$(),o.Y8G("matTooltip","Total contact: "+e.totalContacts)}}function qc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div")(1,"button",40),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleFollow())}),o.nrm(2,"mat-icon",41),o.k0s()()}if(2&t){const e=o.XpG();o.R7$(),o.Y8G("matTooltip",e.isFollowing?"Unfollow":"Follow"),o.R7$(),o.Y8G("svgIcon",e.isFollowing?"heroicons_outline:user-minus":"heroicons_outline:user-plus")}}function Gc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",42),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.zap())}),o.j41(1,"span",43),o.nrm(2,"mat-icon",44),o.j41(3,"span"),o.EFF(4,"Send Zap"),o.k0s()()()}2&t&&(o.R7$(2),o.Y8G("svgIcon","feather:zap"))}function zc(t,n){if(1&t){const e=o.RV6();o.j41(0,"button",42),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.openReceiveZapDialog())}),o.j41(1,"span",43),o.nrm(2,"mat-icon",44),o.j41(3,"span"),o.EFF(4,"Receive Zap"),o.k0s()()()}2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:qr-code"))}function Wc(t,n){1&t&&(o.j41(0,"button",45)(1,"span",43),o.nrm(2,"mat-icon",44),o.j41(3,"span"),o.EFF(4,"Edit your profile"),o.k0s()()()),2&t&&(o.Y8G("routerLink","/settings/profile"),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:pencil-square"))}function Hc(t,n){1&t&&(o.j41(0,"button",46)(1,"span",43),o.nrm(2,"mat-icon",44),o.j41(3,"span"),o.EFF(4,"Report"),o.k0s()()()),2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_solid:exclamation-triangle"))}function Vc(t,n){1&t&&(o.j41(0,"button",46)(1,"span",43),o.nrm(2,"mat-icon",44),o.j41(3,"span"),o.EFF(4,"Turn on notifications"),o.k0s()()()),2&t&&(o.R7$(2),o.Y8G("svgIcon","heroicons_solid:bell"))}function Yc(t,n){if(1&t&&(o.j41(0,"angor-card",47)(1,"div",48),o.EFF(2,"About"),o.k0s(),o.j41(3,"div",49),o.EFF(4),o.k0s(),o.j41(5,"a",50),o.EFF(6," See complete about "),o.k0s()()),2&t){const e=o.XpG();o.R7$(4),o.SpI(" ",(null==e.profileUser?null:e.profileUser.about)||""," "),o.R7$(),o.Y8G("color","primary")("routerLink",o.lJ4(3,Lc))}}function Kc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",69)(1,"emoji-mart",70),o.bIt("emojiClick",function(i){o.eBV(e);const s=o.XpG(2);return o.Njj(s.addEmoji(i))}),o.k0s()()}if(2&t){const e=o.XpG(2);o.R7$(),o.Y8G("darkMode",e.darkMode)}}function Zc(t,n){if(1&t){const e=o.RV6();o.j41(0,"angor-card",51)(1,"div",52)(2,"div",53),o.EFF(3,"Create Post"),o.k0s(),o.j41(4,"mat-slide-toggle",54),o.bIt("change",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.togglePreview())}),o.EFF(5," Preview "),o.k0s()(),o.j41(6,"div",55)(7,"div",56),o.nrm(8,"img",57),o.j41(9,"div",58),o.EFF(10),o.k0s()(),o.j41(11,"mat-form-field",59),o.nrm(12,"textarea",60,2),o.k0s()(),o.j41(14,"div",61)(15,"div",43)(16,"button",62),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleEmojiPicker())}),o.nrm(17,"mat-icon",21),o.j41(18,"span",63),o.EFF(19,"Feeling"),o.k0s()(),o.DNE(20,Kc,2,1,"div",64),o.j41(21,"button",65),o.nrm(22,"mat-icon",21),o.j41(23,"span",63),o.EFF(24,"Media"),o.k0s()(),o.j41(25,"button",65),o.nrm(26,"mat-icon",21),o.j41(27,"span",63),o.EFF(28,"Tag"),o.k0s()(),o.j41(29,"button",66),o.nrm(30,"mat-icon",21),o.k0s(),o.j41(31,"mat-menu",null,3)(33,"button",67)(34,"span",43),o.nrm(35,"mat-icon",44),o.j41(36,"span"),o.EFF(37,"Tag"),o.k0s()()(),o.j41(38,"button",67)(39,"span",43),o.nrm(40,"mat-icon",44),o.j41(41,"span"),o.EFF(42,"Feeling"),o.k0s()()(),o.j41(43,"button",46)(44,"span",43),o.nrm(45,"mat-icon",44),o.j41(46,"span"),o.EFF(47,"Live"),o.k0s()()(),o.j41(48,"button",46)(49,"span",43),o.nrm(50,"mat-icon",44),o.j41(51,"span"),o.EFF(52,"Gif"),o.k0s()()(),o.j41(53,"button",46)(54,"span",43),o.nrm(55,"mat-icon",44),o.j41(56,"span"),o.EFF(57,"Check in"),o.k0s()()()()(),o.j41(58,"button",68),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.sendEvent())}),o.nrm(59,"mat-icon",21),o.j41(60,"span",63),o.EFF(61,"Send"),o.k0s()()()()}if(2&t){const e=o.sdS(32),r=o.XpG();o.R7$(4),o.Y8G("color","primary"),o.R7$(4),o.FS9("alt",(null==r.currentUser?null:r.currentUser.display_name)||(null==r.currentUser?null:r.currentUser.name)||"Avatar"),o.Y8G("src",(null==r.currentUser?null:r.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(2),o.SpI(" ",(null==r.currentUser?null:r.currentUser.name)||"Unknown User"," "),o.R7$(),o.Y8G("subscriptSizing","dynamic"),o.R7$(),o.Y8G("placeholder","What's on your mind?")("rows",3),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(3),o.Y8G("ngIf",r.showEmojiPicker),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:photo"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",e),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-horizontal"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:user-circle"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:play"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:sparkles"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:map-pin"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:paper-airplane")}}function Xc(t,n){if(1&t){const e=o.RV6();o.j41(0,"div",69)(1,"emoji-mart",70),o.bIt("emojiClick",function(i){o.eBV(e);const s=o.XpG(2);return o.Njj(s.addEmojiTocomment(i))}),o.k0s()()}if(2&t){const e=o.XpG(2);o.R7$(),o.Y8G("darkMode",e.darkMode)}}function Qc(t,n){if(1&t){const e=o.RV6();o.j41(0,"angor-card",71,4)(2,"div",72),o.nrm(3,"img",73),o.j41(4,"div",74)(5,"span",75),o.EFF(6),o.k0s(),o.j41(7,"span",76),o.EFF(8,"1 minutes ago"),o.k0s()(),o.j41(9,"button",77),o.nrm(10,"mat-icon",21),o.k0s(),o.j41(11,"mat-menu",null,5)(13,"button",46)(14,"span",43),o.nrm(15,"mat-icon",44),o.j41(16,"span"),o.EFF(17,"Save post"),o.k0s()()(),o.j41(18,"button",46)(19,"span",43),o.nrm(20,"mat-icon",44),o.j41(21,"span"),o.EFF(22,"Hide post"),o.k0s()()(),o.j41(23,"button",46)(24,"span",43),o.nrm(25,"mat-icon",44),o.j41(26,"span"),o.EFF(27,"Snooze for 30 days"),o.k0s()()(),o.j41(28,"button",46)(29,"span",43),o.nrm(30,"mat-icon",44),o.j41(31,"span"),o.EFF(32,"Hide all"),o.k0s()()(),o.nrm(33,"mat-divider",23),o.j41(34,"button",46)(35,"span",43),o.nrm(36,"mat-icon",44),o.j41(37,"span"),o.EFF(38,"Report post"),o.k0s()()(),o.j41(39,"button",46)(40,"span",43),o.nrm(41,"mat-icon",44),o.j41(42,"span"),o.EFF(43,"Turn on notifications for this post"),o.k0s()()()()(),o.j41(44,"div",78),o.EFF(45),o.k0s(),o.nrm(46,"div",79),o.j41(47,"div",80)(48,"button",62),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleLike())}),o.nrm(49,"mat-icon",81),o.j41(50,"span",63),o.EFF(51),o.k0s()(),o.j41(52,"button",62),o.bIt("click",function(){o.eBV(e);const i=o.sdS(1);return o.Njj(i.expanded=!i.expanded)}),o.nrm(53,"mat-icon",21),o.j41(54,"span",63),o.EFF(55,"Comment"),o.k0s()(),o.j41(56,"button",82),o.nrm(57,"mat-icon",21),o.j41(58,"span",63),o.EFF(59,"Share"),o.k0s()()(),o.nrm(60,"hr",83),o.j41(61,"div",84)(62,"div",43),o.nrm(63,"img",85)(64,"img",86)(65,"img",86)(66,"img",86),o.j41(67,"div",87),o.EFF(68," You and 4 more liked this "),o.k0s()(),o.nrm(69,"div",88),o.j41(70,"div",89)(71,"button",90),o.EFF(72," 0 shares "),o.k0s(),o.j41(73,"button",91),o.bIt("click",function(){o.eBV(e);const i=o.sdS(1);return o.Njj(i.expanded=!i.expanded)}),o.j41(74,"span",92),o.EFF(75,"0 Comments"),o.k0s(),o.nrm(76,"mat-icon",93),o.k0s()()(),o.qex(77,94),o.nrm(78,"hr",95),o.j41(79,"div",96)(80,"div",97),o.nrm(81,"img",98),o.j41(82,"mat-form-field",59),o.nrm(83,"textarea",60,6),o.k0s()(),o.j41(85,"div",99)(86,"div",43)(87,"button",100),o.bIt("click",function(){o.eBV(e);const i=o.XpG();return o.Njj(i.toggleCommentEmojiPicker())}),o.nrm(88,"mat-icon",21),o.k0s(),o.DNE(89,Xc,2,1,"div",64),o.j41(90,"button",101),o.nrm(91,"mat-icon",21),o.k0s(),o.j41(92,"button",101),o.nrm(93,"mat-icon",21),o.k0s()(),o.j41(94,"button",102),o.nrm(95,"mat-icon",21),o.j41(96,"span",63),o.EFF(97,"Send"),o.k0s()()()(),o.bVm(),o.k0s()}if(2&t){const e=o.sdS(1),r=o.sdS(12),i=o.XpG();o.R7$(3),o.FS9("alt",(null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)||"Avatar"),o.Y8G("src",(null==i.currentUser?null:i.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(3),o.JRh((null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)),o.R7$(3),o.Y8G("matMenuTriggerFor",r),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:arrow-up-tray"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:eye-slash"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:clock"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:minus-circle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:exclamation-triangle"),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:bell"),o.R7$(4),o.SpI(" ",i.eventInput.nativeElement.value," "),o.R7$(4),o.Y8G("ngClass",o.eq3(29,Oc,i.isLiked))("svgIcon",i.isLiked?"heroicons_solid:heart":"heroicons_outline:heart"),o.R7$(2),o.JRh(i.isLiked?"Unlike":"Like"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:chat-bubble-left-ellipsis"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:share"),o.R7$(19),o.Y8G("ngClass",o.eq3(31,jc,e.expanded))("svgIcon","heroicons_mini:chevron-down"),o.R7$(5),o.FS9("alt",(null==i.currentUser?null:i.currentUser.display_name)||(null==i.currentUser?null:i.currentUser.name)||"Avatar"),o.Y8G("src",(null==i.currentUser?null:i.currentUser.picture)||"images/avatars/avatar-placeholder.png",o.B4B),o.R7$(),o.Y8G("subscriptSizing","dynamic"),o.R7$(),o.Y8G("placeholder","Write a comment...")("rows",3),o.R7$(5),o.Y8G("svgIcon","heroicons_solid:face-smile"),o.R7$(),o.Y8G("ngIf",i.showCommentEmojiPicker),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:photo"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:sparkles"),o.R7$(2),o.Y8G("svgIcon","heroicons_solid:paper-airplane")}}const Jc=[{path:"",component:(()=>{class t{constructor(e,r,i,s,u,f,g,m,M,k,O,L,P){this._changeDetectorRef=e,this._signerService=r,this._storageService=i,this._sanitizer=s,this._route=u,this._socialService=f,this._snackBar=g,this._lightning=m,this._dialog=M,this._angorConfigService=k,this._angorConfirmationService=O,this._eventService=L,this._subscriptionService=P,this.darkMode=!1,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new Ge.B,this.allPublicKeys=[],this.isCurrentUserProfile=!1,this.isFollowing=!1,this.showEmojiPicker=!1,this.showCommentEmojiPicker=!1,this.lightningResponse=null,this.lightningInvoice=null,this.paymentInvoice="",this.invoiceAmount="?",this.isLiked=!1,this.isPreview=!1,this.posts=[],this.likes=[],this.myLikes=[],this.myLikedNoteIds=[],this.isLoadingPosts=!0,this.noEventsMessage="",this.totalContacts=0,this.followersCount=0,this.followingCount=0}ngOnInit(){var e=this;return(0,v.A)(function*(){e._angorConfigService.config$.subscribe(r=>{"auto"===r.scheme?e.detectSystemTheme():e.darkMode="dark"===r.scheme}),e._route.paramMap.subscribe(r=>{const i=r.get("pubkey");if(i)e.routePubKey=i;else{e.isCurrentUserProfile=!0;const s=e._signerService.getPublicKey();e.routePubKey=s}e.loadProfileUser(e.routePubKey),e.stats$=e._storageService.getContactStats$(e.routePubKey)})})()}ngOnDestroy(){this.subscriptionId&&this._subscriptionService.removeSubscriptionById(this.subscriptionId),this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadCurrentUser(){var e=this;return(0,v.A)(function*(){e.currentUser=null,e._storageService.profile$.subscribe(r=>{r&&r.pubKey&&r.metadata&&r.pubKey===e.routePubKey&&(e.currentUser=r.metadata,e._changeDetectorRef.detectChanges())}),e._storageService.getProfile(e.routePubKey).then(r=>{e._changeDetectorRef.detectChanges(),e.currentUser=r})})()}loadProfileUser(e){var r=this;return(0,v.A)(function*(){if(r.isLoading=!0,r.errorMessage=null,r.profileUser=null,r._changeDetectorRef.detectChanges(),!e)return r.errorMessage="No public key found. Please log in again.",r.isLoading=!1,void r._changeDetectorRef.detectChanges();try{const i=yield r._storageService.getProfile(e);i&&(r.profileUser=i,r._changeDetectorRef.detectChanges()),r.subscribeToUserProfile(e)}catch(i){console.error("Error loading user profile:",i)}})()}subscribeToUserProfile(e){var r=this;this.subscriptionId=this._subscriptionService.addSubscriptions([{authors:[e],kinds:[0],limit:1}],function(){var s=(0,v.A)(function*(u){try{const f=JSON.parse(u.content);r.profileUser=f,yield r._storageService.saveProfile(e,f),r._changeDetectorRef.detectChanges()}catch(f){console.error("Error processing metadata event:",f)}});return function(u){return s.apply(this,arguments)}}())}getSafeUrl(e){return this._sanitizer.bypassSecurityTrustUrl(e)}toggleFollow(){var e=this;return(0,v.A)(function*(){try{const r=e._signerService.getPublicKey(),i=e.routePubKey||e.currentUserPubKey;if(!i||!r)return void console.error("Public key missing. Unable to toggle follow.");e.isFollowing?(yield e._socialService.unfollow(i),console.log(`Unfollowed ${i}`)):(yield e._socialService.follow(i),console.log(`Followed ${i}`)),e.isFollowing=!e.isFollowing,e._changeDetectorRef.detectChanges()}catch(r){console.error("Failed to toggle follow:",r)}})()}openSnackBar(e,r){this._snackBar.open(e,r,{duration:1300})}getLightningInfo(){let e="";if(this.profileUser?.lud06){const{words:r}=ne.I.decode(this.profileUser.lud06,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else if(this.profileUser?.lud16?.toLowerCase().startsWith("lnurl")){const{words:r}=ne.I.decode(this.profileUser.lud16,5e3),i=new Uint8Array(ne.I.fromWords(r));e=(new TextDecoder).decode(Uint8Array.from(i))}else this.profileUser?.lud16&&(e=this._lightning.getLightningAddress(this.profileUser.lud16));""!==e?this._lightning.getLightning(e).subscribe(r=>{this.lightningResponse=r,"Failed"===this.lightningResponse.status?this.openSnackBar("Failed to lookup lightning address","dismiss"):this.lightningResponse.callback?this.openZapDialog():this.openSnackBar("couldn't find user's lightning address","dismiss")}):this.openSnackBar("No lightning address found","dismiss")}zap(){var e=this;return(0,v.A)(function*(){e.profileUser&&(e.profileUser.lud06||e.profileUser.lud16)?e.getLightningInfo():e.openSnackBar("user can't receive zaps","dismiss")})()}openZapDialog(){this._dialog.open(Mc,{width:"405px",maxHeight:"90vh",data:this.profileUser})}openReceiveZapDialog(){this._dialog.open(sc,{width:"405px",maxHeight:"90vh",data:this.profileUser})}toggleLike(){this.isLiked=!this.isLiked,this.isLiked&&setTimeout(()=>{this.isLiked=!1,this.isLiked=!0},300)}addEmoji(e){this.eventInput.nativeElement.value+=e.emoji.native,this.showEmojiPicker=!1}toggleEmojiPicker(){this.showCommentEmojiPicker=!1,this.showEmojiPicker=!this.showEmojiPicker}addEmojiTocomment(e){this.commentInput.nativeElement.value+=e.emoji.native,this.showCommentEmojiPicker=!1}detectSystemTheme(){const e=window.matchMedia("(prefers-color-scheme: dark)");this.darkMode=e.matches,e.addEventListener("change",r=>{this.darkMode=r.matches})}togglePreview(){this.isPreview=!this.isPreview}sendEvent(){""!=this.eventInput.nativeElement.value&&this._eventService.sendTextEvent(this.eventInput.nativeElement.value).then(()=>{this._changeDetectorRef.markForCheck()}).catch(e=>{console.error("Failed to send Event:",e)})}static{this.\u0275fac=function(r){return new(r||t)(o.rXU(o.gRc),o.rXU(Pi.A),o.rXU(kc.n),o.rXU(ke.up),o.rXU(he.nX),o.rXU(Sc),o.rXU(Ii.UG),o.rXU(cs),o.rXU(Pe.bZ),o.rXU(Ac.P),o.rXU(Cc.m),o.rXU(Bc),o.rXU(Uc.n))}}static{this.\u0275cmp=o.VBU({type:t,selectors:[["profile"]],viewQuery:function(r,i){if(1&r&&(o.GBs(Nc,5),o.GBs(Pc,5)),2&r){let s;o.mGM(s=o.lsd())&&(i.eventInput=s.first),o.mGM(s=o.lsd())&&(i.commentInput=s.first)}},standalone:!0,features:[o.aNF],decls:37,vars:20,consts:[["defaultAvatar",""],["profileMenu","matMenu"],["eventInput",""],["postCardMenu01","matMenu"],["expandableComments","angorCard"],["postCardMenu02","matMenu"],["commentInput",""],[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","flex-shrink-0","rounded-full","lg:-mt-22"],[4,"ngIf","ngIfElse"],[1,"mt-4","flex","flex-grow","flex-col","items-center","lg:ml-8","lg:mt-0","lg:items-start"],[1,"max-w-full","truncate","text-lg","font-bold","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"text-secondary","max-w-full","truncate","leading-tight","lg:max-w-[25rem]",2,"white-space","nowrap","overflow","hidden","text-overflow","ellipsis"],[1,"mx-8","hidden","h-8","flex-shrink-0","border-l-2","lg:flex"],["class","mt-6 flex flex-shrink-0 items-center space-x-6 lg:mt-0",4,"ngIf"],[1,"mb-4","mt-8","flex","flex-shrink-0","items-center","space-x-6","lg:m-0","lg:ml-auto"],[4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"icon-size-5",3,"svgIcon"],["mat-menu-item","",3,"click",4,"ngIf"],[1,"my-2"],["mat-menu-item","",3,"routerLink",4,"ngIf"],["mat-menu-item","",4,"ngIf"],[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"],["class","flex w-full max-w-80 flex-col p-8",4,"ngIf"],[1,"flex","w-full","flex-col","items-start"],["class","mb-8 flex w-full flex-col p-6 pb-6 sm:p-8",4,"ngIf"],["class","mb-8 flex w-full flex-col bg-primary-50 dark:bg-primary-800",4,"ngIf"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"ring-bg-card","h-32","min-h-32","w-32","min-w-32","max-w-fit","rounded-full","object-cover","ring-4",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","min-h-32","w-32","min-w-32","rounded-full","object-cover","ring-4",3,"alt"],[1,"mt-6","flex","flex-shrink-0","items-center","space-x-6","lg:mt-0"],[1,"flex","flex-col","items-center"],[1,"font-bold",3,"matTooltip"],[1,"text-secondary","text-sm","font-medium"],[1,"font-bold"],[1,"text-secondary","text-sm","font-medium",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"],["mat-menu-item","",3,"click"],[1,"flex","items-center"],[1,"mr-3","icon-size-5",3,"svgIcon"],["mat-menu-item","",3,"routerLink"],["mat-menu-item",""],[1,"flex","w-full","max-w-80","flex-col","p-8"],[1,"text-2xl","font-semibold","leading-tight"],[1,"mt-4"],["mat-flat-button","",1,"mt-8","px-6",3,"color","routerLink"],[1,"mb-8","flex","w-full","flex-col","p-6","pb-6","sm:p-8"],[1,"flex","justify-between"],[1,"text-xl","font-semibold"],[1,"-mr-4","ml-auto",3,"change","color"],[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","object-cover",3,"src","alt"],[1,"sm:hidden"],[1,"w-full",3,"subscriptSizing"],["matInput","","cdkTextareaAutosize","",3,"placeholder","rows"],[1,"-mx-3","mt-6","flex","items-center","justify-between","sm:mt-8"],["mat-button","",1,"mr-1","px-3",3,"click"],[1,"ml-2"],["class","emoji-picker-container-global",4,"ngIf"],["mat-button","",1,"mr-1","hidden","px-3","sm:inline-flex"],["mat-button","",1,"px-3",3,"matMenuTriggerFor"],["mat-menu-item","",1,"sm:hidden"],["mat-button","",1,"mr-1","flex","px-3",3,"click"],[1,"emoji-picker-container-global"],[3,"emojiClick","darkMode"],[1,"mb-8","flex","w-full","flex-col","bg-primary-50","dark:bg-primary-800"],[1,"mx-6","mb-4","mt-6","flex","items-center","sm:mx-8"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-4","h-10","w-10","rounded-full",3,"src","alt"],[1,"flex","flex-col"],[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,"mx-6","mb-6","mt-2","sm:mx-8"],[1,"relative","mb-4"],[1,"mx-3","flex","items-center","sm:mx-5"],[1,"text-red-500","icon-size-5",3,"ngClass","svgIcon"],["mat-button","",1,"mr-1","px-3"],[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"],["onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"mr-5","h-12","w-12","rounded-full","object-cover",3,"src","alt"],[1,"mt-3","flex","items-center","justify-between"],["mat-icon-button","",3,"click"],["mat-icon-button",""],["mat-button","",1,"mr-1","flex","px-3"]],template:function(r,i){if(1&r&&(o.j41(0,"div",7)(1,"div",8)(2,"div"),o.nrm(3,"img",9),o.k0s(),o.j41(4,"div",10)(5,"div",11),o.DNE(6,Dc,2,2,"ng-container",12)(7,$c,1,1,"ng-template",null,0,o.C5r),o.k0s(),o.j41(9,"div",13)(10,"div",14),o.EFF(11),o.k0s(),o.j41(12,"div",15),o.EFF(13),o.k0s()(),o.nrm(14,"div",16),o.DNE(15,Fc,11,4,"div",17),o.nI1(16,"async"),o.nrm(17,"div",16),o.j41(18,"div",18),o.DNE(19,qc,3,2,"div",19),o.j41(20,"div")(21,"button",20),o.nrm(22,"mat-icon",21),o.k0s(),o.j41(23,"mat-menu",null,1),o.DNE(25,Gc,5,1,"button",22)(26,zc,5,1,"button",22),o.nrm(27,"mat-divider",23),o.DNE(28,Wc,5,2,"button",24)(29,Hc,5,1,"button",25)(30,Vc,5,1,"button",25),o.k0s()()()()(),o.j41(31,"div",26)(32,"div",27),o.DNE(33,Yc,7,4,"angor-card",28),o.k0s(),o.j41(34,"div",29),o.DNE(35,Zc,62,19,"angor-card",30)(36,Qc,98,33,"angor-card",31),o.k0s()()()),2&r){const s=o.sdS(8),u=o.sdS(24);o.R7$(3),o.FS9("alt",(null==i.profileUser?null:i.profileUser.display_name)||(null==i.profileUser?null:i.profileUser.name)||"Banner"),o.Y8G("src",(null==i.profileUser?null:i.profileUser.banner)||"/images/pages/profile/cover.jpg",o.B4B),o.R7$(3),o.Y8G("ngIf",null==i.profileUser?null:i.profileUser.picture)("ngIfElse",s),o.R7$(5),o.SpI(" ",(null==i.profileUser?null:i.profileUser.display_name)||(null==i.profileUser?null:i.profileUser.name)||"Unknown User"," "),o.R7$(2),o.SpI(" ",(null==i.profileUser?null:i.profileUser.username)||(null==i.profileUser?null:i.profileUser.name)," "),o.R7$(2),o.Y8G("ngIf",o.bMT(16,18,i.stats$)),o.R7$(4),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(2),o.Y8G("matMenuTriggerFor",u),o.R7$(),o.Y8G("svgIcon","heroicons_solid:ellipsis-vertical"),o.R7$(3),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(2),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",!i.isCurrentUserProfile),o.R7$(3),o.Y8G("ngIf",(null==i.profileUser?null:i.profileUser.about)&&""!==i.profileUser.about.trim()),o.R7$(2),o.Y8G("ngIf",i.isCurrentUserProfile),o.R7$(),o.Y8G("ngIf",i.isPreview)}},dependencies:[he.Wk,y.n,oe.m_,oe.An,B.Hl,B.It,B.$z,B.iY,ee.Cn,ee.kk,ee.fb,ee.Cp,q.RG,q.rl,le.fS,le.fg,A.xb,A.EE,U.w,U.q,F.uc,F.oV,h.YU,h.MD,h.bT,h.Jj,T.YN,we,W.Ic,j.sG,te.D6,Yn],styles:[".emoji-picker-container-global{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;width:350px;max-width:100%}.heart-beat{animation:heartBeatAnimation .3s ease-in-out}@keyframes heartBeatAnimation{0%{transform:scale(1)}30%{transform:scale(2)}60%{transform:scale(1)}to{transform:scale(1)}}.loading-spinner{display:flex;justify-content:center;align-items:center;margin:20px 0}.loading-spinner .spinner{border:4px solid rgba(0,0,0,.1);border-left-color:#009fb5;border-radius:50%;width:30px;height:30px;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"],encapsulation:2,changeDetection:0})}}return t})()}]},2577:(Ee,N,S)=>{const v=S(531),y=S(8715),A=S(465),h=S(5510);function T(B,U,q,oe,le){const ee=[].slice.call(arguments,1),te=ee.length,j="function"==typeof ee[te-1];if(!j&&!v())throw new Error("Callback required as last argument");if(!j){if(te<1)throw new Error("Too few arguments provided");return 1===te?(q=U,U=oe=void 0):2===te&&!U.getContext&&(oe=q,q=U,U=void 0),new Promise(function(F,he){try{const W=y.create(q,oe);F(B(W,U,oe))}catch(W){he(W)}})}if(te<2)throw new Error("Too few arguments provided");2===te?(le=q,q=U,U=oe=void 0):3===te&&(U.getContext&&typeof le>"u"?(le=oe,oe=void 0):(le=oe,oe=q,q=U,U=void 0));try{const F=y.create(q,oe);le(null,B(F,U,oe))}catch(F){le(F)}}N.mo=T.bind(null,A.render),N.dY=T.bind(null,A.renderToDataURL),N.toString=T.bind(null,function(B,U,q){return h.render(B,q)})},531:Ee=>{Ee.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},919:(Ee,N,S)=>{const x=S(2656).getSymbolSize;N.getRowColCoords=function(y){if(1===y)return[];const A=Math.floor(y/7)+2,h=x(y),T=145===h?26:2*Math.ceil((h-13)/(2*A-2)),B=[h-7];for(let U=1;U{const x=S(838),v=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function y(A){this.mode=x.ALPHANUMERIC,this.data=A}y.getBitsLength=function(h){return 11*Math.floor(h/2)+h%2*6},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(h){let T;for(T=0;T+2<=this.data.length;T+=2){let B=45*v.indexOf(this.data[T]);B+=v.indexOf(this.data[T+1]),h.put(B,11)}this.data.length%2&&h.put(v.indexOf(this.data[T]),6)},Ee.exports=y},4481:Ee=>{function N(){this.buffer=[],this.length=0}N.prototype={get:function(S){const x=Math.floor(S/8);return 1==(this.buffer[x]>>>7-S%8&1)},put:function(S,x){for(let v=0;v>>x-v-1&1))},getLengthInBits:function(){return this.length},putBit:function(S){const x=Math.floor(this.length/8);this.buffer.length<=x&&this.buffer.push(0),S&&(this.buffer[x]|=128>>>this.length%8),this.length++}},Ee.exports=N},8038:Ee=>{function N(S){if(!S||S<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=S,this.data=new Uint8Array(S*S),this.reservedBit=new Uint8Array(S*S)}N.prototype.set=function(S,x,v,y){const A=S*this.size+x;this.data[A]=v,y&&(this.reservedBit[A]=!0)},N.prototype.get=function(S,x){return this.data[S*this.size+x]},N.prototype.xor=function(S,x,v){this.data[S*this.size+x]^=v},N.prototype.isReserved=function(S,x){return this.reservedBit[S*this.size+x]},Ee.exports=N},1736:(Ee,N,S)=>{const x=S(3174),v=S(838);function y(A){this.mode=v.BYTE,"string"==typeof A&&(A=x(A)),this.data=new Uint8Array(A)}y.getBitsLength=function(h){return 8*h},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(A){for(let h=0,T=this.data.length;h{const x=S(139),v=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],y=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];N.getBlocksCount=function(h,T){switch(T){case x.L:return v[4*(h-1)+0];case x.M:return v[4*(h-1)+1];case x.Q:return v[4*(h-1)+2];case x.H:return v[4*(h-1)+3];default:return}},N.getTotalCodewordsCount=function(h,T){switch(T){case x.L:return y[4*(h-1)+0];case x.M:return y[4*(h-1)+1];case x.Q:return y[4*(h-1)+2];case x.H:return y[4*(h-1)+3];default:return}}},139:(Ee,N)=>{N.L={bit:1},N.M={bit:0},N.Q={bit:3},N.H={bit:2},N.isValid=function(v){return v&&typeof v.bit<"u"&&v.bit>=0&&v.bit<4},N.from=function(v,y){if(N.isValid(v))return v;try{return function S(x){if("string"!=typeof x)throw new Error("Param is not a string");switch(x.toLowerCase()){case"l":case"low":return N.L;case"m":case"medium":return N.M;case"q":case"quartile":return N.Q;case"h":case"high":return N.H;default:throw new Error("Unknown EC Level: "+x)}}(v)}catch{return y}}},9202:(Ee,N,S)=>{const x=S(2656).getSymbolSize;N.getPositions=function(A){const h=x(A);return[[0,0],[h-7,0],[0,h-7]]}},9211:(Ee,N,S)=>{const x=S(2656),A=x.getBCHDigit(1335);N.getEncodedBits=function(T,B){const U=T.bit<<3|B;let q=U<<10;for(;x.getBCHDigit(q)-A>=0;)q^=1335<{const S=new Uint8Array(512),x=new Uint8Array(256);(function(){let y=1;for(let A=0;A<255;A++)S[A]=y,x[y]=A,y<<=1,256&y&&(y^=285);for(let A=255;A<512;A++)S[A]=S[A-255]})(),N.log=function(y){if(y<1)throw new Error("log("+y+")");return x[y]},N.exp=function(y){return S[y]},N.mul=function(y,A){return 0===y||0===A?0:S[x[y]+x[A]]}},1971:(Ee,N,S)=>{const x=S(838),v=S(2656);function y(A){this.mode=x.KANJI,this.data=A}y.getBitsLength=function(h){return 13*h},y.prototype.getLength=function(){return this.data.length},y.prototype.getBitsLength=function(){return y.getBitsLength(this.data.length)},y.prototype.write=function(A){let h;for(h=0;h=33088&&T<=40956)T-=33088;else{if(!(T>=57408&&T<=60351))throw new Error("Invalid SJIS character: "+this.data[h]+"\nMake sure your charset is UTF-8");T-=49472}T=192*(T>>>8&255)+(255&T),A.put(T,13)}},Ee.exports=y},9366:(Ee,N)=>{N.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function x(v,y,A){switch(v){case N.Patterns.PATTERN000:return(y+A)%2==0;case N.Patterns.PATTERN001:return y%2==0;case N.Patterns.PATTERN010:return A%3==0;case N.Patterns.PATTERN011:return(y+A)%3==0;case N.Patterns.PATTERN100:return(Math.floor(y/2)+Math.floor(A/3))%2==0;case N.Patterns.PATTERN101:return y*A%2+y*A%3==0;case N.Patterns.PATTERN110:return(y*A%2+y*A%3)%2==0;case N.Patterns.PATTERN111:return(y*A%3+(y+A)%2)%2==0;default:throw new Error("bad maskPattern:"+v)}}N.isValid=function(y){return null!=y&&""!==y&&!isNaN(y)&&y>=0&&y<=7},N.from=function(y){return N.isValid(y)?parseInt(y,10):void 0},N.getPenaltyN1=function(y){const A=y.size;let h=0,T=0,B=0,U=null,q=null;for(let oe=0;oe=5&&(h+=T-5+3),U=ee,T=1),ee=y.get(le,oe),ee===q?B++:(B>=5&&(h+=B-5+3),q=ee,B=1)}T>=5&&(h+=T-5+3),B>=5&&(h+=B-5+3)}return h},N.getPenaltyN2=function(y){const A=y.size;let h=0;for(let T=0;T=10&&(1488===T||93===T)&&h++,B=B<<1&2047|y.get(q,U),q>=10&&(1488===B||93===B)&&h++}return 40*h},N.getPenaltyN4=function(y){let A=0;const h=y.data.length;for(let B=0;B{const x=S(1604),v=S(6082);N.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},N.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},N.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},N.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},N.MIXED={bit:-1},N.getCharCountIndicator=function(h,T){if(!h.ccBits)throw new Error("Invalid mode: "+h);if(!x.isValid(T))throw new Error("Invalid version: "+T);return T>=1&&T<10?h.ccBits[0]:T<27?h.ccBits[1]:h.ccBits[2]},N.getBestModeForData=function(h){return v.testNumeric(h)?N.NUMERIC:v.testAlphanumeric(h)?N.ALPHANUMERIC:v.testKanji(h)?N.KANJI:N.BYTE},N.toString=function(h){if(h&&h.id)return h.id;throw new Error("Invalid mode")},N.isValid=function(h){return h&&h.bit&&h.ccBits},N.from=function(h,T){if(N.isValid(h))return h;try{return function y(A){if("string"!=typeof A)throw new Error("Param is not a string");switch(A.toLowerCase()){case"numeric":return N.NUMERIC;case"alphanumeric":return N.ALPHANUMERIC;case"kanji":return N.KANJI;case"byte":return N.BYTE;default:throw new Error("Unknown mode: "+A)}}(h)}catch{return T}}},7035:(Ee,N,S)=>{const x=S(838);function v(y){this.mode=x.NUMERIC,this.data=y.toString()}v.getBitsLength=function(A){return 10*Math.floor(A/3)+(A%3?A%3*3+1:0)},v.prototype.getLength=function(){return this.data.length},v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)},v.prototype.write=function(A){let h,T,B;for(h=0;h+3<=this.data.length;h+=3)T=this.data.substr(h,3),B=parseInt(T,10),A.put(B,10);const U=this.data.length-h;U>0&&(T=this.data.substr(h),B=parseInt(T,10),A.put(B,3*U+1))},Ee.exports=v},7767:(Ee,N,S)=>{const x=S(6965);N.mul=function(y,A){const h=new Uint8Array(y.length+A.length-1);for(let T=0;T=0;){const T=h[0];for(let U=0;U{const x=S(2656),v=S(139),y=S(4481),A=S(8038),h=S(919),T=S(9202),B=S(9366),U=S(2296),q=S(6758),oe=S(8925),le=S(9211),ee=S(838),te=S(7939);function ne(de,we,se){const ce=de.size,_=le.getEncodedBits(we,se);let a,c;for(a=0;a<15;a++)c=1==(_>>a&1),de.set(a<6?a:a<8?a+1:ce-15+a,8,c,!0),de.set(8,a<8?ce-a-1:a<9?15-a-1+1:15-a-1,c,!0);de.set(ce-8,8,1,!0)}function De(de,we,se,ce){let _;if(Array.isArray(de))_=te.fromArray(de);else{if("string"!=typeof de)throw new Error("Invalid data");{let E=we;if(!E){const C=te.rawSplit(de);E=oe.getBestVersionForData(C,se)}_=te.fromString(de,E||40)}}const a=oe.getBestVersionForData(_,se);if(!a)throw new Error("The amount of data is too big to be stored in a QR Code");if(we){if(we=0&&d<=6&&(0===p||6===p)||p>=0&&p<=6&&(0===d||6===d)||d>=2&&d<=4&&p>=2&&p<=4,!0)}}(p,we),function F(de){const we=de.size;for(let se=8;se=7&&function W(de,we){const se=de.size,ce=oe.getEncodedBits(we);let _,a,c;for(let d=0;d<18;d++)_=Math.floor(d/3),a=d%3+se-8-3,c=1==(ce>>d&1),de.set(_,a,c,!0),de.set(a,_,c,!0)}(p,we),function o(de,we){const se=de.size;let ce=-1,_=se-1,a=7,c=0;for(let d=se-1;d>0;d-=2)for(6===d&&d--;;){for(let p=0;p<2;p++)if(!de.isReserved(_,d-p)){let E=!1;c>>a&1)),de.set(_,d-p,E),a--,-1===a&&(c++,a=7)}if(_+=ce,_<0||se<=_){_-=ce,ce=-ce;break}}}(p,c),isNaN(ce)&&(ce=B.getBestMask(p,ne.bind(null,p,se))),B.applyMask(ce,p),ne(p,se,ce),{modules:p,version:we,errorCorrectionLevel:se,maskPattern:ce,segments:_}}N.create=function(we,se){if(typeof we>"u"||""===we)throw new Error("No input text");let _,a,ce=v.M;return typeof se<"u"&&(ce=v.from(se.errorCorrectionLevel,v.M),_=oe.from(se.version),a=B.from(se.maskPattern),se.toSJISFunc&&x.setToSJISFunction(se.toSJISFunc)),De(we,_,ce,a)}},6758:(Ee,N,S)=>{const x=S(7767);function v(y){this.genPoly=void 0,this.degree=y,this.degree&&this.initialize(this.degree)}v.prototype.initialize=function(A){this.degree=A,this.genPoly=x.generateECPolynomial(this.degree)},v.prototype.encode=function(A){if(!this.genPoly)throw new Error("Encoder not initialized");const h=new Uint8Array(A.length+this.degree);h.set(A);const T=x.mod(h,this.genPoly),B=this.degree-T.length;if(B>0){const U=new Uint8Array(this.degree);return U.set(T,B),U}return T},Ee.exports=v},6082:(Ee,N)=>{const S="[0-9]+";let v="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";v=v.replace(/u/g,"\\u");const y="(?:(?![A-Z0-9 $%*+\\-./:]|"+v+")(?:.|[\r\n]))+";N.KANJI=new RegExp(v,"g"),N.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),N.BYTE=new RegExp(y,"g"),N.NUMERIC=new RegExp(S,"g"),N.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const A=new RegExp("^"+v+"$"),h=new RegExp("^"+S+"$"),T=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");N.testKanji=function(U){return A.test(U)},N.testNumeric=function(U){return h.test(U)},N.testAlphanumeric=function(U){return T.test(U)}},7939:(Ee,N,S)=>{const x=S(838),v=S(7035),y=S(387),A=S(1736),h=S(1971),T=S(6082),B=S(2656),U=S(243);function q(W){return unescape(encodeURIComponent(W)).length}function oe(W,ne,o){const ae=[];let ke;for(;null!==(ke=W.exec(o));)ae.push({data:ke[0],index:ke.index,mode:ne,length:ke[0].length});return ae}function le(W){const ne=oe(T.NUMERIC,x.NUMERIC,W),o=oe(T.ALPHANUMERIC,x.ALPHANUMERIC,W);let ae,ke;return B.isKanjiModeEnabled()?(ae=oe(T.BYTE,x.BYTE,W),ke=oe(T.KANJI,x.KANJI,W)):(ae=oe(T.BYTE_KANJI,x.BYTE,W),ke=[]),ne.concat(o,ae,ke).sort(function(de,we){return de.index-we.index}).map(function(de){return{data:de.data,mode:de.mode,length:de.length}})}function ee(W,ne){switch(ne){case x.NUMERIC:return v.getBitsLength(W);case x.ALPHANUMERIC:return y.getBitsLength(W);case x.KANJI:return h.getBitsLength(W);case x.BYTE:return A.getBitsLength(W)}}function he(W,ne){let o;const ae=x.getBestModeForData(W);if(o=x.from(ne,ae),o!==x.BYTE&&o.bit=0?ne[ne.length-1]:null;return ae&&ae.mode===o.mode?(ne[ne.length-1].data+=o.data,ne):(ne.push(o),ne)},[])}(we))},N.rawSplit=function(ne){return N.fromArray(le(ne,B.isKanjiModeEnabled()))}},2656:(Ee,N)=>{let S;const x=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];N.getSymbolSize=function(y){if(!y)throw new Error('"version" cannot be null or undefined');if(y<1||y>40)throw new Error('"version" should be in range from 1 to 40');return 4*y+17},N.getSymbolTotalCodewords=function(y){return x[y]},N.getBCHDigit=function(v){let y=0;for(;0!==v;)y++,v>>>=1;return y},N.setToSJISFunction=function(y){if("function"!=typeof y)throw new Error('"toSJISFunc" is not a valid function.');S=y},N.isKanjiModeEnabled=function(){return typeof S<"u"},N.toSJIS=function(y){return S(y)}},1604:(Ee,N)=>{N.isValid=function(x){return!isNaN(x)&&x>=1&&x<=40}},8925:(Ee,N,S)=>{const x=S(2656),v=S(2296),y=S(139),A=S(838),h=S(1604),B=x.getBCHDigit(7973);function q(ee,te){return A.getCharCountIndicator(ee,te)+4}function oe(ee,te){let j=0;return ee.forEach(function(F){const he=q(F.mode,te);j+=he+F.getBitsLength()}),j}N.from=function(te,j){return h.isValid(te)?parseInt(te,10):j},N.getCapacity=function(te,j,F){if(!h.isValid(te))throw new Error("Invalid QR Code version");typeof F>"u"&&(F=A.BYTE);const ne=8*(x.getSymbolTotalCodewords(te)-v.getTotalCodewordsCount(te,j));if(F===A.MIXED)return ne;const o=ne-q(F,te);switch(F){case A.NUMERIC:return Math.floor(o/10*3);case A.ALPHANUMERIC:return Math.floor(o/11*2);case A.KANJI:return Math.floor(o/13);default:return Math.floor(o/8)}},N.getBestVersionForData=function(te,j){let F;const he=y.from(j,y.M);if(Array.isArray(te)){if(te.length>1)return function le(ee,te){for(let j=1;j<=40;j++)if(oe(ee,j)<=N.getCapacity(j,te,A.MIXED))return j}(te,he);if(0===te.length)return 1;F=te[0]}else F=te;return function U(ee,te,j){for(let F=1;F<=40;F++)if(te<=N.getCapacity(F,j,ee))return F}(F.mode,F.getLength(),he)},N.getEncodedBits=function(te){if(!h.isValid(te)||te<7)throw new Error("Invalid QR Code version");let j=te<<12;for(;x.getBCHDigit(j)-B>=0;)j^=7973<{const x=S(8428);N.render=function(h,T,B){let U=B,q=T;typeof U>"u"&&(!T||!T.getContext)&&(U=T,T=void 0),T||(q=function y(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),U=x.getOptions(U);const oe=x.getImageWidth(h.modules.size,U),le=q.getContext("2d"),ee=le.createImageData(oe,oe);return x.qrToImageData(ee.data,h,U),function v(A,h,T){A.clearRect(0,0,h.width,h.height),h.style||(h.style={}),h.height=T,h.width=T,h.style.height=T+"px",h.style.width=T+"px"}(le,q,oe),le.putImageData(ee,0,0),q},N.renderToDataURL=function(h,T,B){let U=B;return typeof U>"u"&&(!T||!T.getContext)&&(U=T,T=void 0),U||(U={}),N.render(h,T,U).toDataURL(U.type||"image/png",(U.rendererOpts||{}).quality)}},5510:(Ee,N,S)=>{const x=S(8428);function v(h,T){const B=h.a/255,U=T+'="'+h.hex+'"';return B<1?U+" "+T+'-opacity="'+B.toFixed(2).slice(1)+'"':U}function y(h,T,B){let U=h+T;return typeof B<"u"&&(U+=" "+B),U}N.render=function(T,B,U){const q=x.getOptions(B),oe=T.modules.size,le=T.modules.data,ee=oe+2*q.margin,te=q.color.light.a?"':"",j="0&&te>0&&h[ee-1]||(U+=oe?y("M",te+B,.5+j+B):y("m",q,0),q=0,oe=!1),te+1',W=''+te+j+"\n";return"function"==typeof U&&U(null,W),W}},8428:(Ee,N)=>{function S(x){if("number"==typeof x&&(x=x.toString()),"string"!=typeof x)throw new Error("Color should be defined as hex string");let v=x.slice().replace("#","").split("");if(v.length<3||5===v.length||v.length>8)throw new Error("Invalid hex color: "+x);(3===v.length||4===v.length)&&(v=Array.prototype.concat.apply([],v.map(function(A){return[A,A]}))),6===v.length&&v.push("F","F");const y=parseInt(v.join(""),16);return{r:y>>24&255,g:y>>16&255,b:y>>8&255,a:255&y,hex:"#"+v.slice(0,6).join("")}}N.getOptions=function(v){v||(v={}),v.color||(v.color={});const A=v.width&&v.width>=21?v.width:void 0;return{width:A,scale:A?4:v.scale||4,margin:typeof v.margin>"u"||null===v.margin||v.margin<0?4:v.margin,color:{dark:S(v.color.dark||"#000000ff"),light:S(v.color.light||"#ffffffff")},type:v.type,rendererOpts:v.rendererOpts||{}}},N.getScale=function(v,y){return y.width&&y.width>=v+2*y.margin?y.width/(v+2*y.margin):y.scale},N.getImageWidth=function(v,y){const A=N.getScale(v,y);return Math.floor((v+2*y.margin)*A)},N.qrToImageData=function(v,y,A){const h=y.modules.size,T=y.modules.data,B=N.getScale(h,A),U=Math.floor((h+2*A.margin)*B),q=A.margin*B,oe=[A.color.light,A.color.dark];for(let le=0;le=q&&ee>=q&&le=65&&c<=70?c-55:c>=97&&c<=102?c-87:c-48&15}function U(_,a,c){var d=B(_,c);return c-1>=a&&(d|=B(_,c-1)<<4),d}function q(_,a,c,d){for(var p=0,E=Math.min(_.length,c),C=a;C=49?R-49+10:R>=17?R-17+10:R}return p}h.isBN=function(a){return a instanceof h||null!==a&&"object"==typeof a&&a.constructor.wordSize===h.wordSize&&Array.isArray(a.words)},h.max=function(a,c){return a.cmp(c)>0?a:c},h.min=function(a,c){return a.cmp(c)<0?a:c},h.prototype._init=function(a,c,d){if("number"==typeof a)return this._initNumber(a,c,d);if("object"==typeof a)return this._initArray(a,c,d);"hex"===c&&(c=16),y(c===(0|c)&&c>=2&&c<=36);var p=0;"-"===(a=a.toString().replace(/\s+/g,""))[0]&&(p++,this.negative=1),p=0;p-=3)this.words[E]|=(C=a[p]|a[p-1]<<8|a[p-2]<<16)<>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);else if("le"===d)for(p=0,E=0;p>>26-R&67108863,(R+=24)>=26&&(R-=26,E++);return this.strip()},h.prototype._parseHex=function(a,c,d){this.length=Math.ceil((a.length-c)/6),this.words=new Array(this.length);for(var p=0;p=c;p-=2)R=U(a,c,p)<=18?(E-=18,this.words[C+=1]|=R>>>26):E+=8;else for(p=(a.length-c)%2==0?c+1:c;p=18?(E-=18,this.words[C+=1]|=R>>>26):E+=8;this.strip()},h.prototype._parseBase=function(a,c,d){this.words=[0],this.length=1;for(var p=0,E=1;E<=67108863;E*=c)p++;p--,E=E/c|0;for(var C=a.length-d,R=C%p,w=Math.min(C,C-R)+d,l=0,b=d;b1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?""};var oe=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],le=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],ee=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function j(_,a,c){c.negative=a.negative^_.negative;var d=_.length+a.length|0;c.length=d,d=d-1|0;var p=0|_.words[0],E=0|a.words[0],C=p*E,w=C/67108864|0;c.words[0]=67108863&C;for(var l=1;l>>26,ue=67108863&w,me=Math.min(l,a.length-1),ve=Math.max(0,l-_.length+1);ve<=me;ve++)b+=(C=(p=0|_.words[l-ve|0])*(E=0|a.words[ve])+ue)/67108864|0,ue=67108863&C;c.words[l]=0|ue,w=0|b}return 0!==w?c.words[l]=0|w:c.length--,c.strip()}h.prototype.toString=function(a,c){var d;if(c=0|c||1,16===(a=a||10)||"hex"===a){d="";for(var p=0,E=0,C=0;C>>24-p&16777215)||C!==this.length-1?oe[6-w.length]+w+d:w+d,(p+=2)>=26&&(p-=26,C--)}for(0!==E&&(d=E.toString(16)+d);d.length%c!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}if(a===(0|a)&&a>=2&&a<=36){var l=le[a],b=ee[a];d="";var ue=this.clone();for(ue.negative=0;!ue.isZero();){var me=ue.modn(b).toString(a);d=(ue=ue.idivn(b)).isZero()?me+d:oe[l-me.length]+me+d}for(this.isZero()&&(d="0"+d);d.length%c!=0;)d="0"+d;return 0!==this.negative&&(d="-"+d),d}y(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var a=this.words[0];return 2===this.length?a+=67108864*this.words[1]:3===this.length&&1===this.words[2]?a+=4503599627370496+67108864*this.words[1]:this.length>2&&y(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-a:a},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(a,c){return y(typeof T<"u"),this.toArrayLike(T,a,c)},h.prototype.toArray=function(a,c){return this.toArrayLike(Array,a,c)},h.prototype.toArrayLike=function(a,c,d){var p=this.byteLength(),E=d||Math.max(1,p);y(p<=E,"byte array longer than desired length"),y(E>0,"Requested array length <= 0"),this.strip();var w,l,C="le"===c,R=new a(E),b=this.clone();if(C){for(l=0;!b.isZero();l++)w=b.andln(255),b.iushrn(8),R[l]=w;for(;l=4096&&(d+=13,c>>>=13),c>=64&&(d+=7,c>>>=7),c>=8&&(d+=4,c>>>=4),c>=2&&(d+=2,c>>>=2),d+c},h.prototype._zeroBits=function(a){if(0===a)return 26;var c=a,d=0;return 8191&c||(d+=13,c>>>=13),127&c||(d+=7,c>>>=7),15&c||(d+=4,c>>>=4),3&c||(d+=2,c>>>=2),1&c||d++,d},h.prototype.bitLength=function(){var c=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+c},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var a=0,c=0;ca.length?this.clone().ior(a):a.clone().ior(this)},h.prototype.uor=function(a){return this.length>a.length?this.clone().iuor(a):a.clone().iuor(this)},h.prototype.iuand=function(a){var c;c=this.length>a.length?a:this;for(var d=0;da.length?this.clone().iand(a):a.clone().iand(this)},h.prototype.uand=function(a){return this.length>a.length?this.clone().iuand(a):a.clone().iuand(this)},h.prototype.iuxor=function(a){var c,d;this.length>a.length?(c=this,d=a):(c=a,d=this);for(var p=0;pa.length?this.clone().ixor(a):a.clone().ixor(this)},h.prototype.uxor=function(a){return this.length>a.length?this.clone().iuxor(a):a.clone().iuxor(this)},h.prototype.inotn=function(a){y("number"==typeof a&&a>=0);var c=0|Math.ceil(a/26),d=a%26;this._expand(c),d>0&&c--;for(var p=0;p0&&(this.words[p]=~this.words[p]&67108863>>26-d),this.strip()},h.prototype.notn=function(a){return this.clone().inotn(a)},h.prototype.setn=function(a,c){y("number"==typeof a&&a>=0);var d=a/26|0,p=a%26;return this._expand(d+1),this.words[d]=c?this.words[d]|1<a.length?(d=this,p=a):(d=a,p=this);for(var E=0,C=0;C>>26;for(;0!==E&&C>>26;if(this.length=d.length,0!==E)this.words[this.length]=E,this.length++;else if(d!==this)for(;Ca.length?this.clone().iadd(a):a.clone().iadd(this)},h.prototype.isub=function(a){if(0!==a.negative){a.negative=0;var c=this.iadd(a);return a.negative=1,c._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(a),this.negative=1,this._normSign();var p,E,d=this.cmp(a);if(0===d)return this.negative=0,this.length=1,this.words[0]=0,this;d>0?(p=this,E=a):(p=a,E=this);for(var C=0,R=0;R>26,this.words[R]=67108863&c;for(;0!==C&&R>26,this.words[R]=67108863&c;if(0===C&&R>>13,xe=0|p[1],Ce=8191&xe,Ne=xe>>>13,at=0|p[2],Se=8191&at,Ue=at>>>13,Kt=0|p[3],Ke=8191&Kt,Ze=Kt>>>13,Ar=0|p[4],lt=8191&Ar,ct=Ar>>>13,Cr=0|p[5],Xe=8191&Cr,ut=Cr>>>13,Hn=0|p[6],Qe=8191&Hn,He=Hn>>>13,Vn=0|p[7],ft=8191&Vn,ht=Vn>>>13,Yn=0|p[8],Ge=8191&Yn,Pe=Yn>>>13,kn=0|p[9],Ve=8191&kn,Je=kn>>>13,Kn=0|E[0],et=8191&Kn,tt=Kn>>>13,un=0|E[1],nt=8191&un,Ye=un>>>13,Zn=0|E[2],rt=8191&Zn,it=Zn>>>13,Tr=0|E[3],Le=8191&Tr,ze=Tr>>>13,fn=0|E[4],dt=8191&fn,gt=fn>>>13,hn=0|E[5],Oe=8191&hn,pt=hn>>>13,Xn=0|E[6],Be=8191&Xn,$e=Xn>>>13,Qn=0|E[7],mt=8191&Qn,We=Qn>>>13,Jn=0|E[8],je=8191&Jn,Fe=Jn>>>13,Sn=0|E[9],ot=8191&Sn,vt=Sn>>>13;d.negative=a.negative^c.negative,d.length=19;var dn=(R+(w=Math.imul(me,et))|0)+((8191&(l=(l=Math.imul(me,tt))+Math.imul(ve,et)|0))<<13)|0;R=((b=Math.imul(ve,tt))+(l>>>13)|0)+(dn>>>26)|0,dn&=67108863,w=Math.imul(Ce,et),l=(l=Math.imul(Ce,tt))+Math.imul(Ne,et)|0,b=Math.imul(Ne,tt);var er=(R+(w=w+Math.imul(me,nt)|0)|0)+((8191&(l=(l=l+Math.imul(me,Ye)|0)+Math.imul(ve,nt)|0))<<13)|0;R=((b=b+Math.imul(ve,Ye)|0)+(l>>>13)|0)+(er>>>26)|0,er&=67108863,w=Math.imul(Se,et),l=(l=Math.imul(Se,tt))+Math.imul(Ue,et)|0,b=Math.imul(Ue,tt),w=w+Math.imul(Ce,nt)|0,l=(l=l+Math.imul(Ce,Ye)|0)+Math.imul(Ne,nt)|0,b=b+Math.imul(Ne,Ye)|0;var tr=(R+(w=w+Math.imul(me,rt)|0)|0)+((8191&(l=(l=l+Math.imul(me,it)|0)+Math.imul(ve,rt)|0))<<13)|0;R=((b=b+Math.imul(ve,it)|0)+(l>>>13)|0)+(tr>>>26)|0,tr&=67108863,w=Math.imul(Ke,et),l=(l=Math.imul(Ke,tt))+Math.imul(Ze,et)|0,b=Math.imul(Ze,tt),w=w+Math.imul(Se,nt)|0,l=(l=l+Math.imul(Se,Ye)|0)+Math.imul(Ue,nt)|0,b=b+Math.imul(Ue,Ye)|0,w=w+Math.imul(Ce,rt)|0,l=(l=l+Math.imul(Ce,it)|0)+Math.imul(Ne,rt)|0,b=b+Math.imul(Ne,it)|0;var Zt=(R+(w=w+Math.imul(me,Le)|0)|0)+((8191&(l=(l=l+Math.imul(me,ze)|0)+Math.imul(ve,Le)|0))<<13)|0;R=((b=b+Math.imul(ve,ze)|0)+(l>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,w=Math.imul(lt,et),l=(l=Math.imul(lt,tt))+Math.imul(ct,et)|0,b=Math.imul(ct,tt),w=w+Math.imul(Ke,nt)|0,l=(l=l+Math.imul(Ke,Ye)|0)+Math.imul(Ze,nt)|0,b=b+Math.imul(Ze,Ye)|0,w=w+Math.imul(Se,rt)|0,l=(l=l+Math.imul(Se,it)|0)+Math.imul(Ue,rt)|0,b=b+Math.imul(Ue,it)|0,w=w+Math.imul(Ce,Le)|0,l=(l=l+Math.imul(Ce,ze)|0)+Math.imul(Ne,Le)|0,b=b+Math.imul(Ne,ze)|0;var An=(R+(w=w+Math.imul(me,dt)|0)|0)+((8191&(l=(l=l+Math.imul(me,gt)|0)+Math.imul(ve,dt)|0))<<13)|0;R=((b=b+Math.imul(ve,gt)|0)+(l>>>13)|0)+(An>>>26)|0,An&=67108863,w=Math.imul(Xe,et),l=(l=Math.imul(Xe,tt))+Math.imul(ut,et)|0,b=Math.imul(ut,tt),w=w+Math.imul(lt,nt)|0,l=(l=l+Math.imul(lt,Ye)|0)+Math.imul(ct,nt)|0,b=b+Math.imul(ct,Ye)|0,w=w+Math.imul(Ke,rt)|0,l=(l=l+Math.imul(Ke,it)|0)+Math.imul(Ze,rt)|0,b=b+Math.imul(Ze,it)|0,w=w+Math.imul(Se,Le)|0,l=(l=l+Math.imul(Se,ze)|0)+Math.imul(Ue,Le)|0,b=b+Math.imul(Ue,ze)|0,w=w+Math.imul(Ce,dt)|0,l=(l=l+Math.imul(Ce,gt)|0)+Math.imul(Ne,dt)|0,b=b+Math.imul(Ne,gt)|0;var Cn=(R+(w=w+Math.imul(me,Oe)|0)|0)+((8191&(l=(l=l+Math.imul(me,pt)|0)+Math.imul(ve,Oe)|0))<<13)|0;R=((b=b+Math.imul(ve,pt)|0)+(l>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,w=Math.imul(Qe,et),l=(l=Math.imul(Qe,tt))+Math.imul(He,et)|0,b=Math.imul(He,tt),w=w+Math.imul(Xe,nt)|0,l=(l=l+Math.imul(Xe,Ye)|0)+Math.imul(ut,nt)|0,b=b+Math.imul(ut,Ye)|0,w=w+Math.imul(lt,rt)|0,l=(l=l+Math.imul(lt,it)|0)+Math.imul(ct,rt)|0,b=b+Math.imul(ct,it)|0,w=w+Math.imul(Ke,Le)|0,l=(l=l+Math.imul(Ke,ze)|0)+Math.imul(Ze,Le)|0,b=b+Math.imul(Ze,ze)|0,w=w+Math.imul(Se,dt)|0,l=(l=l+Math.imul(Se,gt)|0)+Math.imul(Ue,dt)|0,b=b+Math.imul(Ue,gt)|0,w=w+Math.imul(Ce,Oe)|0,l=(l=l+Math.imul(Ce,pt)|0)+Math.imul(Ne,Oe)|0,b=b+Math.imul(Ne,pt)|0;var Tn=(R+(w=w+Math.imul(me,Be)|0)|0)+((8191&(l=(l=l+Math.imul(me,$e)|0)+Math.imul(ve,Be)|0))<<13)|0;R=((b=b+Math.imul(ve,$e)|0)+(l>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,w=Math.imul(ft,et),l=(l=Math.imul(ft,tt))+Math.imul(ht,et)|0,b=Math.imul(ht,tt),w=w+Math.imul(Qe,nt)|0,l=(l=l+Math.imul(Qe,Ye)|0)+Math.imul(He,nt)|0,b=b+Math.imul(He,Ye)|0,w=w+Math.imul(Xe,rt)|0,l=(l=l+Math.imul(Xe,it)|0)+Math.imul(ut,rt)|0,b=b+Math.imul(ut,it)|0,w=w+Math.imul(lt,Le)|0,l=(l=l+Math.imul(lt,ze)|0)+Math.imul(ct,Le)|0,b=b+Math.imul(ct,ze)|0,w=w+Math.imul(Ke,dt)|0,l=(l=l+Math.imul(Ke,gt)|0)+Math.imul(Ze,dt)|0,b=b+Math.imul(Ze,gt)|0,w=w+Math.imul(Se,Oe)|0,l=(l=l+Math.imul(Se,pt)|0)+Math.imul(Ue,Oe)|0,b=b+Math.imul(Ue,pt)|0,w=w+Math.imul(Ce,Be)|0,l=(l=l+Math.imul(Ce,$e)|0)+Math.imul(Ne,Be)|0,b=b+Math.imul(Ne,$e)|0;var In=(R+(w=w+Math.imul(me,mt)|0)|0)+((8191&(l=(l=l+Math.imul(me,We)|0)+Math.imul(ve,mt)|0))<<13)|0;R=((b=b+Math.imul(ve,We)|0)+(l>>>13)|0)+(In>>>26)|0,In&=67108863,w=Math.imul(Ge,et),l=(l=Math.imul(Ge,tt))+Math.imul(Pe,et)|0,b=Math.imul(Pe,tt),w=w+Math.imul(ft,nt)|0,l=(l=l+Math.imul(ft,Ye)|0)+Math.imul(ht,nt)|0,b=b+Math.imul(ht,Ye)|0,w=w+Math.imul(Qe,rt)|0,l=(l=l+Math.imul(Qe,it)|0)+Math.imul(He,rt)|0,b=b+Math.imul(He,it)|0,w=w+Math.imul(Xe,Le)|0,l=(l=l+Math.imul(Xe,ze)|0)+Math.imul(ut,Le)|0,b=b+Math.imul(ut,ze)|0,w=w+Math.imul(lt,dt)|0,l=(l=l+Math.imul(lt,gt)|0)+Math.imul(ct,dt)|0,b=b+Math.imul(ct,gt)|0,w=w+Math.imul(Ke,Oe)|0,l=(l=l+Math.imul(Ke,pt)|0)+Math.imul(Ze,Oe)|0,b=b+Math.imul(Ze,pt)|0,w=w+Math.imul(Se,Be)|0,l=(l=l+Math.imul(Se,$e)|0)+Math.imul(Ue,Be)|0,b=b+Math.imul(Ue,$e)|0,w=w+Math.imul(Ce,mt)|0,l=(l=l+Math.imul(Ce,We)|0)+Math.imul(Ne,mt)|0,b=b+Math.imul(Ne,We)|0;var Rn=(R+(w=w+Math.imul(me,je)|0)|0)+((8191&(l=(l=l+Math.imul(me,Fe)|0)+Math.imul(ve,je)|0))<<13)|0;R=((b=b+Math.imul(ve,Fe)|0)+(l>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,w=Math.imul(Ve,et),l=(l=Math.imul(Ve,tt))+Math.imul(Je,et)|0,b=Math.imul(Je,tt),w=w+Math.imul(Ge,nt)|0,l=(l=l+Math.imul(Ge,Ye)|0)+Math.imul(Pe,nt)|0,b=b+Math.imul(Pe,Ye)|0,w=w+Math.imul(ft,rt)|0,l=(l=l+Math.imul(ft,it)|0)+Math.imul(ht,rt)|0,b=b+Math.imul(ht,it)|0,w=w+Math.imul(Qe,Le)|0,l=(l=l+Math.imul(Qe,ze)|0)+Math.imul(He,Le)|0,b=b+Math.imul(He,ze)|0,w=w+Math.imul(Xe,dt)|0,l=(l=l+Math.imul(Xe,gt)|0)+Math.imul(ut,dt)|0,b=b+Math.imul(ut,gt)|0,w=w+Math.imul(lt,Oe)|0,l=(l=l+Math.imul(lt,pt)|0)+Math.imul(ct,Oe)|0,b=b+Math.imul(ct,pt)|0,w=w+Math.imul(Ke,Be)|0,l=(l=l+Math.imul(Ke,$e)|0)+Math.imul(Ze,Be)|0,b=b+Math.imul(Ze,$e)|0,w=w+Math.imul(Se,mt)|0,l=(l=l+Math.imul(Se,We)|0)+Math.imul(Ue,mt)|0,b=b+Math.imul(Ue,We)|0,w=w+Math.imul(Ce,je)|0,l=(l=l+Math.imul(Ce,Fe)|0)+Math.imul(Ne,je)|0,b=b+Math.imul(Ne,Fe)|0;var Bt=(R+(w=w+Math.imul(me,ot)|0)|0)+((8191&(l=(l=l+Math.imul(me,vt)|0)+Math.imul(ve,ot)|0))<<13)|0;R=((b=b+Math.imul(ve,vt)|0)+(l>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,w=Math.imul(Ve,nt),l=(l=Math.imul(Ve,Ye))+Math.imul(Je,nt)|0,b=Math.imul(Je,Ye),w=w+Math.imul(Ge,rt)|0,l=(l=l+Math.imul(Ge,it)|0)+Math.imul(Pe,rt)|0,b=b+Math.imul(Pe,it)|0,w=w+Math.imul(ft,Le)|0,l=(l=l+Math.imul(ft,ze)|0)+Math.imul(ht,Le)|0,b=b+Math.imul(ht,ze)|0,w=w+Math.imul(Qe,dt)|0,l=(l=l+Math.imul(Qe,gt)|0)+Math.imul(He,dt)|0,b=b+Math.imul(He,gt)|0,w=w+Math.imul(Xe,Oe)|0,l=(l=l+Math.imul(Xe,pt)|0)+Math.imul(ut,Oe)|0,b=b+Math.imul(ut,pt)|0,w=w+Math.imul(lt,Be)|0,l=(l=l+Math.imul(lt,$e)|0)+Math.imul(ct,Be)|0,b=b+Math.imul(ct,$e)|0,w=w+Math.imul(Ke,mt)|0,l=(l=l+Math.imul(Ke,We)|0)+Math.imul(Ze,mt)|0,b=b+Math.imul(Ze,We)|0,w=w+Math.imul(Se,je)|0,l=(l=l+Math.imul(Se,Fe)|0)+Math.imul(Ue,je)|0,b=b+Math.imul(Ue,Fe)|0;var Ut=(R+(w=w+Math.imul(Ce,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ce,vt)|0)+Math.imul(Ne,ot)|0))<<13)|0;R=((b=b+Math.imul(Ne,vt)|0)+(l>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,w=Math.imul(Ve,rt),l=(l=Math.imul(Ve,it))+Math.imul(Je,rt)|0,b=Math.imul(Je,it),w=w+Math.imul(Ge,Le)|0,l=(l=l+Math.imul(Ge,ze)|0)+Math.imul(Pe,Le)|0,b=b+Math.imul(Pe,ze)|0,w=w+Math.imul(ft,dt)|0,l=(l=l+Math.imul(ft,gt)|0)+Math.imul(ht,dt)|0,b=b+Math.imul(ht,gt)|0,w=w+Math.imul(Qe,Oe)|0,l=(l=l+Math.imul(Qe,pt)|0)+Math.imul(He,Oe)|0,b=b+Math.imul(He,pt)|0,w=w+Math.imul(Xe,Be)|0,l=(l=l+Math.imul(Xe,$e)|0)+Math.imul(ut,Be)|0,b=b+Math.imul(ut,$e)|0,w=w+Math.imul(lt,mt)|0,l=(l=l+Math.imul(lt,We)|0)+Math.imul(ct,mt)|0,b=b+Math.imul(ct,We)|0,w=w+Math.imul(Ke,je)|0,l=(l=l+Math.imul(Ke,Fe)|0)+Math.imul(Ze,je)|0,b=b+Math.imul(Ze,Fe)|0;var gn=(R+(w=w+Math.imul(Se,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Se,vt)|0)+Math.imul(Ue,ot)|0))<<13)|0;R=((b=b+Math.imul(Ue,vt)|0)+(l>>>13)|0)+(gn>>>26)|0,gn&=67108863,w=Math.imul(Ve,Le),l=(l=Math.imul(Ve,ze))+Math.imul(Je,Le)|0,b=Math.imul(Je,ze),w=w+Math.imul(Ge,dt)|0,l=(l=l+Math.imul(Ge,gt)|0)+Math.imul(Pe,dt)|0,b=b+Math.imul(Pe,gt)|0,w=w+Math.imul(ft,Oe)|0,l=(l=l+Math.imul(ft,pt)|0)+Math.imul(ht,Oe)|0,b=b+Math.imul(ht,pt)|0,w=w+Math.imul(Qe,Be)|0,l=(l=l+Math.imul(Qe,$e)|0)+Math.imul(He,Be)|0,b=b+Math.imul(He,$e)|0,w=w+Math.imul(Xe,mt)|0,l=(l=l+Math.imul(Xe,We)|0)+Math.imul(ut,mt)|0,b=b+Math.imul(ut,We)|0,w=w+Math.imul(lt,je)|0,l=(l=l+Math.imul(lt,Fe)|0)+Math.imul(ct,je)|0,b=b+Math.imul(ct,Fe)|0;var Bn=(R+(w=w+Math.imul(Ke,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ke,vt)|0)+Math.imul(Ze,ot)|0))<<13)|0;R=((b=b+Math.imul(Ze,vt)|0)+(l>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,w=Math.imul(Ve,dt),l=(l=Math.imul(Ve,gt))+Math.imul(Je,dt)|0,b=Math.imul(Je,gt),w=w+Math.imul(Ge,Oe)|0,l=(l=l+Math.imul(Ge,pt)|0)+Math.imul(Pe,Oe)|0,b=b+Math.imul(Pe,pt)|0,w=w+Math.imul(ft,Be)|0,l=(l=l+Math.imul(ft,$e)|0)+Math.imul(ht,Be)|0,b=b+Math.imul(ht,$e)|0,w=w+Math.imul(Qe,mt)|0,l=(l=l+Math.imul(Qe,We)|0)+Math.imul(He,mt)|0,b=b+Math.imul(He,We)|0,w=w+Math.imul(Xe,je)|0,l=(l=l+Math.imul(Xe,Fe)|0)+Math.imul(ut,je)|0,b=b+Math.imul(ut,Fe)|0;var Tt=(R+(w=w+Math.imul(lt,ot)|0)|0)+((8191&(l=(l=l+Math.imul(lt,vt)|0)+Math.imul(ct,ot)|0))<<13)|0;R=((b=b+Math.imul(ct,vt)|0)+(l>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,w=Math.imul(Ve,Oe),l=(l=Math.imul(Ve,pt))+Math.imul(Je,Oe)|0,b=Math.imul(Je,pt),w=w+Math.imul(Ge,Be)|0,l=(l=l+Math.imul(Ge,$e)|0)+Math.imul(Pe,Be)|0,b=b+Math.imul(Pe,$e)|0,w=w+Math.imul(ft,mt)|0,l=(l=l+Math.imul(ft,We)|0)+Math.imul(ht,mt)|0,b=b+Math.imul(ht,We)|0,w=w+Math.imul(Qe,je)|0,l=(l=l+Math.imul(Qe,Fe)|0)+Math.imul(He,je)|0,b=b+Math.imul(He,Fe)|0;var nr=(R+(w=w+Math.imul(Xe,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Xe,vt)|0)+Math.imul(ut,ot)|0))<<13)|0;R=((b=b+Math.imul(ut,vt)|0)+(l>>>13)|0)+(nr>>>26)|0,nr&=67108863,w=Math.imul(Ve,Be),l=(l=Math.imul(Ve,$e))+Math.imul(Je,Be)|0,b=Math.imul(Je,$e),w=w+Math.imul(Ge,mt)|0,l=(l=l+Math.imul(Ge,We)|0)+Math.imul(Pe,mt)|0,b=b+Math.imul(Pe,We)|0,w=w+Math.imul(ft,je)|0,l=(l=l+Math.imul(ft,Fe)|0)+Math.imul(ht,je)|0,b=b+Math.imul(ht,Fe)|0;var pn=(R+(w=w+Math.imul(Qe,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Qe,vt)|0)+Math.imul(He,ot)|0))<<13)|0;R=((b=b+Math.imul(He,vt)|0)+(l>>>13)|0)+(pn>>>26)|0,pn&=67108863,w=Math.imul(Ve,mt),l=(l=Math.imul(Ve,We))+Math.imul(Je,mt)|0,b=Math.imul(Je,We),w=w+Math.imul(Ge,je)|0,l=(l=l+Math.imul(Ge,Fe)|0)+Math.imul(Pe,je)|0,b=b+Math.imul(Pe,Fe)|0;var Xt=(R+(w=w+Math.imul(ft,ot)|0)|0)+((8191&(l=(l=l+Math.imul(ft,vt)|0)+Math.imul(ht,ot)|0))<<13)|0;R=((b=b+Math.imul(ht,vt)|0)+(l>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,w=Math.imul(Ve,je),l=(l=Math.imul(Ve,Fe))+Math.imul(Je,je)|0,b=Math.imul(Je,Fe);var Un=(R+(w=w+Math.imul(Ge,ot)|0)|0)+((8191&(l=(l=l+Math.imul(Ge,vt)|0)+Math.imul(Pe,ot)|0))<<13)|0;R=((b=b+Math.imul(Pe,vt)|0)+(l>>>13)|0)+(Un>>>26)|0,Un&=67108863;var Qt=(R+(w=Math.imul(Ve,ot))|0)+((8191&(l=(l=Math.imul(Ve,vt))+Math.imul(Je,ot)|0))<<13)|0;return R=((b=Math.imul(Je,vt))+(l>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,C[0]=dn,C[1]=er,C[2]=tr,C[3]=Zt,C[4]=An,C[5]=Cn,C[6]=Tn,C[7]=In,C[8]=Rn,C[9]=Bt,C[10]=Ut,C[11]=gn,C[12]=Bn,C[13]=Tt,C[14]=nr,C[15]=pn,C[16]=Xt,C[17]=Un,C[18]=Qt,0!==R&&(C[19]=R,d.length++),d};function W(_,a,c){return(new ne).mulp(_,a,c)}function ne(_,a){this.x=_,this.y=a}Math.imul||(F=j),h.prototype.mulTo=function(a,c){var d,p=this.length+a.length;return d=10===this.length&&10===a.length?F(this,a,c):p<63?j(this,a,c):p<1024?function he(_,a,c){c.negative=a.negative^_.negative,c.length=_.length+a.length;for(var d=0,p=0,E=0;E>>26)|0)>>>26,C&=67108863}c.words[E]=R,d=C,C=p}return 0!==d?c.words[E]=d:c.length--,c.strip()}(this,a,c):W(this,a,c),d},ne.prototype.makeRBT=function(a){for(var c=new Array(a),d=h.prototype._countBits(a)-1,p=0;p>=1;return p},ne.prototype.permute=function(a,c,d,p,E,C){for(var R=0;R>>=1)E++;return 1<>>=13),E>>>=13;for(C=2*c;C>=26,c+=p/67108864|0,c+=E>>>26,this.words[d]=67108863&E}return 0!==c&&(this.words[d]=c,this.length++),this},h.prototype.muln=function(a){return this.clone().imuln(a)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(a){var c=function te(_){for(var a=new Array(_.bitLength()),c=0;c>>p}return a}(a);if(0===c.length)return new h(1);for(var d=this,p=0;p=0);var E,c=a%26,d=(a-c)/26,p=67108863>>>26-c<<26-c;if(0!==c){var C=0;for(E=0;E>>26-c}C&&(this.words[E]=C,this.length++)}if(0!==d){for(E=this.length-1;E>=0;E--)this.words[E+d]=this.words[E];for(E=0;E=0),p=c?(c-c%26)/26:0;var E=a%26,C=Math.min((a-E)/26,this.length),R=67108863^67108863>>>E<C)for(this.length-=C,l=0;l=0&&(0!==b||l>=p);l--){var ue=0|this.words[l];this.words[l]=b<<26-E|ue>>>E,b=ue&R}return w&&0!==b&&(w.words[w.length++]=b),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(a,c,d){return y(0===this.negative),this.iushrn(a,c,d)},h.prototype.shln=function(a){return this.clone().ishln(a)},h.prototype.ushln=function(a){return this.clone().iushln(a)},h.prototype.shrn=function(a){return this.clone().ishrn(a)},h.prototype.ushrn=function(a){return this.clone().iushrn(a)},h.prototype.testn=function(a){y("number"==typeof a&&a>=0);var c=a%26,d=(a-c)/26;return!(this.length<=d||!(this.words[d]&1<=0);var c=a%26,d=(a-c)/26;return y(0===this.negative,"imaskn works only with positive numbers"),this.length<=d?this:(0!==c&&d++,this.length=Math.min(d,this.length),0!==c&&(this.words[this.length-1]&=67108863^67108863>>>c<=67108864;c++)this.words[c]-=67108864,c===this.length-1?this.words[c+1]=1:this.words[c+1]++;return this.length=Math.max(this.length,c+1),this},h.prototype.isubn=function(a){if(y("number"==typeof a),y(a<67108864),a<0)return this.iaddn(-a);if(0!==this.negative)return this.negative=0,this.iaddn(a),this.negative=1,this;if(this.words[0]-=a,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var c=0;c>26)-(w/67108864|0),this.words[E+d]=67108863&C}for(;E>26,this.words[E+d]=67108863&C;if(0===R)return this.strip();for(y(-1===R),R=0,E=0;E>26,this.words[E]=67108863&C;return this.negative=1,this.strip()},h.prototype._wordDiv=function(a,c){var d,p=this.clone(),E=a,C=0|E.words[E.length-1];0!=(d=26-this._countBits(C))&&(E=E.ushln(d),p.iushln(d),C=0|E.words[E.length-1]);var l,w=p.length-E.length;if("mod"!==c){(l=new h(null)).length=w+1,l.words=new Array(l.length);for(var b=0;b=0;me--){var ve=67108864*(0|p.words[E.length+me])+(0|p.words[E.length+me-1]);for(ve=Math.min(ve/C|0,67108863),p._ishlnsubmul(E,ve,me);0!==p.negative;)ve--,p.negative=0,p._ishlnsubmul(E,1,me),p.isZero()||(p.negative^=1);l&&(l.words[me]=ve)}return l&&l.strip(),p.strip(),"div"!==c&&0!==d&&p.iushrn(d),{div:l||null,mod:p}},h.prototype.divmod=function(a,c,d){return y(!a.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===a.negative?(C=this.neg().divmod(a,c),"mod"!==c&&(p=C.div.neg()),"div"!==c&&(E=C.mod.neg(),d&&0!==E.negative&&E.iadd(a)),{div:p,mod:E}):0===this.negative&&0!==a.negative?(C=this.divmod(a.neg(),c),"mod"!==c&&(p=C.div.neg()),{div:p,mod:C.mod}):this.negative&a.negative?(C=this.neg().divmod(a.neg(),c),"div"!==c&&(E=C.mod.neg(),d&&0!==E.negative&&E.isub(a)),{div:C.div,mod:E}):a.length>this.length||this.cmp(a)<0?{div:new h(0),mod:this}:1===a.length?"div"===c?{div:this.divn(a.words[0]),mod:null}:"mod"===c?{div:null,mod:new h(this.modn(a.words[0]))}:{div:this.divn(a.words[0]),mod:new h(this.modn(a.words[0]))}:this._wordDiv(a,c);var p,E,C},h.prototype.div=function(a){return this.divmod(a,"div",!1).div},h.prototype.mod=function(a){return this.divmod(a,"mod",!1).mod},h.prototype.umod=function(a){return this.divmod(a,"mod",!0).mod},h.prototype.divRound=function(a){var c=this.divmod(a);if(c.mod.isZero())return c.div;var d=0!==c.div.negative?c.mod.isub(a):c.mod,p=a.ushrn(1),E=a.andln(1),C=d.cmp(p);return C<0||1===E&&0===C?c.div:0!==c.div.negative?c.div.isubn(1):c.div.iaddn(1)},h.prototype.modn=function(a){y(a<=67108863);for(var c=(1<<26)%a,d=0,p=this.length-1;p>=0;p--)d=(c*d+(0|this.words[p]))%a;return d},h.prototype.idivn=function(a){y(a<=67108863);for(var c=0,d=this.length-1;d>=0;d--){var p=(0|this.words[d])+67108864*c;this.words[d]=p/a|0,c=p%a}return this.strip()},h.prototype.divn=function(a){return this.clone().idivn(a)},h.prototype.egcd=function(a){y(0===a.negative),y(!a.isZero());var c=this,d=a.clone();c=0!==c.negative?c.umod(a):c.clone();for(var p=new h(1),E=new h(0),C=new h(0),R=new h(1),w=0;c.isEven()&&d.isEven();)c.iushrn(1),d.iushrn(1),++w;for(var l=d.clone(),b=c.clone();!c.isZero();){for(var ue=0,me=1;!(c.words[0]&me)&&ue<26;++ue,me<<=1);if(ue>0)for(c.iushrn(ue);ue-- >0;)(p.isOdd()||E.isOdd())&&(p.iadd(l),E.isub(b)),p.iushrn(1),E.iushrn(1);for(var ve=0,xe=1;!(d.words[0]&xe)&&ve<26;++ve,xe<<=1);if(ve>0)for(d.iushrn(ve);ve-- >0;)(C.isOdd()||R.isOdd())&&(C.iadd(l),R.isub(b)),C.iushrn(1),R.iushrn(1);c.cmp(d)>=0?(c.isub(d),p.isub(C),E.isub(R)):(d.isub(c),C.isub(p),R.isub(E))}return{a:C,b:R,gcd:d.iushln(w)}},h.prototype._invmp=function(a){y(0===a.negative),y(!a.isZero());var ue,c=this,d=a.clone();c=0!==c.negative?c.umod(a):c.clone();for(var p=new h(1),E=new h(0),C=d.clone();c.cmpn(1)>0&&d.cmpn(1)>0;){for(var R=0,w=1;!(c.words[0]&w)&&R<26;++R,w<<=1);if(R>0)for(c.iushrn(R);R-- >0;)p.isOdd()&&p.iadd(C),p.iushrn(1);for(var l=0,b=1;!(d.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(d.iushrn(l);l-- >0;)E.isOdd()&&E.iadd(C),E.iushrn(1);c.cmp(d)>=0?(c.isub(d),p.isub(E)):(d.isub(c),E.isub(p))}return(ue=0===c.cmpn(1)?p:E).cmpn(0)<0&&ue.iadd(a),ue},h.prototype.gcd=function(a){if(this.isZero())return a.abs();if(a.isZero())return this.abs();var c=this.clone(),d=a.clone();c.negative=0,d.negative=0;for(var p=0;c.isEven()&&d.isEven();p++)c.iushrn(1),d.iushrn(1);for(;;){for(;c.isEven();)c.iushrn(1);for(;d.isEven();)d.iushrn(1);var E=c.cmp(d);if(E<0){var C=c;c=d,d=C}else if(0===E||0===d.cmpn(1))break;c.isub(d)}return d.iushln(p)},h.prototype.invm=function(a){return this.egcd(a).a.umod(a)},h.prototype.isEven=function(){return!(1&this.words[0])},h.prototype.isOdd=function(){return!(1&~this.words[0])},h.prototype.andln=function(a){return this.words[0]&a},h.prototype.bincn=function(a){y("number"==typeof a);var c=a%26,d=(a-c)/26,p=1<>>26,this.words[C]=R&=67108863}return 0!==E&&(this.words[C]=E,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(a){var d,c=a<0;if(0!==this.negative&&!c)return-1;if(0===this.negative&&c)return 1;if(this.strip(),this.length>1)d=1;else{c&&(a=-a),y(a<=67108863,"Number is too big");var p=0|this.words[0];d=p===a?0:pa.length)return 1;if(this.length=0;d--){var p=0|this.words[d],E=0|a.words[d];if(p!==E){pE&&(c=1);break}}return c},h.prototype.gtn=function(a){return 1===this.cmpn(a)},h.prototype.gt=function(a){return 1===this.cmp(a)},h.prototype.gten=function(a){return this.cmpn(a)>=0},h.prototype.gte=function(a){return this.cmp(a)>=0},h.prototype.ltn=function(a){return-1===this.cmpn(a)},h.prototype.lt=function(a){return-1===this.cmp(a)},h.prototype.lten=function(a){return this.cmpn(a)<=0},h.prototype.lte=function(a){return this.cmp(a)<=0},h.prototype.eqn=function(a){return 0===this.cmpn(a)},h.prototype.eq=function(a){return 0===this.cmp(a)},h.red=function(a){return new se(a)},h.prototype.toRed=function(a){return y(!this.red,"Already a number in reduction context"),y(0===this.negative,"red works only with positives"),a.convertTo(this)._forceRed(a)},h.prototype.fromRed=function(){return y(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(a){return this.red=a,this},h.prototype.forceRed=function(a){return y(!this.red,"Already a number in reduction context"),this._forceRed(a)},h.prototype.redAdd=function(a){return y(this.red,"redAdd works only with red numbers"),this.red.add(this,a)},h.prototype.redIAdd=function(a){return y(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,a)},h.prototype.redSub=function(a){return y(this.red,"redSub works only with red numbers"),this.red.sub(this,a)},h.prototype.redISub=function(a){return y(this.red,"redISub works only with red numbers"),this.red.isub(this,a)},h.prototype.redShl=function(a){return y(this.red,"redShl works only with red numbers"),this.red.shl(this,a)},h.prototype.redMul=function(a){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.mul(this,a)},h.prototype.redIMul=function(a){return y(this.red,"redMul works only with red numbers"),this.red._verify2(this,a),this.red.imul(this,a)},h.prototype.redSqr=function(){return y(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return y(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return y(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return y(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return y(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(a){return y(this.red&&!a.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,a)};var o={k256:null,p224:null,p192:null,p25519:null};function ae(_,a){this.name=_,this.p=new h(a,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ke(){ae.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function De(){ae.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function de(){ae.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function we(){ae.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function se(_){if("string"==typeof _){var a=h._prime(_);this.m=a.p,this.prime=a}else y(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}function ce(_){se.call(this,_),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}ae.prototype._tmp=function(){var a=new h(null);return a.words=new Array(Math.ceil(this.n/13)),a},ae.prototype.ireduce=function(a){var d,c=a;do{this.split(c,this.tmp),d=(c=(c=this.imulK(c)).iadd(this.tmp)).bitLength()}while(d>this.n);var p=d0?c.isub(this.p):void 0!==c.strip?c.strip():c._strip(),c},ae.prototype.split=function(a,c){a.iushrn(this.n,0,c)},ae.prototype.imulK=function(a){return a.imul(this.k)},A(ke,ae),ke.prototype.split=function(a,c){for(var d=4194303,p=Math.min(a.length,9),E=0;E>>22,C=R}a.words[E-10]=C>>>=22,a.length-=0===C&&a.length>10?10:9},ke.prototype.imulK=function(a){a.words[a.length]=0,a.words[a.length+1]=0,a.length+=2;for(var c=0,d=0;d>>=26,a.words[d]=E,c=p}return 0!==c&&(a.words[a.length++]=c),a},h._prime=function(a){if(o[a])return o[a];var c;if("k256"===a)c=new ke;else if("p224"===a)c=new De;else if("p192"===a)c=new de;else{if("p25519"!==a)throw new Error("Unknown prime "+a);c=new we}return o[a]=c,c},se.prototype._verify1=function(a){y(0===a.negative,"red works only with positives"),y(a.red,"red works only with red numbers")},se.prototype._verify2=function(a,c){y(!(a.negative|c.negative),"red works only with positives"),y(a.red&&a.red===c.red,"red works only with red numbers")},se.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},se.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},se.prototype.add=function(a,c){this._verify2(a,c);var d=a.add(c);return d.cmp(this.m)>=0&&d.isub(this.m),d._forceRed(this)},se.prototype.iadd=function(a,c){this._verify2(a,c);var d=a.iadd(c);return d.cmp(this.m)>=0&&d.isub(this.m),d},se.prototype.sub=function(a,c){this._verify2(a,c);var d=a.sub(c);return d.cmpn(0)<0&&d.iadd(this.m),d._forceRed(this)},se.prototype.isub=function(a,c){this._verify2(a,c);var d=a.isub(c);return d.cmpn(0)<0&&d.iadd(this.m),d},se.prototype.shl=function(a,c){return this._verify1(a),this.imod(a.ushln(c))},se.prototype.imul=function(a,c){return this._verify2(a,c),this.imod(a.imul(c))},se.prototype.mul=function(a,c){return this._verify2(a,c),this.imod(a.mul(c))},se.prototype.isqr=function(a){return this.imul(a,a.clone())},se.prototype.sqr=function(a){return this.mul(a,a)},se.prototype.sqrt=function(a){if(a.isZero())return a.clone();var c=this.m.andln(3);if(y(c%2==1),3===c){var d=this.m.add(new h(1)).iushrn(2);return this.pow(a,d)}for(var p=this.m.subn(1),E=0;!p.isZero()&&0===p.andln(1);)E++,p.iushrn(1);y(!p.isZero());var C=new h(1).toRed(this),R=C.redNeg(),w=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,w).cmp(R);)l.redIAdd(R);for(var b=this.pow(l,p),ue=this.pow(a,p.addn(1).iushrn(1)),me=this.pow(a,p),ve=E;0!==me.cmp(C);){for(var xe=me,Ce=0;0!==xe.cmp(C);Ce++)xe=xe.redSqr();y(Ce=0;E--){for(var b=c.words[E],ue=l-1;ue>=0;ue--){var me=b>>ue&1;C!==p[0]&&(C=this.sqr(C)),0!==me||0!==R?(R<<=1,R|=me,(4==++w||0===E&&0===ue)&&(C=this.mul(C,p[R]),w=0,R=0)):w=0}l=26}return C},se.prototype.convertTo=function(a){var c=a.umod(this.m);return c===a?c.clone():c},se.prototype.convertFrom=function(a){var c=a.clone();return c.red=null,c},h.mont=function(a){return new ce(a)},A(ce,se),ce.prototype.convertTo=function(a){return this.imod(a.ushln(this.shift))},ce.prototype.convertFrom=function(a){var c=this.imod(a.mul(this.rinv));return c.red=null,c},ce.prototype.imul=function(a,c){if(a.isZero()||c.isZero())return a.words[0]=0,a.length=1,a;var d=a.imul(c),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=d.isub(p).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},ce.prototype.mul=function(a,c){if(a.isZero()||c.isZero())return new h(0)._forceRed(this);var d=a.mul(c),p=d.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=d.isub(p).iushrn(this.shift),C=E;return E.cmp(this.m)>=0?C=E.isub(this.m):E.cmpn(0)<0&&(C=E.iadd(this.m)),C._forceRed(this)},ce.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(Ee=S.nmd(Ee),this)},243:Ee=>{"use strict";var N={single_source_shortest_paths:function(S,x,v){var y={},A={};A[x]=0;var T,B,U,q,oe,ee,h=N.PriorityQueue.make();for(h.push(x,0);!h.empty();)for(U in q=(T=h.pop()).cost,oe=S[B=T.value]||{})oe.hasOwnProperty(U)&&(ee=q+oe[U],(typeof A[U]>"u"||A[U]>ee)&&(A[U]=ee,h.push(U,ee),y[U]=B));if(typeof v<"u"&&typeof A[v]>"u"){var F=["Could not find a path from ",x," to ",v,"."].join("");throw new Error(F)}return y},extract_shortest_path_from_predecessor_list:function(S,x){for(var v=[],y=x;y;)v.push(y),y=S[y];return v.reverse(),v},find_path:function(S,x,v){var y=N.single_source_shortest_paths(S,x,v);return N.extract_shortest_path_from_predecessor_list(y,v)},PriorityQueue:{make:function(S){var y,x=N.PriorityQueue,v={};for(y in S=S||{},x)x.hasOwnProperty(y)&&(v[y]=x[y]);return v.queue=[],v.sorter=S.sorter||x.default_sorter,v},default_sorter:function(S,x){return S.cost-x.cost},push:function(S,x){this.queue.push({value:S,cost:x}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ee.exports=N},3174:Ee=>{"use strict";Ee.exports=function(S){for(var x=[],v=S.length,y=0;y=55296&&A<=56319&&v>y+1){var h=S.charCodeAt(y+1);h>=56320&&h<=57343&&(A=1024*(A-55296)+h-56320+65536,y+=1)}A<128?x.push(A):A<2048?(x.push(A>>6|192),x.push(63&A|128)):A<55296||A>=57344&&A<65536?(x.push(A>>12|224),x.push(A>>6&63|128),x.push(63&A|128)):A>=65536&&A<=1114111?(x.push(A>>18|240),x.push(A>>12&63|128),x.push(A>>6&63|128),x.push(63&A|128)):x.push(239,191,189)}return new Uint8Array(x).buffer}},6371:Ee=>{"use strict";var N=Object.prototype.hasOwnProperty,S="~";function x(){}function v(T,B,U){this.fn=T,this.context=B,this.once=U||!1}function y(T,B,U,q,oe){if("function"!=typeof U)throw new TypeError("The listener must be a function");var le=new v(U,q||T,oe),ee=S?S+B:B;return T._events[ee]?T._events[ee].fn?T._events[ee]=[T._events[ee],le]:T._events[ee].push(le):(T._events[ee]=le,T._eventsCount++),T}function A(T,B){0==--T._eventsCount?T._events=new x:delete T._events[B]}function h(){this._events=new x,this._eventsCount=0}Object.create&&(x.prototype=Object.create(null),(new x).__proto__||(S=!1)),h.prototype.eventNames=function(){var U,q,B=[];if(0===this._eventsCount)return B;for(q in U=this._events)N.call(U,q)&&B.push(S?q.slice(1):q);return Object.getOwnPropertySymbols?B.concat(Object.getOwnPropertySymbols(U)):B},h.prototype.listeners=function(B){var q=this._events[S?S+B:B];if(!q)return[];if(q.fn)return[q.fn];for(var oe=0,le=q.length,ee=new Array(le);oe{},9183:(Ee,N,S)=>{"use strict";S.d(N,{D6:()=>ee,LG:()=>oe});var x=S(4438),v=S(177),y=S(6600);const A=["determinateSpinner"];function h(te,j){if(1&te&&(x.qSk(),x.j41(0,"svg",11),x.nrm(1,"circle",12),x.k0s()),2&te){const F=x.XpG();x.BMQ("viewBox",F._viewBox()),x.R7$(),x.xc7("stroke-dasharray",F._strokeCircumference(),"px")("stroke-dashoffset",F._strokeCircumference()/2,"px")("stroke-width",F._circleStrokeWidth(),"%"),x.BMQ("r",F._circleRadius())}}const T=new x.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function B(){return{diameter:U}}}),U=100;let oe=(()=>{class te{get color(){return this._color||this._defaultColor}set color(F){this._color=F}constructor(F,he,W){this._elementRef=F,this._defaultColor="primary",this._value=0,this._diameter=U,this._noopAnimations="NoopAnimations"===he&&!!W&&!W._forceAnimations,this.mode="mat-spinner"===F.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",W&&(W.color&&(this.color=this._defaultColor=W.color),W.diameter&&(this.diameter=W.diameter),W.strokeWidth&&(this.strokeWidth=W.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(F){this._value=Math.max(0,Math.min(100,F||0))}get diameter(){return this._diameter}set diameter(F){this._diameter=F||0}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(F){this._strokeWidth=F||0}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const F=2*this._circleRadius()+this.strokeWidth;return`0 0 ${F} ${F}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static{this.\u0275fac=function(he){return new(he||te)(x.rXU(x.aKT),x.rXU(x.bc$,8),x.rXU(T))}}static{this.\u0275cmp=x.VBU({type:te,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(he,W){if(1&he&&x.GBs(A,5),2&he){let ne;x.mGM(ne=x.lsd())&&(W._determinateCircle=ne.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(he,W){2&he&&(x.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===W.mode?W.value:null)("mode",W.mode),x.HbH("mat-"+W.color),x.xc7("width",W.diameter,"px")("height",W.diameter,"px")("--mdc-circular-progress-size",W.diameter+"px")("--mdc-circular-progress-active-indicator-width",W.diameter+"px"),x.AVh("_mat-animation-noopable",W._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===W.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",x.Udg],diameter:[2,"diameter","diameter",x.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",x.Udg]},exportAs:["matProgressSpinner"],standalone:!0,features:[x.GFd,x.aNF],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(he,W){if(1&he&&(x.DNE(0,h,2,8,"ng-template",null,0,x.C5r),x.j41(2,"div",2,1),x.qSk(),x.j41(4,"svg",3),x.nrm(5,"circle",4),x.k0s()(),x.joV(),x.j41(6,"div",5)(7,"div",6)(8,"div",7),x.eu8(9,8),x.k0s(),x.j41(10,"div",9),x.eu8(11,8),x.k0s(),x.j41(12,"div",10),x.eu8(13,8),x.k0s()()()),2&he){const ne=x.sdS(1);x.R7$(4),x.BMQ("viewBox",W._viewBox()),x.R7$(),x.xc7("stroke-dasharray",W._strokeCircumference(),"px")("stroke-dashoffset",W._strokeDashOffset(),"px")("stroke-width",W._circleStrokeWidth(),"%"),x.BMQ("r",W._circleRadius()),x.R7$(4),x.Y8G("ngTemplateOutlet",ne),x.R7$(2),x.Y8G("ngTemplateOutlet",ne),x.R7$(2),x.Y8G("ngTemplateOutlet",ne)}},dependencies:[v.T3],styles:[".mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-app-primary))}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}"],encapsulation:2,changeDetection:0})}}return te})(),ee=(()=>{class te{static{this.\u0275fac=function(he){return new(he||te)}}static{this.\u0275mod=x.$C({type:te})}static{this.\u0275inj=x.G2t({imports:[v.MD,y.yE]})}}return te})()}}]); \ No newline at end of file diff --git a/404.html b/404.html index 15e64b3..bd2f1ef 100644 --- a/404.html +++ b/404.html @@ -41,5 +41,5 @@ - + diff --git a/index.html b/index.html index 15e64b3..bd2f1ef 100644 --- a/index.html +++ b/index.html @@ -41,5 +41,5 @@ - + diff --git a/main.296eaf2bd85dc953.js b/main.296eaf2bd85dc953.js deleted file mode 100644 index a6ebf65..0000000 --- a/main.296eaf2bd85dc953.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{1648:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>u.F});var u=v(5888)},5888:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>et});let u=(()=>{class It{static{this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)"}static{this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)"}static{this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)"}static{this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}}return It})(),y=(()=>{class It{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return It})();var o=v(9969);const se=(It,Et,Tt,nn,Fn=`${y.entering} ${u.deceleration}`,$n=`${y.exiting} ${u.acceleration}`)=>(0,o.hZ)(It,[(0,o.wk)("void",(0,o.iF)(Et)),(0,o.wk)("*",(0,o.iF)(Tt)),(0,o.kY)("void => false, * => false",[]),(0,o.kY)("void => *",(0,o.i0)(nn||Fn),{params:{timings:Fn}}),(0,o.kY)("* => void",(0,o.i0)(nn||$n),{params:{timings:$n}})]),et=[(0,o.hZ)("expandCollapse",[(0,o.wk)("void, collapsed",(0,o.iF)({height:"0"})),(0,o.wk)("*, expanded",(0,o.iF)("*")),(0,o.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,o.kY)("void <=> *, collapsed <=> expanded",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeIn",[(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInTop",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInBottom",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInLeft",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInRight",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeOut",[(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutTop",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutBottom",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutLeft",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutRight",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("shake",[(0,o.kY)("void => false",[]),(0,o.kY)("void => *, * => true",[(0,o.i0)("{{timings}}",(0,o.i7)([(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,o.hZ)("slideInTop",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInBottom",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInLeft",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInRight",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideOutTop",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutBottom",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutLeft",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutRight",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),se("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),se("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},9097:(tn,Re,v)=>{"use strict";v.d(Re,{t:()=>y});const y=new(v(4438).nKC)("ANGOR_APP_CONFIG")},881:(tn,Re,v)=>{"use strict";v.d(Re,{P:()=>W});var u=v(9097),y=v(4438),o=v(2401),B=v(4412);let W=(()=>{class ee{constructor(){this._defaultConfig=(0,y.WQX)(u.t),this._configSubject=new B.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(V){const F=(0,o.A)({},this._configSubject.getValue(),V);this._configSubject.next(F)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275prov=y.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})()},9979:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>te});var u=v(177),y=v(4438),o=v(8834),B=v(5351),W=v(9213);const ee=(ve,tt,bt,Ve,rt,Xe,se,fe)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":ve,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":tt,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":bt,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Ve,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":rt,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":Xe,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":se,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":fe});function re(ve,tt){1&ve&&(y.j41(0,"div",1)(1,"button",6),y.nrm(2,"mat-icon",7),y.k0s()()),2&ve&&(y.R7$(),y.Y8G("matDialogClose",void 0),y.R7$(),y.Y8G("svgIcon","heroicons_outline:x-mark"))}function V(ve,tt){if(1&ve&&(y.j41(0,"div",3),y.nrm(1,"mat-icon",8),y.k0s()),2&ve){const bt=y.XpG();y.Y8G("ngClass",y.lV(2,ee,"primary"===bt.data.icon.color,"accent"===bt.data.icon.color,"warn"===bt.data.icon.color,"basic"===bt.data.icon.color,"info"===bt.data.icon.color,"success"===bt.data.icon.color,"warning"===bt.data.icon.color,"error"===bt.data.icon.color)),y.R7$(),y.Y8G("svgIcon",bt.data.icon.name)}}function F(ve,tt){if(1&ve&&y.nrm(0,"div",9),2&ve){const bt=y.XpG(2);y.Y8G("innerHTML",bt.data.title,y.npT)}}function U(ve,tt){if(1&ve&&y.nrm(0,"div",10),2&ve){const bt=y.XpG(2);y.Y8G("innerHTML",bt.data.message,y.npT)}}function L(ve,tt){if(1&ve&&(y.j41(0,"div",4),y.DNE(1,F,1,1,"div",9)(2,U,1,1,"div",10),y.k0s()),2&ve){const bt=y.XpG();y.R7$(),y.vxM(bt.data.title?1:-1),y.R7$(),y.vxM(bt.data.message?2:-1)}}function he(ve,tt){if(1&ve&&(y.j41(0,"button",11),y.EFF(1),y.k0s()),2&ve){const bt=y.XpG(2);y.Y8G("matDialogClose","cancelled"),y.R7$(),y.SpI(" ",bt.data.actions.cancel.label," ")}}function de(ve,tt){if(1&ve&&(y.j41(0,"button",12),y.EFF(1),y.k0s()),2&ve){const bt=y.XpG(2);y.Y8G("color",bt.data.actions.confirm.color)("matDialogClose","confirmed"),y.R7$(),y.SpI(" ",bt.data.actions.confirm.label," ")}}function be(ve,tt){if(1&ve&&(y.j41(0,"div",5),y.DNE(1,he,2,2,"button",11)(2,de,2,3,"button",12),y.k0s()),2&ve){const bt=y.XpG();y.R7$(),y.vxM(bt.data.actions.cancel.show?1:-1),y.R7$(),y.vxM(bt.data.actions.confirm.show?2:-1)}}let Te=(()=>{class ve{constructor(){this.data=(0,y.WQX)(B.Vh)}static{this.\u0275fac=function(Ve){return new(Ve||ve)}}static{this.\u0275cmp=y.VBU({type:ve,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[y.aNF],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(Ve,rt){1&Ve&&(y.j41(0,"div",0),y.DNE(1,re,3,2,"div",1),y.j41(2,"div",2),y.DNE(3,V,2,11,"div",3)(4,L,3,2,"div",4),y.k0s(),y.DNE(5,be,3,2,"div",5),y.k0s()),2&Ve&&(y.R7$(),y.vxM(rt.data.dismissible?1:-1),y.R7$(2),y.vxM(rt.data.icon.show?3:-1),y.R7$(),y.vxM(rt.data.title||rt.data.message?4:-1),y.R7$(),y.vxM(rt.data.actions.confirm.show||rt.data.actions.cancel.show?5:-1))},dependencies:[o.Hl,o.$z,o.iY,B.hM,B.tx,W.m_,W.An,u.YU],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}\n"],encapsulation:2})}}return ve})();var Me=v(2401);let te=(()=>{class ve{constructor(){this._matDialog=(0,y.WQX)(B.bZ),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(bt={}){const Ve=(0,Me.A)({},this._defaultConfig,bt);return this._matDialog.open(Te,{autoFocus:!1,disableClose:!Ve.dismissible,data:Ve,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Ve){return new(Ve||ve)}}static{this.\u0275prov=y.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}}return ve})()},4977:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>V});var u=v(881),y=v(9327),o=v(4438),B=v(7680),W=v(2771),ee=v(6354),re=v(5558);let V=(()=>{class F{constructor(){this._breakpointObserver=(0,o.WQX)(y.QP),this._angorConfigService=(0,o.WQX)(u.P),this._onMediaChange=new W.m(1),this._angorConfigService.config$.pipe((0,ee.T)(L=>(0,B.A)(Object.entries(L.screens).map(([he,de])=>[he,`(min-width: ${de})`]))),(0,re.n)(L=>this._breakpointObserver.observe(Object.values(L)).pipe((0,ee.T)(he=>{const de=[],be={},Te=Object.entries(he.breakpoints).filter(([Me,te])=>te)??[];for(const[Me]of Te){const te=Object.entries(L).find(([ve,tt])=>tt===Me)[0];te&&(de.push(te),be[te]=Me)}this._onMediaChange.next({matchingAliases:de,matchingQueries:be})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(L){return this._breakpointObserver.observe(L)}static{this.\u0275fac=function(he){return new(he||F)}}static{this.\u0275prov=o.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}}return F})()},7209:(tn,Re,v)=>{"use strict";v.d(Re,{Q:()=>y});var u=v(4438);let y=(()=>{class o{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(W=10){let re="";for(let V=0;V<10;V++)re+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return re}static{this.\u0275fac=function(ee){return new(ee||o)}}static{this.\u0275prov=u.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()},6231:(tn,Re,v)=>{"use strict";v.d(Re,{b:()=>W});var u=v(467),y=v(719),o=v(4412),B=v(4438);let W=(()=>{class ee{constructor(){this.pool=new y.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new o.t(null),this.relaysSubject=new o.t([]),this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const V=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return V.length>0?V.map(U=>({...U,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.damus.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const V=this.relays.map(({url:F,accessType:U,connected:L,retries:he,retryTimeout:de})=>({url:F,accessType:U,connected:L,retries:he,retryTimeout:de}));localStorage.setItem("nostrRelays",JSON.stringify(V)),this.relaysSubject.next(this.relays)}connectToRelay(V){V.connected||(V.ws=new WebSocket(V.url),V.ws.onopen=()=>{V.connected=!0,V.retries=0,clearTimeout(V.retryTimeout),this.saveRelaysToLocalStorage()},V.ws.onerror=()=>this.handleRelayError(V),V.ws.onclose=()=>{V.connected=!1,this.handleRelayError(V)},V.ws.onmessage=({data:F})=>{try{const U=JSON.parse("string"==typeof F?F:F.toString("utf-8"));this.eventSubject.next(U)}catch(U){console.error("Error parsing WebSocket message:",U)}})}handleRelayError(V){V.retries>=this.maxRetries?console.error(`Max retries reached for relay: ${V.url}. No further attempts will be made.`):(V.retries++,V.retryTimeout=setTimeout(()=>this.connectToRelay(V),this.retryDelay*V.retries))}connectToRelays(){this.relays.forEach(V=>!V.connected&&this.connectToRelay(V))}ensureConnectedRelays(){var V=this;return(0,u.A)(function*(){return V.connectToRelays(),new Promise(F=>{const U=()=>{V.getConnectedRelays().length>0?F():setTimeout(U,1e3)};U()})})()}setupVisibilityHandling(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(V=>V.ws?.close())})}getConnectedRelays(){return this.relays.filter(V=>V.connected).map(V=>V.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(V){var F=this;return(0,u.A)(function*(){const U=F.relays.filter(L=>["write","read-write"].includes(L.accessType)&&L.connected);if(!U.length)throw new Error("No connected write relays available");try{return yield Promise.any(U.map(L=>F.pool.publish([L.url],V))),F.eventSubject.next(V),V}catch(L){throw console.error("Failed to publish event to relays:",L),L}})()}addRelay(V,F="read-write"){if(!this.relays.some(U=>U.url===V)){const U={url:V,connected:!1,retries:0,retryTimeout:null,accessType:F};this.relays.push(U),this.connectToRelay(U),this.saveRelaysToLocalStorage()}}removeRelay(V){this.relays=this.relays.filter(F=>F.url!==V),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const V=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(F=>V.includes(F.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(V,F){const U=this.relays.find(L=>L.url===V);U&&(U.accessType=F,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275prov=B.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})()},4930:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Ve});var u=v(467),y=v(5766),o=v(7292),B=v(3838),W=v(719),ee=v(6391),V=(v(5693),v(9673)),F=v(9608),te=v(4438),ve=v(3813);let tt=(()=>{class rt{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(se){var fe=this;return(0,u.A)(function*(){return window.crypto.subtle.importKey("raw",fe.encoder.encode(se),"PBKDF2",!1,["deriveKey"])})()}deriveKey(se,fe,Le){return(0,u.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:fe,iterations:25e4,hash:"SHA-256"},se,{name:"AES-GCM",length:256},!1,Le)})()}encryptData(se,fe){var Le=this;return(0,u.A)(function*(){try{const et=window.crypto.getRandomValues(new Uint8Array(16)),It=window.crypto.getRandomValues(new Uint8Array(12)),Et=yield Le.getPasswordKey(fe),Tt=yield Le.deriveKey(Et,et,["encrypt"]),nn=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:It},Tt,Le.encoder.encode(se))),Fn=new Uint8Array(et.length+It.length+nn.length);return Fn.set(et,0),Fn.set(It,et.length),Fn.set(nn,et.length+It.length),ve.K3.encode(Fn)}catch(et){throw console.error("Encryption failed:",et),new Error("Failed to encrypt data.")}})()}decryptData(se,fe){var Le=this;return(0,u.A)(function*(){try{const et=ve.K3.decode(se),It=et.slice(0,16),Et=et.slice(16,28),Tt=et.slice(28),nn=yield Le.getPasswordKey(fe),Fn=yield Le.deriveKey(nn,It,["decrypt"]),$n=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:Et},Fn,Tt);return Le.decoder.decode($n)}catch(et){throw console.error("Decryption failed:",et),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(fe){return new(fe||rt)}}static{this.\u0275prov=te.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})();var bt=v(5351);let Ve=(()=>{class rt{constructor(se,fe){this.securityService=se,this.dialog=fe,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(se,fe){const Le=Date.now()+60*fe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:se,expirationTime:Le}))}getPassword(){const se=sessionStorage.getItem(this.storageKey);if(!se)return null;const{password:fe,expirationTime:Le}=JSON.parse(se);return Date.now()>Le?(this.clearPassword(),null):fe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(se,fe,Le){var et=this;return(0,u.A)(function*(){try{const It=yield et.getSecretKey(se);if(!It)throw new Error("Incorrect current password.");yield et.setSecretKey(It,fe);const Et=yield et.getNsec(se);return Et&&(yield et.setNsec(Et,fe)),et.clearPassword(),Le&&et.savePassword(fe,60),!0}catch(It){return console.error("Failed to change password: ",It),!1}})()}getUsername(se){return se.startsWith("npub")&&(se=W.Qe.decode(se).data.toString()),`@${localStorage.getItem(`${se}`)||W.Qe.npubEncode(se)}`}npub(){let se=this.getPublicKey();return W.Qe.npubEncode(se)}requestPassword(){var se=this;return(0,u.A)(function*(){return se.dialog.open(o.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(se){var fe=this;return(0,u.A)(function*(){if(fe.usingSecretKey()){let Le=yield fe.getSecretKey(se);const et=Uint8Array.from(B.hp.from(Le,"hex"));return W.Qe.nsecEncode(et)}return""})()}pubkey(se){return W.Qe.decode(se).data.toString()}setPublicKey(se){const fe=W.Qe.npubEncode(se);window.localStorage.setItem(this.localStoragePublicKeyName,se),window.localStorage.setItem(this.localStorageNpubName,fe)}getPublicKey(){return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(se){localStorage.setItem(this.localStorageNpubName,se)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(se,fe=""){var Le=this;return(0,u.A)(function*(){if(""===fe)localStorage.setItem(Le.localStorageSecretKeyName,se),localStorage.setItem("usePassword","false");else{const et=yield Le.securityService.encryptData(se,fe);localStorage.setItem(Le.localStorageSecretKeyName,et),localStorage.setItem("usePassword","true")}})()}getSecretKey(se=""){var fe=this;return(0,u.A)(function*(){const Le=localStorage.getItem(fe.localStorageSecretKeyName),et="true"===localStorage.getItem("usePassword");return Le?et?yield fe.securityService.decryptData(Le,se):Le:null})()}getDecryptedSecretKey(){var se=this;return(0,u.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return se.getSecretKey();const Le=se.getPassword();if(Le)return yield se.getSecretKey(Le);const et=yield se.requestPassword();if(et?.password){const It=yield se.getSecretKey(et.password);return 0!==et.duration&&se.savePassword(et.password,et.duration),It}return console.error("Password not provided"),null}catch(fe){return console.error("Error decrypting private key:",fe),null}})()}setNsec(se,fe=""){var Le=this;return(0,u.A)(function*(){if(""===fe)localStorage.setItem(Le.localStorageNsecName,se),localStorage.setItem("usePassword","false");else{const et=yield Le.securityService.encryptData(se,fe);localStorage.setItem(Le.localStorageNsecName,et),localStorage.setItem("usePassword","true")}})()}getNsec(se=""){var fe=this;return(0,u.A)(function*(){const Le=localStorage.getItem(fe.localStorageNsecName),et="true"===localStorage.getItem("usePassword");return Le?et?yield fe.securityService.decryptData(Le,se):Le:null})()}setPublicKeyFromExtension(se){this.setPublicKey(se)}handleLoginWithKey(se,fe=""){let Le,et,It,Et;try{if(se.startsWith(this.localStorageNsecName)){const nn=W.Qe.decode(se);if(nn.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Le=B.hp.from(nn.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(se))throw new Error("Invalid key format. Must be either nsec or hex.");Le=se}const Tt=new Uint8Array(B.hp.from(Le,"hex"));return et=(0,W.lG)(Tt),Et=W.Qe.npubEncode(et),It=W.Qe.nsecEncode(Tt),this.setSecretKey(Le,fe),this.setNsec(Et,fe),this.setPublicKey(et),this.setNpub(Et),!0}catch(Tt){return console.error("Error during key handling: ",Tt),!1}}handleLoginWithMenemonic(se,fe="",Le){try{const It=function L(rt,Xe,se=0){let Le=F.c.fromMasterSeed((0,V.kw)(rt,Xe)).derive(`m/44'/1237'/${se}'/0/0`).privateKey;if(!Le)throw new Error("could not derive private key");return(0,ee.My)(Le)}(se,fe,0),Et=Uint8Array.from(B.hp.from(It,"hex")),Tt=(0,W.lG)(Et),nn=W.Qe.npubEncode(Tt),Fn=W.Qe.nsecEncode(Et);return this.setSecretKey(It,Le),this.setNsec(nn,Le),this.setPublicKey(Tt),this.setNpub(nn),window.localStorage.setItem(this.localStorageNsecName,Fn),!0}catch(et){return console.error("Error during login with mnemonic:",et),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName)}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(se){try{const fe=(0,W.Bq)(),Le=B.hp.from(fe).toString("hex"),et=(0,W.lG)(fe),It=W.Qe.npubEncode(et),Et=W.Qe.nsecEncode(fe);return this.setSecretKey(Le,se),this.setNsec(It,se),this.setPublicKey(et),this.setNpub(It),{secretKey:Le,pubkey:et,npub:It,nsec:Et}}catch(fe){return console.error("Error during key generation:",fe),null}}handleLoginWithExtension(){var se=this;return(0,u.A)(function*(){const fe=globalThis;if(!fe.nostr)return!1;try{const Le=yield fe.nostr.getPublicKey();if(!Le)throw new Error("Public key not available from Nostr extension.");return se.setPublicKeyFromExtension(Le),!0}catch(Le){return console.error("Failed to connect to Nostr extension:",Le),!1}})()}encryptMessage(se,fe,Le){return(0,u.A)(function*(){console.log(Le);try{return yield W.sh.encrypt(se,fe,Le)}catch(et){throw console.error("Error encrypting message:",et),et}})()}encryptMessageWithExtension(se,fe){return(0,u.A)(function*(){return yield globalThis.nostr.nip04.encrypt(fe,se)})()}decryptMessageWithExtension(se,fe){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&"function"==typeof Le.nostr.nip04?.decrypt)try{return yield Le.nostr.nip04.decrypt(se,fe)}catch(et){return console.error("Decryption failed:",et),"*Failed to decrypt content: "+et.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(se,fe,Le){return(0,u.A)(function*(){try{if(!se||!fe||!Le)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const et=yield W.sh.decrypt(se,fe,Le);if(!et)throw new Error("Decryption returned an empty message.");return et}catch(et){throw console.error("Decryption failed:",et.message),et}})()}getUnsignedEvent(se,fe,Le){return{kind:se,pubkey:this.getPublicKey(),tags:fe,content:Le,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(se,fe){const Le=(0,y.aT)(fe);return(0,W.pC)(se,Le)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(se){let fe=[];se.forEach(Le=>{fe.push(Le[1])}),this.setMuteList(fe)}setMuteList(se){if(0===se.length)localStorage.setItem("muteList","");else{let fe=Array.from(new Set(se));localStorage.setItem("muteList",fe.filter(Le=>Le).join(","))}}signEventWithExtension(se){return(0,u.A)(function*(){const fe=globalThis;if(fe.nostr)return yield fe.nostr.signEvent(se);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(se,fe){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&Le.nostr.nip04?.encrypt)return yield Le.nostr.nip04.encrypt(se,fe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var se=this;return(0,u.A)(function*(){const fe=globalThis;if(fe.nostr&&fe.nostr.getPublicKey)try{return!localStorage.getItem(se.localStorageSecretKeyName)}catch(Le){return console.error("Failed to check Nostr extension:",Le),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}static{this.\u0275fac=function(fe){return new(fe||rt)(te.KVO(tt),te.KVO(bt.bZ))}}static{this.\u0275prov=te.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})()},2083:(tn,Re,v)=>{"use strict";v.d(Re,{d:()=>ee});var u=v(467),y=v(8418),o=v(4438),B=v(5645),W=v(7291);let ee=(()=>{class re{constructor(F,U){this.subscriptionService=F,this.storageService=U,this.isProfileLoaded=!1}loadUserProfile(F){var U=this;return(0,u.A)(function*(){console.log(`Loading user profile for pubkey: ${F}`),U.isProfileLoaded?console.log("Profile already loaded, skipping."):(yield U.subscribeToUserProfile(F),yield U.subscribeToUserContacts(F),yield U.subscribeToUserChats(F),yield U.subscribeToUserPosts(F),U.isProfileLoaded=!0)})()}subscribeToUserProfile(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to user profile for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("users"),he={kinds:[0],authors:[F],limit:1};L&&(he.since=parseInt(L,10)),U.subscriptionService.addSubscriptions([he],de=>{const be=U.parseMetadataEvent(de);U.storageService.saveProfile(F,be)})})()}subscribeToUserContacts(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to contacts for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("contacts"),he=[{kinds:[y.In],authors:[F]},{kinds:[y.In],"#p":[F]}];if(L){const de=parseInt(L,10);he.forEach(be=>be.since=de)}U.subscriptionService.addSubscriptions(he,de=>{U.storageService.saveContacts(F,[{id:de.id,pubkey:de.pubkey,created_at:de.created_at,tags:de.tags,isFollower:de.pubkey===F}])})})()}subscribeToUserChats(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to chats for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("chats"),he=[{kinds:[y.rV],authors:[F],limit:300},{kinds:[y.rV],"#p":[F],limit:300}];if(L){const de=parseInt(L,10);he.forEach(be=>be.since=de)}else U.storageService.removeAllChats();U.subscriptionService.addSubscriptions(he,de=>{const be=U.parseChatEvent(de);U.storageService.saveChatEvent(be)})})()}subscribeToUserPosts(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to posts (event type 1) for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("posts"),he={kinds:[1],authors:[F],limit:100};L&&(he.since=parseInt(L,10)),U.subscriptionService.addSubscriptions([he],de=>{U.storageService.savePostForPubKey(de)})})()}parseMetadataEvent(F){try{return JSON.parse(F.content)}catch(U){return console.error("Error parsing metadata event:",U),null}}parseChatEvent(F){try{const U=F.content.split("?iv=");return{id:F.id,kind:F.kind,pubkey:F.pubkey,created_at:F.created_at,tags:F.tags,content:U[0],iv:U[1],IsRead:!1}}catch(U){return console.error("Error parsing chat event:",U),null}}static{this.\u0275fac=function(U){return new(U||re)(o.KVO(B.n),o.KVO(W.n))}}static{this.\u0275prov=o.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},7291:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>ee});var u=v(467),y=v(119),o=v.n(y),B=v(4412),W=v(4438);let ee=(()=>{class re{constructor(){this.profileSubject=new B.t(null),this.projectsSubject=new B.t([]),this.projectStatsSubject=new B.t({}),this.chatEventsSubject=new B.t([]),this.unreadChatCountSubject=new B.t(0),this.contactsSubject=new B.t({pubKey:"",contacts:[]}),this.postsSubject=new B.t(null),this.myLikesSubject=new B.t([]),this.notificationsSubject=new B.t([]),this.contactStatsSubject=new B.t({totalContacts:0,followersCount:0,followingCount:0}),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectStatsStore=this.createStore("projectStats"),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllPostsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.loadContactStatsFromDB(),this.calculateAndStoreAllContactStats()}createStore(F){return o().createInstance({driver:o().INDEXEDDB,name:"angor-hub",version:1,storeName:F})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}saveContacts(F,U){var L=this;return(0,u.A)(function*(){try{const he=[];for(const de of U){const be=`${F}:${de.id}`;yield L.contactsStore.setItem(be,de),he.push(de)}L.contactsSubject.next({pubKey:F,contacts:he}),yield L.calculateAndStoreAllContactStats(),yield L.setUpdateHistory("contacts")}catch(he){console.error("Error saving contacts:",he)}})()}calculateAndStoreAllContactStats(){var F=this;return(0,u.A)(function*(){try{const U={};yield F.contactsStore.iterate((L,he)=>{const[de]=he.split(":");U[de]||(U[de]={totalContacts:0,followersCount:0,followingCount:0}),U[de].totalContacts++,L.isFollower?U[de].followersCount++:U[de].followingCount++});for(const L in U)F.contactStatsMap[L]||(F.contactStatsMap[L]=new B.t({pubKey:L,totalContacts:0,followersCount:0,followingCount:0})),F.contactStatsMap[L].next({pubKey:L,totalContacts:U[L].totalContacts,followersCount:U[L].followersCount,followingCount:U[L].followingCount})}catch(U){console.error("Error calculating and storing contact stats:",U)}})()}getContactStats$(F){return this.contactStatsMap[F]||(this.contactStatsMap[F]=new B.t({pubKey:F,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[F].asObservable()}getAllContactsPaginated(F,U,L){var he=this;return(0,u.A)(function*(){try{const de=[];yield he.contactsStore.iterate((te,ve)=>{const[tt]=ve.split(":");tt===F&&de.push(te)});const be=de.length,Te=(U-1)*L;return{contacts:de.slice(Te,Te+L),totalCount:be}}catch(de){return console.error("Error retrieving paginated contacts for pubKey:",de),{contacts:[],totalCount:0}}})()}getAllContacts(F=""){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.contactsStore.iterate((he,de)=>{const[be,Te]=de.split(":");(""===F||be===F)&&L.push({pubKey:be,contact:he})}),L}catch(L){return console.error("Error retrieving contacts:",L),[]}})()}getContactStats(F){var U=this;return(0,u.A)(function*(){try{let L=0,he=0,de=0;return yield U.contactsStore.iterate((be,Te)=>{const[Me,te]=Te.split(":");Me===F&&(L++,be.isFollower?he++:de++)}),{totalContacts:L,followersCount:he,followingCount:de}}catch(L){return console.error("Error retrieving contact stats for pubKey:",L),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(F){var U=this;return(0,u.A)(function*(){try{const L=[];yield U.contactsStore.iterate((he,de)=>{const[be]=de.split(":");be===F&&L.push(de)});for(const he of L)yield U.contactsStore.removeItem(he);yield U.contactsStore.clear(),U.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),U.contactsSubject.next({pubKey:F,contacts:[]}),yield U.setUpdateHistory("contacts")}catch(L){console.error("Error removing all contacts for pubKey:",L)}})()}saveProfile(F,U){var L=this;return(0,u.A)(function*(){try{if(!F||!U)return void console.error("Invalid pubKey or metadata:",F,U);U.pubKey=F,yield L.profileStore.setItem(F,U),L.profileSubject.next({pubKey:F,metadata:U}),yield L.setUpdateHistory("profiles")}catch(he){console.error("Error saving profile",he)}})()}getProfile(F){var U=this;return(0,u.A)(function*(){try{return(yield U.profileStore.getItem(F))||null}catch(L){return console.error("Error retrieving profile metadata:",L),null}})()}getAllProfiles(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.profileStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all Profile:",U),[]}})()}searchProfile(F){var U=this;return(0,u.A)(function*(){try{const L=[],he=F.toLowerCase();return yield U.profileStore.iterate((de,be)=>{JSON.stringify(de).toLowerCase().includes(he)&&L.push({pubKey:be,profile:de})}),L}catch(L){return console.error("Error searching profiles by metadata:",L),[]}})()}getLastUpdateDate(F){var U=this;return(0,u.A)(function*(){try{return(yield U.updateHistoryStore.getItem(F))||null}catch(L){return console.error("Error retrieving last update date:",L),null}})()}saveProject(F){var U=this;return(0,u.A)(function*(){try{yield U.projectsStore.setItem(F.projectIdentifier,F);const L=yield U.getAllProjects();U.projectsSubject.next(L),yield U.setUpdateHistory("projects")}catch(L){console.error("Error saving project:",L)}})()}getAllProjects(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.projectsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all projects:",U),[]}})()}getProjectStats(F){var U=this;return(0,u.A)(function*(){try{return(yield U.projectStatsStore.getItem(F))||null}catch(L){return console.error("Error retrieving project stats:",L),null}})()}saveProjectStats(F,U){var L=this;return(0,u.A)(function*(){try{yield L.projectStatsStore.setItem(F,U);const he=yield L.getAllProjectStats();L.projectStatsSubject.next(he),yield L.setUpdateHistory("projectStats")}catch(he){console.error("Error saving project stats:",he)}})()}getAllProjectStats(){var F=this;return(0,u.A)(function*(){try{const U={};return yield F.projectStatsStore.iterate((L,he)=>{U[he]=L}),U}catch(U){return console.error("Error retrieving all project stats:",U),{}}})()}savePostForPubKey(F){var U=this;return(0,u.A)(function*(){try{yield U.postsStore.setItem(F.id,F),yield U.setUpdateHistory("posts"),U.postsSubject.next(F)}catch(L){console.error("Error saving event type 1 and sending it to clients:",L)}})()}getPostsByPubKey(F){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.postsStore.iterate(he=>{he.pubkey===F&&1===he.kind&&L.push(he)}),L}catch(L){return console.error("Error retrieving events for pubKey:",L),[]}})()}getAllPostsForAllPubKeys(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.postsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all events:",U),[]}})()}saveLike(F){var U=this;return(0,u.A)(function*(){try{yield U.myLikesStore.setItem(F.id,F);const L=yield U.getAllMyLikes();U.myLikesSubject.next(L),yield U.setUpdateHistory("myLikes")}catch(L){console.error("Error saving like:",L)}})()}getAllMyLikes(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.myLikesStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all likes:",U),[]}})()}saveNotification(F){var U=this;return(0,u.A)(function*(){try{yield U.notificationsStore.setItem(F.id,F);const L=yield U.getAllNotifications();U.notificationsSubject.next(L),yield U.setUpdateHistory("notifications")}catch(L){console.error("Error saving notification:",L)}})()}getAllNotifications(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.notificationsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all notifications:",U),[]}})()}saveChatEvent(F){var U=this;return(0,u.A)(function*(){try{yield U.chatsStore.setItem(F.id,F),yield U.setUpdateHistory("chats");const L=yield U.getAllChatEvents();U.chatEventsSubject.next(L),U.updateUnreadChatCount(L)}catch(L){console.error("Error saving chat event:",L)}})()}getAllChatEvents(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.chatsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all chat events:",U),[]}})()}getChatEventsByPubKey(F){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.chatsStore.iterate(he=>{const de=U.getReceiverPubKeyFromTags(he.tags);(he.pubkey===F||de===F)&&L.push(he)}),L}catch(L){return console.error("Error retrieving chat events by pubkey:",L),[]}})()}updateChatEventReadStatus(F,U){var L=this;return(0,u.A)(function*(){try{const he=yield L.chatsStore.getItem(F);if(he){he.IsRead=U,yield L.chatsStore.setItem(F,he);const de=yield L.getAllChatEvents();L.chatEventsSubject.next(de),L.updateUnreadChatCount(de)}}catch(he){console.error("Error updating chat event read status:",he)}})()}markAllChatEventsAsRead(F){var U=this;return(0,u.A)(function*(){try{yield U.chatsStore.iterate(function(){var he=(0,u.A)(function*(de,be){const Te=U.getReceiverPubKeyFromTags(de.tags);(de.pubkey===F||Te===F)&&!de.IsRead&&(de.IsRead=!0,yield U.chatsStore.setItem(be,de))});return function(de,be){return he.apply(this,arguments)}}());const L=yield U.getAllChatEvents();U.chatEventsSubject.next(L),U.updateUnreadChatCount(L)}catch(L){console.error("Error marking all chat events as read:",L)}})()}getReceiverPubKeyFromTags(F){for(const U of F)if("p"===U[0]&&U[1])return U[1];return null}updateUnreadChatCount(F){const U=F.filter(L=>!L.IsRead).length;this.unreadChatCountSubject.next(U)}removeAllChats(){var F=this;return(0,u.A)(function*(){try{yield F.chatsStore.clear(),F.chatEventsSubject.next([]),F.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(U){console.error("Error removing all chat events:",U)}})()}setUpdateHistory(F){var U=this;return(0,u.A)(function*(){try{const L=Math.floor(Date.now()/1e3);yield U.updateHistoryStore.setItem(F,L)}catch(L){console.error("Error updating history:",L)}})()}loadAllProjectsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllProjects();F.projectsSubject.next(U)}catch(U){console.error("Error loading projects from DB:",U)}})()}loadAllProjectStatsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllProjectStats();F.projectStatsSubject.next(U)}catch(U){console.error("Error loading project stats from DB:",U)}})()}loadAllContactsFromDB(F=""){var U=this;return(0,u.A)(function*(){try{const L=yield U.getAllContacts(F);if(L.length>0){const he={};for(const de of L)he[de.pubKey]||(he[de.pubKey]=[]),he[de.pubKey].push(de.contact);for(const de in he)U.contactsSubject.next({pubKey:de,contacts:he[de]})}}catch(L){console.error("Error loading contacts from DB:",L)}})()}loadAllChatEventsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllChatEvents();F.chatEventsSubject.next(U)}catch(U){console.error("Error loading chat events from DB:",U)}})()}loadAllPostsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllPostsForAllPubKeys();F.postsSubject.next(U)}catch(U){console.error("Error loading posts from DB:",U)}})()}loadAllMyLikesFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllMyLikes();F.myLikesSubject.next(U)}catch(U){console.error("Error loading likes from DB:",U)}})()}loadAllNotificationsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllNotifications();F.notificationsSubject.next(U)}catch(U){console.error("Error loading notifications from DB:",U)}})()}loadContactStatsFromDB(){var F=this;return(0,u.A)(function*(){try{let U=0,L=0,he=0;yield F.contactsStore.iterate((de,be)=>{const[Te]=be.split(":");U++,de.isFollower?L++:he++}),F.contactStatsSubject.next({totalContacts:U,followersCount:L,followingCount:he})}catch(U){console.error("Error loading contact stats from DB:",U)}})()}static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275prov=W.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},5645:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>Me});var y,u=v(4412),o=new Uint8Array(16);function B(){if(!y&&!(y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(o)}const W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var V=[],F=0;F<256;++F)V.push((F+256).toString(16).substr(1));const L=function U(te){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,tt=(V[te[ve+0]]+V[te[ve+1]]+V[te[ve+2]]+V[te[ve+3]]+"-"+V[te[ve+4]]+V[te[ve+5]]+"-"+V[te[ve+6]]+V[te[ve+7]]+"-"+V[te[ve+8]]+V[te[ve+9]]+"-"+V[te[ve+10]]+V[te[ve+11]]+V[te[ve+12]]+V[te[ve+13]]+V[te[ve+14]]+V[te[ve+15]]).toLowerCase();if(!function ee(te){return"string"==typeof te&&W.test(te)}(tt))throw TypeError("Stringified UUID is invalid");return tt},de=function he(te,ve,tt){var bt=(te=te||{}).random||(te.rng||B)();if(bt[6]=15&bt[6]|64,bt[8]=63&bt[8]|128,ve){tt=tt||0;for(var Ve=0;Ve<16;++Ve)ve[tt+Ve]=bt[Ve];return ve}return L(bt)};var be=v(4438),Te=v(6231);let Me=(()=>{class te{constructor(tt){this.relayService=tt,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new u.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=3e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=5e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(tt,bt){const Ve=this.findExistingSubscription(tt);if(Ve)return console.log("Existing subscription found:",Ve),Ve.callbacks.push(bt),Ve.id;const rt=de(),Xe=Date.now();this.lastActionTimestamp.set(rt,Xe);const se={filter:tt,callbacks:[bt],id:rt};return this.subscriptions.set(se.id,se),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(se),se.id}findExistingSubscription(tt){for(let bt of this.subscriptions.values())if(JSON.stringify(bt.filter)===JSON.stringify(tt))return bt}removeSubscriptionById(tt){const bt=Date.now(),Ve=this.lastActionTimestamp.get(tt);Ve&&bt-Ve{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(bt=>{this.subscribeToRelays(bt.filter,bt)})},this.queueInterval))}subscribeToRelays(tt,bt){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Ve=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Ve,tt,{onevent:rt=>{bt.callbacks.forEach(Xe=>Xe(rt))},onclose:()=>{console.log("Subscription closed")}})}).catch(Ve=>{console.error("Error subscribing to relays:",Ve)}):this.pendingSubscriptions.set(bt.id,bt)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(tt=>{this.subscribeToRelays(tt.filter,tt)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(tt=>{console.error("Error connecting to relays:",tt)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(bt){return new(bt||te)(be.KVO(Te.b))}}static{this.\u0275prov=be.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})()},7292:(tn,Re,v)=>{"use strict";v.d(Re,{b:()=>de});var u=v(177),y=v(9417),o=v(8834),B=v(6600),W=v(5351),ee=v(2102),re=v(9213),V=v(9042),F=v(2798),U=v(882),L=v(4438);function he(be,Te){1&be&&(L.j41(0,"mat-error"),L.EFF(1," Password is required "),L.k0s())}let de=(()=>{class be{constructor(Me,te,ve){this.fb=Me,this.dialogRef=te,this.data=ve,this.passwordForm=this.fb.group({password:["",y.k0.required],duration:["0",y.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(te){return new(te||be)(L.rXU(y.ok),L.rXU(W.CP),L.rXU(W.Vh))}}static{this.\u0275cmp=L.VBU({type:be,selectors:[["password-dialog"]],standalone:!0,features:[L.aNF],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,"mt-5","w-full"],["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(te,ve){1&te&&(L.j41(0,"h1",0),L.EFF(1,"Enter Password"),L.k0s(),L.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),L.EFF(6,"Password"),L.k0s(),L.j41(7,"mat-icon",4),L.EFF(8,"lock"),L.k0s(),L.nrm(9,"input",5),L.DNE(10,he,2,0,"mat-error",6),L.k0s(),L.j41(11,"mat-form-field",7)(12,"mat-label"),L.EFF(13,"Duration"),L.k0s(),L.j41(14,"mat-select",8)(15,"mat-option",9),L.EFF(16,"0 Minute"),L.k0s(),L.j41(17,"mat-option",10),L.EFF(18,"1 Minute"),L.k0s(),L.j41(19,"mat-option",11),L.EFF(20,"5 Minutes"),L.k0s(),L.j41(21,"mat-option",12),L.EFF(22,"10 Minutes"),L.k0s(),L.j41(23,"mat-option",13),L.EFF(24,"1 Hour"),L.k0s()()()()(),L.j41(25,"div",14)(26,"button",15),L.bIt("click",function(){return ve.onCancel()}),L.EFF(27,"Cancel"),L.k0s(),L.j41(28,"button",16),L.bIt("click",function(){return ve.onSubmit()}),L.EFF(29," Submit "),L.k0s()()),2&te&&(L.R7$(3),L.Y8G("formGroup",ve.passwordForm),L.R7$(),L.Y8G("subscriptSizing","dynamic"),L.R7$(5),L.Y8G("formControlName","password"),L.R7$(),L.Y8G("ngIf",ve.passwordForm.get("password").hasError("required")),L.R7$(18),L.Y8G("disabled",ve.passwordForm.invalid))},dependencies:[U.vg,o.Hl,o.$z,re.m_,re.An,y.YN,y.qT,y.me,y.BC,y.cb,B.wT,ee.nJ,ee.rl,y.X1,y.j4,y.JD,u.MD,u.bT,F.Ve,ee.TL,ee.JW,F.VO,ee.RG,V.fS,V.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return be})()},368:(tn,Re,v)=>{"use strict";var u=v(345),y=v(9192),o=v(4438);let B=(()=>{class a{constructor(){}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["app-root"]],standalone:!0,features:[o.aNF],decls:1,vars:0,template:function(c,f){1&c&&o.nrm(0,"router-outlet")},dependencies:[y.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return a})();var W=v(467);const ee=new o.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var re=v(8810),V=v(1985),F=v(6697),U=v(7673);class L{constructor(s,i){this.url=s,this.delay=i,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,re.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,re.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,re.$)(()=>new Error("Request does not exist!"));this._replied++;const s=this._reply({request:this.request,urlParams:this.urlParams});return s instanceof V.c?s.pipe((0,F.s)(1)):(0,U.of)(s).pipe((0,F.s)(1))}reply(s){this._reply=s}replyCount(s){this._replyCount=s}}var he=v(7680);let de=(()=>{class a{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(i,c){const f={handler:void 0,urlParams:{}},C=c.split("/"),M=this._handlers[i.toLowerCase()];for(const[H,ie]of M){const Fe=H.split("/");if(C.length===Fe.length&&Fe.every((Yt,jn)=>Yt.startsWith(":")||Yt===C[jn])){f.handler=ie,f.urlParams=(0,he.A)(Fe.map((Yt,jn)=>Yt.startsWith(":")?[Yt.substring(1),C[jn]]:void 0).filter(Boolean));break}}return f}onGet(i,c){return this._registerHandler("get",i,c)}onPost(i,c){return this._registerHandler("post",i,c)}onPatch(i,c){return this._registerHandler("patch",i,c)}onDelete(i,c){return this._registerHandler("delete",i,c)}onPut(i,c){return this._registerHandler("put",i,c)}onHead(i,c){return this._registerHandler("head",i,c)}onJsonp(i,c){return this._registerHandler("jsonp",i,c)}onOptions(i,c){return this._registerHandler("options",i,c)}_registerHandler(i,c,f){const C=new L(c,f);return this._handlers[i].set(c,C),C}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var be=v(1626),Te=v(1986),Me=v(5558);const te=(a,s)=>{const i=(0,o.WQX)(ee),c=(0,o.WQX)(de),{handler:f,urlParams:C}=c.findHandler(a.method.toUpperCase(),a.url);return f?(f.request=a,f.urlParams=C,f.response.pipe((0,Te.c)(f.delay??i??0),(0,Me.n)(M=>{if(!M)return(0,re.$)(()=>new be.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const H={status:M[0],body:M[1]};return H.status>=200&&H.status<300?(0,U.of)(new be.cS({body:H.body,status:H.status,statusText:"OK"})):(0,re.$)(()=>new be.yz({error:H.body?.error,status:H.status,statusText:"ERROR"}))}))):s(a)};var ve=v(9097),tt=v(9979),bt=v(4412);let Ve=(()=>{class a{constructor(){this._auto$=new bt.t(!0),this._mode$=new bt.t("indeterminate"),this._progress$=new bt.t(0),this._show$=new bt.t(!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(i){this._auto$.next(i)}setMode(i){this._mode$.next(i)}setProgress(i){i<0||i>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(i)}_setLoadingStatus(i,c){c?(!0===i?(this._urlMap.set(c,i),this._show$.next(!0)):!1===i&&this._urlMap.has(c)&&this._urlMap.delete(c),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var rt=v(980);const Xe=(a,s)=>{const i=(0,o.WQX)(Ve);let c=!1;return i.auto$.pipe((0,F.s)(1)).subscribe(f=>{c=f}),c?(i._setLoadingStatus(!0,a.url),s(a).pipe((0,rt.j)(()=>{i._setLoadingStatus(!1,a.url)}))):s(a)};var se=v(4977),fe=v(6860);let Le=(()=>{class a{constructor(){this._platform=(0,o.WQX)(fe.OD),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"))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var et=v(177),It=v(5964);let Et=(()=>{class a{constructor(){this._document=(0,o.WQX)(et.qQ),this._router=(0,o.WQX)(y.Ix),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,F.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Tt=v(7209),nn=v(6600),Fn=v(5351),$n=v(2102);class di extends Error{}class mt extends di{constructor(s){super(`Invalid DateTime: ${s.toMessage()}`)}}class Ee extends di{constructor(s){super(`Invalid Interval: ${s.toMessage()}`)}}class J extends di{constructor(s){super(`Invalid Duration: ${s.toMessage()}`)}}class Se extends di{}class gt extends di{constructor(s){super(`Invalid unit ${s}`)}}class Ne extends di{}class Ze extends di{constructor(){super("Zone is an abstract class")}}const je="numeric",Lt="short",Mt="long",we={year:je,month:je,day:je},Oe={year:je,month:Lt,day:je},me={year:je,month:Lt,day:je,weekday:Lt},We={year:je,month:Mt,day:je},Pe={year:je,month:Mt,day:je,weekday:Mt},xt={hour:je,minute:je},xe={hour:je,minute:je,second:je},ut={hour:je,minute:je,second:je,timeZoneName:Lt},Rt={hour:je,minute:je,second:je,timeZoneName:Mt},wt={hour:je,minute:je,hourCycle:"h23"},mn={hour:je,minute:je,second:je,hourCycle:"h23"},ni={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:Lt},Zt={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:Mt},_e={year:je,month:je,day:je,hour:je,minute:je},Je={year:je,month:je,day:je,hour:je,minute:je,second:je},Ge={year:je,month:Lt,day:je,hour:je,minute:je},dt={year:je,month:Lt,day:je,hour:je,minute:je,second:je},rn={year:je,month:Lt,day:je,weekday:Lt,hour:je,minute:je},Q={year:je,month:Mt,day:je,hour:je,minute:je,timeZoneName:Lt},T={year:je,month:Mt,day:je,hour:je,minute:je,second:je,timeZoneName:Lt},N={year:je,month:Mt,day:je,weekday:Mt,hour:je,minute:je,timeZoneName:Mt},$={year:je,month:Mt,day:je,weekday:Mt,hour:je,minute:je,second:je,timeZoneName:Mt};class le{get type(){throw new Ze}get name(){throw new Ze}get ianaName(){return this.name}get isUniversal(){throw new Ze}offsetName(s,i){throw new Ze}formatOffset(s,i){throw new Ze}offset(s){throw new Ze}equals(s){throw new Ze}get isValid(){throw new Ze}}let ue=null;class nt extends le{static get instance(){return null===ue&&(ue=new nt),ue}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Ho(s,i,c)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){return-new Date(s).getTimezoneOffset()}equals(s){return"system"===s.type}get isValid(){return!0}}let zt={};const jt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let wi={};class en extends le{static create(s){return wi[s]||(wi[s]=new en(s)),wi[s]}static resetCache(){wi={},zt={}}static isValidSpecifier(s){return this.isValidZone(s)}static isValidZone(s){if(!s)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:s}).format(),!0}catch{return!1}}constructor(s){super(),this.zoneName=s,this.valid=en.isValidZone(s)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Ho(s,i,c,this.name)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){const i=new Date(s);if(isNaN(i))return NaN;const c=function Ut(a){return zt[a]||(zt[a]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),zt[a]}(this.name);let[f,C,M,H,ie,Fe,Nt]=c.formatToParts?function Ln(a,s){const i=a.formatToParts(s),c=[];for(let f=0;f=0?Dn:1e3+Dn,(Vs({year:f,month:C,day:M,hour:24===ie?0:ie,minute:Fe,second:Nt,millisecond:0})-wn)/6e4}equals(s){return"iana"===s.type&&s.name===this.name}get isValid(){return this.valid}}let Cn={},Be={};function ye(a,s={}){const i=JSON.stringify([a,s]);let c=Be[i];return c||(c=new Intl.DateTimeFormat(a,s),Be[i]=c),c}let Ye={},Pn={},Ti=null,At={};function lt(a,s,i,c){const f=a.listingMode();return"error"===f?null:"en"===f?i(s):c(s)}class an{constructor(s,i,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;const{padTo:f,floor:C,...M}=c;if(!i||Object.keys(M).length>0){const H={useGrouping:!1,...c};c.padTo>0&&(H.minimumIntegerDigits=c.padTo),this.inf=function Gt(a,s={}){const i=JSON.stringify([a,s]);let c=Ye[i];return c||(c=new Intl.NumberFormat(a,s),Ye[i]=c),c}(s,H)}}format(s){if(this.inf){const i=this.floor?Math.floor(s):s;return this.inf.format(i)}return hr(this.floor?Math.floor(s):ns(s,3),this.padTo)}}class li{constructor(s,i,c){let f;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=s;else if("fixed"===s.zone.type){const M=s.offset/60*-1,H=M>=0?`Etc/GMT+${M}`:`Etc/GMT${M}`;0!==s.offset&&en.create(H).valid?(f=H,this.dt=s):(f="UTC",this.dt=0===s.offset?s:s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone)}else"system"===s.zone.type?this.dt=s:"iana"===s.zone.type?(this.dt=s,f=s.zone.name):(f="UTC",this.dt=s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone);const C={...this.opts};C.timeZone=C.timeZone||f,this.dtf=ye(i,C)}format(){return this.originalZone?this.formatToParts().map(({value:s})=>s).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const s=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?s.map(i=>{if("timeZoneName"===i.type){const c=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:c}}return i}):s}resolvedOptions(){return this.dtf.resolvedOptions()}}class wr{constructor(s,i,c){this.opts={style:"long",...c},!i&&es()&&(this.rtf=function yi(a,s={}){const{base:i,...c}=s,f=JSON.stringify([a,c]);let C=Pn[f];return C||(C=new Intl.RelativeTimeFormat(a,s),Pn[f]=C),C}(s,c))}format(s,i){return this.rtf?this.rtf.format(s,i):function Oa(a,s,i="always",c=!1){const f={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."]},C=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===i&&C){const Yt="days"===a;switch(s){case 1:return Yt?"tomorrow":`next ${f[a][0]}`;case-1:return Yt?"yesterday":`last ${f[a][0]}`;case 0:return Yt?"today":`this ${f[a][0]}`}}const M=Object.is(s,-0)||s<0,H=Math.abs(s),ie=1===H,Fe=f[a],Nt=c?ie?Fe[1]:Fe[2]||Fe[1]:ie?f[a][0]:a;return M?`${H} ${Nt} ago`:`in ${H} ${Nt}`}(i,s,this.opts.numeric,"long"!==this.opts.style)}formatToParts(s,i){return this.rtf?this.rtf.formatToParts(s,i):[]}}const Dr={firstDay:1,minimalDays:4,weekend:[6,7]};class Mi{static fromOpts(s){return Mi.create(s.locale,s.numberingSystem,s.outputCalendar,s.weekSettings,s.defaultToEN)}static create(s,i,c,f,C=!1){const M=s||oe.defaultLocale,H=M||(C?"en-US":function sn(){return Ti||(Ti=(new Intl.DateTimeFormat).resolvedOptions().locale,Ti)}()),ie=i||oe.defaultNumberingSystem,Fe=c||oe.defaultOutputCalendar,Nt=jo(f)||oe.defaultWeekSettings;return new Mi(H,ie,Fe,Nt,M)}static resetCache(){Ti=null,Be={},Ye={},Pn={}}static fromObject({locale:s,numberingSystem:i,outputCalendar:c,weekSettings:f}={}){return Mi.create(s,i,c,f)}constructor(s,i,c,f,C){const[M,H,ie]=function Bt(a){const s=a.indexOf("-x-");-1!==s&&(a=a.substring(0,s));const i=a.indexOf("-u-");if(-1===i)return[a];{let c,f;try{c=ye(a).resolvedOptions(),f=a}catch{const ie=a.substring(0,i);c=ye(ie).resolvedOptions(),f=ie}const{numberingSystem:C,calendar:M}=c;return[f,C,M]}}(s);this.locale=M,this.numberingSystem=i||H||null,this.outputCalendar=c||ie||null,this.weekSettings=f,this.intl=function ot(a,s,i){return(i||s)&&(a.includes("-u-")||(a+="-u"),i&&(a+=`-ca-${i}`),s&&(a+=`-nu-${s}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=C,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Xt(a){return(!a.numberingSystem||"latn"===a.numberingSystem)&&("latn"===a.numberingSystem||!a.locale||a.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(a.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(s){return s&&0!==Object.getOwnPropertyNames(s).length?Mi.create(s.locale||this.specifiedLocale,s.numberingSystem||this.numberingSystem,s.outputCalendar||this.outputCalendar,jo(s.weekSettings)||this.weekSettings,s.defaultToEN||!1):this}redefaultToEN(s={}){return this.clone({...s,defaultToEN:!0})}redefaultToSystem(s={}){return this.clone({...s,defaultToEN:!1})}months(s,i=!1){return lt(this,s,oa,()=>{const c=i?{month:s,day:"numeric"}:{month:s},f=i?"format":"standalone";return this.monthsCache[f][s]||(this.monthsCache[f][s]=function qe(a){const s=[];for(let i=1;i<=12;i++){const c=Ei.utc(2009,i,1);s.push(a(c))}return s}(C=>this.extract(C,c,"month"))),this.monthsCache[f][s]})}weekdays(s,i=!1){return lt(this,s,xo,()=>{const c=i?{weekday:s,year:"numeric",month:"long",day:"numeric"}:{weekday:s},f=i?"format":"standalone";return this.weekdaysCache[f][s]||(this.weekdaysCache[f][s]=function Ie(a){const s=[];for(let i=1;i<=7;i++){const c=Ei.utc(2016,11,13+i);s.push(a(c))}return s}(C=>this.extract(C,c,"weekday"))),this.weekdaysCache[f][s]})}meridiems(){return lt(this,void 0,()=>Ir,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ei.utc(2016,11,13,9),Ei.utc(2016,11,13,19)].map(i=>this.extract(i,s,"dayperiod"))}return this.meridiemCache})}eras(s){return lt(this,s,sa,()=>{const i={era:s};return this.eraCache[s]||(this.eraCache[s]=[Ei.utc(-40,1,1),Ei.utc(2017,1,1)].map(c=>this.extract(c,i,"era"))),this.eraCache[s]})}extract(s,i,c){const M=this.dtFormatter(s,i).formatToParts().find(H=>H.type.toLowerCase()===c);return M?M.value:null}numberFormatter(s={}){return new an(this.intl,s.forceSimple||this.fastNumbers,s)}dtFormatter(s,i={}){return new li(s,this.intl,i)}relFormatter(s={}){return new wr(this.intl,this.isEnglish(),s)}listFormatter(s={}){return function He(a,s={}){const i=JSON.stringify([a,s]);let c=Cn[i];return c||(c=new Intl.ListFormat(a,s),Cn[i]=c),c}(this.intl,s)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:io()?function st(a){let s=At[a];if(!s){const i=new Intl.Locale(a);s="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,At[a]=s}return s}(this.locale):Dr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(s){return this.locale===s.locale&&this.numberingSystem===s.numberingSystem&&this.outputCalendar===s.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Fr=null;class bi extends le{static get utcInstance(){return null===Fr&&(Fr=new bi(0)),Fr}static instance(s){return 0===s?bi.utcInstance:new bi(s)}static parseSpecifier(s){if(s){const i=s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new bi($o(i[1],i[2]))}return null}constructor(s){super(),this.fixed=s}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Hs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Hs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(s,i){return Hs(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(s){return"fixed"===s.type&&s.fixed===this.fixed}get isValid(){return!0}}class Kr extends le{constructor(s){super(),this.zoneName=s}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 Or(a,s){if(Ci(a)||null===a)return s;if(a instanceof le)return a;if(function Gi(a){return"string"==typeof a}(a)){const c=a.toLowerCase();return"default"===c?s:"local"===c||"system"===c?nt.instance:"utc"===c||"gmt"===c?bi.utcInstance:bi.parseSpecifier(c)||en.create(a)}return Br(a)?bi.instance(a):"object"==typeof a&&"offset"in a&&"function"==typeof a.offset?a:new Kr(a)}const ft={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"},Ot={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]},un=ft.hanidec.replace(/[\[|\]]/g,"").split("");let Tn={};function zn({numberingSystem:a},s=""){const i=a||"latn";return Tn[i]||(Tn[i]={}),Tn[i][s]||(Tn[i][s]=new RegExp(`${ft[i]}${s}`)),Tn[i][s]}let K,ii=()=>Date.now(),ci="system",Bn=null,Ce=null,Qe=null,Ke=60,Ae=null;class oe{static get now(){return ii}static set now(s){ii=s}static set defaultZone(s){ci=s}static get defaultZone(){return Or(ci,nt.instance)}static get defaultLocale(){return Bn}static set defaultLocale(s){Bn=s}static get defaultNumberingSystem(){return Ce}static set defaultNumberingSystem(s){Ce=s}static get defaultOutputCalendar(){return Qe}static set defaultOutputCalendar(s){Qe=s}static get defaultWeekSettings(){return Ae}static set defaultWeekSettings(s){Ae=jo(s)}static get twoDigitCutoffYear(){return Ke}static set twoDigitCutoffYear(s){Ke=s%100}static get throwOnInvalid(){return K}static set throwOnInvalid(s){K=s}static resetCaches(){Mi.resetCache(),en.resetCache(),Ei.resetCache(),function Kn(){Tn={}}()}}class $e{constructor(s,i){this.reason=s,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const vt=[0,31,59,90,120,151,181,212,243,273,304,334],at=[0,31,60,91,121,152,182,213,244,274,305,335];function $t(a,s){return new $e("unit out of range",`you specified ${s} (of type ${typeof s}) as a ${a}, which is invalid`)}function hn(a,s,i){const c=new Date(Date.UTC(a,s-1,i));a<100&&a>=0&&c.setUTCFullYear(c.getUTCFullYear()-1900);const f=c.getUTCDay();return 0===f?7:f}function gn(a,s,i){return i+(Sr(a)?at:vt)[s-1]}function En(a,s){const i=Sr(a)?at:vt,c=i.findIndex(C=>Cjs(c,s,i)?(Fe=c+1,ie=1):Fe=c,{weekYear:Fe,weekNumber:ie,weekday:H,...Xr(a)}}function Hn(a,s=4,i=1){const{weekYear:c,weekNumber:f,weekday:C}=a,M=xn(hn(c,1,s),i),H=Ar(c);let Fe,ie=7*f+C-M-7+s;ie<1?(Fe=c-1,ie+=Ar(Fe)):ie>H?(Fe=c+1,ie-=Ar(c)):Fe=c;const{month:Nt,day:Yt}=En(Fe,ie);return{year:Fe,month:Nt,day:Yt,...Xr(a)}}function ui(a){const{year:s,month:i,day:c}=a;return{year:s,ordinal:gn(s,i,c),...Xr(a)}}function Oi(a){const{year:s,ordinal:i}=a,{month:c,day:f}=En(s,i);return{year:s,month:c,day:f,...Xr(a)}}function ti(a,s){if(Ci(a.localWeekday)&&Ci(a.localWeekNumber)&&Ci(a.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Ci(a.weekday)||!Ci(a.weekNumber)||!Ci(a.weekYear))throw new Se("Cannot mix locale-based week fields with ISO-based week fields");return Ci(a.localWeekday)||(a.weekday=a.localWeekday),Ci(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),Ci(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:s.getMinDaysInFirstWeek(),startOfWeek:s.getStartOfWeek()}}function ho(a){const s=Ko(a.year),i=xr(a.month,1,12),c=xr(a.day,1,Tr(a.year,a.month));return s?i?!c&&$t("day",a.day):$t("month",a.month):$t("year",a.year)}function Lr(a){const{hour:s,minute:i,second:c,millisecond:f}=a,C=xr(s,0,23)||24===s&&0===i&&0===c&&0===f,M=xr(i,0,59),H=xr(c,0,59),ie=xr(f,0,999);return C?M?H?!ie&&$t("millisecond",f):$t("second",c):$t("minute",i):$t("hour",s)}function Ci(a){return typeof a>"u"}function Br(a){return"number"==typeof a}function Ko(a){return"number"==typeof a&&a%1==0}function es(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function io(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ga(a,s,i){if(0!==a.length)return a.reduce((c,f)=>{const C=[s(f),f];return c&&i(c[0],C[0])===c[0]?c:C},null)[1]}function vo(a,s){return Object.prototype.hasOwnProperty.call(a,s)}function jo(a){if(null==a)return null;if("object"!=typeof a)throw new Ne("Week settings must be an object");if(!xr(a.firstDay,1,7)||!xr(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(s=>!xr(s,1,7)))throw new Ne("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function xr(a,s,i){return Ko(a)&&a>=s&&a<=i}function hr(a,s=2){let c;return c=a<0?"-"+(""+-a).padStart(s,"0"):(""+a).padStart(s,"0"),c}function ts(a){if(!Ci(a)&&null!==a&&""!==a)return parseInt(a,10)}function Jr(a){if(!Ci(a)&&null!==a&&""!==a)return parseFloat(a)}function Ii(a){if(!Ci(a)&&null!==a&&""!==a){const s=1e3*parseFloat("0."+a);return Math.floor(s)}}function ns(a,s,i=!1){const c=10**s;return(i?Math.trunc:Math.round)(a*c)/c}function Sr(a){return a%4==0&&(a%100!=0||a%400==0)}function Ar(a){return Sr(a)?366:365}function Tr(a,s){const i=function Us(a,s){return a-s*Math.floor(a/s)}(s-1,12)+1;return 2===i?Sr(a+(s-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vs(a){let s=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(s=new Date(s),s.setUTCFullYear(a.year,a.month-1,a.day)),+s}function xi(a,s,i){return-xn(hn(a,1,s),i)+s-1}function js(a,s=4,i=1){const c=xi(a,s,i),f=xi(a+1,s,i);return(Ar(a)-c+f)/7}function Vr(a){return a>99?a:a>oe.twoDigitCutoffYear?1900+a:2e3+a}function Ho(a,s,i,c=null){const f=new Date(a),C={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};c&&(C.timeZone=c);const M={timeZoneName:s,...C},H=new Intl.DateTimeFormat(i,M).formatToParts(f).find(ie=>"timezonename"===ie.type.toLowerCase());return H?H.value:null}function $o(a,s){let i=parseInt(a,10);Number.isNaN(i)&&(i=0);const c=parseInt(s,10)||0;return 60*i+(i<0||Object.is(i,-0)?-c:c)}function va(a){const s=Number(a);if("boolean"==typeof a||""===a||Number.isNaN(s))throw new Ne(`Invalid unit value ${a}`);return s}function ws(a,s){const i={};for(const c in a)if(vo(a,c)){const f=a[c];if(null==f)continue;i[s(c)]=va(f)}return i}function Hs(a,s){const i=Math.trunc(Math.abs(a/60)),c=Math.trunc(Math.abs(a%60)),f=a>=0?"+":"-";switch(s){case"short":return`${f}${hr(i,2)}:${hr(c,2)}`;case"narrow":return`${f}${i}${c>0?`:${c}`:""}`;case"techie":return`${f}${hr(i,2)}${hr(c,2)}`;default:throw new RangeError(`Value format ${s} is out of range for property format`)}}function Xr(a){return function Kl(a,s){return s.reduce((i,c)=>(i[c]=a[c],i),{})}(a,["hour","minute","second","millisecond"])}const gr=["January","February","March","April","May","June","July","August","September","October","November","December"],Xo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ro=["J","F","M","A","M","J","J","A","S","O","N","D"];function oa(a){switch(a){case"narrow":return[...ro];case"short":return[...Xo];case"long":return[...gr];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}}const Er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],oo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],jr=["M","T","W","T","F","S","S"];function xo(a){switch(a){case"narrow":return[...jr];case"short":return[...oo];case"long":return[...Er];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ir=["AM","PM"],Yo=["Before Christ","Anno Domini"],Eo=["BC","AD"],Es=["B","A"];function sa(a){switch(a){case"narrow":return[...Es];case"short":return[...Eo];case"long":return[...Yo];default:return null}}function sr(a,s){let i="";for(const c of a)i+=c.literal?c.val:s(c.val);return i}const is={D:we,DD:Oe,DDD:We,DDDD:Pe,t:xt,tt:xe,ttt:ut,tttt:Rt,T:wt,TT:mn,TTT:ni,TTTT:Zt,f:_e,ff:Ge,fff:Q,ffff:N,F:Je,FF:dt,FFF:T,FFFF:$};class ao{static create(s,i={}){return new ao(s,i)}static parseFormat(s){let i=null,c="",f=!1;const C=[];for(let M=0;M0&&C.push({literal:f||/^\s+$/.test(c),val:c}),i=null,c="",f=!f):f||H===i?c+=H:(c.length>0&&C.push({literal:/^\s+$/.test(c),val:c}),c=H,i=H)}return c.length>0&&C.push({literal:f||/^\s+$/.test(c),val:c}),C}static macroTokenToFormatOpts(s){return is[s]}constructor(s,i){this.opts=i,this.loc=s,this.systemLoc=null}formatWithSystemDefault(s,i){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(s,{...this.opts,...i}).format()}dtFormatter(s,i={}){return this.loc.dtFormatter(s,{...this.opts,...i})}formatDateTime(s,i){return this.dtFormatter(s,i).format()}formatDateTimeParts(s,i){return this.dtFormatter(s,i).formatToParts()}formatInterval(s,i){return this.dtFormatter(s.start,i).dtf.formatRange(s.start.toJSDate(),s.end.toJSDate())}resolvedOptions(s,i){return this.dtFormatter(s,i).resolvedOptions()}num(s,i=0){if(this.opts.forceSimple)return hr(s,i);const c={...this.opts};return i>0&&(c.padTo=i),this.loc.numberFormatter(c).format(s)}formatDateTimeFromString(s,i){const c="en"===this.loc.listingMode(),f=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,C=(wn,Dn)=>this.loc.extract(s,wn,Dn),M=wn=>s.isOffsetFixed&&0===s.offset&&wn.allowZ?"Z":s.isValid?s.zone.formatOffset(s.ts,wn.format):"",ie=(wn,Dn)=>c?function Fo(a,s){return oa(s)[a.month-1]}(s,wn):C(Dn?{month:wn}:{month:wn,day:"numeric"},"month"),Fe=(wn,Dn)=>c?function aa(a,s){return xo(s)[a.weekday-1]}(s,wn):C(Dn?{weekday:wn}:{weekday:wn,month:"long",day:"numeric"},"weekday"),Nt=wn=>{const Dn=ao.macroTokenToFormatOpts(wn);return Dn?this.formatWithSystemDefault(s,Dn):wn},Yt=wn=>c?function Xa(a,s){return sa(s)[a.year<0?0:1]}(s,wn):C({era:wn},"era");return sr(ao.parseFormat(i),wn=>{switch(wn){case"S":return this.num(s.millisecond);case"u":case"SSS":return this.num(s.millisecond,3);case"s":return this.num(s.second);case"ss":return this.num(s.second,2);case"uu":return this.num(Math.floor(s.millisecond/10),2);case"uuu":return this.num(Math.floor(s.millisecond/100));case"m":return this.num(s.minute);case"mm":return this.num(s.minute,2);case"h":return this.num(s.hour%12==0?12:s.hour%12);case"hh":return this.num(s.hour%12==0?12:s.hour%12,2);case"H":return this.num(s.hour);case"HH":return this.num(s.hour,2);case"Z":return M({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return M({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return M({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return s.zone.offsetName(s.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return s.zone.offsetName(s.ts,{format:"long",locale:this.loc.locale});case"z":return s.zoneName;case"a":return c?function so(a){return Ir[a.hour<12?0:1]}(s):C({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return f?C({day:"numeric"},"day"):this.num(s.day);case"dd":return f?C({day:"2-digit"},"day"):this.num(s.day,2);case"c":case"E":return this.num(s.weekday);case"ccc":return Fe("short",!0);case"cccc":return Fe("long",!0);case"ccccc":return Fe("narrow",!0);case"EEE":return Fe("short",!1);case"EEEE":return Fe("long",!1);case"EEEEE":return Fe("narrow",!1);case"L":return f?C({month:"numeric",day:"numeric"},"month"):this.num(s.month);case"LL":return f?C({month:"2-digit",day:"numeric"},"month"):this.num(s.month,2);case"LLL":return ie("short",!0);case"LLLL":return ie("long",!0);case"LLLLL":return ie("narrow",!0);case"M":return f?C({month:"numeric"},"month"):this.num(s.month);case"MM":return f?C({month:"2-digit"},"month"):this.num(s.month,2);case"MMM":return ie("short",!1);case"MMMM":return ie("long",!1);case"MMMMM":return ie("narrow",!1);case"y":return f?C({year:"numeric"},"year"):this.num(s.year);case"yy":return f?C({year:"2-digit"},"year"):this.num(s.year.toString().slice(-2),2);case"yyyy":return f?C({year:"numeric"},"year"):this.num(s.year,4);case"yyyyyy":return f?C({year:"numeric"},"year"):this.num(s.year,6);case"G":return Yt("short");case"GG":return Yt("long");case"GGGGG":return Yt("narrow");case"kk":return this.num(s.weekYear.toString().slice(-2),2);case"kkkk":return this.num(s.weekYear,4);case"W":return this.num(s.weekNumber);case"WW":return this.num(s.weekNumber,2);case"n":return this.num(s.localWeekNumber);case"nn":return this.num(s.localWeekNumber,2);case"ii":return this.num(s.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(s.localWeekYear,4);case"o":return this.num(s.ordinal);case"ooo":return this.num(s.ordinal,3);case"q":return this.num(s.quarter);case"qq":return this.num(s.quarter,2);case"X":return this.num(Math.floor(s.ts/1e3));case"x":return this.num(s.ts);default:return Nt(wn)}})}formatDurationFromString(s,i){const c=ie=>{switch(ie[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}},C=ao.parseFormat(i),M=C.reduce((ie,{literal:Fe,val:Nt})=>Fe?ie:ie.concat(Nt),[]);return sr(C,(ie=>Fe=>{const Nt=c(Fe);return Nt?this.num(ie.get(Nt),Fe.length):Fe})(s.shiftTo(...M.map(c).filter(ie=>ie))))}}const rs=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qr(...a){const s=a.reduce((i,c)=>i+c.source,"");return RegExp(`^${s}$`)}function $s(...a){return s=>a.reduce(([i,c,f],C)=>{const[M,H,ie]=C(s,f);return[{...i,...M},H||c,ie]},[{},null,1]).slice(0,2)}function Oo(a,...s){if(null==a)return[null,null];for(const[i,c]of s){const f=i.exec(a);if(f)return c(f)}return[null,null]}function fo(...a){return(s,i)=>{const c={};let f;for(f=0;fvoid 0!==wn&&(Dn||wn&&Nt)?-wn:wn;return[{years:jn(Jr(i)),months:jn(Jr(c)),weeks:jn(Jr(f)),days:jn(Jr(C)),hours:jn(Jr(M)),minutes:jn(Jr(H)),seconds:jn(Jr(ie),"-0"===ie),milliseconds:jn(Ii(Fe),Yt)}]}const wa={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xs(a,s,i,c,f,C,M){const H={year:2===s.length?Vr(ts(s)):ts(s),month:Xo.indexOf(i)+1,day:ts(c),hour:ts(f),minute:ts(C)};return M&&(H.second=ts(M)),a&&(H.weekday=a.length>3?Er.indexOf(a)+1:oo.indexOf(a)+1),H}const nr=/^(?:(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 Ea(a){const[,s,i,c,f,C,M,H,ie,Fe,Nt,Yt]=a,jn=xs(s,f,c,i,C,M,H);let wn;return wn=ie?wa[ie]:Fe?0:$o(Nt,Yt),[jn,new bi(wn)]}const zs=/^(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$/,nu=/^(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$/,Xl=/^(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 zi(a){const[,s,i,c,f,C,M,H]=a;return[xs(s,f,c,i,C,M,H),bi.utcInstance]}function po(a){const[,s,i,c,f,C,M,H]=a;return[xs(s,H,i,c,f,C,M),bi.utcInstance]}const Ni=qr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Os),Ro=qr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Os),_o=qr(/(\d{4})-?(\d{3})/,Os),Na=qr(Ra),la=$s(function Ct(a,s){return[{year:ge(a,s),month:ge(a,s+1,1),day:ge(a,s+2,1)},null,s+3]},gi,Yi,zo),Lo=$s(_r,gi,Yi,zo),dl=$s(Ao,gi,Yi,zo),ca=$s(gi,Yi,zo),fl=$s(gi),ml=qr(/(\d{4})-(\d\d)-(\d\d)/,k),Tl=qr(Y),Ss=$s(gi,Yi,zo),Da="Invalid Duration",as={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ql={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...as},Yr=365.2425,ko=30.436875,iu={years:{quarters:4,months:12,weeks:Yr/7,days:Yr,hours:24*Yr,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Yr/28,days:Yr/4,hours:24*Yr/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:ko/7,days:ko,hours:24*ko,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...as},To=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ua=To.slice(0).reverse();function Mr(a,s,i=!1){const c={values:i?s.values:{...a.values,...s.values||{}},loc:a.loc.clone(s.loc),conversionAccuracy:s.conversionAccuracy||a.conversionAccuracy,matrix:s.matrix||a.matrix};return new fr(c)}function Pa(a,s){let i=s.milliseconds??0;for(const c of ua.slice(1))s[c]&&(i+=s[c]*a[c].milliseconds);return i}function da(a,s){const i=Pa(a,s)<0?-1:1;To.reduceRight((c,f)=>{if(Ci(s[f]))return c;if(c){const M=a[f][c],H=Math.floor(s[c]*i/M);s[f]+=H*i,s[c]-=H*M*i}return f},null),To.reduce((c,f)=>{if(Ci(s[f]))return c;if(c){const C=s[c]%1;s[c]-=C,s[f]+=C*a[c][f]}return f},null)}class fr{constructor(s){const i="longterm"===s.conversionAccuracy||!1;let c=i?iu:Ql;s.matrix&&(c=s.matrix),this.values=s.values,this.loc=s.loc||Mi.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=s.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(s,i){return fr.fromObject({milliseconds:s},i)}static fromObject(s,i={}){if(null==s||"object"!=typeof s)throw new Ne("Duration.fromObject: argument expected to be an object, got "+(null===s?"null":typeof s));return new fr({values:ws(s,fr.normalizeUnit),loc:Mi.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(s){if(Br(s))return fr.fromMillis(s);if(fr.isDuration(s))return s;if("object"==typeof s)return fr.fromObject(s);throw new Ne(`Unknown duration argument ${s} of type ${typeof s}`)}static fromISO(s,i){const[c]=function Yl(a){return Oo(a,[Ds,ba])}(s);return c?fr.fromObject(c,i):fr.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static fromISOTime(s,i){const[c]=function pl(a){return Oo(a,[ya,fl])}(s);return c?fr.fromObject(c,i):fr.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the Duration is invalid");const c=s instanceof $e?s:new $e(s,i);if(oe.throwOnInvalid)throw new J(c);return new fr({invalid:c})}static normalizeUnit(s){const i={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"}[s&&s.toLowerCase()];if(!i)throw new gt(s);return i}static isDuration(s){return s&&s.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(s,i={}){const c={...i,floor:!1!==i.round&&!1!==i.floor};return this.isValid?ao.create(this.loc,c).formatDurationFromString(this,s):Da}toHuman(s={}){if(!this.isValid)return Da;const i=To.map(c=>{const f=this.values[c];return Ci(f)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...s,unit:c.slice(0,-1)}).format(f)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:s.listStyle||"narrow",...s}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s="P";return 0!==this.years&&(s+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(s+=this.months+3*this.quarters+"M"),0!==this.weeks&&(s+=this.weeks+"W"),0!==this.days&&(s+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(s+="T"),0!==this.hours&&(s+=this.hours+"H"),0!==this.minutes&&(s+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(s+=ns(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===s&&(s+="T0S"),s}toISOTime(s={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(s={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...s,includeOffset:!1},Ei.fromMillis(i,{zone:"UTC"}).toISOTime(s))}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?Pa(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(s){if(!this.isValid)return this;const i=fr.fromDurationLike(s),c={};for(const f of To)(vo(i.values,f)||vo(this.values,f))&&(c[f]=i.get(f)+this.get(f));return Mr(this,{values:c},!0)}minus(s){if(!this.isValid)return this;const i=fr.fromDurationLike(s);return this.plus(i.negate())}mapUnits(s){if(!this.isValid)return this;const i={};for(const c of Object.keys(this.values))i[c]=va(s(this.values[c],c));return Mr(this,{values:i},!0)}get(s){return this[fr.normalizeUnit(s)]}set(s){return this.isValid?Mr(this,{values:{...this.values,...ws(s,fr.normalizeUnit)}}):this}reconfigure({locale:s,numberingSystem:i,conversionAccuracy:c,matrix:f}={}){return Mr(this,{loc:this.loc.clone({locale:s,numberingSystem:i}),matrix:f,conversionAccuracy:c})}as(s){return this.isValid?this.shiftTo(s).get(s):NaN}normalize(){if(!this.isValid)return this;const s=this.toObject();return da(this.matrix,s),Mr(this,{values:s},!0)}rescale(){return this.isValid?Mr(this,{values:function ls(a){const s={};for(const[i,c]of Object.entries(a))0!==c&&(s[i]=c);return s}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...s){if(!this.isValid)return this;if(0===s.length)return this;s=s.map(M=>fr.normalizeUnit(M));const i={},c={},f=this.toObject();let C;for(const M of To)if(s.indexOf(M)>=0){C=M;let H=0;for(const Fe in c)H+=this.matrix[Fe][M]*c[Fe],c[Fe]=0;Br(f[M])&&(H+=f[M]);const ie=Math.trunc(H);i[M]=ie,c[M]=(1e3*H-1e3*ie)/1e3}else Br(f[M])&&(c[M]=f[M]);for(const M in c)0!==c[M]&&(i[C]+=M===C?c[M]:c[M]/this.matrix[C][M]);return da(this.matrix,i),Mr(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const s={};for(const i of Object.keys(this.values))s[i]=0===this.values[i]?0:-this.values[i];return Mr(this,{values:s},!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 null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(s){if(!this.isValid||!s.isValid||!this.loc.equals(s.loc))return!1;function i(c,f){return void 0===c||0===c?void 0===f||0===f:c===f}for(const c of To)if(!i(this.values[c],s.values[c]))return!1;return!0}}const As="Invalid Interval";class Hr{constructor(s){this.s=s.start,this.e=s.end,this.invalid=s.invalid||null,this.isLuxonInterval=!0}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the Interval is invalid");const c=s instanceof $e?s:new $e(s,i);if(oe.throwOnInvalid)throw new Ee(c);return new Hr({invalid:c})}static fromDateTimes(s,i){const c=Zr(s),f=Zr(i),C=function Ws(a,s){return a&&a.isValid?s&&s.isValid?ss}isBefore(s){return!!this.isValid&&this.e<=s}contains(s){return!!this.isValid&&this.s<=s&&this.e>s}set({start:s,end:i}={}){return this.isValid?Hr.fromDateTimes(s||this.s,i||this.e):this}splitAt(...s){if(!this.isValid)return[];const i=s.map(Zr).filter(M=>this.contains(M)).sort((M,H)=>M.toMillis()-H.toMillis()),c=[];let{s:f}=this,C=0;for(;f+this.e?this.e:M;c.push(Hr.fromDateTimes(f,H)),f=H,C+=1}return c}splitBy(s){const i=fr.fromDurationLike(s);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];let C,{s:c}=this,f=1;const M=[];for(;cie*f));C=+H>+this.e?this.e:H,M.push(Hr.fromDateTimes(c,C)),c=C,f+=1}return M}divideEqually(s){return this.isValid?this.splitBy(this.length()/s).slice(0,s):[]}overlaps(s){return this.e>s.s&&this.s=s.e}equals(s){return!(!this.isValid||!s.isValid)&&this.s.equals(s.s)&&this.e.equals(s.e)}intersection(s){if(!this.isValid)return this;const i=this.s>s.s?this.s:s.s,c=this.e=c?null:Hr.fromDateTimes(i,c)}union(s){return this.isValid?Hr.fromDateTimes(this.ss.e?this.e:s.e):this}static merge(s){const[i,c]=s.sort((f,C)=>f.s-C.s).reduce(([f,C],M)=>C?C.overlaps(M)||C.abutsStart(M)?[f,C.union(M)]:[f.concat([C]),M]:[f,M],[[],null]);return c&&i.push(c),i}static xor(s){let i=null,c=0;const f=[],C=s.map(ie=>[{time:ie.s,type:"s"},{time:ie.e,type:"e"}]),H=Array.prototype.concat(...C).sort((ie,Fe)=>ie.time-Fe.time);for(const ie of H)c+="s"===ie.type?1:-1,1===c?i=ie.time:(i&&+i!=+ie.time&&f.push(Hr.fromDateTimes(i,ie.time)),i=null);return Hr.merge(f)}difference(...s){return Hr.xor([this].concat(s)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:As}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(s=we,i={}){return this.isValid?ao.create(this.s.loc.clone(i),s).formatInterval(this):As}toISO(s){return this.isValid?`${this.s.toISO(s)}/${this.e.toISO(s)}`:As}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:As}toISOTime(s){return this.isValid?`${this.s.toISOTime(s)}/${this.e.toISOTime(s)}`:As}toFormat(s,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(s)}${i}${this.e.toFormat(s)}`:As}toDuration(s,i){return this.isValid?this.e.diff(this.s,s,i):fr.invalid(this.invalidReason)}mapEndpoints(s){return Hr.fromDateTimes(s(this.s),s(this.e))}}class Gs{static hasDST(s=oe.defaultZone){const i=Ei.now().setZone(s).set({month:12});return!s.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(s){return en.isValidZone(s)}static normalizeZone(s){return Or(s,oe.defaultZone)}static getStartOfWeek({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getWeekendDays().slice()}static months(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null,outputCalendar:C="gregory"}={}){return(f||Mi.create(i,c,C)).months(s)}static monthsFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null,outputCalendar:C="gregory"}={}){return(f||Mi.create(i,c,C)).months(s,!0)}static weekdays(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null}={}){return(f||Mi.create(i,c,null)).weekdays(s)}static weekdaysFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null}={}){return(f||Mi.create(i,c,null)).weekdays(s,!0)}static meridiems({locale:s=null}={}){return Mi.create(s).meridiems()}static eras(s="short",{locale:i=null}={}){return Mi.create(i,null,"gregory").eras(s)}static features(){return{relative:es(),localeWeek:io()}}}function Ya(a,s){const i=f=>f.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),c=i(s)-i(a);return Math.floor(fr.fromMillis(c).as("days"))}function Qi(a,s=i=>i){return{regex:a,deser:([i])=>s(function bn(a){let s=parseInt(a,10);if(isNaN(s)){s="";for(let i=0;i=C&&c<=M&&(s+=c-C)}}return parseInt(s,10)}return s}(i))}}const gl="[ \xa0]",S=new RegExp(gl,"g");function ne(a){return a.replace(/\./g,"\\.?").replace(S,gl)}function p(a){return a.replace(/\./g,"").replace(S," ").toLowerCase()}function _(a,s){return null===a?null:{regex:RegExp(a.map(ne).join("|")),deser:([i])=>a.findIndex(c=>p(i)===p(c))+s}}function x(a,s){return{regex:a,deser:([,i,c])=>$o(i,c),groups:s}}function X(a){return{regex:a,deser:([s])=>s}}function ce(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const yt={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"}};let St=null;function kn(a,s){return Array.prototype.concat(...a.map(i=>function cn(a,s){if(a.literal)return a;const c=Qn(ao.macroTokenToFormatOpts(a.val),s);return null==c||c.includes(void 0)?a:c}(i,s)))}class fn{constructor(s,i){if(this.locale=s,this.format=i,this.tokens=kn(ao.parseFormat(i),s),this.units=this.tokens.map(c=>function ze(a,s){const i=zn(s),c=zn(s,"{2}"),f=zn(s,"{3}"),C=zn(s,"{4}"),M=zn(s,"{6}"),H=zn(s,"{1,2}"),ie=zn(s,"{1,3}"),Fe=zn(s,"{1,6}"),Nt=zn(s,"{1,9}"),Yt=zn(s,"{2,4}"),jn=zn(s,"{4,6}"),wn=Fi=>({regex:RegExp(ce(Fi.val)),deser:([Ui])=>Ui,literal:!0}),pi=(Fi=>{if(a.literal)return wn(Fi);switch(Fi.val){case"G":return _(s.eras("short"),0);case"GG":return _(s.eras("long"),0);case"y":return Qi(Fe);case"yy":case"kk":return Qi(Yt,Vr);case"yyyy":case"kkkk":return Qi(C);case"yyyyy":return Qi(jn);case"yyyyyy":return Qi(M);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Qi(H);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Qi(c);case"MMM":return _(s.months("short",!0),1);case"MMMM":return _(s.months("long",!0),1);case"LLL":return _(s.months("short",!1),1);case"LLLL":return _(s.months("long",!1),1);case"o":case"S":return Qi(ie);case"ooo":case"SSS":return Qi(f);case"u":return X(Nt);case"uu":return X(H);case"uuu":case"E":case"c":return Qi(i);case"a":return _(s.meridiems(),0);case"EEE":return _(s.weekdays("short",!1),1);case"EEEE":return _(s.weekdays("long",!1),1);case"ccc":return _(s.weekdays("short",!0),1);case"cccc":return _(s.weekdays("long",!0),1);case"Z":case"ZZ":return x(new RegExp(`([+-]${H.source})(?::(${c.source}))?`),2);case"ZZZ":return x(new RegExp(`([+-]${H.source})(${c.source})?`),2);case"z":return X(/[a-z_+-/]{1,256}?/i);case" ":return X(/[^\S\n\r]/);default:return wn(Fi)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return pi.token=a,pi}(c,s)),this.disqualifyingUnit=this.units.find(c=>c.invalidReason),!this.disqualifyingUnit){const[c,f]=function Pt(a){return[`^${a.map(i=>i.regex).reduce((i,c)=>`${i}(${c.source})`,"")}$`,a]}(this.units);this.regex=RegExp(c,"i"),this.handlers=f}}explainFromTokens(s){if(this.isValid){const[i,c]=function Wt(a,s,i){const c=a.match(s);if(c){const f={};let C=1;for(const M in i)if(vo(i,M)){const H=i[M],ie=H.groups?H.groups+1:1;!H.literal&&H.token&&(f[H.token.val[0]]=H.deser(c.slice(C,C+ie))),C+=ie}return[c,f]}return[c,{}]}(s,this.regex,this.handlers),[f,C,M]=c?function pn(a){let c,i=null;return Ci(a.z)||(i=en.create(a.z)),Ci(a.Z)||(i||(i=new bi(a.Z)),c=a.Z),Ci(a.q)||(a.M=3*(a.q-1)+1),Ci(a.h)||(a.h<12&&1===a.a?a.h+=12:12===a.h&&0===a.a&&(a.h=0)),0===a.G&&a.y&&(a.y=-a.y),Ci(a.u)||(a.S=Ii(a.u)),[Object.keys(a).reduce((C,M)=>{const H=(C=>{switch(C){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}})(M);return H&&(C[H]=a[M]),C},{}),i,c]}(c):[null,null,void 0];if(vo(c,"a")&&vo(c,"H"))throw new Se("Can't include meridiem when specifying 24-hour format");return{input:s,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:c,result:f,zone:C,specificOffset:M}}return{input:s,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Mn(a,s,i){return new fn(a,i).explainFromTokens(s)}function Qn(a,s){if(!a)return null;const c=ao.create(s,a).dtFormatter(function Ht(){return St||(St=Ei.fromMillis(1555555555555)),St}()),f=c.formatToParts(),C=c.resolvedOptions();return f.map(M=>function Dt(a,s,i){const{type:c,value:f}=a;if("literal"===c){const ie=/^\s+$/.test(f);return{literal:!ie,val:ie?" ":f}}let M=c;"hour"===c&&(M=null!=s.hour12?s.hour12?"hour12":"hour24":null!=s.hourCycle?"h11"===s.hourCycle||"h12"===s.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let H=yt[M];if("object"==typeof H&&(H=H[s[c]]),H)return{literal:!1,val:H}}(M,a,C))}const An="Invalid DateTime",ri=864e13;function hi(a){return new $e("unsupported zone",`the zone "${a.name}" is not supported`)}function Rn(a){return null===a.weekData&&(a.weekData=Vn(a.c)),a.weekData}function ki(a){return null===a.localWeekData&&(a.localWeekData=Vn(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Ai(a,s){const i={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new Ei({...i,...s,old:i})}function ar(a,s,i){let c=a-60*s*1e3;const f=i.offset(c);if(s===f)return[c,s];c-=60*(f-s)*1e3;const C=i.offset(c);return f===C?[c,f]:[a-60*Math.min(f,C)*1e3,Math.max(f,C)]}function Ri(a,s){const i=new Date(a+=60*s*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function rr(a,s,i){return ar(Vs(a),s,i)}function Qr(a,s){const i=a.o,c=a.c.year+Math.trunc(s.years),f=a.c.month+Math.trunc(s.months)+3*Math.trunc(s.quarters),C={...a.c,year:c,month:f,day:Math.min(a.c.day,Tr(c,f))+Math.trunc(s.days)+7*Math.trunc(s.weeks)},M=fr.fromObject({years:s.years-Math.trunc(s.years),quarters:s.quarters-Math.trunc(s.quarters),months:s.months-Math.trunc(s.months),weeks:s.weeks-Math.trunc(s.weeks),days:s.days-Math.trunc(s.days),hours:s.hours,minutes:s.minutes,seconds:s.seconds,milliseconds:s.milliseconds}).as("milliseconds"),H=Vs(C);let[ie,Fe]=ar(H,i,a.zone);return 0!==M&&(ie+=M,Fe=a.zone.offset(ie)),{ts:ie,o:Fe}}function Cr(a,s,i,c,f,C){const{setZone:M,zone:H}=i;if(a&&0!==Object.keys(a).length||s){const ie=s||H,Fe=Ei.fromObject(a,{...i,zone:ie,specificOffset:C});return M?Fe:Fe.setZone(H)}return Ei.invalid(new $e("unparsable",`the input "${f}" can't be parsed as ${c}`))}function Co(a,s,i=!0){return a.isValid?ao.create(Mi.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(a,s):null}function oi(a,s){const i=a.c.year>9999||a.c.year<0;let c="";return i&&a.c.year>=0&&(c+="+"),c+=hr(a.c.year,i?6:4),s?(c+="-",c+=hr(a.c.month),c+="-",c+=hr(a.c.day)):(c+=hr(a.c.month),c+=hr(a.c.day)),c}function Yn(a,s,i,c,f,C){let M=hr(a.c.hour);return s?(M+=":",M+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(M+=":")):M+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(M+=hr(a.c.second),(0!==a.c.millisecond||!c)&&(M+=".",M+=hr(a.c.millisecond,3))),f&&(a.isOffsetFixed&&0===a.offset&&!C?M+="Z":a.o<0?(M+="-",M+=hr(Math.trunc(-a.o/60)),M+=":",M+=hr(Math.trunc(-a.o%60))):(M+="+",M+=hr(Math.trunc(a.o/60)),M+=":",M+=hr(Math.trunc(a.o%60)))),C&&(M+="["+a.zone.ianaName+"]"),M}const ir={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},eo=["year","month","day","hour","minute","second","millisecond"],Io=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mo=["year","ordinal","hour","minute","second","millisecond"];function Zo(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function Xs(a){const s={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"}[a.toLowerCase()];if(!s)throw new gt(a);return s}(a)}}function vi(a,s){const i=Or(s.zone,oe.defaultZone);if(!i.isValid)return Ei.invalid(hi(i));const c=Mi.fromObject(s);let f,C;if(Ci(a.year))f=oe.now();else{for(const ie of eo)Ci(a[ie])&&(a[ie]=ir[ie]);const M=ho(a)||Lr(a);if(M)return Ei.invalid(M);const H=function zr(a){return Uo[a]||(void 0===Ts&&(Ts=oe.now()),Uo[a]=a.offset(Ts)),Uo[a]}(i);[f,C]=rr(a,H,i)}return new Ei({ts:f,zone:i,loc:c,o:C})}function kr(a,s,i){const c=!!Ci(i.round)||i.round,f=(M,H)=>(M=ns(M,c||i.calendary?0:2,!0),s.loc.clone(i).relFormatter(i).format(M,H)),C=M=>i.calendary?s.hasSame(a,M)?0:s.startOf(M).diff(a.startOf(M),M).get(M):s.diff(a,M).get(M);if(i.unit)return f(C(i.unit),i.unit);for(const M of i.units){const H=C(M);if(Math.abs(H)>=1)return f(H,M)}return f(a>s?-0:0,i.units[i.units.length-1])}function to(a){let i,s={};return a.length>0&&"object"==typeof a[a.length-1]?(s=a[a.length-1],i=Array.from(a).slice(0,a.length-1)):i=Array.from(a),[s,i]}let Ts,Uo={};class Ei{constructor(s){const i=s.zone||oe.defaultZone;let c=s.invalid||(Number.isNaN(s.ts)?new $e("invalid input"):null)||(i.isValid?null:hi(i));this.ts=Ci(s.ts)?oe.now():s.ts;let f=null,C=null;if(!c)if(s.old&&s.old.ts===this.ts&&s.old.zone.equals(i))[f,C]=[s.old.c,s.old.o];else{const H=Br(s.o)&&!s.old?s.o:i.offset(this.ts);f=Ri(this.ts,H),c=Number.isNaN(f.year)?new $e("invalid input"):null,f=c?null:f,C=c?null:H}this._zone=i,this.loc=s.loc||Mi.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=f,this.o=C,this.isLuxonDateTime=!0}static now(){return new Ei({})}static local(){const[s,i]=to(arguments),[c,f,C,M,H,ie,Fe]=i;return vi({year:c,month:f,day:C,hour:M,minute:H,second:ie,millisecond:Fe},s)}static utc(){const[s,i]=to(arguments),[c,f,C,M,H,ie,Fe]=i;return s.zone=bi.utcInstance,vi({year:c,month:f,day:C,hour:M,minute:H,second:ie,millisecond:Fe},s)}static fromJSDate(s,i={}){const c=function Bs(a){return"[object Date]"===Object.prototype.toString.call(a)}(s)?s.valueOf():NaN;if(Number.isNaN(c))return Ei.invalid("invalid input");const f=Or(i.zone,oe.defaultZone);return f.isValid?new Ei({ts:c,zone:f,loc:Mi.fromObject(i)}):Ei.invalid(hi(f))}static fromMillis(s,i={}){if(Br(s))return s<-ri||s>ri?Ei.invalid("Timestamp out of range"):new Ei({ts:s,zone:Or(i.zone,oe.defaultZone),loc:Mi.fromObject(i)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof s} with value ${s}`)}static fromSeconds(s,i={}){if(Br(s))return new Ei({ts:1e3*s,zone:Or(i.zone,oe.defaultZone),loc:Mi.fromObject(i)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(s,i={}){s=s||{};const c=Or(i.zone,oe.defaultZone);if(!c.isValid)return Ei.invalid(hi(c));const f=Mi.fromObject(i),C=ws(s,Zo),{minDaysInFirstWeek:M,startOfWeek:H}=ti(C,f),ie=oe.now(),Fe=Ci(i.specificOffset)?c.offset(ie):i.specificOffset,Nt=!Ci(C.ordinal),Yt=!Ci(C.year),jn=!Ci(C.month)||!Ci(C.day),wn=Yt||jn,Dn=C.weekYear||C.weekNumber;if((wn||Nt)&&Dn)throw new Se("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(jn&&Nt)throw new Se("Can't mix ordinal dates with month/day");const pi=Dn||C.weekday&&!wn;let Fi,Ui,$i=Ri(ie,Fe);pi?(Fi=Io,Ui=dr,$i=Vn($i,M,H)):Nt?(Fi=mo,Ui=Jn,$i=ui($i)):(Fi=eo,Ui=ir);let no=!1;for(const xl of Fi)Ci(C[xl])?C[xl]=no?Ui[xl]:$i[xl]:no=!0;const go=pi?function Wn(a,s=4,i=1){const c=Ko(a.weekYear),f=xr(a.weekNumber,1,js(a.weekYear,s,i)),C=xr(a.weekday,1,7);return c?f?!C&&$t("weekday",a.weekday):$t("week",a.weekNumber):$t("weekYear",a.weekYear)}(C,M,H):Nt?function Rr(a){const s=Ko(a.year),i=xr(a.ordinal,1,Ar(a.year));return s?!i&&$t("ordinal",a.ordinal):$t("year",a.year)}(C):ho(C),vc=go||Lr(C);if(vc)return Ei.invalid(vc);const sl=pi?Hn(C,M,H):Nt?Oi(C):C,[ia,Ps]=rr(sl,Fe,c),Ia=new Ei({ts:ia,zone:c,o:Ps,loc:f});return C.weekday&&wn&&s.weekday!==Ia.weekday?Ei.invalid("mismatched weekday",`you can't specify both a weekday of ${C.weekday} and a date of ${Ia.toISO()}`):Ia.isValid?Ia:Ei.invalid(Ia.invalid)}static fromISO(s,i={}){const[c,f]=function lo(a){return Oo(a,[Ni,la],[Ro,Lo],[_o,dl],[Na,ca])}(s);return Cr(c,f,i,"ISO 8601",s)}static fromRFC2822(s,i={}){const[c,f]=function hl(a){return Oo(function ss(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(a),[nr,Ea])}(s);return Cr(c,f,i,"RFC 2822",s)}static fromHTTP(s,i={}){const[c,f]=function Al(a){return Oo(a,[zs,zi],[nu,zi],[Xl,po])}(s);return Cr(c,f,i,"HTTP",i)}static fromFormat(s,i,c={}){if(Ci(s)||Ci(i))throw new Ne("fromFormat requires an input string and a format");const{locale:f=null,numberingSystem:C=null}=c,M=Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0}),[H,ie,Fe,Nt]=function Nn(a,s,i){const{result:c,zone:f,specificOffset:C,invalidReason:M}=Mn(a,s,i);return[c,f,C,M]}(M,s,i);return Nt?Ei.invalid(Nt):Cr(H,ie,c,`format ${i}`,s,Fe)}static fromString(s,i,c={}){return Ei.fromFormat(s,i,c)}static fromSQL(s,i={}){const[c,f]=function Ca(a){return Oo(a,[ml,la],[Tl,Ss])}(s);return Cr(c,f,i,"SQL",s)}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the DateTime is invalid");const c=s instanceof $e?s:new $e(s,i);if(oe.throwOnInvalid)throw new mt(c);return new Ei({invalid:c})}static isDateTime(s){return s&&s.isLuxonDateTime||!1}static parseFormatForOpts(s,i={}){const c=Qn(s,Mi.fromObject(i));return c?c.map(f=>f?f.val:null).join(""):null}static expandFormat(s,i={}){return kn(ao.parseFormat(s),Mi.fromObject(i)).map(f=>f.val).join("")}static resetCache(){Ts=void 0,Uo={}}get(s){return this[s]}get isValid(){return null===this.invalid}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?Rn(this).weekYear:NaN}get weekNumber(){return this.isValid?Rn(this).weekNumber:NaN}get weekday(){return this.isValid?Rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ki(this).weekday:NaN}get localWeekNumber(){return this.isValid?ki(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ki(this).weekYear:NaN}get ordinal(){return this.isValid?ui(this.c).ordinal:NaN}get monthShort(){return this.isValid?Gs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Gs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Gs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Gs.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&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const s=864e5,i=6e4,c=Vs(this.c),f=this.zone.offset(c-s),C=this.zone.offset(c+s),M=this.zone.offset(c-f*i),H=this.zone.offset(c-C*i);if(M===H)return[this];const ie=c-M*i,Fe=c-H*i,Nt=Ri(ie,M),Yt=Ri(Fe,H);return Nt.hour===Yt.hour&&Nt.minute===Yt.minute&&Nt.second===Yt.second&&Nt.millisecond===Yt.millisecond?[Ai(this,{ts:ie}),Ai(this,{ts:Fe})]:[this]}get isInLeapYear(){return Sr(this.year)}get daysInMonth(){return Tr(this.year,this.month)}get daysInYear(){return this.isValid?Ar(this.year):NaN}get weeksInWeekYear(){return this.isValid?js(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?js(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(s={}){const{locale:i,numberingSystem:c,calendar:f}=ao.create(this.loc.clone(s),s).resolvedOptions(this);return{locale:i,numberingSystem:c,outputCalendar:f}}toUTC(s=0,i={}){return this.setZone(bi.instance(s),i)}toLocal(){return this.setZone(oe.defaultZone)}setZone(s,{keepLocalTime:i=!1,keepCalendarTime:c=!1}={}){if((s=Or(s,oe.defaultZone)).equals(this.zone))return this;if(s.isValid){let f=this.ts;if(i||c){const C=s.offset(this.ts),M=this.toObject();[f]=rr(M,C,s)}return Ai(this,{ts:f,zone:s})}return Ei.invalid(hi(s))}reconfigure({locale:s,numberingSystem:i,outputCalendar:c}={}){return Ai(this,{loc:this.loc.clone({locale:s,numberingSystem:i,outputCalendar:c})})}setLocale(s){return this.reconfigure({locale:s})}set(s){if(!this.isValid)return this;const i=ws(s,Zo),{minDaysInFirstWeek:c,startOfWeek:f}=ti(i,this.loc),C=!Ci(i.weekYear)||!Ci(i.weekNumber)||!Ci(i.weekday),M=!Ci(i.ordinal),H=!Ci(i.year),ie=!Ci(i.month)||!Ci(i.day);if((H||ie||M)&&(i.weekYear||i.weekNumber))throw new Se("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(ie&&M)throw new Se("Can't mix ordinal dates with month/day");let Yt;C?Yt=Hn({...Vn(this.c,c,f),...i},c,f):Ci(i.ordinal)?(Yt={...this.toObject(),...i},Ci(i.day)&&(Yt.day=Math.min(Tr(Yt.year,Yt.month),Yt.day))):Yt=Oi({...ui(this.c),...i});const[jn,wn]=rr(Yt,this.o,this.zone);return Ai(this,{ts:jn,o:wn})}plus(s){return this.isValid?Ai(this,Qr(this,fr.fromDurationLike(s))):this}minus(s){return this.isValid?Ai(this,Qr(this,fr.fromDurationLike(s).negate())):this}startOf(s,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;const c={},f=fr.normalizeUnit(s);switch(f){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===f)if(i){const C=this.loc.getStartOfWeek(),{weekday:M}=this;Mthis.valueOf(),Fe=function Bo(a,s,i,c){let[f,C,M,H]=function ha(a,s,i){const c=[["years",(ie,Fe)=>Fe.year-ie.year],["quarters",(ie,Fe)=>Fe.quarter-ie.quarter+4*(Fe.year-ie.year)],["months",(ie,Fe)=>Fe.month-ie.month+12*(Fe.year-ie.year)],["weeks",(ie,Fe)=>{const Nt=Ya(ie,Fe);return(Nt-Nt%7)/7}],["days",Ya]],f={},C=a;let M,H;for(const[ie,Fe]of c)i.indexOf(ie)>=0&&(M=ie,f[ie]=Fe(a,s),H=C.plus(f),H>s?(f[ie]--,(a=C.plus(f))>s&&(H=a,f[ie]--,a=C.plus(f))):a=H);return[a,f,H,M]}(a,s,i);const ie=s-f,Fe=i.filter(Yt=>["hours","minutes","seconds","milliseconds"].indexOf(Yt)>=0);0===Fe.length&&(M0?fr.fromMillis(ie,c).shiftTo(...Fe).plus(Nt):Nt}(M?this:s,M?s:this,C,f);return M?Fe.negate():Fe}diffNow(s="milliseconds",i={}){return this.diff(Ei.now(),s,i)}until(s){return this.isValid?Hr.fromDateTimes(this,s):this}hasSame(s,i,c){if(!this.isValid)return!1;const f=s.valueOf(),C=this.setZone(s.zone,{keepLocalTime:!0});return C.startOf(i,c)<=f&&f<=C.endOf(i,c)}equals(s){return this.isValid&&s.isValid&&this.valueOf()===s.valueOf()&&this.zone.equals(s.zone)&&this.loc.equals(s.loc)}toRelative(s={}){if(!this.isValid)return null;const i=s.base||Ei.fromObject({},{zone:this.zone}),c=s.padding?thisi.valueOf(),Math.min)}static max(...s){if(!s.every(Ei.isDateTime))throw new Ne("max requires all arguments be DateTimes");return ga(s,i=>i.valueOf(),Math.max)}static fromFormatExplain(s,i,c={}){const{locale:f=null,numberingSystem:C=null}=c;return Mn(Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0}),s,i)}static fromStringExplain(s,i,c={}){return Ei.fromFormatExplain(s,i,c)}static buildFormatParser(s,i={}){const{locale:c=null,numberingSystem:f=null}=i,C=Mi.fromOpts({locale:c,numberingSystem:f,defaultToEN:!0});return new fn(C,s)}static fromFormatParser(s,i,c={}){if(Ci(s)||Ci(i))throw new Ne("fromFormatParser requires an input string and a format parser");const{locale:f=null,numberingSystem:C=null}=c,M=Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0});if(!M.equals(i.locale))throw new Ne(`fromFormatParser called with a locale of ${M}, but the format parser was created for ${i.locale}`);const{result:H,zone:ie,specificOffset:Fe,invalidReason:Nt}=i.explainFromTokens(s);return Nt?Ei.invalid(Nt):Cr(H,ie,c,`format ${i.format}`,s,Fe)}static get DATE_SHORT(){return we}static get DATE_MED(){return Oe}static get DATE_MED_WITH_WEEKDAY(){return me}static get DATE_FULL(){return We}static get DATE_HUGE(){return Pe}static get TIME_SIMPLE(){return xt}static get TIME_WITH_SECONDS(){return xe}static get TIME_WITH_SHORT_OFFSET(){return ut}static get TIME_WITH_LONG_OFFSET(){return Rt}static get TIME_24_SIMPLE(){return wt}static get TIME_24_WITH_SECONDS(){return mn}static get TIME_24_WITH_SHORT_OFFSET(){return ni}static get TIME_24_WITH_LONG_OFFSET(){return Zt}static get DATETIME_SHORT(){return _e}static get DATETIME_SHORT_WITH_SECONDS(){return Je}static get DATETIME_MED(){return Ge}static get DATETIME_MED_WITH_SECONDS(){return dt}static get DATETIME_MED_WITH_WEEKDAY(){return rn}static get DATETIME_FULL(){return Q}static get DATETIME_FULL_WITH_SECONDS(){return T}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function Zr(a){if(Ei.isDateTime(a))return a;if(a&&a.valueOf&&Br(a.valueOf()))return Ei.fromJSDate(a);if(a&&"object"==typeof a)return Ei.fromObject(a);throw new Ne(`Unknown datetime argument: ${a}, of type ${typeof a}`)}const Ys=new o.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function wc(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Zl=(()=>{class a extends nn.MJ{constructor(i,c){super(),this._useUTC=!!c?.useUtc,this._firstDayOfWeek=c?.firstDayOfWeek||0,this._defaultOutputCalendar=c?.defaultOutputCalendar||"gregory",this.setLocale(i||Ei.local().locale)}getYear(i){return i.year}getMonth(i){return i.month-1}getDate(i){return i.day}getDayOfWeek(i){return i.weekday}getMonthNames(i){return Gs.months(i,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Il(a,s){const i=Array(a);for(let c=0;ci.format(Ei.utc(2017,1,c+1).toJSDate()))}getDayOfWeekNames(i){const c=Gs.weekdays(i,{locale:this.locale});return c.unshift(c.pop()),c}getYearName(i){return i.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(i){return i.daysInMonth}clone(i){return Ei.fromObject(i.toObject(),this._getOptions())}createDate(i,c,f){const C=this._getOptions();if(c<0||c>11)throw Error(`Invalid month index "${c}". Month index has to be between 0 and 11.`);if(f<1)throw Error(`Invalid date "${f}". Date has to be greater than 0.`);const M=this._useUTC?Ei.utc(i,c+1,f,C):Ei.local(i,c+1,f,C);if(!this.isValid(M))throw Error(`Invalid date "${f}". Reason: "${M.invalidReason}".`);return M}today(){const i=this._getOptions();return this._useUTC?Ei.utc(i):Ei.local(i)}parse(i,c){const f=this._getOptions();if("string"==typeof i&&i.length>0){const C=Ei.fromISO(i,f);if(this.isValid(C))return C;const M=Array.isArray(c)?c:[c];if(!c.length)throw Error("Formats array must not be empty.");for(const H of M){const ie=Ei.fromFormat(i,H,f);if(this.isValid(ie))return ie}return this.invalid()}return"number"==typeof i?Ei.fromMillis(i,f):i instanceof Date?Ei.fromJSDate(i,f):i instanceof Ei?Ei.fromMillis(i.toMillis(),f):null}format(i,c){if(!this.isValid(i))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?i.setLocale(this.locale).setZone("utc").toFormat(c):i.setLocale(this.locale).toFormat(c)}addCalendarYears(i,c){return i.reconfigure(this._getOptions()).plus({years:c})}addCalendarMonths(i,c){return i.reconfigure(this._getOptions()).plus({months:c})}addCalendarDays(i,c){return i.reconfigure(this._getOptions()).plus({days:c})}toIso8601(i){return i.toISO()}deserialize(i){const c=this._getOptions();let f;if(i instanceof Date&&(f=Ei.fromJSDate(i,c)),"string"==typeof i){if(!i)return null;f=Ei.fromISO(i,c)}return f&&this.isValid(f)?f:super.deserialize(i)}isDateInstance(i){return i instanceof Ei}isValid(i){return i.isValid}invalid(){return Ei.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(nn.Ju,8),o.KVO(Ys,8))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();var mi=v(9969);function E(a){return new o.wOt(3e3,!1)}function Ua(a){switch(a.length){case 0:return new mi.sf;case 1:return a[0];default:return new mi.ui(a)}}function ku(a,s,i=new Map,c=new Map){const f=[],C=[];let M=-1,H=null;if(s.forEach(ie=>{const Fe=ie.get("offset"),Nt=Fe==M,Yt=Nt&&H||new Map;ie.forEach((jn,wn)=>{let Dn=wn,pi=jn;if("offset"!==wn)switch(Dn=a.normalizePropertyName(Dn,f),pi){case mi.FX:pi=i.get(wn);break;case mi.kp:pi=c.get(wn);break;default:pi=a.normalizeStyleValue(wn,Dn,pi,f)}Yt.set(Dn,pi)}),Nt||C.push(Yt),H=Yt,M=Fe}),f.length)throw function sf(){return new o.wOt(3502,!1)}();return C}function Js(a,s,i,c){switch(s){case"start":a.onStart(()=>c(i&&Nu(i,"start",a)));break;case"done":a.onDone(()=>c(i&&Nu(i,"done",a)));break;case"destroy":a.onDestroy(()=>c(i&&Nu(i,"destroy",a)))}}function Nu(a,s,i){const C=Pu(a.element,a.triggerName,a.fromState,a.toState,s||a.phaseName,i.totalTime??a.totalTime,!!i.disabled),M=a._data;return null!=M&&(C._data=M),C}function Pu(a,s,i,c,f="",C=0,M){return{element:a,triggerName:s,fromState:i,toState:c,phaseName:f,totalTime:C,disabled:!!M}}function qs(a,s,i){let c=a.get(s);return c||a.set(s,c=i),c}function ou(a){const s=a.indexOf(":");return[a.substring(1,s),a.slice(s+1)]}const Wd=typeof document>"u"?null:document.documentElement;function xc(a){const s=a.parentNode||a.host||null;return s===Wd?null:s}let Va=null,Za=!1;function Fu(a,s){for(;s;){if(s===a)return!0;s=xc(s)}return!1}function cf(a,s,i){if(i)return Array.from(a.querySelectorAll(s));const c=a.querySelector(s);return c?[c]:[]}let Lu=(()=>{class a{validateStyleProperty(i){return function Xi(a){Va||(Va=function Kd(){return typeof document<"u"?document.body:null}()||{},Za=!!Va.style&&"WebkitAppearance"in Va.style);let s=!0;return Va.style&&!function Sc(a){return"ebkit"==a.substring(1,6)}(a)&&(s=a in Va.style,!s&&Za&&(s="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in Va.style)),s}(i)}containsElement(i,c){return Fu(i,c)}getParentElement(i){return xc(i)}query(i,c,f){return cf(i,c,f)}computeStyle(i,c,f){return f||""}animate(i,c,f,C,M,H=[],ie){return new mi.sf(f,C)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();class Bu{static{this.NOOP=new Lu}}class Uu{}const Jp=1e3,Xd="ng-enter",Vu="ng-leave",_n="ng-trigger",lr=".ng-trigger",Yd="ng-animating",ju=".ng-animating";function yr(a){if("number"==typeof a)return a;const s=a.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Hu(parseFloat(s[1]),s[2])}function Hu(a,s){return"s"===s?a*Jp:a}function Rl(a,s,i){return a.hasOwnProperty("duration")?a:function ja(a,s,i){let f,C=0,M="";if("string"==typeof a){const H=a.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===H)return s.push(E()),{duration:0,delay:0,easing:""};f=Hu(parseFloat(H[1]),H[2]);const ie=H[3];null!=ie&&(C=Hu(parseFloat(ie),H[4]));const Fe=H[5];Fe&&(M=Fe)}else f=a;if(!i){let H=!1,ie=s.length;f<0&&(s.push(function O(){return new o.wOt(3100,!1)}()),H=!0),C<0&&(s.push(function D(){return new o.wOt(3101,!1)}()),H=!0),H&&s.splice(ie,0,E())}return{duration:f,delay:C,easing:M}}(a,s,i)}function Ha(a,s,i){s.forEach((c,f)=>{const C=Gu(f);i&&!i.has(f)&&i.set(f,a.style[C]),a.style[C]=c})}function Ac(a,s){s.forEach((i,c)=>{const f=Gu(c);a.style[f]=""})}function zu(a){return Array.isArray(a)?1==a.length?a[0]:(0,mi.K2)(a):a}const Wu=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zd(a){let s=[];if("string"==typeof a){let i;for(;i=Wu.exec(a);)s.push(i[1]);Wu.lastIndex=0}return s}function Wo(a,s,i){const c=`${a}`,f=c.replace(Wu,(C,M)=>{let H=s[M];return null==H&&(i.push(function Z(){return new o.wOt(3003,!1)}()),H=""),H.toString()});return f==c?a:f}const _l=/-+([a-z0-9])/g;function Gu(a){return a.replace(_l,(...s)=>s[1].toUpperCase())}function ea(a,s,i){switch(s.type){case mi.If.Trigger:return a.visitTrigger(s,i);case mi.If.State:return a.visitState(s,i);case mi.If.Transition:return a.visitTransition(s,i);case mi.If.Sequence:return a.visitSequence(s,i);case mi.If.Group:return a.visitGroup(s,i);case mi.If.Animate:return a.visitAnimate(s,i);case mi.If.Keyframes:return a.visitKeyframes(s,i);case mi.If.Style:return a.visitStyle(s,i);case mi.If.Reference:return a.visitReference(s,i);case mi.If.AnimateChild:return a.visitAnimateChild(s,i);case mi.If.AnimateRef:return a.visitAnimateRef(s,i);case mi.If.Query:return a.visitQuery(s,i);case mi.If.Stagger:return a.visitStagger(s,i);default:throw function De(){return new o.wOt(3004,!1)}()}}function Ku(a,s){return window.getComputedStyle(a)[s]}const hf=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Xu extends Uu{normalizePropertyName(s,i){return Gu(s)}normalizeStyleValue(s,i,c,f){let C="";const M=c.toString().trim();if(hf.has(i)&&0!==c&&"0"!==c)if("number"==typeof c)C="px";else{const H=c.match(/^[+-]?[\d\.]+([a-z]*)$/);H&&0==H[1].length&&f.push(function ct(){return new o.wOt(3005,!1)}())}return M+C}}const su="*";const Tc=new Set(["true","1"]),Qu=new Set(["false","0"]);function Jo(a,s){const i=Tc.has(a)||Qu.has(a),c=Tc.has(s)||Qu.has(s);return(f,C)=>{let M=a==su||a==f,H=s==su||s==C;return!M&&i&&"boolean"==typeof f&&(M=f?Tc.has(a):Qu.has(a)),!H&&c&&"boolean"==typeof C&&(H=C?Tc.has(s):Qu.has(s)),M&&H}}const co=new RegExp("s*:selfs*,?","g");function Zu(a,s,i,c){return new yf(a).build(s,i,c)}class yf{constructor(s){this._driver=s}build(s,i,c){const f=new wf(i);return this._resetContextStyleTimingState(f),ea(this,zu(s),f)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,i){let c=i.queryCount=0,f=i.depCount=0;const C=[],M=[];return"@"==s.name.charAt(0)&&i.errors.push(function ln(){return new o.wOt(3006,!1)}()),s.definitions.forEach(H=>{if(this._resetContextStyleTimingState(i),H.type==mi.If.State){const ie=H,Fe=ie.name;Fe.toString().split(/\s*,\s*/).forEach(Nt=>{ie.name=Nt,C.push(this.visitState(ie,i))}),ie.name=Fe}else if(H.type==mi.If.Transition){const ie=this.visitTransition(H,i);c+=ie.queryCount,f+=ie.depCount,M.push(ie)}else i.errors.push(function Qt(){return new o.wOt(3007,!1)}())}),{type:mi.If.Trigger,name:s.name,states:C,transitions:M,queryCount:c,depCount:f,options:null}}visitState(s,i){const c=this.visitStyle(s.styles,i),f=s.options&&s.options.params||null;if(c.containsDynamicStyles){const C=new Set,M=f||{};c.styles.forEach(H=>{H instanceof Map&&H.forEach(ie=>{Zd(ie).forEach(Fe=>{M.hasOwnProperty(Fe)||C.add(Fe)})})}),C.size&&i.errors.push(function ei(){return new o.wOt(3008,!1)}(0,C.values()))}return{type:mi.If.State,name:s.name,style:c,options:f?{params:f}:null}}visitTransition(s,i){i.queryCount=0,i.depCount=0;const c=ea(this,zu(s.animation),i),f=function mf(a,s){const i=[];return"string"==typeof a?a.split(/\s*,\s*/).forEach(c=>function gf(a,s,i){if(":"==a[0]){const ie=function vf(a,s){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,c)=>parseFloat(c)>parseFloat(i);case":decrement":return(i,c)=>parseFloat(c) *"}}(a,i);if("function"==typeof ie)return void s.push(ie);a=ie}const c=a.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return i.push(function Rs(){return new o.wOt(3015,!1)}()),s;const f=c[1],C=c[2],M=c[3];s.push(Jo(f,M)),"<"==C[0]&&(f!=su||M!=su)&&s.push(Jo(M,f))}(c,i,s)):i.push(a),i}(s.expr,i.errors);return{type:mi.If.Transition,matchers:f,animation:c,queryCount:i.queryCount,depCount:i.depCount,options:ql(s.options)}}visitSequence(s,i){return{type:mi.If.Sequence,steps:s.steps.map(c=>ea(this,c,i)),options:ql(s.options)}}visitGroup(s,i){const c=i.currentTime;let f=0;const C=s.steps.map(M=>{i.currentTime=c;const H=ea(this,M,i);return f=Math.max(f,i.currentTime),H});return i.currentTime=f,{type:mi.If.Group,steps:C,options:ql(s.options)}}visitAnimate(s,i){const c=function qa(a,s){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return Ic(Rl(a,s).duration,0,"");const i=a;if(i.split(/\s+/).some(C=>"{"==C.charAt(0)&&"{"==C.charAt(1))){const C=Ic(0,0,"");return C.dynamic=!0,C.strValue=i,C}const f=Rl(i,s);return Ic(f.duration,f.delay,f.easing)}(s.timings,i.errors);i.currentAnimateTimings=c;let f,C=s.styles?s.styles:(0,mi.iF)({});if(C.type==mi.If.Keyframes)f=this.visitKeyframes(C,i);else{let M=s.styles,H=!1;if(!M){H=!0;const Fe={};c.easing&&(Fe.easing=c.easing),M=(0,mi.iF)(Fe)}i.currentTime+=c.duration+c.delay;const ie=this.visitStyle(M,i);ie.isEmptyStep=H,f=ie}return i.currentAnimateTimings=null,{type:mi.If.Animate,timings:c,style:f,options:null}}visitStyle(s,i){const c=this._makeStyleAst(s,i);return this._validateStyleAst(c,i),c}_makeStyleAst(s,i){const c=[],f=Array.isArray(s.styles)?s.styles:[s.styles];for(let H of f)"string"==typeof H?H===mi.kp?c.push(H):i.errors.push(new o.wOt(3002,!1)):c.push(new Map(Object.entries(H)));let C=!1,M=null;return c.forEach(H=>{if(H instanceof Map&&(H.has("easing")&&(M=H.get("easing"),H.delete("easing")),!C))for(let ie of H.values())if(ie.toString().indexOf("{{")>=0){C=!0;break}}),{type:mi.If.Style,styles:c,easing:M,offset:s.offset,containsDynamicStyles:C,options:null}}_validateStyleAst(s,i){const c=i.currentAnimateTimings;let f=i.currentTime,C=i.currentTime;c&&C>0&&(C-=c.duration+c.delay),s.styles.forEach(M=>{"string"!=typeof M&&M.forEach((H,ie)=>{const Fe=i.collectedStyles.get(i.currentQuerySelector),Nt=Fe.get(ie);let Yt=!0;Nt&&(C!=f&&C>=Nt.startTime&&f<=Nt.endTime&&(i.errors.push(function Zi(){return new o.wOt(3010,!1)}()),Yt=!1),C=Nt.startTime),Yt&&Fe.set(ie,{startTime:C,endTime:f}),i.options&&function df(a,s,i){const c=s.params||{},f=Zd(a);f.length&&f.forEach(C=>{c.hasOwnProperty(C)||i.push(function R(){return new o.wOt(3001,!1)}())})}(H,i.options,i.errors)})})}visitKeyframes(s,i){const c={type:mi.If.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function us(){return new o.wOt(3011,!1)}()),c;let C=0;const M=[];let H=!1,ie=!1,Fe=0;const Nt=s.steps.map(Ui=>{const $i=this._makeStyleAst(Ui,i);let no=null!=$i.offset?$i.offset:function au(a){if("string"==typeof a)return null;let s=null;if(Array.isArray(a))a.forEach(i=>{if(i instanceof Map&&i.has("offset")){const c=i;s=parseFloat(c.get("offset")),c.delete("offset")}});else if(a instanceof Map&&a.has("offset")){const i=a;s=parseFloat(i.get("offset")),i.delete("offset")}return s}($i.styles),go=0;return null!=no&&(C++,go=$i.offset=no),ie=ie||go<0||go>1,H=H||go0&&C{const no=jn>0?$i==wn?1:jn*$i:M[$i],go=no*Fi;i.currentTime=Dn+pi.delay+go,pi.duration=go,this._validateStyleAst(Ui,i),Ui.offset=no,c.styles.push(Ui)}),c}visitReference(s,i){return{type:mi.If.Reference,animation:ea(this,zu(s.animation),i),options:ql(s.options)}}visitAnimateChild(s,i){return i.depCount++,{type:mi.If.AnimateChild,options:ql(s.options)}}visitAnimateRef(s,i){return{type:mi.If.AnimateRef,animation:this.visitReference(s.animation,i),options:ql(s.options)}}visitQuery(s,i){const c=i.currentQuerySelector,f=s.options||{};i.queryCount++,i.currentQuery=s;const[C,M]=function nm(a){const s=!!a.split(/\s*,\s*/).find(i=>":self"==i);return s&&(a=a.replace(co,"")),a=a.replace(/@\*/g,lr).replace(/@\w+/g,i=>lr+"-"+i.slice(1)).replace(/:animating/g,ju),[a,s]}(s.selector);i.currentQuerySelector=c.length?c+" "+C:C,qs(i.collectedStyles,i.currentQuerySelector,new Map);const H=ea(this,zu(s.animation),i);return i.currentQuery=null,i.currentQuerySelector=c,{type:mi.If.Query,selector:C,limit:f.limit||0,optional:!!f.optional,includeSelf:M,animation:H,originalSelector:s.selector,options:ql(s.options)}}visitStagger(s,i){i.currentQuery||i.errors.push(function Ml(){return new o.wOt(3013,!1)}());const c="full"===s.timings?{duration:0,delay:0,easing:"full"}:Rl(s.timings,i.errors,!0);return{type:mi.If.Stagger,animation:ea(this,zu(s.animation),i),timings:c,options:null}}}class wf{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ql(a){return a?(a={...a}).params&&(a.params=function bf(a){return a?{...a}:null}(a.params)):a={},a}function Ic(a,s,i){return{duration:a,delay:s,easing:i}}function Mc(a,s,i,c,f,C,M=null,H=!1){return{type:1,element:a,keyframes:s,preStyleProps:i,postStyleProps:c,duration:f,delay:C,totalTime:f+C,easing:M,subTimeline:H}}class ec{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,i){let c=this._map.get(s);c||this._map.set(s,c=[]),c.push(...i)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const im=new RegExp(":enter","g"),Oc=new RegExp(":leave","g");function el(a,s,i,c,f,C=new Map,M=new Map,H,ie,Fe=[]){return(new Cf).buildKeyframes(a,s,i,c,f,C,M,H,ie,Fe)}class Cf{buildKeyframes(s,i,c,f,C,M,H,ie,Fe,Nt=[]){Fe=Fe||new ec;const Yt=new Ju(s,i,Fe,f,C,Nt,[]);Yt.options=ie;const jn=ie.delay?yr(ie.delay):0;Yt.currentTimeline.delayNextStep(jn),Yt.currentTimeline.setStyles([M],null,Yt.errors,ie),ea(this,c,Yt);const wn=Yt.timelines.filter(Dn=>Dn.containsAnimation());if(wn.length&&H.size){let Dn;for(let pi=wn.length-1;pi>=0;pi--){const Fi=wn[pi];if(Fi.element===i){Dn=Fi;break}}Dn&&!Dn.allowOnlyTimelineStyles()&&Dn.setStyles([H],null,Yt.errors,ie)}return wn.length?wn.map(Dn=>Dn.buildKeyframes()):[Mc(i,[],[],[],0,jn,"",!1)]}visitTrigger(s,i){}visitState(s,i){}visitTransition(s,i){}visitAnimateChild(s,i){const c=i.subInstructions.get(i.element);if(c){const f=i.createSubContext(s.options),C=i.currentTimeline.currentTime,M=this._visitSubInstructions(c,f,f.options);C!=M&&i.transformIntoNewTimeline(M)}i.previousNode=s}visitAnimateRef(s,i){const c=i.createSubContext(s.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],i,c),this.visitReference(s.animation,c),i.transformIntoNewTimeline(c.currentTimeline.currentTime),i.previousNode=s}_applyAnimationRefDelays(s,i,c){for(const f of s){const C=f?.delay;if(C){const M="number"==typeof C?C:yr(Wo(C,f?.params??{},i.errors));c.delayNextStep(M)}}}_visitSubInstructions(s,i,c){let C=i.currentTimeline.currentTime;const M=null!=c.duration?yr(c.duration):null,H=null!=c.delay?yr(c.delay):null;return 0!==M&&s.forEach(ie=>{const Fe=i.appendInstructionToTimeline(ie,M,H);C=Math.max(C,Fe.duration+Fe.delay)}),C}visitReference(s,i){i.updateOptions(s.options,!0),ea(this,s.animation,i),i.previousNode=s}visitSequence(s,i){const c=i.subContextCount;let f=i;const C=s.options;if(C&&(C.params||C.delay)&&(f=i.createSubContext(C),f.transformIntoNewTimeline(),null!=C.delay)){f.previousNode.type==mi.If.Style&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=tc);const M=yr(C.delay);f.delayNextStep(M)}s.steps.length&&(s.steps.forEach(M=>ea(this,M,f)),f.currentTimeline.applyStylesToKeyframe(),f.subContextCount>c&&f.transformIntoNewTimeline()),i.previousNode=s}visitGroup(s,i){const c=[];let f=i.currentTimeline.currentTime;const C=s.options&&s.options.delay?yr(s.options.delay):0;s.steps.forEach(M=>{const H=i.createSubContext(s.options);C&&H.delayNextStep(C),ea(this,M,H),f=Math.max(f,H.currentTimeline.currentTime),c.push(H.currentTimeline)}),c.forEach(M=>i.currentTimeline.mergeTimelineCollectedStyles(M)),i.transformIntoNewTimeline(f),i.previousNode=s}_visitTiming(s,i){if(s.dynamic){const c=s.strValue;return Rl(i.params?Wo(c,i.params,i.errors):c,i.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,i){const c=i.currentAnimateTimings=this._visitTiming(s.timings,i),f=i.currentTimeline;c.delay&&(i.incrementTime(c.delay),f.snapshotCurrentStyles());const C=s.style;C.type==mi.If.Keyframes?this.visitKeyframes(C,i):(i.incrementTime(c.duration),this.visitStyle(C,i),f.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=s}visitStyle(s,i){const c=i.currentTimeline,f=i.currentAnimateTimings;!f&&c.hasCurrentStyleProperties()&&c.forwardFrame();const C=f&&f.easing||s.easing;s.isEmptyStep?c.applyEmptyStep(C):c.setStyles(s.styles,C,i.errors,i.options),i.previousNode=s}visitKeyframes(s,i){const c=i.currentAnimateTimings,f=i.currentTimeline.duration,C=c.duration,H=i.createSubContext().currentTimeline;H.easing=c.easing,s.styles.forEach(ie=>{H.forwardTime((ie.offset||0)*C),H.setStyles(ie.styles,ie.easing,i.errors,i.options),H.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(H),i.transformIntoNewTimeline(f+C),i.previousNode=s}visitQuery(s,i){const c=i.currentTimeline.currentTime,f=s.options||{},C=f.delay?yr(f.delay):0;C&&(i.previousNode.type===mi.If.Style||0==c&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tc);let M=c;const H=i.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!f.optional,i.errors);i.currentQueryTotal=H.length;let ie=null;H.forEach((Fe,Nt)=>{i.currentQueryIndex=Nt;const Yt=i.createSubContext(s.options,Fe);C&&Yt.delayNextStep(C),Fe===i.element&&(ie=Yt.currentTimeline),ea(this,s.animation,Yt),Yt.currentTimeline.applyStylesToKeyframe(),M=Math.max(M,Yt.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(M),ie&&(i.currentTimeline.mergeTimelineCollectedStyles(ie),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=s}visitStagger(s,i){const c=i.parentContext,f=i.currentTimeline,C=s.timings,M=Math.abs(C.duration),H=M*(i.currentQueryTotal-1);let ie=M*i.currentQueryIndex;switch(C.duration<0?"reverse":C.easing){case"reverse":ie=H-ie;break;case"full":ie=c.currentStaggerTime}const Nt=i.currentTimeline;ie&&Nt.delayNextStep(ie);const Yt=Nt.currentTime;ea(this,s.animation,i),i.previousNode=s,c.currentStaggerTime=f.currentTime-Yt+(f.startTime-c.currentTimeline.startTime)}}const tc={};class Ju{constructor(s,i,c,f,C,M,H,ie){this._driver=s,this.element=i,this.subInstructions=c,this._enterClassName=f,this._leaveClassName=C,this.errors=M,this.timelines=H,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ie||new qu(this._driver,i,0),H.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,i){if(!s)return;const c=s;let f=this.options;null!=c.duration&&(f.duration=yr(c.duration)),null!=c.delay&&(f.delay=yr(c.delay));const C=c.params;if(C){let M=f.params;M||(M=this.options.params={}),Object.keys(C).forEach(H=>{(!i||!M.hasOwnProperty(H))&&(M[H]=Wo(C[H],M,this.errors))})}}_copyOptions(){const s={};if(this.options){const i=this.options.params;if(i){const c=s.params={};Object.keys(i).forEach(f=>{c[f]=i[f]})}}return s}createSubContext(s=null,i,c){const f=i||this.element,C=new Ju(this._driver,f,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(f,c||0));return C.previousNode=this.previousNode,C.currentAnimateTimings=this.currentAnimateTimings,C.options=this._copyOptions(),C.updateOptions(s),C.currentQueryIndex=this.currentQueryIndex,C.currentQueryTotal=this.currentQueryTotal,C.parentContext=this,this.subContextCount++,C}transformIntoNewTimeline(s){return this.previousNode=tc,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,i,c){const f={duration:i??s.duration,delay:this.currentTimeline.currentTime+(c??0)+s.delay,easing:""},C=new rm(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,f,s.stretchStartingKeyframe);return this.timelines.push(C),f}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,i,c,f,C,M){let H=[];if(f&&H.push(this.element),s.length>0){s=(s=s.replace(im,"."+this._enterClassName)).replace(Oc,"."+this._leaveClassName);let Fe=this._driver.query(this.element,s,1!=c);0!==c&&(Fe=c<0?Fe.slice(Fe.length+c,Fe.length):Fe.slice(0,c)),H.push(...Fe)}return!C&&0==H.length&&M.push(function Fa(){return new o.wOt(3014,!1)}()),H}}class qu{constructor(s,i,c,f){this._driver=s,this.element=i,this.startTime=c,this._elementTimelineStylesLookup=f,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+s),i&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,i){return this.applyStylesToKeyframe(),new qu(this._driver,s,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,i){this._localTimelineStyles.set(s,i),this._globalTimelineStyles.set(s,i),this._styleSummary.set(s,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[i,c]of this._globalTimelineStyles)this._backFill.set(i,c||mi.kp),this._currentKeyframe.set(i,mi.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,i,c,f){i&&this._previousKeyframe.set("easing",i);const C=f&&f.params||{},M=function om(a,s){const i=new Map;let c;return a.forEach(f=>{if("*"===f){c??=s.keys();for(let C of c)i.set(C,mi.kp)}else for(let[C,M]of f)i.set(C,M)}),i}(s,this._globalTimelineStyles);for(let[H,ie]of M){const Fe=Wo(ie,C,c);this._pendingStyles.set(H,Fe),this._localTimelineStyles.has(H)||this._backFill.set(H,this._globalTimelineStyles.get(H)??mi.kp),this._updateStyle(H,Fe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,i)=>{this._currentKeyframe.set(i,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,s)}))}snapshotCurrentStyles(){for(let[s,i]of this._localTimelineStyles)this._pendingStyles.set(s,i),this._updateStyle(s,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let i in this._currentKeyframe)s.push(i);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((i,c)=>{const f=this._styleSummary.get(c);(!f||i.time>f.time)&&this._updateStyle(c,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,i=new Set,c=1===this._keyframes.size&&0===this.duration;let f=[];this._keyframes.forEach((H,ie)=>{const Fe=new Map([...this._backFill,...H]);Fe.forEach((Nt,Yt)=>{Nt===mi.FX?s.add(Yt):Nt===mi.kp&&i.add(Yt)}),c||Fe.set("offset",ie/this.duration),f.push(Fe)});const C=[...s.values()],M=[...i.values()];if(c){const H=f[0],ie=new Map(H);H.set("offset",0),ie.set("offset",1),f=[H,ie]}return Mc(this.element,f,C,M,this.duration,this.startTime,this.easing,!1)}}class rm extends qu{constructor(s,i,c,f,C,M,H=!1){super(s,i,M.delay),this.keyframes=c,this.preStyleProps=f,this.postStyleProps=C,this._stretchStartingKeyframe=H,this.timings={duration:M.duration,delay:M.delay,easing:M.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:i,duration:c,easing:f}=this.timings;if(this._stretchStartingKeyframe&&i){const C=[],M=c+i,H=i/M,ie=new Map(s[0]);ie.set("offset",0),C.push(ie);const Fe=new Map(s[0]);Fe.set("offset",Df(H)),C.push(Fe);const Nt=s.length-1;for(let Yt=1;Yt<=Nt;Yt++){let jn=new Map(s[Yt]);const wn=jn.get("offset");jn.set("offset",Df((i+wn*c)/M)),C.push(jn)}c=M,i=0,f="",s=C}return Mc(this.element,s,this.preStyleProps,this.postStyleProps,c,i,f,!0)}}function Df(a,s=3){const i=Math.pow(10,s-1);return Math.round(a*i)/i}function sm(a,s,i,c,f,C,M,H,ie,Fe,Nt,Yt,jn){return{type:0,element:a,triggerName:s,isRemovalTransition:f,fromState:i,fromStyles:C,toState:c,toStyles:M,timelines:H,queriedElements:ie,preStyleProps:Fe,postStyleProps:Nt,totalTime:Yt,errors:jn}}const nc={};class Nl{constructor(s,i,c){this._triggerName=s,this.ast=i,this._stateStyles=c}match(s,i,c,f){return function lu(a,s,i,c,f){return a.some(C=>C(s,i,c,f))}(this.ast.matchers,s,i,c,f)}buildStyles(s,i,c){let f=this._stateStyles.get("*");return void 0!==s&&(f=this._stateStyles.get(s?.toString())||f),f?f.buildStyles(i,c):new Map}build(s,i,c,f,C,M,H,ie,Fe,Nt){const Yt=[],jn=this.ast.options&&this.ast.options.params||nc,Dn=this.buildStyles(c,H&&H.params||nc,Yt),pi=ie&&ie.params||nc,Fi=this.buildStyles(f,pi,Yt),Ui=new Set,$i=new Map,no=new Map,go="void"===f,vc={params:eh(pi,jn),delay:this.ast.options?.delay},sl=Nt?[]:el(s,i,this.ast.animation,C,M,Dn,Fi,vc,Fe,Yt);let ia=0;return sl.forEach(Ps=>{ia=Math.max(Ps.duration+Ps.delay,ia)}),Yt.length?sm(i,this._triggerName,c,f,go,Dn,Fi,[],[],$i,no,ia,Yt):(sl.forEach(Ps=>{const Ia=Ps.element,xl=qs($i,Ia,new Set);Ps.preStyleProps.forEach(Vd=>xl.add(Vd));const Cg=qs(no,Ia,new Set);Ps.postStyleProps.forEach(Vd=>Cg.add(Vd)),Ia!==i&&Ui.add(Ia)}),sm(i,this._triggerName,c,f,go,Dn,Fi,sl,[...Ui.values()],$i,no,ia))}}function eh(a,s){const i={...s};return Object.entries(a).forEach(([c,f])=>{null!=f&&(i[c]=f)}),i}class cu{constructor(s,i,c){this.styles=s,this.defaultParams=i,this.normalizer=c}buildStyles(s,i){const c=new Map,f=eh(s,this.defaultParams);return this.styles.styles.forEach(C=>{"string"!=typeof C&&C.forEach((M,H)=>{M&&(M=Wo(M,f,i));const ie=this.normalizer.normalizePropertyName(H,i);M=this.normalizer.normalizeStyleValue(H,ie,M,i),c.set(H,M)})}),c}}class td{constructor(s,i,c){this.name=s,this.ast=i,this._normalizer=c,this.transitionFactories=[],this.states=new Map,i.states.forEach(f=>{this.states.set(f.name,new cu(f.style,f.options&&f.options.params||{},c))}),xf(this.states,"true","1"),xf(this.states,"false","0"),i.transitions.forEach(f=>{this.transitionFactories.push(new Nl(s,f,this.states))}),this.fallbackTransition=function nd(a,s){return new Nl(a,{type:mi.If.Transition,animation:{type:mi.If.Sequence,steps:[],options:null},matchers:[(M,H)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,i,c,f){return this.transitionFactories.find(M=>M.match(s,i,c,f))||null}matchStyles(s,i,c){return this.fallbackTransition.buildStyles(s,i,c)}}function xf(a,s,i){a.has(s)?a.has(i)||a.set(i,a.get(s)):a.has(i)&&a.set(s,a.get(i))}const Sf=new ec;class id{constructor(s,i,c){this.bodyNode=s,this._driver=i,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,i){const c=[],C=Zu(this._driver,i,c,[]);if(c.length)throw function La(){return new o.wOt(3503,!1)}();this._animations.set(s,C)}_buildPlayer(s,i,c){const f=s.element,C=ku(this._normalizer,s.keyframes,i,c);return this._driver.animate(f,C,s.duration,s.delay,s.easing,[],!0)}create(s,i,c={}){const f=[],C=this._animations.get(s);let M;const H=new Map;if(C?(M=el(this._driver,i,C,Xd,Vu,new Map,new Map,c,Sf,f),M.forEach(Nt=>{const Yt=qs(H,Nt.element,new Map);Nt.postStyleProps.forEach(jn=>Yt.set(jn,null))})):(f.push(function af(){return new o.wOt(3300,!1)}()),M=[]),f.length)throw function lf(){return new o.wOt(3504,!1)}();H.forEach((Nt,Yt)=>{Nt.forEach((jn,wn)=>{Nt.set(wn,this._driver.computeStyle(Yt,wn,mi.kp))})});const Fe=Ua(M.map(Nt=>{const Yt=H.get(Nt.element);return this._buildPlayer(Nt,new Map,Yt)}));return this._playersById.set(s,Fe),Fe.onDestroy(()=>this.destroy(s)),this.players.push(Fe),Fe}destroy(s){const i=this._getPlayer(s);i.destroy(),this._playersById.delete(s);const c=this.players.indexOf(i);c>=0&&this.players.splice(c,1)}_getPlayer(s){const i=this._playersById.get(s);if(!i)throw function vr(){return new o.wOt(3301,!1)}();return i}listen(s,i,c,f){const C=Pu(i,"","","");return Js(this._getPlayer(s),c,C,f),()=>{}}command(s,i,c,f){if("register"==c)return void this.register(s,f[0]);if("create"==c)return void this.create(s,i,f[0]||{});const C=this._getPlayer(s);switch(c){case"play":C.play();break;case"pause":C.pause();break;case"reset":C.reset();break;case"restart":C.restart();break;case"finish":C.finish();break;case"init":C.init();break;case"setPosition":C.setPosition(parseFloat(f[0]));break;case"destroy":this.destroy(s)}}}const th="ng-animate-queued",ic="ng-animate-disabled",rd=[],rc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},od={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Sa="__ng_removed";class sd{get params(){return this.options.params}constructor(s,i=""){this.namespaceId=i;const c=s&&s.hasOwnProperty("value");if(this.value=function ad(a){return a??null}(c?s.value:s),c){const{value:C,...M}=s;this.options=M}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const i=s.params;if(i){const c=this.options.params;Object.keys(i).forEach(f=>{null==c[f]&&(c[f]=i[f])})}}}const kc="void",Nc=new sd(kc);class lm{constructor(s,i,c){this.id=s,this.hostElement=i,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,fa(i,this._hostClassName)}listen(s,i,c,f){if(!this._triggers.has(i))throw function Ec(){return new o.wOt(3302,!1)}();if(null==c||0==c.length)throw function Cc(){return new o.wOt(3303,!1)}();if(!function Pl(a){return"start"==a||"done"==a}(c))throw function Is(){return new o.wOt(3400,!1)}();const C=qs(this._elementListeners,s,[]),M={name:i,phase:c,callback:f};C.push(M);const H=qs(this._engine.statesByElement,s,new Map);return H.has(i)||(fa(s,_n),fa(s,_n+"-"+i),H.set(i,Nc)),()=>{this._engine.afterFlush(()=>{const ie=C.indexOf(M);ie>=0&&C.splice(ie,1),this._triggers.has(i)||H.delete(i)})}}register(s,i){return!this._triggers.has(s)&&(this._triggers.set(s,i),!0)}_getTrigger(s){const i=this._triggers.get(s);if(!i)throw function Ba(){return new o.wOt(3401,!1)}();return i}trigger(s,i,c,f=!0){const C=this._getTrigger(i),M=new nl(this.id,i,s);let H=this._engine.statesByElement.get(s);H||(fa(s,_n),fa(s,_n+"-"+i),this._engine.statesByElement.set(s,H=new Map));let ie=H.get(i);const Fe=new sd(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&ie&&Fe.absorbOptions(ie.options),H.set(i,Fe),ie||(ie=Nc),Fe.value!==kc&&ie.value===Fe.value){if(!function Mf(a,s){const i=Object.keys(a),c=Object.keys(s);if(i.length!=c.length)return!1;for(let f=0;f{Ac(s,Fi),Ha(s,Ui)})}return}const jn=qs(this._engine.playersByElement,s,[]);jn.forEach(pi=>{pi.namespaceId==this.id&&pi.triggerName==i&&pi.queued&&pi.destroy()});let wn=C.matchTransition(ie.value,Fe.value,s,Fe.params),Dn=!1;if(!wn){if(!f)return;wn=C.fallbackTransition,Dn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:i,transition:wn,fromState:ie,toState:Fe,player:M,isFallbackTransition:Dn}),Dn||(fa(s,th),M.onStart(()=>{$a(s,th)})),M.onDone(()=>{let pi=this.players.indexOf(M);pi>=0&&this.players.splice(pi,1);const Fi=this._engine.playersByElement.get(s);if(Fi){let Ui=Fi.indexOf(M);Ui>=0&&Fi.splice(Ui,1)}}),this.players.push(M),jn.push(M),M}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(i=>i.delete(s)),this._elementListeners.forEach((i,c)=>{this._elementListeners.set(c,i.filter(f=>f.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const i=this._engine.playersByElement.get(s);i&&(i.forEach(c=>c.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,i){const c=this._engine.driver.query(s,lr,!0);c.forEach(f=>{if(f[Sa])return;const C=this._engine.fetchNamespacesByElement(f);C.size?C.forEach(M=>M.triggerLeaveAnimation(f,i,!1,!0)):this.clearElementCache(f)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(f=>this.clearElementCache(f)))}triggerLeaveAnimation(s,i,c,f){const C=this._engine.statesByElement.get(s),M=new Map;if(C){const H=[];if(C.forEach((ie,Fe)=>{if(M.set(Fe,ie.value),this._triggers.has(Fe)){const Nt=this.trigger(s,Fe,kc,f);Nt&&H.push(Nt)}}),H.length)return this._engine.markElementAsRemoved(this.id,s,!0,i,M),c&&Ua(H).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const i=this._elementListeners.get(s),c=this._engine.statesByElement.get(s);if(i&&c){const f=new Set;i.forEach(C=>{const M=C.name;if(f.has(M))return;f.add(M);const ie=this._triggers.get(M).fallbackTransition,Fe=c.get(M)||Nc,Nt=new sd(kc),Yt=new nl(this.id,M,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:M,transition:ie,fromState:Fe,toState:Nt,player:Yt,isFallbackTransition:!0})})}}removeNode(s,i){const c=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,i),this.triggerLeaveAnimation(s,i,!0))return;let f=!1;if(c.totalAnimations){const C=c.players.length?c.playersByQueriedElement.get(s):[];if(C&&C.length)f=!0;else{let M=s;for(;M=M.parentNode;)if(c.statesByElement.get(M)){f=!0;break}}}if(this.prepareLeaveAnimationListeners(s),f)c.markElementAsRemoved(this.id,s,!1,i);else{const C=s[Sa];(!C||C===rc)&&(c.afterFlush(()=>this.clearElementCache(s)),c.destroyInnerAnimations(s),c._onRemovalComplete(s,i))}}insertNode(s,i){fa(s,this._hostClassName)}drainQueuedTransitions(s){const i=[];return this._queue.forEach(c=>{const f=c.player;if(f.destroyed)return;const C=c.element,M=this._elementListeners.get(C);M&&M.forEach(H=>{if(H.name==c.triggerName){const ie=Pu(C,c.triggerName,c.fromState.value,c.toState.value);ie._data=s,Js(c.player,H.phase,ie,H.callback)}}),f.markedForDestroy?this._engine.afterFlush(()=>{f.destroy()}):i.push(c)}),this._queue=[],i.sort((c,f)=>{const C=c.transition.ast.depCount,M=f.transition.ast.depCount;return 0==C||0==M?C-M:this._engine.driver.containsElement(c.element,f.element)?1:-1})}destroy(s){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class ih{_onRemovalComplete(s,i){this.onRemovalComplete(s,i)}constructor(s,i,c){this.bodyNode=s,this.driver=i,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(f,C)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(i=>{i.players.forEach(c=>{c.queued&&s.push(c)})}),s}createNamespace(s,i){const c=new lm(s,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(c,i):(this.newHostElements.set(i,c),this.collectEnterElement(i)),this._namespaceLookup[s]=c}_balanceNamespaceList(s,i){const c=this._namespaceList,f=this.namespacesByHostElement;if(c.length-1>=0){let M=!1,H=this.driver.getParentElement(i);for(;H;){const ie=f.get(H);if(ie){const Fe=c.indexOf(ie);c.splice(Fe+1,0,s),M=!0;break}H=this.driver.getParentElement(H)}M||c.unshift(s)}else c.push(s);return f.set(i,s),s}register(s,i){let c=this._namespaceLookup[s];return c||(c=this.createNamespace(s,i)),c}registerTrigger(s,i,c){let f=this._namespaceLookup[s];f&&f.register(i,c)&&this.totalAnimations++}destroy(s,i){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(s);this.namespacesByHostElement.delete(c.hostElement);const f=this._namespaceList.indexOf(c);f>=0&&this._namespaceList.splice(f,1),c.destroy(i),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const i=new Set,c=this.statesByElement.get(s);if(c)for(let f of c.values())if(f.namespaceId){const C=this._fetchNamespace(f.namespaceId);C&&i.add(C)}return i}trigger(s,i,c,f){if(uu(i)){const C=this._fetchNamespace(s);if(C)return C.trigger(i,c,f),!0}return!1}insertNode(s,i,c,f){if(!uu(i))return;const C=i[Sa];if(C&&C.setForRemoval){C.setForRemoval=!1,C.setForMove=!0;const M=this.collectedLeaveElements.indexOf(i);M>=0&&this.collectedLeaveElements.splice(M,1)}if(s){const M=this._fetchNamespace(s);M&&M.insertNode(i,c)}f&&this.collectEnterElement(i)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,i){i?this.disabledNodes.has(s)||(this.disabledNodes.add(s),fa(s,ic)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),$a(s,ic))}removeNode(s,i,c){if(uu(i)){const f=s?this._fetchNamespace(s):null;f?f.removeNode(i,c):this.markElementAsRemoved(s,i,!1,c);const C=this.namespacesByHostElement.get(i);C&&C.id!==s&&C.removeNode(i,c)}else this._onRemovalComplete(i,c)}markElementAsRemoved(s,i,c,f,C){this.collectedLeaveElements.push(i),i[Sa]={namespaceId:s,setForRemoval:f,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:C}}listen(s,i,c,f,C){return uu(i)?this._fetchNamespace(s).listen(i,c,f,C):()=>{}}_buildInstruction(s,i,c,f,C){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,c,f,s.fromState.options,s.toState.options,i,C)}destroyInnerAnimations(s){let i=this.driver.query(s,lr,!0);i.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(s,ju,!0),i.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(s){const i=this.playersByElement.get(s);i&&i.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(s){const i=this.playersByQueriedElement.get(s);i&&i.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Ua(this.players).onDone(()=>s());s()})}processLeaveNode(s){const i=s[Sa];if(i&&i.setForRemoval){if(s[Sa]=rc,i.namespaceId){this.destroyInnerAnimations(s);const c=this._fetchNamespace(i.namespaceId);c&&c.clearElementCache(s)}this._onRemovalComplete(s,i.setForRemoval)}s.classList?.contains(ic)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(s=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,f)=>this._balanceNamespaceList(c,f)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;cc()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],i.length?Ua(i).onDone(()=>{c.forEach(f=>f())}):c.forEach(f=>f())}}reportError(s){throw function vl(){return new o.wOt(3402,!1)}()}_flushAnimations(s,i){const c=new ec,f=[],C=new Map,M=[],H=new Map,ie=new Map,Fe=new Map,Nt=new Set;this.disabledNodes.forEach(Bi=>{Nt.add(Bi);const Ki=this.driver.query(Bi,".ng-animate-queued",!0);for(let tr=0;tr{const tr=Xd+pi++;Dn.set(Ki,tr),Bi.forEach(Ur=>fa(Ur,tr))});const Fi=[],Ui=new Set,$i=new Set;for(let Bi=0;BiUi.add(Ur)):$i.add(Ki))}const no=new Map,go=ld(jn,Array.from(Ui));go.forEach((Bi,Ki)=>{const tr=Vu+pi++;no.set(Ki,tr),Bi.forEach(Ur=>fa(Ur,tr))}),s.push(()=>{wn.forEach((Bi,Ki)=>{const tr=Dn.get(Ki);Bi.forEach(Ur=>$a(Ur,tr))}),go.forEach((Bi,Ki)=>{const tr=no.get(Ki);Bi.forEach(Ur=>$a(Ur,tr))}),Fi.forEach(Bi=>{this.processLeaveNode(Bi)})});const vc=[],sl=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(i).forEach(tr=>{const Ur=tr.player,Po=tr.element;if(vc.push(Ur),this.collectedEnterElements.length){const ra=Po[Sa];if(ra&&ra.setForMove){if(ra.previousTriggersValues&&ra.previousTriggersValues.has(tr.triggerName)){const Ou=ra.previousTriggersValues.get(tr.triggerName),al=this.statesByElement.get(tr.element);if(al&&al.has(tr.triggerName)){const Ru=al.get(tr.triggerName);Ru.value=Ou,al.set(tr.triggerName,Ru)}}return void Ur.destroy()}}const Ma=!Yt||!this.driver.containsElement(Yt,Po),Ga=no.get(Po),Mu=Dn.get(Po),Mo=this._buildInstruction(tr,c,Mu,Ga,Ma);if(Mo.errors&&Mo.errors.length)return void sl.push(Mo);if(Ma)return Ur.onStart(()=>Ac(Po,Mo.fromStyles)),Ur.onDestroy(()=>Ha(Po,Mo.toStyles)),void f.push(Ur);if(tr.isFallbackTransition)return Ur.onStart(()=>Ac(Po,Mo.fromStyles)),Ur.onDestroy(()=>Ha(Po,Mo.toStyles)),void f.push(Ur);const dy=[];Mo.timelines.forEach(ra=>{ra.stretchStartingKeyframe=!0,this.disabledNodes.has(ra.element)||dy.push(ra)}),Mo.timelines=dy,c.append(Po,Mo.timelines),M.push({instruction:Mo,player:Ur,element:Po}),Mo.queriedElements.forEach(ra=>qs(H,ra,[]).push(Ur)),Mo.preStyleProps.forEach((ra,Ou)=>{if(ra.size){let al=ie.get(Ou);al||ie.set(Ou,al=new Set),ra.forEach((Ru,Ap)=>al.add(Ap))}}),Mo.postStyleProps.forEach((ra,Ou)=>{let al=Fe.get(Ou);al||Fe.set(Ou,al=new Set),ra.forEach((Ru,Ap)=>al.add(Ap))})});if(sl.length){const Bi=[];sl.forEach(Ki=>{Bi.push(function Zs(){return new o.wOt(3505,!1)}())}),vc.forEach(Ki=>Ki.destroy()),this.reportError(Bi)}const ia=new Map,Ps=new Map;M.forEach(Bi=>{const Ki=Bi.element;c.has(Ki)&&(Ps.set(Ki,Ki),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,ia))}),f.forEach(Bi=>{const Ki=Bi.element;this._getPreviousPlayers(Ki,!1,Bi.namespaceId,Bi.triggerName,null).forEach(Ur=>{qs(ia,Ki,[]).push(Ur),Ur.destroy()})});const Ia=Fi.filter(Bi=>du(Bi,ie,Fe)),xl=new Map;Vo(xl,this.driver,$i,Fe,mi.kp).forEach(Bi=>{du(Bi,ie,Fe)&&Ia.push(Bi)});const Vd=new Map;wn.forEach((Bi,Ki)=>{Vo(Vd,this.driver,new Set(Bi),ie,mi.FX)}),Ia.forEach(Bi=>{const Ki=xl.get(Bi),tr=Vd.get(Bi);xl.set(Bi,new Map([...Ki?.entries()??[],...tr?.entries()??[]]))});const uy=[],Tw=[],Iw={};M.forEach(Bi=>{const{element:Ki,player:tr,instruction:Ur}=Bi;if(c.has(Ki)){if(Nt.has(Ki))return tr.onDestroy(()=>Ha(Ki,Ur.toStyles)),tr.disabled=!0,tr.overrideTotalTime(Ur.totalTime),void f.push(tr);let Po=Iw;if(Ps.size>1){let Ga=Ki;const Mu=[];for(;Ga=Ga.parentNode;){const Mo=Ps.get(Ga);if(Mo){Po=Mo;break}Mu.push(Ga)}Mu.forEach(Mo=>Ps.set(Mo,Po))}const Ma=this._buildAnimation(tr.namespaceId,Ur,ia,C,Vd,xl);if(tr.setRealPlayer(Ma),Po===Iw)uy.push(tr);else{const Ga=this.playersByElement.get(Po);Ga&&Ga.length&&(tr.parentPlayer=Ua(Ga)),f.push(tr)}}else Ac(Ki,Ur.fromStyles),tr.onDestroy(()=>Ha(Ki,Ur.toStyles)),Tw.push(tr),Nt.has(Ki)&&f.push(tr)}),Tw.forEach(Bi=>{const Ki=C.get(Bi.element);if(Ki&&Ki.length){const tr=Ua(Ki);Bi.setRealPlayer(tr)}}),f.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi!Ma.destroyed);Po.length?cm(this,Ki,Po):this.processLeaveNode(Ki)}return Fi.length=0,uy.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const Ki=this.players.indexOf(Bi);this.players.splice(Ki,1)}),Bi.play()}),uy}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,i,c,f,C){let M=[];if(i){const H=this.playersByQueriedElement.get(s);H&&(M=H)}else{const H=this.playersByElement.get(s);if(H){const ie=!C||C==kc;H.forEach(Fe=>{Fe.queued||!ie&&Fe.triggerName!=f||M.push(Fe)})}}return(c||f)&&(M=M.filter(H=>!(c&&c!=H.namespaceId||f&&f!=H.triggerName))),M}_beforeAnimationBuild(s,i,c){const C=i.element,M=i.isRemovalTransition?void 0:s,H=i.isRemovalTransition?void 0:i.triggerName;for(const ie of i.timelines){const Fe=ie.element,Nt=Fe!==C,Yt=qs(c,Fe,[]);this._getPreviousPlayers(Fe,Nt,M,H,i.toState).forEach(wn=>{const Dn=wn.getRealPlayer();Dn.beforeDestroy&&Dn.beforeDestroy(),wn.destroy(),Yt.push(wn)})}Ac(C,i.fromStyles)}_buildAnimation(s,i,c,f,C,M){const H=i.triggerName,ie=i.element,Fe=[],Nt=new Set,Yt=new Set,jn=i.timelines.map(Dn=>{const pi=Dn.element;Nt.add(pi);const Fi=pi[Sa];if(Fi&&Fi.removedBeforeQueried)return new mi.sf(Dn.duration,Dn.delay);const Ui=pi!==ie,$i=function If(a){const s=[];return oc(a,s),s}((c.get(pi)||rd).map(ia=>ia.getRealPlayer())).filter(ia=>!!ia.element&&ia.element===pi),no=C.get(pi),go=M.get(pi),vc=ku(this._normalizer,Dn.keyframes,no,go),sl=this._buildPlayer(Dn,vc,$i);if(Dn.subTimeline&&f&&Yt.add(pi),Ui){const ia=new nl(s,H,pi);ia.setRealPlayer(sl),Fe.push(ia)}return sl});Fe.forEach(Dn=>{qs(this.playersByQueriedElement,Dn.element,[]).push(Dn),Dn.onDone(()=>function Tf(a,s,i){let c=a.get(s);if(c){if(c.length){const f=c.indexOf(i);c.splice(f,1)}0==c.length&&a.delete(s)}return c}(this.playersByQueriedElement,Dn.element,Dn))}),Nt.forEach(Dn=>fa(Dn,Yd));const wn=Ua(jn);return wn.onDestroy(()=>{Nt.forEach(Dn=>$a(Dn,Yd)),Ha(ie,i.toStyles)}),Yt.forEach(Dn=>{qs(f,Dn,[]).push(wn)}),wn}_buildPlayer(s,i,c){return i.length>0?this.driver.animate(s.element,i,s.duration,s.delay,s.easing,c):new mi.sf(s.duration,s.delay)}}class nl{constructor(s,i,c){this.namespaceId=s,this.triggerName=i,this.element=c,this._player=new mi.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((i,c)=>{i.forEach(f=>Js(s,c,void 0,f))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const i=this._player;i.triggerCallback&&s.onStart(()=>i.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,i){qs(this._queuedCallbacks,s,[]).push(i)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const i=this._player;i.triggerCallback&&i.triggerCallback(s)}}function uu(a){return a&&1===a.nodeType}function Fl(a,s){const i=a.style.display;return a.style.display=s??"none",i}function Vo(a,s,i,c,f){const C=[];i.forEach(ie=>C.push(Fl(ie)));const M=[];c.forEach((ie,Fe)=>{const Nt=new Map;ie.forEach(Yt=>{const jn=s.computeStyle(Fe,Yt,f);Nt.set(Yt,jn),(!jn||0==jn.length)&&(Fe[Sa]=od,M.push(Fe))}),a.set(Fe,Nt)});let H=0;return i.forEach(ie=>Fl(ie,C[H++])),M}function ld(a,s){const i=new Map;if(a.forEach(H=>i.set(H,[])),0==s.length)return i;const f=new Set(s),C=new Map;function M(H){if(!H)return 1;let ie=C.get(H);if(ie)return ie;const Fe=H.parentNode;return ie=i.has(Fe)?Fe:f.has(Fe)?1:M(Fe),C.set(H,ie),ie}return s.forEach(H=>{const ie=M(H);1!==ie&&i.get(ie).push(H)}),i}function fa(a,s){a.classList?.add(s)}function $a(a,s){a.classList?.remove(s)}function cm(a,s,i){Ua(i).onDone(()=>a.processLeaveNode(s))}function oc(a,s){for(let i=0;if.add(C)):s.set(a,c),i.delete(a),!0}class sc{constructor(s,i,c){this._driver=i,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(f,C)=>{},this._transitionEngine=new ih(s.body,i,c),this._timelineEngine=new id(s.body,i,c),this._transitionEngine.onRemovalComplete=(f,C)=>this.onRemovalComplete(f,C)}registerTrigger(s,i,c,f,C){const M=s+"-"+f;let H=this._triggerCache[M];if(!H){const ie=[],Nt=Zu(this._driver,C,ie,[]);if(ie.length)throw function ru(){return new o.wOt(3404,!1)}();H=function am(a,s,i){return new td(a,s,i)}(f,Nt,this._normalizer),this._triggerCache[M]=H}this._transitionEngine.registerTrigger(i,f,H)}register(s,i){this._transitionEngine.register(s,i)}destroy(s,i){this._transitionEngine.destroy(s,i)}onInsert(s,i,c,f){this._transitionEngine.insertNode(s,i,c,f)}onRemove(s,i,c){this._transitionEngine.removeNode(s,i,c)}disableAnimations(s,i){this._transitionEngine.markElementAsDisabled(s,i)}process(s,i,c,f){if("@"==c.charAt(0)){const[C,M]=ou(c);this._timelineEngine.command(C,i,M,f)}else this._transitionEngine.trigger(s,i,c,f)}listen(s,i,c,f,C){if("@"==c.charAt(0)){const[M,H]=ou(c);return this._timelineEngine.listen(M,i,H,C)}return this._transitionEngine.listen(s,i,c,f,C)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}class Fc{static{this.initialStylesByElement=new WeakMap}constructor(s,i,c){this._element=s,this._startStyles=i,this._endStyles=c,this._state=0;let f=Fc.initialStylesByElement.get(s);f||Fc.initialStylesByElement.set(s,f=new Map),this._initialStyles=f}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fc.initialStylesByElement.delete(this._element),this._startStyles&&(Ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ac(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}function rh(a){let s=null;return a.forEach((i,c)=>{(function um(a){return"display"===a||"position"===a})(c)&&(s=s||new Map,s.set(c,i))}),s}class oh{constructor(s,i,c,f){this.element=s,this.keyframes=i,this.options=c,this._specialStyles=f,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const i=[];return s.forEach(c=>{i.push(Object.fromEntries(c))}),i}_triggerWebAnimation(s,i,c){return s.animate(this._convertKeyframesToObject(i),c)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,f)=>{"offset"!==f&&s.set(f,this._finished?c:Ku(this.element,f))}),this.currentSnapshot=s}triggerCallback(s){const i="start"===s?this._onStartFns:this._onDoneFns;i.forEach(c=>c()),i.length=0}}class sh{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}containsElement(s,i){return Fu(s,i)}getParentElement(s){return xc(s)}query(s,i,c){return cf(s,i,c)}computeStyle(s,i,c){return Ku(s,i)}animate(s,i,c,f,C,M=[]){const ie={duration:c,delay:f,fill:0==f?"both":"forwards"};C&&(ie.easing=C);const Fe=new Map,Nt=M.filter(wn=>wn instanceof oh);(function yl(a,s){return 0===a||0===s})(c,f)&&Nt.forEach(wn=>{wn.currentSnapshot.forEach((Dn,pi)=>Fe.set(pi,Dn))});let Yt=function Qd(a){return a.length?a[0]instanceof Map?a:a.map(s=>new Map(Object.entries(s))):[]}(i).map(wn=>new Map(wn));Yt=function em(a,s,i){if(i.size&&s.length){let c=s[0],f=[];if(i.forEach((C,M)=>{c.has(M)||f.push(M),c.set(M,C)}),f.length)for(let C=1;CM.set(H,Ku(a,H)))}}return s}(s,Yt,Fe);const jn=function Pc(a,s){let i=null,c=null;return Array.isArray(s)&&s.length?(i=rh(s[0]),s.length>1&&(c=rh(s[s.length-1]))):s instanceof Map&&(i=rh(s)),i||c?new Fc(a,i,c):null}(s,Yt);return new oh(s,Yt,ie,jn)}}const lh="@.disabled";class dm{constructor(s,i,c,f){this.namespaceId=s,this.delegate=i,this.engine=c,this._onDestroy=f,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,i){return this.delegate.createElement(s,i)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,i){this.delegate.appendChild(s,i),this.engine.onInsert(this.namespaceId,i,s,!1)}insertBefore(s,i,c,f=!0){this.delegate.insertBefore(s,i,c),this.engine.onInsert(this.namespaceId,i,s,f)}removeChild(s,i,c){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(s,i){return this.delegate.selectRootElement(s,i)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,i,c,f){this.delegate.setAttribute(s,i,c,f)}removeAttribute(s,i,c){this.delegate.removeAttribute(s,i,c)}addClass(s,i){this.delegate.addClass(s,i)}removeClass(s,i){this.delegate.removeClass(s,i)}setStyle(s,i,c,f){this.delegate.setStyle(s,i,c,f)}removeStyle(s,i,c){this.delegate.removeStyle(s,i,c)}setProperty(s,i,c){"@"==i.charAt(0)&&i==lh?this.disableAnimations(s,!!c):this.delegate.setProperty(s,i,c)}setValue(s,i){this.delegate.setValue(s,i)}listen(s,i,c){return this.delegate.listen(s,i,c)}disableAnimations(s,i){this.engine.disableAnimations(s,i)}}class Of extends dm{constructor(s,i,c,f,C){super(i,c,f,C),this.factory=s,this.namespaceId=i}setProperty(s,i,c){"@"==i.charAt(0)?"."==i.charAt(1)&&i==lh?this.disableAnimations(s,c=void 0===c||!!c):this.engine.process(this.namespaceId,s,i.slice(1),c):this.delegate.setProperty(s,i,c)}listen(s,i,c){if("@"==i.charAt(0)){const f=function Rf(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}(s);let C=i.slice(1),M="";return"@"!=C.charAt(0)&&([C,M]=function hs(a){const s=a.indexOf(".");return[a.substring(0,s),a.slice(s+1)]}(C)),this.engine.listen(this.namespaceId,f,C,M,H=>{this.factory.scheduleListenerCallback(H._data||-1,c,H)})}return this.delegate.listen(s,i,c)}}class Yg{constructor(s,i,c){this.delegate=s,this.engine=i,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(f,C)=>{C?.removeChild(null,f)}}createRenderer(s,i){const f=this.delegate.createRenderer(s,i);if(!s||!i?.data?.animation){const Fe=this._rendererCache;let Nt=Fe.get(f);return Nt||(Nt=new dm("",f,this.engine,()=>Fe.delete(f)),Fe.set(f,Nt)),Nt}const C=i.id,M=i.id+"-"+this._currentId;this._currentId++,this.engine.register(M,s);const H=Fe=>{Array.isArray(Fe)?Fe.forEach(H):this.engine.registerTrigger(C,M,s,Fe.name,Fe)};return i.data.animation.forEach(H),new Of(this,M,f,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(s,i,c){if(s>=0&&si(c));const f=this._animationCallbacksBuffer;0==f.length&&queueMicrotask(()=>{this._zone.run(()=>{f.forEach(C=>{const[M,H]=C;M(H)}),this._animationCallbacksBuffer=[]})}),f.push([i,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const fm=[{provide:Uu,useFactory:function ch(){return new Xu}},{provide:sc,useClass:(()=>{class a extends sc{constructor(i,c,f){super(i,c,f)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(et.qQ),o.KVO(Bu),o.KVO(Uu))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})()},{provide:o._9s,useFactory:function kf(a,s,i){return new Yg(a,s,i)},deps:[u.B7,sc,o.SKi]}],uh=[{provide:Bu,useFactory:()=>new sh},{provide:o.bc$,useValue:"BrowserAnimations"},...fm];var Ff=v(9030),Bc=v(3726),il=v(8793),$r=v(1413),Lf=v(5343);const ac=new V.c(Lf.l);var bl=v(7786),lc=v(6648),qo=v(6354),yo=v(17),Bf=v(8071),dd=v(8750),hd=v(9974);const dh={connector:()=>new $r.B};function hu(a,s=dh){const{connector:i}=s;return(0,hd.N)((c,f)=>{const C=i();(0,dd.Tg)(a(function mm(a){return new V.c(s=>a.subscribe(s))}(C))).subscribe(f),f.add(c.subscribe(C))})}var Uc=v(8141);const cc="Service workers are disabled or not supported by this browser";class Vc{constructor(s){if(this.serviceWorker=s,s){const c=(0,Bc.R)(s,"controllerchange").pipe((0,qo.T)(()=>s.controller)),f=(0,Ff.v)(()=>(0,U.of)(s.controller)),C=(0,il.x)(f,c);this.worker=C.pipe((0,It.p)(Nt=>!!Nt)),this.registration=this.worker.pipe((0,Me.n)(()=>s.getRegistration()));const Fe=(0,Bc.R)(s,"message").pipe((0,qo.T)(Nt=>Nt.data)).pipe((0,It.p)(Nt=>Nt&&Nt.type)).pipe(function fd(a){return a?s=>hu(a)(s):s=>function Uf(a,s){const i=(0,Bf.T)(a)?a:()=>a;return(0,Bf.T)(s)?hu(s,{connector:i}):c=>new yo.G(c,i)}(new $r.B)(s)}());Fe.connect(),this.events=Fe}else this.worker=this.events=this.registration=function hh(a){return(0,Ff.v)(()=>(0,re.$)(new Error(a)))}(cc)}postMessage(s,i){return this.worker.pipe((0,F.s)(1),(0,Uc.M)(c=>{c.postMessage({action:s,...i})})).toPromise().then(()=>{})}postMessageWithOperation(s,i,c){const f=this.waitForOperationCompleted(c),C=this.postMessage(s,i);return Promise.all([C,f]).then(([,M])=>M)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(s){let i;return i="string"==typeof s?c=>c.type===s:c=>s.includes(c.type),this.events.pipe((0,It.p)(i))}nextEventOfType(s){return this.eventsOfType(s).pipe((0,F.s)(1))}waitForOperationCompleted(s){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,It.p)(i=>i.nonce===s),(0,F.s)(1),(0,qo.T)(i=>{if(void 0!==i.result)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let wl=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new $r.B,!i.isEnabled)return this.messages=ac,this.notificationClicks=ac,void(this.subscription=ac);this.messages=this.sw.eventsOfType("PUSH").pipe((0,qo.T)(f=>f.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,qo.T)(f=>f.data)),this.pushManager=this.sw.registration.pipe((0,qo.T)(f=>f.pushManager));const c=this.pushManager.pipe((0,Me.n)(f=>f.getSubscription()));this.subscription=(0,bl.h)(c,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(cc));const c={userVisibleOnly:!0};let f=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),C=new Uint8Array(new ArrayBuffer(f.length));for(let M=0;MM.subscribe(c)),(0,F.s)(1)).toPromise().then(M=>(this.subscriptionChanges.next(M),M))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,F.s)(1),(0,Me.n)(c=>{if(null===c)throw new Error("Not subscribed to push notifications.");return c.unsubscribe().then(f=>{if(!f)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(cc))}decodeBase64(i){return atob(i)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vc))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})(),Vf=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled)return this.versionUpdates=ac,void(this.unrecoverable=ac);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(cc));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(cc));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vc))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();const fh=new o.nKC("");function gm(a,s,i,c){return()=>{if(!(0,et.UE)(c)||!("serviceWorker"in navigator)||!1===i.enabled)return;const f=a.get(o.SKi),C=a.get(o.o8S);let M;if(f.runOutsideAngular(()=>{const H=navigator.serviceWorker,ie=()=>H.controller?.postMessage({action:"INITIALIZE"});H.addEventListener("controllerchange",ie),C.onDestroy(()=>{H.removeEventListener("controllerchange",ie)})}),"function"==typeof i.registrationStrategy)M=i.registrationStrategy();else{const[H,...ie]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(H){case"registerImmediately":M=(0,U.of)(null);break;case"registerWithDelay":M=vm(+ie[0]||0);break;case"registerWhenStable":const Fe=(0,lc.H)(a.get(o.o8S).whenStable());M=ie[0]?(0,bl.h)(Fe,vm(+ie[0])):Fe;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}f.runOutsideAngular(()=>M.pipe((0,F.s)(1)).subscribe(()=>navigator.serviceWorker.register(s,{scope:i.scope}).catch(H=>console.error("Service worker registration failed with:",H))))}}function vm(a){return(0,U.of)(null).pipe((0,Te.c)(a))}function jf(a,s){return new Vc((0,et.UE)(s)&&!1!==a.enabled?navigator.serviceWorker:void 0)}class pd{}var El=v(7468),jc=v(4360),md=v(3669),Hf=v(1584),$c=v(9437),_m=v(4668),zc=v(4572),$f=v(983);function Wc(a){return a&&a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function Gc(a){return a}function ph(a,s){const i=(s=s||{}).delimiter||".",c=s.maxDepth,f=s.transformKey||Gc,C={};return function M(H,ie,Fe){Fe=Fe||1,Object.keys(H).forEach(function(Nt){const Yt=H[Nt],jn=s.safe&&Array.isArray(Yt),wn=Object.prototype.toString.call(Yt),Dn=Wc(Yt),pi="[object Object]"===wn||"[object Array]"===wn,Fi=ie?ie+i+f(Nt):f(Nt);if(!jn&&!Dn&&pi&&Object.keys(Yt).length&&(!s.maxDepth||Fe0&&(jn=H(Yt.shift()),wn=H(Yt[0]))}Dn[jn]=gd(a[Nt],s)}),C}class zf{translations;constructor(s){this.translations=s}getTranslation(s){return(0,U.of)(this.translations.get(s)||{})}}const mh=new o.nKC("TRANSLOCO_LOADER");function gh(a,s){return a&&(Object.prototype.hasOwnProperty.call(a,s)?a[s]:s.split(".").reduce((i,c)=>i?.[c],a))}function fu(a){return a?Array.isArray(a)?a.length:Kc(a)?Object.keys(a).length:a?a.length:0:0}function rl(a){return"string"==typeof a}function Kc(a){return!!a&&"object"==typeof a&&!Array.isArray(a)}function ol(a){return null==a}function _h(a){return!1===ol(a)}function vd(a){return a&&"string"==typeof a.scope}function wh(a){return ph(a,{safe:!0})}const Ll=new o.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>uc}),uc={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function Yf(a={}){return{...uc,...a,missingHandler:{...uc.missingHandler,...a.missingHandler},flatten:{...uc.flatten,...a.flatten}}}const Eh=new o.nKC("TRANSLOCO_TRANSPILER");let Ch=(()=>{class a{interpolationMatcher;constructor(i){this.interpolationMatcher=function h(a){const[s,i]=a.interpolation;return new RegExp(`${s}(.*?)${i}`,"g")}(i??uc)}transpile(i,c={},f,C){return rl(i)?i.replace(this.interpolationMatcher,(M,H)=>(H=H.trim(),_h(c[H])?c[H]:_h(f[H])?this.transpile(f[H],c,f,C):"")):(c&&(Kc(i)?i=this.handleObject(i,c,f,C):Array.isArray(i)&&(i=this.handleArray(i,c,f,C))),i)}handleObject(i,c={},f,C){let M=i;return Object.keys(c).forEach(H=>{const ie=gh(M,H),Fe=gh(c,H),Nt=this.transpile(ie,Fe,f,C);M=function vh(a,s,i){a={...a};const c=s.split("."),f=c.length-1;return c.reduce((C,M,H)=>(C[M]=H===f?i:Array.isArray(C[M])?C[M].slice():{...C[M]},C&&C[M]),a),a}(M,H,Nt)}),M}handleArray(i,c={},f,C){return i.map(M=>this.transpile(M,c,f,C))}static \u0275fac=function(c){return new(c||a)(o.KVO(Ll,8))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const I=new o.nKC("TRANSLOCO_MISSING_HANDLER");let P=(()=>{class a{handle(i,c){return c.missingHandler.logMissingKey&&!c.prodMode&&console.warn(`%c Missing translation for '${i}'`,"font-size: 12px; color: red"),i}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const G=new o.nKC("TRANSLOCO_INTERCEPTOR");let ae=(()=>{class a{preSaveTranslation(i){return i}preSaveTranslationKey(i,c){return c}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const pe=new o.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Un,ke=(()=>{class a{userConfig;constructor(i){this.userConfig=i}getNextLangs(){const i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(c){return new(c||a)(o.KVO(Ll))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();function it(a){if(!a)return"";const s=a.split("/");return s.pop(),s.join("/")}function ht(a){return a?a.split("/").pop():""}function Vt(a){return{scope:it(a)||null,langName:ht(a)}}function dn(a){const{path:s,inlineLoader:i,mainLoader:c,data:f}=a;if(i){if(!1===function ks(a){return"function"==typeof a}(i[s]))throw`You're using an inline loader but didn't provide a loader for ${s}`;return i[s]().then(M=>M.default?M.default:M)}return c.getTranslation(s,f)}let qn=(()=>{class a{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 $r.B;events$=this.events.asObservable();config;constructor(i,c,f,C,M,H){this.loader=i,this.parser=c,this.missingHandler=f,this.interceptor=C,this.fallbackStrategy=H,this.loader||(this.loader=new zf(this.translations)),Un=this,this.config=JSON.parse(JSON.stringify(M)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new bt.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(ie=>{"translationLoadSuccess"===ie.type&&ie.wasFailure&&this.setActiveLang(ie.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:Vt(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,c={}){const f=this.cache.get(i);if(f)return f;let C;const M=this._isLangScoped(i);let H;M&&(H=it(i));const ie={path:i,mainLoader:this.loader,inlineLoader:c.inlineLoader,data:M?{scope:H}:void 0};if(this.useFallbackTranslation(i)){const Nt=M?`${H}/${this.firstFallbackLang}`:this.firstFallbackLang,Yt=function vn({mainLoader:a,path:s,data:i,fallbackPath:c,inlineLoader:f}){return(c?[s,c]:[s]).map(M=>{const H=dn({path:M,mainLoader:a,inlineLoader:f,data:i});return(0,lc.H)(H).pipe((0,qo.T)(ie=>({translation:ie,lang:M})))})}({...ie,fallbackPath:Nt});C=(0,El.p)(Yt)}else{const Nt=dn(ie);C=(0,lc.H)(Nt)}const Fe=C.pipe(function Hc(a=1/0){let s;s=a&&"object"==typeof a?a:{count:a};const{count:i=1/0,delay:c,resetOnSuccess:f=!1}=s;return i<=0?md.D:(0,hd.N)((C,M)=>{let ie,H=0;const Fe=()=>{let Nt=!1;ie=C.subscribe((0,jc._)(M,Yt=>{f&&(H=0),M.next(Yt)},void 0,Yt=>{if(H++{ie?(ie.unsubscribe(),ie=null,Fe()):Nt=!0};if(null!=c){const wn="number"==typeof c?(0,Hf.O)(c):(0,dd.Tg)(c(Yt,H)),Dn=(0,jc._)(M,()=>{Dn.unsubscribe(),jn()},()=>{M.complete()});wn.subscribe(Dn)}else jn()}else M.error(Yt)})),Nt&&(ie.unsubscribe(),ie=null,Fe())};Fe()})}(this.config.failedRetries),(0,Uc.M)(Nt=>{Array.isArray(Nt)?Nt.forEach(Yt=>{this.handleSuccess(Yt.lang,Yt.translation),Yt.lang!==i&&this.cache.set(Yt.lang,(0,U.of)({}))}):this.handleSuccess(i,Nt)}),(0,$c.W)(Nt=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,Nt),this.handleFailure(i,c))),(0,_m.t)(1));return this.cache.set(i,Fe),Fe}translate(i,c={},f=this.getActiveLang()){if(!i)return i;const{scope:C,resolveLang:M}=this.resolveLangAndScope(f);if(Array.isArray(i))return i.map(Fe=>this.translate(C?`${C}.${Fe}`:Fe,c,M));i=C?`${C}.${i}`:i;const H=this.getTranslation(M),ie=H[i];return ie?this.parser.transpile(ie,c,H,i):this._handleMissingKey(i,ie,c)}selectTranslate(i,c,f,C=!1){let M;const H=(Fe,Nt)=>this.load(Fe,Nt).pipe((0,qo.T)(()=>C?this.translateObject(i,c,Fe):this.translate(i,c,Fe)));if(ol(f))return this.langChanges$.pipe((0,Me.n)(Fe=>H(Fe)));if(function _d(a){return Array.isArray(a)&&a.every(vd)}(f)||vd(f)){const Fe=Array.isArray(f)?f[0]:f;f=Fe.scope,M=function Ft(a,s){return function Xf(a){return a&&Kc(a.loader)}(a)?function Kt(a,s){return Object.keys(a).reduce((i,c)=>(i[`${s}/${c}`]=a[c],i),{})}(a.loader,s):void 0}(Fe,Fe.scope)}if(this.isLang(f)||this.isScopeWithLang(f))return H(f);const ie=f;return this.langChanges$.pipe((0,Me.n)(Fe=>H(`${ie}/${Fe}`,{inlineLoader:M})))}isScopeWithLang(i){return this.isLang(ht(i))}translateObject(i,c={},f=this.getActiveLang()){if(rl(i)||Array.isArray(i)){const{resolveLang:M,scope:H}=this.resolveLangAndScope(f);if(Array.isArray(i))return i.map(Nt=>this.translateObject(H?`${H}.${Nt}`:Nt,c,M));const ie=this.getTranslation(M),Fe=function bh(a){return gd(a)}(this.getObjectByKey(ie,i=H?`${H}.${i}`:i));return function Wf(a){return 0===fu(a)}(Fe)?this.translate(i,c,f):this.parser.transpile(Fe,c,ie,i)}const C=[];for(const[M,H]of this.getEntries(i))C.push(this.translateObject(M,H,f));return C}selectTranslateObject(i,c,f){if(rl(i)||Array.isArray(i))return this.selectTranslate(i,c,f,!0);const[[C,M],...H]=this.getEntries(i);return this.selectTranslateObject(C,M,f).pipe((0,qo.T)(ie=>{const Fe=[ie];for(const[Nt,Yt]of H)Fe.push(this.translateObject(Nt,Yt,f));return Fe}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{const{scope:c,resolveLang:f}=this.resolveLangAndScope(i),C=this.translations.get(f)||{};return this.getObjectByKey(C,c)}}return this.translations}selectTranslation(i){let c=this.langChanges$;if(i){const f=ht(i)!==i;c=this.isLang(i)||f?(0,U.of)(i):this.langChanges$.pipe((0,qo.T)(C=>`${i}/${C}`))}return c.pipe((0,Me.n)(f=>this.load(f).pipe((0,qo.T)(()=>this.getTranslation(f)))))}setTranslation(i,c=this.getActiveLang(),f={}){const M={merge:!0,emitChange:!0,...f},H=it(c);let ie=i;if(H){const wn=this.getMappedScope(H);ie=wh({[wn]:i})}const Fe=H?ht(c):c,Nt={...M.merge&&this.getTranslation(Fe),...ie},Yt=this.config.flatten.aot?Nt:wh(Nt),jn=this.interceptor.preSaveTranslation(Yt,Fe);this.translations.set(Fe,jn),M.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,c,f=this.getActiveLang(),C={}){const M=this.interceptor.preSaveTranslationKey(i,c,f);this.setTranslation({[i]:M},f,{...C,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:i}){const c=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(c)&&(this.firstFallbackLang=c)}_handleMissingKey(i,c,f){if(this.config.missingHandler.allowEmpty&&""===c)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const C=this.translate(i,f,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,C}return this.missingHandler.handle(i,this.getMissingHandlerData(),f)}_isLangScoped(i){return-1===this.getAvailableLangsIds().indexOf(i)}isLang(i){return-1!==this.getAvailableLangsIds().indexOf(i)}_loadDependencies(i,c){const f=ht(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(f)?(0,zc.z)([this.load(f),this.load(i,{inlineLoader:c})]):this.load(i,{inlineLoader:c})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(ht(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,c){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=c}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(i){return fu(this.getTranslation(i))}getAvailableLangsIds(){return rl(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(c=>c.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,c){this.setTranslation(c,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Vt(i)}),this.failedLangs.forEach(f=>this.cache.delete(f)),this.failedLangs.clear()}handleFailure(i,c){ol(c.failedCounter)&&(c.failedCounter=0,c.fallbackLangs||(c.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));const f=i.split("/"),M=c.fallbackLangs[c.failedCounter];if(this.failedLangs.add(i),this.cache.has(M))return this.handleSuccess(M,this.getTranslation(M)),$f.w;if(!M||M===f[f.length-1]){let Fe="Unable to load translation and all the fallback languages";throw f.length>1&&(Fe+=", did you misspelled the scope name?"),new Error(Fe)}let ie=M;return f.length>1&&(f[f.length-1]=M,ie=f.join("/")),c.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Vt(i)}),this.load(ie,c)}getMappedScope(i){const{scopeMapping:c={}}=this.config;return c[i]||function Kf(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,(s,i)=>0==i?s.toLowerCase():s.toUpperCase()).replace(/\s+|_|-|\//g,"")}(i)}resolveLangAndScope(i){let f,c=i;if(this._isLangScoped(i)){const C=ht(i),M=this.isLang(C);c=M?C:this.getActiveLang(),f=this.getMappedScope(M?it(i):i)}return{scope:f,resolveLang:c}}getObjectByKey(i,c){const f={},C=`${c}.`;for(const M in i)M.startsWith(C)&&(f[M.replace(C,"")]=i[M]);return f}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(c){return new(c||a)(o.KVO(mh,8),o.KVO(Eh),o.KVO(I),o.KVO(G),o.KVO(Ll),o.KVO(pe))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function No(a){return(0,o.EmA)([{provide:Eh,useClass:a,deps:[Ll]}])}function ps(a){return(0,o.EmA)([{provide:pe,useClass:a,deps:[Ll]}])}function ms(a){return(0,o.EmA)([{provide:I,useClass:a}])}function Ns(a){return(0,o.EmA)([{provide:G,useClass:a}])}new o.nKC("TRANSLOCO_LANG"),new o.nKC("TRANSLOCO_LOADING_TEMPLATE"),new o.nKC("TRANSLOCO_SCOPE"),new o.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new o.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Xc=v(2771);let pu=(()=>{class a{constructor(){this._httpClient=(0,o.WQX)(be.Qq),this._navigation=new Xc.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Uc.M)(i=>{this._navigation.next(i)}))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),eb=(()=>{class a{constructor(i){this._httpClient=i,this._chat=new bt.t(null),this._chats=new bt.t(null)}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}getChats(){return this._httpClient.get("api/apps/chat/chats").pipe((0,Uc.M)(i=>{this._chats.next(i)}))}getChatById(i){return this._httpClient.get("api/apps/chat/chat",{params:{id:i}}).pipe((0,qo.T)(c=>(this._chat.next(c),c)),(0,Me.n)(c=>c?(0,U.of)(c):(0,re.$)("Could not found chat with id of "+i+"!")))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const Qf=new class ym{constructor(s){this.version=s,this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}("0.0.8").full;var Wr=v(6977),xh=v(4085),yd=v(7575);function Jg(a,s){if(1&a&&o.nrm(0,"mat-progress-bar",0),2&a){const i=o.XpG();o.Y8G("mode",i.mode)("value",i.progress)}}let Sh=(()=>{class a{constructor(){this._angorLoadingService=(0,o.WQX)(Ve),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new $r.B}ngOnChanges(i){"autoMode"in i&&this._angorLoadingService.setAutoMode((0,xh.he)(i.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.mode=i}),this._angorLoadingService.progress$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.progress=i}),this._angorLoadingService.show$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.show=i})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],standalone:!0,features:[o.OA$,o.aNF],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(c,f){1&c&&o.DNE(0,Jg,1,2,"mat-progress-bar",0),2&c&&o.vxM(f.show?0:-1)},dependencies:[yd.PO,yd.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return a})();function nb(a,s){1&a&&o.nrm(0,"router-outlet")}let zE=(()=>{class a{constructor(){this._unsubscribeAll=new $r.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["empty-layout"]],standalone:!0,features:[o.aNF],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"div",0)(2,"div",1),o.DNE(3,nb,1,0,"router-outlet"),o.k0s()()),2&c&&(o.R7$(3),o.vxM(3))},dependencies:[Sh,y.n3],encapsulation:2})}}return a})();var Wa=v(8834),Gr=v(9213),ta=v(4823);function Zf(a,s){1&a&&o.nrm(0,"mat-icon",3)}let Jf=(()=>{class a{constructor(){this._document=(0,o.WQX)(et.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],standalone:!0,features:[o.aNF],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){return o.eBV(C),o.Njj(f.toggleFullscreen())}),o.eu8(1,2),o.k0s(),o.DNE(2,Zf,1,0,"ng-template",null,0,o.C5r)}if(2&c){const C=o.sdS(3);o.Y8G("matTooltip",f.tooltip||"Toggle Fullscreen"),o.R7$(),o.Y8G("ngTemplateOutlet",f.iconTpl||C)}},dependencies:[Wa.Hl,Wa.iY,ta.uc,ta.oV,et.T3,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})();var qf=v(1648);let Aa=(()=>{class a{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(i,c){this._componentRegistry.set(i,c)}deregisterComponent(i){this._componentRegistry.delete(i)}getComponent(i){return this._componentRegistry.get(i)}storeNavigation(i,c){this._navigationStore.set(i,c)}getNavigation(i){return this._navigationStore.get(i)??[]}deleteNavigation(i){this._navigationStore.has(i)||console.warn(`Navigation with the key '${i}' does not exist.`),this._navigationStore.delete(i)}getFlatNavigation(i,c=[]){for(const f of i)"basic"===f.type?c.push(f):f.children&&this.getFlatNavigation(f.children,c);return c}getItem(i,c){for(const f of c){if(f.id===i)return f;if(f.children){const C=this.getItem(i,f.children);if(C)return C}}return null}getItemParent(i,c,f){for(const C of c){if(C.id===i)return f;if(C.children){const M=this.getItemParent(i,C.children,C);if(M)return M}}return null}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Dl=v(9115);const bd=a=>({"angor-horizontal-navigation-item-active-forced":a}),bm=a=>[a];function mu(a,s){1&a&&o.eu8(0)}function qg(a,s){if(1&a&&(o.j41(0,"div",2),o.DNE(1,mu,1,0,"ng-container",7),o.k0s()),2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,bd,M.item.active))("routerLink",o.eq3(12,bm,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function ep(a,s){1&a&&o.eu8(0)}function ev(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,ep,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function tv(a,s){1&a&&o.eu8(0)}function nv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",8),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,tv,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,bd,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wm(a,s){1&a&&o.eu8(0)}function iv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",9),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,wm,1,0,"ng-container",7),o.k0s()}if(2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,bd,M.item.active))("routerLink",o.eq3(12,bm,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function tp(a,s){1&a&&o.eu8(0)}function Em(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",10),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,tp,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wd(a,s){1&a&&o.eu8(0)}function ib(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,wd,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,bd,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function rb(a,s){1&a&&o.eu8(0)}function WE(a,s){if(1&a&&(o.j41(0,"div",6),o.DNE(1,rb,1,0,"ng-container",7),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function np(a,s){if(1&a&&o.nrm(0,"mat-icon",11),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Cm(a,s){if(1&a&&(o.j41(0,"div",15)(1,"span",14),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function rv(a,s){if(1&a&&(o.j41(0,"div",16)(1,"div",17),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function ov(a,s){if(1&a&&(o.DNE(0,np,1,2,"mat-icon",11),o.j41(1,"div",12)(2,"div",13)(3,"span",14),o.EFF(4),o.k0s()(),o.DNE(5,Cm,3,2,"div",15),o.k0s(),o.DNE(6,rv,3,2,"div",16)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Dm=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",1),o.DNE(1,qg,2,14,"div",2)(2,ev,2,4,"a",3)(3,nv,2,5,"div",4)(4,iv,2,14,"div",2)(5,Em,2,4,"a",5)(6,ib,2,5,"div",4)(7,WE,2,1,"div",6),o.k0s(),o.DNE(8,ov,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-horizontal-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.vxM(!f.item.link||f.item.externalLink||f.item.function||f.item.disabled?-1:1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&!f.item.function&&!f.item.disabled?2:-1),o.R7$(),o.vxM(f.item.link||!f.item.function||f.item.disabled?-1:3),o.R7$(),o.vxM(f.item.link&&!f.item.externalLink&&f.item.function&&!f.item.disabled?4:-1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&f.item.function&&!f.item.disabled?5:-1),o.R7$(),o.vxM(f.item.link||f.item.function||f.item.disabled?-1:6),o.R7$(),o.vxM(f.item.disabled?7:-1))},dependencies:[et.YU,y.Wk,y.wQ,ta.uc,ta.oV,et.T3,Dl.Cn,Dl.fb,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),gu=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();const ob=["matMenu"],sb=(a,s)=>({"angor-horizontal-navigation-menu-active":a,"angor-horizontal-navigation-menu-active-forced":s}),sv=a=>({$implicit:a}),ab=(a,s)=>({"angor-horizontal-navigation-item-disabled":a,"angor-horizontal-navigation-item-active-forced":s});function lb(a,s){1&a&&o.eu8(0)}function hc(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",6,2),o.bIt("onMenuOpen",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.triggerChangeDetection())})("onMenuClose",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.triggerChangeDetection())}),o.DNE(2,lb,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.sdS(1),c=o.XpG(),f=o.sdS(2),C=o.sdS(6);o.Y8G("ngClass",o.l_i(4,sb,i.menuOpen,c.item.active))("matMenuTriggerFor",f),o.R7$(2),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,sv,c.item))}}function Ed(a,s){if(1&a&&(o.j41(0,"div",8),o.nrm(1,"angor-horizontal-navigation-basic-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("disabled",i.disabled),o.R7$(),o.Y8G("item",i)("name",c.name)}}function cb(a,s){1&a&&o.eu8(0)}function ub(a,s){if(1&a&&(o.j41(0,"div",9),o.DNE(1,cb,1,0,"ng-container",7),o.nrm(2,"angor-horizontal-navigation-branch-item",12,3),o.k0s()),2&a){const i=o.sdS(3),c=o.XpG(2).$implicit,f=o.XpG(),C=o.sdS(6);o.Y8G("disabled",c.disabled)("matMenuTriggerFor",i.matMenu),o.R7$(),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,sv,c)),o.R7$(),o.Y8G("child",!0)("item",c)("name",f.name)}}function db(a,s){if(1&a&&(o.j41(0,"div",10),o.nrm(1,"angor-horizontal-navigation-divider-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.R7$(),o.Y8G("item",i)("name",c.name)}}function hb(a,s){if(1&a&&o.DNE(0,Ed,2,3,"div",8)(1,ub,4,9,"div",9)(2,db,2,2,"div",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1)}}function fb(a,s){if(1&a&&o.DNE(0,hb,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function pb(a,s){if(1&a&&o.nrm(0,"mat-icon",15),2&a){const i=o.XpG().$implicit;o.Y8G("ngClass",null==i.classes?null:i.classes.icon)("svgIcon",i.icon)}}function av(a,s){if(1&a&&(o.j41(0,"div",19)(1,"span",18),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",null==i.classes?null:i.classes.subtitle),o.R7$(),o.SpI(" ",i.subtitle," ")}}function mb(a,s){if(1&a&&(o.j41(0,"div",20)(1,"div",21),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",i.badge.classes),o.R7$(),o.SpI(" ",i.badge.title," ")}}function gb(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.DNE(2,pb,1,2,"mat-icon",15),o.j41(3,"div",16)(4,"div",17)(5,"span",18),o.EFF(6),o.k0s()(),o.DNE(7,av,3,2,"div",19),o.k0s(),o.DNE(8,mb,3,2,"div",20),o.k0s()()),2&a){const i=s.$implicit;o.AVh("angor-horizontal-navigation-item-has-subtitle",!!i.subtitle),o.Y8G("ngClass",null==i.classes?null:i.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.l_i(10,ab,i.disabled,i.active))("matTooltip",i.tooltip||""),o.R7$(),o.vxM(i.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==i.classes?null:i.classes.title),o.R7$(),o.SpI(" ",i.title," "),o.R7$(),o.vxM(i.subtitle?7:-1),o.R7$(),o.vxM(i.badge?8:-1)}}let vb=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this.child=!1,this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(c,f){if(1&c&&o.GBs(ob,7),2&c){let C;o.mGM(C=o.lsd())&&(f.matMenu=C.first)}},inputs:{child:"child",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.DNE(0,hc,3,9,"div",4),o.j41(1,"mat-menu",5,0),o.Z7z(3,fb,1,1,null,null,f.trackByFn,!0),o.k0s(),o.DNE(5,gb,9,13,"ng-template",null,1,o.C5r)),2&c&&(o.vxM(f.child?-1:0),o.R7$(),o.Y8G("overlapTrigger",!1),o.R7$(2),o.Dyx(f.item.children))},dependencies:()=>[a,et.YU,Dl.Cn,Dl.kk,Dl.fb,Dl.Cp,et.T3,Dm,gu,ta.uc,ta.oV,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),_b=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();function ip(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-basic-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function fc(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-branch-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ah(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function lv(a,s){if(1&a&&o.DNE(0,ip,1,2,"angor-horizontal-navigation-basic-item",1)(1,fc,1,2,"angor-horizontal-navigation-branch-item",1)(2,Ah,1,2,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("spacer"===i.type?2:-1)}}function cv(a,s){if(1&a&&o.DNE(0,lv,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let uv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new Xc.m(1),this._unsubscribeAll=new $r.B}ngOnChanges(i){"navigation"in i&&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(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],standalone:!0,features:[o.OA$,o.aNF],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(c,f){1&c&&(o.j41(0,"div",0),o.Z7z(1,cv,1,1,null,null,f.trackByFn,!0),o.k0s()),2&c&&(o.R7$(),o.Dyx(f.navigation))},dependencies:[Dm,vb,_b],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}\n"],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();const xm=a=>({"angor-vertical-navigation-item-active-forced":a}),yb=a=>[a];function GE(a,s){1&a&&o.eu8(0)}function Sm(a,s){if(1&a&&(o.j41(0,"a",2),o.DNE(1,GE,1,0,"ng-container",6),o.k0s()),2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,xm,M.item.active))("routerLink",o.eq3(12,yb,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function Am(a,s){1&a&&o.eu8(0)}function KE(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,Am,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function XE(a,s){1&a&&o.eu8(0)}function dv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,XE,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,xm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function bb(a,s){1&a&&o.eu8(0)}function wb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",8),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,bb,1,0,"ng-container",6),o.k0s()}if(2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,xm,M.item.active))("routerLink",o.eq3(12,yb,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function Eb(a,s){1&a&&o.eu8(0)}function Cb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",9),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,Eb,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Db(a,s){1&a&&o.eu8(0)}function hv(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,Db,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,xm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function fv(a,s){1&a&&o.eu8(0)}function xb(a,s){if(1&a&&(o.j41(0,"div",5),o.DNE(1,fv,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Sb(a,s){if(1&a&&o.nrm(0,"mat-icon",10),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function pv(a,s){if(1&a&&(o.j41(0,"div",14)(1,"span",13),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function rp(a,s){if(1&a&&(o.j41(0,"div",15)(1,"div",16),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function mv(a,s){if(1&a&&(o.DNE(0,Sb,1,2,"mat-icon",10),o.j41(1,"div",11)(2,"div",12)(3,"span",13),o.EFF(4),o.k0s()(),o.DNE(5,pv,3,2,"div",14),o.k0s(),o.DNE(6,rp,3,2,"div",15)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Cd=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",1),o.DNE(1,Sm,2,14,"a",2)(2,KE,2,4,"a",3)(3,dv,2,5,"div",4)(4,wb,2,14,"a",2)(5,Cb,2,4,"a",3)(6,hv,2,5,"div",4)(7,xb,2,2,"div",5),o.k0s(),o.DNE(8,mv,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.vxM(!f.item.link||f.item.externalLink||f.item.function||f.item.disabled?-1:1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&!f.item.function&&!f.item.disabled?2:-1),o.R7$(),o.vxM(f.item.link||!f.item.function||f.item.disabled?-1:3),o.R7$(),o.vxM(f.item.link&&!f.item.externalLink&&f.item.function&&!f.item.disabled?4:-1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&f.item.function&&!f.item.disabled?5:-1),o.R7$(),o.vxM(f.item.link||f.item.function||f.item.disabled?-1:6),o.R7$(),o.vxM(f.item.disabled?7:-1))},dependencies:[et.YU,y.Wk,y.wQ,ta.uc,ta.oV,et.T3,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),op=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})(),Vl=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();function gv(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Ab(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Tm(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",8),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function Im(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Tb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Ib(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Mb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ob(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function vv(a,s){if(1&a&&o.DNE(0,Im,1,2,"angor-vertical-navigation-basic-item",9)(1,Tb,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Ib,1,2,"angor-vertical-navigation-divider-item",9)(3,Mb,1,2,"angor-vertical-navigation-group-item",9)(4,Ob,1,2,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function YE(a,s){if(1&a&&o.DNE(0,vv,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let _v=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,gv,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,Ab,3,2,"div",6),o.k0s(),o.DNE(8,Tm,3,2,"div",7),o.k0s()(),o.Z7z(9,YE,1,1,null,null,f.trackByFn,!0)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(2),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.Dyx(f.item.children))},dependencies:()=>[a,et.YU,Gr.m_,Gr.An,Cd,bv,op,Vl],encapsulation:2,changeDetection:0})}}return a})();const Th=a=>({"angor-vertical-navigation-item-disabled":a});function Rb(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function kb(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Nb(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",10),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function yv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Pb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Fb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Lb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Bb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ub(a,s){if(1&a&&o.DNE(0,yv,1,2,"angor-vertical-navigation-basic-item",11)(1,Pb,1,3,"angor-vertical-navigation-collapsable-item",12)(2,Fb,1,2,"angor-vertical-navigation-divider-item",11)(3,Lb,1,2,"angor-vertical-navigation-group-item",11)(4,Bb,1,2,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function Vb(a,s){if(1&a&&o.DNE(0,Ub,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Mm(a,s){if(1&a&&(o.j41(0,"div",9),o.Z7z(1,Vb,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("@expandCollapse",void 0),o.R7$(),o.Dyx(i.item.children)}}let bv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Aa),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&this._isChildrenOf(i,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&(this._isChildrenOf(this.item,i)||this._hasActiveChild(this.item,this._router.url)||this.item!==i&&this.collapse())}),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this._hasActiveChild(this.item,i.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(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(i,c){return c.id||i}_hasActiveChild(i,c){const f=i.children;if(!f)return!1;for(const C of f)if(C.children&&this._hasActiveChild(C,c)||C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0;return!1}_isChildrenOf(i,c){const f=i.children;if(!f)return!1;if(f.indexOf(c)>-1)return!0;for(const C of f)if(C.children&&this._isChildrenOf(C,c))return!0;return!1}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(c,f){2&c&&o.HbH(f.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.bIt("click",function(){return f.toggleCollapsable()}),o.DNE(2,Rb,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,kb,3,2,"div",6),o.k0s(),o.DNE(8,Nb,3,2,"div",7),o.nrm(9,"mat-icon",8),o.k0s()(),o.DNE(10,Mm,3,1,"div",9)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.eq3(12,Th,f.item.disabled))("matTooltip",f.item.tooltip||""),o.R7$(),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.Y8G("svgIcon","heroicons_solid:chevron-right"),o.R7$(),o.vxM(f.isCollapsed?-1:10))},dependencies:()=>[a,et.YU,ta.uc,ta.oV,Gr.m_,Gr.An,Cd,op,_v,Vl],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();const QE=(a,s,i)=>({"angor-vertical-navigation-item-active":a,"angor-vertical-navigation-item-disabled":s,"angor-vertical-navigation-item-active-forced":i});function Om(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function ZE(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function JE(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",9),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function qE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function eC(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function tC(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function jb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function sp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function ap(a,s){if(1&a&&o.DNE(0,qE,1,2,"angor-vertical-navigation-basic-item",10)(1,eC,1,3,"angor-vertical-navigation-collapsable-item",11)(2,tC,1,2,"angor-vertical-navigation-divider-item",10)(3,jb,1,2,"angor-vertical-navigation-group-item",10)(4,sp,1,2,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function wv(a,s){if(1&a&&o.DNE(0,ap,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Ev(a,s){if(1&a&&(o.j41(0,"div",8),o.Z7z(1,wv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Dyx(i.item.children)}}let Cv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Aa),this.active=!1,this._unsubscribeAll=new $r.B}ngOnChanges(i){"activeItemId"in i&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this._markIfActive(i.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const f=i.children;if(!f)return!1;for(const C of f){if(C.children&&this._hasActiveChild(C,c))return!0;if("basic"===C.type&&C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0}return!1}_markIfActive(i){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,i)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},standalone:!0,features:[o.OA$,o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,Om,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,ZE,3,2,"div",6),o.k0s(),o.DNE(8,JE,3,2,"div",7),o.k0s()(),o.DNE(9,Ev,3,0,"div",8)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.sMw(11,QE,f.active,f.item.disabled,f.item.active))("matTooltip",f.item.tooltip||""),o.R7$(),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.vxM(f.skipChildren?-1:9))},dependencies:[et.YU,ta.uc,ta.oV,Gr.m_,Gr.An,Cd,bv,op,_v,Vl],encapsulation:2,changeDetection:0})}}return a})();class Hb{constructor(s,i,c,f){this.x=s,this.y=i,this.w=c,this.h=f}}class Dv{constructor(s,i){this.x=s,this.y=i}}var xv=v(2401);function pa(a){return getComputedStyle(a)}function bo(a,s){for(var i in s){var c=s[i];"number"==typeof c&&(c+="px"),a.style[i]=c}return a}function na(a){var s=document.createElement("div");return s.className=a,s}var Rm=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function vu(a,s){if(!Rm)throw new Error("No element matching method supported");return Rm.call(a,s)}function Dd(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function $b(a,s){return Array.prototype.filter.call(a.children,function(i){return vu(i,s)})}var gs={main:"ps",rtl:"ps__rtl",element:{thumb:function(a){return"ps__thumb-"+a},rail:function(a){return"ps__rail-"+a},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(a){return"ps--active-"+a},scrolling:function(a){return"ps--scrolling-"+a}}},km={x:null,y:null};function Nm(a,s){var i=a.element.classList,c=gs.state.scrolling(s);i.contains(c)?clearTimeout(km[s]):i.add(c)}function zb(a,s){km[s]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(gs.state.scrolling(s))},a.settings.scrollingThreshold)}var _u=function(s){this.element=s,this.handlers={}},cp={isEmpty:{configurable:!0}};_u.prototype.bind=function(s,i){typeof this.handlers[s]>"u"&&(this.handlers[s]=[]),this.handlers[s].push(i),this.element.addEventListener(s,i,!1)},_u.prototype.unbind=function(s,i){var c=this;this.handlers[s]=this.handlers[s].filter(function(f){return!(!i||f===i)||(c.element.removeEventListener(s,f,!1),!1)})},_u.prototype.unbindAll=function(){for(var s in this.handlers)this.unbind(s)},cp.isEmpty.get=function(){var a=this;return Object.keys(this.handlers).every(function(s){return 0===a.handlers[s].length})},Object.defineProperties(_u.prototype,cp);var xd=function(){this.eventElements=[]};function pc(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var s=document.createEvent("CustomEvent");return s.initCustomEvent(a,!1,!1,void 0),s}function Sd(a,s,i,c,f){var C;if(void 0===c&&(c=!0),void 0===f&&(f=!1),"top"===s)C=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==s)throw new Error("A proper axis should be provided");C=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Sv(a,s,i,c,f){var C=i[0],M=i[1],H=i[2],ie=i[3],Fe=i[4],Nt=i[5];void 0===c&&(c=!0),void 0===f&&(f=!1);var Yt=a.element;a.reach[ie]=null,Yt[H]<1&&(a.reach[ie]="start"),Yt[H]>a[C]-a[M]-1&&(a.reach[ie]="end"),s&&(Yt.dispatchEvent(pc("ps-scroll-"+ie)),s<0?Yt.dispatchEvent(pc("ps-scroll-"+Fe)):s>0&&Yt.dispatchEvent(pc("ps-scroll-"+Nt)),c&&function lp(a,s){Nm(a,s),zb(a,s)}(a,ie)),a.reach[ie]&&(s||f)&&Yt.dispatchEvent(pc("ps-"+ie+"-reach-"+a.reach[ie]))}(a,i,C,c,f)}function Do(a){return parseInt(a,10)||0}xd.prototype.eventElement=function(s){var i=this.eventElements.filter(function(c){return c.element===s})[0];return i||(i=new _u(s),this.eventElements.push(i)),i},xd.prototype.bind=function(s,i,c){this.eventElement(s).bind(i,c)},xd.prototype.unbind=function(s,i,c){var f=this.eventElement(s);f.unbind(i,c),f.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(f),1)},xd.prototype.unbindAll=function(){this.eventElements.forEach(function(s){return s.unbindAll()}),this.eventElements=[]},xd.prototype.once=function(s,i,c){var f=this.eventElement(s),C=function(M){f.unbind(i,C),c(M)};f.bind(i,C)};var Ad={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 jl(a){var s=a.element,i=Math.floor(s.scrollTop),c=s.getBoundingClientRect();a.containerWidth=Math.round(c.width),a.containerHeight=Math.round(c.height),a.contentWidth=s.scrollWidth,a.contentHeight=s.scrollHeight,s.contains(a.scrollbarXRail)||($b(s,gs.element.rail("x")).forEach(function(f){return Dd(f)}),s.appendChild(a.scrollbarXRail)),s.contains(a.scrollbarYRail)||($b(s,gs.element.rail("y")).forEach(function(f){return Dd(f)}),s.appendChild(a.scrollbarYRail)),!a.settings.suppressScrollX&&a.containerWidth+a.settings.scrollXMarginOffset=a.railXWidth-a.scrollbarXWidth&&(a.scrollbarXLeft=a.railXWidth-a.scrollbarXWidth),a.scrollbarYTop>=a.railYHeight-a.scrollbarYHeight&&(a.scrollbarYTop=a.railYHeight-a.scrollbarYHeight),function Gb(a,s){var i={width:s.railXWidth},c=Math.floor(a.scrollTop);i.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+s.containerWidth-s.contentWidth:a.scrollLeft,s.isScrollbarXUsingBottom?i.bottom=s.scrollbarXBottom-c:i.top=s.scrollbarXTop+c,bo(s.scrollbarXRail,i);var f={top:c,height:s.railYHeight};s.isScrollbarYUsingRight?f.right=s.isRtl?s.contentWidth-(s.negativeScrollAdjustment+a.scrollLeft)-s.scrollbarYRight-s.scrollbarYOuterWidth-9:s.scrollbarYRight-a.scrollLeft:f.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+2*s.containerWidth-s.contentWidth-s.scrollbarYLeft-s.scrollbarYOuterWidth:s.scrollbarYLeft+a.scrollLeft,bo(s.scrollbarYRail,f),bo(s.scrollbarX,{left:s.scrollbarXLeft,width:s.scrollbarXWidth-s.railBorderXWidth}),bo(s.scrollbarY,{top:s.scrollbarYTop,height:s.scrollbarYHeight-s.railBorderYWidth})}(s,a),a.scrollbarXActive?s.classList.add(gs.state.active("x")):(s.classList.remove(gs.state.active("x")),a.scrollbarXWidth=0,a.scrollbarXLeft=0,s.scrollLeft=!0===a.isRtl?a.contentWidth:0),a.scrollbarYActive?s.classList.add(gs.state.active("y")):(s.classList.remove(gs.state.active("y")),a.scrollbarYHeight=0,a.scrollbarYTop=0,s.scrollTop=0)}function Av(a,s){return a.settings.minScrollbarLength&&(s=Math.max(s,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(s=Math.min(s,a.settings.maxScrollbarLength)),s}function Td(a,s){var i=s[0],c=s[1],f=s[2],C=s[3],M=s[4],H=s[5],ie=s[6],Fe=s[7],Nt=s[8],Yt=a.element,jn=null,wn=null,Dn=null;function pi($i){$i.touches&&$i.touches[0]&&($i[f]=$i.touches[0].pageY),Yt[ie]=jn+Dn*($i[f]-wn),Nm(a,Fe),jl(a),$i.stopPropagation(),$i.type.startsWith("touch")&&$i.changedTouches.length>1&&$i.preventDefault()}function Fi(){zb(a,Fe),a[Nt].classList.remove(gs.state.clicking),a.event.unbind(a.ownerDocument,"mousemove",pi)}function Ui($i,no){jn=Yt[ie],no&&$i.touches&&($i[f]=$i.touches[0].pageY),wn=$i[f],Dn=(a[c]-a[i])/(a[C]-a[H]),no?a.event.bind(a.ownerDocument,"touchmove",pi):(a.event.bind(a.ownerDocument,"mousemove",pi),a.event.once(a.ownerDocument,"mouseup",Fi),$i.preventDefault()),a[Nt].classList.add(gs.state.clicking),$i.stopPropagation()}a.event.bind(a[M],"mousedown",function($i){Ui($i)}),a.event.bind(a[M],"touchstart",function($i){Ui($i,!0)})}var Lm={"click-rail":function Tv(a){a.event.bind(a.scrollbarY,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarYRail,"mousedown",function(i){var c=i.pageY-window.pageYOffset-a.scrollbarYRail.getBoundingClientRect().top;a.element.scrollTop+=(c>a.scrollbarYTop?1:-1)*a.containerHeight,jl(a),i.stopPropagation()}),a.event.bind(a.scrollbarX,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarXRail,"mousedown",function(i){var c=i.pageX-window.pageXOffset-a.scrollbarXRail.getBoundingClientRect().left;a.element.scrollLeft+=(c>a.scrollbarXLeft?1:-1)*a.containerWidth,jl(a),i.stopPropagation()})},"drag-thumb":function Pm(a){Td(a,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Td(a,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function dp(a){var s=a.element;a.event.bind(a.ownerDocument,"keydown",function(C){if(!(C.isDefaultPrevented&&C.isDefaultPrevented()||C.defaultPrevented)&&(vu(s,":hover")||vu(a.scrollbarX,":focus")||vu(a.scrollbarY,":focus"))){var M=document.activeElement?document.activeElement:a.ownerDocument.activeElement;if(M){if("IFRAME"===M.tagName)M=M.contentDocument.activeElement;else for(;M.shadowRoot;)M=M.shadowRoot.activeElement;if(function up(a){return vu(a,"input,[contenteditable]")||vu(a,"select,[contenteditable]")||vu(a,"textarea,[contenteditable]")||vu(a,"button,[contenteditable]")}(M))return}var H=0,ie=0;switch(C.which){case 37:H=C.metaKey?-a.contentWidth:C.altKey?-a.containerWidth:-30;break;case 38:ie=C.metaKey?a.contentHeight:C.altKey?a.containerHeight:30;break;case 39:H=C.metaKey?a.contentWidth:C.altKey?a.containerWidth:30;break;case 40:ie=C.metaKey?-a.contentHeight:C.altKey?-a.containerHeight:-30;break;case 32:ie=C.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:ie=a.containerHeight;break;case 34:ie=-a.containerHeight;break;case 36:ie=a.contentHeight;break;case 35:ie=-a.contentHeight;break;default:return}a.settings.suppressScrollX&&0!==H||a.settings.suppressScrollY&&0!==ie||(s.scrollTop-=ie,s.scrollLeft+=H,jl(a),function f(C,M){var H=Math.floor(s.scrollTop);if(0===C){if(!a.scrollbarYActive)return!1;if(0===H&&M>0||H>=a.contentHeight-a.containerHeight&&M<0)return!a.settings.wheelPropagation}var ie=s.scrollLeft;if(0===M){if(!a.scrollbarXActive)return!1;if(0===ie&&C<0||ie>=a.contentWidth-a.containerWidth&&C>0)return!a.settings.wheelPropagation}return!0}(H,ie)&&C.preventDefault())}})},wheel:function Fm(a){var s=a.element;function C(M){var H=function c(M){var H=M.deltaX,ie=-1*M.deltaY;return(typeof H>"u"||typeof ie>"u")&&(H=-1*M.wheelDeltaX/6,ie=M.wheelDeltaY/6),M.deltaMode&&1===M.deltaMode&&(H*=10,ie*=10),H!=H&&ie!=ie&&(H=0,ie=M.wheelDelta),M.shiftKey?[-ie,-H]:[H,ie]}(M),ie=H[0],Fe=H[1];if(!function f(M,H,ie){if(!Ad.isWebKit&&s.querySelector("select:focus"))return!0;if(!s.contains(M))return!1;for(var Fe=M;Fe&&Fe!==s;){if(Fe.classList.contains(gs.element.consuming))return!0;var Nt=pa(Fe);if(ie&&Nt.overflowY.match(/(scroll|auto)/)){var Yt=Fe.scrollHeight-Fe.clientHeight;if(Yt>0&&(Fe.scrollTop>0&&ie<0||Fe.scrollTop0))return!0}if(H&&Nt.overflowX.match(/(scroll|auto)/)){var jn=Fe.scrollWidth-Fe.clientWidth;if(jn>0&&(Fe.scrollLeft>0&&H<0||Fe.scrollLeft0))return!0}Fe=Fe.parentNode}return!1}(M.target,ie,Fe)){var Nt=!1;a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(Fe?s.scrollTop-=Fe*a.settings.wheelSpeed:s.scrollTop+=ie*a.settings.wheelSpeed,Nt=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(ie?s.scrollLeft+=ie*a.settings.wheelSpeed:s.scrollLeft-=Fe*a.settings.wheelSpeed,Nt=!0):(s.scrollTop-=Fe*a.settings.wheelSpeed,s.scrollLeft+=ie*a.settings.wheelSpeed),jl(a),Nt=Nt||function i(M,H){var ie=Math.floor(s.scrollTop),Fe=0===s.scrollTop,Nt=ie+s.offsetHeight===s.scrollHeight,Yt=0===s.scrollLeft,jn=s.scrollLeft+s.offsetWidth===s.scrollWidth;return!(Math.abs(H)>Math.abs(M)?Fe||Nt:Yt||jn)||!a.settings.wheelPropagation}(ie,Fe),Nt&&!M.ctrlKey&&(M.stopPropagation(),M.preventDefault())}}typeof window.onwheel<"u"?a.event.bind(s,"wheel",C):typeof window.onmousewheel<"u"&&a.event.bind(s,"mousewheel",C)},touch:function Kb(a){if(Ad.supportsTouch||Ad.supportsIePointer){var s=a.element,f={},C=0,M={},H=null;Ad.supportsTouch?(a.event.bind(s,"touchstart",Nt),a.event.bind(s,"touchmove",jn),a.event.bind(s,"touchend",wn)):Ad.supportsIePointer&&(window.PointerEvent?(a.event.bind(s,"pointerdown",Nt),a.event.bind(s,"pointermove",jn),a.event.bind(s,"pointerup",wn)):window.MSPointerEvent&&(a.event.bind(s,"MSPointerDown",Nt),a.event.bind(s,"MSPointerMove",jn),a.event.bind(s,"MSPointerUp",wn)))}function c(Dn,pi){s.scrollTop-=pi,s.scrollLeft-=Dn,jl(a)}function ie(Dn){return Dn.targetTouches?Dn.targetTouches[0]:Dn}function Fe(Dn){return!(Dn.pointerType&&"pen"===Dn.pointerType&&0===Dn.buttons||!(Dn.targetTouches&&1===Dn.targetTouches.length||Dn.pointerType&&"mouse"!==Dn.pointerType&&Dn.pointerType!==Dn.MSPOINTER_TYPE_MOUSE))}function Nt(Dn){if(Fe(Dn)){var pi=ie(Dn);f.pageX=pi.pageX,f.pageY=pi.pageY,C=(new Date).getTime(),null!==H&&clearInterval(H)}}function jn(Dn){if(Fe(Dn)){var pi=ie(Dn),Fi={pageX:pi.pageX,pageY:pi.pageY},Ui=Fi.pageX-f.pageX,$i=Fi.pageY-f.pageY;if(function Yt(Dn,pi,Fi){if(!s.contains(Dn))return!1;for(var Ui=Dn;Ui&&Ui!==s;){if(Ui.classList.contains(gs.element.consuming))return!0;var $i=pa(Ui);if(Fi&&$i.overflowY.match(/(scroll|auto)/)){var no=Ui.scrollHeight-Ui.clientHeight;if(no>0&&(Ui.scrollTop>0&&Fi<0||Ui.scrollTop0))return!0}if(pi&&$i.overflowX.match(/(scroll|auto)/)){var go=Ui.scrollWidth-Ui.clientWidth;if(go>0&&(Ui.scrollLeft>0&&pi<0||Ui.scrollLeft0))return!0}Ui=Ui.parentNode}return!1}(Dn.target,Ui,$i))return;c(Ui,$i),f=Fi;var no=(new Date).getTime(),go=no-C;go>0&&(M.x=Ui/go,M.y=$i/go,C=no),function i(Dn,pi){var Fi=Math.floor(s.scrollTop),Ui=s.scrollLeft,$i=Math.abs(Dn),no=Math.abs(pi);if(no>$i){if(pi<0&&Fi===a.contentHeight-a.containerHeight||pi>0&&0===Fi)return 0===window.scrollY&&pi>0&&Ad.isChrome}else if($i>no&&(Dn<0&&Ui===a.contentWidth-a.containerWidth||Dn>0&&0===Ui))return!0;return!0}(Ui,$i)&&Dn.preventDefault()}}function wn(){a.settings.swipeEasing&&(clearInterval(H),H=setInterval(function(){a.isInitialized?clearInterval(H):M.x||M.y?Math.abs(M.x)<.01&&Math.abs(M.y)<.01?clearInterval(H):a.element?(c(30*M.x,30*M.y),M.x*=.8,M.y*=.8):clearInterval(H):clearInterval(H)},10))}}},Id=function(s,i){var c=this;if(void 0===i&&(i={}),"string"==typeof s&&(s=document.querySelector(s)),!s||!s.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var f in this.element=s,s.classList.add(gs.main),this.settings={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},i)this.settings[f]=i[f];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Nt,Fe,C=function(){return s.classList.add(gs.state.focus)},M=function(){return s.classList.remove(gs.state.focus)};this.isRtl="rtl"===pa(s).direction,!0===this.isRtl&&s.classList.add(gs.rtl),this.isNegativeScroll=(Fe=s.scrollLeft,s.scrollLeft=-1,Nt=s.scrollLeft<0,s.scrollLeft=Fe,Nt),this.negativeScrollAdjustment=this.isNegativeScroll?s.scrollWidth-s.clientWidth:0,this.event=new xd,this.ownerDocument=s.ownerDocument||document,this.scrollbarXRail=na(gs.element.rail("x")),s.appendChild(this.scrollbarXRail),this.scrollbarX=na(gs.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",C),this.event.bind(this.scrollbarX,"blur",M),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var H=pa(this.scrollbarXRail);this.scrollbarXBottom=parseInt(H.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Do(H.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Do(H.borderLeftWidth)+Do(H.borderRightWidth),bo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Do(H.marginLeft)+Do(H.marginRight),bo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=na(gs.element.rail("y")),s.appendChild(this.scrollbarYRail),this.scrollbarY=na(gs.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",C),this.event.bind(this.scrollbarY,"blur",M),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var ie=pa(this.scrollbarYRail);this.scrollbarYRight=parseInt(ie.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Do(ie.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function Wb(a){var s=pa(a);return Do(s.width)+Do(s.paddingLeft)+Do(s.paddingRight)+Do(s.borderLeftWidth)+Do(s.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Do(ie.borderTopWidth)+Do(ie.borderBottomWidth),bo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Do(ie.marginTop)+Do(ie.marginBottom),bo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:s.scrollLeft<=0?"start":s.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:s.scrollTop<=0?"start":s.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Fe){return Lm[Fe](c)}),this.lastScrollTop=Math.floor(s.scrollTop),this.lastScrollLeft=s.scrollLeft,this.event.bind(this.element,"scroll",function(Fe){return c.onScroll(Fe)}),jl(this)};Id.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,bo(this.scrollbarXRail,{display:"block"}),bo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Do(pa(this.scrollbarXRail).marginLeft)+Do(pa(this.scrollbarXRail).marginRight),this.railYMarginHeight=Do(pa(this.scrollbarYRail).marginTop)+Do(pa(this.scrollbarYRail).marginBottom),bo(this.scrollbarXRail,{display:"none"}),bo(this.scrollbarYRail,{display:"none"}),jl(this),Sd(this,"top",0,!1,!0),Sd(this,"left",0,!1,!0),bo(this.scrollbarXRail,{display:""}),bo(this.scrollbarYRail,{display:""}))},Id.prototype.onScroll=function(s){this.isAlive&&(jl(this),Sd(this,"top",this.element.scrollTop-this.lastScrollTop),Sd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Id.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Dd(this.scrollbarX),Dd(this.scrollbarY),Dd(this.scrollbarXRail),Dd(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Id.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(s){return!s.match(/^ps([-_].+|)$/)}).join(" ")};const yu=Id;var Bm=v(152);let Um=(()=>{class a{constructor(){this._elementRef=(0,o.WQX)(o.aKT),this._platform=(0,o.WQX)(fe.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new $r.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(i){"angorScrollbar"in i&&(this.angorScrollbar=(0,xh.he)(i.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in i&&(this._options=(0,xv.A)({},this._options,i.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Bc.R)(window,"resize").pipe((0,Wr.Q)(this._unsubscribeAll),(0,Bm.B)(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(i="scroll"){return new Hb(this._elementRef.nativeElement[`${i}Left`],this._elementRef.nativeElement[`${i}Top`],this._elementRef.nativeElement[`${i}Width`],this._elementRef.nativeElement[`${i}Height`])}position(i=!1){return!i&&this._ps?new Dv(this._ps.reach.x||0,this._ps.reach.y||0):new Dv(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(i,c,f){null==c&&null==f?this.animateScrolling("scrollTop",i,f):(null!=i&&this.scrollToX(i,f),null!=c&&this.scrollToY(c,f))}scrollToX(i,c){this.animateScrolling("scrollLeft",i,c)}scrollToY(i,c){this.animateScrolling("scrollTop",i,c)}scrollToTop(i=0,c){this.animateScrolling("scrollTop",i,c)}scrollToBottom(i=0,c){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-i,c)}scrollToLeft(i=0,c){this.animateScrolling("scrollLeft",i,c)}scrollToRight(i=0,c){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-i,c)}scrollToElement(i,c=0,f=!1,C){const M=this._elementRef.nativeElement.querySelector(i);if(!M)return;const H=M.getBoundingClientRect(),ie=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(H.left,ie.left,"scrollLeft",c,f,C),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(H.top,ie.top,"scrollTop",c,f,C)}animateScrolling(i,c,f){this._animation&&window.cancelAnimationFrame(this._animation),!f||typeof window>"u"?this._elementRef.nativeElement[i]=c:c!==this._elementRef.nativeElement[i]&&this._smoothScroll(i,c,f)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new yu(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(i,c,f,C,M,H){M&&i<=c-Math.abs(C)||this.animateScrolling(f,i-c+this._elementRef.nativeElement[f]+C,H)}_smoothScroll(i,c,f){let C=0,M=this._elementRef.nativeElement[i];const H=(M-c)/2;let ie=performance.now();const Fe=Nt=>{C+=Math.PI/(f/(Nt-ie));const Yt=Math.round(c+H+H*Math.cos(C));this._elementRef.nativeElement[i]===M&&(C>=Math.PI?this.animateScrolling(i,c,0):(this._elementRef.nativeElement[i]=Yt,M=this._elementRef.nativeElement[i],ie=Nt,this._animation=window.requestAnimationFrame(Fe)))};window.requestAnimationFrame(Fe)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275dir=o.FsC({type:a,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],standalone:!0,features:[o.OA$]})}}return a})();var Hl=v(7987);const Yb=["navigationContent"],Iv=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Mv=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],Ov=a=>({wheelPropagation:a,suppressScrollX:!0}),Vm=()=>({wheelPropagation:!1,suppressScrollX:!0});function Rv(a,s){if(1&a){const i=o.RV6();o.j41(0,"angor-vertical-navigation-aside-item",10),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2).$implicit,C=o.XpG();return o.Njj(C.toggleAside(f))}),o.k0s()}if(2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("activeItemId",c.activeAsideItemId)("autoCollapse",c.autoCollapse)("skipChildren",!0)}}function hp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function bu(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function kv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function jm(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Ih(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Nv(a,s){if(1&a&&o.DNE(0,Rv,1,5,"angor-vertical-navigation-aside-item",7)(1,hp,1,2,"angor-vertical-navigation-basic-item",8)(2,bu,1,3,"angor-vertical-navigation-collapsable-item",9)(3,kv,1,2,"angor-vertical-navigation-divider-item",8)(4,jm,1,3,"angor-vertical-navigation-group-item",9)(5,Ih,1,2,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG().$implicit;o.vxM("aside"===i.type?0:-1),o.R7$(),o.vxM("basic"===i.type?1:-1),o.R7$(),o.vxM("collapsable"===i.type?2:-1),o.R7$(),o.vxM("divider"===i.type?3:-1),o.R7$(),o.vxM("group"===i.type?4:-1),o.R7$(),o.vxM("spacer"===i.type?5:-1)}}function Hm(a,s){if(1&a&&o.DNE(0,Nv,6,6),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function fp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Qb(a,s){if(1&a&&o.DNE(0,fp,1,3,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG().$implicit,c=o.XpG(2);o.vxM("aside"===i.type&&i.id===c.activeAsideItemId?0:-1)}}function Pv(a,s){if(1&a&&o.DNE(0,Qb,1,1),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Zb(a,s){if(1&a&&(o.j41(0,"div",6),o.Z7z(1,Pv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("angorScrollbarOptions",o.lJ4(5,Vm))("@fadeInLeft","left"===i.position)("@fadeInRight","right"===i.position)("@fadeOutLeft","left"===i.position)("@fadeOutRight","right"===i.position),o.R7$(),o.Dyx(i.navigation)}}let Fv=(()=>{class a{constructor(){this._animationBuilder=(0,o.WQX)(mi.S6),this._changeDetectorRef=(0,o.WQX)(o.gRc),this._document=(0,o.WQX)(et.qQ),this._elementRef=(0,o.WQX)(o.aKT),this._renderer2=(0,o.WQX)(o.sFG),this._router=(0,o.WQX)(y.Ix),this._scrollStrategyOptions=(0,o.WQX)(Hl.Tv),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),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 o.bkB,this.modeChanged=new o.bkB,this.openedChanged=new o.bkB,this.positionChanged=new o.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new Xc.m(1),this.onCollapsableItemExpanded=new Xc.m(1),this.onRefreshed=new Xc.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new $r.B,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":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(i){this._angorScrollbarDirectives=i,0!==i.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,bl.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,Wr.Q)(this._unsubscribeAll),(0,Te.c)(250)).subscribe(()=>{i.forEach(c=>{c.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(i){if("appearance"in i&&this.appearanceChanged.next(i.appearance.currentValue),"inner"in i&&(this.inner=(0,xh.he)(i.inner.currentValue)),"mode"in i){const c=i.mode.currentValue,f=i.mode.previousValue;this._disableAnimations(),"over"===f&&"side"===c&&this._hideOverlay(),"side"===f&&"over"===c&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(c),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in i&&this._changeDetectorRef.markForCheck(),"opened"in i&&(this.opened=(0,xh.he)(i.opened.currentValue),this._toggleOpened(this.opened)),"position"in i&&this.positionChanged.next(i.position.currentValue),"transparentOverlay"in i&&(this.transparentOverlay=(0,xh.he)(i.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(i=>{i.forEach(c=>{const f=c.target;if("class"===c.attributeName)if(f.classList.contains("cdk-global-scrollblock")){const C=parseInt(f.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(C)}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(i=>{i.isEnabled()&&i.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const i=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");i&&i.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(i){i.disabled||!i.id||(this.activeAsideItemId=i.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(i){this.activeAsideItemId===i.id?this.closeAside():this.openAside(i)}trackByFn(i,c){return c.id||i}_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([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({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([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({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(i){this.opened=i,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(i)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation"]],viewQuery:function(c,f){if(1&c&&(o.GBs(Yb,5),o.GBs(Um,5)),2&c){let C;o.mGM(C=o.lsd())&&(f._navigationContentEl=C.first),o.mGM(C=o.lsd())&&(f.angorScrollbarDirectives=C)}},hostVars:4,hostBindings:function(c,f){1&c&&o.bIt("mouseenter",function(){return f._onMouseenter()})("mouseleave",function(){return f._onMouseleave()}),2&c&&(o.Aen(f.styleList),o.HbH(f.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:[o.OA$,o.aNF],ngContentSelectors:Mv,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(c,f){1&c&&(o.NAR(Iv),o.j41(0,"div",1)(1,"div",2),o.SdG(2),o.k0s(),o.j41(3,"div",3,0)(5,"div",4),o.SdG(6,1),o.k0s(),o.Z7z(7,Hm,1,1,null,null,f.trackByFn,!0),o.k0s(),o.j41(9,"div",5),o.SdG(10,2),o.k0s()(),o.DNE(11,Zb,3,6,"div",6)),2&c&&(o.R7$(3),o.Y8G("angorScrollbarOptions",o.eq3(2,Ov,f.inner)),o.R7$(4),o.Dyx(f.navigation),o.R7$(4),o.vxM(f.activeAsideItemId?11:-1))},dependencies:[Um,Cv,Cd,bv,op,_v,Vl],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)}\n'],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();var Lv=v(6939),Bv=v(6231);let Uv=(()=>{class a{constructor(i){this.relayService=i,this.notificationSubject=new bt.t([]),this.notificationCount=new bt.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const i=localStorage.getItem("notificationCount");return i?parseInt(i,10):0}loadTimestampFromLocalStorage(){const i=localStorage.getItem("lastNotificationTimestamp");return i?parseInt(i,10):null}saveNotificationData(i,c){localStorage.setItem("notificationCount",i.toString()),localStorage.setItem("lastNotificationTimestamp",c.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const i=localStorage.getItem("notificationSettings");return i?JSON.parse(i):[1,3,4,7,9735]}subscribeToNotifications(i){var c=this;return(0,W.A)(function*(){yield c.relayService.ensureConnectedRelays();const f=c.relayService.getPool(),C=c.relayService.getConnectedRelays();if(0===C.length)throw new Error("No connected relays");const M=c.loadTimestampFromLocalStorage(),H=c.loadFilterPreferences();0===H.length&&H.push(1,3,4,7,9735);const ie={kinds:H,"#p":[i],limit:50,since:M||void 0};return new Promise(Fe=>{f.subscribeMany(C,[ie],{onevent:Yt=>c.handleNotificationEvent(Yt,i),oneose(){Fe()}})})})()}handleNotificationEvent(i,c){if(this.isNotificationEvent(i,c)){const C=new Date(1e3*i.created_at);let M="",H="",ie="";switch(i.kind){case 1:M="Mention",H="Mentioned you in an event.",ie="heroicons_outline:at-symbol";break;case 4:M="Private Message",H="Sent a private message.",ie="heroicons_outline:envelope-open";break;case 9735:M="Zap",H="Received a zap event.",ie="feather:zap";break;case 3:M="New Follower",H="You have a new follower.",ie="heroicons_outline:user-plus";break;case 7:M="New Like",H="You have a new Like.",ie="heroicons_outline:hand-thumb-up";break;default:M="Notification",ie="heroicons_outline:bell"}const Yt=[{id:i.id,icon:ie,title:M,description:H,time:C,kind:i.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(Yt),this.incrementNotificationCount(i.created_at)}}incrementNotificationCount(i){const c=this.notificationCount.value+1;this.notificationCount.next(c),this.saveNotificationData(c,i)}markAllAsRead(){const i=this.notificationSubject.value.map(f=>({...f,read:!0}));this.notificationSubject.next(i),this.notificationCount.next(0);const c=Math.floor(Date.now()/1e3);this.saveNotificationData(0,c)}isNotificationEvent(i,c){return i.tags.some(f=>"p"===f[0]&&f[1]===c)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Bv.b))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var qi=v(4930);const Vv=["notificationsOrigin"],jv=["notificationsPanel"],Md=a=>({unread:a}),Hv=(a,s)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":a,"bg-primary":s});function $v(a,s){if(1&a&&(o.j41(0,"span",4)(1,"span",6),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(2),o.SpI(" ",i.unreadCount," ")}}function Jb(a,s){1&a&&o.eu8(0)}function pp(a,s){if(1&a&&(o.j41(0,"a",23),o.DNE(1,Jb,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("href",i.link,o.B4B),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wu(a,s){1&a&&o.eu8(0)}function $m(a,s){if(1&a&&(o.j41(0,"a",24),o.DNE(1,wu,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("routerLink",i.link),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Mh(a,s){if(1&a&&o.DNE(0,pp,2,2,"a",23)(1,$m,2,2,"a",24),2&a){const i=o.XpG().$implicit;o.vxM(i.useRouter?-1:0),o.R7$(),o.vxM(i.useRouter?1:-1)}}function zv(a,s){1&a&&o.eu8(0)}function zm(a,s){if(1&a&&(o.j41(0,"div",17),o.DNE(1,zv,1,0,"ng-container",25),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function Wm(a,s){if(1&a&&(o.j41(0,"div",26),o.nrm(1,"mat-icon",32),o.k0s()),2&a){const i=o.XpG(2).$implicit;o.R7$(),o.Y8G("svgIcon",i.icon)}}function Gm(a,s){if(1&a&&o.nrm(0,"img",27),2&a){const i=o.XpG(2).$implicit;o.Y8G("src",i.image,o.B4B)("alt","Notification image")}}function Wv(a,s){if(1&a&&o.nrm(0,"div",29),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.title,o.npT)}}function Km(a,s){if(1&a&&o.nrm(0,"div",30),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.description,o.npT)}}function qb(a,s){if(1&a&&(o.DNE(0,Wm,2,1,"div",26)(1,Gm,1,2,"img",27),o.j41(2,"div",28),o.DNE(3,Wv,1,1,"div",29)(4,Km,1,1,"div",30),o.j41(5,"div",31),o.EFF(6),o.nI1(7,"date"),o.k0s()()),2&a){const i=o.XpG().$implicit;o.vxM(i.icon&&!i.image?0:-1),o.R7$(),o.vxM(i.image?1:-1),o.R7$(2),o.vxM(i.title?3:-1),o.R7$(),o.vxM(i.description?4:-1),o.R7$(2),o.SpI(" ",o.i5U(7,5,i.time,"MMM dd, h:mm a")," ")}}function e0(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",16),o.DNE(1,Mh,2,2)(2,zm,2,1,"div",17),o.j41(3,"div",18)(4,"button",19),o.bIt("click",function(){const f=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.toggleRead(f))}),o.nrm(5,"span",20),o.k0s(),o.j41(6,"button",21),o.bIt("click",function(){const f=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.delete(f))}),o.nrm(7,"mat-icon",22),o.k0s()()(),o.DNE(8,qb,8,8,"ng-template",null,2,o.C5r)}if(2&a){const i=s.$implicit;o.Y8G("ngClass",o.eq3(7,Md,!i.read)),o.R7$(),o.vxM(i.link?1:-1),o.R7$(),o.vxM(i.link?-1:2),o.R7$(2),o.Y8G("matTooltip",i.read?"Mark as unread":"Mark as read"),o.R7$(),o.Y8G("ngClass",o.l_i(9,Hv,i.read,!i.read)),o.R7$(),o.Y8G("matTooltip","Remove"),o.R7$(),o.Y8G("svgIcon","heroicons_solid:x-mark")}}function t0(a,s){1&a&&(o.j41(0,"div",15)(1,"div",33),o.nrm(2,"mat-icon",34),o.k0s(),o.j41(3,"div",35),o.EFF(4," No notifications "),o.k0s(),o.j41(5,"div",36),o.EFF(6," When you have notifications, they will appear here. "),o.k0s()()),2&a&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:bell"))}function Gv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.closePanel())}),o.nrm(4,"mat-icon",10),o.k0s()(),o.j41(5,"div",11),o.EFF(6,"Notifications"),o.k0s(),o.j41(7,"div",12)(8,"button",13),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.markAllAsRead())}),o.nrm(9,"mat-icon",10),o.k0s()()(),o.j41(10,"div",14),o.Z7z(11,e0,10,12,null,null,o.BUC().trackByFn,!0),o.DNE(13,t0,7,1,"div",15),o.k0s()()}if(2&a){const i=o.XpG();o.R7$(4),o.Y8G("svgIcon","heroicons_solid:x-mark"),o.R7$(4),o.Y8G("matTooltip","Mark all as read")("disabled",0===i.unreadCount),o.R7$(),o.Y8G("svgIcon","heroicons_solid:envelope-open"),o.R7$(2),o.Dyx(i.notifications),o.R7$(2),o.vxM(i.notifications&&i.notifications.length?-1:13)}}let Kv=(()=>{class a{constructor(i,c,f,C,M){this._notificationService=i,this._changeDetectorRef=c,this._overlay=f,this._viewContainerRef=C,this._signerService=M,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new $r.B}ngOnInit(){const i=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(i).then(()=>{this._notificationService.getNotificationObservable().pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(c=>{this.notifications=c,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(c=>{this.unreadCount=c,this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Lv.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(i){i.read=!i.read}trackByFn(i,c){return c.id}_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"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(Uv),o.rXU(o.gRc),o.rXU(Hl.hJ),o.rXU(o.c1b),o.rXU(qi.A))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["notifications"]],viewQuery:function(c,f){if(1&c&&(o.GBs(Vv,5),o.GBs(jv,5)),2&c){let C;o.mGM(C=o.lsd())&&(f._notificationsOrigin=C.first),o.mGM(C=o.lsd())&&(f._notificationsPanel=C.first)}},exportAs:["notifications"],standalone:!0,features:[o.aNF],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(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",3,0),o.bIt("click",function(){return o.eBV(C),o.Njj(f.openPanel())}),o.DNE(2,$v,3,1,"span",4),o.nrm(3,"mat-icon",5),o.k0s(),o.DNE(4,Gv,14,5,"ng-template",null,1,o.C5r)}2&c&&(o.R7$(2),o.vxM(f.unreadCount>0?2:-1),o.R7$(),o.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,ta.uc,ta.oV,et.YU,et.T3,y.Wk,et.vh],encapsulation:2,changeDetection:0})}}return a})();var n0=v(5888),Eu=v(9417),Xv=v(5542),Cu=v(9888),mp=v(8359),$l=v(7336),Yv=v(9327),Ta=v(9172),r0=v(8203);const o0=["panel"],nC=["*"];function Xm(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",1,0),o.bIt("@panelAnimation.done",function(f){o.eBV(i);const C=o.XpG();return o.Njj(C._animationDone.next(f))}),o.SdG(2),o.k0s()}if(2&a){const i=s.id,c=o.XpG();o.HbH(c._classList),o.AVh("mat-mdc-autocomplete-visible",c.showPanel)("mat-mdc-autocomplete-hidden",!c.showPanel)("mat-primary","primary"===c._color)("mat-accent","accent"===c._color)("mat-warn","warn"===c._color),o.Y8G("id",c.id)("@panelAnimation",c.isOpen?"visible":"hidden"),o.BMQ("aria-label",c.ariaLabel||null)("aria-labelledby",c._getPanelAriaLabelledby(i))}}const Qv=(0,mi.hZ)("panelAnimation",[(0,mi.wk)("void, hidden",(0,mi.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,mi.kY)(":enter, hidden => visible",[(0,mi.Os)([(0,mi.i0)("0.03s linear",(0,mi.iF)({opacity:1})),(0,mi.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,mi.iF)({transform:"scaleY(1)"}))])]),(0,mi.kY)(":leave, visible => hidden",[(0,mi.i0)("0.075s linear",(0,mi.iF)({opacity:0}))])]);let s0=0;class a0{constructor(s,i){this.source=s,this.option=i}}const Zv=new o.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Jv(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let l0=(()=>{class a{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,c,f,C){this._changeDetectorRef=i,this._elementRef=c,this._defaults=f,this._activeOptionChanges=mp.yU.EMPTY,this._animationDone=new o.bkB,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.bkB,this.opened=new o.bkB,this.closed=new o.bkB,this.optionActivated=new o.bkB,this.id="mat-autocomplete-"+s0++,this.inertGroups=C?.SAFARI||!1,this.autoActiveFirstOption=!!f.autoActiveFirstOption,this.autoSelectActiveOption=!!f.autoSelectActiveOption,this.requireSelection=!!f.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Cu.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){const c=new a0(this,i);this.optionSelected.emit(c)}_getPanelAriaLabelledby(i){return this.ariaLabel?null:this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_skipPredicate(){return!1}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(Zv),o.rXU(fe.OD))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(c,f,C){if(1&c&&(o.wni(C,nn.wT,5),o.wni(C,nn.QC,5)),2&c){let M;o.mGM(M=o.lsd())&&(f.options=M),o.mGM(M=o.lsd())&&(f.optionGroups=M)}},viewQuery:function(c,f){if(1&c&&(o.GBs(o.C4Q,7),o.GBs(o0,5)),2&c){let C;o.mGM(C=o.lsd())&&(f.template=C.first),o.mGM(C=o.lsd())&&(f.panel=C.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",o.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",o.L39],requireSelection:[2,"requireSelection","requireSelection",o.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",o.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[o.Jv_([{provide:nn.is,useExisting:a}]),o.GFd,o.aNF],ngContentSelectors:nC,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(c,f){1&c&&(o.NAR(),o.DNE(0,Xm,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:[Qv]},changeDetection:0})}}return a})();const Ym={provide:Eu.kq,useExisting:(0,o.Rfq)(()=>qv),multi:!0},Qm=new o.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const a=(0,o.WQX)(Hl.hJ);return()=>a.scrollStrategies.reposition()}}),u0={provide:Qm,deps:[Hl.hJ],useFactory:function c0(a){return()=>a.scrollStrategies.reposition()}};let qv=(()=>{class a{constructor(i,c,f,C,M,H,ie,Fe,Nt,Yt,jn){this._element=i,this._overlay=c,this._viewContainerRef=f,this._zone=C,this._changeDetectorRef=M,this._dir=ie,this._formField=Fe,this._document=Nt,this._viewportRuler=Yt,this._defaults=jn,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=mp.yU.EMPTY,this._breakpointObserver=(0,o.WQX)(Yv.QP),this._handsetLandscapeSubscription=mp.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new $r.B,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 $r.B,this._injector=(0,o.WQX)(o.zZn),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,Ff.v)(()=>{const wn=this.autocomplete?this.autocomplete.options:null;return wn?wn.changes.pipe((0,Ta.Z)(wn),(0,Me.n)(()=>(0,bl.h)(...wn.map(Dn=>Dn.onSelectionChange)))):this._initialized.pipe((0,Me.n)(()=>this.optionSelections))}),this._handlePanelKeydown=wn=>{(wn.keyCode===$l._f&&!(0,$l.rp)(wn)||wn.keyCode===$l.i7&&(0,$l.rp)(wn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),wn.stopPropagation(),wn.preventDefault())},this._trackedModal=null,this._scrollStrategy=H}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const i=this._getWindow();typeof i<"u"&&i.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&&(0,Cu.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,bl.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,It.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,It.p)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,qo.T)(i=>i instanceof nn.MI?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,bl.h)((0,Bc.R)(this._document,"click"),(0,Bc.R)(this._document,"auxclick"),(0,Bc.R)(this._document,"touchend")).pipe((0,It.p)(i=>{const c=(0,fe.Fb)(i),f=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,C=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&c!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!f||!f.contains(c))&&(!C||!C.contains(c))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(c)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){const c=i.keyCode,f=(0,$l.rp)(i);if(c===$l._f&&!f&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&c===$l.Fm&&this.panelOpen&&!f)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){const C=this.autocomplete._keyManager.activeItem,M=c===$l.i7||c===$l.n6;c===$l.wn||M&&!f&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):M&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(M||this.autocomplete._keyManager.activeItem!==C)&&(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(i){let c=i.target,f=c.value;if("number"===c.type&&(f=""==f?null:parseFloat(f)),this._previousValue!==f){if(this._previousValue=f,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(f),f){if(this.panelOpen&&!this.autocomplete.requireSelection){const C=this.autocomplete.options?.find(M=>M.selected);C&&f!==this._getDisplayValue(C.value)&&C.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===i.target){const C=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(C)}}}_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(i=!1){this._formField&&"auto"===this._formField.floatLabel&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const i=new V.c(f=>{(0,o.mal)(()=>{f.next()},{injector:this._injector})}),c=this.autocomplete.options.changes.pipe((0,Uc.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,Te.c)(0));return(0,bl.h)(i,c).pipe((0,Me.n)(()=>this._zone.run(()=>{const f=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),f!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,F.s)(1)).subscribe(f=>this._setValueAndClose(f))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){const c=this.autocomplete;return c&&c.displayWith?c.displayWith(i):i}_assignOptionValue(i){const c=this._getDisplayValue(i);null==i&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(c??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){const c=this.autocomplete,f=i?i.source:this._pendingAutoselectedOption;f?(this._clearPreviousSelectedOption(f),this._assignOptionValue(f.value),this._onChange(f.value),c._emitSelectEvent(f),this._element.nativeElement.focus()):c.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),c._animationDone?c._animationDone.pipe((0,F.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,c){this.autocomplete?.options?.forEach(f=>{f!==i&&f.selected&&f.deselect(c)})}_openPanelInternal(i=this._element.nativeElement.value){this._attachOverlay(i),this._floatLabel(),this._trackedModal&&(0,Cu.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(i){let c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Lv.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&c&&c.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Yv.Rp.HandsetLandscape).subscribe(C=>{C.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const f=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&f!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Hl.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){const c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],f=this._aboveClass,C=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:f},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:f}];let M;M="above"===this.position?C:"below"===this.position?c:[...c,...C],i.withPositions(M)}_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(){const i=this.autocomplete;if(i.autoActiveFirstOption){let c=-1;for(let f=0;f .cdk-overlay-container [aria-modal="true"]');if(!i)return;const c=this.autocomplete.id;this._trackedModal&&(0,Cu.Ae)(this._trackedModal,"aria-owns",c),(0,Cu.px)(i,"aria-owns",c),this._trackedModal=i}_clearFromModal(){this._trackedModal&&((0,Cu.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.aKT),o.rXU(Hl.hJ),o.rXU(o.c1b),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(Qm),o.rXU(r0.dS,8),o.rXU($n.xb,9),o.rXU(et.qQ,8),o.rXU(Xv.Xj),o.rXU(Zv,8))}}static{this.\u0275dir=o.FsC({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(c,f){1&c&&o.bIt("focusin",function(){return f._handleFocus()})("blur",function(){return f._onTouched()})("input",function(M){return f._handleInput(M)})("keydown",function(M){return f._handleKeydown(M)})("click",function(){return f._handleClick()}),2&c&&o.BMQ("autocomplete",f.autocompleteAttribute)("role",f.autocompleteDisabled?null:"combobox")("aria-autocomplete",f.autocompleteDisabled?null:"list")("aria-activedescendant",f.panelOpen&&f.activeOption?f.activeOption.id:null)("aria-expanded",f.autocompleteDisabled?null:f.panelOpen.toString())("aria-controls",f.autocompleteDisabled||!f.panelOpen||null==f.autocomplete?null:f.autocomplete.id)("aria-haspopup",f.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",o.L39]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[o.Jv_([Ym]),o.GFd,o.OA$]})}}return a})(),zl=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275mod=o.$C({type:a})}static{this.\u0275inj=o.G2t({providers:[u0],imports:[Hl.z_,nn.Sy,nn.yE,et.MD,Xv.Gj,nn.Sy,nn.yE]})}}return a})();var Zm=v(9042),e_=v(7291);const d0=["barSearchInput"],t_=["matAutocomplete"];function n_(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",5),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2);return o.Njj(f.open())}),o.nrm(1,"mat-icon",6),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function gp(a,s){1&a&&(o.j41(0,"mat-option",14),o.EFF(1," No results found! "),o.k0s())}function Jm(a,s){if(1&a){const i=o.RV6();o.j41(0,"img",22),o.bIt("error",function(f){o.eBV(i);const C=o.XpG(5);return o.Njj(C.handleImageError(f))}),o.k0s()}if(2&a){const i=o.XpG().$implicit;o.Mz_("alt","",i.name,"'s avatar"),o.Y8G("src",i.avatar,o.B4B)}}function oC(a,s){1&a&&(o.qex(0),o.nrm(1,"mat-icon",23),o.bVm()),2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:user-circle"))}function i_(a,s){if(1&a&&(o.j41(0,"div",24),o.EFF(1),o.k0s()),2&a){const i=o.XpG().$implicit;o.R7$(),o.SpI(" ",i.about," ")}}function r_(a,s){if(1&a&&(o.qex(0),o.j41(1,"mat-option",15)(2,"div",16)(3,"div",17),o.DNE(4,Jm,1,3,"img",18)(5,oC,2,1,"ng-container",2),o.k0s(),o.j41(6,"div",19)(7,"span",20),o.EFF(8),o.k0s(),o.DNE(9,i_,2,1,"div",21),o.k0s()()(),o.bVm()),2&a){const i=s.$implicit;o.R7$(),o.Y8G("routerLink",i.link)("value",i.name),o.R7$(3),o.Y8G("ngIf",i.avatar),o.R7$(),o.Y8G("ngIf",!i.avatar),o.R7$(3),o.JRh(i.name),o.R7$(),o.Y8G("ngIf",i.about)}}function o_(a,s){if(1&a&&(o.qex(0),o.DNE(1,r_,10,6,"ng-container",12),o.bVm()),2&a){const i=s.$implicit,c=o.XpG(3);o.R7$(),o.Y8G("ngForOf",i.results)("ngForTrackBy",c.trackByFn)}}function vp(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.nrm(1,"mat-icon",8),o.j41(2,"input",9,0),o.bIt("keydown",function(f){o.eBV(i);const C=o.XpG(2);return o.Njj(C.onKeydown(f))}),o.k0s(),o.j41(4,"mat-autocomplete",10,1),o.DNE(6,gp,2,0,"mat-option",11)(7,o_,2,2,"ng-container",12),o.k0s(),o.j41(8,"button",13),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2);return o.Njj(f.close())}),o.nrm(9,"mat-icon",6),o.k0s()()}if(2&a){const i=o.sdS(5),c=o.XpG(2);o.Y8G("@slideInTop",void 0)("@slideOutTop",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"),o.R7$(),o.Y8G("formControl",c.searchControl)("matAutocomplete",i)("placeholder","Search..."),o.R7$(2),o.Y8G("autoSelectActiveOption",!0)("disableRipple",!0),o.R7$(2),o.Y8G("ngIf",c.resultSets&&!c.resultSets.length),o.R7$(),o.Y8G("ngForOf",c.resultSets)("ngForTrackBy",c.trackByFn),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:x-mark")}}function qm(a,s){if(1&a&&(o.j41(0,"div"),o.DNE(1,n_,2,1,"button",3)(2,vp,10,12,"div",4),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngIf",!i.opened),o.R7$(),o.Y8G("ngIf",i.opened)}}let Wl=(()=>{class a{constructor(i,c){this._storageService=i,this._sanitizer=c,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new o.bkB,this.opened=!1,this.searchControl=new Eu.hs,this._unsubscribeAll=new $r.B}set barSearchInput(i){i&&setTimeout(()=>{i.nativeElement.focus()})}set matAutocomplete(i){this._matAutocomplete=i}ngOnChanges(i){"appearance"in i&&this.close()}ngOnInit(){var i=this;this.searchControl.valueChanges.pipe((0,Bm.B)(this.debounce),(0,Wr.Q)(this._unsubscribeAll),(0,qo.T)(c=>((!c||c.lengthc&&c.length>=this.minLength)).subscribe(function(){var c=(0,W.A)(function*(f){const C=yield i._storageService.searchProfile(f);i.resultSets=C.map(M=>({label:"Project",results:[{name:M.profile.name||M.profile.displayName||M.pubKey,pubkey:M.pubKey,username:M.profile.username||"",website:M.profile.website||"",about:M.profile.about?M.profile.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:M.profile.picture||null,banner:M.profile.banner||null,link:`/profile/${M.pubKey}`}]})),i.search.next(i.resultSets)});return function(f){return c.apply(this,arguments)}}())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(i){"Escape"===i.code&&"bar"===this.appearance&&!this._matAutocomplete.isOpen&&this.close()}open(){this.opened||(this.opened=!0)}close(){this.opened&&(this.searchControl.setValue(""),this.opened=!1)}trackByFn(i,c){return c.id||i}handleImageError(i){const c=i.target;c.onerror=null,c.src="images/avatars/avatar-placeholder.png"}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(e_.n),o.rXU(u.up))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["search"]],viewQuery:function(c,f){if(1&c&&(o.GBs(d0,5),o.GBs(t_,5)),2&c){let C;o.mGM(C=o.lsd())&&(f.barSearchInput=C.first),o.mGM(C=o.lsd())&&(f.matAutocomplete=C.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],standalone:!0,features:[o.Jv_([{provide:Qm,useFactory:()=>{const i=(0,o.WQX)(Hl.hJ);return()=>i.scrollStrategies.block()}}]),o.OA$,o.aNF],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(c,f){1&c&&o.DNE(0,qm,3,2,"div",2),2&c&&o.Y8G("ngIf","bar"===f.appearance)},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,Eu.YN,Eu.me,Eu.BC,zl,l0,nn.wT,qv,Eu.X1,Eu.l_,nn.Sy,y.Wk,$n.RG,Zm.fS,et.MD,et.Sq,et.bT],encapsulation:2,data:{animation:n0.F}})}}return a})();var s_=v(1997),a_=v(881);function eg(a,s){if(1&a&&(o.qex(0),o.nrm(1,"img",14),o.bVm()),2&a){const i=o.XpG();o.R7$(),o.Y8G("src",i.getSafeUrl(null==i.user?null:i.user.picture),o.B4B)}}function h0(a,s){1&a&&o.nrm(0,"mat-icon",12),2&a&&o.Y8G("svgIcon","heroicons_outline:user-circle")}let Du=(()=>{class a{constructor(i,c,f,C,M,H,ie){this._changeDetectorRef=i,this._router=c,this._angorConfigService=f,this._signerService=C,this._storageService=M,this.sanitizer=H,this._changeDetectorRefef=ie,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new $r.B}ngOnInit(){this.userPubKey=this._signerService.getPublicKey(),this._angorConfigService.config$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{localStorage.setItem("angorConfig",JSON.stringify(i)),this.config=i,this._changeDetectorRef.detectChanges()}),this._storageService.profile$.subscribe(i=>{i&&i.pubKey===this.userPubKey&&(this.user=i.metadata,this._changeDetectorRefef.detectChanges())}),this.loadUserProfile()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){var i=this;return(0,W.A)(function*(){i._storageService.getProfile(i.userPubKey).then(c=>{i.user=c,i._changeDetectorRefef.detectChanges()})})()}logout(){this._router.navigate(["/logout"])}profile(){this._router.navigate(["/profile"])}setLayout(i){this._angorConfigService.config={layout:i},this._changeDetectorRef.detectChanges()}setScheme(i){this._angorConfigService.config={scheme:i},this._changeDetectorRef.detectChanges()}setTheme(i){this._angorConfigService.config={theme:i},this._changeDetectorRef.detectChanges()}getSafeUrl(i){return this.sanitizer.bypassSecurityTrustUrl(i)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(y.Ix),o.rXU(a_.P),o.rXU(qi.A),o.rXU(e_.n),o.rXU(u.up),o.rXU(o.gRc))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["user"]],standalone:!0,features:[o.aNF],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","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"]],template:function(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",3)(1,"span",4),o.DNE(2,eg,2,1,"ng-container",5)(3,h0,1,1,"ng-template",null,0,o.C5r),o.k0s()(),o.j41(5,"mat-menu",6,1)(7,"button",7)(8,"span",8)(9,"span"),o.EFF(10,"Logged in as"),o.k0s(),o.j41(11,"span",9),o.EFF(12),o.k0s()()(),o.nrm(13,"mat-divider",10),o.j41(14,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.profile())}),o.nrm(15,"mat-icon",12),o.j41(16,"span"),o.EFF(17,"Profile"),o.k0s()(),o.j41(18,"button",13),o.nrm(19,"mat-icon",12),o.j41(20,"span"),o.EFF(21,"Settings"),o.k0s()(),o.nrm(22,"mat-divider",10),o.j41(23,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.logout())}),o.nrm(24,"mat-icon",12),o.j41(25,"span"),o.EFF(26,"logout"),o.k0s()()(),o.j41(27,"mat-menu",null,2)(29,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("auto"))}),o.nrm(30,"mat-icon",12),o.j41(31,"span"),o.EFF(32,"Auto Theme"),o.k0s()(),o.j41(33,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("light"))}),o.nrm(34,"mat-icon",12),o.j41(35,"span"),o.EFF(36,"Light Theme"),o.k0s()(),o.j41(37,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("dark"))}),o.nrm(38,"mat-icon",12),o.j41(39,"span"),o.EFF(40,"Dark Theme"),o.k0s()(),o.nrm(41,"mat-divider"),o.j41(42,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setLayout("classic"))}),o.j41(43,"span"),o.EFF(44,"Classic Layout"),o.k0s()(),o.j41(45,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setLayout("modern"))}),o.j41(46,"span"),o.EFF(47,"Modern Layout"),o.k0s()()()}if(2&c){const C=o.sdS(4),M=o.sdS(6),H=o.sdS(28);o.Y8G("matMenuTriggerFor",M),o.R7$(2),o.Y8G("ngIf",null==f.user?null:f.user.picture)("ngIfElse",C),o.R7$(3),o.Y8G("xPosition","before"),o.R7$(7),o.JRh((null==f.user?null:f.user.display_name)||(null==f.user?null:f.user.name)||"Unknown User"),o.R7$(3),o.Y8G("svgIcon","heroicons_outline:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",H),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),o.R7$(5),o.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:bolt"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:sun"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:moon")}},dependencies:[Wa.Hl,Wa.iY,Dl.Cn,Dl.kk,Dl.fb,Dl.Cp,Gr.m_,Gr.An,s_.w,s_.q,et.MD,et.bT],encapsulation:2,changeDetection:0})}}return a})();var l_=v(3236);let Od=(()=>{class a{constructor(i,c){this.swUpdate=i,this.zone=c,this.newVersionAvailableSubject=new bt.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function xu(a=0,s=l_.E){return a<0&&(a=0),(0,Hf.O)(a,a,s)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(i=>console.error("Failed to apply updates:",i))}checkForUpdateOnInterval(){var i=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,W.A)(function*(){try{(yield i.swUpdate.checkForUpdate())&&i.newVersionAvailableSubject.next(!0)}catch(c){console.error("Failed to check for updates:",c)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(i=>{switch(i.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${i.version.hash}': ${i.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vf),o.KVO(o.SKi))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function tg(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.applyUpdate())}),o.nrm(1,"mat-icon",2),o.k0s()}if(2&a){const i=o.XpG();o.Y8G("matTooltip",i.tooltip||"Update App"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let Rd=(()=>{class a{constructor(i,c){this.updateService=i,this._changeDetectorRef=c,this.updateService.isNewVersionAvailable$.subscribe(f=>{f&&this._changeDetectorRef.detectChanges()})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(Od),o.rXU(o.gRc))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["update"]],inputs:{tooltip:"tooltip"},exportAs:["update"],standalone:!0,features:[o.aNF],decls:2,vars:3,consts:[["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(c,f){1&c&&(o.DNE(0,tg,2,2,"button",0),o.nI1(1,"async")),2&c&&o.Y8G("ngIf",o.bMT(1,1,f.updateService.isNewVersionAvailable$))},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,ta.uc,ta.oV,et.MD,et.bT,et.Jj],encapsulation:2,changeDetection:0})}}return a})();function c_(a,s){if(1&a&&(o.j41(0,"angor-vertical-navigation",0),o.qex(1,10),o.j41(2,"div",11),o.nrm(3,"img",12),o.k0s(),o.bVm(),o.k0s()),2&a){const i=o.XpG();o.Y8G("mode","over")("name","mainNavigation")("navigation",i.navigation.default)("opened",!1)}}function u_(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.nrm(2,"img",15)(3,"img",16),o.k0s(),o.nrm(4,"img",17),o.k0s(),o.nrm(5,"angor-horizontal-navigation",18)),2&a){const i=o.XpG();o.R7$(5),o.Y8G("name","mainNavigation")("navigation",i.navigation.horizontal)}}function f0(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",19),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.toggleNavigation("mainNavigation"))}),o.nrm(1,"mat-icon",20),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:bars-3"))}function p0(a,s){1&a&&o.nrm(0,"router-outlet")}let m0=(()=>{class a{constructor(i,c,f,C,M){this._activatedRoute=i,this._router=c,this._navigationService=f,this._angorMediaWatcherService=C,this._angorNavigationService=M,this._unsubscribeAll=new $r.B,this.version=Qf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pu),o.rXU(se.l),o.rXU(Aa))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["modern-layout"]],standalone:!0,features:[o.aNF],decls:17,vars:7,consts:[[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"],[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,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.DNE(1,c_,4,4,"angor-vertical-navigation",0),o.j41(2,"div",1)(3,"div",2),o.DNE(4,u_,6,2)(5,f0,2,1,"button",3),o.j41(6,"div",4),o.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),o.k0s()(),o.j41(12,"div",7),o.DNE(13,p0,1,0,"router-outlet"),o.k0s(),o.j41(14,"div",8)(15,"span",9),o.EFF(16),o.k0s()()()),2&c&&(o.R7$(),o.vxM(f.isScreenSmall?1:-1),o.R7$(3),o.vxM(f.isScreenSmall?-1:4),o.R7$(),o.vxM(f.isScreenSmall?5:-1),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(13),o.R7$(3),o.Lme("Angor Hub \xa9 ",f.currentYear," - version ",f.version,""))},dependencies:[Sh,Fv,uv,Wa.Hl,Wa.iY,Gr.m_,Gr.An,Jf,Wl,Kv,Du,y.n3,Rd],encapsulation:2})}}return a})();function g0(a,s){1&a&&o.nrm(0,"router-outlet")}let v0=(()=>{class a{constructor(i,c,f,C,M){this._activatedRoute=i,this._router=c,this._navigationService=f,this._angorMediaWatcherService=C,this._angorNavigationService=M,this._unsubscribeAll=new $r.B,this.version=Qf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pu),o.rXU(se.l),o.rXU(Aa))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["classic-layout"]],standalone:!0,features:[o.aNF],decls:21,vars:9,consts:[[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"],[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(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"angor-vertical-navigation",0),o.qex(2,1),o.j41(3,"div",2),o.nrm(4,"img",3)(5,"img",4),o.k0s(),o.bVm(),o.k0s(),o.j41(6,"div",5)(7,"div",6)(8,"button",7),o.bIt("click",function(){return f.toggleNavigation("mainNavigation")}),o.nrm(9,"mat-icon",8),o.k0s(),o.j41(10,"div",9),o.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),o.k0s()(),o.j41(16,"div",12),o.DNE(17,g0,1,0,"router-outlet"),o.k0s(),o.j41(18,"div",13)(19,"span",14),o.EFF(20),o.k0s()()()),2&c&&(o.R7$(),o.Y8G("mode",f.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",f.navigation.default)("opened",!f.isScreenSmall),o.R7$(8),o.Y8G("svgIcon","heroicons_outline:bars-3"),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(17),o.R7$(3),o.Lme("Angor Hub \xa9 ",f.currentYear," - version ",f.version,""))},dependencies:[Sh,Fv,Wa.Hl,Wa.iY,Gr.m_,Gr.An,Jf,Wl,Kv,Du,y.n3,Rd],encapsulation:2})}}return a})();function _0(a,s){1&a&&o.nrm(0,"empty-layout")}function d_(a,s){1&a&&o.nrm(0,"modern-layout")}function y0(a,s){1&a&&o.nrm(0,"classic-layout")}let kd=(()=>{class a{constructor(i,c,f,C,M,H,ie){this._activatedRoute=i,this._document=c,this._renderer2=f,this._router=C,this._angorConfigService=M,this._angorMediaWatcherService=H,this._angorPlatformService=ie,this._unsubscribeAll=new $r.B}ngOnInit(){(0,zc.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,Wr.Q)(this._unsubscribeAll),(0,qo.T)(([i,c])=>{const f={scheme:i.scheme,theme:i.theme};return"auto"===i.scheme&&(f.scheme=c.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),f})).subscribe(i=>{this.scheme=i.scheme,this.theme=i.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.config=i,this._updateLayout()}),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",Qf),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let i=this._activatedRoute;for(;i.firstChild;)i=i.firstChild;this.layout=this.config.layout;const c=i.snapshot.queryParamMap.get("layout");c&&(this.layout=c,this.config&&(this.config.layout=c)),i.pathFromRoot.forEach(C=>{C.routeConfig&&C.routeConfig.data&&C.routeConfig.data.layout&&(this.layout=C.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(i=>{i.startsWith("theme-")&&this._document.body.classList.remove(i,i.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(et.qQ),o.rXU(o.sFG),o.rXU(y.Ix),o.rXU(a_.P),o.rXU(se.l),o.rXU(Le))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["layout"]],standalone:!0,features:[o.aNF],decls:3,vars:3,template:function(c,f){1&c&&o.DNE(0,_0,1,0,"empty-layout")(1,d_,1,0,"modern-layout")(2,y0,1,0,"classic-layout"),2&c&&(o.vxM("empty"===f.layout?0:-1),o.R7$(),o.vxM("modern"===f.layout?1:-1),o.R7$(),o.vxM("classic"===f.layout?2:-1))},dependencies:[zE,m0,v0],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%}\n"],encapsulation:2})}}return a})();const _p=()=>{const a=(0,o.WQX)(qi.A),s=(0,o.WQX)(y.Ix);return""!==a.getPublicKey()||s.parseUrl("/login")},h_=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:kd,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([v.e(588),v.e(76),v.e(770)]).then(v.bind(v,770))},{path:"register",loadChildren:()=>Promise.all([v.e(588),v.e(963)]).then(v.bind(v,1963))}]},{path:"",canActivate:[_p],canActivateChild:[_p],component:kd,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>v.e(514).then(v.bind(v,1514))}]},{path:"",canActivate:[_p],canActivateChild:[_p],component:kd,resolve:{initialData:()=>{const a=(0,o.WQX)(pu);return(0,o.WQX)(eb),(0,El.p)([a.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([v.e(416),v.e(76),v.e(541)]).then(v.bind(v,5541))},{path:"explore",loadChildren:()=>Promise.all([v.e(576),v.e(879),v.e(76),v.e(621)]).then(v.bind(v,4621))},{path:"profile",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(389)]).then(v.bind(v,7389))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(389)]).then(v.bind(v,7389))},{path:"settings",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"settings/:id",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"chat",loadChildren:()=>Promise.all([v.e(416),v.e(865),v.e(879),v.e(76),v.e(182)]).then(v.bind(v,7774))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>v.e(258).then(v.bind(v,5258))},{path:"**",redirectTo:"404-not-found"}]}];let b0=(()=>{class a{constructor(){const i=(0,o.WQX)(u.up),c=(0,o.WQX)(Gr.tp);c.addSvgIconSet(i.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),c.addSvgIconSetInNamespace("mat_outline",i.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),c.addSvgIconSetInNamespace("mat_solid",i.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),c.addSvgIconSetInNamespace("feather",i.bypassSecurityTrustResourceUrl("icons/feather.svg")),c.addSvgIconSetInNamespace("heroicons_outline",i.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),c.addSvgIconSetInNamespace("heroicons_solid",i.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),c.addSvgIconSetInNamespace("heroicons_mini",i.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var w0=v(9350),E0=v(7707);let ng=(()=>{class a{constructor(i){this.httpClient=i}getTranslation(i){return this.httpClient.get(`./i18n/${i}.json`)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const m_=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],Oh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],Rh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],kh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}];var C0=v(7730);var yp=v(1984),Nd=v(7517),S0=v(6726),sC=v(5776);const T0=(0,v(8992).A)(Object.keys,Object);var I0=Object.prototype.hasOwnProperty;var O0=v(1287);const Nh=function R0(a){return(0,O0.A)(a)?(0,S0.A)(a):function cC(a){if(!(0,sC.A)(a))return T0(a);var s=[];for(var i in Object(a))I0.call(a,i)&&"constructor"!=i&&s.push(i);return s}(a)};var Pd=v(133);var v_=v(9933),k0=v(4528);const rg=function y_(){return[]};var N0=Object.prototype.propertyIsEnumerable,w_=Object.getOwnPropertySymbols;const Su=w_?function(a){return null==a?[]:(a=Object(a),function Lh(a,s){for(var i=-1,c=null==a?0:a.length,f=0,C=[];++i{class a{constructor(i){this._angorMockApiService=i,this._compactNavigation=Oh,this._defaultNavigation=m_,this._futuristicNavigation=Rh,this._horizontalNavigation=kh,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._compactNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),this._futuristicNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),this._horizontalNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),[200,{compact:gc(this._compactNavigation),default:gc(this._defaultNavigation),futuristic:gc(this._futuristicNavigation),horizontal:gc(this._horizontalNavigation)}]))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(de))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()];let ly=(()=>{class a{constructor(i){this.http=i,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var i=this;return(0,W.A)(function*(){try{const c=yield i.http.get(i.ngswFilePath).toPromise();c&&c.timestamp?(i.timestamp=c.timestamp,console.log("Timestamp successfully loaded:",i.timestamp)):console.error("Invalid data format in ngsw.json")}catch(c){console.error("Error loading ngsw.json:",c)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,qo.T)(i=>i.timestamp||null),(0,$c.W)(i=>(console.error("Error fetching ngsw.json hash:",i),(0,re.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Eg=v(2083);const Aw={providers:[function pm(){return(0,o.ngT)("NgEagerAnimations"),[...uh]}(),(0,be.$R)(),function Qg(a,s={}){return(0,o.EmA)([wl,Vf,{provide:fh,useValue:a},{provide:pd,useValue:s},{provide:Vc,useFactory:jf,deps:[pd,o.Agw]},{provide:o.hnV,useFactory:gm,deps:[o.zZn,fh,pd,o.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,o.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:o.hnV,useFactory:function cy(a){return()=>a.load()},deps:[ly,qi.A,Eg.d],multi:!0},{provide:o.hnV,useFactory:function Sw(a,s){return(0,W.A)(function*(){const i=a.getPublicKey();console.log("publicKey : "+i),i&&(yield s.loadUserProfile(i))})},deps:[qi.A,Eg.d],multi:!0},(0,y.lh)(h_,(0,y.Sn)(y.Kp),(0,y.oH)({scrollPositionRestoration:"enabled"})),{provide:nn.MJ,useClass:Zl},{provide:nn.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function Hi(a){const s=[No(Ch),ms(P),Ns(ae),ps(ke)];return a.config&&s.push(function fi(a){return(0,o.EmA)([{provide:Ll,useValue:Yf(a)}])}(a.config)),a.loader&&s.push(function cr(a){return(0,o.EmA)([{provide:mh,useClass:a}])}(a.loader)),s}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:ng}),{provide:o.hnV,useFactory:()=>{const a=(0,o.WQX)(qn),s=a.getDefaultLang();return a.setActiveLang(s),()=>function p_(a,s){const i="object"==typeof s;return new Promise((c,f)=>{const C=new E0.Ms({next:M=>{c(M),C.unsubscribe()},error:f,complete:()=>{i?c(s.defaultValue):f(new w0.G)}});a.subscribe(C)})}(a.load(s))},multi:!0},[{provide:o.Z63,useValue:()=>(0,o.WQX)(b0),multi:!0}],(a=>{const s=[{provide:nn.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:$n.U$,useValue:{appearance:"fill"}},{provide:ee,useValue:a?.mockApi?.delay??0},{provide:ve.t,useValue:a?.angor??{}},(0,o.oKB)(Fn.hM),{provide:o.Z63,useValue:()=>(0,o.WQX)(tt.m),multi:!0},(0,be.$R)((0,be.b$)([Xe])),{provide:o.Z63,useValue:()=>(0,o.WQX)(Ve),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(se.l),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Le),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Et),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Tt.Q),multi:!0}];return a?.mockApi?.services&&s.push((0,be.$R)((0,be.b$)([te])),{provide:o.hnV,deps:[...a.mockApi.services],useFactory:()=>()=>null,multi:!0}),s})({mockApi:{delay:0,services:ay},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,u.B8)(B,Aw).catch(a=>console.error(a))},3981:(tn,Re)=>{"use strict";Re.byteLength=function re(de){var be=ee(de),Me=be[1];return 3*(be[0]+Me)/4-Me},Re.toByteArray=function F(de){var be,Ve,Te=ee(de),Me=Te[0],te=Te[1],ve=new y(function V(de,be,Te){return 3*(be+Te)/4-Te}(0,Me,te)),tt=0,bt=te>0?Me-4:Me;for(Ve=0;Ve>16&255,ve[tt++]=be>>8&255,ve[tt++]=255&be;return 2===te&&(be=u[de.charCodeAt(Ve)]<<2|u[de.charCodeAt(Ve+1)]>>4,ve[tt++]=255&be),1===te&&(be=u[de.charCodeAt(Ve)]<<10|u[de.charCodeAt(Ve+1)]<<4|u[de.charCodeAt(Ve+2)]>>2,ve[tt++]=be>>8&255,ve[tt++]=255&be),ve},Re.fromByteArray=function he(de){for(var be,Te=de.length,Me=Te%3,te=[],tt=0,bt=Te-Me;ttbt?bt:tt+16383));return 1===Me?te.push(v[(be=de[Te-1])>>2]+v[be<<4&63]+"=="):2===Me&&te.push(v[(be=(de[Te-2]<<8)+de[Te-1])>>10]+v[be>>4&63]+v[be<<2&63]+"="),te.join("")};for(var v=[],u=[],y=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=0;B<64;++B)v[B]=o[B],u[o.charCodeAt(B)]=B;function ee(de){var be=de.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Te=de.indexOf("=");return-1===Te&&(Te=be),[Te,Te===be?0:4-Te%4]}function U(de){return v[de>>18&63]+v[de>>12&63]+v[de>>6&63]+v[63&de]}function L(de,be,Te){for(var te=[],ve=be;ve{"use strict";const y=v(3981),o=v(2020),B="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Re.hp=V,Re.IS=50;const W=2147483647;function re(Q){if(Q>W)throw new RangeError('The value "'+Q+'" is invalid for option "size"');const T=new Uint8Array(Q);return Object.setPrototypeOf(T,V.prototype),T}function V(Q,T,N){if("number"==typeof Q){if("string"==typeof T)throw new TypeError('The "string" argument must be of type string. Received type number');return he(Q)}return F(Q,T,N)}function F(Q,T,N){if("string"==typeof Q)return function de(Q,T){if(("string"!=typeof T||""===T)&&(T="utf8"),!V.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const N=0|bt(Q,T);let $=re(N);const le=$.write(Q,T);return le!==N&&($=$.slice(0,le)),$}(Q,T);if(ArrayBuffer.isView(Q))return function Te(Q){if(_e(Q,Uint8Array)){const T=new Uint8Array(Q);return Me(T.buffer,T.byteOffset,T.byteLength)}return be(Q)}(Q);if(null==Q)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(_e(Q,ArrayBuffer)||Q&&_e(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(Q,SharedArrayBuffer)||Q&&_e(Q.buffer,SharedArrayBuffer)))return Me(Q,T,N);if("number"==typeof Q)throw new TypeError('The "value" argument must not be of type number. Received type number');const $=Q.valueOf&&Q.valueOf();if(null!=$&&$!==Q)return V.from($,T,N);const le=function te(Q){if(V.isBuffer(Q)){const T=0|ve(Q.length),N=re(T);return 0===N.length||Q.copy(N,0,0,T),N}return void 0!==Q.length?"number"!=typeof Q.length||Je(Q.length)?re(0):be(Q):"Buffer"===Q.type&&Array.isArray(Q.data)?be(Q.data):void 0}(Q);if(le)return le;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Q[Symbol.toPrimitive])return V.from(Q[Symbol.toPrimitive]("string"),T,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function U(Q){if("number"!=typeof Q)throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function he(Q){return U(Q),re(Q<0?0:0|ve(Q))}function be(Q){const T=Q.length<0?0:0|ve(Q.length),N=re(T);for(let $=0;$=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|Q}function bt(Q,T){if(V.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||_e(Q,ArrayBuffer))return Q.byteLength;if("string"!=typeof Q)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);const N=Q.length,$=arguments.length>2&&!0===arguments[2];if(!$&&0===N)return 0;let le=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return Rt(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*N;case"hex":return N>>>1;case"base64":return ni(Q).length;default:if(le)return $?-1:Rt(Q).length;T=(""+T).toLowerCase(),le=!0}}function Ve(Q,T,N){let $=!1;if((void 0===T||T<0)&&(T=0),T>this.length||((void 0===N||N>this.length)&&(N=this.length),N<=0)||(N>>>=0)<=(T>>>=0))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return mt(this,T,N);case"utf8":case"utf-8":return nn(this,T,N);case"ascii":return yn(this,T,N);case"latin1":case"binary":return di(this,T,N);case"base64":return Tt(this,T,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,T,N);default:if($)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),$=!0}}function rt(Q,T,N){const $=Q[T];Q[T]=Q[N],Q[N]=$}function Xe(Q,T,N,$,le){if(0===Q.length)return-1;if("string"==typeof N?($=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),Je(N=+N)&&(N=le?0:Q.length-1),N<0&&(N=Q.length+N),N>=Q.length){if(le)return-1;N=Q.length-1}else if(N<0){if(!le)return-1;N=0}if("string"==typeof T&&(T=V.from(T,$)),V.isBuffer(T))return 0===T.length?-1:se(Q,T,N,$,le);if("number"==typeof T)return T&=255,"function"==typeof Uint8Array.prototype.indexOf?le?Uint8Array.prototype.indexOf.call(Q,T,N):Uint8Array.prototype.lastIndexOf.call(Q,T,N):se(Q,[T],N,$,le);throw new TypeError("val must be string, number or Buffer")}function se(Q,T,N,$,le){let jt,ue=1,nt=Q.length,zt=T.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(Q.length<2||T.length<2)return-1;ue=2,nt/=2,zt/=2,N/=2}function Ut(On,Ln){return 1===ue?On[Ln]:On.readUInt16BE(Ln*ue)}if(le){let On=-1;for(jt=N;jtnt&&(N=nt-zt),jt=N;jt>=0;jt--){let On=!0;for(let Ln=0;Lnle&&($=le):$=le;const ue=T.length;let nt;for($>ue/2&&($=ue/2),nt=0;nt<$;++nt){const zt=parseInt(T.substr(2*nt,2),16);if(Je(zt))return nt;Q[N+nt]=zt}return nt}function Le(Q,T,N,$){return Zt(Rt(T,Q.length-N),Q,N,$)}function et(Q,T,N,$){return Zt(function wt(Q){const T=[];for(let N=0;N>8,le=N%256,ue.push(le),ue.push($);return ue}(T,Q.length-N),Q,N,$)}function Tt(Q,T,N){return y.fromByteArray(0===T&&N===Q.length?Q:Q.slice(T,N))}function nn(Q,T,N){N=Math.min(Q.length,N);const $=[];let le=T;for(;le239?4:ue>223?3:ue>191?2:1;if(le+zt<=N){let Ut,jt,On,Ln;switch(zt){case 1:ue<128&&(nt=ue);break;case 2:Ut=Q[le+1],128==(192&Ut)&&(Ln=(31&ue)<<6|63&Ut,Ln>127&&(nt=Ln));break;case 3:Ut=Q[le+1],jt=Q[le+2],128==(192&Ut)&&128==(192&jt)&&(Ln=(15&ue)<<12|(63&Ut)<<6|63&jt,Ln>2047&&(Ln<55296||Ln>57343)&&(nt=Ln));break;case 4:Ut=Q[le+1],jt=Q[le+2],On=Q[le+3],128==(192&Ut)&&128==(192&jt)&&128==(192&On)&&(Ln=(15&ue)<<18|(63&Ut)<<12|(63&jt)<<6|63&On,Ln>65535&&Ln<1114112&&(nt=Ln))}}null===nt?(nt=65533,zt=1):nt>65535&&(nt-=65536,$.push(nt>>>10&1023|55296),nt=56320|1023&nt),$.push(nt),le+=zt}return function $n(Q){const T=Q.length;if(T<=Fn)return String.fromCharCode.apply(String,Q);let N="",$=0;for(;$le.length?(V.isBuffer(nt)||(nt=V.from(nt)),nt.copy(le,ue)):Uint8Array.prototype.set.call(le,nt,ue);else{if(!V.isBuffer(nt))throw new TypeError('"list" argument must be an Array of Buffers');nt.copy(le,ue)}ue+=nt.length}return le},V.byteLength=bt,V.prototype._isBuffer=!0,V.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(T+=" ... "),""},B&&(V.prototype[B]=V.prototype.inspect),V.prototype.compare=function(T,N,$,le,ue){if(_e(T,Uint8Array)&&(T=V.from(T,T.offset,T.byteLength)),!V.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(void 0===N&&(N=0),void 0===$&&($=T?T.length:0),void 0===le&&(le=0),void 0===ue&&(ue=this.length),N<0||$>T.length||le<0||ue>this.length)throw new RangeError("out of range index");if(le>=ue&&N>=$)return 0;if(le>=ue)return-1;if(N>=$)return 1;if(this===T)return 0;let nt=(ue>>>=0)-(le>>>=0),zt=($>>>=0)-(N>>>=0);const Ut=Math.min(nt,zt),jt=this.slice(le,ue),On=T.slice(N,$);for(let Ln=0;Ln>>=0,isFinite($)?($>>>=0,void 0===le&&(le="utf8")):(le=$,$=void 0)}const ue=this.length-N;if((void 0===$||$>ue)&&($=ue),T.length>0&&($<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");let nt=!1;for(;;)switch(le){case"hex":return fe(this,T,N,$);case"utf8":case"utf-8":return Le(this,T,N,$);case"ascii":case"latin1":case"binary":return et(this,T,N,$);case"base64":return It(this,T,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,T,N,$);default:if(nt)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),nt=!0}},V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Fn=4096;function yn(Q,T,N){let $="";N=Math.min(Q.length,N);for(let le=T;le$)&&(N=$);let le="";for(let ue=T;ueN)throw new RangeError("Trying to access beyond buffer length")}function Se(Q,T,N,$,le,ue){if(!V.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>le||TQ.length)throw new RangeError("Index out of range")}function gt(Q,T,N,$,le){We(T,$,le,Q,N,7);let ue=Number(T&BigInt(4294967295));Q[N++]=ue,ue>>=8,Q[N++]=ue,ue>>=8,Q[N++]=ue,ue>>=8,Q[N++]=ue;let nt=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N++]=nt,nt>>=8,Q[N++]=nt,nt>>=8,Q[N++]=nt,nt>>=8,Q[N++]=nt,N}function Ne(Q,T,N,$,le){We(T,$,le,Q,N,7);let ue=Number(T&BigInt(4294967295));Q[N+7]=ue,ue>>=8,Q[N+6]=ue,ue>>=8,Q[N+5]=ue,ue>>=8,Q[N+4]=ue;let nt=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N+3]=nt,nt>>=8,Q[N+2]=nt,nt>>=8,Q[N+1]=nt,nt>>=8,Q[N]=nt,N+8}function Ze(Q,T,N,$,le,ue){if(N+$>Q.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function je(Q,T,N,$,le){return T=+T,N>>>=0,le||Ze(Q,0,N,4),o.write(Q,T,N,$,23,4),N+4}function Lt(Q,T,N,$,le){return T=+T,N>>>=0,le||Ze(Q,0,N,8),o.write(Q,T,N,$,52,8),N+8}V.prototype.slice=function(T,N){const $=this.length;(T=~~T)<0?(T+=$)<0&&(T=0):T>$&&(T=$),(N=void 0===N?$:~~N)<0?(N+=$)<0&&(N=0):N>$&&(N=$),N>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T],ue=1,nt=0;for(;++nt>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T+--N],ue=1;for(;N>0&&(ue*=256);)le+=this[T+--N]*ue;return le},V.prototype.readUint8=V.prototype.readUInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),this[T]},V.prototype.readUint16LE=V.prototype.readUInt16LE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]|this[T+1]<<8},V.prototype.readUint16BE=V.prototype.readUInt16BE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]<<8|this[T+1]},V.prototype.readUint32LE=V.prototype.readUInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},V.prototype.readUint32BE=V.prototype.readUInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},V.prototype.readBigUInt64LE=dt(function(T){Pe(T>>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=N+256*this[++T]+65536*this[++T]+this[++T]*2**24,ue=this[++T]+256*this[++T]+65536*this[++T]+$*2**24;return BigInt(le)+(BigInt(ue)<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=N*2**24+65536*this[++T]+256*this[++T]+this[++T],ue=this[++T]*2**24+65536*this[++T]+256*this[++T]+$;return(BigInt(le)<>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T],ue=1,nt=0;for(;++nt=ue&&(le-=Math.pow(2,8*N)),le},V.prototype.readIntBE=function(T,N,$){T>>>=0,N>>>=0,$||J(T,N,this.length);let le=N,ue=1,nt=this[T+--le];for(;le>0&&(ue*=256);)nt+=this[T+--le]*ue;return ue*=128,nt>=ue&&(nt-=Math.pow(2,8*N)),nt},V.prototype.readInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},V.prototype.readInt16LE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T]|this[T+1]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt16BE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T+1]|this[T]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},V.prototype.readInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},V.prototype.readBigInt64LE=dt(function(T){Pe(T>>>=0,"offset");const N=this[T],$=this[T+7];return(void 0===N||void 0===$)&&xt(T,this.length-8),(BigInt(this[T+4]+256*this[T+5]+65536*this[T+6]+($<<24))<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=(N<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(le)<>>=0,N||J(T,4,this.length),o.read(this,T,!0,23,4)},V.prototype.readFloatBE=function(T,N){return T>>>=0,N||J(T,4,this.length),o.read(this,T,!1,23,4)},V.prototype.readDoubleLE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!0,52,8)},V.prototype.readDoubleBE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!1,52,8)},V.prototype.writeUintLE=V.prototype.writeUIntLE=function(T,N,$,le){T=+T,N>>>=0,$>>>=0,le||Se(this,T,N,$,Math.pow(2,8*$)-1,0);let ue=1,nt=0;for(this[N]=255&T;++nt<$&&(ue*=256);)this[N+nt]=T/ue&255;return N+$},V.prototype.writeUintBE=V.prototype.writeUIntBE=function(T,N,$,le){T=+T,N>>>=0,$>>>=0,le||Se(this,T,N,$,Math.pow(2,8*$)-1,0);let ue=$-1,nt=1;for(this[N+ue]=255&T;--ue>=0&&(nt*=256);)this[N+ue]=T/nt&255;return N+$},V.prototype.writeUint8=V.prototype.writeUInt8=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,1,255,0),this[N]=255&T,N+1},V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,65535,0),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,65535,0),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,4294967295,0),this[N+3]=T>>>24,this[N+2]=T>>>16,this[N+1]=T>>>8,this[N]=255&T,N+4},V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,4294967295,0),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigUInt64LE=dt(function(T,N=0){return gt(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeBigUInt64BE=dt(function(T,N=0){return Ne(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeIntLE=function(T,N,$,le){if(T=+T,N>>>=0,!le){const Ut=Math.pow(2,8*$-1);Se(this,T,N,$,Ut-1,-Ut)}let ue=0,nt=1,zt=0;for(this[N]=255&T;++ue<$&&(nt*=256);)T<0&&0===zt&&0!==this[N+ue-1]&&(zt=1),this[N+ue]=(T/nt|0)-zt&255;return N+$},V.prototype.writeIntBE=function(T,N,$,le){if(T=+T,N>>>=0,!le){const Ut=Math.pow(2,8*$-1);Se(this,T,N,$,Ut-1,-Ut)}let ue=$-1,nt=1,zt=0;for(this[N+ue]=255&T;--ue>=0&&(nt*=256);)T<0&&0===zt&&0!==this[N+ue+1]&&(zt=1),this[N+ue]=(T/nt|0)-zt&255;return N+$},V.prototype.writeInt8=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,1,127,-128),T<0&&(T=255+T+1),this[N]=255&T,N+1},V.prototype.writeInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,32767,-32768),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,32767,-32768),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,2147483647,-2147483648),this[N]=255&T,this[N+1]=T>>>8,this[N+2]=T>>>16,this[N+3]=T>>>24,N+4},V.prototype.writeInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigInt64LE=dt(function(T,N=0){return gt(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeBigInt64BE=dt(function(T,N=0){return Ne(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeFloatLE=function(T,N,$){return je(this,T,N,!0,$)},V.prototype.writeFloatBE=function(T,N,$){return je(this,T,N,!1,$)},V.prototype.writeDoubleLE=function(T,N,$){return Lt(this,T,N,!0,$)},V.prototype.writeDoubleBE=function(T,N,$){return Lt(this,T,N,!1,$)},V.prototype.copy=function(T,N,$,le){if(!V.isBuffer(T))throw new TypeError("argument should be a Buffer");if($||($=0),!le&&0!==le&&(le=this.length),N>=T.length&&(N=T.length),N||(N=0),le>0&&le<$&&(le=$),le===$||0===T.length||0===this.length)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),T.length-N>>=0,$=void 0===$?this.length:$>>>0,T||(T=0),"number"==typeof T)for(ue=N;ue<$;++ue)this[ue]=T;else{const nt=V.isBuffer(T)?T:V.from(T,le),zt=nt.length;if(0===zt)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ue=0;ue<$-N;++ue)this[ue+N]=nt[ue%zt]}return this};const Mt={};function we(Q,T,N){Mt[Q]=class extends N{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,delete this.name}get code(){return Q}set code(le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:le,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function Oe(Q){let T="",N=Q.length;const $="-"===Q[0]?1:0;for(;N>=$+4;N-=3)T=`_${Q.slice(N-3,N)}${T}`;return`${Q.slice(0,N)}${T}`}function We(Q,T,N,$,le,ue){if(Q>N||Q3?0===T||T===BigInt(0)?`>= 0${nt} and < 2${nt} ** ${8*(ue+1)}${nt}`:`>= -(2${nt} ** ${8*(ue+1)-1}${nt}) and < 2 ** ${8*(ue+1)-1}${nt}`:`>= ${T}${nt} and <= ${N}${nt}`,new Mt.ERR_OUT_OF_RANGE("value",zt,Q)}!function me(Q,T,N){Pe(T,"offset"),(void 0===Q[T]||void 0===Q[T+N])&&xt(T,Q.length-(N+1))}($,le,ue)}function Pe(Q,T){if("number"!=typeof Q)throw new Mt.ERR_INVALID_ARG_TYPE(T,"number",Q)}function xt(Q,T,N){throw Math.floor(Q)!==Q?(Pe(Q,N),new Mt.ERR_OUT_OF_RANGE(N||"offset","an integer",Q)):T<0?new Mt.ERR_BUFFER_OUT_OF_BOUNDS:new Mt.ERR_OUT_OF_RANGE(N||"offset",`>= ${N?1:0} and <= ${T}`,Q)}we("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(Q,T){return`The "${Q}" argument must be of type number. Received type ${typeof T}`},TypeError),we("ERR_OUT_OF_RANGE",function(Q,T,N){let $=`The value of "${Q}" is out of range.`,le=N;return Number.isInteger(N)&&Math.abs(N)>2**32?le=Oe(String(N)):"bigint"==typeof N&&(le=String(N),(N>BigInt(2)**BigInt(32)||N<-(BigInt(2)**BigInt(32)))&&(le=Oe(le)),le+="n"),$+=` It must be ${T}. Received ${le}`,$},RangeError);const xe=/[^+/0-9A-Za-z-_]/g;function Rt(Q,T){let N;T=T||1/0;const $=Q.length;let le=null;const ue=[];for(let nt=0;nt<$;++nt){if(N=Q.charCodeAt(nt),N>55295&&N<57344){if(!le){if(N>56319){(T-=3)>-1&&ue.push(239,191,189);continue}if(nt+1===$){(T-=3)>-1&&ue.push(239,191,189);continue}le=N;continue}if(N<56320){(T-=3)>-1&&ue.push(239,191,189),le=N;continue}N=65536+(le-55296<<10|N-56320)}else le&&(T-=3)>-1&&ue.push(239,191,189);if(le=null,N<128){if((T-=1)<0)break;ue.push(N)}else if(N<2048){if((T-=2)<0)break;ue.push(N>>6|192,63&N|128)}else if(N<65536){if((T-=3)<0)break;ue.push(N>>12|224,N>>6&63|128,63&N|128)}else{if(!(N<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;ue.push(N>>18|240,N>>12&63|128,N>>6&63|128,63&N|128)}}return ue}function ni(Q){return y.toByteArray(function ut(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(xe,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q}(Q))}function Zt(Q,T,N,$){let le;for(le=0;le<$&&!(le+N>=T.length||le>=Q.length);++le)T[le+N]=Q[le];return le}function _e(Q,T){return Q instanceof T||null!=Q&&null!=Q.constructor&&null!=Q.constructor.name&&Q.constructor.name===T.name}function Je(Q){return Q!=Q}const Ge=function(){const Q="0123456789abcdef",T=new Array(256);for(let N=0;N<16;++N){const $=16*N;for(let le=0;le<16;++le)T[$+le]=Q[N]+Q[le]}return T}();function dt(Q){return typeof BigInt>"u"?rn:Q}function rn(){throw new Error("BigInt not supported")}},2020:(tn,Re)=>{Re.read=function(v,u,y,o,B){var W,ee,re=8*B-o-1,V=(1<>1,U=-7,L=y?B-1:0,he=y?-1:1,de=v[u+L];for(L+=he,W=de&(1<<-U)-1,de>>=-U,U+=re;U>0;W=256*W+v[u+L],L+=he,U-=8);for(ee=W&(1<<-U)-1,W>>=-U,U+=o;U>0;ee=256*ee+v[u+L],L+=he,U-=8);if(0===W)W=1-F;else{if(W===V)return ee?NaN:1/0*(de?-1:1);ee+=Math.pow(2,o),W-=F}return(de?-1:1)*ee*Math.pow(2,W-o)},Re.write=function(v,u,y,o,B,W){var ee,re,V,F=8*W-B-1,U=(1<>1,he=23===B?Math.pow(2,-24)-Math.pow(2,-77):0,de=o?0:W-1,be=o?1:-1,Te=u<0||0===u&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(re=isNaN(u)?1:0,ee=U):(ee=Math.floor(Math.log(u)/Math.LN2),u*(V=Math.pow(2,-ee))<1&&(ee--,V*=2),(u+=ee+L>=1?he/V:he*Math.pow(2,1-L))*V>=2&&(ee++,V/=2),ee+L>=U?(re=0,ee=U):ee+L>=1?(re=(u*V-1)*Math.pow(2,B),ee+=L):(re=u*Math.pow(2,L-1)*Math.pow(2,B),ee=0));B>=8;v[y+de]=255&re,de+=be,re/=256,B-=8);for(ee=ee<0;v[y+de]=255&ee,de+=be,ee/=256,F-=8);v[y+de-be]|=128*Te}},119:tn=>{tn.exports=function y(o,B,W){function ee(F,U){if(!B[F]){if(!o[F]){if(re)return re(F,!0);var he=new Error("Cannot find module '"+F+"'");throw he.code="MODULE_NOT_FOUND",he}var de=B[F]={exports:{}};o[F][0].call(de.exports,function(be){return ee(o[F][1][be]||be)},de,de.exports,y,o,B,W)}return B[F].exports}for(var re=void 0,V=0;V"u"&&y(3);var L=Promise;function he(K,Ae){Ae&&K.then(function(oe){Ae(null,oe)},function(oe){Ae(oe)})}function de(K,Ae,oe){"function"==typeof Ae&&K.then(Ae),"function"==typeof oe&&K.catch(oe)}function be(K){return"string"!=typeof K&&(console.warn(K+" used as a key, but it is not a string."),K=String(K)),K}function Te(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var Me="local-forage-detect-blob-support",te=void 0,ve={},tt=Object.prototype.toString,bt="readonly",Ve="readwrite";function rt(K){for(var Ae=K.length,oe=new ArrayBuffer(Ae),$e=new Uint8Array(oe),vt=0;vt=43)}}).catch(function(){return!1})}(K).then(function(Ae){return te=Ae})}function fe(K){var Ae=ve[K.name],oe={};oe.promise=new L(function($e,vt){oe.resolve=$e,oe.reject=vt}),Ae.deferredOperations.push(oe),Ae.dbReady=Ae.dbReady?Ae.dbReady.then(function(){return oe.promise}):oe.promise}function Le(K){var oe=ve[K.name].deferredOperations.pop();if(oe)return oe.resolve(),oe.promise}function et(K,Ae){var $e=ve[K.name].deferredOperations.pop();if($e)return $e.reject(Ae),$e.promise}function It(K,Ae){return new L(function(oe,$e){if(ve[K.name]=ve[K.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},K.db){if(!Ae)return oe(K.db);fe(K),K.db.close()}var vt=[K.name];Ae&&vt.push(K.version);var at=V.open.apply(V,vt);Ae&&(at.onupgradeneeded=function($t){var hn=at.result;try{hn.createObjectStore(K.storeName),$t.oldVersion<=1&&hn.createObjectStore(Me)}catch(gn){if("ConstraintError"!==gn.name)throw gn;console.warn('The database "'+K.name+'" has been upgraded from version '+$t.oldVersion+" to version "+$t.newVersion+', but the storage "'+K.storeName+'" already exists.')}}),at.onerror=function($t){$t.preventDefault(),$e(at.error)},at.onsuccess=function(){var $t=at.result;$t.onversionchange=function(hn){hn.target.close()},oe($t),Le(K)}})}function Et(K){return It(K,!1)}function Tt(K){return It(K,!0)}function nn(K,Ae){if(!K.db)return!0;var oe=!K.db.objectStoreNames.contains(K.storeName),vt=K.version>K.db.version;if(K.versionK.version&&(K.version=at)}return!0}return!1}function $n(K){return U([rt(atob(K.data))],{type:K.type})}function yn(K){return K&&K.__local_forage_encoded_blob}function di(K){var Ae=this,oe=Ae._initReady().then(function(){var $e=ve[Ae._dbInfo.name];if($e&&$e.dbReady)return $e.dbReady});return de(oe,K,K),oe}function Ee(K,Ae,oe,$e){void 0===$e&&($e=1);try{var vt=K.db.transaction(K.storeName,Ae);oe(null,vt)}catch(at){if($e>0&&(!K.db||"InvalidStateError"===at.name||"NotFoundError"===at.name))return L.resolve().then(function(){if(!K.db||"NotFoundError"===at.name&&!K.db.objectStoreNames.contains(K.storeName)&&K.version<=K.db.version)return K.db&&(K.version=K.db.version+1),Tt(K)}).then(function(){return function mt(K){fe(K);for(var Ae=ve[K.name],oe=Ae.forages,$e=0;$e>4,xn[vt++]=(15&$t)<<4|hn>>2,xn[vt++]=(3&hn)<<6|63&gn;return En}function nt(K){var $e,Ae=new Uint8Array(K),oe="";for($e=0;$e>2],oe+=xt[(3&Ae[$e])<<4|Ae[$e+1]>>4],oe+=xt[(15&Ae[$e+1])<<2|Ae[$e+2]>>6],oe+=xt[63&Ae[$e+2]];return Ae.length%3==2?oe=oe.substring(0,oe.length-1)+"=":Ae.length%3==1&&(oe=oe.substring(0,oe.length-2)+"=="),oe}var jt={serialize:function zt(K,Ae){var oe="";if(K&&(oe=le.call(K)),K&&("[object ArrayBuffer]"===oe||K.buffer&&"[object ArrayBuffer]"===le.call(K.buffer))){var $e,vt=Rt;K instanceof ArrayBuffer?($e=K,vt+=mn):($e=K.buffer,"[object Int8Array]"===oe?vt+="si08":"[object Uint8Array]"===oe?vt+="ui08":"[object Uint8ClampedArray]"===oe?vt+="uic8":"[object Int16Array]"===oe?vt+="si16":"[object Uint16Array]"===oe?vt+="ur16":"[object Int32Array]"===oe?vt+="si32":"[object Uint32Array]"===oe?vt+=Q:"[object Float32Array]"===oe?vt+=T:"[object Float64Array]"===oe?vt+=N:Ae(new Error("Failed to get type for BinaryArray"))),Ae(vt+nt($e))}else if("[object Blob]"===oe){var at=new FileReader;at.onload=function(){var $t="~~local_forage_type~"+K.type+"~"+nt(this.result);Ae(Rt+ni+$t)},at.readAsArrayBuffer(K)}else try{Ae(JSON.stringify(K))}catch($t){console.error("Couldn't convert value into a JSON string: ",K),Ae(null,$t)}},deserialize:function Ut(K){if(K.substring(0,9)!==Rt)return JSON.parse(K);var $e,Ae=K.substring(13),oe=K.substring(9,13);if(oe===ni&&ut.test(Ae)){var vt=Ae.match(ut);$e=vt[1],Ae=Ae.substring(vt[0].length)}var at=ue(Ae);switch(oe){case mn:return at;case ni:return U([at],{type:$e});case"si08":return new Int8Array(at);case"ui08":return new Uint8Array(at);case"uic8":return new Uint8ClampedArray(at);case"si16":return new Int16Array(at);case"ur16":return new Uint16Array(at);case"si32":return new Int32Array(at);case Q:return new Uint32Array(at);case T:return new Float32Array(at);case N:return new Float64Array(at);default:throw new Error("Unkown type: "+oe)}},stringToBuffer:ue,bufferToString:nt};function On(K,Ae,oe,$e){K.executeSql("CREATE TABLE IF NOT EXISTS "+Ae.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],oe,$e)}function wi(K,Ae,oe,$e,vt,at){K.executeSql(oe,$e,vt,function($t,hn){hn.code===hn.SYNTAX_ERR?$t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ae.storeName],function(gn,En){En.rows.length?at(gn,hn):On(gn,Ae,function(){gn.executeSql(oe,$e,vt,at)},at)},at):at($t,hn)},at)}function He(K,Ae,oe,$e){var vt=this;K=be(K);var at=new L(function($t,hn){vt.ready().then(function(){void 0===Ae&&(Ae=null);var gn=Ae,En=vt._dbInfo;En.serializer.serialize(Ae,function(xn,Vn){Vn?hn(Vn):En.db.transaction(function(Hn){wi(Hn,En,"INSERT OR REPLACE INTO "+En.storeName+" (key, value) VALUES (?, ?)",[K,xn],function(){$t(gn)},function(ui,Oi){hn(Oi)})},function(Hn){if(Hn.code===Hn.QUOTA_ERR){if($e>0)return void $t(He.apply(vt,[K,gn,oe,$e-1]));hn(Hn)}})})}).catch(hn)});return he(at,oe),at}var At={_driver:"webSQLStorage",_initStorage:function Ln(K){var Ae=this,oe={db:null};if(K)for(var $e in K)oe[$e]="string"!=typeof K[$e]?K[$e].toString():K[$e];var vt=new L(function(at,$t){try{oe.db=openDatabase(oe.name,String(oe.version),oe.description,oe.size)}catch(hn){return $t(hn)}oe.db.transaction(function(hn){On(hn,oe,function(){Ae._dbInfo=oe,at()},function(gn,En){$t(En)})},$t)});return oe.serializer=jt,vt},_support:function Pe(){return"function"==typeof openDatabase}(),iterate:function Cn(K,Ae){var oe=this,$e=new L(function(vt,at){oe.ready().then(function(){var $t=oe._dbInfo;$t.db.transaction(function(hn){wi(hn,$t,"SELECT * FROM "+$t.storeName,[],function(gn,En){for(var xn=En.rows,Vn=xn.length,Hn=0;Hn '__WebKitDatabaseInfoTable__'",[],function(vt,at){for(var $t=[],hn=0;hn0}var Kr={_driver:"localStorageWrapper",_initStorage:function Ie(K){var oe={};if(K)for(var $e in K)oe[$e]=K[$e];return oe.keyPrefix=Bt(K,this._defaultConfig),qe()?(this._dbInfo=oe,oe.serializer=jt,L.resolve()):L.reject()},_support:function st(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function an(K,Ae){var oe=this,$e=oe.ready().then(function(){for(var vt=oe._dbInfo,at=vt.keyPrefix,$t=at.length,hn=localStorage.length,gn=1,En=0;En=0;vt--){var at=localStorage.key(vt);0===at.indexOf($e)&&localStorage.removeItem(at)}});return he(oe,K),oe},length:function Dr(K){var oe=this.keys().then(function($e){return $e.length});return he(oe,K),oe},key:function li(K,Ae){var oe=this,$e=oe.ready().then(function(){var at,vt=oe._dbInfo;try{at=localStorage.key(K)}catch{at=null}return at&&(at=at.substring(vt.keyPrefix.length)),at});return he($e,Ae),$e},keys:function wr(K){var Ae=this,oe=Ae.ready().then(function(){for(var $e=Ae._dbInfo,vt=localStorage.length,at=[],$t=0;$t=0;$t--){var hn=localStorage.key($t);0===hn.indexOf(at)&&localStorage.removeItem(hn)}}):L.reject("Invalid arguments"),Ae),vt}},Or=function(Ae,oe){return Ae===oe||"number"==typeof Ae&&"number"==typeof oe&&isNaN(Ae)&&isNaN(oe)},ft=function(Ae,oe){for(var $e=Ae.length,vt=0;vt<$e;){if(Or(Ae[vt],oe))return!0;vt++}return!1},Ot=Array.isArray||function(K){return"[object Array]"===Object.prototype.toString.call(K)},un={},bn={},Tn={INDEXEDDB:We,WEBSQL:At,LOCALSTORAGE:Kr},Kn=[Tn.INDEXEDDB._driver,Tn.WEBSQL._driver,Tn.LOCALSTORAGE._driver],zn=["dropInstance"],ii=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zn),ci={description:"",driver:Kn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Bn(K,Ae){K[Ae]=function(){var oe=arguments;return K.ready().then(function(){return K[Ae].apply(K,oe)})}}function Ce(){for(var K=1;K"u"?"undefined":W(oe))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var $e in oe){if("storeName"===$e&&(oe[$e]=oe[$e].replace(/\W/g,"_")),"version"===$e&&"number"!=typeof oe[$e])return new Error("Database version must be a number.");this._config[$e]=oe[$e]}return!("driver"in oe)||!oe.driver||this.setDriver(this._config.driver)}return"string"==typeof oe?this._config[oe]:this._config},K.prototype.defineDriver=function(oe,$e,vt){var at=new L(function($t,hn){try{var gn=oe._driver,En=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!oe._driver)return void hn(En);for(var xn=ii.concat("_initStorage"),Vn=0,Hn=xn.length;Vn{"use strict";v.d(Re,{t:()=>y});var u=v(1413);class y extends u.B{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const W=super._subscribe(B);return!W.closed&&B.next(this._value),W}getValue(){const{hasError:B,thrownError:W,_value:ee}=this;if(B)throw W;return this._throwIfClosed(),ee}next(B){super.next(this._value=B)}}},1985:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>V});var u=v(7707),y=v(8359),o=v(3494),B=v(1203),W=v(1026),ee=v(8071),re=v(9786);let V=(()=>{class he{constructor(be){be&&(this._subscribe=be)}lift(be){const Te=new he;return Te.source=this,Te.operator=be,Te}subscribe(be,Te,Me){const te=function L(he){return he&&he instanceof u.vU||function U(he){return he&&(0,ee.T)(he.next)&&(0,ee.T)(he.error)&&(0,ee.T)(he.complete)}(he)&&(0,y.Uv)(he)}(be)?be:new u.Ms(be,Te,Me);return(0,re.Y)(()=>{const{operator:ve,source:tt}=this;te.add(ve?ve.call(te,tt):tt?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(be){try{return this._subscribe(be)}catch(Te){be.error(Te)}}forEach(be,Te){return new(Te=F(Te))((Me,te)=>{const ve=new u.Ms({next:tt=>{try{be(tt)}catch(bt){te(bt),ve.unsubscribe()}},error:te,complete:Me});this.subscribe(ve)})}_subscribe(be){var Te;return null===(Te=this.source)||void 0===Te?void 0:Te.subscribe(be)}[o.s](){return this}pipe(...be){return(0,B.m)(be)(this)}toPromise(be){return new(be=F(be))((Te,Me)=>{let te;this.subscribe(ve=>te=ve,ve=>Me(ve),()=>Te(te))})}}return he.create=de=>new he(de),he})();function F(he){var de;return null!==(de=he??W.$.Promise)&&void 0!==de?de:Promise}},2771:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>o});var u=v(1413),y=v(6129);class o extends u.B{constructor(W=1/0,ee=1/0,re=y.U){super(),this._bufferSize=W,this._windowTime=ee,this._timestampProvider=re,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,W),this._windowTime=Math.max(1,ee)}next(W){const{isStopped:ee,_buffer:re,_infiniteTimeWindow:V,_timestampProvider:F,_windowTime:U}=this;ee||(re.push(W),!V&&re.push(F.now()+U)),this._trimBuffer(),super.next(W)}_subscribe(W){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(W),{_infiniteTimeWindow:re,_buffer:V}=this,F=V.slice();for(let U=0;U{"use strict";v.d(Re,{B:()=>re});var u=v(1985),y=v(8359);const B=(0,v(1853).L)(F=>function(){F(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=v(7908),ee=v(9786);let re=(()=>{class F extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L){const he=new V(this,this);return he.operator=L,he}_throwIfClosed(){if(this.closed)throw new B}next(L){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const he of this.currentObservers)he.next(L)}})}error(L){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L;const{observers:he}=this;for(;he.length;)he.shift().error(L)}})}complete(){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L}=this;for(;L.length;)L.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L;return(null===(L=this.observers)||void 0===L?void 0:L.length)>0}_trySubscribe(L){return this._throwIfClosed(),super._trySubscribe(L)}_subscribe(L){return this._throwIfClosed(),this._checkFinalizedStatuses(L),this._innerSubscribe(L)}_innerSubscribe(L){const{hasError:he,isStopped:de,observers:be}=this;return he||de?y.Kn:(this.currentObservers=null,be.push(L),new y.yU(()=>{this.currentObservers=null,(0,W.o)(be,L)}))}_checkFinalizedStatuses(L){const{hasError:he,thrownError:de,isStopped:be}=this;he?L.error(de):be&&L.complete()}asObservable(){const L=new u.c;return L.source=this,L}}return F.create=(U,L)=>new V(U,L),F})();class V extends re{constructor(U,L){super(),this.destination=U,this.source=L}next(U){var L,he;null===(he=null===(L=this.destination)||void 0===L?void 0:L.next)||void 0===he||he.call(L,U)}error(U){var L,he;null===(he=null===(L=this.destination)||void 0===L?void 0:L.error)||void 0===he||he.call(L,U)}complete(){var U,L;null===(L=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===L||L.call(U)}_subscribe(U){var L,he;return null!==(he=null===(L=this.source)||void 0===L?void 0:L.subscribe(U))&&void 0!==he?he:y.Kn}}},7707:(tn,Re,v)=>{"use strict";v.d(Re,{Ms:()=>Me,vU:()=>he});var u=v(8071),y=v(8359),o=v(1026),B=v(5334),W=v(5343);const ee=F("C",void 0,void 0);function F(Ve,rt,Xe){return{kind:Ve,value:rt,error:Xe}}var U=v(9270),L=v(9786);class he extends y.yU{constructor(rt){super(),this.isStopped=!1,rt?(this.destination=rt,(0,y.Uv)(rt)&&rt.add(this)):this.destination=bt}static create(rt,Xe,se){return new Me(rt,Xe,se)}next(rt){this.isStopped?tt(function V(Ve){return F("N",Ve,void 0)}(rt),this):this._next(rt)}error(rt){this.isStopped?tt(function re(Ve){return F("E",void 0,Ve)}(rt),this):(this.isStopped=!0,this._error(rt))}complete(){this.isStopped?tt(ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(rt){this.destination.next(rt)}_error(rt){try{this.destination.error(rt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const de=Function.prototype.bind;function be(Ve,rt){return de.call(Ve,rt)}class Te{constructor(rt){this.partialObserver=rt}next(rt){const{partialObserver:Xe}=this;if(Xe.next)try{Xe.next(rt)}catch(se){te(se)}}error(rt){const{partialObserver:Xe}=this;if(Xe.error)try{Xe.error(rt)}catch(se){te(se)}else te(rt)}complete(){const{partialObserver:rt}=this;if(rt.complete)try{rt.complete()}catch(Xe){te(Xe)}}}class Me extends he{constructor(rt,Xe,se){let fe;if(super(),(0,u.T)(rt)||!rt)fe={next:rt??void 0,error:Xe??void 0,complete:se??void 0};else{let Le;this&&o.$.useDeprecatedNextContext?(Le=Object.create(rt),Le.unsubscribe=()=>this.unsubscribe(),fe={next:rt.next&&be(rt.next,Le),error:rt.error&&be(rt.error,Le),complete:rt.complete&&be(rt.complete,Le)}):fe=rt}this.destination=new Te(fe)}}function te(Ve){o.$.useDeprecatedSynchronousErrorHandling?(0,L.l)(Ve):(0,B.m)(Ve)}function tt(Ve,rt){const{onStoppedNotification:Xe}=o.$;Xe&&U.f.setTimeout(()=>Xe(Ve,rt))}const bt={closed:!0,next:W.l,error:function ve(Ve){throw Ve},complete:W.l}},8359:(tn,Re,v)=>{"use strict";v.d(Re,{Kn:()=>ee,yU:()=>W,Uv:()=>re});var u=v(8071);const o=(0,v(1853).L)(F=>function(L){F(this),this.message=L?`${L.length} errors occurred during unsubscription:\n${L.map((he,de)=>`${de+1}) ${he.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L});var B=v(7908);class W{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:L}=this;if(L)if(this._parentage=null,Array.isArray(L))for(const be of L)be.remove(this);else L.remove(this);const{initialTeardown:he}=this;if((0,u.T)(he))try{he()}catch(be){U=be instanceof o?be.errors:[be]}const{_finalizers:de}=this;if(de){this._finalizers=null;for(const be of de)try{V(be)}catch(Te){U=U??[],Te instanceof o?U=[...U,...Te.errors]:U.push(Te)}}if(U)throw new o(U)}}add(U){var L;if(U&&U!==this)if(this.closed)V(U);else{if(U instanceof W){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(L=this._finalizers)&&void 0!==L?L:[]).push(U)}}_hasParent(U){const{_parentage:L}=this;return L===U||Array.isArray(L)&&L.includes(U)}_addParent(U){const{_parentage:L}=this;this._parentage=Array.isArray(L)?(L.push(U),L):L?[L,U]:U}_removeParent(U){const{_parentage:L}=this;L===U?this._parentage=null:Array.isArray(L)&&(0,B.o)(L,U)}remove(U){const{_finalizers:L}=this;L&&(0,B.o)(L,U),U instanceof W&&U._removeParent(this)}}W.EMPTY=(()=>{const F=new W;return F.closed=!0,F})();const ee=W.EMPTY;function re(F){return F instanceof W||F&&"closed"in F&&(0,u.T)(F.remove)&&(0,u.T)(F.add)&&(0,u.T)(F.unsubscribe)}function V(F){(0,u.T)(F)?F():F.unsubscribe()}},1026:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(tn,Re,v)=>{"use strict";v.d(Re,{G:()=>ee});var u=v(1985),y=v(8359),o=v(9898),B=v(4360),W=v(9974);class ee extends u.c{constructor(V,F){super(),this.source=V,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,W.S)(V)&&(this.lift=V.lift)}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:V}=this;this._subject=this._connection=null,V?.unsubscribe()}connect(){let V=this._connection;if(!V){V=this._connection=new y.yU;const F=this.getSubject();V.add(this.source.subscribe((0,B._)(F,void 0,()=>{this._teardown(),F.complete()},U=>{this._teardown(),F.error(U)},()=>this._teardown()))),V.closed&&(this._connection=null,V=y.yU.EMPTY)}return V}refCount(){return(0,o.B)()(this)}}},4572:(tn,Re,v)=>{"use strict";v.d(Re,{z:()=>U});var u=v(1985),y=v(3073),o=v(6648),B=v(3669),W=v(6450),ee=v(9326),re=v(8496),V=v(4360),F=v(5225);function U(...de){const be=(0,ee.lI)(de),Te=(0,ee.ms)(de),{args:Me,keys:te}=(0,y.D)(de);if(0===Me.length)return(0,o.H)([],be);const ve=new u.c(function L(de,be,Te=B.D){return Me=>{he(be,()=>{const{length:te}=de,ve=new Array(te);let tt=te,bt=te;for(let Ve=0;Ve{const rt=(0,o.H)(de[Ve],be);let Xe=!1;rt.subscribe((0,V._)(Me,se=>{ve[Ve]=se,Xe||(Xe=!0,bt--),bt||Me.next(Te(ve.slice()))},()=>{--tt||Me.complete()}))},Me)},Me)}}(Me,be,te?tt=>(0,re.e)(te,tt):B.D));return Te?ve.pipe((0,W.I)(Te)):ve}function he(de,be,Te){de?(0,F.N)(Te,de,be):be()}},8793:(tn,Re,v)=>{"use strict";v.d(Re,{x:()=>W});var u=v(6365),o=v(9326),B=v(6648);function W(...ee){return function y(){return(0,u.U)(1)}()((0,B.H)(ee,(0,o.lI)(ee)))}},9030:(tn,Re,v)=>{"use strict";v.d(Re,{v:()=>o});var u=v(1985),y=v(8750);function o(B){return new u.c(W=>{(0,y.Tg)(B()).subscribe(W)})}},983:(tn,Re,v)=>{"use strict";v.d(Re,{w:()=>y});const y=new(v(1985).c)(W=>W.complete())},7468:(tn,Re,v)=>{"use strict";v.d(Re,{p:()=>V});var u=v(1985),y=v(3073),o=v(8750),B=v(9326),W=v(4360),ee=v(6450),re=v(8496);function V(...F){const U=(0,B.ms)(F),{args:L,keys:he}=(0,y.D)(F),de=new u.c(be=>{const{length:Te}=L;if(!Te)return void be.complete();const Me=new Array(Te);let te=Te,ve=Te;for(let tt=0;tt{bt||(bt=!0,ve--),Me[tt]=Ve},()=>te--,void 0,()=>{(!te||!bt)&&(ve||be.next(he?(0,re.e)(he,Me):Me),be.complete())}))}});return U?de.pipe((0,ee.I)(U)):de}},6648:(tn,Re,v)=>{"use strict";v.d(Re,{H:()=>se});var u=v(8750),y=v(5225),o=v(9974),B=v(4360);function W(fe,Le=0){return(0,o.N)((et,It)=>{et.subscribe((0,B._)(It,Et=>(0,y.N)(It,fe,()=>It.next(Et),Le),()=>(0,y.N)(It,fe,()=>It.complete(),Le),Et=>(0,y.N)(It,fe,()=>It.error(Et),Le)))})}function ee(fe,Le=0){return(0,o.N)((et,It)=>{It.add(fe.schedule(()=>et.subscribe(It),Le))})}var F=v(1985),L=v(4761),he=v(8071);function be(fe,Le){if(!fe)throw new Error("Iterable cannot be null");return new F.c(et=>{(0,y.N)(et,Le,()=>{const It=fe[Symbol.asyncIterator]();(0,y.N)(et,Le,()=>{It.next().then(Et=>{Et.done?et.complete():et.next(Et.value)})},0,!0)})})}var Te=v(5055),Me=v(9858),te=v(7441),ve=v(5397),tt=v(7953),bt=v(591),Ve=v(5196);function se(fe,Le){return Le?function Xe(fe,Le){if(null!=fe){if((0,Te.l)(fe))return function re(fe,Le){return(0,u.Tg)(fe).pipe(ee(Le),W(Le))}(fe,Le);if((0,te.X)(fe))return function U(fe,Le){return new F.c(et=>{let It=0;return Le.schedule(function(){It===fe.length?et.complete():(et.next(fe[It++]),et.closed||this.schedule())})})}(fe,Le);if((0,Me.y)(fe))return function V(fe,Le){return(0,u.Tg)(fe).pipe(ee(Le),W(Le))}(fe,Le);if((0,tt.T)(fe))return be(fe,Le);if((0,ve.x)(fe))return function de(fe,Le){return new F.c(et=>{let It;return(0,y.N)(et,Le,()=>{It=fe[L.l](),(0,y.N)(et,Le,()=>{let Et,Tt;try{({value:Et,done:Tt}=It.next())}catch(nn){return void et.error(nn)}Tt?et.complete():et.next(Et)},0,!0)}),()=>(0,he.T)(It?.return)&&It.return()})}(fe,Le);if((0,Ve.U)(fe))return function rt(fe,Le){return be((0,Ve.C)(fe),Le)}(fe,Le)}throw(0,bt.L)(fe)}(fe,Le):(0,u.Tg)(fe)}},3726:(tn,Re,v)=>{"use strict";v.d(Re,{R:()=>U});var u=v(8750),y=v(1985),o=v(1397),B=v(7441),W=v(8071),ee=v(6450);const re=["addListener","removeListener"],V=["addEventListener","removeEventListener"],F=["on","off"];function U(Te,Me,te,ve){if((0,W.T)(te)&&(ve=te,te=void 0),ve)return U(Te,Me,te).pipe((0,ee.I)(ve));const[tt,bt]=function be(Te){return(0,W.T)(Te.addEventListener)&&(0,W.T)(Te.removeEventListener)}(Te)?V.map(Ve=>rt=>Te[Ve](Me,rt,te)):function he(Te){return(0,W.T)(Te.addListener)&&(0,W.T)(Te.removeListener)}(Te)?re.map(L(Te,Me)):function de(Te){return(0,W.T)(Te.on)&&(0,W.T)(Te.off)}(Te)?F.map(L(Te,Me)):[];if(!tt&&(0,B.X)(Te))return(0,o.Z)(Ve=>U(Ve,Me,te))((0,u.Tg)(Te));if(!tt)throw new TypeError("Invalid event target");return new y.c(Ve=>{const rt=(...Xe)=>Ve.next(1bt(rt)})}function L(Te,Me){return te=>ve=>Te[te](Me,ve)}},8750:(tn,Re,v)=>{"use strict";v.d(Re,{Tg:()=>de});var u=v(1635),y=v(7441),o=v(9858),B=v(1985),W=v(5055),ee=v(7953),re=v(591),V=v(5397),F=v(5196),U=v(8071),L=v(5334),he=v(3494);function de(Ve){if(Ve instanceof B.c)return Ve;if(null!=Ve){if((0,W.l)(Ve))return function be(Ve){return new B.c(rt=>{const Xe=Ve[he.s]();if((0,U.T)(Xe.subscribe))return Xe.subscribe(rt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,y.X)(Ve))return function Te(Ve){return new B.c(rt=>{for(let Xe=0;Xe{Ve.then(Xe=>{rt.closed||(rt.next(Xe),rt.complete())},Xe=>rt.error(Xe)).then(null,L.m)})}(Ve);if((0,ee.T)(Ve))return ve(Ve);if((0,V.x)(Ve))return function te(Ve){return new B.c(rt=>{for(const Xe of Ve)if(rt.next(Xe),rt.closed)return;rt.complete()})}(Ve);if((0,F.U)(Ve))return function tt(Ve){return ve((0,F.C)(Ve))}(Ve)}throw(0,re.L)(Ve)}function ve(Ve){return new B.c(rt=>{(function bt(Ve,rt){var Xe,se,fe,Le;return(0,u.sH)(this,void 0,void 0,function*(){try{for(Xe=(0,u.xN)(Ve);!(se=yield Xe.next()).done;)if(rt.next(se.value),rt.closed)return}catch(et){fe={error:et}}finally{try{se&&!se.done&&(Le=Xe.return)&&(yield Le.call(Xe))}finally{if(fe)throw fe.error}}rt.complete()})})(Ve,rt).catch(Xe=>rt.error(Xe))})}},7786:(tn,Re,v)=>{"use strict";v.d(Re,{h:()=>ee});var u=v(6365),y=v(8750),o=v(983),B=v(9326),W=v(6648);function ee(...re){const V=(0,B.lI)(re),F=(0,B.R0)(re,1/0),U=re;return U.length?1===U.length?(0,y.Tg)(U[0]):(0,u.U)(F)((0,W.H)(U,V)):o.w}},7673:(tn,Re,v)=>{"use strict";v.d(Re,{of:()=>o});var u=v(9326),y=v(6648);function o(...B){const W=(0,u.lI)(B);return(0,y.H)(B,W)}},8810:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>o});var u=v(1985),y=v(8071);function o(B,W){const ee=(0,y.T)(B)?B:()=>B,re=V=>V.error(ee());return new u.c(W?V=>W.schedule(re,0,V):re)}},1584:(tn,Re,v)=>{"use strict";v.d(Re,{O:()=>W});var u=v(1985),y=v(3236),o=v(9470);function W(ee=0,re,V=y.b){let F=-1;return null!=re&&((0,o.m)(re)?V=re:F=re),new u.c(U=>{let L=function B(ee){return ee instanceof Date&&!isNaN(ee)}(ee)?+ee-V.now():ee;L<0&&(L=0);let he=0;return V.schedule(function(){U.closed||(U.next(he++),0<=F?this.schedule(void 0,F):U.complete())},L)})}},4360:(tn,Re,v)=>{"use strict";v.d(Re,{_:()=>y});var u=v(7707);function y(B,W,ee,re,V){return new o(B,W,ee,re,V)}class o extends u.vU{constructor(W,ee,re,V,F,U){super(W),this.onFinalize=F,this.shouldUnsubscribe=U,this._next=ee?function(L){try{ee(L)}catch(he){W.error(he)}}:super._next,this._error=V?function(L){try{V(L)}catch(he){W.error(he)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(L){W.error(L)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var W;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ee}=this;super.unsubscribe(),!ee&&(null===(W=this.onFinalize)||void 0===W||W.call(this))}}}},3798:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>re});var u=v(3236),y=v(9974),o=v(8750),B=v(4360),ee=v(1584);function re(V,F=u.E){return function W(V){return(0,y.N)((F,U)=>{let L=!1,he=null,de=null,be=!1;const Te=()=>{if(de?.unsubscribe(),de=null,L){L=!1;const te=he;he=null,U.next(te)}be&&U.complete()},Me=()=>{de=null,be&&U.complete()};F.subscribe((0,B._)(U,te=>{L=!0,he=te,de||(0,o.Tg)(V(te)).subscribe(de=(0,B._)(U,Te,Me))},()=>{be=!0,(!L||!de||de.closed)&&U.complete()}))})}(()=>(0,ee.O)(V,F))}},9437:(tn,Re,v)=>{"use strict";v.d(Re,{W:()=>B});var u=v(8750),y=v(4360),o=v(9974);function B(W){return(0,o.N)((ee,re)=>{let U,V=null,F=!1;V=ee.subscribe((0,y._)(re,void 0,void 0,L=>{U=(0,u.Tg)(W(L,B(W)(ee))),V?(V.unsubscribe(),V=null,U.subscribe(re)):F=!0})),F&&(V.unsubscribe(),V=null,U.subscribe(re))})}},274:(tn,Re,v)=>{"use strict";v.d(Re,{H:()=>o});var u=v(1397),y=v(8071);function o(B,W){return(0,y.T)(W)?(0,u.Z)(B,W,1):(0,u.Z)(B,1)}},152:(tn,Re,v)=>{"use strict";v.d(Re,{B:()=>B});var u=v(3236),y=v(9974),o=v(4360);function B(W,ee=u.E){return(0,y.N)((re,V)=>{let F=null,U=null,L=null;const he=()=>{if(F){F.unsubscribe(),F=null;const be=U;U=null,V.next(be)}};function de(){const be=L+W,Te=ee.now();if(Te{U=be,L=ee.now(),F||(F=ee.schedule(de,W),V.add(F))},()=>{he(),V.complete()},void 0,()=>{U=F=null}))})}},1986:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>de});var u=v(3236),y=v(8793),o=v(6697),B=v(9974),W=v(4360),ee=v(5343),V=v(3703),F=v(1397),U=v(8750);function L(be,Te){return Te?Me=>(0,y.x)(Te.pipe((0,o.s)(1),function re(){return(0,B.N)((be,Te)=>{be.subscribe((0,W._)(Te,ee.l))})}()),Me.pipe(L(be))):(0,F.Z)((Me,te)=>(0,U.Tg)(be(Me,te)).pipe((0,o.s)(1),(0,V.u)(Me)))}var he=v(1584);function de(be,Te=u.E){const Me=(0,he.O)(be,Te);return L(()=>Me)}},3294:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>B});var u=v(3669),y=v(9974),o=v(4360);function B(ee,re=u.D){return ee=ee??W,(0,y.N)((V,F)=>{let U,L=!0;V.subscribe((0,o._)(F,he=>{const de=re(he);(L||!ee(U,de))&&(L=!1,U=de,F.next(he))}))})}function W(ee,re){return ee===re}},5964:(tn,Re,v)=>{"use strict";v.d(Re,{p:()=>o});var u=v(9974),y=v(4360);function o(B,W){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>B.call(W,F,V++)&&re.next(F)))})}},980:(tn,Re,v)=>{"use strict";v.d(Re,{j:()=>y});var u=v(9974);function y(o){return(0,u.N)((B,W)=>{try{B.subscribe(W)}finally{W.add(o)}})}},6354:(tn,Re,v)=>{"use strict";v.d(Re,{T:()=>o});var u=v(9974),y=v(4360);function o(B,W){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>{re.next(B.call(W,F,V++))}))})}},3703:(tn,Re,v)=>{"use strict";v.d(Re,{u:()=>y});var u=v(6354);function y(o){return(0,u.T)(()=>o)}},6365:(tn,Re,v)=>{"use strict";v.d(Re,{U:()=>o});var u=v(1397),y=v(3669);function o(B=1/0){return(0,u.Z)(y.D,B)}},1397:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>V});var u=v(6354),y=v(8750),o=v(9974),B=v(5225),W=v(4360),re=v(8071);function V(F,U,L=1/0){return(0,re.T)(U)?V((he,de)=>(0,u.T)((be,Te)=>U(he,be,de,Te))((0,y.Tg)(F(he,de))),L):("number"==typeof U&&(L=U),(0,o.N)((he,de)=>function ee(F,U,L,he,de,be,Te,Me){const te=[];let ve=0,tt=0,bt=!1;const Ve=()=>{bt&&!te.length&&!ve&&U.complete()},rt=se=>ve{be&&U.next(se),ve++;let fe=!1;(0,y.Tg)(L(se,tt++)).subscribe((0,W._)(U,Le=>{de?.(Le),be?rt(Le):U.next(Le)},()=>{fe=!0},void 0,()=>{if(fe)try{for(ve--;te.length&&veXe(Le)):Xe(Le)}Ve()}catch(Le){U.error(Le)}}))};return F.subscribe((0,W._)(U,rt,()=>{bt=!0,Ve()})),()=>{Me?.()}}(he,de,F,L)))}},9898:(tn,Re,v)=>{"use strict";v.d(Re,{B:()=>o});var u=v(9974),y=v(4360);function o(){return(0,u.N)((B,W)=>{let ee=null;B._refCount++;const re=(0,y._)(W,void 0,void 0,void 0,()=>{if(!B||B._refCount<=0||0<--B._refCount)return void(ee=null);const V=B._connection,F=ee;ee=null,V&&(!F||V===F)&&V.unsubscribe(),W.unsubscribe()});B.subscribe(re),re.closed||(ee=B.connect())})}},7647:(tn,Re,v)=>{"use strict";v.d(Re,{u:()=>W});var u=v(8750),y=v(1413),o=v(7707),B=v(9974);function W(re={}){const{connector:V=()=>new y.B,resetOnError:F=!0,resetOnComplete:U=!0,resetOnRefCountZero:L=!0}=re;return he=>{let de,be,Te,Me=0,te=!1,ve=!1;const tt=()=>{be?.unsubscribe(),be=void 0},bt=()=>{tt(),de=Te=void 0,te=ve=!1},Ve=()=>{const rt=de;bt(),rt?.unsubscribe()};return(0,B.N)((rt,Xe)=>{Me++,!ve&&!te&&tt();const se=Te=Te??V();Xe.add(()=>{Me--,0===Me&&!ve&&!te&&(be=ee(Ve,L))}),se.subscribe(Xe),!de&&Me>0&&(de=new o.Ms({next:fe=>se.next(fe),error:fe=>{ve=!0,tt(),be=ee(bt,F,fe),se.error(fe)},complete:()=>{te=!0,tt(),be=ee(bt,U),se.complete()}}),(0,u.Tg)(rt).subscribe(de))})(he)}}function ee(re,V,...F){if(!0===V)return void re();if(!1===V)return;const U=new o.Ms({next:()=>{U.unsubscribe(),re()}});return(0,u.Tg)(V(...F)).subscribe(U)}},4668:(tn,Re,v)=>{"use strict";v.d(Re,{t:()=>o});var u=v(2771),y=v(7647);function o(B,W,ee){let re,V=!1;return B&&"object"==typeof B?({bufferSize:re=1/0,windowTime:W=1/0,refCount:V=!1,scheduler:ee}=B):re=B??1/0,(0,y.u)({connector:()=>new u.m(re,W,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:V})}},5245:(tn,Re,v)=>{"use strict";v.d(Re,{i:()=>y});var u=v(5964);function y(o){return(0,u.p)((B,W)=>o<=W)}},9172:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>B});var u=v(8793),y=v(9326),o=v(9974);function B(...W){const ee=(0,y.lI)(W);return(0,o.N)((re,V)=>{(ee?(0,u.x)(W,re,ee):(0,u.x)(W,re)).subscribe(V)})}},5558:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>B});var u=v(8750),y=v(9974),o=v(4360);function B(W,ee){return(0,y.N)((re,V)=>{let F=null,U=0,L=!1;const he=()=>L&&!F&&V.complete();re.subscribe((0,o._)(V,de=>{F?.unsubscribe();let be=0;const Te=U++;(0,u.Tg)(W(de,Te)).subscribe(F=(0,o._)(V,Me=>V.next(ee?ee(de,Me,Te,be++):Me),()=>{F=null,he()}))},()=>{L=!0,he()}))})}},6697:(tn,Re,v)=>{"use strict";v.d(Re,{s:()=>B});var u=v(983),y=v(9974),o=v(4360);function B(W){return W<=0?()=>u.w:(0,y.N)((ee,re)=>{let V=0;ee.subscribe((0,o._)(re,F=>{++V<=W&&(re.next(F),W<=V&&re.complete())}))})}},6977:(tn,Re,v)=>{"use strict";v.d(Re,{Q:()=>W});var u=v(9974),y=v(4360),o=v(8750),B=v(5343);function W(ee){return(0,u.N)((re,V)=>{(0,o.Tg)(ee).subscribe((0,y._)(V,()=>V.complete(),B.l)),!V.closed&&re.subscribe(V)})}},7048:(tn,Re,v)=>{"use strict";v.d(Re,{v:()=>o});var u=v(9974),y=v(4360);function o(B,W=!1){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>{const U=B(F,V++);(U||W)&&re.next(F),!U&&re.complete()}))})}},8141:(tn,Re,v)=>{"use strict";v.d(Re,{M:()=>W});var u=v(8071),y=v(9974),o=v(4360),B=v(3669);function W(ee,re,V){const F=(0,u.T)(ee)||re||V?{next:ee,error:re,complete:V}:ee;return F?(0,y.N)((U,L)=>{var he;null===(he=F.subscribe)||void 0===he||he.call(F);let de=!0;U.subscribe((0,o._)(L,be=>{var Te;null===(Te=F.next)||void 0===Te||Te.call(F,be),L.next(be)},()=>{var be;de=!1,null===(be=F.complete)||void 0===be||be.call(F),L.complete()},be=>{var Te;de=!1,null===(Te=F.error)||void 0===Te||Te.call(F,be),L.error(be)},()=>{var be,Te;de&&(null===(be=F.unsubscribe)||void 0===be||be.call(F)),null===(Te=F.finalize)||void 0===Te||Te.call(F)}))}):B.D}},6780:(tn,Re,v)=>{"use strict";v.d(Re,{R:()=>W});var u=v(8359);class y extends u.yU{constructor(re,V){super()}schedule(re,V=0){return this}}const o={setInterval(ee,re,...V){const{delegate:F}=o;return F?.setInterval?F.setInterval(ee,re,...V):setInterval(ee,re,...V)},clearInterval(ee){const{delegate:re}=o;return(re?.clearInterval||clearInterval)(ee)},delegate:void 0};var B=v(7908);class W extends y{constructor(re,V){super(re,V),this.scheduler=re,this.work=V,this.pending=!1}schedule(re,V=0){var F;if(this.closed)return this;this.state=re;const U=this.id,L=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId(L,U,V)),this.pending=!0,this.delay=V,this.id=null!==(F=this.id)&&void 0!==F?F:this.requestAsyncId(L,this.id,V),this}requestAsyncId(re,V,F=0){return o.setInterval(re.flush.bind(re,this),F)}recycleAsyncId(re,V,F=0){if(null!=F&&this.delay===F&&!1===this.pending)return V;null!=V&&o.clearInterval(V)}execute(re,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const F=this._execute(re,V);if(F)return F;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(re,V){let U,F=!1;try{this.work(re)}catch(L){F=!0,U=L||new Error("Scheduled action threw falsy error")}if(F)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:re,scheduler:V}=this,{actions:F}=V;this.work=this.state=this.scheduler=null,this.pending=!1,(0,B.o)(F,this),null!=re&&(this.id=this.recycleAsyncId(V,re,null)),this.delay=null,super.unsubscribe()}}}},9687:(tn,Re,v)=>{"use strict";v.d(Re,{q:()=>o});var u=v(6129);class y{constructor(W,ee=y.now){this.schedulerActionCtor=W,this.now=ee}schedule(W,ee=0,re){return new this.schedulerActionCtor(this,W).schedule(re,ee)}}y.now=u.U.now;class o extends y{constructor(W,ee=y.now){super(W,ee),this.actions=[],this._active=!1}flush(W){const{actions:ee}=this;if(this._active)return void ee.push(W);let re;this._active=!0;do{if(re=W.execute(W.state,W.delay))break}while(W=ee.shift());if(this._active=!1,re){for(;W=ee.shift();)W.unsubscribe();throw re}}}},5007:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>be});var u=v(6780);let o,y=1;const B={};function W(Me){return Me in B&&(delete B[Me],!0)}const ee={setImmediate(Me){const te=y++;return B[te]=!0,o||(o=Promise.resolve()),o.then(()=>W(te)&&Me()),te},clearImmediate(Me){W(Me)}},{setImmediate:V,clearImmediate:F}=ee,U={setImmediate(...Me){const{delegate:te}=U;return(te?.setImmediate||V)(...Me)},clearImmediate(Me){const{delegate:te}=U;return(te?.clearImmediate||F)(Me)},delegate:void 0};var he=v(9687);const be=new class de extends he.q{flush(te){this._active=!0;const ve=this._scheduled;this._scheduled=void 0;const{actions:tt}=this;let bt;te=te||tt.shift();do{if(bt=te.execute(te.state,te.delay))break}while((te=tt[0])&&te.id===ve&&tt.shift());if(this._active=!1,bt){for(;(te=tt[0])&&te.id===ve&&tt.shift();)te.unsubscribe();throw bt}}}(class L extends u.R{constructor(te,ve){super(te,ve),this.scheduler=te,this.work=ve}requestAsyncId(te,ve,tt=0){return null!==tt&&tt>0?super.requestAsyncId(te,ve,tt):(te.actions.push(this),te._scheduled||(te._scheduled=U.setImmediate(te.flush.bind(te,void 0))))}recycleAsyncId(te,ve,tt=0){var bt;if(null!=tt?tt>0:this.delay>0)return super.recycleAsyncId(te,ve,tt);const{actions:Ve}=te;null!=ve&&(null===(bt=Ve[Ve.length-1])||void 0===bt?void 0:bt.id)!==ve&&(U.clearImmediate(ve),te._scheduled===ve&&(te._scheduled=void 0))}})},3236:(tn,Re,v)=>{"use strict";v.d(Re,{E:()=>o,b:()=>B});var u=v(6780);const o=new(v(9687).q)(u.R),B=o},6129:(tn,Re,v)=>{"use strict";v.d(Re,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(tn,Re,v)=>{"use strict";v.d(Re,{f:()=>u});const u={setTimeout(y,o,...B){const{delegate:W}=u;return W?.setTimeout?W.setTimeout(y,o,...B):setTimeout(y,o,...B)},clearTimeout(y){const{delegate:o}=u;return(o?.clearTimeout||clearTimeout)(y)},delegate:void 0}},4761:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>y});const y=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(tn,Re,v)=>{"use strict";v.d(Re,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(tn,Re,v)=>{"use strict";v.d(Re,{G:()=>y});const y=(0,v(1853).L)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(tn,Re,v)=>{"use strict";v.d(Re,{R0:()=>ee,lI:()=>W,ms:()=>B});var u=v(8071),y=v(9470);function o(re){return re[re.length-1]}function B(re){return(0,u.T)(o(re))?re.pop():void 0}function W(re){return(0,y.m)(o(re))?re.pop():void 0}function ee(re,V){return"number"==typeof o(re)?re.pop():V}},3073:(tn,Re,v)=>{"use strict";v.d(Re,{D:()=>W});const{isArray:u}=Array,{getPrototypeOf:y,prototype:o,keys:B}=Object;function W(re){if(1===re.length){const V=re[0];if(u(V))return{args:V,keys:null};if(function ee(re){return re&&"object"==typeof re&&y(re)===o}(V)){const F=B(V);return{args:F.map(U=>V[U]),keys:F}}}return{args:re,keys:null}}},7908:(tn,Re,v)=>{"use strict";function u(y,o){if(y){const B=y.indexOf(o);0<=B&&y.splice(B,1)}}v.d(Re,{o:()=>u})},1853:(tn,Re,v)=>{"use strict";function u(y){const B=y(W=>{Error.call(W),W.stack=(new Error).stack});return B.prototype=Object.create(Error.prototype),B.prototype.constructor=B,B}v.d(Re,{L:()=>u})},8496:(tn,Re,v)=>{"use strict";function u(y,o){return y.reduce((B,W,ee)=>(B[W]=o[ee],B),{})}v.d(Re,{e:()=>u})},9786:(tn,Re,v)=>{"use strict";v.d(Re,{Y:()=>o,l:()=>B});var u=v(1026);let y=null;function o(W){if(u.$.useDeprecatedSynchronousErrorHandling){const ee=!y;if(ee&&(y={errorThrown:!1,error:null}),W(),ee){const{errorThrown:re,error:V}=y;if(y=null,re)throw V}}else W()}function B(W){u.$.useDeprecatedSynchronousErrorHandling&&y&&(y.errorThrown=!0,y.error=W)}},5225:(tn,Re,v)=>{"use strict";function u(y,o,B,W=0,ee=!1){const re=o.schedule(function(){B(),ee?y.add(this.schedule(null,W)):this.unsubscribe()},W);if(y.add(re),!ee)return re}v.d(Re,{N:()=>u})},3669:(tn,Re,v)=>{"use strict";function u(y){return y}v.d(Re,{D:()=>u})},7441:(tn,Re,v)=>{"use strict";v.d(Re,{X:()=>u});const u=y=>y&&"number"==typeof y.length&&"function"!=typeof y},7953:(tn,Re,v)=>{"use strict";v.d(Re,{T:()=>y});var u=v(8071);function y(o){return Symbol.asyncIterator&&(0,u.T)(o?.[Symbol.asyncIterator])}},8071:(tn,Re,v)=>{"use strict";function u(y){return"function"==typeof y}v.d(Re,{T:()=>u})},5055:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>o});var u=v(3494),y=v(8071);function o(B){return(0,y.T)(B[u.s])}},5397:(tn,Re,v)=>{"use strict";v.d(Re,{x:()=>o});var u=v(4761),y=v(8071);function o(B){return(0,y.T)(B?.[u.l])}},4402:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(1985),y=v(8071);function o(B){return!!B&&(B instanceof u.c||(0,y.T)(B.lift)&&(0,y.T)(B.subscribe))}},9858:(tn,Re,v)=>{"use strict";v.d(Re,{y:()=>y});var u=v(8071);function y(o){return(0,u.T)(o?.then)}},5196:(tn,Re,v)=>{"use strict";v.d(Re,{C:()=>o,U:()=>B});var u=v(1635),y=v(8071);function o(W){return(0,u.AQ)(this,arguments,function*(){const re=W.getReader();try{for(;;){const{value:V,done:F}=yield(0,u.N3)(re.read());if(F)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{re.releaseLock()}})}function B(W){return(0,y.T)(W?.getReader)}},9470:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>y});var u=v(8071);function y(o){return o&&(0,u.T)(o.schedule)}},9974:(tn,Re,v)=>{"use strict";v.d(Re,{N:()=>o,S:()=>y});var u=v(8071);function y(B){return(0,u.T)(B?.lift)}function o(B){return W=>{if(y(W))return W.lift(function(ee){try{return B(ee,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(tn,Re,v)=>{"use strict";v.d(Re,{I:()=>B});var u=v(6354);const{isArray:y}=Array;function B(W){return(0,u.T)(ee=>function o(W,ee){return y(ee)?W(...ee):W(ee)}(W,ee))}},5343:(tn,Re,v)=>{"use strict";function u(){}v.d(Re,{l:()=>u})},1203:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>y,m:()=>o});var u=v(3669);function y(...B){return o(B)}function o(B){return 0===B.length?u.D:1===B.length?B[0]:function(ee){return B.reduce((re,V)=>V(re),ee)}}},5334:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>o});var u=v(1026),y=v(9270);function o(B){y.f.setTimeout(()=>{const{onUnhandledError:W}=u.$;if(!W)throw B;W(B)})}},591:(tn,Re,v)=>{"use strict";function u(y){return new TypeError(`You provided ${null!==y&&"object"==typeof y?"an invalid object":`'${y}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}v.d(Re,{L:()=>u})},9969:(tn,Re,v)=>{"use strict";v.d(Re,{FX:()=>It,If:()=>o,K2:()=>V,MA:()=>be,Os:()=>re,P:()=>Me,S6:()=>ve,hZ:()=>W,i0:()=>ee,i7:()=>L,iF:()=>F,kY:()=>he,kp:()=>B,sf:()=>Le,ui:()=>et,wk:()=>U});var u=v(177),y=v(4438),o=function(Et){return Et[Et.State=0]="State",Et[Et.Transition=1]="Transition",Et[Et.Sequence=2]="Sequence",Et[Et.Group=3]="Group",Et[Et.Animate=4]="Animate",Et[Et.Keyframes=5]="Keyframes",Et[Et.Style=6]="Style",Et[Et.Trigger=7]="Trigger",Et[Et.Reference=8]="Reference",Et[Et.AnimateChild=9]="AnimateChild",Et[Et.AnimateRef=10]="AnimateRef",Et[Et.Query=11]="Query",Et[Et.Stagger=12]="Stagger",Et}(o||{});const B="*";function W(Et,Tt){return{type:o.Trigger,name:Et,definitions:Tt,options:{}}}function ee(Et,Tt=null){return{type:o.Animate,styles:Tt,timings:Et}}function re(Et,Tt=null){return{type:o.Group,steps:Et,options:Tt}}function V(Et,Tt=null){return{type:o.Sequence,steps:Et,options:Tt}}function F(Et){return{type:o.Style,styles:Et,offset:null}}function U(Et,Tt,nn){return{type:o.State,name:Et,styles:Tt,options:nn}}function L(Et){return{type:o.Keyframes,steps:Et}}function he(Et,Tt,nn=null){return{type:o.Transition,expr:Et,animation:Tt,options:nn}}function be(Et=null){return{type:o.AnimateChild,options:Et}}function Me(Et,Tt,nn=null){return{type:o.Query,selector:Et,animation:Tt,options:nn}}let ve=(()=>{class Et{static{this.\u0275fac=function(Fn){return new(Fn||Et)}}static{this.\u0275prov=y.jDH({token:Et,factory:()=>(0,y.WQX)(bt),providedIn:"root"})}}return Et})();class tt{}let bt=(()=>{class Et extends ve{constructor(nn,Fn){if(super(),this.animationModuleType=(0,y.WQX)(y.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=nn.createRenderer(Fn.body,{id:"0",encapsulation:y.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function fe(Et){const Tt=Et.\u0275type;return 0===Tt||1===Tt}(this._renderer))throw new y.wOt(3600,!1)}build(nn){const Fn=this._nextAnimationId;this._nextAnimationId++;const $n=Array.isArray(nn)?V(nn):nn;return Xe(this._renderer,null,Fn,"register",[$n]),new Ve(Fn,this._renderer)}static{this.\u0275fac=function(Fn){return new(Fn||Et)(y.KVO(y._9s),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"})}}return Et})();class Ve extends tt{constructor(Tt,nn){super(),this._id=Tt,this._renderer=nn}create(Tt,nn){return new rt(this._id,Tt,nn||{},this._renderer)}}class rt{constructor(Tt,nn,Fn,$n){this.id=Tt,this.element=nn,this._renderer=$n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Fn)}_listen(Tt,nn){return this._renderer.listen(this.element,`@@${this.id}:${Tt}`,nn)}_command(Tt,...nn){Xe(this._renderer,this.element,this.id,Tt,nn)}onDone(Tt){this._listen("done",Tt)}onStart(Tt){this._listen("start",Tt)}onDestroy(Tt){this._listen("destroy",Tt)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(Tt){this._command("setPosition",Tt)}getPosition(){return function se(Et){const Tt=Et.\u0275type;return 0===Tt?Et:1===Tt?Et.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function Xe(Et,Tt,nn,Fn,$n){Et.setProperty(Tt,`@@${nn}:${Fn}`,$n)}class Le{constructor(Tt=0,nn=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Tt+nn}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Tt=>Tt()),this._onDoneFns=[])}onStart(Tt){this._originalOnStartFns.push(Tt),this._onStartFns.push(Tt)}onDone(Tt){this._originalOnDoneFns.push(Tt),this._onDoneFns.push(Tt)}onDestroy(Tt){this._onDestroyFns.push(Tt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Tt=>Tt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Tt=>Tt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Tt){this._position=this.totalTime?Tt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Tt){const nn="start"==Tt?this._onStartFns:this._onDoneFns;nn.forEach(Fn=>Fn()),nn.length=0}}class et{constructor(Tt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Tt;let nn=0,Fn=0,$n=0;const yn=this.players.length;0==yn?queueMicrotask(()=>this._onFinish()):this.players.forEach(di=>{di.onDone(()=>{++nn==yn&&this._onFinish()}),di.onDestroy(()=>{++Fn==yn&&this._onDestroy()}),di.onStart(()=>{++$n==yn&&this._onStart()})}),this.totalTime=this.players.reduce((di,mt)=>Math.max(di,mt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Tt=>Tt()),this._onDoneFns=[])}init(){this.players.forEach(Tt=>Tt.init())}onStart(Tt){this._onStartFns.push(Tt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Tt=>Tt()),this._onStartFns=[])}onDone(Tt){this._onDoneFns.push(Tt)}onDestroy(Tt){this._onDestroyFns.push(Tt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Tt=>Tt.play())}pause(){this.players.forEach(Tt=>Tt.pause())}restart(){this.players.forEach(Tt=>Tt.restart())}finish(){this._onFinish(),this.players.forEach(Tt=>Tt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Tt=>Tt.destroy()),this._onDestroyFns.forEach(Tt=>Tt()),this._onDestroyFns=[])}reset(){this.players.forEach(Tt=>Tt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Tt){const nn=Tt*this.totalTime;this.players.forEach(Fn=>{const $n=Fn.totalTime?Math.min(1,nn/Fn.totalTime):1;Fn.setPosition($n)})}getPosition(){const Tt=this.players.reduce((nn,Fn)=>null===nn||Fn.totalTime>nn.totalTime?Fn:nn,null);return null!=Tt?Tt.getPosition():0}beforeDestroy(){this.players.forEach(Tt=>{Tt.beforeDestroy&&Tt.beforeDestroy()})}triggerCallback(Tt){const nn="start"==Tt?this._onStartFns:this._onDoneFns;nn.forEach(Fn=>Fn()),nn.length=0}}const It="!"},9888:(tn,Re,v)=>{"use strict";v.d(Re,{Pd:()=>Bt,Au:()=>mt,vr:()=>Tt,Bu:()=>Ee,FN:()=>Gt,GX:()=>Je,Q_:()=>st,Z7:()=>we,Ai:()=>Cn,px:()=>Xe,_G:()=>$,w6:()=>le,Ae:()=>se});var u=v(177),y=v(4438),o=v(6860),B=v(1413),W=v(8359),re=(v(4402),v(7673)),V=v(4412),F=v(7336),U=v(8141),L=v(152),he=v(5964),de=v(6354),Te=(v(6697),v(5245)),Me=v(3294),te=v(6977),tt=v(2318),bt=v(4085),Ve=v(9327);const rt=" ";function Xe(ot,qe,Ie){const lt=fe(ot,qe);Ie=Ie.trim(),!lt.some(Xt=>Xt.trim()===Ie)&&(lt.push(Ie),ot.setAttribute(qe,lt.join(rt)))}function se(ot,qe,Ie){const lt=fe(ot,qe);Ie=Ie.trim();const Xt=lt.filter(an=>an!==Ie);Xt.length?ot.setAttribute(qe,Xt.join(rt)):ot.removeAttribute(qe)}function fe(ot,qe){return ot.getAttribute(qe)?.match(/\S+/g)??[]}const et="cdk-describedby-message",It="cdk-describedby-host";let Et=0,Tt=(()=>{class ot{constructor(Ie,lt){this._platform=lt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Ie,this._id=(0,y.WQX)(y.sZ2)+"-"+Et++}describe(Ie,lt,Xt){if(!this._canBeDescribed(Ie,lt))return;const an=nn(lt,Xt);"string"!=typeof lt?(Fn(lt,this._id),this._messageRegistry.set(an,{messageElement:lt,referenceCount:0})):this._messageRegistry.has(an)||this._createMessageElement(lt,Xt),this._isElementDescribedByMessage(Ie,an)||this._addMessageReference(Ie,an)}removeDescription(Ie,lt,Xt){if(!lt||!this._isElementNode(Ie))return;const an=nn(lt,Xt);if(this._isElementDescribedByMessage(Ie,an)&&this._removeMessageReference(Ie,an),"string"==typeof lt){const li=this._messageRegistry.get(an);li&&0===li.referenceCount&&this._deleteMessageElement(an)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Ie=this._document.querySelectorAll(`[${It}="${this._id}"]`);for(let lt=0;lt0!=Xt.indexOf(et));Ie.setAttribute("aria-describedby",lt.join(" "))}_addMessageReference(Ie,lt){const Xt=this._messageRegistry.get(lt);Xe(Ie,"aria-describedby",Xt.messageElement.id),Ie.setAttribute(It,this._id),Xt.referenceCount++}_removeMessageReference(Ie,lt){const Xt=this._messageRegistry.get(lt);Xt.referenceCount--,se(Ie,"aria-describedby",Xt.messageElement.id),Ie.removeAttribute(It)}_isElementDescribedByMessage(Ie,lt){const Xt=fe(Ie,"aria-describedby"),an=this._messageRegistry.get(lt),li=an&&an.messageElement.id;return!!li&&-1!=Xt.indexOf(li)}_canBeDescribed(Ie,lt){if(!this._isElementNode(Ie))return!1;if(lt&&"object"==typeof lt)return!0;const Xt=null==lt?"":`${lt}`.trim(),an=Ie.getAttribute("aria-label");return!(!Xt||an&&an.trim()===Xt)}_isElementNode(Ie){return Ie.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(u.qQ),y.KVO(o.OD))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function nn(ot,qe){return"string"==typeof ot?`${qe||""}/${ot}`:ot}function Fn(ot,qe){ot.id||(ot.id=`${et}-${qe}-${Et++}`)}class yn{constructor(qe,Ie){this._letterKeyStream=new B.B,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new B.B,this.selectedItem=this._selectedItem;const lt="number"==typeof Ie?.debounceInterval?Ie.debounceInterval:200;Ie?.skipPredicate&&(this._skipPredicateFn=Ie.skipPredicate),this.setItems(qe),this._setupKeyHandler(lt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(qe){this._selectedItemIndex=qe}setItems(qe){this._items=qe}handleKey(qe){const Ie=qe.keyCode;qe.key&&1===qe.key.length?this._letterKeyStream.next(qe.key.toLocaleUpperCase()):(Ie>=F.A&&Ie<=F.Z||Ie>=F.f2&&Ie<=F.bn)&&this._letterKeyStream.next(String.fromCharCode(Ie))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(qe){this._letterKeyStream.pipe((0,U.M)(Ie=>this._pressedLetters.push(Ie)),(0,L.B)(qe),(0,he.p)(()=>this._pressedLetters.length>0),(0,de.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Ie=>{for(let lt=1;ltlt.disabled,this.tabOut=new B.B,this.change=new B.B,qe instanceof y.rOR?this._itemChangesSubscription=qe.changes.subscribe(lt=>this._itemsChanged(lt.toArray())):(0,y.Hps)(qe)&&(this._effectRef=(0,y.QZP)(()=>this._itemsChanged(qe()),{injector:Ie}))}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){this._typeaheadSubscription.unsubscribe();const Ie=this._getItemsArray();return this._typeahead=new yn(Ie,{debounceInterval:"number"==typeof qe?qe:void 0,skipPredicate:lt=>this._skipPredicateFn(lt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(lt=>{this.setActiveItem(lt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(qe=!0){return this._homeAndEnd=qe,this}withPageUpDown(qe=!0,Ie=10){return this._pageUpAndDown={enabled:qe,delta:Ie},this}setActiveItem(qe){const Ie=this._activeItem;this.updateActiveItem(qe),this._activeItem!==Ie&&this.change.next(this._activeItemIndex)}onKeydown(qe){const Ie=qe.keyCode,Xt=["altKey","ctrlKey","metaKey","shiftKey"].every(an=>!qe[an]||this._allowedModifierKeys.indexOf(an)>-1);switch(Ie){case F.wn:return void this.tabOut.next();case F.n6:if(this._vertical&&Xt){this.setNextItemActive();break}return;case F.i7:if(this._vertical&&Xt){this.setPreviousItemActive();break}return;case F.LE:if(this._horizontal&&Xt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case F.UQ:if(this._horizontal&&Xt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case F.yZ:if(this._homeAndEnd&&Xt){this.setFirstItemActive();break}return;case F.Kp:if(this._homeAndEnd&&Xt){this.setLastItemActive();break}return;case F.w_:if(this._pageUpAndDown.enabled&&Xt){const an=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(an>0?an:0,1);break}return;case F.dB:if(this._pageUpAndDown.enabled&&Xt){const an=this._activeItemIndex+this._pageUpAndDown.delta,li=this._getItemsArray().length;this._setActiveItemByIndex(an-1&&Ie!==this._activeItemIndex&&(this._activeItemIndex=Ie,this._typeahead?.setCurrentSelectedItemIndex(Ie))}}}class mt extends di{setActiveItem(qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(qe),this.activeItem&&this.activeItem.setActiveStyles()}}class Ee extends di{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let we=(()=>{class ot{constructor(Ie){this._platform=Ie}isDisabled(Ie){return Ie.hasAttribute("disabled")}isVisible(Ie){return function me(ot){return!!(ot.offsetWidth||ot.offsetHeight||"function"==typeof ot.getClientRects&&ot.getClientRects().length)}(Ie)&&"visible"===getComputedStyle(Ie).visibility}isTabbable(Ie){if(!this._platform.isBrowser)return!1;const lt=function Oe(ot){try{return ot.frameElement}catch{return null}}(function Zt(ot){return ot.ownerDocument&&ot.ownerDocument.defaultView||window}(Ie));if(lt&&(-1===wt(lt)||!this.isVisible(lt)))return!1;let Xt=Ie.nodeName.toLowerCase(),an=wt(Ie);return Ie.hasAttribute("contenteditable")?-1!==an:!("iframe"===Xt||"object"===Xt||this._platform.WEBKIT&&this._platform.IOS&&!function mn(ot){let qe=ot.nodeName.toLowerCase(),Ie="input"===qe&&ot.type;return"text"===Ie||"password"===Ie||"select"===qe||"textarea"===qe}(Ie))&&("audio"===Xt?!!Ie.hasAttribute("controls")&&-1!==an:"video"===Xt?-1!==an&&(null!==an||this._platform.FIREFOX||Ie.hasAttribute("controls")):Ie.tabIndex>=0)}isFocusable(Ie,lt){return function ni(ot){return!function Pe(ot){return function xe(ot){return"input"==ot.nodeName.toLowerCase()}(ot)&&"hidden"==ot.type}(ot)&&(function We(ot){let qe=ot.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(ot)||function xt(ot){return function ut(ot){return"a"==ot.nodeName.toLowerCase()}(ot)&&ot.hasAttribute("href")}(ot)||ot.hasAttribute("contenteditable")||Rt(ot))}(Ie)&&!this.isDisabled(Ie)&&(lt?.ignoreVisibility||this.isVisible(Ie))}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function Rt(ot){if(!ot.hasAttribute("tabindex")||void 0===ot.tabIndex)return!1;let qe=ot.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function wt(ot){if(!Rt(ot))return null;const qe=parseInt(ot.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class _e{get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}constructor(qe,Ie,lt,Xt,an=!1,li){this._element=qe,this._checker=Ie,this._ngZone=lt,this._document=Xt,this._injector=li,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,an||this.attachAnchors()}destroy(){const qe=this._startAnchor,Ie=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),Ie&&(Ie.removeEventListener("focus",this.endAnchorListener),Ie.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const Ie=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?Ie.length?Ie[0]:this._getFirstTabbableElement(this._element):Ie.length?Ie[Ie.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const Ie=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ie){if(!this._checker.isFocusable(Ie)){const lt=this._getFirstTabbableElement(Ie);return lt?.focus(qe),!!lt}return Ie.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const Ie=this._getRegionBoundary("start");return Ie&&Ie.focus(qe),!!Ie}focusLastTabbableElement(qe){const Ie=this._getRegionBoundary("end");return Ie&&Ie.focus(qe),!!Ie}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Ie=qe.children;for(let lt=0;lt=0;lt--){const Xt=Ie[lt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ie[lt]):null;if(Xt)return Xt}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,Ie){qe?Ie.setAttribute("tabindex","0"):Ie.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._injector?(0,y.mal)(qe,{injector:this._injector}):setTimeout(qe)}}let Je=(()=>{class ot{constructor(Ie,lt,Xt){this._checker=Ie,this._ngZone=lt,this._injector=(0,y.WQX)(y.zZn),this._document=Xt}create(Ie,lt=!1){return new _e(Ie,this._checker,this._ngZone,this._document,lt,this._injector)}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(we),y.KVO(y.SKi),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function $(ot){return 0===ot.buttons||0===ot.detail}function le(ot){const qe=ot.touches&&ot.touches[0]||ot.changedTouches&&ot.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const ue=new y.nKC("cdk-input-modality-detector-options"),nt={ignoreKeys:[F.A$,F.W3,F.eg,F.Ge,F.FX]},Ut=(0,o.BQ)({passive:!0,capture:!0});let jt=(()=>{class ot{get mostRecentModality(){return this._modality.value}constructor(Ie,lt,Xt,an){this._platform=Ie,this._mostRecentTarget=null,this._modality=new V.t(null),this._lastTouchMs=0,this._onKeydown=li=>{this._options?.ignoreKeys?.some(wr=>wr===li.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.Fb)(li))},this._onMousedown=li=>{Date.now()-this._lastTouchMs<650||(this._modality.next($(li)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.Fb)(li))},this._onTouchstart=li=>{le(li)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.Fb)(li))},this._options={...nt,...an},this.modalityDetected=this._modality.pipe((0,Te.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Me.F)()),Ie.isBrowser&<.runOutsideAngular(()=>{Xt.addEventListener("keydown",this._onKeydown,Ut),Xt.addEventListener("mousedown",this._onMousedown,Ut),Xt.addEventListener("touchstart",this._onTouchstart,Ut)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ut),document.removeEventListener("mousedown",this._onMousedown,Ut),document.removeEventListener("touchstart",this._onTouchstart,Ut))}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD),y.KVO(y.SKi),y.KVO(u.qQ),y.KVO(ue,8))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();const On=new y.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Ln(){return null}}),wi=new y.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let en=0,Cn=(()=>{class ot{constructor(Ie,lt,Xt,an){this._ngZone=lt,this._defaultOptions=an,this._document=Xt,this._liveElement=Ie||this._createLiveElement()}announce(Ie,...lt){const Xt=this._defaultOptions;let an,li;return 1===lt.length&&"number"==typeof lt[0]?li=lt[0]:[an,li]=lt,this.clear(),clearTimeout(this._previousTimeout),an||(an=Xt&&Xt.politeness?Xt.politeness:"polite"),null==li&&Xt&&(li=Xt.duration),this._liveElement.setAttribute("aria-live",an),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(wr=>this._currentResolve=wr)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ie,"number"==typeof li&&(this._previousTimeout=setTimeout(()=>this.clear(),li)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ie="cdk-live-announcer-element",lt=this._document.getElementsByClassName(Ie),Xt=this._document.createElement("div");for(let an=0;an .cdk-overlay-container [aria-modal="true"]');for(let Xt=0;Xt{class ot{constructor(Ie,lt,Xt,an,li){this._ngZone=Ie,this._platform=lt,this._inputModalityDetector=Xt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new B.B,this._rootNodeFocusAndBlurListener=wr=>{for(let Mi=(0,o.Fb)(wr);Mi;Mi=Mi.parentElement)"focus"===wr.type?this._onFocus(wr,Mi):this._onBlur(wr,Mi)},this._document=an,this._detectionMode=li?.detectionMode||Be.IMMEDIATE}monitor(Ie,lt=!1){const Xt=(0,bt.i8)(Ie);if(!this._platform.isBrowser||1!==Xt.nodeType)return(0,re.of)();const an=(0,o.KT)(Xt)||this._getDocument(),li=this._elementInfo.get(Xt);if(li)return lt&&(li.checkChildren=!0),li.subject;const wr={checkChildren:lt,subject:new B.B,rootNode:an};return this._elementInfo.set(Xt,wr),this._registerGlobalListeners(wr),wr.subject}stopMonitoring(Ie){const lt=(0,bt.i8)(Ie),Xt=this._elementInfo.get(lt);Xt&&(Xt.subject.complete(),this._setClasses(lt),this._elementInfo.delete(lt),this._removeGlobalListeners(Xt))}focusVia(Ie,lt,Xt){const an=(0,bt.i8)(Ie);an===this._getDocument().activeElement?this._getClosestElementsInfo(an).forEach(([wr,Dr])=>this._originChanged(wr,lt,Dr)):(this._setOrigin(lt),"function"==typeof an.focus&&an.focus(Xt))}ngOnDestroy(){this._elementInfo.forEach((Ie,lt)=>this.stopMonitoring(lt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ie){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ie)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ie&&this._isLastInteractionFromInputLabel(Ie)?"mouse":"program"}_shouldBeAttributedToTouch(Ie){return this._detectionMode===Be.EVENTUAL||!!Ie?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ie,lt){Ie.classList.toggle("cdk-focused",!!lt),Ie.classList.toggle("cdk-touch-focused","touch"===lt),Ie.classList.toggle("cdk-keyboard-focused","keyboard"===lt),Ie.classList.toggle("cdk-mouse-focused","mouse"===lt),Ie.classList.toggle("cdk-program-focused","program"===lt)}_setOrigin(Ie,lt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ie,this._originFromTouchInteraction="touch"===Ie&<,this._detectionMode===Be.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ie,lt){const Xt=this._elementInfo.get(lt),an=(0,o.Fb)(Ie);!Xt||!Xt.checkChildren&<!==an||this._originChanged(lt,this._getFocusOrigin(an),Xt)}_onBlur(Ie,lt){const Xt=this._elementInfo.get(lt);!Xt||Xt.checkChildren&&Ie.relatedTarget instanceof Node&<.contains(Ie.relatedTarget)||(this._setClasses(lt),this._emitOrigin(Xt,null))}_emitOrigin(Ie,lt){Ie.subject.observers.length&&this._ngZone.run(()=>Ie.subject.next(lt))}_registerGlobalListeners(Ie){if(!this._platform.isBrowser)return;const lt=Ie.rootNode,Xt=this._rootNodeFocusListenerCount.get(lt)||0;Xt||this._ngZone.runOutsideAngular(()=>{lt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),lt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ye)}),this._rootNodeFocusListenerCount.set(lt,Xt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,te.Q)(this._stopInputModalityDetector)).subscribe(an=>{this._setOrigin(an,!0)}))}_removeGlobalListeners(Ie){const lt=Ie.rootNode;if(this._rootNodeFocusListenerCount.has(lt)){const Xt=this._rootNodeFocusListenerCount.get(lt);Xt>1?this._rootNodeFocusListenerCount.set(lt,Xt-1):(lt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),lt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ye),this._rootNodeFocusListenerCount.delete(lt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ie,lt,Xt){this._setClasses(Ie,lt),this._emitOrigin(Xt,lt),this._lastFocusOrigin=lt}_getClosestElementsInfo(Ie){const lt=[];return this._elementInfo.forEach((Xt,an)=>{(an===Ie||Xt.checkChildren&&an.contains(Ie))&<.push([an,Xt])}),lt}_isLastInteractionFromInputLabel(Ie){const{_mostRecentTarget:lt,mostRecentModality:Xt}=this._inputModalityDetector;if("mouse"!==Xt||!lt||lt===Ie||"INPUT"!==Ie.nodeName&&"TEXTAREA"!==Ie.nodeName||Ie.disabled)return!1;const an=Ie.labels;if(an)for(let li=0;li{class ot{constructor(Ie,lt){this._platform=Ie,this._document=lt,this._breakpointSubscription=(0,y.WQX)(Ve.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yi.NONE;const Ie=this._document.createElement("div");Ie.style.backgroundColor="rgb(1,2,3)",Ie.style.position="absolute",this._document.body.appendChild(Ie);const lt=this._document.defaultView||window,Xt=lt&<.getComputedStyle?lt.getComputedStyle(Ie):null,an=(Xt&&Xt.backgroundColor||"").replace(/ /g,"");switch(Ie.remove(),an){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yi.BLACK_ON_WHITE}return yi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ie=this._document.body.classList;Ie.remove(At,Ti,sn),this._hasCheckedHighContrastMode=!0;const lt=this.getHighContrastMode();lt===yi.BLACK_ON_WHITE?Ie.add(At,Ti):lt===yi.WHITE_ON_BLACK&&Ie.add(At,sn)}}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})(),Bt=(()=>{class ot{constructor(Ie){Ie._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(st))}}static{this.\u0275mod=y.$C({type:ot})}static{this.\u0275inj=y.G2t({imports:[tt.w5]})}}return ot})()},8203:(tn,Re,v)=>{"use strict";v.d(Re,{dS:()=>re,jI:()=>F});var u=v(4438),y=v(177);const o=new u.nKC("cdk-dir-doc",{providedIn:"root",factory:function B(){return(0,u.WQX)(y.qQ)}}),W=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{class U{constructor(he){this.value="ltr",this.change=new u.bkB,he&&(this.value=function ee(U){const L=U?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&navigator?.language?W.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((he.body?he.body.dir:null)||(he.documentElement?he.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(de){return new(de||U)(u.KVO(o,8))}}static{this.\u0275prov=u.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})(),F=(()=>{class U{static{this.\u0275fac=function(de){return new(de||U)}}static{this.\u0275mod=u.$C({type:U})}static{this.\u0275inj=u.G2t({})}}return U})()},4085:(tn,Re,v)=>{"use strict";v.d(Re,{FG:()=>W,OE:()=>o,a1:()=>ee,he:()=>y,i8:()=>re});var u=v(4438);function y(F){return null!=F&&"false"!=`${F}`}function o(F,U=0){return function B(F){return!isNaN(parseFloat(F))&&!isNaN(Number(F))}(F)?Number(F):2===arguments.length?U:0}function W(F){return Array.isArray(F)?F:[F]}function ee(F){return null==F?"":"string"==typeof F?F:`${F}px`}function re(F){return F instanceof u.aKT?F.nativeElement:F}},5024:(tn,Re,v)=>{"use strict";v.d(Re,{CB:()=>he,zP:()=>be}),v(4402),v(7673);var o=v(1413),B=v(4438);class he{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(Me=!1,te,ve=!0,tt){this._multiple=Me,this._emitChanges=ve,this.compareWith=tt,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.B,te&&te.length&&(Me?te.forEach(bt=>this._markSelected(bt)):this._markSelected(te[0]),this._selectedToEmit.length=0)}select(...Me){this._verifyValueAssignment(Me),Me.forEach(ve=>this._markSelected(ve));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}deselect(...Me){this._verifyValueAssignment(Me),Me.forEach(ve=>this._unmarkSelected(ve));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}setSelection(...Me){this._verifyValueAssignment(Me);const te=this.selected,ve=new Set(Me);Me.forEach(bt=>this._markSelected(bt)),te.filter(bt=>!ve.has(this._getConcreteValue(bt,ve))).forEach(bt=>this._unmarkSelected(bt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}toggle(Me){return this.isSelected(Me)?this.deselect(Me):this.select(Me)}clear(Me=!0){this._unmarkAll();const te=this._hasQueuedChanges();return Me&&this._emitChangeEvent(),te}isSelected(Me){return this._selection.has(this._getConcreteValue(Me))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Me){this._multiple&&this.selected&&this._selected.sort(Me)}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(Me){Me=this._getConcreteValue(Me),this.isSelected(Me)||(this._multiple||this._unmarkAll(),this.isSelected(Me)||this._selection.add(Me),this._emitChanges&&this._selectedToEmit.push(Me))}_unmarkSelected(Me){Me=this._getConcreteValue(Me),this.isSelected(Me)&&(this._selection.delete(Me),this._emitChanges&&this._deselectedToEmit.push(Me))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Me=>this._unmarkSelected(Me))}_verifyValueAssignment(Me){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Me,te){if(this.compareWith){te=te??this._selection;for(let ve of te)if(this.compareWith(Me,ve))return ve;return Me}return Me}}let be=(()=>{class Te{constructor(){this._listeners=[]}notify(te,ve){for(let tt of this._listeners)tt(te,ve)}listen(te){return this._listeners.push(te),()=>{this._listeners=this._listeners.filter(ve=>te!==ve)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275prov=B.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},7336:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Se,A$:()=>V,FX:()=>ee,Fm:()=>W,Ge:()=>T,Kp:()=>Te,LE:()=>tt,UQ:()=>te,W3:()=>re,Z:()=>Q,_f:()=>L,bn:()=>yn,dB:()=>be,eg:()=>Ae,f2:()=>fe,i7:()=>ve,n6:()=>bt,rp:()=>oe,t6:()=>he,w_:()=>de,wn:()=>o,yZ:()=>Me});const o=9,W=13,ee=16,re=17,V=18,L=27,he=32,de=33,be=34,Te=35,Me=36,te=37,ve=38,tt=39,bt=40,fe=48,yn=57,Se=65,Q=90,T=91,Ae=224;function oe($e,...vt){return vt.length?vt.some(at=>$e[at]):$e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey}},9327:(tn,Re,v)=>{"use strict";v.d(Re,{QP:()=>bt,Rp:()=>rt});var u=v(4438),y=v(4085),o=v(1413),B=v(4572),W=v(8793),ee=v(1985),re=v(6697),V=v(5245),F=v(152),U=v(6354),L=v(9172),he=v(6977),de=v(6860);const Te=new Set;let Me,te=(()=>{class Xe{constructor(fe,Le){this._platform=fe,this._nonce=Le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):tt}matchMedia(fe){return(this._platform.WEBKIT||this._platform.BLINK)&&function ve(Xe,se){if(!Te.has(Xe))try{Me||(Me=document.createElement("style"),se&&Me.setAttribute("nonce",se),Me.setAttribute("type","text/css"),document.head.appendChild(Me)),Me.sheet&&(Me.sheet.insertRule(`@media ${Xe} {body{ }}`,0),Te.add(Xe))}catch(fe){console.error(fe)}}(fe,this._nonce),this._matchMedia(fe)}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(de.OD),u.KVO(u.BIS,8))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();function tt(Xe){return{matches:"all"===Xe||""===Xe,media:Xe,addListener:()=>{},removeListener:()=>{}}}let bt=(()=>{class Xe{constructor(fe,Le){this._mediaMatcher=fe,this._zone=Le,this._queries=new Map,this._destroySubject=new o.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(fe){return Ve((0,y.FG)(fe)).some(et=>this._registerQuery(et).mql.matches)}observe(fe){const et=Ve((0,y.FG)(fe)).map(Et=>this._registerQuery(Et).observable);let It=(0,B.z)(et);return It=(0,W.x)(It.pipe((0,re.s)(1)),It.pipe((0,V.i)(1),(0,F.B)(0))),It.pipe((0,U.T)(Et=>{const Tt={matches:!1,breakpoints:{}};return Et.forEach(({matches:nn,query:Fn})=>{Tt.matches=Tt.matches||nn,Tt.breakpoints[Fn]=nn}),Tt}))}_registerQuery(fe){if(this._queries.has(fe))return this._queries.get(fe);const Le=this._mediaMatcher.matchMedia(fe),It={observable:new ee.c(Et=>{const Tt=nn=>this._zone.run(()=>Et.next(nn));return Le.addListener(Tt),()=>{Le.removeListener(Tt)}}).pipe((0,L.Z)(Le),(0,U.T)(({matches:Et})=>({query:fe,matches:Et})),(0,he.Q)(this._destroySubject)),mql:Le};return this._queries.set(fe,It),It}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(te),u.KVO(u.SKi))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();function Ve(Xe){return Xe.map(se=>se.split(",")).reduce((se,fe)=>se.concat(fe)).map(se=>se.trim())}const rt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(tn,Re,v)=>{"use strict";v.d(Re,{w5:()=>ee});var u=v(4438);let o=(()=>{class re{create(F){return typeof MutationObserver>"u"?null:new MutationObserver(F)}static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275prov=u.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})(),ee=(()=>{class re{static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275mod=u.$C({type:re})}static{this.\u0275inj=u.G2t({providers:[o]})}}return re})()},7987:(tn,Re,v)=>{"use strict";v.d(Re,{$Q:()=>xe,Sf:()=>yn,Tv:()=>Xe,WB:()=>ut,hJ:()=>We,rR:()=>se,yY:()=>di,z_:()=>mn});var u=v(5542),y=v(177),o=v(4438),B=v(4085),W=v(6860),ee=v(5964),re=v(6977),V=v(7048),F=v(8203),U=v(6939),L=v(1413),he=v(8359),de=v(7786),be=v(7336);const Te=(0,W.CZ)();class Me{constructor(_e,Je){this._viewportRuler=_e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Je}attach(){}enable(){if(this._canBeEnabled()){const _e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=_e.style.left||"",this._previousHTMLStyles.top=_e.style.top||"",_e.style.left=(0,B.a1)(-this._previousScrollPosition.left),_e.style.top=(0,B.a1)(-this._previousScrollPosition.top),_e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const _e=this._document.documentElement,Ge=_e.style,dt=this._document.body.style,rn=Ge.scrollBehavior||"",Q=dt.scrollBehavior||"";this._isEnabled=!1,Ge.left=this._previousHTMLStyles.left,Ge.top=this._previousHTMLStyles.top,_e.classList.remove("cdk-global-scrollblock"),Te&&(Ge.scrollBehavior=dt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Te&&(Ge.scrollBehavior=rn,dt.scrollBehavior=Q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Je=this._document.body,Ge=this._viewportRuler.getViewportSize();return Je.scrollHeight>Ge.height||Je.scrollWidth>Ge.width}}class ve{constructor(_e,Je,Ge,dt){this._scrollDispatcher=_e,this._ngZone=Je,this._viewportRuler=Ge,this._config=dt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(_e){this._overlayRef=_e}enable(){if(this._scrollSubscription)return;const _e=this._scrollDispatcher.scrolled(0).pipe((0,ee.p)(Je=>!Je||!this._overlayRef.overlayElement.contains(Je.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=_e.subscribe(()=>{const Je=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Je-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}}class tt{enable(){}disable(){}attach(){}}function bt(Zt,_e){return _e.some(Je=>Zt.bottomJe.bottom||Zt.rightJe.right)}function Ve(Zt,_e){return _e.some(Je=>Zt.topJe.bottom||Zt.leftJe.right)}class rt{constructor(_e,Je,Ge,dt){this._scrollDispatcher=_e,this._viewportRuler=Je,this._ngZone=Ge,this._config=dt,this._scrollSubscription=null}attach(_e){this._overlayRef=_e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Je=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ge,height:dt}=this._viewportRuler.getViewportSize();bt(Je,[{width:Ge,height:dt,bottom:dt,right:Ge,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class Zt{constructor(Je,Ge,dt,rn){this._scrollDispatcher=Je,this._viewportRuler=Ge,this._ngZone=dt,this.noop=()=>new tt,this.close=Q=>new ve(this._scrollDispatcher,this._ngZone,this._viewportRuler,Q),this.block=()=>new Me(this._viewportRuler,this._document),this.reposition=Q=>new rt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Q),this._document=rn}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(u.R),o.KVO(u.Xj),o.KVO(o.SKi),o.KVO(y.qQ))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();class se{constructor(_e){if(this.scrollStrategy=new tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,_e){const Je=Object.keys(_e);for(const Ge of Je)void 0!==_e[Ge]&&(this[Ge]=_e[Ge])}}}class et{constructor(_e,Je){this.connectionPair=_e,this.scrollableViewProperties=Je}}let Tt=(()=>{class Zt{constructor(Je){this._attachedOverlays=[],this._document=Je}ngOnDestroy(){this.detach()}add(Je){this.remove(Je),this._attachedOverlays.push(Je)}remove(Je){const Ge=this._attachedOverlays.indexOf(Je);Ge>-1&&this._attachedOverlays.splice(Ge,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),nn=(()=>{class Zt extends Tt{constructor(Je,Ge){super(Je),this._ngZone=Ge,this._keydownListener=dt=>{const rn=this._attachedOverlays;for(let Q=rn.length-1;Q>-1;Q--)if(rn[Q]._keydownEvents.observers.length>0){const T=rn[Q]._keydownEvents;this._ngZone?this._ngZone.run(()=>T.next(dt)):T.next(dt);break}}}add(Je){super.add(Je),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)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ),o.KVO(o.SKi,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),Fn=(()=>{class Zt extends Tt{constructor(Je,Ge,dt){super(Je),this._platform=Ge,this._ngZone=dt,this._cursorStyleIsSet=!1,this._pointerDownListener=rn=>{this._pointerDownEventTarget=(0,W.Fb)(rn)},this._clickListener=rn=>{const Q=(0,W.Fb)(rn),T="click"===rn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Q;this._pointerDownEventTarget=null;const N=this._attachedOverlays.slice();for(let $=N.length-1;$>-1;$--){const le=N[$];if(le._outsidePointerEvents.observers.length<1||!le.hasAttached())continue;if($n(le.overlayElement,Q)||$n(le.overlayElement,T))break;const ue=le._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ue.next(rn)):ue.next(rn)}}}add(Je){if(super.add(Je),!this._isAttached){const Ge=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ge)):this._addEventListeners(Ge),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ge.style.cursor,Ge.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Je=this._document.body;Je.removeEventListener("pointerdown",this._pointerDownListener,!0),Je.removeEventListener("click",this._clickListener,!0),Je.removeEventListener("auxclick",this._clickListener,!0),Je.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Je.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Je){Je.addEventListener("pointerdown",this._pointerDownListener,!0),Je.addEventListener("click",this._clickListener,!0),Je.addEventListener("auxclick",this._clickListener,!0),Je.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ),o.KVO(W.OD),o.KVO(o.SKi,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();function $n(Zt,_e){const Je=typeof ShadowRoot<"u"&&ShadowRoot;let Ge=_e;for(;Ge;){if(Ge===Zt)return!0;Ge=Je&&Ge instanceof ShadowRoot?Ge.host:Ge.parentNode}return!1}let yn=(()=>{class Zt{constructor(Je,Ge){this._platform=Ge,this._document=Je}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Je="cdk-overlay-container";if(this._platform.isBrowser||(0,W.v8)()){const dt=this._document.querySelectorAll(`.${Je}[platform="server"], .${Je}[platform="test"]`);for(let rn=0;rnthis._backdropClick.next(nt),this._backdropTransitionendHandler=nt=>{this._disposeBackdrop(nt.target)},this._keydownEvents=new L.B,this._outsidePointerEvents=new L.B,this._renders=new L.B,dt.scrollStrategy&&(this._scrollStrategy=dt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=dt.positionStrategy,this._afterRenderRef=(0,o.O8t)(()=>(0,o.Tzd)(()=>{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);const Je=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=(0,o.mal)(()=>{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),"function"==typeof Je?.onDestroy&&Je.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Je}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const _e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),_e}dispose(){const _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={...this._config,..._e},this._updateElementSize()}setDirection(_e){this._config={...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(){const _e=this._config.direction;return _e?"string"==typeof _e?_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;const _e=this._pane.style;_e.width=(0,B.a1)(this._config.width),_e.height=(0,B.a1)(this._config.height),_e.minWidth=(0,B.a1)(this._config.minWidth),_e.minHeight=(0,B.a1)(this._config.minHeight),_e.maxWidth=(0,B.a1)(this._config.maxWidth),_e.maxHeight=(0,B.a1)(this._config.maxHeight)}_togglePointerEvents(_e){this._pane.style.pointerEvents=_e?"":"none"}_attachBackdrop(){const _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(){const _e=this._backdropElement;if(_e){if(this._animationsDisabled)return void this._disposeBackdrop(_e);_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,Je,Ge){const dt=(0,B.FG)(Je||[]).filter(rn=>!!rn);dt.length&&(Ge?_e.classList.add(...dt):_e.classList.remove(...dt))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const _e=this._renders.pipe((0,re.Q)((0,de.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),_e.unsubscribe())})})}_disposeScrollStrategy(){const _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)}}const mt="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class J{get positions(){return this._preferredPositions}constructor(_e,Je,Ge,dt,rn){this._viewportRuler=Je,this._document=Ge,this._platform=dt,this._overlayContainer=rn,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 L.B,this._resizeSubscription=he.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(_e)}attach(_e){this._validatePositions(),_e.hostElement.classList.add(mt),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)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const _e=this._originRect,Je=this._overlayRect,Ge=this._viewportRect,dt=this._containerRect,rn=[];let Q;for(let T of this._preferredPositions){let N=this._getOriginPoint(_e,dt,T),$=this._getOverlayPoint(N,Je,T),le=this._getOverlayFit($,Je,Ge,T);if(le.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(T,N);this._canFitWithFlexibleDimensions(le,$,Ge)?rn.push({position:T,origin:N,overlayRect:Je,boundingBoxRect:this._calculateBoundingBoxRect(N,T)}):(!Q||Q.overlayFit.visibleAreaN&&(N=le,T=$)}return this._isPushed=!1,void this._applyPosition(T.position,T.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Q.position,Q.originPoint);this._applyPosition(Q.position,Q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const _e=this._lastPosition;if(_e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Je=this._getOriginPoint(this._originRect,this._containerRect,_e);this._applyPosition(_e,Je)}else this.apply()}withScrollableContainers(_e){return this._scrollables=_e,this}withPositions(_e){return this._preferredPositions=_e,-1===_e.indexOf(this._lastPosition)&&(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,Je,Ge){let dt,rn;if("center"==Ge.originX)dt=_e.left+_e.width/2;else{const Q=this._isRtl()?_e.right:_e.left,T=this._isRtl()?_e.left:_e.right;dt="start"==Ge.originX?Q:T}return Je.left<0&&(dt-=Je.left),rn="center"==Ge.originY?_e.top+_e.height/2:"top"==Ge.originY?_e.top:_e.bottom,Je.top<0&&(rn-=Je.top),{x:dt,y:rn}}_getOverlayPoint(_e,Je,Ge){let dt,rn;return dt="center"==Ge.overlayX?-Je.width/2:"start"===Ge.overlayX?this._isRtl()?-Je.width:0:this._isRtl()?0:-Je.width,rn="center"==Ge.overlayY?-Je.height/2:"top"==Ge.overlayY?0:-Je.height,{x:_e.x+dt,y:_e.y+rn}}_getOverlayFit(_e,Je,Ge,dt){const rn=Ne(Je);let{x:Q,y:T}=_e,N=this._getOffset(dt,"x"),$=this._getOffset(dt,"y");N&&(Q+=N),$&&(T+=$);let nt=0-T,zt=T+rn.height-Ge.height,Ut=this._subtractOverflows(rn.width,0-Q,Q+rn.width-Ge.width),jt=this._subtractOverflows(rn.height,nt,zt),On=Ut*jt;return{visibleArea:On,isCompletelyWithinViewport:rn.width*rn.height===On,fitsInViewportVertically:jt===rn.height,fitsInViewportHorizontally:Ut==rn.width}}_canFitWithFlexibleDimensions(_e,Je,Ge){if(this._hasFlexibleDimensions){const dt=Ge.bottom-Je.y,rn=Ge.right-Je.x,Q=gt(this._overlayRef.getConfig().minHeight),T=gt(this._overlayRef.getConfig().minWidth);return(_e.fitsInViewportVertically||null!=Q&&Q<=dt)&&(_e.fitsInViewportHorizontally||null!=T&&T<=rn)}return!1}_pushOverlayOnScreen(_e,Je,Ge){if(this._previousPushAmount&&this._positionLocked)return{x:_e.x+this._previousPushAmount.x,y:_e.y+this._previousPushAmount.y};const dt=Ne(Je),rn=this._viewportRect,Q=Math.max(_e.x+dt.width-rn.width,0),T=Math.max(_e.y+dt.height-rn.height,0),N=Math.max(rn.top-Ge.top-_e.y,0),$=Math.max(rn.left-Ge.left-_e.x,0);let le=0,ue=0;return le=dt.width<=rn.width?$||-Q:_e.xUt&&!this._isInitialRender&&!this._growAfterOpen&&(Q=_e.y-Ut/2)}if("end"===Je.overlayX&&!dt||"start"===Je.overlayX&&dt)nt=Ge.width-_e.x+2*this._viewportMargin,le=_e.x-this._viewportMargin;else if("start"===Je.overlayX&&!dt||"end"===Je.overlayX&&dt)ue=_e.x,le=Ge.right-_e.x;else{const zt=Math.min(Ge.right-_e.x+Ge.left,_e.x),Ut=this._lastBoundingBoxSize.width;le=2*zt,ue=_e.x-zt,le>Ut&&!this._isInitialRender&&!this._growAfterOpen&&(ue=_e.x-Ut/2)}return{top:Q,left:ue,bottom:T,right:nt,width:le,height:rn}}_setBoundingBoxStyles(_e,Je){const Ge=this._calculateBoundingBoxRect(_e,Je);!this._isInitialRender&&!this._growAfterOpen&&(Ge.height=Math.min(Ge.height,this._lastBoundingBoxSize.height),Ge.width=Math.min(Ge.width,this._lastBoundingBoxSize.width));const dt={};if(this._hasExactPosition())dt.top=dt.left="0",dt.bottom=dt.right=dt.maxHeight=dt.maxWidth="",dt.width=dt.height="100%";else{const rn=this._overlayRef.getConfig().maxHeight,Q=this._overlayRef.getConfig().maxWidth;dt.height=(0,B.a1)(Ge.height),dt.top=(0,B.a1)(Ge.top),dt.bottom=(0,B.a1)(Ge.bottom),dt.width=(0,B.a1)(Ge.width),dt.left=(0,B.a1)(Ge.left),dt.right=(0,B.a1)(Ge.right),dt.alignItems="center"===Je.overlayX?"center":"end"===Je.overlayX?"flex-end":"flex-start",dt.justifyContent="center"===Je.overlayY?"center":"bottom"===Je.overlayY?"flex-end":"flex-start",rn&&(dt.maxHeight=(0,B.a1)(rn)),Q&&(dt.maxWidth=(0,B.a1)(Q))}this._lastBoundingBoxSize=Ge,Se(this._boundingBox.style,dt)}_resetBoundingBoxStyles(){Se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(_e,Je){const Ge={},dt=this._hasExactPosition(),rn=this._hasFlexibleDimensions,Q=this._overlayRef.getConfig();if(dt){const le=this._viewportRuler.getViewportScrollPosition();Se(Ge,this._getExactOverlayY(Je,_e,le)),Se(Ge,this._getExactOverlayX(Je,_e,le))}else Ge.position="static";let T="",N=this._getOffset(Je,"x"),$=this._getOffset(Je,"y");N&&(T+=`translateX(${N}px) `),$&&(T+=`translateY(${$}px)`),Ge.transform=T.trim(),Q.maxHeight&&(dt?Ge.maxHeight=(0,B.a1)(Q.maxHeight):rn&&(Ge.maxHeight="")),Q.maxWidth&&(dt?Ge.maxWidth=(0,B.a1)(Q.maxWidth):rn&&(Ge.maxWidth="")),Se(this._pane.style,Ge)}_getExactOverlayY(_e,Je,Ge){let dt={top:"",bottom:""},rn=this._getOverlayPoint(Je,this._overlayRect,_e);return this._isPushed&&(rn=this._pushOverlayOnScreen(rn,this._overlayRect,Ge)),"bottom"===_e.overlayY?dt.bottom=this._document.documentElement.clientHeight-(rn.y+this._overlayRect.height)+"px":dt.top=(0,B.a1)(rn.y),dt}_getExactOverlayX(_e,Je,Ge){let Q,dt={left:"",right:""},rn=this._getOverlayPoint(Je,this._overlayRect,_e);return this._isPushed&&(rn=this._pushOverlayOnScreen(rn,this._overlayRect,Ge)),Q=this._isRtl()?"end"===_e.overlayX?"left":"right":"end"===_e.overlayX?"right":"left","right"===Q?dt.right=this._document.documentElement.clientWidth-(rn.x+this._overlayRect.width)+"px":dt.left=(0,B.a1)(rn.x),dt}_getScrollVisibility(){const _e=this._getOriginRect(),Je=this._pane.getBoundingClientRect(),Ge=this._scrollables.map(dt=>dt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ve(_e,Ge),isOriginOutsideView:bt(_e,Ge),isOverlayClipped:Ve(Je,Ge),isOverlayOutsideView:bt(Je,Ge)}}_subtractOverflows(_e,...Je){return Je.reduce((Ge,dt)=>Ge-Math.max(dt,0),_e)}_getNarrowedViewportRect(){const _e=this._document.documentElement.clientWidth,Je=this._document.documentElement.clientHeight,Ge=this._viewportRuler.getViewportScrollPosition();return{top:Ge.top+this._viewportMargin,left:Ge.left+this._viewportMargin,right:Ge.left+_e-this._viewportMargin,bottom:Ge.top+Je-this._viewportMargin,width:_e-2*this._viewportMargin,height:Je-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(_e,Je){return"x"===Je?null==_e.offsetX?this._offsetX:_e.offsetX:null==_e.offsetY?this._offsetY:_e.offsetY}_validatePositions(){}_addPanelClasses(_e){this._pane&&(0,B.FG)(_e).forEach(Je=>{""!==Je&&-1===this._appliedPanelClasses.indexOf(Je)&&(this._appliedPanelClasses.push(Je),this._pane.classList.add(Je))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(_e=>{this._pane.classList.remove(_e)}),this._appliedPanelClasses=[])}_getOriginRect(){const _e=this._origin;if(_e instanceof o.aKT)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const Je=_e.width||0,Ge=_e.height||0;return{top:_e.y,bottom:_e.y+Ge,left:_e.x,right:_e.x+Je,height:Ge,width:Je}}}function Se(Zt,_e){for(let Je in _e)_e.hasOwnProperty(Je)&&(Zt[Je]=_e[Je]);return Zt}function gt(Zt){if("number"!=typeof Zt&&null!=Zt){const[_e,Je]=Zt.split(Ee);return Je&&"px"!==Je?null:parseFloat(_e)}return Zt||null}function Ne(Zt){return{top:Math.floor(Zt.top),right:Math.floor(Zt.right),bottom:Math.floor(Zt.bottom),left:Math.floor(Zt.left),width:Math.floor(Zt.width),height:Math.floor(Zt.height)}}const Mt="cdk-global-overlay-wrapper";class we{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(_e){const Je=_e.getConfig();this._overlayRef=_e,this._width&&!Je.width&&_e.updateSize({width:this._width}),this._height&&!Je.height&&_e.updateSize({height:this._height}),_e.hostElement.classList.add(Mt),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;const _e=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement.style,Ge=this._overlayRef.getConfig(),{width:dt,height:rn,maxWidth:Q,maxHeight:T}=Ge,N=!("100%"!==dt&&"100vw"!==dt||Q&&"100%"!==Q&&"100vw"!==Q),$=!("100%"!==rn&&"100vh"!==rn||T&&"100%"!==T&&"100vh"!==T),le=this._xPosition,ue=this._xOffset,nt="rtl"===this._overlayRef.getConfig().direction;let zt="",Ut="",jt="";N?jt="flex-start":"center"===le?(jt="center",nt?Ut=ue:zt=ue):nt?"left"===le||"end"===le?(jt="flex-end",zt=ue):("right"===le||"start"===le)&&(jt="flex-start",Ut=ue):"left"===le||"start"===le?(jt="flex-start",zt=ue):("right"===le||"end"===le)&&(jt="flex-end",Ut=ue),_e.position=this._cssPosition,_e.marginLeft=N?"0":zt,_e.marginTop=$?"0":this._topOffset,_e.marginBottom=this._bottomOffset,_e.marginRight=N?"0":Ut,Je.justifyContent=jt,Je.alignItems=$?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const _e=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement,Ge=Je.style;Je.classList.remove(Mt),Ge.justifyContent=Ge.alignItems=_e.marginTop=_e.marginBottom=_e.marginLeft=_e.marginRight=_e.position="",this._overlayRef=null,this._isDisposed=!0}}let Oe=(()=>{class Zt{constructor(Je,Ge,dt,rn){this._viewportRuler=Je,this._document=Ge,this._platform=dt,this._overlayContainer=rn}global(){return new we}flexibleConnectedTo(Je){return new J(Je,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(u.Xj),o.KVO(y.qQ),o.KVO(W.OD),o.KVO(yn))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),me=0,We=(()=>{class Zt{constructor(Je,Ge,dt,rn,Q,T,N,$,le,ue,nt,zt){this.scrollStrategies=Je,this._overlayContainer=Ge,this._componentFactoryResolver=dt,this._positionBuilder=rn,this._keyboardDispatcher=Q,this._injector=T,this._ngZone=N,this._document=$,this._directionality=le,this._location=ue,this._outsideClickDispatcher=nt,this._animationsModuleType=zt}create(Je){const Ge=this._createHostElement(),dt=this._createPaneElement(Ge),rn=this._createPortalOutlet(dt),Q=new se(Je);return Q.direction=Q.direction||this._directionality.value,new di(rn,Ge,dt,Q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(o.uvJ))}position(){return this._positionBuilder}_createPaneElement(Je){const Ge=this._document.createElement("div");return Ge.id="cdk-overlay-"+me++,Ge.classList.add("cdk-overlay-pane"),Je.appendChild(Ge),Ge}_createHostElement(){const Je=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Je),Je}_createPortalOutlet(Je){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new U.aI(Je,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(Xe),o.KVO(yn),o.KVO(o.OM3),o.KVO(Oe),o.KVO(nn),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(y.qQ),o.KVO(F.dS),o.KVO(y.aZ),o.KVO(Fn),o.KVO(o.bc$,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();const Pe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xt=new o.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Zt=(0,o.WQX)(We);return()=>Zt.scrollStrategies.reposition()}});let xe=(()=>{class Zt{constructor(Je){this.elementRef=Je}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.rXU(o.aKT))}}static{this.\u0275dir=o.FsC({type:Zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return Zt})(),ut=(()=>{class Zt{get offsetX(){return this._offsetX}set offsetX(Je){this._offsetX=Je,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Je){this._offsetY=Je,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Je){this._disposeOnNavigation=Je}constructor(Je,Ge,dt,rn,Q){this._overlay=Je,this._dir=Q,this._backdropSubscription=he.yU.EMPTY,this._attachSubscription=he.yU.EMPTY,this._detachSubscription=he.yU.EMPTY,this._positionSubscription=he.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,o.WQX)(o.SKi),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 o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new U.VA(Ge,dt),this._scrollStrategyFactory=rn,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(Je){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Je.origin&&this.open&&this._position.apply()),Je.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pe);const Je=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Je.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Je.detachments().subscribe(()=>this.detach.emit()),Je.keydownEvents().subscribe(Ge=>{this.overlayKeydown.next(Ge),Ge.keyCode===be._f&&!this.disableClose&&!(0,be.rp)(Ge)&&(Ge.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ge=>{const dt=this._getOriginElement(),rn=(0,W.Fb)(Ge);(!dt||dt!==rn&&!dt.contains(rn))&&this.overlayOutsideClick.next(Ge)})}_buildConfig(){const Je=this._position=this.positionStrategy||this._createPositionStrategy(),Ge=new se({direction:this._dir,positionStrategy:Je,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Ge.width=this.width),(this.height||0===this.height)&&(Ge.height=this.height),(this.minWidth||0===this.minWidth)&&(Ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ge.minHeight=this.minHeight),this.backdropClass&&(Ge.backdropClass=this.backdropClass),this.panelClass&&(Ge.panelClass=this.panelClass),Ge}_updatePositionStrategy(Je){const Ge=this.positions.map(dt=>({originX:dt.originX,originY:dt.originY,overlayX:dt.overlayX,overlayY:dt.overlayY,offsetX:dt.offsetX||this.offsetX,offsetY:dt.offsetY||this.offsetY,panelClass:dt.panelClass||void 0}));return Je.setOrigin(this._getOrigin()).withPositions(Ge).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Je=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Je),Je}_getOrigin(){return this.origin instanceof xe?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof xe?this.origin.elementRef.nativeElement:this.origin instanceof o.aKT?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(Je=>{this.backdropClick.emit(Je)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.v)(()=>this.positionChange.observers.length>0)).subscribe(Je=>{this._ngZone.run(()=>this.positionChange.emit(Je)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.rXU(We),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(xt),o.rXU(F.dS,8))}}static{this.\u0275dir=o.FsC({type:Zt,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",o.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",o.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",o.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",o.L39],push:[2,"cdkConnectedOverlayPush","push",o.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",o.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.GFd,o.OA$]})}}return Zt})();const wt={provide:xt,deps:[We],useFactory:function Rt(Zt){return()=>Zt.scrollStrategies.reposition()}};let mn=(()=>{class Zt{static{this.\u0275fac=function(Ge){return new(Ge||Zt)}}static{this.\u0275mod=o.$C({type:Zt})}static{this.\u0275inj=o.G2t({providers:[We,wt],imports:[F.jI,U.jc,u.E9,u.E9]})}}return Zt})()},6860:(tn,Re,v)=>{"use strict";v.d(Re,{BD:()=>Me,BQ:()=>L,CZ:()=>Te,Fb:()=>Ve,KT:()=>tt,MU:()=>V,OD:()=>B,r5:()=>he,v8:()=>rt,vc:()=>bt});var u=v(4438),y=v(177);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let ee,B=(()=>{class Xe{constructor(fe){this._platformId=fe,this.isBrowser=this._platformId?(0,y.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(u.Agw))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V(){if(ee)return ee;if("object"!=typeof document||!document)return ee=new Set(re),ee;let Xe=document.createElement("input");return ee=new Set(re.filter(se=>(Xe.setAttribute("type",se),Xe.type===se))),ee}let F;function L(Xe){return function U(){if(null==F&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>F=!0}))}finally{F=F||!1}return F}()?Xe:!!Xe.capture}var he=function(Xe){return Xe[Xe.NORMAL=0]="NORMAL",Xe[Xe.NEGATED=1]="NEGATED",Xe[Xe.INVERTED=2]="INVERTED",Xe}(he||{});let de,be,te;function Te(){if(null==be){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return be=!1,be;if("scrollBehavior"in document.documentElement.style)be=!0;else{const Xe=Element.prototype.scrollTo;be=!!Xe&&!/\{\s*\[native code\]\s*\}/.test(Xe.toString())}}return be}function Me(){if("object"!=typeof document||!document)return he.NORMAL;if(null==de){const Xe=document.createElement("div"),se=Xe.style;Xe.dir="rtl",se.width="1px",se.overflow="auto",se.visibility="hidden",se.pointerEvents="none",se.position="absolute";const fe=document.createElement("div"),Le=fe.style;Le.width="2px",Le.height="1px",Xe.appendChild(fe),document.body.appendChild(Xe),de=he.NORMAL,0===Xe.scrollLeft&&(Xe.scrollLeft=1,de=0===Xe.scrollLeft?he.NEGATED:he.INVERTED),Xe.remove()}return de}function tt(Xe){if(function ve(){if(null==te){const Xe=typeof document<"u"?document.head:null;te=!(!Xe||!Xe.createShadowRoot&&!Xe.attachShadow)}return te}()){const se=Xe.getRootNode?Xe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&se instanceof ShadowRoot)return se}return null}function bt(){let Xe=typeof document<"u"&&document?document.activeElement:null;for(;Xe&&Xe.shadowRoot;){const se=Xe.shadowRoot.activeElement;if(se===Xe)break;Xe=se}return Xe}function Ve(Xe){return Xe.composedPath?Xe.composedPath()[0]:Xe.target}function rt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(tn,Re,v)=>{"use strict";v.d(Re,{A8:()=>U,I3:()=>tt,VA:()=>L,aI:()=>Te,jc:()=>Ve,lb:()=>de});var u=v(4438),y=v(177);class F{attach(se){return this._attachedHost=se,se.attach(this)}detach(){let se=this._attachedHost;null!=se&&(this._attachedHost=null,se.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(se){this._attachedHost=se}}class U extends F{constructor(se,fe,Le,et,It){super(),this.component=se,this.viewContainerRef=fe,this.injector=Le,this.componentFactoryResolver=et,this.projectableNodes=It}}class L extends F{constructor(se,fe,Le,et){super(),this.templateRef=se,this.viewContainerRef=fe,this.context=Le,this.injector=et}get origin(){return this.templateRef.elementRef}attach(se,fe=this.context){return this.context=fe,super.attach(se)}detach(){return this.context=void 0,super.detach()}}class he extends F{constructor(se){super(),this.element=se instanceof u.aKT?se.nativeElement:se}}class de{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(se){return se instanceof U?(this._attachedPortal=se,this.attachComponentPortal(se)):se instanceof L?(this._attachedPortal=se,this.attachTemplatePortal(se)):this.attachDomPortal&&se instanceof he?(this._attachedPortal=se,this.attachDomPortal(se)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(se){this._disposeFn=se}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Te extends de{constructor(se,fe,Le,et,It){super(),this.outletElement=se,this._componentFactoryResolver=fe,this._appRef=Le,this._defaultInjector=et,this.attachDomPortal=Et=>{const Tt=Et.element,nn=this._document.createComment("dom-portal");Tt.parentNode.insertBefore(nn,Tt),this.outletElement.appendChild(Tt),this._attachedPortal=Et,super.setDisposeFn(()=>{nn.parentNode&&nn.parentNode.replaceChild(Tt,nn)})},this._document=It}attachComponentPortal(se){const Le=(se.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(se.component);let et;return se.viewContainerRef?(et=se.viewContainerRef.createComponent(Le,se.viewContainerRef.length,se.injector||se.viewContainerRef.injector,se.projectableNodes||void 0),this.setDisposeFn(()=>et.destroy())):(et=Le.create(se.injector||this._defaultInjector||u.zZn.NULL),this._appRef.attachView(et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(et.hostView),et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(et)),this._attachedPortal=se,et}attachTemplatePortal(se){let fe=se.viewContainerRef,Le=fe.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return Le.rootNodes.forEach(et=>this.outletElement.appendChild(et)),Le.detectChanges(),this.setDisposeFn(()=>{let et=fe.indexOf(Le);-1!==et&&fe.remove(et)}),this._attachedPortal=se,Le}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(se){return se.hostView.rootNodes[0]}}let tt=(()=>{class Xe extends de{constructor(fe,Le,et){super(),this._componentFactoryResolver=fe,this._viewContainerRef=Le,this._isInitialized=!1,this.attached=new u.bkB,this.attachDomPortal=It=>{const Et=It.element,Tt=this._document.createComment("dom-portal");It.setAttachedHost(this),Et.parentNode.insertBefore(Tt,Et),this._getRootNode().appendChild(Et),this._attachedPortal=It,super.setDisposeFn(()=>{Tt.parentNode&&Tt.parentNode.replaceChild(Et,Tt)})},this._document=et}get portal(){return this._attachedPortal}set portal(fe){this.hasAttached()&&!fe&&!this._isInitialized||(this.hasAttached()&&super.detach(),fe&&super.attach(fe),this._attachedPortal=fe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(fe){fe.setAttachedHost(this);const Le=null!=fe.viewContainerRef?fe.viewContainerRef:this._viewContainerRef,It=(fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(fe.component),Et=Le.createComponent(It,Le.length,fe.injector||Le.injector,fe.projectableNodes||void 0);return Le!==this._viewContainerRef&&this._getRootNode().appendChild(Et.hostView.rootNodes[0]),super.setDisposeFn(()=>Et.destroy()),this._attachedPortal=fe,this._attachedRef=Et,this.attached.emit(Et),Et}attachTemplatePortal(fe){fe.setAttachedHost(this);const Le=this._viewContainerRef.createEmbeddedView(fe.templateRef,fe.context,{injector:fe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=fe,this._attachedRef=Le,this.attached.emit(Le),Le}_getRootNode(){const fe=this._viewContainerRef.element.nativeElement;return fe.nodeType===fe.ELEMENT_NODE?fe:fe.parentNode}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.rXU(u.OM3),u.rXU(u.c1b),u.rXU(y.qQ))}}static{this.\u0275dir=u.FsC({type:Xe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[u.Vt3]})}}return Xe})(),Ve=(()=>{class Xe{static{this.\u0275fac=function(Le){return new(Le||Xe)}}static{this.\u0275mod=u.$C({type:Xe})}static{this.\u0275inj=u.G2t({})}}return Xe})()},5542:(tn,Re,v)=>{"use strict";v.d(Re,{uv:()=>Tt,Gj:()=>Ze,R:()=>Et,E9:()=>je,Xj:()=>Fn});var u=v(4085),y=v(4438),o=v(1413),B=v(7673),W=v(1985),ee=v(3726),re=v(6780),V=v(8359);const F={schedule(Lt){let Mt=requestAnimationFrame,we=cancelAnimationFrame;const{delegate:Oe}=F;Oe&&(Mt=Oe.requestAnimationFrame,we=Oe.cancelAnimationFrame);const me=Mt(We=>{we=void 0,Lt(We)});return new V.yU(()=>we?.(me))},requestAnimationFrame(...Lt){const{delegate:Mt}=F;return(Mt?.requestAnimationFrame||requestAnimationFrame)(...Lt)},cancelAnimationFrame(...Lt){const{delegate:Mt}=F;return(Mt?.cancelAnimationFrame||cancelAnimationFrame)(...Lt)},delegate:void 0};var L=v(9687);new class he extends L.q{flush(Mt){this._active=!0;const we=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let me;Mt=Mt||Oe.shift();do{if(me=Mt.execute(Mt.state,Mt.delay))break}while((Mt=Oe[0])&&Mt.id===we&&Oe.shift());if(this._active=!1,me){for(;(Mt=Oe[0])&&Mt.id===we&&Oe.shift();)Mt.unsubscribe();throw me}}}(class U extends re.R{constructor(Mt,we){super(Mt,we),this.scheduler=Mt,this.work=we}requestAsyncId(Mt,we,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(Mt,we,Oe):(Mt.actions.push(this),Mt._scheduled||(Mt._scheduled=F.requestAnimationFrame(()=>Mt.flush(void 0))))}recycleAsyncId(Mt,we,Oe=0){var me;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(Mt,we,Oe);const{actions:We}=Mt;null!=we&&(null===(me=We[We.length-1])||void 0===me?void 0:me.id)!==we&&(F.cancelAnimationFrame(we),Mt._scheduled=void 0)}});v(5007);var Me=v(3798),te=v(5964),ve=v(6977),tt=v(6860),bt=v(177),Ve=v(8203);let Et=(()=>{class Lt{constructor(we,Oe,me){this._ngZone=we,this._platform=Oe,this._scrolled=new o.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=me}register(we){this.scrollContainers.has(we)||this.scrollContainers.set(we,we.elementScrolled().subscribe(()=>this._scrolled.next(we)))}deregister(we){const Oe=this.scrollContainers.get(we);Oe&&(Oe.unsubscribe(),this.scrollContainers.delete(we))}scrolled(we=20){return this._platform.isBrowser?new W.c(Oe=>{this._globalSubscription||this._addGlobalListener();const me=we>0?this._scrolled.pipe((0,Me.Z)(we)).subscribe(Oe):this._scrolled.subscribe(Oe);return this._scrolledCount++,()=>{me.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,B.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((we,Oe)=>this.deregister(Oe)),this._scrolled.complete()}ancestorScrolled(we,Oe){const me=this.getAncestorScrollContainers(we);return this.scrolled(Oe).pipe((0,te.p)(We=>!We||me.indexOf(We)>-1))}getAncestorScrollContainers(we){const Oe=[];return this.scrollContainers.forEach((me,We)=>{this._scrollableContainsElement(We,we)&&Oe.push(We)}),Oe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(we,Oe){let me=(0,u.i8)(Oe),We=we.getElementRef().nativeElement;do{if(me==We)return!0}while(me=me.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const we=this._getWindow();return(0,ee.R)(we.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.KVO(y.SKi),y.KVO(tt.OD),y.KVO(bt.qQ,8))}}static{this.\u0275prov=y.jDH({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}}return Lt})(),Tt=(()=>{class Lt{constructor(we,Oe,me,We){this.elementRef=we,this.scrollDispatcher=Oe,this.ngZone=me,this.dir=We,this._destroyed=new o.B,this._elementScrolled=new W.c(Pe=>this.ngZone.runOutsideAngular(()=>(0,ee.R)(this.elementRef.nativeElement,"scroll").pipe((0,ve.Q)(this._destroyed)).subscribe(Pe)))}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(we){const Oe=this.elementRef.nativeElement,me=this.dir&&"rtl"==this.dir.value;null==we.left&&(we.left=me?we.end:we.start),null==we.right&&(we.right=me?we.start:we.end),null!=we.bottom&&(we.top=Oe.scrollHeight-Oe.clientHeight-we.bottom),me&&(0,tt.BD)()!=tt.r5.NORMAL?(null!=we.left&&(we.right=Oe.scrollWidth-Oe.clientWidth-we.left),(0,tt.BD)()==tt.r5.INVERTED?we.left=we.right:(0,tt.BD)()==tt.r5.NEGATED&&(we.left=we.right?-we.right:we.right)):null!=we.right&&(we.left=Oe.scrollWidth-Oe.clientWidth-we.right),this._applyScrollToOptions(we)}_applyScrollToOptions(we){const Oe=this.elementRef.nativeElement;(0,tt.CZ)()?Oe.scrollTo(we):(null!=we.top&&(Oe.scrollTop=we.top),null!=we.left&&(Oe.scrollLeft=we.left))}measureScrollOffset(we){const Oe="left",We=this.elementRef.nativeElement;if("top"==we)return We.scrollTop;if("bottom"==we)return We.scrollHeight-We.clientHeight-We.scrollTop;const Pe=this.dir&&"rtl"==this.dir.value;return"start"==we?we=Pe?"right":Oe:"end"==we&&(we=Pe?Oe:"right"),Pe&&(0,tt.BD)()==tt.r5.INVERTED?we==Oe?We.scrollWidth-We.clientWidth-We.scrollLeft:We.scrollLeft:Pe&&(0,tt.BD)()==tt.r5.NEGATED?we==Oe?We.scrollLeft+We.scrollWidth-We.clientWidth:-We.scrollLeft:we==Oe?We.scrollLeft:We.scrollWidth-We.clientWidth-We.scrollLeft}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.rXU(y.aKT),y.rXU(Et),y.rXU(y.SKi),y.rXU(Ve.dS,8))}}static{this.\u0275dir=y.FsC({type:Lt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return Lt})(),Fn=(()=>{class Lt{constructor(we,Oe,me){this._platform=we,this._change=new o.B,this._changeListener=We=>{this._change.next(We)},this._document=me,Oe.runOutsideAngular(()=>{if(we.isBrowser){const We=this._getWindow();We.addEventListener("resize",this._changeListener),We.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const we=this._getWindow();we.removeEventListener("resize",this._changeListener),we.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const we={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),we}getViewportRect(){const we=this.getViewportScrollPosition(),{width:Oe,height:me}=this.getViewportSize();return{top:we.top,left:we.left,bottom:we.top+me,right:we.left+Oe,height:me,width:Oe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const we=this._document,Oe=this._getWindow(),me=we.documentElement,We=me.getBoundingClientRect();return{top:-We.top||we.body.scrollTop||Oe.scrollY||me.scrollTop||0,left:-We.left||we.body.scrollLeft||Oe.scrollX||me.scrollLeft||0}}change(we=20){return we>0?this._change.pipe((0,Me.Z)(we)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const we=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:we.innerWidth,height:we.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.KVO(tt.OD),y.KVO(y.SKi),y.KVO(bt.qQ,8))}}static{this.\u0275prov=y.jDH({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}}return Lt})(),Ze=(()=>{class Lt{static{this.\u0275fac=function(Oe){return new(Oe||Lt)}}static{this.\u0275mod=y.$C({type:Lt})}static{this.\u0275inj=y.G2t({})}}return Lt})(),je=(()=>{class Lt{static{this.\u0275fac=function(Oe){return new(Oe||Lt)}}static{this.\u0275mod=y.$C({type:Lt})}static{this.\u0275inj=y.G2t({imports:[Ve.jI,Ze,Ve.jI,Ze]})}}return Lt})()},7403:(tn,Re,v)=>{"use strict";v.d(Re,{EE:()=>be,P8:()=>L,xb:()=>de});var u=v(6860),y=v(4438),o=v(4085),B=v(983),W=v(1413),ee=v(3726),re=v(3798),V=v(6977),F=v(177);const U=(0,u.BQ)({passive:!0});let L=(()=>{class Te{constructor(te,ve){this._platform=te,this._ngZone=ve,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return B.w;const ve=(0,o.i8)(te),tt=this._monitoredElements.get(ve);if(tt)return tt.subject;const bt=new W.B,Ve="cdk-text-field-autofilled",rt=Xe=>{"cdk-text-field-autofill-start"!==Xe.animationName||ve.classList.contains(Ve)?"cdk-text-field-autofill-end"===Xe.animationName&&ve.classList.contains(Ve)&&(ve.classList.remove(Ve),this._ngZone.run(()=>bt.next({target:Xe.target,isAutofilled:!1}))):(ve.classList.add(Ve),this._ngZone.run(()=>bt.next({target:Xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ve.addEventListener("animationstart",rt,U),ve.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ve,{subject:bt,unlisten:()=>{ve.removeEventListener("animationstart",rt,U)}}),bt}stopMonitoring(te){const ve=(0,o.i8)(te),tt=this._monitoredElements.get(ve);tt&&(tt.unlisten(),tt.subject.complete(),ve.classList.remove("cdk-text-field-autofill-monitored"),ve.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ve))}ngOnDestroy(){this._monitoredElements.forEach((te,ve)=>this.stopMonitoring(ve))}static{this.\u0275fac=function(ve){return new(ve||Te)(y.KVO(u.OD),y.KVO(y.SKi))}}static{this.\u0275prov=y.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})(),de=(()=>{class Te{get minRows(){return this._minRows}set minRows(te){this._minRows=(0,o.OE)(te),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(te){this._maxRows=(0,o.OE)(te),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(te){this._enabled!==te&&((this._enabled=te)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(te){this._cachedPlaceholderHeight=void 0,te?this._textareaElement.setAttribute("placeholder",te):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(te,ve,tt,bt){this._elementRef=te,this._platform=ve,this._ngZone=tt,this._destroyed=new W.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Ve=>{this._hasFocus="focus"===Ve.type},this._document=bt,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const te=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.minHeight=te)}_setMaxHeight(){const te=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.maxHeight=te)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();(0,ee.R)(te,"resize").pipe((0,re.Z)(16),(0,V.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let te=this._textareaElement.cloneNode(!1);te.rows=1,te.style.position="absolute",te.style.visibility="hidden",te.style.border="none",te.style.padding="0",te.style.height="",te.style.minHeight="",te.style.maxHeight="",te.style.overflow="hidden",this._textareaElement.parentNode.appendChild(te),this._cachedLineHeight=te.clientHeight,te.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const te=this._textareaElement,ve=te.style.marginBottom||"",tt=this._platform.FIREFOX,bt=tt&&this._hasFocus,Ve=tt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";bt&&(te.style.marginBottom=`${te.clientHeight}px`),te.classList.add(Ve);const rt=te.scrollHeight-4;return te.classList.remove(Ve),bt&&(te.style.marginBottom=ve),rt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const te=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=te}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(te=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const ve=this._elementRef.nativeElement,tt=ve.value;if(!te&&this._minRows===this._previousMinRows&&tt===this._previousValue)return;const bt=this._measureScrollHeight(),Ve=Math.max(bt,this._cachedPlaceholderHeight||0);ve.style.height=`${Ve}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(ve)):setTimeout(()=>this._scrollToCaretPosition(ve))}),this._previousValue=tt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(te){const{selectionStart:ve,selectionEnd:tt}=te;!this._destroyed.isStopped&&this._hasFocus&&te.setSelectionRange(ve,tt)}static{this.\u0275fac=function(ve){return new(ve||Te)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(F.qQ,8))}}static{this.\u0275dir=y.FsC({type:Te,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ve,tt){1&ve&&y.bIt("input",function(){return tt._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",y.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],standalone:!0,features:[y.GFd]})}}return Te})(),be=(()=>{class Te{static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275mod=y.$C({type:Te})}static{this.\u0275inj=y.G2t({})}}return Te})()},177:(tn,Re,v)=>{"use strict";v.d(Re,{AJ:()=>Vr,B3:()=>ui,Jj:()=>Br,MD:()=>js,N0:()=>Xo,PV:()=>Bs,QT:()=>o,Sm:()=>Me,Sq:()=>Ke,T3:()=>Oi,UE:()=>$o,VF:()=>W,Vy:()=>va,Xr:()=>Hs,YU:()=>ci,ZD:()=>B,_b:()=>Kn,aZ:()=>ve,bT:()=>oe,fw:()=>te,hb:()=>be,hj:()=>F,jo:()=>jo,qQ:()=>re,vh:()=>Kl});var u=v(4438);let y=null;function o(){return y}function B(S){y??=S}class W{}const re=new u.nKC("");let V=(()=>{class S{historyGo(p){throw new Error("")}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(U),providedIn:"platform"})}}return S})();const F=new u.nKC("");let U=(()=>{class S extends V{constructor(){super(),this._doc=(0,u.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(p){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("popstate",p,!1),()=>_.removeEventListener("popstate",p)}onHashChange(p){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("hashchange",p,!1),()=>_.removeEventListener("hashchange",p)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(p){this._location.pathname=p}pushState(p,_,x){this._history.pushState(p,_,x)}replaceState(p,_,x){this._history.replaceState(p,_,x)}forward(){this._history.forward()}back(){this._history.back()}historyGo(p=0){this._history.go(p)}getState(){return this._history.state}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>new S,providedIn:"platform"})}}return S})();function L(S,ne){if(0==S.length)return ne;if(0==ne.length)return S;let p=0;return S.endsWith("/")&&p++,ne.startsWith("/")&&p++,2==p?S+ne.substring(1):1==p?S+ne:S+"/"+ne}function he(S){const ne=S.match(/#|\?|$/),p=ne&&ne.index||S.length;return S.slice(0,p-("/"===S[p-1]?1:0))+S.slice(p)}function de(S){return S&&"?"!==S[0]?"?"+S:S}let be=(()=>{class S{historyGo(p){throw new Error("")}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(Me),providedIn:"root"})}}return S})();const Te=new u.nKC("");let Me=(()=>{class S extends be{constructor(p,_){super(),this._platformLocation=p,this._removeListenerFns=[],this._baseHref=_??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(re).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}prepareExternalUrl(p){return L(this._baseHref,p)}path(p=!1){const _=this._platformLocation.pathname+de(this._platformLocation.search),x=this._platformLocation.hash;return x&&p?`${_}${x}`:_}pushState(p,_,x,X){const ce=this.prepareExternalUrl(x+de(X));this._platformLocation.pushState(p,_,ce)}replaceState(p,_,x,X){const ce=this.prepareExternalUrl(x+de(X));this._platformLocation.replaceState(p,_,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Te,8))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})(),te=(()=>{class S extends be{constructor(p,_){super(),this._platformLocation=p,this._baseHref="",this._removeListenerFns=[],null!=_&&(this._baseHref=_)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}path(p=!1){const _=this._platformLocation.hash??"#";return _.length>0?_.substring(1):_}prepareExternalUrl(p){const _=L(this._baseHref,p);return _.length>0?"#"+_:_}pushState(p,_,x,X){let ce=this.prepareExternalUrl(x+de(X));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(p,_,ce)}replaceState(p,_,x,X){let ce=this.prepareExternalUrl(x+de(X));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(p,_,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Te,8))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}}return S})(),ve=(()=>{class S{constructor(p){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=p;const _=this._locationStrategy.getBaseHref();this._basePath=function rt(S){if(new RegExp("^(https?:)?//").test(S)){const[,p]=S.split(/\/\/[^\/]+/);return p}return S}(he(Ve(_))),this._locationStrategy.onPopState(x=>{this._subject.emit({url:this.path(!0),pop:!0,state:x.state,type:x.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(p=!1){return this.normalize(this._locationStrategy.path(p))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(p,_=""){return this.path()==this.normalize(p+de(_))}normalize(p){return S.stripTrailingSlash(function bt(S,ne){if(!S||!ne.startsWith(S))return ne;const p=ne.substring(S.length);return""===p||["/",";","?","#"].includes(p[0])?p:ne}(this._basePath,Ve(p)))}prepareExternalUrl(p){return p&&"/"!==p[0]&&(p="/"+p),this._locationStrategy.prepareExternalUrl(p)}go(p,_="",x=null){this._locationStrategy.pushState(x,"",p,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+de(_)),x)}replaceState(p,_="",x=null){this._locationStrategy.replaceState(x,"",p,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+de(_)),x)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(p=0){this._locationStrategy.historyGo?.(p)}onUrlChange(p){return this._urlChangeListeners.push(p),this._urlChangeSubscription??=this.subscribe(_=>{this._notifyUrlChangeListeners(_.url,_.state)}),()=>{const _=this._urlChangeListeners.indexOf(p);this._urlChangeListeners.splice(_,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(p="",_){this._urlChangeListeners.forEach(x=>x(p,_))}subscribe(p,_,x){return this._subject.subscribe({next:p,error:_,complete:x})}static{this.normalizeQueryParams=de}static{this.joinWithSlash=L}static{this.stripTrailingSlash=he}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(be))}}static{this.\u0275prov=u.jDH({token:S,factory:()=>function tt(){return new ve((0,u.KVO)(be))}(),providedIn:"root"})}}return S})();function Ve(S){return S.replace(/\/index.html$/,"")}var fe=function(S){return S[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S}(fe||{}),Le=function(S){return S[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S}(Le||{}),et=function(S){return S[S.Narrow=0]="Narrow",S[S.Abbreviated=1]="Abbreviated",S[S.Wide=2]="Wide",S[S.Short=3]="Short",S}(et||{}),It=function(S){return S[S.Short=0]="Short",S[S.Medium=1]="Medium",S[S.Long=2]="Long",S[S.Full=3]="Full",S}(It||{});const Et={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J(S,ne){return xe((0,u.H5H)(S)[u.KH2.DateFormat],ne)}function Se(S,ne){return xe((0,u.H5H)(S)[u.KH2.TimeFormat],ne)}function gt(S,ne){return xe((0,u.H5H)(S)[u.KH2.DateTimeFormat],ne)}function Ne(S,ne){const p=(0,u.H5H)(S),_=p[u.KH2.NumberSymbols][ne];if(typeof _>"u"){if(ne===Et.CurrencyDecimal)return p[u.KH2.NumberSymbols][Et.Decimal];if(ne===Et.CurrencyGroup)return p[u.KH2.NumberSymbols][Et.Group]}return _}const Oe=u.mq5;function me(S){if(!S[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${S[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xe(S,ne){for(let p=ne;p>-1;p--)if(typeof S[p]<"u")return S[p];throw new Error("Locale data API: locale data undefined")}function ut(S){const[ne,p]=S.split(":");return{hours:+ne,minutes:+p}}const ni=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zt={},_e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Je=function(S){return S[S.Short=0]="Short",S[S.ShortGMT=1]="ShortGMT",S[S.Long=2]="Long",S[S.Extended=3]="Extended",S}(Je||{}),Ge=function(S){return S[S.FullYear=0]="FullYear",S[S.Month=1]="Month",S[S.Date=2]="Date",S[S.Hours=3]="Hours",S[S.Minutes=4]="Minutes",S[S.Seconds=5]="Seconds",S[S.FractionalSeconds=6]="FractionalSeconds",S[S.Day=7]="Day",S}(Ge||{}),dt=function(S){return S[S.DayPeriods=0]="DayPeriods",S[S.Days=1]="Days",S[S.Months=2]="Months",S[S.Eras=3]="Eras",S}(dt||{});function rn(S,ne,p,_){let x=function yi(S){if(sn(S))return S;if("number"==typeof S&&!isNaN(S))return new Date(S);if("string"==typeof S){if(S=S.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(S)){const[x,X=1,ce=1]=S.split("-").map(ze=>+ze);return Q(x,X-1,ce)}const p=parseFloat(S);if(!isNaN(S-p))return new Date(p);let _;if(_=S.match(ni))return function Ti(S){const ne=new Date(0);let p=0,_=0;const x=S[8]?ne.setUTCFullYear:ne.setFullYear,X=S[8]?ne.setUTCHours:ne.setHours;S[9]&&(p=Number(S[9]+S[10]),_=Number(S[9]+S[11])),x.call(ne,Number(S[1]),Number(S[2])-1,Number(S[3]));const ce=Number(S[4]||0)-p,ze=Number(S[5]||0)-_,yt=Number(S[6]||0),Dt=Math.floor(1e3*parseFloat("0."+(S[7]||0)));return X.call(ne,ce,ze,yt,Dt),ne}(_)}const ne=new Date(S);if(!sn(ne))throw new Error(`Unable to convert "${S}" into a date`);return ne}(S);ne=T(p,ne)||ne;let ze,ce=[];for(;ne;){if(ze=_e.exec(ne),!ze){ce.push(ne);break}{ce=ce.concat(ze.slice(1));const Pt=ce.pop();if(!Pt)break;ne=Pt}}let yt=x.getTimezoneOffset();_&&(yt=Ye(_,yt),x=function Pn(S,ne,p){const _=p?-1:1,x=S.getTimezoneOffset();return function Gt(S,ne){return(S=new Date(S.getTime())).setMinutes(S.getMinutes()+ne),S}(S,_*(Ye(ne,x)-x))}(x,_,!0));let Dt="";return ce.forEach(Pt=>{const Wt=function ye(S){if(Be[S])return Be[S];let ne;switch(S){case"G":case"GG":case"GGG":ne=zt(dt.Eras,et.Abbreviated);break;case"GGGG":ne=zt(dt.Eras,et.Wide);break;case"GGGGG":ne=zt(dt.Eras,et.Narrow);break;case"y":ne=ue(Ge.FullYear,1,0,!1,!0);break;case"yy":ne=ue(Ge.FullYear,2,0,!0,!0);break;case"yyy":ne=ue(Ge.FullYear,3,0,!1,!0);break;case"yyyy":ne=ue(Ge.FullYear,4,0,!1,!0);break;case"Y":ne=He(1);break;case"YY":ne=He(2,!0);break;case"YYY":ne=He(3);break;case"YYYY":ne=He(4);break;case"M":case"L":ne=ue(Ge.Month,1,1);break;case"MM":case"LL":ne=ue(Ge.Month,2,1);break;case"MMM":ne=zt(dt.Months,et.Abbreviated);break;case"MMMM":ne=zt(dt.Months,et.Wide);break;case"MMMMM":ne=zt(dt.Months,et.Narrow);break;case"LLL":ne=zt(dt.Months,et.Abbreviated,Le.Standalone);break;case"LLLL":ne=zt(dt.Months,et.Wide,Le.Standalone);break;case"LLLLL":ne=zt(dt.Months,et.Narrow,Le.Standalone);break;case"w":ne=Cn(1);break;case"ww":ne=Cn(2);break;case"W":ne=Cn(1,!0);break;case"d":ne=ue(Ge.Date,1);break;case"dd":ne=ue(Ge.Date,2);break;case"c":case"cc":ne=ue(Ge.Day,1);break;case"ccc":ne=zt(dt.Days,et.Abbreviated,Le.Standalone);break;case"cccc":ne=zt(dt.Days,et.Wide,Le.Standalone);break;case"ccccc":ne=zt(dt.Days,et.Narrow,Le.Standalone);break;case"cccccc":ne=zt(dt.Days,et.Short,Le.Standalone);break;case"E":case"EE":case"EEE":ne=zt(dt.Days,et.Abbreviated);break;case"EEEE":ne=zt(dt.Days,et.Wide);break;case"EEEEE":ne=zt(dt.Days,et.Narrow);break;case"EEEEEE":ne=zt(dt.Days,et.Short);break;case"a":case"aa":case"aaa":ne=zt(dt.DayPeriods,et.Abbreviated);break;case"aaaa":ne=zt(dt.DayPeriods,et.Wide);break;case"aaaaa":ne=zt(dt.DayPeriods,et.Narrow);break;case"b":case"bb":case"bbb":ne=zt(dt.DayPeriods,et.Abbreviated,Le.Standalone,!0);break;case"bbbb":ne=zt(dt.DayPeriods,et.Wide,Le.Standalone,!0);break;case"bbbbb":ne=zt(dt.DayPeriods,et.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":ne=zt(dt.DayPeriods,et.Abbreviated,Le.Format,!0);break;case"BBBB":ne=zt(dt.DayPeriods,et.Wide,Le.Format,!0);break;case"BBBBB":ne=zt(dt.DayPeriods,et.Narrow,Le.Format,!0);break;case"h":ne=ue(Ge.Hours,1,-12);break;case"hh":ne=ue(Ge.Hours,2,-12);break;case"H":ne=ue(Ge.Hours,1);break;case"HH":ne=ue(Ge.Hours,2);break;case"m":ne=ue(Ge.Minutes,1);break;case"mm":ne=ue(Ge.Minutes,2);break;case"s":ne=ue(Ge.Seconds,1);break;case"ss":ne=ue(Ge.Seconds,2);break;case"S":ne=ue(Ge.FractionalSeconds,1);break;case"SS":ne=ue(Ge.FractionalSeconds,2);break;case"SSS":ne=ue(Ge.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=jt(Je.Short);break;case"ZZZZZ":ne=jt(Je.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=jt(Je.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=jt(Je.Long);break;default:return null}return Be[S]=ne,ne}(Pt);Dt+=Wt?Wt(x,p,yt):"''"===Pt?"'":Pt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Dt}function Q(S,ne,p){const _=new Date(0);return _.setFullYear(S,ne,p),_.setHours(0,0,0),_}function T(S,ne){const p=function nn(S){return(0,u.H5H)(S)[u.KH2.LocaleId]}(S);if(Zt[p]??={},Zt[p][ne])return Zt[p][ne];let _="";switch(ne){case"shortDate":_=J(S,It.Short);break;case"mediumDate":_=J(S,It.Medium);break;case"longDate":_=J(S,It.Long);break;case"fullDate":_=J(S,It.Full);break;case"shortTime":_=Se(S,It.Short);break;case"mediumTime":_=Se(S,It.Medium);break;case"longTime":_=Se(S,It.Long);break;case"fullTime":_=Se(S,It.Full);break;case"short":const x=T(S,"shortTime"),X=T(S,"shortDate");_=N(gt(S,It.Short),[x,X]);break;case"medium":const ce=T(S,"mediumTime"),ze=T(S,"mediumDate");_=N(gt(S,It.Medium),[ce,ze]);break;case"long":const yt=T(S,"longTime"),Dt=T(S,"longDate");_=N(gt(S,It.Long),[yt,Dt]);break;case"full":const Pt=T(S,"fullTime"),Wt=T(S,"fullDate");_=N(gt(S,It.Full),[Pt,Wt])}return _&&(Zt[p][ne]=_),_}function N(S,ne){return ne&&(S=S.replace(/\{([^}]+)}/g,function(p,_){return null!=ne&&_ in ne?ne[_]:p})),S}function $(S,ne,p="-",_,x){let X="";(S<0||x&&S<=0)&&(x?S=1-S:(S=-S,X=p));let ce=String(S);for(;ce.length0||ze>-p)&&(ze+=p),S===Ge.Hours)0===ze&&-12===p&&(ze=12);else if(S===Ge.FractionalSeconds)return function le(S,ne){return $(S,3).substring(0,ne)}(ze,ne);const yt=Ne(ce,Et.MinusSign);return $(ze,ne,yt,_,x)}}function zt(S,ne,p=Le.Format,_=!1){return function(x,X){return function Ut(S,ne,p,_,x,X){switch(p){case dt.Months:return function yn(S,ne,p){const _=(0,u.H5H)(S),X=xe([_[u.KH2.MonthsFormat],_[u.KH2.MonthsStandalone]],ne);return xe(X,p)}(ne,x,_)[S.getMonth()];case dt.Days:return function $n(S,ne,p){const _=(0,u.H5H)(S),X=xe([_[u.KH2.DaysFormat],_[u.KH2.DaysStandalone]],ne);return xe(X,p)}(ne,x,_)[S.getDay()];case dt.DayPeriods:const ce=S.getHours(),ze=S.getMinutes();if(X){const Dt=function We(S){const ne=(0,u.H5H)(S);return me(ne),(ne[u.KH2.ExtraData][2]||[]).map(_=>"string"==typeof _?ut(_):[ut(_[0]),ut(_[1])])}(ne),Pt=function Pe(S,ne,p){const _=(0,u.H5H)(S);me(_);const X=xe([_[u.KH2.ExtraData][0],_[u.KH2.ExtraData][1]],ne)||[];return xe(X,p)||[]}(ne,x,_),Wt=Dt.findIndex(pn=>{if(Array.isArray(pn)){const[St,Ht]=pn,cn=ce>=St.hours&&ze>=St.minutes,kn=ce0?Math.floor(x/60):Math.ceil(x/60);switch(S){case Je.Short:return(x>=0?"+":"")+$(ce,2,X)+$(Math.abs(x%60),2,X);case Je.ShortGMT:return"GMT"+(x>=0?"+":"")+$(ce,1,X);case Je.Long:return"GMT"+(x>=0?"+":"")+$(ce,2,X)+":"+$(Math.abs(x%60),2,X);case Je.Extended:return 0===_?"Z":(x>=0?"+":"")+$(ce,2,X)+":"+$(Math.abs(x%60),2,X);default:throw new Error(`Unknown zone width "${S}"`)}}}const On=0,Ln=4;function en(S){const ne=S.getDay(),p=0===ne?-3:Ln-ne;return Q(S.getFullYear(),S.getMonth(),S.getDate()+p)}function Cn(S,ne=!1){return function(p,_){let x;if(ne){const X=new Date(p.getFullYear(),p.getMonth(),1).getDay()-1,ce=p.getDate();x=1+Math.floor((ce+X)/7)}else{const X=en(p),ce=function wi(S){const ne=Q(S,On,1).getDay();return Q(S,0,1+(ne<=Ln?Ln:Ln+7)-ne)}(X.getFullYear()),ze=X.getTime()-ce.getTime();x=1+Math.round(ze/6048e5)}return $(x,S,Ne(_,Et.MinusSign))}}function He(S,ne=!1){return function(p,_){return $(en(p).getFullYear(),S,Ne(_,Et.MinusSign),ne)}}const Be={};function Ye(S,ne){S=S.replace(/:/g,"");const p=Date.parse("Jan 01, 1970 00:00:00 "+S)/6e4;return isNaN(p)?ne:p}function sn(S){return S instanceof Date&&!isNaN(S.valueOf())}let Ot=(()=>{class S{static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:function(_){let x=null;return _?x=new _:(X=u.KVO(u.xe9),x=new bn(X)),x;var X},providedIn:"root"})}}return S})();let bn=(()=>{class S extends Ot{constructor(p){super(),this.locale=p}getPluralCategory(p,_){switch(Oe(_||this.locale)(p)){case fe.Zero:return"zero";case fe.One:return"one";case fe.Two:return"two";case fe.Few:return"few";case fe.Many:return"many";default:return"other"}}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(u.xe9))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}}return S})();function Kn(S,ne){ne=encodeURIComponent(ne);for(const p of S.split(";")){const _=p.indexOf("="),[x,X]=-1==_?[p,""]:[p.slice(0,_),p.slice(_+1)];if(x.trim()===ne)return decodeURIComponent(X)}return null}const zn=/\s+/,ii=[];let ci=(()=>{class S{constructor(p,_){this._ngEl=p,this._renderer=_,this.initialClasses=ii,this.stateMap=new Map}set klass(p){this.initialClasses=null!=p?p.trim().split(zn):ii}set ngClass(p){this.rawClass="string"==typeof p?p.trim().split(zn):p}ngDoCheck(){for(const _ of this.initialClasses)this._updateState(_,!0);const p=this.rawClass;if(Array.isArray(p)||p instanceof Set)for(const _ of p)this._updateState(_,!0);else if(null!=p)for(const _ of Object.keys(p))this._updateState(_,!!p[_]);this._applyStateDiff()}_updateState(p,_){const x=this.stateMap.get(p);void 0!==x?(x.enabled!==_&&(x.changed=!0,x.enabled=_),x.touched=!0):this.stateMap.set(p,{enabled:_,changed:!0,touched:!0})}_applyStateDiff(){for(const p of this.stateMap){const _=p[0],x=p[1];x.changed?(this._toggleClass(_,x.enabled),x.changed=!1):x.touched||(x.enabled&&this._toggleClass(_,!1),this.stateMap.delete(_)),x.touched=!1}}_toggleClass(p,_){(p=p.trim()).length>0&&p.split(zn).forEach(x=>{_?this._renderer.addClass(this._ngEl.nativeElement,x):this._renderer.removeClass(this._ngEl.nativeElement,x)})}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return S})();class Qe{constructor(ne,p,_,x){this.$implicit=ne,this.ngForOf=p,this.index=_,this.count=x}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ke=(()=>{class S{set ngForOf(p){this._ngForOf=p,this._ngForOfDirty=!0}set ngForTrackBy(p){this._trackByFn=p}get ngForTrackBy(){return this._trackByFn}constructor(p,_,x){this._viewContainer=p,this._template=_,this._differs=x,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(p){p&&(this._template=p)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const p=this._ngForOf;!this._differ&&p&&(this._differ=this._differs.find(p).create(this.ngForTrackBy))}if(this._differ){const p=this._differ.diff(this._ngForOf);p&&this._applyChanges(p)}}_applyChanges(p){const _=this._viewContainer;p.forEachOperation((x,X,ce)=>{if(null==x.previousIndex)_.createEmbeddedView(this._template,new Qe(x.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)_.remove(null===X?void 0:X);else if(null!==X){const ze=_.get(X);_.move(ze,ce),K(ze,x)}});for(let x=0,X=_.length;x{K(_.get(x.currentIndex),x)})}static ngTemplateContextGuard(p,_){return!0}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return S})();function K(S,ne){S.context.$implicit=ne.item}let oe=(()=>{class S{constructor(p,_){this._viewContainer=p,this._context=new $e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=_}set ngIf(p){this._context.$implicit=this._context.ngIf=p,this._updateView()}set ngIfThen(p){vt("ngIfThen",p),this._thenTemplateRef=p,this._thenViewRef=null,this._updateView()}set ngIfElse(p){vt("ngIfElse",p),this._elseTemplateRef=p,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(p,_){return!0}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return S})();class $e{constructor(){this.$implicit=null,this.ngIf=null}}function vt(S,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${S} must be a TemplateRef, but received '${(0,u.Tbb)(ne)}'.`)}let ui=(()=>{class S{constructor(p,_,x){this._ngEl=p,this._differs=_,this._renderer=x,this._ngStyle=null,this._differ=null}set ngStyle(p){this._ngStyle=p,!this._differ&&p&&(this._differ=this._differs.find(p).create())}ngDoCheck(){if(this._differ){const p=this._differ.diff(this._ngStyle);p&&this._applyChanges(p)}}_setStyle(p,_){const[x,X]=p.split("."),ce=-1===x.indexOf("-")?void 0:u.czy.DashCase;null!=_?this._renderer.setStyle(this._ngEl.nativeElement,x,X?`${_}${X}`:_,ce):this._renderer.removeStyle(this._ngEl.nativeElement,x,ce)}_applyChanges(p){p.forEachRemovedItem(_=>this._setStyle(_.key,null)),p.forEachAddedItem(_=>this._setStyle(_.key,_.currentValue)),p.forEachChangedItem(_=>this._setStyle(_.key,_.currentValue))}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return S})(),Oi=(()=>{class S{constructor(p){this._viewContainerRef=p,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(p){if(this._shouldRecreateView(p)){const _=this._viewContainerRef;if(this._viewRef&&_.remove(_.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const x=this._createContextForwardProxy();this._viewRef=_.createEmbeddedView(this.ngTemplateOutlet,x,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(p){return!!p.ngTemplateOutlet||!!p.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(p,_,x)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_,x),get:(p,_,x)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_,x)}})}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}}return S})();function Wn(S,ne){return new u.wOt(2100,!1)}class Rr{createSubscription(ne,p){return(0,u.O8t)(()=>ne.subscribe({next:p,error:_=>{throw _}}))}dispose(ne){(0,u.O8t)(()=>ne.unsubscribe())}}class ho{createSubscription(ne,p){return ne.then(p,_=>{throw _})}dispose(ne){}}const Lr=new ho,Ci=new Rr;let Br=(()=>{class S{constructor(p){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=p}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(p){if(!this._obj){if(p)try{this.markForCheckOnValueUpdate=!1,this._subscribe(p)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return p!==this._obj?(this._dispose(),this.transform(p)):this._latestValue}_subscribe(p){this._obj=p,this._strategy=this._selectStrategy(p),this._subscription=this._strategy.createSubscription(p,_=>this._updateLatestValue(p,_))}_selectStrategy(p){if((0,u.jNT)(p))return Lr;if((0,u.zjR)(p))return Ci;throw Wn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(p,_){p===this._obj&&(this._latestValue=_,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.gRc,16))}}static{this.\u0275pipe=u.EJ8({name:"async",type:S,pure:!1,standalone:!0})}}return S})();const Gi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Bs=(()=>{class S{transform(p){if(null==p)return null;if("string"!=typeof p)throw Wn();return p.replace(Gi,_=>_[0].toUpperCase()+_.slice(1).toLowerCase())}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275pipe=u.EJ8({name:"titlecase",type:S,pure:!0,standalone:!0})}}return S})();const ma=new u.nKC(""),ga=new u.nKC("");let Kl=(()=>{class S{constructor(p,_,x){this.locale=p,this.defaultTimezone=_,this.defaultOptions=x}transform(p,_,x,X){if(null==p||""===p||p!=p)return null;try{return rn(p,_??this.defaultOptions?.dateFormat??"mediumDate",X||this.locale,x??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ce){throw Wn()}}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.xe9,16),u.rXU(ma,24),u.rXU(ga,24))}}static{this.\u0275pipe=u.EJ8({name:"date",type:S,pure:!0,standalone:!0})}}return S})();const vo=/#/g;let jo=(()=>{class S{constructor(p){this._localization=p}transform(p,_,x){if(null==p)return"";if("object"!=typeof _||null===_)throw Wn();return _[function un(S,ne,p,_){let x=`=${S}`;if(ne.indexOf(x)>-1||(x=p.getPluralCategory(S,_),ne.indexOf(x)>-1))return x;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${S}"`)}(p,Object.keys(_),this._localization,x)].replace(vo,p.toString())}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(Ot,16))}}static{this.\u0275pipe=u.EJ8({name:"i18nPlural",type:S,pure:!0,standalone:!0})}}return S})(),js=(()=>{class S{static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275mod=u.$C({type:S})}static{this.\u0275inj=u.G2t({})}}return S})();const Vr="browser",Ho="server";function $o(S){return S===Vr}function va(S){return S===Ho}let Hs=(()=>{class S{static{this.\u0275prov=(0,u.jDH)({token:S,providedIn:"root",factory:()=>$o((0,u.WQX)(u.Agw))?new Xr((0,u.WQX)(re),window):new gr})}}return S})();class Xr{constructor(ne,p){this.document=ne,this.window=p,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ne){this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){const p=function Li(S,ne){const p=S.getElementById(ne)||S.getElementsByName(ne)[0];if(p)return p;if("function"==typeof S.createTreeWalker&&S.body&&"function"==typeof S.body.attachShadow){const _=S.createTreeWalker(S.body,NodeFilter.SHOW_ELEMENT);let x=_.currentNode;for(;x;){const X=x.shadowRoot;if(X){const ce=X.getElementById(ne)||X.querySelector(`[name="${ne}"]`);if(ce)return ce}x=_.nextNode()}}return null}(this.document,ne);p&&(this.scrollToElement(p),p.focus())}setHistoryScrollRestoration(ne){this.window.history.scrollRestoration=ne}scrollToElement(ne){const p=ne.getBoundingClientRect(),_=p.left+this.window.pageXOffset,x=p.top+this.window.pageYOffset,X=this.offset();this.window.scrollTo(_-X[0],x-X[1])}}class gr{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class Xo{}},1626:(tn,Re,v)=>{"use strict";v.d(Re,{$R:()=>Pn,Nl:()=>rt,Qq:()=>gt,b$:()=>yi,cS:()=>yn,yz:()=>di});var u=v(467),y=v(4438),o=v(7673),B=v(1985),W=v(6648),ee=v(274),re=v(5964),V=v(6354),F=v(980),U=v(5558),L=v(177);class he{}class de{}class be{constructor(Qe){this.normalizedNames=new Map,this.lazyUpdate=null,Qe?"string"==typeof Qe?this.lazyInit=()=>{this.headers=new Map,Qe.split("\n").forEach(Ke=>{const K=Ke.indexOf(":");if(K>0){const Ae=Ke.slice(0,K),oe=Ae.toLowerCase(),$e=Ke.slice(K+1).trim();this.maybeSetNormalizedName(Ae,oe),this.headers.has(oe)?this.headers.get(oe).push($e):this.headers.set(oe,[$e])}})}:typeof Headers<"u"&&Qe instanceof Headers?(this.headers=new Map,Qe.forEach((Ke,K)=>{this.setHeaderEntries(K,Ke)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Qe).forEach(([Ke,K])=>{this.setHeaderEntries(Ke,K)})}:this.headers=new Map}has(Qe){return this.init(),this.headers.has(Qe.toLowerCase())}get(Qe){this.init();const Ke=this.headers.get(Qe.toLowerCase());return Ke&&Ke.length>0?Ke[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Qe){return this.init(),this.headers.get(Qe.toLowerCase())||null}append(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"a"})}set(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"s"})}delete(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"d"})}maybeSetNormalizedName(Qe,Ke){this.normalizedNames.has(Ke)||this.normalizedNames.set(Ke,Qe)}init(){this.lazyInit&&(this.lazyInit instanceof be?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Qe=>this.applyUpdate(Qe)),this.lazyUpdate=null))}copyFrom(Qe){Qe.init(),Array.from(Qe.headers.keys()).forEach(Ke=>{this.headers.set(Ke,Qe.headers.get(Ke)),this.normalizedNames.set(Ke,Qe.normalizedNames.get(Ke))})}clone(Qe){const Ke=new be;return Ke.lazyInit=this.lazyInit&&this.lazyInit instanceof be?this.lazyInit:this,Ke.lazyUpdate=(this.lazyUpdate||[]).concat([Qe]),Ke}applyUpdate(Qe){const Ke=Qe.name.toLowerCase();switch(Qe.op){case"a":case"s":let K=Qe.value;if("string"==typeof K&&(K=[K]),0===K.length)return;this.maybeSetNormalizedName(Qe.name,Ke);const Ae=("a"===Qe.op?this.headers.get(Ke):void 0)||[];Ae.push(...K),this.headers.set(Ke,Ae);break;case"d":const oe=Qe.value;if(oe){let $e=this.headers.get(Ke);if(!$e)return;$e=$e.filter(vt=>-1===oe.indexOf(vt)),0===$e.length?(this.headers.delete(Ke),this.normalizedNames.delete(Ke)):this.headers.set(Ke,$e)}else this.headers.delete(Ke),this.normalizedNames.delete(Ke)}}setHeaderEntries(Qe,Ke){const K=(Array.isArray(Ke)?Ke:[Ke]).map(oe=>oe.toString()),Ae=Qe.toLowerCase();this.headers.set(Ae,K),this.maybeSetNormalizedName(Qe,Ae)}forEach(Qe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ke=>Qe(this.normalizedNames.get(Ke),this.headers.get(Ke)))}}class Me{encodeKey(Qe){return bt(Qe)}encodeValue(Qe){return bt(Qe)}decodeKey(Qe){return decodeURIComponent(Qe)}decodeValue(Qe){return decodeURIComponent(Qe)}}const ve=/%(\d[a-f0-9])/gi,tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bt(Ce){return encodeURIComponent(Ce).replace(ve,(Qe,Ke)=>tt[Ke]??Qe)}function Ve(Ce){return`${Ce}`}class rt{constructor(Qe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Qe.encoder||new Me,Qe.fromString){if(Qe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function te(Ce,Qe){const Ke=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Ae=>{const oe=Ae.indexOf("="),[$e,vt]=-1==oe?[Qe.decodeKey(Ae),""]:[Qe.decodeKey(Ae.slice(0,oe)),Qe.decodeValue(Ae.slice(oe+1))],at=Ke.get($e)||[];at.push(vt),Ke.set($e,at)}),Ke}(Qe.fromString,this.encoder)}else Qe.fromObject?(this.map=new Map,Object.keys(Qe.fromObject).forEach(Ke=>{const K=Qe.fromObject[Ke],Ae=Array.isArray(K)?K.map(Ve):[Ve(K)];this.map.set(Ke,Ae)})):this.map=null}has(Qe){return this.init(),this.map.has(Qe)}get(Qe){this.init();const Ke=this.map.get(Qe);return Ke?Ke[0]:null}getAll(Qe){return this.init(),this.map.get(Qe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"a"})}appendAll(Qe){const Ke=[];return Object.keys(Qe).forEach(K=>{const Ae=Qe[K];Array.isArray(Ae)?Ae.forEach(oe=>{Ke.push({param:K,value:oe,op:"a"})}):Ke.push({param:K,value:Ae,op:"a"})}),this.clone(Ke)}set(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"s"})}delete(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"d"})}toString(){return this.init(),this.keys().map(Qe=>{const Ke=this.encoder.encodeKey(Qe);return this.map.get(Qe).map(K=>Ke+"="+this.encoder.encodeValue(K)).join("&")}).filter(Qe=>""!==Qe).join("&")}clone(Qe){const Ke=new rt({encoder:this.encoder});return Ke.cloneFrom=this.cloneFrom||this,Ke.updates=(this.updates||[]).concat(Qe),Ke}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Qe=>this.map.set(Qe,this.cloneFrom.map.get(Qe))),this.updates.forEach(Qe=>{switch(Qe.op){case"a":case"s":const Ke=("a"===Qe.op?this.map.get(Qe.param):void 0)||[];Ke.push(Ve(Qe.value)),this.map.set(Qe.param,Ke);break;case"d":if(void 0===Qe.value){this.map.delete(Qe.param);break}{let K=this.map.get(Qe.param)||[];const Ae=K.indexOf(Ve(Qe.value));-1!==Ae&&K.splice(Ae,1),K.length>0?this.map.set(Qe.param,K):this.map.delete(Qe.param)}}}),this.cloneFrom=this.updates=null)}}class se{constructor(){this.map=new Map}set(Qe,Ke){return this.map.set(Qe,Ke),this}get(Qe){return this.map.has(Qe)||this.map.set(Qe,Qe.defaultValue()),this.map.get(Qe)}delete(Qe){return this.map.delete(Qe),this}has(Qe){return this.map.has(Qe)}keys(){return this.map.keys()}}function Le(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function et(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function It(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Tt{constructor(Qe,Ke,K,Ae){let oe;if(this.url=Ke,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Qe.toUpperCase(),function fe(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ae?(this.body=void 0!==K?K:null,oe=Ae):oe=K,oe&&(this.reportProgress=!!oe.reportProgress,this.withCredentials=!!oe.withCredentials,oe.responseType&&(this.responseType=oe.responseType),oe.headers&&(this.headers=oe.headers),oe.context&&(this.context=oe.context),oe.params&&(this.params=oe.params),this.transferCache=oe.transferCache),this.headers??=new be,this.context??=new se,this.params){const $e=this.params.toString();if(0===$e.length)this.urlWithParams=Ke;else{const vt=Ke.indexOf("?");this.urlWithParams=Ke+(-1===vt?"?":vtEn.set(xn,Qe.setHeaders[xn]),$t)),Qe.setParams&&(hn=Object.keys(Qe.setParams).reduce((En,xn)=>En.set(xn,Qe.setParams[xn]),hn)),new Tt(Ke,K,$e,{params:hn,headers:$t,context:gn,reportProgress:at,responseType:Ae,withCredentials:vt,transferCache:oe})}}var nn=function(Ce){return Ce[Ce.Sent=0]="Sent",Ce[Ce.UploadProgress=1]="UploadProgress",Ce[Ce.ResponseHeader=2]="ResponseHeader",Ce[Ce.DownloadProgress=3]="DownloadProgress",Ce[Ce.Response=4]="Response",Ce[Ce.User=5]="User",Ce}(nn||{});class Fn{constructor(Qe,Ke=200,K="OK"){this.headers=Qe.headers||new be,this.status=void 0!==Qe.status?Qe.status:Ke,this.statusText=Qe.statusText||K,this.url=Qe.url||null,this.ok=this.status>=200&&this.status<300}}class $n extends Fn{constructor(Qe={}){super(Qe),this.type=nn.ResponseHeader}clone(Qe={}){return new $n({headers:Qe.headers||this.headers,status:void 0!==Qe.status?Qe.status:this.status,statusText:Qe.statusText||this.statusText,url:Qe.url||this.url||void 0})}}class yn extends Fn{constructor(Qe={}){super(Qe),this.type=nn.Response,this.body=void 0!==Qe.body?Qe.body:null}clone(Qe={}){return new yn({body:void 0!==Qe.body?Qe.body:this.body,headers:Qe.headers||this.headers,status:void 0!==Qe.status?Qe.status:this.status,statusText:Qe.statusText||this.statusText,url:Qe.url||this.url||void 0})}}class di extends Fn{constructor(Qe){super(Qe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Qe.url||"(unknown url)"}`:`Http failure response for ${Qe.url||"(unknown url)"}: ${Qe.status} ${Qe.statusText}`,this.error=Qe.error||null}}function Se(Ce,Qe){return{body:Qe,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials,transferCache:Ce.transferCache}}let gt=(()=>{class Ce{constructor(Ke){this.handler=Ke}request(Ke,K,Ae={}){let oe;if(Ke instanceof Tt)oe=Ke;else{let at,$t;at=Ae.headers instanceof be?Ae.headers:new be(Ae.headers),Ae.params&&($t=Ae.params instanceof rt?Ae.params:new rt({fromObject:Ae.params})),oe=new Tt(Ke,K,void 0!==Ae.body?Ae.body:null,{headers:at,context:Ae.context,params:$t,reportProgress:Ae.reportProgress,responseType:Ae.responseType||"json",withCredentials:Ae.withCredentials,transferCache:Ae.transferCache})}const $e=(0,o.of)(oe).pipe((0,ee.H)(at=>this.handler.handle(at)));if(Ke instanceof Tt||"events"===Ae.observe)return $e;const vt=$e.pipe((0,re.p)(at=>at instanceof yn));switch(Ae.observe||"body"){case"body":switch(oe.responseType){case"arraybuffer":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&!(at.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return at.body}));case"blob":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&!(at.body instanceof Blob))throw new Error("Response is not a Blob.");return at.body}));case"text":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&"string"!=typeof at.body)throw new Error("Response is not a string.");return at.body}));default:return vt.pipe((0,V.T)(at=>at.body))}case"response":return vt;default:throw new Error(`Unreachable: unhandled observe type ${Ae.observe}}`)}}delete(Ke,K={}){return this.request("DELETE",Ke,K)}get(Ke,K={}){return this.request("GET",Ke,K)}head(Ke,K={}){return this.request("HEAD",Ke,K)}jsonp(Ke,K){return this.request("JSONP",Ke,{params:(new rt).append(K,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ke,K={}){return this.request("OPTIONS",Ke,K)}patch(Ke,K,Ae={}){return this.request("PATCH",Ke,Se(Ae,K))}post(Ke,K,Ae={}){return this.request("POST",Ke,Se(Ae,K))}put(Ke,K,Ae={}){return this.request("PUT",Ke,Se(Ae,K))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(he))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const Ne=/^\)\]\}',?\n/;function je(Ce){if(Ce.url)return Ce.url;const Qe="X-Request-URL".toLocaleLowerCase();return Ce.headers.get(Qe)}let Lt=(()=>{class Ce{constructor(){this.fetchImpl=(0,y.WQX)(Mt,{optional:!0})?.fetch??((...Ke)=>globalThis.fetch(...Ke)),this.ngZone=(0,y.WQX)(y.SKi)}handle(Ke){return new B.c(K=>{const Ae=new AbortController;return this.doRequest(Ke,Ae.signal,K).then(we,oe=>K.error(new di({error:oe}))),()=>Ae.abort()})}doRequest(Ke,K,Ae){var oe=this;return(0,u.A)(function*(){const $e=oe.createRequestInit(Ke);let vt;try{const Vn=oe.ngZone.runOutsideAngular(()=>oe.fetchImpl(Ke.urlWithParams,{signal:K,...$e}));(function Oe(Ce){Ce.then(we,we)})(Vn),Ae.next({type:nn.Sent}),vt=yield Vn}catch(Vn){return void Ae.error(new di({error:Vn,status:Vn.status??0,statusText:Vn.statusText,url:Ke.urlWithParams,headers:Vn.headers}))}const at=new be(vt.headers),$t=vt.statusText,hn=je(vt)??Ke.urlWithParams;let gn=vt.status,En=null;if(Ke.reportProgress&&Ae.next(new $n({headers:at,status:gn,statusText:$t,url:hn})),vt.body){const Vn=vt.headers.get("content-length"),Hn=[],ui=vt.body.getReader();let ti,Wn,Oi=0;const Rr=typeof Zone<"u"&&Zone.current;yield oe.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:Lr,value:Ci}=yield ui.read();if(Lr)break;if(Hn.push(Ci),Oi+=Ci.length,Ke.reportProgress){Wn="text"===Ke.responseType?(Wn??"")+(ti??=new TextDecoder).decode(Ci,{stream:!0}):void 0;const Br=()=>Ae.next({type:nn.DownloadProgress,total:Vn?+Vn:void 0,loaded:Oi,partialText:Wn});Rr?Rr.run(Br):Br()}}}));const ho=oe.concatChunks(Hn,Oi);try{const Lr=vt.headers.get("Content-Type")??"";En=oe.parseBody(Ke,ho,Lr)}catch(Lr){return void Ae.error(new di({error:Lr,headers:new be(vt.headers),status:vt.status,statusText:vt.statusText,url:je(vt)??Ke.urlWithParams}))}}0===gn&&(gn=En?200:0),gn>=200&&gn<300?(Ae.next(new yn({body:En,headers:at,status:gn,statusText:$t,url:hn})),Ae.complete()):Ae.error(new di({error:En,headers:at,status:gn,statusText:$t,url:hn}))})()}parseBody(Ke,K,Ae){switch(Ke.responseType){case"json":const oe=(new TextDecoder).decode(K).replace(Ne,"");return""===oe?null:JSON.parse(oe);case"text":return(new TextDecoder).decode(K);case"blob":return new Blob([K],{type:Ae});case"arraybuffer":return K.buffer}}createRequestInit(Ke){const K={},Ae=Ke.withCredentials?"include":void 0;if(Ke.headers.forEach((oe,$e)=>K[oe]=$e.join(",")),Ke.headers.has("Accept")||(K.Accept="application/json, text/plain, */*"),!Ke.headers.has("Content-Type")){const oe=Ke.detectContentTypeHeader();null!==oe&&(K["Content-Type"]=oe)}return{body:Ke.serializeBody(),method:Ke.method,headers:K,credentials:Ae}}concatChunks(Ke,K){const Ae=new Uint8Array(K);let oe=0;for(const $e of Ke)Ae.set($e,oe),oe+=$e.length;return Ae}static{this.\u0275fac=function(K){return new(K||Ce)}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();class Mt{}function we(){}function me(Ce,Qe){return Qe(Ce)}const xe=new y.nKC(""),ut=new y.nKC(""),Rt=new y.nKC("",{providedIn:"root",factory:()=>!0});let Zt=(()=>{class Ce extends he{constructor(Ke,K){super(),this.backend=Ke,this.injector=K,this.chain=null,this.pendingTasks=(0,y.WQX)(y.TgB),this.contributeToStability=(0,y.WQX)(Rt)}handle(Ke){if(null===this.chain){const K=Array.from(new Set([...this.injector.get(xe),...this.injector.get(ut,[])]));this.chain=K.reduceRight((Ae,oe)=>function Pe(Ce,Qe,Ke){return(K,Ae)=>(0,y.N4e)(Ke,()=>Qe(K,oe=>Ce(oe,Ae)))}(Ae,oe,this.injector),me)}if(this.contributeToStability){const K=this.pendingTasks.add();return this.chain(Ke,Ae=>this.backend.handle(Ae)).pipe((0,F.j)(()=>this.pendingTasks.remove(K)))}return this.chain(Ke,K=>this.backend.handle(K))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(de),y.KVO(y.uvJ))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const nt=/^\)\]\}',?\n/;let Ut=(()=>{class Ce{constructor(Ke){this.xhrFactory=Ke}handle(Ke){if("JSONP"===Ke.method)throw new y.wOt(-2800,!1);const K=this.xhrFactory;return(K.\u0275loadImpl?(0,W.H)(K.\u0275loadImpl()):(0,o.of)(null)).pipe((0,U.n)(()=>new B.c(oe=>{const $e=K.build();if($e.open(Ke.method,Ke.urlWithParams),Ke.withCredentials&&($e.withCredentials=!0),Ke.headers.forEach((Hn,ui)=>$e.setRequestHeader(Hn,ui.join(","))),Ke.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!Ke.headers.has("Content-Type")){const Hn=Ke.detectContentTypeHeader();null!==Hn&&$e.setRequestHeader("Content-Type",Hn)}if(Ke.responseType){const Hn=Ke.responseType.toLowerCase();$e.responseType="json"!==Hn?Hn:"text"}const vt=Ke.serializeBody();let at=null;const $t=()=>{if(null!==at)return at;const Hn=$e.statusText||"OK",ui=new be($e.getAllResponseHeaders()),Oi=function zt(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}($e)||Ke.url;return at=new $n({headers:ui,status:$e.status,statusText:Hn,url:Oi}),at},hn=()=>{let{headers:Hn,status:ui,statusText:Oi,url:ti}=$t(),Wn=null;204!==ui&&(Wn=typeof $e.response>"u"?$e.responseText:$e.response),0===ui&&(ui=Wn?200:0);let Rr=ui>=200&&ui<300;if("json"===Ke.responseType&&"string"==typeof Wn){const ho=Wn;Wn=Wn.replace(nt,"");try{Wn=""!==Wn?JSON.parse(Wn):null}catch(Lr){Wn=ho,Rr&&(Rr=!1,Wn={error:Lr,text:Wn})}}Rr?(oe.next(new yn({body:Wn,headers:Hn,status:ui,statusText:Oi,url:ti||void 0})),oe.complete()):oe.error(new di({error:Wn,headers:Hn,status:ui,statusText:Oi,url:ti||void 0}))},gn=Hn=>{const{url:ui}=$t(),Oi=new di({error:Hn,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:ui||void 0});oe.error(Oi)};let En=!1;const xn=Hn=>{En||(oe.next($t()),En=!0);let ui={type:nn.DownloadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(ui.total=Hn.total),"text"===Ke.responseType&&$e.responseText&&(ui.partialText=$e.responseText),oe.next(ui)},Vn=Hn=>{let ui={type:nn.UploadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(ui.total=Hn.total),oe.next(ui)};return $e.addEventListener("load",hn),$e.addEventListener("error",gn),$e.addEventListener("timeout",gn),$e.addEventListener("abort",gn),Ke.reportProgress&&($e.addEventListener("progress",xn),null!==vt&&$e.upload&&$e.upload.addEventListener("progress",Vn)),$e.send(vt),oe.next({type:nn.Sent}),()=>{$e.removeEventListener("error",gn),$e.removeEventListener("abort",gn),$e.removeEventListener("load",hn),$e.removeEventListener("timeout",gn),Ke.reportProgress&&($e.removeEventListener("progress",xn),null!==vt&&$e.upload&&$e.upload.removeEventListener("progress",Vn)),$e.readyState!==$e.DONE&&$e.abort()}})))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(L.N0))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const jt=new y.nKC(""),Ln=new y.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),en=new y.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Cn{}let He=(()=>{class Ce{constructor(Ke,K,Ae){this.doc=Ke,this.platform=K,this.cookieName=Ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ke=this.doc.cookie||"";return Ke!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,L._b)(Ke,this.cookieName),this.lastCookieString=Ke),this.lastToken}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(L.qQ),y.KVO(y.Agw),y.KVO(Ln))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();function Be(Ce,Qe){const Ke=Ce.url.toLowerCase();if(!(0,y.WQX)(jt)||"GET"===Ce.method||"HEAD"===Ce.method||Ke.startsWith("http://")||Ke.startsWith("https://"))return Qe(Ce);const K=(0,y.WQX)(Cn).getToken(),Ae=(0,y.WQX)(en);return null!=K&&!Ce.headers.has(Ae)&&(Ce=Ce.clone({headers:Ce.headers.set(Ae,K)})),Qe(Ce)}var Ye=function(Ce){return Ce[Ce.Interceptors=0]="Interceptors",Ce[Ce.LegacyInterceptors=1]="LegacyInterceptors",Ce[Ce.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ce[Ce.NoXsrfProtection=3]="NoXsrfProtection",Ce[Ce.JsonpSupport=4]="JsonpSupport",Ce[Ce.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ce[Ce.Fetch=6]="Fetch",Ce}(Ye||{});function Pn(...Ce){const Qe=[gt,Ut,Zt,{provide:he,useExisting:Zt},{provide:de,useFactory:()=>(0,y.WQX)(Lt,{optional:!0})??(0,y.WQX)(Ut)},{provide:xe,useValue:Be,multi:!0},{provide:jt,useValue:!0},{provide:Cn,useClass:He}];for(const Ke of Ce)Qe.push(...Ke.\u0275providers);return(0,y.EmA)(Qe)}function yi(Ce){return function Gt(Ce,Qe){return{\u0275kind:Ce,\u0275providers:Qe}}(Ye.Interceptors,Ce.map(Qe=>({provide:xe,useValue:Qe,multi:!0})))}},4438:(tn,Re,v)=>{"use strict";function u(e,t){return Object.is(e,t)}v.d(Re,{bc$:()=>pr,iLQ:()=>By,sZ2:()=>_i,hnV:()=>k1,wjH:()=>Qh,o8S:()=>tu,BIS:()=>mr,gRc:()=>X1,Ql9:()=>UM,OM3:()=>zh,Ocv:()=>GM,Z63:()=>is,aKT:()=>jc,uvJ:()=>Mr,zcH:()=>wl,bkB:()=>il,$GK:()=>Gi,nKC:()=>Bn,zZn:()=>hs,_q3:()=>VE,MKu:()=>jE,xe9:()=>NE,Co$:()=>CC,Vns:()=>Xh,SKi:()=>yo,Xx1:()=>Xr,Agw:()=>Vi,PLl:()=>Ji,rOR:()=>Hc,sFG:()=>lw,_9s:()=>fg,czy:()=>lp,WPN:()=>Vl,kdw:()=>gr,C4Q:()=>kh,NYb:()=>RM,giA:()=>O1,RxE:()=>C1,c1b:()=>xp,gXe:()=>Oo,mal:()=>_y,Tzd:()=>kC,L39:()=>GO,EWP:()=>YO,sbv:()=>sl,Ol2:()=>kw,w6W:()=>US,QZP:()=>SS,Rfq:()=>He,oKB:()=>hl,WQX:()=>xi,naY:()=>tO,Hps:()=>f,QuC:()=>Ro,EmA:()=>lo,Udg:()=>KO,HJs:()=>tR,N4e:()=>Bo,vPA:()=>H,O8t:()=>QO,H3F:()=>D1,H8p:()=>Yr,KH2:()=>Gp,TgB:()=>Lc,wOt:()=>wt,WHO:()=>I1,e01:()=>M1,lNU:()=>Rt,h9k:()=>mv,$MX:()=>ip,ZF7:()=>Ed,Kcf:()=>ub,e5t:()=>pb,UyX:()=>hb,cWb:()=>db,osQ:()=>fb,H5H:()=>lE,Zy3:()=>mn,mq5:()=>RD,JZv:()=>nt,TL3:()=>SO,LfX:()=>Ot,plB:()=>Qc,jNT:()=>ME,zjR:()=>R1,ngT:()=>c,TL$:()=>Si,Tbb:()=>Ln,rcV:()=>hc,nM4:()=>_C,Vt3:()=>Mw,GFd:()=>EC,OA$:()=>Qs,Jv_:()=>Hx,aNF:()=>$x,R7$:()=>Vv,BMQ:()=>Gw,HbH:()=>pD,ZvI:()=>wD,AVh:()=>qw,BUC:()=>ED,vxM:()=>SD,wni:()=>fx,C6U:()=>vx,VBU:()=>xs,FsC:()=>nu,jDH:()=>bi,G2t:()=>Or,$C:()=>ss,EJ8:()=>Xl,rXU:()=>Md,nrm:()=>rE,eu8:()=>oE,bVm:()=>Ay,qex:()=>Sy,k0s:()=>xy,j41:()=>Dy,RV6:()=>OD,xGo:()=>fa,Mr5:()=>sE,KVO:()=>Tr,kS0:()=>oc,QTQ:()=>Hv,bIt:()=>dE,lsd:()=>gx,joV:()=>yf,qSk:()=>Zu,XpG:()=>nx,nI1:()=>r1,bMT:()=>o1,i5U:()=>s1,SdG:()=>rx,NAR:()=>ix,Y8G:()=>Qw,FS9:()=>pE,Mz_:()=>Ry,lJ4:()=>Gx,eq3:()=>Kx,l_i:()=>Xx,sMw:()=>Yx,ziG:()=>Qx,lV:()=>Zx,NyB:()=>_x,mGM:()=>mx,sdS:()=>yx,Dyx:()=>TD,Z7z:()=>AD,Njj:()=>ju,eBV:()=>Yd,npT:()=>gv,f$h:()=>Im,B4B:()=>Tm,n$t:()=>vv,Aen:()=>_c,xc7:()=>Jw,Kam:()=>hE,zvX:()=>aE,DNE:()=>Pw,C5r:()=>a1,EFF:()=>Ix,JRh:()=>gE,SpI:()=>ky,Lme:()=>vE,DH7:()=>Bx,mxI:()=>yE,R50:()=>_E,GBs:()=>px});let y=null,o=!1,B=1;const W=Symbol("SIGNAL");function ee(e){const t=y;return y=e,t}const U={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function L(e){if(o)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const t=y.nextProducerIndex++;se(y),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function tt(e){se(e);for(let t=0;t0}function se(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function fe(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Le(e){return void 0!==e.producerNode}function et(e){const t=Object.create(nn);t.computation=e;const n=()=>{if(de(t),L(t),t.value===Tt)throw t.error;return t.value};return n[W]=t,n}const It=Symbol("UNSET"),Et=Symbol("COMPUTING"),Tt=Symbol("ERRORED"),nn={...U,value:It,dirty:!0,error:null,equal:u,producerMustRecompute:e=>e.value===It||e.value===Et,producerRecomputeValue(e){if(e.value===Et)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Et;const n=te(e);let r;try{r=e.computation()}catch(l){r=Tt,e.error=l}finally{ve(e,n)}t!==It&&t!==Tt&&r!==Tt&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let $n=function Fn(){throw new Error};function yn(){$n()}let mt=null;function gt(e,t){Te()||yn(),e.equal(e.value,t)||(e.value=t,function Lt(e){e.version++,function he(){B++}(),be(e),mt?.()}(e))}const je={...U,equal:u,value:void 0};const we=()=>{},Oe={...U,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:we};var We=v(4412),Pe=v(1413),xt=v(8359),xe=v(6354);const Rt="https://g.co/ng/security#xss";class wt extends Error{constructor(t,n){super(mn(t,n)),this.code=t}}function mn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function dt(e){return{toString:e}.toString()}const Q="__parameters__";function le(e,t,n){return dt(()=>{const r=function $(e){return function(...n){if(e){const r=e(...n);for(const l in r)this[l]=r[l]}}}(t);function l(...d){if(this instanceof l)return r.apply(this,d),this;const g=new l(...d);return w.annotation=g,w;function w(A,j,q){const Ue=A.hasOwnProperty(Q)?A[Q]:Object.defineProperty(A,Q,{value:[]})[Q];for(;Ue.length<=q;)Ue.push(null);return(Ue[q]=Ue[q]||[]).push(g),A}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}const nt=globalThis;function jt(e){for(let t in e)if(e[t]===jt)return t;throw Error("Could not find renamed property on target object.")}function On(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ln(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ln).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function wi(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Cn=jt({__forward_ref__:jt});function He(e){return e.__forward_ref__=He,e.toString=function(){return Ln(this())},e}function Be(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(Cn)&&e.__forward_ref__===He}function bi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Or(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return un(e,Kn)||un(e,ii)}function Ot(e){return null!==ft(e)}function un(e,t){return e.hasOwnProperty(t)?e[t]:null}function Tn(e){return e&&(e.hasOwnProperty(zn)||e.hasOwnProperty(ci))?e[zn]:null}const Kn=jt({\u0275prov:jt}),zn=jt({\u0275inj:jt}),ii=jt({ngInjectableDef:jt}),ci=jt({ngInjectorDef:jt});class Bn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=bi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hn(e){return e&&!!e.\u0275providers}const gn=jt({\u0275cmp:jt}),En=jt({\u0275dir:jt}),xn=jt({\u0275pipe:jt}),Vn=jt({\u0275mod:jt}),Hn=jt({\u0275fac:jt}),ui=jt({__NG_ELEMENT_ID__:jt}),Oi=jt({__NG_ENV_ID__:jt});function ti(e){return"string"==typeof e?e:null==e?"":String(e)}function Ko(e,t){throw new wt(-201,!1)}var Gi=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Gi||{});let Bs;function es(){return Bs}function io(e){const t=Bs;return Bs=e,t}function ma(e,t,n){const r=ft(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Gi.Optional?null:void 0!==t?t:void Ko()}const vo={},jo="__NG_DI_FLAG__",xr="ngTempTokenPath",hr=/\n/gm,Jr="__source";let Ii;function Sr(e){const t=Ii;return Ii=e,t}function Ar(e,t=Gi.Default){if(void 0===Ii)throw new wt(-203,!1);return null===Ii?ma(e,void 0,t):Ii.get(e,t&Gi.Optional?null:void 0,t)}function Tr(e,t=Gi.Default){return(es()||Ar)(Be(e),t)}function xi(e,t=Gi.Default){return Tr(e,js(t))}function js(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Vr(e){const t=[];for(let n=0;nArray.isArray(n)?oo(n,t):t(n))}function jr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function so(e,t,n){let r=Fo(e,t);return r>=0?e[1|r]=n:(r=~r,function Es(e,t,n,r){let l=e.length;if(l==t)e.push(n,r);else if(1===l)e.push(r,e[0]),e[0]=n;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function aa(e,t){const n=Fo(e,t);if(n>=0)return e[1|n]}function Fo(e,t){return function Oa(e,t,n){let r=0,l=e.length>>n;for(;l!==r;){const d=r+(l-r>>1),g=e[d<t?l=d:r=d+1}return~(l<t){g=d-1;break}}}for(;d-1){let d;for(;++ld?"":l[q+1].toLowerCase(),2&r&&j!==Ue){if(Y(r))return!1;g=!0}}}}else{if(!g&&!Y(r)&&!Y(A))return!1;if(g&&Y(A))continue;g=!1,r=A|1&r}}return Y(r)||g}function Y(e){return!(1&e)}function k(e,t,n,r){if(null===t)return-1;let l=0;if(r||!n){let d=!1;for(;l-1)for(n++;n0?'="'+w+'"':"")+"]"}else 8&r?l+="."+g:4&r&&(l+=" "+g);else""!==l&&!Y(g)&&(t+=ya(d,l),l=""),r=g,d=d||!Y(r);n++}return""!==l&&(t+=ya(d,l)),t}function xs(e){return dt(()=>{const t=Na(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$s.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Oo.Emulated,styles:e.styles||sr,_:null,schemas:e.schemas||null,tView:null,id:""};la(n);const r=e.dependencies;return n.directiveDefs=Lo(r,!1),n.pipeDefs=Lo(r,!0),n.id=function ca(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const l of n)t=Math.imul(31,t)+l.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function nr(e){return zi(e)||po(e)}function Ea(e){return null!==e}function ss(e){return dt(()=>({type:e.type,bootstrap:e.bootstrap||sr,declarations:e.declarations||sr,imports:e.imports||sr,exports:e.exports||sr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function zs(e,t){if(null==e)return Qo;const n={};for(const r in e)if(e.hasOwnProperty(r)){const l=e[r];let d,g,w=fo.None;Array.isArray(l)?(w=l[0],d=l[1],g=l[2]??d):(d=l,g=l),t?(n[d]=w!==fo.None?[r,w]:r,t[d]=g):n[d]=r}return n}function nu(e){return dt(()=>{const t=Na(e);return la(t),t})}function Xl(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function zi(e){return e[gn]||null}function po(e){return e[En]||null}function Ni(e){return e[xn]||null}function Ro(e){const t=zi(e)||po(e)||Ni(e);return null!==t&&t.standalone}function _o(e,t){const n=e[Vn]||null;if(!n&&!0===t)throw new Error(`Type ${Ln(e)} does not have '\u0275mod' property.`);return n}function Na(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Qo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||sr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zs(e.inputs,t),outputs:zs(e.outputs),debugInfo:null}}function la(e){e.features?.forEach(t=>t(e))}function Lo(e,t){if(!e)return null;const n=t?Ni:nr;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Ea)}function lo(e){return{\u0275providers:e}}function hl(...e){return{\u0275providers:Al(0,e),\u0275fromNgModule:!0}}function Al(e,...t){const n=[],r=new Set;let l;const d=g=>{n.push(g)};return oo(t,g=>{const w=g;fl(w,d,[],r)&&(l||=[],l.push(w))}),void 0!==l&&Yl(l,d),n}function Yl(e,t){for(let n=0;n{t(d,r)})}}function fl(e,t,n,r){if(!(e=Be(e)))return!1;let l=null,d=Tn(e);const g=!d&&zi(e);if(d||g){if(g&&!g.standalone)return!1;l=e}else{const A=e.ngModule;if(d=Tn(A),!d)return!1;l=A}const w=r.has(l);if(g){if(w)return!1;if(r.add(l),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const j of A)fl(j,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!w){let j;r.add(l);try{oo(d.imports,q=>{fl(q,t,n,r)&&(j||=[],j.push(q))})}finally{}void 0!==j&&Yl(j,t)}if(!w){const j=ro(l)||(()=>new l);t({provide:l,useFactory:j,deps:sr},l),t({provide:rs,useValue:l,multi:!0},l),t({provide:is,useValue:()=>Tr(l),multi:!0},l)}const A=d.providers;if(null!=A&&!w){const j=e;ml(A,q=>{t(q,j)})}}}return l!==e&&void 0!==e.providers}function ml(e,t){for(let n of e)hn(n)&&(n=n.\u0275providers),Array.isArray(n)?ml(n,t):t(n)}const Tl=jt({provide:String,useValue:jt});function Ss(e){return null!==e&&"object"==typeof e&&Tl in e}function as(e){return"function"==typeof e}const Yr=new Bn(""),ko={},iu={};let To;function ua(){return void 0===To&&(To=new qr),To}class Mr{}class Pa extends Mr{get destroyed(){return this._destroyed}constructor(t,n,r,l){super(),this.parent=n,this.source=r,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ha(t,g=>this.processProvider(g)),this.records.set(ao,Ws(void 0,this)),l.has("environment")&&this.records.set(Mr,Ws(void 0,this));const d=this.records.get(Yr);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(rs,sr,Gi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ee(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ee(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Sr(this),r=io(void 0);try{return t()}finally{Sr(n),io(r)}}get(t,n=vo,r=Gi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Oi))return t[Oi](this);r=js(r);const d=Sr(this),g=io(void 0);try{if(!(r&Gi.SkipSelf)){let A=this.records.get(t);if(void 0===A){const j=function Ya(e){return"function"==typeof e||"object"==typeof e&&e instanceof Bn}(t)&&ft(t);A=j&&this.injectableDefInScope(j)?Ws(da(t),ko):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(r&Gi.Self?ua():this.parent).get(t,n=r&Gi.Optional&&n===vo?null:n)}catch(w){if("NullInjectorError"===w.name){if((w[xr]=w[xr]||[]).unshift(Ln(t)),d)throw w;return function va(e,t,n,r){const l=e[xr];throw t[Jr]&&l.unshift(t[Jr]),e.message=function ws(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=Ln(t);if(Array.isArray(t))l=t.map(Ln).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let w=t[g];d.push(g+":"+("string"==typeof w?JSON.stringify(w):Ln(w)))}l=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${l}]: ${e.replace(hr,"\n ")}`}("\n"+e.message,l,n,r),e.ngTokenPath=l,e[xr]=null,e}(w,t,"R3InjectorError",this.source)}throw w}finally{io(g),Sr(d)}}resolveInjectorInitializers(){const t=ee(null),n=Sr(this),r=io(void 0);try{const d=this.get(is,sr,Gi.Self);for(const g of d)g()}finally{Sr(n),io(r),ee(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ln(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new wt(205,!1)}processProvider(t){let n=as(t=Be(t))?t:Be(t&&t.provide);const r=function fr(e){return Ss(e)?Ws(void 0,e.useValue):Ws(As(e),ko)}(t);if(!as(t)&&!0===t.multi){let l=this.records.get(n);l||(l=Ws(void 0,ko,!0),l.factory=()=>Vr(l.multi),this.records.set(n,l)),n=t,l.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ee(null);try{return n.value===ko&&(n.value=iu,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gs(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ee(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Be(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function da(e){const t=ft(e),n=null!==t?t.factory:ro(e);if(null!==n)return n;if(e instanceof Bn)throw new wt(204,!1);if(e instanceof Function)return function ls(e){if(e.length>0)throw new wt(204,!1);const n=function bn(e){return e&&(e[Kn]||e[ii])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new wt(204,!1)}function As(e,t,n){let r;if(as(e)){const l=Be(e);return ro(l)||da(l)}if(Ss(e))r=()=>Be(e.useValue);else if(function Da(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Vr(e.deps||[]));else if(function Ca(e){return!(!e||!e.useExisting)}(e))r=()=>Tr(Be(e.useExisting));else{const l=Be(e&&(e.useClass||e.provide));if(!function Hr(e){return!!e.deps}(e))return ro(l)||da(l);r=()=>new l(...Vr(e.deps))}return r}function Ws(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ha(e,t){for(const n of e)Array.isArray(n)?ha(n,t):n&&hn(n)?ha(n.\u0275providers,t):t(n)}function Bo(e,t){e instanceof Pa&&e.assertNotDestroyed();const r=Sr(e),l=io(void 0);try{return t()}finally{Sr(r),io(l)}}function Ks(){return void 0!==es()||null!=function ns(){return Ii}()}function Qi(e){if(!Ks())throw new wt(-203,!1)}const St=0,Ht=1,cn=2,kn=3,fn=4,Mn=5,Nn=6,Qn=7,An=8,ri=9,hi=10,Rn=11,ki=12,Ai=13,ar=14,Ri=15,rr=16,Qr=17,Cr=18,Co=19,oi=20,Yn=21,ir=22,dr=23,Jn=25,eo=1,mo=7,Zo=9,zr=10;var vi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(vi||{});function kr(e){return Array.isArray(e)&&"object"==typeof e[eo]}function to(e){return Array.isArray(e)&&!0===e[eo]}function Ts(e){return!!(4&e.flags)}function Uo(e){return e.componentOffset>-1}function Ei(e){return!(1&~e.flags)}function Zr(e){return!!e.template}function cs(e){return!!(512&e[cn])}class ds{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function xa(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Qs(){return Ml}function Ml(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rs),Fa}function Fa(){const e=rf(this),t=e?.current;if(t){const n=e.previous;if(n===Qo)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Rs(e,t,n,r,l){const d=this.declaredInputs[r],g=rf(e)||function Qp(e,t){return e[Jl]=t}(e,{previous:Qo,current:null}),w=g.current||(g.current={}),A=g.previous,j=A[d];w[d]=new ds(j&&j.currentValue,n,A===Qo),xa(e,t,l,n)}Qs.ngInherit=!0;const Jl="__ngSimpleChanges__";function rf(e){return e[Jl]||null}const La=function(e,t,n){},af="svg";function vr(e){for(;Array.isArray(e);)e=e[St];return e}function Cc(e,t){return vr(t[e])}function Is(e,t){return vr(t[e.index])}function vl(e,t){return e.data[t]}function Dc(e,t){return e[t]}function Zs(e,t){const n=t[e];return kr(n)?n:n[St]}function Ua(e){return!(128&~e[cn])}function Js(e,t){return null==t?null:e[t]}function Nu(e){e[Qr]=0}function Pu(e){1024&e[cn]||(e[cn]|=1024,Ua(e)&&xc(e))}function ou(e){return!!(9216&e[cn]||e[dr]?.dirty)}function Wd(e){e[hi].changeDetectionScheduler?.notify(8),64&e[cn]&&(e[cn]|=1024),ou(e)&&xc(e)}function xc(e){e[hi].changeDetectionScheduler?.notify(0);let t=Za(e);for(;null!==t&&!(8192&t[cn])&&(t[cn]|=8192,Ua(t));)t=Za(t)}function Sc(e,t){if(!(256&~e[cn]))throw new wt(911,!1);null===e[Yn]&&(e[Yn]=[]),e[Yn].push(t)}function Za(e){const t=e[kn];return to(t)?t[kn]:t}const Xi={lFrame:mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Fu=!1;function Uu(){return Xi.bindingsEnabled}function Ol(){return null!==Xi.skipHydrationRootTNode}function _n(){return Xi.lFrame.lView}function lr(){return Xi.lFrame.tView}function Yd(e){return Xi.lFrame.contextLView=e,e[An]}function ju(e){return Xi.lFrame.contextLView=null,e}function yr(){let e=Hu();for(;null!==e&&64===e.type;)e=e.parent;return e}function Hu(){return Xi.lFrame.currentTNode}function ja(e,t){const n=Xi.lFrame;n.currentTNode=e,n.isParent=t}function Qd(){return Xi.lFrame.isParent}function $u(){Xi.lFrame.isParent=!1}function Wu(){return Fu}function Zd(e){Fu=e}function Wo(){const e=Xi.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ja(){return Xi.lFrame.bindingIndex++}function yl(e){const t=Xi.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ku(e,t){const n=Xi.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xu(t)}function Xu(e){Xi.lFrame.currentDirectiveIndex=e}function ff(e){const t=Xi.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Yu(){return Xi.lFrame.currentQueryIndex}function Jd(e){Xi.lFrame.currentQueryIndex=e}function Gg(e){const t=e[Ht];return 2===t.type?t.declTNode:1===t.type?e[Mn]:null}function tm(e,t,n){if(n&Gi.SkipSelf){let l=t,d=e;for(;!(l=l.parent,null!==l||n&Gi.Host||(l=Gg(d),null===l||(d=d[ar],10&l.type))););if(null===l)return!1;t=l,e=d}const r=Xi.lFrame=su();return r.currentTNode=t,r.lView=e,!0}function pf(e){const t=su(),n=e[Ht];Xi.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function su(){const e=Xi.lFrame,t=null===e?null:e.child;return null===t?mf(e):t}function mf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function gf(){const e=Xi.lFrame;return Xi.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vf=gf;function Tc(){const e=gf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jo(){return Xi.lFrame.selectedIndex}function kl(e){Xi.lFrame.selectedIndex=e}function co(){const e=Xi.lFrame;return vl(e.tView,e.selectedIndex)}function Zu(){Xi.lFrame.currentNamespace=af}function yf(){!function nm(){Xi.lFrame.currentNamespace=null}()}let wf=!0;function au(){return wf}function qa(e){wf=e}function Ic(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[A]<0&&(e[Qr]+=65536),(w>14>16&&(3&e[cn])===t&&(e[cn]+=16384,im(w,d)):im(w,d)}const Oc=-1;class el{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const nc={};class Nl{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=js(r);const l=this.injector.get(t,nc,r);return l!==nc||n===nc?l:this.parentInjector.get(t,n,r)}}function ed(e){return e!==Oc}function lu(e){return 32767&e}function cu(e,t){let n=function eh(e){return e>>16}(e),r=t;for(;n>0;)r=r[ar],n--;return r}let td=!0;function nd(e){const t=td;return td=e,t}const Sf=255,id=5;let th=0;const tl={};function Rc(e,t){const n=Af(e,t);if(-1!==n)return n;const r=t[Ht];r.firstCreatePass&&(e.injectorIndex=t.length,nh(r.data,e),nh(t,null),nh(r.blueprint,null));const l=rd(e,t),d=e.injectorIndex;if(ed(l)){const g=lu(l),w=cu(l,t),A=w[Ht].data;for(let j=0;j<8;j++)t[d+j]=w[g+j]|A[g+j]}return t[d+8]=l,d}function nh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Af(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function rd(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,l=t;for(;null!==l;){if(r=If(l),null===r)return Oc;if(n++,l=l[ar],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Oc}function rc(e,t,n){!function ic(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ui)&&(r=n[ui]),null==r&&(r=n[ui]=th++);const l=r&Sf;t.data[e+(l>>id)]|=1<=0?t&Sf:ld:t}(n);if("function"==typeof d){if(!tm(t,e,r))return r&Gi.Host?Sa(l,0,r):sd(t,n,r,l);try{let g;if(g=d(r),null!=g||r&Gi.Optional)return g;Ko()}finally{vf()}}else if("number"==typeof d){let g=null,w=Af(e,t),A=Oc,j=r&Gi.Host?t[Ri][Mn]:null;for((-1===w||r&Gi.SkipSelf)&&(A=-1===w?rd(e,t):t[w+8],A!==Oc&&uu(r,!1)?(g=t[Ht],w=lu(A),t=cu(A,t)):w=-1);-1!==w;){const q=t[Ht];if(ad(d,w,q.data)){const Ue=lm(w,t,n,g,r,j);if(Ue!==tl)return Ue}A=t[w+8],A!==Oc&&uu(r,t[Ht].data[w+8]===j)&&ad(d,w,t)?(g=q,w=lu(A),t=cu(A,t)):w=-1}}return l}function lm(e,t,n,r,l,d){const g=t[Ht],w=g.data[e+8],q=ih(w,g,n,null==r?Uo(w)&&td:r!=g&&!!(3&w.type),l&Gi.Host&&d===w);return null!==q?nl(t,g,q,w):tl}function ih(e,t,n,r,l){const d=e.providerIndexes,g=t.data,w=1048575&d,A=e.directiveStart,q=d>>20,_t=l?w+q:e.directiveEnd;for(let kt=r?w:w+q;kt<_t;kt++){const qt=g[kt];if(kt=A&&qt.type===n)return kt}if(l){const kt=g[A];if(kt&&Zr(kt)&&kt.type===n)return A}return null}function nl(e,t,n,r){let l=e[n];const d=t.data;if(function Cf(e){return e instanceof el}(l)){const g=l;g.resolving&&function Lr(e,t){throw t&&t.join(" > "),new wt(-200,e)}(function Wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ti(e)}(d[n]));const w=nd(g.canSeeViewProviders);g.resolving=!0;const j=g.injectImpl?io(g.injectImpl):null;tm(e,r,Gi.Default);try{l=e[n]=g.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ql(e,t,n){const{ngOnChanges:r,ngOnInit:l,ngDoCheck:d}=t.type.prototype;if(r){const g=Ml(t);(n.preOrderHooks??=[]).push(e,g),(n.preOrderCheckHooks??=[]).push(e,g)}l&&(n.preOrderHooks??=[]).push(0-e,l),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==j&&io(j),nd(w),g.resolving=!1,vf()}}return l}function ad(e,t,n){return!!(n[t+(e>>id)]&1<{const t=e.prototype.constructor,n=t[Hn]||$a(t),r=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==r;){const d=l[Hn]||$a(l);if(d&&d!==n)return d;l=Object.getPrototypeOf(l)}return d=>new d})}function $a(e){return ye(e)?()=>{const t=$a(Be(e));return t&&t()}:ro(e)}function If(e){const t=e[Ht],n=t.type;return 2===n?t.declTNode:1===n?e[Mn]:null}function oc(e){return function od(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let l=0;for(;lTr(ao)})}static{this.__NG_ELEMENT_ID__=-1}}new Bn("").__NG_ELEMENT_ID__=e=>{const t=yr();if(null===t)throw new wt(204,!1);if(2&t.type)return t.value;if(e&Gi.Optional)return null;throw new wt(204,!1)};function uh(e){return e.ngOriginalError}const Nf=!0;let ud=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pf}static{this.__NG_ENV_ID__=n=>n}}return e})();class pm extends ud{constructor(t){super(),this._lView=t}onDestroy(t){return Sc(this._lView,t),()=>function Va(e,t){if(null===e[Yn])return;const n=e[Yn].indexOf(t);-1!==n&&e[Yn].splice(n,1)}(this._lView,t)}}function Pf(){return new pm(_n())}let Lc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new We.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new e})}}return e})();const il=class Bc extends Pe.B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ks()&&(this.destroyRef=xi(ud,{optional:!0})??void 0,this.pendingTasks=xi(Lc,{optional:!0})??void 0)}emit(t){const n=ee(null);try{super.next(t)}finally{ee(n)}}subscribe(t,n,r){let l=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const A=t;l=A.next?.bind(A),d=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(d=this.wrapInTimeout(d),l&&(l=this.wrapInTimeout(l)),g&&(g=this.wrapInTimeout(g)));const w=super.subscribe({next:l,error:d,complete:g});return t instanceof xt.yU&&t.add(w),w}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function $r(...e){}function Lf(e){let t,n;function r(){e=$r;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ac(e){return queueMicrotask(()=>e()),()=>{e=$r}}const bl="isAngularZone",lc=bl+"_ID";let qo=0;class yo{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new il(!1),this.onMicrotaskEmpty=new il(!1),this.onStable=new il(!1),this.onError=new il(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1,scheduleInRootZone:d=Nf}=t;if(typeof Zone>"u")throw new wt(908,!1);Zone.assertZonePatched();const g=this;g._nesting=0,g._outer=g._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(g._inner=g._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(g._inner=g._inner.fork(Zone.longStackTraceZoneSpec)),g.shouldCoalesceEventChangeDetection=!l&&r,g.shouldCoalesceRunChangeDetection=l,g.callbackScheduled=!1,g.scheduleInRootZone=d,function mm(e){const t=()=>{!function hd(e){function t(){Lf(()=>{e.callbackScheduled=!1,dh(e),e.isCheckStableRunning=!0,dd(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),dh(e))}(e)},n=qo++;e._inner=e._inner.fork({name:"angular",properties:{[bl]:!0,[lc]:n,[lc+n]:!0},onInvokeTask:(r,l,d,g,w,A)=>{if(function Uc(e){return hh(e,"__ignore_ng_zone__")}(A))return r.invokeTask(d,g,w,A);try{return hu(e),r.invokeTask(d,g,w,A)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||e.shouldCoalesceRunChangeDetection)&&t(),Uf(e)}},onInvoke:(r,l,d,g,w,A,j)=>{try{return hu(e),r.invoke(d,g,w,A,j)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function cc(e){return hh(e,"__scheduler_tick__")}(A)&&t(),Uf(e)}},onHasTask:(r,l,d,g)=>{r.hasTask(d,g),l===d&&("microTask"==g.change?(e._hasPendingMicrotasks=g.microTask,dh(e),dd(e)):"macroTask"==g.change&&(e.hasPendingMacrotasks=g.macroTask))},onHandleError:(r,l,d,g)=>(r.handleError(d,g),e.runOutsideAngular(()=>e.onError.emit(g)),!1)})}(g)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(bl)}static assertInAngularZone(){if(!yo.isInAngularZone())throw new wt(909,!1)}static assertNotInAngularZone(){if(yo.isInAngularZone())throw new wt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,l){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+l,t,Bf,$r,$r);try{return d.runTask(g,n,r)}finally{d.cancelTask(g)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Bf={};function dd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function hu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Uf(e){e._nesting--,dd(e)}class fd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new il,this.onMicrotaskEmpty=new il,this.onStable=new il,this.onError=new il}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,l){return t.apply(n,r)}}function hh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class wl{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&uh(t);for(;n&&uh(n);)n=uh(n);return n||null}}const Vf=new Bn("",{providedIn:"root",factory:()=>{const e=xi(yo),t=xi(wl);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Zg(){return El(yr(),_n())}function El(e,t){return new jc(Is(e,t))}let jc=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Zg}}return e})();function md(e){return e instanceof jc?e.nativeElement:e}function Hf(){return this._results[Symbol.iterator]()}class Hc{get changes(){return this._changes??=new il}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Hc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Hf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Er(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oa(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rDi}),Di="ng",Ji=new Bn(""),Vi=new Bn("",{providedIn:"platform",factory:()=>"unknown"}),pr=new Bn(""),mr=new Bn("",{providedIn:"root",factory:()=>qn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pu=()=>null;function ym(e,t,n=!1){return pu(e,t,n)}const tv=new Bn("",{providedIn:"root",factory:()=>!1});let tp,np;function wd(e){return function Em(){if(void 0===tp&&(tp=null,nt.trustedTypes))try{tp=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tp}()?.createHTML(e)||e}function Cm(){if(void 0===np&&(np=null,nt.trustedTypes))try{np=nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return np}function rv(e){return Cm()?.createHTML(e)||e}function Dm(e){return Cm()?.createScriptURL(e)||e}class gu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rt})`}}class ob extends gu{getTypeName(){return"HTML"}}class sb extends gu{getTypeName(){return"Style"}}class sv extends gu{getTypeName(){return"Script"}}class ab extends gu{getTypeName(){return"URL"}}class lb extends gu{getTypeName(){return"ResourceURL"}}function hc(e){return e instanceof gu?e.changingThisBreaksApplicationSecurity:e}function Ed(e,t){const n=function cb(e){return e instanceof gu&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Rt})`)}return n===t}function ub(e){return new ob(e)}function db(e){return new sb(e)}function hb(e){return new sv(e)}function fb(e){return new ab(e)}function pb(e){return new lb(e)}class mb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(wd(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class gb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=wd(t),n}}const _b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ip(e){return(e=String(e)).match(_b)?e:"unsafe:"+e}function fc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ah(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const lv=fc("area,br,col,hr,img,wbr"),cv=fc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uv=fc("rp,rt"),Sm=Ah(lv,Ah(cv,fc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ah(uv,fc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ah(uv,cv)),Am=fc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dv=Ah(Am,fc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fc("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bb=fc("script,style,template");class wb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,l=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)l.push(n),n=Db(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=Cb(n);if(d){n=d;break}n=l.pop()}return this.buf.join("")}startElement(t){const n=hv(t).toLowerCase();if(!Sm.hasOwnProperty(n))return this.sanitizedSomething=!0,!bb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let l=0;l"),!0}endElement(t){const n=hv(t).toLowerCase();Sm.hasOwnProperty(n)&&!lv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(pv(t))}}function Cb(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw fv(t);return t}function Db(e){const t=e.firstChild;if(t&&function Eb(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw fv(t);return t}function hv(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function fv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const xb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sb=/([^\#-~ |!])/g;function pv(e){return e.replace(/&/g,"&").replace(xb,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Sb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let rp;function mv(e,t){let n=null;try{rp=rp||function av(e){const t=new gb(e);return function vb(){try{return!!(new window.DOMParser).parseFromString(wd(""),"text/html")}catch{return!1}}()?new mb(t):t}(e);let r=t?String(t):"";n=rp.getInertBodyElement(r);let l=5,d=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=d,d=n.innerHTML,n=rp.getInertBodyElement(r)}while(r!==d);return wd((new wb).sanitizeChildren(Cd(n)||n))}finally{if(n){const r=Cd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Cd(e){return"content"in e&&function op(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Vl=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Vl||{});function gv(e){const t=Th();return t?rv(t.sanitize(Vl.HTML,e)||""):Ed(e,"HTML")?rv(hc(e)):mv(qn(),ti(e))}function Tm(e){const t=Th();return t?t.sanitize(Vl.URL,e)||"":Ed(e,"URL")?hc(e):ip(ti(e))}function Im(e){const t=Th();if(t)return Dm(t.sanitize(Vl.RESOURCE_URL,e)||"");if(Ed(e,"ResourceURL"))return Dm(hc(e));throw new wt(904,!1)}function vv(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Im:Tm}(t,n)(e)}function Th(){const e=_n();return e&&e[hi].sanitizer}const Rb=/^>|^->||--!>|)/g,Nb="\u200b$1\u200b";function bo(e){return e instanceof Function?e():e}function na(e){return"browser"===(e??xi(hs)).get(Vi)}var lp=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(lp||{});let _u;function cp(e,t){return _u(e,t)}function pc(e,t,n,r,l){if(null!=r){let d,g=!1;to(r)?d=r:kr(r)&&(g=!0,r=r[St]);const w=vr(r);0===e&&null!==n?null==l?Bm(t,n,w):yu(t,n,w,l||null,!0):1===e&&null!==n?yu(t,n,w,l||null,!0):2===e?function Ih(e,t,n){e.removeChild(null,t,n)}(t,w,g):3===e&&t.destroyNode(w),null!=d&&function Zb(e,t,n,r,l){const d=n[mo];d!==vr(n)&&pc(t,e,r,d,l);for(let w=zr;wt.replace(kb,Nb))}(t))}function up(e,t,n){return e.createElement(t,n)}function jl(e,t){t[hi].changeDetectionScheduler?.notify(9),fp(e,t,t[Rn],2,null,null)}function Tv(e,t){const n=e[Zo],r=t[kn];(kr(r)||t[Ri]!==r[kn][Ri])&&(e[cn]|=vi.HasTransplantedViews),null===n?e[Zo]=[t]:n.push(t)}function Pm(e,t){const n=e[Zo],r=n.indexOf(t);n.splice(r,1)}function Td(e,t){if(e.length<=zr)return;const n=zr+t,r=e[n];if(r){const l=r[rr];null!==l&&l!==e&&Pm(l,r),t>0&&(e[n-1][fn]=r[fn]);const d=xo(e,zr+t);!function Wb(e,t){jl(e,t),t[St]=null,t[Mn]=null}(r[Ht],r);const g=d[Cr];null!==g&&g.detachView(d[Ht]),r[kn]=null,r[fn]=null,r[cn]&=-129}return r}function dp(e,t){if(!(256&t[cn])){const n=t[Rn];n.destroyNode&&fp(e,t,n,3,null,null),function Av(e){let t=e[ki];if(!t)return Fm(e[Ht],e);for(;t;){let n=null;if(kr(t))n=t[ki];else{const r=t[zr];r&&(n=r)}if(!n){for(;t&&!t[fn]&&t!==e;)kr(t)&&Fm(t[Ht],t),t=t[kn];null===t&&(t=e),kr(t)&&Fm(t[Ht],t),n=t&&t[fn]}t=n}}(t)}}function Fm(e,t){if(256&t[cn])return;const n=ee(null);try{t[cn]&=-129,t[cn]|=256,t[dr]&&bt(t[dr]),function Xb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[g]():r[-g].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[Qn]=null);const l=t[Yn];if(null!==l){t[Yn]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[r.directiveStart+l];if(d===Oo.None||d===Oo.Emulated)return null}return Is(r,n)}}(e,t.parent,n)}function yu(e,t,n,r,l){e.insertBefore(t,n,r,l)}function Bm(e,t,n){e.appendChild(t,n)}function Um(e,t,n,r,l){null!==r?yu(e,t,n,r,l):Bm(e,t,n)}function Hl(e,t){return e.parentNode(t)}function Iv(e,t,n){return Ov(e,t,n)}let Vm,Ov=function Mv(e,t,n){return 40&e.type?Is(e,n):null};function hp(e,t,n,r){const l=Lm(e,r,t),d=t[Rn],w=Iv(r.parent||t[Mn],r,t);if(null!=l)if(Array.isArray(n))for(let A=0;AJn&&jv(e,t,Jn,!1),La(g?2:0,l),n(r,l)}finally{kl(d),La(g?3:1,l)}}function zm(e,t,n){if(Ts(t)){const r=ee(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function Cu(e,t,n,r,l){for(let d in t){if(!t.hasOwnProperty(d))continue;const g=t[d];if(void 0===g)continue;r??={};let w,A=fo.None;Array.isArray(g)?(w=g[0],A=g[1]):w=g;let j=d;if(null!==l){if(!l.hasOwnProperty(d))continue;j=l[d]}0===e?mp(r,n,j,w,A):mp(r,n,j,w)}return r}function mp(e,t,n,r,l){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,r):d=e[n]=[t,r],void 0!==l&&d.push(l)}function Ta(e,t,n,r,l,d,g,w){const A=Is(t,n);let q,j=t.inputs;!w&&null!=j&&(q=j[r])?(qm(e,n,q,r,l),Uo(t)&&function r0(e,t){const n=Zs(t,e);16&n[cn]||(n[cn]|=64)}(n,t.index)):3&t.type&&(r=function Yv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),l=null!=g?g(l,t.value||"",r):l,d.setProperty(A,r,l))}function Xm(e,t,n,r){if(Uu()){const l=null===r?null:{"":-1},d=function iC(e,t){const n=e.directiveRegistry;let r=null,l=null;if(n)for(let d=0;d0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=w&&g.push(w),g.push(n,r,d)}}(e,t,r,Mh(e,n,l.hostVars,qi),l)}function zl(e,t,n,r,l,d){const g=Is(e,t);!function Zm(e,t,n,r,l,d,g){if(null==d)e.removeAttribute(t,l,n);else{const w=null==g?ti(d):g(d,r||"",l);e.setAttribute(t,l,w,n)}}(t[Rn],g,d,e.value,n,r,l)}function e_(e,t,n,r,l,d){const g=d[t];if(null!==g)for(let w=0;w0&&(n[l-1][fn]=t),r{xc(e.lView)},consumerOnSignalRead(){this.lView[dr]=this}},_0={...U,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Za(e.lView);for(;t&&!d_(t[Ht]);)t=Za(t);t&&Pu(t)},consumerOnSignalRead(){this.lView[dr]=this}};function d_(e){return 2!==e.type}const y0=100;function kd(e,t=!0,n=0){const r=e[hi],l=r.rendererFactory;l.begin?.();try{!function _p(e,t){const n=Wu();try{Zd(!0),ng(e,t);let r=0;for(;ou(e);){if(r===y0)throw new wt(103,!1);r++,ng(e,1)}}finally{Zd(n)}}(e,n)}catch(g){throw t&&vp(e,g),g}finally{l.end?.(),r.inlineEffectRunner?.flush()}}function b0(e,t,n,r){const l=t[cn];if(!(256&~l))return;t[hi].inlineEffectRunner?.flush(),pf(t);let w=!0,A=null,j=null;d_(e)?(j=function f0(e){return e[dr]??function p0(e){const t=u_.pop()??Object.create(g0);return t.lView=e,t}(e)}(t),A=te(j)):null===function re(){return y}()?(w=!1,j=function v0(e){const t=e[dr]??Object.create(_0);return t.lView=e,t}(t),A=te(j)):t[dr]&&(bt(t[dr]),t[dr]=null);try{Nu(t),function Gu(e){return Xi.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&zv(e,t,n,2,r);const q=!(3&~l);if(q){const kt=e.preOrderCheckHooks;null!==kt&&Mc(t,kt,null)}else{const kt=e.preOrderHooks;null!==kt&&ec(t,kt,0,null),qd(t,0)}if(function w0(e){for(let t=h(e);null!==t;t=m(t)){if(!(t[cn]&vi.HasTransplantedViews))continue;const n=t[Zo];for(let r=0;r-1&&(Td(t,r),xo(n,r))}this._attachedToViewContainer=!1}dp(this._lView[Ht],this._lView)}onDestroy(t){Sc(this._lView,t)}markForCheck(){Oh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[cn]&=-129}reattach(){Wd(this._lView),this._lView[cn]|=128}detectChanges(){this._lView[cn]|=1024,kd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new wt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=cs(this._lView),n=this._lView[rr];null!==n&&!t&&Pm(n,this._lView),jl(this._lView[Ht],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new wt(902,!1);this._appRef=t;const n=cs(this._lView),r=this._lView[rr];null!==r&&!n&&Tv(r,this._lView),Wd(this._lView)}}let kh=(()=>{class e{static{this.__NG_ELEMENT_ID__=x0}}return e})();const C0=kh,D0=class extends C0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const l=Du(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Rh(l)}};function x0(){return yp(yr(),_n())}function yp(e,t){return 4&e.type?new D0(t,e,El(e,t)):null}let V_=()=>null;function Iu(e,t){return V_(e,t)}class Ud{}const $h=new Bn("",{providedIn:"root",factory:()=>!1}),j_=new Bn(""),hg=new Bn("");class ow{}class H_{}class aw{resolveComponentFactory(t){throw function sw(e){const t=Error(`No component factory found for ${Ln(e)}.`);return t.ngComponent=e,t}(t)}}class zh{static{this.NULL=new aw}}class fg{}let lw=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function cw(){const e=_n(),n=Zs(yr().index,e);return(kr(n)?n:e)[Rn]}()}}return e})(),z_=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>null})}}return e})();function Qc(e){return!!_o(e)}function Gh(e,t,n){let r=n?e.styles:null,l=n?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&Bv(e,n,d.join(" "))}}(_t,bs,qt,r),void 0!==n&&function Q_(e,t,n){const r=e.projection=[];for(let l=0;l{class e{static{this.__NG_ELEMENT_ID__=_w}}return e})();function _w(){return ey(yr(),_n())}const Z_=xp,J_=class extends Z_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return El(this._hostTNode,this._hostLView)}get injector(){return new Vo(this._hostTNode,this._hostLView)}get parentInjector(){const t=rd(this._hostTNode,this._hostLView);if(ed(t)){const n=cu(t,this._hostLView),r=lu(t);return new Vo(n[Ht].data[r+8],n)}return new Vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=q_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-zr}createEmbeddedView(t,n,r){let l,d;"number"==typeof r?l=r:null!=r&&(l=r.index,d=r.injector);const g=Iu(this._lContainer,t.ssrId),w=t.createEmbeddedViewImpl(n||{},d,g);return this.insertImpl(w,l,xu(this._hostTNode,g)),w}createComponent(t,n,r,l,d){const g=t&&!function x(e){return"function"==typeof e}(t);let w;if(g)w=n;else{const qt=n||{};w=qt.index,r=qt.injector,l=qt.projectableNodes,d=qt.environmentInjector||qt.ngModuleRef}const A=g?t:new Kh(zi(t)),j=r||this.parentInjector;if(!d&&null==A.ngModule){const In=(g?j:this.parentInjector).get(Mr,null);In&&(d=In)}const q=zi(A.componentType??{}),Ue=Iu(this._lContainer,q?.id??null),kt=A.create(j,l,Ue?.firstChild??null,d);return this.insertImpl(kt.hostView,w,xu(this._hostTNode,Ue)),kt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const l=t._lView;if(function ku(e){return to(e[kn])}(l)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const A=l[kn],j=new J_(A,A[Mn],A[kn]);j.detach(j.indexOf(t))}}const d=this._adjustIndex(n),g=this._lContainer;return Od(g,l,d,r),t.attachToViewContainerRef(),jr(vg(g),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=q_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Td(this._lContainer,n);r&&(xo(vg(this._lContainer),n),dp(r[Ht],r))}detach(t){const n=this._adjustIndex(t,-1),r=Td(this._lContainer,n);return r&&null!=xo(vg(this._lContainer),n)?new Rh(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function q_(e){return e[8]}function vg(e){return e[8]||(e[8]=[])}function ey(e,t){let n;const r=t[e.index];return to(r)?n=r:(n=t_(r,t,null,e),t[e.index]=n,gp(t,n)),ty(n,t,e,r),new J_(n,e,t)}let ty=function iy(e,t,n,r){if(e[mo])return;let l;l=8&n.type?vr(r):function yw(e,t){const n=e[Rn],r=n.createComment(""),l=Is(t,e);return yu(n,Hl(n,l),r,function Yb(e,t){return e.nextSibling(t)}(n,l),!1),r}(t,n),e[mo]=l},_g=()=>!1;class yg{constructor(t){this.queryList=t,this.matches=null}clone(){return new yg(this.queryList)}setDirty(){this.queryList.setDirty()}}class bg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,l=[];for(let d=0;dt.trim())}(t):t}}class wg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(g[w/2]);else{const j=d[w+1],q=t[-A];for(let Ue=zr;Ue(L(t),t.value);return n[W]=t,n}(e),r=n[W];return t?.equal&&(r.equal=t.equal),n.set=l=>gt(r,l),n.update=l=>function Ne(e,t){Te()||yn(),gt(e,t(e.value))}(r,l),n.asReadonly=ie.bind(n),n}function ie(){const e=this[W];if(void 0===e.readonlyFn){const t=()=>this();t[W]=e,e.readonlyFn=t}return e.readonlyFn}function Fe(e){return f(e)&&"function"==typeof e.set}function Nt(e,t){let n;const r=et(()=>{n._dirtyCounter();const l=function pi(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[cn])return t?void 0:sr;const l=sy(n,r),d=s(n,r);return l.reset(d,md),t?l.first:l._changesDetected||void 0===e._flatValue?e._flatValue=l.toArray():e._flatValue}(n,e);if(t&&void 0===l)throw new wt(-951,!1);return l});return n=r[W],n._dirtyCounter=H(0),n._flatValue=void 0,r}function go(e,t){return function Yt(){return Nt(!0,!1)}()}const sl=(go.required=function vc(e,t){return function jn(){return Nt(!0,!0)}()},go);function Mw(e){let t=function vC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let l;if(Zr(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new wt(903,!1);l=t.\u0275dir}if(l){if(n){r.push(l);const g=e;g.inputs=hy(e.inputs),g.inputTransforms=hy(e.inputTransforms),g.declaredInputs=hy(e.declaredInputs),g.outputs=hy(e.outputs);const w=l.hostBindings;w&&NS(e,w);const A=l.viewQuery,j=l.contentQueries;if(A&&RS(e,A),j&&kS(e,j),MS(e,l),On(e.outputs,l.outputs),Zr(l)&&l.data.animation){const q=e.data;q.animation=(q.animation||[]).concat(l.data.animation)}}const d=l.features;if(d)for(let g=0;g=0;r--){const l=e[r];l.hostVars=t+=l.hostVars,l.hostAttrs=Os(l.hostAttrs,n=Os(n,l.hostAttrs))}}(r)}function MS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const l=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(l))continue;e.inputTransforms??={},e.inputTransforms[l]=t.inputTransforms[l]}}}function hy(e){return e===Qo?{}:e===sr?[]:e}function RS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,l)=>{t(r,l),n(r,l)}:t}function kS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,l,d)=>{t(r,l,d),n(r,l,d)}:t}function NS(e,t){const n=e.hostBindings;e.hostBindings=n?(r,l)=>{t(r,l),n(r,l)}:t}function _C(e){const t=n=>{const r=(Array.isArray(e)?e:e()).map(l=>"function"==typeof l?{directive:Be(l),inputs:Qo,outputs:Qo}:{directive:Be(l.directive),inputs:bC(l.inputs),outputs:bC(l.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=yC,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function yC(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const l=po(r.directive);BS(l.declaredInputs,r.inputs),yC(l,t,n),n.set(l,r),t.push(l)}}function bC(e){if(void 0===e||0===e.length)return Qo;const t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Rw extends CC{constructor(t){super(),this.moduleType=t}create(t){return new Ow(this.moduleType,t,[])}}class DC extends Xh{constructor(t){super(),this.componentFactoryResolver=new K_(this),this.instance=null;const n=new Pa([...t.providers,{provide:Xh,useValue:this},{provide:zh,useValue:this.componentFactoryResolver}],t.parent||ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function kw(e,t,n=null){return new DC({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function fy(e){return!!Nw(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Nw(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qc(e,t,n){return e[t]=n}function Dg(e,t){return e[t]}function vs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Yh(e,t,n,r){const l=vs(e,t,n);return vs(e,t+1,r)||l}function Gl(e,t,n,r,l,d){const g=Yh(e,t,n,r);return Yh(e,t+2,l,d)||g}function xg(e,t,n,r,l,d,g,w,A,j){const q=n+Jn,Ue=t.firstCreatePass?function WS(e,t,n,r,l,d,g,w,A){const j=t.consts,q=wu(t,e,4,g||null,w||null);Xm(t,n,q,Js(j,A)),Ic(t,q);const Ue=q.tView=Km(2,q,r,l,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,j,null);return null!==t.queries&&(t.queries.template(t,q),Ue.queries=t.queries.embeddedTView(q)),q}(q,t,e,r,l,d,g,w,A):t.data[q];ja(Ue,!1);const _t=xC(t,e,Ue,n);au()&&hp(t,e,_t,Ue),fs(_t,e);const kt=t_(_t,e,_t,Ue);return e[q]=kt,gp(e,kt),function ny(e,t,n){return _g(e,t,n)}(kt,Ue,e),Ei(Ue)&&Wm(t,e,Ue),null!=A&&Gm(e,Ue,j),Ue}function Pw(e,t,n,r,l,d,g,w){const A=_n(),j=lr();return xg(A,j,e,t,n,r,l,Js(j.consts,d),g,w),Pw}let xC=function SC(e,t,n,r){return qa(!0),t[Rn].createComment("")};var Qh=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Qh||{});let RC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new e})}}return e})();class Tg{constructor(){this.ngZone=xi(yo),this.scheduler=xi(Ud),this.errorHandler=xi(wl,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Qh.EarlyRead,Qh.Write,Qh.MixedReadWrite,Qh.Read]}execute(){this.executing=!0;for(const t of Tg.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=bi({token:Tg,providedIn:"root",factory:()=>new Tg})}}class YS{constructor(t,n,r,l){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function kC(e,t){!t?.injector&&Qi();const n=t?.injector??xi(hs);return na(n)?(c("NgAfterRender"),NC(e,n,t,!1)):PC}function _y(e,t){!t?.injector&&Qi();const n=t?.injector??xi(hs);return na(n)?(c("NgAfterNextRender"),NC(e,n,t,!0)):PC}function NC(e,t,n,r){const l=t.get(RC);l.impl??=t.get(Tg);const d=n?.phase??Qh.MixedReadWrite,g=!0!==n?.manualCleanup?t.get(ud):null,w=new YS(l.impl,function QS(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,d),r,g);return l.impl.register(w),w}const PC={destroy(){}};function Gw(e,t,n,r){const l=_n();return vs(l,Ja(),t)&&(lr(),zl(co(),l,e,t,n,r)),Gw}function Fp(e,t,n,r){return vs(e,Ja(),n)?t+ti(n)+r:qi}function Lp(e,t,n,r,l,d){const w=Yh(e,function _l(){return Xi.lFrame.bindingIndex}(),n,l);return yl(2),w?t+ti(n)+r+ti(l)+d:qi}function wy(e,t){return e<<17|t<<2}function Hd(e){return e>>17&32767}function Kw(e){return 2|e}function Jh(e){return(131068&e)>>2}function Xw(e,t){return-131069&e|t<<2}function Yw(e){return 1|e}function aD(e,t,n,r){const l=e[n+1],d=null===t;let g=r?Hd(l):Jh(l),w=!1;for(;0!==g&&(!1===w||d);){const j=e[g+1];RA(e[g],t)&&(w=!0,e[g+1]=r?Yw(j):Kw(j)),g=r?Hd(j):Jh(j)}w&&(e[n+1]=r?Kw(l):Yw(l))}function RA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fo(e,t)>=0}const Fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(e){return e.substring(Fs.key,Fs.keyEnd)}function kA(e){return e.substring(Fs.value,Fs.valueEnd)}function cD(e,t){const n=Fs.textEnd;return n===t?-1:(t=Fs.keyEnd=function FA(e,t,n){for(;t32;)t++;return t}(e,Fs.key=t,n),zp(e,t,n))}function uD(e,t){const n=Fs.textEnd;let r=Fs.key=zp(e,t,n);return n===r?-1:(r=Fs.keyEnd=function LA(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=hD(e,r,n),r=Fs.value=zp(e,r,n),r=Fs.valueEnd=function BA(e,t,n){let r=-1,l=-1,d=-1,g=t,w=g;for(;g32&&(w=g),d=l,l=r,r=-33&A}return w}(e,r,n),hD(e,r,n))}function dD(e){Fs.key=0,Fs.keyEnd=0,Fs.value=0,Fs.valueEnd=0,Fs.textEnd=e.length}function zp(e,t,n){for(;t=0;n=uD(t,n))vD(e,lD(t),kA(t))}function pD(e){bc(WA,eu,e,!0)}function eu(e,t){for(let n=function NA(e){return dD(e),cD(e,zp(e,0,Fs.textEnd))}(t);n>=0;n=cD(t,n))so(e,lD(t),!0)}function yc(e,t,n,r){const l=_n(),d=lr(),g=yl(2);d.firstUpdatePass&&gD(d,e,g,r),t!==qi&&vs(l,g,t)&&_D(d,d.data[Jo()],l,l[Rn],e,l[g+1]=function KA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ln(hc(e)))),e}(t,n),r,g)}function bc(e,t,n,r){const l=lr(),d=yl(2);l.firstUpdatePass&&gD(l,null,d,r);const g=_n();if(n!==qi&&vs(g,d,n)){const w=l.data[Jo()];if(bD(w,r)&&!mD(l,d)){let A=r?w.classesWithoutHost:w.stylesWithoutHost;null!==A&&(n=wi(A,n||"")),Zw(l,w,g,n,r)}else!function GA(e,t,n,r,l,d,g,w){l===qi&&(l=sr);let A=0,j=0,q=0=e.expandoStartIndex}function gD(e,t,n,r){const l=e.data;if(null===l[n+1]){const d=l[Jo()],g=mD(e,n);bD(d,r)&&null===t&&!g&&(t=!1),t=function VA(e,t,n,r){const l=ff(e);let d=r?t.residualClasses:t.residualStyles;if(null===l)0===(r?t.classBindings:t.styleBindings)&&(n=Mg(n=eE(null,e,t,n,r),t.attrs,r),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==l)if(n=eE(l,e,t,n,r),null===d){let A=function jA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Jh(r))return e[Hd(r)]}(e,t,r);void 0!==A&&Array.isArray(A)&&(A=eE(null,e,t,A[1],r),A=Mg(A,t.attrs,r),function HA(e,t,n,r){e[Hd(n?t.classBindings:t.styleBindings)]=r}(e,t,r,A))}else d=function $A(e,t,n){let r;const l=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(j=!0)):q=n,l)if(0!==A){const _t=Hd(e[w+1]);e[r+1]=wy(_t,w),0!==_t&&(e[_t+1]=Xw(e[_t+1],r)),e[w+1]=function TA(e,t){return 131071&e|t<<17}(e[w+1],r)}else e[r+1]=wy(w,0),0!==w&&(e[w+1]=Xw(e[w+1],r)),w=r;else e[r+1]=wy(A,0),0===w?w=r:e[A+1]=Xw(e[A+1],r),A=r;j&&(e[r+1]=Kw(e[r+1])),aD(e,q,r,!0),aD(e,q,r,!1),function OA(e,t,n,r,l){const d=l?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Fo(d,t)>=0&&(n[r+1]=Yw(n[r+1]))}(t,q,e,r,d),g=wy(w,A),d?t.classBindings=g:t.styleBindings=g}(l,d,t,n,g,r)}}function eE(e,t,n,r,l){let d=null;const g=n.directiveEnd;let w=n.directiveStylingLast;for(-1===w?w=n.directiveStart:w++;w0;){const A=e[l],j=Array.isArray(A),q=j?A[1]:A,Ue=null===q;let _t=n[l+1];_t===qi&&(_t=Ue?sr:void 0);let kt=Ue?aa(_t,r):q===r?_t:void 0;if(j&&!Ey(kt)&&(kt=aa(A,r)),Ey(kt)&&(w=kt,g))return w;const qt=e[l+1];l=g?Hd(qt):Jh(qt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(w=aa(A,r))}return w}function Ey(e){return void 0!==e}function bD(e,t){return!!(e.flags&(t?8:16))}function wD(e,t,n){bc(so,eu,Fp(_n(),e,t,n),!0)}function ED(){return _n()[Ri][An]}class nT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),l=Math.max(t,n),d=this.detach(l);if(l-r>1){const g=this.detach(r);this.attach(r,d),this.attach(l,g)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function tE(e,t,n,r,l){return e===n&&Object.is(t,r)?1:Object.is(l(e,t),l(n,r))?-1:0}function nE(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function CD(e,t,n,r,l){if(nE(e,t,r,n(r,l)))e.updateValue(r,l);else{const d=e.create(r,l);e.attach(r,d)}}function DD(e,t,n,r){const l=new Set;for(let d=t;d<=n;d++)l.add(r(d,e.at(d)));return l}class xD{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(r);)r=l.get(r);l.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const l=this._vMap;for(;l.has(r);)r=l.get(r),t(r,n)}}}function SD(e,t){c("NgControlFlow");const n=_n(),r=Ja(),l=n[r]!==qi?n[r]:-1,d=-1!==l?Cy(n,Jn+l):void 0;if(vs(n,r,e)){const w=ee(null);try{if(void 0!==d&&tg(d,0),-1!==e){const A=Jn+e,j=Cy(n,A),q=iE(n[Ht],A),Ue=Iu(j,q.tView.ssrId);Od(j,Du(n,q,t,{dehydratedView:Ue}),0,xu(q,Ue))}}finally{ee(w)}}else if(void 0!==d){const w=l_(d,0);void 0!==w&&(w[An]=t)}}class rT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-zr}}class aT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function AD(e,t,n,r,l,d,g,w,A,j,q,Ue,_t){c("NgControlFlow");const kt=_n(),qt=lr(),In=void 0!==A,Zn=_n(),ai=w?g.bind(Zn[Ri][An]):g,Sn=new aT(In,ai);Zn[Jn+e]=Sn,xg(kt,qt,e+1,t,n,r,l,Js(qt.consts,d)),In&&xg(kt,qt,e+2,A,j,q,Ue,Js(qt.consts,_t))}class lT extends nT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-zr}at(t){return this.getLView(t)[An].$implicit}attach(t,n){const r=n[Nn];this.needsIndexUpdate||=t!==this.length,Od(this.lContainer,n,t,xu(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function cT(e,t){return Td(e,t)}(this.lContainer,t)}create(t,n){const r=Iu(this.lContainer,this.templateTNode.tView.ssrId),l=Du(this.hostLView,this.templateTNode,new rT(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),l}destroy(t){dp(t[Ht],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[An].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(A)})}(A,e,d.trackByFn),A.updateIndexes(),d.hasEmptyBlock){const j=Ja(),q=0===A.length;if(vs(r,j,q)){const Ue=n+2,_t=Cy(r,Ue);if(q){const kt=iE(l,Ue),qt=Iu(_t,kt.tView.ssrId);Od(_t,Du(r,kt,void 0,{dehydratedView:qt}),0,xu(kt,qt))}else tg(_t,0)}}}finally{ee(t)}}function Cy(e,t){return e[t]}function iE(e,t){return vl(e,t)}function Dy(e,t,n,r){const l=_n(),d=lr(),g=Jn+e,w=l[Rn],A=d.firstCreatePass?function dT(e,t,n,r,l,d){const g=t.consts,A=wu(t,e,2,r,Js(g,l));return Xm(t,n,A,Js(g,d)),null!==A.attrs&&Gh(A,A.attrs,!1),null!==A.mergedAttrs&&Gh(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,l,t,n,r):d.data[g],j=ID(d,l,A,w,t,e);l[g]=j;const q=Ei(A);return ja(A,!0),Uv(w,j,A),!function Tp(e){return!(32&~e.flags)}(A)&&au()&&hp(d,l,j,A),0===function Zp(){return Xi.lFrame.elementDepthCount}()&&fs(j,l),function Lu(){Xi.lFrame.elementDepthCount++}(),q&&(Wm(d,l,A),zm(d,A,l)),null!==r&&Gm(l,A),Dy}function xy(){let e=yr();Qd()?$u():(e=e.parent,ja(e,!1));const t=e;(function Jp(e){return Xi.skipHydrationRootTNode===e})(t)&&function Vu(){Xi.skipHydrationRootTNode=null}(),function Bu(){Xi.lFrame.elementDepthCount--}();const n=lr();return n.firstCreatePass&&(Ic(n,e),Ts(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function rm(e){return!!(8&e.flags)}(t)&&Zw(n,t,_n(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Df(e){return!!(16&e.flags)}(t)&&Zw(n,t,_n(),t.stylesWithoutHost,!1),xy}function rE(e,t,n,r){return Dy(e,t,n,r),xy(),rE}let ID=(e,t,n,r,l,d)=>(qa(!0),up(r,l,function bf(){return Xi.lFrame.currentNamespace}()));function Sy(e,t,n){const r=_n(),l=lr(),d=e+Jn,g=l.firstCreatePass?function pT(e,t,n,r,l){const d=t.consts,g=Js(d,r),w=wu(t,e,8,"ng-container",g);return null!==g&&Gh(w,g,!0),Xm(t,n,w,Js(d,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(d,l,r,t,n):l.data[d];ja(g,!0);const w=MD(l,r,g,e);return r[d]=w,au()&&hp(l,r,w,g),fs(w,r),Ei(g)&&(Wm(l,r,g),zm(l,g,r)),null!=n&&Gm(r,g),Sy}function Ay(){let e=yr();const t=lr();return Qd()?$u():(e=e.parent,ja(e,!1)),t.firstCreatePass&&(Ic(t,e),Ts(e)&&t.queries.elementEnd(e)),Ay}function oE(e,t,n){return Sy(e,t,n),Ay(),oE}let MD=(e,t,n,r)=>(qa(!0),Do(t[Rn],""));function OD(){return _n()}function sE(e,t,n){const r=_n();return vs(r,Ja(),t)&&Ta(lr(),co(),r,e,t,r[Rn],n,!0),sE}function aE(e,t,n){const r=_n();if(vs(r,Ja(),t)){const d=lr(),g=co();Ta(d,g,r,e,t,o_(ff(d.data),g,r),n,!0)}return aE}const qh=void 0;var _T=["en",[["a","p"],["AM","PM"],qh],[["AM","PM"],qh,qh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qh,"{1} 'at' {0}",qh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Wp={};function lE(e){const t=function yT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kD(t);if(n)return n;const r=t.split("-")[0];if(n=kD(r),n)return n;if("en"===r)return _T;throw new wt(701,!1)}function RD(e){return lE(e)[Gp.PluralCase]}function kD(e){return e in Wp||(Wp[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Wp[e]}var Gp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Gp||{});const Ty="en-US";let ND=Ty,JD=(e,t,n)=>{};function dE(e,t,n,r){const l=_n(),d=lr(),g=yr();return fE(d,l,l[Rn],g,e,t,r),dE}function hE(e,t){const n=yr(),r=_n(),l=lr();return fE(l,r,o_(ff(l.data),n,r),n,e,t),hE}function fE(e,t,n,r,l,d,g){const w=Ei(r),j=e.firstCreatePass&&r_(e),q=t[An],Ue=i_(t);let _t=!0;if(3&r.type||g){const In=Is(r,t),Zn=g?g(In):In,ai=Ue.length,Sn=g?Pr=>g(vr(Pr[r.index])):r.index;let or=null;if(!g&&w&&(or=function aI(e,t,n,r){const l=e.cleanup;if(null!=l)for(let d=0;dA?w[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,l,r.index)),null!==or)(or.__ngLastListenerFn__||or).__ngNextListenerFn__=d,or.__ngLastListenerFn__=d,_t=!1;else{d=tx(r,t,q,d),JD(In,l,d);const Pr=n.listen(Zn,l,d);Ue.push(d,Pr),j&&j.push(l,Sn,ai,ai+1)}}else d=tx(r,t,q,d);const kt=r.outputs;let qt;if(_t&&null!==kt&&(qt=kt[l])){const In=qt.length;if(In)for(let Zn=0;Zn-1?Zs(e.index,t):t,5);let w=ex(t,n,r,d),A=l.__ngNextListenerFn__;for(;A;)w=ex(t,n,A,d)&&w,A=A.__ngNextListenerFn__;return w}}function nx(e=1){return function Qu(e){return(Xi.lFrame.contextLView=function qs(e,t){for(;e>0;)t=t[ar],e--;return t}(e,Xi.lFrame.contextLView))[An]}(e)}function lI(e,t){let n=null;const r=function Ct(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let l=0;ln._dirtyCounter.update(r=>r+1))}(t,Eg(e,n,r,l))}function _x(e=1){Jd(Yu()+e)}function yx(e){return Dc(function Ha(){return Xi.lFrame.contextLView}(),Jn+e)}function Ix(e,t=""){const n=_n(),r=lr(),l=e+Jn,d=r.firstCreatePass?wu(r,l,1,t,null):r.data[l],g=Mx(r,n,d,t,e);n[l]=g,au()&&hp(r,n,g,d),ja(d,!1)}let Mx=(e,t,n,r,l)=>(qa(!0),function Sd(e,t){return e.createText(t)}(t[Rn],r));function gE(e){return ky("",e,""),gE}function ky(e,t,n){const r=_n(),l=Fp(r,e,t,n);return l!==qi&&Wl(r,Jo(),l),ky}function vE(e,t,n,r,l){const d=_n(),g=Lp(d,e,t,n,r,l);return g!==qi&&Wl(d,Jo(),g),vE}function _E(e,t,n){Fe(t)&&(t=t());const r=_n();return vs(r,Ja(),t)&&Ta(lr(),co(),r,e,t,r[Rn],n,!1),_E}function Bx(e,t){const n=Fe(e);return n&&e.set(t),n}function yE(e,t){const n=_n(),r=lr(),l=yr();return fE(r,n,n[Rn],l,e,t),yE}function bE(e,t,n,r,l){if(e=Be(e),Array.isArray(e))for(let d=0;d>20;if(as(e)||!e.multi){const kt=new el(j,l,Md),qt=EE(A,t,l?q:q+_t,Ue);-1===qt?(rc(Rc(w,g),d,A),wE(d,e,t.length),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(kt),g.push(kt)):(n[qt]=kt,g[qt]=kt)}else{const kt=EE(A,t,q+_t,Ue),qt=EE(A,t,q,q+_t),Zn=qt>=0&&n[qt];if(l&&!Zn||!l&&!(kt>=0&&n[kt])){rc(Rc(w,g),d,A);const ai=function AI(e,t,n,r,l){const d=new el(e,n,Md);return d.multi=[],d.index=t,d.componentProviders=0,jx(d,l,r&&!n),d}(l?SI:xI,n.length,l,r,j);!l&&Zn&&(n[qt].providerFactory=ai),wE(d,e,t.length,0),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(ai),g.push(ai)}else wE(d,e,kt>-1?kt:qt,jx(n[l?qt:kt],j,!l&&r));!l&&r&&Zn&&n[qt].componentProviders++}}}function wE(e,t,n,r){const l=as(t),d=function Ql(e){return!!e.useClass}(t);if(l||d){const A=(d?Be(t.useClass):t).prototype.ngOnDestroy;if(A){const j=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const q=j.indexOf(n);-1===q?j.push(n,[r,A]):j[q+1].push(r,A)}else j.push(n,A)}}}function jx(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function EE(e,t,n,r){for(let l=n;l{n.providersResolver=(r,l)=>function DI(e,t,n){const r=lr();if(r.firstCreatePass){const l=Zr(e);bE(n,r.data,r.blueprint,l,!0),bE(t,r.data,r.blueprint,l,!1)}}(r,l?l(e):e,t)}}let TI=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Al(0,n.type),l=r.length>0?kw([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=bi({token:e,providedIn:"environment",factory:()=>new e(Tr(Mr))})}}return e})();function $x(e){c("NgStandalone"),e.getStandaloneInjector=t=>t.get(TI).getOrCreateStandaloneInjector(e)}function Gx(e,t,n){const r=Wo()+e,l=_n();return l[r]===qi?qc(l,r,n?t.call(n):t()):Dg(l,r)}function Kx(e,t,n,r){return Jx(_n(),Wo(),e,t,n,r)}function Xx(e,t,n,r,l){return qx(_n(),Wo(),e,t,n,r,l)}function Yx(e,t,n,r,l,d){return function e1(e,t,n,r,l,d,g,w){const A=t+n;return function py(e,t,n,r,l){const d=Yh(e,t,n,r);return vs(e,t+2,l)||d}(e,A,l,d,g)?qc(e,A+3,w?r.call(w,l,d,g):r(l,d,g)):Fg(e,A+3)}(_n(),Wo(),e,t,n,r,l,d)}function Qx(e,t,n,r,l,d,g){return function t1(e,t,n,r,l,d,g,w,A){const j=t+n;return Gl(e,j,l,d,g,w)?qc(e,j+4,A?r.call(A,l,d,g,w):r(l,d,g,w)):Fg(e,j+4)}(_n(),Wo(),e,t,n,r,l,d,g)}function Zx(e,t,n,r,l,d,g,w,A,j,q){const Ue=Wo()+e,_t=_n(),kt=Gl(_t,Ue,n,r,l,d);return Gl(_t,Ue+4,g,w,A,j)||kt?qc(_t,Ue+8,q?t.call(q,n,r,l,d,g,w,A,j):t(n,r,l,d,g,w,A,j)):Dg(_t,Ue+8)}function Fg(e,t){const n=e[t];return n===qi?void 0:n}function Jx(e,t,n,r,l,d){const g=t+n;return vs(e,g,l)?qc(e,g+1,d?r.call(d,l):r(l)):Fg(e,g+1)}function qx(e,t,n,r,l,d,g){const w=t+n;return Yh(e,w,l,d)?qc(e,w+2,g?r.call(g,l,d):r(l,d)):Fg(e,w+2)}function r1(e,t){const n=lr();let r;const l=e+Jn;n.firstCreatePass?(r=function FI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[l]=r,r.onDestroy&&(n.destroyHooks??=[]).push(l,r.onDestroy)):r=n.data[l];const d=r.factory||(r.factory=ro(r.type)),w=io(Md);try{const A=nd(!1),j=d();return nd(A),function mE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_n(),l,j),j}finally{io(w)}}function o1(e,t,n){const r=e+Jn,l=_n(),d=Dc(l,r);return Lg(l,r)?Jx(l,Wo(),t,d.transform,n,d):d.transform(n)}function s1(e,t,n,r){const l=e+Jn,d=_n(),g=Dc(d,l);return Lg(d,l)?qx(d,Wo(),t,g.transform,n,r,g):g.transform(n,r)}function Lg(e,t){return e[Ht].data[t].pure}function a1(e,t){return yp(e,t)}class C1{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let D1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const I1=new Bn(""),M1=new Bn("");let IE,RM=(()=>{class e{constructor(n,r,l){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,IE||(function kM(e){IE=e}(l),l.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,l){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==d),n()},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:l})}whenStable(n,r,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,l),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,l){return[]}static{this.\u0275fac=function(r){return new(r||e)(Tr(yo),Tr(O1),Tr(M1))}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac})}}return e})(),O1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return IE?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function ME(e){return!!e&&"function"==typeof e.then}function R1(e){return!!e&&"function"==typeof e.subscribe}const k1=new Bn("");let N1=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=xi(k1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const l of this.appInits){const d=l();if(ME(d))n.push(d);else if(R1(d)){const g=new Promise((w,A)=>{d.subscribe({complete:w,error:A})});n.push(g)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(l=>{this.reject(l)}),0===n.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const By=new Bn("");let tu=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xi(Vf),this.afterRenderManager=xi(RC),this.zonelessEnabled=xi($h),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Pe.B,this.afterTick=new Pe.B,this.componentTypes=[],this.components=[],this.isStable=xi(Lc).hasPendingTasks.pipe((0,xe.T)(n=>!n)),this._injector=xi(Mr)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:l=>{l&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const l=n instanceof H_;if(!this._injector.get(N1).done)throw!l&&Ro(n),new wt(405,!1);let g;g=l?n:this._injector.get(zh).resolveComponentFactory(n),this.componentTypes.push(g.componentType);const w=function NM(e){return e.isBoundToModule}(g)?void 0:this._injector.get(Xh),j=g.create(hs.NULL,[],r||g.selector,w),q=j.location.nativeElement,Ue=j.injector.get(I1,null);return Ue?.registerApplication(q),j.onDestroy(()=>{this.detachView(j.hostView),Uy(this.components,j),Ue?.unregisterApplication(q)}),this._loadComponent(j),j}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new wt(101,!1);const n=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(fg,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:l,notifyErrorHandler:d}of this._views)LM(l,d,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>ou(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Uy(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(By,[]);[...this._bootstrapListeners,...r].forEach(l=>l(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Uy(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new wt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Uy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function LM(e,t,n,r){(n||ou(e))&&kd(e,t,n&&!r?0:1)}class BM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let UM=(()=>{class e{compileModuleSync(n){return new Rw(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),d=bo(_o(n).declarations).reduce((g,w)=>{const A=zi(w);return A&&g.push(new Kh(A)),g},[]);return new BM(r,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),HM=(()=>{class e{constructor(){this.zone=xi(yo),this.changeDetectionScheduler=xi(Ud),this.applicationRef=xi(tu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function OE({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new yo({...RE(),scheduleInRootZone:n}),[{provide:yo,useFactory:e},{provide:is,multi:!0,useFactory:()=>{const r=xi(HM,{optional:!0});return()=>r.initialize()}},{provide:is,multi:!0,useFactory:()=>{const r=xi(zM);return()=>{r.initialize()}}},!0===t?{provide:j_,useValue:!0}:[],{provide:hg,useValue:n??Nf}]}function RE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let zM=(()=>{class e{constructor(){this.subscription=new xt.yU,this.initialized=!1,this.zone=xi(yo),this.pendingTasks=xi(Lc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{yo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vg=(()=>{class e{constructor(){this.appRef=xi(tu),this.taskService=xi(Lc),this.ngZone=xi(yo),this.zonelessEnabled=xi($h),this.disableScheduling=xi(j_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new xt.yU,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(lc):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(xi(hg,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof fd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?ac:Lf;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(lc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ac(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const NE=new Bn("",{providedIn:"root",factory:()=>xi(NE,Gi.Optional|Gi.SkipSelf)||function WM(){return typeof $localize<"u"&&$localize.locale||Ty}()}),GM=new Bn("",{providedIn:"root",factory:()=>"USD"}),jy=new Bn("");function Hy(e){return!e.moduleRef}let $d=null;function tO(){return!1}let X1=(()=>{class e{static{this.__NG_ELEMENT_ID__=nO}}return e})();function nO(e){return function iO(e,t,n){if(Uo(e)&&!n){const r=Zs(e.index,t);return new Rh(r,r)}return 175&e.type?new Rh(t[Ri],t):null}(yr(),_n(),!(16&~e))}class J1{constructor(){}supports(t){return fy(t)}create(t){return new lO(t)}}const aO=(e,t)=>t;class lO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,l=0,d=null;for(;n||r;){const g=!r||n&&n.currentIndex{g=this._trackByFn(l,w),null!==n&&Object.is(n.trackById,g)?(r&&(n=this._verifyReinsertion(n,w,g,l)),Object.is(n.item,w)||this._addIdentityChange(n,w)):(n=this._mismatch(n,w,g,l),r=!0),n=n._next,l++}),this.length=l;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,l){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,l))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,l)):t=this._addAfter(new cO(n,r),d,l),t}_verifyReinsertion(t,n,r,l){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,d=t._nextRemoved;return null===l?this._removalsHead=d:l._nextRemoved=d,null===d?this._removalsTail=l:d._prevRemoved=l,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const l=null===n?this._itHead:n._next;return t._next=l,t._prev=n,null===l?this._itTail=t:l._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new q1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new q1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class cO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class q1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new uO,this.map.set(n,r)),r.add(t)}get(t,n){const l=this.map.get(t);return l?l.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eS(e,t,n){const r=e.previousIndex;if(null===r)return r;let l=0;return n&&r{if(n&&n.key===l)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(l,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,n);const d=l._prev,g=l._next;return d&&(d._next=g),g&&(g._prev=d),l._next=null,l._prev=null,l}const r=new hO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class hO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function nS(){return new VE([new J1])}let VE=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:nS})}constructor(n){this.factories=n}static create(n,r){if(null!=r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nS()),deps:[[e,new gr,new Xr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(null!=r)return r;throw new wt(901,!1)}}return e})();function iS(){return new jE([new tS])}let jE=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:iS})}constructor(n){this.factories=n}static create(n,r){if(r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||iS()),deps:[[e,new gr,new Xr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(r)return r;throw new wt(901,!1)}}return e})();function SO(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,l=function eO(e=[]){if($d)return $d;const t=function W1(e=[],t){return hs.create({name:t,providers:[{provide:Yr,useValue:"platform"},{provide:jy,useValue:new Set([()=>$d=null])},...e]})}(e);return $d=t,function P1(){!function di(e){$n=e}(()=>{throw new wt(600,!1)})}(),function G1(e){e.get(Ji,null)?.forEach(n=>n())}(t),t}(r),d=[OE({}),{provide:Ud,useExisting:Vg},...n||[]];return function H1(e){const t=Hy(e)?e.r3Injector:e.moduleRef.injector,n=t.get(yo);return n.run(()=>{Hy(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(wl,null);let l;if(n.runOutsideAngular(()=>{l=n.onError.subscribe({next:d=>{r.handleError(d)}})}),Hy(e)){const d=()=>t.destroy(),g=e.platformInjector.get(jy);g.add(d),t.onDestroy(()=>{l.unsubscribe(),g.delete(d)})}else{const d=()=>e.moduleRef.destroy(),g=e.platformInjector.get(jy);g.add(d),e.moduleRef.onDestroy(()=>{Uy(e.allPlatformModules,e.moduleRef),l.unsubscribe(),g.delete(d)})}return function FM(e,t,n){try{const r=n();return ME(r)?r.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const d=t.get(N1);return d.runInitializers(),d.donePromise.then(()=>{if(function CT(e){"string"==typeof e&&(ND=e.toLowerCase().replace(/_/g,"-"))}(t.get(NE,Ty)||Ty),Hy(e)){const w=t.get(tu);return void 0!==e.rootComponent&&w.bootstrap(e.rootComponent),w}return function ZM(e,t){const n=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new wt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new DC({providers:d,parent:l,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:l,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function KO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function YO(e,t){c("NgSignals");const n=et(e);return t?.equal&&(n[W].equal=t.equal),n}function QO(e){const t=ee(null);try{return e()}finally{ee(t)}}const ZO=new Bn("",{providedIn:"root",factory:()=>xi(JO)});let JO=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new qO})}}return e})();class qO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=xi(Lc),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class eR{constructor(t,n,r,l,d,g){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=d,this.watcher=function Mt(e,t,n){const r=Object.create(Oe);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const l=A=>{r.cleanupFn=A};return r.ref={notify:()=>Me(r),run:()=>{if(null===r.fn)return;if(function V(){return o}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!tt(r))return;r.hasRun=!0;const A=te(r);try{r.cleanupFn(),r.cleanupFn=we,r.fn(l)}finally{ve(r,A)}},cleanup:()=>r.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(bt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=we)}(r),[W]:r},r.ref}(w=>this.runEffect(w),()=>this.schedule(),g),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(wl,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function SS(e,t){c("NgSignals"),!t?.injector&&Qi();const n=t?.injector??xi(hs),r=!0!==t?.manualCleanup?n.get(ud):null,l=new eR(n.get(ZO),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),d=n.get(X1,null,{optional:!0});return d&&8&d._lView[cn]?(d._lView[ir]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function tR(e){const t=zi(e);if(!t)return null;const n=new Kh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(tn,Re,v)=>{"use strict";v.d(Re,{BC:()=>Rt,JD:()=>Vr,Q0:()=>ma,X1:()=>Ao,YN:()=>_r,YS:()=>so,cV:()=>En,cb:()=>wt,cz:()=>ve,hs:()=>ui,j4:()=>ns,k0:()=>Ve,kq:()=>F,l_:()=>Jr,me:()=>Te,ok:()=>Os,qT:()=>es,vO:()=>Pe,vS:()=>Bs,xq:()=>aa,ze:()=>os});var u=v(4438),y=v(177),o=v(6648),B=v(7468),W=v(1413),ee=v(6354);let re=(()=>{class z{constructor(k,ge){this._renderer=k,this._elementRef=ge,this.onChange=Ct=>{},this.onTouched=()=>{}}setProperty(k,ge){this._renderer.setProperty(this._elementRef.nativeElement,k,ge)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:z})}}return z})(),V=(()=>{class z extends re{static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,features:[u.Vt3]})}}return z})();const F=new u.nKC(""),he={provide:F,useExisting:(0,u.Rfq)(()=>Te),multi:!0},be=new u.nKC("");let Te=(()=>{class z extends re{constructor(k,ge,Ct){super(k,ge),this._compositionMode=Ct,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function de(){const z=(0,y.QT)()?(0,y.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(be,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("input",function(Yi){return Ct._handleInput(Yi.target.value)})("blur",function(){return Ct.onTouched()})("compositionstart",function(){return Ct._compositionStart()})("compositionend",function(Yi){return Ct._compositionEnd(Yi.target.value)})},features:[u.Jv_([he]),u.Vt3]})}}return z})();function Me(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}function te(z){return null!=z&&"number"==typeof z.length}const ve=new u.nKC(""),tt=new u.nKC(""),bt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ve{static min(Y){return function rt(z){return Y=>{if(Me(Y.value)||Me(z))return null;const k=parseFloat(Y.value);return!isNaN(k)&&k{if(Me(Y.value)||Me(z))return null;const k=parseFloat(Y.value);return!isNaN(k)&&k>z?{max:{max:z,actual:Y.value}}:null}}(Y)}static required(Y){return se(Y)}static requiredTrue(Y){return fe(Y)}static email(Y){return function Le(z){return Me(z.value)||bt.test(z.value)?null:{email:!0}}(Y)}static minLength(Y){return function et(z){return Y=>Me(Y.value)||!te(Y.value)?null:Y.value.lengthte(Y.value)&&Y.value.length>z?{maxlength:{requiredLength:z,actualLength:Y.value.length}}:null}(Y)}static pattern(Y){return function Et(z){if(!z)return Tt;let Y,k;return"string"==typeof z?(k="","^"!==z.charAt(0)&&(k+="^"),k+=z,"$"!==z.charAt(z.length-1)&&(k+="$"),Y=new RegExp(k)):(k=z.toString(),Y=z),ge=>{if(Me(ge.value))return null;const Ct=ge.value;return Y.test(Ct)?null:{pattern:{requiredPattern:k,actualValue:Ct}}}}(Y)}static nullValidator(Y){return null}static compose(Y){return Ee(Y)}static composeAsync(Y){return Se(Y)}}function se(z){return Me(z.value)?{required:!0}:null}function fe(z){return!0===z.value?null:{required:!0}}function Tt(z){return null}function nn(z){return null!=z}function Fn(z){return(0,u.jNT)(z)?(0,o.H)(z):z}function $n(z){let Y={};return z.forEach(k=>{Y=null!=k?{...Y,...k}:Y}),0===Object.keys(Y).length?null:Y}function yn(z,Y){return Y.map(k=>k(z))}function mt(z){return z.map(Y=>function di(z){return!z.validate}(Y)?Y:k=>Y.validate(k))}function Ee(z){if(!z)return null;const Y=z.filter(nn);return 0==Y.length?null:function(k){return $n(yn(k,Y))}}function J(z){return null!=z?Ee(mt(z)):null}function Se(z){if(!z)return null;const Y=z.filter(nn);return 0==Y.length?null:function(k){const ge=yn(k,Y).map(Fn);return(0,B.p)(ge).pipe((0,ee.T)($n))}}function gt(z){return null!=z?Se(mt(z)):null}function Ne(z,Y){return null===z?[Y]:Array.isArray(z)?[...z,Y]:[z,Y]}function Ze(z){return z._rawValidators}function je(z){return z._rawAsyncValidators}function Lt(z){return z?Array.isArray(z)?z:[z]:[]}function Mt(z,Y){return Array.isArray(z)?z.includes(Y):z===Y}function we(z,Y){const k=Lt(Y);return Lt(z).forEach(Ct=>{Mt(k,Ct)||k.push(Ct)}),k}function Oe(z,Y){return Lt(Y).filter(k=>!Mt(z,k))}class me{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Y){this._rawValidators=Y||[],this._composedValidatorFn=J(this._rawValidators)}_setAsyncValidators(Y){this._rawAsyncValidators=Y||[],this._composedAsyncValidatorFn=gt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Y){this._onDestroyCallbacks.push(Y)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Y=>Y()),this._onDestroyCallbacks=[]}reset(Y=void 0){this.control&&this.control.reset(Y)}hasError(Y,k){return!!this.control&&this.control.hasError(Y,k)}getError(Y,k){return this.control?this.control.getError(Y,k):null}}class We extends me{get formDirective(){return null}get path(){return null}}class Pe extends me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xt{constructor(Y){this._cd=Y}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Rt=(()=>{class z extends xt{constructor(k){super(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(Pe,2))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Ct){2&ge&&u.AVh("ng-untouched",Ct.isUntouched)("ng-touched",Ct.isTouched)("ng-pristine",Ct.isPristine)("ng-dirty",Ct.isDirty)("ng-valid",Ct.isValid)("ng-invalid",Ct.isInvalid)("ng-pending",Ct.isPending)},features:[u.Vt3]})}}return z})(),wt=(()=>{class z extends xt{constructor(k){super(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,10))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Ct){2&ge&&u.AVh("ng-untouched",Ct.isUntouched)("ng-touched",Ct.isTouched)("ng-pristine",Ct.isPristine)("ng-dirty",Ct.isDirty)("ng-valid",Ct.isValid)("ng-invalid",Ct.isInvalid)("ng-pending",Ct.isPending)("ng-submitted",Ct.isSubmitted)},features:[u.Vt3]})}}return z})();const On="VALID",Ln="INVALID",wi="PENDING",en="DISABLED";class Cn{}class He extends Cn{constructor(Y,k){super(),this.value=Y,this.source=k}}class Be extends Cn{constructor(Y,k){super(),this.pristine=Y,this.source=k}}class ye extends Cn{constructor(Y,k){super(),this.touched=Y,this.source=k}}class Ye extends Cn{constructor(Y,k){super(),this.status=Y,this.source=k}}class Gt extends Cn{constructor(Y){super(),this.source=Y}}class Pn extends Cn{constructor(Y){super(),this.source=Y}}function yi(z){return(st(z)?z.validators:z)||null}function sn(z,Y){return(st(Y)?Y.asyncValidators:z)||null}function st(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}function Bt(z,Y,k){const ge=z.controls;if(!(Y?Object.keys(ge):ge).length)throw new u.wOt(1e3,"");if(!ge[k])throw new u.wOt(1001,"")}function ot(z,Y,k){z._forEachChild((ge,Ct)=>{if(void 0===k[Ct])throw new u.wOt(1002,"")})}class qe{constructor(Y,k){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,u.EWP)(()=>this.statusReactive()),this.statusReactive=(0,u.vPA)(void 0),this._pristine=(0,u.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,u.vPA)(!0),this._touched=(0,u.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,u.vPA)(!1),this._events=new W.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(Y),this._assignAsyncValidators(k)}get validator(){return this._composedValidatorFn}set validator(Y){this._rawValidators=this._composedValidatorFn=Y}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Y){this._rawAsyncValidators=this._composedAsyncValidatorFn=Y}get parent(){return this._parent}get status(){return(0,u.O8t)(this.statusReactive)}set status(Y){(0,u.O8t)(()=>this.statusReactive.set(Y))}get valid(){return this.status===On}get invalid(){return this.status===Ln}get pending(){return this.status==wi}get disabled(){return this.status===en}get enabled(){return this.status!==en}get pristine(){return(0,u.O8t)(this.pristineReactive)}set pristine(Y){(0,u.O8t)(()=>this.pristineReactive.set(Y))}get dirty(){return!this.pristine}get touched(){return(0,u.O8t)(this.touchedReactive)}set touched(Y){(0,u.O8t)(()=>this.touchedReactive.set(Y))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Y){this._assignValidators(Y)}setAsyncValidators(Y){this._assignAsyncValidators(Y)}addValidators(Y){this.setValidators(we(Y,this._rawValidators))}addAsyncValidators(Y){this.setAsyncValidators(we(Y,this._rawAsyncValidators))}removeValidators(Y){this.setValidators(Oe(Y,this._rawValidators))}removeAsyncValidators(Y){this.setAsyncValidators(Oe(Y,this._rawAsyncValidators))}hasValidator(Y){return Mt(this._rawValidators,Y)}hasAsyncValidator(Y){return Mt(this._rawAsyncValidators,Y)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Y={}){const k=!1===this.touched;this.touched=!0;const ge=Y.sourceControl??this;this._parent&&!Y.onlySelf&&this._parent.markAsTouched({...Y,sourceControl:ge}),k&&!1!==Y.emitEvent&&this._events.next(new ye(!0,ge))}markAllAsTouched(Y={}){this.markAsTouched({onlySelf:!0,emitEvent:Y.emitEvent,sourceControl:this}),this._forEachChild(k=>k.markAllAsTouched(Y))}markAsUntouched(Y={}){const k=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const ge=Y.sourceControl??this;this._forEachChild(Ct=>{Ct.markAsUntouched({onlySelf:!0,emitEvent:Y.emitEvent,sourceControl:ge})}),this._parent&&!Y.onlySelf&&this._parent._updateTouched(Y,ge),k&&!1!==Y.emitEvent&&this._events.next(new ye(!1,ge))}markAsDirty(Y={}){const k=!0===this.pristine;this.pristine=!1;const ge=Y.sourceControl??this;this._parent&&!Y.onlySelf&&this._parent.markAsDirty({...Y,sourceControl:ge}),k&&!1!==Y.emitEvent&&this._events.next(new Be(!1,ge))}markAsPristine(Y={}){const k=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const ge=Y.sourceControl??this;this._forEachChild(Ct=>{Ct.markAsPristine({onlySelf:!0,emitEvent:Y.emitEvent})}),this._parent&&!Y.onlySelf&&this._parent._updatePristine(Y,ge),k&&!1!==Y.emitEvent&&this._events.next(new Be(!0,ge))}markAsPending(Y={}){this.status=wi;const k=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new Ye(this.status,k)),this.statusChanges.emit(this.status)),this._parent&&!Y.onlySelf&&this._parent.markAsPending({...Y,sourceControl:k})}disable(Y={}){const k=this._parentMarkedDirty(Y.onlySelf);this.status=en,this.errors=null,this._forEachChild(Ct=>{Ct.disable({...Y,onlySelf:!0})}),this._updateValue();const ge=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new He(this.value,ge)),this._events.next(new Ye(this.status,ge)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Y,skipPristineCheck:k},this),this._onDisabledChange.forEach(Ct=>Ct(!0))}enable(Y={}){const k=this._parentMarkedDirty(Y.onlySelf);this.status=On,this._forEachChild(ge=>{ge.enable({...Y,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Y.emitEvent}),this._updateAncestors({...Y,skipPristineCheck:k},this),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(Y,k){this._parent&&!Y.onlySelf&&(this._parent.updateValueAndValidity(Y),Y.skipPristineCheck||this._parent._updatePristine({},k),this._parent._updateTouched({},k))}setParent(Y){this._parent=Y}getRawValue(){return this.value}updateValueAndValidity(Y={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const ge=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===On||this.status===wi)&&this._runAsyncValidator(ge,Y.emitEvent)}const k=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new He(this.value,k)),this._events.next(new Ye(this.status,k)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Y.onlySelf&&this._parent.updateValueAndValidity({...Y,sourceControl:k})}_updateTreeValidity(Y={emitEvent:!0}){this._forEachChild(k=>k._updateTreeValidity(Y)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Y.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?en:On}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Y,k){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator={emitEvent:!1!==k};const ge=Fn(this.asyncValidator(this));this._asyncValidationSubscription=ge.subscribe(Ct=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Ct,{emitEvent:k,shouldHaveEmitted:Y})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const Y=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,Y}return!1}setErrors(Y,k={}){this.errors=Y,this._updateControlsErrors(!1!==k.emitEvent,this,k.shouldHaveEmitted)}get(Y){let k=Y;return null==k||(Array.isArray(k)||(k=k.split(".")),0===k.length)?null:k.reduce((ge,Ct)=>ge&&ge._find(Ct),this)}getError(Y,k){const ge=k?this.get(k):this;return ge&&ge.errors?ge.errors[Y]:null}hasError(Y,k){return!!this.getError(Y,k)}get root(){let Y=this;for(;Y._parent;)Y=Y._parent;return Y}_updateControlsErrors(Y,k,ge){this.status=this._calculateStatus(),Y&&this.statusChanges.emit(this.status),(Y||ge)&&this._events.next(new Ye(this.status,k)),this._parent&&this._parent._updateControlsErrors(Y,k,ge)}_initObservables(){this.valueChanges=new u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?en:this.errors?Ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(Ln)?Ln:On}_anyControlsHaveStatus(Y){return this._anyControls(k=>k.status===Y)}_anyControlsDirty(){return this._anyControls(Y=>Y.dirty)}_anyControlsTouched(){return this._anyControls(Y=>Y.touched)}_updatePristine(Y,k){const ge=!this._anyControlsDirty(),Ct=this.pristine!==ge;this.pristine=ge,this._parent&&!Y.onlySelf&&this._parent._updatePristine(Y,k),Ct&&this._events.next(new Be(this.pristine,k))}_updateTouched(Y={},k){this.touched=this._anyControlsTouched(),this._events.next(new ye(this.touched,k)),this._parent&&!Y.onlySelf&&this._parent._updateTouched(Y,k)}_registerOnCollectionChange(Y){this._onCollectionChange=Y}_setUpdateStrategy(Y){st(Y)&&null!=Y.updateOn&&(this._updateOn=Y.updateOn)}_parentMarkedDirty(Y){return!Y&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Y){return null}_assignValidators(Y){this._rawValidators=Array.isArray(Y)?Y.slice():Y,this._composedValidatorFn=function Ti(z){return Array.isArray(z)?J(z):z||null}(this._rawValidators)}_assignAsyncValidators(Y){this._rawAsyncValidators=Array.isArray(Y)?Y.slice():Y,this._composedAsyncValidatorFn=function At(z){return Array.isArray(z)?gt(z):z||null}(this._rawAsyncValidators)}}class Ie extends qe{constructor(Y,k,ge){super(yi(k),sn(ge,k)),this.controls=Y,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Y,k){return this.controls[Y]?this.controls[Y]:(this.controls[Y]=k,k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange),k)}addControl(Y,k,ge={}){this.registerControl(Y,k),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(Y,k={}){this.controls[Y]&&this.controls[Y]._registerOnCollectionChange(()=>{}),delete this.controls[Y],this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}setControl(Y,k,ge={}){this.controls[Y]&&this.controls[Y]._registerOnCollectionChange(()=>{}),delete this.controls[Y],k&&this.registerControl(Y,k),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(Y){return this.controls.hasOwnProperty(Y)&&this.controls[Y].enabled}setValue(Y,k={}){ot(this,0,Y),Object.keys(Y).forEach(ge=>{Bt(this,!0,ge),this.controls[ge].setValue(Y[ge],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(Y,k={}){null!=Y&&(Object.keys(Y).forEach(ge=>{const Ct=this.controls[ge];Ct&&Ct.patchValue(Y[ge],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(Y={},k={}){this._forEachChild((ge,Ct)=>{ge.reset(Y?Y[Ct]:null,{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this._reduceChildren({},(Y,k,ge)=>(Y[ge]=k.getRawValue(),Y))}_syncPendingControls(){let Y=this._reduceChildren(!1,(k,ge)=>!!ge._syncPendingControls()||k);return Y&&this.updateValueAndValidity({onlySelf:!0}),Y}_forEachChild(Y){Object.keys(this.controls).forEach(k=>{const ge=this.controls[k];ge&&Y(ge,k)})}_setUpControls(){this._forEachChild(Y=>{Y.setParent(this),Y._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Y){for(const[k,ge]of Object.entries(this.controls))if(this.contains(k)&&Y(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(k,ge,Ct)=>((ge.enabled||this.disabled)&&(k[Ct]=ge.value),k))}_reduceChildren(Y,k){let ge=Y;return this._forEachChild((Ct,gi)=>{ge=k(ge,Ct,gi)}),ge}_allControlsDisabled(){for(const Y of Object.keys(this.controls))if(this.controls[Y].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Y){return this.controls.hasOwnProperty(Y)?this.controls[Y]:null}}class li extends Ie{}const Dr=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Mi}),Mi="always";function Fr(z,Y){return[...Y.path,z]}function bi(z,Y,k=Mi){Ot(z,Y),Y.valueAccessor.writeValue(z.value),(z.disabled||"always"===k)&&Y.valueAccessor.setDisabledState?.(z.disabled),function bn(z,Y){Y.valueAccessor.registerOnChange(k=>{z._pendingValue=k,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Kn(z,Y)})}(z,Y),function zn(z,Y){const k=(ge,Ct)=>{Y.valueAccessor.writeValue(ge),Ct&&Y.viewToModelUpdate(ge)};z.registerOnChange(k),Y._registerOnDestroy(()=>{z._unregisterOnChange(k)})}(z,Y),function Tn(z,Y){Y.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Kn(z,Y),"submit"!==z.updateOn&&z.markAsTouched()})}(z,Y),function ft(z,Y){if(Y.valueAccessor.setDisabledState){const k=ge=>{Y.valueAccessor.setDisabledState(ge)};z.registerOnDisabledChange(k),Y._registerOnDestroy(()=>{z._unregisterOnDisabledChange(k)})}}(z,Y)}function Kr(z,Y,k=!0){const ge=()=>{};Y.valueAccessor&&(Y.valueAccessor.registerOnChange(ge),Y.valueAccessor.registerOnTouched(ge)),un(z,Y),z&&(Y._invokeOnDestroyCallbacks(),z._registerOnCollectionChange(()=>{}))}function Or(z,Y){z.forEach(k=>{k.registerOnValidatorChange&&k.registerOnValidatorChange(Y)})}function Ot(z,Y){const k=Ze(z);null!==Y.validator?z.setValidators(Ne(k,Y.validator)):"function"==typeof k&&z.setValidators([k]);const ge=je(z);null!==Y.asyncValidator?z.setAsyncValidators(Ne(ge,Y.asyncValidator)):"function"==typeof ge&&z.setAsyncValidators([ge]);const Ct=()=>z.updateValueAndValidity();Or(Y._rawValidators,Ct),Or(Y._rawAsyncValidators,Ct)}function un(z,Y){let k=!1;if(null!==z){if(null!==Y.validator){const Ct=Ze(z);if(Array.isArray(Ct)&&Ct.length>0){const gi=Ct.filter(Yi=>Yi!==Y.validator);gi.length!==Ct.length&&(k=!0,z.setValidators(gi))}}if(null!==Y.asyncValidator){const Ct=je(z);if(Array.isArray(Ct)&&Ct.length>0){const gi=Ct.filter(Yi=>Yi!==Y.asyncValidator);gi.length!==Ct.length&&(k=!0,z.setAsyncValidators(gi))}}}const ge=()=>{};return Or(Y._rawValidators,ge),Or(Y._rawAsyncValidators,ge),k}function Kn(z,Y){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),Y.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function ii(z,Y){Ot(z,Y)}function Ae(z,Y){if(!z.hasOwnProperty("model"))return!1;const k=z.model;return!!k.isFirstChange()||!Object.is(Y,k.currentValue)}function $e(z,Y){z._syncPendingControls(),Y.forEach(k=>{const ge=k.control;"submit"===ge.updateOn&&ge._pendingChange&&(k.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function vt(z,Y){if(!Y)return null;let k,ge,Ct;return Array.isArray(Y),Y.forEach(gi=>{gi.constructor===Te?k=gi:function oe(z){return Object.getPrototypeOf(z.constructor)===V}(gi)?ge=gi:Ct=gi}),Ct||ge||k||null}const hn={provide:We,useExisting:(0,u.Rfq)(()=>En)},gn=Promise.resolve();let En=(()=>{class z extends We{get submitted(){return(0,u.O8t)(this.submittedReactive)}constructor(k,ge,Ct){super(),this.callSetDisabledState=Ct,this._submitted=(0,u.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,u.vPA)(!1),this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new Ie({},J(k),gt(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){gn.then(()=>{const ge=this._findContainer(k.path);k.control=ge.registerControl(k.name,k.control),bi(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){gn.then(()=>{const ge=this._findContainer(k.path);ge&&ge.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){gn.then(()=>{const ge=this._findContainer(k.path),Ct=new Ie({});ii(Ct,k),ge.registerControl(k.name,Ct),Ct.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){gn.then(()=>{const ge=this._findContainer(k.path);ge&&ge.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,ge){gn.then(()=>{this.form.get(k.path).setValue(ge)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submittedReactive.set(!0),$e(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("submit",function(Yi){return Ct.onSubmit(Yi)})("reset",function(){return Ct.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([hn]),u.Vt3]})}}return z})();function xn(z,Y){const k=z.indexOf(Y);k>-1&&z.splice(k,1)}function Vn(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}const Hn=class extends qe{constructor(Y=null,k,ge){super(yi(k),sn(ge,k)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Y),this._setUpdateStrategy(k),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(k)&&(k.nonNullable||k.initialValueIsDefault)&&(this.defaultValue=Vn(Y)?Y.value:Y)}setValue(Y,k={}){this.value=this._pendingValue=Y,this._onChange.length&&!1!==k.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==k.emitViewToModelChange)),this.updateValueAndValidity(k)}patchValue(Y,k={}){this.setValue(Y,k)}reset(Y=this.defaultValue,k={}){this._applyFormState(Y),this.markAsPristine(k),this.markAsUntouched(k),this.setValue(this.value,k),this._pendingChange=!1}_updateValue(){}_anyControls(Y){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Y){this._onChange.push(Y)}_unregisterOnChange(Y){xn(this._onChange,Y)}registerOnDisabledChange(Y){this._onDisabledChange.push(Y)}_unregisterOnDisabledChange(Y){xn(this._onDisabledChange,Y)}_forEachChild(Y){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Y){Vn(Y)?(this.value=this._pendingValue=Y.value,Y.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Y}},ui=Hn,Ko={provide:Pe,useExisting:(0,u.Rfq)(()=>Bs)},Gi=Promise.resolve();let Bs=(()=>{class z extends Pe{constructor(k,ge,Ct,gi,Yi,zo){super(),this._changeDetectorRef=Yi,this.callSetDisabledState=zo,this.control=new Hn,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=k,this._setValidators(ge),this._setAsyncValidators(Ct),this.valueAccessor=vt(0,gi)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const ge=k.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),Ae(k,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(k){Gi.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const ge=k.isDisabled.currentValue,Ct=0!==ge&&(0,u.L39)(ge);Gi.then(()=>{Ct&&!this.control.disabled?this.control.disable():!Ct&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?Fr(k,this._parent):[k]}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,9),u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(u.gRc,8),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([Ko]),u.Vt3,u.OA$]})}}return z})(),es=(()=>{class z{static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return z})();const io={provide:F,useExisting:(0,u.Rfq)(()=>ma),multi:!0};let ma=(()=>{class z extends V{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=ge=>{k(""==ge?null:parseFloat(ge))}}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("input",function(Yi){return Ct.onChange(Yi.target.value)})("blur",function(){return Ct.onTouched()})},features:[u.Jv_([io]),u.Vt3]})}}return z})();const hr=new u.nKC(""),ts={provide:Pe,useExisting:(0,u.Rfq)(()=>Jr)};let Jr=(()=>{class z extends Pe{set isDisabled(k){}static{this._ngModelWarningSentOnce=!1}constructor(k,ge,Ct,gi,Yi){super(),this._ngModelWarningConfig=gi,this.callSetDisabledState=Yi,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(ge),this.valueAccessor=vt(0,Ct)}ngOnChanges(k){if(this._isControlChanged(k)){const ge=k.form.previousValue;ge&&Kr(ge,this,!1),bi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ae(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(hr,8),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([ts]),u.Vt3,u.OA$]})}}return z})();const Ii={provide:We,useExisting:(0,u.Rfq)(()=>ns)};let ns=(()=>{class z extends We{get submitted(){return(0,u.O8t)(this._submittedReactive)}set submitted(k){this._submittedReactive.set(k)}constructor(k,ge,Ct){super(),this.callSetDisabledState=Ct,this._submitted=(0,u.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,u.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(k),this._setAsyncValidators(ge)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(un(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const ge=this.form.get(k.path);return bi(ge,k,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),ge}getControl(k){return this.form.get(k.path)}removeControl(k){Kr(k.control||null,k,!1),function at(z,Y){const k=z.indexOf(Y);k>-1&&z.splice(k,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,ge){this.form.get(k.path).setValue(ge)}onSubmit(k){return this._submittedReactive.set(!0),$e(this.form,this.directives),this.ngSubmit.emit(k),this.form._events.next(new Gt(this.control)),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this._submittedReactive.set(!1),this.form._events.next(new Pn(this.form))}_updateDomValue(){this.directives.forEach(k=>{const ge=k.control,Ct=this.form.get(k.path);ge!==Ct&&(Kr(ge||null,k),(z=>z instanceof Hn)(Ct)&&(bi(Ct,k,this.callSetDisabledState),k.control=Ct))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const ge=this.form.get(k.path);ii(ge,k),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const ge=this.form.get(k.path);ge&&function ci(z,Y){return un(z,Y)}(ge,k)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ot(this.form,this),this._oldForm&&un(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formGroup",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("submit",function(Yi){return Ct.onSubmit(Yi)})("reset",function(){return Ct.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([Ii]),u.Vt3,u.OA$]})}}return z})();const js={provide:Pe,useExisting:(0,u.Rfq)(()=>Vr)};let Vr=(()=>{class z extends Pe{set isDisabled(k){}static{this._ngModelWarningSentOnce=!1}constructor(k,ge,Ct,gi,Yi){super(),this._ngModelWarningConfig=Yi,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=k,this._setValidators(ge),this._setAsyncValidators(Ct),this.valueAccessor=vt(0,gi)}ngOnChanges(k){this._added||this._setUpControl(),Ae(k,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}get path(){return Fr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,13),u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(hr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([js]),u.Vt3,u.OA$]})}}return z})(),jr=(()=>{class z{constructor(){this._validator=Tt}ngOnChanges(k){if(this.inputName in k){const ge=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):Tt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275dir=u.FsC({type:z,features:[u.OA$]})}}return z})();const Es={provide:ve,useExisting:(0,u.Rfq)(()=>so),multi:!0},sa={provide:ve,useExisting:(0,u.Rfq)(()=>aa),multi:!0};let so=(()=>{class z extends jr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=k=>se}enabled(k){return k}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Ct){2&ge&&u.BMQ("required",Ct._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([Es]),u.Vt3]})}}return z})(),aa=(()=>{class z extends so{constructor(){super(...arguments),this.createValidator=k=>fe}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ge,Ct){2&ge&&u.BMQ("required",Ct._enabled?"":null)},features:[u.Jv_([sa]),u.Vt3]})}}return z})(),fo=(()=>{class z{static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({})}}return z})();class Cs extends qe{constructor(Y,k,ge){super(yi(k),sn(ge,k)),this.controls=Y,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Y){return this.controls[this._adjustIndex(Y)]}push(Y,k={}){this.controls.push(Y),this._registerControl(Y),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}insert(Y,k,ge={}){this.controls.splice(Y,0,k),this._registerControl(k),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(Y,k={}){let ge=this._adjustIndex(Y);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:k.emitEvent})}setControl(Y,k,ge={}){let Ct=this._adjustIndex(Y);Ct<0&&(Ct=0),this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),this.controls.splice(Ct,1),k&&(this.controls.splice(Ct,0,k),this._registerControl(k)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Y,k={}){ot(this,0,Y),Y.forEach((ge,Ct)=>{Bt(this,!1,Ct),this.at(Ct).setValue(ge,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(Y,k={}){null!=Y&&(Y.forEach((ge,Ct)=>{this.at(Ct)&&this.at(Ct).patchValue(ge,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(Y=[],k={}){this._forEachChild((ge,Ct)=>{ge.reset(Y[Ct],{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this.controls.map(Y=>Y.getRawValue())}clear(Y={}){this.controls.length<1||(this._forEachChild(k=>k._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Y.emitEvent}))}_adjustIndex(Y){return Y<0?Y+this.length:Y}_syncPendingControls(){let Y=this.controls.reduce((k,ge)=>!!ge._syncPendingControls()||k,!1);return Y&&this.updateValueAndValidity({onlySelf:!0}),Y}_forEachChild(Y){this.controls.forEach((k,ge)=>{Y(k,ge)})}_updateValue(){this.value=this.controls.filter(Y=>Y.enabled||this.disabled).map(Y=>Y.value)}_anyControls(Y){return this.controls.some(k=>k.enabled&&Y(k))}_setUpControls(){this._forEachChild(Y=>this._registerControl(Y))}_allControlsDisabled(){for(const Y of this.controls)if(Y.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Y){Y.setParent(this),Y._registerOnCollectionChange(this._onCollectionChange)}_find(Y){return this.at(Y)??null}}function Ra(z){return!!z&&(void 0!==z.asyncValidators||void 0!==z.validators||void 0!==z.updateOn)}let Os=(()=>{class z{constructor(){this.useNonNullable=!1}get nonNullable(){const k=new z;return k.useNonNullable=!0,k}group(k,ge=null){const Ct=this._reduceControls(k);let gi={};return Ra(ge)?gi=ge:null!==ge&&(gi.validators=ge.validator,gi.asyncValidators=ge.asyncValidator),new Ie(Ct,gi)}record(k,ge=null){const Ct=this._reduceControls(k);return new li(Ct,ge)}control(k,ge,Ct){let gi={};return this.useNonNullable?(Ra(ge)?gi=ge:(gi.validators=ge,gi.asyncValidators=Ct),new Hn(k,{...gi,nonNullable:!0})):new Hn(k,ge,Ct)}array(k,ge,Ct){const gi=k.map(Yi=>this._createControl(Yi));return new Cs(gi,ge,Ct)}_reduceControls(k){const ge={};return Object.keys(k).forEach(Ct=>{ge[Ct]=this._createControl(k[Ct])}),ge}_createControl(k){return k instanceof Hn||k instanceof qe?k:Array.isArray(k)?this.control(k[0],k.length>1?k[1]:null,k.length>2?k[2]:null):this.control(k)}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})(),os=(()=>{class z extends Os{group(k,ge=null){return super.group(k,ge)}control(k,ge,Ct){return super.control(k,ge,Ct)}array(k,ge,Ct){return super.array(k,ge,Ct)}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})(),_r=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:Dr,useValue:k.callSetDisabledState??Mi}]}}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({imports:[fo]})}}return z})(),Ao=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:hr,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:Dr,useValue:k.callSetDisabledState??Mi}]}}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({imports:[fo]})}}return z})()},8834:(tn,Re,v)=>{"use strict";v.d(Re,{$0:()=>It,$z:()=>rt,Hl:()=>$n,It:()=>Xe,iY:()=>nn,pQ:()=>Fn});var u=v(6860),y=v(4438),o=v(9888),B=v(6600);const W=["mat-button",""],ee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],re=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],F=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",L=["mat-mini-fab",""],de=["mat-icon-button",""],be=["*"],Me=new y.nKC("MAT_BUTTON_CONFIG"),ve=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let tt=(()=>{class yn{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(mt){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,mt)}get disableRipple(){return this._disableRipple}set disableRipple(mt){this._disableRipple=mt,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(mt){this._disabled=mt,this._updateRippleDisabled()}constructor(mt,Ee,J,Se){this._elementRef=mt,this._platform=Ee,this._ngZone=J,this._animationMode=Se,this._focusMonitor=(0,y.WQX)(o.FN),this._rippleLoader=(0,y.WQX)(B.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const gt=(0,y.WQX)(Me,{optional:!0}),Ne=mt.nativeElement,Ze=Ne.classList;this.disabledInteractive=gt?.disabledInteractive??!1,this.color=gt?.color??null,this._rippleLoader?.configureRipple(Ne,{className:"mat-mdc-button-ripple"});for(const{attribute:je,mdcClasses:Lt}of ve)Ne.hasAttribute(je)&&Ze.add(...Lt)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(mt="program",Ee){mt?this._focusMonitor.focusVia(this._elementRef.nativeElement,mt,Ee):this._elementRef.nativeElement.focus(Ee)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(Ee){y.QTQ()}}static{this.\u0275dir=y.FsC({type:yn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",y.L39],disabled:[2,"disabled","disabled",y.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",y.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},features:[y.GFd]})}}return yn})(),Ve=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se),this._haltDisabledEvents=gt=>{this.disabled&&(gt.preventDefault(),gt.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static{this.\u0275fac=function(Ee){y.QTQ()}}static{this.\u0275dir=y.FsC({type:yn,inputs:{tabIndex:[2,"tabIndex","tabIndex",mt=>null==mt?void 0:(0,y.Udg)(mt)]},features:[y.GFd,y.Vt3]})}}return yn})(),rt=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:W,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return yn})(),Xe=(()=>{class yn extends Ve{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:W,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',F],encapsulation:2,changeDetection:0})}}return yn})();const se=new y.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:fe});function fe(){return{color:"accent"}}const Le=fe();let It=(()=>{class yn extends tt{constructor(mt,Ee,J,Se,gt){super(mt,Ee,J,Se),this._options=gt,this._isFab=!0,this._options=this._options||Le,this.color=this._options.color||Le.color}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8),y.rXU(se,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:L,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-app-corner-large));color:var(--mat-fab-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-app-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-app-level3));height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-app-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}}return yn})(),nn=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:de,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',F],encapsulation:2,changeDetection:0})}}return yn})(),Fn=(()=>{class yn extends Ve{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:de,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',F],encapsulation:2,changeDetection:0})}}return yn})(),$n=(()=>{class yn{static{this.\u0275fac=function(Ee){return new(Ee||yn)}}static{this.\u0275mod=y.$C({type:yn})}static{this.\u0275inj=y.G2t({imports:[B.yE,B.pZ,B.yE]})}}return yn})()},6600:(tn,Re,v)=>{"use strict";v.d(Re,{MJ:()=>J,es:()=>me,N:()=>se,de:()=>Se,Ju:()=>mt,QC:()=>zt,is:()=>ue,yE:()=>fe,wT:()=>Ln,Sy:()=>Cn,MI:()=>On,r6:()=>T,Ej:()=>yi,pZ:()=>N,X0:()=>$n,tO:()=>Ti,jb:()=>wi,TL:()=>en});var u=v(4438),y=v(9888),o=v(8203),W=v(177),ee=v(6860),re=v(4085),V=v(1413),F=v(7336);const he=["text"],de=[[["mat-icon"]],"*"],be=["mat-icon","*"];function Te(sn,At){if(1&sn&&u.nrm(0,"mat-pseudo-checkbox",1),2&sn){const st=u.XpG();u.Y8G("disabled",st.disabled)("state",st.selected?"checked":"unchecked")}}function Me(sn,At){if(1&sn&&u.nrm(0,"mat-pseudo-checkbox",3),2&sn){const st=u.XpG();u.Y8G("disabled",st.disabled)}}function te(sn,At){if(1&sn&&(u.j41(0,"span",4),u.EFF(1),u.k0s()),2&sn){const st=u.XpG();u.R7$(),u.SpI("(",st.group.label,")")}}const ve=["mat-internal-form-field",""],tt=["*"],se=new u.nKC("mat-sanity-checks",{providedIn:"root",factory:function Xe(){return!0}});let fe=(()=>{class sn{constructor(st,Bt,ot){this._sanityChecks=Bt,this._document=ot,this._hasDoneGlobalChecks=!1,st._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(st){return!(0,ee.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[st])}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.KVO(y.Q_),u.KVO(se,8),u.KVO(W.qQ))}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[o.jI,o.jI]})}}return sn})();class $n{constructor(At,st,Bt,ot,qe){this._defaultMatcher=At,this.ngControl=st,this._parentFormGroup=Bt,this._parentForm=ot,this._stateChanges=qe,this.errorState=!1}updateErrorState(){const At=this.errorState,st=this._parentFormGroup||this._parentForm,Bt=this.matcher||this._defaultMatcher,ot=this.ngControl?this.ngControl.control:null,qe=Bt?.isErrorState(ot,st)??!1;qe!==At&&(this.errorState=qe,this._stateChanges.next())}}const mt=new u.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ee(){return(0,u.WQX)(u.xe9)}});class J{constructor(){this._localeChanges=new V.B,this.localeChanges=this._localeChanges}getValidDateOrNull(At){return this.isDateInstance(At)&&this.isValid(At)?At:null}deserialize(At){return null==At||this.isDateInstance(At)&&this.isValid(At)?At:this.invalid()}setLocale(At){this.locale=At,this._localeChanges.next()}compareDate(At,st){return this.getYear(At)-this.getYear(st)||this.getMonth(At)-this.getMonth(st)||this.getDate(At)-this.getDate(st)}sameDate(At,st){if(At&&st){let Bt=this.isValid(At),ot=this.isValid(st);return Bt&&ot?!this.compareDate(At,st):Bt==ot}return At==st}clampDate(At,st,Bt){return st&&this.compareDate(At,st)<0?st:Bt&&this.compareDate(At,Bt)>0?Bt:At}}const Se=new u.nKC("mat-date-formats");let me=(()=>{class sn{isErrorState(st,Bt){return!!(st&&st.invalid&&(st.touched||Bt&&Bt.submitted))}static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275prov=u.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}}return sn})();var ut=function(sn){return sn[sn.FADING_IN=0]="FADING_IN",sn[sn.VISIBLE=1]="VISIBLE",sn[sn.FADING_OUT=2]="FADING_OUT",sn[sn.HIDDEN=3]="HIDDEN",sn}(ut||{});class Rt{constructor(At,st,Bt,ot=!1){this._renderer=At,this.element=st,this.config=Bt,this._animationForciblyDisabledThroughCss=ot,this.state=ut.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const wt=(0,ee.BQ)({passive:!0,capture:!0});class mn{constructor(){this._events=new Map,this._delegateEventHandler=At=>{const st=(0,ee.Fb)(At);st&&this._events.get(At.type)?.forEach((Bt,ot)=>{(ot===st||ot.contains(st))&&Bt.forEach(qe=>qe.handleEvent(At))})}}addHandler(At,st,Bt,ot){const qe=this._events.get(st);if(qe){const Ie=qe.get(Bt);Ie?Ie.add(ot):qe.set(Bt,new Set([ot]))}else this._events.set(st,new Map([[Bt,new Set([ot])]])),At.runOutsideAngular(()=>{document.addEventListener(st,this._delegateEventHandler,wt)})}removeHandler(At,st,Bt){const ot=this._events.get(At);if(!ot)return;const qe=ot.get(st);qe&&(qe.delete(Bt),0===qe.size&&ot.delete(st),0===ot.size&&(this._events.delete(At),document.removeEventListener(At,this._delegateEventHandler,wt)))}}const ni={enterDuration:225,exitDuration:150},_e=(0,ee.BQ)({passive:!0,capture:!0}),Je=["mousedown","touchstart"],Ge=["mouseup","mouseleave","touchend","touchcancel"];class dt{static{this._eventManager=new mn}constructor(At,st,Bt,ot){this._target=At,this._ngZone=st,this._platform=ot,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ot.isBrowser&&(this._containerElement=(0,re.i8)(Bt))}fadeInRipple(At,st,Bt={}){const ot=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),qe={...ni,...Bt.animation};Bt.centered&&(At=ot.left+ot.width/2,st=ot.top+ot.height/2);const Ie=Bt.radius||function rn(sn,At,st){const Bt=Math.max(Math.abs(sn-st.left),Math.abs(sn-st.right)),ot=Math.max(Math.abs(At-st.top),Math.abs(At-st.bottom));return Math.sqrt(Bt*Bt+ot*ot)}(At,st,ot),lt=At-ot.left,Xt=st-ot.top,an=qe.enterDuration,li=document.createElement("div");li.classList.add("mat-ripple-element"),li.style.left=lt-Ie+"px",li.style.top=Xt-Ie+"px",li.style.height=2*Ie+"px",li.style.width=2*Ie+"px",null!=Bt.color&&(li.style.backgroundColor=Bt.color),li.style.transitionDuration=`${an}ms`,this._containerElement.appendChild(li);const wr=window.getComputedStyle(li),Mi=wr.transitionDuration,Fr="none"===wr.transitionProperty||"0s"===Mi||"0s, 0s"===Mi||0===ot.width&&0===ot.height,bi=new Rt(this,li,Bt,Fr);li.style.transform="scale3d(1, 1, 1)",bi.state=ut.FADING_IN,Bt.persistent||(this._mostRecentTransientRipple=bi);let Kr=null;return!Fr&&(an||qe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Or=()=>{Kr&&(Kr.fallbackTimer=null),clearTimeout(Ot),this._finishRippleTransition(bi)},ft=()=>this._destroyRipple(bi),Ot=setTimeout(ft,an+100);li.addEventListener("transitionend",Or),li.addEventListener("transitioncancel",ft),Kr={onTransitionEnd:Or,onTransitionCancel:ft,fallbackTimer:Ot}}),this._activeRipples.set(bi,Kr),(Fr||!an)&&this._finishRippleTransition(bi),bi}fadeOutRipple(At){if(At.state===ut.FADING_OUT||At.state===ut.HIDDEN)return;const st=At.element,Bt={...ni,...At.config.animation};st.style.transitionDuration=`${Bt.exitDuration}ms`,st.style.opacity="0",At.state=ut.FADING_OUT,(At._animationForciblyDisabledThroughCss||!Bt.exitDuration)&&this._finishRippleTransition(At)}fadeOutAll(){this._getActiveRipples().forEach(At=>At.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(At=>{At.config.persistent||At.fadeOut()})}setupTriggerEvents(At){const st=(0,re.i8)(At);!this._platform.isBrowser||!st||st===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=st,Je.forEach(Bt=>{dt._eventManager.addHandler(this._ngZone,Bt,st,this)}))}handleEvent(At){"mousedown"===At.type?this._onMousedown(At):"touchstart"===At.type?this._onTouchStart(At):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ge.forEach(st=>{this._triggerElement.addEventListener(st,this,_e)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(At){At.state===ut.FADING_IN?this._startFadeOutTransition(At):At.state===ut.FADING_OUT&&this._destroyRipple(At)}_startFadeOutTransition(At){const st=At===this._mostRecentTransientRipple,{persistent:Bt}=At.config;At.state=ut.VISIBLE,!Bt&&(!st||!this._isPointerDown)&&At.fadeOut()}_destroyRipple(At){const st=this._activeRipples.get(At)??null;this._activeRipples.delete(At),this._activeRipples.size||(this._containerRect=null),At===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),At.state=ut.HIDDEN,null!==st&&(At.element.removeEventListener("transitionend",st.onTransitionEnd),At.element.removeEventListener("transitioncancel",st.onTransitionCancel),null!==st.fallbackTimer&&clearTimeout(st.fallbackTimer)),At.element.remove()}_onMousedown(At){const st=(0,y._G)(At),Bt=this._lastTouchStartEvent&&Date.now(){!At.config.persistent&&(At.state===ut.VISIBLE||At.config.terminateOnPointerUp&&At.state===ut.FADING_IN)&&At.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const At=this._triggerElement;At&&(Je.forEach(st=>dt._eventManager.removeHandler(st,At,this)),this._pointerUpEventsRegistered&&(Ge.forEach(st=>At.removeEventListener(st,this,_e)),this._pointerUpEventsRegistered=!1))}}const Q=new u.nKC("mat-ripple-global-options");let T=(()=>{class sn{get disabled(){return this._disabled}set disabled(st){st&&this.fadeOutAllNonPersistent(),this._disabled=st,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(st){this._trigger=st,this._setupTriggerEventsIfEnabled()}constructor(st,Bt,ot,qe,Ie){this._elementRef=st,this._animationMode=Ie,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=qe||{},this._rippleRenderer=new dt(this,Bt,st,ot)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(st,Bt=0,ot){return"number"==typeof st?this._rippleRenderer.fadeInRipple(st,Bt,{...this.rippleConfig,...ot}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...st})}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(ee.OD),u.rXU(Q,8),u.rXU(u.bc$,8))}}static{this.\u0275dir=u.FsC({type:sn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mat-ripple-unbounded",ot.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return sn})(),N=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[fe,fe]})}}return sn})(),$=(()=>{class sn{constructor(st){this._animationMode=st,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.bc$,8))}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===ot.state)("mat-pseudo-checkbox-checked","checked"===ot.state)("mat-pseudo-checkbox-disabled",ot.disabled)("mat-pseudo-checkbox-minimal","minimal"===ot.appearance)("mat-pseudo-checkbox-full","full"===ot.appearance)("_mat-animation-noopable","NoopAnimations"===ot._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(Bt,ot){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return sn})(),le=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[fe]})}}return sn})();const ue=new u.nKC("MAT_OPTION_PARENT_COMPONENT"),zt=new u.nKC("MatOptgroup");let jt=0;class On{constructor(At,st=!1){this.source=At,this.isUserInput=st}}let Ln=(()=>{class sn{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(st){this._disabled=st}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(st,Bt,ot,qe){this._element=st,this._changeDetectorRef=Bt,this._parent=ot,this.group=qe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jt++,this.onSelectionChange=new u.bkB,this._stateChanges=new V.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(st=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),st&&this._emitSelectionChangeEvent())}deselect(st=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),st&&this._emitSelectionChangeEvent())}focus(st,Bt){const ot=this._getHostElement();"function"==typeof ot.focus&&ot.focus(Bt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(st){(st.keyCode===F.Fm||st.keyCode===F.t6)&&!(0,F.rp)(st)&&(this._selectViaInteraction(),st.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const st=this.viewValue;st!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=st)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(st=!1){this.onSelectionChange.emit(new On(this,st))}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(ue,8),u.rXU(zt,8))}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["mat-option"]],viewQuery:function(Bt,ot){if(1&Bt&&u.GBs(he,7),2&Bt){let qe;u.mGM(qe=u.lsd())&&(ot._text=qe.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Bt,ot){1&Bt&&u.bIt("click",function(){return ot._selectViaInteraction()})("keydown",function(Ie){return ot._handleKeydown(Ie)}),2&Bt&&(u.Mr5("id",ot.id),u.BMQ("aria-selected",ot.selected)("aria-disabled",ot.disabled.toString()),u.AVh("mdc-list-item--selected",ot.selected)("mat-mdc-option-multiple",ot.multiple)("mat-mdc-option-active",ot.active)("mdc-list-item--disabled",ot.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",u.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:be,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Bt,ot){1&Bt&&(u.NAR(de),u.DNE(0,Te,1,2,"mat-pseudo-checkbox",1),u.SdG(1),u.j41(2,"span",2,0),u.SdG(4,1),u.k0s(),u.DNE(5,Me,1,1,"mat-pseudo-checkbox",3)(6,te,2,1,"span",4),u.nrm(7,"div",5)),2&Bt&&(u.vxM(ot.multiple?0:-1),u.R7$(5),u.vxM(ot.multiple||!ot.selected||ot.hideSingleSelectionIndicator?-1:5),u.R7$(),u.vxM(ot.group&&ot.group._inert?6:-1),u.R7$(),u.Y8G("matRippleTrigger",ot._getHostElement())("matRippleDisabled",ot.disabled||ot.disableRipple))},dependencies:[$,T],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return sn})();function wi(sn,At,st){if(st.length){let Bt=At.toArray(),ot=st.toArray(),qe=0;for(let Ie=0;Iest+Bt?Math.max(0,sn-Bt+At):st}let Cn=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[N,fe,le]})}}return sn})();const He={capture:!0},Be=["focus","mousedown","mouseenter","touchstart"],ye="mat-ripple-loader-uninitialized",Ye="mat-ripple-loader-class-name",Gt="mat-ripple-loader-centered",Pn="mat-ripple-loader-disabled";let yi=(()=>{class sn{constructor(){this._document=(0,u.WQX)(W.qQ,{optional:!0}),this._animationMode=(0,u.WQX)(u.bc$,{optional:!0}),this._globalRippleOptions=(0,u.WQX)(Q,{optional:!0}),this._platform=(0,u.WQX)(ee.OD),this._ngZone=(0,u.WQX)(u.SKi),this._hosts=new Map,this._onInteraction=st=>{const Bt=(0,ee.Fb)(st);if(Bt instanceof HTMLElement){const ot=Bt.closest(`[${ye}="${this._globalRippleOptions?.namespace??""}"]`);ot&&this._createRipple(ot)}},this._ngZone.runOutsideAngular(()=>{for(const st of Be)this._document?.addEventListener(st,this._onInteraction,He)})}ngOnDestroy(){const st=this._hosts.keys();for(const Bt of st)this.destroyRipple(Bt);for(const Bt of Be)this._document?.removeEventListener(Bt,this._onInteraction,He)}configureRipple(st,Bt){st.setAttribute(ye,this._globalRippleOptions?.namespace??""),(Bt.className||!st.hasAttribute(Ye))&&st.setAttribute(Ye,Bt.className||""),Bt.centered&&st.setAttribute(Gt,""),Bt.disabled&&st.setAttribute(Pn,"")}getRipple(st){return this._hosts.get(st)||this._createRipple(st)}setDisabled(st,Bt){const ot=this._hosts.get(st);ot?ot.disabled=Bt:Bt?st.setAttribute(Pn,""):st.removeAttribute(Pn)}_createRipple(st){if(!this._document)return;const Bt=this._hosts.get(st);if(Bt)return Bt;st.querySelector(".mat-ripple")?.remove();const ot=this._document.createElement("span");ot.classList.add("mat-ripple",st.getAttribute(Ye)),st.append(ot);const qe=new T(new u.aKT(ot),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return qe._isInitialized=!0,qe.trigger=st,qe.centered=st.hasAttribute(Gt),qe.disabled=st.hasAttribute(Pn),this.attachRipple(st,qe),qe}attachRipple(st,Bt){st.removeAttribute(ye),this._hosts.set(st,Bt)}destroyRipple(st){const Bt=this._hosts.get(st);Bt&&(Bt.ngOnDestroy(),this._hosts.delete(st))}static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275prov=u.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}}return sn})(),Ti=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mdc-form-field--align-end","before"===ot.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[u.aNF],attrs:ve,ngContentSelectors:tt,decls:1,vars:0,template:function(Bt,ot){1&Bt&&(u.NAR(),u.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return sn})()},5351:(tn,Re,v)=>{"use strict";v.d(Re,{Vh:()=>Oe,bZ:()=>ut,E7:()=>_e,tx:()=>wt,Yi:()=>Zt,hM:()=>dt,CP:()=>Mt});var u=v(7987),y=v(177),o=v(4438),B=v(9888),W=v(6860),ee=v(6939),re=v(7336),V=v(1413),F=v(9030),U=v(7673),L=v(8203),he=v(9172);function de(T,N){}class be{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Me=(()=>{class T extends ee.lb{constructor($,le,ue,nt,zt,Ut,jt,On){super(),this._elementRef=$,this._focusTrapFactory=le,this._config=nt,this._interactivityChecker=zt,this._ngZone=Ut,this._overlayRef=jt,this._focusMonitor=On,this._platform=(0,o.WQX)(W.OD),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=(0,o.WQX)(o.gRc),this._injector=(0,o.WQX)(o.zZn),this._isDestroyed=!1,this.attachDomPortal=Ln=>{this._portalOutlet.hasAttached();const wi=this._portalOutlet.attachDomPortal(Ln);return this._contentAttached(),wi},this._document=ue,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy($){this._ariaLabelledByQueue.push($),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy($){const le=this._ariaLabelledByQueue.indexOf($);le>-1&&(this._ariaLabelledByQueue.splice(le,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal($){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachComponentPortal($);return this._contentAttached(),le}attachTemplatePortal($){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachTemplatePortal($);return this._contentAttached(),le}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus($,le){this._interactivityChecker.isFocusable($)||($.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ue=()=>{$.removeEventListener("blur",ue),$.removeEventListener("mousedown",ue),$.removeAttribute("tabindex")};$.addEventListener("blur",ue),$.addEventListener("mousedown",ue)})),$.focus(le)}_focusByCssSelector($,le){let ue=this._elementRef.nativeElement.querySelector($);ue&&this._forceFocus(ue,le)}_trapFocus(){this._isDestroyed||(0,o.mal)(()=>{const $=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||$.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)}},{injector:this._injector})}_restoreFocus(){const $=this._config.restoreFocus;let le=null;if("string"==typeof $?le=this._document.querySelector($):"boolean"==typeof $?le=$?this._elementFocusedBeforeDialogWasOpened:null:$&&(le=$),this._config.restoreFocus&&le&&"function"==typeof le.focus){const ue=(0,W.vc)(),nt=this._elementRef.nativeElement;(!ue||ue===this._document.body||ue===nt||nt.contains(ue))&&(this._focusMonitor?(this._focusMonitor.focusVia(le,this._closeInteractionType),this._closeInteractionType=null):le.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const $=this._elementRef.nativeElement,le=(0,W.vc)();return $===le||$.contains(le)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,W.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(o.aKT),o.rXU(B.GX),o.rXU(y.qQ,8),o.rXU(be),o.rXU(B.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(B.FN))}}static{this.\u0275cmp=o.VBU({type:T,selectors:[["cdk-dialog-container"]],viewQuery:function(le,ue){if(1&le&&o.GBs(ee.I3,7),2&le){let nt;o.mGM(nt=o.lsd())&&(ue._portalOutlet=nt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(le,ue){2&le&&o.BMQ("id",ue._config.id||null)("role",ue._config.role)("aria-modal",ue._config.ariaModal)("aria-labelledby",ue._config.ariaLabel?null:ue._ariaLabelledByQueue[0])("aria-label",ue._config.ariaLabel)("aria-describedby",ue._config.ariaDescribedBy||null)},standalone:!0,features:[o.Vt3,o.aNF],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(le,ue){1&le&&o.DNE(0,de,0,0,"ng-template",0)},dependencies:[ee.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return T})();class te{constructor(N,$){this.overlayRef=N,this.config=$,this.closed=new V.B,this.disableClose=$.disableClose,this.backdropClick=N.backdropClick(),this.keydownEvents=N.keydownEvents(),this.outsidePointerEvents=N.outsidePointerEvents(),this.id=$.id,this.keydownEvents.subscribe(le=>{le.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(le)&&(le.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=N.detachments().subscribe(()=>{!1!==$.closeOnOverlayDetachments&&this.close()})}close(N,$){if(this.containerInstance){const le=this.closed;this.containerInstance._closeInteractionType=$?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),le.next(N),le.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(N="",$=""){return this.overlayRef.updateSize({width:N,height:$}),this}addPanelClass(N){return this.overlayRef.addPanelClass(N),this}removePanelClass(N){return this.overlayRef.removePanelClass(N),this}}const ve=new o.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}}),tt=new o.nKC("DialogData"),bt=new o.nKC("DefaultDialogConfig");let Xe=0,se=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor($,le,ue,nt,zt,Ut){this._overlay=$,this._injector=le,this._defaultOptions=ue,this._parentDialog=nt,this._overlayContainer=zt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,F.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,he.Z)(void 0))),this._scrollStrategy=Ut}open($,le){(le={...this._defaultOptions||new be,...le}).id=le.id||"cdk-dialog-"+Xe++,le.id&&this.getDialogById(le.id);const nt=this._getOverlayConfig(le),zt=this._overlay.create(nt),Ut=new te(zt,le),jt=this._attachContainer(zt,Ut,le);return Ut.containerInstance=jt,this._attachDialogContent($,Ut,jt,le),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ut),Ut.closed.subscribe(()=>this._removeOpenDialog(Ut,!0)),this.afterOpened.next(Ut),Ut}closeAll(){fe(this.openDialogs,$=>$.close())}getDialogById($){return this.openDialogs.find(le=>le.id===$)}ngOnDestroy(){fe(this._openDialogsAtThisLevel,$=>{!1===$.config.closeOnDestroy&&this._removeOpenDialog($,!1)}),fe(this._openDialogsAtThisLevel,$=>$.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig($){const le=new u.rR({positionStrategy:$.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:$.scrollStrategy||this._scrollStrategy(),panelClass:$.panelClass,hasBackdrop:$.hasBackdrop,direction:$.direction,minWidth:$.minWidth,minHeight:$.minHeight,maxWidth:$.maxWidth,maxHeight:$.maxHeight,width:$.width,height:$.height,disposeOnNavigation:$.closeOnNavigation});return $.backdropClass&&(le.backdropClass=$.backdropClass),le}_attachContainer($,le,ue){const nt=ue.injector||ue.viewContainerRef?.injector,zt=[{provide:be,useValue:ue},{provide:te,useValue:le},{provide:u.yY,useValue:$}];let Ut;ue.container?"function"==typeof ue.container?Ut=ue.container:(Ut=ue.container.type,zt.push(...ue.container.providers(ue))):Ut=Me;const jt=new ee.A8(Ut,ue.viewContainerRef,o.zZn.create({parent:nt||this._injector,providers:zt}),ue.componentFactoryResolver);return $.attach(jt).instance}_attachDialogContent($,le,ue,nt){if($ instanceof o.C4Q){const zt=this._createInjector(nt,le,ue,void 0);let Ut={$implicit:nt.data,dialogRef:le};nt.templateContext&&(Ut={...Ut,..."function"==typeof nt.templateContext?nt.templateContext():nt.templateContext}),ue.attachTemplatePortal(new ee.VA($,null,Ut,zt))}else{const zt=this._createInjector(nt,le,ue,this._injector),Ut=ue.attachComponentPortal(new ee.A8($,nt.viewContainerRef,zt,nt.componentFactoryResolver));le.componentRef=Ut,le.componentInstance=Ut.instance}}_createInjector($,le,ue,nt){const zt=$.injector||$.viewContainerRef?.injector,Ut=[{provide:tt,useValue:$.data},{provide:te,useValue:le}];return $.providers&&("function"==typeof $.providers?Ut.push(...$.providers(le,$,ue)):Ut.push(...$.providers)),$.direction&&(!zt||!zt.get(L.dS,null,{optional:!0}))&&Ut.push({provide:L.dS,useValue:{value:$.direction,change:(0,U.of)()}}),o.zZn.create({parent:zt||nt,providers:Ut})}_removeOpenDialog($,le){const ue=this.openDialogs.indexOf($);ue>-1&&(this.openDialogs.splice(ue,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((nt,zt)=>{nt?zt.setAttribute("aria-hidden",nt):zt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),le&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const $=this._overlayContainer.getContainerElement();if($.parentElement){const le=$.parentElement.children;for(let ue=le.length-1;ue>-1;ue--){const nt=le[ue];nt!==$&&"SCRIPT"!==nt.nodeName&&"STYLE"!==nt.nodeName&&!nt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(nt,nt.getAttribute("aria-hidden")),nt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(le){return new(le||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(bt,8),o.KVO(T,12),o.KVO(u.Sf),o.KVO(ve))}}static{this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();function fe(T,N){let $=T.length;for(;$--;)N(T[$])}let Le=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275mod=o.$C({type:T})}static{this.\u0275inj=o.G2t({providers:[se],imports:[u.z_,ee.jc,B.Pd,ee.jc]})}}return T})();var et=v(4085),It=v(7786),Et=v(5964),Tt=v(6697),nn=v(5542),Fn=v(6600);function yn(T,N){}v(9969);class di{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}}const mt="mdc-dialog--open",Ee="mdc-dialog--opening",J="mdc-dialog--closing";let Ne=(()=>{class T extends Me{constructor($,le,ue,nt,zt,Ut,jt,On,Ln){super($,le,ue,nt,zt,Ut,jt,Ln),this._animationMode=On,this._animationStateChanged=new o.bkB,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?je(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?je(this._config.exitAnimationDuration)??75: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(Ze,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ee,mt)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mt),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mt),this._animationsEnabled?(this._hostElement.style.setProperty(Ze,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(J)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount($){this._actionSectionCount+=$,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Ee,J)}_waitForAnimationToComplete($,le){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(le,$)}_requestAnimationFrame($){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame($):$()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone($){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:$})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal($){const le=super.attachComponentPortal($);return le.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),le}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(o.aKT),o.rXU(B.GX),o.rXU(y.qQ,8),o.rXU(di),o.rXU(B.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(o.bc$,8),o.rXU(B.FN))}}static{this.\u0275cmp=o.VBU({type:T,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(le,ue){2&le&&(o.Mr5("id",ue._config.id),o.BMQ("aria-modal",ue._config.ariaModal)("role",ue._config.role)("aria-labelledby",ue._config.ariaLabel?null:ue._ariaLabelledByQueue[0])("aria-label",ue._config.ariaLabel)("aria-describedby",ue._config.ariaDescribedBy||null),o.AVh("_mat-animation-noopable",!ue._animationsEnabled)("mat-mdc-dialog-container-with-actions",ue._actionSectionCount>0))},standalone:!0,features:[o.Vt3,o.aNF],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(le,ue){1&le&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,yn,0,0,"ng-template",2),o.k0s()())},dependencies:[ee.I3],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})}}return T})();const Ze="--mat-dialog-transition-duration";function je(T){return null==T?null:"number"==typeof T?T:T.endsWith("ms")?(0,et.OE)(T.substring(0,T.length-2)):T.endsWith("s")?1e3*(0,et.OE)(T.substring(0,T.length-1)):"0"===T?0:null}var Lt=function(T){return T[T.OPEN=0]="OPEN",T[T.CLOSING=1]="CLOSING",T[T.CLOSED=2]="CLOSED",T}(Lt||{});class Mt{constructor(N,$,le){this._ref=N,this._containerInstance=le,this._afterOpened=new V.B,this._beforeClosed=new V.B,this._state=Lt.OPEN,this.disableClose=$.disableClose,this.id=N.id,N.addPanelClass("mat-mdc-dialog-panel"),le._animationStateChanged.pipe((0,Et.p)(ue=>"opened"===ue.state),(0,Tt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),le._animationStateChanged.pipe((0,Et.p)(ue=>"closed"===ue.state),(0,Tt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),N.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,It.h)(this.backdropClick(),this.keydownEvents().pipe((0,Et.p)(ue=>ue.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(ue)))).subscribe(ue=>{this.disableClose||(ue.preventDefault(),we(this,"keydown"===ue.type?"keyboard":"mouse"))})}close(N){this._result=N,this._containerInstance._animationStateChanged.pipe((0,Et.p)($=>"closing"===$.state),(0,Tt.s)(1)).subscribe($=>{this._beforeClosed.next(N),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),$.totalTime+100)}),this._state=Lt.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(N){let $=this._ref.config.positionStrategy;return N&&(N.left||N.right)?N.left?$.left(N.left):$.right(N.right):$.centerHorizontally(),N&&(N.top||N.bottom)?N.top?$.top(N.top):$.bottom(N.bottom):$.centerVertically(),this._ref.updatePosition(),this}updateSize(N="",$=""){return this._ref.updateSize(N,$),this}addPanelClass(N){return this._ref.addPanelClass(N),this}removePanelClass(N){return this._ref.removePanelClass(N),this}getState(){return this._state}_finishDialogClose(){this._state=Lt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function we(T,N,$){return T._closeInteractionType=N,T.close($)}const Oe=new o.nKC("MatMdcDialogData"),me=new o.nKC("mat-mdc-dialog-default-options"),We=new o.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}});let xe=0,ut=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor($,le,ue,nt,zt,Ut,jt,On){this._overlay=$,this._defaultOptions=nt,this._scrollStrategy=zt,this._parentDialog=Ut,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this.dialogConfigClass=di,this.afterAllClosed=(0,F.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,he.Z)(void 0))),this._dialog=le.get(se),this._dialogRefConstructor=Mt,this._dialogContainerType=Ne,this._dialogDataToken=Oe}open($,le){let ue;(le={...this._defaultOptions||new di,...le}).id=le.id||"mat-mdc-dialog-"+xe++,le.scrollStrategy=le.scrollStrategy||this._scrollStrategy();const nt=this._dialog.open($,{...le,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:le},{provide:be,useValue:le}]},templateContext:()=>({dialogRef:ue}),providers:(zt,Ut,jt)=>(ue=new this._dialogRefConstructor(zt,le,jt),ue.updatePosition(le?.position),[{provide:this._dialogContainerType,useValue:jt},{provide:this._dialogDataToken,useValue:Ut.data},{provide:this._dialogRefConstructor,useValue:ue}])});return ue.componentRef=nt.componentRef,ue.componentInstance=nt.componentInstance,this.openDialogs.push(ue),this.afterOpened.next(ue),ue.afterClosed().subscribe(()=>{const zt=this.openDialogs.indexOf(ue);zt>-1&&(this.openDialogs.splice(zt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),ue}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById($){return this.openDialogs.find(le=>le.id===$)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs($){let le=$.length;for(;le--;)$[le].close()}static{this.\u0275fac=function(le){return new(le||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(y.aZ,8),o.KVO(me,8),o.KVO(We),o.KVO(T,12),o.KVO(u.Sf),o.KVO(o.bc$,8))}}static{this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})(),wt=(()=>{class T{constructor($,le,ue){this.dialogRef=$,this._elementRef=le,this._dialog=ue,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Je(this._elementRef,this._dialog.openDialogs))}ngOnChanges($){const le=$._matDialogClose||$._matDialogCloseResult;le&&(this.dialogResult=le.currentValue)}_onButtonClick($){we(this.dialogRef,0===$.screenX&&0===$.screenY?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(Mt,8),o.rXU(o.aKT),o.rXU(ut))}}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(le,ue){1&le&&o.bIt("click",function(zt){return ue._onButtonClick(zt)}),2&le&&o.BMQ("aria-label",ue.ariaLabel||null)("type",ue.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[o.OA$]})}}return T})(),mn=(()=>{class T{constructor($,le,ue){this._dialogRef=$,this._elementRef=le,this._dialog=ue}ngOnInit(){this._dialogRef||(this._dialogRef=Je(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(Mt,8),o.rXU(o.aKT),o.rXU(ut))}}static{this.\u0275dir=o.FsC({type:T,standalone:!0})}}return T})(),Zt=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[o.nM4([nn.uv])]})}}return T})(),_e=(()=>{class T extends mn{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let $;return function(ue){return($||($=o.xGo(T)))(ue||T)}})()}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(le,ue){2&le&&o.AVh("mat-mdc-dialog-actions-align-start","start"===ue.align)("mat-mdc-dialog-actions-align-center","center"===ue.align)("mat-mdc-dialog-actions-align-end","end"===ue.align)},inputs:{align:"align"},standalone:!0,features:[o.Vt3]})}}return T})();function Je(T,N){let $=T.nativeElement.parentElement;for(;$&&!$.classList.contains("mat-mdc-dialog-container");)$=$.parentElement;return $?N.find(le=>le.id===$.id):null}let dt=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275mod=o.$C({type:T})}static{this.\u0275inj=o.G2t({providers:[ut],imports:[Le,u.z_,ee.jc,Fn.yE,Fn.yE]})}}return T})()},1997:(tn,Re,v)=>{"use strict";v.d(Re,{q:()=>B,w:()=>W});var u=v(4438),y=v(4085),o=v(6600);let B=(()=>{class ee{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(V){this._vertical=(0,y.he)(V)}get inset(){return this._inset}set inset(V){this._inset=(0,y.he)(V)}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275cmp=u.VBU({type:ee,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(F,U){2&F&&(u.BMQ("aria-orientation",U.vertical?"vertical":"horizontal"),u.AVh("mat-divider-vertical",U.vertical)("mat-divider-horizontal",!U.vertical)("mat-divider-inset",U.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(F,U){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return ee})(),W=(()=>{class ee{static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275mod=u.$C({type:ee})}static{this.\u0275inj=u.G2t({imports:[o.yE,o.yE]})}}return ee})()},2102:(tn,Re,v)=>{"use strict";v.d(Re,{xb:()=>le,U$:()=>ue,TL:()=>We,rl:()=>Ln,qT:()=>Q,RG:()=>wi,MV:()=>xt,nJ:()=>we,JW:()=>ut,yw:()=>wt});var u=v(4438),y=v(8203),o=v(4085),B=v(6860),W=v(177),ee=v(8359),re=v(1413),V=v(7786),F=v(6977),U=v(1985),L=v(5964),he=v(4668);class be{constructor(Cn){this._box=Cn,this._destroyed=new re.B,this._resizeSubject=new re.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(He=>this._resizeSubject.next(He)))}observe(Cn){return this._elementObservables.has(Cn)||this._elementObservables.set(Cn,new U.c(He=>{const Be=this._resizeSubject.subscribe(He);return this._resizeObserver?.observe(Cn,{box:this._box}),()=>{this._resizeObserver?.unobserve(Cn),Be.unsubscribe(),this._elementObservables.delete(Cn)}}).pipe((0,L.p)(He=>He.some(Be=>Be.target===Cn)),(0,he.t)({bufferSize:1,refCount:!0}),(0,F.Q)(this._destroyed))),this._elementObservables.get(Cn)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Te=(()=>{class en{constructor(){this._observers=new Map,this._ngZone=(0,u.WQX)(u.SKi)}ngOnDestroy(){for(const[,He]of this._observers)He.destroy();this._observers.clear()}observe(He,Be){const ye=Be?.box||"content-box";return this._observers.has(ye)||this._observers.set(ye,new be(ye)),this._observers.get(ye).observe(He)}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275prov=u.jDH({token:en,factory:en.\u0275fac,providedIn:"root"})}}return en})();var Me=v(9969),te=v(2318),ve=v(6600);const tt=["notch"],bt=["matFormFieldNotchedOutline",""],Ve=["*"],rt=["textField"],Xe=["iconPrefixContainer"],se=["textPrefixContainer"],fe=["iconSuffixContainer"],Le=["textSuffixContainer"],et=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],It=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Et(en,Cn){1&en&&u.nrm(0,"span",21)}function Tt(en,Cn){if(1&en&&(u.j41(0,"label",20),u.SdG(1,1),u.DNE(2,Et,1,0,"span",21),u.k0s()),2&en){const He=u.XpG(2);u.Y8G("floating",He._shouldLabelFloat())("monitorResize",He._hasOutline())("id",He._labelId),u.BMQ("for",He._control.disableAutomaticLabeling?null:He._control.id),u.R7$(2),u.vxM(!He.hideRequiredMarker&&He._control.required?2:-1)}}function nn(en,Cn){if(1&en&&u.DNE(0,Tt,3,5,"label",20),2&en){const He=u.XpG();u.vxM(He._hasFloatingLabel()?0:-1)}}function Fn(en,Cn){1&en&&u.nrm(0,"div",7)}function $n(en,Cn){}function yn(en,Cn){if(1&en&&u.DNE(0,$n,0,0,"ng-template",13),2&en){u.XpG(2);const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function di(en,Cn){if(1&en&&(u.j41(0,"div",9),u.DNE(1,yn,1,1,null,13),u.k0s()),2&en){const He=u.XpG();u.Y8G("matFormFieldNotchedOutlineOpen",He._shouldLabelFloat()),u.R7$(),u.vxM(He._forceDisplayInfixLabel()?-1:1)}}function mt(en,Cn){1&en&&(u.j41(0,"div",10,2),u.SdG(2,2),u.k0s())}function Ee(en,Cn){1&en&&(u.j41(0,"div",11,3),u.SdG(2,3),u.k0s())}function J(en,Cn){}function Se(en,Cn){if(1&en&&u.DNE(0,J,0,0,"ng-template",13),2&en){u.XpG();const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function gt(en,Cn){1&en&&(u.j41(0,"div",14,4),u.SdG(2,4),u.k0s())}function Ne(en,Cn){1&en&&(u.j41(0,"div",15,5),u.SdG(2,5),u.k0s())}function Ze(en,Cn){1&en&&u.nrm(0,"div",16)}function je(en,Cn){if(1&en&&(u.j41(0,"div",18),u.SdG(1,6),u.k0s()),2&en){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState)}}function Lt(en,Cn){if(1&en&&(u.j41(0,"mat-hint",22),u.EFF(1),u.k0s()),2&en){const He=u.XpG(2);u.Y8G("id",He._hintLabelId),u.R7$(),u.JRh(He.hintLabel)}}function Mt(en,Cn){if(1&en&&(u.j41(0,"div",19),u.DNE(1,Lt,2,2,"mat-hint",22),u.SdG(2,7),u.nrm(3,"div",23),u.SdG(4,8),u.k0s()),2&en){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState),u.R7$(),u.vxM(He.hintLabel?1:-1)}}let we=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-label"]],standalone:!0})}}return en})(),Oe=0;const me=new u.nKC("MatError");let We=(()=>{class en{constructor(He,Be){this.id="mat-mdc-error-"+Oe++,He||Be.nativeElement.setAttribute("aria-live","polite")}static{this.\u0275fac=function(Be){return new(Be||en)(u.kS0("aria-live"),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Be,ye){2&Be&&u.Mr5("id",ye.id)},inputs:{id:"id"},standalone:!0,features:[u.Jv_([{provide:me,useExisting:en}])]})}}return en})(),Pe=0,xt=(()=>{class en{constructor(){this.align="start",this.id="mat-mdc-hint-"+Pe++}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Be,ye){2&Be&&(u.Mr5("id",ye.id),u.BMQ("align",null),u.AVh("mat-mdc-form-field-hint-end","end"===ye.align))},inputs:{align:"align",id:"id"},standalone:!0})}}return en})();const xe=new u.nKC("MatPrefix");let ut=(()=>{class en{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:xe,useExisting:en}])]})}}return en})();const Rt=new u.nKC("MatSuffix");let wt=(()=>{class en{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:Rt,useExisting:en}])]})}}return en})();const mn=new u.nKC("FloatingLabelParent");let ni=(()=>{class en{get floating(){return this._floating}set floating(He){this._floating=He,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(He){this._monitorResize=He,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(He){this._elementRef=He,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,u.WQX)(Te),this._ngZone=(0,u.WQX)(u.SKi),this._parent=(0,u.WQX)(mn),this._resizeSubscription=new ee.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Zt(en){if(null!==en.offsetParent)return en.scrollWidth;const He=en.cloneNode(!0);He.style.setProperty("position","absolute"),He.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(He);const Be=He.scrollWidth;return He.remove(),Be}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-floating-label--float-above",ye.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return en})();const _e="mdc-line-ripple--active",Je="mdc-line-ripple--deactivating";let Ge=(()=>{class en{constructor(He,Be){this._elementRef=He,this._handleTransitionEnd=ye=>{const Ye=this._elementRef.nativeElement.classList,Gt=Ye.contains(Je);"opacity"===ye.propertyName&&Gt&&Ye.remove(_e,Je)},Be.runOutsideAngular(()=>{He.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const He=this._elementRef.nativeElement.classList;He.remove(Je),He.add(_e)}deactivate(){this._elementRef.nativeElement.classList.add(Je)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.SKi))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return en})(),dt=(()=>{class en{constructor(He,Be){this._elementRef=He,this._ngZone=Be,this.open=!1}ngAfterViewInit(){const He=this._elementRef.nativeElement.querySelector(".mdc-floating-label");He?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(He.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>He.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(He){this._notch.nativeElement.style.width=this.open&&He?`calc(${He}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.SKi))}}static{this.\u0275cmp=u.VBU({type:en,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Be,ye){if(1&Be&&u.GBs(tt,5),2&Be){let Ye;u.mGM(Ye=u.lsd())&&(ye._notch=Ye.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-notched-outline--notched",ye.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[u.aNF],attrs:bt,ngContentSelectors:Ve,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(Be,ye){1&Be&&(u.NAR(),u.nrm(0,"div",1),u.j41(1,"div",2,0),u.SdG(3),u.k0s(),u.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}}return en})();const rn={transitionMessages:(0,Me.hZ)("transitionMessages",[(0,Me.wk)("enter",(0,Me.iF)({opacity:1,transform:"translateY(0%)"})),(0,Me.kY)("void => enter",[(0,Me.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Me.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Q=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en})}}return en})();const le=new u.nKC("MatFormField"),ue=new u.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let nt=0,Ln=(()=>{class en{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(He){this._hideRequiredMarker=(0,o.he)(He)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(He){He!==this._floatLabel&&(this._floatLabel=He,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(He){const Be=this._appearance;this._appearance=He||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Be&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(He){this._subscriptSizing=He||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(He){this._hintLabel=He,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(He){this._explicitFormFieldControl=He}constructor(He,Be,ye,Ye,Gt,Pn,yi,Ti){this._elementRef=He,this._changeDetectorRef=Be,this._dir=Ye,this._platform=Gt,this._defaults=Pn,this._animationMode=yi,this._labelChild=(0,u.sbv)(we),this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+nt++,this._hintLabelId="mat-mdc-hint-"+nt++,this._subscriptAnimationState="",this._destroyed=new re.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=(0,u.WQX)(u.zZn),this.getLabelId=(0,u.EWP)(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=(0,u.EWP)(()=>!!this._labelChild()),Pn&&(Pn.appearance&&(this.appearance=Pn.appearance),this._hideRequiredMarker=!!Pn?.hideRequiredMarker,Pn.color&&(this.color=Pn.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(He){const Be=this._control,ye="mat-mdc-form-field-type-";He&&this._elementRef.nativeElement.classList.remove(ye+He.controlType),Be.controlType&&this._elementRef.nativeElement.classList.add(ye+Be.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Be.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),Be.ngControl&&Be.ngControl.valueChanges&&(this._valueChanges=Be.ngControl.valueChanges.pipe((0,F.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(He=>!He._isText),this._hasTextPrefix=!!this._prefixChildren.find(He=>He._isText),this._hasIconSuffix=!!this._suffixChildren.find(He=>!He._isText),this._hasTextSuffix=!!this._suffixChildren.find(He=>He._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,V.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,u.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,F.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(He){const Be=this._control?this._control.ngControl:null;return Be&&Be[He]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let He=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&He.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Be=this._hintChildren?this._hintChildren.find(Ye=>"start"===Ye.align):null,ye=this._hintChildren?this._hintChildren.find(Ye=>"end"===Ye.align):null;Be?He.push(Be.id):this._hintLabel&&He.push(this._hintLabelId),ye&&He.push(ye.id)}else this._errorChildren&&He.push(...this._errorChildren.map(Be=>Be.id));this._control.setDescribedByIds(He)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const He=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(He.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Be=this._iconPrefixContainer?.nativeElement,ye=this._textPrefixContainer?.nativeElement,Ye=this._iconSuffixContainer?.nativeElement,Gt=this._textSuffixContainer?.nativeElement,Pn=Be?.getBoundingClientRect().width??0,yi=ye?.getBoundingClientRect().width??0,Ti=Ye?.getBoundingClientRect().width??0,sn=Gt?.getBoundingClientRect().width??0;He.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pn+yi}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pn+yi+Ti+sn}px)`)}_isAttachedToDom(){const He=this._elementRef.nativeElement;if(He.getRootNode){const Be=He.getRootNode();return Be&&Be!==He}return document.documentElement.contains(He)}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(u.SKi),u.rXU(y.dS),u.rXU(B.OD),u.rXU(ue,8),u.rXU(u.bc$,8),u.rXU(W.qQ))}}static{this.\u0275cmp=u.VBU({type:en,selectors:[["mat-form-field"]],contentQueries:function(Be,ye,Ye){if(1&Be&&(u.C6U(Ye,ye._labelChild,we,5),u.wni(Ye,Q,5),u.wni(Ye,xe,5),u.wni(Ye,Rt,5),u.wni(Ye,me,5),u.wni(Ye,xt,5)),2&Be){let Gt;u.NyB(),u.mGM(Gt=u.lsd())&&(ye._formFieldControl=Gt.first),u.mGM(Gt=u.lsd())&&(ye._prefixChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._suffixChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._errorChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._hintChildren=Gt)}},viewQuery:function(Be,ye){if(1&Be&&(u.GBs(rt,5),u.GBs(Xe,5),u.GBs(se,5),u.GBs(fe,5),u.GBs(Le,5),u.GBs(ni,5),u.GBs(dt,5),u.GBs(Ge,5)),2&Be){let Ye;u.mGM(Ye=u.lsd())&&(ye._textField=Ye.first),u.mGM(Ye=u.lsd())&&(ye._iconPrefixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._textPrefixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._iconSuffixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._textSuffixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._floatingLabel=Ye.first),u.mGM(Ye=u.lsd())&&(ye._notchedOutline=Ye.first),u.mGM(Ye=u.lsd())&&(ye._lineRipple=Ye.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Be,ye){2&Be&&u.AVh("mat-mdc-form-field-label-always-float",ye._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",ye._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",ye._hasIconSuffix)("mat-form-field-invalid",ye._control.errorState)("mat-form-field-disabled",ye._control.disabled)("mat-form-field-autofilled",ye._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===ye._animationMode)("mat-form-field-appearance-fill","fill"==ye.appearance)("mat-form-field-appearance-outline","outline"==ye.appearance)("mat-form-field-hide-placeholder",ye._hasFloatingLabel()&&!ye._shouldLabelFloat())("mat-focused",ye._control.focused)("mat-primary","accent"!==ye.color&&"warn"!==ye.color)("mat-accent","accent"===ye.color)("mat-warn","warn"===ye.color)("ng-untouched",ye._shouldForward("untouched"))("ng-touched",ye._shouldForward("touched"))("ng-pristine",ye._shouldForward("pristine"))("ng-dirty",ye._shouldForward("dirty"))("ng-valid",ye._shouldForward("valid"))("ng-invalid",ye._shouldForward("invalid"))("ng-pending",ye._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[u.Jv_([{provide:le,useExisting:en},{provide:mn,useExisting:en}]),u.aNF],ngContentSelectors:It,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(Be,ye){if(1&Be){const Ye=u.RV6();u.NAR(et),u.DNE(0,nn,1,1,"ng-template",null,0,u.C5r),u.j41(2,"div",6,1),u.bIt("click",function(Pn){return u.eBV(Ye),u.Njj(ye._control.onContainerClick(Pn))}),u.DNE(4,Fn,1,0,"div",7),u.j41(5,"div",8),u.DNE(6,di,2,2,"div",9)(7,mt,3,0,"div",10)(8,Ee,3,0,"div",11),u.j41(9,"div",12),u.DNE(10,Se,1,1,null,13),u.SdG(11),u.k0s(),u.DNE(12,gt,3,0,"div",14)(13,Ne,3,0,"div",15),u.k0s(),u.DNE(14,Ze,1,0,"div",16),u.k0s(),u.j41(15,"div",17),u.DNE(16,je,2,1,"div",18)(17,Mt,5,2,"div",19),u.k0s()}if(2&Be){let Ye;u.R7$(2),u.AVh("mdc-text-field--filled",!ye._hasOutline())("mdc-text-field--outlined",ye._hasOutline())("mdc-text-field--no-label",!ye._hasFloatingLabel())("mdc-text-field--disabled",ye._control.disabled)("mdc-text-field--invalid",ye._control.errorState),u.R7$(2),u.vxM(ye._hasOutline()||ye._control.disabled?-1:4),u.R7$(2),u.vxM(ye._hasOutline()?6:-1),u.R7$(),u.vxM(ye._hasIconPrefix?7:-1),u.R7$(),u.vxM(ye._hasTextPrefix?8:-1),u.R7$(2),u.vxM(!ye._hasOutline()||ye._forceDisplayInfixLabel()?10:-1),u.R7$(2),u.vxM(ye._hasTextSuffix?12:-1),u.R7$(),u.vxM(ye._hasIconSuffix?13:-1),u.R7$(),u.vxM(ye._hasOutline()?-1:14),u.R7$(),u.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===ye.subscriptSizing),u.R7$(),u.vxM("error"===(Ye=ye._getDisplayedMessages())?16:"hint"===Ye?17:-1)}},dependencies:[ni,dt,W.T3,Ge,xt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[rn.transitionMessages]},changeDetection:0})}}return en})(),wi=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275mod=u.$C({type:en})}static{this.\u0275inj=u.G2t({imports:[ve.yE,W.MD,te.w5,ve.yE]})}}return en})()},9213:(tn,Re,v)=>{"use strict";v.d(Re,{An:()=>Ee,m_:()=>J,tp:()=>fe});var u=v(4438),y=v(6600),o=v(177),B=v(7673),W=v(8810),ee=v(7468),re=v(8359),V=v(8141),F=v(6354),U=v(9437),L=v(980),he=v(7647),de=v(6697),be=v(1626),Te=v(345);const Me=["*"];let te;function tt(Se){return function ve(){if(void 0===te&&(te=null,typeof window<"u")){const Se=window;void 0!==Se.trustedTypes&&(te=Se.trustedTypes.createPolicy("angular#components",{createHTML:gt=>gt}))}return te}()?.createHTML(Se)||Se}function bt(Se){return Error(`Unable to find icon with the name "${Se}"`)}function rt(Se){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Se}".`)}function Xe(Se){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Se}".`)}class se{constructor(gt,Ne,Ze){this.url=gt,this.svgText=Ne,this.options=Ze}}let fe=(()=>{class Se{constructor(Ne,Ze,je,Lt){this._httpClient=Ne,this._sanitizer=Ze,this._errorHandler=Lt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=je}addSvgIcon(Ne,Ze,je){return this.addSvgIconInNamespace("",Ne,Ze,je)}addSvgIconLiteral(Ne,Ze,je){return this.addSvgIconLiteralInNamespace("",Ne,Ze,je)}addSvgIconInNamespace(Ne,Ze,je,Lt){return this._addSvgIconConfig(Ne,Ze,new se(je,null,Lt))}addSvgIconResolver(Ne){return this._resolvers.push(Ne),this}addSvgIconLiteralInNamespace(Ne,Ze,je,Lt){const Mt=this._sanitizer.sanitize(u.WPN.HTML,je);if(!Mt)throw Xe(je);const we=tt(Mt);return this._addSvgIconConfig(Ne,Ze,new se("",we,Lt))}addSvgIconSet(Ne,Ze){return this.addSvgIconSetInNamespace("",Ne,Ze)}addSvgIconSetLiteral(Ne,Ze){return this.addSvgIconSetLiteralInNamespace("",Ne,Ze)}addSvgIconSetInNamespace(Ne,Ze,je){return this._addSvgIconSetConfig(Ne,new se(Ze,null,je))}addSvgIconSetLiteralInNamespace(Ne,Ze,je){const Lt=this._sanitizer.sanitize(u.WPN.HTML,Ze);if(!Lt)throw Xe(Ze);const Mt=tt(Lt);return this._addSvgIconSetConfig(Ne,new se("",Mt,je))}registerFontClassAlias(Ne,Ze=Ne){return this._fontCssClassesByAlias.set(Ne,Ze),this}classNameForFontAlias(Ne){return this._fontCssClassesByAlias.get(Ne)||Ne}setDefaultFontSetClass(...Ne){return this._defaultFontSetClass=Ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ne){const Ze=this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Ne);if(!Ze)throw rt(Ne);const je=this._cachedIconsByUrl.get(Ze);return je?(0,B.of)(It(je)):this._loadSvgIconFromConfig(new se(Ne,null)).pipe((0,V.M)(Lt=>this._cachedIconsByUrl.set(Ze,Lt)),(0,F.T)(Lt=>It(Lt)))}getNamedSvgIcon(Ne,Ze=""){const je=Et(Ze,Ne);let Lt=this._svgIconConfigs.get(je);if(Lt)return this._getSvgFromConfig(Lt);if(Lt=this._getIconConfigFromResolvers(Ze,Ne),Lt)return this._svgIconConfigs.set(je,Lt),this._getSvgFromConfig(Lt);const Mt=this._iconSetConfigs.get(Ze);return Mt?this._getSvgFromIconSetConfigs(Ne,Mt):(0,W.$)(bt(je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ne){return Ne.svgText?(0,B.of)(It(this._svgElementFromConfig(Ne))):this._loadSvgIconFromConfig(Ne).pipe((0,F.T)(Ze=>It(Ze)))}_getSvgFromIconSetConfigs(Ne,Ze){const je=this._extractIconWithNameFromAnySet(Ne,Ze);if(je)return(0,B.of)(je);const Lt=Ze.filter(Mt=>!Mt.svgText).map(Mt=>this._loadSvgIconSetFromConfig(Mt).pipe((0,U.W)(we=>{const me=`Loading icon set URL: ${this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Mt.url)} failed: ${we.message}`;return this._errorHandler.handleError(new Error(me)),(0,B.of)(null)})));return(0,ee.p)(Lt).pipe((0,F.T)(()=>{const Mt=this._extractIconWithNameFromAnySet(Ne,Ze);if(!Mt)throw bt(Ne);return Mt}))}_extractIconWithNameFromAnySet(Ne,Ze){for(let je=Ze.length-1;je>=0;je--){const Lt=Ze[je];if(Lt.svgText&&Lt.svgText.toString().indexOf(Ne)>-1){const Mt=this._svgElementFromConfig(Lt),we=this._extractSvgIconFromSet(Mt,Ne,Lt.options);if(we)return we}}return null}_loadSvgIconFromConfig(Ne){return this._fetchIcon(Ne).pipe((0,V.M)(Ze=>Ne.svgText=Ze),(0,F.T)(()=>this._svgElementFromConfig(Ne)))}_loadSvgIconSetFromConfig(Ne){return Ne.svgText?(0,B.of)(null):this._fetchIcon(Ne).pipe((0,V.M)(Ze=>Ne.svgText=Ze))}_extractSvgIconFromSet(Ne,Ze,je){const Lt=Ne.querySelector(`[id="${Ze}"]`);if(!Lt)return null;const Mt=Lt.cloneNode(!0);if(Mt.removeAttribute("id"),"svg"===Mt.nodeName.toLowerCase())return this._setSvgAttributes(Mt,je);if("symbol"===Mt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Mt),je);const we=this._svgElementFromString(tt(""));return we.appendChild(Mt),this._setSvgAttributes(we,je)}_svgElementFromString(Ne){const Ze=this._document.createElement("DIV");Ze.innerHTML=Ne;const je=Ze.querySelector("svg");if(!je)throw Error(" tag not found");return je}_toSvgElement(Ne){const Ze=this._svgElementFromString(tt("")),je=Ne.attributes;for(let Lt=0;Lttt(me)),(0,L.j)(()=>this._inProgressUrlFetches.delete(Mt)),(0,he.u)());return this._inProgressUrlFetches.set(Mt,Oe),Oe}_addSvgIconConfig(Ne,Ze,je){return this._svgIconConfigs.set(Et(Ne,Ze),je),this}_addSvgIconSetConfig(Ne,Ze){const je=this._iconSetConfigs.get(Ne);return je?je.push(Ze):this._iconSetConfigs.set(Ne,[Ze]),this}_svgElementFromConfig(Ne){if(!Ne.svgElement){const Ze=this._svgElementFromString(Ne.svgText);this._setSvgAttributes(Ze,Ne.options),Ne.svgElement=Ze}return Ne.svgElement}_getIconConfigFromResolvers(Ne,Ze){for(let je=0;jegt?gt.pathname+gt.search:""}}}),yn=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],di=yn.map(Se=>`[${Se}]`).join(", "),mt=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class Se{get color(){return this._color||this._defaultColor}set color(Ne){this._color=Ne}get svgIcon(){return this._svgIcon}set svgIcon(Ne){Ne!==this._svgIcon&&(Ne?this._updateSvgIcon(Ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ne)}get fontSet(){return this._fontSet}set fontSet(Ne){const Ze=this._cleanupFontValue(Ne);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ne){const Ze=this._cleanupFontValue(Ne);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(Ne,Ze,je,Lt,Mt,we){this._elementRef=Ne,this._iconRegistry=Ze,this._location=Lt,this._errorHandler=Mt,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.yU.EMPTY,we&&(we.color&&(this.color=this._defaultColor=we.color),we.fontSet&&(this.fontSet=we.fontSet)),je||Ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ne){if(!Ne)return["",""];const Ze=Ne.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${Ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ne=this._elementsWithExternalReferences;if(Ne&&Ne.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ne){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(Ne),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(Ne)}_clearSvgElement(){const Ne=this._elementRef.nativeElement;let Ze=Ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const je=Ne.childNodes[Ze];(1!==je.nodeType||"svg"===je.nodeName.toLowerCase())&&je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ne=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(je=>je.length>0);this._previousFontSetClass.forEach(je=>Ne.classList.remove(je)),Ze.forEach(je=>Ne.classList.add(je)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ne.classList.remove(this._previousFontIconClass),this.fontIcon&&Ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ne){return"string"==typeof Ne?Ne.trim().split(" ")[0]:Ne}_prependPathToReferences(Ne){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((je,Lt)=>{je.forEach(Mt=>{Lt.setAttribute(Mt.name,`url('${Ne}#${Mt.value}')`)})})}_cacheChildrenWithExternalReferences(Ne){const Ze=Ne.querySelectorAll(di),je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Lt=0;Lt{const we=Ze[Lt],Oe=we.getAttribute(Mt),me=Oe?Oe.match(mt):null;if(me){let We=je.get(we);We||(We=[],je.set(we,We)),We.push({name:Mt,value:me[1]})}})}_updateSvgIcon(Ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ne){const[Ze,je]=this._splitIconName(Ne);Ze&&(this._svgNamespace=Ze),je&&(this._svgName=je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(je,Ze).pipe((0,de.s)(1)).subscribe(Lt=>this._setSvgElement(Lt),Lt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${je}! ${Lt.message}`))})}}static{this.\u0275fac=function(Ze){return new(Ze||Se)(u.rXU(u.aKT),u.rXU(fe),u.kS0("aria-hidden"),u.rXU(Fn),u.rXU(u.zcH),u.rXU(nn,8))}}static{this.\u0275cmp=u.VBU({type:Se,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(Ze,je){2&Ze&&(u.BMQ("data-mat-icon-type",je._usingFontIcon()?"font":"svg")("data-mat-icon-name",je._svgName||je.fontIcon)("data-mat-icon-namespace",je._svgNamespace||je.fontSet)("fontIcon",je._usingFontIcon()?je.fontIcon:null),u.HbH(je.color?"mat-"+je.color:""),u.AVh("mat-icon-inline",je.inline)("mat-icon-no-color","primary"!==je.color&&"accent"!==je.color&&"warn"!==je.color))},inputs:{color:"color",inline:[2,"inline","inline",u.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:Me,decls:1,vars:0,template:function(Ze,je){1&Ze&&(u.NAR(),u.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return Se})(),J=(()=>{class Se{static{this.\u0275fac=function(Ze){return new(Ze||Se)}}static{this.\u0275mod=u.$C({type:Se})}static{this.\u0275inj=u.G2t({imports:[y.yE,y.yE]})}}return Se})()},9042:(tn,Re,v)=>{"use strict";v.d(Re,{fS:()=>be,fg:()=>de});var u=v(4085),y=v(6860),o=v(7403),B=v(4438),W=v(9417),ee=v(6600),re=v(2102),V=v(1413);const U=new B.nKC("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let he=0,de=(()=>{class Te{get disabled(){return this._disabled}set disabled(te){this._disabled=(0,u.he)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(W.k0.required)??!1}set required(te){this._required=(0,u.he)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,y.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(te){this._errorStateTracker.matcher=te}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,u.he)(te)}get errorState(){return this._errorStateTracker.errorState}set errorState(te){this._errorStateTracker.errorState=te}constructor(te,ve,tt,bt,Ve,rt,Xe,se,fe,Le){this._elementRef=te,this._platform=ve,this.ngControl=tt,this._autofillMonitor=se,this._ngZone=fe,this._formField=Le,this._uid="mat-input-"+he++,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new V.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Et=>(0,y.MU)().has(Et)),this._iOSKeyupListener=Et=>{const Tt=Et.target;!Tt.value&&0===Tt.selectionStart&&0===Tt.selectionEnd&&(Tt.setSelectionRange(1,1),Tt.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};const et=this._elementRef.nativeElement,It=et.nodeName.toLowerCase();this._inputValueAccessor=Xe||et,this._previousNativeValue=this.value,this.id=this.id,ve.IOS&&fe.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ee.X0(rt,tt,Ve,bt,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===It,this._isTextarea="textarea"===It,this._isInFormField=!!Le,this._isNativeSelect&&(this.controlType=et.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(te){this._elementRef.nativeElement.focus(te)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_dirtyCheckPlaceholder(){const te=this._getPlaceholder();if(te!==this._previousPlaceholder){const ve=this._elementRef.nativeElement;this._previousPlaceholder=te,te?ve.setAttribute("placeholder",te):ve.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,ve=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&ve&&ve.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(ve){return new(ve||Te)(B.rXU(B.aKT),B.rXU(y.OD),B.rXU(W.vO,10),B.rXU(W.cV,8),B.rXU(W.j4,8),B.rXU(ee.es),B.rXU(U,10),B.rXU(o.P8),B.rXU(B.SKi),B.rXU(re.xb,8))}}static{this.\u0275dir=B.FsC({type:Te,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ve,tt){1&ve&&B.bIt("focus",function(){return tt._focusChanged(!0)})("blur",function(){return tt._focusChanged(!1)})("input",function(){return tt._onInput()}),2&ve&&(B.Mr5("id",tt.id)("disabled",tt.disabled)("required",tt.required),B.BMQ("name",tt.name||null)("readonly",tt.readonly&&!tt._isNativeSelect||null)("aria-invalid",tt.empty&&tt.required?null:tt.errorState)("aria-required",tt.required)("id",tt.id),B.AVh("mat-input-server",tt._isServer)("mat-mdc-form-field-textarea-control",tt._isInFormField&&tt._isTextarea)("mat-mdc-form-field-input-control",tt._isInFormField)("mdc-text-field__input",tt._isInFormField)("mat-mdc-native-select-inline",tt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[B.Jv_([{provide:re.qT,useExisting:Te}]),B.OA$]})}}return Te})(),be=(()=>{class Te{static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275mod=B.$C({type:Te})}static{this.\u0275inj=B.G2t({imports:[ee.yE,re.RG,re.RG,o.EE,ee.yE]})}}return Te})()},9115:(tn,Re,v)=>{"use strict";v.d(Re,{Cn:()=>We,Cp:()=>me,fb:()=>Tt,kk:()=>Ze});var u=v(4438),y=v(9888),o=v(7336),B=v(1413),W=v(7786),ee=v(8359),re=v(7673),V=v(5007),F=v(9172),U=v(5558),L=v(6977),he=v(5964),de=v(6697),be=v(1986),Te=v(177),Me=v(6600),te=v(6939),ve=v(9969),tt=v(8203),bt=v(7987),Ve=v(6860),rt=v(5542);const Xe=["mat-menu-item",""],se=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],fe=["mat-icon, [matMenuItemIcon]","*"];function Le(Pe,xt){1&Pe&&(u.qSk(),u.j41(0,"svg",2),u.nrm(1,"polygon",3),u.k0s())}const et=["*"];function It(Pe,xt){if(1&Pe){const xe=u.RV6();u.j41(0,"div",0),u.bIt("keydown",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._handleKeydown(Rt))})("click",function(){u.eBV(xe);const Rt=u.XpG();return u.Njj(Rt.closed.emit("click"))})("@transformMenu.start",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._onAnimationStart(Rt))})("@transformMenu.done",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._onAnimationDone(Rt))}),u.j41(1,"div",1),u.SdG(2),u.k0s()()}if(2&Pe){const xe=u.XpG();u.HbH(xe._classList),u.Y8G("id",xe.panelId)("@transformMenu",xe._panelAnimationState),u.BMQ("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const Et=new u.nKC("MAT_MENU_PANEL");let Tt=(()=>{class Pe{constructor(xe,ut,Rt,wt,mn){this._elementRef=xe,this._document=ut,this._focusMonitor=Rt,this._parentMenu=wt,this._changeDetectorRef=mn,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new B.B,this._focused=new B.B,this._highlighted=!1,this._triggersSubmenu=!1,wt?.addItem?.(this)}focus(xe,ut){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,ut):this._getHostElement().focus(ut),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(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const xe=this._elementRef.nativeElement.cloneNode(!0),ut=xe.querySelectorAll("mat-icon, .material-icons");for(let Rt=0;Rt enter",(0,ve.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ve.iF)({opacity:1,transform:"scale(1)"}))),(0,ve.kY)("* => void",(0,ve.i0)("100ms 25ms linear",(0,ve.iF)({opacity:0})))]),fadeInItems:(0,ve.hZ)("fadeInItems",[(0,ve.wk)("showing",(0,ve.iF)({opacity:1})),(0,ve.kY)("void => *",[(0,ve.iF)({opacity:0}),(0,ve.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Se=0;const gt=new u.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ne(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ze=(()=>{class Pe{get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}set panelClass(xe){const ut=this._previousPanelClass,Rt={...this._classList};ut&&ut.length&&ut.split(" ").forEach(wt=>{Rt[wt]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(wt=>{Rt[wt]=!0}),this._elementRef.nativeElement.className=""),this._classList=Rt}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}constructor(xe,ut,Rt,wt){this._elementRef=xe,this._changeDetectorRef=wt,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new u.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new B.B,this.closed=new u.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Se++,this._injector=(0,u.WQX)(u.zZn),this.overlayPanelClass=Rt.overlayPanelClass||"",this._xPosition=Rt.xPosition,this._yPosition=Rt.yPosition,this.backdropClass=Rt.backdropClass,this.overlapTrigger=Rt.overlapTrigger,this.hasBackdrop=Rt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new y.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,U.n)(xe=>(0,W.h)(...xe.map(ut=>ut._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{const ut=this._keyManager;if("enter"===this._panelAnimationState&&ut.activeItem?._hasFocus()){const Rt=xe.toArray(),wt=Math.max(0,Math.min(Rt.length-1,ut.activeItemIndex||0));Rt[wt]&&!Rt[wt].disabled?ut.setActiveItem(wt):ut.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,U.n)(ut=>(0,W.h)(...ut.map(Rt=>Rt._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const ut=xe.keyCode,Rt=this._keyManager;switch(ut){case o._f:(0,o.rp)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case o.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ut===o.i7||ut===o.n6)&&Rt.setFocusOrigin("keyboard"),void Rt.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,u.mal)(()=>{let ut=null;if(this._directDescendantItems.length&&(ut=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ut||!ut.contains(document.activeElement)){const Rt=this._keyManager;Rt.setFocusOrigin(xe).setFirstItemActive(),!Rt.activeItem&&ut&&ut.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){if(null===this._baseElevation){const ni=("function"==typeof getComputedStyle?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(ni)}const ut=Math.min(this._baseElevation+xe,24),Rt=`${this._elevationPrefix}${ut}`,wt=Object.keys(this._classList).find(mn=>mn.startsWith(this._elevationPrefix));if(!wt||wt===this._previousElevation){const mn={...this._classList};this._previousElevation&&(mn[this._previousElevation]=!1),mn[Rt]=!0,this._previousElevation=Rt,this._classList=mn}}setPositionClasses(xe=this.xPosition,ut=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===xe,"mat-menu-after":"after"===xe,"mat-menu-above":"above"===ut,"mat-menu-below":"below"===ut},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,F.Z)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(ut=>ut._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(ut){return new(ut||Pe)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(gt),u.rXU(u.gRc))}}static{this.\u0275cmp=u.VBU({type:Pe,selectors:[["mat-menu"]],contentQueries:function(ut,Rt,wt){if(1&ut&&(u.wni(wt,yn,5),u.wni(wt,Tt,5),u.wni(wt,Tt,4)),2&ut){let mn;u.mGM(mn=u.lsd())&&(Rt.lazyContent=mn.first),u.mGM(mn=u.lsd())&&(Rt._allItems=mn),u.mGM(mn=u.lsd())&&(Rt.items=mn)}},viewQuery:function(ut,Rt){if(1&ut&&u.GBs(u.C4Q,5),2&ut){let wt;u.mGM(wt=u.lsd())&&(Rt.templateRef=wt.first)}},hostVars:3,hostBindings:function(ut,Rt){2&ut&&u.BMQ("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",u.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",xe=>null==xe?null:(0,u.L39)(xe)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[u.Jv_([{provide:Et,useExisting:Pe}]),u.GFd,u.aNF],ngContentSelectors:et,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(ut,Rt){1&ut&&(u.NAR(),u.DNE(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:[mt.transformMenu,mt.fadeInItems]},changeDetection:0})}}return Pe})();const je=new u.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Pe=(0,u.WQX)(bt.hJ);return()=>Pe.scrollStrategies.reposition()}}),Mt={provide:je,deps:[bt.hJ],useFactory:function Lt(Pe){return()=>Pe.scrollStrategies.reposition()}},we=(0,Ve.BQ)({passive:!0});let me=(()=>{class Pe{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(ut=>{this._destroyMenu(ut),("click"===ut||"tab"===ut)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ut)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(xe,ut,Rt,wt,mn,ni,Zt,_e,Je){this._overlay=xe,this._element=ut,this._viewContainerRef=Rt,this._menuItemInstance=ni,this._dir=Zt,this._focusMonitor=_e,this._ngZone=Je,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ee.yU.EMPTY,this._hoverSubscription=ee.yU.EMPTY,this._menuCloseSubscription=ee.yU.EMPTY,this._changeDetectorRef=(0,u.WQX)(u.gRc),this._handleTouchStart=Ge=>{(0,y.w6)(Ge)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=wt,this._parentMaterialMenu=mn instanceof Ze?mn:void 0,ut.nativeElement.addEventListener("touchstart",this._handleTouchStart,we)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,we),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const xe=this.menu;if(this._menuOpen||!xe)return;const ut=this._createOverlay(xe),Rt=ut.getConfig(),wt=Rt.positionStrategy;this._setPosition(xe,wt),Rt.hasBackdrop=null==xe.hasBackdrop?!this.triggersSubmenu():xe.hasBackdrop,ut.attach(this._getPortal(xe)),xe.lazyContent&&xe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(xe),xe instanceof Ze&&(xe._startAnimation(),xe._directDescendantItems.changes.pipe((0,L.Q)(xe.close)).subscribe(()=>{wt.withLockedPosition(!1).reapplyLastPosition(),wt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(xe,ut){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,ut):this._element.nativeElement.focus(ut)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const ut=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ut instanceof Ze?(ut._resetAnimation(),ut.lazyContent?ut._animationDone.pipe((0,he.p)(Rt=>"void"===Rt.toState),(0,de.s)(1),(0,L.Q)(ut.lazyContent._attached)).subscribe({next:()=>ut.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ut?.lazyContent?.detach())}_initMenu(xe){xe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,xe.direction=this.dir,this._setMenuElevation(xe),xe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(xe){if(xe.setElevation){let ut=0,Rt=xe.parentMenu;for(;Rt;)ut++,Rt=Rt.parentMenu;xe.setElevation(ut)}}_setIsMenuOpen(xe){xe!==this._menuOpen&&(this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe),this._changeDetectorRef.markForCheck())}_createOverlay(xe){if(!this._overlayRef){const ut=this._getOverlayConfig(xe);this._subscribeToPositions(xe,ut.positionStrategy),this._overlayRef=this._overlay.create(ut),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(xe){return new bt.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:xe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:xe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xe,ut){xe.setPositionClasses&&ut.positionChanges.subscribe(Rt=>{const wt="start"===Rt.connectionPair.overlayX?"after":"before",mn="top"===Rt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>xe.setPositionClasses(wt,mn)):xe.setPositionClasses(wt,mn)})}_setPosition(xe,ut){let[Rt,wt]="before"===xe.xPosition?["end","start"]:["start","end"],[mn,ni]="above"===xe.yPosition?["bottom","top"]:["top","bottom"],[Zt,_e]=[mn,ni],[Je,Ge]=[Rt,wt],dt=0;if(this.triggersSubmenu()){if(Ge=Rt="before"===xe.xPosition?"start":"end",wt=Je="end"===Rt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const rn=this._parentMaterialMenu.items.first;this._parentInnerPadding=rn?rn._getHostElement().offsetTop:0}dt="bottom"===mn?this._parentInnerPadding:-this._parentInnerPadding}}else xe.overlapTrigger||(Zt="top"===mn?"bottom":"top",_e="top"===ni?"bottom":"top");ut.withPositions([{originX:Rt,originY:Zt,overlayX:Je,overlayY:mn,offsetY:dt},{originX:wt,originY:Zt,overlayX:Ge,overlayY:mn,offsetY:dt},{originX:Rt,originY:_e,overlayX:Je,overlayY:ni,offsetY:-dt},{originX:wt,originY:_e,overlayX:Ge,overlayY:ni,offsetY:-dt}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),ut=this._overlayRef.detachments(),Rt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,re.of)(),wt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,he.p)(mn=>mn!==this._menuItemInstance),(0,he.p)(()=>this._menuOpen)):(0,re.of)();return(0,W.h)(xe,Rt,wt,ut)}_handleMousedown(xe){(0,y._G)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const ut=xe.keyCode;(ut===o.Fm||ut===o.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ut===o.LE&&"ltr"===this.dir||ut===o.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,he.p)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,be.c)(0,V.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,de.s)(1),(0,be.c)(0,V.$),(0,L.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(xe){return(!this._portal||this._portal.templateRef!==xe.templateRef)&&(this._portal=new te.VA(xe.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(ut){return new(ut||Pe)(u.rXU(bt.hJ),u.rXU(u.aKT),u.rXU(u.c1b),u.rXU(je),u.rXU(Et,8),u.rXU(Tt,10),u.rXU(tt.dS,8),u.rXU(y.FN),u.rXU(u.SKi))}}static{this.\u0275dir=u.FsC({type:Pe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(ut,Rt){1&ut&&u.bIt("click",function(mn){return Rt._handleClick(mn)})("mousedown",function(mn){return Rt._handleMousedown(mn)})("keydown",function(mn){return Rt._handleKeydown(mn)}),2&ut&&u.BMQ("aria-haspopup",Rt.menu?"menu":null)("aria-expanded",Rt.menuOpen)("aria-controls",Rt.menuOpen?Rt.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})}}return Pe})(),We=(()=>{class Pe{static{this.\u0275fac=function(ut){return new(ut||Pe)}}static{this.\u0275mod=u.$C({type:Pe})}static{this.\u0275inj=u.G2t({providers:[Mt],imports:[Te.MD,Me.pZ,Me.yE,bt.z_,rt.Gj,Me.yE]})}}return Pe})()},7575:(tn,Re,v)=>{"use strict";v.d(Re,{HM:()=>V,PO:()=>U});var u=v(4438),o=(v(177),v(6600));function B(L,he){1&L&&u.nrm(0,"div",2)}const W=new u.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=(()=>{class L{constructor(de,be,Te,Me,te){this._elementRef=de,this._ngZone=be,this._changeDetectorRef=Te,this._animationMode=Me,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new u.bkB,this._mode="determinate",this._transitionendHandler=ve=>{0===this.animationEnd.observers.length||!ve.target||!ve.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Me,te&&(te.color&&(this.color=this._defaultColor=te.color),this.mode=te.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(de){this._color=de}get value(){return this._value}set value(de){this._value=F(de||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(de){this._bufferValue=F(de||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(de){this._mode=de,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static{this.\u0275fac=function(be){return new(be||L)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(u.gRc),u.rXU(u.bc$,8),u.rXU(W,8))}}static{this.\u0275cmp=u.VBU({type:L,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(be,Te){2&be&&(u.BMQ("aria-valuenow",Te._isIndeterminate()?null:Te.value)("mode",Te.mode),u.HbH("mat-"+Te.color),u.AVh("_mat-animation-noopable",Te._isNoopAnimation)("mdc-linear-progress--animation-ready",!Te._isNoopAnimation)("mdc-linear-progress--indeterminate",Te._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",u.Udg],bufferValue:[2,"bufferValue","bufferValue",u.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[u.GFd,u.aNF],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(be,Te){1&be&&(u.j41(0,"div",0),u.nrm(1,"div",1),u.DNE(2,B,1,0,"div",2),u.k0s(),u.j41(3,"div",3),u.nrm(4,"span",4),u.k0s(),u.j41(5,"div",5),u.nrm(6,"span",4),u.k0s()),2&be&&(u.R7$(),u.xc7("flex-basis",Te._getBufferBarFlexBasis()),u.R7$(),u.vxM("buffer"===Te.mode?2:-1),u.R7$(),u.xc7("transform",Te._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-app-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}}return L})();function F(L,he=0,de=100){return Math.max(he,Math.min(de,L))}let U=(()=>{class L{static{this.\u0275fac=function(be){return new(be||L)}}static{this.\u0275mod=u.$C({type:L})}static{this.\u0275inj=u.G2t({imports:[o.yE]})}}return L})()},2798:(tn,Re,v)=>{"use strict";v.d(Re,{$2:()=>Lt,VO:()=>je,Ve:()=>Mt});var u=v(7987),y=v(177),o=v(4438),B=v(6600),W=v(2102),ee=v(5542),re=v(9888),V=v(8203),F=v(5024),U=v(7336),L=v(9417),he=v(1413),de=v(9030),be=v(7786),Te=v(9172),Me=v(5558),te=v(5964),ve=v(6354),tt=v(3294),bt=v(6977),Ve=v(6697),rt=v(9969);const Xe=["trigger"],se=["panel"],fe=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"];function et(we,Oe){if(1&we&&(o.j41(0,"span",4),o.EFF(1),o.k0s()),2&we){const me=o.XpG();o.R7$(),o.JRh(me.placeholder)}}function It(we,Oe){1&we&&o.SdG(0)}function Et(we,Oe){if(1&we&&(o.j41(0,"span",11),o.EFF(1),o.k0s()),2&we){const me=o.XpG(2);o.R7$(),o.JRh(me.triggerValue)}}function Tt(we,Oe){if(1&we&&(o.j41(0,"span",5),o.DNE(1,It,1,0)(2,Et,2,1,"span",11),o.k0s()),2&we){const me=o.XpG();o.R7$(),o.vxM(me.customTrigger?1:2)}}function nn(we,Oe){if(1&we){const me=o.RV6();o.j41(0,"div",12,1),o.bIt("@transformPanel.done",function(Pe){o.eBV(me);const xt=o.XpG();return o.Njj(xt._panelDoneAnimatingStream.next(Pe.toState))})("keydown",function(Pe){o.eBV(me);const xt=o.XpG();return o.Njj(xt._handleKeydown(Pe))}),o.SdG(2,1),o.k0s()}if(2&we){const me=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",me._getPanelTheme(),""),o.Y8G("ngClass",me.panelClass)("@transformPanel","showing"),o.BMQ("id",me.id+"-panel")("aria-multiselectable",me.multiple)("aria-label",me.ariaLabel||null)("aria-labelledby",me._getPanelAriaLabelledby())}}const Fn={transformPanelWrap:(0,rt.hZ)("transformPanelWrap",[(0,rt.kY)("* => void",(0,rt.P)("@transformPanel",[(0,rt.MA)()],{optional:!0}))]),transformPanel:(0,rt.hZ)("transformPanel",[(0,rt.wk)("void",(0,rt.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,rt.kY)("void => showing",(0,rt.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,rt.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,rt.kY)("* => void",(0,rt.i0)("100ms linear",(0,rt.iF)({opacity:0})))])};let mt=0;const Ee=new o.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const we=(0,o.WQX)(u.hJ);return()=>we.scrollStrategies.reposition()}}),Se=new o.nKC("MAT_SELECT_CONFIG"),gt={provide:Ee,deps:[u.hJ],useFactory:function J(we){return()=>we.scrollStrategies.reposition()}},Ne=new o.nKC("MatSelectTrigger");class Ze{constructor(Oe,me){this.source=Oe,this.value=me}}let je=(()=>{class we{_scrollOptionIntoView(me){const We=this.options.toArray()[me];if(We){const Pe=this.panel.nativeElement,xt=(0,B.jb)(me,this.options,this.optionGroups),xe=We._getHostElement();Pe.scrollTop=0===me&&1===xt?0:(0,B.TL)(xe.offsetTop,xe.offsetHeight,Pe.scrollTop,Pe.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(me){return new Ze(this,me)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(me){this._hideSingleSelectionIndicator=me,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(me){this._placeholder=me,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.k0.required)??!1}set required(me){this._required=me,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(me){this._multiple=me}get compareWith(){return this._compareWith}set compareWith(me){this._compareWith=me,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(me){this._assignValue(me)&&this._onChange(me)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(me){this._errorStateTracker.matcher=me}get id(){return this._id}set id(me){this._id=me||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(me){this._errorStateTracker.errorState=me}constructor(me,We,Pe,xt,xe,ut,Rt,wt,mn,ni,Zt,_e,Je,Ge){this._viewportRuler=me,this._changeDetectorRef=We,this._elementRef=xe,this._dir=ut,this._parentFormField=mn,this.ngControl=ni,this._liveAnnouncer=Je,this._defaultOptions=Ge,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=(dt,rn)=>dt===rn,this._uid="mat-select-"+mt++,this._triggerAriaLabelledBy=null,this._destroy=new he.B,this.stateChanges=new he.B,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+mt++,this._panelDoneAnimatingStream=new he.B,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 he.B,this.optionSelectionChanges=(0,de.v)(()=>{const dt=this.options;return dt?dt.changes.pipe((0,Te.Z)(dt),(0,Me.n)(()=>(0,be.h)(...dt.map(rn=>rn.onSelectionChange)))):this._initialized.pipe((0,Me.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,te.p)(dt=>dt),(0,ve.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,te.p)(dt=>!dt),(0,ve.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this._skipPredicate=dt=>!this.panelOpen&&dt.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ge?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=Ge.typeaheadDebounceInterval),this._errorStateTracker=new B.X0(xt,ni,wt,Rt,this.stateChanges),this._scrollStrategyFactory=_e,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Zt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new F.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,tt.F)(),(0,bt.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,bt.Q)(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((0,bt.Q)(this._destroy)).subscribe(me=>{me.added.forEach(We=>We.select()),me.removed.forEach(We=>We.deselect())}),this.options.changes.pipe((0,Te.Z)(null),(0,bt.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const me=this._getTriggerAriaLabelledby(),We=this.ngControl;if(me!==this._triggerAriaLabelledBy){const Pe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=me,me?Pe.setAttribute("aria-labelledby",me):Pe.removeAttribute("aria-labelledby")}We&&(this._previousControl!==We.control&&(void 0!==this._previousControl&&null!==We.disabled&&We.disabled!==this.disabled&&(this.disabled=We.disabled),this._previousControl=We.control),this.updateErrorState())}ngOnChanges(me){(me.disabled||me.userAriaDescribedBy)&&this.stateChanges.next(),me.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(){const me=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!me)return;const We=`${this.id}-panel`;this._trackedModal&&(0,re.Ae)(this._trackedModal,"aria-owns",We),(0,re.px)(me,"aria-owns",We),this._trackedModal=me}_clearFromModal(){this._trackedModal&&((0,re.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),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(me){this._assignValue(me)}registerOnChange(me){this._onChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const me=this._selectionModel.selected.map(We=>We.viewValue);return this._isRtl()&&me.reverse(),me.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(me){this.disabled||(this.panelOpen?this._handleOpenKeydown(me):this._handleClosedKeydown(me))}_handleClosedKeydown(me){const We=me.keyCode,Pe=We===U.n6||We===U.i7||We===U.UQ||We===U.LE,xt=We===U.Fm||We===U.t6,xe=this._keyManager;if(!xe.isTyping()&&xt&&!(0,U.rp)(me)||(this.multiple||me.altKey)&&Pe)me.preventDefault(),this.open();else if(!this.multiple){const ut=this.selected;xe.onKeydown(me);const Rt=this.selected;Rt&&ut!==Rt&&this._liveAnnouncer.announce(Rt.viewValue,1e4)}}_handleOpenKeydown(me){const We=this._keyManager,Pe=me.keyCode,xt=Pe===U.n6||Pe===U.i7,xe=We.isTyping();if(xt&&me.altKey)me.preventDefault(),this.close();else if(xe||Pe!==U.Fm&&Pe!==U.t6||!We.activeItem||(0,U.rp)(me))if(!xe&&this._multiple&&Pe===U.A&&me.ctrlKey){me.preventDefault();const ut=this.options.some(Rt=>!Rt.disabled&&!Rt.selected);this.options.forEach(Rt=>{Rt.disabled||(ut?Rt.select():Rt.deselect())})}else{const ut=We.activeItemIndex;We.onKeydown(me),this._multiple&&xt&&me.shiftKey&&We.activeItem&&We.activeItemIndex!==ut&&We.activeItem._selectViaInteraction()}else me.preventDefault(),We.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Ve.s)(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(me){if(this.options.forEach(We=>We.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&me)Array.isArray(me),me.forEach(We=>this._selectOptionByValue(We)),this._sortValues();else{const We=this._selectOptionByValue(me);We?this._keyManager.updateActiveItem(We):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(me){const We=this.options.find(Pe=>{if(this._selectionModel.isSelected(Pe))return!1;try{return null!=Pe.value&&this._compareWith(Pe.value,me)}catch{return!1}});return We&&this._selectionModel.select(We),We}_assignValue(me){return!!(me!==this._value||this._multiple&&Array.isArray(me))&&(this.options&&this._setSelectionByValue(me),this._value=me,!0)}_getOverlayWidth(me){return"auto"===this.panelWidth?(me instanceof u.$Q?me.elementRef:me||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const me of this.options)me._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new re.Au(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(){const me=(0,be.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,bt.Q)(me)).subscribe(We=>{this._onSelect(We.source,We.isUserInput),We.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,be.h)(...this.options.map(We=>We._stateChanges)).pipe((0,bt.Q)(me)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(me,We){const Pe=this._selectionModel.isSelected(me);null!=me.value||this._multiple?(Pe!==me.selected&&(me.selected?this._selectionModel.select(me):this._selectionModel.deselect(me)),We&&this._keyManager.setActiveItem(me),this.multiple&&(this._sortValues(),We&&this.focus())):(me.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(me.value)),Pe!==this._selectionModel.isSelected(me)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const me=this.options.toArray();this._selectionModel.sort((We,Pe)=>this.sortComparator?this.sortComparator(We,Pe,me):me.indexOf(We)-me.indexOf(Pe)),this.stateChanges.next()}}_propagateChanges(me){let We;We=this.multiple?this.selected.map(Pe=>Pe.value):this.selected?this.selected.value:me,this._value=We,this.valueChange.emit(We),this._onChange(We),this.selectionChange.emit(this._getChangeEvent(We)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let me=-1;for(let We=0;We0}focus(me){this._elementRef.nativeElement.focus(me)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const me=this._parentFormField?.getLabelId();return this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const me=this._parentFormField?.getLabelId();let We=(me?me+" ":"")+this._valueId;return this.ariaLabelledby&&(We+=" "+this.ariaLabelledby),We}_panelDoneAnimating(me){this.openedChange.emit(me)}setDescribedByIds(me){me.length?this._elementRef.nativeElement.setAttribute("aria-describedby",me.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(We){return new(We||we)(o.rXU(ee.Xj),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(B.es),o.rXU(o.aKT),o.rXU(V.dS,8),o.rXU(L.cV,8),o.rXU(L.j4,8),o.rXU(W.xb,8),o.rXU(L.vO,10),o.kS0("tabindex"),o.rXU(Ee),o.rXU(re.Ai),o.rXU(Se,8))}}static{this.\u0275cmp=o.VBU({type:we,selectors:[["mat-select"]],contentQueries:function(We,Pe,xt){if(1&We&&(o.wni(xt,Ne,5),o.wni(xt,B.wT,5),o.wni(xt,B.QC,5)),2&We){let xe;o.mGM(xe=o.lsd())&&(Pe.customTrigger=xe.first),o.mGM(xe=o.lsd())&&(Pe.options=xe),o.mGM(xe=o.lsd())&&(Pe.optionGroups=xe)}},viewQuery:function(We,Pe){if(1&We&&(o.GBs(Xe,5),o.GBs(se,5),o.GBs(u.WB,5)),2&We){let xt;o.mGM(xt=o.lsd())&&(Pe.trigger=xt.first),o.mGM(xt=o.lsd())&&(Pe.panel=xt.first),o.mGM(xt=o.lsd())&&(Pe._overlayDir=xt.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(We,Pe){1&We&&o.bIt("keydown",function(xe){return Pe._handleKeydown(xe)})("focus",function(){return Pe._onFocus()})("blur",function(){return Pe._onBlur()}),2&We&&(o.BMQ("id",Pe.id)("tabindex",Pe.disabled?-1:Pe.tabIndex)("aria-controls",Pe.panelOpen?Pe.id+"-panel":null)("aria-expanded",Pe.panelOpen)("aria-label",Pe.ariaLabel||null)("aria-required",Pe.required.toString())("aria-disabled",Pe.disabled.toString())("aria-invalid",Pe.errorState)("aria-activedescendant",Pe._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",Pe.disabled)("mat-mdc-select-invalid",Pe.errorState)("mat-mdc-select-required",Pe.required)("mat-mdc-select-empty",Pe.empty)("mat-mdc-select-multiple",Pe.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",o.L39],disableRipple:[2,"disableRipple","disableRipple",o.L39],tabIndex:[2,"tabIndex","tabIndex",me=>null==me?0:(0,o.Udg)(me)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39],placeholder:"placeholder",required:[2,"required","required",o.L39],multiple:[2,"multiple","multiple",o.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",o.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",o.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[o.Jv_([{provide:W.qT,useExisting:we},{provide:B.is,useExisting:we}]),o.GFd,o.OA$,o.aNF],ngContentSelectors:Le,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(We,Pe){if(1&We){const xt=o.RV6();o.NAR(fe),o.j41(0,"div",2,0),o.bIt("click",function(){return o.eBV(xt),o.Njj(Pe.open())}),o.j41(3,"div",3),o.DNE(4,et,2,1,"span",4)(5,Tt,3,1,"span",5),o.k0s(),o.j41(6,"div",6)(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s()()()(),o.DNE(10,nn,3,9,"ng-template",10),o.bIt("backdropClick",function(){return o.eBV(xt),o.Njj(Pe.close())})("attach",function(){return o.eBV(xt),o.Njj(Pe._onAttached())})("detach",function(){return o.eBV(xt),o.Njj(Pe.close())})}if(2&We){const xt=o.sdS(1);o.R7$(3),o.BMQ("id",Pe._valueId),o.R7$(),o.vxM(Pe.empty?4:5),o.R7$(6),o.Y8G("cdkConnectedOverlayPanelClass",Pe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Pe._scrollStrategy)("cdkConnectedOverlayOrigin",Pe._preferredOverlayOrigin||xt)("cdkConnectedOverlayOpen",Pe.panelOpen)("cdkConnectedOverlayPositions",Pe._positions)("cdkConnectedOverlayWidth",Pe._overlayWidth)}},dependencies:[u.$Q,u.WB,y.YU],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:[Fn.transformPanel]},changeDetection:0})}}return we})(),Lt=(()=>{class we{static{this.\u0275fac=function(We){return new(We||we)}}static{this.\u0275dir=o.FsC({type:we,selectors:[["mat-select-trigger"]],standalone:!0,features:[o.Jv_([{provide:Ne,useExisting:we}])]})}}return we})(),Mt=(()=>{class we{static{this.\u0275fac=function(We){return new(We||we)}}static{this.\u0275mod=o.$C({type:we})}static{this.\u0275inj=o.G2t({providers:[gt],imports:[y.MD,u.z_,B.Sy,B.yE,ee.Gj,W.RG,B.Sy,B.yE]})}}return we})()},882:(tn,Re,v)=>{"use strict";v.d(Re,{$C:()=>gt,$l:()=>J,qe:()=>Se,vg:()=>Lt});var u=v(5542),y=v(4438),o=v(6600),B=v(9888),W=v(8203),ee=v(4085),re=v(7336),V=v(6860),F=v(177),U=v(1413),L=v(3726),he=v(7786),de=v(5964),be=v(6354),Te=v(3703),Me=v(6977),te=v(3294),ve=v(6697),tt=v(9172),bt=v(152),Ve=v(9969);const rt=["*"],Xe=["content"],se=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],fe=["mat-drawer","mat-drawer-content","*"];function Le(Mt,we){if(1&Mt){const Oe=y.RV6();y.j41(0,"div",1),y.bIt("click",function(){y.eBV(Oe);const We=y.XpG();return y.Njj(We._onBackdropClicked())}),y.k0s()}if(2&Mt){const Oe=y.XpG();y.AVh("mat-drawer-shown",Oe._isShowingBackdrop())}}function et(Mt,we){1&Mt&&(y.j41(0,"mat-drawer-content"),y.SdG(1,2),y.k0s())}const $n={transformDrawer:(0,Ve.hZ)("transform",[(0,Ve.wk)("open, open-instant",(0,Ve.iF)({transform:"none",visibility:"visible"})),(0,Ve.wk)("void",(0,Ve.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Ve.kY)("void => open-instant",(0,Ve.i0)("0ms")),(0,Ve.kY)("void <=> open, open-instant => void",(0,Ve.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},di=new y.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ee(){return!1}}),mt=new y.nKC("MAT_DRAWER_CONTAINER");let J=(()=>{class Mt extends u.uv{constructor(Oe,me,We,Pe,xt){super(We,Pe,xt),this._changeDetectorRef=Oe,this._container=me}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(y.gRc),y.rXU((0,y.Rfq)(()=>gt)),y.rXU(y.aKT),y.rXU(u.R),y.rXU(y.SKi))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(me,We){2&me&&y.xc7("margin-left",We._container._contentMargins.left,"px")("margin-right",We._container._contentMargins.right,"px")},standalone:!0,features:[y.Jv_([{provide:u.uv,useExisting:Mt}]),y.Vt3,y.aNF],ngContentSelectors:rt,decls:1,vars:0,template:function(me,We){1&me&&(y.NAR(),y.SdG(0))},encapsulation:2,changeDetection:0})}}return Mt})(),Se=(()=>{class Mt{get position(){return this._position}set position(Oe){(Oe="end"===Oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Oe),this._position=Oe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Oe){this._mode=Oe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Oe){this._disableClose=(0,ee.he)(Oe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Oe){("true"===Oe||"false"===Oe||null==Oe)&&(Oe=(0,ee.he)(Oe)),this._autoFocus=Oe}get opened(){return this._opened}set opened(Oe){this.toggle((0,ee.he)(Oe))}constructor(Oe,me,We,Pe,xt,xe,ut,Rt){this._elementRef=Oe,this._focusTrapFactory=me,this._focusMonitor=We,this._platform=Pe,this._ngZone=xt,this._interactivityChecker=xe,this._doc=ut,this._container=Rt,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.B,this._animationEnd=new U.B,this._animationState="void",this.openedChange=new y.bkB(!0),this._openedStream=this.openedChange.pipe((0,de.p)(wt=>wt),(0,be.T)(()=>{})),this.openedStart=this._animationStarted.pipe((0,de.p)(wt=>wt.fromState!==wt.toState&&0===wt.toState.indexOf("open")),(0,Te.u)(void 0)),this._closedStream=this.openedChange.pipe((0,de.p)(wt=>!wt),(0,be.T)(()=>{})),this.closedStart=this._animationStarted.pipe((0,de.p)(wt=>wt.fromState!==wt.toState&&"void"===wt.toState),(0,Te.u)(void 0)),this._destroyed=new U.B,this.onPositionChanged=new y.bkB,this._modeChanged=new U.B,this._injector=(0,y.WQX)(y.zZn),this._changeDetectorRef=(0,y.WQX)(y.gRc),this.openedChange.pipe((0,Me.Q)(this._destroyed)).subscribe(wt=>{wt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,L.R)(this._elementRef.nativeElement,"keydown").pipe((0,de.p)(wt=>wt.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(wt)),(0,Me.Q)(this._destroyed)).subscribe(wt=>this._ngZone.run(()=>{this.close(),wt.stopPropagation(),wt.preventDefault()}))}),this._animationEnd.pipe((0,te.F)((wt,mn)=>wt.fromState===mn.fromState&&wt.toState===mn.toState)).subscribe(wt=>{const{fromState:mn,toState:ni}=wt;(0===ni.indexOf("open")&&"void"===mn||"void"===ni&&0===mn.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Oe,me){this._interactivityChecker.isFocusable(Oe)||(Oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const We=()=>{Oe.removeEventListener("blur",We),Oe.removeEventListener("mousedown",We),Oe.removeAttribute("tabindex")};Oe.addEventListener("blur",We),Oe.addEventListener("mousedown",We)})),Oe.focus(me)}_focusByCssSelector(Oe,me){let We=this._elementRef.nativeElement.querySelector(Oe);We&&this._forceFocus(We,me)}_takeFocus(){if(!this._focusTrap)return;const Oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,y.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof Oe.focus&&Oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Oe=this._doc.activeElement;return!!Oe&&this._elementRef.nativeElement.contains(Oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&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(Oe){return this.toggle(!0,Oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Oe=!this.opened,me){Oe&&me&&(this._openedVia=me);const We=this._setOpen(Oe,!Oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return Oe||(this._openedVia=null),We}_setOpen(Oe,me,We){return this._opened=Oe,Oe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",me&&this._restoreFocus(We)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Pe=>{this.openedChange.pipe((0,ve.s)(1)).subscribe(xt=>Pe(xt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(Oe){if(!this._platform.isBrowser)return;const me=this._elementRef.nativeElement,We=me.parentNode;"end"===Oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),We.insertBefore(this._anchor,me)),We.appendChild(me)):this._anchor&&this._anchor.parentNode.insertBefore(me,this._anchor)}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(y.aKT),y.rXU(B.GX),y.rXU(B.FN),y.rXU(V.OD),y.rXU(y.SKi),y.rXU(B.Z7),y.rXU(F.qQ,8),y.rXU(mt,8))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer"]],viewQuery:function(me,We){if(1&me&&y.GBs(Xe,5),2&me){let Pe;y.mGM(Pe=y.lsd())&&(We._content=Pe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(me,We){1&me&&y.Kam("@transform.start",function(xt){return We._animationStarted.next(xt)})("@transform.done",function(xt){return We._animationEnd.next(xt)}),2&me&&(y.zvX("@transform",We._animationState),y.BMQ("align",null),y.AVh("mat-drawer-end","end"===We.position)("mat-drawer-over","over"===We.mode)("mat-drawer-push","push"===We.mode)("mat-drawer-side","side"===We.mode)("mat-drawer-opened",We.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:[y.aNF],ngContentSelectors:rt,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(me,We){1&me&&(y.NAR(),y.j41(0,"div",1,0),y.SdG(2),y.k0s())},dependencies:[u.uv],encapsulation:2,data:{animation:[$n.transformDrawer]},changeDetection:0})}}return Mt})(),gt=(()=>{class Mt{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Oe){this._autosize=(0,ee.he)(Oe)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(Oe){this._backdropOverride=null==Oe?null:(0,ee.he)(Oe)}get scrollable(){return this._userContent||this._content}constructor(Oe,me,We,Pe,xt,xe=!1,ut){this._dir=Oe,this._element=me,this._ngZone=We,this._changeDetectorRef=Pe,this._animationMode=ut,this._drawers=new y.rOR,this.backdropClick=new y.bkB,this._destroyed=new U.B,this._doCheckSubject=new U.B,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.B,this._injector=(0,y.WQX)(y.zZn),Oe&&Oe.change.pipe((0,Me.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),xt.change().pipe((0,Me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=xe}ngAfterContentInit(){this._allDrawers.changes.pipe((0,tt.Z)(this._allDrawers),(0,Me.Q)(this._destroyed)).subscribe(Oe=>{this._drawers.reset(Oe.filter(me=>!me._container||me._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,tt.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Oe=>{this._watchDrawerToggle(Oe),this._watchDrawerPosition(Oe),this._watchDrawerMode(Oe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,bt.B)(10),(0,Me.Q)(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(Oe=>Oe.open())}close(){this._drawers.forEach(Oe=>Oe.close())}updateContentMargins(){let Oe=0,me=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Oe+=this._left._getWidth();else if("push"==this._left.mode){const We=this._left._getWidth();Oe+=We,me-=We}if(this._right&&this._right.opened)if("side"==this._right.mode)me+=this._right._getWidth();else if("push"==this._right.mode){const We=this._right._getWidth();me+=We,Oe-=We}Oe=Oe||null,me=me||null,(Oe!==this._contentMargins.left||me!==this._contentMargins.right)&&(this._contentMargins={left:Oe,right:me},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Oe){Oe._animationStarted.pipe((0,de.p)(me=>me.fromState!==me.toState),(0,Me.Q)(this._drawers.changes)).subscribe(me=>{"open-instant"!==me.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Oe.mode&&Oe.openedChange.pipe((0,Me.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Oe.opened))}_watchDrawerPosition(Oe){Oe&&Oe.onPositionChanged.pipe((0,Me.Q)(this._drawers.changes)).subscribe(()=>{(0,y.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:y.wjH.Read})})}_watchDrawerMode(Oe){Oe&&Oe._modeChanged.pipe((0,Me.Q)((0,he.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Oe){const me=this._element.nativeElement.classList,We="mat-drawer-container-has-open";Oe?me.add(We):me.remove(We)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Oe=>{"end"==Oe.position?this._end=Oe:this._start=Oe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Oe=>Oe&&!Oe.disableClose&&this._drawerHasBackdrop(Oe)).forEach(Oe=>Oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(Oe){return null!=Oe&&Oe.opened}_drawerHasBackdrop(Oe){return null==this._backdropOverride?!!Oe&&"side"!==Oe.mode:this._backdropOverride}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(W.dS,8),y.rXU(y.aKT),y.rXU(y.SKi),y.rXU(y.gRc),y.rXU(u.Xj),y.rXU(di),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer-container"]],contentQueries:function(me,We,Pe){if(1&me&&(y.wni(Pe,J,5),y.wni(Pe,Se,5)),2&me){let xt;y.mGM(xt=y.lsd())&&(We._content=xt.first),y.mGM(xt=y.lsd())&&(We._allDrawers=xt)}},viewQuery:function(me,We){if(1&me&&y.GBs(J,5),2&me){let Pe;y.mGM(Pe=y.lsd())&&(We._userContent=Pe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(me,We){2&me&&y.AVh("mat-drawer-container-explicit-backdrop",We._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[y.Jv_([{provide:mt,useExisting:Mt}]),y.aNF],ngContentSelectors:fe,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(me,We){1&me&&(y.NAR(se),y.DNE(0,Le,1,2,"div",0),y.SdG(1),y.SdG(2,1),y.DNE(3,et,2,0,"mat-drawer-content")),2&me&&(y.vxM(We.hasBackdrop?0:-1),y.R7$(3),y.vxM(We._content?-1:3))},dependencies:[J],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})}}return Mt})(),Lt=(()=>{class Mt{static{this.\u0275fac=function(me){return new(me||Mt)}}static{this.\u0275mod=y.$C({type:Mt})}static{this.\u0275inj=y.G2t({imports:[o.yE,u.Gj,u.Gj,o.yE]})}}return Mt})()},4823:(tn,Re,v)=>{"use strict";v.d(Re,{oV:()=>Tt,uc:()=>$n});var u=v(6977),y=v(4085),o=v(7336),B=v(4438),W=v(177),ee=v(6860),re=v(9888),V=v(8203),F=v(7987),U=v(5542),L=v(6939),he=v(1413),be=(v(9969),v(6600));const Te=["tooltip"],ve=new B.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const yn=(0,B.WQX)(F.hJ);return()=>yn.scrollStrategies.reposition({scrollThrottle:20})}}),bt={provide:ve,deps:[F.hJ],useFactory:function tt(yn){return()=>yn.scrollStrategies.reposition({scrollThrottle:20})}},rt=new B.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ve(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),se="tooltip-panel",fe=(0,ee.BQ)({passive:!0});let Tt=(()=>{class yn{get position(){return this._position}set position(mt){mt!==this._position&&(this._position=mt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(mt){this._positionAtOrigin=(0,y.he)(mt),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(mt){const Ee=(0,y.he)(mt);this._disabled!==Ee&&(this._disabled=Ee,Ee?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(mt){this._showDelay=(0,y.OE)(mt)}get hideDelay(){return this._hideDelay}set hideDelay(mt){this._hideDelay=(0,y.OE)(mt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(mt){const Ee=this._message;this._message=null!=mt?String(mt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(Ee)}get tooltipClass(){return this._tooltipClass}set tooltipClass(mt){this._tooltipClass=mt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(mt,Ee,J,Se,gt,Ne,Ze,je,Lt,Mt,we,Oe){this._overlay=mt,this._elementRef=Ee,this._scrollDispatcher=J,this._viewContainerRef=Se,this._ngZone=gt,this._platform=Ne,this._ariaDescriber=Ze,this._focusMonitor=je,this._dir=Mt,this._defaultOptions=we,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=nn,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new he.B,this._injector=(0,B.WQX)(B.zZn),this._scrollStrategy=Lt,this._document=Oe,we&&(this._showDelay=we.showDelay,this._hideDelay=we.hideDelay,we.position&&(this.position=we.position),we.positionAtOrigin&&(this.positionAtOrigin=we.positionAtOrigin),we.touchGestures&&(this.touchGestures=we.touchGestures),we.tooltipClass&&(this.tooltipClass=we.tooltipClass)),Mt.change.pipe((0,u.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,u.Q)(this._destroyed)).subscribe(mt=>{mt?"keyboard"===mt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const mt=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ee,J])=>{mt.removeEventListener(Ee,J,fe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(mt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(mt)}show(mt=this.showDelay,Ee){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const J=this._createOverlay(Ee);this._detach(),this._portal=this._portal||new L.A8(this._tooltipComponent,this._viewContainerRef);const Se=this._tooltipInstance=J.attach(this._portal).instance;Se._triggerElement=this._elementRef.nativeElement,Se._mouseLeaveHideDelay=this._hideDelay,Se.afterHidden().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Se.show(mt)}hide(mt=this.hideDelay){const Ee=this._tooltipInstance;Ee&&(Ee.isVisible()?Ee.hide(mt):(Ee._cancelPendingAnimations(),this._detach()))}toggle(mt){this._isTooltipVisible()?this.hide():this.show(void 0,mt)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(mt){if(this._overlayRef){const Se=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!mt)&&Se._origin instanceof B.aKT)return this._overlayRef;this._detach()}const Ee=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),J=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&mt||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ee);return J.positionChanges.pipe((0,u.Q)(this._destroyed)).subscribe(Se=>{this._updateCurrentPositionClass(Se.connectionPair),this._tooltipInstance&&Se.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:J,panelClass:`${this._cssClassPrefix}-${se}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,u.Q)(this._destroyed)).subscribe(Se=>{this._isTooltipVisible()&&Se.keyCode===o._f&&!(0,o.rp)(Se)&&(Se.preventDefault(),Se.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(mt){const Ee=mt.getConfig().positionStrategy,J=this._getOrigin(),Se=this._getOverlayPosition();Ee.withPositions([this._addOffset({...J.main,...Se.main}),this._addOffset({...J.fallback,...Se.fallback})])}_addOffset(mt){const J=!this._dir||"ltr"==this._dir.value;return"top"===mt.originY?mt.offsetY=-8:"bottom"===mt.originY?mt.offsetY=8:"start"===mt.originX?mt.offsetX=J?-8:8:"end"===mt.originX&&(mt.offsetX=J?8:-8),mt}_getOrigin(){const mt=!this._dir||"ltr"==this._dir.value,Ee=this.position;let J;"above"==Ee||"below"==Ee?J={originX:"center",originY:"above"==Ee?"top":"bottom"}:"before"==Ee||"left"==Ee&&mt||"right"==Ee&&!mt?J={originX:"start",originY:"center"}:("after"==Ee||"right"==Ee&&mt||"left"==Ee&&!mt)&&(J={originX:"end",originY:"center"});const{x:Se,y:gt}=this._invertPosition(J.originX,J.originY);return{main:J,fallback:{originX:Se,originY:gt}}}_getOverlayPosition(){const mt=!this._dir||"ltr"==this._dir.value,Ee=this.position;let J;"above"==Ee?J={overlayX:"center",overlayY:"bottom"}:"below"==Ee?J={overlayX:"center",overlayY:"top"}:"before"==Ee||"left"==Ee&&mt||"right"==Ee&&!mt?J={overlayX:"end",overlayY:"center"}:("after"==Ee||"right"==Ee&&mt||"left"==Ee&&!mt)&&(J={overlayX:"start",overlayY:"center"});const{x:Se,y:gt}=this._invertPosition(J.overlayX,J.overlayY);return{main:J,fallback:{overlayX:Se,overlayY:gt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,B.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(mt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=mt,this._tooltipInstance._markForCheck())}_invertPosition(mt,Ee){return"above"===this.position||"below"===this.position?"top"===Ee?Ee="bottom":"bottom"===Ee&&(Ee="top"):"end"===mt?mt="start":"start"===mt&&(mt="end"),{x:mt,y:Ee}}_updateCurrentPositionClass(mt){const{overlayY:Ee,originX:J,originY:Se}=mt;let gt;if(gt="center"===Ee?this._dir&&"rtl"===this._dir.value?"end"===J?"left":"right":"start"===J?"left":"right":"bottom"===Ee&&"top"===Se?"above":"below",gt!==this._currentPosition){const Ne=this._overlayRef;if(Ne){const Ze=`${this._cssClassPrefix}-${se}-`;Ne.removePanelClass(Ze+this._currentPosition),Ne.addPanelClass(Ze+gt)}this._currentPosition=gt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",mt=>{let Ee;this._setupPointerExitEventsIfNeeded(),void 0!==mt.x&&void 0!==mt.y&&(Ee=mt),this.show(void 0,Ee)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",mt=>{const Ee=mt.targetTouches?.[0],J=Ee?{x:Ee.clientX,y:Ee.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,J)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const mt=[];if(this._platformSupportsMouseEvents())mt.push(["mouseleave",Ee=>{const J=Ee.relatedTarget;(!J||!this._overlayRef?.overlayElement.contains(J))&&this.hide()}],["wheel",Ee=>this._wheelListener(Ee)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ee=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};mt.push(["touchend",Ee],["touchcancel",Ee])}this._addListeners(mt),this._passiveListeners.push(...mt)}_addListeners(mt){mt.forEach(([Ee,J])=>{this._elementRef.nativeElement.addEventListener(Ee,J,fe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(mt){if(this._isTooltipVisible()){const Ee=this._document.elementFromPoint(mt.clientX,mt.clientY),J=this._elementRef.nativeElement;Ee!==J&&!J.contains(Ee)&&this.hide()}}_disableNativeGesturesIfNecessary(){const mt=this.touchGestures;if("off"!==mt){const Ee=this._elementRef.nativeElement,J=Ee.style;("on"===mt||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName)&&(J.userSelect=J.msUserSelect=J.webkitUserSelect=J.MozUserSelect="none"),("on"===mt||!Ee.draggable)&&(J.webkitUserDrag="none"),J.touchAction="none",J.webkitTapHighlightColor="transparent"}}_syncAriaDescription(mt){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,mt,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(Ee){return new(Ee||yn)(B.rXU(F.hJ),B.rXU(B.aKT),B.rXU(U.R),B.rXU(B.c1b),B.rXU(B.SKi),B.rXU(ee.OD),B.rXU(re.vr),B.rXU(re.FN),B.rXU(ve),B.rXU(V.dS),B.rXU(rt,8),B.rXU(W.qQ))}}static{this.\u0275dir=B.FsC({type:yn,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(Ee,J){2&Ee&&B.AVh("mat-mdc-tooltip-disabled",J.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})}}return yn})(),nn=(()=>{class yn{constructor(mt,Ee,J){this._changeDetectorRef=mt,this._elementRef=Ee,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new he.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===J}show(mt){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},mt)}hide(mt){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},mt)}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:mt}){(!mt||!this._triggerElement.contains(mt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const mt=this._elementRef.nativeElement.getBoundingClientRect();return mt.height>24&&mt.width>=200}_handleAnimationEnd({animationName:mt}){(mt===this._showAnimation||mt===this._hideAnimation)&&this._finalizeAnimation(mt===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(mt){mt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(mt){const Ee=this._tooltip.nativeElement,J=this._showAnimation,Se=this._hideAnimation;if(Ee.classList.remove(mt?Se:J),Ee.classList.add(mt?J:Se),this._isVisible!==mt&&(this._isVisible=mt,this._changeDetectorRef.markForCheck()),mt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const gt=getComputedStyle(Ee);("0s"===gt.getPropertyValue("animation-duration")||"none"===gt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}mt&&this._onShow(),this._animationsDisabled&&(Ee.classList.add("_mat-animation-noopable"),this._finalizeAnimation(mt))}static{this.\u0275fac=function(Ee){return new(Ee||yn)(B.rXU(B.gRc),B.rXU(B.aKT),B.rXU(B.bc$,8))}}static{this.\u0275cmp=B.VBU({type:yn,selectors:[["mat-tooltip-component"]],viewQuery:function(Ee,J){if(1&Ee&&B.GBs(Te,7),2&Ee){let Se;B.mGM(Se=B.lsd())&&(J._tooltip=Se.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(Ee,J){1&Ee&&B.bIt("mouseleave",function(gt){return J._handleMouseLeave(gt)})},standalone:!0,features:[B.aNF],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(Ee,J){if(1&Ee){const Se=B.RV6();B.j41(0,"div",1,0),B.bIt("animationend",function(Ne){return B.eBV(Se),B.Njj(J._handleAnimationEnd(Ne))}),B.j41(2,"div",2),B.EFF(3),B.k0s()()}2&Ee&&(B.AVh("mdc-tooltip--multiline",J._isMultiline),B.Y8G("ngClass",J.tooltipClass),B.R7$(3),B.JRh(J.message))},dependencies:[W.YU],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})}}return yn})(),$n=(()=>{class yn{static{this.\u0275fac=function(Ee){return new(Ee||yn)}}static{this.\u0275mod=B.$C({type:yn})}static{this.\u0275inj=B.G2t({providers:[bt],imports:[re.Pd,W.MD,F.z_,be.yE,be.yE,U.Gj]})}}return yn})()},345:(tn,Re,v)=>{"use strict";v.d(Re,{B7:()=>fe,B8:()=>J,hE:()=>ut,up:()=>le});var u=v(177),y=v(4438);class o extends u.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class B extends o{static makeCurrent(){(0,u.ZD)(new B)}onAndCancel(Be,ye,Ye){return Be.addEventListener(ye,Ye),()=>{Be.removeEventListener(ye,Ye)}}dispatchEvent(Be,ye){Be.dispatchEvent(ye)}remove(Be){Be.remove()}createElement(Be,ye){return(ye=ye||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,ye){return"window"===ye?window:"document"===ye?Be:"body"===ye?Be.body:null}getBaseHref(Be){const ye=function ee(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}();return null==ye?null:function re(He){return new URL(He,document.baseURI).pathname}(ye)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,u._b)(document.cookie,Be)}}let W=null,F=(()=>{class He{build(){return new XMLHttpRequest}static{this.\u0275fac=function(Ye){return new(Ye||He)}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const U=new y.nKC("");let L=(()=>{class He{constructor(ye,Ye){this._zone=Ye,this._eventNameToPlugin=new Map,ye.forEach(Gt=>{Gt.manager=this}),this._plugins=ye.slice().reverse()}addEventListener(ye,Ye,Gt){return this._findPluginFor(Ye).addEventListener(ye,Ye,Gt)}getZone(){return this._zone}_findPluginFor(ye){let Ye=this._eventNameToPlugin.get(ye);if(Ye)return Ye;if(Ye=this._plugins.find(Pn=>Pn.supports(ye)),!Ye)throw new y.wOt(5101,!1);return this._eventNameToPlugin.set(ye,Ye),Ye}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(U),y.KVO(y.SKi))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();class he{constructor(Be){this._doc=Be}}const de="ng-app-id";let be=(()=>{class He{constructor(ye,Ye,Gt,Pn={}){this.doc=ye,this.appId=Ye,this.nonce=Gt,this.platformId=Pn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.Vy)(Pn),this.resetHostNodes()}addStyles(ye){for(const Ye of ye)1===this.changeUsageCount(Ye,1)&&this.onStyleAdded(Ye)}removeStyles(ye){for(const Ye of ye)this.changeUsageCount(Ye,-1)<=0&&this.onStyleRemoved(Ye)}ngOnDestroy(){const ye=this.styleNodesInDOM;ye&&(ye.forEach(Ye=>Ye.remove()),ye.clear());for(const Ye of this.getAllStyles())this.onStyleRemoved(Ye);this.resetHostNodes()}addHost(ye){this.hostNodes.add(ye);for(const Ye of this.getAllStyles())this.addStyleToHost(ye,Ye)}removeHost(ye){this.hostNodes.delete(ye)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ye){for(const Ye of this.hostNodes)this.addStyleToHost(Ye,ye)}onStyleRemoved(ye){const Ye=this.styleRef;Ye.get(ye)?.elements?.forEach(Gt=>Gt.remove()),Ye.delete(ye)}collectServerRenderedStyles(){const ye=this.doc.head?.querySelectorAll(`style[${de}="${this.appId}"]`);if(ye?.length){const Ye=new Map;return ye.forEach(Gt=>{null!=Gt.textContent&&Ye.set(Gt.textContent,Gt)}),Ye}return null}changeUsageCount(ye,Ye){const Gt=this.styleRef;if(Gt.has(ye)){const Pn=Gt.get(ye);return Pn.usage+=Ye,Pn.usage}return Gt.set(ye,{usage:Ye,elements:[]}),Ye}getStyleElement(ye,Ye){const Gt=this.styleNodesInDOM,Pn=Gt?.get(Ye);if(Pn?.parentNode===ye)return Gt.delete(Ye),Pn.removeAttribute(de),Pn;{const yi=this.doc.createElement("style");return this.nonce&&yi.setAttribute("nonce",this.nonce),yi.textContent=Ye,this.platformIsServer&&yi.setAttribute(de,this.appId),ye.appendChild(yi),yi}}addStyleToHost(ye,Ye){const Gt=this.getStyleElement(ye,Ye),Pn=this.styleRef,yi=Pn.get(Ye)?.elements;yi?yi.push(Gt):Pn.set(Ye,{elements:[Gt],usage:1})}resetHostNodes(){const ye=this.hostNodes;ye.clear(),ye.add(this.doc.head)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ),y.KVO(y.sZ2),y.KVO(y.BIS,8),y.KVO(y.Agw))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const Te={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Me=/%COMP%/g,Ve=new y.nKC("",{providedIn:"root",factory:()=>!0});function se(He,Be){return Be.map(ye=>ye.replace(Me,He))}let fe=(()=>{class He{constructor(ye,Ye,Gt,Pn,yi,Ti,sn,At=null){this.eventManager=ye,this.sharedStylesHost=Ye,this.appId=Gt,this.removeStylesOnCompDestroy=Pn,this.doc=yi,this.platformId=Ti,this.ngZone=sn,this.nonce=At,this.rendererByCompId=new Map,this.platformIsServer=(0,u.Vy)(Ti),this.defaultRenderer=new Le(ye,yi,sn,this.platformIsServer)}createRenderer(ye,Ye){if(!ye||!Ye)return this.defaultRenderer;this.platformIsServer&&Ye.encapsulation===y.gXe.ShadowDom&&(Ye={...Ye,encapsulation:y.gXe.Emulated});const Gt=this.getOrCreateRenderer(ye,Ye);return Gt instanceof Fn?Gt.applyToHost(ye):Gt instanceof nn&&Gt.applyStyles(),Gt}getOrCreateRenderer(ye,Ye){const Gt=this.rendererByCompId;let Pn=Gt.get(Ye.id);if(!Pn){const yi=this.doc,Ti=this.ngZone,sn=this.eventManager,At=this.sharedStylesHost,st=this.removeStylesOnCompDestroy,Bt=this.platformIsServer;switch(Ye.encapsulation){case y.gXe.Emulated:Pn=new Fn(sn,At,Ye,this.appId,st,yi,Ti,Bt);break;case y.gXe.ShadowDom:return new Tt(sn,At,ye,Ye,yi,Ti,this.nonce,Bt);default:Pn=new nn(sn,At,Ye,st,yi,Ti,Bt)}Gt.set(Ye.id,Pn)}return Pn}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(L),y.KVO(be),y.KVO(y.sZ2),y.KVO(Ve),y.KVO(u.qQ),y.KVO(y.Agw),y.KVO(y.SKi),y.KVO(y.BIS))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();class Le{constructor(Be,ye,Ye,Gt){this.eventManager=Be,this.doc=ye,this.ngZone=Ye,this.platformIsServer=Gt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,ye){return ye?this.doc.createElementNS(Te[ye]||ye,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,ye){(Et(Be)?Be.content:Be).appendChild(ye)}insertBefore(Be,ye,Ye){Be&&(Et(Be)?Be.content:Be).insertBefore(ye,Ye)}removeChild(Be,ye){ye.remove()}selectRootElement(Be,ye){let Ye="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Ye)throw new y.wOt(-5104,!1);return ye||(Ye.textContent=""),Ye}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,ye,Ye,Gt){if(Gt){ye=Gt+":"+ye;const Pn=Te[Gt];Pn?Be.setAttributeNS(Pn,ye,Ye):Be.setAttribute(ye,Ye)}else Be.setAttribute(ye,Ye)}removeAttribute(Be,ye,Ye){if(Ye){const Gt=Te[Ye];Gt?Be.removeAttributeNS(Gt,ye):Be.removeAttribute(`${Ye}:${ye}`)}else Be.removeAttribute(ye)}addClass(Be,ye){Be.classList.add(ye)}removeClass(Be,ye){Be.classList.remove(ye)}setStyle(Be,ye,Ye,Gt){Gt&(y.czy.DashCase|y.czy.Important)?Be.style.setProperty(ye,Ye,Gt&y.czy.Important?"important":""):Be.style[ye]=Ye}removeStyle(Be,ye,Ye){Ye&y.czy.DashCase?Be.style.removeProperty(ye):Be.style[ye]=""}setProperty(Be,ye,Ye){null!=Be&&(Be[ye]=Ye)}setValue(Be,ye){Be.nodeValue=ye}listen(Be,ye,Ye){if("string"==typeof Be&&!(Be=(0,u.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${ye}`);return this.eventManager.addEventListener(Be,ye,this.decoratePreventDefault(Ye))}decoratePreventDefault(Be){return ye=>{if("__ngUnwrap__"===ye)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(ye)):Be(ye))&&ye.preventDefault()}}}function Et(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class Tt extends Le{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){super(Be,Pn,yi,sn),this.sharedStylesHost=ye,this.hostEl=Ye,this.shadowRoot=Ye.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const At=se(Gt.id,Gt.styles);for(const st of At){const Bt=document.createElement("style");Ti&&Bt.setAttribute("nonce",Ti),Bt.textContent=st,this.shadowRoot.appendChild(Bt)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,ye){return super.appendChild(this.nodeOrShadowRoot(Be),ye)}insertBefore(Be,ye,Ye){return super.insertBefore(this.nodeOrShadowRoot(Be),ye,Ye)}removeChild(Be,ye){return super.removeChild(null,ye)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class nn extends Le{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){super(Be,Pn,yi,Ti),this.sharedStylesHost=ye,this.removeStylesOnCompDestroy=Gt,this.styles=sn?se(sn,Ye.styles):Ye.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fn extends nn{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){const At=Gt+"-"+Ye.id;super(Be,ye,Ye,Pn,yi,Ti,sn,At),this.contentAttr=function rt(He){return"_ngcontent-%COMP%".replace(Me,He)}(At),this.hostAttr=function Xe(He){return"_nghost-%COMP%".replace(Me,He)}(At)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,ye){const Ye=super.createElement(Be,ye);return super.setAttribute(Ye,this.contentAttr,""),Ye}}let $n=(()=>{class He extends he{constructor(ye){super(ye)}supports(ye){return!0}addEventListener(ye,Ye,Gt){return ye.addEventListener(Ye,Gt,!1),()=>this.removeEventListener(ye,Ye,Gt)}removeEventListener(ye,Ye,Gt){return ye.removeEventListener(Ye,Gt)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const yn=["alt","control","meta","shift"],di={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mt={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let Ee=(()=>{class He extends he{constructor(ye){super(ye)}supports(ye){return null!=He.parseEventName(ye)}addEventListener(ye,Ye,Gt){const Pn=He.parseEventName(Ye),yi=He.eventCallback(Pn.fullKey,Gt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.QT)().onAndCancel(ye,Pn.domEventName,yi))}static parseEventName(ye){const Ye=ye.toLowerCase().split("."),Gt=Ye.shift();if(0===Ye.length||"keydown"!==Gt&&"keyup"!==Gt)return null;const Pn=He._normalizeKey(Ye.pop());let yi="",Ti=Ye.indexOf("code");if(Ti>-1&&(Ye.splice(Ti,1),yi="code."),yn.forEach(At=>{const st=Ye.indexOf(At);st>-1&&(Ye.splice(st,1),yi+=At+".")}),yi+=Pn,0!=Ye.length||0===Pn.length)return null;const sn={};return sn.domEventName=Gt,sn.fullKey=yi,sn}static matchEventFullKeyCode(ye,Ye){let Gt=di[ye.key]||ye.key,Pn="";return Ye.indexOf("code.")>-1&&(Gt=ye.code,Pn="code."),!(null==Gt||!Gt)&&(Gt=Gt.toLowerCase()," "===Gt?Gt="space":"."===Gt&&(Gt="dot"),yn.forEach(yi=>{yi!==Gt&&(0,mt[yi])(ye)&&(Pn+=yi+".")}),Pn+=Gt,Pn===Ye)}static eventCallback(ye,Ye,Gt){return Pn=>{He.matchEventFullKeyCode(Pn,ye)&&Gt.runGuarded(()=>Ye(Pn))}}static _normalizeKey(ye){return"esc"===ye?"escape":ye}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();function J(He,Be){return(0,y.TL3)({rootComponent:He,...gt(Be)})}function gt(He){return{appProviders:[...We,...He?.providers??[]],platformProviders:Mt}}const Mt=[{provide:y.Agw,useValue:u.AJ},{provide:y.PLl,useValue:function Ze(){B.makeCurrent()},multi:!0},{provide:u.qQ,useFactory:function Lt(){return(0,y.TL$)(document),document},deps:[]}],We=[{provide:y.H8p,useValue:"root"},{provide:y.zcH,useFactory:function je(){return new y.zcH},deps:[]},{provide:U,useClass:$n,multi:!0,deps:[u.qQ,y.SKi,y.Agw]},{provide:U,useClass:Ee,multi:!0,deps:[u.qQ]},fe,be,L,{provide:y._9s,useExisting:fe},{provide:u.N0,useClass:F,deps:[]},[]];let ut=(()=>{class He{constructor(ye){this._doc=ye}getTitle(){return this._doc.title}setTitle(ye){this._doc.title=ye||""}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})(),le=(()=>{class He{static{this.\u0275fac=function(Ye){return new(Ye||He)}}static{this.\u0275prov=y.jDH({token:He,factory:function(Ye){let Gt=null;return Gt=Ye?new(Ye||He):y.KVO(ue),Gt},providedIn:"root"})}}return He})(),ue=(()=>{class He extends le{constructor(ye){super(),this._doc=ye}sanitize(ye,Ye){if(null==Ye)return null;switch(ye){case y.WPN.NONE:return Ye;case y.WPN.HTML:return(0,y.ZF7)(Ye,"HTML")?(0,y.rcV)(Ye):(0,y.h9k)(this._doc,String(Ye)).toString();case y.WPN.STYLE:return(0,y.ZF7)(Ye,"Style")?(0,y.rcV)(Ye):Ye;case y.WPN.SCRIPT:if((0,y.ZF7)(Ye,"Script"))return(0,y.rcV)(Ye);throw new y.wOt(5200,!1);case y.WPN.URL:return(0,y.ZF7)(Ye,"URL")?(0,y.rcV)(Ye):(0,y.$MX)(String(Ye));case y.WPN.RESOURCE_URL:if((0,y.ZF7)(Ye,"ResourceURL"))return(0,y.rcV)(Ye);throw new y.wOt(5201,!1);default:throw new y.wOt(5202,!1)}}bypassSecurityTrustHtml(ye){return(0,y.Kcf)(ye)}bypassSecurityTrustStyle(ye){return(0,y.cWb)(ye)}bypassSecurityTrustScript(ye){return(0,y.UyX)(ye)}bypassSecurityTrustUrl(ye){return(0,y.osQ)(ye)}bypassSecurityTrustResourceUrl(ye){return(0,y.e5t)(ye)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})()},9192:(tn,Re,v)=>{"use strict";v.d(Re,{nX:()=>Vr,wF:()=>oe,Kp:()=>Qn,Ix:()=>St,Wk:()=>kn,wQ:()=>fn,iI:()=>Uo,n3:()=>Xo,lh:()=>ki,oH:()=>Cr,Sn:()=>Io});var u=v(4438),y=v(4402),o=v(6648),B=v(7673),W=v(4412),ee=v(4572),re=v(9350),V=v(8793),F=v(9030),U=v(1203),L=v(8810),he=v(983),de=v(17),be=v(1413),Te=v(8359),Me=v(177),te=v(6354),ve=v(5558),tt=v(6697),bt=v(9172),Ve=v(5964),rt=v(1397),Xe=v(9974),se=v(4360);function fe(E){return(0,Xe.N)((O,D)=>{let R=!1;O.subscribe((0,se._)(D,Z=>{R=!0,D.next(Z)},()=>{R||D.next(E),D.complete()}))})}function Le(E=et){return(0,Xe.N)((O,D)=>{let R=!1;O.subscribe((0,se._)(D,Z=>{R=!0,D.next(Z)},()=>R?D.complete():D.error(E())))})}function et(){return new re.G}var It=v(3669);function Et(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,Ve.p)((Z,De)=>E(Z,De,R)):It.D,(0,tt.s)(1),D?fe(O):Le(()=>new re.G))}var Tt=v(274),nn=v(8141),Fn=v(9437);function di(E){return E<=0?()=>he.w:(0,Xe.N)((O,D)=>{let R=[];O.subscribe((0,se._)(D,Z=>{R.push(Z),E{for(const Z of R)D.next(Z);D.complete()},void 0,()=>{R=null}))})}var Ee=v(3703),J=v(980),Se=v(9898),gt=v(6977),Ne=v(6365),Ze=v(345);const je="primary",Lt=Symbol("RouteTitle");class Mt{constructor(O){this.params=O||{}}has(O){return Object.prototype.hasOwnProperty.call(this.params,O)}get(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D[0]:D}return null}getAll(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function we(E){return new Mt(E)}function Oe(E,O,D){const R=D.path.split("/");if(R.length>E.length||"full"===D.pathMatch&&(O.hasChildren()||R.lengthR[De]===Z)}return E===O}function xe(E){return E.length>0?E[E.length-1]:null}function ut(E){return(0,y.A)(E)?E:(0,u.jNT)(E)?(0,o.H)(Promise.resolve(E)):(0,B.of)(E)}const Rt={exact:function Zt(E,O,D){if(!$(E.segments,O.segments)||!dt(E.segments,O.segments,D)||E.numberOfChildren!==O.numberOfChildren)return!1;for(const R in O.children)if(!E.children[R]||!Zt(E.children[R],O.children[R],D))return!1;return!0},subset:Je},wt={exact:function ni(E,O){return We(E,O)},subset:function _e(E,O){return Object.keys(O).length<=Object.keys(E).length&&Object.keys(O).every(D=>xt(E[D],O[D]))},ignored:()=>!0};function mn(E,O,D){return Rt[D.paths](E.root,O.root,D.matrixParams)&&wt[D.queryParams](E.queryParams,O.queryParams)&&!("exact"===D.fragment&&E.fragment!==O.fragment)}function Je(E,O,D){return Ge(E,O,O.segments,D)}function Ge(E,O,D,R){if(E.segments.length>D.length){const Z=E.segments.slice(0,D.length);return!(!$(Z,D)||O.hasChildren()||!dt(Z,D,R))}if(E.segments.length===D.length){if(!$(E.segments,D)||!dt(E.segments,D,R))return!1;for(const Z in O.children)if(!E.children[Z]||!Je(E.children[Z],O.children[Z],R))return!1;return!0}{const Z=D.slice(0,E.segments.length),De=D.slice(E.segments.length);return!!($(E.segments,Z)&&dt(E.segments,Z,R)&&E.children[je])&&Ge(E.children[je],O,De,R)}}function dt(E,O,D){return O.every((R,Z)=>wt[D](E[Z].parameters,R.parameters))}class rn{constructor(O=new Q([],{}),D={},R=null){this.root=O,this.queryParams=D,this.fragment=R}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){return zt.serialize(this)}}class Q{constructor(O,D){this.segments=O,this.children=D,this.parent=null,Object.values(D).forEach(R=>R.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ut(this)}}class T{constructor(O,D){this.path=O,this.parameters=D}get parameterMap(){return this._parameterMap??=we(this.parameters),this._parameterMap}toString(){return Be(this)}}function $(E,O){return E.length===O.length&&E.every((D,R)=>D.path===O[R].path)}let ue=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>new nt,providedIn:"root"})}}return E})();class nt{parse(O){const D=new ot(O);return new rn(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(O){const D=`/${jt(O.root,!0)}`,R=function Ye(E){const O=Object.entries(E).map(([D,R])=>Array.isArray(R)?R.map(Z=>`${Ln(D)}=${Ln(Z)}`).join("&"):`${Ln(D)}=${Ln(R)}`).filter(D=>D);return O.length?`?${O.join("&")}`:""}(O.queryParams);return`${D}${R}${"string"==typeof O.fragment?`#${function wi(E){return encodeURI(E)}(O.fragment)}`:""}`}}const zt=new nt;function Ut(E){return E.segments.map(O=>Be(O)).join("/")}function jt(E,O){if(!E.hasChildren())return Ut(E);if(O){const D=E.children[je]?jt(E.children[je],!1):"",R=[];return Object.entries(E.children).forEach(([Z,De])=>{Z!==je&&R.push(`${Z}:${jt(De,!1)}`)}),R.length>0?`${D}(${R.join("//")})`:D}{const D=function le(E,O){let D=[];return Object.entries(E.children).forEach(([R,Z])=>{R===je&&(D=D.concat(O(Z,R)))}),Object.entries(E.children).forEach(([R,Z])=>{R!==je&&(D=D.concat(O(Z,R)))}),D}(E,(R,Z)=>Z===je?[jt(E.children[je],!1)]:[`${Z}:${jt(R,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[je]?`${Ut(E)}/${D[0]}`:`${Ut(E)}/(${D.join("//")})`}}function On(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(E){return On(E).replace(/%3B/gi,";")}function en(E){return On(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cn(E){return decodeURIComponent(E)}function He(E){return Cn(E.replace(/\+/g,"%20"))}function Be(E){return`${en(E.path)}${function ye(E){return Object.entries(E).map(([O,D])=>`;${en(O)}=${en(D)}`).join("")}(E.parameters)}`}const Gt=/^[^\/()?;#]+/;function Pn(E){const O=E.match(Gt);return O?O[0]:""}const yi=/^[^\/()?;=#]+/,sn=/^[^=?&#]+/,st=/^[^&#]+/;class ot{constructor(O){this.url=O,this.remaining=O}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const O={};if(this.consumeOptional("?"))do{this.parseQueryParam(O)}while(this.consumeOptional("&"));return O}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const O=[];for(this.peekStartsWith("(")||O.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),O.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let R={};return this.peekStartsWith("(")&&(R=this.parseParens(!1)),(O.length>0||Object.keys(D).length>0)&&(R[je]=new Q(O,D)),R}parseSegment(){const O=Pn(this.remaining);if(""===O&&this.peekStartsWith(";"))throw new u.wOt(4009,!1);return this.capture(O),new T(Cn(O),this.parseMatrixParams())}parseMatrixParams(){const O={};for(;this.consumeOptional(";");)this.parseParam(O);return O}parseParam(O){const D=function Ti(E){const O=E.match(yi);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const Z=Pn(this.remaining);Z&&(R=Z,this.capture(R))}O[Cn(D)]=Cn(R)}parseQueryParam(O){const D=function At(E){const O=E.match(sn);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const ct=function Bt(E){const O=E.match(st);return O?O[0]:""}(this.remaining);ct&&(R=ct,this.capture(R))}const Z=He(D),De=He(R);if(O.hasOwnProperty(Z)){let ct=O[Z];Array.isArray(ct)||(ct=[ct],O[Z]=ct),ct.push(De)}else O[Z]=De}parseParens(O){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const R=Pn(this.remaining),Z=this.remaining[R.length];if("/"!==Z&&")"!==Z&&";"!==Z)throw new u.wOt(4010,!1);let De;R.indexOf(":")>-1?(De=R.slice(0,R.indexOf(":")),this.capture(De),this.capture(":")):O&&(De=je);const ct=this.parseChildren();D[De]=1===Object.keys(ct).length?ct[je]:new Q([],ct),this.consumeOptional("//")}return D}peekStartsWith(O){return this.remaining.startsWith(O)}consumeOptional(O){return!!this.peekStartsWith(O)&&(this.remaining=this.remaining.substring(O.length),!0)}capture(O){if(!this.consumeOptional(O))throw new u.wOt(4011,!1)}}function qe(E){return E.segments.length>0?new Q([],{[je]:E}):E}function Ie(E){const O={};for(const[R,Z]of Object.entries(E.children)){const De=Ie(Z);if(R===je&&0===De.segments.length&&De.hasChildren())for(const[ct,ln]of Object.entries(De.children))O[ct]=ln;else(De.segments.length>0||De.hasChildren())&&(O[R]=De)}return function lt(E){if(1===E.numberOfChildren&&E.children[je]){const O=E.children[je];return new Q(E.segments.concat(O.segments),O.children)}return E}(new Q(E.segments,O))}function Xt(E){return E instanceof rn}function li(E){let O;const Z=qe(function D(De){const ct={};for(const Qt of De.children){const ei=D(Qt);ct[Qt.outlet]=ei}const ln=new Q(De.url,ct);return De===E&&(O=ln),ln}(E.root));return O??Z}function wr(E,O,D,R){let Z=E;for(;Z.parent;)Z=Z.parent;if(0===O.length)return Fr(Z,Z,Z,D,R);const De=function Or(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new Kr(!0,0,E);let O=0,D=!1;const R=E.reduce((Z,De,ct)=>{if("object"==typeof De&&null!=De){if(De.outlets){const ln={};return Object.entries(De.outlets).forEach(([Qt,ei])=>{ln[Qt]="string"==typeof ei?ei.split("/"):ei}),[...Z,{outlets:ln}]}if(De.segmentPath)return[...Z,De.segmentPath]}return"string"!=typeof De?[...Z,De]:0===ct?(De.split("/").forEach((ln,Qt)=>{0==Qt&&"."===ln||(0==Qt&&""===ln?D=!0:".."===ln?O++:""!=ln&&Z.push(ln))}),Z):[...Z,De]},[]);return new Kr(D,O,R)}(O);if(De.toRoot())return Fr(Z,Z,new Q([],{}),D,R);const ct=function Ot(E,O,D){if(E.isAbsolute)return new ft(O,!0,0);if(!D)return new ft(O,!1,NaN);if(null===D.parent)return new ft(D,!0,0);const R=Dr(E.commands[0])?0:1;return function un(E,O,D){let R=E,Z=O,De=D;for(;De>Z;){if(De-=Z,R=R.parent,!R)throw new u.wOt(4005,!1);Z=R.segments.length}return new ft(R,!1,Z-De)}(D,D.segments.length-1+R,E.numberOfDoubleDots)}(De,Z,E),ln=ct.processChildren?Kn(ct.segmentGroup,ct.index,De.commands):Tn(ct.segmentGroup,ct.index,De.commands);return Fr(Z,ct.segmentGroup,ln,D,R)}function Dr(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Mi(E){return"object"==typeof E&&null!=E&&E.outlets}function Fr(E,O,D,R,Z){let ct,De={};R&&Object.entries(R).forEach(([Qt,ei])=>{De[Qt]=Array.isArray(ei)?ei.map(Wi=>`${Wi}`):`${ei}`}),ct=E===O?D:bi(E,O,D);const ln=qe(Ie(ct));return new rn(ln,De,Z)}function bi(E,O,D){const R={};return Object.entries(E.children).forEach(([Z,De])=>{R[Z]=De===O?D:bi(De,O,D)}),new Q(E.segments,R)}class Kr{constructor(O,D,R){if(this.isAbsolute=O,this.numberOfDoubleDots=D,this.commands=R,O&&R.length>0&&Dr(R[0]))throw new u.wOt(4003,!1);const Z=R.find(Mi);if(Z&&Z!==xe(R))throw new u.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ft{constructor(O,D,R){this.segmentGroup=O,this.processChildren=D,this.index=R}}function Tn(E,O,D){if(E??=new Q([],{}),0===E.segments.length&&E.hasChildren())return Kn(E,O,D);const R=function zn(E,O,D){let R=0,Z=O;const De={match:!1,pathIndex:0,commandIndex:0};for(;Z=D.length)return De;const ct=E.segments[Z],ln=D[R];if(Mi(ln))break;const Qt=`${ln}`,ei=R0&&void 0===Qt)break;if(Qt&&ei&&"object"==typeof ei&&void 0===ei.outlets){if(!Ce(Qt,ei,ct))return De;R+=2}else{if(!Ce(Qt,{},ct))return De;R++}Z++}return{match:!0,pathIndex:Z,commandIndex:R}}(E,O,D),Z=D.slice(R.commandIndex);if(R.match&&R.pathIndexDe!==je)&&E.children[je]&&1===E.numberOfChildren&&0===E.children[je].segments.length){const De=Kn(E.children[je],O,D);return new Q(E.segments,De.children)}return Object.entries(R).forEach(([De,ct])=>{"string"==typeof ct&&(ct=[ct]),null!==ct&&(Z[De]=Tn(E.children[De],O,ct))}),Object.entries(E.children).forEach(([De,ct])=>{void 0===R[De]&&(Z[De]=ct)}),new Q(E.segments,Z)}}function ii(E,O,D){const R=E.segments.slice(0,O);let Z=0;for(;Z{"string"==typeof R&&(R=[R]),null!==R&&(O[D]=ii(new Q([],{}),0,R))}),O}function Bn(E){const O={};return Object.entries(E).forEach(([D,R])=>O[D]=`${R}`),O}function Ce(E,O,D){return E==D.path&&We(O,D.parameters)}const Qe="imperative";var Ke=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(Ke||{});class K{constructor(O,D){this.id=O,this.url=D}}class Ae extends K{constructor(O,D,R="imperative",Z=null){super(O,D),this.type=Ke.NavigationStart,this.navigationTrigger=R,this.restoredState=Z}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class oe extends K{constructor(O,D,R){super(O,D),this.urlAfterRedirects=R,this.type=Ke.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var $e=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}($e||{}),vt=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(vt||{});class at extends K{constructor(O,D,R,Z){super(O,D),this.reason=R,this.code=Z,this.type=Ke.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $t extends K{constructor(O,D,R,Z){super(O,D),this.reason=R,this.code=Z,this.type=Ke.NavigationSkipped}}class hn extends K{constructor(O,D,R,Z){super(O,D),this.error=R,this.target=Z,this.type=Ke.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xn extends K{constructor(O,D,R,Z,De){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.shouldActivate=De,this.type=Ke.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ui{constructor(O){this.route=O,this.type=Ke.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Oi{constructor(O){this.route=O,this.type=Ke.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ti{constructor(O){this.snapshot=O,this.type=Ke.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wn{constructor(O){this.snapshot=O,this.type=Ke.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{constructor(O){this.snapshot=O,this.type=Ke.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ho{constructor(O){this.snapshot=O,this.type=Ke.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lr{constructor(O,D,R){this.routerEvent=O,this.position=D,this.anchor=R,this.type=Ke.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ci{}class Br{constructor(O,D){this.url=O,this.navigationBehaviorOptions=D}}function xr(E){return E.outlet||je}function hr(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class ts{get injector(){return hr(this.route?.snapshot)??this.rootInjector}set injector(O){}constructor(O){this.rootInjector=O,this.outlet=null,this.route=null,this.children=new Jr(this.rootInjector),this.attachRef=null}}let Jr=(()=>{class E{constructor(D){this.rootInjector=D,this.contexts=new Map}onChildOutletCreated(D,R){const Z=this.getOrCreateContext(D);Z.outlet=R,this.contexts.set(D,Z)}onChildOutletDestroyed(D){const R=this.getContext(D);R&&(R.outlet=null,R.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let R=this.getContext(D);return R||(R=new ts(this.rootInjector),this.contexts.set(D,R)),R}getContext(D){return this.contexts.get(D)||null}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(u.uvJ))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();class Ii{constructor(O){this._root=O}get root(){return this._root.value}parent(O){const D=this.pathFromRoot(O);return D.length>1?D[D.length-2]:null}children(O){const D=ns(O,this._root);return D?D.children.map(R=>R.value):[]}firstChild(O){const D=ns(O,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(O){const D=Sr(O,this._root);return D.length<2?[]:D[D.length-2].children.map(Z=>Z.value).filter(Z=>Z!==O)}pathFromRoot(O){return Sr(O,this._root).map(D=>D.value)}}function ns(E,O){if(E===O.value)return O;for(const D of O.children){const R=ns(E,D);if(R)return R}return null}function Sr(E,O){if(E===O.value)return[O];for(const D of O.children){const R=Sr(E,D);if(R.length)return R.unshift(O),R}return[]}class Ar{constructor(O,D){this.value=O,this.children=D}toString(){return`TreeNode(${this.value})`}}function Tr(E){const O={};return E&&E.children.forEach(D=>O[D.value.outlet]=D),O}class Vs extends Ii{constructor(O,D){super(O),this.snapshot=D,ws(this,O)}toString(){return this.snapshot.toString()}}function xi(E){const O=function js(E){const De=new $o([],{},{},"",{},je,E,null,{});return new va("",new Ar(De,[]))}(E),D=new W.t([new T("",{})]),R=new W.t({}),Z=new W.t({}),De=new W.t({}),ct=new W.t(""),ln=new Vr(D,R,De,ct,Z,je,E,O.root);return ln.snapshot=O.root,new Vs(new Ar(ln,[]),O)}class Vr{constructor(O,D,R,Z,De,ct,ln,Qt){this.urlSubject=O,this.paramsSubject=D,this.queryParamsSubject=R,this.fragmentSubject=Z,this.dataSubject=De,this.outlet=ct,this.component=ln,this._futureSnapshot=Qt,this.title=this.dataSubject?.pipe((0,te.T)(ei=>ei[Lt]))??(0,B.of)(void 0),this.url=O,this.params=D,this.queryParams=R,this.fragment=Z,this.data=De}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,te.T)(O=>we(O))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,te.T)(O=>we(O))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ho(E,O,D="emptyOnly"){let R;const{routeConfig:Z}=E;return R=null===O||"always"!==D&&""!==Z?.path&&(O.component||O.routeConfig?.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...E._resolvedData??{}}}:{params:{...O.params,...E.params},data:{...O.data,...E.data},resolve:{...E.data,...O.data,...Z?.data,...E._resolvedData}},Z&&gr(Z)&&(R.resolve[Lt]=Z.title),R}class $o{get title(){return this.data?.[Lt]}constructor(O,D,R,Z,De,ct,ln,Qt,ei){this.url=O,this.params=D,this.queryParams=R,this.fragment=Z,this.data=De,this.outlet=ct,this.component=ln,this.routeConfig=Qt,this._resolve=ei}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=we(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(R=>R.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class va extends Ii{constructor(O,D){super(D),this.url=O,ws(this,D)}toString(){return Hs(this._root)}}function ws(E,O){O.value._routerState=E,O.children.forEach(D=>ws(E,D))}function Hs(E){const O=E.children.length>0?` { ${E.children.map(Hs).join(", ")} } `:"";return`${E.value}${O}`}function Xr(E){if(E.snapshot){const O=E.snapshot,D=E._futureSnapshot;E.snapshot=D,We(O.queryParams,D.queryParams)||E.queryParamsSubject.next(D.queryParams),O.fragment!==D.fragment&&E.fragmentSubject.next(D.fragment),We(O.params,D.params)||E.paramsSubject.next(D.params),function me(E,O){if(E.length!==O.length)return!1;for(let D=0;DWe(D.parameters,O[R].parameters))}(E.url,O.url);return D&&!(!E.parent!=!O.parent)&&(!E.parent||Li(E.parent,O.parent))}function gr(E){return"string"==typeof E.title||null===E.title}let Xo=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=je,this.activateEvents=new u.bkB,this.deactivateEvents=new u.bkB,this.attachEvents=new u.bkB,this.detachEvents=new u.bkB,this.parentContexts=(0,u.WQX)(Jr),this.location=(0,u.WQX)(u.c1b),this.changeDetector=(0,u.WQX)(u.gRc),this.inputBinder=(0,u.WQX)(oa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:R,previousValue:Z}=D.name;if(R)return;this.isTrackedInParentContexts(Z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,R){this.activated=D,this._activatedRoute=R,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,R){if(this.isActivated)throw new u.wOt(4013,!1);this._activatedRoute=D;const Z=this.location,ct=D.snapshot.component,ln=this.parentContexts.getOrCreateContext(this.name).children,Qt=new ro(D,ln,Z.injector);this.activated=Z.createComponent(ct,{index:Z.length,injector:Qt,environmentInjector:R}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275dir=u.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[u.OA$]})}}return E})();class ro{__ngOutletInjector(O){return new ro(this.route,this.childContexts,O)}constructor(O,D,R){this.route=O,this.childContexts=D,this.parent=R}get(O,D){return O===Vr?this.route:O===Jr?this.childContexts:this.parent.get(O,D)}}const oa=new u.nKC("");let Er=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:R}=D,Z=(0,ee.z)([R.queryParams,R.params,R.data]).pipe((0,ve.n)(([De,ct,ln],Qt)=>(ln={...De,...ct,...ln},0===Qt?(0,B.of)(ln):Promise.resolve(ln)))).subscribe(De=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==R||null===R.component)return void this.unsubscribeFromRouteData(D);const ct=(0,u.HJs)(R.component);if(ct)for(const{templateName:ln}of ct.inputs)D.activatedComponentRef.setInput(ln,De[ln]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,Z)}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}}return E})();function jr(E,O,D){if(D&&E.shouldReuseRoute(O.value,D.value.snapshot)){const R=D.value;R._futureSnapshot=O.value;const Z=function xo(E,O,D){return O.children.map(R=>{for(const Z of D.children)if(E.shouldReuseRoute(R.value,Z.value.snapshot))return jr(E,R,Z);return jr(E,R)})}(E,O,D);return new Ar(R,Z)}{if(E.shouldAttach(O.value)){const De=E.retrieve(O.value);if(null!==De){const ct=De.route;return ct.value._futureSnapshot=O.value,ct.children=O.children.map(ln=>jr(E,ln)),ct}}const R=function Ir(E){return new Vr(new W.t(E.url),new W.t(E.params),new W.t(E.queryParams),new W.t(E.fragment),new W.t(E.data),E.outlet,E.component,E)}(O.value),Z=O.children.map(De=>jr(E,De));return new Ar(R,Z)}}class Yo{constructor(O,D){this.redirectTo=O,this.navigationBehaviorOptions=D}}const Eo="ngNavigationCancelingError";function Es(E,O){const{redirectTo:D,navigationBehaviorOptions:R}=Xt(O)?{redirectTo:O,navigationBehaviorOptions:void 0}:O,Z=sa(!1,$e.Redirect);return Z.url=D,Z.navigationBehaviorOptions=R,Z}function sa(E,O){const D=new Error(`NavigationCancelingError: ${E||""}`);return D[Eo]=!0,D.cancellationCode=O,D}function aa(E){return!!E&&E[Eo]}class Oa{constructor(O,D,R,Z,De){this.routeReuseStrategy=O,this.futureState=D,this.currState=R,this.forwardEvent=Z,this.inputBindingEnabled=De}activate(O){const D=this.futureState._root,R=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,R,O),Xr(this.futureState.root),this.activateChildRoutes(D,R,O)}deactivateChildRoutes(O,D,R){const Z=Tr(D);O.children.forEach(De=>{const ct=De.value.outlet;this.deactivateRoutes(De,Z[ct],R),delete Z[ct]}),Object.values(Z).forEach(De=>{this.deactivateRouteAndItsChildren(De,R)})}deactivateRoutes(O,D,R){const Z=O.value,De=D?D.value:null;if(Z===De)if(Z.component){const ct=R.getContext(Z.outlet);ct&&this.deactivateChildRoutes(O,D,ct.children)}else this.deactivateChildRoutes(O,D,R);else De&&this.deactivateRouteAndItsChildren(D,R)}deactivateRouteAndItsChildren(O,D){O.value.component&&this.routeReuseStrategy.shouldDetach(O.value.snapshot)?this.detachAndStoreRouteSubtree(O,D):this.deactivateRouteAndOutlet(O,D)}detachAndStoreRouteSubtree(O,D){const R=D.getContext(O.value.outlet),Z=R&&O.value.component?R.children:D,De=Tr(O);for(const ct of Object.values(De))this.deactivateRouteAndItsChildren(ct,Z);if(R&&R.outlet){const ct=R.outlet.detach(),ln=R.children.onOutletDeactivated();this.routeReuseStrategy.store(O.value.snapshot,{componentRef:ct,route:O,contexts:ln})}}deactivateRouteAndOutlet(O,D){const R=D.getContext(O.value.outlet),Z=R&&O.value.component?R.children:D,De=Tr(O);for(const ct of Object.values(De))this.deactivateRouteAndItsChildren(ct,Z);R&&(R.outlet&&(R.outlet.deactivate(),R.children.onOutletDeactivated()),R.attachRef=null,R.route=null)}activateChildRoutes(O,D,R){const Z=Tr(D);O.children.forEach(De=>{this.activateRoutes(De,Z[De.value.outlet],R),this.forwardEvent(new ho(De.value.snapshot))}),O.children.length&&this.forwardEvent(new Wn(O.value.snapshot))}activateRoutes(O,D,R){const Z=O.value,De=D?D.value:null;if(Xr(Z),Z===De)if(Z.component){const ct=R.getOrCreateContext(Z.outlet);this.activateChildRoutes(O,D,ct.children)}else this.activateChildRoutes(O,D,R);else if(Z.component){const ct=R.getOrCreateContext(Z.outlet);if(this.routeReuseStrategy.shouldAttach(Z.snapshot)){const ln=this.routeReuseStrategy.retrieve(Z.snapshot);this.routeReuseStrategy.store(Z.snapshot,null),ct.children.onOutletReAttached(ln.contexts),ct.attachRef=ln.componentRef,ct.route=ln.route.value,ct.outlet&&ct.outlet.attach(ln.componentRef,ln.route.value),Xr(ln.route.value),this.activateChildRoutes(O,null,ct.children)}else ct.attachRef=null,ct.route=Z,ct.outlet&&ct.outlet.activateWith(Z,ct.injector),this.activateChildRoutes(O,null,ct.children)}else this.activateChildRoutes(O,null,R)}}class Qo{constructor(O){this.path=O,this.route=this.path[this.path.length-1]}}class sr{constructor(O,D){this.component=O,this.route=D}}function is(E,O,D){const R=E._root;return qr(R,O?O._root:null,D,[R.value])}function rs(E,O){const D=Symbol(),R=O.get(E,D);return R===D?"function"!=typeof E||(0,u.LfX)(E)?O.get(E):E:R}function qr(E,O,D,R,Z={canDeactivateChecks:[],canActivateChecks:[]}){const De=Tr(O);return E.children.forEach(ct=>{(function $s(E,O,D,R,Z={canDeactivateChecks:[],canActivateChecks:[]}){const De=E.value,ct=O?O.value:null,ln=D?D.getContext(E.value.outlet):null;if(ct&&De.routeConfig===ct.routeConfig){const Qt=function Oo(E,O,D){if("function"==typeof D)return D(E,O);switch(D){case"pathParamsChange":return!$(E.url,O.url);case"pathParamsOrQueryParamsChange":return!$(E.url,O.url)||!We(E.queryParams,O.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Li(E,O)||!We(E.queryParams,O.queryParams);default:return!Li(E,O)}}(ct,De,De.routeConfig.runGuardsAndResolvers);Qt?Z.canActivateChecks.push(new Qo(R)):(De.data=ct.data,De._resolvedData=ct._resolvedData),qr(E,O,De.component?ln?ln.children:null:D,R,Z),Qt&&ln&&ln.outlet&&ln.outlet.isActivated&&Z.canDeactivateChecks.push(new sr(ln.outlet.component,ct))}else ct&&fo(O,ln,Z),Z.canActivateChecks.push(new Qo(R)),qr(E,null,De.component?ln?ln.children:null:D,R,Z)})(ct,De[ct.value.outlet],D,R.concat([ct.value]),Z),delete De[ct.value.outlet]}),Object.entries(De).forEach(([ct,ln])=>fo(ln,D.getContext(ct),Z)),Z}function fo(E,O,D){const R=Tr(E),Z=E.value;Object.entries(R).forEach(([De,ct])=>{fo(ct,Z.component?O?O.children.getContext(De):null:O,D)}),D.canDeactivateChecks.push(new sr(Z.component&&O&&O.outlet&&O.outlet.isActivated?O.outlet.component:null,Z))}function Cs(E){return"function"==typeof E}function So(E){return E instanceof re.G||"EmptyError"===E?.name}const _r=Symbol("INITIAL_VALUE");function Ao(){return(0,ve.n)(E=>(0,ee.z)(E.map(O=>O.pipe((0,tt.s)(1),(0,bt.Z)(_r)))).pipe((0,te.T)(O=>{for(const D of O)if(!0!==D){if(D===_r)return _r;if(!1===D||z(D))return D}return!0}),(0,Ve.p)(O=>O!==_r),(0,tt.s)(1)))}function z(E){return Xt(E)||E instanceof Yo}function ba(E){return(0,U.F)((0,nn.M)(O=>{if("boolean"!=typeof O)throw Es(0,O)}),(0,te.T)(O=>!0===O))}class xs{constructor(O){this.segmentGroup=O||null}}class nr extends Error{constructor(O){super(),this.urlTree=O}}function Ea(E){return(0,L.$)(new xs(E))}class Xl{constructor(O,D){this.urlSerializer=O,this.urlTree=D}lineralizeSegments(O,D){let R=[],Z=D.root;for(;;){if(R=R.concat(Z.segments),0===Z.numberOfChildren)return(0,B.of)(R);if(Z.numberOfChildren>1||!Z.children[je])return(0,L.$)(new u.wOt(4e3,!1));Z=Z.children[je]}}applyRedirectCommands(O,D,R,Z,De){if("string"!=typeof D){const ln=D,{queryParams:Qt,fragment:ei,routeConfig:Wi,url:er,outlet:Zi,params:us,data:ds,title:xa}=Z,Qs=(0,u.N4e)(De,()=>ln({params:us,data:ds,queryParams:Qt,fragment:ei,routeConfig:Wi,url:er,outlet:Zi,title:xa}));if(Qs instanceof rn)throw new nr(Qs);D=Qs}const ct=this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),O,R);if("/"===D[0])throw new nr(ct);return ct}applyRedirectCreateUrlTree(O,D,R,Z){const De=this.createSegmentGroup(O,D.root,R,Z);return new rn(De,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(O,D){const R={};return Object.entries(O).forEach(([Z,De])=>{if("string"==typeof De&&":"===De[0]){const ln=De.substring(1);R[Z]=D[ln]}else R[Z]=De}),R}createSegmentGroup(O,D,R,Z){const De=this.createSegments(O,D.segments,R,Z);let ct={};return Object.entries(D.children).forEach(([ln,Qt])=>{ct[ln]=this.createSegmentGroup(O,Qt,R,Z)}),new Q(De,ct)}createSegments(O,D,R,Z){return D.map(De=>":"===De.path[0]?this.findPosParam(O,De,Z):this.findOrReturn(De,R))}findPosParam(O,D,R){const Z=R[D.path.substring(1)];if(!Z)throw new u.wOt(4001,!1);return Z}findOrReturn(O,D){let R=0;for(const Z of D){if(Z.path===O.path)return D.splice(R),Z;R++}return O}}const zi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function po(E,O,D,R,Z){const De=Ni(E,O,D);return De.matched?(R=function Gi(E,O){return E.providers&&!E._injector&&(E._injector=(0,u.Ol2)(E.providers,O,`Route: ${E.path}`)),E._injector??O}(O,R),function wa(E,O,D,R){const Z=O.canMatch;if(!Z||0===Z.length)return(0,B.of)(!0);const De=Z.map(ct=>{const ln=rs(ct,E);return ut(function os(E){return E&&Cs(E.canMatch)}(ln)?ln.canMatch(O,D):(0,u.N4e)(E,()=>ln(O,D)))});return(0,B.of)(De).pipe(Ao(),ba())}(R,O,D).pipe((0,te.T)(ct=>!0===ct?De:{...zi}))):(0,B.of)(De)}function Ni(E,O,D){if("**"===O.path)return function Ro(E){return{matched:!0,parameters:E.length>0?xe(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(D);if(""===O.path)return"full"===O.pathMatch&&(E.hasChildren()||D.length>0)?{...zi}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const Z=(O.matcher||Oe)(D,E,O);if(!Z)return{...zi};const De={};Object.entries(Z.posParams??{}).forEach(([ln,Qt])=>{De[ln]=Qt.path});const ct=Z.consumed.length>0?{...De,...Z.consumed[Z.consumed.length-1].parameters}:De;return{matched:!0,consumedSegments:Z.consumed,remainingSegments:D.slice(Z.consumed.length),parameters:ct,positionalParamSegments:Z.posParams??{}}}function _o(E,O,D,R){return D.length>0&&function Lo(E,O,D){return D.some(R=>ca(E,O,R)&&xr(R)!==je)}(E,D,R)?{segmentGroup:new Q(O,la(R,new Q(D,E.children))),slicedSegments:[]}:0===D.length&&function dl(E,O,D){return D.some(R=>ca(E,O,R))}(E,D,R)?{segmentGroup:new Q(E.segments,Na(E,D,R,E.children)),slicedSegments:D}:{segmentGroup:new Q(E.segments,E.children),slicedSegments:D}}function Na(E,O,D,R){const Z={};for(const De of D)if(ca(E,O,De)&&!R[xr(De)]){const ct=new Q([],{});Z[xr(De)]=ct}return{...R,...Z}}function la(E,O){const D={};D[je]=O;for(const R of E)if(""===R.path&&xr(R)!==je){const Z=new Q([],{});D[xr(R)]=Z}return D}function ca(E,O,D){return(!(E.hasChildren()||O.length>0)||"full"!==D.pathMatch)&&""===D.path}class hl{}class fl{constructor(O,D,R,Z,De,ct,ln){this.injector=O,this.configLoader=D,this.rootComponentType=R,this.config=Z,this.urlTree=De,this.paramsInheritanceStrategy=ct,this.urlSerializer=ln,this.applyRedirects=new Xl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(O){return new u.wOt(4002,`'${O.segmentGroup}'`)}recognize(){const O=_o(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(O).pipe((0,te.T)(({children:D,rootSnapshot:R})=>{const Z=new Ar(R,D),De=new va("",Z),ct=function an(E,O,D=null,R=null){return wr(li(E),O,D,R)}(R,[],this.urlTree.queryParams,this.urlTree.fragment);return ct.queryParams=this.urlTree.queryParams,De.url=this.urlSerializer.serialize(ct),{state:De,tree:ct}}))}match(O){const D=new $o([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),je,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,O,je,D).pipe((0,te.T)(R=>({children:R,rootSnapshot:D})),(0,Fn.W)(R=>{if(R instanceof nr)return this.urlTree=R.urlTree,this.match(R.urlTree.root);throw R instanceof xs?this.noMatchError(R):R}))}processSegmentGroup(O,D,R,Z,De){return 0===R.segments.length&&R.hasChildren()?this.processChildren(O,D,R,De):this.processSegment(O,D,R,R.segments,Z,!0,De).pipe((0,te.T)(ct=>ct instanceof Ar?[ct]:[]))}processChildren(O,D,R,Z){const De=[];for(const ct of Object.keys(R.children))"primary"===ct?De.unshift(ct):De.push(ct);return(0,o.H)(De).pipe((0,Tt.H)(ct=>{const ln=R.children[ct],Qt=function Us(E,O){const D=E.filter(R=>xr(R)===O);return D.push(...E.filter(R=>xr(R)!==O)),D}(D,ct);return this.processSegmentGroup(O,Qt,ln,ct,Z)}),function yn(E,O){return(0,Xe.N)(function $n(E,O,D,R,Z){return(De,ct)=>{let ln=D,Qt=O,ei=0;De.subscribe((0,se._)(ct,Wi=>{const er=ei++;Qt=ln?E(Qt,Wi,er):(ln=!0,Wi),R&&ct.next(Qt)},Z&&(()=>{ln&&ct.next(Qt),ct.complete()})))}}(E,O,arguments.length>=2,!0))}((ct,ln)=>(ct.push(...ln),ct)),fe(null),function mt(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,Ve.p)((Z,De)=>E(Z,De,R)):It.D,di(1),D?fe(O):Le(()=>new re.G))}(),(0,rt.Z)(ct=>{if(null===ct)return Ea(R);const ln=Tl(ct);return function pl(E){E.sort((O,D)=>O.value.outlet===je?-1:D.value.outlet===je?1:O.value.outlet.localeCompare(D.value.outlet))}(ln),(0,B.of)(ln)}))}processSegment(O,D,R,Z,De,ct,ln){return(0,o.H)(D).pipe((0,Tt.H)(Qt=>this.processSegmentAgainstRoute(Qt._injector??O,D,Qt,R,Z,De,ct,ln).pipe((0,Fn.W)(ei=>{if(ei instanceof xs)return(0,B.of)(null);throw ei}))),Et(Qt=>!!Qt),(0,Fn.W)(Qt=>{if(So(Qt))return function lo(E,O,D){return 0===O.length&&!E.children[D]}(R,Z,De)?(0,B.of)(new hl):Ea(R);throw Qt}))}processSegmentAgainstRoute(O,D,R,Z,De,ct,ln,Qt){return xr(R)===ct||ct!==je&&ca(Z,De,R)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(O,Z,R,De,ct,Qt):this.allowRedirects&&ln?this.expandSegmentAgainstRouteUsingRedirect(O,Z,D,R,De,ct,Qt):Ea(Z):Ea(Z)}expandSegmentAgainstRouteUsingRedirect(O,D,R,Z,De,ct,ln){const{matched:Qt,parameters:ei,consumedSegments:Wi,positionalParamSegments:er,remainingSegments:Zi}=Ni(D,Z,De);if(!Qt)return Ea(D);"string"==typeof Z.redirectTo&&"/"===Z.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const us=new $o(De,ei,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ca(Z),xr(Z),Z.component??Z._loadedComponent??null,Z,Da(Z)),ds=Ho(us,ln,this.paramsInheritanceStrategy);us.params=Object.freeze(ds.params),us.data=Object.freeze(ds.data);const xa=this.applyRedirects.applyRedirectCommands(Wi,Z.redirectTo,er,us,O);return this.applyRedirects.lineralizeSegments(Z,xa).pipe((0,rt.Z)(Qs=>this.processSegment(O,R,D,Qs.concat(Zi),ct,!1,ln)))}matchSegmentAgainstRoute(O,D,R,Z,De,ct){const ln=po(D,R,Z,O);return"**"===R.path&&(D.children={}),ln.pipe((0,ve.n)(Qt=>Qt.matched?this.getChildConfig(O=R._injector??O,R,Z).pipe((0,ve.n)(({routes:ei})=>{const Wi=R._loadedInjector??O,{parameters:er,consumedSegments:Zi,remainingSegments:us}=Qt,ds=new $o(Zi,er,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ca(R),xr(R),R.component??R._loadedComponent??null,R,Da(R)),xa=Ho(ds,ct,this.paramsInheritanceStrategy);ds.params=Object.freeze(xa.params),ds.data=Object.freeze(xa.data);const{segmentGroup:Qs,slicedSegments:Ml}=_o(D,Zi,us,ei);if(0===Ml.length&&Qs.hasChildren())return this.processChildren(Wi,ei,Qs,ds).pipe((0,te.T)(Rs=>new Ar(ds,Rs)));if(0===ei.length&&0===Ml.length)return(0,B.of)(new Ar(ds,[]));const Fa=xr(R)===De;return this.processSegment(Wi,ei,Qs,Ml,Fa?je:De,!0,ds).pipe((0,te.T)(Rs=>new Ar(ds,Rs instanceof Ar?[Rs]:[])))})):Ea(D)))}getChildConfig(O,D,R){return D.children?(0,B.of)({routes:D.children,injector:O}):D.loadChildren?void 0!==D._loadedRoutes?(0,B.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function Ds(E,O,D,R){const Z=O.canLoad;if(void 0===Z||0===Z.length)return(0,B.of)(!0);const De=Z.map(ct=>{const ln=rs(ct,E);return ut(function _a(E){return E&&Cs(E.canLoad)}(ln)?ln.canLoad(O,D):(0,u.N4e)(E,()=>ln(O,D)))});return(0,B.of)(De).pipe(Ao(),ba())}(O,D,R).pipe((0,rt.Z)(Z=>Z?this.configLoader.loadChildren(O,D).pipe((0,nn.M)(De=>{D._loadedRoutes=De.routes,D._loadedInjector=De.injector})):function nu(){return(0,L.$)(sa(!1,$e.GuardRejected))}())):(0,B.of)({routes:[],injector:O})}}function ml(E){const O=E.value.routeConfig;return O&&""===O.path}function Tl(E){const O=[],D=new Set;for(const R of E){if(!ml(R)){O.push(R);continue}const Z=O.find(De=>R.value.routeConfig===De.value.routeConfig);void 0!==Z?(Z.children.push(...R.children),D.add(Z)):O.push(R)}for(const R of D){const Z=Tl(R.children);O.push(new Ar(R.value,Z))}return O.filter(R=>!D.has(R))}function Ca(E){return E.data||{}}function Da(E){return E.resolve||{}}function Yr(E){const O=E.children.map(D=>Yr(D)).flat();return[E,...O]}function ua(E){return(0,ve.n)(O=>{const D=E(O);return D?(0,o.H)(D).pipe((0,te.T)(()=>O)):(0,B.of)(O)})}let Mr=(()=>{class E{buildTitle(D){let R,Z=D.root;for(;void 0!==Z;)R=this.getResolvedTitleForRoute(Z)??R,Z=Z.children.find(De=>De.outlet===je);return R}getResolvedTitleForRoute(D){return D.data[Lt]}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Pa),providedIn:"root"})}}return E})(),Pa=(()=>{class E extends Mr{constructor(D){super(),this.title=D}updateTitle(D){const R=this.buildTitle(D);void 0!==R&&this.title.setTitle(R)}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(Ze.hE))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const da=new u.nKC("",{providedIn:"root",factory:()=>({})});let ls=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275cmp=u.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[u.aNF],decls:1,vars:0,template:function(R,Z){1&R&&u.nrm(0,"router-outlet")},dependencies:[Xo],encapsulation:2})}}return E})();function fr(E){const O=E.children&&E.children.map(fr),D=O?{...E,children:O}:{...E};return!D.component&&!D.loadComponent&&(O||D.loadChildren)&&D.outlet&&D.outlet!==je&&(D.component=ls),D}const As=new u.nKC("");let Ws=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,u.WQX)(u.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,B.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const R=ut(D.loadComponent()).pipe((0,te.T)(Ya),(0,nn.M)(De=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=De}),(0,J.j)(()=>{this.componentLoaders.delete(D)})),Z=new de.G(R,()=>new be.B).pipe((0,Se.B)());return this.componentLoaders.set(D,Z),Z}loadChildren(D,R){if(this.childrenLoaders.get(R))return this.childrenLoaders.get(R);if(R._loadedRoutes)return(0,B.of)({routes:R._loadedRoutes,injector:R._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(R);const De=function Hr(E,O,D,R){return ut(E.loadChildren()).pipe((0,te.T)(Ya),(0,rt.Z)(Z=>Z instanceof u.Co$||Array.isArray(Z)?(0,B.of)(Z):(0,o.H)(O.compileModuleAsync(Z))),(0,te.T)(Z=>{R&&R(E);let De,ct,ln=!1;return Array.isArray(Z)?(ct=Z,!0):(De=Z.create(D).injector,ct=De.get(As,[],{optional:!0,self:!0}).flat()),{routes:ct.map(fr),injector:De}}))}(R,this.compiler,D,this.onLoadEndListener).pipe((0,J.j)(()=>{this.childrenLoaders.delete(R)})),ct=new de.G(De,()=>new be.B).pipe((0,Se.B)());return this.childrenLoaders.set(R,ct),ct}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();function Ya(E){return function Gs(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ha=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Bo),providedIn:"root"})}}return E})(),Bo=(()=>{class E{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,R){return D}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const Ks=new u.nKC(""),Qi=new u.nKC("");function Qa(E,O,D){const R=E.get(Qi),Z=E.get(Me.qQ);return E.get(u.SKi).runOutsideAngular(()=>{if(!Z.startViewTransition||R.skipNextTransition)return R.skipNextTransition=!1,new Promise(ei=>setTimeout(ei));let De;const ct=new Promise(ei=>{De=ei}),ln=Z.startViewTransition(()=>(De(),function gl(E){return new Promise(O=>{(0,u.mal)({read:()=>setTimeout(O)},{injector:E})})}(E))),{onViewTransitionCreated:Qt}=R;return Qt&&(0,u.N4e)(E,()=>Qt({transition:ln,from:O,to:D})),ct})}const S=new u.nKC("");let ne=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new be.B,this.transitionAbortSubject=new be.B,this.configLoader=(0,u.WQX)(Ws),this.environmentInjector=(0,u.WQX)(u.uvJ),this.urlSerializer=(0,u.WQX)(ue),this.rootContexts=(0,u.WQX)(Jr),this.location=(0,u.WQX)(Me.aZ),this.inputBindingEnabled=null!==(0,u.WQX)(oa,{optional:!0}),this.titleStrategy=(0,u.WQX)(Mr),this.options=(0,u.WQX)(da,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,u.WQX)(ha),this.createViewTransition=(0,u.WQX)(Ks,{optional:!0}),this.navigationErrorHandler=(0,u.WQX)(S,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,B.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Z=>this.events.next(new Oi(Z)),this.configLoader.onLoadStartListener=Z=>this.events.next(new ui(Z))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const R=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:R})}setupNavigations(D,R,Z){return this.transitions=new W.t({id:0,currentUrlTree:R,currentRawUrl:R,extractedUrl:this.urlHandlingStrategy.extract(R),urlAfterRedirects:this.urlHandlingStrategy.extract(R),rawUrl:R,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Qe,restoredState:null,currentSnapshot:Z.snapshot,targetSnapshot:null,currentRouterState:Z,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ve.p)(De=>0!==De.id),(0,te.T)(De=>({...De,extractedUrl:this.urlHandlingStrategy.extract(De.rawUrl)})),(0,ve.n)(De=>{let ct=!1,ln=!1;return(0,B.of)(De).pipe((0,ve.n)(Qt=>{if(this.navigationId>De.id)return this.cancelNavigationTransition(De,"",$e.SupersededByNewNavigation),he.w;this.currentTransition=De,this.currentNavigation={id:Qt.id,initialUrl:Qt.rawUrl,extractedUrl:Qt.extractedUrl,targetBrowserUrl:"string"==typeof Qt.extras.browserUrl?this.urlSerializer.parse(Qt.extras.browserUrl):Qt.extras.browserUrl,trigger:Qt.source,extras:Qt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const ei=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ei&&"reload"!==(Qt.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const er="";return this.events.next(new $t(Qt.id,this.urlSerializer.serialize(Qt.rawUrl),er,vt.IgnoredSameUrlNavigation)),Qt.resolve(!1),he.w}if(this.urlHandlingStrategy.shouldProcessUrl(Qt.rawUrl))return(0,B.of)(Qt).pipe((0,ve.n)(er=>{const Zi=this.transitions?.getValue();return this.events.next(new Ae(er.id,this.urlSerializer.serialize(er.extractedUrl),er.source,er.restoredState)),Zi!==this.transitions?.getValue()?he.w:Promise.resolve(er)}),function as(E,O,D,R,Z,De){return(0,rt.Z)(ct=>function Al(E,O,D,R,Z,De,ct="emptyOnly"){return new fl(E,O,D,R,Z,ct,De).recognize()}(E,O,D,R,ct.extractedUrl,Z,De).pipe((0,te.T)(({state:ln,tree:Qt})=>({...ct,targetSnapshot:ln,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,nn.M)(er=>{De.targetSnapshot=er.targetSnapshot,De.urlAfterRedirects=er.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:er.urlAfterRedirects};const Zi=new gn(er.id,this.urlSerializer.serialize(er.extractedUrl),this.urlSerializer.serialize(er.urlAfterRedirects),er.targetSnapshot);this.events.next(Zi)}));if(ei&&this.urlHandlingStrategy.shouldProcessUrl(Qt.currentRawUrl)){const{id:er,extractedUrl:Zi,source:us,restoredState:ds,extras:xa}=Qt,Qs=new Ae(er,this.urlSerializer.serialize(Zi),us,ds);this.events.next(Qs);const Ml=xi(this.rootComponentType).snapshot;return this.currentTransition=De={...Qt,targetSnapshot:Ml,urlAfterRedirects:Zi,extras:{...xa,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,B.of)(De)}{const er="";return this.events.next(new $t(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),er,vt.IgnoredByUrlHandlingStrategy)),Qt.resolve(!1),he.w}}),(0,nn.M)(Qt=>{const ei=new En(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(ei)}),(0,te.T)(Qt=>(this.currentTransition=De={...Qt,guards:is(Qt.targetSnapshot,Qt.currentSnapshot,this.rootContexts)},De)),function Y(E,O){return(0,rt.Z)(D=>{const{targetSnapshot:R,currentSnapshot:Z,guards:{canActivateChecks:De,canDeactivateChecks:ct}}=D;return 0===ct.length&&0===De.length?(0,B.of)({...D,guardsResult:!0}):function k(E,O,D,R){return(0,o.H)(E).pipe((0,rt.Z)(Z=>function ya(E,O,D,R,Z){const De=O&&O.routeConfig?O.routeConfig.canDeactivate:null;if(!De||0===De.length)return(0,B.of)(!0);const ct=De.map(ln=>{const Qt=hr(O)??Z,ei=rs(ln,Qt);return ut(function ka(E){return E&&Cs(E.canDeactivate)}(ei)?ei.canDeactivate(E,O,D,R):(0,u.N4e)(Qt,()=>ei(E,O,D,R))).pipe(Et())});return(0,B.of)(ct).pipe(Ao())}(Z.component,Z.route,D,O,R)),Et(Z=>!0!==Z,!0))}(ct,R,Z,E).pipe((0,rt.Z)(ln=>ln&&function ul(E){return"boolean"==typeof E}(ln)?function ge(E,O,D,R){return(0,o.H)(O).pipe((0,Tt.H)(Z=>(0,V.x)(function gi(E,O){return null!==E&&O&&O(new ti(E)),(0,B.of)(!0)}(Z.route.parent,R),function Ct(E,O){return null!==E&&O&&O(new Rr(E)),(0,B.of)(!0)}(Z.route,R),function zo(E,O,D){const R=O[O.length-1],De=O.slice(0,O.length-1).reverse().map(ct=>function ao(E){const O=E.routeConfig?E.routeConfig.canActivateChild:null;return O&&0!==O.length?{node:E,guards:O}:null}(ct)).filter(ct=>null!==ct).map(ct=>(0,F.v)(()=>{const ln=ct.guards.map(Qt=>{const ei=hr(ct.node)??D,Wi=rs(Qt,ei);return ut(function Os(E){return E&&Cs(E.canActivateChild)}(Wi)?Wi.canActivateChild(R,E):(0,u.N4e)(ei,()=>Wi(R,E))).pipe(Et())});return(0,B.of)(ln).pipe(Ao())}));return(0,B.of)(De).pipe(Ao())}(E,Z.path,D),function Yi(E,O,D){const R=O.routeConfig?O.routeConfig.canActivate:null;if(!R||0===R.length)return(0,B.of)(!0);const Z=R.map(De=>(0,F.v)(()=>{const ct=hr(O)??D,ln=rs(De,ct);return ut(function Ra(E){return E&&Cs(E.canActivate)}(ln)?ln.canActivate(O,E):(0,u.N4e)(ct,()=>ln(O,E))).pipe(Et())}));return(0,B.of)(Z).pipe(Ao())}(E,Z.route,D))),Et(Z=>!0!==Z,!0))}(R,De,E,O):(0,B.of)(ln)),(0,te.T)(ln=>({...D,guardsResult:ln})))})}(this.environmentInjector,Qt=>this.events.next(Qt)),(0,nn.M)(Qt=>{if(De.guardsResult=Qt.guardsResult,Qt.guardsResult&&"boolean"!=typeof Qt.guardsResult)throw Es(0,Qt.guardsResult);const ei=new xn(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot,!!Qt.guardsResult);this.events.next(ei)}),(0,Ve.p)(Qt=>!!Qt.guardsResult||(this.cancelNavigationTransition(Qt,"",$e.GuardRejected),!1)),ua(Qt=>{if(Qt.guards.canActivateChecks.length)return(0,B.of)(Qt).pipe((0,nn.M)(ei=>{const Wi=new Vn(ei.id,this.urlSerializer.serialize(ei.extractedUrl),this.urlSerializer.serialize(ei.urlAfterRedirects),ei.targetSnapshot);this.events.next(Wi)}),(0,ve.n)(ei=>{let Wi=!1;return(0,B.of)(ei).pipe(function Ql(E,O){return(0,rt.Z)(D=>{const{targetSnapshot:R,guards:{canActivateChecks:Z}}=D;if(!Z.length)return(0,B.of)(D);const De=new Set(Z.map(Qt=>Qt.route)),ct=new Set;for(const Qt of De)if(!ct.has(Qt))for(const ei of Yr(Qt))ct.add(ei);let ln=0;return(0,o.H)(ct).pipe((0,Tt.H)(Qt=>De.has(Qt)?function ko(E,O,D,R){const Z=E.routeConfig,De=E._resolve;return void 0!==Z?.title&&!gr(Z)&&(De[Lt]=Z.title),function iu(E,O,D,R){const Z=Pe(E);if(0===Z.length)return(0,B.of)({});const De={};return(0,o.H)(Z).pipe((0,rt.Z)(ct=>function To(E,O,D,R){const Z=hr(O)??R,De=rs(E,Z);return ut(De.resolve?De.resolve(O,D):(0,u.N4e)(Z,()=>De(O,D)))}(E[ct],O,D,R).pipe(Et(),(0,nn.M)(ln=>{if(ln instanceof Yo)throw Es(new nt,ln);De[ct]=ln}))),di(1),(0,Ee.u)(De),(0,Fn.W)(ct=>So(ct)?he.w:(0,L.$)(ct)))}(De,E,O,R).pipe((0,te.T)(ct=>(E._resolvedData=ct,E.data=Ho(E,E.parent,D).resolve,null)))}(Qt,R,E,O):(Qt.data=Ho(Qt,Qt.parent,E).resolve,(0,B.of)(void 0))),(0,nn.M)(()=>ln++),di(1),(0,rt.Z)(Qt=>ln===ct.size?(0,B.of)(D):he.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,nn.M)({next:()=>Wi=!0,complete:()=>{Wi||this.cancelNavigationTransition(ei,"",$e.NoDataFromResolver)}}))}),(0,nn.M)(ei=>{const Wi=new Hn(ei.id,this.urlSerializer.serialize(ei.extractedUrl),this.urlSerializer.serialize(ei.urlAfterRedirects),ei.targetSnapshot);this.events.next(Wi)}))}),ua(Qt=>{const ei=Wi=>{const er=[];Wi.routeConfig?.loadComponent&&!Wi.routeConfig._loadedComponent&&er.push(this.configLoader.loadComponent(Wi.routeConfig).pipe((0,nn.M)(Zi=>{Wi.component=Zi}),(0,te.T)(()=>{})));for(const Zi of Wi.children)er.push(...ei(Zi));return er};return(0,ee.z)(ei(Qt.targetSnapshot.root)).pipe(fe(null),(0,tt.s)(1))}),ua(()=>this.afterPreactivation()),(0,ve.n)(()=>{const{currentSnapshot:Qt,targetSnapshot:ei}=De,Wi=this.createViewTransition?.(this.environmentInjector,Qt.root,ei.root);return Wi?(0,o.H)(Wi).pipe((0,te.T)(()=>De)):(0,B.of)(De)}),(0,te.T)(Qt=>{const ei=function oo(E,O,D){const R=jr(E,O._root,D?D._root:void 0);return new Vs(R,O)}(D.routeReuseStrategy,Qt.targetSnapshot,Qt.currentRouterState);return this.currentTransition=De={...Qt,targetRouterState:ei},this.currentNavigation.targetRouterState=ei,De}),(0,nn.M)(()=>{this.events.next(new Ci)}),((E,O,D,R)=>(0,te.T)(Z=>(new Oa(O,Z.targetRouterState,Z.currentRouterState,D,R).activate(E),Z)))(this.rootContexts,D.routeReuseStrategy,Qt=>this.events.next(Qt),this.inputBindingEnabled),(0,tt.s)(1),(0,nn.M)({next:Qt=>{ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new oe(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Qt.targetRouterState.snapshot),Qt.resolve(!0)},complete:()=>{ct=!0}}),(0,gt.Q)(this.transitionAbortSubject.pipe((0,nn.M)(Qt=>{throw Qt}))),(0,J.j)(()=>{!ct&&!ln&&this.cancelNavigationTransition(De,"",$e.SupersededByNewNavigation),this.currentTransition?.id===De.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Fn.W)(Qt=>{if(ln=!0,aa(Qt))this.events.next(new at(De.id,this.urlSerializer.serialize(De.extractedUrl),Qt.message,Qt.cancellationCode)),function so(E){return aa(E)&&Xt(E.url)}(Qt)?this.events.next(new Br(Qt.url,Qt.navigationBehaviorOptions)):De.resolve(!1);else{const ei=new hn(De.id,this.urlSerializer.serialize(De.extractedUrl),Qt,De.targetSnapshot??void 0);try{const Wi=(0,u.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ei));if(Wi instanceof Yo){const{message:er,cancellationCode:Zi}=Es(0,Wi);this.events.next(new at(De.id,this.urlSerializer.serialize(De.extractedUrl),er,Zi)),this.events.next(new Br(Wi.redirectTo,Wi.navigationBehaviorOptions))}else{this.events.next(ei);const er=D.errorHandler(Qt);De.resolve(!!er)}}catch(Wi){this.options.resolveNavigationPromiseOnError?De.resolve(!1):De.reject(Wi)}}return he.w}))}))}cancelNavigationTransition(D,R,Z){const De=new at(D.id,this.urlSerializer.serialize(D.extractedUrl),R,Z);this.events.next(De),D.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const D=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),R=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return D.toString()!==R?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();function p(E){return E!==Qe}let _=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(X),providedIn:"root"})}}return E})();class x{shouldDetach(O){return!1}store(O,D){}shouldAttach(O){return!1}retrieve(O){return null}shouldReuseRoute(O,D){return O.routeConfig===D.routeConfig}}let X=(()=>{class E extends x{static{this.\u0275fac=(()=>{let D;return function(Z){return(D||(D=u.xGo(E)))(Z||E)}})()}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),ce=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(ze),providedIn:"root"})}}return E})(),ze=(()=>{class E extends ce{constructor(){super(...arguments),this.location=(0,u.WQX)(Me.aZ),this.urlSerializer=(0,u.WQX)(ue),this.options=(0,u.WQX)(da,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,u.WQX)(ha),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new rn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=xi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(R=>{"popstate"===R.type&&D(R.url,R.state)})}handleRouterEvent(D,R){if(D instanceof Ae)this.stateMemento=this.createStateMemento();else if(D instanceof $t)this.rawUrlTree=R.initialUrl;else if(D instanceof gn){if("eager"===this.urlUpdateStrategy&&!R.extras.skipLocationChange){const Z=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl);this.setBrowserUrl(R.targetBrowserUrl??Z,R)}}else D instanceof Ci?(this.currentUrlTree=R.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl),this.routerState=R.targetRouterState,"deferred"===this.urlUpdateStrategy&&!R.extras.skipLocationChange&&this.setBrowserUrl(R.targetBrowserUrl??this.rawUrlTree,R)):D instanceof at&&(D.code===$e.GuardRejected||D.code===$e.NoDataFromResolver)?this.restoreHistory(R):D instanceof hn?this.restoreHistory(R,!0):D instanceof oe&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,R){const Z=D instanceof rn?this.urlSerializer.serialize(D):D;if(this.location.isCurrentPathEqualTo(Z)||R.extras.replaceUrl){const ct={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId)};this.location.replaceState(Z,"",ct)}else{const De={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId+1)};this.location.go(Z,"",De)}}restoreHistory(D,R=!1){if("computed"===this.canceledNavigationResolution){const De=this.currentPageId-this.browserPageId;0!==De?this.location.historyGo(De):this.currentUrlTree===D.finalUrl&&0===De&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(R&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,R){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:R}:{navigationId:D}}static{this.\u0275fac=(()=>{let D;return function(Z){return(D||(D=u.xGo(E)))(Z||E)}})()}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();var yt=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(yt||{});function Dt(E,O){E.events.pipe((0,Ve.p)(D=>D instanceof oe||D instanceof at||D instanceof hn||D instanceof $t),(0,te.T)(D=>D instanceof oe||D instanceof $t?yt.COMPLETE:D instanceof at&&(D.code===$e.Redirect||D.code===$e.SupersededByNewNavigation)?yt.REDIRECTING:yt.FAILED),(0,Ve.p)(D=>D!==yt.REDIRECTING),(0,tt.s)(1)).subscribe(()=>{O()})}function Pt(E){throw E}const Wt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let St=(()=>{class E{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,u.WQX)(u.H3F),this.stateManager=(0,u.WQX)(ce),this.options=(0,u.WQX)(da,{optional:!0})||{},this.pendingTasks=(0,u.WQX)(u.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,u.WQX)(ne),this.urlSerializer=(0,u.WQX)(ue),this.location=(0,u.WQX)(Me.aZ),this.urlHandlingStrategy=(0,u.WQX)(ha),this._events=new be.B,this.errorHandler=this.options.errorHandler||Pt,this.navigated=!1,this.routeReuseStrategy=(0,u.WQX)(_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,u.WQX)(As,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,u.WQX)(oa,{optional:!0}),this.eventsSubscription=new Te.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:D=>{this.console.warn(D)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(R=>{try{const Z=this.navigationTransitions.currentTransition,De=this.navigationTransitions.currentNavigation;if(null!==Z&&null!==De)if(this.stateManager.handleRouterEvent(R,De),R instanceof at&&R.code!==$e.Redirect&&R.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(R instanceof oe)this.navigated=!0;else if(R instanceof Br){const ct=R.navigationBehaviorOptions,ln=this.urlHandlingStrategy.merge(R.url,Z.currentRawUrl),Qt={browserUrl:Z.extras.browserUrl,info:Z.extras.info,skipLocationChange:Z.extras.skipLocationChange,replaceUrl:Z.extras.replaceUrl||"eager"===this.urlUpdateStrategy||p(Z.source),...ct};this.scheduleNavigation(ln,Qe,null,Qt,{resolve:Z.resolve,reject:Z.reject,promise:Z.promise})}(function cn(E){return!(E instanceof Ci||E instanceof Br)})(R)&&this._events.next(R)}catch(Z){this.navigationTransitions.transitionAbortSubject.next(Z)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((D,R)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(D,"popstate",R)},0)})}navigateToSyncWithBrowser(D,R,Z){const De={replaceUrl:!0},ct=Z?.navigationId?Z:null;if(Z){const Qt={...Z};delete Qt.navigationId,delete Qt.\u0275routerPageId,0!==Object.keys(Qt).length&&(De.state=Qt)}const ln=this.parseUrl(D);this.scheduleNavigation(ln,R,ct,De)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(fr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,R={}){const{relativeTo:Z,queryParams:De,fragment:ct,queryParamsHandling:ln,preserveFragment:Qt}=R,ei=Qt?this.currentUrlTree.fragment:ct;let er,Wi=null;switch(ln??this.options.defaultQueryParamsHandling){case"merge":Wi={...this.currentUrlTree.queryParams,...De};break;case"preserve":Wi=this.currentUrlTree.queryParams;break;default:Wi=De||null}null!==Wi&&(Wi=this.removeEmptyProps(Wi));try{er=li(Z?Z.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||"/"!==D[0][0])&&(D=[]),er=this.currentUrlTree.root}return wr(er,D,Wi,ei??null)}navigateByUrl(D,R={skipLocationChange:!1}){const Z=Xt(D)?D:this.parseUrl(D),De=this.urlHandlingStrategy.merge(Z,this.rawUrlTree);return this.scheduleNavigation(De,Qe,null,R)}navigate(D,R={skipLocationChange:!1}){return function Ht(E){for(let O=0;O(null!=De&&(R[Z]=De),R),{})}scheduleNavigation(D,R,Z,De,ct){if(this.disposed)return Promise.resolve(!1);let ln,Qt,ei;ct?(ln=ct.resolve,Qt=ct.reject,ei=ct.promise):ei=new Promise((er,Zi)=>{ln=er,Qt=Zi});const Wi=this.pendingTasks.add();return Dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Wi))}),this.navigationTransitions.handleNavigationRequest({source:R,restoredState:Z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:De,resolve:ln,reject:Qt,promise:ei,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ei.catch(er=>Promise.reject(er))}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),kn=(()=>{class E{constructor(D,R,Z,De,ct,ln){this.router=D,this.route=R,this.tabIndexAttribute=Z,this.renderer=De,this.el=ct,this.locationStrategy=ln,this.href=null,this.onChanges=new be.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const Qt=ct.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Qt||"area"===Qt,this.isAnchorElement?this.subscription=D.events.subscribe(ei=>{ei instanceof oe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null==D?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Xt(D)||Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0"))}onClick(D,R,Z,De,ct){const ln=this.urlTree;return!!(null===ln||this.isAnchorElement&&(0!==D||R||Z||De||ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(ln,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const D=this.urlTree;this.href=null!==D&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(D)):null;const R=null===this.href?null:(0,u.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(D,R){const Z=this.renderer,De=this.el.nativeElement;null!==R?Z.setAttribute(De,D,R):Z.removeAttribute(De,D)}get urlTree(){return null===this.routerLinkInput?null:Xt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(R){return new(R||E)(u.rXU(St),u.rXU(Vr),u.kS0("tabindex"),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(Me.hb))}}static{this.\u0275dir=u.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(R,Z){1&R&&u.bIt("click",function(ct){return Z.onClick(ct.button,ct.ctrlKey,ct.shiftKey,ct.altKey,ct.metaKey)}),2&R&&u.BMQ("target",Z.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",u.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",u.L39],replaceUrl:[2,"replaceUrl","replaceUrl",u.L39],routerLink:"routerLink"},standalone:!0,features:[u.GFd,u.OA$]})}}return E})(),fn=(()=>{class E{get isActive(){return this._isActive}constructor(D,R,Z,De,ct){this.router=D,this.element=R,this.renderer=Z,this.cdr=De,this.link=ct,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.bkB,this.routerEventsSubscription=D.events.subscribe(ln=>{ln instanceof oe&&this.update()})}ngAfterContentInit(){(0,B.of)(this.links.changes,(0,B.of)(null)).pipe((0,Ne.U)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(R=>!!R).map(R=>R.onChanges);this.linkInputChangesSubscription=(0,o.H)(D).pipe((0,Ne.U)()).subscribe(R=>{this._isActive!==this.isLinkActive(this.router)(R)&&this.update()})}set routerLinkActive(D){const R=Array.isArray(D)?D:D.split(" ");this.classes=R.filter(Z=>!!Z)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this.classes.forEach(R=>{D?this.renderer.addClass(this.element.nativeElement,R):this.renderer.removeClass(this.element.nativeElement,R)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.isActiveChange.emit(D))})}isLinkActive(D){const R=function Mn(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Z=>{const De=Z.urlTree;return!!De&&D.isActive(De,R)}}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}static{this.\u0275fac=function(R){return new(R||E)(u.rXU(St),u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(kn,8))}}static{this.\u0275dir=u.FsC({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(R,Z,De){if(1&R&&u.wni(De,kn,5),2&R){let ct;u.mGM(ct=u.lsd())&&(Z.links=ct)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.OA$]})}}return E})();class Nn{}let Qn=(()=>{class E{preload(D,R){return R().pipe((0,Fn.W)(()=>(0,B.of)(null)))}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),ri=(()=>{class E{constructor(D,R,Z,De,ct){this.router=D,this.injector=Z,this.preloadingStrategy=De,this.loader=ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ve.p)(D=>D instanceof oe),(0,Tt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,R){const Z=[];for(const De of R){De.providers&&!De._injector&&(De._injector=(0,u.Ol2)(De.providers,D,`Route: ${De.path}`));const ct=De._injector??D,ln=De._loadedInjector??ct;(De.loadChildren&&!De._loadedRoutes&&void 0===De.canLoad||De.loadComponent&&!De._loadedComponent)&&Z.push(this.preloadConfig(ct,De)),(De.children||De._loadedRoutes)&&Z.push(this.processRoutes(ln,De.children??De._loadedRoutes))}return(0,o.H)(Z).pipe((0,Ne.U)())}preloadConfig(D,R){return this.preloadingStrategy.preload(R,()=>{let Z;Z=R.loadChildren&&void 0===R.canLoad?this.loader.loadChildren(D,R):(0,B.of)(null);const De=Z.pipe((0,rt.Z)(ct=>null===ct?(0,B.of)(void 0):(R._loadedRoutes=ct.routes,R._loadedInjector=ct.injector,this.processRoutes(ct.injector??D,ct.routes))));if(R.loadComponent&&!R._loadedComponent){const ct=this.loader.loadComponent(R);return(0,o.H)([De,ct]).pipe((0,Ne.U)())}return De})}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(St),u.KVO(u.Ql9),u.KVO(u.uvJ),u.KVO(Nn),u.KVO(Ws))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const hi=new u.nKC("");let Rn=(()=>{class E{constructor(D,R,Z,De,ct={}){this.urlSerializer=D,this.transitions=R,this.viewportScroller=Z,this.zone=De,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration||="disabled",ct.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof oe?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof $t&&D.code===vt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Lr&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,R){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Lr(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,R))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(R){u.QTQ()}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}}return E})();function ki(E,...O){return(0,u.EmA)([{provide:As,multi:!0,useValue:E},[],{provide:Vr,useFactory:Ai,deps:[St]},{provide:u.iLQ,multi:!0,useFactory:Co},O.map(D=>D.\u0275providers)])}function Ai(E){return E.routerState.root}function ar(E,O){return{\u0275kind:E,\u0275providers:O}}function Cr(E={}){return ar(4,[{provide:hi,useFactory:()=>{const D=(0,u.WQX)(Me.Xr),R=(0,u.WQX)(u.SKi),Z=(0,u.WQX)(ne),De=(0,u.WQX)(ue);return new Rn(De,Z,D,R,E)}}])}function Co(){const E=(0,u.WQX)(u.zZn);return O=>{const D=E.get(u.o8S);if(O!==D.components[0])return;const R=E.get(St),Z=E.get(oi);1===E.get(Yn)&&R.initialNavigation(),E.get(eo,null,u.$GK.Optional)?.setUpPreloading(),E.get(hi,null,u.$GK.Optional)?.init(),R.resetRootComponentType(D.componentTypes[0]),Z.closed||(Z.next(),Z.complete(),Z.unsubscribe())}}const oi=new u.nKC("",{factory:()=>new be.B}),Yn=new u.nKC("",{providedIn:"root",factory:()=>1}),eo=new u.nKC("");function Io(E){return ar(0,[{provide:eo,useExisting:ri},{provide:Nn,useExisting:E}])}function vi(E){return ar(9,[{provide:Ks,useValue:Qa},{provide:Qi,useValue:{skipNextTransition:!!E?.skipInitialTransition,...E}}])}const to=new u.nKC("ROUTER_FORROOT_GUARD"),Ts=[Me.aZ,{provide:ue,useClass:nt},St,Jr,{provide:Vr,useFactory:Ai,deps:[St]},Ws,[]];let Uo=(()=>{class E{constructor(D){}static forRoot(D,R){return{ngModule:E,providers:[Ts,[],{provide:As,multi:!0,useValue:D},{provide:to,useFactory:Ys,deps:[[St,new u.Xx1,new u.kdw]]},{provide:da,useValue:R||{}},R?.useHash?{provide:Me.hb,useClass:Me.fw}:{provide:Me.hb,useClass:Me.Sm},{provide:hi,useFactory:()=>{const E=(0,u.WQX)(Me.Xr),O=(0,u.WQX)(u.SKi),D=(0,u.WQX)(da),R=(0,u.WQX)(ne),Z=(0,u.WQX)(ue);return D.scrollOffset&&E.setOffset(D.scrollOffset),new Rn(Z,R,E,O,D)}},R?.preloadingStrategy?Io(R.preloadingStrategy).\u0275providers:[],R?.initialNavigation?wc(R):[],R?.bindToComponentInputs?ar(8,[Er,{provide:oa,useExisting:Er}]).\u0275providers:[],R?.enableViewTransitions?vi().\u0275providers:[],[{provide:Il,useFactory:Co},{provide:u.iLQ,multi:!0,useExisting:Il}]]}}static forChild(D){return{ngModule:E,providers:[{provide:As,multi:!0,useValue:D}]}}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(to,8))}}static{this.\u0275mod=u.$C({type:E})}static{this.\u0275inj=u.G2t({})}}return E})();function Ys(E){return"guarded"}function wc(E){return["disabled"===E.initialNavigation?ar(3,[{provide:u.hnV,multi:!0,useFactory:()=>{const O=(0,u.WQX)(St);return()=>{O.setUpLocationChangeListener()}}},{provide:Yn,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?ar(2,[{provide:Yn,useValue:0},{provide:u.hnV,multi:!0,deps:[u.zZn],useFactory:O=>{const D=O.get(Me.hj,Promise.resolve());return()=>D.then(()=>new Promise(R=>{const Z=O.get(St),De=O.get(oi);Dt(Z,()=>{R(!0)}),O.get(ne).afterPreactivation=()=>(R(!0),De.closed?(0,B.of)(void 0):De),Z.initialNavigation()}))}}]).\u0275providers:[]]}const Il=new u.nKC("")},5766:(tn,Re,v)=>{"use strict";v.d(Re,{My:()=>Ve,aT:()=>se}),new Uint8Array(new Uint32Array([287454020]).buffer);const bt=Array.from({length:256},(J,Se)=>Se.toString(16).padStart(2,"0"));function Ve(J){!function B(J,...Se){if(!function o(J){return J instanceof Uint8Array||null!=J&&"object"==typeof J&&"Uint8Array"===J.constructor.name}(J))throw new Error("Uint8Array expected");if(Se.length>0&&!Se.includes(J.length))throw new Error(`Uint8Array expected of length ${Se}, not of length=${J.length}`)}(J);let Se="";for(let gt=0;gt=rt._0&&J<=rt._9?J-rt._0:J>=rt._A&&J<=rt._F?J-(rt._A-10):J>=rt._a&&J<=rt._f?J-(rt._a-10):void 0}function se(J){if("string"!=typeof J)throw new Error("hex string expected, got "+typeof J);const Se=J.length,gt=Se/2;if(Se%2)throw new Error("padded hex string expected, got unpadded hex of length "+Se);const Ne=new Uint8Array(gt);for(let Ze=0,je=0;Ze{"use strict";function y(Pe){return Pe instanceof Uint8Array||null!=Pe&&"object"==typeof Pe&&"Uint8Array"===Pe.constructor.name}function o(...Pe){const xt=wt=>wt,xe=(wt,mn)=>ni=>wt(mn(ni));return{encode:Pe.map(wt=>wt.encode).reduceRight(xe,xt),decode:Pe.map(wt=>wt.decode).reduce(xe,xt)}}function B(Pe){return{encode:xt=>{if(!Array.isArray(xt)||xt.length&&"number"!=typeof xt[0])throw new Error("alphabet.encode input should be an array of numbers");return xt.map(xe=>{if(xe<0||xe>=Pe.length)throw new Error(`Digit index outside alphabet: ${xe} (alphabet: ${Pe.length})`);return Pe[xe]})},decode:xt=>{if(!Array.isArray(xt)||xt.length&&"string"!=typeof xt[0])throw new Error("alphabet.decode input should be array of strings");return xt.map(xe=>{if("string"!=typeof xe)throw new Error(`alphabet.decode: not string element=${xe}`);const ut=Pe.indexOf(xe);if(-1===ut)throw new Error(`Unknown letter: "${xe}". Allowed: ${Pe}`);return ut})}}}function W(Pe=""){if("string"!=typeof Pe)throw new Error("join separator should be string");return{encode:xt=>{if(!Array.isArray(xt)||xt.length&&"string"!=typeof xt[0])throw new Error("join.encode input should be array of strings");for(let xe of xt)if("string"!=typeof xe)throw new Error(`join.encode: non-string input=${xe}`);return xt.join(Pe)},decode:xt=>{if("string"!=typeof xt)throw new Error("join.decode input should be string");return xt.split(Pe)}}}function ee(Pe,xt="="){if("string"!=typeof xt)throw new Error("padding chr should be string");return{encode(xe){if(!Array.isArray(xe)||xe.length&&"string"!=typeof xe[0])throw new Error("padding.encode input should be array of strings");for(let ut of xe)if("string"!=typeof ut)throw new Error(`padding.encode: non-string input=${ut}`);for(;xe.length*Pe%8;)xe.push(xt);return xe},decode(xe){if(!Array.isArray(xe)||xe.length&&"string"!=typeof xe[0])throw new Error("padding.encode input should be array of strings");for(let Rt of xe)if("string"!=typeof Rt)throw new Error(`padding.decode: non-string input=${Rt}`);let ut=xe.length;if(ut*Pe%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ut>0&&xe[ut-1]===xt;ut--)if(!((ut-1)*Pe%8))throw new Error("Invalid padding: string has too much padding");return xe.slice(0,ut)}}}function V(Pe,xt,xe){if(xt<2)throw new Error(`convertRadix: wrong from=${xt}, base cannot be less than 2`);if(xe<2)throw new Error(`convertRadix: wrong to=${xe}, base cannot be less than 2`);if(!Array.isArray(Pe))throw new Error("convertRadix: data should be array");if(!Pe.length)return[];let ut=0;const Rt=[],wt=Array.from(Pe);for(wt.forEach(mn=>{if(mn<0||mn>=xt)throw new Error(`Wrong integer: ${mn}`)});;){let mn=0,ni=!0;for(let Zt=ut;Ztgt,K3:()=>Xe,Tq:()=>yn,Wp:()=>Me});const F=(Pe,xt)=>xt?F(xt,Pe%xt):Pe,U=(Pe,xt)=>Pe+(xt-F(Pe,xt));function L(Pe,xt,xe,ut){if(!Array.isArray(Pe))throw new Error("convertRadix2: data should be array");if(xt<=0||xt>32)throw new Error(`convertRadix2: wrong from=${xt}`);if(xe<=0||xe>32)throw new Error(`convertRadix2: wrong to=${xe}`);if(U(xt,xe)>32)throw new Error(`convertRadix2: carry overflow from=${xt} to=${xe} carryBits=${U(xt,xe)}`);let Rt=0,wt=0;const mn=2**xe-1,ni=[];for(const Zt of Pe){if(Zt>=2**xt)throw new Error(`convertRadix2: invalid data word=${Zt} from=${xt}`);if(Rt=Rt<32)throw new Error(`convertRadix2: carry overflow pos=${wt} from=${xt}`);for(wt+=xt;wt>=xe;wt-=xe)ni.push((Rt>>wt-xe&mn)>>>0);Rt&=2**wt-1}if(Rt=Rt<=xt)throw new Error("Excess padding");if(!ut&&Rt)throw new Error(`Non-zero padding: ${Rt}`);return ut&&wt>0&&ni.push(Rt>>>0),ni}function he(Pe){return{encode:xt=>{if(!y(xt))throw new Error("radix.encode input should be Uint8Array");return V(Array.from(xt),256,Pe)},decode:xt=>{if(!Array.isArray(xt)||xt.length&&"number"!=typeof xt[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(V(xt,Pe,256))}}}function de(Pe,xt=!1){if(Pe<=0||Pe>32)throw new Error("radix2: bits should be in (0..32]");if(U(8,Pe)>32||U(Pe,8)>32)throw new Error("radix2: carry overflow");return{encode:xe=>{if(!y(xe))throw new Error("radix2.encode input should be Uint8Array");return L(Array.from(xe),8,Pe,!xt)},decode:xe=>{if(!Array.isArray(xe)||xe.length&&"number"!=typeof xe[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(L(xe,Pe,8,xt))}}}function be(Pe){if("function"!=typeof Pe)throw new Error("unsafeWrapper fn should be function");return function(...xt){try{return Pe.apply(null,xt)}catch{}}}function Te(Pe,xt){if("function"!=typeof xt)throw new Error("checksum fn should be function");return{encode(xe){if(!y(xe))throw new Error("checksum.encode: input should be Uint8Array");const ut=xt(xe).slice(0,Pe),Rt=new Uint8Array(xe.length+Pe);return Rt.set(xe),Rt.set(ut,xe.length),Rt},decode(xe){if(!y(xe))throw new Error("checksum.decode: input should be Uint8Array");const ut=xe.slice(0,-Pe),Rt=xt(ut).slice(0,Pe),wt=xe.slice(-Pe);for(let mn=0;mno(he(58),B("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),W("")))(),yn=Pe=>o(Te(4,xt=>Pe(Pe(xt))),It),di=o(B("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),W("")),mt=[996825010,642813549,513874426,1027748829,705979059];function Ee(Pe){const xt=Pe>>25;let xe=(33554431&Pe)<<5;for(let ut=0;ut>ut&1)&&(xe^=mt[ut]);return xe}function J(Pe,xt,xe=1){const ut=Pe.length;let Rt=1;for(let wt=0;wt126)throw new Error(`Invalid prefix (${Pe})`);Rt=Ee(Rt)^mn>>5}Rt=Ee(Rt);for(let wt=0;wtrn)throw new TypeError(`Length ${Q} exceeds limit ${rn}`);const T=Ge.toLowerCase(),N=J(T,dt,xt);return`${T}1${di.encode(dt)}${N}`}function ni(Ge,dt=90){if("string"!=typeof Ge)throw new Error("bech32.decode input should be string, not "+typeof Ge);if(Ge.length<8||!1!==dt&&Ge.length>dt)throw new TypeError(`Wrong string length: ${Ge.length} (${Ge}). Expected (8..${dt})`);const rn=Ge.toLowerCase();if(Ge!==rn&&Ge!==Ge.toUpperCase())throw new Error("String must be lowercase or uppercase");const Q=rn.lastIndexOf("1");if(0===Q||-1===Q)throw new Error('Letter "1" must be present between prefix and data only');const T=rn.slice(0,Q),N=rn.slice(Q+1);if(N.length<6)throw new Error("Data must be at least 6 characters long");const $=di.decode(N).slice(0,-6),le=J(T,$,xt);if(!N.endsWith(le))throw new Error(`Invalid checksum in ${Ge}: expected "${le}"`);return{prefix:T,words:$}}return{encode:mn,decode:ni,encodeFromBytes:function Je(Ge,dt){return mn(Ge,Rt(dt))},decodeToBytes:function _e(Ge){const{prefix:dt,words:rn}=ni(Ge,!1);return{prefix:dt,words:rn,bytes:ut(rn)}},decodeUnsafe:be(ni),fromWords:ut,fromWordsUnsafe:wt,toWords:Rt}}const gt=Se("bech32")},9608:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>ne});var u={};function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function W(p,..._){if(!function B(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}(p))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(p.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${p.length}`)}function re(p,_=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(_&&p.finished)throw new Error("Hash#digest() has already been called")}function de(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}v.r(u),v.d(u,{OG:()=>Ho,My:()=>vo,Ph:()=>hr,lX:()=>ts,Id:()=>Ar,fg:()=>ws,qj:()=>Sr,aT:()=>Us,lq:()=>Jr,z:()=>Ii,Q5:()=>Xr});const be=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),Te=(p,_)=>p<<32-_|p>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const te=Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0")),tt={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function bt(p){return p>=tt._0&&p<=tt._9?p-tt._0:p>=tt._A&&p<=tt._F?p-(tt._A-10):p>=tt._a&&p<=tt._f?p-(tt._a-10):void 0}function fe(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}function Le(p){if("string"==typeof p&&(p=fe(p)),!de(p))throw new Error("expected Uint8Array, got "+typeof p);return p}function et(...p){let _=0;for(let X=0;Xp().update(Le(X)).digest(),x=p();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>p(),_}class di extends It{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,function ee(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}(_);const X=Le(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const ce=this.blockLen,ze=new Uint8Array(ce);ze.set(X.length>ce?_.create().update(X).digest():X);for(let yt=0;ytnew di(p,_).update(x).digest();mt.create=(p,_)=>new di(p,_);class J extends It{constructor(_,x,X,ce){super(),this.blockLen=_,this.outputLen=x,this.padOffset=X,this.isLE=ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=be(this.buffer)}update(_){re(this);const{view:x,buffer:X,blockLen:ce}=this,ze=(_=Le(_)).length;for(let yt=0;ytce-yt&&(this.process(X,0),yt=0);for(let St=yt;St>ce&ze),Dt=Number(x&ze),Wt=X?0:4;p.setUint32(_+(X?4:0),yt,X),p.setUint32(_+Wt,Dt,X)})(X,ce-8,BigInt(8*this.length),ze),this.process(X,0);const Dt=be(_),Pt=this.outputLen;if(Pt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Wt=Pt/4,pn=this.get();if(Wt>pn.length)throw new Error("_sha2: outputLen bigger than state");for(let St=0;St_);let Ze=[gt],je=[gt.map(p=>(9*p+5)%16)];for(let p=0;p<4;p++)for(let _ of[Ze,je])_.push(_[p].map(x=>Se[x]));const Lt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(p=>new Uint8Array(p)),Mt=Ze.map((p,_)=>p.map(x=>Lt[_][x])),we=je.map((p,_)=>p.map(x=>Lt[_][x])),Oe=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),me=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),We=(p,_)=>p<<_|p>>>32-_;function Pe(p,_,x,X){return 0===p?_^x^X:1===p?_&x|~_&X:2===p?(_|~x)^X:3===p?_&X|x&~X:_^(x|~X)}const xt=new Uint32Array(16);class xe extends J{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:_,h1:x,h2:X,h3:ce,h4:ze}=this;return[_,x,X,ce,ze]}set(_,x,X,ce,ze){this.h0=0|_,this.h1=0|x,this.h2=0|X,this.h3=0|ce,this.h4=0|ze}process(_,x){for(let cn=0;cn<16;cn++,x+=4)xt[cn]=_.getUint32(x,!0);let X=0|this.h0,ce=X,ze=0|this.h1,yt=ze,Dt=0|this.h2,Pt=Dt,Wt=0|this.h3,pn=Wt,St=0|this.h4,Ht=St;for(let cn=0;cn<5;cn++){const kn=4-cn,fn=Oe[cn],Mn=me[cn],Nn=Ze[cn],Qn=je[cn],An=Mt[cn],ri=we[cn];for(let hi=0;hi<16;hi++){const Rn=We(X+Pe(cn,ze,Dt,Wt)+xt[Nn[hi]]+fn,An[hi])+St|0;X=St,St=Wt,Wt=0|We(Dt,10),Dt=ze,ze=Rn}for(let hi=0;hi<16;hi++){const Rn=We(ce+Pe(kn,yt,Pt,pn)+xt[Qn[hi]]+Mn,ri[hi])+Ht|0;ce=Ht,Ht=pn,pn=0|We(Pt,10),Pt=yt,yt=Rn}}this.set(this.h1+Dt+pn|0,this.h2+Wt+Ht|0,this.h3+St+ce|0,this.h4+X+yt|0,this.h0+ze+Pt|0)}roundClean(){xt.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ut=nn(()=>new xe),Rt=(p,_,x)=>p&_^~p&x,wt=(p,_,x)=>p&_^p&x^_&x,mn=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]),ni=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Zt=new Uint32Array(64);class _e extends J{constructor(){super(64,32,8,!1),this.A=0|ni[0],this.B=0|ni[1],this.C=0|ni[2],this.D=0|ni[3],this.E=0|ni[4],this.F=0|ni[5],this.G=0|ni[6],this.H=0|ni[7]}get(){const{A:_,B:x,C:X,D:ce,E:ze,F:yt,G:Dt,H:Pt}=this;return[_,x,X,ce,ze,yt,Dt,Pt]}set(_,x,X,ce,ze,yt,Dt,Pt){this.A=0|_,this.B=0|x,this.C=0|X,this.D=0|ce,this.E=0|ze,this.F=0|yt,this.G=0|Dt,this.H=0|Pt}process(_,x){for(let St=0;St<16;St++,x+=4)Zt[St]=_.getUint32(x,!1);for(let St=16;St<64;St++){const Ht=Zt[St-15],cn=Zt[St-2],kn=Te(Ht,7)^Te(Ht,18)^Ht>>>3,fn=Te(cn,17)^Te(cn,19)^cn>>>10;Zt[St]=fn+Zt[St-7]+kn+Zt[St-16]|0}let{A:X,B:ce,C:ze,D:yt,E:Dt,F:Pt,G:Wt,H:pn}=this;for(let St=0;St<64;St++){const cn=pn+(Te(Dt,6)^Te(Dt,11)^Te(Dt,25))+Rt(Dt,Pt,Wt)+mn[St]+Zt[St]|0,fn=(Te(X,2)^Te(X,13)^Te(X,22))+wt(X,ce,ze)|0;pn=Wt,Wt=Pt,Pt=Dt,Dt=yt+cn|0,yt=ze,ze=ce,ce=X,X=cn+fn|0}X=X+this.A|0,ce=ce+this.B|0,ze=ze+this.C|0,yt=yt+this.D|0,Dt=Dt+this.E|0,Pt=Pt+this.F|0,Wt=Wt+this.G|0,pn=pn+this.H|0,this.set(X,ce,ze,yt,Dt,Pt,Wt,pn)}roundClean(){Zt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ge=nn(()=>new _e),rn=BigInt(2**32-1),Q=BigInt(32);function T(p,_=!1){return _?{h:Number(p&rn),l:Number(p>>Q&rn)}:{h:0|Number(p>>Q&rn),l:0|Number(p&rn)}}const At_split=function N(p,_=!1){let x=new Uint32Array(p.length),X=new Uint32Array(p.length);for(let ce=0;cep>>>x,At_shrSL=(p,_,x)=>p<<32-x|_>>>x,At_rotrSH=(p,_,x)=>p>>>x|_<<32-x,At_rotrSL=(p,_,x)=>p<<32-x|_>>>x,At_rotrBH=(p,_,x)=>p<<64-x|_>>>x-32,At_rotrBL=(p,_,x)=>p>>>x-32|_<<64-x,At_add=function Be(p,_,x,X){const ce=(_>>>0)+(X>>>0);return{h:p+x+(ce/2**32|0)|0,l:0|ce}},At_add3L=(p,_,x)=>(p>>>0)+(_>>>0)+(x>>>0),At_add3H=(p,_,x,X)=>_+x+X+(p/2**32|0)|0,At_add4L=(p,_,x,X)=>(p>>>0)+(_>>>0)+(x>>>0)+(X>>>0),At_add4H=(p,_,x,X,ce)=>_+x+X+ce+(p/2**32|0)|0,At_add5H=(p,_,x,X,ce,ze)=>_+x+X+ce+ze+(p/2**32|0)|0,At_add5L=(p,_,x,X,ce)=>(p>>>0)+(_>>>0)+(x>>>0)+(X>>>0)+(ce>>>0),[st,Bt]=At_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(p=>BigInt(p))),ot=new Uint32Array(80),qe=new Uint32Array(80);class Ie extends J{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:_,Al:x,Bh:X,Bl:ce,Ch:ze,Cl:yt,Dh:Dt,Dl:Pt,Eh:Wt,El:pn,Fh:St,Fl:Ht,Gh:cn,Gl:kn,Hh:fn,Hl:Mn}=this;return[_,x,X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn]}set(_,x,X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn){this.Ah=0|_,this.Al=0|x,this.Bh=0|X,this.Bl=0|ce,this.Ch=0|ze,this.Cl=0|yt,this.Dh=0|Dt,this.Dl=0|Pt,this.Eh=0|Wt,this.El=0|pn,this.Fh=0|St,this.Fl=0|Ht,this.Gh=0|cn,this.Gl=0|kn,this.Hh=0|fn,this.Hl=0|Mn}process(_,x){for(let An=0;An<16;An++,x+=4)ot[An]=_.getUint32(x),qe[An]=_.getUint32(x+=4);for(let An=16;An<80;An++){const ri=0|ot[An-15],hi=0|qe[An-15],Rn=At_rotrSH(ri,hi,1)^At_rotrSH(ri,hi,8)^At_shrSH(ri,hi,7),ki=At_rotrSL(ri,hi,1)^At_rotrSL(ri,hi,8)^At_shrSL(ri,hi,7),Ai=0|ot[An-2],ar=0|qe[An-2],Ri=At_rotrSH(Ai,ar,19)^At_rotrBH(Ai,ar,61)^At_shrSH(Ai,ar,6),rr=At_rotrSL(Ai,ar,19)^At_rotrBL(Ai,ar,61)^At_shrSL(Ai,ar,6),Qr=At_add4L(ki,rr,qe[An-7],qe[An-16]),Cr=At_add4H(Qr,Rn,Ri,ot[An-7],ot[An-16]);ot[An]=0|Cr,qe[An]=0|Qr}let{Ah:X,Al:ce,Bh:ze,Bl:yt,Ch:Dt,Cl:Pt,Dh:Wt,Dl:pn,Eh:St,El:Ht,Fh:cn,Fl:kn,Gh:fn,Gl:Mn,Hh:Nn,Hl:Qn}=this;for(let An=0;An<80;An++){const ri=At_rotrSH(St,Ht,14)^At_rotrSH(St,Ht,18)^At_rotrBH(St,Ht,41),hi=At_rotrSL(St,Ht,14)^At_rotrSL(St,Ht,18)^At_rotrBL(St,Ht,41),Rn=St&cn^~St&fn,Ai=At_add5L(Qn,hi,Ht&kn^~Ht&Mn,Bt[An],qe[An]),ar=At_add5H(Ai,Nn,ri,Rn,st[An],ot[An]),Ri=0|Ai,rr=At_rotrSH(X,ce,28)^At_rotrBH(X,ce,34)^At_rotrBH(X,ce,39),Qr=At_rotrSL(X,ce,28)^At_rotrBL(X,ce,34)^At_rotrBL(X,ce,39),Cr=X&ze^X&Dt^ze&Dt,Co=ce&yt^ce&Pt^yt&Pt;Nn=0|fn,Qn=0|Mn,fn=0|cn,Mn=0|kn,cn=0|St,kn=0|Ht,({h:St,l:Ht}=At_add(0|Wt,0|pn,0|ar,0|Ri)),Wt=0|Dt,pn=0|Pt,Dt=0|ze,Pt=0|yt,ze=0|X,yt=0|ce;const oi=At_add3L(Ri,Qr,Co);X=At_add3H(oi,ar,rr,Cr),ce=0|oi}({h:X,l:ce}=At_add(0|this.Ah,0|this.Al,0|X,0|ce)),({h:ze,l:yt}=At_add(0|this.Bh,0|this.Bl,0|ze,0|yt)),({h:Dt,l:Pt}=At_add(0|this.Ch,0|this.Cl,0|Dt,0|Pt)),({h:Wt,l:pn}=At_add(0|this.Dh,0|this.Dl,0|Wt,0|pn)),({h:St,l:Ht}=At_add(0|this.Eh,0|this.El,0|St,0|Ht)),({h:cn,l:kn}=At_add(0|this.Fh,0|this.Fl,0|cn,0|kn)),({h:fn,l:Mn}=At_add(0|this.Gh,0|this.Gl,0|fn,0|Mn)),({h:Nn,l:Qn}=At_add(0|this.Hh,0|this.Hl,0|Nn,0|Qn)),this.set(X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn,Nn,Qn)}roundClean(){ot.fill(0),qe.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const li=nn(()=>new Ie);function Fr(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function Kr(p,..._){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(p.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${p.length}`)}const bn={number:Fr,bool:function bi(p){if("boolean"!=typeof p)throw new Error(`Expected boolean, not ${p}`)},bytes:Kr,hash:function Or(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Fr(p.outputLen),Fr(p.blockLen)},exists:function ft(p,_=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(_&&p.finished)throw new Error("Hash#digest() has already been called")},output:function Ot(p,_){Kr(p);const x=_.outputLen;if(p.lengthp instanceof Uint8Array,ci=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),Bn=(p,_)=>p<<32-_|p>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function at(p){if("string"==typeof p&&(p=function vt(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p)),!Kn(p))throw new Error("expected Uint8Array, got "+typeof p);return p}Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0"));class hn{clone(){return this._cloneInto()}}function xn(p){const _=X=>p().update(at(X)).digest(),x=p();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>p(),_}function ui(p=32){if(Tn&&"function"==typeof Tn.getRandomValues)return Tn.getRandomValues(new Uint8Array(p));throw new Error("crypto.getRandomValues must be defined")}class ti extends hn{constructor(_,x,X,ce){super(),this.blockLen=_,this.outputLen=x,this.padOffset=X,this.isLE=ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=ci(this.buffer)}update(_){bn.exists(this);const{view:x,buffer:X,blockLen:ce}=this,ze=(_=at(_)).length;for(let yt=0;ytce-yt&&(this.process(X,0),yt=0);for(let St=yt;St>ce&ze),Dt=Number(x&ze),Wt=X?0:4;p.setUint32(_+(X?4:0),yt,X),p.setUint32(_+Wt,Dt,X)})(X,ce-8,BigInt(8*this.length),ze),this.process(X,0);const Dt=ci(_),Pt=this.outputLen;if(Pt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Wt=Pt/4,pn=this.get();if(Wt>pn.length)throw new Error("_sha2: outputLen bigger than state");for(let St=0;Stp&_^~p&x,Rr=(p,_,x)=>p&_^p&x^_&x,ho=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]),Lr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ci=new Uint32Array(64);class Br extends ti{constructor(){super(64,32,8,!1),this.A=0|Lr[0],this.B=0|Lr[1],this.C=0|Lr[2],this.D=0|Lr[3],this.E=0|Lr[4],this.F=0|Lr[5],this.G=0|Lr[6],this.H=0|Lr[7]}get(){const{A:_,B:x,C:X,D:ce,E:ze,F:yt,G:Dt,H:Pt}=this;return[_,x,X,ce,ze,yt,Dt,Pt]}set(_,x,X,ce,ze,yt,Dt,Pt){this.A=0|_,this.B=0|x,this.C=0|X,this.D=0|ce,this.E=0|ze,this.F=0|yt,this.G=0|Dt,this.H=0|Pt}process(_,x){for(let St=0;St<16;St++,x+=4)Ci[St]=_.getUint32(x,!1);for(let St=16;St<64;St++){const Ht=Ci[St-15],cn=Ci[St-2],kn=Bn(Ht,7)^Bn(Ht,18)^Ht>>>3,fn=Bn(cn,17)^Bn(cn,19)^cn>>>10;Ci[St]=fn+Ci[St-7]+kn+Ci[St-16]|0}let{A:X,B:ce,C:ze,D:yt,E:Dt,F:Pt,G:Wt,H:pn}=this;for(let St=0;St<64;St++){const cn=pn+(Bn(Dt,6)^Bn(Dt,11)^Bn(Dt,25))+Wn(Dt,Pt,Wt)+ho[St]+Ci[St]|0,fn=(Bn(X,2)^Bn(X,13)^Bn(X,22))+Rr(X,ce,ze)|0;pn=Wt,Wt=Pt,Pt=Dt,Dt=yt+cn|0,yt=ze,ze=ce,ce=X,X=cn+fn|0}X=X+this.A|0,ce=ce+this.B|0,ze=ze+this.C|0,yt=yt+this.D|0,Dt=Dt+this.E|0,Pt=Pt+this.F|0,Wt=Wt+this.G|0,pn=pn+this.H|0,this.set(X,ce,ze,yt,Dt,Pt,Wt,pn)}roundClean(){Ci.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Ko extends Br{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}}const Gi=xn(()=>new Br),io=(xn(()=>new Ko),BigInt(0),BigInt(1)),ma=BigInt(2),ga=p=>p instanceof Uint8Array,Kl=Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0"));function vo(p){if(!ga(p))throw new Error("Uint8Array expected");let _="";for(let x=0;xX+ce.length,0));let x=0;return p.forEach(X=>{if(!ga(X))throw new Error("Uint8Array expected");_.set(X,x),x+=X.length}),_}const Ho=p=>(ma<new Uint8Array(p),va=p=>Uint8Array.from(p);function ws(p,_,x){if("number"!=typeof p||p<2)throw new Error("hashLen must be a number");if("number"!=typeof _||_<2)throw new Error("qByteLen must be a number");if("function"!=typeof x)throw new Error("hmacFn must be a function");let X=$o(p),ce=$o(p),ze=0;const yt=()=>{X.fill(1),ce.fill(0),ze=0},Dt=(...St)=>x(ce,X,...St),Pt=(St=$o())=>{ce=Dt(va([0]),St),X=Dt(),0!==St.length&&(ce=Dt(va([1]),St),X=Dt())},Wt=()=>{if(ze++>=1e3)throw new Error("drbg: tried 1000 values");let St=0;const Ht=[];for(;St<_;){X=Dt();const cn=X.slice();Ht.push(cn),St+=X.length}return Ar(...Ht)};return(St,Ht)=>{let cn;for(yt(),Pt(St);!(cn=Ht(Wt()));)Pt();return yt(),cn}}const Hs={bigint:p=>"bigint"==typeof p,function:p=>"function"==typeof p,boolean:p=>"boolean"==typeof p,string:p=>"string"==typeof p,isSafeInteger:p=>Number.isSafeInteger(p),array:p=>Array.isArray(p),field:(p,_)=>_.Fp.isValid(p),hash:p=>"function"==typeof p&&Number.isSafeInteger(p.outputLen)};function Xr(p,_,x={}){const X=(ce,ze,yt)=>{const Dt=Hs[ze];if("function"!=typeof Dt)throw new Error(`Invalid validator "${ze}", expected function`);const Pt=p[ce];if(!(yt&&void 0===Pt||Dt(Pt,p)))throw new Error(`Invalid param ${String(ce)}=${Pt} (${typeof Pt}), expected ${ze}`)};for(const[ce,ze]of Object.entries(_))X(ce,ze,!1);for(const[ce,ze]of Object.entries(x))X(ce,ze,!0);return p}const Li=BigInt(0),gr=BigInt(1),Xo=BigInt(2),ro=BigInt(3),oa=BigInt(4),Er=BigInt(5),oo=BigInt(8);function Ir(p,_){const x=p%_;return x>=Li?x:_+x}function Yo(p,_,x){if(x<=Li||_ 0");if(x===gr)return Li;let X=gr;for(;_>Li;)_&gr&&(X=X*p%x),p=p*p%x,_>>=gr;return X}function Eo(p,_,x){let X=p;for(;_-- >Li;)X*=X,X%=x;return X}function Es(p,_){if(p===Li||_<=Li)throw new Error(`invert: expected positive integers, got n=${p} mod=${_}`);let x=Ir(p,_),X=_,ce=Li,ze=gr,yt=gr,Dt=Li;for(;x!==Li;){const Wt=X/x,pn=X%x,St=ce-yt*Wt,Ht=ze-Dt*Wt;X=x,x=pn,ce=yt,ze=Dt,yt=St,Dt=Ht}if(X!==gr)throw new Error("invert: does not exist");return Ir(ce,_)}BigInt(9),BigInt(16);const Fo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ao(p,_){const x=void 0!==_?_:p.toString(2).length;return{nBitLength:x,nByteLength:Math.ceil(x/8)}}const fo=BigInt(0),Cs=BigInt(1);function _a(p){return function Xa(p){Xr(p,Fo.reduce((X,ce)=>(X[ce]="function",X),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(p.Fp),Xr(p,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ao(p.n,p.nBitLength),...p,p:p.Fp.ORDER})}const{Ph:Os,aT:ka}=u,os={Err:class extends Error{constructor(_=""){super(_)}},_parseInt(p){const{Err:_}=os;if(p.length<2||2!==p[0])throw new _("Invalid signature integer tag");const x=p[1],X=p.subarray(2,x+2);if(!x||X.length!==x)throw new _("Invalid signature integer: wrong length");if(128&X[0])throw new _("Invalid signature integer: negative");if(0===X[0]&&!(128&X[1]))throw new _("Invalid signature integer: unnecessary leading zero");return{d:Os(X),l:p.subarray(x+2)}},toSig(p){const{Err:_}=os,x="string"==typeof p?ka(p):p;if(!(x instanceof Uint8Array))throw new Error("ui8a expected");let X=x.length;if(X<2||48!=x[0])throw new _("Invalid signature tag");if(x[1]!==X-2)throw new _("Invalid signature: incorrect length");const{d:ce,l:ze}=os._parseInt(x.subarray(2)),{d:yt,l:Dt}=os._parseInt(ze);if(Dt.length)throw new _("Invalid signature: left bytes after parsing");return{r:ce,s:yt}},hexFromSig(p){const _=Wt=>8&Number.parseInt(Wt[0],16)?"00"+Wt:Wt,x=Wt=>{const pn=Wt.toString(16);return 1&pn.length?`0${pn}`:pn},X=_(x(p.s)),ce=_(x(p.r)),ze=X.length/2,yt=ce.length/2,Dt=x(ze),Pt=x(yt);return`30${x(yt+ze+4)}02${Pt}${ce}02${Dt}${X}`}},So=BigInt(0),_r=BigInt(1),z=(BigInt(2),BigInt(3));function Ct(p){const _=function ge(p){const _=_a(p);return Xr(_,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,..._})}(p),{Fp:x,n:X}=_,ce=x.BYTES+1,ze=2*x.BYTES+1;function Dt(oi){return Ir(oi,X)}function Pt(oi){return Es(oi,X)}const{ProjectivePoint:Wt,normPrivateKeyToScalar:pn,weierstrassEquation:St,isWithinCurveOrder:Ht}=function k(p){const _=function Ra(p){const _=_a(p);Xr(_,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:x,Fp:X,a:ce}=_;if(x){if(!X.eql(ce,X.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof x||"bigint"!=typeof x.beta||"function"!=typeof x.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({..._})}(p),{Fp:x}=_,X=_.toBytes||((kn,fn,Mn)=>{const Nn=fn.toAffine();return Ar(Uint8Array.from([4]),x.toBytes(Nn.x),x.toBytes(Nn.y))}),ce=_.fromBytes||(kn=>{const fn=kn.subarray(1);return{x:x.fromBytes(fn.subarray(0,x.BYTES)),y:x.fromBytes(fn.subarray(x.BYTES,2*x.BYTES))}});function ze(kn){const{a:fn,b:Mn}=_,Nn=x.sqr(kn),Qn=x.mul(Nn,kn);return x.add(x.add(Qn,x.mul(kn,fn)),Mn)}if(!x.eql(x.sqr(_.Gy),ze(_.Gx)))throw new Error("bad generator point: equation left != right");function yt(kn){return"bigint"==typeof kn&&Sox.eql(An,x.ZERO);return Qn(Mn)&&Qn(Nn)?St.ZERO:new St(Mn,Nn,x.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(fn){const Mn=x.invertBatch(fn.map(Nn=>Nn.pz));return fn.map((Nn,Qn)=>Nn.toAffine(Mn[Qn])).map(St.fromAffine)}static fromHex(fn){const Mn=St.fromAffine(ce(Sr("pointHex",fn)));return Mn.assertValidity(),Mn}static fromPrivateKey(fn){return St.BASE.multiply(Pt(fn))}_setWindowSize(fn){this._WINDOW_SIZE=fn,Wt.delete(this)}assertValidity(){if(this.is0()){if(_.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:fn,y:Mn}=this.toAffine();if(!x.isValid(fn)||!x.isValid(Mn))throw new Error("bad point: x or y not FE");const Nn=x.sqr(Mn),Qn=ze(fn);if(!x.eql(Nn,Qn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:fn}=this.toAffine();if(x.isOdd)return!x.isOdd(fn);throw new Error("Field doesn't support isOdd")}equals(fn){pn(fn);const{px:Mn,py:Nn,pz:Qn}=this,{px:An,py:ri,pz:hi}=fn,Rn=x.eql(x.mul(Mn,hi),x.mul(An,Qn)),ki=x.eql(x.mul(Nn,hi),x.mul(ri,Qn));return Rn&&ki}negate(){return new St(this.px,x.neg(this.py),this.pz)}double(){const{a:fn,b:Mn}=_,Nn=x.mul(Mn,z),{px:Qn,py:An,pz:ri}=this;let hi=x.ZERO,Rn=x.ZERO,ki=x.ZERO,Ai=x.mul(Qn,Qn),ar=x.mul(An,An),Ri=x.mul(ri,ri),rr=x.mul(Qn,An);return rr=x.add(rr,rr),ki=x.mul(Qn,ri),ki=x.add(ki,ki),hi=x.mul(fn,ki),Rn=x.mul(Nn,Ri),Rn=x.add(hi,Rn),hi=x.sub(ar,Rn),Rn=x.add(ar,Rn),Rn=x.mul(hi,Rn),hi=x.mul(rr,hi),ki=x.mul(Nn,ki),Ri=x.mul(fn,Ri),rr=x.sub(Ai,Ri),rr=x.mul(fn,rr),rr=x.add(rr,ki),ki=x.add(Ai,Ai),Ai=x.add(ki,Ai),Ai=x.add(Ai,Ri),Ai=x.mul(Ai,rr),Rn=x.add(Rn,Ai),Ri=x.mul(An,ri),Ri=x.add(Ri,Ri),Ai=x.mul(Ri,rr),hi=x.sub(hi,Ai),ki=x.mul(Ri,ar),ki=x.add(ki,ki),ki=x.add(ki,ki),new St(hi,Rn,ki)}add(fn){pn(fn);const{px:Mn,py:Nn,pz:Qn}=this,{px:An,py:ri,pz:hi}=fn;let Rn=x.ZERO,ki=x.ZERO,Ai=x.ZERO;const ar=_.a,Ri=x.mul(_.b,z);let rr=x.mul(Mn,An),Qr=x.mul(Nn,ri),Cr=x.mul(Qn,hi),Co=x.add(Mn,Nn),oi=x.add(An,ri);Co=x.mul(Co,oi),oi=x.add(rr,Qr),Co=x.sub(Co,oi),oi=x.add(Mn,Qn);let Yn=x.add(An,hi);return oi=x.mul(oi,Yn),Yn=x.add(rr,Cr),oi=x.sub(oi,Yn),Yn=x.add(Nn,Qn),Rn=x.add(ri,hi),Yn=x.mul(Yn,Rn),Rn=x.add(Qr,Cr),Yn=x.sub(Yn,Rn),Ai=x.mul(ar,oi),Rn=x.mul(Ri,Cr),Ai=x.add(Rn,Ai),Rn=x.sub(Qr,Ai),Ai=x.add(Qr,Ai),ki=x.mul(Rn,Ai),Qr=x.add(rr,rr),Qr=x.add(Qr,rr),Cr=x.mul(ar,Cr),oi=x.mul(Ri,oi),Qr=x.add(Qr,Cr),Cr=x.sub(rr,Cr),Cr=x.mul(ar,Cr),oi=x.add(oi,Cr),rr=x.mul(Qr,oi),ki=x.add(ki,rr),rr=x.mul(Yn,oi),Rn=x.mul(Co,Rn),Rn=x.sub(Rn,rr),rr=x.mul(Co,Qr),Ai=x.mul(Yn,Ai),Ai=x.add(Ai,rr),new St(Rn,ki,Ai)}subtract(fn){return this.add(fn.negate())}is0(){return this.equals(St.ZERO)}wNAF(fn){return cn.wNAFCached(this,Wt,fn,Mn=>{const Nn=x.invertBatch(Mn.map(Qn=>Qn.pz));return Mn.map((Qn,An)=>Qn.toAffine(Nn[An])).map(St.fromAffine)})}multiplyUnsafe(fn){const Mn=St.ZERO;if(fn===So)return Mn;if(Dt(fn),fn===_r)return this;const{endo:Nn}=_;if(!Nn)return cn.unsafeLadder(this,fn);let{k1neg:Qn,k1:An,k2neg:ri,k2:hi}=Nn.splitScalar(fn),Rn=Mn,ki=Mn,Ai=this;for(;An>So||hi>So;)An&_r&&(Rn=Rn.add(Ai)),hi&_r&&(ki=ki.add(Ai)),Ai=Ai.double(),An>>=_r,hi>>=_r;return Qn&&(Rn=Rn.negate()),ri&&(ki=ki.negate()),ki=new St(x.mul(ki.px,Nn.beta),ki.py,ki.pz),Rn.add(ki)}multiply(fn){Dt(fn);let Nn,Qn,Mn=fn;const{endo:An}=_;if(An){const{k1neg:ri,k1:hi,k2neg:Rn,k2:ki}=An.splitScalar(Mn);let{p:Ai,f:ar}=this.wNAF(hi),{p:Ri,f:rr}=this.wNAF(ki);Ai=cn.constTimeNegate(ri,Ai),Ri=cn.constTimeNegate(Rn,Ri),Ri=new St(x.mul(Ri.px,An.beta),Ri.py,Ri.pz),Nn=Ai.add(Ri),Qn=ar.add(rr)}else{const{p:ri,f:hi}=this.wNAF(Mn);Nn=ri,Qn=hi}return St.normalizeZ([Nn,Qn])[0]}multiplyAndAddUnsafe(fn,Mn,Nn){const Qn=St.BASE,An=(hi,Rn)=>Rn!==So&&Rn!==_r&&hi.equals(Qn)?hi.multiply(Rn):hi.multiplyUnsafe(Rn),ri=An(this,Mn).add(An(fn,Nn));return ri.is0()?void 0:ri}toAffine(fn){const{px:Mn,py:Nn,pz:Qn}=this,An=this.is0();null==fn&&(fn=An?x.ONE:x.inv(Qn));const ri=x.mul(Mn,fn),hi=x.mul(Nn,fn),Rn=x.mul(Qn,fn);if(An)return{x:x.ZERO,y:x.ZERO};if(!x.eql(Rn,x.ONE))throw new Error("invZ was invalid");return{x:ri,y:hi}}isTorsionFree(){const{h:fn,isTorsionFree:Mn}=_;if(fn===_r)return!0;if(Mn)return Mn(St,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:fn,clearCofactor:Mn}=_;return fn===_r?this:Mn?Mn(St,this):this.multiplyUnsafe(_.h)}toRawBytes(fn=!0){return this.assertValidity(),X(St,this,fn)}toHex(fn=!0){return vo(this.toRawBytes(fn))}}St.BASE=new St(_.Gx,_.Gy,x.ONE),St.ZERO=new St(x.ZERO,x.ONE,x.ZERO);const Ht=_.nBitLength,cn=function ul(p,_){const x=(ce,ze)=>{const yt=ze.negate();return ce?yt:ze},X=ce=>({windows:Math.ceil(_/ce)+1,windowSize:2**(ce-1)});return{constTimeNegate:x,unsafeLadder(ce,ze){let yt=p.ZERO,Dt=ce;for(;ze>fo;)ze&Cs&&(yt=yt.add(Dt)),Dt=Dt.double(),ze>>=Cs;return yt},precomputeWindow(ce,ze){const{windows:yt,windowSize:Dt}=X(ze),Pt=[];let Wt=ce,pn=Wt;for(let St=0;St>=cn,Mn>Pt&&(Mn-=Ht,yt+=Cs);const Nn=fn,Qn=fn+Math.abs(Mn)-1,ri=Mn<0;0===Mn?pn=pn.add(x(kn%2!=0,ze[Nn])):Wt=Wt.add(x(ri,ze[Qn]))}return{p:Wt,f:pn}},wNAFCached(ce,ze,yt,Dt){const Pt=ce._WINDOW_SIZE||1;let Wt=ze.get(ce);return Wt||(Wt=this.precomputeWindow(ce,Pt),1!==Pt&&ze.set(ce,Dt(Wt))),this.wNAF(Pt,Wt,yt)}}}(St,_.endo?Math.ceil(Ht/2):Ht);return{CURVE:_,ProjectivePoint:St,normPrivateKeyToScalar:Pt,weierstrassEquation:ze,isWithinCurveOrder:yt}}({..._,toBytes(oi,Yn,ir){const dr=Yn.toAffine(),Jn=x.toBytes(dr.x),eo=Ar;return ir?eo(Uint8Array.from([Yn.hasEvenY()?2:3]),Jn):eo(Uint8Array.from([4]),Jn,x.toBytes(dr.y))},fromBytes(oi){const Yn=oi.length,ir=oi[0],dr=oi.subarray(1);if(Yn!==ce||2!==ir&&3!==ir){if(Yn===ze&&4===ir)return{x:x.fromBytes(dr.subarray(0,x.BYTES)),y:x.fromBytes(dr.subarray(x.BYTES,2*x.BYTES))};throw new Error(`Point of length ${Yn} was invalid. Expected ${ce} compressed bytes or ${ze} uncompressed bytes`)}{const Jn=hr(dr);if(!function yt(oi){return Sovo(Jr(oi,_.nByteLength));function kn(oi){return oi>X>>_r}const Mn=(oi,Yn,ir)=>hr(oi.slice(Yn,ir));class Nn{constructor(Yn,ir,dr){this.r=Yn,this.s=ir,this.recovery=dr,this.assertValidity()}static fromCompact(Yn){const ir=_.nByteLength;return Yn=Sr("compactSignature",Yn,2*ir),new Nn(Mn(Yn,0,ir),Mn(Yn,ir,2*ir))}static fromDER(Yn){const{r:ir,s:dr}=os.toSig(Sr("DER",Yn));return new Nn(ir,dr)}assertValidity(){if(!Ht(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Ht(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Yn){return new Nn(this.r,this.s,Yn)}recoverPublicKey(Yn){const{r:ir,s:dr,recovery:Jn}=this,eo=ki(Sr("msgHash",Yn));if(null==Jn||![0,1,2,3].includes(Jn))throw new Error("recovery id invalid");const Io=2===Jn||3===Jn?ir+_.n:ir;if(Io>=x.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xs=Wt.fromHex((1&Jn?"03":"02")+cn(Io)),Zo=Pt(Io),zr=Dt(-eo*Zo),vi=Dt(dr*Zo),kr=Wt.BASE.multiplyAndAddUnsafe(Xs,zr,vi);if(!kr)throw new Error("point at infinify");return kr.assertValidity(),kr}hasHighS(){return kn(this.s)}normalizeS(){return this.hasHighS()?new Nn(this.r,Dt(-this.s),this.recovery):this}toDERRawBytes(){return Us(this.toDERHex())}toDERHex(){return os.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Us(this.toCompactHex())}toCompactHex(){return cn(this.r)+cn(this.s)}}const Qn={isValidPrivateKey(oi){try{return pn(oi),!0}catch{return!1}},normPrivateKeyToScalar:pn,randomPrivateKey:()=>{const Yn=function Oo(p,_,x=!1){const X=(p=Sr("privateHash",p)).length,ce=ao(_).nByteLength+8;if(ce<24||X1024)throw new Error(`hashToPrivateScalar: expected ${ce}-1024 bytes of input, got ${X}`);return Ir(x?ts(p):hr(p),_-gr)+gr}(_.randomBytes(x.BYTES+8),X);return Jr(Yn,_.nByteLength)},precompute:(oi=8,Yn=Wt.BASE)=>(Yn._setWindowSize(oi),Yn.multiply(BigInt(3)),Yn)};function ri(oi){const Yn=oi instanceof Uint8Array,ir="string"==typeof oi,dr=(Yn||ir)&&oi.length;return Yn?dr===ce||dr===ze:ir?dr===2*ce||dr===2*ze:oi instanceof Wt}const Rn=_.bits2int||function(oi){const Yn=hr(oi),ir=8*oi.length-_.nBitLength;return ir>0?Yn>>BigInt(ir):Yn},ki=_.bits2int_modN||function(oi){return Dt(Rn(oi))},Ai=Ho(_.nBitLength);function ar(oi){if("bigint"!=typeof oi)throw new Error("bigint expected");if(!(So<=oi&&oiTs in ir))throw new Error("sign() legacy options not supported");const{hash:dr,randomBytes:Jn}=_;let{lowS:eo,prehash:Io,extraEntropy:mo}=ir;null==eo&&(eo=!0),oi=Sr("msgHash",oi),Io&&(oi=Sr("prehashed msgHash",dr(oi)));const Xs=ki(oi),Zo=pn(Yn),zr=[ar(Zo),ar(Xs)];if(null!=mo){const Ts=!0===mo?Jn(x.BYTES):mo;zr.push(Sr("extraEntropy",Ts,x.BYTES))}const vi=Ar(...zr),kr=Xs;return{seed:vi,k2sig:function to(Ts){const Uo=Rn(Ts);if(!Ht(Uo))return;const Ei=Pt(Uo),Zr=Wt.BASE.multiply(Uo).toAffine(),cs=Dt(Zr.x);if(cs===So)return;const Ys=Dt(Ei*Dt(kr+cs*Zo));if(Ys===So)return;let wc=(Zr.x===cs?0:2)|Number(Zr.y&_r),Il=Ys;return eo&&kn(Ys)&&(Il=function fn(oi){return kn(oi)?Dt(-oi):oi}(Ys),wc^=1),new Nn(cs,Il,wc)}}}(oi,Yn,ir);return ws(_.hash.outputLen,_.nByteLength,_.hmac)(dr,Jn)},verify:function Co(oi,Yn,ir,dr=Qr){const Jn=oi;if(Yn=Sr("msgHash",Yn),ir=Sr("publicKey",ir),"strict"in dr)throw new Error("options.strict was renamed to lowS");const{lowS:eo,prehash:Io}=dr;let mo,Xs;try{if("string"==typeof Jn||Jn instanceof Uint8Array)try{mo=Nn.fromDER(Jn)}catch(Zr){if(!(Zr instanceof os.Err))throw Zr;mo=Nn.fromCompact(Jn)}else{if("object"!=typeof Jn||"bigint"!=typeof Jn.r||"bigint"!=typeof Jn.s)throw new Error("PARSE");{const{r:Zr,s:cs}=Jn;mo=new Nn(Zr,cs)}}Xs=Wt.fromHex(ir)}catch(Zr){if("PARSE"===Zr.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(eo&&mo.hasHighS())return!1;Io&&(Yn=_.hash(Yn));const{r:Zo,s:zr}=mo,vi=ki(Yn),kr=Pt(zr),to=Dt(vi*kr),Ts=Dt(Zo*kr),Uo=Wt.BASE.multiplyAndAddUnsafe(Xs,to,Ts)?.toAffine();return!!Uo&&Dt(Uo.x)===Zo},ProjectivePoint:Wt,Signature:Nn,utils:Qn}}BigInt(4);class Xl extends hn{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,bn.hash(_);const X=at(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const ce=this.blockLen,ze=new Uint8Array(ce);ze.set(X.length>ce?_.create().update(X).digest():X);for(let yt=0;ytnew Xl(p,_).update(x).digest();function po(p){return{hash:p,hmac:(_,...x)=>zi(p,_,function $t(...p){const _=new Uint8Array(p.reduce((X,ce)=>X+ce.length,0));let x=0;return p.forEach(X=>{if(!Kn(X))throw new Error("Uint8Array expected");_.set(X,x),x+=X.length}),_}(...x)),randomBytes:ui}}zi.create=(p,_)=>new Xl(p,_);const Ro=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),_o=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Na=BigInt(1),la=BigInt(2),Lo=(p,_)=>(p+_/la)/_;const ca=function rs(p,_,x=!1,X={}){if(p<=Li)throw new Error(`Expected Fp ORDER > 0, got ${p}`);const{nBitLength:ce,nByteLength:ze}=ao(p,_);if(ze>2048)throw new Error("Field lengths over 2048 bytes are not supported");const yt=function so(p){if(p%oa===ro){const _=(p+gr)/oa;return function(X,ce){const ze=X.pow(ce,_);if(!X.eql(X.sqr(ze),ce))throw new Error("Cannot find square root");return ze}}if(p%oo===Er){const _=(p-Er)/oo;return function(X,ce){const ze=X.mul(ce,Xo),yt=X.pow(ze,_),Dt=X.mul(ce,yt),Pt=X.mul(X.mul(Dt,Xo),yt),Wt=X.mul(Dt,X.sub(Pt,X.ONE));if(!X.eql(X.sqr(Wt),ce))throw new Error("Cannot find square root");return Wt}}return function sa(p){const _=(p-gr)/Xo;let x,X,ce;for(x=p-gr,X=0;x%Xo===Li;x/=Xo,X++);for(ce=Xo;ceIr(Pt,p),isValid:Pt=>{if("bigint"!=typeof Pt)throw new Error("Invalid field element: expected bigint, got "+typeof Pt);return Li<=Pt&&PtPt===Li,isOdd:Pt=>(Pt&gr)===gr,neg:Pt=>Ir(-Pt,p),eql:(Pt,Wt)=>Pt===Wt,sqr:Pt=>Ir(Pt*Pt,p),add:(Pt,Wt)=>Ir(Pt+Wt,p),sub:(Pt,Wt)=>Ir(Pt-Wt,p),mul:(Pt,Wt)=>Ir(Pt*Wt,p),pow:(Pt,Wt)=>function Oa(p,_,x){if(x 0");if(x===Li)return p.ONE;if(x===gr)return _;let X=p.ONE,ce=_;for(;x>Li;)x&gr&&(X=p.mul(X,ce)),ce=p.sqr(ce),x>>=gr;return X}(Dt,Pt,Wt),div:(Pt,Wt)=>Ir(Pt*Es(Wt,p),p),sqrN:Pt=>Pt*Pt,addN:(Pt,Wt)=>Pt+Wt,subN:(Pt,Wt)=>Pt-Wt,mulN:(Pt,Wt)=>Pt*Wt,inv:Pt=>Es(Pt,p),sqrt:X.sqrt||(Pt=>yt(Dt,Pt)),invertBatch:Pt=>function Qo(p,_){const x=new Array(_.length),X=_.reduce((ze,yt,Dt)=>p.is0(yt)?ze:(x[Dt]=ze,p.mul(ze,yt)),p.ONE),ce=p.inv(X);return _.reduceRight((ze,yt,Dt)=>p.is0(yt)?ze:(x[Dt]=p.mul(ze,x[Dt]),p.mul(ze,yt)),ce),x}(Dt,Pt),cmov:(Pt,Wt,pn)=>pn?Wt:Pt,toBytes:Pt=>x?Ii(Pt,ze):Jr(Pt,ze),fromBytes:Pt=>{if(Pt.length!==ze)throw new Error(`Fp.fromBytes: expected ${ze}, got ${Pt.length}`);return x?ts(Pt):hr(Pt)}});return Object.freeze(Dt)}(Ro,void 0,void 0,{sqrt:function dl(p){const _=Ro,x=BigInt(3),X=BigInt(6),ce=BigInt(11),ze=BigInt(22),yt=BigInt(23),Dt=BigInt(44),Pt=BigInt(88),Wt=p*p*p%_,pn=Wt*Wt*p%_,St=Eo(pn,x,_)*pn%_,Ht=Eo(St,x,_)*pn%_,cn=Eo(Ht,la,_)*Wt%_,kn=Eo(cn,ce,_)*cn%_,fn=Eo(kn,ze,_)*kn%_,Mn=Eo(fn,Dt,_)*fn%_,Nn=Eo(Mn,Pt,_)*Mn%_,Qn=Eo(Nn,Dt,_)*fn%_,An=Eo(Qn,x,_)*pn%_,ri=Eo(An,yt,_)*kn%_,hi=Eo(ri,X,_)*Wt%_,Rn=Eo(hi,la,_);if(!ca.eql(ca.sqr(Rn),p))throw new Error("Cannot find square root");return Rn}}),lo=function Ni(p,_){const x=X=>Ct({...p,...po(X)});return Object.freeze({...x(_),create:x})}({a:BigInt(0),b:BigInt(7),Fp:ca,n:_o,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:p=>{const _=_o,x=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),X=-Na*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ze=x,yt=BigInt("0x100000000000000000000000000000000"),Dt=Lo(ze*p,_),Pt=Lo(-X*p,_);let Wt=Ir(p-Dt*x-Pt*ce,_),pn=Ir(-Dt*X-Pt*ze,_);const St=Wt>yt,Ht=pn>yt;if(St&&(Wt=_-Wt),Ht&&(pn=_-pn),Wt>yt||pn>yt)throw new Error("splitScalar: Endomorphism failed, k="+p);return{k1neg:St,k1:Wt,k2neg:Ht,k2:pn}}}},Gi);BigInt(0);var Ws=v(3813);const Hr=lo.ProjectivePoint,Gs=(0,Ws.Tq)(Ge);function Ya(p){return BigInt(`0x${function ve(p){if(!de(p))throw new Error("Uint8Array expected");let _="";for(let x=0;x{if(!Number.isSafeInteger(p)||p<0||p>2**32-1)throw new Error(`Invalid number=${p}. Should be from 0 to 2 ** 32 - 1`);const _=new Uint8Array(4);return be(_).setUint32(0,p,!1),_};class ne{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return be(this.pubHash).getUint32(0,!1)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const _=this.privateKey;if(!_)throw new Error("No private key");return Gs.encode(this.serialize(this.versions.private,et(new Uint8Array([0]),_)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Gs.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(_,x=Ks){if(W(_),8*_.length<128||8*_.length>512)throw new Error(`HDKey: wrong seed length=${_.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const X=mt(li,Bo,_);return new ne({versions:x,chainCode:X.slice(32),privateKey:X.slice(0,32)})}static fromExtendedKey(_,x=Ks){const X=Gs.decode(_),ce=be(X),ze=ce.getUint32(0,!1),yt={versions:x,depth:X[4],parentFingerprint:ce.getUint32(5,!1),index:ce.getUint32(9,!1),chainCode:X.slice(13,45)},Dt=X.slice(45),Pt=0===Dt[0];if(ze!==x[Pt?"private":"public"])throw new Error("Version mismatch");return new ne(Pt?{...yt,privateKey:Dt.slice(1)}:{...yt,publicKey:Dt})}static fromJSON(_){return ne.fromExtendedKey(_.xpriv)}constructor(_){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!_||"object"!=typeof _)throw new Error("HDKey.constructor must not be called directly");if(this.versions=_.versions||Ks,this.depth=_.depth||0,this.chainCode=_.chainCode,this.index=_.index||0,this.parentFingerprint=_.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(_.publicKey&&_.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(_.privateKey){if(!lo.utils.isValidPrivateKey(_.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof _.privateKey?_.privateKey:Ya(_.privateKey),this.privKeyBytes=function ha(p){return function Ve(p){if("string"!=typeof p)throw new Error("hex string expected, got "+typeof p);const _=p.length,x=_/2;if(_%2)throw new Error("padded hex string expected, got unpadded hex of length "+_);const X=new Uint8Array(x);for(let ce=0,ze=0;ce=Qi)throw new Error("Invalid index");"'"===ze[2]&&(yt+=Qi),X=X.deriveChild(yt)}return X}deriveChild(_){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let x=S(_);if(_>=Qi){const Dt=this.privateKey;if(!Dt)throw new Error("Could not derive hardened child key");x=et(new Uint8Array([0]),Dt,x)}else x=et(this.pubKey,x);const X=mt(li,this.chainCode,x),ce=Ya(X.slice(0,32)),ze=X.slice(32);if(!lo.utils.isValidPrivateKey(ce))throw new Error("Tweak bigger than curve order");const yt={versions:this.versions,chainCode:ze,depth:this.depth+1,parentFingerprint:this.fingerprint,index:_};try{if(this.privateKey){const Dt=Ir(this.privKey+ce,lo.CURVE.n);if(!lo.utils.isValidPrivateKey(Dt))throw new Error("The tweak was out of range or the resulted private key is invalid");yt.privateKey=Dt}else{const Dt=Hr.fromHex(this.pubKey).add(Hr.fromPrivateKey(ce));if(Dt.equals(Hr.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");yt.publicKey=Dt.toRawBytes(!0)}return new ne(yt)}catch{return this.deriveChild(_+1)}}sign(_){if(!this.privateKey)throw new Error("No privateKey set!");return W(_,32),lo.sign(_,this.privKey).toCompactRawBytes()}verify(_,x){if(W(_,32),W(x,64),!this.publicKey)throw new Error("No publicKey set!");let X;try{X=lo.Signature.fromCompact(x)}catch{return!1}return lo.verify(X,_,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(_,x){if(!this.chainCode)throw new Error("No chainCode set");return W(x,33),et(S(_),new Uint8Array([this.depth]),S(this.parentFingerprint),S(this.index),this.chainCode,x)}}},9673:(tn,Re,v)=>{"use strict";function u(ft){if(!Number.isSafeInteger(ft)||ft<0)throw new Error(`Wrong positive integer: ${ft}`)}function B(ft,...Ot){if(!function o(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("Expected Uint8Array");if(Ot.length>0&&!Ot.includes(ft.length))throw new Error(`Expected Uint8Array of length ${Ot}, not of length=${ft.length}`)}function W(ft){if("function"!=typeof ft||"function"!=typeof ft.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");u(ft.outputLen),u(ft.blockLen)}function ee(ft,Ot=!0){if(ft.destroyed)throw new Error("Hash instance has been destroyed");if(Ot&&ft.finished)throw new Error("Hash#digest() has already been called")}function re(ft,Ot){B(ft);const un=Ot.outputLen;if(ft.lengthan,kw:()=>Or,JB:()=>Fr});const F={number:u,bool:function y(ft){if("boolean"!=typeof ft)throw new Error(`Expected boolean, not ${ft}`)},bytes:B,hash:W,exists:ee,output:re},U="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const be=ft=>new DataView(ft.buffer,ft.byteOffset,ft.byteLength),Te=(ft,Ot)=>ft<<32-Ot|ft>>>Ot;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Le(ft){if("string"==typeof ft&&(ft=function fe(ft){if("string"!=typeof ft)throw new Error("utf8ToBytes expected string, got "+typeof ft);return new Uint8Array((new TextEncoder).encode(ft))}(ft)),!function de(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("expected Uint8Array, got "+typeof ft);return ft}class It{clone(){return this._cloneInto()}}const Et={}.toString;function nn(ft){const Ot=bn=>ft().update(Le(bn)).digest(),un=ft();return Ot.outputLen=un.outputLen,Ot.blockLen=un.blockLen,Ot.create=()=>ft(),Ot}class di extends It{constructor(Ot,un){super(),this.finished=!1,this.destroyed=!1,W(Ot);const bn=Le(un);if(this.iHash=Ot.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Tn=this.blockLen,Kn=new Uint8Array(Tn);Kn.set(bn.length>Tn?Ot.create().update(bn).digest():bn);for(let zn=0;znnew di(ft,Ot).update(un).digest();mt.create=(ft,Ot)=>new di(ft,Ot);class je extends It{constructor(Ot,un,bn,Tn){super(),this.blockLen=Ot,this.outputLen=un,this.padOffset=bn,this.isLE=Tn,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(Ot),this.view=be(this.buffer)}update(Ot){ee(this);const{view:un,buffer:bn,blockLen:Tn}=this,Kn=(Ot=Le(Ot)).length;for(let zn=0;znTn-zn&&(this.process(bn,0),zn=0);for(let Qe=zn;Qe>Tn&Kn),ii=Number(un&Kn),Bn=bn?0:4;ft.setUint32(Ot+(bn?4:0),zn,bn),ft.setUint32(Ot+Bn,ii,bn)})(bn,Tn-8,BigInt(8*this.length),Kn),this.process(bn,0);const ii=be(Ot),ci=this.outputLen;if(ci%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Bn=ci/4,Ce=this.get();if(Bn>Ce.length)throw new Error("_sha2: outputLen bigger than state");for(let Qe=0;Qeft&Ot^~ft&un,Mt=(ft,Ot,un)=>ft&Ot^ft&un^Ot&un,we=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]),Oe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),me=new Uint32Array(64);class We extends je{constructor(){super(64,32,8,!1),this.A=0|Oe[0],this.B=0|Oe[1],this.C=0|Oe[2],this.D=0|Oe[3],this.E=0|Oe[4],this.F=0|Oe[5],this.G=0|Oe[6],this.H=0|Oe[7]}get(){const{A:Ot,B:un,C:bn,D:Tn,E:Kn,F:zn,G:ii,H:ci}=this;return[Ot,un,bn,Tn,Kn,zn,ii,ci]}set(Ot,un,bn,Tn,Kn,zn,ii,ci){this.A=0|Ot,this.B=0|un,this.C=0|bn,this.D=0|Tn,this.E=0|Kn,this.F=0|zn,this.G=0|ii,this.H=0|ci}process(Ot,un){for(let Qe=0;Qe<16;Qe++,un+=4)me[Qe]=Ot.getUint32(un,!1);for(let Qe=16;Qe<64;Qe++){const Ke=me[Qe-15],K=me[Qe-2],Ae=Te(Ke,7)^Te(Ke,18)^Ke>>>3,oe=Te(K,17)^Te(K,19)^K>>>10;me[Qe]=oe+me[Qe-7]+Ae+me[Qe-16]|0}let{A:bn,B:Tn,C:Kn,D:zn,E:ii,F:ci,G:Bn,H:Ce}=this;for(let Qe=0;Qe<64;Qe++){const K=Ce+(Te(ii,6)^Te(ii,11)^Te(ii,25))+Lt(ii,ci,Bn)+we[Qe]+me[Qe]|0,oe=(Te(bn,2)^Te(bn,13)^Te(bn,22))+Mt(bn,Tn,Kn)|0;Ce=Bn,Bn=ci,ci=ii,ii=zn+K|0,zn=Kn,Kn=Tn,Tn=bn,bn=K+oe|0}bn=bn+this.A|0,Tn=Tn+this.B|0,Kn=Kn+this.C|0,zn=zn+this.D|0,ii=ii+this.E|0,ci=ci+this.F|0,Bn=Bn+this.G|0,Ce=Ce+this.H|0,this.set(bn,Tn,Kn,zn,ii,ci,Bn,Ce)}roundClean(){me.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const xt=nn(()=>new We),ut=BigInt(2**32-1),Rt=BigInt(32);function wt(ft,Ot=!1){return Ot?{h:Number(ft&ut),l:Number(ft>>Rt&ut)}:{h:0|Number(ft>>Rt&ut),l:0|Number(ft&ut)}}const Cn_split=function mn(ft,Ot=!1){let un=new Uint32Array(ft.length),bn=new Uint32Array(ft.length);for(let Tn=0;Tnft>>>un,Cn_shrSL=(ft,Ot,un)=>ft<<32-un|Ot>>>un,Cn_rotrSH=(ft,Ot,un)=>ft>>>un|Ot<<32-un,Cn_rotrSL=(ft,Ot,un)=>ft<<32-un|Ot>>>un,Cn_rotrBH=(ft,Ot,un)=>ft<<64-un|Ot>>>un-32,Cn_rotrBL=(ft,Ot,un)=>ft>>>un-32|Ot<<64-un,Cn_add=function nt(ft,Ot,un,bn){const Tn=(Ot>>>0)+(bn>>>0);return{h:ft+un+(Tn/2**32|0)|0,l:0|Tn}},Cn_add3L=(ft,Ot,un)=>(ft>>>0)+(Ot>>>0)+(un>>>0),Cn_add3H=(ft,Ot,un,bn)=>Ot+un+bn+(ft/2**32|0)|0,Cn_add4L=(ft,Ot,un,bn)=>(ft>>>0)+(Ot>>>0)+(un>>>0)+(bn>>>0),Cn_add4H=(ft,Ot,un,bn,Tn)=>Ot+un+bn+Tn+(ft/2**32|0)|0,Cn_add5H=(ft,Ot,un,bn,Tn,Kn)=>Ot+un+bn+Tn+Kn+(ft/2**32|0)|0,Cn_add5L=(ft,Ot,un,bn,Tn)=>(ft>>>0)+(Ot>>>0)+(un>>>0)+(bn>>>0)+(Tn>>>0),[He,Be]=Cn_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(ft=>BigInt(ft))),ye=new Uint32Array(80),Ye=new Uint32Array(80);class Gt extends je{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:Ot,Al:un,Bh:bn,Bl:Tn,Ch:Kn,Cl:zn,Dh:ii,Dl:ci,Eh:Bn,El:Ce,Fh:Qe,Fl:Ke,Gh:K,Gl:Ae,Hh:oe,Hl:$e}=this;return[Ot,un,bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,oe,$e]}set(Ot,un,bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,oe,$e){this.Ah=0|Ot,this.Al=0|un,this.Bh=0|bn,this.Bl=0|Tn,this.Ch=0|Kn,this.Cl=0|zn,this.Dh=0|ii,this.Dl=0|ci,this.Eh=0|Bn,this.El=0|Ce,this.Fh=0|Qe,this.Fl=0|Ke,this.Gh=0|K,this.Gl=0|Ae,this.Hh=0|oe,this.Hl=0|$e}process(Ot,un){for(let $t=0;$t<16;$t++,un+=4)ye[$t]=Ot.getUint32(un),Ye[$t]=Ot.getUint32(un+=4);for(let $t=16;$t<80;$t++){const hn=0|ye[$t-15],gn=0|Ye[$t-15],En=Cn_rotrSH(hn,gn,1)^Cn_rotrSH(hn,gn,8)^Cn_shrSH(hn,gn,7),xn=Cn_rotrSL(hn,gn,1)^Cn_rotrSL(hn,gn,8)^Cn_shrSL(hn,gn,7),Vn=0|ye[$t-2],Hn=0|Ye[$t-2],ui=Cn_rotrSH(Vn,Hn,19)^Cn_rotrBH(Vn,Hn,61)^Cn_shrSH(Vn,Hn,6),Oi=Cn_rotrSL(Vn,Hn,19)^Cn_rotrBL(Vn,Hn,61)^Cn_shrSL(Vn,Hn,6),ti=Cn_add4L(xn,Oi,Ye[$t-7],Ye[$t-16]),Wn=Cn_add4H(ti,En,ui,ye[$t-7],ye[$t-16]);ye[$t]=0|Wn,Ye[$t]=0|ti}let{Ah:bn,Al:Tn,Bh:Kn,Bl:zn,Ch:ii,Cl:ci,Dh:Bn,Dl:Ce,Eh:Qe,El:Ke,Fh:K,Fl:Ae,Gh:oe,Gl:$e,Hh:vt,Hl:at}=this;for(let $t=0;$t<80;$t++){const hn=Cn_rotrSH(Qe,Ke,14)^Cn_rotrSH(Qe,Ke,18)^Cn_rotrBH(Qe,Ke,41),gn=Cn_rotrSL(Qe,Ke,14)^Cn_rotrSL(Qe,Ke,18)^Cn_rotrBL(Qe,Ke,41),En=Qe&K^~Qe&oe,Vn=Cn_add5L(at,gn,Ke&Ae^~Ke&$e,Be[$t],Ye[$t]),Hn=Cn_add5H(Vn,vt,hn,En,He[$t],ye[$t]),ui=0|Vn,Oi=Cn_rotrSH(bn,Tn,28)^Cn_rotrBH(bn,Tn,34)^Cn_rotrBH(bn,Tn,39),ti=Cn_rotrSL(bn,Tn,28)^Cn_rotrBL(bn,Tn,34)^Cn_rotrBL(bn,Tn,39),Wn=bn&Kn^bn&ii^Kn&ii,Rr=Tn&zn^Tn&ci^zn&ci;vt=0|oe,at=0|$e,oe=0|K,$e=0|Ae,K=0|Qe,Ae=0|Ke,({h:Qe,l:Ke}=Cn_add(0|Bn,0|Ce,0|Hn,0|ui)),Bn=0|ii,Ce=0|ci,ii=0|Kn,ci=0|zn,Kn=0|bn,zn=0|Tn;const ho=Cn_add3L(ui,ti,Rr);bn=Cn_add3H(ho,Hn,Oi,Wn),Tn=0|ho}({h:bn,l:Tn}=Cn_add(0|this.Ah,0|this.Al,0|bn,0|Tn)),({h:Kn,l:zn}=Cn_add(0|this.Bh,0|this.Bl,0|Kn,0|zn)),({h:ii,l:ci}=Cn_add(0|this.Ch,0|this.Cl,0|ii,0|ci)),({h:Bn,l:Ce}=Cn_add(0|this.Dh,0|this.Dl,0|Bn,0|Ce)),({h:Qe,l:Ke}=Cn_add(0|this.Eh,0|this.El,0|Qe,0|Ke)),({h:K,l:Ae}=Cn_add(0|this.Fh,0|this.Fl,0|K,0|Ae)),({h:oe,l:$e}=Cn_add(0|this.Gh,0|this.Gl,0|oe,0|$e)),({h:vt,l:at}=Cn_add(0|this.Hh,0|this.Hl,0|vt,0|at)),this.set(bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,oe,$e,vt,at)}roundClean(){ye.fill(0),Ye.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sn=nn(()=>new Gt);var ot=v(3813);const qe=ft=>"\u3042\u3044\u3053\u304f\u3057\u3093"===ft[0];function Ie(ft){if("string"!=typeof ft)throw new TypeError("Invalid mnemonic type: "+typeof ft);return ft.normalize("NFKD")}function lt(ft){const Ot=Ie(ft),un=Ot.split(" ");if(![12,15,18,21,24].includes(un.length))throw new Error("Invalid mnemonic");return{nfkd:Ot,words:un}}function Xt(ft){F.bytes(ft,16,20,24,28,32)}function an(ft,Ot=128){if(F.number(Ot),Ot%32!=0||Ot>256)throw new TypeError("Invalid entropy");return function Mi(ft,Ot){return Xt(ft),wr(Ot).encode(ft).join(qe(Ot)?"\u3000":" ")}(function yn(ft=32){if(U&&"function"==typeof U.getRandomValues)return U.getRandomValues(new Uint8Array(ft));throw new Error("crypto.getRandomValues must be defined")}(Ot/8),ft)}const li=ft=>{const Ot=8-ft.length/4;return new Uint8Array([xt(ft)[0]>>Ot<{if("string"!=typeof Ot)throw new Error(`Wordlist: non-string element: ${Ot}`)}),ot.Wp.chain(ot.Wp.checksum(1,li),ot.Wp.radix2(11,!0),ot.Wp.alphabet(ft))}function Fr(ft,Ot){try{!function Dr(ft,Ot){const{words:un}=lt(ft),bn=wr(Ot).decode(un);Xt(bn)}(ft,Ot)}catch{return!1}return!0}const bi=ft=>Ie(`mnemonic${ft}`);function Or(ft,Ot=""){return function Se(ft,Ot,un,bn){const{c:Tn,dkLen:Kn,DK:zn,PRF:ii,PRFSalt:ci}=function Ee(ft,Ot,un,bn){W(ft);const Tn=function Tt(ft,Ot){if(void 0!==Ot&&"[object Object]"!==Et.call(Ot))throw new Error("Options should be object or undefined");return Object.assign(ft,Ot)}({dkLen:32,asyncTick:10},bn),{c:Kn,dkLen:zn,asyncTick:ii}=Tn;if(u(Kn),u(zn),u(ii),Kn<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const ci=Le(Ot),Bn=Le(un),Ce=new Uint8Array(zn),Qe=mt.create(ft,ci),Ke=Qe._cloneInto().update(Bn);return{c:Kn,dkLen:zn,asyncTick:ii,DK:Ce,PRF:Qe,PRFSalt:Ke}}(ft,Ot,un,bn);let Bn;const Ce=new Uint8Array(4),Qe=be(Ce),Ke=new Uint8Array(ii.outputLen);for(let K=1,Ae=0;Ae{"use strict";v.d(Re,{p:()=>u});const u="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n")},6568:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(4713),y=v(1860);const B=(0,u.A)(y.A,"Map")},7730:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>le});var o=v(1319);const W=function B(ue,nt){for(var zt=ue.length;zt--;)if((0,o.A)(ue[zt][0],nt))return zt;return-1};var re=Array.prototype.splice;function Me(ue){var nt=-1,zt=null==ue?0:ue.length;for(this.clear();++nt-1},Me.prototype.set=function be(ue,nt){var zt=this.__data__,Ut=W(zt,ue);return Ut<0?(++this.size,zt.push([ue,nt])):zt[Ut][1]=nt,this};const te=Me;var Le=v(6568);const Et=(0,v(4713).A)(Object,"create");var mt=Object.prototype.hasOwnProperty;var gt=Object.prototype.hasOwnProperty;function we(ue){var nt=-1,zt=null==ue?0:ue.length;for(this.clear();++nt{"use strict";v.d(Re,{A:()=>o});const o=v(1860).A.Symbol},6726:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>L});var o=v(6513),B=v(3744),W=v(9377),ee=v(8606),re=v(8885),F=Object.prototype.hasOwnProperty;const L=function U(he,de){var be=(0,B.A)(he),Te=!be&&(0,o.A)(he),Me=!be&&!Te&&(0,W.A)(he),te=!be&&!Te&&!Me&&(0,re.A)(he),ve=be||Te||Me||te,tt=ve?function u(he,de){for(var be=-1,Te=Array(he);++be{"use strict";v.d(Re,{A:()=>ee});var u=v(1827),y=v(1319),B=Object.prototype.hasOwnProperty;const ee=function W(re,V,F){var U=re[V];(!B.call(re,V)||!(0,y.A)(U,F)||void 0===F&&!(V in re))&&(0,u.A)(re,V,F)}},1827:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(4746);const o=function y(B,W,ee){"__proto__"==W&&u.A?(0,u.A)(B,W,{configurable:!0,enumerable:!0,value:ee,writable:!0}):B[W]=ee}},5281:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Me});var u=v(6944),y=Object.prototype,o=y.hasOwnProperty,B=y.toString,W=u.A?u.A.toStringTag:void 0;var F=Object.prototype.toString;var be=u.A?u.A.toStringTag:void 0;const Me=function Te(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":be&&be in Object(te)?function ee(te){var ve=o.call(te,W),tt=te[W];try{te[W]=void 0;var bt=!0}catch{}var Ve=B.call(te);return bt&&(ve?te[W]=tt:delete te[W]),Ve}(te):function U(te){return F.call(te)}(te)}},778:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){return function(B){return o(B)}}},9750:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>W});const o=v(1860).A.Uint8Array,W=function B(ee){var re=new ee.constructor(ee.byteLength);return new o(re).set(new o(ee)),re}},9933:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,W=o&&o.exports===y?u.A.Buffer:void 0,ee=W?W.allocUnsafe:void 0;const V=function re(F,U){if(U)return F.slice();var L=F.length,he=ee?ee(L):new F.constructor(L);return F.copy(he),he}},4314:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(9750);const o=function y(B,W){var ee=W?(0,u.A)(B.buffer):B.buffer;return new B.constructor(ee,B.byteOffset,B.length)}},4528:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){var W=-1,ee=o.length;for(B||(B=Array(ee));++W{"use strict";v.d(Re,{A:()=>B});var u=v(1984),y=v(1827);const B=function o(W,ee,re,V){var F=!re;re||(re={});for(var U=-1,L=ee.length;++U{"use strict";v.d(Re,{A:()=>o});var u=v(4713);const o=function(){try{var B=(0,u.A)(Object,"defineProperty");return B({},"",{}),B}catch{}}()},7133:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y="object"==typeof global&&global&&global.Object===Object&&global},4713:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>rt});var Xe,u=v(129),o=v(1860).A["__core-js_shared__"],W=(Xe=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Xe:"";var V=v(554),F=v(8736),L=/^\[object .+?Constructor\]$/,Me=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ve=function te(Xe){return!(!(0,V.A)(Xe)||function ee(Xe){return!!W&&W in Xe}(Xe))&&((0,u.A)(Xe)?Me:L).test((0,F.A)(Xe))},rt=function Ve(Xe,se){var fe=function tt(Xe,se){return Xe?.[se]}(Xe,se);return ve(fe)?fe:void 0}},8010:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});const o=(0,v(8992).A)(Object.getPrototypeOf,Object)},923:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(554),y=Object.create;const B=function(){function F(){}return function(U){if(!(0,u.A)(U))return{};if(y)return y(U);F.prototype=U;var L=new F;return F.prototype=void 0,L}}();var W=v(8010),ee=v(5776);const V=function re(F){return"function"!=typeof F.constructor||(0,ee.A)(F)?{}:B((0,W.A)(F))}},8606:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var y=/^(?:0|[1-9]\d*)$/;const B=function o(W,ee){var re=typeof W;return!!(ee=ee??9007199254740991)&&("number"==re||"symbol"!=re&&y.test(W))&&W>-1&&W%1==0&&W{"use strict";v.d(Re,{A:()=>o});var u=Object.prototype;const o=function y(B){var W=B&&B.constructor;return B===("function"==typeof W&&W.prototype||u)}},3340:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>re});var u=v(7133),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,W=o&&o.exports===y&&u.A.process;const re=function(){try{return o&&o.require&&o.require("util").types||W&&W.binding&&W.binding("util")}catch{}}()},8992:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){return function(W){return o(B(W))}}},1860:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(7133),y="object"==typeof self&&self&&self.Object===Object&&self;const B=u.A||y||Function("return this")()},8736:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var y=Function.prototype.toString;const B=function o(W){if(null!=W){try{return y.call(W)}catch{}try{return W+""}catch{}}return""}},1319:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){return o===B||o!=o&&B!=B}},7680:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){for(var B=-1,W=null==o?0:o.length,ee={};++B{"use strict";v.d(Re,{A:()=>U});var u=v(5281),y=v(2661);const W=function B(L){return(0,y.A)(L)&&"[object Arguments]"==(0,u.A)(L)};var ee=Object.prototype,re=ee.hasOwnProperty,V=ee.propertyIsEnumerable;const U=W(function(){return arguments}())?W:function(L){return(0,y.A)(L)&&re.call(L,"callee")&&!V.call(L,"callee")}},3744:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=Array.isArray},1287:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(129),y=v(5481);const B=function o(W){return null!=W&&(0,y.A)(W.length)&&!(0,u.A)(W)}},9377:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>U});var u=v(1860),B="object"==typeof exports&&exports&&!exports.nodeType&&exports,W=B&&"object"==typeof module&&module&&!module.nodeType&&module,re=W&&W.exports===B?u.A.Buffer:void 0;const U=(re?re.isBuffer:void 0)||function y(){return!1}},129:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(5281),y=v(554);const V=function re(F){if(!(0,y.A)(F))return!1;var U=(0,u.A)(F);return"[object Function]"==U||"[object GeneratorFunction]"==U||"[object AsyncFunction]"==U||"[object Proxy]"==U}},5481:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});const o=function y(B){return"number"==typeof B&&B>-1&&B%1==0&&B<=9007199254740991}},554:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){var B=typeof o;return null!=o&&("object"==B||"function"==B)}},2661:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){return null!=o&&"object"==typeof o}},8885:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>di});var u=v(5281),y=v(5481),o=v(2661),It={};It["[object Float32Array]"]=It["[object Float64Array]"]=It["[object Int8Array]"]=It["[object Int16Array]"]=It["[object Int32Array]"]=It["[object Uint8Array]"]=It["[object Uint8ClampedArray]"]=It["[object Uint16Array]"]=It["[object Uint32Array]"]=!0,It["[object Arguments]"]=It["[object Array]"]=It["[object ArrayBuffer]"]=It["[object Boolean]"]=It["[object DataView]"]=It["[object Date]"]=It["[object Error]"]=It["[object Function]"]=It["[object Map]"]=It["[object Number]"]=It["[object Object]"]=It["[object RegExp]"]=It["[object Set]"]=It["[object String]"]=It["[object WeakMap]"]=!1;var nn=v(778),Fn=v(3340),$n=Fn.A&&Fn.A.isTypedArray;const di=$n?(0,nn.A)($n):function Et(mt){return(0,o.A)(mt)&&(0,y.A)(mt.length)&&!!It[(0,u.A)(mt)]}},133:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>he});var u=v(6726),y=v(554),o=v(5776);var re=Object.prototype.hasOwnProperty;const F=function V(de){if(!(0,y.A)(de))return function B(de){var be=[];if(null!=de)for(var Te in Object(de))be.push(Te);return be}(de);var be=(0,o.A)(de),Te=[];for(var Me in de)"constructor"==Me&&(be||!re.call(de,Me))||Te.push(Me);return Te};var U=v(1287);const he=function L(de){return(0,U.A)(de)?(0,u.A)(de,!0):F(de)}},2401:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>zt});var u=v(7730),y=v(1827),o=v(1319);const W=function B(Ut,jt,On){(void 0!==On&&!(0,o.A)(Ut[jt],On)||void 0===On&&!(jt in Ut))&&(0,y.A)(Ut,jt,On)},F=function ee(Ut){return function(jt,On,Ln){for(var wi=-1,en=Object(jt),Cn=Ln(jt),He=Cn.length;He--;){var Be=Cn[Ut?He:++wi];if(!1===On(en[Be],Be,en))break}return jt}}();var U=v(9933),L=v(4314),he=v(4528),de=v(923),be=v(6513),Te=v(3744),Me=v(1287),te=v(2661);var bt=v(9377),Ve=v(129),rt=v(554),Xe=v(5281),se=v(8010),It=Function.prototype.toString,Et=Object.prototype.hasOwnProperty,Tt=It.call(Object);var $n=v(8885);const di=function yn(Ut,jt){if(("constructor"!==jt||"function"!=typeof Ut[jt])&&"__proto__"!=jt)return Ut[jt]};var mt=v(7517),Ee=v(133);const Ne=function gt(Ut,jt,On,Ln,wi,en,Cn){var He=di(Ut,On),Be=di(jt,On),ye=Cn.get(Be);if(ye)W(Ut,On,ye);else{var Ye=en?en(He,Be,On+"",Ut,jt,Cn):void 0,Gt=void 0===Ye;if(Gt){var Pn=(0,Te.A)(Be),yi=!Pn&&(0,bt.A)(Be),Ti=!Pn&&!yi&&(0,$n.A)(Be);Ye=Be,Pn||yi||Ti?(0,Te.A)(He)?Ye=He:function ve(Ut){return(0,te.A)(Ut)&&(0,Me.A)(Ut)}(He)?Ye=(0,he.A)(He):yi?(Gt=!1,Ye=(0,U.A)(Be,!0)):Ti?(Gt=!1,Ye=(0,L.A)(Be,!0)):Ye=[]:function nn(Ut){if(!(0,te.A)(Ut)||"[object Object]"!=(0,Xe.A)(Ut))return!1;var jt=(0,se.A)(Ut);if(null===jt)return!0;var On=Et.call(jt,"constructor")&&jt.constructor;return"function"==typeof On&&On instanceof On&&It.call(On)==Tt}(Be)||(0,be.A)(Be)?(Ye=He,(0,be.A)(He)?Ye=function J(Ut){return(0,mt.A)(Ut,(0,Ee.A)(Ut))}(He):(!(0,rt.A)(He)||(0,Ve.A)(He))&&(Ye=(0,de.A)(Be))):Gt=!1}Gt&&(Cn.set(Be,Ye),wi(Ye,Be,Ln,en,Cn),Cn.delete(Be)),W(Ut,On,Ye)}},je=function Ze(Ut,jt,On,Ln,wi){Ut!==jt&&F(jt,function(en,Cn){if(wi||(wi=new u.A),(0,rt.A)(en))Ne(Ut,jt,Cn,On,Ze,Ln,wi);else{var He=Ln?Ln(di(Ut,Cn),en,Cn+"",Ut,jt,wi):void 0;void 0===He&&(He=en),W(Ut,Cn,He)}},Ee.A)},Mt=function Lt(Ut){return Ut};var me=Math.max;const xe=function xt(Ut){return function(){return Ut}};var ut=v(4746),Zt=Date.now;const dt=function _e(Ut){var jt=0,On=0;return function(){var Ln=Zt(),wi=16-(Ln-On);if(On=Ln,wi>0){if(++jt>=800)return arguments[0]}else jt=0;return Ut.apply(void 0,arguments)}}(ut.A?function(Ut,jt){return(0,ut.A)(Ut,"toString",{configurable:!0,enumerable:!1,value:xe(jt),writable:!0})}:Mt),Q=function rn(Ut,jt){return dt(function We(Ut,jt,On){return jt=me(void 0===jt?Ut.length-1:jt,0),function(){for(var Ln=arguments,wi=-1,en=me(Ln.length-jt,0),Cn=Array(en);++wi1?On[wi-1]:void 0,Cn=wi>2?On[2]:void 0;for(en=Ut.length>3&&"function"==typeof en?(wi--,en):void 0,Cn&&function N(Ut,jt,On){if(!(0,rt.A)(On))return!1;var Ln=typeof jt;return!!("number"==Ln?(0,Me.A)(On)&&(0,T.A)(jt,On.length):"string"==Ln&&jt in On)&&(0,o.A)(On[jt],Ut)}(On[0],On[1],Cn)&&(en=wi<3?void 0:en,wi=1),jt=Object(jt);++Ln{"use strict";v.d(Re,{lo:()=>nd,pC:()=>Ba,Bq:()=>Cc,dq:()=>vr,lG:()=>Is,sh:()=>nl,Qe:()=>xf});var u={};v.r(u),v.d(u,{OG:()=>N,My:()=>Pe,Ph:()=>Rt,lX:()=>wt,Id:()=>Je,fg:()=>ue,qj:()=>_e,aT:()=>ut,lq:()=>mn,z:()=>ni,Q5:()=>zt});var y=v(467);function o(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`Wrong positive integer: ${h}`)}function W(h,...m){if(!(h instanceof Uint8Array))throw new Error("Expected Uint8Array");if(m.length>0&&!m.includes(h.length))throw new Error(`Expected Uint8Array of length ${m}, not of length=${h.length}`)}function re(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")}const L="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,he=h=>h instanceof Uint8Array,Te=h=>new DataView(h.buffer,h.byteOffset,h.byteLength),Me=(h,m)=>h<<32-m|h>>>m;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function fe(h){if("string"==typeof h&&(h=function se(h){if("string"!=typeof h)throw new Error("utf8ToBytes expected string, got "+typeof h);return new Uint8Array((new TextEncoder).encode(h))}(h)),!he(h))throw new Error("expected Uint8Array, got "+typeof h);return h}class et{clone(){return this._cloneInto()}}function Tt(h){const m=I=>h().update(fe(I)).digest(),b=h();return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=()=>h(),m}function $n(h=32){if(L&&"function"==typeof L.getRandomValues)return L.getRandomValues(new Uint8Array(h));throw new Error("crypto.getRandomValues must be defined")}class di extends et{constructor(m,b,I,P){super(),this.blockLen=m,this.outputLen=b,this.padOffset=I,this.isLE=P,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(m),this.view=Te(this.buffer)}update(m){re(this);const{view:b,buffer:I,blockLen:P}=this,G=(m=fe(m)).length;for(let ae=0;aeP-ae&&(this.process(I,0),ae=0);for(let pt=ae;pt>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)})(I,P-8,BigInt(8*this.length),G),this.process(I,0);const pe=Te(m),ke=this.outputLen;if(ke%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const it=ke/4,ht=this.get();if(it>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pth&m^~h&b,Ee=(h,m,b)=>h&m^h&b^m&b,J=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]),Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gt=new Uint32Array(64);class Ne extends di{constructor(){super(64,32,8,!1),this.A=0|Se[0],this.B=0|Se[1],this.C=0|Se[2],this.D=0|Se[3],this.E=0|Se[4],this.F=0|Se[5],this.G=0|Se[6],this.H=0|Se[7]}get(){const{A:m,B:b,C:I,D:P,E:G,F:ae,G:pe,H:ke}=this;return[m,b,I,P,G,ae,pe,ke]}set(m,b,I,P,G,ae,pe,ke){this.A=0|m,this.B=0|b,this.C=0|I,this.D=0|P,this.E=0|G,this.F=0|ae,this.G=0|pe,this.H=0|ke}process(m,b){for(let pt=0;pt<16;pt++,b+=4)gt[pt]=m.getUint32(b,!1);for(let pt=16;pt<64;pt++){const Jt=gt[pt-15],on=gt[pt-2],Kt=Me(Jt,7)^Me(Jt,18)^Jt>>>3,Ft=Me(on,17)^Me(on,19)^on>>>10;gt[pt]=Ft+gt[pt-7]+Kt+gt[pt-16]|0}let{A:I,B:P,C:G,D:ae,E:pe,F:ke,G:it,H:ht}=this;for(let pt=0;pt<64;pt++){const on=ht+(Me(pe,6)^Me(pe,11)^Me(pe,25))+mt(pe,ke,it)+J[pt]+gt[pt]|0,Ft=(Me(I,2)^Me(I,13)^Me(I,22))+Ee(I,P,G)|0;ht=it,it=ke,ke=pe,pe=ae+on|0,ae=G,G=P,P=I,I=on+Ft|0}I=I+this.A|0,P=P+this.B|0,G=G+this.C|0,ae=ae+this.D|0,pe=pe+this.E|0,ke=ke+this.F|0,it=it+this.G|0,ht=ht+this.H|0,this.set(I,P,G,ae,pe,ke,it,ht)}roundClean(){gt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const je=Tt(()=>new Ne),we=(BigInt(0),BigInt(1)),Oe=BigInt(2),me=h=>h instanceof Uint8Array,We=Array.from({length:256},(h,m)=>m.toString(16).padStart(2,"0"));function Pe(h){if(!me(h))throw new Error("Uint8Array expected");let m="";for(let b=0;bI+P.length,0));let b=0;return h.forEach(I=>{if(!me(I))throw new Error("Uint8Array expected");m.set(I,b),b+=I.length}),m}const N=h=>(Oe<new Uint8Array(h),le=h=>Uint8Array.from(h);function ue(h,m,b){if("number"!=typeof h||h<2)throw new Error("hashLen must be a number");if("number"!=typeof m||m<2)throw new Error("qByteLen must be a number");if("function"!=typeof b)throw new Error("hmacFn must be a function");let I=$(h),P=$(h),G=0;const ae=()=>{I.fill(1),P.fill(0),G=0},pe=(...pt)=>b(P,I,...pt),ke=(pt=$())=>{P=pe(le([0]),pt),I=pe(),0!==pt.length&&(P=pe(le([1]),pt),I=pe())},it=()=>{if(G++>=1e3)throw new Error("drbg: tried 1000 values");let pt=0;const Jt=[];for(;pt{let on;for(ae(),ke(pt);!(on=Jt(it()));)ke();return ae(),on}}const nt={bigint:h=>"bigint"==typeof h,function:h=>"function"==typeof h,boolean:h=>"boolean"==typeof h,string:h=>"string"==typeof h,stringOrUint8Array:h=>"string"==typeof h||h instanceof Uint8Array,isSafeInteger:h=>Number.isSafeInteger(h),array:h=>Array.isArray(h),field:(h,m)=>m.Fp.isValid(h),hash:h=>"function"==typeof h&&Number.isSafeInteger(h.outputLen)};function zt(h,m,b={}){const I=(P,G,ae)=>{const pe=nt[G];if("function"!=typeof pe)throw new Error(`Invalid validator "${G}", expected function`);const ke=h[P];if(!(ae&&void 0===ke||pe(ke,h)))throw new Error(`Invalid param ${String(P)}=${ke} (${typeof ke}), expected ${G}`)};for(const[P,G]of Object.entries(m))I(P,G,!1);for(const[P,G]of Object.entries(b))I(P,G,!0);return h}const Ut=BigInt(0),jt=BigInt(1),On=BigInt(2),Ln=BigInt(3),wi=BigInt(4),en=BigInt(5),Cn=BigInt(8);function ye(h,m){const b=h%m;return b>=Ut?b:m+b}function Ye(h,m,b){if(b<=Ut||m 0");if(b===jt)return Ut;let I=jt;for(;m>Ut;)m&jt&&(I=I*h%b),h=h*h%b,m>>=jt;return I}function Gt(h,m,b){let I=h;for(;m-- >Ut;)I*=I,I%=b;return I}function Pn(h,m){if(h===Ut||m<=Ut)throw new Error(`invert: expected positive integers, got n=${h} mod=${m}`);let b=ye(h,m),I=m,P=Ut,G=jt,ae=jt,pe=Ut;for(;b!==Ut;){const it=I/b,ht=I%b,pt=P-ae*it,Jt=G-pe*it;I=b,b=ht,P=ae,G=pe,ae=pt,pe=Jt}if(I!==jt)throw new Error("invert: does not exist");return ye(P,m)}BigInt(9),BigInt(16);const At=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function lt(h,m){const b=void 0!==m?m:h.toString(2).length;return{nBitLength:b,nByteLength:Math.ceil(b/8)}}function Dr(h){if("bigint"!=typeof h)throw new Error("field order must be bigint");const m=h.toString(2).length;return Math.ceil(m/8)}function Mi(h){const m=Dr(h);return m+Math.ceil(m/2)}class bi extends et{constructor(m,b){super(),this.finished=!1,this.destroyed=!1,function ee(h){if("function"!=typeof h||"function"!=typeof h.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");o(h.outputLen),o(h.blockLen)}(m);const I=fe(b);if(this.iHash=m.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const P=this.blockLen,G=new Uint8Array(P);G.set(I.length>P?m.create().update(I).digest():I);for(let ae=0;aenew bi(h,m).update(b).digest();Kr.create=(h,m)=>new bi(h,m);const Or=BigInt(0),ft=BigInt(1);function un(h){return function st(h){zt(h,At.reduce((I,P)=>(I[P]="function",I),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(h.Fp),zt(h,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...lt(h.n,h.nBitLength),...h,p:h.Fp.ORDER})}const{Ph:Tn,aT:Kn}=u,zn={Err:class extends Error{constructor(m=""){super(m)}},_parseInt(h){const{Err:m}=zn;if(h.length<2||2!==h[0])throw new m("Invalid signature integer tag");const b=h[1],I=h.subarray(2,b+2);if(!b||I.length!==b)throw new m("Invalid signature integer: wrong length");if(128&I[0])throw new m("Invalid signature integer: negative");if(0===I[0]&&!(128&I[1]))throw new m("Invalid signature integer: unnecessary leading zero");return{d:Tn(I),l:h.subarray(b+2)}},toSig(h){const{Err:m}=zn,b="string"==typeof h?Kn(h):h;if(!(b instanceof Uint8Array))throw new Error("ui8a expected");let I=b.length;if(I<2||48!=b[0])throw new m("Invalid signature tag");if(b[1]!==I-2)throw new m("Invalid signature: incorrect length");const{d:P,l:G}=zn._parseInt(b.subarray(2)),{d:ae,l:pe}=zn._parseInt(G);if(pe.length)throw new m("Invalid signature: left bytes after parsing");return{r:P,s:ae}},hexFromSig(h){const m=it=>8&Number.parseInt(it[0],16)?"00"+it:it,b=it=>{const ht=it.toString(16);return 1&ht.length?`0${ht}`:ht},I=m(b(h.s)),P=m(b(h.r)),G=I.length/2,ae=P.length/2,pe=b(G),ke=b(ae);return`30${b(ae+G+4)}02${ke}${P}02${pe}${I}`}},ii=BigInt(0),ci=BigInt(1),Ce=(BigInt(2),BigInt(3));function Ae(h){const m=function K(h){const m=un(h);return zt(m,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...m})}(h),{Fp:b,n:I}=m,P=b.BYTES+1,G=2*b.BYTES+1;function pe(Gn){return ye(Gn,I)}function ke(Gn){return Pn(Gn,I)}const{ProjectivePoint:it,normPrivateKeyToScalar:ht,weierstrassEquation:pt,isWithinCurveOrder:Jt}=function Ke(h){const m=function bn(h){const m=un(h);zt(m,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:b,Fp:I,a:P}=m;if(b){if(!I.eql(P,I.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof b||"bigint"!=typeof b.beta||"function"!=typeof b.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...m})}(h),{Fp:b}=m,I=m.toBytes||((Kt,Ft,Vt)=>{const dn=Ft.toAffine();return Je(Uint8Array.from([4]),b.toBytes(dn.x),b.toBytes(dn.y))}),P=m.fromBytes||(Kt=>{const Ft=Kt.subarray(1);return{x:b.fromBytes(Ft.subarray(0,b.BYTES)),y:b.fromBytes(Ft.subarray(b.BYTES,2*b.BYTES))}});function G(Kt){const{a:Ft,b:Vt}=m,dn=b.sqr(Kt),vn=b.mul(dn,Kt);return b.add(b.add(vn,b.mul(Kt,Ft)),Vt)}if(!b.eql(b.sqr(m.Gy),G(m.Gx)))throw new Error("bad generator point: equation left != right");function ae(Kt){return"bigint"==typeof Kt&&iib.eql(Un,b.ZERO);return vn(Vt)&&vn(dn)?pt.ZERO:new pt(Vt,dn,b.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Ft){const Vt=b.invertBatch(Ft.map(dn=>dn.pz));return Ft.map((dn,vn)=>dn.toAffine(Vt[vn])).map(pt.fromAffine)}static fromHex(Ft){const Vt=pt.fromAffine(P(_e("pointHex",Ft)));return Vt.assertValidity(),Vt}static fromPrivateKey(Ft){return pt.BASE.multiply(ke(Ft))}_setWindowSize(Ft){this._WINDOW_SIZE=Ft,it.delete(this)}assertValidity(){if(this.is0()){if(m.allowInfinityPoint&&!b.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Ft,y:Vt}=this.toAffine();if(!b.isValid(Ft)||!b.isValid(Vt))throw new Error("bad point: x or y not FE");const dn=b.sqr(Vt),vn=G(Ft);if(!b.eql(dn,vn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Ft}=this.toAffine();if(b.isOdd)return!b.isOdd(Ft);throw new Error("Field doesn't support isOdd")}equals(Ft){ht(Ft);const{px:Vt,py:dn,pz:vn}=this,{px:Un,py:Xn,pz:Si}=Ft,qn=b.eql(b.mul(Vt,Si),b.mul(Un,vn)),_i=b.eql(b.mul(dn,Si),b.mul(Xn,vn));return qn&&_i}negate(){return new pt(this.px,b.neg(this.py),this.pz)}double(){const{a:Ft,b:Vt}=m,dn=b.mul(Vt,Ce),{px:vn,py:Un,pz:Xn}=this;let Si=b.ZERO,qn=b.ZERO,_i=b.ZERO,Di=b.mul(vn,vn),Ji=b.mul(Un,Un),Vi=b.mul(Xn,Xn),ji=b.mul(vn,Un);return ji=b.add(ji,ji),_i=b.mul(vn,Xn),_i=b.add(_i,_i),Si=b.mul(Ft,_i),qn=b.mul(dn,Vi),qn=b.add(Si,qn),Si=b.sub(Ji,qn),qn=b.add(Ji,qn),qn=b.mul(Si,qn),Si=b.mul(ji,Si),_i=b.mul(dn,_i),Vi=b.mul(Ft,Vi),ji=b.sub(Di,Vi),ji=b.mul(Ft,ji),ji=b.add(ji,_i),_i=b.add(Di,Di),Di=b.add(_i,Di),Di=b.add(Di,Vi),Di=b.mul(Di,ji),qn=b.add(qn,Di),Vi=b.mul(Un,Xn),Vi=b.add(Vi,Vi),Di=b.mul(Vi,ji),Si=b.sub(Si,Di),_i=b.mul(Vi,Ji),_i=b.add(_i,_i),_i=b.add(_i,_i),new pt(Si,qn,_i)}add(Ft){ht(Ft);const{px:Vt,py:dn,pz:vn}=this,{px:Un,py:Xn,pz:Si}=Ft;let qn=b.ZERO,_i=b.ZERO,Di=b.ZERO;const Ji=m.a,Vi=b.mul(m.b,Ce);let ji=b.mul(Vt,Un),pr=b.mul(dn,Xn),mr=b.mul(vn,Si),Nr=b.add(Vt,dn),Gn=b.add(Un,Xn);Nr=b.mul(Nr,Gn),Gn=b.add(ji,pr),Nr=b.sub(Nr,Gn),Gn=b.add(Vt,vn);let si=b.add(Un,Si);return Gn=b.mul(Gn,si),si=b.add(ji,mr),Gn=b.sub(Gn,si),si=b.add(dn,vn),qn=b.add(Xn,Si),si=b.mul(si,qn),qn=b.add(pr,mr),si=b.sub(si,qn),Di=b.mul(Ji,Gn),qn=b.mul(Vi,mr),Di=b.add(qn,Di),qn=b.sub(pr,Di),Di=b.add(pr,Di),_i=b.mul(qn,Di),pr=b.add(ji,ji),pr=b.add(pr,ji),mr=b.mul(Ji,mr),Gn=b.mul(Vi,Gn),pr=b.add(pr,mr),mr=b.sub(ji,mr),mr=b.mul(Ji,mr),Gn=b.add(Gn,mr),ji=b.mul(pr,Gn),_i=b.add(_i,ji),ji=b.mul(si,Gn),qn=b.mul(Nr,qn),qn=b.sub(qn,ji),ji=b.mul(Nr,pr),Di=b.mul(si,Di),Di=b.add(Di,ji),new pt(qn,_i,Di)}subtract(Ft){return this.add(Ft.negate())}is0(){return this.equals(pt.ZERO)}wNAF(Ft){return on.wNAFCached(this,it,Ft,Vt=>{const dn=b.invertBatch(Vt.map(vn=>vn.pz));return Vt.map((vn,Un)=>vn.toAffine(dn[Un])).map(pt.fromAffine)})}multiplyUnsafe(Ft){const Vt=pt.ZERO;if(Ft===ii)return Vt;if(pe(Ft),Ft===ci)return this;const{endo:dn}=m;if(!dn)return on.unsafeLadder(this,Ft);let{k1neg:vn,k1:Un,k2neg:Xn,k2:Si}=dn.splitScalar(Ft),qn=Vt,_i=Vt,Di=this;for(;Un>ii||Si>ii;)Un&ci&&(qn=qn.add(Di)),Si&ci&&(_i=_i.add(Di)),Di=Di.double(),Un>>=ci,Si>>=ci;return vn&&(qn=qn.negate()),Xn&&(_i=_i.negate()),_i=new pt(b.mul(_i.px,dn.beta),_i.py,_i.pz),qn.add(_i)}multiply(Ft){pe(Ft);let dn,vn,Vt=Ft;const{endo:Un}=m;if(Un){const{k1neg:Xn,k1:Si,k2neg:qn,k2:_i}=Un.splitScalar(Vt);let{p:Di,f:Ji}=this.wNAF(Si),{p:Vi,f:ji}=this.wNAF(_i);Di=on.constTimeNegate(Xn,Di),Vi=on.constTimeNegate(qn,Vi),Vi=new pt(b.mul(Vi.px,Un.beta),Vi.py,Vi.pz),dn=Di.add(Vi),vn=Ji.add(ji)}else{const{p:Xn,f:Si}=this.wNAF(Vt);dn=Xn,vn=Si}return pt.normalizeZ([dn,vn])[0]}multiplyAndAddUnsafe(Ft,Vt,dn){const vn=pt.BASE,Un=(Si,qn)=>qn!==ii&&qn!==ci&&Si.equals(vn)?Si.multiply(qn):Si.multiplyUnsafe(qn),Xn=Un(this,Vt).add(Un(Ft,dn));return Xn.is0()?void 0:Xn}toAffine(Ft){const{px:Vt,py:dn,pz:vn}=this,Un=this.is0();null==Ft&&(Ft=Un?b.ONE:b.inv(vn));const Xn=b.mul(Vt,Ft),Si=b.mul(dn,Ft),qn=b.mul(vn,Ft);if(Un)return{x:b.ZERO,y:b.ZERO};if(!b.eql(qn,b.ONE))throw new Error("invZ was invalid");return{x:Xn,y:Si}}isTorsionFree(){const{h:Ft,isTorsionFree:Vt}=m;if(Ft===ci)return!0;if(Vt)return Vt(pt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Ft,clearCofactor:Vt}=m;return Ft===ci?this:Vt?Vt(pt,this):this.multiplyUnsafe(m.h)}toRawBytes(Ft=!0){return this.assertValidity(),I(pt,this,Ft)}toHex(Ft=!0){return Pe(this.toRawBytes(Ft))}}pt.BASE=new pt(m.Gx,m.Gy,b.ONE),pt.ZERO=new pt(b.ZERO,b.ONE,b.ZERO);const Jt=m.nBitLength,on=function Ot(h,m){const b=(P,G)=>{const ae=G.negate();return P?ae:G},I=P=>({windows:Math.ceil(m/P)+1,windowSize:2**(P-1)});return{constTimeNegate:b,unsafeLadder(P,G){let ae=h.ZERO,pe=P;for(;G>Or;)G&ft&&(ae=ae.add(pe)),pe=pe.double(),G>>=ft;return ae},precomputeWindow(P,G){const{windows:ae,windowSize:pe}=I(G),ke=[];let it=P,ht=it;for(let pt=0;pt>=on,Vt>ke&&(Vt-=Jt,ae+=ft);const dn=Ft,vn=Ft+Math.abs(Vt)-1,Xn=Vt<0;0===Vt?ht=ht.add(b(Kt%2!=0,G[dn])):it=it.add(b(Xn,G[vn]))}return{p:it,f:ht}},wNAFCached(P,G,ae,pe){const ke=P._WINDOW_SIZE||1;let it=G.get(P);return it||(it=this.precomputeWindow(P,ke),1!==ke&&G.set(P,pe(it))),this.wNAF(ke,it,ae)}}}(pt,m.endo?Math.ceil(Jt/2):Jt);return{CURVE:m,ProjectivePoint:pt,normPrivateKeyToScalar:ke,weierstrassEquation:G,isWithinCurveOrder:ae}}({...m,toBytes(Gn,si,Pi){const Hi=si.toAffine(),fi=b.toBytes(Hi.x),cr=Je;return Pi?cr(Uint8Array.from([si.hasEvenY()?2:3]),fi):cr(Uint8Array.from([4]),fi,b.toBytes(Hi.y))},fromBytes(Gn){const si=Gn.length,Pi=Gn[0],Hi=Gn.subarray(1);if(si!==P||2!==Pi&&3!==Pi){if(si===G&&4===Pi)return{x:b.fromBytes(Hi.subarray(0,b.BYTES)),y:b.fromBytes(Hi.subarray(b.BYTES,2*b.BYTES))};throw new Error(`Point of length ${si} was invalid. Expected ${P} compressed bytes or ${G} uncompressed bytes`)}{const fi=Rt(Hi);if(!function ae(Gn){return iiPe(mn(Gn,m.nByteLength));function Kt(Gn){return Gn>I>>ci}const Vt=(Gn,si,Pi)=>Rt(Gn.slice(si,Pi));class dn{constructor(si,Pi,Hi){this.r=si,this.s=Pi,this.recovery=Hi,this.assertValidity()}static fromCompact(si){const Pi=m.nByteLength;return si=_e("compactSignature",si,2*Pi),new dn(Vt(si,0,Pi),Vt(si,Pi,2*Pi))}static fromDER(si){const{r:Pi,s:Hi}=zn.toSig(_e("DER",si));return new dn(Pi,Hi)}assertValidity(){if(!Jt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Jt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(si){return new dn(this.r,this.s,si)}recoverPublicKey(si){const{r:Pi,s:Hi,recovery:fi}=this,cr=_i(_e("msgHash",si));if(null==fi||![0,1,2,3].includes(fi))throw new Error("recovery id invalid");const br=2===fi||3===fi?Pi+m.n:Pi;if(br>=b.ORDER)throw new Error("recovery id 2 or 3 invalid");const No=it.fromHex((1&fi?"03":"02")+on(br)),ps=ke(br),ms=pe(-cr*ps),Ns=pe(Hi*ps),Go=it.BASE.multiplyAndAddUnsafe(No,ms,Ns);if(!Go)throw new Error("point at infinify");return Go.assertValidity(),Go}hasHighS(){return Kt(this.s)}normalizeS(){return this.hasHighS()?new dn(this.r,pe(-this.s),this.recovery):this}toDERRawBytes(){return ut(this.toDERHex())}toDERHex(){return zn.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return ut(this.toCompactHex())}toCompactHex(){return on(this.r)+on(this.s)}}const vn={isValidPrivateKey(Gn){try{return ht(Gn),!0}catch{return!1}},normPrivateKeyToScalar:ht,randomPrivateKey:()=>{const Gn=Mi(m.n);return function Fr(h,m,b=!1){const I=h.length,P=Dr(m),G=Mi(m);if(I<16||I1024)throw new Error(`expected ${G}-1024 bytes of input, got ${I}`);const pe=ye(b?Rt(h):wt(h),m-jt)+jt;return b?ni(pe,P):mn(pe,P)}(m.randomBytes(Gn),m.n)},precompute:(Gn=8,si=it.BASE)=>(si._setWindowSize(Gn),si.multiply(BigInt(3)),si)};function Xn(Gn){const si=Gn instanceof Uint8Array,Pi="string"==typeof Gn,Hi=(si||Pi)&&Gn.length;return si?Hi===P||Hi===G:Pi?Hi===2*P||Hi===2*G:Gn instanceof it}const qn=m.bits2int||function(Gn){const si=Rt(Gn),Pi=8*Gn.length-m.nBitLength;return Pi>0?si>>BigInt(Pi):si},_i=m.bits2int_modN||function(Gn){return pe(qn(Gn))},Di=N(m.nBitLength);function Ji(Gn){if("bigint"!=typeof Gn)throw new Error("bigint expected");if(!(ii<=Gn&&GnMs in Pi))throw new Error("sign() legacy options not supported");const{hash:Hi,randomBytes:fi}=m;let{lowS:cr,prehash:br,extraEntropy:ur}=Pi;null==cr&&(cr=!0),Gn=_e("msgHash",Gn),br&&(Gn=_e("prehashed msgHash",Hi(Gn)));const No=_i(Gn),ps=ht(si),ms=[Ji(ps),Ji(No)];if(null!=ur){const Ms=!0===ur?fi(b.BYTES):ur;ms.push(_e("extraEntropy",Ms))}const Ns=Je(...ms),Go=No;return{seed:Ns,k2sig:function za(Ms){const Cl=qn(Ms);if(!Jt(Cl))return;const Dh=ke(Cl),Bl=it.BASE.multiply(Cl).toAffine(),dc=pe(Bl.x);if(dc===ii)return;const Ul=pe(Dh*pe(Go+dc*ps));if(Ul===ii)return;let Xc=(Bl.x===dc?0:2)|Number(Bl.y&ci),pu=Ul;return cr&&Kt(Ul)&&(pu=function Ft(Gn){return Kt(Gn)?pe(-Gn):Gn}(Ul),Xc^=1),new dn(dc,pu,Xc)}}}(Gn,si,Pi);return ue(m.hash.outputLen,m.nByteLength,m.hmac)(Hi,fi)},verify:function Nr(Gn,si,Pi,Hi=pr){const fi=Gn;if(si=_e("msgHash",si),Pi=_e("publicKey",Pi),"strict"in Hi)throw new Error("options.strict was renamed to lowS");const{lowS:cr,prehash:br}=Hi;let ur,No;try{if("string"==typeof fi||fi instanceof Uint8Array)try{ur=dn.fromDER(fi)}catch(Bl){if(!(Bl instanceof zn.Err))throw Bl;ur=dn.fromCompact(fi)}else{if("object"!=typeof fi||"bigint"!=typeof fi.r||"bigint"!=typeof fi.s)throw new Error("PARSE");{const{r:Bl,s:dc}=fi;ur=new dn(Bl,dc)}}No=it.fromHex(Pi)}catch(Bl){if("PARSE"===Bl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(cr&&ur.hasHighS())return!1;br&&(si=m.hash(si));const{r:ps,s:ms}=ur,Ns=_i(si),Go=ke(ms),za=pe(Ns*Go),Ms=pe(ps*Go),Cl=it.BASE.multiplyAndAddUnsafe(No,za,Ms)?.toAffine();return!!Cl&&pe(Cl.x)===ps},ProjectivePoint:it,Signature:dn,utils:vn}}function vt(h){return{hash:h,hmac:(m,...b)=>Kr(h,m,function Le(...h){const m=new Uint8Array(h.reduce((I,P)=>I+P.length,0));let b=0;return h.forEach(I=>{if(!he(I))throw new Error("Uint8Array expected");m.set(I,b),b+=I.length}),m}(...b)),randomBytes:$n}}BigInt(4);const $t=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),gn=BigInt(1),En=BigInt(2),xn=(h,m)=>(h+m/En)/m;function Vn(h){const m=$t,b=BigInt(3),I=BigInt(6),P=BigInt(11),G=BigInt(22),ae=BigInt(23),pe=BigInt(44),ke=BigInt(88),it=h*h*h%m,ht=it*it*h%m,pt=Gt(ht,b,m)*ht%m,Jt=Gt(pt,b,m)*ht%m,on=Gt(Jt,En,m)*it%m,Kt=Gt(on,P,m)*on%m,Ft=Gt(Kt,G,m)*Kt%m,Vt=Gt(Ft,pe,m)*Ft%m,dn=Gt(Vt,ke,m)*Vt%m,vn=Gt(dn,pe,m)*Ft%m,Un=Gt(vn,b,m)*ht%m,Xn=Gt(Un,ae,m)*Kt%m,Si=Gt(Xn,I,m)*it%m,qn=Gt(Si,En,m);if(!Hn.eql(Hn.sqr(qn),h))throw new Error("Cannot find square root");return qn}const Hn=function Xt(h,m,b=!1,I={}){if(h<=Ut)throw new Error(`Expected Field ORDER > 0, got ${h}`);const{nBitLength:P,nByteLength:G}=lt(h,m);if(G>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ae=function Ti(h){if(h%wi===Ln){const m=(h+jt)/wi;return function(I,P){const G=I.pow(P,m);if(!I.eql(I.sqr(G),P))throw new Error("Cannot find square root");return G}}if(h%Cn===en){const m=(h-en)/Cn;return function(I,P){const G=I.mul(P,On),ae=I.pow(G,m),pe=I.mul(P,ae),ke=I.mul(I.mul(pe,On),ae),it=I.mul(pe,I.sub(ke,I.ONE));if(!I.eql(I.sqr(it),P))throw new Error("Cannot find square root");return it}}return function yi(h){const m=(h-jt)/On;let b,I,P;for(b=h-jt,I=0;b%On===Ut;b/=On,I++);for(P=On;Pye(ke,h),isValid:ke=>{if("bigint"!=typeof ke)throw new Error("Invalid field element: expected bigint, got "+typeof ke);return Ut<=ke&&keke===Ut,isOdd:ke=>(ke&jt)===jt,neg:ke=>ye(-ke,h),eql:(ke,it)=>ke===it,sqr:ke=>ye(ke*ke,h),add:(ke,it)=>ye(ke+it,h),sub:(ke,it)=>ye(ke-it,h),mul:(ke,it)=>ye(ke*it,h),pow:(ke,it)=>function Bt(h,m,b){if(b 0");if(b===Ut)return h.ONE;if(b===jt)return m;let I=h.ONE,P=m;for(;b>Ut;)b&jt&&(I=h.mul(I,P)),P=h.sqr(P),b>>=jt;return I}(pe,ke,it),div:(ke,it)=>ye(ke*Pn(it,h),h),sqrN:ke=>ke*ke,addN:(ke,it)=>ke+it,subN:(ke,it)=>ke-it,mulN:(ke,it)=>ke*it,inv:ke=>Pn(ke,h),sqrt:I.sqrt||(ke=>ae(pe,ke)),invertBatch:ke=>function ot(h,m){const b=new Array(m.length),I=m.reduce((G,ae,pe)=>h.is0(ae)?G:(b[pe]=G,h.mul(G,ae)),h.ONE),P=h.inv(I);return m.reduceRight((G,ae,pe)=>h.is0(ae)?G:(b[pe]=h.mul(G,b[pe]),h.mul(G,ae)),P),b}(pe,ke),cmov:(ke,it,ht)=>ht?it:ke,toBytes:ke=>b?ni(ke,G):mn(ke,G),fromBytes:ke=>{if(ke.length!==G)throw new Error(`Fp.fromBytes: expected ${G}, got ${ke.length}`);return b?wt(ke):Rt(ke)}});return Object.freeze(pe)}($t,void 0,void 0,{sqrt:Vn}),ui=function at(h,m){const b=I=>Ae({...h,...vt(I)});return Object.freeze({...b(m),create:b})}({a:BigInt(0),b:BigInt(7),Fp:Hn,n:hn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:h=>{const m=hn,b=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),I=-gn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),P=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),G=b,ae=BigInt("0x100000000000000000000000000000000"),pe=xn(G*h,m),ke=xn(-I*h,m);let it=ye(h-pe*b-ke*P,m),ht=ye(-pe*I-ke*G,m);const pt=it>ae,Jt=ht>ae;if(pt&&(it=m-it),Jt&&(ht=m-ht),it>ae||ht>ae)throw new Error("splitScalar: Endomorphism failed, k="+h);return{k1neg:pt,k1:it,k2neg:Jt,k2:ht}}}},je),Oi=BigInt(0),ti=h=>"bigint"==typeof h&&OiP.charCodeAt(0)));b=Je(I,I),Rr[h]=b}return je(Je(b,...m))}const Lr=h=>h.toRawBytes(!0).slice(1),Ci=h=>mn(h,32),Br=h=>ye(h,$t),Ko=h=>ye(h,hn),Gi=ui.ProjectivePoint;function es(h){let m=ui.utils.normPrivateKeyToScalar(h),b=Gi.fromPrivateKey(m);return{scalar:b.hasEvenY()?m:Ko(-m),bytes:Lr(b)}}function io(h){if(!ti(h))throw new Error("bad x: need 0 < x < p");const m=Br(h*h);let I=Vn(Br(m*h+BigInt(7)));I%En!==Oi&&(I=Br(-I));const P=new Gi(h,I,gn);return P.assertValidity(),P}function ma(...h){return Ko(Rt(ho("BIP0340/challenge",...h)))}function vo(h,m,b){const I=_e("signature",h,64),P=_e("message",m),G=_e("publicKey",b,32);try{const ae=io(Rt(G)),pe=Rt(I.subarray(0,32));if(!ti(pe))return!1;const ke=Rt(I.subarray(32,64));if(!(h=>"bigint"==typeof h&&OiGi.BASE.multiplyAndAddUnsafe(h,m,b))(ae,ke,Ko(-it));return!(!ht||!ht.hasEvenY()||ht.toAffine().x!==pe)}catch{return!1}}const jo={getPublicKey:function ga(h){return es(h).bytes},sign:function Kl(h,m,b=$n(32)){const I=_e("message",h),{bytes:P,scalar:G}=es(m),ae=_e("auxRand",b,32),pe=Ci(G^Rt(ho("BIP0340/aux",ae))),ke=ho("BIP0340/nonce",pe,P,I),it=Ko(Rt(ke));if(it===Oi)throw new Error("sign failed: k is zero");const{bytes:ht,scalar:pt}=es(it),Jt=ma(ht,P,I),on=new Uint8Array(64);if(on.set(ht,0),on.set(Ci(Ko(pt+Jt*G)),32),!vo(on,I,P))throw new Error("sign: Invalid signature produced");return on},verify:vo,utils:{randomPrivateKey:ui.utils.randomPrivateKey,lift_x:io,pointToBytes:Lr,numberToBytesBE:mn,bytesToNumberBE:Rt,taggedHash:ho,mod:ye}};var Ii=v(6391);function ns(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`Wrong positive integer: ${h}`)}function Ar(h,...m){if(!(h instanceof Uint8Array))throw new Error("Expected Uint8Array");if(m.length>0&&!m.includes(h.length))throw new Error(`Expected Uint8Array of length ${m}, not of length=${h.length}`)}const Vr={number:ns,bool:function Sr(h){if("boolean"!=typeof h)throw new Error(`Expected boolean, not ${h}`)},bytes:Ar,hash:function Tr(h){if("function"!=typeof h||"function"!=typeof h.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");ns(h.outputLen),ns(h.blockLen)},exists:function Vs(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")},output:function xi(h,m){Ar(h);const b=m.outputLen;if(h.lengthP-ae&&(this.process(I,0),ae=0);for(let pt=ae;pt>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)})(I,P-8,BigInt(8*this.length),G),this.process(I,0);const pe=(0,Ii.O8)(m),ke=this.outputLen;if(ke%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const it=ke/4,ht=this.get();if(it>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pth&m^~h&b,ws=(h,m,b)=>h&m^h&b^m&b,Hs=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]),Xr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Li=new Uint32Array(64);class gr extends $o{constructor(){super(64,32,8,!1),this.A=0|Xr[0],this.B=0|Xr[1],this.C=0|Xr[2],this.D=0|Xr[3],this.E=0|Xr[4],this.F=0|Xr[5],this.G=0|Xr[6],this.H=0|Xr[7]}get(){const{A:m,B:b,C:I,D:P,E:G,F:ae,G:pe,H:ke}=this;return[m,b,I,P,G,ae,pe,ke]}set(m,b,I,P,G,ae,pe,ke){this.A=0|m,this.B=0|b,this.C=0|I,this.D=0|P,this.E=0|G,this.F=0|ae,this.G=0|pe,this.H=0|ke}process(m,b){for(let pt=0;pt<16;pt++,b+=4)Li[pt]=m.getUint32(b,!1);for(let pt=16;pt<64;pt++){const Jt=Li[pt-15],on=Li[pt-2],Kt=(0,Ii.Ow)(Jt,7)^(0,Ii.Ow)(Jt,18)^Jt>>>3,Ft=(0,Ii.Ow)(on,17)^(0,Ii.Ow)(on,19)^on>>>10;Li[pt]=Ft+Li[pt-7]+Kt+Li[pt-16]|0}let{A:I,B:P,C:G,D:ae,E:pe,F:ke,G:it,H:ht}=this;for(let pt=0;pt<64;pt++){const on=ht+((0,Ii.Ow)(pe,6)^(0,Ii.Ow)(pe,11)^(0,Ii.Ow)(pe,25))+va(pe,ke,it)+Hs[pt]+Li[pt]|0,Ft=((0,Ii.Ow)(I,2)^(0,Ii.Ow)(I,13)^(0,Ii.Ow)(I,22))+ws(I,P,G)|0;ht=it,it=ke,ke=pe,pe=ae+on|0,ae=G,G=P,P=I,I=on+Ft|0}I=I+this.A|0,P=P+this.B|0,G=G+this.C|0,ae=ae+this.D|0,pe=pe+this.E|0,ke=ke+this.F|0,it=it+this.G|0,ht=ht+this.H|0,this.set(I,P,G,ae,pe,ke,it,ht)}roundClean(){Li.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Xo extends gr{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}}const ro=(0,Ii.ld)(()=>new gr);function Er(h){if(!Number.isSafeInteger(h))throw new Error(`Wrong integer: ${h}`)}function oo(...h){const m=(P,G)=>ae=>P(G(ae));return{encode:Array.from(h).reverse().reduce((P,G)=>P?m(P,G.encode):G.encode,void 0),decode:h.reduce((P,G)=>P?m(P,G.decode):G.decode,void 0)}}function jr(h){return{encode:m=>{if(!Array.isArray(m)||m.length&&"number"!=typeof m[0])throw new Error("alphabet.encode input should be an array of numbers");return m.map(b=>{if(Er(b),b<0||b>=h.length)throw new Error(`Digit index outside alphabet: ${b} (alphabet: ${h.length})`);return h[b]})},decode:m=>{if(!Array.isArray(m)||m.length&&"string"!=typeof m[0])throw new Error("alphabet.decode input should be array of strings");return m.map(b=>{if("string"!=typeof b)throw new Error(`alphabet.decode: not string element=${b}`);const I=h.indexOf(b);if(-1===I)throw new Error(`Unknown letter: "${b}". Allowed: ${h}`);return I})}}}function xo(h=""){if("string"!=typeof h)throw new Error("join separator should be string");return{encode:m=>{if(!Array.isArray(m)||m.length&&"string"!=typeof m[0])throw new Error("join.encode input should be array of strings");for(let b of m)if("string"!=typeof b)throw new Error(`join.encode: non-string input=${b}`);return m.join(h)},decode:m=>{if("string"!=typeof m)throw new Error("join.decode input should be string");return m.split(h)}}}function Ir(h,m="="){if(Er(h),"string"!=typeof m)throw new Error("padding chr should be string");return{encode(b){if(!Array.isArray(b)||b.length&&"string"!=typeof b[0])throw new Error("padding.encode input should be array of strings");for(let I of b)if("string"!=typeof I)throw new Error(`padding.encode: non-string input=${I}`);for(;b.length*h%8;)b.push(m);return b},decode(b){if(!Array.isArray(b)||b.length&&"string"!=typeof b[0])throw new Error("padding.encode input should be array of strings");for(let P of b)if("string"!=typeof P)throw new Error(`padding.decode: non-string input=${P}`);let I=b.length;if(I*h%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;I>0&&b[I-1]===m;I--)if(!((I-1)*h%8))throw new Error("Invalid padding: string has too much padding");return b.slice(0,I)}}}function Yo(h){if("function"!=typeof h)throw new Error("normalize fn should be function");return{encode:m=>m,decode:m=>h(m)}}function Eo(h,m,b){if(m<2)throw new Error(`convertRadix: wrong from=${m}, base cannot be less than 2`);if(b<2)throw new Error(`convertRadix: wrong to=${b}, base cannot be less than 2`);if(!Array.isArray(h))throw new Error("convertRadix: data should be array");if(!h.length)return[];let I=0;const P=[],G=Array.from(h);for(G.forEach(ae=>{if(Er(ae),ae<0||ae>=m)throw new Error(`Wrong integer: ${ae}`)});;){let ae=0,pe=!0;for(let ke=I;kenew Xo);const Es=(h,m)=>m?Es(m,h%m):h,sa=(h,m)=>h+(m-Es(h,m));function so(h,m,b,I){if(!Array.isArray(h))throw new Error("convertRadix2: data should be array");if(m<=0||m>32)throw new Error(`convertRadix2: wrong from=${m}`);if(b<=0||b>32)throw new Error(`convertRadix2: wrong to=${b}`);if(sa(m,b)>32)throw new Error(`convertRadix2: carry overflow from=${m} to=${b} carryBits=${sa(m,b)}`);let P=0,G=0;const ae=2**b-1,pe=[];for(const ke of h){if(Er(ke),ke>=2**m)throw new Error(`convertRadix2: invalid data word=${ke} from=${m}`);if(P=P<32)throw new Error(`convertRadix2: carry overflow pos=${G} from=${m}`);for(G+=m;G>=b;G-=b)pe.push((P>>G-b&ae)>>>0);P&=2**G-1}if(P=P<=m)throw new Error("Excess padding");if(!I&&P)throw new Error(`Non-zero padding: ${P}`);return I&&G>0&&pe.push(P>>>0),pe}function Fo(h,m=!1){if(Er(h),h<=0||h>32)throw new Error("radix2: bits should be in (0..32]");if(sa(8,h)>32||sa(h,8)>32)throw new Error("radix2: carry overflow");return{encode:b=>{if(!(b instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return so(Array.from(b),8,h,!m)},decode:b=>{if(!Array.isArray(b)||b.length&&"number"!=typeof b[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(so(b,h,8,m))}}}function Xa(h){if("function"!=typeof h)throw new Error("unsafeWrapper fn should be function");return function(...m){try{return h.apply(null,m)}catch{}}}oo(Fo(4),jr("0123456789ABCDEF"),xo("")),oo(Fo(5),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Ir(5),xo(""));const qr=(oo(Fo(5),jr("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Ir(5),xo("")),oo(Fo(5),jr("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),xo(""),Yo(h=>h.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),oo(Fo(6),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Ir(6),xo(""))),Oo=(oo(Fo(6),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Ir(6),xo("")),h=>oo(function aa(h){return Er(h),{encode:m=>{if(!(m instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Eo(Array.from(m),256,h)},decode:m=>{if(!Array.isArray(m)||m.length&&"number"!=typeof m[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Eo(m,h,256))}}}(58),jr(h),xo(""))),ka=(Oo("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Oo("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Oo("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),oo(jr("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),xo(""))),os=[996825010,642813549,513874426,1027748829,705979059];function So(h){const m=h>>25;let b=(33554431&h)<<5;for(let I=0;I>I&1)&&(b^=os[I]);return b}function _r(h,m,b=1){const I=h.length;let P=1;for(let G=0;G126)throw new Error(`Invalid prefix (${h})`);P=So(P)^ae>>5}P=So(P);for(let G=0;Gpt)throw new TypeError(`Wrong string length: ${ht.length} (${ht}). Expected (8..${pt})`);const Jt=ht.toLowerCase();if(ht!==Jt&&ht!==ht.toUpperCase())throw new Error("String must be lowercase or uppercase");const on=(ht=Jt).lastIndexOf("1");if(0===on||-1===on)throw new Error('Letter "1" must be present between prefix and data only');const Kt=ht.slice(0,on),Ft=ht.slice(on+1);if(Ft.length<6)throw new Error("Data must be at least 6 characters long");const Vt=ka.decode(Ft).slice(0,-6),dn=_r(Kt,Vt,m);if(!Ft.endsWith(dn))throw new Error(`Invalid checksum in ${ht}: expected "${dn}"`);return{prefix:Kt,words:Vt}}return{encode:function ae(ht,pt,Jt=90){if("string"!=typeof ht)throw new Error("bech32.encode prefix should be string, not "+typeof ht);if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof pt);const on=ht.length+7+pt.length;if(!1!==Jt&&on>Jt)throw new TypeError(`Length ${on} exceeds limit ${Jt}`);return`${ht=ht.toLowerCase()}1${ka.encode(pt)}${_r(ht,pt,m)}`},decode:pe,decodeToBytes:function it(ht){const{prefix:pt,words:Jt}=pe(ht,!1);return{prefix:pt,words:Jt,bytes:I(Jt)}},decodeUnsafe:Xa(pe),fromWords:I,fromWordsUnsafe:G,toWords:P}}const z=Ao("bech32");function ba(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`positive integer expected, not ${h}`)}function wa(h){if("boolean"!=typeof h)throw new Error(`boolean expected, not ${h}`)}function xs(h){return h instanceof Uint8Array||null!=h&&"object"==typeof h&&"Uint8Array"===h.constructor.name}function nr(h,...m){if(!xs(h))throw new Error("Uint8Array expected");if(m.length>0&&!m.includes(h.length))throw new Error(`Uint8Array expected of length ${m}, not of length=${h.length}`)}function ss(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")}function zs(h,m){nr(h);const b=m.outputLen;if(h.length{if("string"!=typeof h||h.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof h} with length ${h.length}`);return h.toLowerCase()}));const Ni=h=>new Uint32Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/4)),Ro=h=>new DataView(h.buffer,h.byteOffset,h.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ss(h){if("string"==typeof h)h=function ml(h){if("string"!=typeof h)throw new Error("string expected, got "+typeof h);return new Uint8Array((new TextEncoder).encode(h))}(h);else{if(!xs(h))throw new Error("Uint8Array expected, got "+typeof h);h=h.slice()}return h}function as(h,m){if(h.length!==m.length)return!1;let b=0;for(let I=0;I(Object.assign(m,h),m);function ko(h,m,b,I){if("function"==typeof h.setBigUint64)return h.setBigUint64(m,b,I);const P=BigInt(32),G=BigInt(4294967295),ae=Number(b>>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)}const ua=new Uint8Array(16),Mr=Ni(ua),da=(h,m,b,I)=>({s3:b<<31|I>>>1,s2:m<<31|b>>>1,s1:h<<31|m>>>1,s0:h>>>1^225<<24&-(1&I)}),ls=h=>(h>>>0&255)<<24|(h>>>8&255)<<16|(h>>>16&255)<<8|h>>>24&255;class Ws{constructor(m,b){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,nr(m=Ss(m),16);const I=Ro(m);let P=I.getUint32(0,!1),G=I.getUint32(4,!1),ae=I.getUint32(8,!1),pe=I.getUint32(12,!1);const ke=[];for(let Kt=0;Kt<128;Kt++)ke.push({s0:ls(P),s1:ls(G),s2:ls(ae),s3:ls(pe)}),({s0:P,s1:G,s2:ae,s3:pe}=da(P,G,ae,pe));const it=(h=b||1024)>65536?8:h>1024?4:2;var h;if(![1,2,4,8].includes(it))throw new Error(`ghash: wrong window size=${it}, should be 2, 4 or 8`);this.W=it;const pt=128/it,Jt=this.windowSize=2**it,on=[];for(let Kt=0;Kt>>it-Xn-1&1))continue;const{s0:qn,s1:_i,s2:Di,s3:Ji}=ke[it*Kt+Xn];Vt^=qn,dn^=_i,vn^=Di,Un^=Ji}on.push({s0:Vt,s1:dn,s2:vn,s3:Un})}this.t=on}_updateBlock(m,b,I,P){m^=this.s0,b^=this.s1,I^=this.s2,P^=this.s3;const{W:G,t:ae,windowSize:pe}=this;let ke=0,it=0,ht=0,pt=0;const Jt=(1<>>8*Ft&255;for(let dn=8/G-1;dn>=0;dn--){const vn=Vt>>>G*dn&Jt,{s0:Un,s1:Xn,s2:Si,s3:qn}=ae[on*pe+vn];ke^=Un,it^=Xn,ht^=Si,pt^=qn,on+=1}}this.s0=ke,this.s1=it,this.s2=ht,this.s3=pt}update(m){m=Ss(m),ss(this);const b=Ni(m),I=Math.floor(m.length/16),P=m.length%16;for(let G=0;G>>1|b,b=(1&P)<<7}return h[0]^=225&-m,h}((m=Ss(m)).slice());super(I,b),I.fill(0)}update(m){m=Ss(m),ss(this);const b=Ni(m),I=m.length%16,P=Math.floor(m.length/16);for(let G=0;Gh(P,I.length).update(Ss(I)).digest(),b=h(new Uint8Array(16),0);return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=(I,P)=>h(I,P),m}Gs((h,m)=>new Ws(h,m)),Gs((h,m)=>new Hr(h,m)),new Uint8Array(16);const Qa=283;function gl(h){return h<<1^Qa&-(h>>7)}function S(h,m){let b=0;for(;m>0;m>>=1)b^=h&-(1&m),h=gl(h);return b}const ne=(()=>{let h=new Uint8Array(256);for(let b=0,I=1;b<256;b++,I^=gl(I))h[b]=I;const m=new Uint8Array(256);m[0]=99;for(let b=0;b<255;b++){let I=h[255-b];I|=I<<8,m[h[b]]=255&(I^I>>4^I>>5^I>>6^I>>7^99)}return m})(),p=ne.map((h,m)=>ne.indexOf(m)),_=h=>h<<24|h>>>8,x=h=>h<<8|h>>>24;function X(h,m){if(256!==h.length)throw new Error("Wrong sbox length");const b=new Uint32Array(256).map((it,ht)=>m(h[ht])),I=b.map(x),P=I.map(x),G=P.map(x),ae=new Uint32Array(65536),pe=new Uint32Array(65536),ke=new Uint16Array(65536);for(let it=0;it<256;it++)for(let ht=0;ht<256;ht++){const pt=256*it+ht;ae[pt]=b[it]^I[ht],pe[pt]=P[it]^G[ht],ke[pt]=h[it]<<8|h[ht]}return{sbox:h,sbox2:ke,T0:b,T1:I,T2:P,T3:G,T01:ae,T23:pe}}const ce=X(ne,h=>S(h,3)<<24|h<<16|h<<8|S(h,2)),ze=X(p,h=>S(h,11)<<24|S(h,13)<<16|S(h,9)<<8|S(h,14)),yt=(()=>{const h=new Uint8Array(16);for(let m=0,b=1;m<16;m++,b=gl(b))h[m]=b;return h})();function Dt(h){nr(h);const m=h.length;if(![16,24,32].includes(m))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${m}`);const{sbox2:b}=ce,I=Ni(h),P=I.length,G=pe=>pn(b,pe,pe,pe,pe),ae=new Uint32Array(m+28);ae.set(I);for(let pe=P;pe6&&pe%P==4&&(ke=G(ke)),ae[pe]=ae[pe-P]^ke}return ae}function Wt(h,m,b,I,P,G){return h[b<<8&65280|I>>>8&255]^m[P>>>8&65280|G>>>24&255]}function pn(h,m,b,I,P){return h[255&m|65280&b]|h[I>>>16&255|P>>>16&65280]<<16}function St(h,m,b,I,P){const{sbox2:G,T01:ae,T23:pe}=ce;let ke=0;m^=h[ke++],b^=h[ke++],I^=h[ke++],P^=h[ke++];const it=h.length/4-2;for(let Kt=0;Kt{const pe=Dt(m),{b:ke,o:it,out:ht}=function Qn(h,m,b){let I=h.length;const P=I%16;if(!m&&0!==P)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const G=Ni(h);if(m){let ke=16-P;ke||(ke=16),I+=ke}const ae=cn(I,b);return{b:G,o:Ni(ae),out:ae}}(G,P,ae),pt=Ni(b);let Jt=pt[0],on=pt[1],Kt=pt[2],Ft=pt[3],Vt=0;for(;Vt+4<=ke.length;)Jt^=ke[Vt+0],on^=ke[Vt+1],Kt^=ke[Vt+2],Ft^=ke[Vt+3],({s0:Jt,s1:on,s2:Kt,s3:Ft}=St(pe,Jt,on,Kt,Ft)),it[Vt++]=Jt,it[Vt++]=on,it[Vt++]=Kt,it[Vt++]=Ft;if(P){const dn=function ri(h){const m=new Uint8Array(16),b=Ni(m);m.set(h);const I=16-h.length;for(let P=16-I;P<16;P++)m[P]=I;return b}(G.subarray(4*Vt));Jt^=dn[0],on^=dn[1],Kt^=dn[2],Ft^=dn[3],({s0:Jt,s1:on,s2:Kt,s3:Ft}=St(pe,Jt,on,Kt,Ft)),it[Vt++]=Jt,it[Vt++]=on,it[Vt++]=Kt,it[Vt++]=Ft}return pe.fill(0),ht},decrypt:(G,ae)=>{!function Nn(h){if(nr(h),h.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(G);const pe=function Pt(h){const m=Dt(h),b=m.slice(),I=m.length,{sbox2:P}=ce,{T0:G,T1:ae,T2:pe,T3:ke}=ze;for(let it=0;it>>8&255]^pe[pt>>>16&255]^ke[pt>>>24]}return b}(m),ke=Ni(b),it=cn(G.length,ae),ht=Ni(G),pt=Ni(it);let Jt=ke[0],on=ke[1],Kt=ke[2],Ft=ke[3];for(let Vt=0;Vt+4<=ht.length;){const dn=Jt,vn=on,Un=Kt,Xn=Ft;Jt=ht[Vt+0],on=ht[Vt+1],Kt=ht[Vt+2],Ft=ht[Vt+3];const{s0:Si,s1:qn,s2:_i,s3:Di}=Ht(pe,Jt,on,Kt,Ft);pt[Vt++]=Si^dn,pt[Vt++]=qn^vn,pt[Vt++]=_i^Un,pt[Vt++]=Di^Xn}return pe.fill(0),function An(h,m){if(!m)return h;const b=h.length;if(!b)throw new Error("aes/pcks5: empty ciphertext not allowed");const I=h[b-1];if(I<=0||I>16)throw new Error(`aes/pcks5: wrong padding byte: ${I}`);const P=h.subarray(0,-I);for(let G=0;G255&h[m++]|(255&h[m++])<<8;class ir{constructor(m){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,nr(m=Ss(m),32);const b=Yn(m,0),I=Yn(m,2),P=Yn(m,4),G=Yn(m,6),ae=Yn(m,8),pe=Yn(m,10),ke=Yn(m,12),it=Yn(m,14);this.r[0]=8191&b,this.r[1]=8191&(b>>>13|I<<3),this.r[2]=7939&(I>>>10|P<<6),this.r[3]=8191&(P>>>7|G<<9),this.r[4]=255&(G>>>4|ae<<12),this.r[5]=ae>>>1&8190,this.r[6]=8191&(ae>>>14|pe<<2),this.r[7]=8065&(pe>>>11|ke<<5),this.r[8]=8191&(ke>>>8|it<<8),this.r[9]=it>>>5&127;for(let ht=0;ht<8;ht++)this.pad[ht]=Yn(m,16+2*ht)}process(m,b,I=!1){const P=I?0:2048,{h:G,r:ae}=this,pe=ae[0],ke=ae[1],it=ae[2],ht=ae[3],pt=ae[4],Jt=ae[5],on=ae[6],Kt=ae[7],Ft=ae[8],Vt=ae[9],dn=Yn(m,b+0),vn=Yn(m,b+2),Un=Yn(m,b+4),Xn=Yn(m,b+6),Si=Yn(m,b+8),qn=Yn(m,b+10),_i=Yn(m,b+12),Di=Yn(m,b+14);let Ji=G[0]+(8191&dn),Vi=G[1]+(8191&(dn>>>13|vn<<3)),ji=G[2]+(8191&(vn>>>10|Un<<6)),pr=G[3]+(8191&(Un>>>7|Xn<<9)),mr=G[4]+(8191&(Xn>>>4|Si<<12)),Nr=G[5]+(Si>>>1&8191),Gn=G[6]+(8191&(Si>>>14|qn<<2)),si=G[7]+(8191&(qn>>>11|_i<<5)),Pi=G[8]+(8191&(_i>>>8|Di<<8)),Hi=G[9]+(Di>>>5|P),fi=0,cr=fi+Ji*pe+Vi*(5*Vt)+ji*(5*Ft)+pr*(5*Kt)+mr*(5*on);fi=cr>>>13,cr&=8191,cr+=Nr*(5*Jt)+Gn*(5*pt)+si*(5*ht)+Pi*(5*it)+Hi*(5*ke),fi+=cr>>>13,cr&=8191;let br=fi+Ji*ke+Vi*pe+ji*(5*Vt)+pr*(5*Ft)+mr*(5*Kt);fi=br>>>13,br&=8191,br+=Nr*(5*on)+Gn*(5*Jt)+si*(5*pt)+Pi*(5*ht)+Hi*(5*it),fi+=br>>>13,br&=8191;let ur=fi+Ji*it+Vi*ke+ji*pe+pr*(5*Vt)+mr*(5*Ft);fi=ur>>>13,ur&=8191,ur+=Nr*(5*Kt)+Gn*(5*on)+si*(5*Jt)+Pi*(5*pt)+Hi*(5*ht),fi+=ur>>>13,ur&=8191;let No=fi+Ji*ht+Vi*it+ji*ke+pr*pe+mr*(5*Vt);fi=No>>>13,No&=8191,No+=Nr*(5*Ft)+Gn*(5*Kt)+si*(5*on)+Pi*(5*Jt)+Hi*(5*pt),fi+=No>>>13,No&=8191;let ps=fi+Ji*pt+Vi*ht+ji*it+pr*ke+mr*pe;fi=ps>>>13,ps&=8191,ps+=Nr*(5*Vt)+Gn*(5*Ft)+si*(5*Kt)+Pi*(5*on)+Hi*(5*Jt),fi+=ps>>>13,ps&=8191;let ms=fi+Ji*Jt+Vi*pt+ji*ht+pr*it+mr*ke;fi=ms>>>13,ms&=8191,ms+=Nr*pe+Gn*(5*Vt)+si*(5*Ft)+Pi*(5*Kt)+Hi*(5*on),fi+=ms>>>13,ms&=8191;let Ns=fi+Ji*on+Vi*Jt+ji*pt+pr*ht+mr*it;fi=Ns>>>13,Ns&=8191,Ns+=Nr*ke+Gn*pe+si*(5*Vt)+Pi*(5*Ft)+Hi*(5*Kt),fi+=Ns>>>13,Ns&=8191;let Go=fi+Ji*Kt+Vi*on+ji*Jt+pr*pt+mr*ht;fi=Go>>>13,Go&=8191,Go+=Nr*it+Gn*ke+si*pe+Pi*(5*Vt)+Hi*(5*Ft),fi+=Go>>>13,Go&=8191;let za=fi+Ji*Ft+Vi*Kt+ji*on+pr*Jt+mr*pt;fi=za>>>13,za&=8191,za+=Nr*ht+Gn*it+si*ke+Pi*pe+Hi*(5*Vt),fi+=za>>>13,za&=8191;let Ms=fi+Ji*Vt+Vi*Ft+ji*Kt+pr*on+mr*Jt;fi=Ms>>>13,Ms&=8191,Ms+=Nr*pt+Gn*ht+si*it+Pi*ke+Hi*pe,fi+=Ms>>>13,Ms&=8191,fi=(fi<<2)+fi|0,fi=fi+cr|0,cr=8191&fi,fi>>>=13,br+=fi,G[0]=cr,G[1]=br,G[2]=ur,G[3]=No,G[4]=ps,G[5]=ms,G[6]=Ns,G[7]=Go,G[8]=za,G[9]=Ms}finalize(){const{h:m,pad:b}=this,I=new Uint16Array(10);let P=m[1]>>>13;m[1]&=8191;for(let pe=2;pe<10;pe++)m[pe]+=P,P=m[pe]>>>13,m[pe]&=8191;m[0]+=5*P,P=m[0]>>>13,m[0]&=8191,m[1]+=P,P=m[1]>>>13,m[1]&=8191,m[2]+=P,I[0]=m[0]+5,P=I[0]>>>13,I[0]&=8191;for(let pe=1;pe<10;pe++)I[pe]=m[pe]+P,P=I[pe]>>>13,I[pe]&=8191;I[9]-=8192;let G=(1^P)-1;for(let pe=0;pe<10;pe++)I[pe]&=G;G=~G;for(let pe=0;pe<10;pe++)m[pe]=m[pe]&G|I[pe];m[0]=65535&(m[0]|m[1]<<13),m[1]=65535&(m[1]>>>3|m[2]<<10),m[2]=65535&(m[2]>>>6|m[3]<<7),m[3]=65535&(m[3]>>>9|m[4]<<4),m[4]=65535&(m[4]>>>12|m[5]<<1|m[6]<<14),m[5]=65535&(m[6]>>>2|m[7]<<11),m[6]=65535&(m[7]>>>5|m[8]<<8),m[7]=65535&(m[8]>>>8|m[9]<<5);let ae=m[0]+b[0];m[0]=65535&ae;for(let pe=1;pe<8;pe++)ae=(m[pe]+b[pe]|0)+(ae>>>16)|0,m[pe]=65535&ae}update(m){ss(this);const{buffer:b,blockLen:I}=this,P=(m=Ss(m)).length;for(let G=0;G>>0,m[G++]=I[ae]>>>8;return m}digest(){const{buffer:m,outputLen:b}=this;this.digestInto(m);const I=m.slice(0,b);return this.destroy(),I}}const Jn=function dr(h){const m=(I,P)=>h(P).update(Ss(I)).digest(),b=h(new Uint8Array(32));return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=I=>h(I),m}(h=>new ir(h)),eo=h=>Uint8Array.from(h.split("").map(m=>m.charCodeAt(0))),Io=eo("expand 16-byte k"),mo=eo("expand 32-byte k"),Xs=Ni(Io),Zo=Ni(mo);function vi(h,m){return h<>>32-m}function kr(h){return h.byteOffset%4==0}Zo.slice();const Uo=2**32-1,Ei=new Uint32Array;function cs(h,m){const{allowShortKeys:b,extendNonceFn:I,counterLength:P,counterRight:G,rounds:ae}=function Da(h,m){if(null==m||"object"!=typeof m)throw new Error("options must be defined");return Object.assign(h,m)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},m);if("function"!=typeof h)throw new Error("core must be a function");return ba(P),ba(ae),wa(G),wa(b),(pe,ke,it,ht,pt=0)=>{nr(pe),nr(ke),nr(it);const Jt=it.length;if(ht||(ht=new Uint8Array(Jt)),nr(ht),ba(pt),pt<0||pt>=Uo)throw new Error("arx: counter overflow");if(ht.length=Uo)throw new Error("arx: counter overflow");const Ft=Math.min(64,ke-Kt);if(pt&&64===Ft){const Vt=Kt/4;if(Kt%4!=0)throw new Error("arx: invalid block position");for(let vn,dn=0;dn<16;dn++)vn=Vt+dn,on[vn]=Jt[vn]^ht[dn];Kt+=64}else{for(let dn,Vt=0;Vt0;)on.pop().fill(0);return ht}}function Ys(h,m,b,I,P,G=20){let ae=h[0],pe=h[1],ke=h[2],it=h[3],ht=m[0],pt=m[1],Jt=m[2],on=m[3],Kt=m[4],Ft=m[5],Vt=m[6],dn=m[7],vn=P,Un=b[0],Xn=b[1],Si=b[2],qn=ae,_i=pe,Di=ke,Ji=it,Vi=ht,ji=pt,pr=Jt,mr=on,Nr=Kt,Gn=Ft,si=Vt,Pi=dn,Hi=vn,fi=Un,cr=Xn,br=Si;for(let No=0;No{h.update(m);const b=m.length%16;b&&h.update(zg.subarray(b))},Wg=new Uint8Array(32);function E(h,m,b,I,P){const G=h(m,b,Wg),ae=Jn.create(G);P&&mi(ae,P),mi(ae,I);const pe=new Uint8Array(16),ke=Ro(pe);ko(ke,0,BigInt(P?P.length:0),!0),ko(ke,8,BigInt(I.length),!0),ae.update(pe);const it=ae.digest();return G.fill(0),it}const O=h=>(m,b,I)=>(nr(m,32),nr(b),{encrypt:(G,ae)=>{const pe=G.length,ke=pe+16;ae?nr(ae,ke):ae=new Uint8Array(ke),h(m,b,G,ae,1);const it=E(h,m,b,ae.subarray(0,-16),I);return ae.set(it,pe),ae},decrypt:(G,ae)=>{const pe=G.length,ke=pe-16;if(pe<16)throw new Error("encrypted data must be at least 16 bytes");ae?nr(ae,ke):ae=new Uint8Array(ke);const it=G.subarray(0,-16);if(!as(G.subarray(-16),E(h,m,b,it,I)))throw new Error("invalid tag");return h(m,b,it,ae,1),ae}});O(Zl),O(tf);class Z extends Ii.Vw{constructor(m,b){super(),this.finished=!1,this.destroyed=!1,Vr.hash(m);const I=(0,Ii.ZJ)(b);if(this.iHash=m.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const P=this.blockLen,G=new Uint8Array(P);G.set(I.length>P?m.create().update(I).digest():I);for(let ae=0;aenew Z(h,m).update(b).digest();De.create=(h,m)=>new Z(h,m);const ln=new Uint8Array([0]),Qt=new Uint8Array;var er=Object.defineProperty,Zi=(h,m)=>{for(var b in m)er(h,b,{get:m[b],enumerable:!0})},us=Symbol("verified"),ds=h=>h instanceof Object;function xa(h){if(!ds(h)||"number"!=typeof h.kind||"string"!=typeof h.content||"number"!=typeof h.created_at||"string"!=typeof h.pubkey||!h.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(h.tags))return!1;for(let m=0;mLa,QueueNode:()=>sf,binarySearch:()=>ru,insertEventIntoAscendingList:()=>Qp,insertEventIntoDescendingList:()=>rf,normalizeURL:()=>Jl,utf8Decoder:()=>Fa,utf8Encoder:()=>Rs});var Fa=new TextDecoder("utf-8"),Rs=new TextEncoder;function Jl(h){-1===h.indexOf("://")&&(h="wss://"+h);let m=new URL(h);return m.pathname=m.pathname.replace(/\/+/g,"/"),m.pathname.endsWith("/")&&(m.pathname=m.pathname.slice(0,-1)),("80"===m.port&&"ws:"===m.protocol||"443"===m.port&&"wss:"===m.protocol)&&(m.port=""),m.searchParams.sort(),m.hash="",m.toString()}function rf(h,m){const[b,I]=ru(h,P=>m.id===P.id?0:m.created_at===P.created_at?-1:P.created_at-m.created_at);return I||h.splice(b,0,m),h}function Qp(h,m){const[b,I]=ru(h,P=>m.id===P.id?0:m.created_at===P.created_at?-1:m.created_at-P.created_at);return I||h.splice(b,0,m),h}function ru(h,m){let b=0,I=h.length-1;for(;b<=I;){const P=Math.floor((b+I)/2),G=m(h[P]);if(0===G)return[P,!0];G<0?I=P-1:b=P+1}return[b,!1]}var sf=class{value;next=null;prev=null;constructor(h){this.value=h}},La=class{first;last;constructor(){this.first=null,this.last=null}enqueue(h){const m=new sf(h);return this.last?this.last===this.first?(this.last=m,this.last.prev=this.first,this.first.next=m):(m.prev=this.last,this.last.next=m,this.last=m):(this.first=m,this.last=m),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const m=this.first;return this.first=null,this.last=null,m.value}const h=this.first;return this.first=h.next,h.value}};function vr(h){let m=ro(Rs.encode(function lf(h){if(!xa(h))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,h.pubkey,h.created_at,h.kind,h.tags,h.content])}(h)));return(0,Ii.My)(m)}var Ec=new class{generateSecretKey(){return jo.utils.randomPrivateKey()}getPublicKey(h){return(0,Ii.My)(jo.getPublicKey(h))}finalizeEvent(h,m){const b=h;return b.pubkey=(0,Ii.My)(jo.getPublicKey(m)),b.id=vr(b),b.sig=(0,Ii.My)(jo.sign(vr(b),m)),b[us]=!0,b}verifyEvent(h){if("boolean"==typeof h[us])return h[us];const m=vr(h);if(m!==h.id)return h[us]=!1,!1;try{const b=jo.verify(h.sig,m,h.pubkey);return h[us]=b,b}catch{return h[us]=!1,!1}}},Cc=Ec.generateSecretKey,Is=Ec.getPublicKey,Ba=Ec.finalizeEvent,vl=Ec.verifyEvent;function Zs(h){return 1e3<=h&&h<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(h)}function zd(h){return[0,3].includes(h)||1e4<=h&&h<2e4}function Ua(h){return 2e4<=h&&h<3e4}function ku(h){return 3e4<=h&&h<4e4}function Js(h){return Zs(h)?"regular":zd(h)?"replaceable":Ua(h)?"ephemeral":ku(h)?"parameterized":"unknown"}Zi({},{Application:()=>Zu,BadgeAward:()=>Za,BadgeDefinition:()=>gf,BlockedRelaysList:()=>Zd,BookmarkList:()=>zu,Bookmarksets:()=>pf,Calendar:()=>qa,CalendarEventRSVP:()=>ql,ChannelCreation:()=>Fu,ChannelHideMessage:()=>Lu,ChannelMessage:()=>Zp,ChannelMetadata:()=>cf,ChannelMuteUser:()=>Bu,ClassifiedListing:()=>nm,ClientAuth:()=>Ku,CommunitiesList:()=>df,CommunityDefinition:()=>ec,CommunityPostApproval:()=>lr,Contacts:()=>ou,CreateOrUpdateProduct:()=>Qu,CreateOrUpdateStall:()=>Tc,Curationsets:()=>su,Date:()=>wf,DirectMessageRelaysList:()=>Ja,DraftClassifiedListing:()=>bf,DraftLong:()=>kl,Emojisets:()=>co,EncryptedDirectMessage:()=>Wd,EventDeletion:()=>xc,FileMetadata:()=>Jp,FileServerPreference:()=>yl,Followsets:()=>Jd,GenericRepost:()=>Kd,Genericlists:()=>Gg,GiftWrap:()=>Ol,HTTPAuth:()=>Yu,Handlerinformation:()=>Mc,Handlerrecommendation:()=>Ic,Highlights:()=>Qd,InterestsList:()=>_l,Interestsets:()=>vf,JobFeedback:()=>yr,JobRequest:()=>Yd,JobResult:()=>ju,Label:()=>_n,LightningPubRPC:()=>ea,LiveChatMessage:()=>uf,LiveEvent:()=>_f,LongFormArticle:()=>Jo,Metadata:()=>Nu,Mutelist:()=>$u,NWCWalletInfo:()=>em,NWCWalletRequest:()=>hf,NWCWalletResponse:()=>Xu,NostrConnect:()=>ff,OpenTimestamps:()=>Uu,Pinlist:()=>Ha,PrivateDirectMessage:()=>Gd,ProblemTracker:()=>qp,ProfileBadges:()=>mf,PublicChatsList:()=>Wu,Reaction:()=>Va,RecommendRelay:()=>qs,RelayList:()=>Ac,Relaysets:()=>tm,Report:()=>Xd,Reporting:()=>Vu,Repost:()=>Sc,Seal:()=>Xi,SearchRelaysList:()=>Wo,ShortTextNote:()=>Pu,Time:()=>au,UserEmojiList:()=>Gu,UserStatuses:()=>yf,Zap:()=>ja,ZapGoal:()=>Hu,ZapRequest:()=>Rl,classifyKind:()=>Js,isEphemeralKind:()=>Ua,isParameterizedReplaceableKind:()=>ku,isRegularKind:()=>Zs,isReplaceableKind:()=>zd});var Nu=0,Pu=1,qs=2,ou=3,Wd=4,xc=5,Sc=6,Va=7,Za=8,Xi=13,Gd=14,Kd=16,Fu=40,cf=41,Zp=42,Lu=43,Bu=44,Uu=1040,Ol=1059,Jp=1063,uf=1311,qp=1971,Xd=1984,Vu=1984,_n=1985,lr=4550,Yd=5999,ju=6999,yr=7e3,Hu=9041,Rl=9734,ja=9735,Qd=9802,$u=1e4,Ha=10001,Ac=10002,zu=10003,df=10004,Wu=10005,Zd=10006,Wo=10007,_l=10015,Gu=10030,Ja=10050,yl=10096,em=13194,ea=21e3,Ku=22242,hf=23194,Xu=23195,ff=24133,Yu=27235,Jd=3e4,Gg=30001,tm=30002,pf=30003,su=30004,mf=30008,gf=30009,vf=30015,Tc=30017,Qu=30018,Jo=30023,kl=30024,co=30030,Zu=30078,_f=30311,yf=30315,nm=30402,bf=30403,wf=31922,au=31923,qa=31924,ql=31925,Ic=31989,Mc=31990,ec=34550;function qd(h,m){if(h.ids&&-1===h.ids.indexOf(m.id)||h.kinds&&-1===h.kinds.indexOf(m.kind)||h.authors&&-1===h.authors.indexOf(m.pubkey))return!1;for(let b in h)if("#"===b[0]){let P=h[`#${b.slice(1)}`];if(P&&!m.tags.find(([G,ae])=>G===b.slice(1)&&-1!==P.indexOf(ae)))return!1}return!(h.since&&m.created_ath.until)}function el(h,m){let b=m.length+3,I=h.indexOf(`"${m}":`)+b,P=h.slice(I).indexOf('"')+I+1;return h.slice(P,P+64)}function Cf(h,m){let b=m.length,I=h.indexOf(`"${m}":`)+b+3,P=h.slice(I),G=Math.min(P.indexOf(","),P.indexOf("}"));return parseInt(P.slice(0,G),10)}function tc(h){let m=h.slice(0,22).indexOf('"EVENT"');if(-1===m)return null;let b=h.slice(m+7+1).indexOf('"');if(-1===b)return null;let I=m+7+1+b,P=h.slice(I+1,80).indexOf('"');return-1===P?null:h.slice(I+1,I+1+P)}function Ju(h,m){return m===el(h,"id")}function qu(h,m){return m===el(h,"pubkey")}function rm(h,m){return m===Cf(h,"kind")}function om(h,m){return{kind:Ku,created_at:Math.floor(Date.now()/1e3),tags:[["relay",h],["challenge",m]],content:""}}function sm(){return nc.apply(this,arguments)}function nc(){return(nc=(0,y.A)(function*(){return new Promise(h=>{const m=new MessageChannel,b=()=>{m.port1.removeEventListener("message",b),h()};m.port1.addEventListener("message",b),m.port2.postMessage(0),m.port1.start()})})).apply(this,arguments)}Zi({},{getHex64:()=>el,getInt:()=>Cf,getSubscriptionId:()=>tc,matchEventId:()=>Ju,matchEventKind:()=>rm,matchEventPubkey:()=>qu}),Zi({},{makeAuthEvent:()=>om});var Nl=h=>(h[us]=!0,!0),ed=class{url;_connected=!1;onclose=null;onnotice=h=>console.debug(`NOTICE from ${this.url}: ${h}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new La;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(h,m){this.url=Jl(h),this.verifyEvent=m.verifyEvent,this._WebSocket=m.websocketImplementation||WebSocket}static connect(h,m){return(0,y.A)(function*(){const b=new ed(h,m);return yield b.connect(),b})()}closeAllSubscriptions(h){for(let[m,b]of this.openSubs)b.close(h);this.openSubs.clear();for(let[m,b]of this.openEventPublishes)b.reject(new Error(h));this.openEventPublishes.clear();for(let[m,b]of this.openCountRequests)b.reject(new Error(h));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var h=this;return(0,y.A)(function*(){return h.connectionPromise||(h.challenge=void 0,h.connectionPromise=new Promise((m,b)=>{h.connectionTimeoutHandle=setTimeout(()=>{b("connection timed out"),h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection timed out")},h.connectionTimeout);try{h.ws=new h._WebSocket(h.url)}catch(I){return void b(I)}h.ws.onopen=()=>{clearTimeout(h.connectionTimeoutHandle),h._connected=!0,m()},h.ws.onerror=I=>{b(I.message||"websocket error"),h._connected&&(h._connected=!1,h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection errored"))},h.ws.onclose=(0,y.A)(function*(){h._connected&&(h._connected=!1,h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection closed"))}),h.ws.onmessage=h._onmessage.bind(h)})),h.connectionPromise})()}runQueue(){var h=this;return(0,y.A)(function*(){for(h.queueRunning=!0;!1!==h.handleNext();)yield sm();h.queueRunning=!1})()}handleNext(){const h=this.incomingMessageQueue.dequeue();if(!h)return!1;const m=tc(h);if(m){const b=this.openSubs.get(m);if(!b)return;const I=el(h,"id"),P=b.alreadyHaveEvent?.(I);if(b.receivedEvent?.(this,I),P)return}try{let b=JSON.parse(h);switch(b[0]){case"EVENT":{const I=this.openSubs.get(b[1]),P=b[2];return void(this.verifyEvent(P)&&function Ef(h,m){for(let b=0;b{m.ws?.send(h)})})()}auth(h){var m=this;return(0,y.A)(function*(){if(!m.challenge)throw new Error("can't perform auth, no challenge was received");const b=yield h(om(m.url,m.challenge)),I=new Promise((P,G)=>{m.openEventPublishes.set(b.id,{resolve:P,reject:G})});return m.send('["AUTH",'+JSON.stringify(b)+"]"),I})()}publish(h){var m=this;return(0,y.A)(function*(){const b=new Promise((I,P)=>{m.openEventPublishes.set(h.id,{resolve:I,reject:P})});return m.send('["EVENT",'+JSON.stringify(h)+"]"),b})()}count(h,m){var b=this;return(0,y.A)(function*(){b.serial++;const I=m?.id||"count:"+b.serial,P=new Promise((G,ae)=>{b.openCountRequests.set(I,{resolve:G,reject:ae})});return b.send('["COUNT","'+I+'",'+JSON.stringify(h).substring(1)),P})()}subscribe(h,m){const b=this.prepareSubscription(h,m);return b.fire(),b}prepareSubscription(h,m){this.serial++;const b=m.id||"sub:"+this.serial,I=new lu(this,b,h,m);return this.openSubs.set(b,I),I}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(h){this.incomingMessageQueue.enqueue(h.data),this.queueRunning||this.runQueue()}},lu=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(h,m,b,I){this.relay=h,this.filters=b,this.id=m,this.alreadyHaveEvent=I.alreadyHaveEvent,this.receivedEvent=I.receivedEvent,this.eoseTimeout=I.eoseTimeout||h.baseEoseTimeout,this.oneose=I.oneose,this.onclose=I.onclose,this.onevent=I.onevent||(P=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,P)})}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(h="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?.(h)}};try{WebSocket}catch{}var td,am=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(h){this.verifyEvent=h.verifyEvent,this._WebSocket=h.websocketImplementation}ensureRelay(h,m){var b=this;return(0,y.A)(function*(){h=Jl(h);let I=b.relays.get(h);return I||(I=new ed(h,{verifyEvent:b.trustedRelayURLs.has(h)?Nl:b.verifyEvent,websocketImplementation:b._WebSocket}),m?.connectionTimeout&&(I.connectionTimeout=m.connectionTimeout),b.relays.set(h,I)),yield I.connect(),I})()}close(h){h.map(Jl).forEach(m=>{this.relays.get(m)?.close()})}subscribeMany(h,m,b){return this.subscribeManyMap(Object.fromEntries(h.map(I=>[I,m])),b)}subscribeManyMap(h,m){var b=this;this.trackRelays&&(m.receivedEvent=(Jt,on)=>{let Kt=this.seenOn.get(on);Kt||(Kt=new Set,this.seenOn.set(on,Kt)),Kt.add(Jt)});const I=new Set,P=[],G=Object.keys(h).length,ae=[];let pe=Jt=>{ae[Jt]=!0,ae.filter(on=>on).length===G&&(m.oneose?.(),pe=()=>{})};const ke=[];let it=(Jt,on)=>{pe(Jt),ke[Jt]=on,ke.filter(Kt=>Kt).length===G&&(m.onclose?.(ke),it=()=>{})};const ht=Jt=>{if(m.alreadyHaveEvent?.(Jt))return!0;const on=I.has(Jt);return I.add(Jt),on},pt=Promise.all(Object.entries(h).map(function(){var Jt=(0,y.A)(function*(on,Kt,Ft){if(Ft.indexOf(on)!==Kt)return void it(Kt,"duplicate url");let vn,[Vt,dn]=on;Vt=Jl(Vt);try{vn=yield b.ensureRelay(Vt,{connectionTimeout:m.maxWait?Math.max(.8*m.maxWait,m.maxWait-1e3):void 0})}catch(Xn){return void it(Kt,Xn?.message||String(Xn))}let Un=vn.subscribe(dn,{...m,oneose:()=>pe(Kt),onclose:Xn=>it(Kt,Xn),alreadyHaveEvent:ht,eoseTimeout:m.maxWait});P.push(Un)});return function(on,Kt,Ft){return Jt.apply(this,arguments)}}()));return{close:()=>(0,y.A)(function*(){yield pt,P.forEach(Jt=>{Jt.close()})})()}}subscribeManyEose(h,m,b){const I=this.subscribeMany(h,m,{...b,oneose(){I.close()}});return I}querySync(h,m,b){var I=this;return(0,y.A)(function*(){return new Promise(function(){var P=(0,y.A)(function*(G){const ae=[];I.subscribeManyEose(h,[m],{...b,onevent(pe){ae.push(pe)},onclose(pe){G(ae)}})});return function(G){return P.apply(this,arguments)}}())})()}get(h,m,b){var I=this;return(0,y.A)(function*(){m.limit=1;const P=yield I.querySync(h,m,b);return P.sort((G,ae)=>ae.created_at-G.created_at),P[0]||null})()}publish(h,m){var b=this;return h.map(Jl).map(function(){var I=(0,y.A)(function*(P,G,ae){if(ae.indexOf(P)!==G)return Promise.reject("duplicate url");let pe=yield b.ensureRelay(P);return pe.publish(m).then(ke=>{if(b.trackRelays){let it=b.seenOn.get(m.id);it||(it=new Set,b.seenOn.set(m.id,it)),it.add(pe)}return ke})});return function(P,G,ae){return I.apply(this,arguments)}}())}listConnectionStatus(){const h=new Map;return this.relays.forEach((m,b)=>h.set(b,m.connected)),h}destroy(){this.relays.forEach(h=>h.close()),this.relays=new Map}};try{td=WebSocket}catch{}var nd=class extends am{constructor(){super({verifyEvent:vl,websocketImplementation:td})}},xf={};Zi(xf,{BECH32_REGEX:()=>th,Bech32MaxSize:()=>id,NostrTypeGuard:()=>Sf,decode:()=>ic,encodeBytes:()=>od,naddrEncode:()=>kc,neventEncode:()=>sd,noteEncode:()=>rd,nprofileEncode:()=>Sa,npubEncode:()=>Af,nsecEncode:()=>nh});var Sf={isNProfile:h=>/^nprofile1[a-z\d]+$/.test(h||""),isNRelay:h=>/^nrelay1[a-z\d]+$/.test(h||""),isNEvent:h=>/^nevent1[a-z\d]+$/.test(h||""),isNAddr:h=>/^naddr1[a-z\d]+$/.test(h||""),isNSec:h=>/^nsec1[a-z\d]{58}$/.test(h||""),isNPub:h=>/^npub1[a-z\d]{58}$/.test(h||""),isNote:h=>/^note1[a-z\d]+$/.test(h||""),isNcryptsec:h=>/^ncryptsec1[a-z\d]+$/.test(h||"")},id=5e3,th=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ic(h){let{prefix:m,words:b}=z.decode(h,id),I=new Uint8Array(z.fromWords(b));switch(m){case"nprofile":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==P[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Ii.My)(P[0][0]),relays:P[1]?P[1].map(G=>Fa.decode(G)):[]}}}case"nevent":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==P[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(P[2]&&32!==P[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(P[3]&&4!==P[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Ii.My)(P[0][0]),relays:P[1]?P[1].map(G=>Fa.decode(G)):[],author:P[2]?.[0]?(0,Ii.My)(P[2][0]):void 0,kind:P[3]?.[0]?parseInt((0,Ii.My)(P[3][0]),16):void 0}}}case"naddr":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!P[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==P[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!P[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==P[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Fa.decode(P[0][0]),pubkey:(0,Ii.My)(P[2][0]),kind:parseInt((0,Ii.My)(P[3][0]),16),relays:P[1]?P[1].map(G=>Fa.decode(G)):[]}}}case"nsec":return{type:m,data:I};case"npub":case"note":return{type:m,data:(0,Ii.My)(I)};default:throw new Error(`unknown prefix ${m}`)}}function Rc(h){let m={},b=h;for(;b.length>0;){let I=b[0],P=b[1],G=b.slice(2,2+P);if(b=b.slice(2+P),G.lengthRs.encode(b))}))}function sd(h){let m;return void 0!==h.kind&&(m=function tl(h){const m=new Uint8Array(4);return m[0]=h>>24&255,m[1]=h>>16&255,m[2]=h>>8&255,m[3]=255&h,m}(h.kind)),rc("nevent",Nc({0:[(0,Ii.aT)(h.id)],1:(h.relays||[]).map(I=>Rs.encode(I)),2:h.author?[(0,Ii.aT)(h.author)]:[],3:m?[new Uint8Array(m)]:[]}))}function kc(h){let m=new ArrayBuffer(4);return new DataView(m).setUint32(0,h.kind,!1),rc("naddr",Nc({0:[Rs.encode(h.identifier)],1:(h.relays||[]).map(I=>Rs.encode(I)),2:[(0,Ii.aT)(h.pubkey)],3:[new Uint8Array(m)]}))}function Nc(h){let m=[];return Object.entries(h).reverse().forEach(([b,I])=>{I.forEach(P=>{let G=new Uint8Array(P.length+2);G.set([parseInt(b)],0),G.set([P.length],1),G.set(P,2),m.push(G)})}),(0,Ii.Id)(...m)}var nl={};function Tf(h,m,b){return ad.apply(this,arguments)}function ad(){return(ad=(0,y.A)(function*(h,m,b){const I=h instanceof Uint8Array?(0,Ii.My)(h):h,G=Fl(ui.getSharedSecret(I,"02"+m));let ae=Uint8Array.from((0,Ii.po)(16)),pe=Rs.encode(b),ke=Rn(G,ae).encrypt(pe);return`${qr.encode(new Uint8Array(ke))}?iv=${qr.encode(new Uint8Array(ae.buffer))}`})).apply(this,arguments)}function uu(h,m,b){return Pl.apply(this,arguments)}function Pl(){return(Pl=(0,y.A)(function*(h,m,b){const I=h instanceof Uint8Array?(0,Ii.My)(h):h;let[P,G]=b.split("?iv="),pe=Fl(ui.getSharedSecret(I,"02"+m)),ke=qr.decode(G),it=qr.decode(P),ht=Rn(pe,ke).decrypt(it);return Fa.decode(ht)})).apply(this,arguments)}function Fl(h){return h.slice(1,33)}Zi(nl,{decrypt:()=>uu,encrypt:()=>Tf}),Zi({},{NIP05_REGEX:()=>ld,isNip05:()=>fa,isValid:()=>sc,queryProfile:()=>Mf,searchDomain:()=>If,useFetchImplementation:()=>cm});var $a,ld=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,fa=h=>ld.test(h||"");try{$a=fetch}catch{}function cm(h){$a=h}function If(h){return oc.apply(this,arguments)}function oc(){return(oc=(0,y.A)(function*(h,m=""){try{const b=`https://${h}/.well-known/nostr.json?name=${m}`;return(yield(yield $a(b,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function Mf(h){return du.apply(this,arguments)}function du(){return(du=(0,y.A)(function*(h){const m=h.match(ld);if(!m)return null;const[b,I="_",P]=m;try{const G=`https://${P}/.well-known/nostr.json?name=${I}`,ae=yield(yield $a(G,{redirect:"error"})).json();let pe=ae.names[I];return pe?{pubkey:pe,relays:ae.relays?.[pe]}:null}catch{return null}})).apply(this,arguments)}function sc(h,m){return Pc.apply(this,arguments)}function Pc(){return(Pc=(0,y.A)(function*(h,m){let b=yield Mf(m);return!!b&&b.pubkey===h})).apply(this,arguments)}function rh(h){const m={reply:void 0,root:void 0,mentions:[],profiles:[]},b=[];for(const I of h.tags)"e"===I[0]&&I[1]&&b.push(I),"p"===I[0]&&I[1]&&m.profiles.push({pubkey:I[1],relays:I[2]?[I[2]]:[]});for(let I=0;Irh}),Zi({},{fetchRelayInformation:()=>Xg,useFetchImplementation:()=>sh});try{fetch}catch{}function sh(h){}function Xg(h){return ah.apply(this,arguments)}function ah(){return(ah=(0,y.A)(function*(h){return yield(yield fetch(h.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function lh(h){let m=0;for(let b=0;b=m)break}return I}function Rf(h,m,b,I){return Ba({kind:Sc,tags:[...h.tags??[],["e",m.id,b],["p",m.pubkey]],content:""===h.content?"":JSON.stringify(m),created_at:h.created_at},I)}function hs(h){if(h.kind!==Sc)return;let m,b;for(let I=h.tags.length-1;I>=0&&(void 0===m||void 0===b);I--){const P=h.tags[I];P.length>=2&&("e"===P[0]&&void 0===m?m=P:"p"===P[0]&&void 0===b&&(b=P))}return void 0!==m?{id:m[1],relays:[m[2],b?.[2]].filter(I=>"string"==typeof I),author:b?.[1]}:void 0}function Yg(h,{skipVerification:m}={}){const b=hs(h);if(void 0===b||""===h.content)return;let I;try{I=JSON.parse(h.content)}catch{return}return I.id===b.id&&(m||vl(I))?I:void 0}Zi({},{getPow:()=>lh,minePow:()=>dm}),Zi({},{finishRepostEvent:()=>Rf,getRepostedEvent:()=>Yg,getRepostedEventPointer:()=>hs}),Zi({},{NOSTR_URI_REGEX:()=>ch,parse:()=>fm,test:()=>kf});var ch=new RegExp(`nostr:(${th.source})`);function kf(h){return"string"==typeof h&&new RegExp(`^${ch.source}$`).test(h)}function fm(h){const m=h.match(new RegExp(`^${ch.source}$`));if(!m)throw new Error(`Invalid Nostr URI: ${h}`);return{uri:m[0],value:m[1],decoded:ic(m[1])}}function Nf(h,m,b){const I=m.tags.filter(P=>P.length>=2&&("e"===P[0]||"p"===P[0]));return Ba({...h,kind:Va,tags:[...h.tags??[],...I,["e",m.id],["p",m.pubkey]],content:h.content??"+"},b)}function ud(h){if(h.kind!==Va)return;let m,b;for(let I=h.tags.length-1;I>=0&&(void 0===m||void 0===b);I--){const P=h.tags[I];P.length>=2&&("e"===P[0]&&void 0===m?m=P:"p"===P[0]&&void 0===b&&(b=P))}return void 0!==m&&void 0!==b?{id:m[1],relays:[m[2],b[2]].filter(I=>void 0!==I),author:b[1]}:void 0}Zi({},{finishReactionEvent:()=>Nf,getReactedEventPointer:()=>ud}),Zi({},{matchAll:()=>Lc,regex:()=>Pf,replaceAll:()=>Ff});var Pf=()=>new RegExp(`\\b${ch.source}\\b`,"g");function*Lc(h){const m=h.matchAll(Pf());for(const b of m)try{const[I,P]=b;yield{uri:I,value:P,decoded:ic(P),start:b.index,end:b.index+I.length}}catch{}}function Ff(h,m){return h.replaceAll(Pf(),(b,I)=>m({uri:b,value:I,decoded:ic(I)}))}Zi({},{channelCreateEvent:()=>il,channelHideMessageEvent:()=>ac,channelMessageEvent:()=>Lf,channelMetadataEvent:()=>$r,channelMuteUserEvent:()=>Jy});var il=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Fu,tags:[...h.tags??[]],content:b,created_at:h.created_at},m)},$r=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:cf,tags:[["e",h.channel_create_event_id],...h.tags??[]],content:b,created_at:h.created_at},m)},Lf=(h,m)=>{const b=[["e",h.channel_create_event_id,h.relay_url,"root"]];return h.reply_to_channel_message_event_id&&b.push(["e",h.reply_to_channel_message_event_id,h.relay_url,"reply"]),Ba({kind:Zp,tags:[...b,...h.tags??[]],content:h.content,created_at:h.created_at},m)},ac=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Lu,tags:[["e",h.channel_message_event_id],...h.tags??[]],content:b,created_at:h.created_at},m)},Jy=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Bu,tags:[["p",h.pubkey_to_mute],...h.tags??[]],content:b,created_at:h.created_at},m)};Zi({},{EMOJI_SHORTCODE_REGEX:()=>lc,matchAll:()=>yo,regex:()=>qo,replaceAll:()=>Bf});var hd,lc=/:(\w+):/,qo=()=>new RegExp(`\\B${lc.source}\\B`,"g");function*yo(h){const m=h.matchAll(qo());for(const b of m)try{const[I,P]=b;yield{shortcode:I,name:P,start:b.index,end:b.index+I.length}}catch{}}function Bf(h,m){return h.replaceAll(qo(),(b,I)=>m({shortcode:b,name:I}))}Zi({},{useFetchImplementation:()=>mm,validateGithub:()=>dh});try{hd=fetch}catch{}function mm(h){hd=h}function dh(h,m,b){return hu.apply(this,arguments)}function hu(){return(hu=(0,y.A)(function*(h,m,b){try{return(yield(yield hd(`https://gist.github.com/${m}/${b}/raw`)).text())===`Verifying that I control the following Nostr public key: ${h}`}catch{return!1}})).apply(this,arguments)}Zi({},{decrypt:()=>pd,encrypt:()=>jf,getConversationKey:()=>cc,v2:()=>Qg});var fd=1,Uc=65535;function cc(h,m){const b=ui.getSharedSecret(h,"02"+m).subarray(1,33);return function ct(h,m,b){return Vr.hash(h),void 0===b&&(b=new Uint8Array(h.outputLen)),De(h,(0,Ii.ZJ)(b),(0,Ii.ZJ)(m))}(ro,b,"nip44-v2")}function hh(h,m){const b=function ei(h,m,b,I=32){if(Vr.hash(h),Vr.number(I),I>255*h.outputLen)throw new Error("Length should be <= 255*HashLen");const P=Math.ceil(I/h.outputLen);void 0===b&&(b=Qt);const G=new Uint8Array(P*h.outputLen),ae=De.create(h,m),pe=ae._cloneInto(),ke=new Uint8Array(ae.outputLen);for(let it=0;itUc)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const m=new Uint8Array(2);return new DataView(m.buffer).setUint16(0,h,!1),m}(b),P=new Uint8Array(Vc(b)-b);return(0,Ii.Id)(I,m,P)}(h),pe=Zl(I,P,ae),ke=gm(G,pe,b);return qr.encode((0,Ii.Id)(new Uint8Array([2]),b,pe,ke))}function pd(h,m){const{nonce:b,ciphertext:I,mac:P}=function vm(h){if("string"!=typeof h)throw new Error("payload must be a valid string");const m=h.length;if(m<132||m>87472)throw new Error("invalid payload length: "+m);if("#"===h[0])throw new Error("unknown encryption version");let b;try{b=qr.decode(h)}catch(G){throw new Error("invalid base64: "+G.message)}const I=b.length;if(I<99||I>65603)throw new Error("invalid data length: "+I);const P=b[0];if(2!==P)throw new Error("unknown encryption version "+P);return{nonce:b.subarray(1,33),ciphertext:b.subarray(33,-32),mac:b.subarray(-32)}}(h),{chacha_key:G,chacha_nonce:ae,hmac_key:pe}=hh(m,b);if(!as(gm(pe,I,b),P))throw new Error("invalid MAC");return function fh(h){const m=new DataView(h.buffer).getUint16(0),b=h.subarray(2,2+m);if(mUc||b.length!==m||h.length!==2+Vc(m))throw new Error("invalid padding");return Fa.decode(b)}(Zl(G,ae,I))}var Hc,Qg={utils:{getConversationKey:cc,calcPaddedLen:Vc},encrypt:jf,decrypt:pd};function El(h){const{pathname:m,searchParams:b}=new URL(h),I=m,P=b.get("relay"),G=b.get("secret");if(!I||!P||!G)throw new Error("invalid connection string");return{pubkey:I,relay:P,secret:G}}function jc(h,m,b){return md.apply(this,arguments)}function md(){return(md=(0,y.A)(function*(h,m,b){const P=yield Tf(m,h,JSON.stringify({method:"pay_invoice",params:{invoice:b}})),G={kind:hf,created_at:Math.round(Date.now()/1e3),content:P,tags:[["p",h]]};return Ba(G,m)})).apply(this,arguments)}Zi({},{makeNwcRequestEvent:()=>jc,parseConnectionString:()=>El}),Zi({},{getZapEndpoint:()=>_m,makeZapReceipt:()=>Gc,makeZapRequest:()=>$f,useFetchImplementation:()=>$c,validateZapRequest:()=>Wc});try{Hc=fetch}catch{}function $c(h){Hc=h}function _m(h){return zc.apply(this,arguments)}function zc(){return(zc=(0,y.A)(function*(h){try{let m="",{lud06:b,lud16:I}=JSON.parse(h.content);if(b){let{words:ae}=z.decode(b,1e3),pe=z.fromWords(ae);m=Fa.decode(pe)}else{if(!I)return null;{let[ae,pe]=I.split("@");m=new URL(`/.well-known/lnurlp/${ae}`,`https://${pe}`).toString()}}let G=yield(yield Hc(m)).json();if(G.allowsNostr&&G.nostrPubkey)return G.callback}catch{}return null})).apply(this,arguments)}function $f({profile:h,event:m,amount:b,relays:I,comment:P=""}){if(!b)throw new Error("amount not given");if(!h)throw new Error("profile not given");let G={kind:9734,created_at:Math.round(Date.now()/1e3),content:P,tags:[["p",h],["amount",b.toString()],["relays",...I]]};return m&&G.tags.push(["e",m]),G}function Wc(h){let m;try{m=JSON.parse(h)}catch{return"Invalid zap request JSON."}if(!xa(m))return"Zap request is not a valid Nostr event.";if(!vl(m))return"Invalid signature on zap request.";let b=m.tags.find(([G,ae])=>"p"===G&&ae);if(!b)return"Zap request doesn't have a 'p' tag.";if(!b[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let I=m.tags.find(([G,ae])=>"e"===G&&ae);return I&&!I[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":m.tags.find(([G,ae])=>"relays"===G&&ae)?null:"Zap request doesn't have a 'relays' tag."}function Gc({zapRequest:h,preimage:m,bolt11:b,paidAt:I}){let P=JSON.parse(h),G=P.tags.filter(([pe])=>"e"===pe||"p"===pe||"a"===pe),ae={kind:9735,created_at:Math.round(I.getTime()/1e3),content:"",tags:[...G,["P",P.pubkey],["bolt11",b],["description",h]]};return m&&ae.tags.push(["preimage",m]),ae}Zi({},{createRumor:()=>Wf,createSeal:()=>ks,createWrap:()=>rl,unwrapEvent:()=>Kc,wrapEvent:()=>Gf});var zf=()=>Math.round(Date.now()/1e3),mh=()=>Math.round(zf()-172800*Math.random()),gh=(h,m)=>cc(h,m),vh=(h,m,b)=>jf(JSON.stringify(h),gh(m,b)),fu=(h,m)=>JSON.parse(pd(h.content,gh(m,h.pubkey)));function Wf(h,m){const b={created_at:zf(),content:"",tags:[],...h,pubkey:Is(m)};return b.id=vr(b),b}function ks(h,m,b){return Ba({kind:Xi,content:vh(h,m,b),created_at:mh(),tags:[]},m)}function rl(h,m){const b=Cc();return Ba({kind:Ol,content:vh(h,b,m),created_at:mh(),tags:[["p",m]]},b)}function Gf(h,m,b){return rl(ks(Wf(h,m),m,b),b)}function Kc(h,m){const b=fu(h,m);return fu(b,m)}Zi({},{getToken:()=>fs,hashPayload:()=>uc,unpackEventFromToken:()=>vd,validateEvent:()=>Eh,validateEventKind:()=>bh,validateEventMethodTag:()=>Ll,validateEventPayloadTag:()=>Yf,validateEventTimestamp:()=>Xf,validateEventUrlTag:()=>wh,validateToken:()=>_h});var Kf="Nostr ";function fs(h,m,b){return ol.apply(this,arguments)}function ol(){return(ol=(0,y.A)(function*(h,m,b,I=!1,P){const G={kind:Yu,tags:[["u",h],["method",m]],created_at:Math.round((new Date).getTime()/1e3),content:""};P&&G.tags.push(["payload",uc(P)]);const ae=yield b(G);return(I?Kf:"")+qr.encode(Rs.encode(JSON.stringify(ae)))})).apply(this,arguments)}function _h(h,m,b){return yh.apply(this,arguments)}function yh(){return(yh=(0,y.A)(function*(h,m,b){const I=yield vd(h).catch(G=>{throw G});return yield Eh(I,m,b).catch(G=>{throw G})})).apply(this,arguments)}function vd(h){return _d.apply(this,arguments)}function _d(){return(_d=(0,y.A)(function*(h){if(!h)throw new Error("Missing token");h=h.replace(Kf,"");const m=Fa.decode(qr.decode(h));if(!m||0===m.length||!m.startsWith("{"))throw new Error("Invalid token");return JSON.parse(m)})).apply(this,arguments)}function Xf(h){return!!h.created_at&&Math.round((new Date).getTime()/1e3)-h.created_at<60}function bh(h){return h.kind===Yu}function wh(h,m){const b=h.tags.find(I=>"u"===I[0]);return!!b&&b.length>0&&b[1]===m}function Ll(h,m){const b=h.tags.find(I=>"method"===I[0]);return!!b&&b.length>0&&b[1].toLowerCase()===m.toLowerCase()}function uc(h){const m=ro(Rs.encode(JSON.stringify(h)));return(0,Ii.My)(m)}function Yf(h,m){const b=h.tags.find(P=>"payload"===P[0]);if(!b)return!1;const I=uc(m);return b.length>0&&b[1]===I}function Eh(h,m,b,I){return Ch.apply(this,arguments)}function Ch(){return(Ch=(0,y.A)(function*(h,m,b,I){if(!vl(h))throw new Error("Invalid nostr event, signature invalid");if(!bh(h))throw new Error("Invalid nostr event, kind invalid");if(!Xf(h))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!wh(h,m))throw new Error("Invalid nostr event, url tag invalid");if(!Ll(h,b))throw new Error("Invalid nostr event, method tag invalid");if(I&&"object"==typeof I&&Object.keys(I).length>0&&!Yf(h,I))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},8418:(tn,Re,v)=>{"use strict";v.d(Re,{In:()=>F,rV:()=>U});var F=3,U=4},6391:(tn,Re,v)=>{"use strict";v.d(Re,{Vw:()=>te,My:()=>F,Id:()=>Me,O8:()=>W,aT:()=>U,po:()=>Xe,Ow:()=>ee,ZJ:()=>Te,ld:()=>bt});const u="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,y=se=>se instanceof Uint8Array,W=se=>new DataView(se.buffer,se.byteOffset,se.byteLength),ee=(se,fe)=>se<<32-fe|se>>>fe;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const V=Array.from({length:256},(se,fe)=>fe.toString(16).padStart(2,"0"));function F(se){if(!y(se))throw new Error("Uint8Array expected");let fe="";for(let Le=0;Leet+It.length,0));let Le=0;return se.forEach(et=>{if(!y(et))throw new Error("Uint8Array expected");fe.set(et,Le),Le+=et.length}),fe}class te{clone(){return this._cloneInto()}}function bt(se){const fe=et=>se().update(Te(et)).digest(),Le=se();return fe.outputLen=Le.outputLen,fe.blockLen=Le.blockLen,fe.create=()=>se(),fe}function Xe(se=32){if(u&&"function"==typeof u.getRandomValues)return u.getRandomValues(new Uint8Array(se));throw new Error("crypto.getRandomValues must be defined")}},467:(tn,Re,v)=>{"use strict";function u(o,B,W,ee,re,V,F){try{var U=o[V](F),L=U.value}catch(he){return void W(he)}U.done?B(L):Promise.resolve(L).then(ee,re)}function y(o){return function(){var B=this,W=arguments;return new Promise(function(ee,re){var V=o.apply(B,W);function F(L){u(V,ee,re,F,U,"next",L)}function U(L){u(V,ee,re,F,U,"throw",L)}F(void 0)})}}v.d(Re,{A:()=>y})},1635:(tn,Re,v)=>{"use strict";function he(Ee,J,Se,gt){return new(Se||(Se=Promise))(function(Ze,je){function Lt(Oe){try{we(gt.next(Oe))}catch(me){je(me)}}function Mt(Oe){try{we(gt.throw(Oe))}catch(me){je(me)}}function we(Oe){Oe.done?Ze(Oe.value):function Ne(Ze){return Ze instanceof Se?Ze:new Se(function(je){je(Ze)})}(Oe.value).then(Lt,Mt)}we((gt=gt.apply(Ee,J||[])).next())})}function Ve(Ee){return this instanceof Ve?(this.v=Ee,this):new Ve(Ee)}function rt(Ee,J,Se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ne,gt=Se.apply(Ee,J||[]),Ze=[];return Ne=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Lt("next"),Lt("throw"),Lt("return",function je(Pe){return function(xt){return Promise.resolve(xt).then(Pe,me)}}),Ne[Symbol.asyncIterator]=function(){return this},Ne;function Lt(Pe,xt){gt[Pe]&&(Ne[Pe]=function(xe){return new Promise(function(ut,Rt){Ze.push([Pe,xe,ut,Rt])>1||Mt(Pe,xe)})},xt&&(Ne[Pe]=xt(Ne[Pe])))}function Mt(Pe,xt){try{!function we(Pe){Pe.value instanceof Ve?Promise.resolve(Pe.value.v).then(Oe,me):We(Ze[0][2],Pe)}(gt[Pe](xt))}catch(xe){We(Ze[0][3],xe)}}function Oe(Pe){Mt("next",Pe)}function me(Pe){Mt("throw",Pe)}function We(Pe,xt){Pe(xt),Ze.shift(),Ze.length&&Mt(Ze[0][0],Ze[0][1])}}function se(Ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,J=Ee[Symbol.asyncIterator];return J?J.call(Ee):(Ee=function Me(Ee){var J="function"==typeof Symbol&&Symbol.iterator,Se=J&&Ee[J],gt=0;if(Se)return Se.call(Ee);if(Ee&&"number"==typeof Ee.length)return{next:function(){return Ee&>>=Ee.length&&(Ee=void 0),{value:Ee&&Ee[gt++],done:!Ee}}};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ee),Se={},gt("next"),gt("throw"),gt("return"),Se[Symbol.asyncIterator]=function(){return this},Se);function gt(Ze){Se[Ze]=Ee[Ze]&&function(je){return new Promise(function(Lt,Mt){!function Ne(Ze,je,Lt,Mt){Promise.resolve(Mt).then(function(we){Ze({value:we,done:Lt})},je)}(Lt,Mt,(je=Ee[Ze](je)).done,je.value)})}}}v.d(Re,{AQ:()=>rt,N3:()=>Ve,sH:()=>he,xN:()=>se}),"function"==typeof SuppressedError&&SuppressedError}},tn=>{tn(tn.s=368)}]); \ No newline at end of file diff --git a/main.f89a6fddedd7073e.js b/main.f89a6fddedd7073e.js new file mode 100644 index 0000000..f89c8a5 --- /dev/null +++ b/main.f89a6fddedd7073e.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{1648:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>u.F});var u=v(5888)},5888:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>et});let u=(()=>{class It{static{this.standard="cubic-bezier(0.4, 0.0, 0.2, 1)"}static{this.deceleration="cubic-bezier(0.0, 0.0, 0.2, 1)"}static{this.acceleration="cubic-bezier(0.4, 0.0, 1, 1)"}static{this.sharp="cubic-bezier(0.4, 0.0, 0.6, 1)"}}return It})(),y=(()=>{class It{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return It})();var o=v(9969);const oe=(It,Et,Tt,nn,Fn=`${y.entering} ${u.deceleration}`,$n=`${y.exiting} ${u.acceleration}`)=>(0,o.hZ)(It,[(0,o.wk)("void",(0,o.iF)(Et)),(0,o.wk)("*",(0,o.iF)(Tt)),(0,o.kY)("void => false, * => false",[]),(0,o.kY)("void => *",(0,o.i0)(nn||Fn),{params:{timings:Fn}}),(0,o.kY)("* => void",(0,o.i0)(nn||$n),{params:{timings:$n}})]),et=[(0,o.hZ)("expandCollapse",[(0,o.wk)("void, collapsed",(0,o.iF)({height:"0"})),(0,o.wk)("*, expanded",(0,o.iF)("*")),(0,o.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,o.kY)("void <=> *, collapsed <=> expanded",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeIn",[(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInTop",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInBottom",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInLeft",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeInRight",[(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("fadeOut",[(0,o.wk)("*",(0,o.iF)({opacity:1})),(0,o.wk)("void",(0,o.iF)({opacity:0})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutTop",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutBottom",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutLeft",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("fadeOutRight",[(0,o.wk)("*",(0,o.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("shake",[(0,o.kY)("void => false",[]),(0,o.kY)("void => *, * => true",[(0,o.i0)("{{timings}}",(0,o.i7)([(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,o.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,o.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,o.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,o.hZ)("slideInTop",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInBottom",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInLeft",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideInRight",[(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.kY)("void => false",[]),(0,o.kY)("void => *",(0,o.i0)("{{timings}}"),{params:{timings:`${y.entering} ${u.deceleration}`}})]),(0,o.hZ)("slideOutTop",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, -100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutBottom",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(0, 100%, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutLeft",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),(0,o.hZ)("slideOutRight",[(0,o.wk)("*",(0,o.iF)({transform:"translate3d(0, 0, 0)"})),(0,o.wk)("void",(0,o.iF)({transform:"translate3d(100%, 0, 0)"})),(0,o.kY)("false => void",[]),(0,o.kY)("* => void",(0,o.i0)("{{timings}}"),{params:{timings:`${y.exiting} ${u.acceleration}`}})]),oe("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),oe("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},9097:(tn,Re,v)=>{"use strict";v.d(Re,{t:()=>y});const y=new(v(4438).nKC)("ANGOR_APP_CONFIG")},881:(tn,Re,v)=>{"use strict";v.d(Re,{P:()=>W});var u=v(9097),y=v(4438),o=v(2401),B=v(4412);let W=(()=>{class ee{constructor(){this._defaultConfig=(0,y.WQX)(u.t),this._configSubject=new B.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(V){const F=(0,o.A)({},this._configSubject.getValue(),V);this._configSubject.next(F)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275prov=y.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})()},9979:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>te});var u=v(177),y=v(4438),o=v(8834),B=v(5351),W=v(9213);const ee=(ve,tt,bt,Ve,rt,Xe,oe,he)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":ve,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":tt,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":bt,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Ve,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":rt,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":Xe,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":oe,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":he});function re(ve,tt){1&ve&&(y.j41(0,"div",1)(1,"button",6),y.nrm(2,"mat-icon",7),y.k0s()()),2&ve&&(y.R7$(),y.Y8G("matDialogClose",void 0),y.R7$(),y.Y8G("svgIcon","heroicons_outline:x-mark"))}function V(ve,tt){if(1&ve&&(y.j41(0,"div",3),y.nrm(1,"mat-icon",8),y.k0s()),2&ve){const bt=y.XpG();y.Y8G("ngClass",y.lV(2,ee,"primary"===bt.data.icon.color,"accent"===bt.data.icon.color,"warn"===bt.data.icon.color,"basic"===bt.data.icon.color,"info"===bt.data.icon.color,"success"===bt.data.icon.color,"warning"===bt.data.icon.color,"error"===bt.data.icon.color)),y.R7$(),y.Y8G("svgIcon",bt.data.icon.name)}}function F(ve,tt){if(1&ve&&y.nrm(0,"div",9),2&ve){const bt=y.XpG(2);y.Y8G("innerHTML",bt.data.title,y.npT)}}function U(ve,tt){if(1&ve&&y.nrm(0,"div",10),2&ve){const bt=y.XpG(2);y.Y8G("innerHTML",bt.data.message,y.npT)}}function L(ve,tt){if(1&ve&&(y.j41(0,"div",4),y.DNE(1,F,1,1,"div",9)(2,U,1,1,"div",10),y.k0s()),2&ve){const bt=y.XpG();y.R7$(),y.vxM(bt.data.title?1:-1),y.R7$(),y.vxM(bt.data.message?2:-1)}}function fe(ve,tt){if(1&ve&&(y.j41(0,"button",11),y.EFF(1),y.k0s()),2&ve){const bt=y.XpG(2);y.Y8G("matDialogClose","cancelled"),y.R7$(),y.SpI(" ",bt.data.actions.cancel.label," ")}}function de(ve,tt){if(1&ve&&(y.j41(0,"button",12),y.EFF(1),y.k0s()),2&ve){const bt=y.XpG(2);y.Y8G("color",bt.data.actions.confirm.color)("matDialogClose","confirmed"),y.R7$(),y.SpI(" ",bt.data.actions.confirm.label," ")}}function be(ve,tt){if(1&ve&&(y.j41(0,"div",5),y.DNE(1,fe,2,2,"button",11)(2,de,2,3,"button",12),y.k0s()),2&ve){const bt=y.XpG();y.R7$(),y.vxM(bt.data.actions.cancel.show?1:-1),y.R7$(),y.vxM(bt.data.actions.confirm.show?2:-1)}}let Te=(()=>{class ve{constructor(){this.data=(0,y.WQX)(B.Vh)}static{this.\u0275fac=function(Ve){return new(Ve||ve)}}static{this.\u0275cmp=y.VBU({type:ve,selectors:[["angor-confirmation-dialog"]],standalone:!0,features:[y.aNF],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(Ve,rt){1&Ve&&(y.j41(0,"div",0),y.DNE(1,re,3,2,"div",1),y.j41(2,"div",2),y.DNE(3,V,2,11,"div",3)(4,L,3,2,"div",4),y.k0s(),y.DNE(5,be,3,2,"div",5),y.k0s()),2&Ve&&(y.R7$(),y.vxM(rt.data.dismissible?1:-1),y.R7$(2),y.vxM(rt.data.icon.show?3:-1),y.R7$(),y.vxM(rt.data.title||rt.data.message?4:-1),y.R7$(),y.vxM(rt.data.actions.confirm.show||rt.data.actions.cancel.show?5:-1))},dependencies:[o.Hl,o.$z,o.iY,B.hM,B.tx,W.m_,W.An,u.YU],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}\n"],encapsulation:2})}}return ve})();var Me=v(2401);let te=(()=>{class ve{constructor(){this._matDialog=(0,y.WQX)(B.bZ),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(bt={}){const Ve=(0,Me.A)({},this._defaultConfig,bt);return this._matDialog.open(Te,{autoFocus:!1,disableClose:!Ve.dismissible,data:Ve,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Ve){return new(Ve||ve)}}static{this.\u0275prov=y.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"})}}return ve})()},4977:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>V});var u=v(881),y=v(9327),o=v(4438),B=v(7680),W=v(2771),ee=v(6354),re=v(5558);let V=(()=>{class F{constructor(){this._breakpointObserver=(0,o.WQX)(y.QP),this._angorConfigService=(0,o.WQX)(u.P),this._onMediaChange=new W.m(1),this._angorConfigService.config$.pipe((0,ee.T)(L=>(0,B.A)(Object.entries(L.screens).map(([fe,de])=>[fe,`(min-width: ${de})`]))),(0,re.n)(L=>this._breakpointObserver.observe(Object.values(L)).pipe((0,ee.T)(fe=>{const de=[],be={},Te=Object.entries(fe.breakpoints).filter(([Me,te])=>te)??[];for(const[Me]of Te){const te=Object.entries(L).find(([ve,tt])=>tt===Me)[0];te&&(de.push(te),be[te]=Me)}this._onMediaChange.next({matchingAliases:de,matchingQueries:be})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(L){return this._breakpointObserver.observe(L)}static{this.\u0275fac=function(fe){return new(fe||F)}}static{this.\u0275prov=o.jDH({token:F,factory:F.\u0275fac,providedIn:"root"})}}return F})()},7209:(tn,Re,v)=>{"use strict";v.d(Re,{Q:()=>y});var u=v(4438);let y=(()=>{class o{get exactMatchOptions(){return{paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"}}get subsetMatchOptions(){return{paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"}}randomId(W=10){let re="";for(let V=0;V<10;V++)re+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return re}static{this.\u0275fac=function(ee){return new(ee||o)}}static{this.\u0275prov=u.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()},6231:(tn,Re,v)=>{"use strict";v.d(Re,{b:()=>W});var u=v(467),y=v(719),o=v(4412),B=v(4438);let W=(()=>{class ee{constructor(){this.pool=new y.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new o.t(null),this.relaysSubject=new o.t([]),this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.setupVisibilityHandling(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const V=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return V.length>0?V.map(U=>({...U,connected:!1,retries:0,retryTimeout:null,ws:void 0})):[{url:"wss://relay.primal.net",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.damus.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"},{url:"wss://relay2.angor.io",connected:!1,retries:0,retryTimeout:null,accessType:"read-write"}]}saveRelaysToLocalStorage(){const V=this.relays.map(({url:F,accessType:U,connected:L,retries:fe,retryTimeout:de})=>({url:F,accessType:U,connected:L,retries:fe,retryTimeout:de}));localStorage.setItem("nostrRelays",JSON.stringify(V)),this.relaysSubject.next(this.relays)}connectToRelay(V){V.connected||(V.ws=new WebSocket(V.url),V.ws.onopen=()=>{V.connected=!0,V.retries=0,clearTimeout(V.retryTimeout),this.saveRelaysToLocalStorage()},V.ws.onerror=()=>this.handleRelayError(V),V.ws.onclose=()=>{V.connected=!1,this.handleRelayError(V)},V.ws.onmessage=({data:F})=>{try{const U=JSON.parse("string"==typeof F?F:F.toString("utf-8"));this.eventSubject.next(U)}catch(U){console.error("Error parsing WebSocket message:",U)}})}handleRelayError(V){V.retries>=this.maxRetries?console.error(`Max retries reached for relay: ${V.url}. No further attempts will be made.`):(V.retries++,V.retryTimeout=setTimeout(()=>this.connectToRelay(V),this.retryDelay*V.retries))}connectToRelays(){this.relays.forEach(V=>!V.connected&&this.connectToRelay(V))}ensureConnectedRelays(){var V=this;return(0,u.A)(function*(){return V.connectToRelays(),new Promise(F=>{const U=()=>{V.getConnectedRelays().length>0?F():setTimeout(U,1e3)};U()})})()}setupVisibilityHandling(){document.addEventListener("visibilitychange",()=>{"visible"===document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(V=>V.ws?.close())})}getConnectedRelays(){return this.relays.filter(V=>V.connected).map(V=>V.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(V){var F=this;return(0,u.A)(function*(){const U=F.relays.filter(L=>["write","read-write"].includes(L.accessType)&&L.connected);if(!U.length)throw new Error("No connected write relays available");try{return yield Promise.any(U.map(L=>F.pool.publish([L.url],V))),F.eventSubject.next(V),V}catch(L){throw console.error("Failed to publish event to relays:",L),L}})()}addRelay(V,F="read-write"){if(!this.relays.some(U=>U.url===V)){const U={url:V,connected:!1,retries:0,retryTimeout:null,accessType:F};this.relays.push(U),this.connectToRelay(U),this.saveRelaysToLocalStorage()}}removeRelay(V){this.relays=this.relays.filter(F=>F.url!==V),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const V=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays=this.relays.filter(F=>V.includes(F.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(V,F){const U=this.relays.find(L=>L.url===V);U&&(U.accessType=F,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275prov=B.jDH({token:ee,factory:ee.\u0275fac,providedIn:"root"})}}return ee})()},4930:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Ve});var u=v(467),y=v(5766),o=v(7292),B=v(3838),W=v(719),ee=v(6391),V=(v(5693),v(9673)),F=v(9608),te=v(4438),ve=v(3813);let tt=(()=>{class rt{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey(oe){var he=this;return(0,u.A)(function*(){return window.crypto.subtle.importKey("raw",he.encoder.encode(oe),"PBKDF2",!1,["deriveKey"])})()}deriveKey(oe,he,Le){return(0,u.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:he,iterations:25e4,hash:"SHA-256"},oe,{name:"AES-GCM",length:256},!1,Le)})()}encryptData(oe,he){var Le=this;return(0,u.A)(function*(){try{const et=window.crypto.getRandomValues(new Uint8Array(16)),It=window.crypto.getRandomValues(new Uint8Array(12)),Et=yield Le.getPasswordKey(he),Tt=yield Le.deriveKey(Et,et,["encrypt"]),nn=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:It},Tt,Le.encoder.encode(oe))),Fn=new Uint8Array(et.length+It.length+nn.length);return Fn.set(et,0),Fn.set(It,et.length),Fn.set(nn,et.length+It.length),ve.K3.encode(Fn)}catch(et){throw console.error("Encryption failed:",et),new Error("Failed to encrypt data.")}})()}decryptData(oe,he){var Le=this;return(0,u.A)(function*(){try{const et=ve.K3.decode(oe),It=et.slice(0,16),Et=et.slice(16,28),Tt=et.slice(28),nn=yield Le.getPasswordKey(he),Fn=yield Le.deriveKey(nn,It,["decrypt"]),$n=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:Et},Fn,Tt);return Le.decoder.decode($n)}catch(et){throw console.error("Decryption failed:",et),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(he){return new(he||rt)}}static{this.\u0275prov=te.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})();var bt=v(5351);let Ve=(()=>{class rt{constructor(oe,he){this.securityService=oe,this.dialog=he,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword(oe,he){const Le=Date.now()+60*he*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:oe,expirationTime:Le}))}getPassword(){const oe=sessionStorage.getItem(this.storageKey);if(!oe)return null;const{password:he,expirationTime:Le}=JSON.parse(oe);return Date.now()>Le?(this.clearPassword(),null):he}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword(oe,he,Le){var et=this;return(0,u.A)(function*(){try{const It=yield et.getSecretKey(oe);if(!It)throw new Error("Incorrect current password.");yield et.setSecretKey(It,he);const Et=yield et.getNsec(oe);return Et&&(yield et.setNsec(Et,he)),et.clearPassword(),Le&&et.savePassword(he,60),!0}catch(It){return console.error("Failed to change password: ",It),!1}})()}getUsername(oe){return oe.startsWith("npub")&&(oe=W.Qe.decode(oe).data.toString()),`@${localStorage.getItem(`${oe}`)||W.Qe.npubEncode(oe)}`}npub(){let oe=this.getPublicKey();return W.Qe.npubEncode(oe)}requestPassword(){var oe=this;return(0,u.A)(function*(){return oe.dialog.open(o.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec(oe){var he=this;return(0,u.A)(function*(){if(he.usingSecretKey()){let Le=yield he.getSecretKey(oe);const et=Uint8Array.from(B.hp.from(Le,"hex"));return W.Qe.nsecEncode(et)}return""})()}pubkey(oe){return W.Qe.decode(oe).data.toString()}setPublicKey(oe){const he=W.Qe.npubEncode(oe);window.localStorage.setItem(this.localStoragePublicKeyName,oe),window.localStorage.setItem(this.localStorageNpubName,he)}getPublicKey(){return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub(oe){localStorage.setItem(this.localStorageNpubName,oe)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey(oe,he=""){var Le=this;return(0,u.A)(function*(){if(""===he)localStorage.setItem(Le.localStorageSecretKeyName,oe),localStorage.setItem("usePassword","false");else{const et=yield Le.securityService.encryptData(oe,he);localStorage.setItem(Le.localStorageSecretKeyName,et),localStorage.setItem("usePassword","true")}})()}getSecretKey(oe=""){var he=this;return(0,u.A)(function*(){const Le=localStorage.getItem(he.localStorageSecretKeyName),et="true"===localStorage.getItem("usePassword");return Le?et?yield he.securityService.decryptData(Le,oe):Le:null})()}getDecryptedSecretKey(){var oe=this;return(0,u.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return oe.getSecretKey();const Le=oe.getPassword();if(Le)return yield oe.getSecretKey(Le);const et=yield oe.requestPassword();if(et?.password){const It=yield oe.getSecretKey(et.password);return 0!==et.duration&&oe.savePassword(et.password,et.duration),It}return console.error("Password not provided"),null}catch(he){return console.error("Error decrypting private key:",he),null}})()}setNsec(oe,he=""){var Le=this;return(0,u.A)(function*(){if(""===he)localStorage.setItem(Le.localStorageNsecName,oe),localStorage.setItem("usePassword","false");else{const et=yield Le.securityService.encryptData(oe,he);localStorage.setItem(Le.localStorageNsecName,et),localStorage.setItem("usePassword","true")}})()}getNsec(oe=""){var he=this;return(0,u.A)(function*(){const Le=localStorage.getItem(he.localStorageNsecName),et="true"===localStorage.getItem("usePassword");return Le?et?yield he.securityService.decryptData(Le,oe):Le:null})()}setPublicKeyFromExtension(oe){this.setPublicKey(oe)}handleLoginWithKey(oe,he=""){let Le,et,It,Et;try{if(oe.startsWith(this.localStorageNsecName)){const nn=W.Qe.decode(oe);if(nn.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Le=B.hp.from(nn.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test(oe))throw new Error("Invalid key format. Must be either nsec or hex.");Le=oe}const Tt=new Uint8Array(B.hp.from(Le,"hex"));return et=(0,W.lG)(Tt),Et=W.Qe.npubEncode(et),It=W.Qe.nsecEncode(Tt),this.setSecretKey(Le,he),this.setNsec(Et,he),this.setPublicKey(et),this.setNpub(Et),!0}catch(Tt){return console.error("Error during key handling: ",Tt),!1}}handleLoginWithMenemonic(oe,he="",Le){try{const It=function L(rt,Xe,oe=0){let Le=F.c.fromMasterSeed((0,V.kw)(rt,Xe)).derive(`m/44'/1237'/${oe}'/0/0`).privateKey;if(!Le)throw new Error("could not derive private key");return(0,ee.My)(Le)}(oe,he,0),Et=Uint8Array.from(B.hp.from(It,"hex")),Tt=(0,W.lG)(Et),nn=W.Qe.npubEncode(Tt),Fn=W.Qe.nsecEncode(Et);return this.setSecretKey(It,Le),this.setNsec(nn,Le),this.setPublicKey(Tt),this.setNpub(nn),window.localStorage.setItem(this.localStorageNsecName,Fn),!0}catch(et){return console.error("Error during login with mnemonic:",et),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName)}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys(oe){try{const he=(0,W.Bq)(),Le=B.hp.from(he).toString("hex"),et=(0,W.lG)(he),It=W.Qe.npubEncode(et),Et=W.Qe.nsecEncode(he);return this.setSecretKey(Le,oe),this.setNsec(It,oe),this.setPublicKey(et),this.setNpub(It),{secretKey:Le,pubkey:et,npub:It,nsec:Et}}catch(he){return console.error("Error during key generation:",he),null}}handleLoginWithExtension(){var oe=this;return(0,u.A)(function*(){const he=globalThis;if(!he.nostr)return!1;try{const Le=yield he.nostr.getPublicKey();if(!Le)throw new Error("Public key not available from Nostr extension.");return oe.setPublicKeyFromExtension(Le),!0}catch(Le){return console.error("Failed to connect to Nostr extension:",Le),!1}})()}encryptMessage(oe,he,Le){return(0,u.A)(function*(){console.log(Le);try{return yield W.sh.encrypt(oe,he,Le)}catch(et){throw console.error("Error encrypting message:",et),et}})()}encryptMessageWithExtension(oe,he){return(0,u.A)(function*(){return yield globalThis.nostr.nip04.encrypt(he,oe)})()}decryptMessageWithExtension(oe,he){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&"function"==typeof Le.nostr.nip04?.decrypt)try{return yield Le.nostr.nip04.decrypt(oe,he)}catch(et){return console.error("Decryption failed:",et),"*Failed to decrypt content: "+et.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage(oe,he,Le){return(0,u.A)(function*(){try{if(!oe||!he||!Le)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const et=yield W.sh.decrypt(oe,he,Le);if(!et)throw new Error("Decryption returned an empty message.");return et}catch(et){throw console.error("Decryption failed:",et.message),et}})()}getUnsignedEvent(oe,he,Le){return{kind:oe,pubkey:this.getPublicKey(),tags:he,content:Le,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent(oe,he){const Le=(0,y.aT)(he);return(0,W.pC)(oe,Le)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags(oe){let he=[];oe.forEach(Le=>{he.push(Le[1])}),this.setMuteList(he)}setMuteList(oe){if(0===oe.length)localStorage.setItem("muteList","");else{let he=Array.from(new Set(oe));localStorage.setItem("muteList",he.filter(Le=>Le).join(","))}}signEventWithExtension(oe){return(0,u.A)(function*(){const he=globalThis;if(he.nostr)return yield he.nostr.signEvent(oe);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension(oe,he){return(0,u.A)(function*(){const Le=globalThis;if(Le.nostr&&Le.nostr.nip04?.encrypt)return yield Le.nostr.nip04.encrypt(oe,he);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var oe=this;return(0,u.A)(function*(){const he=globalThis;if(he.nostr&&he.nostr.getPublicKey)try{return!localStorage.getItem(oe.localStorageSecretKeyName)}catch(Le){return console.error("Failed to check Nostr extension:",Le),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey(oe){try{return W.Qe.npubEncode(oe)}catch(he){return console.error("Error converting hex to npub:",he),""}}getNsecFromSeckey(oe){try{const he=Uint8Array.from(B.hp.from(oe,"hex"));return W.Qe.nsecEncode(he)}catch(he){return console.error("Error converting hex to nsec:",he),""}}static{this.\u0275fac=function(he){return new(he||rt)(te.KVO(tt),te.KVO(bt.bZ))}}static{this.\u0275prov=te.jDH({token:rt,factory:rt.\u0275fac,providedIn:"root"})}}return rt})()},2083:(tn,Re,v)=>{"use strict";v.d(Re,{d:()=>ee});var u=v(467),y=v(8418),o=v(4438),B=v(5645),W=v(7291);let ee=(()=>{class re{constructor(F,U){this.subscriptionService=F,this.storageService=U,this.isProfileLoaded=!1}loadUserProfile(F){var U=this;return(0,u.A)(function*(){console.log(`Loading user profile for pubkey: ${F}`),U.isProfileLoaded?console.log("Profile already loaded, skipping."):(yield U.subscribeToUserProfile(F),yield U.subscribeToUserContacts(F),yield U.subscribeToUserChats(F),yield U.subscribeToUserPosts(F),U.isProfileLoaded=!0)})()}subscribeToUserProfile(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to user profile for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("users"),fe={kinds:[0],authors:[F],limit:1};L&&(fe.since=parseInt(L,10)),U.subscriptionService.addSubscriptions([fe],de=>{const be=U.parseMetadataEvent(de);U.storageService.saveProfile(F,be)})})()}subscribeToUserContacts(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to contacts for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("contacts"),fe=[{kinds:[y.In],authors:[F]},{kinds:[y.In],"#p":[F]}];if(L){const de=parseInt(L,10);fe.forEach(be=>be.since=de)}U.subscriptionService.addSubscriptions(fe,de=>{U.storageService.saveContacts(F,[{id:de.id,pubkey:de.pubkey,created_at:de.created_at,tags:de.tags,isFollower:de.pubkey===F}])})})()}subscribeToUserChats(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to chats for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("chats"),fe=[{kinds:[y.rV],authors:[F],limit:300},{kinds:[y.rV],"#p":[F],limit:300}];if(L){const de=parseInt(L,10);fe.forEach(be=>be.since=de)}else U.storageService.removeAllChats();U.subscriptionService.addSubscriptions(fe,de=>{const be=U.parseChatEvent(de);U.storageService.saveChatEvent(be)})})()}subscribeToUserPosts(F){var U=this;return(0,u.A)(function*(){console.log(`Subscribing to posts (event type 1) for pubkey: ${F}`);const L=yield U.storageService.getLastUpdateDate("posts"),fe={kinds:[1],authors:[F],limit:100};L&&(fe.since=parseInt(L,10)),U.subscriptionService.addSubscriptions([fe],de=>{U.storageService.savePostForPubKey(de)})})()}parseMetadataEvent(F){try{return JSON.parse(F.content)}catch(U){return console.error("Error parsing metadata event:",U),null}}parseChatEvent(F){try{const U=F.content.split("?iv=");return{id:F.id,kind:F.kind,pubkey:F.pubkey,created_at:F.created_at,tags:F.tags,content:U[0],iv:U[1],IsRead:!1}}catch(U){return console.error("Error parsing chat event:",U),null}}static{this.\u0275fac=function(U){return new(U||re)(o.KVO(B.n),o.KVO(W.n))}}static{this.\u0275prov=o.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},7291:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>ee});var u=v(467),y=v(119),o=v.n(y),B=v(4412),W=v(4438);let ee=(()=>{class re{constructor(){this.profileSubject=new B.t(null),this.projectsSubject=new B.t([]),this.projectStatsSubject=new B.t({}),this.chatEventsSubject=new B.t([]),this.unreadChatCountSubject=new B.t(0),this.contactsSubject=new B.t({pubKey:"",contacts:[]}),this.postsSubject=new B.t(null),this.myLikesSubject=new B.t([]),this.notificationsSubject=new B.t([]),this.contactStatsSubject=new B.t({totalContacts:0,followersCount:0,followingCount:0}),this.contactStatsMap={},this.profileStore=this.createStore("profiles"),this.updateHistoryStore=this.createStore("updateHistory"),this.contactsStore=this.createStore("contacts"),this.chatsStore=this.createStore("chats"),this.postsStore=this.createStore("posts"),this.myLikesStore=this.createStore("myLikes"),this.notificationsStore=this.createStore("notifications"),this.projectsStore=this.createStore("projects"),this.projectStatsStore=this.createStore("projectStats"),this.loadAllProjectsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllPostsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.loadContactStatsFromDB(),this.calculateAndStoreAllContactStats()}createStore(F){return o().createInstance({driver:o().INDEXEDDB,name:"angor-hub",version:1,storeName:F})}get profile$(){return this.profileSubject.asObservable()}get projects$(){return this.projectsSubject.asObservable()}get projectStats$(){return this.projectStatsSubject.asObservable()}get chatEvents$(){return this.chatEventsSubject.asObservable()}get unreadChatCount$(){return this.unreadChatCountSubject.asObservable()}get contacts$(){return this.contactsSubject.asObservable()}get posts$(){return this.postsSubject.asObservable()}get contactStats$(){return this.contactStatsSubject.asObservable()}get myLikes$(){return this.myLikesSubject.asObservable()}get notifications$(){return this.notificationsSubject.asObservable()}saveContacts(F,U){var L=this;return(0,u.A)(function*(){try{const fe=[];for(const de of U){const be=`${F}:${de.id}`;yield L.contactsStore.setItem(be,de),fe.push(de)}L.contactsSubject.next({pubKey:F,contacts:fe}),yield L.calculateAndStoreAllContactStats(),yield L.setUpdateHistory("contacts")}catch(fe){console.error("Error saving contacts:",fe)}})()}calculateAndStoreAllContactStats(){var F=this;return(0,u.A)(function*(){try{const U={};yield F.contactsStore.iterate((L,fe)=>{const[de]=fe.split(":");U[de]||(U[de]={totalContacts:0,followersCount:0,followingCount:0}),U[de].totalContacts++,L.isFollower?U[de].followersCount++:U[de].followingCount++});for(const L in U)F.contactStatsMap[L]||(F.contactStatsMap[L]=new B.t({pubKey:L,totalContacts:0,followersCount:0,followingCount:0})),F.contactStatsMap[L].next({pubKey:L,totalContacts:U[L].totalContacts,followersCount:U[L].followersCount,followingCount:U[L].followingCount})}catch(U){console.error("Error calculating and storing contact stats:",U)}})()}getContactStats$(F){return this.contactStatsMap[F]||(this.contactStatsMap[F]=new B.t({pubKey:F,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[F].asObservable()}getAllContactsPaginated(F,U,L){var fe=this;return(0,u.A)(function*(){try{const de=[];yield fe.contactsStore.iterate((te,ve)=>{const[tt]=ve.split(":");tt===F&&de.push(te)});const be=de.length,Te=(U-1)*L;return{contacts:de.slice(Te,Te+L),totalCount:be}}catch(de){return console.error("Error retrieving paginated contacts for pubKey:",de),{contacts:[],totalCount:0}}})()}getAllContacts(F=""){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.contactsStore.iterate((fe,de)=>{const[be,Te]=de.split(":");(""===F||be===F)&&L.push({pubKey:be,contact:fe})}),L}catch(L){return console.error("Error retrieving contacts:",L),[]}})()}getContactStats(F){var U=this;return(0,u.A)(function*(){try{let L=0,fe=0,de=0;return yield U.contactsStore.iterate((be,Te)=>{const[Me,te]=Te.split(":");Me===F&&(L++,be.isFollower?fe++:de++)}),{totalContacts:L,followersCount:fe,followingCount:de}}catch(L){return console.error("Error retrieving contact stats for pubKey:",L),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(F){var U=this;return(0,u.A)(function*(){try{const L=[];yield U.contactsStore.iterate((fe,de)=>{const[be]=de.split(":");be===F&&L.push(de)});for(const fe of L)yield U.contactsStore.removeItem(fe);yield U.contactsStore.clear(),U.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),U.contactsSubject.next({pubKey:F,contacts:[]}),yield U.setUpdateHistory("contacts")}catch(L){console.error("Error removing all contacts for pubKey:",L)}})()}saveProfile(F,U){var L=this;return(0,u.A)(function*(){try{if(!F||!U)return void console.error("Invalid pubKey or metadata:",F,U);U.pubKey=F,yield L.profileStore.setItem(F,U),L.profileSubject.next({pubKey:F,metadata:U}),yield L.setUpdateHistory("profiles")}catch(fe){console.error("Error saving profile",fe)}})()}getProfile(F){var U=this;return(0,u.A)(function*(){try{return(yield U.profileStore.getItem(F))||null}catch(L){return console.error("Error retrieving profile metadata:",L),null}})()}getAllProfiles(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.profileStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all Profile:",U),[]}})()}searchProfile(F){var U=this;return(0,u.A)(function*(){try{const L=[],fe=F.toLowerCase();return yield U.profileStore.iterate((de,be)=>{JSON.stringify(de).toLowerCase().includes(fe)&&L.push({pubKey:be,profile:de})}),L}catch(L){return console.error("Error searching profiles by metadata:",L),[]}})()}getLastUpdateDate(F){var U=this;return(0,u.A)(function*(){try{return(yield U.updateHistoryStore.getItem(F))||null}catch(L){return console.error("Error retrieving last update date:",L),null}})()}saveProject(F){var U=this;return(0,u.A)(function*(){try{yield U.projectsStore.setItem(F.projectIdentifier,F);const L=yield U.getAllProjects();U.projectsSubject.next(L),yield U.setUpdateHistory("projects")}catch(L){console.error("Error saving project:",L)}})()}getAllProjects(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.projectsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all projects:",U),[]}})()}getProjectStats(F){var U=this;return(0,u.A)(function*(){try{return(yield U.projectStatsStore.getItem(F))||null}catch(L){return console.error("Error retrieving project stats:",L),null}})()}saveProjectStats(F,U){var L=this;return(0,u.A)(function*(){try{yield L.projectStatsStore.setItem(F,U);const fe=yield L.getAllProjectStats();L.projectStatsSubject.next(fe),yield L.setUpdateHistory("projectStats")}catch(fe){console.error("Error saving project stats:",fe)}})()}getAllProjectStats(){var F=this;return(0,u.A)(function*(){try{const U={};return yield F.projectStatsStore.iterate((L,fe)=>{U[fe]=L}),U}catch(U){return console.error("Error retrieving all project stats:",U),{}}})()}savePostForPubKey(F){var U=this;return(0,u.A)(function*(){try{yield U.postsStore.setItem(F.id,F),yield U.setUpdateHistory("posts"),U.postsSubject.next(F)}catch(L){console.error("Error saving event type 1 and sending it to clients:",L)}})()}getPostsByPubKey(F){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.postsStore.iterate(fe=>{fe.pubkey===F&&1===fe.kind&&L.push(fe)}),L}catch(L){return console.error("Error retrieving events for pubKey:",L),[]}})()}getAllPostsForAllPubKeys(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.postsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all events:",U),[]}})()}saveLike(F){var U=this;return(0,u.A)(function*(){try{yield U.myLikesStore.setItem(F.id,F);const L=yield U.getAllMyLikes();U.myLikesSubject.next(L),yield U.setUpdateHistory("myLikes")}catch(L){console.error("Error saving like:",L)}})()}getAllMyLikes(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.myLikesStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all likes:",U),[]}})()}saveNotification(F){var U=this;return(0,u.A)(function*(){try{yield U.notificationsStore.setItem(F.id,F);const L=yield U.getAllNotifications();U.notificationsSubject.next(L),yield U.setUpdateHistory("notifications")}catch(L){console.error("Error saving notification:",L)}})()}getAllNotifications(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.notificationsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all notifications:",U),[]}})()}saveChatEvent(F){var U=this;return(0,u.A)(function*(){try{yield U.chatsStore.setItem(F.id,F),yield U.setUpdateHistory("chats");const L=yield U.getAllChatEvents();U.chatEventsSubject.next(L),U.updateUnreadChatCount(L)}catch(L){console.error("Error saving chat event:",L)}})()}getAllChatEvents(){var F=this;return(0,u.A)(function*(){try{const U=[];return yield F.chatsStore.iterate(L=>{U.push(L)}),U}catch(U){return console.error("Error retrieving all chat events:",U),[]}})()}getChatEventsByPubKey(F){var U=this;return(0,u.A)(function*(){try{const L=[];return yield U.chatsStore.iterate(fe=>{const de=U.getReceiverPubKeyFromTags(fe.tags);(fe.pubkey===F||de===F)&&L.push(fe)}),L}catch(L){return console.error("Error retrieving chat events by pubkey:",L),[]}})()}updateChatEventReadStatus(F,U){var L=this;return(0,u.A)(function*(){try{const fe=yield L.chatsStore.getItem(F);if(fe){fe.IsRead=U,yield L.chatsStore.setItem(F,fe);const de=yield L.getAllChatEvents();L.chatEventsSubject.next(de),L.updateUnreadChatCount(de)}}catch(fe){console.error("Error updating chat event read status:",fe)}})()}markAllChatEventsAsRead(F){var U=this;return(0,u.A)(function*(){try{yield U.chatsStore.iterate(function(){var fe=(0,u.A)(function*(de,be){const Te=U.getReceiverPubKeyFromTags(de.tags);(de.pubkey===F||Te===F)&&!de.IsRead&&(de.IsRead=!0,yield U.chatsStore.setItem(be,de))});return function(de,be){return fe.apply(this,arguments)}}());const L=yield U.getAllChatEvents();U.chatEventsSubject.next(L),U.updateUnreadChatCount(L)}catch(L){console.error("Error marking all chat events as read:",L)}})()}getReceiverPubKeyFromTags(F){for(const U of F)if("p"===U[0]&&U[1])return U[1];return null}updateUnreadChatCount(F){const U=F.filter(L=>!L.IsRead).length;this.unreadChatCountSubject.next(U)}removeAllChats(){var F=this;return(0,u.A)(function*(){try{yield F.chatsStore.clear(),F.chatEventsSubject.next([]),F.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(U){console.error("Error removing all chat events:",U)}})()}setUpdateHistory(F){var U=this;return(0,u.A)(function*(){try{const L=Math.floor(Date.now()/1e3);yield U.updateHistoryStore.setItem(F,L)}catch(L){console.error("Error updating history:",L)}})()}loadAllProjectsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllProjects();F.projectsSubject.next(U)}catch(U){console.error("Error loading projects from DB:",U)}})()}loadAllProjectStatsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllProjectStats();F.projectStatsSubject.next(U)}catch(U){console.error("Error loading project stats from DB:",U)}})()}loadAllContactsFromDB(F=""){var U=this;return(0,u.A)(function*(){try{const L=yield U.getAllContacts(F);if(L.length>0){const fe={};for(const de of L)fe[de.pubKey]||(fe[de.pubKey]=[]),fe[de.pubKey].push(de.contact);for(const de in fe)U.contactsSubject.next({pubKey:de,contacts:fe[de]})}}catch(L){console.error("Error loading contacts from DB:",L)}})()}loadAllChatEventsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllChatEvents();F.chatEventsSubject.next(U)}catch(U){console.error("Error loading chat events from DB:",U)}})()}loadAllPostsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllPostsForAllPubKeys();F.postsSubject.next(U)}catch(U){console.error("Error loading posts from DB:",U)}})()}loadAllMyLikesFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllMyLikes();F.myLikesSubject.next(U)}catch(U){console.error("Error loading likes from DB:",U)}})()}loadAllNotificationsFromDB(){var F=this;return(0,u.A)(function*(){try{const U=yield F.getAllNotifications();F.notificationsSubject.next(U)}catch(U){console.error("Error loading notifications from DB:",U)}})()}loadContactStatsFromDB(){var F=this;return(0,u.A)(function*(){try{let U=0,L=0,fe=0;yield F.contactsStore.iterate((de,be)=>{const[Te]=be.split(":");U++,de.isFollower?L++:fe++}),F.contactStatsSubject.next({totalContacts:U,followersCount:L,followingCount:fe})}catch(U){console.error("Error loading contact stats from DB:",U)}})()}static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275prov=W.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})()},5645:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>Me});var y,u=v(4412),o=new Uint8Array(16);function B(){if(!y&&!(y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(o)}const W=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var V=[],F=0;F<256;++F)V.push((F+256).toString(16).substr(1));const L=function U(te){var ve=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,tt=(V[te[ve+0]]+V[te[ve+1]]+V[te[ve+2]]+V[te[ve+3]]+"-"+V[te[ve+4]]+V[te[ve+5]]+"-"+V[te[ve+6]]+V[te[ve+7]]+"-"+V[te[ve+8]]+V[te[ve+9]]+"-"+V[te[ve+10]]+V[te[ve+11]]+V[te[ve+12]]+V[te[ve+13]]+V[te[ve+14]]+V[te[ve+15]]).toLowerCase();if(!function ee(te){return"string"==typeof te&&W.test(te)}(tt))throw TypeError("Stringified UUID is invalid");return tt},de=function fe(te,ve,tt){var bt=(te=te||{}).random||(te.rng||B)();if(bt[6]=15&bt[6]|64,bt[8]=63&bt[8]|128,ve){tt=tt||0;for(var Ve=0;Ve<16;++Ve)ve[tt+Ve]=bt[Ve];return ve}return L(bt)};var be=v(4438),Te=v(6231);let Me=(()=>{class te{constructor(tt){this.relayService=tt,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new u.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=3e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=5e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(tt,bt){const Ve=this.findExistingSubscription(tt);if(Ve)return console.log("Existing subscription found:",Ve),Ve.callbacks.push(bt),Ve.id;const rt=de(),Xe=Date.now();this.lastActionTimestamp.set(rt,Xe);const oe={filter:tt,callbacks:[bt],id:rt};return this.subscriptions.set(oe.id,oe),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(oe),oe.id}findExistingSubscription(tt){for(let bt of this.subscriptions.values())if(JSON.stringify(bt.filter)===JSON.stringify(tt))return bt}removeSubscriptionById(tt){const bt=Date.now(),Ve=this.lastActionTimestamp.get(tt);Ve&&bt-Ve{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(bt=>{this.subscribeToRelays(bt.filter,bt)})},this.queueInterval))}subscribeToRelays(tt,bt){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Ve=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Ve,tt,{onevent:rt=>{bt.callbacks.forEach(Xe=>Xe(rt))},onclose:()=>{console.log("Subscription closed")}})}).catch(Ve=>{console.error("Error subscribing to relays:",Ve)}):this.pendingSubscriptions.set(bt.id,bt)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(tt=>{this.subscribeToRelays(tt.filter,tt)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(tt=>{console.error("Error connecting to relays:",tt)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(bt){return new(bt||te)(be.KVO(Te.b))}}static{this.\u0275prov=be.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}}return te})()},7292:(tn,Re,v)=>{"use strict";v.d(Re,{b:()=>de});var u=v(177),y=v(9417),o=v(8834),B=v(6600),W=v(5351),ee=v(2102),re=v(9213),V=v(9042),F=v(2798),U=v(882),L=v(4438);function fe(be,Te){1&be&&(L.j41(0,"mat-error"),L.EFF(1," Password is required "),L.k0s())}let de=(()=>{class be{constructor(Me,te,ve){this.fb=Me,this.dialogRef=te,this.data=ve,this.passwordForm=this.fb.group({password:["",y.k0.required],duration:["0",y.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(te){return new(te||be)(L.rXU(y.ok),L.rXU(W.CP),L.rXU(W.Vh))}}static{this.\u0275cmp=L.VBU({type:be,selectors:[["password-dialog"]],standalone:!0,features:[L.aNF],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,"mt-5","w-full"],["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(te,ve){1&te&&(L.j41(0,"h1",0),L.EFF(1,"Enter Password"),L.k0s(),L.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),L.EFF(6,"Password"),L.k0s(),L.j41(7,"mat-icon",4),L.EFF(8,"lock"),L.k0s(),L.nrm(9,"input",5),L.DNE(10,fe,2,0,"mat-error",6),L.k0s(),L.j41(11,"mat-form-field",7)(12,"mat-label"),L.EFF(13,"Duration"),L.k0s(),L.j41(14,"mat-select",8)(15,"mat-option",9),L.EFF(16,"0 Minute"),L.k0s(),L.j41(17,"mat-option",10),L.EFF(18,"1 Minute"),L.k0s(),L.j41(19,"mat-option",11),L.EFF(20,"5 Minutes"),L.k0s(),L.j41(21,"mat-option",12),L.EFF(22,"10 Minutes"),L.k0s(),L.j41(23,"mat-option",13),L.EFF(24,"1 Hour"),L.k0s()()()()(),L.j41(25,"div",14)(26,"button",15),L.bIt("click",function(){return ve.onCancel()}),L.EFF(27,"Cancel"),L.k0s(),L.j41(28,"button",16),L.bIt("click",function(){return ve.onSubmit()}),L.EFF(29," Submit "),L.k0s()()),2&te&&(L.R7$(3),L.Y8G("formGroup",ve.passwordForm),L.R7$(),L.Y8G("subscriptSizing","dynamic"),L.R7$(5),L.Y8G("formControlName","password"),L.R7$(),L.Y8G("ngIf",ve.passwordForm.get("password").hasError("required")),L.R7$(18),L.Y8G("disabled",ve.passwordForm.invalid))},dependencies:[U.vg,o.Hl,o.$z,re.m_,re.An,y.YN,y.qT,y.me,y.BC,y.cb,B.wT,ee.nJ,ee.rl,y.X1,y.j4,y.JD,u.MD,u.bT,F.Ve,ee.TL,ee.JW,F.VO,ee.RG,V.fS,V.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return be})()},368:(tn,Re,v)=>{"use strict";var u=v(345),y=v(9192),o=v(4438);let B=(()=>{class a{constructor(){}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["app-root"]],standalone:!0,features:[o.aNF],decls:1,vars:0,template:function(c,f){1&c&&o.nrm(0,"router-outlet")},dependencies:[y.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return a})();var W=v(467);const ee=new o.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var re=v(8810),V=v(1985),F=v(6697),U=v(7673);class L{constructor(s,i){this.url=s,this.delay=i,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,re.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,re.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,re.$)(()=>new Error("Request does not exist!"));this._replied++;const s=this._reply({request:this.request,urlParams:this.urlParams});return s instanceof V.c?s.pipe((0,F.s)(1)):(0,U.of)(s).pipe((0,F.s)(1))}reply(s){this._reply=s}replyCount(s){this._replyCount=s}}var fe=v(7680);let de=(()=>{class a{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(i,c){const f={handler:void 0,urlParams:{}},C=c.split("/"),M=this._handlers[i.toLowerCase()];for(const[H,ie]of M){const Fe=H.split("/");if(C.length===Fe.length&&Fe.every((Yt,jn)=>Yt.startsWith(":")||Yt===C[jn])){f.handler=ie,f.urlParams=(0,fe.A)(Fe.map((Yt,jn)=>Yt.startsWith(":")?[Yt.substring(1),C[jn]]:void 0).filter(Boolean));break}}return f}onGet(i,c){return this._registerHandler("get",i,c)}onPost(i,c){return this._registerHandler("post",i,c)}onPatch(i,c){return this._registerHandler("patch",i,c)}onDelete(i,c){return this._registerHandler("delete",i,c)}onPut(i,c){return this._registerHandler("put",i,c)}onHead(i,c){return this._registerHandler("head",i,c)}onJsonp(i,c){return this._registerHandler("jsonp",i,c)}onOptions(i,c){return this._registerHandler("options",i,c)}_registerHandler(i,c,f){const C=new L(c,f);return this._handlers[i].set(c,C),C}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var be=v(1626),Te=v(1986),Me=v(5558);const te=(a,s)=>{const i=(0,o.WQX)(ee),c=(0,o.WQX)(de),{handler:f,urlParams:C}=c.findHandler(a.method.toUpperCase(),a.url);return f?(f.request=a,f.urlParams=C,f.response.pipe((0,Te.c)(f.delay??i??0),(0,Me.n)(M=>{if(!M)return(0,re.$)(()=>new be.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const H={status:M[0],body:M[1]};return H.status>=200&&H.status<300?(0,U.of)(new be.cS({body:H.body,status:H.status,statusText:"OK"})):(0,re.$)(()=>new be.yz({error:H.body?.error,status:H.status,statusText:"ERROR"}))}))):s(a)};var ve=v(9097),tt=v(9979),bt=v(4412);let Ve=(()=>{class a{constructor(){this._auto$=new bt.t(!0),this._mode$=new bt.t("indeterminate"),this._progress$=new bt.t(0),this._show$=new bt.t(!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(i){this._auto$.next(i)}setMode(i){this._mode$.next(i)}setProgress(i){i<0||i>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(i)}_setLoadingStatus(i,c){c?(!0===i?(this._urlMap.set(c,i),this._show$.next(!0)):!1===i&&this._urlMap.has(c)&&this._urlMap.delete(c),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var rt=v(980);const Xe=(a,s)=>{const i=(0,o.WQX)(Ve);let c=!1;return i.auto$.pipe((0,F.s)(1)).subscribe(f=>{c=f}),c?(i._setLoadingStatus(!0,a.url),s(a).pipe((0,rt.j)(()=>{i._setLoadingStatus(!1,a.url)}))):s(a)};var oe=v(4977),he=v(6860);let Le=(()=>{class a{constructor(){this._platform=(0,o.WQX)(he.OD),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"))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var et=v(177),It=v(5964);let Et=(()=>{class a{constructor(){this._document=(0,o.WQX)(et.qQ),this._router=(0,o.WQX)(y.Ix),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,F.s)(1)).subscribe(()=>{this.hide()})}show(){this._document.body.classList.remove("angor-splash-screen-hidden")}hide(){this._document.body.classList.add("angor-splash-screen-hidden")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Tt=v(7209),nn=v(6600),Fn=v(5351),$n=v(2102);class di extends Error{}class mt extends di{constructor(s){super(`Invalid DateTime: ${s.toMessage()}`)}}class Ee extends di{constructor(s){super(`Invalid Interval: ${s.toMessage()}`)}}class J extends di{constructor(s){super(`Invalid Duration: ${s.toMessage()}`)}}class Se extends di{}class gt extends di{constructor(s){super(`Invalid unit ${s}`)}}class Ne extends di{}class Ze extends di{constructor(){super("Zone is an abstract class")}}const je="numeric",Lt="short",Mt="long",we={year:je,month:je,day:je},Oe={year:je,month:Lt,day:je},me={year:je,month:Lt,day:je,weekday:Lt},We={year:je,month:Mt,day:je},Pe={year:je,month:Mt,day:je,weekday:Mt},xt={hour:je,minute:je},xe={hour:je,minute:je,second:je},ut={hour:je,minute:je,second:je,timeZoneName:Lt},Rt={hour:je,minute:je,second:je,timeZoneName:Mt},wt={hour:je,minute:je,hourCycle:"h23"},mn={hour:je,minute:je,second:je,hourCycle:"h23"},ni={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:Lt},Zt={hour:je,minute:je,second:je,hourCycle:"h23",timeZoneName:Mt},_e={year:je,month:je,day:je,hour:je,minute:je},Je={year:je,month:je,day:je,hour:je,minute:je,second:je},Ge={year:je,month:Lt,day:je,hour:je,minute:je},dt={year:je,month:Lt,day:je,hour:je,minute:je,second:je},rn={year:je,month:Lt,day:je,weekday:Lt,hour:je,minute:je},Q={year:je,month:Mt,day:je,hour:je,minute:je,timeZoneName:Lt},T={year:je,month:Mt,day:je,hour:je,minute:je,second:je,timeZoneName:Lt},N={year:je,month:Mt,day:je,weekday:Mt,hour:je,minute:je,timeZoneName:Mt},$={year:je,month:Mt,day:je,weekday:Mt,hour:je,minute:je,second:je,timeZoneName:Mt};class le{get type(){throw new Ze}get name(){throw new Ze}get ianaName(){return this.name}get isUniversal(){throw new Ze}offsetName(s,i){throw new Ze}formatOffset(s,i){throw new Ze}offset(s){throw new Ze}equals(s){throw new Ze}get isValid(){throw new Ze}}let ue=null;class nt extends le{static get instance(){return null===ue&&(ue=new nt),ue}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Ho(s,i,c)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){return-new Date(s).getTimezoneOffset()}equals(s){return"system"===s.type}get isValid(){return!0}}let zt={};const jt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let wi={};class en extends le{static create(s){return wi[s]||(wi[s]=new en(s)),wi[s]}static resetCache(){wi={},zt={}}static isValidSpecifier(s){return this.isValidZone(s)}static isValidZone(s){if(!s)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:s}).format(),!0}catch{return!1}}constructor(s){super(),this.zoneName=s,this.valid=en.isValidZone(s)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(s,{format:i,locale:c}){return Ho(s,i,c,this.name)}formatOffset(s,i){return Hs(this.offset(s),i)}offset(s){const i=new Date(s);if(isNaN(i))return NaN;const c=function Ut(a){return zt[a]||(zt[a]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),zt[a]}(this.name);let[f,C,M,H,ie,Fe,Nt]=c.formatToParts?function Ln(a,s){const i=a.formatToParts(s),c=[];for(let f=0;f=0?Dn:1e3+Dn,(Vs({year:f,month:C,day:M,hour:24===ie?0:ie,minute:Fe,second:Nt,millisecond:0})-wn)/6e4}equals(s){return"iana"===s.type&&s.name===this.name}get isValid(){return this.valid}}let Cn={},Be={};function ye(a,s={}){const i=JSON.stringify([a,s]);let c=Be[i];return c||(c=new Intl.DateTimeFormat(a,s),Be[i]=c),c}let Ye={},Pn={},Ti=null,At={};function lt(a,s,i,c){const f=a.listingMode();return"error"===f?null:"en"===f?i(s):c(s)}class an{constructor(s,i,c){this.padTo=c.padTo||0,this.floor=c.floor||!1;const{padTo:f,floor:C,...M}=c;if(!i||Object.keys(M).length>0){const H={useGrouping:!1,...c};c.padTo>0&&(H.minimumIntegerDigits=c.padTo),this.inf=function Gt(a,s={}){const i=JSON.stringify([a,s]);let c=Ye[i];return c||(c=new Intl.NumberFormat(a,s),Ye[i]=c),c}(s,H)}}format(s){if(this.inf){const i=this.floor?Math.floor(s):s;return this.inf.format(i)}return hr(this.floor?Math.floor(s):ns(s,3),this.padTo)}}class li{constructor(s,i,c){let f;if(this.opts=c,this.originalZone=void 0,this.opts.timeZone)this.dt=s;else if("fixed"===s.zone.type){const M=s.offset/60*-1,H=M>=0?`Etc/GMT+${M}`:`Etc/GMT${M}`;0!==s.offset&&en.create(H).valid?(f=H,this.dt=s):(f="UTC",this.dt=0===s.offset?s:s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone)}else"system"===s.zone.type?this.dt=s:"iana"===s.zone.type?(this.dt=s,f=s.zone.name):(f="UTC",this.dt=s.setZone("UTC").plus({minutes:s.offset}),this.originalZone=s.zone);const C={...this.opts};C.timeZone=C.timeZone||f,this.dtf=ye(i,C)}format(){return this.originalZone?this.formatToParts().map(({value:s})=>s).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const s=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?s.map(i=>{if("timeZoneName"===i.type){const c=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...i,value:c}}return i}):s}resolvedOptions(){return this.dtf.resolvedOptions()}}class wr{constructor(s,i,c){this.opts={style:"long",...c},!i&&es()&&(this.rtf=function yi(a,s={}){const{base:i,...c}=s,f=JSON.stringify([a,c]);let C=Pn[f];return C||(C=new Intl.RelativeTimeFormat(a,s),Pn[f]=C),C}(s,c))}format(s,i){return this.rtf?this.rtf.format(s,i):function Oa(a,s,i="always",c=!1){const f={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."]},C=-1===["hours","minutes","seconds"].indexOf(a);if("auto"===i&&C){const Yt="days"===a;switch(s){case 1:return Yt?"tomorrow":`next ${f[a][0]}`;case-1:return Yt?"yesterday":`last ${f[a][0]}`;case 0:return Yt?"today":`this ${f[a][0]}`}}const M=Object.is(s,-0)||s<0,H=Math.abs(s),ie=1===H,Fe=f[a],Nt=c?ie?Fe[1]:Fe[2]||Fe[1]:ie?f[a][0]:a;return M?`${H} ${Nt} ago`:`in ${H} ${Nt}`}(i,s,this.opts.numeric,"long"!==this.opts.style)}formatToParts(s,i){return this.rtf?this.rtf.formatToParts(s,i):[]}}const Dr={firstDay:1,minimalDays:4,weekend:[6,7]};class Mi{static fromOpts(s){return Mi.create(s.locale,s.numberingSystem,s.outputCalendar,s.weekSettings,s.defaultToEN)}static create(s,i,c,f,C=!1){const M=s||se.defaultLocale,H=M||(C?"en-US":function sn(){return Ti||(Ti=(new Intl.DateTimeFormat).resolvedOptions().locale,Ti)}()),ie=i||se.defaultNumberingSystem,Fe=c||se.defaultOutputCalendar,Nt=jo(f)||se.defaultWeekSettings;return new Mi(H,ie,Fe,Nt,M)}static resetCache(){Ti=null,Be={},Ye={},Pn={}}static fromObject({locale:s,numberingSystem:i,outputCalendar:c,weekSettings:f}={}){return Mi.create(s,i,c,f)}constructor(s,i,c,f,C){const[M,H,ie]=function Bt(a){const s=a.indexOf("-x-");-1!==s&&(a=a.substring(0,s));const i=a.indexOf("-u-");if(-1===i)return[a];{let c,f;try{c=ye(a).resolvedOptions(),f=a}catch{const ie=a.substring(0,i);c=ye(ie).resolvedOptions(),f=ie}const{numberingSystem:C,calendar:M}=c;return[f,C,M]}}(s);this.locale=M,this.numberingSystem=i||H||null,this.outputCalendar=c||ie||null,this.weekSettings=f,this.intl=function ot(a,s,i){return(i||s)&&(a.includes("-u-")||(a+="-u"),i&&(a+=`-ca-${i}`),s&&(a+=`-nu-${s}`)),a}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=C,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Xt(a){return(!a.numberingSystem||"latn"===a.numberingSystem)&&("latn"===a.numberingSystem||!a.locale||a.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(a.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(s){return s&&0!==Object.getOwnPropertyNames(s).length?Mi.create(s.locale||this.specifiedLocale,s.numberingSystem||this.numberingSystem,s.outputCalendar||this.outputCalendar,jo(s.weekSettings)||this.weekSettings,s.defaultToEN||!1):this}redefaultToEN(s={}){return this.clone({...s,defaultToEN:!0})}redefaultToSystem(s={}){return this.clone({...s,defaultToEN:!1})}months(s,i=!1){return lt(this,s,oa,()=>{const c=i?{month:s,day:"numeric"}:{month:s},f=i?"format":"standalone";return this.monthsCache[f][s]||(this.monthsCache[f][s]=function qe(a){const s=[];for(let i=1;i<=12;i++){const c=Ei.utc(2009,i,1);s.push(a(c))}return s}(C=>this.extract(C,c,"month"))),this.monthsCache[f][s]})}weekdays(s,i=!1){return lt(this,s,xo,()=>{const c=i?{weekday:s,year:"numeric",month:"long",day:"numeric"}:{weekday:s},f=i?"format":"standalone";return this.weekdaysCache[f][s]||(this.weekdaysCache[f][s]=function Ie(a){const s=[];for(let i=1;i<=7;i++){const c=Ei.utc(2016,11,13+i);s.push(a(c))}return s}(C=>this.extract(C,c,"weekday"))),this.weekdaysCache[f][s]})}meridiems(){return lt(this,void 0,()=>Ir,()=>{if(!this.meridiemCache){const s={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ei.utc(2016,11,13,9),Ei.utc(2016,11,13,19)].map(i=>this.extract(i,s,"dayperiod"))}return this.meridiemCache})}eras(s){return lt(this,s,sa,()=>{const i={era:s};return this.eraCache[s]||(this.eraCache[s]=[Ei.utc(-40,1,1),Ei.utc(2017,1,1)].map(c=>this.extract(c,i,"era"))),this.eraCache[s]})}extract(s,i,c){const M=this.dtFormatter(s,i).formatToParts().find(H=>H.type.toLowerCase()===c);return M?M.value:null}numberFormatter(s={}){return new an(this.intl,s.forceSimple||this.fastNumbers,s)}dtFormatter(s,i={}){return new li(s,this.intl,i)}relFormatter(s={}){return new wr(this.intl,this.isEnglish(),s)}listFormatter(s={}){return function He(a,s={}){const i=JSON.stringify([a,s]);let c=Cn[i];return c||(c=new Intl.ListFormat(a,s),Cn[i]=c),c}(this.intl,s)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:io()?function st(a){let s=At[a];if(!s){const i=new Intl.Locale(a);s="getWeekInfo"in i?i.getWeekInfo():i.weekInfo,At[a]=s}return s}(this.locale):Dr}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(s){return this.locale===s.locale&&this.numberingSystem===s.numberingSystem&&this.outputCalendar===s.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Fr=null;class bi extends le{static get utcInstance(){return null===Fr&&(Fr=new bi(0)),Fr}static instance(s){return 0===s?bi.utcInstance:new bi(s)}static parseSpecifier(s){if(s){const i=s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(i)return new bi($o(i[1],i[2]))}return null}constructor(s){super(),this.fixed=s}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Hs(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Hs(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(s,i){return Hs(this.fixed,i)}get isUniversal(){return!0}offset(){return this.fixed}equals(s){return"fixed"===s.type&&s.fixed===this.fixed}get isValid(){return!0}}class Kr extends le{constructor(s){super(),this.zoneName=s}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 Or(a,s){if(Ci(a)||null===a)return s;if(a instanceof le)return a;if(function Gi(a){return"string"==typeof a}(a)){const c=a.toLowerCase();return"default"===c?s:"local"===c||"system"===c?nt.instance:"utc"===c||"gmt"===c?bi.utcInstance:bi.parseSpecifier(c)||en.create(a)}return Br(a)?bi.instance(a):"object"==typeof a&&"offset"in a&&"function"==typeof a.offset?a:new Kr(a)}const ft={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"},Ot={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]},un=ft.hanidec.replace(/[\[|\]]/g,"").split("");let Tn={};function zn({numberingSystem:a},s=""){const i=a||"latn";return Tn[i]||(Tn[i]={}),Tn[i][s]||(Tn[i][s]=new RegExp(`${ft[i]}${s}`)),Tn[i][s]}let K,ii=()=>Date.now(),ci="system",Bn=null,Ce=null,Qe=null,Ke=60,Ae=null;class se{static get now(){return ii}static set now(s){ii=s}static set defaultZone(s){ci=s}static get defaultZone(){return Or(ci,nt.instance)}static get defaultLocale(){return Bn}static set defaultLocale(s){Bn=s}static get defaultNumberingSystem(){return Ce}static set defaultNumberingSystem(s){Ce=s}static get defaultOutputCalendar(){return Qe}static set defaultOutputCalendar(s){Qe=s}static get defaultWeekSettings(){return Ae}static set defaultWeekSettings(s){Ae=jo(s)}static get twoDigitCutoffYear(){return Ke}static set twoDigitCutoffYear(s){Ke=s%100}static get throwOnInvalid(){return K}static set throwOnInvalid(s){K=s}static resetCaches(){Mi.resetCache(),en.resetCache(),Ei.resetCache(),function Kn(){Tn={}}()}}class $e{constructor(s,i){this.reason=s,this.explanation=i}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const vt=[0,31,59,90,120,151,181,212,243,273,304,334],at=[0,31,60,91,121,152,182,213,244,274,305,335];function $t(a,s){return new $e("unit out of range",`you specified ${s} (of type ${typeof s}) as a ${a}, which is invalid`)}function hn(a,s,i){const c=new Date(Date.UTC(a,s-1,i));a<100&&a>=0&&c.setUTCFullYear(c.getUTCFullYear()-1900);const f=c.getUTCDay();return 0===f?7:f}function gn(a,s,i){return i+(Sr(a)?at:vt)[s-1]}function En(a,s){const i=Sr(a)?at:vt,c=i.findIndex(C=>Cjs(c,s,i)?(Fe=c+1,ie=1):Fe=c,{weekYear:Fe,weekNumber:ie,weekday:H,...Xr(a)}}function Hn(a,s=4,i=1){const{weekYear:c,weekNumber:f,weekday:C}=a,M=xn(hn(c,1,s),i),H=Ar(c);let Fe,ie=7*f+C-M-7+s;ie<1?(Fe=c-1,ie+=Ar(Fe)):ie>H?(Fe=c+1,ie-=Ar(c)):Fe=c;const{month:Nt,day:Yt}=En(Fe,ie);return{year:Fe,month:Nt,day:Yt,...Xr(a)}}function ui(a){const{year:s,month:i,day:c}=a;return{year:s,ordinal:gn(s,i,c),...Xr(a)}}function Oi(a){const{year:s,ordinal:i}=a,{month:c,day:f}=En(s,i);return{year:s,month:c,day:f,...Xr(a)}}function ti(a,s){if(Ci(a.localWeekday)&&Ci(a.localWeekNumber)&&Ci(a.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Ci(a.weekday)||!Ci(a.weekNumber)||!Ci(a.weekYear))throw new Se("Cannot mix locale-based week fields with ISO-based week fields");return Ci(a.localWeekday)||(a.weekday=a.localWeekday),Ci(a.localWeekNumber)||(a.weekNumber=a.localWeekNumber),Ci(a.localWeekYear)||(a.weekYear=a.localWeekYear),delete a.localWeekday,delete a.localWeekNumber,delete a.localWeekYear,{minDaysInFirstWeek:s.getMinDaysInFirstWeek(),startOfWeek:s.getStartOfWeek()}}function ho(a){const s=Ko(a.year),i=xr(a.month,1,12),c=xr(a.day,1,Tr(a.year,a.month));return s?i?!c&&$t("day",a.day):$t("month",a.month):$t("year",a.year)}function Lr(a){const{hour:s,minute:i,second:c,millisecond:f}=a,C=xr(s,0,23)||24===s&&0===i&&0===c&&0===f,M=xr(i,0,59),H=xr(c,0,59),ie=xr(f,0,999);return C?M?H?!ie&&$t("millisecond",f):$t("second",c):$t("minute",i):$t("hour",s)}function Ci(a){return typeof a>"u"}function Br(a){return"number"==typeof a}function Ko(a){return"number"==typeof a&&a%1==0}function es(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function io(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function ga(a,s,i){if(0!==a.length)return a.reduce((c,f)=>{const C=[s(f),f];return c&&i(c[0],C[0])===c[0]?c:C},null)[1]}function vo(a,s){return Object.prototype.hasOwnProperty.call(a,s)}function jo(a){if(null==a)return null;if("object"!=typeof a)throw new Ne("Week settings must be an object");if(!xr(a.firstDay,1,7)||!xr(a.minimalDays,1,7)||!Array.isArray(a.weekend)||a.weekend.some(s=>!xr(s,1,7)))throw new Ne("Invalid week settings");return{firstDay:a.firstDay,minimalDays:a.minimalDays,weekend:Array.from(a.weekend)}}function xr(a,s,i){return Ko(a)&&a>=s&&a<=i}function hr(a,s=2){let c;return c=a<0?"-"+(""+-a).padStart(s,"0"):(""+a).padStart(s,"0"),c}function ts(a){if(!Ci(a)&&null!==a&&""!==a)return parseInt(a,10)}function Jr(a){if(!Ci(a)&&null!==a&&""!==a)return parseFloat(a)}function Ii(a){if(!Ci(a)&&null!==a&&""!==a){const s=1e3*parseFloat("0."+a);return Math.floor(s)}}function ns(a,s,i=!1){const c=10**s;return(i?Math.trunc:Math.round)(a*c)/c}function Sr(a){return a%4==0&&(a%100!=0||a%400==0)}function Ar(a){return Sr(a)?366:365}function Tr(a,s){const i=function Us(a,s){return a-s*Math.floor(a/s)}(s-1,12)+1;return 2===i?Sr(a+(s-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function Vs(a){let s=Date.UTC(a.year,a.month-1,a.day,a.hour,a.minute,a.second,a.millisecond);return a.year<100&&a.year>=0&&(s=new Date(s),s.setUTCFullYear(a.year,a.month-1,a.day)),+s}function xi(a,s,i){return-xn(hn(a,1,s),i)+s-1}function js(a,s=4,i=1){const c=xi(a,s,i),f=xi(a+1,s,i);return(Ar(a)-c+f)/7}function Vr(a){return a>99?a:a>se.twoDigitCutoffYear?1900+a:2e3+a}function Ho(a,s,i,c=null){const f=new Date(a),C={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};c&&(C.timeZone=c);const M={timeZoneName:s,...C},H=new Intl.DateTimeFormat(i,M).formatToParts(f).find(ie=>"timezonename"===ie.type.toLowerCase());return H?H.value:null}function $o(a,s){let i=parseInt(a,10);Number.isNaN(i)&&(i=0);const c=parseInt(s,10)||0;return 60*i+(i<0||Object.is(i,-0)?-c:c)}function va(a){const s=Number(a);if("boolean"==typeof a||""===a||Number.isNaN(s))throw new Ne(`Invalid unit value ${a}`);return s}function ws(a,s){const i={};for(const c in a)if(vo(a,c)){const f=a[c];if(null==f)continue;i[s(c)]=va(f)}return i}function Hs(a,s){const i=Math.trunc(Math.abs(a/60)),c=Math.trunc(Math.abs(a%60)),f=a>=0?"+":"-";switch(s){case"short":return`${f}${hr(i,2)}:${hr(c,2)}`;case"narrow":return`${f}${i}${c>0?`:${c}`:""}`;case"techie":return`${f}${hr(i,2)}${hr(c,2)}`;default:throw new RangeError(`Value format ${s} is out of range for property format`)}}function Xr(a){return function Kl(a,s){return s.reduce((i,c)=>(i[c]=a[c],i),{})}(a,["hour","minute","second","millisecond"])}const gr=["January","February","March","April","May","June","July","August","September","October","November","December"],Xo=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ro=["J","F","M","A","M","J","J","A","S","O","N","D"];function oa(a){switch(a){case"narrow":return[...ro];case"short":return[...Xo];case"long":return[...gr];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}}const Er=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],oo=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],jr=["M","T","W","T","F","S","S"];function xo(a){switch(a){case"narrow":return[...jr];case"short":return[...oo];case"long":return[...Er];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Ir=["AM","PM"],Yo=["Before Christ","Anno Domini"],Eo=["BC","AD"],Es=["B","A"];function sa(a){switch(a){case"narrow":return[...Es];case"short":return[...Eo];case"long":return[...Yo];default:return null}}function sr(a,s){let i="";for(const c of a)i+=c.literal?c.val:s(c.val);return i}const is={D:we,DD:Oe,DDD:We,DDDD:Pe,t:xt,tt:xe,ttt:ut,tttt:Rt,T:wt,TT:mn,TTT:ni,TTTT:Zt,f:_e,ff:Ge,fff:Q,ffff:N,F:Je,FF:dt,FFF:T,FFFF:$};class ao{static create(s,i={}){return new ao(s,i)}static parseFormat(s){let i=null,c="",f=!1;const C=[];for(let M=0;M0&&C.push({literal:f||/^\s+$/.test(c),val:c}),i=null,c="",f=!f):f||H===i?c+=H:(c.length>0&&C.push({literal:/^\s+$/.test(c),val:c}),c=H,i=H)}return c.length>0&&C.push({literal:f||/^\s+$/.test(c),val:c}),C}static macroTokenToFormatOpts(s){return is[s]}constructor(s,i){this.opts=i,this.loc=s,this.systemLoc=null}formatWithSystemDefault(s,i){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(s,{...this.opts,...i}).format()}dtFormatter(s,i={}){return this.loc.dtFormatter(s,{...this.opts,...i})}formatDateTime(s,i){return this.dtFormatter(s,i).format()}formatDateTimeParts(s,i){return this.dtFormatter(s,i).formatToParts()}formatInterval(s,i){return this.dtFormatter(s.start,i).dtf.formatRange(s.start.toJSDate(),s.end.toJSDate())}resolvedOptions(s,i){return this.dtFormatter(s,i).resolvedOptions()}num(s,i=0){if(this.opts.forceSimple)return hr(s,i);const c={...this.opts};return i>0&&(c.padTo=i),this.loc.numberFormatter(c).format(s)}formatDateTimeFromString(s,i){const c="en"===this.loc.listingMode(),f=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,C=(wn,Dn)=>this.loc.extract(s,wn,Dn),M=wn=>s.isOffsetFixed&&0===s.offset&&wn.allowZ?"Z":s.isValid?s.zone.formatOffset(s.ts,wn.format):"",ie=(wn,Dn)=>c?function Fo(a,s){return oa(s)[a.month-1]}(s,wn):C(Dn?{month:wn}:{month:wn,day:"numeric"},"month"),Fe=(wn,Dn)=>c?function aa(a,s){return xo(s)[a.weekday-1]}(s,wn):C(Dn?{weekday:wn}:{weekday:wn,month:"long",day:"numeric"},"weekday"),Nt=wn=>{const Dn=ao.macroTokenToFormatOpts(wn);return Dn?this.formatWithSystemDefault(s,Dn):wn},Yt=wn=>c?function Xa(a,s){return sa(s)[a.year<0?0:1]}(s,wn):C({era:wn},"era");return sr(ao.parseFormat(i),wn=>{switch(wn){case"S":return this.num(s.millisecond);case"u":case"SSS":return this.num(s.millisecond,3);case"s":return this.num(s.second);case"ss":return this.num(s.second,2);case"uu":return this.num(Math.floor(s.millisecond/10),2);case"uuu":return this.num(Math.floor(s.millisecond/100));case"m":return this.num(s.minute);case"mm":return this.num(s.minute,2);case"h":return this.num(s.hour%12==0?12:s.hour%12);case"hh":return this.num(s.hour%12==0?12:s.hour%12,2);case"H":return this.num(s.hour);case"HH":return this.num(s.hour,2);case"Z":return M({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return M({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return M({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return s.zone.offsetName(s.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return s.zone.offsetName(s.ts,{format:"long",locale:this.loc.locale});case"z":return s.zoneName;case"a":return c?function so(a){return Ir[a.hour<12?0:1]}(s):C({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return f?C({day:"numeric"},"day"):this.num(s.day);case"dd":return f?C({day:"2-digit"},"day"):this.num(s.day,2);case"c":case"E":return this.num(s.weekday);case"ccc":return Fe("short",!0);case"cccc":return Fe("long",!0);case"ccccc":return Fe("narrow",!0);case"EEE":return Fe("short",!1);case"EEEE":return Fe("long",!1);case"EEEEE":return Fe("narrow",!1);case"L":return f?C({month:"numeric",day:"numeric"},"month"):this.num(s.month);case"LL":return f?C({month:"2-digit",day:"numeric"},"month"):this.num(s.month,2);case"LLL":return ie("short",!0);case"LLLL":return ie("long",!0);case"LLLLL":return ie("narrow",!0);case"M":return f?C({month:"numeric"},"month"):this.num(s.month);case"MM":return f?C({month:"2-digit"},"month"):this.num(s.month,2);case"MMM":return ie("short",!1);case"MMMM":return ie("long",!1);case"MMMMM":return ie("narrow",!1);case"y":return f?C({year:"numeric"},"year"):this.num(s.year);case"yy":return f?C({year:"2-digit"},"year"):this.num(s.year.toString().slice(-2),2);case"yyyy":return f?C({year:"numeric"},"year"):this.num(s.year,4);case"yyyyyy":return f?C({year:"numeric"},"year"):this.num(s.year,6);case"G":return Yt("short");case"GG":return Yt("long");case"GGGGG":return Yt("narrow");case"kk":return this.num(s.weekYear.toString().slice(-2),2);case"kkkk":return this.num(s.weekYear,4);case"W":return this.num(s.weekNumber);case"WW":return this.num(s.weekNumber,2);case"n":return this.num(s.localWeekNumber);case"nn":return this.num(s.localWeekNumber,2);case"ii":return this.num(s.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(s.localWeekYear,4);case"o":return this.num(s.ordinal);case"ooo":return this.num(s.ordinal,3);case"q":return this.num(s.quarter);case"qq":return this.num(s.quarter,2);case"X":return this.num(Math.floor(s.ts/1e3));case"x":return this.num(s.ts);default:return Nt(wn)}})}formatDurationFromString(s,i){const c=ie=>{switch(ie[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}},C=ao.parseFormat(i),M=C.reduce((ie,{literal:Fe,val:Nt})=>Fe?ie:ie.concat(Nt),[]);return sr(C,(ie=>Fe=>{const Nt=c(Fe);return Nt?this.num(ie.get(Nt),Fe.length):Fe})(s.shiftTo(...M.map(c).filter(ie=>ie))))}}const rs=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qr(...a){const s=a.reduce((i,c)=>i+c.source,"");return RegExp(`^${s}$`)}function $s(...a){return s=>a.reduce(([i,c,f],C)=>{const[M,H,ie]=C(s,f);return[{...i,...M},H||c,ie]},[{},null,1]).slice(0,2)}function Oo(a,...s){if(null==a)return[null,null];for(const[i,c]of s){const f=i.exec(a);if(f)return c(f)}return[null,null]}function fo(...a){return(s,i)=>{const c={};let f;for(f=0;fvoid 0!==wn&&(Dn||wn&&Nt)?-wn:wn;return[{years:jn(Jr(i)),months:jn(Jr(c)),weeks:jn(Jr(f)),days:jn(Jr(C)),hours:jn(Jr(M)),minutes:jn(Jr(H)),seconds:jn(Jr(ie),"-0"===ie),milliseconds:jn(Ii(Fe),Yt)}]}const wa={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xs(a,s,i,c,f,C,M){const H={year:2===s.length?Vr(ts(s)):ts(s),month:Xo.indexOf(i)+1,day:ts(c),hour:ts(f),minute:ts(C)};return M&&(H.second=ts(M)),a&&(H.weekday=a.length>3?Er.indexOf(a)+1:oo.indexOf(a)+1),H}const nr=/^(?:(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 Ea(a){const[,s,i,c,f,C,M,H,ie,Fe,Nt,Yt]=a,jn=xs(s,f,c,i,C,M,H);let wn;return wn=ie?wa[ie]:Fe?0:$o(Nt,Yt),[jn,new bi(wn)]}const zs=/^(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$/,nu=/^(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$/,Xl=/^(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 zi(a){const[,s,i,c,f,C,M,H]=a;return[xs(s,f,c,i,C,M,H),bi.utcInstance]}function po(a){const[,s,i,c,f,C,M,H]=a;return[xs(s,H,i,c,f,C,M),bi.utcInstance]}const Ni=qr(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Os),Ro=qr(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Os),_o=qr(/(\d{4})-?(\d{3})/,Os),Na=qr(Ra),la=$s(function Ct(a,s){return[{year:ge(a,s),month:ge(a,s+1,1),day:ge(a,s+2,1)},null,s+3]},gi,Yi,zo),Lo=$s(_r,gi,Yi,zo),dl=$s(Ao,gi,Yi,zo),ca=$s(gi,Yi,zo),fl=$s(gi),ml=qr(/(\d{4})-(\d\d)-(\d\d)/,k),Tl=qr(Y),Ss=$s(gi,Yi,zo),Da="Invalid Duration",as={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ql={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...as},Yr=365.2425,ko=30.436875,iu={years:{quarters:4,months:12,weeks:Yr/7,days:Yr,hours:24*Yr,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Yr/28,days:Yr/4,hours:24*Yr/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:ko/7,days:ko,hours:24*ko,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...as},To=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ua=To.slice(0).reverse();function Mr(a,s,i=!1){const c={values:i?s.values:{...a.values,...s.values||{}},loc:a.loc.clone(s.loc),conversionAccuracy:s.conversionAccuracy||a.conversionAccuracy,matrix:s.matrix||a.matrix};return new fr(c)}function Pa(a,s){let i=s.milliseconds??0;for(const c of ua.slice(1))s[c]&&(i+=s[c]*a[c].milliseconds);return i}function da(a,s){const i=Pa(a,s)<0?-1:1;To.reduceRight((c,f)=>{if(Ci(s[f]))return c;if(c){const M=a[f][c],H=Math.floor(s[c]*i/M);s[f]+=H*i,s[c]-=H*M*i}return f},null),To.reduce((c,f)=>{if(Ci(s[f]))return c;if(c){const C=s[c]%1;s[c]-=C,s[f]+=C*a[c][f]}return f},null)}class fr{constructor(s){const i="longterm"===s.conversionAccuracy||!1;let c=i?iu:Ql;s.matrix&&(c=s.matrix),this.values=s.values,this.loc=s.loc||Mi.create(),this.conversionAccuracy=i?"longterm":"casual",this.invalid=s.invalid||null,this.matrix=c,this.isLuxonDuration=!0}static fromMillis(s,i){return fr.fromObject({milliseconds:s},i)}static fromObject(s,i={}){if(null==s||"object"!=typeof s)throw new Ne("Duration.fromObject: argument expected to be an object, got "+(null===s?"null":typeof s));return new fr({values:ws(s,fr.normalizeUnit),loc:Mi.fromObject(i),conversionAccuracy:i.conversionAccuracy,matrix:i.matrix})}static fromDurationLike(s){if(Br(s))return fr.fromMillis(s);if(fr.isDuration(s))return s;if("object"==typeof s)return fr.fromObject(s);throw new Ne(`Unknown duration argument ${s} of type ${typeof s}`)}static fromISO(s,i){const[c]=function Yl(a){return Oo(a,[Ds,ba])}(s);return c?fr.fromObject(c,i):fr.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static fromISOTime(s,i){const[c]=function pl(a){return Oo(a,[ya,fl])}(s);return c?fr.fromObject(c,i):fr.invalid("unparsable",`the input "${s}" can't be parsed as ISO 8601`)}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the Duration is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new J(c);return new fr({invalid:c})}static normalizeUnit(s){const i={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"}[s&&s.toLowerCase()];if(!i)throw new gt(s);return i}static isDuration(s){return s&&s.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(s,i={}){const c={...i,floor:!1!==i.round&&!1!==i.floor};return this.isValid?ao.create(this.loc,c).formatDurationFromString(this,s):Da}toHuman(s={}){if(!this.isValid)return Da;const i=To.map(c=>{const f=this.values[c];return Ci(f)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...s,unit:c.slice(0,-1)}).format(f)}).filter(c=>c);return this.loc.listFormatter({type:"conjunction",style:s.listStyle||"narrow",...s}).format(i)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let s="P";return 0!==this.years&&(s+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(s+=this.months+3*this.quarters+"M"),0!==this.weeks&&(s+=this.weeks+"W"),0!==this.days&&(s+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(s+="T"),0!==this.hours&&(s+=this.hours+"H"),0!==this.minutes&&(s+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(s+=ns(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===s&&(s+="T0S"),s}toISOTime(s={}){if(!this.isValid)return null;const i=this.toMillis();return i<0||i>=864e5?null:(s={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...s,includeOffset:!1},Ei.fromMillis(i,{zone:"UTC"}).toISOTime(s))}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?Pa(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(s){if(!this.isValid)return this;const i=fr.fromDurationLike(s),c={};for(const f of To)(vo(i.values,f)||vo(this.values,f))&&(c[f]=i.get(f)+this.get(f));return Mr(this,{values:c},!0)}minus(s){if(!this.isValid)return this;const i=fr.fromDurationLike(s);return this.plus(i.negate())}mapUnits(s){if(!this.isValid)return this;const i={};for(const c of Object.keys(this.values))i[c]=va(s(this.values[c],c));return Mr(this,{values:i},!0)}get(s){return this[fr.normalizeUnit(s)]}set(s){return this.isValid?Mr(this,{values:{...this.values,...ws(s,fr.normalizeUnit)}}):this}reconfigure({locale:s,numberingSystem:i,conversionAccuracy:c,matrix:f}={}){return Mr(this,{loc:this.loc.clone({locale:s,numberingSystem:i}),matrix:f,conversionAccuracy:c})}as(s){return this.isValid?this.shiftTo(s).get(s):NaN}normalize(){if(!this.isValid)return this;const s=this.toObject();return da(this.matrix,s),Mr(this,{values:s},!0)}rescale(){return this.isValid?Mr(this,{values:function ls(a){const s={};for(const[i,c]of Object.entries(a))0!==c&&(s[i]=c);return s}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...s){if(!this.isValid)return this;if(0===s.length)return this;s=s.map(M=>fr.normalizeUnit(M));const i={},c={},f=this.toObject();let C;for(const M of To)if(s.indexOf(M)>=0){C=M;let H=0;for(const Fe in c)H+=this.matrix[Fe][M]*c[Fe],c[Fe]=0;Br(f[M])&&(H+=f[M]);const ie=Math.trunc(H);i[M]=ie,c[M]=(1e3*H-1e3*ie)/1e3}else Br(f[M])&&(c[M]=f[M]);for(const M in c)0!==c[M]&&(i[C]+=M===C?c[M]:c[M]/this.matrix[C][M]);return da(this.matrix,i),Mr(this,{values:i},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const s={};for(const i of Object.keys(this.values))s[i]=0===this.values[i]?0:-this.values[i];return Mr(this,{values:s},!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 null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(s){if(!this.isValid||!s.isValid||!this.loc.equals(s.loc))return!1;function i(c,f){return void 0===c||0===c?void 0===f||0===f:c===f}for(const c of To)if(!i(this.values[c],s.values[c]))return!1;return!0}}const As="Invalid Interval";class Hr{constructor(s){this.s=s.start,this.e=s.end,this.invalid=s.invalid||null,this.isLuxonInterval=!0}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the Interval is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new Ee(c);return new Hr({invalid:c})}static fromDateTimes(s,i){const c=Zr(s),f=Zr(i),C=function Ws(a,s){return a&&a.isValid?s&&s.isValid?ss}isBefore(s){return!!this.isValid&&this.e<=s}contains(s){return!!this.isValid&&this.s<=s&&this.e>s}set({start:s,end:i}={}){return this.isValid?Hr.fromDateTimes(s||this.s,i||this.e):this}splitAt(...s){if(!this.isValid)return[];const i=s.map(Zr).filter(M=>this.contains(M)).sort((M,H)=>M.toMillis()-H.toMillis()),c=[];let{s:f}=this,C=0;for(;f+this.e?this.e:M;c.push(Hr.fromDateTimes(f,H)),f=H,C+=1}return c}splitBy(s){const i=fr.fromDurationLike(s);if(!this.isValid||!i.isValid||0===i.as("milliseconds"))return[];let C,{s:c}=this,f=1;const M=[];for(;cie*f));C=+H>+this.e?this.e:H,M.push(Hr.fromDateTimes(c,C)),c=C,f+=1}return M}divideEqually(s){return this.isValid?this.splitBy(this.length()/s).slice(0,s):[]}overlaps(s){return this.e>s.s&&this.s=s.e}equals(s){return!(!this.isValid||!s.isValid)&&this.s.equals(s.s)&&this.e.equals(s.e)}intersection(s){if(!this.isValid)return this;const i=this.s>s.s?this.s:s.s,c=this.e=c?null:Hr.fromDateTimes(i,c)}union(s){return this.isValid?Hr.fromDateTimes(this.ss.e?this.e:s.e):this}static merge(s){const[i,c]=s.sort((f,C)=>f.s-C.s).reduce(([f,C],M)=>C?C.overlaps(M)||C.abutsStart(M)?[f,C.union(M)]:[f.concat([C]),M]:[f,M],[[],null]);return c&&i.push(c),i}static xor(s){let i=null,c=0;const f=[],C=s.map(ie=>[{time:ie.s,type:"s"},{time:ie.e,type:"e"}]),H=Array.prototype.concat(...C).sort((ie,Fe)=>ie.time-Fe.time);for(const ie of H)c+="s"===ie.type?1:-1,1===c?i=ie.time:(i&&+i!=+ie.time&&f.push(Hr.fromDateTimes(i,ie.time)),i=null);return Hr.merge(f)}difference(...s){return Hr.xor([this].concat(s)).map(i=>this.intersection(i)).filter(i=>i&&!i.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:As}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(s=we,i={}){return this.isValid?ao.create(this.s.loc.clone(i),s).formatInterval(this):As}toISO(s){return this.isValid?`${this.s.toISO(s)}/${this.e.toISO(s)}`:As}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:As}toISOTime(s){return this.isValid?`${this.s.toISOTime(s)}/${this.e.toISOTime(s)}`:As}toFormat(s,{separator:i=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(s)}${i}${this.e.toFormat(s)}`:As}toDuration(s,i){return this.isValid?this.e.diff(this.s,s,i):fr.invalid(this.invalidReason)}mapEndpoints(s){return Hr.fromDateTimes(s(this.s),s(this.e))}}class Gs{static hasDST(s=se.defaultZone){const i=Ei.now().setZone(s).set({month:12});return!s.isUniversal&&i.offset!==i.set({month:6}).offset}static isValidIANAZone(s){return en.isValidZone(s)}static normalizeZone(s){return Or(s,se.defaultZone)}static getStartOfWeek({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:s=null,locObj:i=null}={}){return(i||Mi.create(s)).getWeekendDays().slice()}static months(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null,outputCalendar:C="gregory"}={}){return(f||Mi.create(i,c,C)).months(s)}static monthsFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null,outputCalendar:C="gregory"}={}){return(f||Mi.create(i,c,C)).months(s,!0)}static weekdays(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null}={}){return(f||Mi.create(i,c,null)).weekdays(s)}static weekdaysFormat(s="long",{locale:i=null,numberingSystem:c=null,locObj:f=null}={}){return(f||Mi.create(i,c,null)).weekdays(s,!0)}static meridiems({locale:s=null}={}){return Mi.create(s).meridiems()}static eras(s="short",{locale:i=null}={}){return Mi.create(i,null,"gregory").eras(s)}static features(){return{relative:es(),localeWeek:io()}}}function Ya(a,s){const i=f=>f.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),c=i(s)-i(a);return Math.floor(fr.fromMillis(c).as("days"))}function Qi(a,s=i=>i){return{regex:a,deser:([i])=>s(function bn(a){let s=parseInt(a,10);if(isNaN(s)){s="";for(let i=0;i=C&&c<=M&&(s+=c-C)}}return parseInt(s,10)}return s}(i))}}const gl="[ \xa0]",S=new RegExp(gl,"g");function ne(a){return a.replace(/\./g,"\\.?").replace(S,gl)}function p(a){return a.replace(/\./g,"").replace(S," ").toLowerCase()}function _(a,s){return null===a?null:{regex:RegExp(a.map(ne).join("|")),deser:([i])=>a.findIndex(c=>p(i)===p(c))+s}}function x(a,s){return{regex:a,deser:([,i,c])=>$o(i,c),groups:s}}function X(a){return{regex:a,deser:([s])=>s}}function ce(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const yt={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"}};let St=null;function kn(a,s){return Array.prototype.concat(...a.map(i=>function cn(a,s){if(a.literal)return a;const c=Qn(ao.macroTokenToFormatOpts(a.val),s);return null==c||c.includes(void 0)?a:c}(i,s)))}class fn{constructor(s,i){if(this.locale=s,this.format=i,this.tokens=kn(ao.parseFormat(i),s),this.units=this.tokens.map(c=>function ze(a,s){const i=zn(s),c=zn(s,"{2}"),f=zn(s,"{3}"),C=zn(s,"{4}"),M=zn(s,"{6}"),H=zn(s,"{1,2}"),ie=zn(s,"{1,3}"),Fe=zn(s,"{1,6}"),Nt=zn(s,"{1,9}"),Yt=zn(s,"{2,4}"),jn=zn(s,"{4,6}"),wn=Fi=>({regex:RegExp(ce(Fi.val)),deser:([Ui])=>Ui,literal:!0}),pi=(Fi=>{if(a.literal)return wn(Fi);switch(Fi.val){case"G":return _(s.eras("short"),0);case"GG":return _(s.eras("long"),0);case"y":return Qi(Fe);case"yy":case"kk":return Qi(Yt,Vr);case"yyyy":case"kkkk":return Qi(C);case"yyyyy":return Qi(jn);case"yyyyyy":return Qi(M);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Qi(H);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Qi(c);case"MMM":return _(s.months("short",!0),1);case"MMMM":return _(s.months("long",!0),1);case"LLL":return _(s.months("short",!1),1);case"LLLL":return _(s.months("long",!1),1);case"o":case"S":return Qi(ie);case"ooo":case"SSS":return Qi(f);case"u":return X(Nt);case"uu":return X(H);case"uuu":case"E":case"c":return Qi(i);case"a":return _(s.meridiems(),0);case"EEE":return _(s.weekdays("short",!1),1);case"EEEE":return _(s.weekdays("long",!1),1);case"ccc":return _(s.weekdays("short",!0),1);case"cccc":return _(s.weekdays("long",!0),1);case"Z":case"ZZ":return x(new RegExp(`([+-]${H.source})(?::(${c.source}))?`),2);case"ZZZ":return x(new RegExp(`([+-]${H.source})(${c.source})?`),2);case"z":return X(/[a-z_+-/]{1,256}?/i);case" ":return X(/[^\S\n\r]/);default:return wn(Fi)}})(a)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return pi.token=a,pi}(c,s)),this.disqualifyingUnit=this.units.find(c=>c.invalidReason),!this.disqualifyingUnit){const[c,f]=function Pt(a){return[`^${a.map(i=>i.regex).reduce((i,c)=>`${i}(${c.source})`,"")}$`,a]}(this.units);this.regex=RegExp(c,"i"),this.handlers=f}}explainFromTokens(s){if(this.isValid){const[i,c]=function Wt(a,s,i){const c=a.match(s);if(c){const f={};let C=1;for(const M in i)if(vo(i,M)){const H=i[M],ie=H.groups?H.groups+1:1;!H.literal&&H.token&&(f[H.token.val[0]]=H.deser(c.slice(C,C+ie))),C+=ie}return[c,f]}return[c,{}]}(s,this.regex,this.handlers),[f,C,M]=c?function pn(a){let c,i=null;return Ci(a.z)||(i=en.create(a.z)),Ci(a.Z)||(i||(i=new bi(a.Z)),c=a.Z),Ci(a.q)||(a.M=3*(a.q-1)+1),Ci(a.h)||(a.h<12&&1===a.a?a.h+=12:12===a.h&&0===a.a&&(a.h=0)),0===a.G&&a.y&&(a.y=-a.y),Ci(a.u)||(a.S=Ii(a.u)),[Object.keys(a).reduce((C,M)=>{const H=(C=>{switch(C){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}})(M);return H&&(C[H]=a[M]),C},{}),i,c]}(c):[null,null,void 0];if(vo(c,"a")&&vo(c,"H"))throw new Se("Can't include meridiem when specifying 24-hour format");return{input:s,tokens:this.tokens,regex:this.regex,rawMatches:i,matches:c,result:f,zone:C,specificOffset:M}}return{input:s,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Mn(a,s,i){return new fn(a,i).explainFromTokens(s)}function Qn(a,s){if(!a)return null;const c=ao.create(s,a).dtFormatter(function Ht(){return St||(St=Ei.fromMillis(1555555555555)),St}()),f=c.formatToParts(),C=c.resolvedOptions();return f.map(M=>function Dt(a,s,i){const{type:c,value:f}=a;if("literal"===c){const ie=/^\s+$/.test(f);return{literal:!ie,val:ie?" ":f}}let M=c;"hour"===c&&(M=null!=s.hour12?s.hour12?"hour12":"hour24":null!=s.hourCycle?"h11"===s.hourCycle||"h12"===s.hourCycle?"hour12":"hour24":i.hour12?"hour12":"hour24");let H=yt[M];if("object"==typeof H&&(H=H[s[c]]),H)return{literal:!1,val:H}}(M,a,C))}const An="Invalid DateTime",ri=864e13;function hi(a){return new $e("unsupported zone",`the zone "${a.name}" is not supported`)}function Rn(a){return null===a.weekData&&(a.weekData=Vn(a.c)),a.weekData}function ki(a){return null===a.localWeekData&&(a.localWeekData=Vn(a.c,a.loc.getMinDaysInFirstWeek(),a.loc.getStartOfWeek())),a.localWeekData}function Ai(a,s){const i={ts:a.ts,zone:a.zone,c:a.c,o:a.o,loc:a.loc,invalid:a.invalid};return new Ei({...i,...s,old:i})}function ar(a,s,i){let c=a-60*s*1e3;const f=i.offset(c);if(s===f)return[c,s];c-=60*(f-s)*1e3;const C=i.offset(c);return f===C?[c,f]:[a-60*Math.min(f,C)*1e3,Math.max(f,C)]}function Ri(a,s){const i=new Date(a+=60*s*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function rr(a,s,i){return ar(Vs(a),s,i)}function Qr(a,s){const i=a.o,c=a.c.year+Math.trunc(s.years),f=a.c.month+Math.trunc(s.months)+3*Math.trunc(s.quarters),C={...a.c,year:c,month:f,day:Math.min(a.c.day,Tr(c,f))+Math.trunc(s.days)+7*Math.trunc(s.weeks)},M=fr.fromObject({years:s.years-Math.trunc(s.years),quarters:s.quarters-Math.trunc(s.quarters),months:s.months-Math.trunc(s.months),weeks:s.weeks-Math.trunc(s.weeks),days:s.days-Math.trunc(s.days),hours:s.hours,minutes:s.minutes,seconds:s.seconds,milliseconds:s.milliseconds}).as("milliseconds"),H=Vs(C);let[ie,Fe]=ar(H,i,a.zone);return 0!==M&&(ie+=M,Fe=a.zone.offset(ie)),{ts:ie,o:Fe}}function Cr(a,s,i,c,f,C){const{setZone:M,zone:H}=i;if(a&&0!==Object.keys(a).length||s){const ie=s||H,Fe=Ei.fromObject(a,{...i,zone:ie,specificOffset:C});return M?Fe:Fe.setZone(H)}return Ei.invalid(new $e("unparsable",`the input "${f}" can't be parsed as ${c}`))}function Co(a,s,i=!0){return a.isValid?ao.create(Mi.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(a,s):null}function oi(a,s){const i=a.c.year>9999||a.c.year<0;let c="";return i&&a.c.year>=0&&(c+="+"),c+=hr(a.c.year,i?6:4),s?(c+="-",c+=hr(a.c.month),c+="-",c+=hr(a.c.day)):(c+=hr(a.c.month),c+=hr(a.c.day)),c}function Yn(a,s,i,c,f,C){let M=hr(a.c.hour);return s?(M+=":",M+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(M+=":")):M+=hr(a.c.minute),(0!==a.c.millisecond||0!==a.c.second||!i)&&(M+=hr(a.c.second),(0!==a.c.millisecond||!c)&&(M+=".",M+=hr(a.c.millisecond,3))),f&&(a.isOffsetFixed&&0===a.offset&&!C?M+="Z":a.o<0?(M+="-",M+=hr(Math.trunc(-a.o/60)),M+=":",M+=hr(Math.trunc(-a.o%60))):(M+="+",M+=hr(Math.trunc(a.o/60)),M+=":",M+=hr(Math.trunc(a.o%60)))),C&&(M+="["+a.zone.ianaName+"]"),M}const ir={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},dr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Jn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},eo=["year","month","day","hour","minute","second","millisecond"],Io=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mo=["year","ordinal","hour","minute","second","millisecond"];function Zo(a){switch(a.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function Xs(a){const s={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"}[a.toLowerCase()];if(!s)throw new gt(a);return s}(a)}}function vi(a,s){const i=Or(s.zone,se.defaultZone);if(!i.isValid)return Ei.invalid(hi(i));const c=Mi.fromObject(s);let f,C;if(Ci(a.year))f=se.now();else{for(const ie of eo)Ci(a[ie])&&(a[ie]=ir[ie]);const M=ho(a)||Lr(a);if(M)return Ei.invalid(M);const H=function zr(a){return Uo[a]||(void 0===Ts&&(Ts=se.now()),Uo[a]=a.offset(Ts)),Uo[a]}(i);[f,C]=rr(a,H,i)}return new Ei({ts:f,zone:i,loc:c,o:C})}function kr(a,s,i){const c=!!Ci(i.round)||i.round,f=(M,H)=>(M=ns(M,c||i.calendary?0:2,!0),s.loc.clone(i).relFormatter(i).format(M,H)),C=M=>i.calendary?s.hasSame(a,M)?0:s.startOf(M).diff(a.startOf(M),M).get(M):s.diff(a,M).get(M);if(i.unit)return f(C(i.unit),i.unit);for(const M of i.units){const H=C(M);if(Math.abs(H)>=1)return f(H,M)}return f(a>s?-0:0,i.units[i.units.length-1])}function to(a){let i,s={};return a.length>0&&"object"==typeof a[a.length-1]?(s=a[a.length-1],i=Array.from(a).slice(0,a.length-1)):i=Array.from(a),[s,i]}let Ts,Uo={};class Ei{constructor(s){const i=s.zone||se.defaultZone;let c=s.invalid||(Number.isNaN(s.ts)?new $e("invalid input"):null)||(i.isValid?null:hi(i));this.ts=Ci(s.ts)?se.now():s.ts;let f=null,C=null;if(!c)if(s.old&&s.old.ts===this.ts&&s.old.zone.equals(i))[f,C]=[s.old.c,s.old.o];else{const H=Br(s.o)&&!s.old?s.o:i.offset(this.ts);f=Ri(this.ts,H),c=Number.isNaN(f.year)?new $e("invalid input"):null,f=c?null:f,C=c?null:H}this._zone=i,this.loc=s.loc||Mi.create(),this.invalid=c,this.weekData=null,this.localWeekData=null,this.c=f,this.o=C,this.isLuxonDateTime=!0}static now(){return new Ei({})}static local(){const[s,i]=to(arguments),[c,f,C,M,H,ie,Fe]=i;return vi({year:c,month:f,day:C,hour:M,minute:H,second:ie,millisecond:Fe},s)}static utc(){const[s,i]=to(arguments),[c,f,C,M,H,ie,Fe]=i;return s.zone=bi.utcInstance,vi({year:c,month:f,day:C,hour:M,minute:H,second:ie,millisecond:Fe},s)}static fromJSDate(s,i={}){const c=function Bs(a){return"[object Date]"===Object.prototype.toString.call(a)}(s)?s.valueOf():NaN;if(Number.isNaN(c))return Ei.invalid("invalid input");const f=Or(i.zone,se.defaultZone);return f.isValid?new Ei({ts:c,zone:f,loc:Mi.fromObject(i)}):Ei.invalid(hi(f))}static fromMillis(s,i={}){if(Br(s))return s<-ri||s>ri?Ei.invalid("Timestamp out of range"):new Ei({ts:s,zone:Or(i.zone,se.defaultZone),loc:Mi.fromObject(i)});throw new Ne(`fromMillis requires a numerical input, but received a ${typeof s} with value ${s}`)}static fromSeconds(s,i={}){if(Br(s))return new Ei({ts:1e3*s,zone:Or(i.zone,se.defaultZone),loc:Mi.fromObject(i)});throw new Ne("fromSeconds requires a numerical input")}static fromObject(s,i={}){s=s||{};const c=Or(i.zone,se.defaultZone);if(!c.isValid)return Ei.invalid(hi(c));const f=Mi.fromObject(i),C=ws(s,Zo),{minDaysInFirstWeek:M,startOfWeek:H}=ti(C,f),ie=se.now(),Fe=Ci(i.specificOffset)?c.offset(ie):i.specificOffset,Nt=!Ci(C.ordinal),Yt=!Ci(C.year),jn=!Ci(C.month)||!Ci(C.day),wn=Yt||jn,Dn=C.weekYear||C.weekNumber;if((wn||Nt)&&Dn)throw new Se("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(jn&&Nt)throw new Se("Can't mix ordinal dates with month/day");const pi=Dn||C.weekday&&!wn;let Fi,Ui,$i=Ri(ie,Fe);pi?(Fi=Io,Ui=dr,$i=Vn($i,M,H)):Nt?(Fi=mo,Ui=Jn,$i=ui($i)):(Fi=eo,Ui=ir);let no=!1;for(const xl of Fi)Ci(C[xl])?C[xl]=no?Ui[xl]:$i[xl]:no=!0;const go=pi?function Wn(a,s=4,i=1){const c=Ko(a.weekYear),f=xr(a.weekNumber,1,js(a.weekYear,s,i)),C=xr(a.weekday,1,7);return c?f?!C&&$t("weekday",a.weekday):$t("week",a.weekNumber):$t("weekYear",a.weekYear)}(C,M,H):Nt?function Rr(a){const s=Ko(a.year),i=xr(a.ordinal,1,Ar(a.year));return s?!i&&$t("ordinal",a.ordinal):$t("year",a.year)}(C):ho(C),vc=go||Lr(C);if(vc)return Ei.invalid(vc);const sl=pi?Hn(C,M,H):Nt?Oi(C):C,[ia,Ps]=rr(sl,Fe,c),Ia=new Ei({ts:ia,zone:c,o:Ps,loc:f});return C.weekday&&wn&&s.weekday!==Ia.weekday?Ei.invalid("mismatched weekday",`you can't specify both a weekday of ${C.weekday} and a date of ${Ia.toISO()}`):Ia.isValid?Ia:Ei.invalid(Ia.invalid)}static fromISO(s,i={}){const[c,f]=function lo(a){return Oo(a,[Ni,la],[Ro,Lo],[_o,dl],[Na,ca])}(s);return Cr(c,f,i,"ISO 8601",s)}static fromRFC2822(s,i={}){const[c,f]=function hl(a){return Oo(function ss(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(a),[nr,Ea])}(s);return Cr(c,f,i,"RFC 2822",s)}static fromHTTP(s,i={}){const[c,f]=function Al(a){return Oo(a,[zs,zi],[nu,zi],[Xl,po])}(s);return Cr(c,f,i,"HTTP",i)}static fromFormat(s,i,c={}){if(Ci(s)||Ci(i))throw new Ne("fromFormat requires an input string and a format");const{locale:f=null,numberingSystem:C=null}=c,M=Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0}),[H,ie,Fe,Nt]=function Nn(a,s,i){const{result:c,zone:f,specificOffset:C,invalidReason:M}=Mn(a,s,i);return[c,f,C,M]}(M,s,i);return Nt?Ei.invalid(Nt):Cr(H,ie,c,`format ${i}`,s,Fe)}static fromString(s,i,c={}){return Ei.fromFormat(s,i,c)}static fromSQL(s,i={}){const[c,f]=function Ca(a){return Oo(a,[ml,la],[Tl,Ss])}(s);return Cr(c,f,i,"SQL",s)}static invalid(s,i=null){if(!s)throw new Ne("need to specify a reason the DateTime is invalid");const c=s instanceof $e?s:new $e(s,i);if(se.throwOnInvalid)throw new mt(c);return new Ei({invalid:c})}static isDateTime(s){return s&&s.isLuxonDateTime||!1}static parseFormatForOpts(s,i={}){const c=Qn(s,Mi.fromObject(i));return c?c.map(f=>f?f.val:null).join(""):null}static expandFormat(s,i={}){return kn(ao.parseFormat(s),Mi.fromObject(i)).map(f=>f.val).join("")}static resetCache(){Ts=void 0,Uo={}}get(s){return this[s]}get isValid(){return null===this.invalid}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?Rn(this).weekYear:NaN}get weekNumber(){return this.isValid?Rn(this).weekNumber:NaN}get weekday(){return this.isValid?Rn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ki(this).weekday:NaN}get localWeekNumber(){return this.isValid?ki(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ki(this).weekYear:NaN}get ordinal(){return this.isValid?ui(this.c).ordinal:NaN}get monthShort(){return this.isValid?Gs.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Gs.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Gs.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Gs.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&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const s=864e5,i=6e4,c=Vs(this.c),f=this.zone.offset(c-s),C=this.zone.offset(c+s),M=this.zone.offset(c-f*i),H=this.zone.offset(c-C*i);if(M===H)return[this];const ie=c-M*i,Fe=c-H*i,Nt=Ri(ie,M),Yt=Ri(Fe,H);return Nt.hour===Yt.hour&&Nt.minute===Yt.minute&&Nt.second===Yt.second&&Nt.millisecond===Yt.millisecond?[Ai(this,{ts:ie}),Ai(this,{ts:Fe})]:[this]}get isInLeapYear(){return Sr(this.year)}get daysInMonth(){return Tr(this.year,this.month)}get daysInYear(){return this.isValid?Ar(this.year):NaN}get weeksInWeekYear(){return this.isValid?js(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?js(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(s={}){const{locale:i,numberingSystem:c,calendar:f}=ao.create(this.loc.clone(s),s).resolvedOptions(this);return{locale:i,numberingSystem:c,outputCalendar:f}}toUTC(s=0,i={}){return this.setZone(bi.instance(s),i)}toLocal(){return this.setZone(se.defaultZone)}setZone(s,{keepLocalTime:i=!1,keepCalendarTime:c=!1}={}){if((s=Or(s,se.defaultZone)).equals(this.zone))return this;if(s.isValid){let f=this.ts;if(i||c){const C=s.offset(this.ts),M=this.toObject();[f]=rr(M,C,s)}return Ai(this,{ts:f,zone:s})}return Ei.invalid(hi(s))}reconfigure({locale:s,numberingSystem:i,outputCalendar:c}={}){return Ai(this,{loc:this.loc.clone({locale:s,numberingSystem:i,outputCalendar:c})})}setLocale(s){return this.reconfigure({locale:s})}set(s){if(!this.isValid)return this;const i=ws(s,Zo),{minDaysInFirstWeek:c,startOfWeek:f}=ti(i,this.loc),C=!Ci(i.weekYear)||!Ci(i.weekNumber)||!Ci(i.weekday),M=!Ci(i.ordinal),H=!Ci(i.year),ie=!Ci(i.month)||!Ci(i.day);if((H||ie||M)&&(i.weekYear||i.weekNumber))throw new Se("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(ie&&M)throw new Se("Can't mix ordinal dates with month/day");let Yt;C?Yt=Hn({...Vn(this.c,c,f),...i},c,f):Ci(i.ordinal)?(Yt={...this.toObject(),...i},Ci(i.day)&&(Yt.day=Math.min(Tr(Yt.year,Yt.month),Yt.day))):Yt=Oi({...ui(this.c),...i});const[jn,wn]=rr(Yt,this.o,this.zone);return Ai(this,{ts:jn,o:wn})}plus(s){return this.isValid?Ai(this,Qr(this,fr.fromDurationLike(s))):this}minus(s){return this.isValid?Ai(this,Qr(this,fr.fromDurationLike(s).negate())):this}startOf(s,{useLocaleWeeks:i=!1}={}){if(!this.isValid)return this;const c={},f=fr.normalizeUnit(s);switch(f){case"years":c.month=1;case"quarters":case"months":c.day=1;case"weeks":case"days":c.hour=0;case"hours":c.minute=0;case"minutes":c.second=0;case"seconds":c.millisecond=0}if("weeks"===f)if(i){const C=this.loc.getStartOfWeek(),{weekday:M}=this;Mthis.valueOf(),Fe=function Bo(a,s,i,c){let[f,C,M,H]=function ha(a,s,i){const c=[["years",(ie,Fe)=>Fe.year-ie.year],["quarters",(ie,Fe)=>Fe.quarter-ie.quarter+4*(Fe.year-ie.year)],["months",(ie,Fe)=>Fe.month-ie.month+12*(Fe.year-ie.year)],["weeks",(ie,Fe)=>{const Nt=Ya(ie,Fe);return(Nt-Nt%7)/7}],["days",Ya]],f={},C=a;let M,H;for(const[ie,Fe]of c)i.indexOf(ie)>=0&&(M=ie,f[ie]=Fe(a,s),H=C.plus(f),H>s?(f[ie]--,(a=C.plus(f))>s&&(H=a,f[ie]--,a=C.plus(f))):a=H);return[a,f,H,M]}(a,s,i);const ie=s-f,Fe=i.filter(Yt=>["hours","minutes","seconds","milliseconds"].indexOf(Yt)>=0);0===Fe.length&&(M0?fr.fromMillis(ie,c).shiftTo(...Fe).plus(Nt):Nt}(M?this:s,M?s:this,C,f);return M?Fe.negate():Fe}diffNow(s="milliseconds",i={}){return this.diff(Ei.now(),s,i)}until(s){return this.isValid?Hr.fromDateTimes(this,s):this}hasSame(s,i,c){if(!this.isValid)return!1;const f=s.valueOf(),C=this.setZone(s.zone,{keepLocalTime:!0});return C.startOf(i,c)<=f&&f<=C.endOf(i,c)}equals(s){return this.isValid&&s.isValid&&this.valueOf()===s.valueOf()&&this.zone.equals(s.zone)&&this.loc.equals(s.loc)}toRelative(s={}){if(!this.isValid)return null;const i=s.base||Ei.fromObject({},{zone:this.zone}),c=s.padding?thisi.valueOf(),Math.min)}static max(...s){if(!s.every(Ei.isDateTime))throw new Ne("max requires all arguments be DateTimes");return ga(s,i=>i.valueOf(),Math.max)}static fromFormatExplain(s,i,c={}){const{locale:f=null,numberingSystem:C=null}=c;return Mn(Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0}),s,i)}static fromStringExplain(s,i,c={}){return Ei.fromFormatExplain(s,i,c)}static buildFormatParser(s,i={}){const{locale:c=null,numberingSystem:f=null}=i,C=Mi.fromOpts({locale:c,numberingSystem:f,defaultToEN:!0});return new fn(C,s)}static fromFormatParser(s,i,c={}){if(Ci(s)||Ci(i))throw new Ne("fromFormatParser requires an input string and a format parser");const{locale:f=null,numberingSystem:C=null}=c,M=Mi.fromOpts({locale:f,numberingSystem:C,defaultToEN:!0});if(!M.equals(i.locale))throw new Ne(`fromFormatParser called with a locale of ${M}, but the format parser was created for ${i.locale}`);const{result:H,zone:ie,specificOffset:Fe,invalidReason:Nt}=i.explainFromTokens(s);return Nt?Ei.invalid(Nt):Cr(H,ie,c,`format ${i.format}`,s,Fe)}static get DATE_SHORT(){return we}static get DATE_MED(){return Oe}static get DATE_MED_WITH_WEEKDAY(){return me}static get DATE_FULL(){return We}static get DATE_HUGE(){return Pe}static get TIME_SIMPLE(){return xt}static get TIME_WITH_SECONDS(){return xe}static get TIME_WITH_SHORT_OFFSET(){return ut}static get TIME_WITH_LONG_OFFSET(){return Rt}static get TIME_24_SIMPLE(){return wt}static get TIME_24_WITH_SECONDS(){return mn}static get TIME_24_WITH_SHORT_OFFSET(){return ni}static get TIME_24_WITH_LONG_OFFSET(){return Zt}static get DATETIME_SHORT(){return _e}static get DATETIME_SHORT_WITH_SECONDS(){return Je}static get DATETIME_MED(){return Ge}static get DATETIME_MED_WITH_SECONDS(){return dt}static get DATETIME_MED_WITH_WEEKDAY(){return rn}static get DATETIME_FULL(){return Q}static get DATETIME_FULL_WITH_SECONDS(){return T}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function Zr(a){if(Ei.isDateTime(a))return a;if(a&&a.valueOf&&Br(a.valueOf()))return Ei.fromJSDate(a);if(a&&"object"==typeof a)return Ei.fromObject(a);throw new Ne(`Unknown datetime argument: ${a}, of type ${typeof a}`)}const Ys=new o.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function wc(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Zl=(()=>{class a extends nn.MJ{constructor(i,c){super(),this._useUTC=!!c?.useUtc,this._firstDayOfWeek=c?.firstDayOfWeek||0,this._defaultOutputCalendar=c?.defaultOutputCalendar||"gregory",this.setLocale(i||Ei.local().locale)}getYear(i){return i.year}getMonth(i){return i.month-1}getDate(i){return i.day}getDayOfWeek(i){return i.weekday}getMonthNames(i){return Gs.months(i,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const i=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function Il(a,s){const i=Array(a);for(let c=0;ci.format(Ei.utc(2017,1,c+1).toJSDate()))}getDayOfWeekNames(i){const c=Gs.weekdays(i,{locale:this.locale});return c.unshift(c.pop()),c}getYearName(i){return i.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(i){return i.daysInMonth}clone(i){return Ei.fromObject(i.toObject(),this._getOptions())}createDate(i,c,f){const C=this._getOptions();if(c<0||c>11)throw Error(`Invalid month index "${c}". Month index has to be between 0 and 11.`);if(f<1)throw Error(`Invalid date "${f}". Date has to be greater than 0.`);const M=this._useUTC?Ei.utc(i,c+1,f,C):Ei.local(i,c+1,f,C);if(!this.isValid(M))throw Error(`Invalid date "${f}". Reason: "${M.invalidReason}".`);return M}today(){const i=this._getOptions();return this._useUTC?Ei.utc(i):Ei.local(i)}parse(i,c){const f=this._getOptions();if("string"==typeof i&&i.length>0){const C=Ei.fromISO(i,f);if(this.isValid(C))return C;const M=Array.isArray(c)?c:[c];if(!c.length)throw Error("Formats array must not be empty.");for(const H of M){const ie=Ei.fromFormat(i,H,f);if(this.isValid(ie))return ie}return this.invalid()}return"number"==typeof i?Ei.fromMillis(i,f):i instanceof Date?Ei.fromJSDate(i,f):i instanceof Ei?Ei.fromMillis(i.toMillis(),f):null}format(i,c){if(!this.isValid(i))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?i.setLocale(this.locale).setZone("utc").toFormat(c):i.setLocale(this.locale).toFormat(c)}addCalendarYears(i,c){return i.reconfigure(this._getOptions()).plus({years:c})}addCalendarMonths(i,c){return i.reconfigure(this._getOptions()).plus({months:c})}addCalendarDays(i,c){return i.reconfigure(this._getOptions()).plus({days:c})}toIso8601(i){return i.toISO()}deserialize(i){const c=this._getOptions();let f;if(i instanceof Date&&(f=Ei.fromJSDate(i,c)),"string"==typeof i){if(!i)return null;f=Ei.fromISO(i,c)}return f&&this.isValid(f)?f:super.deserialize(i)}isDateInstance(i){return i instanceof Ei}isValid(i){return i.isValid}invalid(){return Ei.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(nn.Ju,8),o.KVO(Ys,8))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();var mi=v(9969);function E(a){return new o.wOt(3e3,!1)}function Ua(a){switch(a.length){case 0:return new mi.sf;case 1:return a[0];default:return new mi.ui(a)}}function ku(a,s,i=new Map,c=new Map){const f=[],C=[];let M=-1,H=null;if(s.forEach(ie=>{const Fe=ie.get("offset"),Nt=Fe==M,Yt=Nt&&H||new Map;ie.forEach((jn,wn)=>{let Dn=wn,pi=jn;if("offset"!==wn)switch(Dn=a.normalizePropertyName(Dn,f),pi){case mi.FX:pi=i.get(wn);break;case mi.kp:pi=c.get(wn);break;default:pi=a.normalizeStyleValue(wn,Dn,pi,f)}Yt.set(Dn,pi)}),Nt||C.push(Yt),H=Yt,M=Fe}),f.length)throw function sf(){return new o.wOt(3502,!1)}();return C}function Js(a,s,i,c){switch(s){case"start":a.onStart(()=>c(i&&Nu(i,"start",a)));break;case"done":a.onDone(()=>c(i&&Nu(i,"done",a)));break;case"destroy":a.onDestroy(()=>c(i&&Nu(i,"destroy",a)))}}function Nu(a,s,i){const C=Pu(a.element,a.triggerName,a.fromState,a.toState,s||a.phaseName,i.totalTime??a.totalTime,!!i.disabled),M=a._data;return null!=M&&(C._data=M),C}function Pu(a,s,i,c,f="",C=0,M){return{element:a,triggerName:s,fromState:i,toState:c,phaseName:f,totalTime:C,disabled:!!M}}function qs(a,s,i){let c=a.get(s);return c||a.set(s,c=i),c}function ou(a){const s=a.indexOf(":");return[a.substring(1,s),a.slice(s+1)]}const Wd=typeof document>"u"?null:document.documentElement;function xc(a){const s=a.parentNode||a.host||null;return s===Wd?null:s}let Va=null,Za=!1;function Fu(a,s){for(;s;){if(s===a)return!0;s=xc(s)}return!1}function cf(a,s,i){if(i)return Array.from(a.querySelectorAll(s));const c=a.querySelector(s);return c?[c]:[]}let Lu=(()=>{class a{validateStyleProperty(i){return function Xi(a){Va||(Va=function Kd(){return typeof document<"u"?document.body:null}()||{},Za=!!Va.style&&"WebkitAppearance"in Va.style);let s=!0;return Va.style&&!function Sc(a){return"ebkit"==a.substring(1,6)}(a)&&(s=a in Va.style,!s&&Za&&(s="Webkit"+a.charAt(0).toUpperCase()+a.slice(1)in Va.style)),s}(i)}containsElement(i,c){return Fu(i,c)}getParentElement(i){return xc(i)}query(i,c,f){return cf(i,c,f)}computeStyle(i,c,f){return f||""}animate(i,c,f,C,M,H=[],ie){return new mi.sf(f,C)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();class Bu{static{this.NOOP=new Lu}}class Uu{}const Jp=1e3,Xd="ng-enter",Vu="ng-leave",_n="ng-trigger",lr=".ng-trigger",Yd="ng-animating",ju=".ng-animating";function yr(a){if("number"==typeof a)return a;const s=a.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Hu(parseFloat(s[1]),s[2])}function Hu(a,s){return"s"===s?a*Jp:a}function Rl(a,s,i){return a.hasOwnProperty("duration")?a:function ja(a,s,i){let f,C=0,M="";if("string"==typeof a){const H=a.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===H)return s.push(E()),{duration:0,delay:0,easing:""};f=Hu(parseFloat(H[1]),H[2]);const ie=H[3];null!=ie&&(C=Hu(parseFloat(ie),H[4]));const Fe=H[5];Fe&&(M=Fe)}else f=a;if(!i){let H=!1,ie=s.length;f<0&&(s.push(function O(){return new o.wOt(3100,!1)}()),H=!0),C<0&&(s.push(function D(){return new o.wOt(3101,!1)}()),H=!0),H&&s.splice(ie,0,E())}return{duration:f,delay:C,easing:M}}(a,s,i)}function Ha(a,s,i){s.forEach((c,f)=>{const C=Gu(f);i&&!i.has(f)&&i.set(f,a.style[C]),a.style[C]=c})}function Ac(a,s){s.forEach((i,c)=>{const f=Gu(c);a.style[f]=""})}function zu(a){return Array.isArray(a)?1==a.length?a[0]:(0,mi.K2)(a):a}const Wu=new RegExp("{{\\s*(.+?)\\s*}}","g");function Zd(a){let s=[];if("string"==typeof a){let i;for(;i=Wu.exec(a);)s.push(i[1]);Wu.lastIndex=0}return s}function Wo(a,s,i){const c=`${a}`,f=c.replace(Wu,(C,M)=>{let H=s[M];return null==H&&(i.push(function Z(){return new o.wOt(3003,!1)}()),H=""),H.toString()});return f==c?a:f}const _l=/-+([a-z0-9])/g;function Gu(a){return a.replace(_l,(...s)=>s[1].toUpperCase())}function ea(a,s,i){switch(s.type){case mi.If.Trigger:return a.visitTrigger(s,i);case mi.If.State:return a.visitState(s,i);case mi.If.Transition:return a.visitTransition(s,i);case mi.If.Sequence:return a.visitSequence(s,i);case mi.If.Group:return a.visitGroup(s,i);case mi.If.Animate:return a.visitAnimate(s,i);case mi.If.Keyframes:return a.visitKeyframes(s,i);case mi.If.Style:return a.visitStyle(s,i);case mi.If.Reference:return a.visitReference(s,i);case mi.If.AnimateChild:return a.visitAnimateChild(s,i);case mi.If.AnimateRef:return a.visitAnimateRef(s,i);case mi.If.Query:return a.visitQuery(s,i);case mi.If.Stagger:return a.visitStagger(s,i);default:throw function De(){return new o.wOt(3004,!1)}()}}function Ku(a,s){return window.getComputedStyle(a)[s]}const hf=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Xu extends Uu{normalizePropertyName(s,i){return Gu(s)}normalizeStyleValue(s,i,c,f){let C="";const M=c.toString().trim();if(hf.has(i)&&0!==c&&"0"!==c)if("number"==typeof c)C="px";else{const H=c.match(/^[+-]?[\d\.]+([a-z]*)$/);H&&0==H[1].length&&f.push(function ct(){return new o.wOt(3005,!1)}())}return M+C}}const su="*";const Tc=new Set(["true","1"]),Qu=new Set(["false","0"]);function Jo(a,s){const i=Tc.has(a)||Qu.has(a),c=Tc.has(s)||Qu.has(s);return(f,C)=>{let M=a==su||a==f,H=s==su||s==C;return!M&&i&&"boolean"==typeof f&&(M=f?Tc.has(a):Qu.has(a)),!H&&c&&"boolean"==typeof C&&(H=C?Tc.has(s):Qu.has(s)),M&&H}}const co=new RegExp("s*:selfs*,?","g");function Zu(a,s,i,c){return new yf(a).build(s,i,c)}class yf{constructor(s){this._driver=s}build(s,i,c){const f=new wf(i);return this._resetContextStyleTimingState(f),ea(this,zu(s),f)}_resetContextStyleTimingState(s){s.currentQuerySelector="",s.collectedStyles=new Map,s.collectedStyles.set("",new Map),s.currentTime=0}visitTrigger(s,i){let c=i.queryCount=0,f=i.depCount=0;const C=[],M=[];return"@"==s.name.charAt(0)&&i.errors.push(function ln(){return new o.wOt(3006,!1)}()),s.definitions.forEach(H=>{if(this._resetContextStyleTimingState(i),H.type==mi.If.State){const ie=H,Fe=ie.name;Fe.toString().split(/\s*,\s*/).forEach(Nt=>{ie.name=Nt,C.push(this.visitState(ie,i))}),ie.name=Fe}else if(H.type==mi.If.Transition){const ie=this.visitTransition(H,i);c+=ie.queryCount,f+=ie.depCount,M.push(ie)}else i.errors.push(function Qt(){return new o.wOt(3007,!1)}())}),{type:mi.If.Trigger,name:s.name,states:C,transitions:M,queryCount:c,depCount:f,options:null}}visitState(s,i){const c=this.visitStyle(s.styles,i),f=s.options&&s.options.params||null;if(c.containsDynamicStyles){const C=new Set,M=f||{};c.styles.forEach(H=>{H instanceof Map&&H.forEach(ie=>{Zd(ie).forEach(Fe=>{M.hasOwnProperty(Fe)||C.add(Fe)})})}),C.size&&i.errors.push(function ei(){return new o.wOt(3008,!1)}(0,C.values()))}return{type:mi.If.State,name:s.name,style:c,options:f?{params:f}:null}}visitTransition(s,i){i.queryCount=0,i.depCount=0;const c=ea(this,zu(s.animation),i),f=function mf(a,s){const i=[];return"string"==typeof a?a.split(/\s*,\s*/).forEach(c=>function gf(a,s,i){if(":"==a[0]){const ie=function vf(a,s){switch(a){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,c)=>parseFloat(c)>parseFloat(i);case":decrement":return(i,c)=>parseFloat(c) *"}}(a,i);if("function"==typeof ie)return void s.push(ie);a=ie}const c=a.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return i.push(function Rs(){return new o.wOt(3015,!1)}()),s;const f=c[1],C=c[2],M=c[3];s.push(Jo(f,M)),"<"==C[0]&&(f!=su||M!=su)&&s.push(Jo(M,f))}(c,i,s)):i.push(a),i}(s.expr,i.errors);return{type:mi.If.Transition,matchers:f,animation:c,queryCount:i.queryCount,depCount:i.depCount,options:ql(s.options)}}visitSequence(s,i){return{type:mi.If.Sequence,steps:s.steps.map(c=>ea(this,c,i)),options:ql(s.options)}}visitGroup(s,i){const c=i.currentTime;let f=0;const C=s.steps.map(M=>{i.currentTime=c;const H=ea(this,M,i);return f=Math.max(f,i.currentTime),H});return i.currentTime=f,{type:mi.If.Group,steps:C,options:ql(s.options)}}visitAnimate(s,i){const c=function qa(a,s){if(a.hasOwnProperty("duration"))return a;if("number"==typeof a)return Ic(Rl(a,s).duration,0,"");const i=a;if(i.split(/\s+/).some(C=>"{"==C.charAt(0)&&"{"==C.charAt(1))){const C=Ic(0,0,"");return C.dynamic=!0,C.strValue=i,C}const f=Rl(i,s);return Ic(f.duration,f.delay,f.easing)}(s.timings,i.errors);i.currentAnimateTimings=c;let f,C=s.styles?s.styles:(0,mi.iF)({});if(C.type==mi.If.Keyframes)f=this.visitKeyframes(C,i);else{let M=s.styles,H=!1;if(!M){H=!0;const Fe={};c.easing&&(Fe.easing=c.easing),M=(0,mi.iF)(Fe)}i.currentTime+=c.duration+c.delay;const ie=this.visitStyle(M,i);ie.isEmptyStep=H,f=ie}return i.currentAnimateTimings=null,{type:mi.If.Animate,timings:c,style:f,options:null}}visitStyle(s,i){const c=this._makeStyleAst(s,i);return this._validateStyleAst(c,i),c}_makeStyleAst(s,i){const c=[],f=Array.isArray(s.styles)?s.styles:[s.styles];for(let H of f)"string"==typeof H?H===mi.kp?c.push(H):i.errors.push(new o.wOt(3002,!1)):c.push(new Map(Object.entries(H)));let C=!1,M=null;return c.forEach(H=>{if(H instanceof Map&&(H.has("easing")&&(M=H.get("easing"),H.delete("easing")),!C))for(let ie of H.values())if(ie.toString().indexOf("{{")>=0){C=!0;break}}),{type:mi.If.Style,styles:c,easing:M,offset:s.offset,containsDynamicStyles:C,options:null}}_validateStyleAst(s,i){const c=i.currentAnimateTimings;let f=i.currentTime,C=i.currentTime;c&&C>0&&(C-=c.duration+c.delay),s.styles.forEach(M=>{"string"!=typeof M&&M.forEach((H,ie)=>{const Fe=i.collectedStyles.get(i.currentQuerySelector),Nt=Fe.get(ie);let Yt=!0;Nt&&(C!=f&&C>=Nt.startTime&&f<=Nt.endTime&&(i.errors.push(function Zi(){return new o.wOt(3010,!1)}()),Yt=!1),C=Nt.startTime),Yt&&Fe.set(ie,{startTime:C,endTime:f}),i.options&&function df(a,s,i){const c=s.params||{},f=Zd(a);f.length&&f.forEach(C=>{c.hasOwnProperty(C)||i.push(function R(){return new o.wOt(3001,!1)}())})}(H,i.options,i.errors)})})}visitKeyframes(s,i){const c={type:mi.If.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(function us(){return new o.wOt(3011,!1)}()),c;let C=0;const M=[];let H=!1,ie=!1,Fe=0;const Nt=s.steps.map(Ui=>{const $i=this._makeStyleAst(Ui,i);let no=null!=$i.offset?$i.offset:function au(a){if("string"==typeof a)return null;let s=null;if(Array.isArray(a))a.forEach(i=>{if(i instanceof Map&&i.has("offset")){const c=i;s=parseFloat(c.get("offset")),c.delete("offset")}});else if(a instanceof Map&&a.has("offset")){const i=a;s=parseFloat(i.get("offset")),i.delete("offset")}return s}($i.styles),go=0;return null!=no&&(C++,go=$i.offset=no),ie=ie||go<0||go>1,H=H||go0&&C{const no=jn>0?$i==wn?1:jn*$i:M[$i],go=no*Fi;i.currentTime=Dn+pi.delay+go,pi.duration=go,this._validateStyleAst(Ui,i),Ui.offset=no,c.styles.push(Ui)}),c}visitReference(s,i){return{type:mi.If.Reference,animation:ea(this,zu(s.animation),i),options:ql(s.options)}}visitAnimateChild(s,i){return i.depCount++,{type:mi.If.AnimateChild,options:ql(s.options)}}visitAnimateRef(s,i){return{type:mi.If.AnimateRef,animation:this.visitReference(s.animation,i),options:ql(s.options)}}visitQuery(s,i){const c=i.currentQuerySelector,f=s.options||{};i.queryCount++,i.currentQuery=s;const[C,M]=function nm(a){const s=!!a.split(/\s*,\s*/).find(i=>":self"==i);return s&&(a=a.replace(co,"")),a=a.replace(/@\*/g,lr).replace(/@\w+/g,i=>lr+"-"+i.slice(1)).replace(/:animating/g,ju),[a,s]}(s.selector);i.currentQuerySelector=c.length?c+" "+C:C,qs(i.collectedStyles,i.currentQuerySelector,new Map);const H=ea(this,zu(s.animation),i);return i.currentQuery=null,i.currentQuerySelector=c,{type:mi.If.Query,selector:C,limit:f.limit||0,optional:!!f.optional,includeSelf:M,animation:H,originalSelector:s.selector,options:ql(s.options)}}visitStagger(s,i){i.currentQuery||i.errors.push(function Ml(){return new o.wOt(3013,!1)}());const c="full"===s.timings?{duration:0,delay:0,easing:"full"}:Rl(s.timings,i.errors,!0);return{type:mi.If.Stagger,animation:ea(this,zu(s.animation),i),timings:c,options:null}}}class wf{constructor(s){this.errors=s,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function ql(a){return a?(a={...a}).params&&(a.params=function bf(a){return a?{...a}:null}(a.params)):a={},a}function Ic(a,s,i){return{duration:a,delay:s,easing:i}}function Mc(a,s,i,c,f,C,M=null,H=!1){return{type:1,element:a,keyframes:s,preStyleProps:i,postStyleProps:c,duration:f,delay:C,totalTime:f+C,easing:M,subTimeline:H}}class ec{constructor(){this._map=new Map}get(s){return this._map.get(s)||[]}append(s,i){let c=this._map.get(s);c||this._map.set(s,c=[]),c.push(...i)}has(s){return this._map.has(s)}clear(){this._map.clear()}}const im=new RegExp(":enter","g"),Oc=new RegExp(":leave","g");function el(a,s,i,c,f,C=new Map,M=new Map,H,ie,Fe=[]){return(new Cf).buildKeyframes(a,s,i,c,f,C,M,H,ie,Fe)}class Cf{buildKeyframes(s,i,c,f,C,M,H,ie,Fe,Nt=[]){Fe=Fe||new ec;const Yt=new Ju(s,i,Fe,f,C,Nt,[]);Yt.options=ie;const jn=ie.delay?yr(ie.delay):0;Yt.currentTimeline.delayNextStep(jn),Yt.currentTimeline.setStyles([M],null,Yt.errors,ie),ea(this,c,Yt);const wn=Yt.timelines.filter(Dn=>Dn.containsAnimation());if(wn.length&&H.size){let Dn;for(let pi=wn.length-1;pi>=0;pi--){const Fi=wn[pi];if(Fi.element===i){Dn=Fi;break}}Dn&&!Dn.allowOnlyTimelineStyles()&&Dn.setStyles([H],null,Yt.errors,ie)}return wn.length?wn.map(Dn=>Dn.buildKeyframes()):[Mc(i,[],[],[],0,jn,"",!1)]}visitTrigger(s,i){}visitState(s,i){}visitTransition(s,i){}visitAnimateChild(s,i){const c=i.subInstructions.get(i.element);if(c){const f=i.createSubContext(s.options),C=i.currentTimeline.currentTime,M=this._visitSubInstructions(c,f,f.options);C!=M&&i.transformIntoNewTimeline(M)}i.previousNode=s}visitAnimateRef(s,i){const c=i.createSubContext(s.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([s.options,s.animation.options],i,c),this.visitReference(s.animation,c),i.transformIntoNewTimeline(c.currentTimeline.currentTime),i.previousNode=s}_applyAnimationRefDelays(s,i,c){for(const f of s){const C=f?.delay;if(C){const M="number"==typeof C?C:yr(Wo(C,f?.params??{},i.errors));c.delayNextStep(M)}}}_visitSubInstructions(s,i,c){let C=i.currentTimeline.currentTime;const M=null!=c.duration?yr(c.duration):null,H=null!=c.delay?yr(c.delay):null;return 0!==M&&s.forEach(ie=>{const Fe=i.appendInstructionToTimeline(ie,M,H);C=Math.max(C,Fe.duration+Fe.delay)}),C}visitReference(s,i){i.updateOptions(s.options,!0),ea(this,s.animation,i),i.previousNode=s}visitSequence(s,i){const c=i.subContextCount;let f=i;const C=s.options;if(C&&(C.params||C.delay)&&(f=i.createSubContext(C),f.transformIntoNewTimeline(),null!=C.delay)){f.previousNode.type==mi.If.Style&&(f.currentTimeline.snapshotCurrentStyles(),f.previousNode=tc);const M=yr(C.delay);f.delayNextStep(M)}s.steps.length&&(s.steps.forEach(M=>ea(this,M,f)),f.currentTimeline.applyStylesToKeyframe(),f.subContextCount>c&&f.transformIntoNewTimeline()),i.previousNode=s}visitGroup(s,i){const c=[];let f=i.currentTimeline.currentTime;const C=s.options&&s.options.delay?yr(s.options.delay):0;s.steps.forEach(M=>{const H=i.createSubContext(s.options);C&&H.delayNextStep(C),ea(this,M,H),f=Math.max(f,H.currentTimeline.currentTime),c.push(H.currentTimeline)}),c.forEach(M=>i.currentTimeline.mergeTimelineCollectedStyles(M)),i.transformIntoNewTimeline(f),i.previousNode=s}_visitTiming(s,i){if(s.dynamic){const c=s.strValue;return Rl(i.params?Wo(c,i.params,i.errors):c,i.errors)}return{duration:s.duration,delay:s.delay,easing:s.easing}}visitAnimate(s,i){const c=i.currentAnimateTimings=this._visitTiming(s.timings,i),f=i.currentTimeline;c.delay&&(i.incrementTime(c.delay),f.snapshotCurrentStyles());const C=s.style;C.type==mi.If.Keyframes?this.visitKeyframes(C,i):(i.incrementTime(c.duration),this.visitStyle(C,i),f.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=s}visitStyle(s,i){const c=i.currentTimeline,f=i.currentAnimateTimings;!f&&c.hasCurrentStyleProperties()&&c.forwardFrame();const C=f&&f.easing||s.easing;s.isEmptyStep?c.applyEmptyStep(C):c.setStyles(s.styles,C,i.errors,i.options),i.previousNode=s}visitKeyframes(s,i){const c=i.currentAnimateTimings,f=i.currentTimeline.duration,C=c.duration,H=i.createSubContext().currentTimeline;H.easing=c.easing,s.styles.forEach(ie=>{H.forwardTime((ie.offset||0)*C),H.setStyles(ie.styles,ie.easing,i.errors,i.options),H.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(H),i.transformIntoNewTimeline(f+C),i.previousNode=s}visitQuery(s,i){const c=i.currentTimeline.currentTime,f=s.options||{},C=f.delay?yr(f.delay):0;C&&(i.previousNode.type===mi.If.Style||0==c&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=tc);let M=c;const H=i.invokeQuery(s.selector,s.originalSelector,s.limit,s.includeSelf,!!f.optional,i.errors);i.currentQueryTotal=H.length;let ie=null;H.forEach((Fe,Nt)=>{i.currentQueryIndex=Nt;const Yt=i.createSubContext(s.options,Fe);C&&Yt.delayNextStep(C),Fe===i.element&&(ie=Yt.currentTimeline),ea(this,s.animation,Yt),Yt.currentTimeline.applyStylesToKeyframe(),M=Math.max(M,Yt.currentTimeline.currentTime)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(M),ie&&(i.currentTimeline.mergeTimelineCollectedStyles(ie),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=s}visitStagger(s,i){const c=i.parentContext,f=i.currentTimeline,C=s.timings,M=Math.abs(C.duration),H=M*(i.currentQueryTotal-1);let ie=M*i.currentQueryIndex;switch(C.duration<0?"reverse":C.easing){case"reverse":ie=H-ie;break;case"full":ie=c.currentStaggerTime}const Nt=i.currentTimeline;ie&&Nt.delayNextStep(ie);const Yt=Nt.currentTime;ea(this,s.animation,i),i.previousNode=s,c.currentStaggerTime=f.currentTime-Yt+(f.startTime-c.currentTimeline.startTime)}}const tc={};class Ju{constructor(s,i,c,f,C,M,H,ie){this._driver=s,this.element=i,this.subInstructions=c,this._enterClassName=f,this._leaveClassName=C,this.errors=M,this.timelines=H,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=tc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ie||new qu(this._driver,i,0),H.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(s,i){if(!s)return;const c=s;let f=this.options;null!=c.duration&&(f.duration=yr(c.duration)),null!=c.delay&&(f.delay=yr(c.delay));const C=c.params;if(C){let M=f.params;M||(M=this.options.params={}),Object.keys(C).forEach(H=>{(!i||!M.hasOwnProperty(H))&&(M[H]=Wo(C[H],M,this.errors))})}}_copyOptions(){const s={};if(this.options){const i=this.options.params;if(i){const c=s.params={};Object.keys(i).forEach(f=>{c[f]=i[f]})}}return s}createSubContext(s=null,i,c){const f=i||this.element,C=new Ju(this._driver,f,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(f,c||0));return C.previousNode=this.previousNode,C.currentAnimateTimings=this.currentAnimateTimings,C.options=this._copyOptions(),C.updateOptions(s),C.currentQueryIndex=this.currentQueryIndex,C.currentQueryTotal=this.currentQueryTotal,C.parentContext=this,this.subContextCount++,C}transformIntoNewTimeline(s){return this.previousNode=tc,this.currentTimeline=this.currentTimeline.fork(this.element,s),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(s,i,c){const f={duration:i??s.duration,delay:this.currentTimeline.currentTime+(c??0)+s.delay,easing:""},C=new rm(this._driver,s.element,s.keyframes,s.preStyleProps,s.postStyleProps,f,s.stretchStartingKeyframe);return this.timelines.push(C),f}incrementTime(s){this.currentTimeline.forwardTime(this.currentTimeline.duration+s)}delayNextStep(s){s>0&&this.currentTimeline.delayNextStep(s)}invokeQuery(s,i,c,f,C,M){let H=[];if(f&&H.push(this.element),s.length>0){s=(s=s.replace(im,"."+this._enterClassName)).replace(Oc,"."+this._leaveClassName);let Fe=this._driver.query(this.element,s,1!=c);0!==c&&(Fe=c<0?Fe.slice(Fe.length+c,Fe.length):Fe.slice(0,c)),H.push(...Fe)}return!C&&0==H.length&&M.push(function Fa(){return new o.wOt(3014,!1)}()),H}}class qu{constructor(s,i,c,f){this._driver=s,this.element=i,this.startTime=c,this._elementTimelineStylesLookup=f,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(s){const i=1===this._keyframes.size&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+s),i&&this.snapshotCurrentStyles()):this.startTime+=s}fork(s,i){return this.applyStylesToKeyframe(),new qu(this._driver,s,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(s){this.applyStylesToKeyframe(),this.duration=s,this._loadKeyframe()}_updateStyle(s,i){this._localTimelineStyles.set(s,i),this._globalTimelineStyles.set(s,i),this._styleSummary.set(s,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(s){s&&this._previousKeyframe.set("easing",s);for(let[i,c]of this._globalTimelineStyles)this._backFill.set(i,c||mi.kp),this._currentKeyframe.set(i,mi.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(s,i,c,f){i&&this._previousKeyframe.set("easing",i);const C=f&&f.params||{},M=function om(a,s){const i=new Map;let c;return a.forEach(f=>{if("*"===f){c??=s.keys();for(let C of c)i.set(C,mi.kp)}else for(let[C,M]of f)i.set(C,M)}),i}(s,this._globalTimelineStyles);for(let[H,ie]of M){const Fe=Wo(ie,C,c);this._pendingStyles.set(H,Fe),this._localTimelineStyles.has(H)||this._backFill.set(H,this._globalTimelineStyles.get(H)??mi.kp),this._updateStyle(H,Fe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((s,i)=>{this._currentKeyframe.set(i,s)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((s,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,s)}))}snapshotCurrentStyles(){for(let[s,i]of this._localTimelineStyles)this._pendingStyles.set(s,i),this._updateStyle(s,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const s=[];for(let i in this._currentKeyframe)s.push(i);return s}mergeTimelineCollectedStyles(s){s._styleSummary.forEach((i,c)=>{const f=this._styleSummary.get(c);(!f||i.time>f.time)&&this._updateStyle(c,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const s=new Set,i=new Set,c=1===this._keyframes.size&&0===this.duration;let f=[];this._keyframes.forEach((H,ie)=>{const Fe=new Map([...this._backFill,...H]);Fe.forEach((Nt,Yt)=>{Nt===mi.FX?s.add(Yt):Nt===mi.kp&&i.add(Yt)}),c||Fe.set("offset",ie/this.duration),f.push(Fe)});const C=[...s.values()],M=[...i.values()];if(c){const H=f[0],ie=new Map(H);H.set("offset",0),ie.set("offset",1),f=[H,ie]}return Mc(this.element,f,C,M,this.duration,this.startTime,this.easing,!1)}}class rm extends qu{constructor(s,i,c,f,C,M,H=!1){super(s,i,M.delay),this.keyframes=c,this.preStyleProps=f,this.postStyleProps=C,this._stretchStartingKeyframe=H,this.timings={duration:M.duration,delay:M.delay,easing:M.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let s=this.keyframes,{delay:i,duration:c,easing:f}=this.timings;if(this._stretchStartingKeyframe&&i){const C=[],M=c+i,H=i/M,ie=new Map(s[0]);ie.set("offset",0),C.push(ie);const Fe=new Map(s[0]);Fe.set("offset",Df(H)),C.push(Fe);const Nt=s.length-1;for(let Yt=1;Yt<=Nt;Yt++){let jn=new Map(s[Yt]);const wn=jn.get("offset");jn.set("offset",Df((i+wn*c)/M)),C.push(jn)}c=M,i=0,f="",s=C}return Mc(this.element,s,this.preStyleProps,this.postStyleProps,c,i,f,!0)}}function Df(a,s=3){const i=Math.pow(10,s-1);return Math.round(a*i)/i}function sm(a,s,i,c,f,C,M,H,ie,Fe,Nt,Yt,jn){return{type:0,element:a,triggerName:s,isRemovalTransition:f,fromState:i,fromStyles:C,toState:c,toStyles:M,timelines:H,queriedElements:ie,preStyleProps:Fe,postStyleProps:Nt,totalTime:Yt,errors:jn}}const nc={};class Nl{constructor(s,i,c){this._triggerName=s,this.ast=i,this._stateStyles=c}match(s,i,c,f){return function lu(a,s,i,c,f){return a.some(C=>C(s,i,c,f))}(this.ast.matchers,s,i,c,f)}buildStyles(s,i,c){let f=this._stateStyles.get("*");return void 0!==s&&(f=this._stateStyles.get(s?.toString())||f),f?f.buildStyles(i,c):new Map}build(s,i,c,f,C,M,H,ie,Fe,Nt){const Yt=[],jn=this.ast.options&&this.ast.options.params||nc,Dn=this.buildStyles(c,H&&H.params||nc,Yt),pi=ie&&ie.params||nc,Fi=this.buildStyles(f,pi,Yt),Ui=new Set,$i=new Map,no=new Map,go="void"===f,vc={params:eh(pi,jn),delay:this.ast.options?.delay},sl=Nt?[]:el(s,i,this.ast.animation,C,M,Dn,Fi,vc,Fe,Yt);let ia=0;return sl.forEach(Ps=>{ia=Math.max(Ps.duration+Ps.delay,ia)}),Yt.length?sm(i,this._triggerName,c,f,go,Dn,Fi,[],[],$i,no,ia,Yt):(sl.forEach(Ps=>{const Ia=Ps.element,xl=qs($i,Ia,new Set);Ps.preStyleProps.forEach(Vd=>xl.add(Vd));const Cg=qs(no,Ia,new Set);Ps.postStyleProps.forEach(Vd=>Cg.add(Vd)),Ia!==i&&Ui.add(Ia)}),sm(i,this._triggerName,c,f,go,Dn,Fi,sl,[...Ui.values()],$i,no,ia))}}function eh(a,s){const i={...s};return Object.entries(a).forEach(([c,f])=>{null!=f&&(i[c]=f)}),i}class cu{constructor(s,i,c){this.styles=s,this.defaultParams=i,this.normalizer=c}buildStyles(s,i){const c=new Map,f=eh(s,this.defaultParams);return this.styles.styles.forEach(C=>{"string"!=typeof C&&C.forEach((M,H)=>{M&&(M=Wo(M,f,i));const ie=this.normalizer.normalizePropertyName(H,i);M=this.normalizer.normalizeStyleValue(H,ie,M,i),c.set(H,M)})}),c}}class td{constructor(s,i,c){this.name=s,this.ast=i,this._normalizer=c,this.transitionFactories=[],this.states=new Map,i.states.forEach(f=>{this.states.set(f.name,new cu(f.style,f.options&&f.options.params||{},c))}),xf(this.states,"true","1"),xf(this.states,"false","0"),i.transitions.forEach(f=>{this.transitionFactories.push(new Nl(s,f,this.states))}),this.fallbackTransition=function nd(a,s){return new Nl(a,{type:mi.If.Transition,animation:{type:mi.If.Sequence,steps:[],options:null},matchers:[(M,H)=>!0],options:null,queryCount:0,depCount:0},s)}(s,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(s,i,c,f){return this.transitionFactories.find(M=>M.match(s,i,c,f))||null}matchStyles(s,i,c){return this.fallbackTransition.buildStyles(s,i,c)}}function xf(a,s,i){a.has(s)?a.has(i)||a.set(i,a.get(s)):a.has(i)&&a.set(s,a.get(i))}const Sf=new ec;class id{constructor(s,i,c){this.bodyNode=s,this._driver=i,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(s,i){const c=[],C=Zu(this._driver,i,c,[]);if(c.length)throw function La(){return new o.wOt(3503,!1)}();this._animations.set(s,C)}_buildPlayer(s,i,c){const f=s.element,C=ku(this._normalizer,s.keyframes,i,c);return this._driver.animate(f,C,s.duration,s.delay,s.easing,[],!0)}create(s,i,c={}){const f=[],C=this._animations.get(s);let M;const H=new Map;if(C?(M=el(this._driver,i,C,Xd,Vu,new Map,new Map,c,Sf,f),M.forEach(Nt=>{const Yt=qs(H,Nt.element,new Map);Nt.postStyleProps.forEach(jn=>Yt.set(jn,null))})):(f.push(function af(){return new o.wOt(3300,!1)}()),M=[]),f.length)throw function lf(){return new o.wOt(3504,!1)}();H.forEach((Nt,Yt)=>{Nt.forEach((jn,wn)=>{Nt.set(wn,this._driver.computeStyle(Yt,wn,mi.kp))})});const Fe=Ua(M.map(Nt=>{const Yt=H.get(Nt.element);return this._buildPlayer(Nt,new Map,Yt)}));return this._playersById.set(s,Fe),Fe.onDestroy(()=>this.destroy(s)),this.players.push(Fe),Fe}destroy(s){const i=this._getPlayer(s);i.destroy(),this._playersById.delete(s);const c=this.players.indexOf(i);c>=0&&this.players.splice(c,1)}_getPlayer(s){const i=this._playersById.get(s);if(!i)throw function vr(){return new o.wOt(3301,!1)}();return i}listen(s,i,c,f){const C=Pu(i,"","","");return Js(this._getPlayer(s),c,C,f),()=>{}}command(s,i,c,f){if("register"==c)return void this.register(s,f[0]);if("create"==c)return void this.create(s,i,f[0]||{});const C=this._getPlayer(s);switch(c){case"play":C.play();break;case"pause":C.pause();break;case"reset":C.reset();break;case"restart":C.restart();break;case"finish":C.finish();break;case"init":C.init();break;case"setPosition":C.setPosition(parseFloat(f[0]));break;case"destroy":this.destroy(s)}}}const th="ng-animate-queued",ic="ng-animate-disabled",rd=[],rc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},od={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Sa="__ng_removed";class sd{get params(){return this.options.params}constructor(s,i=""){this.namespaceId=i;const c=s&&s.hasOwnProperty("value");if(this.value=function ad(a){return a??null}(c?s.value:s),c){const{value:C,...M}=s;this.options=M}else this.options={};this.options.params||(this.options.params={})}absorbOptions(s){const i=s.params;if(i){const c=this.options.params;Object.keys(i).forEach(f=>{null==c[f]&&(c[f]=i[f])})}}}const kc="void",Nc=new sd(kc);class lm{constructor(s,i,c){this.id=s,this.hostElement=i,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,fa(i,this._hostClassName)}listen(s,i,c,f){if(!this._triggers.has(i))throw function Ec(){return new o.wOt(3302,!1)}();if(null==c||0==c.length)throw function Cc(){return new o.wOt(3303,!1)}();if(!function Pl(a){return"start"==a||"done"==a}(c))throw function Is(){return new o.wOt(3400,!1)}();const C=qs(this._elementListeners,s,[]),M={name:i,phase:c,callback:f};C.push(M);const H=qs(this._engine.statesByElement,s,new Map);return H.has(i)||(fa(s,_n),fa(s,_n+"-"+i),H.set(i,Nc)),()=>{this._engine.afterFlush(()=>{const ie=C.indexOf(M);ie>=0&&C.splice(ie,1),this._triggers.has(i)||H.delete(i)})}}register(s,i){return!this._triggers.has(s)&&(this._triggers.set(s,i),!0)}_getTrigger(s){const i=this._triggers.get(s);if(!i)throw function Ba(){return new o.wOt(3401,!1)}();return i}trigger(s,i,c,f=!0){const C=this._getTrigger(i),M=new nl(this.id,i,s);let H=this._engine.statesByElement.get(s);H||(fa(s,_n),fa(s,_n+"-"+i),this._engine.statesByElement.set(s,H=new Map));let ie=H.get(i);const Fe=new sd(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&ie&&Fe.absorbOptions(ie.options),H.set(i,Fe),ie||(ie=Nc),Fe.value!==kc&&ie.value===Fe.value){if(!function Mf(a,s){const i=Object.keys(a),c=Object.keys(s);if(i.length!=c.length)return!1;for(let f=0;f{Ac(s,Fi),Ha(s,Ui)})}return}const jn=qs(this._engine.playersByElement,s,[]);jn.forEach(pi=>{pi.namespaceId==this.id&&pi.triggerName==i&&pi.queued&&pi.destroy()});let wn=C.matchTransition(ie.value,Fe.value,s,Fe.params),Dn=!1;if(!wn){if(!f)return;wn=C.fallbackTransition,Dn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:i,transition:wn,fromState:ie,toState:Fe,player:M,isFallbackTransition:Dn}),Dn||(fa(s,th),M.onStart(()=>{$a(s,th)})),M.onDone(()=>{let pi=this.players.indexOf(M);pi>=0&&this.players.splice(pi,1);const Fi=this._engine.playersByElement.get(s);if(Fi){let Ui=Fi.indexOf(M);Ui>=0&&Fi.splice(Ui,1)}}),this.players.push(M),jn.push(M),M}deregister(s){this._triggers.delete(s),this._engine.statesByElement.forEach(i=>i.delete(s)),this._elementListeners.forEach((i,c)=>{this._elementListeners.set(c,i.filter(f=>f.name!=s))})}clearElementCache(s){this._engine.statesByElement.delete(s),this._elementListeners.delete(s);const i=this._engine.playersByElement.get(s);i&&(i.forEach(c=>c.destroy()),this._engine.playersByElement.delete(s))}_signalRemovalForInnerTriggers(s,i){const c=this._engine.driver.query(s,lr,!0);c.forEach(f=>{if(f[Sa])return;const C=this._engine.fetchNamespacesByElement(f);C.size?C.forEach(M=>M.triggerLeaveAnimation(f,i,!1,!0)):this.clearElementCache(f)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(f=>this.clearElementCache(f)))}triggerLeaveAnimation(s,i,c,f){const C=this._engine.statesByElement.get(s),M=new Map;if(C){const H=[];if(C.forEach((ie,Fe)=>{if(M.set(Fe,ie.value),this._triggers.has(Fe)){const Nt=this.trigger(s,Fe,kc,f);Nt&&H.push(Nt)}}),H.length)return this._engine.markElementAsRemoved(this.id,s,!0,i,M),c&&Ua(H).onDone(()=>this._engine.processLeaveNode(s)),!0}return!1}prepareLeaveAnimationListeners(s){const i=this._elementListeners.get(s),c=this._engine.statesByElement.get(s);if(i&&c){const f=new Set;i.forEach(C=>{const M=C.name;if(f.has(M))return;f.add(M);const ie=this._triggers.get(M).fallbackTransition,Fe=c.get(M)||Nc,Nt=new sd(kc),Yt=new nl(this.id,M,s);this._engine.totalQueuedPlayers++,this._queue.push({element:s,triggerName:M,transition:ie,fromState:Fe,toState:Nt,player:Yt,isFallbackTransition:!0})})}}removeNode(s,i){const c=this._engine;if(s.childElementCount&&this._signalRemovalForInnerTriggers(s,i),this.triggerLeaveAnimation(s,i,!0))return;let f=!1;if(c.totalAnimations){const C=c.players.length?c.playersByQueriedElement.get(s):[];if(C&&C.length)f=!0;else{let M=s;for(;M=M.parentNode;)if(c.statesByElement.get(M)){f=!0;break}}}if(this.prepareLeaveAnimationListeners(s),f)c.markElementAsRemoved(this.id,s,!1,i);else{const C=s[Sa];(!C||C===rc)&&(c.afterFlush(()=>this.clearElementCache(s)),c.destroyInnerAnimations(s),c._onRemovalComplete(s,i))}}insertNode(s,i){fa(s,this._hostClassName)}drainQueuedTransitions(s){const i=[];return this._queue.forEach(c=>{const f=c.player;if(f.destroyed)return;const C=c.element,M=this._elementListeners.get(C);M&&M.forEach(H=>{if(H.name==c.triggerName){const ie=Pu(C,c.triggerName,c.fromState.value,c.toState.value);ie._data=s,Js(c.player,H.phase,ie,H.callback)}}),f.markedForDestroy?this._engine.afterFlush(()=>{f.destroy()}):i.push(c)}),this._queue=[],i.sort((c,f)=>{const C=c.transition.ast.depCount,M=f.transition.ast.depCount;return 0==C||0==M?C-M:this._engine.driver.containsElement(c.element,f.element)?1:-1})}destroy(s){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,s)}}class ih{_onRemovalComplete(s,i){this.onRemovalComplete(s,i)}constructor(s,i,c){this.bodyNode=s,this.driver=i,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(f,C)=>{}}get queuedPlayers(){const s=[];return this._namespaceList.forEach(i=>{i.players.forEach(c=>{c.queued&&s.push(c)})}),s}createNamespace(s,i){const c=new lm(s,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(c,i):(this.newHostElements.set(i,c),this.collectEnterElement(i)),this._namespaceLookup[s]=c}_balanceNamespaceList(s,i){const c=this._namespaceList,f=this.namespacesByHostElement;if(c.length-1>=0){let M=!1,H=this.driver.getParentElement(i);for(;H;){const ie=f.get(H);if(ie){const Fe=c.indexOf(ie);c.splice(Fe+1,0,s),M=!0;break}H=this.driver.getParentElement(H)}M||c.unshift(s)}else c.push(s);return f.set(i,s),s}register(s,i){let c=this._namespaceLookup[s];return c||(c=this.createNamespace(s,i)),c}registerTrigger(s,i,c){let f=this._namespaceLookup[s];f&&f.register(i,c)&&this.totalAnimations++}destroy(s,i){s&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(s);this.namespacesByHostElement.delete(c.hostElement);const f=this._namespaceList.indexOf(c);f>=0&&this._namespaceList.splice(f,1),c.destroy(i),delete this._namespaceLookup[s]}))}_fetchNamespace(s){return this._namespaceLookup[s]}fetchNamespacesByElement(s){const i=new Set,c=this.statesByElement.get(s);if(c)for(let f of c.values())if(f.namespaceId){const C=this._fetchNamespace(f.namespaceId);C&&i.add(C)}return i}trigger(s,i,c,f){if(uu(i)){const C=this._fetchNamespace(s);if(C)return C.trigger(i,c,f),!0}return!1}insertNode(s,i,c,f){if(!uu(i))return;const C=i[Sa];if(C&&C.setForRemoval){C.setForRemoval=!1,C.setForMove=!0;const M=this.collectedLeaveElements.indexOf(i);M>=0&&this.collectedLeaveElements.splice(M,1)}if(s){const M=this._fetchNamespace(s);M&&M.insertNode(i,c)}f&&this.collectEnterElement(i)}collectEnterElement(s){this.collectedEnterElements.push(s)}markElementAsDisabled(s,i){i?this.disabledNodes.has(s)||(this.disabledNodes.add(s),fa(s,ic)):this.disabledNodes.has(s)&&(this.disabledNodes.delete(s),$a(s,ic))}removeNode(s,i,c){if(uu(i)){const f=s?this._fetchNamespace(s):null;f?f.removeNode(i,c):this.markElementAsRemoved(s,i,!1,c);const C=this.namespacesByHostElement.get(i);C&&C.id!==s&&C.removeNode(i,c)}else this._onRemovalComplete(i,c)}markElementAsRemoved(s,i,c,f,C){this.collectedLeaveElements.push(i),i[Sa]={namespaceId:s,setForRemoval:f,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:C}}listen(s,i,c,f,C){return uu(i)?this._fetchNamespace(s).listen(i,c,f,C):()=>{}}_buildInstruction(s,i,c,f,C){return s.transition.build(this.driver,s.element,s.fromState.value,s.toState.value,c,f,s.fromState.options,s.toState.options,i,C)}destroyInnerAnimations(s){let i=this.driver.query(s,lr,!0);i.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(i=this.driver.query(s,ju,!0),i.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(s){const i=this.playersByElement.get(s);i&&i.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(s){const i=this.playersByQueriedElement.get(s);i&&i.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(s=>{if(this.players.length)return Ua(this.players).onDone(()=>s());s()})}processLeaveNode(s){const i=s[Sa];if(i&&i.setForRemoval){if(s[Sa]=rc,i.namespaceId){this.destroyInnerAnimations(s);const c=this._fetchNamespace(i.namespaceId);c&&c.clearElementCache(s)}this._onRemovalComplete(s,i.setForRemoval)}s.classList?.contains(ic)&&this.markElementAsDisabled(s,!1),this.driver.query(s,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(s=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,f)=>this._balanceNamespaceList(c,f)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;cc()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],i.length?Ua(i).onDone(()=>{c.forEach(f=>f())}):c.forEach(f=>f())}}reportError(s){throw function vl(){return new o.wOt(3402,!1)}()}_flushAnimations(s,i){const c=new ec,f=[],C=new Map,M=[],H=new Map,ie=new Map,Fe=new Map,Nt=new Set;this.disabledNodes.forEach(Bi=>{Nt.add(Bi);const Ki=this.driver.query(Bi,".ng-animate-queued",!0);for(let tr=0;tr{const tr=Xd+pi++;Dn.set(Ki,tr),Bi.forEach(Ur=>fa(Ur,tr))});const Fi=[],Ui=new Set,$i=new Set;for(let Bi=0;BiUi.add(Ur)):$i.add(Ki))}const no=new Map,go=ld(jn,Array.from(Ui));go.forEach((Bi,Ki)=>{const tr=Vu+pi++;no.set(Ki,tr),Bi.forEach(Ur=>fa(Ur,tr))}),s.push(()=>{wn.forEach((Bi,Ki)=>{const tr=Dn.get(Ki);Bi.forEach(Ur=>$a(Ur,tr))}),go.forEach((Bi,Ki)=>{const tr=no.get(Ki);Bi.forEach(Ur=>$a(Ur,tr))}),Fi.forEach(Bi=>{this.processLeaveNode(Bi)})});const vc=[],sl=[];for(let Bi=this._namespaceList.length-1;Bi>=0;Bi--)this._namespaceList[Bi].drainQueuedTransitions(i).forEach(tr=>{const Ur=tr.player,Po=tr.element;if(vc.push(Ur),this.collectedEnterElements.length){const ra=Po[Sa];if(ra&&ra.setForMove){if(ra.previousTriggersValues&&ra.previousTriggersValues.has(tr.triggerName)){const Ou=ra.previousTriggersValues.get(tr.triggerName),al=this.statesByElement.get(tr.element);if(al&&al.has(tr.triggerName)){const Ru=al.get(tr.triggerName);Ru.value=Ou,al.set(tr.triggerName,Ru)}}return void Ur.destroy()}}const Ma=!Yt||!this.driver.containsElement(Yt,Po),Ga=no.get(Po),Mu=Dn.get(Po),Mo=this._buildInstruction(tr,c,Mu,Ga,Ma);if(Mo.errors&&Mo.errors.length)return void sl.push(Mo);if(Ma)return Ur.onStart(()=>Ac(Po,Mo.fromStyles)),Ur.onDestroy(()=>Ha(Po,Mo.toStyles)),void f.push(Ur);if(tr.isFallbackTransition)return Ur.onStart(()=>Ac(Po,Mo.fromStyles)),Ur.onDestroy(()=>Ha(Po,Mo.toStyles)),void f.push(Ur);const dy=[];Mo.timelines.forEach(ra=>{ra.stretchStartingKeyframe=!0,this.disabledNodes.has(ra.element)||dy.push(ra)}),Mo.timelines=dy,c.append(Po,Mo.timelines),M.push({instruction:Mo,player:Ur,element:Po}),Mo.queriedElements.forEach(ra=>qs(H,ra,[]).push(Ur)),Mo.preStyleProps.forEach((ra,Ou)=>{if(ra.size){let al=ie.get(Ou);al||ie.set(Ou,al=new Set),ra.forEach((Ru,Ap)=>al.add(Ap))}}),Mo.postStyleProps.forEach((ra,Ou)=>{let al=Fe.get(Ou);al||Fe.set(Ou,al=new Set),ra.forEach((Ru,Ap)=>al.add(Ap))})});if(sl.length){const Bi=[];sl.forEach(Ki=>{Bi.push(function Zs(){return new o.wOt(3505,!1)}())}),vc.forEach(Ki=>Ki.destroy()),this.reportError(Bi)}const ia=new Map,Ps=new Map;M.forEach(Bi=>{const Ki=Bi.element;c.has(Ki)&&(Ps.set(Ki,Ki),this._beforeAnimationBuild(Bi.player.namespaceId,Bi.instruction,ia))}),f.forEach(Bi=>{const Ki=Bi.element;this._getPreviousPlayers(Ki,!1,Bi.namespaceId,Bi.triggerName,null).forEach(Ur=>{qs(ia,Ki,[]).push(Ur),Ur.destroy()})});const Ia=Fi.filter(Bi=>du(Bi,ie,Fe)),xl=new Map;Vo(xl,this.driver,$i,Fe,mi.kp).forEach(Bi=>{du(Bi,ie,Fe)&&Ia.push(Bi)});const Vd=new Map;wn.forEach((Bi,Ki)=>{Vo(Vd,this.driver,new Set(Bi),ie,mi.FX)}),Ia.forEach(Bi=>{const Ki=xl.get(Bi),tr=Vd.get(Bi);xl.set(Bi,new Map([...Ki?.entries()??[],...tr?.entries()??[]]))});const uy=[],Tw=[],Iw={};M.forEach(Bi=>{const{element:Ki,player:tr,instruction:Ur}=Bi;if(c.has(Ki)){if(Nt.has(Ki))return tr.onDestroy(()=>Ha(Ki,Ur.toStyles)),tr.disabled=!0,tr.overrideTotalTime(Ur.totalTime),void f.push(tr);let Po=Iw;if(Ps.size>1){let Ga=Ki;const Mu=[];for(;Ga=Ga.parentNode;){const Mo=Ps.get(Ga);if(Mo){Po=Mo;break}Mu.push(Ga)}Mu.forEach(Mo=>Ps.set(Mo,Po))}const Ma=this._buildAnimation(tr.namespaceId,Ur,ia,C,Vd,xl);if(tr.setRealPlayer(Ma),Po===Iw)uy.push(tr);else{const Ga=this.playersByElement.get(Po);Ga&&Ga.length&&(tr.parentPlayer=Ua(Ga)),f.push(tr)}}else Ac(Ki,Ur.fromStyles),tr.onDestroy(()=>Ha(Ki,Ur.toStyles)),Tw.push(tr),Nt.has(Ki)&&f.push(tr)}),Tw.forEach(Bi=>{const Ki=C.get(Bi.element);if(Ki&&Ki.length){const tr=Ua(Ki);Bi.setRealPlayer(tr)}}),f.forEach(Bi=>{Bi.parentPlayer?Bi.syncPlayerEvents(Bi.parentPlayer):Bi.destroy()});for(let Bi=0;Bi!Ma.destroyed);Po.length?cm(this,Ki,Po):this.processLeaveNode(Ki)}return Fi.length=0,uy.forEach(Bi=>{this.players.push(Bi),Bi.onDone(()=>{Bi.destroy();const Ki=this.players.indexOf(Bi);this.players.splice(Ki,1)}),Bi.play()}),uy}afterFlush(s){this._flushFns.push(s)}afterFlushAnimationsDone(s){this._whenQuietFns.push(s)}_getPreviousPlayers(s,i,c,f,C){let M=[];if(i){const H=this.playersByQueriedElement.get(s);H&&(M=H)}else{const H=this.playersByElement.get(s);if(H){const ie=!C||C==kc;H.forEach(Fe=>{Fe.queued||!ie&&Fe.triggerName!=f||M.push(Fe)})}}return(c||f)&&(M=M.filter(H=>!(c&&c!=H.namespaceId||f&&f!=H.triggerName))),M}_beforeAnimationBuild(s,i,c){const C=i.element,M=i.isRemovalTransition?void 0:s,H=i.isRemovalTransition?void 0:i.triggerName;for(const ie of i.timelines){const Fe=ie.element,Nt=Fe!==C,Yt=qs(c,Fe,[]);this._getPreviousPlayers(Fe,Nt,M,H,i.toState).forEach(wn=>{const Dn=wn.getRealPlayer();Dn.beforeDestroy&&Dn.beforeDestroy(),wn.destroy(),Yt.push(wn)})}Ac(C,i.fromStyles)}_buildAnimation(s,i,c,f,C,M){const H=i.triggerName,ie=i.element,Fe=[],Nt=new Set,Yt=new Set,jn=i.timelines.map(Dn=>{const pi=Dn.element;Nt.add(pi);const Fi=pi[Sa];if(Fi&&Fi.removedBeforeQueried)return new mi.sf(Dn.duration,Dn.delay);const Ui=pi!==ie,$i=function If(a){const s=[];return oc(a,s),s}((c.get(pi)||rd).map(ia=>ia.getRealPlayer())).filter(ia=>!!ia.element&&ia.element===pi),no=C.get(pi),go=M.get(pi),vc=ku(this._normalizer,Dn.keyframes,no,go),sl=this._buildPlayer(Dn,vc,$i);if(Dn.subTimeline&&f&&Yt.add(pi),Ui){const ia=new nl(s,H,pi);ia.setRealPlayer(sl),Fe.push(ia)}return sl});Fe.forEach(Dn=>{qs(this.playersByQueriedElement,Dn.element,[]).push(Dn),Dn.onDone(()=>function Tf(a,s,i){let c=a.get(s);if(c){if(c.length){const f=c.indexOf(i);c.splice(f,1)}0==c.length&&a.delete(s)}return c}(this.playersByQueriedElement,Dn.element,Dn))}),Nt.forEach(Dn=>fa(Dn,Yd));const wn=Ua(jn);return wn.onDestroy(()=>{Nt.forEach(Dn=>$a(Dn,Yd)),Ha(ie,i.toStyles)}),Yt.forEach(Dn=>{qs(f,Dn,[]).push(wn)}),wn}_buildPlayer(s,i,c){return i.length>0?this.driver.animate(s.element,i,s.duration,s.delay,s.easing,c):new mi.sf(s.duration,s.delay)}}class nl{constructor(s,i,c){this.namespaceId=s,this.triggerName=i,this.element=c,this._player=new mi.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(s){this._containsRealPlayer||(this._player=s,this._queuedCallbacks.forEach((i,c)=>{i.forEach(f=>Js(s,c,void 0,f))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(s.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(s){this.totalTime=s}syncPlayerEvents(s){const i=this._player;i.triggerCallback&&s.onStart(()=>i.triggerCallback("start")),s.onDone(()=>this.finish()),s.onDestroy(()=>this.destroy())}_queueEvent(s,i){qs(this._queuedCallbacks,s,[]).push(i)}onDone(s){this.queued&&this._queueEvent("done",s),this._player.onDone(s)}onStart(s){this.queued&&this._queueEvent("start",s),this._player.onStart(s)}onDestroy(s){this.queued&&this._queueEvent("destroy",s),this._player.onDestroy(s)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(s){this.queued||this._player.setPosition(s)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(s){const i=this._player;i.triggerCallback&&i.triggerCallback(s)}}function uu(a){return a&&1===a.nodeType}function Fl(a,s){const i=a.style.display;return a.style.display=s??"none",i}function Vo(a,s,i,c,f){const C=[];i.forEach(ie=>C.push(Fl(ie)));const M=[];c.forEach((ie,Fe)=>{const Nt=new Map;ie.forEach(Yt=>{const jn=s.computeStyle(Fe,Yt,f);Nt.set(Yt,jn),(!jn||0==jn.length)&&(Fe[Sa]=od,M.push(Fe))}),a.set(Fe,Nt)});let H=0;return i.forEach(ie=>Fl(ie,C[H++])),M}function ld(a,s){const i=new Map;if(a.forEach(H=>i.set(H,[])),0==s.length)return i;const f=new Set(s),C=new Map;function M(H){if(!H)return 1;let ie=C.get(H);if(ie)return ie;const Fe=H.parentNode;return ie=i.has(Fe)?Fe:f.has(Fe)?1:M(Fe),C.set(H,ie),ie}return s.forEach(H=>{const ie=M(H);1!==ie&&i.get(ie).push(H)}),i}function fa(a,s){a.classList?.add(s)}function $a(a,s){a.classList?.remove(s)}function cm(a,s,i){Ua(i).onDone(()=>a.processLeaveNode(s))}function oc(a,s){for(let i=0;if.add(C)):s.set(a,c),i.delete(a),!0}class sc{constructor(s,i,c){this._driver=i,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(f,C)=>{},this._transitionEngine=new ih(s.body,i,c),this._timelineEngine=new id(s.body,i,c),this._transitionEngine.onRemovalComplete=(f,C)=>this.onRemovalComplete(f,C)}registerTrigger(s,i,c,f,C){const M=s+"-"+f;let H=this._triggerCache[M];if(!H){const ie=[],Nt=Zu(this._driver,C,ie,[]);if(ie.length)throw function ru(){return new o.wOt(3404,!1)}();H=function am(a,s,i){return new td(a,s,i)}(f,Nt,this._normalizer),this._triggerCache[M]=H}this._transitionEngine.registerTrigger(i,f,H)}register(s,i){this._transitionEngine.register(s,i)}destroy(s,i){this._transitionEngine.destroy(s,i)}onInsert(s,i,c,f){this._transitionEngine.insertNode(s,i,c,f)}onRemove(s,i,c){this._transitionEngine.removeNode(s,i,c)}disableAnimations(s,i){this._transitionEngine.markElementAsDisabled(s,i)}process(s,i,c,f){if("@"==c.charAt(0)){const[C,M]=ou(c);this._timelineEngine.command(C,i,M,f)}else this._transitionEngine.trigger(s,i,c,f)}listen(s,i,c,f,C){if("@"==c.charAt(0)){const[M,H]=ou(c);return this._timelineEngine.listen(M,i,H,C)}return this._transitionEngine.listen(s,i,c,f,C)}flush(s=-1){this._transitionEngine.flush(s)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(s){this._transitionEngine.afterFlushAnimationsDone(s)}}class Fc{static{this.initialStylesByElement=new WeakMap}constructor(s,i,c){this._element=s,this._startStyles=i,this._endStyles=c,this._state=0;let f=Fc.initialStylesByElement.get(s);f||Fc.initialStylesByElement.set(s,f=new Map),this._initialStyles=f}start(){this._state<1&&(this._startStyles&&Ha(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ha(this._element,this._initialStyles),this._endStyles&&(Ha(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Fc.initialStylesByElement.delete(this._element),this._startStyles&&(Ac(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ac(this._element,this._endStyles),this._endStyles=null),Ha(this._element,this._initialStyles),this._state=3)}}function rh(a){let s=null;return a.forEach((i,c)=>{(function um(a){return"display"===a||"position"===a})(c)&&(s=s||new Map,s.set(c,i))}),s}class oh{constructor(s,i,c,f){this.element=s,this.keyframes=i,this.options=c,this._specialStyles=f,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(s=>s()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const s=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,s,this.options),this._finalKeyframe=s.length?s[s.length-1]:new Map;const i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(s){const i=[];return s.forEach(c=>{i.push(Object.fromEntries(c))}),i}_triggerWebAnimation(s,i,c){return s.animate(this._convertKeyframesToObject(i),c)}onStart(s){this._originalOnStartFns.push(s),this._onStartFns.push(s)}onDone(s){this._originalOnDoneFns.push(s),this._onDoneFns.push(s)}onDestroy(s){this._onDestroyFns.push(s)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(s=>s()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(s=>s()),this._onDestroyFns=[])}setPosition(s){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=s*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const s=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,f)=>{"offset"!==f&&s.set(f,this._finished?c:Ku(this.element,f))}),this.currentSnapshot=s}triggerCallback(s){const i="start"===s?this._onStartFns:this._onDoneFns;i.forEach(c=>c()),i.length=0}}class sh{validateStyleProperty(s){return!0}validateAnimatableStyleProperty(s){return!0}containsElement(s,i){return Fu(s,i)}getParentElement(s){return xc(s)}query(s,i,c){return cf(s,i,c)}computeStyle(s,i,c){return Ku(s,i)}animate(s,i,c,f,C,M=[]){const ie={duration:c,delay:f,fill:0==f?"both":"forwards"};C&&(ie.easing=C);const Fe=new Map,Nt=M.filter(wn=>wn instanceof oh);(function yl(a,s){return 0===a||0===s})(c,f)&&Nt.forEach(wn=>{wn.currentSnapshot.forEach((Dn,pi)=>Fe.set(pi,Dn))});let Yt=function Qd(a){return a.length?a[0]instanceof Map?a:a.map(s=>new Map(Object.entries(s))):[]}(i).map(wn=>new Map(wn));Yt=function em(a,s,i){if(i.size&&s.length){let c=s[0],f=[];if(i.forEach((C,M)=>{c.has(M)||f.push(M),c.set(M,C)}),f.length)for(let C=1;CM.set(H,Ku(a,H)))}}return s}(s,Yt,Fe);const jn=function Pc(a,s){let i=null,c=null;return Array.isArray(s)&&s.length?(i=rh(s[0]),s.length>1&&(c=rh(s[s.length-1]))):s instanceof Map&&(i=rh(s)),i||c?new Fc(a,i,c):null}(s,Yt);return new oh(s,Yt,ie,jn)}}const lh="@.disabled";class dm{constructor(s,i,c,f){this.namespaceId=s,this.delegate=i,this.engine=c,this._onDestroy=f,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(s){this.delegate.destroyNode?.(s)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(s,i){return this.delegate.createElement(s,i)}createComment(s){return this.delegate.createComment(s)}createText(s){return this.delegate.createText(s)}appendChild(s,i){this.delegate.appendChild(s,i),this.engine.onInsert(this.namespaceId,i,s,!1)}insertBefore(s,i,c,f=!0){this.delegate.insertBefore(s,i,c),this.engine.onInsert(this.namespaceId,i,s,f)}removeChild(s,i,c){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(s,i){return this.delegate.selectRootElement(s,i)}parentNode(s){return this.delegate.parentNode(s)}nextSibling(s){return this.delegate.nextSibling(s)}setAttribute(s,i,c,f){this.delegate.setAttribute(s,i,c,f)}removeAttribute(s,i,c){this.delegate.removeAttribute(s,i,c)}addClass(s,i){this.delegate.addClass(s,i)}removeClass(s,i){this.delegate.removeClass(s,i)}setStyle(s,i,c,f){this.delegate.setStyle(s,i,c,f)}removeStyle(s,i,c){this.delegate.removeStyle(s,i,c)}setProperty(s,i,c){"@"==i.charAt(0)&&i==lh?this.disableAnimations(s,!!c):this.delegate.setProperty(s,i,c)}setValue(s,i){this.delegate.setValue(s,i)}listen(s,i,c){return this.delegate.listen(s,i,c)}disableAnimations(s,i){this.engine.disableAnimations(s,i)}}class Of extends dm{constructor(s,i,c,f,C){super(i,c,f,C),this.factory=s,this.namespaceId=i}setProperty(s,i,c){"@"==i.charAt(0)?"."==i.charAt(1)&&i==lh?this.disableAnimations(s,c=void 0===c||!!c):this.engine.process(this.namespaceId,s,i.slice(1),c):this.delegate.setProperty(s,i,c)}listen(s,i,c){if("@"==i.charAt(0)){const f=function Rf(a){switch(a){case"body":return document.body;case"document":return document;case"window":return window;default:return a}}(s);let C=i.slice(1),M="";return"@"!=C.charAt(0)&&([C,M]=function hs(a){const s=a.indexOf(".");return[a.substring(0,s),a.slice(s+1)]}(C)),this.engine.listen(this.namespaceId,f,C,M,H=>{this.factory.scheduleListenerCallback(H._data||-1,c,H)})}return this.delegate.listen(s,i,c)}}class Yg{constructor(s,i,c){this.delegate=s,this.engine=i,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(f,C)=>{C?.removeChild(null,f)}}createRenderer(s,i){const f=this.delegate.createRenderer(s,i);if(!s||!i?.data?.animation){const Fe=this._rendererCache;let Nt=Fe.get(f);return Nt||(Nt=new dm("",f,this.engine,()=>Fe.delete(f)),Fe.set(f,Nt)),Nt}const C=i.id,M=i.id+"-"+this._currentId;this._currentId++,this.engine.register(M,s);const H=Fe=>{Array.isArray(Fe)?Fe.forEach(H):this.engine.registerTrigger(C,M,s,Fe.name,Fe)};return i.data.animation.forEach(H),new Of(this,M,f,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(s,i,c){if(s>=0&&si(c));const f=this._animationCallbacksBuffer;0==f.length&&queueMicrotask(()=>{this._zone.run(()=>{f.forEach(C=>{const[M,H]=C;M(H)}),this._animationCallbacksBuffer=[]})}),f.push([i,c])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const fm=[{provide:Uu,useFactory:function ch(){return new Xu}},{provide:sc,useClass:(()=>{class a extends sc{constructor(i,c,f){super(i,c,f)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(et.qQ),o.KVO(Bu),o.KVO(Uu))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})()},{provide:o._9s,useFactory:function kf(a,s,i){return new Yg(a,s,i)},deps:[u.B7,sc,o.SKi]}],uh=[{provide:Bu,useFactory:()=>new sh},{provide:o.bc$,useValue:"BrowserAnimations"},...fm];var Ff=v(9030),Bc=v(3726),il=v(8793),$r=v(1413),Lf=v(5343);const ac=new V.c(Lf.l);var bl=v(7786),lc=v(6648),qo=v(6354),yo=v(17),Bf=v(8071),dd=v(8750),hd=v(9974);const dh={connector:()=>new $r.B};function hu(a,s=dh){const{connector:i}=s;return(0,hd.N)((c,f)=>{const C=i();(0,dd.Tg)(a(function mm(a){return new V.c(s=>a.subscribe(s))}(C))).subscribe(f),f.add(c.subscribe(C))})}var Uc=v(8141);const cc="Service workers are disabled or not supported by this browser";class Vc{constructor(s){if(this.serviceWorker=s,s){const c=(0,Bc.R)(s,"controllerchange").pipe((0,qo.T)(()=>s.controller)),f=(0,Ff.v)(()=>(0,U.of)(s.controller)),C=(0,il.x)(f,c);this.worker=C.pipe((0,It.p)(Nt=>!!Nt)),this.registration=this.worker.pipe((0,Me.n)(()=>s.getRegistration()));const Fe=(0,Bc.R)(s,"message").pipe((0,qo.T)(Nt=>Nt.data)).pipe((0,It.p)(Nt=>Nt&&Nt.type)).pipe(function fd(a){return a?s=>hu(a)(s):s=>function Uf(a,s){const i=(0,Bf.T)(a)?a:()=>a;return(0,Bf.T)(s)?hu(s,{connector:i}):c=>new yo.G(c,i)}(new $r.B)(s)}());Fe.connect(),this.events=Fe}else this.worker=this.events=this.registration=function hh(a){return(0,Ff.v)(()=>(0,re.$)(new Error(a)))}(cc)}postMessage(s,i){return this.worker.pipe((0,F.s)(1),(0,Uc.M)(c=>{c.postMessage({action:s,...i})})).toPromise().then(()=>{})}postMessageWithOperation(s,i,c){const f=this.waitForOperationCompleted(c),C=this.postMessage(s,i);return Promise.all([C,f]).then(([,M])=>M)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(s){let i;return i="string"==typeof s?c=>c.type===s:c=>s.includes(c.type),this.events.pipe((0,It.p)(i))}nextEventOfType(s){return this.eventsOfType(s).pipe((0,F.s)(1))}waitForOperationCompleted(s){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,It.p)(i=>i.nonce===s),(0,F.s)(1),(0,qo.T)(i=>{if(void 0!==i.result)return i.result;throw new Error(i.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let wl=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,this.pushManager=null,this.subscriptionChanges=new $r.B,!i.isEnabled)return this.messages=ac,this.notificationClicks=ac,void(this.subscription=ac);this.messages=this.sw.eventsOfType("PUSH").pipe((0,qo.T)(f=>f.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,qo.T)(f=>f.data)),this.pushManager=this.sw.registration.pipe((0,qo.T)(f=>f.pushManager));const c=this.pushManager.pipe((0,Me.n)(f=>f.getSubscription()));this.subscription=(0,bl.h)(c,this.subscriptionChanges)}requestSubscription(i){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(cc));const c={userVisibleOnly:!0};let f=this.decodeBase64(i.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),C=new Uint8Array(new ArrayBuffer(f.length));for(let M=0;MM.subscribe(c)),(0,F.s)(1)).toPromise().then(M=>(this.subscriptionChanges.next(M),M))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,F.s)(1),(0,Me.n)(c=>{if(null===c)throw new Error("Not subscribed to push notifications.");return c.unsubscribe().then(f=>{if(!f)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(cc))}decodeBase64(i){return atob(i)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vc))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})(),Vf=(()=>{class a{get isEnabled(){return this.sw.isEnabled}constructor(i){if(this.sw=i,!i.isEnabled)return this.versionUpdates=ac,void(this.unrecoverable=ac);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(cc));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:i},i)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(cc));const i=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:i},i)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vc))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac})}}return a})();const fh=new o.nKC("");function gm(a,s,i,c){return()=>{if(!(0,et.UE)(c)||!("serviceWorker"in navigator)||!1===i.enabled)return;const f=a.get(o.SKi),C=a.get(o.o8S);let M;if(f.runOutsideAngular(()=>{const H=navigator.serviceWorker,ie=()=>H.controller?.postMessage({action:"INITIALIZE"});H.addEventListener("controllerchange",ie),C.onDestroy(()=>{H.removeEventListener("controllerchange",ie)})}),"function"==typeof i.registrationStrategy)M=i.registrationStrategy();else{const[H,...ie]=(i.registrationStrategy||"registerWhenStable:30000").split(":");switch(H){case"registerImmediately":M=(0,U.of)(null);break;case"registerWithDelay":M=vm(+ie[0]||0);break;case"registerWhenStable":const Fe=(0,lc.H)(a.get(o.o8S).whenStable());M=ie[0]?(0,bl.h)(Fe,vm(+ie[0])):Fe;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${i.registrationStrategy}`)}}f.runOutsideAngular(()=>M.pipe((0,F.s)(1)).subscribe(()=>navigator.serviceWorker.register(s,{scope:i.scope}).catch(H=>console.error("Service worker registration failed with:",H))))}}function vm(a){return(0,U.of)(null).pipe((0,Te.c)(a))}function jf(a,s){return new Vc((0,et.UE)(s)&&!1!==a.enabled?navigator.serviceWorker:void 0)}class pd{}var El=v(7468),jc=v(4360),md=v(3669),Hf=v(1584),$c=v(9437),_m=v(4668),zc=v(4572),$f=v(983);function Wc(a){return a&&a.constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a)}function Gc(a){return a}function ph(a,s){const i=(s=s||{}).delimiter||".",c=s.maxDepth,f=s.transformKey||Gc,C={};return function M(H,ie,Fe){Fe=Fe||1,Object.keys(H).forEach(function(Nt){const Yt=H[Nt],jn=s.safe&&Array.isArray(Yt),wn=Object.prototype.toString.call(Yt),Dn=Wc(Yt),pi="[object Object]"===wn||"[object Array]"===wn,Fi=ie?ie+i+f(Nt):f(Nt);if(!jn&&!Dn&&pi&&Object.keys(Yt).length&&(!s.maxDepth||Fe0&&(jn=H(Yt.shift()),wn=H(Yt[0]))}Dn[jn]=gd(a[Nt],s)}),C}class zf{translations;constructor(s){this.translations=s}getTranslation(s){return(0,U.of)(this.translations.get(s)||{})}}const mh=new o.nKC("TRANSLOCO_LOADER");function gh(a,s){return a&&(Object.prototype.hasOwnProperty.call(a,s)?a[s]:s.split(".").reduce((i,c)=>i?.[c],a))}function fu(a){return a?Array.isArray(a)?a.length:Kc(a)?Object.keys(a).length:a?a.length:0:0}function rl(a){return"string"==typeof a}function Kc(a){return!!a&&"object"==typeof a&&!Array.isArray(a)}function ol(a){return null==a}function _h(a){return!1===ol(a)}function vd(a){return a&&"string"==typeof a.scope}function wh(a){return ph(a,{safe:!0})}const Ll=new o.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>uc}),uc={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function Yf(a={}){return{...uc,...a,missingHandler:{...uc.missingHandler,...a.missingHandler},flatten:{...uc.flatten,...a.flatten}}}const Eh=new o.nKC("TRANSLOCO_TRANSPILER");let Ch=(()=>{class a{interpolationMatcher;constructor(i){this.interpolationMatcher=function h(a){const[s,i]=a.interpolation;return new RegExp(`${s}(.*?)${i}`,"g")}(i??uc)}transpile(i,c={},f,C){return rl(i)?i.replace(this.interpolationMatcher,(M,H)=>(H=H.trim(),_h(c[H])?c[H]:_h(f[H])?this.transpile(f[H],c,f,C):"")):(c&&(Kc(i)?i=this.handleObject(i,c,f,C):Array.isArray(i)&&(i=this.handleArray(i,c,f,C))),i)}handleObject(i,c={},f,C){let M=i;return Object.keys(c).forEach(H=>{const ie=gh(M,H),Fe=gh(c,H),Nt=this.transpile(ie,Fe,f,C);M=function vh(a,s,i){a={...a};const c=s.split("."),f=c.length-1;return c.reduce((C,M,H)=>(C[M]=H===f?i:Array.isArray(C[M])?C[M].slice():{...C[M]},C&&C[M]),a),a}(M,H,Nt)}),M}handleArray(i,c={},f,C){return i.map(M=>this.transpile(M,c,f,C))}static \u0275fac=function(c){return new(c||a)(o.KVO(Ll,8))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const I=new o.nKC("TRANSLOCO_MISSING_HANDLER");let P=(()=>{class a{handle(i,c){return c.missingHandler.logMissingKey&&!c.prodMode&&console.warn(`%c Missing translation for '${i}'`,"font-size: 12px; color: red"),i}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const G=new o.nKC("TRANSLOCO_INTERCEPTOR");let ae=(()=>{class a{preSaveTranslation(i){return i}preSaveTranslationKey(i,c){return c}static \u0275fac=function(c){return new(c||a)};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();const pe=new o.nKC("TRANSLOCO_FALLBACK_STRATEGY");let Un,ke=(()=>{class a{userConfig;constructor(i){this.userConfig=i}getNextLangs(){const i=this.userConfig.fallbackLang;if(!i)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(i)?i:[i]}static \u0275fac=function(c){return new(c||a)(o.KVO(Ll))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac})}return a})();function it(a){if(!a)return"";const s=a.split("/");return s.pop(),s.join("/")}function ht(a){return a?a.split("/").pop():""}function Vt(a){return{scope:it(a)||null,langName:ht(a)}}function dn(a){const{path:s,inlineLoader:i,mainLoader:c,data:f}=a;if(i){if(!1===function ks(a){return"function"==typeof a}(i[s]))throw`You're using an inline loader but didn't provide a loader for ${s}`;return i[s]().then(M=>M.default?M.default:M)}return c.getTranslation(s,f)}let qn=(()=>{class a{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 $r.B;events$=this.events.asObservable();config;constructor(i,c,f,C,M,H){this.loader=i,this.parser=c,this.missingHandler=f,this.interceptor=C,this.fallbackStrategy=H,this.loader||(this.loader=new zf(this.translations)),Un=this,this.config=JSON.parse(JSON.stringify(M)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new bt.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(ie=>{"translationLoadSuccess"===ie.type&&ie.wasFailure&&this.setActiveLang(ie.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(i){this.defaultLang=i}getActiveLang(){return this.lang.getValue()}setActiveLang(i){return this.parser.onLangChanged?.(i),this.lang.next(i),this.events.next({type:"langChanged",payload:Vt(i)}),this}setAvailableLangs(i){this.availableLangs=i}getAvailableLangs(){return this.availableLangs}load(i,c={}){const f=this.cache.get(i);if(f)return f;let C;const M=this._isLangScoped(i);let H;M&&(H=it(i));const ie={path:i,mainLoader:this.loader,inlineLoader:c.inlineLoader,data:M?{scope:H}:void 0};if(this.useFallbackTranslation(i)){const Nt=M?`${H}/${this.firstFallbackLang}`:this.firstFallbackLang,Yt=function vn({mainLoader:a,path:s,data:i,fallbackPath:c,inlineLoader:f}){return(c?[s,c]:[s]).map(M=>{const H=dn({path:M,mainLoader:a,inlineLoader:f,data:i});return(0,lc.H)(H).pipe((0,qo.T)(ie=>({translation:ie,lang:M})))})}({...ie,fallbackPath:Nt});C=(0,El.p)(Yt)}else{const Nt=dn(ie);C=(0,lc.H)(Nt)}const Fe=C.pipe(function Hc(a=1/0){let s;s=a&&"object"==typeof a?a:{count:a};const{count:i=1/0,delay:c,resetOnSuccess:f=!1}=s;return i<=0?md.D:(0,hd.N)((C,M)=>{let ie,H=0;const Fe=()=>{let Nt=!1;ie=C.subscribe((0,jc._)(M,Yt=>{f&&(H=0),M.next(Yt)},void 0,Yt=>{if(H++{ie?(ie.unsubscribe(),ie=null,Fe()):Nt=!0};if(null!=c){const wn="number"==typeof c?(0,Hf.O)(c):(0,dd.Tg)(c(Yt,H)),Dn=(0,jc._)(M,()=>{Dn.unsubscribe(),jn()},()=>{M.complete()});wn.subscribe(Dn)}else jn()}else M.error(Yt)})),Nt&&(ie.unsubscribe(),ie=null,Fe())};Fe()})}(this.config.failedRetries),(0,Uc.M)(Nt=>{Array.isArray(Nt)?Nt.forEach(Yt=>{this.handleSuccess(Yt.lang,Yt.translation),Yt.lang!==i&&this.cache.set(Yt.lang,(0,U.of)({}))}):this.handleSuccess(i,Nt)}),(0,$c.W)(Nt=>(this.config.prodMode||console.error(`Error while trying to load "${i}"`,Nt),this.handleFailure(i,c))),(0,_m.t)(1));return this.cache.set(i,Fe),Fe}translate(i,c={},f=this.getActiveLang()){if(!i)return i;const{scope:C,resolveLang:M}=this.resolveLangAndScope(f);if(Array.isArray(i))return i.map(Fe=>this.translate(C?`${C}.${Fe}`:Fe,c,M));i=C?`${C}.${i}`:i;const H=this.getTranslation(M),ie=H[i];return ie?this.parser.transpile(ie,c,H,i):this._handleMissingKey(i,ie,c)}selectTranslate(i,c,f,C=!1){let M;const H=(Fe,Nt)=>this.load(Fe,Nt).pipe((0,qo.T)(()=>C?this.translateObject(i,c,Fe):this.translate(i,c,Fe)));if(ol(f))return this.langChanges$.pipe((0,Me.n)(Fe=>H(Fe)));if(function _d(a){return Array.isArray(a)&&a.every(vd)}(f)||vd(f)){const Fe=Array.isArray(f)?f[0]:f;f=Fe.scope,M=function Ft(a,s){return function Xf(a){return a&&Kc(a.loader)}(a)?function Kt(a,s){return Object.keys(a).reduce((i,c)=>(i[`${s}/${c}`]=a[c],i),{})}(a.loader,s):void 0}(Fe,Fe.scope)}if(this.isLang(f)||this.isScopeWithLang(f))return H(f);const ie=f;return this.langChanges$.pipe((0,Me.n)(Fe=>H(`${ie}/${Fe}`,{inlineLoader:M})))}isScopeWithLang(i){return this.isLang(ht(i))}translateObject(i,c={},f=this.getActiveLang()){if(rl(i)||Array.isArray(i)){const{resolveLang:M,scope:H}=this.resolveLangAndScope(f);if(Array.isArray(i))return i.map(Nt=>this.translateObject(H?`${H}.${Nt}`:Nt,c,M));const ie=this.getTranslation(M),Fe=function bh(a){return gd(a)}(this.getObjectByKey(ie,i=H?`${H}.${i}`:i));return function Wf(a){return 0===fu(a)}(Fe)?this.translate(i,c,f):this.parser.transpile(Fe,c,ie,i)}const C=[];for(const[M,H]of this.getEntries(i))C.push(this.translateObject(M,H,f));return C}selectTranslateObject(i,c,f){if(rl(i)||Array.isArray(i))return this.selectTranslate(i,c,f,!0);const[[C,M],...H]=this.getEntries(i);return this.selectTranslateObject(C,M,f).pipe((0,qo.T)(ie=>{const Fe=[ie];for(const[Nt,Yt]of H)Fe.push(this.translateObject(Nt,Yt,f));return Fe}))}getTranslation(i){if(i){if(this.isLang(i))return this.translations.get(i)||{};{const{scope:c,resolveLang:f}=this.resolveLangAndScope(i),C=this.translations.get(f)||{};return this.getObjectByKey(C,c)}}return this.translations}selectTranslation(i){let c=this.langChanges$;if(i){const f=ht(i)!==i;c=this.isLang(i)||f?(0,U.of)(i):this.langChanges$.pipe((0,qo.T)(C=>`${i}/${C}`))}return c.pipe((0,Me.n)(f=>this.load(f).pipe((0,qo.T)(()=>this.getTranslation(f)))))}setTranslation(i,c=this.getActiveLang(),f={}){const M={merge:!0,emitChange:!0,...f},H=it(c);let ie=i;if(H){const wn=this.getMappedScope(H);ie=wh({[wn]:i})}const Fe=H?ht(c):c,Nt={...M.merge&&this.getTranslation(Fe),...ie},Yt=this.config.flatten.aot?Nt:wh(Nt),jn=this.interceptor.preSaveTranslation(Yt,Fe);this.translations.set(Fe,jn),M.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(i,c,f=this.getActiveLang(),C={}){const M=this.interceptor.preSaveTranslationKey(i,c,f);this.setTranslation({[i]:M},f,{...C,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:i}){const c=Array.isArray(i)?i[0]:i;i&&this.useFallbackTranslation(c)&&(this.firstFallbackLang=c)}_handleMissingKey(i,c,f){if(this.config.missingHandler.allowEmpty&&""===c)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const C=this.translate(i,f,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,C}return this.missingHandler.handle(i,this.getMissingHandlerData(),f)}_isLangScoped(i){return-1===this.getAvailableLangsIds().indexOf(i)}isLang(i){return-1!==this.getAvailableLangsIds().indexOf(i)}_loadDependencies(i,c){const f=ht(i);return this._isLangScoped(i)&&!this.isLoadedTranslation(f)?(0,zc.z)([this.load(f),this.load(i,{inlineLoader:c})]):this.load(i,{inlineLoader:c})}_completeScopeWithLang(i){return this._isLangScoped(i)&&!this.isLang(ht(i))?`${i}/${this.getActiveLang()}`:i}_setScopeAlias(i,c){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[i]=c}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(i){return fu(this.getTranslation(i))}getAvailableLangsIds(){return rl(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(c=>c.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(i){return this.config.missingHandler.useFallbackTranslation&&i!==this.firstFallbackLang}handleSuccess(i,c){this.setTranslation(c,i,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:Vt(i)}),this.failedLangs.forEach(f=>this.cache.delete(f)),this.failedLangs.clear()}handleFailure(i,c){ol(c.failedCounter)&&(c.failedCounter=0,c.fallbackLangs||(c.fallbackLangs=this.fallbackStrategy.getNextLangs(i)));const f=i.split("/"),M=c.fallbackLangs[c.failedCounter];if(this.failedLangs.add(i),this.cache.has(M))return this.handleSuccess(M,this.getTranslation(M)),$f.w;if(!M||M===f[f.length-1]){let Fe="Unable to load translation and all the fallback languages";throw f.length>1&&(Fe+=", did you misspelled the scope name?"),new Error(Fe)}let ie=M;return f.length>1&&(f[f.length-1]=M,ie=f.join("/")),c.failedCounter++,this.events.next({type:"translationLoadFailure",payload:Vt(i)}),this.load(ie,c)}getMappedScope(i){const{scopeMapping:c={}}=this.config;return c[i]||function Kf(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,(s,i)=>0==i?s.toLowerCase():s.toUpperCase()).replace(/\s+|_|-|\//g,"")}(i)}resolveLangAndScope(i){let f,c=i;if(this._isLangScoped(i)){const C=ht(i),M=this.isLang(C);c=M?C:this.getActiveLang(),f=this.getMappedScope(M?it(i):i)}return{scope:f,resolveLang:c}}getObjectByKey(i,c){const f={},C=`${c}.`;for(const M in i)M.startsWith(C)&&(f[M.replace(C,"")]=i[M]);return f}getEntries(i){return i instanceof Map?i.entries():Object.entries(i)}static \u0275fac=function(c){return new(c||a)(o.KVO(mh,8),o.KVO(Eh),o.KVO(I),o.KVO(G),o.KVO(Ll),o.KVO(pe))};static \u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function No(a){return(0,o.EmA)([{provide:Eh,useClass:a,deps:[Ll]}])}function ps(a){return(0,o.EmA)([{provide:pe,useClass:a,deps:[Ll]}])}function ms(a){return(0,o.EmA)([{provide:I,useClass:a}])}function Ns(a){return(0,o.EmA)([{provide:G,useClass:a}])}new o.nKC("TRANSLOCO_LANG"),new o.nKC("TRANSLOCO_LOADING_TEMPLATE"),new o.nKC("TRANSLOCO_SCOPE"),new o.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new o.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Xc=v(2771);let pu=(()=>{class a{constructor(){this._httpClient=(0,o.WQX)(be.Qq),this._navigation=new Xc.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Uc.M)(i=>{this._navigation.next(i)}))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})(),eb=(()=>{class a{constructor(i){this._httpClient=i,this._chat=new bt.t(null),this._chats=new bt.t(null)}get chat$(){return this._chat.asObservable()}get chats$(){return this._chats.asObservable()}getChats(){return this._httpClient.get("api/apps/chat/chats").pipe((0,Uc.M)(i=>{this._chats.next(i)}))}getChatById(i){return this._httpClient.get("api/apps/chat/chat",{params:{id:i}}).pipe((0,qo.T)(c=>(this._chat.next(c),c)),(0,Me.n)(c=>c?(0,U.of)(c):(0,re.$)("Could not found chat with id of "+i+"!")))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const Qf=new class ym{constructor(s){this.version=s,this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}}("0.0.8").full;var Wr=v(6977),xh=v(4085),yd=v(7575);function Jg(a,s){if(1&a&&o.nrm(0,"mat-progress-bar",0),2&a){const i=o.XpG();o.Y8G("mode",i.mode)("value",i.progress)}}let Sh=(()=>{class a{constructor(){this._angorLoadingService=(0,o.WQX)(Ve),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new $r.B}ngOnChanges(i){"autoMode"in i&&this._angorLoadingService.setAutoMode((0,xh.he)(i.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.mode=i}),this._angorLoadingService.progress$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.progress=i}),this._angorLoadingService.show$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.show=i})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],standalone:!0,features:[o.OA$,o.aNF],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(c,f){1&c&&o.DNE(0,Jg,1,2,"mat-progress-bar",0),2&c&&o.vxM(f.show?0:-1)},dependencies:[yd.PO,yd.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return a})();function nb(a,s){1&a&&o.nrm(0,"router-outlet")}let zE=(()=>{class a{constructor(){this._unsubscribeAll=new $r.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["empty-layout"]],standalone:!0,features:[o.aNF],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"div",0)(2,"div",1),o.DNE(3,nb,1,0,"router-outlet"),o.k0s()()),2&c&&(o.R7$(3),o.vxM(3))},dependencies:[Sh,y.n3],encapsulation:2})}}return a})();var Wa=v(8834),Gr=v(9213),ta=v(4823);function Zf(a,s){1&a&&o.nrm(0,"mat-icon",3)}let Jf=(()=>{class a{constructor(){this._document=(0,o.WQX)(et.qQ)}toggleFullscreen(){this._document.fullscreenEnabled?this._document.fullscreenElement?this._document.exitFullscreen():this._document.documentElement.requestFullscreen().catch(()=>{console.error("Entering fullscreen mode failed.")}):console.log("Fullscreen is not available in this browser.")}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],standalone:!0,features:[o.aNF],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){return o.eBV(C),o.Njj(f.toggleFullscreen())}),o.eu8(1,2),o.k0s(),o.DNE(2,Zf,1,0,"ng-template",null,0,o.C5r)}if(2&c){const C=o.sdS(3);o.Y8G("matTooltip",f.tooltip||"Toggle Fullscreen"),o.R7$(),o.Y8G("ngTemplateOutlet",f.iconTpl||C)}},dependencies:[Wa.Hl,Wa.iY,ta.uc,ta.oV,et.T3,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})();var qf=v(1648);let Aa=(()=>{class a{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(i,c){this._componentRegistry.set(i,c)}deregisterComponent(i){this._componentRegistry.delete(i)}getComponent(i){return this._componentRegistry.get(i)}storeNavigation(i,c){this._navigationStore.set(i,c)}getNavigation(i){return this._navigationStore.get(i)??[]}deleteNavigation(i){this._navigationStore.has(i)||console.warn(`Navigation with the key '${i}' does not exist.`),this._navigationStore.delete(i)}getFlatNavigation(i,c=[]){for(const f of i)"basic"===f.type?c.push(f):f.children&&this.getFlatNavigation(f.children,c);return c}getItem(i,c){for(const f of c){if(f.id===i)return f;if(f.children){const C=this.getItem(i,f.children);if(C)return C}}return null}getItemParent(i,c,f){for(const C of c){if(C.id===i)return f;if(C.children){const M=this.getItemParent(i,C.children,C);if(M)return M}}return null}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Dl=v(9115);const bd=a=>({"angor-horizontal-navigation-item-active-forced":a}),bm=a=>[a];function mu(a,s){1&a&&o.eu8(0)}function qg(a,s){if(1&a&&(o.j41(0,"div",2),o.DNE(1,mu,1,0,"ng-container",7),o.k0s()),2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,bd,M.item.active))("routerLink",o.eq3(12,bm,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function ep(a,s){1&a&&o.eu8(0)}function ev(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,ep,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function tv(a,s){1&a&&o.eu8(0)}function nv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",8),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,tv,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,bd,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wm(a,s){1&a&&o.eu8(0)}function iv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",9),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,wm,1,0,"ng-container",7),o.k0s()}if(2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,bd,M.item.active))("routerLink",o.eq3(12,bm,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function tp(a,s){1&a&&o.eu8(0)}function Em(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",10),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,tp,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wd(a,s){1&a&&o.eu8(0)}function ib(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,wd,1,0,"ng-container",7),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,bd,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function rb(a,s){1&a&&o.eu8(0)}function WE(a,s){if(1&a&&(o.j41(0,"div",6),o.DNE(1,rb,1,0,"ng-container",7),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function np(a,s){if(1&a&&o.nrm(0,"mat-icon",11),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Cm(a,s){if(1&a&&(o.j41(0,"div",15)(1,"span",14),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function rv(a,s){if(1&a&&(o.j41(0,"div",16)(1,"div",17),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function ov(a,s){if(1&a&&(o.DNE(0,np,1,2,"mat-icon",11),o.j41(1,"div",12)(2,"div",13)(3,"span",14),o.EFF(4),o.k0s()(),o.DNE(5,Cm,3,2,"div",15),o.k0s(),o.DNE(6,rv,3,2,"div",16)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Dm=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",1),o.DNE(1,qg,2,14,"div",2)(2,ev,2,4,"a",3)(3,nv,2,5,"div",4)(4,iv,2,14,"div",2)(5,Em,2,4,"a",5)(6,ib,2,5,"div",4)(7,WE,2,1,"div",6),o.k0s(),o.DNE(8,ov,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-horizontal-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.vxM(!f.item.link||f.item.externalLink||f.item.function||f.item.disabled?-1:1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&!f.item.function&&!f.item.disabled?2:-1),o.R7$(),o.vxM(f.item.link||!f.item.function||f.item.disabled?-1:3),o.R7$(),o.vxM(f.item.link&&!f.item.externalLink&&f.item.function&&!f.item.disabled?4:-1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&f.item.function&&!f.item.disabled?5:-1),o.R7$(),o.vxM(f.item.link||f.item.function||f.item.disabled?-1:6),o.R7$(),o.vxM(f.item.disabled?7:-1))},dependencies:[et.YU,y.Wk,y.wQ,ta.uc,ta.oV,et.T3,Dl.Cn,Dl.fb,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),gu=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();const ob=["matMenu"],sb=(a,s)=>({"angor-horizontal-navigation-menu-active":a,"angor-horizontal-navigation-menu-active-forced":s}),sv=a=>({$implicit:a}),ab=(a,s)=>({"angor-horizontal-navigation-item-disabled":a,"angor-horizontal-navigation-item-active-forced":s});function lb(a,s){1&a&&o.eu8(0)}function hc(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",6,2),o.bIt("onMenuOpen",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.triggerChangeDetection())})("onMenuClose",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.triggerChangeDetection())}),o.DNE(2,lb,1,0,"ng-container",7),o.k0s()}if(2&a){const i=o.sdS(1),c=o.XpG(),f=o.sdS(2),C=o.sdS(6);o.Y8G("ngClass",o.l_i(4,sb,i.menuOpen,c.item.active))("matMenuTriggerFor",f),o.R7$(2),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,sv,c.item))}}function Ed(a,s){if(1&a&&(o.j41(0,"div",8),o.nrm(1,"angor-horizontal-navigation-basic-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("disabled",i.disabled),o.R7$(),o.Y8G("item",i)("name",c.name)}}function cb(a,s){1&a&&o.eu8(0)}function ub(a,s){if(1&a&&(o.j41(0,"div",9),o.DNE(1,cb,1,0,"ng-container",7),o.nrm(2,"angor-horizontal-navigation-branch-item",12,3),o.k0s()),2&a){const i=o.sdS(3),c=o.XpG(2).$implicit,f=o.XpG(),C=o.sdS(6);o.Y8G("disabled",c.disabled)("matMenuTriggerFor",i.matMenu),o.R7$(),o.Y8G("ngTemplateOutlet",C)("ngTemplateOutletContext",o.eq3(7,sv,c)),o.R7$(),o.Y8G("child",!0)("item",c)("name",f.name)}}function db(a,s){if(1&a&&(o.j41(0,"div",10),o.nrm(1,"angor-horizontal-navigation-divider-item",11),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.R7$(),o.Y8G("item",i)("name",c.name)}}function hb(a,s){if(1&a&&o.DNE(0,Ed,2,3,"div",8)(1,ub,4,9,"div",9)(2,db,2,2,"div",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1)}}function fb(a,s){if(1&a&&o.DNE(0,hb,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function pb(a,s){if(1&a&&o.nrm(0,"mat-icon",15),2&a){const i=o.XpG().$implicit;o.Y8G("ngClass",null==i.classes?null:i.classes.icon)("svgIcon",i.icon)}}function av(a,s){if(1&a&&(o.j41(0,"div",19)(1,"span",18),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",null==i.classes?null:i.classes.subtitle),o.R7$(),o.SpI(" ",i.subtitle," ")}}function mb(a,s){if(1&a&&(o.j41(0,"div",20)(1,"div",21),o.EFF(2),o.k0s()()),2&a){const i=o.XpG().$implicit;o.R7$(),o.Y8G("ngClass",i.badge.classes),o.R7$(),o.SpI(" ",i.badge.title," ")}}function gb(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.DNE(2,pb,1,2,"mat-icon",15),o.j41(3,"div",16)(4,"div",17)(5,"span",18),o.EFF(6),o.k0s()(),o.DNE(7,av,3,2,"div",19),o.k0s(),o.DNE(8,mb,3,2,"div",20),o.k0s()()),2&a){const i=s.$implicit;o.AVh("angor-horizontal-navigation-item-has-subtitle",!!i.subtitle),o.Y8G("ngClass",null==i.classes?null:i.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.l_i(10,ab,i.disabled,i.active))("matTooltip",i.tooltip||""),o.R7$(),o.vxM(i.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==i.classes?null:i.classes.title),o.R7$(),o.SpI(" ",i.title," "),o.R7$(),o.vxM(i.subtitle?7:-1),o.R7$(),o.vxM(i.badge?8:-1)}}let vb=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this.child=!1,this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(c,f){if(1&c&&o.GBs(ob,7),2&c){let C;o.mGM(C=o.lsd())&&(f.matMenu=C.first)}},inputs:{child:"child",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.DNE(0,hc,3,9,"div",4),o.j41(1,"mat-menu",5,0),o.Z7z(3,fb,1,1,null,null,f.trackByFn,!0),o.k0s(),o.DNE(5,gb,9,13,"ng-template",null,1,o.C5r)),2&c&&(o.vxM(f.child?-1:0),o.R7$(),o.Y8G("overlapTrigger",!1),o.R7$(2),o.Dyx(f.item.children))},dependencies:()=>[a,et.YU,Dl.Cn,Dl.kk,Dl.fb,Dl.Cp,et.T3,Dm,gu,ta.uc,ta.oV,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),_b=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();function ip(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-basic-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function fc(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-branch-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ah(a,s){if(1&a&&o.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function lv(a,s){if(1&a&&o.DNE(0,ip,1,2,"angor-horizontal-navigation-basic-item",1)(1,fc,1,2,"angor-horizontal-navigation-branch-item",1)(2,Ah,1,2,"angor-horizontal-navigation-spacer-item",1),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("aside"===i.type||"collapsable"===i.type||"group"===i.type?1:-1),o.R7$(),o.vxM("spacer"===i.type?2:-1)}}function cv(a,s){if(1&a&&o.DNE(0,lv,3,3),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let uv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new Xc.m(1),this._unsubscribeAll=new $r.B}ngOnChanges(i){"navigation"in i&&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(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],standalone:!0,features:[o.OA$,o.aNF],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(c,f){1&c&&(o.j41(0,"div",0),o.Z7z(1,cv,1,1,null,null,f.trackByFn,!0),o.k0s()),2&c&&(o.R7$(),o.Dyx(f.navigation))},dependencies:[Dm,vb,_b],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}\n"],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();const xm=a=>({"angor-vertical-navigation-item-active-forced":a}),yb=a=>[a];function GE(a,s){1&a&&o.eu8(0)}function Sm(a,s){if(1&a&&(o.j41(0,"a",2),o.DNE(1,GE,1,0,"ng-container",6),o.k0s()),2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,xm,M.item.active))("routerLink",o.eq3(12,yb,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function Am(a,s){1&a&&o.eu8(0)}function KE(a,s){if(1&a&&(o.j41(0,"a",3),o.DNE(1,Am,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function XE(a,s){1&a&&o.eu8(0)}function dv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,XE,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,xm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function bb(a,s){1&a&&o.eu8(0)}function wb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",8),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,bb,1,0,"ng-container",6),o.k0s()}if(2&a){let i,c,f,C;const M=o.XpG(),H=o.sdS(9);o.Y8G("ngClass",o.eq3(10,xm,M.item.active))("routerLink",o.eq3(12,yb,M.item.link))("fragment",null!==(i=M.item.fragment)&&void 0!==i?i:null)("preserveFragment",null!==(c=M.item.preserveFragment)&&void 0!==c&&c)("queryParams",null!==(f=M.item.queryParams)&&void 0!==f?f:null)("queryParamsHandling",null!==(C=M.item.queryParamsHandling)&&void 0!==C?C:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",M.isActiveMatchOptions)("matTooltip",M.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",H)}}function Eb(a,s){1&a&&o.eu8(0)}function Cb(a,s){if(1&a){const i=o.RV6();o.j41(0,"a",9),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.item.function(f.item))}),o.DNE(1,Eb,1,0,"ng-container",6),o.k0s()}if(2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("href",i.item.link,o.B4B)("target",i.item.target||"_self")("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Db(a,s){1&a&&o.eu8(0)}function hv(a,s){if(1&a&&(o.j41(0,"div",4),o.DNE(1,Db,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("ngClass",o.eq3(3,xm,i.item.active))("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function fv(a,s){1&a&&o.eu8(0)}function xb(a,s){if(1&a&&(o.j41(0,"div",5),o.DNE(1,fv,1,0,"ng-container",6),o.k0s()),2&a){const i=o.XpG(),c=o.sdS(9);o.Y8G("matTooltip",i.item.tooltip||""),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Sb(a,s){if(1&a&&o.nrm(0,"mat-icon",10),2&a){const i=o.XpG(2);o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function pv(a,s){if(1&a&&(o.j41(0,"div",14)(1,"span",13),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function rp(a,s){if(1&a&&(o.j41(0,"div",15)(1,"div",16),o.EFF(2),o.k0s()()),2&a){const i=o.XpG(2);o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function mv(a,s){if(1&a&&(o.DNE(0,Sb,1,2,"mat-icon",10),o.j41(1,"div",11)(2,"div",12)(3,"span",13),o.EFF(4),o.k0s()(),o.DNE(5,pv,3,2,"div",14),o.k0s(),o.DNE(6,rp,3,2,"div",15)),2&a){const i=o.XpG();o.vxM(i.item.icon?0:-1),o.R7$(3),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.title),o.R7$(),o.SpI(" ",i.item.title," "),o.R7$(),o.vxM(i.item.subtitle?5:-1),o.R7$(),o.vxM(i.item.badge?6:-1)}}let Cd=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",1),o.DNE(1,Sm,2,14,"a",2)(2,KE,2,4,"a",3)(3,dv,2,5,"div",4)(4,wb,2,14,"a",2)(5,Cb,2,4,"a",3)(6,hv,2,5,"div",4)(7,xb,2,2,"div",5),o.k0s(),o.DNE(8,mv,7,5,"ng-template",null,0,o.C5r)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.vxM(!f.item.link||f.item.externalLink||f.item.function||f.item.disabled?-1:1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&!f.item.function&&!f.item.disabled?2:-1),o.R7$(),o.vxM(f.item.link||!f.item.function||f.item.disabled?-1:3),o.R7$(),o.vxM(f.item.link&&!f.item.externalLink&&f.item.function&&!f.item.disabled?4:-1),o.R7$(),o.vxM(f.item.link&&f.item.externalLink&&f.item.function&&!f.item.disabled?5:-1),o.R7$(),o.vxM(f.item.link||f.item.function||f.item.disabled?-1:6),o.R7$(),o.vxM(f.item.disabled?7:-1))},dependencies:[et.YU,y.Wk,y.wQ,ta.uc,ta.oV,et.T3,Gr.m_,Gr.An],encapsulation:2,changeDetection:0})}}return a})(),op=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})(),Vl=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},standalone:!0,features:[o.aNF],decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(c,f){1&c&&o.nrm(0,"div",0),2&c&&o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper)},dependencies:[et.YU],encapsulation:2,changeDetection:0})}}return a})();function gv(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function Ab(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Tm(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",8),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function Im(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Tb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Ib(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Mb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Ob(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function vv(a,s){if(1&a&&o.DNE(0,Im,1,2,"angor-vertical-navigation-basic-item",9)(1,Tb,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Ib,1,2,"angor-vertical-navigation-divider-item",9)(3,Mb,1,2,"angor-vertical-navigation-group-item",9)(4,Ob,1,2,"angor-vertical-navigation-spacer-item",9),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function YE(a,s){if(1&a&&o.DNE(0,vv,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}let _v=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._angorNavigationService=(0,o.WQX)(Aa),this._unsubscribeAll=new $r.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,gv,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,Ab,3,2,"div",6),o.k0s(),o.DNE(8,Tm,3,2,"div",7),o.k0s()(),o.Z7z(9,YE,1,1,null,null,f.trackByFn,!0)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(2),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.Dyx(f.item.children))},dependencies:()=>[a,et.YU,Gr.m_,Gr.An,Cd,bv,op,Vl],encapsulation:2,changeDetection:0})}}return a})();const Th=a=>({"angor-vertical-navigation-item-disabled":a});function Rb(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function kb(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function Nb(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",10),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function yv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Pb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Fb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Lb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Bb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function Ub(a,s){if(1&a&&o.DNE(0,yv,1,2,"angor-vertical-navigation-basic-item",11)(1,Pb,1,3,"angor-vertical-navigation-collapsable-item",12)(2,Fb,1,2,"angor-vertical-navigation-divider-item",11)(3,Lb,1,2,"angor-vertical-navigation-group-item",11)(4,Bb,1,2,"angor-vertical-navigation-spacer-item",11),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function Vb(a,s){if(1&a&&o.DNE(0,Ub,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Mm(a,s){if(1&a&&(o.j41(0,"div",9),o.Z7z(1,Vb,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("@expandCollapse",void 0),o.R7$(),o.Dyx(i.item.children)}}let bv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Aa),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new $r.B}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((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&this._isChildrenOf(i,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{null!==i&&(this._isChildrenOf(this.item,i)||this._hasActiveChild(this.item,this._router.url)||this.item!==i&&this.collapse())}),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this._hasActiveChild(this.item,i.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(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(i,c){return c.id||i}_hasActiveChild(i,c){const f=i.children;if(!f)return!1;for(const C of f)if(C.children&&this._hasActiveChild(C,c)||C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0;return!1}_isChildrenOf(i,c){const f=i.children;if(!f)return!1;if(f.indexOf(c)>-1)return!0;for(const C of f)if(C.children&&this._isChildrenOf(C,c))return!0;return!1}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(c,f){2&c&&o.HbH(f.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},standalone:!0,features:[o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.bIt("click",function(){return f.toggleCollapsable()}),o.DNE(2,Rb,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,kb,3,2,"div",6),o.k0s(),o.DNE(8,Nb,3,2,"div",7),o.nrm(9,"mat-icon",8),o.k0s()(),o.DNE(10,Mm,3,1,"div",9)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.eq3(12,Th,f.item.disabled))("matTooltip",f.item.tooltip||""),o.R7$(),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.Y8G("svgIcon","heroicons_solid:chevron-right"),o.R7$(),o.vxM(f.isCollapsed?-1:10))},dependencies:()=>[a,et.YU,ta.uc,ta.oV,Gr.m_,Gr.An,Cd,op,_v,Vl],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();const QE=(a,s,i)=>({"angor-vertical-navigation-item-active":a,"angor-vertical-navigation-item-disabled":s,"angor-vertical-navigation-item-active-forced":i});function Om(a,s){if(1&a&&o.nrm(0,"mat-icon",2),2&a){const i=o.XpG();o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.icon)("svgIcon",i.item.icon)}}function ZE(a,s){if(1&a&&(o.j41(0,"div",6)(1,"span",5),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",null==i.item.classes?null:i.item.classes.subtitle),o.R7$(),o.SpI(" ",i.item.subtitle," ")}}function JE(a,s){if(1&a&&(o.j41(0,"div",7)(1,"div",9),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngClass",i.item.badge.classes),o.R7$(),o.SpI(" ",i.item.badge.title," ")}}function qE(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function eC(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function tC(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function jb(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function sp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)}}function ap(a,s){if(1&a&&o.DNE(0,qE,1,2,"angor-vertical-navigation-basic-item",10)(1,eC,1,3,"angor-vertical-navigation-collapsable-item",11)(2,tC,1,2,"angor-vertical-navigation-divider-item",10)(3,jb,1,2,"angor-vertical-navigation-group-item",10)(4,sp,1,2,"angor-vertical-navigation-spacer-item",10),2&a){const i=o.XpG().$implicit;o.vxM("basic"===i.type?0:-1),o.R7$(),o.vxM("collapsable"===i.type?1:-1),o.R7$(),o.vxM("divider"===i.type?2:-1),o.R7$(),o.vxM("group"===i.type?3:-1),o.R7$(),o.vxM("spacer"===i.type?4:-1)}}function wv(a,s){if(1&a&&o.DNE(0,ap,5,5),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Ev(a,s){if(1&a&&(o.j41(0,"div",8),o.Z7z(1,wv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Dyx(i.item.children)}}let Cv=(()=>{class a{constructor(){this._changeDetectorRef=(0,o.WQX)(o.gRc),this._router=(0,o.WQX)(y.Ix),this._angorNavigationService=(0,o.WQX)(Aa),this.active=!1,this._unsubscribeAll=new $r.B}ngOnChanges(i){"activeItemId"in i&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this._markIfActive(i.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(i,c){return c.id||i}_hasActiveChild(i,c){const f=i.children;if(!f)return!1;for(const C of f){if(C.children&&this._hasActiveChild(C,c))return!0;if("basic"===C.type&&C.link&&this._router.isActive(C.link,C.exactMatch||!1))return!0}return!1}_markIfActive(i){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,i)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},standalone:!0,features:[o.OA$,o.aNF],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(c,f){1&c&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,Om,1,2,"mat-icon",2),o.j41(3,"div",3)(4,"div",4)(5,"span",5),o.EFF(6),o.k0s()(),o.DNE(7,ZE,3,2,"div",6),o.k0s(),o.DNE(8,JE,3,2,"div",7),o.k0s()(),o.DNE(9,Ev,3,0,"div",8)),2&c&&(o.AVh("angor-vertical-navigation-item-has-subtitle",!!f.item.subtitle),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.wrapper),o.R7$(),o.Y8G("ngClass",o.sMw(11,QE,f.active,f.item.disabled,f.item.active))("matTooltip",f.item.tooltip||""),o.R7$(),o.vxM(f.item.icon?2:-1),o.R7$(3),o.Y8G("ngClass",null==f.item.classes?null:f.item.classes.title),o.R7$(),o.SpI(" ",f.item.title," "),o.R7$(),o.vxM(f.item.subtitle?7:-1),o.R7$(),o.vxM(f.item.badge?8:-1),o.R7$(),o.vxM(f.skipChildren?-1:9))},dependencies:[et.YU,ta.uc,ta.oV,Gr.m_,Gr.An,Cd,bv,op,_v,Vl],encapsulation:2,changeDetection:0})}}return a})();class Hb{constructor(s,i,c,f){this.x=s,this.y=i,this.w=c,this.h=f}}class Dv{constructor(s,i){this.x=s,this.y=i}}var xv=v(2401);function pa(a){return getComputedStyle(a)}function bo(a,s){for(var i in s){var c=s[i];"number"==typeof c&&(c+="px"),a.style[i]=c}return a}function na(a){var s=document.createElement("div");return s.className=a,s}var Rm=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function vu(a,s){if(!Rm)throw new Error("No element matching method supported");return Rm.call(a,s)}function Dd(a){a.remove?a.remove():a.parentNode&&a.parentNode.removeChild(a)}function $b(a,s){return Array.prototype.filter.call(a.children,function(i){return vu(i,s)})}var gs={main:"ps",rtl:"ps__rtl",element:{thumb:function(a){return"ps__thumb-"+a},rail:function(a){return"ps__rail-"+a},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(a){return"ps--active-"+a},scrolling:function(a){return"ps--scrolling-"+a}}},km={x:null,y:null};function Nm(a,s){var i=a.element.classList,c=gs.state.scrolling(s);i.contains(c)?clearTimeout(km[s]):i.add(c)}function zb(a,s){km[s]=setTimeout(function(){return a.isAlive&&a.element.classList.remove(gs.state.scrolling(s))},a.settings.scrollingThreshold)}var _u=function(s){this.element=s,this.handlers={}},cp={isEmpty:{configurable:!0}};_u.prototype.bind=function(s,i){typeof this.handlers[s]>"u"&&(this.handlers[s]=[]),this.handlers[s].push(i),this.element.addEventListener(s,i,!1)},_u.prototype.unbind=function(s,i){var c=this;this.handlers[s]=this.handlers[s].filter(function(f){return!(!i||f===i)||(c.element.removeEventListener(s,f,!1),!1)})},_u.prototype.unbindAll=function(){for(var s in this.handlers)this.unbind(s)},cp.isEmpty.get=function(){var a=this;return Object.keys(this.handlers).every(function(s){return 0===a.handlers[s].length})},Object.defineProperties(_u.prototype,cp);var xd=function(){this.eventElements=[]};function pc(a){if("function"==typeof window.CustomEvent)return new CustomEvent(a);var s=document.createEvent("CustomEvent");return s.initCustomEvent(a,!1,!1,void 0),s}function Sd(a,s,i,c,f){var C;if(void 0===c&&(c=!0),void 0===f&&(f=!1),"top"===s)C=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==s)throw new Error("A proper axis should be provided");C=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Sv(a,s,i,c,f){var C=i[0],M=i[1],H=i[2],ie=i[3],Fe=i[4],Nt=i[5];void 0===c&&(c=!0),void 0===f&&(f=!1);var Yt=a.element;a.reach[ie]=null,Yt[H]<1&&(a.reach[ie]="start"),Yt[H]>a[C]-a[M]-1&&(a.reach[ie]="end"),s&&(Yt.dispatchEvent(pc("ps-scroll-"+ie)),s<0?Yt.dispatchEvent(pc("ps-scroll-"+Fe)):s>0&&Yt.dispatchEvent(pc("ps-scroll-"+Nt)),c&&function lp(a,s){Nm(a,s),zb(a,s)}(a,ie)),a.reach[ie]&&(s||f)&&Yt.dispatchEvent(pc("ps-"+ie+"-reach-"+a.reach[ie]))}(a,i,C,c,f)}function Do(a){return parseInt(a,10)||0}xd.prototype.eventElement=function(s){var i=this.eventElements.filter(function(c){return c.element===s})[0];return i||(i=new _u(s),this.eventElements.push(i)),i},xd.prototype.bind=function(s,i,c){this.eventElement(s).bind(i,c)},xd.prototype.unbind=function(s,i,c){var f=this.eventElement(s);f.unbind(i,c),f.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(f),1)},xd.prototype.unbindAll=function(){this.eventElements.forEach(function(s){return s.unbindAll()}),this.eventElements=[]},xd.prototype.once=function(s,i,c){var f=this.eventElement(s),C=function(M){f.unbind(i,C),c(M)};f.bind(i,C)};var Ad={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 jl(a){var s=a.element,i=Math.floor(s.scrollTop),c=s.getBoundingClientRect();a.containerWidth=Math.round(c.width),a.containerHeight=Math.round(c.height),a.contentWidth=s.scrollWidth,a.contentHeight=s.scrollHeight,s.contains(a.scrollbarXRail)||($b(s,gs.element.rail("x")).forEach(function(f){return Dd(f)}),s.appendChild(a.scrollbarXRail)),s.contains(a.scrollbarYRail)||($b(s,gs.element.rail("y")).forEach(function(f){return Dd(f)}),s.appendChild(a.scrollbarYRail)),!a.settings.suppressScrollX&&a.containerWidth+a.settings.scrollXMarginOffset=a.railXWidth-a.scrollbarXWidth&&(a.scrollbarXLeft=a.railXWidth-a.scrollbarXWidth),a.scrollbarYTop>=a.railYHeight-a.scrollbarYHeight&&(a.scrollbarYTop=a.railYHeight-a.scrollbarYHeight),function Gb(a,s){var i={width:s.railXWidth},c=Math.floor(a.scrollTop);i.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+s.containerWidth-s.contentWidth:a.scrollLeft,s.isScrollbarXUsingBottom?i.bottom=s.scrollbarXBottom-c:i.top=s.scrollbarXTop+c,bo(s.scrollbarXRail,i);var f={top:c,height:s.railYHeight};s.isScrollbarYUsingRight?f.right=s.isRtl?s.contentWidth-(s.negativeScrollAdjustment+a.scrollLeft)-s.scrollbarYRight-s.scrollbarYOuterWidth-9:s.scrollbarYRight-a.scrollLeft:f.left=s.isRtl?s.negativeScrollAdjustment+a.scrollLeft+2*s.containerWidth-s.contentWidth-s.scrollbarYLeft-s.scrollbarYOuterWidth:s.scrollbarYLeft+a.scrollLeft,bo(s.scrollbarYRail,f),bo(s.scrollbarX,{left:s.scrollbarXLeft,width:s.scrollbarXWidth-s.railBorderXWidth}),bo(s.scrollbarY,{top:s.scrollbarYTop,height:s.scrollbarYHeight-s.railBorderYWidth})}(s,a),a.scrollbarXActive?s.classList.add(gs.state.active("x")):(s.classList.remove(gs.state.active("x")),a.scrollbarXWidth=0,a.scrollbarXLeft=0,s.scrollLeft=!0===a.isRtl?a.contentWidth:0),a.scrollbarYActive?s.classList.add(gs.state.active("y")):(s.classList.remove(gs.state.active("y")),a.scrollbarYHeight=0,a.scrollbarYTop=0,s.scrollTop=0)}function Av(a,s){return a.settings.minScrollbarLength&&(s=Math.max(s,a.settings.minScrollbarLength)),a.settings.maxScrollbarLength&&(s=Math.min(s,a.settings.maxScrollbarLength)),s}function Td(a,s){var i=s[0],c=s[1],f=s[2],C=s[3],M=s[4],H=s[5],ie=s[6],Fe=s[7],Nt=s[8],Yt=a.element,jn=null,wn=null,Dn=null;function pi($i){$i.touches&&$i.touches[0]&&($i[f]=$i.touches[0].pageY),Yt[ie]=jn+Dn*($i[f]-wn),Nm(a,Fe),jl(a),$i.stopPropagation(),$i.type.startsWith("touch")&&$i.changedTouches.length>1&&$i.preventDefault()}function Fi(){zb(a,Fe),a[Nt].classList.remove(gs.state.clicking),a.event.unbind(a.ownerDocument,"mousemove",pi)}function Ui($i,no){jn=Yt[ie],no&&$i.touches&&($i[f]=$i.touches[0].pageY),wn=$i[f],Dn=(a[c]-a[i])/(a[C]-a[H]),no?a.event.bind(a.ownerDocument,"touchmove",pi):(a.event.bind(a.ownerDocument,"mousemove",pi),a.event.once(a.ownerDocument,"mouseup",Fi),$i.preventDefault()),a[Nt].classList.add(gs.state.clicking),$i.stopPropagation()}a.event.bind(a[M],"mousedown",function($i){Ui($i)}),a.event.bind(a[M],"touchstart",function($i){Ui($i,!0)})}var Lm={"click-rail":function Tv(a){a.event.bind(a.scrollbarY,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarYRail,"mousedown",function(i){var c=i.pageY-window.pageYOffset-a.scrollbarYRail.getBoundingClientRect().top;a.element.scrollTop+=(c>a.scrollbarYTop?1:-1)*a.containerHeight,jl(a),i.stopPropagation()}),a.event.bind(a.scrollbarX,"mousedown",function(i){return i.stopPropagation()}),a.event.bind(a.scrollbarXRail,"mousedown",function(i){var c=i.pageX-window.pageXOffset-a.scrollbarXRail.getBoundingClientRect().left;a.element.scrollLeft+=(c>a.scrollbarXLeft?1:-1)*a.containerWidth,jl(a),i.stopPropagation()})},"drag-thumb":function Pm(a){Td(a,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Td(a,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function dp(a){var s=a.element;a.event.bind(a.ownerDocument,"keydown",function(C){if(!(C.isDefaultPrevented&&C.isDefaultPrevented()||C.defaultPrevented)&&(vu(s,":hover")||vu(a.scrollbarX,":focus")||vu(a.scrollbarY,":focus"))){var M=document.activeElement?document.activeElement:a.ownerDocument.activeElement;if(M){if("IFRAME"===M.tagName)M=M.contentDocument.activeElement;else for(;M.shadowRoot;)M=M.shadowRoot.activeElement;if(function up(a){return vu(a,"input,[contenteditable]")||vu(a,"select,[contenteditable]")||vu(a,"textarea,[contenteditable]")||vu(a,"button,[contenteditable]")}(M))return}var H=0,ie=0;switch(C.which){case 37:H=C.metaKey?-a.contentWidth:C.altKey?-a.containerWidth:-30;break;case 38:ie=C.metaKey?a.contentHeight:C.altKey?a.containerHeight:30;break;case 39:H=C.metaKey?a.contentWidth:C.altKey?a.containerWidth:30;break;case 40:ie=C.metaKey?-a.contentHeight:C.altKey?-a.containerHeight:-30;break;case 32:ie=C.shiftKey?a.containerHeight:-a.containerHeight;break;case 33:ie=a.containerHeight;break;case 34:ie=-a.containerHeight;break;case 36:ie=a.contentHeight;break;case 35:ie=-a.contentHeight;break;default:return}a.settings.suppressScrollX&&0!==H||a.settings.suppressScrollY&&0!==ie||(s.scrollTop-=ie,s.scrollLeft+=H,jl(a),function f(C,M){var H=Math.floor(s.scrollTop);if(0===C){if(!a.scrollbarYActive)return!1;if(0===H&&M>0||H>=a.contentHeight-a.containerHeight&&M<0)return!a.settings.wheelPropagation}var ie=s.scrollLeft;if(0===M){if(!a.scrollbarXActive)return!1;if(0===ie&&C<0||ie>=a.contentWidth-a.containerWidth&&C>0)return!a.settings.wheelPropagation}return!0}(H,ie)&&C.preventDefault())}})},wheel:function Fm(a){var s=a.element;function C(M){var H=function c(M){var H=M.deltaX,ie=-1*M.deltaY;return(typeof H>"u"||typeof ie>"u")&&(H=-1*M.wheelDeltaX/6,ie=M.wheelDeltaY/6),M.deltaMode&&1===M.deltaMode&&(H*=10,ie*=10),H!=H&&ie!=ie&&(H=0,ie=M.wheelDelta),M.shiftKey?[-ie,-H]:[H,ie]}(M),ie=H[0],Fe=H[1];if(!function f(M,H,ie){if(!Ad.isWebKit&&s.querySelector("select:focus"))return!0;if(!s.contains(M))return!1;for(var Fe=M;Fe&&Fe!==s;){if(Fe.classList.contains(gs.element.consuming))return!0;var Nt=pa(Fe);if(ie&&Nt.overflowY.match(/(scroll|auto)/)){var Yt=Fe.scrollHeight-Fe.clientHeight;if(Yt>0&&(Fe.scrollTop>0&&ie<0||Fe.scrollTop0))return!0}if(H&&Nt.overflowX.match(/(scroll|auto)/)){var jn=Fe.scrollWidth-Fe.clientWidth;if(jn>0&&(Fe.scrollLeft>0&&H<0||Fe.scrollLeft0))return!0}Fe=Fe.parentNode}return!1}(M.target,ie,Fe)){var Nt=!1;a.settings.useBothWheelAxes?a.scrollbarYActive&&!a.scrollbarXActive?(Fe?s.scrollTop-=Fe*a.settings.wheelSpeed:s.scrollTop+=ie*a.settings.wheelSpeed,Nt=!0):a.scrollbarXActive&&!a.scrollbarYActive&&(ie?s.scrollLeft+=ie*a.settings.wheelSpeed:s.scrollLeft-=Fe*a.settings.wheelSpeed,Nt=!0):(s.scrollTop-=Fe*a.settings.wheelSpeed,s.scrollLeft+=ie*a.settings.wheelSpeed),jl(a),Nt=Nt||function i(M,H){var ie=Math.floor(s.scrollTop),Fe=0===s.scrollTop,Nt=ie+s.offsetHeight===s.scrollHeight,Yt=0===s.scrollLeft,jn=s.scrollLeft+s.offsetWidth===s.scrollWidth;return!(Math.abs(H)>Math.abs(M)?Fe||Nt:Yt||jn)||!a.settings.wheelPropagation}(ie,Fe),Nt&&!M.ctrlKey&&(M.stopPropagation(),M.preventDefault())}}typeof window.onwheel<"u"?a.event.bind(s,"wheel",C):typeof window.onmousewheel<"u"&&a.event.bind(s,"mousewheel",C)},touch:function Kb(a){if(Ad.supportsTouch||Ad.supportsIePointer){var s=a.element,f={},C=0,M={},H=null;Ad.supportsTouch?(a.event.bind(s,"touchstart",Nt),a.event.bind(s,"touchmove",jn),a.event.bind(s,"touchend",wn)):Ad.supportsIePointer&&(window.PointerEvent?(a.event.bind(s,"pointerdown",Nt),a.event.bind(s,"pointermove",jn),a.event.bind(s,"pointerup",wn)):window.MSPointerEvent&&(a.event.bind(s,"MSPointerDown",Nt),a.event.bind(s,"MSPointerMove",jn),a.event.bind(s,"MSPointerUp",wn)))}function c(Dn,pi){s.scrollTop-=pi,s.scrollLeft-=Dn,jl(a)}function ie(Dn){return Dn.targetTouches?Dn.targetTouches[0]:Dn}function Fe(Dn){return!(Dn.pointerType&&"pen"===Dn.pointerType&&0===Dn.buttons||!(Dn.targetTouches&&1===Dn.targetTouches.length||Dn.pointerType&&"mouse"!==Dn.pointerType&&Dn.pointerType!==Dn.MSPOINTER_TYPE_MOUSE))}function Nt(Dn){if(Fe(Dn)){var pi=ie(Dn);f.pageX=pi.pageX,f.pageY=pi.pageY,C=(new Date).getTime(),null!==H&&clearInterval(H)}}function jn(Dn){if(Fe(Dn)){var pi=ie(Dn),Fi={pageX:pi.pageX,pageY:pi.pageY},Ui=Fi.pageX-f.pageX,$i=Fi.pageY-f.pageY;if(function Yt(Dn,pi,Fi){if(!s.contains(Dn))return!1;for(var Ui=Dn;Ui&&Ui!==s;){if(Ui.classList.contains(gs.element.consuming))return!0;var $i=pa(Ui);if(Fi&&$i.overflowY.match(/(scroll|auto)/)){var no=Ui.scrollHeight-Ui.clientHeight;if(no>0&&(Ui.scrollTop>0&&Fi<0||Ui.scrollTop0))return!0}if(pi&&$i.overflowX.match(/(scroll|auto)/)){var go=Ui.scrollWidth-Ui.clientWidth;if(go>0&&(Ui.scrollLeft>0&&pi<0||Ui.scrollLeft0))return!0}Ui=Ui.parentNode}return!1}(Dn.target,Ui,$i))return;c(Ui,$i),f=Fi;var no=(new Date).getTime(),go=no-C;go>0&&(M.x=Ui/go,M.y=$i/go,C=no),function i(Dn,pi){var Fi=Math.floor(s.scrollTop),Ui=s.scrollLeft,$i=Math.abs(Dn),no=Math.abs(pi);if(no>$i){if(pi<0&&Fi===a.contentHeight-a.containerHeight||pi>0&&0===Fi)return 0===window.scrollY&&pi>0&&Ad.isChrome}else if($i>no&&(Dn<0&&Ui===a.contentWidth-a.containerWidth||Dn>0&&0===Ui))return!0;return!0}(Ui,$i)&&Dn.preventDefault()}}function wn(){a.settings.swipeEasing&&(clearInterval(H),H=setInterval(function(){a.isInitialized?clearInterval(H):M.x||M.y?Math.abs(M.x)<.01&&Math.abs(M.y)<.01?clearInterval(H):a.element?(c(30*M.x,30*M.y),M.x*=.8,M.y*=.8):clearInterval(H):clearInterval(H)},10))}}},Id=function(s,i){var c=this;if(void 0===i&&(i={}),"string"==typeof s&&(s=document.querySelector(s)),!s||!s.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var f in this.element=s,s.classList.add(gs.main),this.settings={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},i)this.settings[f]=i[f];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Nt,Fe,C=function(){return s.classList.add(gs.state.focus)},M=function(){return s.classList.remove(gs.state.focus)};this.isRtl="rtl"===pa(s).direction,!0===this.isRtl&&s.classList.add(gs.rtl),this.isNegativeScroll=(Fe=s.scrollLeft,s.scrollLeft=-1,Nt=s.scrollLeft<0,s.scrollLeft=Fe,Nt),this.negativeScrollAdjustment=this.isNegativeScroll?s.scrollWidth-s.clientWidth:0,this.event=new xd,this.ownerDocument=s.ownerDocument||document,this.scrollbarXRail=na(gs.element.rail("x")),s.appendChild(this.scrollbarXRail),this.scrollbarX=na(gs.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",C),this.event.bind(this.scrollbarX,"blur",M),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var H=pa(this.scrollbarXRail);this.scrollbarXBottom=parseInt(H.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Do(H.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Do(H.borderLeftWidth)+Do(H.borderRightWidth),bo(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Do(H.marginLeft)+Do(H.marginRight),bo(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=na(gs.element.rail("y")),s.appendChild(this.scrollbarYRail),this.scrollbarY=na(gs.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",C),this.event.bind(this.scrollbarY,"blur",M),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var ie=pa(this.scrollbarYRail);this.scrollbarYRight=parseInt(ie.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Do(ie.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function Wb(a){var s=pa(a);return Do(s.width)+Do(s.paddingLeft)+Do(s.paddingRight)+Do(s.borderLeftWidth)+Do(s.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Do(ie.borderTopWidth)+Do(ie.borderBottomWidth),bo(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Do(ie.marginTop)+Do(ie.marginBottom),bo(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:s.scrollLeft<=0?"start":s.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:s.scrollTop<=0?"start":s.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Fe){return Lm[Fe](c)}),this.lastScrollTop=Math.floor(s.scrollTop),this.lastScrollLeft=s.scrollLeft,this.event.bind(this.element,"scroll",function(Fe){return c.onScroll(Fe)}),jl(this)};Id.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,bo(this.scrollbarXRail,{display:"block"}),bo(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Do(pa(this.scrollbarXRail).marginLeft)+Do(pa(this.scrollbarXRail).marginRight),this.railYMarginHeight=Do(pa(this.scrollbarYRail).marginTop)+Do(pa(this.scrollbarYRail).marginBottom),bo(this.scrollbarXRail,{display:"none"}),bo(this.scrollbarYRail,{display:"none"}),jl(this),Sd(this,"top",0,!1,!0),Sd(this,"left",0,!1,!0),bo(this.scrollbarXRail,{display:""}),bo(this.scrollbarYRail,{display:""}))},Id.prototype.onScroll=function(s){this.isAlive&&(jl(this),Sd(this,"top",this.element.scrollTop-this.lastScrollTop),Sd(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Id.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Dd(this.scrollbarX),Dd(this.scrollbarY),Dd(this.scrollbarXRail),Dd(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Id.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(s){return!s.match(/^ps([-_].+|)$/)}).join(" ")};const yu=Id;var Bm=v(152);let Um=(()=>{class a{constructor(){this._elementRef=(0,o.WQX)(o.aKT),this._platform=(0,o.WQX)(he.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new $r.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(i){"angorScrollbar"in i&&(this.angorScrollbar=(0,xh.he)(i.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in i&&(this._options=(0,xv.A)({},this._options,i.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Bc.R)(window,"resize").pipe((0,Wr.Q)(this._unsubscribeAll),(0,Bm.B)(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(i="scroll"){return new Hb(this._elementRef.nativeElement[`${i}Left`],this._elementRef.nativeElement[`${i}Top`],this._elementRef.nativeElement[`${i}Width`],this._elementRef.nativeElement[`${i}Height`])}position(i=!1){return!i&&this._ps?new Dv(this._ps.reach.x||0,this._ps.reach.y||0):new Dv(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(i,c,f){null==c&&null==f?this.animateScrolling("scrollTop",i,f):(null!=i&&this.scrollToX(i,f),null!=c&&this.scrollToY(c,f))}scrollToX(i,c){this.animateScrolling("scrollLeft",i,c)}scrollToY(i,c){this.animateScrolling("scrollTop",i,c)}scrollToTop(i=0,c){this.animateScrolling("scrollTop",i,c)}scrollToBottom(i=0,c){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-i,c)}scrollToLeft(i=0,c){this.animateScrolling("scrollLeft",i,c)}scrollToRight(i=0,c){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-i,c)}scrollToElement(i,c=0,f=!1,C){const M=this._elementRef.nativeElement.querySelector(i);if(!M)return;const H=M.getBoundingClientRect(),ie=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(H.left,ie.left,"scrollLeft",c,f,C),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(H.top,ie.top,"scrollTop",c,f,C)}animateScrolling(i,c,f){this._animation&&window.cancelAnimationFrame(this._animation),!f||typeof window>"u"?this._elementRef.nativeElement[i]=c:c!==this._elementRef.nativeElement[i]&&this._smoothScroll(i,c,f)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new yu(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(i,c,f,C,M,H){M&&i<=c-Math.abs(C)||this.animateScrolling(f,i-c+this._elementRef.nativeElement[f]+C,H)}_smoothScroll(i,c,f){let C=0,M=this._elementRef.nativeElement[i];const H=(M-c)/2;let ie=performance.now();const Fe=Nt=>{C+=Math.PI/(f/(Nt-ie));const Yt=Math.round(c+H+H*Math.cos(C));this._elementRef.nativeElement[i]===M&&(C>=Math.PI?this.animateScrolling(i,c,0):(this._elementRef.nativeElement[i]=Yt,M=this._elementRef.nativeElement[i],ie=Nt,this._animation=window.requestAnimationFrame(Fe)))};window.requestAnimationFrame(Fe)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275dir=o.FsC({type:a,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],standalone:!0,features:[o.OA$]})}}return a})();var Hl=v(7987);const Yb=["navigationContent"],Iv=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Mv=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],Ov=a=>({wheelPropagation:a,suppressScrollX:!0}),Vm=()=>({wheelPropagation:!1,suppressScrollX:!0});function Rv(a,s){if(1&a){const i=o.RV6();o.j41(0,"angor-vertical-navigation-aside-item",10),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2).$implicit,C=o.XpG();return o.Njj(C.toggleAside(f))}),o.k0s()}if(2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("activeItemId",c.activeAsideItemId)("autoCollapse",c.autoCollapse)("skipChildren",!0)}}function hp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-basic-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function bu(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function kv(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-divider-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function jm(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-group-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Ih(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG(2).$implicit,c=o.XpG();o.Y8G("item",i)("name",c.name)}}function Nv(a,s){if(1&a&&o.DNE(0,Rv,1,5,"angor-vertical-navigation-aside-item",7)(1,hp,1,2,"angor-vertical-navigation-basic-item",8)(2,bu,1,3,"angor-vertical-navigation-collapsable-item",9)(3,kv,1,2,"angor-vertical-navigation-divider-item",8)(4,jm,1,3,"angor-vertical-navigation-group-item",9)(5,Ih,1,2,"angor-vertical-navigation-spacer-item",8),2&a){const i=o.XpG().$implicit;o.vxM("aside"===i.type?0:-1),o.R7$(),o.vxM("basic"===i.type?1:-1),o.R7$(),o.vxM("collapsable"===i.type?2:-1),o.R7$(),o.vxM("divider"===i.type?3:-1),o.R7$(),o.vxM("group"===i.type?4:-1),o.R7$(),o.vxM("spacer"===i.type?5:-1)}}function Hm(a,s){if(1&a&&o.DNE(0,Nv,6,6),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function fp(a,s){if(1&a&&o.nrm(0,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG(2).$implicit,c=o.XpG(2);o.Y8G("item",i)("name",c.name)("autoCollapse",c.autoCollapse)}}function Qb(a,s){if(1&a&&o.DNE(0,fp,1,3,"angor-vertical-navigation-aside-item",9),2&a){const i=o.XpG().$implicit,c=o.XpG(2);o.vxM("aside"===i.type&&i.id===c.activeAsideItemId?0:-1)}}function Pv(a,s){if(1&a&&o.DNE(0,Qb,1,1),2&a){const i=s.$implicit;o.vxM(i.hidden&&!i.hidden(i)||!i.hidden?0:-1)}}function Zb(a,s){if(1&a&&(o.j41(0,"div",6),o.Z7z(1,Pv,1,1,null,null,o.BUC().trackByFn,!0),o.k0s()),2&a){const i=o.XpG();o.Y8G("angorScrollbarOptions",o.lJ4(5,Vm))("@fadeInLeft","left"===i.position)("@fadeInRight","right"===i.position)("@fadeOutLeft","left"===i.position)("@fadeOutRight","right"===i.position),o.R7$(),o.Dyx(i.navigation)}}let Fv=(()=>{class a{constructor(){this._animationBuilder=(0,o.WQX)(mi.S6),this._changeDetectorRef=(0,o.WQX)(o.gRc),this._document=(0,o.WQX)(et.qQ),this._elementRef=(0,o.WQX)(o.aKT),this._renderer2=(0,o.WQX)(o.sFG),this._router=(0,o.WQX)(y.Ix),this._scrollStrategyOptions=(0,o.WQX)(Hl.Tv),this._angorNavigationService=(0,o.WQX)(Aa),this._angorUtilsService=(0,o.WQX)(Tt.Q),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 o.bkB,this.modeChanged=new o.bkB,this.openedChanged=new o.bkB,this.positionChanged=new o.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new Xc.m(1),this.onCollapsableItemExpanded=new Xc.m(1),this.onRefreshed=new Xc.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new $r.B,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":"over"===this.mode,"angor-vertical-navigation-mode-side":"side"===this.mode,"angor-vertical-navigation-opened":this.opened,"angor-vertical-navigation-position-left":"left"===this.position,"angor-vertical-navigation-position-right":"right"===this.position}}get styleList(){return{visibility:this.opened?"visible":"hidden"}}set angorScrollbarDirectives(i){this._angorScrollbarDirectives=i,0!==i.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,bl.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,Wr.Q)(this._unsubscribeAll),(0,Te.c)(250)).subscribe(()=>{i.forEach(c=>{c.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(i){if("appearance"in i&&this.appearanceChanged.next(i.appearance.currentValue),"inner"in i&&(this.inner=(0,xh.he)(i.inner.currentValue)),"mode"in i){const c=i.mode.currentValue,f=i.mode.previousValue;this._disableAnimations(),"over"===f&&"side"===c&&this._hideOverlay(),"side"===f&&"over"===c&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(c),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in i&&this._changeDetectorRef.markForCheck(),"opened"in i&&(this.opened=(0,xh.he)(i.opened.currentValue),this._toggleOpened(this.opened)),"position"in i&&this.positionChanged.next(i.position.currentValue),"transparentOverlay"in i&&(this.transparentOverlay=(0,xh.he)(i.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(i=>{i.forEach(c=>{const f=c.target;if("class"===c.attributeName)if(f.classList.contains("cdk-global-scrollblock")){const C=parseInt(f.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(C)}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(i=>{i.isEnabled()&&i.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const i=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");i&&i.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(i){i.disabled||!i.id||(this.activeAsideItemId=i.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(i){this.activeAsideItemId===i.id?this.closeAside():this.openAside(i)}trackByFn(i,c){return c.id||i}_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([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({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([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,mi.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,mi.iF)({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(i){this.opened=i,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(i)}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["angor-vertical-navigation"]],viewQuery:function(c,f){if(1&c&&(o.GBs(Yb,5),o.GBs(Um,5)),2&c){let C;o.mGM(C=o.lsd())&&(f._navigationContentEl=C.first),o.mGM(C=o.lsd())&&(f.angorScrollbarDirectives=C)}},hostVars:4,hostBindings:function(c,f){1&c&&o.bIt("mouseenter",function(){return f._onMouseenter()})("mouseleave",function(){return f._onMouseleave()}),2&c&&(o.Aen(f.styleList),o.HbH(f.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:[o.OA$,o.aNF],ngContentSelectors:Mv,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(c,f){1&c&&(o.NAR(Iv),o.j41(0,"div",1)(1,"div",2),o.SdG(2),o.k0s(),o.j41(3,"div",3,0)(5,"div",4),o.SdG(6,1),o.k0s(),o.Z7z(7,Hm,1,1,null,null,f.trackByFn,!0),o.k0s(),o.j41(9,"div",5),o.SdG(10,2),o.k0s()(),o.DNE(11,Zb,3,6,"div",6)),2&c&&(o.R7$(3),o.Y8G("angorScrollbarOptions",o.eq3(2,Ov,f.inner)),o.R7$(4),o.Dyx(f.navigation),o.R7$(4),o.vxM(f.activeAsideItemId?11:-1))},dependencies:[Um,Cv,Cd,bv,op,_v,Vl],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)}\n'],encapsulation:2,data:{animation:qf.F},changeDetection:0})}}return a})();var Lv=v(6939),Bv=v(6231);let Uv=(()=>{class a{constructor(i){this.relayService=i,this.notificationSubject=new bt.t([]),this.notificationCount=new bt.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const i=localStorage.getItem("notificationCount");return i?parseInt(i,10):0}loadTimestampFromLocalStorage(){const i=localStorage.getItem("lastNotificationTimestamp");return i?parseInt(i,10):null}saveNotificationData(i,c){localStorage.setItem("notificationCount",i.toString()),localStorage.setItem("lastNotificationTimestamp",c.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const i=localStorage.getItem("notificationSettings");return i?JSON.parse(i):[1,3,4,7,9735]}subscribeToNotifications(i){var c=this;return(0,W.A)(function*(){yield c.relayService.ensureConnectedRelays();const f=c.relayService.getPool(),C=c.relayService.getConnectedRelays();if(0===C.length)throw new Error("No connected relays");const M=c.loadTimestampFromLocalStorage(),H=c.loadFilterPreferences();0===H.length&&H.push(1,3,4,7,9735);const ie={kinds:H,"#p":[i],limit:50,since:M||void 0};return new Promise(Fe=>{f.subscribeMany(C,[ie],{onevent:Yt=>c.handleNotificationEvent(Yt,i),oneose(){Fe()}})})})()}handleNotificationEvent(i,c){if(this.isNotificationEvent(i,c)){const C=new Date(1e3*i.created_at);let M="",H="",ie="";switch(i.kind){case 1:M="Mention",H="Mentioned you in an event.",ie="heroicons_outline:at-symbol";break;case 4:M="Private Message",H="Sent a private message.",ie="heroicons_outline:envelope-open";break;case 9735:M="Zap",H="Received a zap event.",ie="feather:zap";break;case 3:M="New Follower",H="You have a new follower.",ie="heroicons_outline:user-plus";break;case 7:M="New Like",H="You have a new Like.",ie="heroicons_outline:hand-thumb-up";break;default:M="Notification",ie="heroicons_outline:bell"}const Yt=[{id:i.id,icon:ie,title:M,description:H,time:C,kind:i.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(Yt),this.incrementNotificationCount(i.created_at)}}incrementNotificationCount(i){const c=this.notificationCount.value+1;this.notificationCount.next(c),this.saveNotificationData(c,i)}markAllAsRead(){const i=this.notificationSubject.value.map(f=>({...f,read:!0}));this.notificationSubject.next(i),this.notificationCount.next(0);const c=Math.floor(Date.now()/1e3);this.saveNotificationData(0,c)}isNotificationEvent(i,c){return i.tags.some(f=>"p"===f[0]&&f[1]===c)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Bv.b))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var qi=v(4930);const Vv=["notificationsOrigin"],jv=["notificationsPanel"],Md=a=>({unread:a}),Hv=(a,s)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":a,"bg-primary":s});function $v(a,s){if(1&a&&(o.j41(0,"span",4)(1,"span",6),o.EFF(2),o.k0s()()),2&a){const i=o.XpG();o.R7$(2),o.SpI(" ",i.unreadCount," ")}}function Jb(a,s){1&a&&o.eu8(0)}function pp(a,s){if(1&a&&(o.j41(0,"a",23),o.DNE(1,Jb,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("href",i.link,o.B4B),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function wu(a,s){1&a&&o.eu8(0)}function $m(a,s){if(1&a&&(o.j41(0,"a",24),o.DNE(1,wu,1,0,"ng-container",25),o.k0s()),2&a){const i=o.XpG(2).$implicit,c=o.sdS(9);o.Y8G("routerLink",i.link),o.R7$(),o.Y8G("ngTemplateOutlet",c)}}function Mh(a,s){if(1&a&&o.DNE(0,pp,2,2,"a",23)(1,$m,2,2,"a",24),2&a){const i=o.XpG().$implicit;o.vxM(i.useRouter?-1:0),o.R7$(),o.vxM(i.useRouter?1:-1)}}function zv(a,s){1&a&&o.eu8(0)}function zm(a,s){if(1&a&&(o.j41(0,"div",17),o.DNE(1,zv,1,0,"ng-container",25),o.k0s()),2&a){o.XpG();const i=o.sdS(9);o.R7$(),o.Y8G("ngTemplateOutlet",i)}}function Wm(a,s){if(1&a&&(o.j41(0,"div",26),o.nrm(1,"mat-icon",32),o.k0s()),2&a){const i=o.XpG(2).$implicit;o.R7$(),o.Y8G("svgIcon",i.icon)}}function Gm(a,s){if(1&a&&o.nrm(0,"img",27),2&a){const i=o.XpG(2).$implicit;o.Y8G("src",i.image,o.B4B)("alt","Notification image")}}function Wv(a,s){if(1&a&&o.nrm(0,"div",29),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.title,o.npT)}}function Km(a,s){if(1&a&&o.nrm(0,"div",30),2&a){const i=o.XpG(2).$implicit;o.Y8G("innerHTML",i.description,o.npT)}}function qb(a,s){if(1&a&&(o.DNE(0,Wm,2,1,"div",26)(1,Gm,1,2,"img",27),o.j41(2,"div",28),o.DNE(3,Wv,1,1,"div",29)(4,Km,1,1,"div",30),o.j41(5,"div",31),o.EFF(6),o.nI1(7,"date"),o.k0s()()),2&a){const i=o.XpG().$implicit;o.vxM(i.icon&&!i.image?0:-1),o.R7$(),o.vxM(i.image?1:-1),o.R7$(2),o.vxM(i.title?3:-1),o.R7$(),o.vxM(i.description?4:-1),o.R7$(2),o.SpI(" ",o.i5U(7,5,i.time,"MMM dd, h:mm a")," ")}}function e0(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",16),o.DNE(1,Mh,2,2)(2,zm,2,1,"div",17),o.j41(3,"div",18)(4,"button",19),o.bIt("click",function(){const f=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.toggleRead(f))}),o.nrm(5,"span",20),o.k0s(),o.j41(6,"button",21),o.bIt("click",function(){const f=o.eBV(i).$implicit,C=o.XpG(2);return o.Njj(C.delete(f))}),o.nrm(7,"mat-icon",22),o.k0s()()(),o.DNE(8,qb,8,8,"ng-template",null,2,o.C5r)}if(2&a){const i=s.$implicit;o.Y8G("ngClass",o.eq3(7,Md,!i.read)),o.R7$(),o.vxM(i.link?1:-1),o.R7$(),o.vxM(i.link?-1:2),o.R7$(2),o.Y8G("matTooltip",i.read?"Mark as unread":"Mark as read"),o.R7$(),o.Y8G("ngClass",o.l_i(9,Hv,i.read,!i.read)),o.R7$(),o.Y8G("matTooltip","Remove"),o.R7$(),o.Y8G("svgIcon","heroicons_solid:x-mark")}}function t0(a,s){1&a&&(o.j41(0,"div",15)(1,"div",33),o.nrm(2,"mat-icon",34),o.k0s(),o.j41(3,"div",35),o.EFF(4," No notifications "),o.k0s(),o.j41(5,"div",36),o.EFF(6," When you have notifications, they will appear here. "),o.k0s()()),2&a&&(o.R7$(2),o.Y8G("svgIcon","heroicons_outline:bell"))}function Gv(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.closePanel())}),o.nrm(4,"mat-icon",10),o.k0s()(),o.j41(5,"div",11),o.EFF(6,"Notifications"),o.k0s(),o.j41(7,"div",12)(8,"button",13),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.markAllAsRead())}),o.nrm(9,"mat-icon",10),o.k0s()()(),o.j41(10,"div",14),o.Z7z(11,e0,10,12,null,null,o.BUC().trackByFn,!0),o.DNE(13,t0,7,1,"div",15),o.k0s()()}if(2&a){const i=o.XpG();o.R7$(4),o.Y8G("svgIcon","heroicons_solid:x-mark"),o.R7$(4),o.Y8G("matTooltip","Mark all as read")("disabled",0===i.unreadCount),o.R7$(),o.Y8G("svgIcon","heroicons_solid:envelope-open"),o.R7$(2),o.Dyx(i.notifications),o.R7$(2),o.vxM(i.notifications&&i.notifications.length?-1:13)}}let Kv=(()=>{class a{constructor(i,c,f,C,M){this._notificationService=i,this._changeDetectorRef=c,this._overlay=f,this._viewContainerRef=C,this._signerService=M,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new $r.B}ngOnInit(){const i=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(i).then(()=>{this._notificationService.getNotificationObservable().pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(c=>{this.notifications=c,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(c=>{this.unreadCount=c,this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new Lv.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(i){i.read=!i.read}trackByFn(i,c){return c.id}_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"}])}),this._overlayRef.backdropClick().subscribe(()=>{this._overlayRef.detach()})}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(Uv),o.rXU(o.gRc),o.rXU(Hl.hJ),o.rXU(o.c1b),o.rXU(qi.A))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["notifications"]],viewQuery:function(c,f){if(1&c&&(o.GBs(Vv,5),o.GBs(jv,5)),2&c){let C;o.mGM(C=o.lsd())&&(f._notificationsOrigin=C.first),o.mGM(C=o.lsd())&&(f._notificationsPanel=C.first)}},exportAs:["notifications"],standalone:!0,features:[o.aNF],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(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",3,0),o.bIt("click",function(){return o.eBV(C),o.Njj(f.openPanel())}),o.DNE(2,$v,3,1,"span",4),o.nrm(3,"mat-icon",5),o.k0s(),o.DNE(4,Gv,14,5,"ng-template",null,1,o.C5r)}2&c&&(o.R7$(2),o.vxM(f.unreadCount>0?2:-1),o.R7$(),o.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,ta.uc,ta.oV,et.YU,et.T3,y.Wk,et.vh],encapsulation:2,changeDetection:0})}}return a})();var n0=v(5888),Eu=v(9417),Xv=v(5542),Cu=v(9888),mp=v(8359),$l=v(7336),Yv=v(9327),Ta=v(9172),r0=v(8203);const o0=["panel"],nC=["*"];function Xm(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",1,0),o.bIt("@panelAnimation.done",function(f){o.eBV(i);const C=o.XpG();return o.Njj(C._animationDone.next(f))}),o.SdG(2),o.k0s()}if(2&a){const i=s.id,c=o.XpG();o.HbH(c._classList),o.AVh("mat-mdc-autocomplete-visible",c.showPanel)("mat-mdc-autocomplete-hidden",!c.showPanel)("mat-primary","primary"===c._color)("mat-accent","accent"===c._color)("mat-warn","warn"===c._color),o.Y8G("id",c.id)("@panelAnimation",c.isOpen?"visible":"hidden"),o.BMQ("aria-label",c.ariaLabel||null)("aria-labelledby",c._getPanelAriaLabelledby(i))}}const Qv=(0,mi.hZ)("panelAnimation",[(0,mi.wk)("void, hidden",(0,mi.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,mi.kY)(":enter, hidden => visible",[(0,mi.Os)([(0,mi.i0)("0.03s linear",(0,mi.iF)({opacity:1})),(0,mi.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,mi.iF)({transform:"scaleY(1)"}))])]),(0,mi.kY)(":leave, visible => hidden",[(0,mi.i0)("0.075s linear",(0,mi.iF)({opacity:0}))])]);let s0=0;class a0{constructor(s,i){this.source=s,this.option=i}}const Zv=new o.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Jv(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let l0=(()=>{class a{get isOpen(){return this._isOpen&&this.showPanel}_setColor(i){this._color=i,this._changeDetectorRef.markForCheck()}set classList(i){this._classList=i,this._elementRef.nativeElement.className=""}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(i){this._hideSingleSelectionIndicator=i,this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const i of this.options)i._changeDetectorRef.markForCheck()}constructor(i,c,f,C){this._changeDetectorRef=i,this._elementRef=c,this._defaults=f,this._activeOptionChanges=mp.yU.EMPTY,this._animationDone=new o.bkB,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new o.bkB,this.opened=new o.bkB,this.closed=new o.bkB,this.optionActivated=new o.bkB,this.id="mat-autocomplete-"+s0++,this.inertGroups=C?.SAFARI||!1,this.autoActiveFirstOption=!!f.autoActiveFirstOption,this.autoSelectActiveOption=!!f.autoSelectActiveOption,this.requireSelection=!!f.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Cu.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(i=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[i]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(i){this.panel&&(this.panel.nativeElement.scrollTop=i)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(i){const c=new a0(this,i);this.optionSelected.emit(c)}_getPanelAriaLabelledby(i){return this.ariaLabel?null:this.ariaLabelledby?(i?i+" ":"")+this.ariaLabelledby:i}_skipPredicate(){return!1}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(o.aKT),o.rXU(Zv),o.rXU(he.OD))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["mat-autocomplete"]],contentQueries:function(c,f,C){if(1&c&&(o.wni(C,nn.wT,5),o.wni(C,nn.QC,5)),2&c){let M;o.mGM(M=o.lsd())&&(f.options=M),o.mGM(M=o.lsd())&&(f.optionGroups=M)}},viewQuery:function(c,f){if(1&c&&(o.GBs(o.C4Q,7),o.GBs(o0,5)),2&c){let C;o.mGM(C=o.lsd())&&(f.template=C.first),o.mGM(C=o.lsd())&&(f.panel=C.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",o.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",o.L39],requireSelection:[2,"requireSelection","requireSelection",o.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",o.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],standalone:!0,features:[o.Jv_([{provide:nn.is,useExisting:a}]),o.GFd,o.aNF],ngContentSelectors:nC,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(c,f){1&c&&(o.NAR(),o.DNE(0,Xm,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:[Qv]},changeDetection:0})}}return a})();const Ym={provide:Eu.kq,useExisting:(0,o.Rfq)(()=>qv),multi:!0},Qm=new o.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const a=(0,o.WQX)(Hl.hJ);return()=>a.scrollStrategies.reposition()}}),u0={provide:Qm,deps:[Hl.hJ],useFactory:function c0(a){return()=>a.scrollStrategies.reposition()}};let qv=(()=>{class a{constructor(i,c,f,C,M,H,ie,Fe,Nt,Yt,jn){this._element=i,this._overlay=c,this._viewContainerRef=f,this._zone=C,this._changeDetectorRef=M,this._dir=ie,this._formField=Fe,this._document=Nt,this._viewportRuler=Yt,this._defaults=jn,this._componentDestroyed=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=mp.yU.EMPTY,this._breakpointObserver=(0,o.WQX)(Yv.QP),this._handsetLandscapeSubscription=mp.yU.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new $r.B,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 $r.B,this._injector=(0,o.WQX)(o.zZn),this._aboveClass="mat-mdc-autocomplete-panel-above",this._overlayAttached=!1,this.optionSelections=(0,Ff.v)(()=>{const wn=this.autocomplete?this.autocomplete.options:null;return wn?wn.changes.pipe((0,Ta.Z)(wn),(0,Me.n)(()=>(0,bl.h)(...wn.map(Dn=>Dn.onSelectionChange)))):this._initialized.pipe((0,Me.n)(()=>this.optionSelections))}),this._handlePanelKeydown=wn=>{(wn.keyCode===$l._f&&!(0,$l.rp)(wn)||wn.keyCode===$l.i7&&(0,$l.rp)(wn,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),wn.stopPropagation(),wn.preventDefault())},this._trackedModal=null,this._scrollStrategy=H}ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const i=this._getWindow();typeof i<"u"&&this._zone.runOutsideAngular(()=>i.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(i){i.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const i=this._getWindow();typeof i<"u"&&i.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&&(0,Cu.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,bl.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,It.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,It.p)(()=>this._overlayAttached)):(0,U.of)()).pipe((0,qo.T)(i=>i instanceof nn.MI?i:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,bl.h)((0,Bc.R)(this._document,"click"),(0,Bc.R)(this._document,"auxclick"),(0,Bc.R)(this._document,"touchend")).pipe((0,It.p)(i=>{const c=(0,he.Fb)(i),f=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,C=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&c!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!f||!f.contains(c))&&(!C||!C.contains(c))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(c)}))}writeValue(i){Promise.resolve(null).then(()=>this._assignOptionValue(i))}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._element.nativeElement.disabled=i}_handleKeydown(i){const c=i.keyCode,f=(0,$l.rp)(i);if(c===$l._f&&!f&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&c===$l.Fm&&this.panelOpen&&!f)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){const C=this.autocomplete._keyManager.activeItem,M=c===$l.i7||c===$l.n6;c===$l.wn||M&&!f&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):M&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(M||this.autocomplete._keyManager.activeItem!==C)&&(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(i){let c=i.target,f=c.value;if("number"===c.type&&(f=""==f?null:parseFloat(f)),this._previousValue!==f){if(this._previousValue=f,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(f),f){if(this.panelOpen&&!this.autocomplete.requireSelection){const C=this.autocomplete.options?.find(M=>M.selected);C&&f!==this._getDisplayValue(C.value)&&C.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===i.target){const C=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(C)}}}_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(i=!1){this._formField&&"auto"===this._formField.floatLabel&&(i?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const i=new V.c(f=>{(0,o.mal)(()=>{f.next()},{injector:this._injector})}),c=this.autocomplete.options.changes.pipe((0,Uc.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,Te.c)(0));return(0,bl.h)(i,c).pipe((0,Me.n)(()=>this._zone.run(()=>{const f=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),f!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,F.s)(1)).subscribe(f=>this._setValueAndClose(f))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(i){const c=this.autocomplete;return c&&c.displayWith?c.displayWith(i):i}_assignOptionValue(i){const c=this._getDisplayValue(i);null==i&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(c??"")}_updateNativeInputValue(i){this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(i){const c=this.autocomplete,f=i?i.source:this._pendingAutoselectedOption;f?(this._clearPreviousSelectedOption(f),this._assignOptionValue(f.value),this._onChange(f.value),c._emitSelectEvent(f),this._element.nativeElement.focus()):c.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),c._animationDone?c._animationDone.pipe((0,F.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(i,c){this.autocomplete?.options?.forEach(f=>{f!==i&&f.selected&&f.deselect(c)})}_openPanelInternal(i=this._element.nativeElement.value){this._attachOverlay(i),this._floatLabel(),this._trackedModal&&(0,Cu.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(i){let c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new Lv.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&c&&c.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Yv.Rp.HandsetLandscape).subscribe(C=>{C.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=i,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const f=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&f!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const i=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=i.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=i.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Hl.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const i=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(i),this._positionStrategy=i,i}_setStrategyPositions(i){const c=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],f=this._aboveClass,C=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:f},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:f}];let M;M="above"===this.position?C:"below"===this.position?c:[...c,...C],i.withPositions(M)}_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(){const i=this.autocomplete;if(i.autoActiveFirstOption){let c=-1;for(let f=0;f .cdk-overlay-container [aria-modal="true"]');if(!i)return;const c=this.autocomplete.id;this._trackedModal&&(0,Cu.Ae)(this._trackedModal,"aria-owns",c),(0,Cu.px)(i,"aria-owns",c),this._trackedModal=i}_clearFromModal(){this._trackedModal&&((0,Cu.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.aKT),o.rXU(Hl.hJ),o.rXU(o.c1b),o.rXU(o.SKi),o.rXU(o.gRc),o.rXU(Qm),o.rXU(r0.dS,8),o.rXU($n.xb,9),o.rXU(et.qQ,8),o.rXU(Xv.Xj),o.rXU(Zv,8))}}static{this.\u0275dir=o.FsC({type:a,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(c,f){1&c&&o.bIt("focusin",function(){return f._handleFocus()})("blur",function(){return f._onTouched()})("input",function(M){return f._handleInput(M)})("keydown",function(M){return f._handleKeydown(M)})("click",function(){return f._handleClick()}),2&c&&o.BMQ("autocomplete",f.autocompleteAttribute)("role",f.autocompleteDisabled?null:"combobox")("aria-autocomplete",f.autocompleteDisabled?null:"list")("aria-activedescendant",f.panelOpen&&f.activeOption?f.activeOption.id:null)("aria-expanded",f.autocompleteDisabled?null:f.panelOpen.toString())("aria-controls",f.autocompleteDisabled||!f.panelOpen||null==f.autocomplete?null:f.autocomplete.id)("aria-haspopup",f.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",o.L39]},exportAs:["matAutocompleteTrigger"],standalone:!0,features:[o.Jv_([Ym]),o.GFd,o.OA$]})}}return a})(),zl=(()=>{class a{static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275mod=o.$C({type:a})}static{this.\u0275inj=o.G2t({providers:[u0],imports:[Hl.z_,nn.Sy,nn.yE,et.MD,Xv.Gj,nn.Sy,nn.yE]})}}return a})();var Zm=v(9042),e_=v(7291);const d0=["barSearchInput"],t_=["matAutocomplete"];function n_(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",5),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2);return o.Njj(f.open())}),o.nrm(1,"mat-icon",6),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function gp(a,s){1&a&&(o.j41(0,"mat-option",14),o.EFF(1," No results found! "),o.k0s())}function Jm(a,s){if(1&a){const i=o.RV6();o.j41(0,"img",22),o.bIt("error",function(f){o.eBV(i);const C=o.XpG(5);return o.Njj(C.handleImageError(f))}),o.k0s()}if(2&a){const i=o.XpG().$implicit;o.Mz_("alt","",i.name,"'s avatar"),o.Y8G("src",i.avatar,o.B4B)}}function oC(a,s){1&a&&(o.qex(0),o.nrm(1,"mat-icon",23),o.bVm()),2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:user-circle"))}function i_(a,s){if(1&a&&(o.j41(0,"div",24),o.EFF(1),o.k0s()),2&a){const i=o.XpG().$implicit;o.R7$(),o.SpI(" ",i.about," ")}}function r_(a,s){if(1&a&&(o.qex(0),o.j41(1,"mat-option",15)(2,"div",16)(3,"div",17),o.DNE(4,Jm,1,3,"img",18)(5,oC,2,1,"ng-container",2),o.k0s(),o.j41(6,"div",19)(7,"span",20),o.EFF(8),o.k0s(),o.DNE(9,i_,2,1,"div",21),o.k0s()()(),o.bVm()),2&a){const i=s.$implicit;o.R7$(),o.Y8G("routerLink",i.link)("value",i.name),o.R7$(3),o.Y8G("ngIf",i.avatar),o.R7$(),o.Y8G("ngIf",!i.avatar),o.R7$(3),o.JRh(i.name),o.R7$(),o.Y8G("ngIf",i.about)}}function o_(a,s){if(1&a&&(o.qex(0),o.DNE(1,r_,10,6,"ng-container",12),o.bVm()),2&a){const i=s.$implicit,c=o.XpG(3);o.R7$(),o.Y8G("ngForOf",i.results)("ngForTrackBy",c.trackByFn)}}function vp(a,s){if(1&a){const i=o.RV6();o.j41(0,"div",7),o.nrm(1,"mat-icon",8),o.j41(2,"input",9,0),o.bIt("keydown",function(f){o.eBV(i);const C=o.XpG(2);return o.Njj(C.onKeydown(f))}),o.k0s(),o.j41(4,"mat-autocomplete",10,1),o.DNE(6,gp,2,0,"mat-option",11)(7,o_,2,2,"ng-container",12),o.k0s(),o.j41(8,"button",13),o.bIt("click",function(){o.eBV(i);const f=o.XpG(2);return o.Njj(f.close())}),o.nrm(9,"mat-icon",6),o.k0s()()}if(2&a){const i=o.sdS(5),c=o.XpG(2);o.Y8G("@slideInTop",void 0)("@slideOutTop",void 0),o.R7$(),o.Y8G("svgIcon","heroicons_outline:magnifying-glass"),o.R7$(),o.Y8G("formControl",c.searchControl)("matAutocomplete",i)("placeholder","Search..."),o.R7$(2),o.Y8G("autoSelectActiveOption",!0)("disableRipple",!0),o.R7$(2),o.Y8G("ngIf",c.resultSets&&!c.resultSets.length),o.R7$(),o.Y8G("ngForOf",c.resultSets)("ngForTrackBy",c.trackByFn),o.R7$(2),o.Y8G("svgIcon","heroicons_outline:x-mark")}}function qm(a,s){if(1&a&&(o.j41(0,"div"),o.DNE(1,n_,2,1,"button",3)(2,vp,10,12,"div",4),o.k0s()),2&a){const i=o.XpG();o.R7$(),o.Y8G("ngIf",!i.opened),o.R7$(),o.Y8G("ngIf",i.opened)}}let Wl=(()=>{class a{constructor(i,c){this._storageService=i,this._sanitizer=c,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new o.bkB,this.opened=!1,this.searchControl=new Eu.hs,this._unsubscribeAll=new $r.B}set barSearchInput(i){i&&setTimeout(()=>{i.nativeElement.focus()})}set matAutocomplete(i){this._matAutocomplete=i}ngOnChanges(i){"appearance"in i&&this.close()}ngOnInit(){var i=this;this.searchControl.valueChanges.pipe((0,Bm.B)(this.debounce),(0,Wr.Q)(this._unsubscribeAll),(0,qo.T)(c=>((!c||c.lengthc&&c.length>=this.minLength)).subscribe(function(){var c=(0,W.A)(function*(f){const C=yield i._storageService.searchProfile(f);i.resultSets=C.map(M=>({label:"Project",results:[{name:M.profile.name||M.profile.displayName||M.pubKey,pubkey:M.pubKey,username:M.profile.username||"",website:M.profile.website||"",about:M.profile.about?M.profile.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:M.profile.picture||null,banner:M.profile.banner||null,link:`/profile/${M.pubKey}`}]})),i.search.next(i.resultSets)});return function(f){return c.apply(this,arguments)}}())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(i){"Escape"===i.code&&"bar"===this.appearance&&!this._matAutocomplete.isOpen&&this.close()}open(){this.opened||(this.opened=!0)}close(){this.opened&&(this.searchControl.setValue(""),this.opened=!1)}trackByFn(i,c){return c.id||i}handleImageError(i){const c=i.target;c.onerror=null,c.src="images/avatars/avatar-placeholder.png"}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(e_.n),o.rXU(u.up))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["search"]],viewQuery:function(c,f){if(1&c&&(o.GBs(d0,5),o.GBs(t_,5)),2&c){let C;o.mGM(C=o.lsd())&&(f.barSearchInput=C.first),o.mGM(C=o.lsd())&&(f.matAutocomplete=C.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],standalone:!0,features:[o.Jv_([{provide:Qm,useFactory:()=>{const i=(0,o.WQX)(Hl.hJ);return()=>i.scrollStrategies.block()}}]),o.OA$,o.aNF],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(c,f){1&c&&o.DNE(0,qm,3,2,"div",2),2&c&&o.Y8G("ngIf","bar"===f.appearance)},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,Eu.YN,Eu.me,Eu.BC,zl,l0,nn.wT,qv,Eu.X1,Eu.l_,nn.Sy,y.Wk,$n.RG,Zm.fS,et.MD,et.Sq,et.bT],encapsulation:2,data:{animation:n0.F}})}}return a})();var s_=v(1997),a_=v(881);function eg(a,s){if(1&a&&(o.qex(0),o.nrm(1,"img",14),o.bVm()),2&a){const i=o.XpG();o.R7$(),o.Y8G("src",i.getSafeUrl(null==i.user?null:i.user.picture),o.B4B)}}function h0(a,s){1&a&&o.nrm(0,"mat-icon",12),2&a&&o.Y8G("svgIcon","heroicons_outline:user-circle")}let Du=(()=>{class a{constructor(i,c,f,C,M,H,ie){this._changeDetectorRef=i,this._router=c,this._angorConfigService=f,this._signerService=C,this._storageService=M,this.sanitizer=H,this._changeDetectorRefef=ie,this.isLoading=!0,this.errorMessage=null,this._unsubscribeAll=new $r.B}ngOnInit(){this.userPubKey=this._signerService.getPublicKey(),this._angorConfigService.config$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{localStorage.setItem("angorConfig",JSON.stringify(i)),this.config=i,this._changeDetectorRef.detectChanges()}),this._storageService.profile$.subscribe(i=>{i&&i.pubKey===this.userPubKey&&(this.user=i.metadata,this._changeDetectorRefef.detectChanges())}),this.loadUserProfile()}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}loadUserProfile(){var i=this;return(0,W.A)(function*(){i._storageService.getProfile(i.userPubKey).then(c=>{i.user=c,i._changeDetectorRefef.detectChanges()})})()}logout(){this._router.navigate(["/logout"])}profile(){this._router.navigate(["/profile"])}setLayout(i){this._angorConfigService.config={layout:i},this._changeDetectorRef.detectChanges()}setScheme(i){this._angorConfigService.config={scheme:i},this._changeDetectorRef.detectChanges()}setTheme(i){this._angorConfigService.config={theme:i},this._changeDetectorRef.detectChanges()}getSafeUrl(i){return this.sanitizer.bypassSecurityTrustUrl(i)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(o.gRc),o.rXU(y.Ix),o.rXU(a_.P),o.rXU(qi.A),o.rXU(e_.n),o.rXU(u.up),o.rXU(o.gRc))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["user"]],standalone:!0,features:[o.aNF],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","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"]],template:function(c,f){if(1&c){const C=o.RV6();o.j41(0,"button",3)(1,"span",4),o.DNE(2,eg,2,1,"ng-container",5)(3,h0,1,1,"ng-template",null,0,o.C5r),o.k0s()(),o.j41(5,"mat-menu",6,1)(7,"button",7)(8,"span",8)(9,"span"),o.EFF(10,"Logged in as"),o.k0s(),o.j41(11,"span",9),o.EFF(12),o.k0s()()(),o.nrm(13,"mat-divider",10),o.j41(14,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.profile())}),o.nrm(15,"mat-icon",12),o.j41(16,"span"),o.EFF(17,"Profile"),o.k0s()(),o.j41(18,"button",13),o.nrm(19,"mat-icon",12),o.j41(20,"span"),o.EFF(21,"Settings"),o.k0s()(),o.nrm(22,"mat-divider",10),o.j41(23,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.logout())}),o.nrm(24,"mat-icon",12),o.j41(25,"span"),o.EFF(26,"logout"),o.k0s()()(),o.j41(27,"mat-menu",null,2)(29,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("auto"))}),o.nrm(30,"mat-icon",12),o.j41(31,"span"),o.EFF(32,"Auto Theme"),o.k0s()(),o.j41(33,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("light"))}),o.nrm(34,"mat-icon",12),o.j41(35,"span"),o.EFF(36,"Light Theme"),o.k0s()(),o.j41(37,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setScheme("dark"))}),o.nrm(38,"mat-icon",12),o.j41(39,"span"),o.EFF(40,"Dark Theme"),o.k0s()(),o.nrm(41,"mat-divider"),o.j41(42,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setLayout("classic"))}),o.j41(43,"span"),o.EFF(44,"Classic Layout"),o.k0s()(),o.j41(45,"button",11),o.bIt("click",function(){return o.eBV(C),o.Njj(f.setLayout("modern"))}),o.j41(46,"span"),o.EFF(47,"Modern Layout"),o.k0s()()()}if(2&c){const C=o.sdS(4),M=o.sdS(6),H=o.sdS(28);o.Y8G("matMenuTriggerFor",M),o.R7$(2),o.Y8G("ngIf",null==f.user?null:f.user.picture)("ngIfElse",C),o.R7$(3),o.Y8G("xPosition","before"),o.R7$(7),o.JRh((null==f.user?null:f.user.display_name)||(null==f.user?null:f.user.name)||"Unknown User"),o.R7$(3),o.Y8G("svgIcon","heroicons_outline:user-circle"),o.R7$(3),o.Y8G("matMenuTriggerFor",H),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),o.R7$(5),o.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),o.R7$(6),o.Y8G("svgIcon","heroicons_solid:bolt"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:sun"),o.R7$(4),o.Y8G("svgIcon","heroicons_solid:moon")}},dependencies:[Wa.Hl,Wa.iY,Dl.Cn,Dl.kk,Dl.fb,Dl.Cp,Gr.m_,Gr.An,s_.w,s_.q,et.MD,et.bT],encapsulation:2,changeDetection:0})}}return a})();var l_=v(3236);let Od=(()=>{class a{constructor(i,c){this.swUpdate=i,this.zone=c,this.newVersionAvailableSubject=new bt.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function xu(a=0,s=l_.E){return a<0&&(a=0),(0,Hf.O)(a,a,s)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(i=>console.error("Failed to apply updates:",i))}checkForUpdateOnInterval(){var i=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,W.A)(function*(){try{(yield i.swUpdate.checkForUpdate())&&i.newVersionAvailableSubject.next(!0)}catch(c){console.error("Failed to check for updates:",c)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(i=>{switch(i.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${i.version.hash}': ${i.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(Vf),o.KVO(o.SKi))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();function tg(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",1),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.applyUpdate())}),o.nrm(1,"mat-icon",2),o.k0s()}if(2&a){const i=o.XpG();o.Y8G("matTooltip",i.tooltip||"Update App"),o.R7$(),o.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let Rd=(()=>{class a{constructor(i,c){this.updateService=i,this._changeDetectorRef=c,this.updateService.isNewVersionAvailable$.subscribe(f=>{f&&this._changeDetectorRef.detectChanges()})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(Od),o.rXU(o.gRc))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["update"]],inputs:{tooltip:"tooltip"},exportAs:["update"],standalone:!0,features:[o.aNF],decls:2,vars:3,consts:[["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(c,f){1&c&&(o.DNE(0,tg,2,2,"button",0),o.nI1(1,"async")),2&c&&o.Y8G("ngIf",o.bMT(1,1,f.updateService.isNewVersionAvailable$))},dependencies:[Wa.Hl,Wa.iY,Gr.m_,Gr.An,ta.uc,ta.oV,et.MD,et.bT,et.Jj],encapsulation:2,changeDetection:0})}}return a})();function c_(a,s){if(1&a&&(o.j41(0,"angor-vertical-navigation",0),o.qex(1,10),o.j41(2,"div",11),o.nrm(3,"img",12),o.k0s(),o.bVm(),o.k0s()),2&a){const i=o.XpG();o.Y8G("mode","over")("name","mainNavigation")("navigation",i.navigation.default)("opened",!1)}}function u_(a,s){if(1&a&&(o.j41(0,"div",13)(1,"div",14),o.nrm(2,"img",15)(3,"img",16),o.k0s(),o.nrm(4,"img",17),o.k0s(),o.nrm(5,"angor-horizontal-navigation",18)),2&a){const i=o.XpG();o.R7$(5),o.Y8G("name","mainNavigation")("navigation",i.navigation.horizontal)}}function f0(a,s){if(1&a){const i=o.RV6();o.j41(0,"button",19),o.bIt("click",function(){o.eBV(i);const f=o.XpG();return o.Njj(f.toggleNavigation("mainNavigation"))}),o.nrm(1,"mat-icon",20),o.k0s()}2&a&&(o.R7$(),o.Y8G("svgIcon","heroicons_outline:bars-3"))}function p0(a,s){1&a&&o.nrm(0,"router-outlet")}let m0=(()=>{class a{constructor(i,c,f,C,M){this._activatedRoute=i,this._router=c,this._navigationService=f,this._angorMediaWatcherService=C,this._angorNavigationService=M,this._unsubscribeAll=new $r.B,this.version=Qf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pu),o.rXU(oe.l),o.rXU(Aa))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["modern-layout"]],standalone:!0,features:[o.aNF],decls:17,vars:7,consts:[[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"],[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,"h-10","w-24"],[1,"mx-2","flex","items-center","lg:mr-8"],[1,"hidden","lg:flex"],["src","images/logo/logo-text.svg",1,"h-10","w-24","dark:hidden"],["src","images/logo/logo-text-on-dark.svg",1,"hidden","h-10","w-24","dark:flex"],["src","images/logo/logo.svg",1,"flex","w-8","lg:hidden"],[1,"mr-2",3,"name","navigation"],["mat-icon-button","",3,"click"],[3,"svgIcon"]],template:function(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.DNE(1,c_,4,4,"angor-vertical-navigation",0),o.j41(2,"div",1)(3,"div",2),o.DNE(4,u_,6,2)(5,f0,2,1,"button",3),o.j41(6,"div",4),o.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),o.k0s()(),o.j41(12,"div",7),o.DNE(13,p0,1,0,"router-outlet"),o.k0s(),o.j41(14,"div",8)(15,"span",9),o.EFF(16),o.k0s()()()),2&c&&(o.R7$(),o.vxM(f.isScreenSmall?1:-1),o.R7$(3),o.vxM(f.isScreenSmall?-1:4),o.R7$(),o.vxM(f.isScreenSmall?5:-1),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(13),o.R7$(3),o.Lme("Angor Hub \xa9 ",f.currentYear," - version ",f.version,""))},dependencies:[Sh,Fv,uv,Wa.Hl,Wa.iY,Gr.m_,Gr.An,Jf,Wl,Kv,Du,y.n3,Rd],encapsulation:2})}}return a})();function g0(a,s){1&a&&o.nrm(0,"router-outlet")}let v0=(()=>{class a{constructor(i,c,f,C,M){this._activatedRoute=i,this._router=c,this._navigationService=f,this._angorMediaWatcherService=C,this._angorNavigationService=M,this._unsubscribeAll=new $r.B,this.version=Qf}get currentYear(){return(new Date).getFullYear()}ngOnInit(){this._navigationService.navigation$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.navigation=i}),this._angorMediaWatcherService.onMediaChange$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:i})=>{this.isScreenSmall=!i.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(i){const c=this._angorNavigationService.getComponent(i);c&&c.toggle()}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(y.Ix),o.rXU(pu),o.rXU(oe.l),o.rXU(Aa))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["classic-layout"]],standalone:!0,features:[o.aNF],decls:21,vars:9,consts:[[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"],[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(c,f){1&c&&(o.nrm(0,"angor-loading-bar"),o.j41(1,"angor-vertical-navigation",0),o.qex(2,1),o.j41(3,"div",2),o.nrm(4,"img",3)(5,"img",4),o.k0s(),o.bVm(),o.k0s(),o.j41(6,"div",5)(7,"div",6)(8,"button",7),o.bIt("click",function(){return f.toggleNavigation("mainNavigation")}),o.nrm(9,"mat-icon",8),o.k0s(),o.j41(10,"div",9),o.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),o.k0s()(),o.j41(16,"div",12),o.DNE(17,g0,1,0,"router-outlet"),o.k0s(),o.j41(18,"div",13)(19,"span",14),o.EFF(20),o.k0s()()()),2&c&&(o.R7$(),o.Y8G("mode",f.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",f.navigation.default)("opened",!f.isScreenSmall),o.R7$(8),o.Y8G("svgIcon","heroicons_outline:bars-3"),o.R7$(4),o.Y8G("appearance","bar"),o.R7$(4),o.vxM(17),o.R7$(3),o.Lme("Angor Hub \xa9 ",f.currentYear," - version ",f.version,""))},dependencies:[Sh,Fv,Wa.Hl,Wa.iY,Gr.m_,Gr.An,Jf,Wl,Kv,Du,y.n3,Rd],encapsulation:2})}}return a})();function _0(a,s){1&a&&o.nrm(0,"empty-layout")}function d_(a,s){1&a&&o.nrm(0,"modern-layout")}function y0(a,s){1&a&&o.nrm(0,"classic-layout")}let kd=(()=>{class a{constructor(i,c,f,C,M,H,ie){this._activatedRoute=i,this._document=c,this._renderer2=f,this._router=C,this._angorConfigService=M,this._angorMediaWatcherService=H,this._angorPlatformService=ie,this._unsubscribeAll=new $r.B}ngOnInit(){(0,zc.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,Wr.Q)(this._unsubscribeAll),(0,qo.T)(([i,c])=>{const f={scheme:i.scheme,theme:i.theme};return"auto"===i.scheme&&(f.scheme=c.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),f})).subscribe(i=>{this.scheme=i.scheme,this.theme=i.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,Wr.Q)(this._unsubscribeAll)).subscribe(i=>{this.config=i,this._updateLayout()}),this._router.events.pipe((0,It.p)(i=>i instanceof y.wF),(0,Wr.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",Qf),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let i=this._activatedRoute;for(;i.firstChild;)i=i.firstChild;this.layout=this.config.layout;const c=i.snapshot.queryParamMap.get("layout");c&&(this.layout=c,this.config&&(this.config.layout=c)),i.pathFromRoot.forEach(C=>{C.routeConfig&&C.routeConfig.data&&C.routeConfig.data.layout&&(this.layout=C.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(i=>{i.startsWith("theme-")&&this._document.body.classList.remove(i,i.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(c){return new(c||a)(o.rXU(y.nX),o.rXU(et.qQ),o.rXU(o.sFG),o.rXU(y.Ix),o.rXU(a_.P),o.rXU(oe.l),o.rXU(Le))}}static{this.\u0275cmp=o.VBU({type:a,selectors:[["layout"]],standalone:!0,features:[o.aNF],decls:3,vars:3,template:function(c,f){1&c&&o.DNE(0,_0,1,0,"empty-layout")(1,d_,1,0,"modern-layout")(2,y0,1,0,"classic-layout"),2&c&&(o.vxM("empty"===f.layout?0:-1),o.R7$(),o.vxM("modern"===f.layout?1:-1),o.R7$(),o.vxM("classic"===f.layout?2:-1))},dependencies:[zE,m0,v0],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%}\n"],encapsulation:2})}}return a})();const _p=()=>{const a=(0,o.WQX)(qi.A),s=(0,o.WQX)(y.Ix);return""!==a.getPublicKey()||s.parseUrl("/login")},h_=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:kd,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([v.e(588),v.e(76),v.e(770)]).then(v.bind(v,770))},{path:"register",loadChildren:()=>Promise.all([v.e(588),v.e(963)]).then(v.bind(v,1963))}]},{path:"",canActivate:[_p],canActivateChild:[_p],component:kd,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>v.e(514).then(v.bind(v,1514))}]},{path:"",canActivate:[_p],canActivateChild:[_p],component:kd,resolve:{initialData:()=>{const a=(0,o.WQX)(pu);return(0,o.WQX)(eb),(0,El.p)([a.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([v.e(416),v.e(76),v.e(541)]).then(v.bind(v,5541))},{path:"explore",loadChildren:()=>Promise.all([v.e(576),v.e(879),v.e(76),v.e(621)]).then(v.bind(v,4621))},{path:"profile",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(389)]).then(v.bind(v,7389))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([v.e(576),v.e(416),v.e(865),v.e(76),v.e(389)]).then(v.bind(v,7389))},{path:"settings",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"settings/:id",loadChildren:()=>Promise.all([v.e(576),v.e(76),v.e(19)]).then(v.bind(v,2019))},{path:"chat",loadChildren:()=>Promise.all([v.e(416),v.e(865),v.e(879),v.e(76),v.e(182)]).then(v.bind(v,7774))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>v.e(258).then(v.bind(v,5258))},{path:"**",redirectTo:"404-not-found"}]}];let b0=(()=>{class a{constructor(){const i=(0,o.WQX)(u.up),c=(0,o.WQX)(Gr.tp);c.addSvgIconSet(i.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),c.addSvgIconSetInNamespace("mat_outline",i.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),c.addSvgIconSetInNamespace("mat_solid",i.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),c.addSvgIconSetInNamespace("feather",i.bypassSecurityTrustResourceUrl("icons/feather.svg")),c.addSvgIconSetInNamespace("heroicons_outline",i.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),c.addSvgIconSetInNamespace("heroicons_solid",i.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),c.addSvgIconSetInNamespace("heroicons_mini",i.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(c){return new(c||a)}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var w0=v(9350),E0=v(7707);let ng=(()=>{class a{constructor(i){this.httpClient=i}getTranslation(i){return this.httpClient.get(`./i18n/${i}.json`)}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();const m_=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],Oh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],Rh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}],kh=[{id:"home",title:"Home",type:"basic",icon:"heroicons_outline:home",link:"/home"},{id:"explore",title:"Explore",type:"basic",icon:"heroicons_outline:magnifying-glass",link:"/explore"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat"}];var C0=v(7730);var yp=v(1984),Nd=v(7517),S0=v(6726),sC=v(5776);const T0=(0,v(8992).A)(Object.keys,Object);var I0=Object.prototype.hasOwnProperty;var O0=v(1287);const Nh=function R0(a){return(0,O0.A)(a)?(0,S0.A)(a):function cC(a){if(!(0,sC.A)(a))return T0(a);var s=[];for(var i in Object(a))I0.call(a,i)&&"constructor"!=i&&s.push(i);return s}(a)};var Pd=v(133);var v_=v(9933),k0=v(4528);const rg=function y_(){return[]};var N0=Object.prototype.propertyIsEnumerable,w_=Object.getOwnPropertySymbols;const Su=w_?function(a){return null==a?[]:(a=Object(a),function Lh(a,s){for(var i=-1,c=null==a?0:a.length,f=0,C=[];++i{class a{constructor(i){this._angorMockApiService=i,this._compactNavigation=Oh,this._defaultNavigation=m_,this._futuristicNavigation=Rh,this._horizontalNavigation=kh,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._compactNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),this._futuristicNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),this._horizontalNavigation.forEach(i=>{this._defaultNavigation.forEach(c=>{c.id===i.id&&(i.children=gc(c.children))})}),[200,{compact:gc(this._compactNavigation),default:gc(this._defaultNavigation),futuristic:gc(this._futuristicNavigation),horizontal:gc(this._horizontalNavigation)}]))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(de))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})()];let ly=(()=>{class a{constructor(i){this.http=i,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var i=this;return(0,W.A)(function*(){try{const c=yield i.http.get(i.ngswFilePath).toPromise();c&&c.timestamp?(i.timestamp=c.timestamp,console.log("Timestamp successfully loaded:",i.timestamp)):console.error("Invalid data format in ngsw.json")}catch(c){console.error("Error loading ngsw.json:",c)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,qo.T)(i=>i.timestamp||null),(0,$c.W)(i=>(console.error("Error fetching ngsw.json hash:",i),(0,re.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(c){return new(c||a)(o.KVO(be.Qq))}}static{this.\u0275prov=o.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();var Eg=v(2083);const Aw={providers:[function pm(){return(0,o.ngT)("NgEagerAnimations"),[...uh]}(),(0,be.$R)(),function Qg(a,s={}){return(0,o.EmA)([wl,Vf,{provide:fh,useValue:a},{provide:pd,useValue:s},{provide:Vc,useFactory:jf,deps:[pd,o.Agw]},{provide:o.hnV,useFactory:gm,deps:[o.zZn,fh,pd,o.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,o.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:o.hnV,useFactory:function cy(a){return()=>a.load()},deps:[ly,qi.A,Eg.d],multi:!0},{provide:o.hnV,useFactory:function Sw(a,s){return(0,W.A)(function*(){const i=a.getPublicKey();console.log("publicKey : "+i),i&&(yield s.loadUserProfile(i))})},deps:[qi.A,Eg.d],multi:!0},(0,y.lh)(h_,(0,y.Sn)(y.Kp),(0,y.oH)({scrollPositionRestoration:"enabled"})),{provide:nn.MJ,useClass:Zl},{provide:nn.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function Hi(a){const s=[No(Ch),ms(P),Ns(ae),ps(ke)];return a.config&&s.push(function fi(a){return(0,o.EmA)([{provide:Ll,useValue:Yf(a)}])}(a.config)),a.loader&&s.push(function cr(a){return(0,o.EmA)([{provide:mh,useClass:a}])}(a.loader)),s}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:ng}),{provide:o.hnV,useFactory:()=>{const a=(0,o.WQX)(qn),s=a.getDefaultLang();return a.setActiveLang(s),()=>function p_(a,s){const i="object"==typeof s;return new Promise((c,f)=>{const C=new E0.Ms({next:M=>{c(M),C.unsubscribe()},error:f,complete:()=>{i?c(s.defaultValue):f(new w0.G)}});a.subscribe(C)})}(a.load(s))},multi:!0},[{provide:o.Z63,useValue:()=>(0,o.WQX)(b0),multi:!0}],(a=>{const s=[{provide:nn.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:$n.U$,useValue:{appearance:"fill"}},{provide:ee,useValue:a?.mockApi?.delay??0},{provide:ve.t,useValue:a?.angor??{}},(0,o.oKB)(Fn.hM),{provide:o.Z63,useValue:()=>(0,o.WQX)(tt.m),multi:!0},(0,be.$R)((0,be.b$)([Xe])),{provide:o.Z63,useValue:()=>(0,o.WQX)(Ve),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(oe.l),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Le),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Et),multi:!0},{provide:o.Z63,useValue:()=>(0,o.WQX)(Tt.Q),multi:!0}];return a?.mockApi?.services&&s.push((0,be.$R)((0,be.b$)([te])),{provide:o.hnV,deps:[...a.mockApi.services],useFactory:()=>()=>null,multi:!0}),s})({mockApi:{delay:0,services:ay},angor:JSON.parse(localStorage.getItem("angorConfig"))??{layout:"classic",scheme:"light",screens:{sm:"600px",md:"960px",lg:"1280px",xl:"1440px"},theme:"theme-brand",themes:[{id:"theme-brand",name:"Brand"},{id:"theme-default",name:"Default"},{id:"theme-teal",name:"Teal"},{id:"theme-rose",name:"Rose"},{id:"theme-purple",name:"Purple"},{id:"theme-amber",name:"Amber"}]}})]};(0,u.B8)(B,Aw).catch(a=>console.error(a))},3981:(tn,Re)=>{"use strict";Re.byteLength=function re(de){var be=ee(de),Me=be[1];return 3*(be[0]+Me)/4-Me},Re.toByteArray=function F(de){var be,Ve,Te=ee(de),Me=Te[0],te=Te[1],ve=new y(function V(de,be,Te){return 3*(be+Te)/4-Te}(0,Me,te)),tt=0,bt=te>0?Me-4:Me;for(Ve=0;Ve>16&255,ve[tt++]=be>>8&255,ve[tt++]=255&be;return 2===te&&(be=u[de.charCodeAt(Ve)]<<2|u[de.charCodeAt(Ve+1)]>>4,ve[tt++]=255&be),1===te&&(be=u[de.charCodeAt(Ve)]<<10|u[de.charCodeAt(Ve+1)]<<4|u[de.charCodeAt(Ve+2)]>>2,ve[tt++]=be>>8&255,ve[tt++]=255&be),ve},Re.fromByteArray=function fe(de){for(var be,Te=de.length,Me=Te%3,te=[],tt=0,bt=Te-Me;ttbt?bt:tt+16383));return 1===Me?te.push(v[(be=de[Te-1])>>2]+v[be<<4&63]+"=="):2===Me&&te.push(v[(be=(de[Te-2]<<8)+de[Te-1])>>10]+v[be>>4&63]+v[be<<2&63]+"="),te.join("")};for(var v=[],u=[],y=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=0;B<64;++B)v[B]=o[B],u[o.charCodeAt(B)]=B;function ee(de){var be=de.length;if(be%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Te=de.indexOf("=");return-1===Te&&(Te=be),[Te,Te===be?0:4-Te%4]}function U(de){return v[de>>18&63]+v[de>>12&63]+v[de>>6&63]+v[63&de]}function L(de,be,Te){for(var te=[],ve=be;ve{"use strict";const y=v(3981),o=v(2020),B="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;Re.hp=V,Re.IS=50;const W=2147483647;function re(Q){if(Q>W)throw new RangeError('The value "'+Q+'" is invalid for option "size"');const T=new Uint8Array(Q);return Object.setPrototypeOf(T,V.prototype),T}function V(Q,T,N){if("number"==typeof Q){if("string"==typeof T)throw new TypeError('The "string" argument must be of type string. Received type number');return fe(Q)}return F(Q,T,N)}function F(Q,T,N){if("string"==typeof Q)return function de(Q,T){if(("string"!=typeof T||""===T)&&(T="utf8"),!V.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const N=0|bt(Q,T);let $=re(N);const le=$.write(Q,T);return le!==N&&($=$.slice(0,le)),$}(Q,T);if(ArrayBuffer.isView(Q))return function Te(Q){if(_e(Q,Uint8Array)){const T=new Uint8Array(Q);return Me(T.buffer,T.byteOffset,T.byteLength)}return be(Q)}(Q);if(null==Q)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(_e(Q,ArrayBuffer)||Q&&_e(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(_e(Q,SharedArrayBuffer)||Q&&_e(Q.buffer,SharedArrayBuffer)))return Me(Q,T,N);if("number"==typeof Q)throw new TypeError('The "value" argument must not be of type number. Received type number');const $=Q.valueOf&&Q.valueOf();if(null!=$&&$!==Q)return V.from($,T,N);const le=function te(Q){if(V.isBuffer(Q)){const T=0|ve(Q.length),N=re(T);return 0===N.length||Q.copy(N,0,0,T),N}return void 0!==Q.length?"number"!=typeof Q.length||Je(Q.length)?re(0):be(Q):"Buffer"===Q.type&&Array.isArray(Q.data)?be(Q.data):void 0}(Q);if(le)return le;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof Q[Symbol.toPrimitive])return V.from(Q[Symbol.toPrimitive]("string"),T,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function U(Q){if("number"!=typeof Q)throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function fe(Q){return U(Q),re(Q<0?0:0|ve(Q))}function be(Q){const T=Q.length<0?0:0|ve(Q.length),N=re(T);for(let $=0;$=W)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+W.toString(16)+" bytes");return 0|Q}function bt(Q,T){if(V.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||_e(Q,ArrayBuffer))return Q.byteLength;if("string"!=typeof Q)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);const N=Q.length,$=arguments.length>2&&!0===arguments[2];if(!$&&0===N)return 0;let le=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return Rt(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*N;case"hex":return N>>>1;case"base64":return ni(Q).length;default:if(le)return $?-1:Rt(Q).length;T=(""+T).toLowerCase(),le=!0}}function Ve(Q,T,N){let $=!1;if((void 0===T||T<0)&&(T=0),T>this.length||((void 0===N||N>this.length)&&(N=this.length),N<=0)||(N>>>=0)<=(T>>>=0))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return mt(this,T,N);case"utf8":case"utf-8":return nn(this,T,N);case"ascii":return yn(this,T,N);case"latin1":case"binary":return di(this,T,N);case"base64":return Tt(this,T,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ee(this,T,N);default:if($)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),$=!0}}function rt(Q,T,N){const $=Q[T];Q[T]=Q[N],Q[N]=$}function Xe(Q,T,N,$,le){if(0===Q.length)return-1;if("string"==typeof N?($=N,N=0):N>2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),Je(N=+N)&&(N=le?0:Q.length-1),N<0&&(N=Q.length+N),N>=Q.length){if(le)return-1;N=Q.length-1}else if(N<0){if(!le)return-1;N=0}if("string"==typeof T&&(T=V.from(T,$)),V.isBuffer(T))return 0===T.length?-1:oe(Q,T,N,$,le);if("number"==typeof T)return T&=255,"function"==typeof Uint8Array.prototype.indexOf?le?Uint8Array.prototype.indexOf.call(Q,T,N):Uint8Array.prototype.lastIndexOf.call(Q,T,N):oe(Q,[T],N,$,le);throw new TypeError("val must be string, number or Buffer")}function oe(Q,T,N,$,le){let jt,ue=1,nt=Q.length,zt=T.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(Q.length<2||T.length<2)return-1;ue=2,nt/=2,zt/=2,N/=2}function Ut(On,Ln){return 1===ue?On[Ln]:On.readUInt16BE(Ln*ue)}if(le){let On=-1;for(jt=N;jtnt&&(N=nt-zt),jt=N;jt>=0;jt--){let On=!0;for(let Ln=0;Lnle&&($=le):$=le;const ue=T.length;let nt;for($>ue/2&&($=ue/2),nt=0;nt<$;++nt){const zt=parseInt(T.substr(2*nt,2),16);if(Je(zt))return nt;Q[N+nt]=zt}return nt}function Le(Q,T,N,$){return Zt(Rt(T,Q.length-N),Q,N,$)}function et(Q,T,N,$){return Zt(function wt(Q){const T=[];for(let N=0;N>8,le=N%256,ue.push(le),ue.push($);return ue}(T,Q.length-N),Q,N,$)}function Tt(Q,T,N){return y.fromByteArray(0===T&&N===Q.length?Q:Q.slice(T,N))}function nn(Q,T,N){N=Math.min(Q.length,N);const $=[];let le=T;for(;le239?4:ue>223?3:ue>191?2:1;if(le+zt<=N){let Ut,jt,On,Ln;switch(zt){case 1:ue<128&&(nt=ue);break;case 2:Ut=Q[le+1],128==(192&Ut)&&(Ln=(31&ue)<<6|63&Ut,Ln>127&&(nt=Ln));break;case 3:Ut=Q[le+1],jt=Q[le+2],128==(192&Ut)&&128==(192&jt)&&(Ln=(15&ue)<<12|(63&Ut)<<6|63&jt,Ln>2047&&(Ln<55296||Ln>57343)&&(nt=Ln));break;case 4:Ut=Q[le+1],jt=Q[le+2],On=Q[le+3],128==(192&Ut)&&128==(192&jt)&&128==(192&On)&&(Ln=(15&ue)<<18|(63&Ut)<<12|(63&jt)<<6|63&On,Ln>65535&&Ln<1114112&&(nt=Ln))}}null===nt?(nt=65533,zt=1):nt>65535&&(nt-=65536,$.push(nt>>>10&1023|55296),nt=56320|1023&nt),$.push(nt),le+=zt}return function $n(Q){const T=Q.length;if(T<=Fn)return String.fromCharCode.apply(String,Q);let N="",$=0;for(;$le.length?(V.isBuffer(nt)||(nt=V.from(nt)),nt.copy(le,ue)):Uint8Array.prototype.set.call(le,nt,ue);else{if(!V.isBuffer(nt))throw new TypeError('"list" argument must be an Array of Buffers');nt.copy(le,ue)}ue+=nt.length}return le},V.byteLength=bt,V.prototype._isBuffer=!0,V.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let N=0;NN&&(T+=" ... "),""},B&&(V.prototype[B]=V.prototype.inspect),V.prototype.compare=function(T,N,$,le,ue){if(_e(T,Uint8Array)&&(T=V.from(T,T.offset,T.byteLength)),!V.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(void 0===N&&(N=0),void 0===$&&($=T?T.length:0),void 0===le&&(le=0),void 0===ue&&(ue=this.length),N<0||$>T.length||le<0||ue>this.length)throw new RangeError("out of range index");if(le>=ue&&N>=$)return 0;if(le>=ue)return-1;if(N>=$)return 1;if(this===T)return 0;let nt=(ue>>>=0)-(le>>>=0),zt=($>>>=0)-(N>>>=0);const Ut=Math.min(nt,zt),jt=this.slice(le,ue),On=T.slice(N,$);for(let Ln=0;Ln>>=0,isFinite($)?($>>>=0,void 0===le&&(le="utf8")):(le=$,$=void 0)}const ue=this.length-N;if((void 0===$||$>ue)&&($=ue),T.length>0&&($<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");let nt=!1;for(;;)switch(le){case"hex":return he(this,T,N,$);case"utf8":case"utf-8":return Le(this,T,N,$);case"ascii":case"latin1":case"binary":return et(this,T,N,$);case"base64":return It(this,T,N,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Et(this,T,N,$);default:if(nt)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),nt=!0}},V.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const Fn=4096;function yn(Q,T,N){let $="";N=Math.min(Q.length,N);for(let le=T;le$)&&(N=$);let le="";for(let ue=T;ueN)throw new RangeError("Trying to access beyond buffer length")}function Se(Q,T,N,$,le,ue){if(!V.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>le||TQ.length)throw new RangeError("Index out of range")}function gt(Q,T,N,$,le){We(T,$,le,Q,N,7);let ue=Number(T&BigInt(4294967295));Q[N++]=ue,ue>>=8,Q[N++]=ue,ue>>=8,Q[N++]=ue,ue>>=8,Q[N++]=ue;let nt=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N++]=nt,nt>>=8,Q[N++]=nt,nt>>=8,Q[N++]=nt,nt>>=8,Q[N++]=nt,N}function Ne(Q,T,N,$,le){We(T,$,le,Q,N,7);let ue=Number(T&BigInt(4294967295));Q[N+7]=ue,ue>>=8,Q[N+6]=ue,ue>>=8,Q[N+5]=ue,ue>>=8,Q[N+4]=ue;let nt=Number(T>>BigInt(32)&BigInt(4294967295));return Q[N+3]=nt,nt>>=8,Q[N+2]=nt,nt>>=8,Q[N+1]=nt,nt>>=8,Q[N]=nt,N+8}function Ze(Q,T,N,$,le,ue){if(N+$>Q.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function je(Q,T,N,$,le){return T=+T,N>>>=0,le||Ze(Q,0,N,4),o.write(Q,T,N,$,23,4),N+4}function Lt(Q,T,N,$,le){return T=+T,N>>>=0,le||Ze(Q,0,N,8),o.write(Q,T,N,$,52,8),N+8}V.prototype.slice=function(T,N){const $=this.length;(T=~~T)<0?(T+=$)<0&&(T=0):T>$&&(T=$),(N=void 0===N?$:~~N)<0?(N+=$)<0&&(N=0):N>$&&(N=$),N>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T],ue=1,nt=0;for(;++nt>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T+--N],ue=1;for(;N>0&&(ue*=256);)le+=this[T+--N]*ue;return le},V.prototype.readUint8=V.prototype.readUInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),this[T]},V.prototype.readUint16LE=V.prototype.readUInt16LE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]|this[T+1]<<8},V.prototype.readUint16BE=V.prototype.readUInt16BE=function(T,N){return T>>>=0,N||J(T,2,this.length),this[T]<<8|this[T+1]},V.prototype.readUint32LE=V.prototype.readUInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},V.prototype.readUint32BE=V.prototype.readUInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},V.prototype.readBigUInt64LE=dt(function(T){Pe(T>>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=N+256*this[++T]+65536*this[++T]+this[++T]*2**24,ue=this[++T]+256*this[++T]+65536*this[++T]+$*2**24;return BigInt(le)+(BigInt(ue)<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=N*2**24+65536*this[++T]+256*this[++T]+this[++T],ue=this[++T]*2**24+65536*this[++T]+256*this[++T]+$;return(BigInt(le)<>>=0,N>>>=0,$||J(T,N,this.length);let le=this[T],ue=1,nt=0;for(;++nt=ue&&(le-=Math.pow(2,8*N)),le},V.prototype.readIntBE=function(T,N,$){T>>>=0,N>>>=0,$||J(T,N,this.length);let le=N,ue=1,nt=this[T+--le];for(;le>0&&(ue*=256);)nt+=this[T+--le]*ue;return ue*=128,nt>=ue&&(nt-=Math.pow(2,8*N)),nt},V.prototype.readInt8=function(T,N){return T>>>=0,N||J(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},V.prototype.readInt16LE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T]|this[T+1]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt16BE=function(T,N){T>>>=0,N||J(T,2,this.length);const $=this[T+1]|this[T]<<8;return 32768&$?4294901760|$:$},V.prototype.readInt32LE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},V.prototype.readInt32BE=function(T,N){return T>>>=0,N||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},V.prototype.readBigInt64LE=dt(function(T){Pe(T>>>=0,"offset");const N=this[T],$=this[T+7];return(void 0===N||void 0===$)&&xt(T,this.length-8),(BigInt(this[T+4]+256*this[T+5]+65536*this[T+6]+($<<24))<>>=0,"offset");const N=this[T],$=this[T+7];(void 0===N||void 0===$)&&xt(T,this.length-8);const le=(N<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(le)<>>=0,N||J(T,4,this.length),o.read(this,T,!0,23,4)},V.prototype.readFloatBE=function(T,N){return T>>>=0,N||J(T,4,this.length),o.read(this,T,!1,23,4)},V.prototype.readDoubleLE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!0,52,8)},V.prototype.readDoubleBE=function(T,N){return T>>>=0,N||J(T,8,this.length),o.read(this,T,!1,52,8)},V.prototype.writeUintLE=V.prototype.writeUIntLE=function(T,N,$,le){T=+T,N>>>=0,$>>>=0,le||Se(this,T,N,$,Math.pow(2,8*$)-1,0);let ue=1,nt=0;for(this[N]=255&T;++nt<$&&(ue*=256);)this[N+nt]=T/ue&255;return N+$},V.prototype.writeUintBE=V.prototype.writeUIntBE=function(T,N,$,le){T=+T,N>>>=0,$>>>=0,le||Se(this,T,N,$,Math.pow(2,8*$)-1,0);let ue=$-1,nt=1;for(this[N+ue]=255&T;--ue>=0&&(nt*=256);)this[N+ue]=T/nt&255;return N+$},V.prototype.writeUint8=V.prototype.writeUInt8=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,1,255,0),this[N]=255&T,N+1},V.prototype.writeUint16LE=V.prototype.writeUInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,65535,0),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeUint16BE=V.prototype.writeUInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,65535,0),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeUint32LE=V.prototype.writeUInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,4294967295,0),this[N+3]=T>>>24,this[N+2]=T>>>16,this[N+1]=T>>>8,this[N]=255&T,N+4},V.prototype.writeUint32BE=V.prototype.writeUInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,4294967295,0),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigUInt64LE=dt(function(T,N=0){return gt(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeBigUInt64BE=dt(function(T,N=0){return Ne(this,T,N,BigInt(0),BigInt("0xffffffffffffffff"))}),V.prototype.writeIntLE=function(T,N,$,le){if(T=+T,N>>>=0,!le){const Ut=Math.pow(2,8*$-1);Se(this,T,N,$,Ut-1,-Ut)}let ue=0,nt=1,zt=0;for(this[N]=255&T;++ue<$&&(nt*=256);)T<0&&0===zt&&0!==this[N+ue-1]&&(zt=1),this[N+ue]=(T/nt|0)-zt&255;return N+$},V.prototype.writeIntBE=function(T,N,$,le){if(T=+T,N>>>=0,!le){const Ut=Math.pow(2,8*$-1);Se(this,T,N,$,Ut-1,-Ut)}let ue=$-1,nt=1,zt=0;for(this[N+ue]=255&T;--ue>=0&&(nt*=256);)T<0&&0===zt&&0!==this[N+ue+1]&&(zt=1),this[N+ue]=(T/nt|0)-zt&255;return N+$},V.prototype.writeInt8=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,1,127,-128),T<0&&(T=255+T+1),this[N]=255&T,N+1},V.prototype.writeInt16LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,32767,-32768),this[N]=255&T,this[N+1]=T>>>8,N+2},V.prototype.writeInt16BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,2,32767,-32768),this[N]=T>>>8,this[N+1]=255&T,N+2},V.prototype.writeInt32LE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,2147483647,-2147483648),this[N]=255&T,this[N+1]=T>>>8,this[N+2]=T>>>16,this[N+3]=T>>>24,N+4},V.prototype.writeInt32BE=function(T,N,$){return T=+T,N>>>=0,$||Se(this,T,N,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[N]=T>>>24,this[N+1]=T>>>16,this[N+2]=T>>>8,this[N+3]=255&T,N+4},V.prototype.writeBigInt64LE=dt(function(T,N=0){return gt(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeBigInt64BE=dt(function(T,N=0){return Ne(this,T,N,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),V.prototype.writeFloatLE=function(T,N,$){return je(this,T,N,!0,$)},V.prototype.writeFloatBE=function(T,N,$){return je(this,T,N,!1,$)},V.prototype.writeDoubleLE=function(T,N,$){return Lt(this,T,N,!0,$)},V.prototype.writeDoubleBE=function(T,N,$){return Lt(this,T,N,!1,$)},V.prototype.copy=function(T,N,$,le){if(!V.isBuffer(T))throw new TypeError("argument should be a Buffer");if($||($=0),!le&&0!==le&&(le=this.length),N>=T.length&&(N=T.length),N||(N=0),le>0&&le<$&&(le=$),le===$||0===T.length||0===this.length)return 0;if(N<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),T.length-N>>=0,$=void 0===$?this.length:$>>>0,T||(T=0),"number"==typeof T)for(ue=N;ue<$;++ue)this[ue]=T;else{const nt=V.isBuffer(T)?T:V.from(T,le),zt=nt.length;if(0===zt)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ue=0;ue<$-N;++ue)this[ue+N]=nt[ue%zt]}return this};const Mt={};function we(Q,T,N){Mt[Q]=class extends N{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,delete this.name}get code(){return Q}set code(le){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:le,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function Oe(Q){let T="",N=Q.length;const $="-"===Q[0]?1:0;for(;N>=$+4;N-=3)T=`_${Q.slice(N-3,N)}${T}`;return`${Q.slice(0,N)}${T}`}function We(Q,T,N,$,le,ue){if(Q>N||Q3?0===T||T===BigInt(0)?`>= 0${nt} and < 2${nt} ** ${8*(ue+1)}${nt}`:`>= -(2${nt} ** ${8*(ue+1)-1}${nt}) and < 2 ** ${8*(ue+1)-1}${nt}`:`>= ${T}${nt} and <= ${N}${nt}`,new Mt.ERR_OUT_OF_RANGE("value",zt,Q)}!function me(Q,T,N){Pe(T,"offset"),(void 0===Q[T]||void 0===Q[T+N])&&xt(T,Q.length-(N+1))}($,le,ue)}function Pe(Q,T){if("number"!=typeof Q)throw new Mt.ERR_INVALID_ARG_TYPE(T,"number",Q)}function xt(Q,T,N){throw Math.floor(Q)!==Q?(Pe(Q,N),new Mt.ERR_OUT_OF_RANGE(N||"offset","an integer",Q)):T<0?new Mt.ERR_BUFFER_OUT_OF_BOUNDS:new Mt.ERR_OUT_OF_RANGE(N||"offset",`>= ${N?1:0} and <= ${T}`,Q)}we("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){return Q?`${Q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(Q,T){return`The "${Q}" argument must be of type number. Received type ${typeof T}`},TypeError),we("ERR_OUT_OF_RANGE",function(Q,T,N){let $=`The value of "${Q}" is out of range.`,le=N;return Number.isInteger(N)&&Math.abs(N)>2**32?le=Oe(String(N)):"bigint"==typeof N&&(le=String(N),(N>BigInt(2)**BigInt(32)||N<-(BigInt(2)**BigInt(32)))&&(le=Oe(le)),le+="n"),$+=` It must be ${T}. Received ${le}`,$},RangeError);const xe=/[^+/0-9A-Za-z-_]/g;function Rt(Q,T){let N;T=T||1/0;const $=Q.length;let le=null;const ue=[];for(let nt=0;nt<$;++nt){if(N=Q.charCodeAt(nt),N>55295&&N<57344){if(!le){if(N>56319){(T-=3)>-1&&ue.push(239,191,189);continue}if(nt+1===$){(T-=3)>-1&&ue.push(239,191,189);continue}le=N;continue}if(N<56320){(T-=3)>-1&&ue.push(239,191,189),le=N;continue}N=65536+(le-55296<<10|N-56320)}else le&&(T-=3)>-1&&ue.push(239,191,189);if(le=null,N<128){if((T-=1)<0)break;ue.push(N)}else if(N<2048){if((T-=2)<0)break;ue.push(N>>6|192,63&N|128)}else if(N<65536){if((T-=3)<0)break;ue.push(N>>12|224,N>>6&63|128,63&N|128)}else{if(!(N<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;ue.push(N>>18|240,N>>12&63|128,N>>6&63|128,63&N|128)}}return ue}function ni(Q){return y.toByteArray(function ut(Q){if((Q=(Q=Q.split("=")[0]).trim().replace(xe,"")).length<2)return"";for(;Q.length%4!=0;)Q+="=";return Q}(Q))}function Zt(Q,T,N,$){let le;for(le=0;le<$&&!(le+N>=T.length||le>=Q.length);++le)T[le+N]=Q[le];return le}function _e(Q,T){return Q instanceof T||null!=Q&&null!=Q.constructor&&null!=Q.constructor.name&&Q.constructor.name===T.name}function Je(Q){return Q!=Q}const Ge=function(){const Q="0123456789abcdef",T=new Array(256);for(let N=0;N<16;++N){const $=16*N;for(let le=0;le<16;++le)T[$+le]=Q[N]+Q[le]}return T}();function dt(Q){return typeof BigInt>"u"?rn:Q}function rn(){throw new Error("BigInt not supported")}},2020:(tn,Re)=>{Re.read=function(v,u,y,o,B){var W,ee,re=8*B-o-1,V=(1<>1,U=-7,L=y?B-1:0,fe=y?-1:1,de=v[u+L];for(L+=fe,W=de&(1<<-U)-1,de>>=-U,U+=re;U>0;W=256*W+v[u+L],L+=fe,U-=8);for(ee=W&(1<<-U)-1,W>>=-U,U+=o;U>0;ee=256*ee+v[u+L],L+=fe,U-=8);if(0===W)W=1-F;else{if(W===V)return ee?NaN:1/0*(de?-1:1);ee+=Math.pow(2,o),W-=F}return(de?-1:1)*ee*Math.pow(2,W-o)},Re.write=function(v,u,y,o,B,W){var ee,re,V,F=8*W-B-1,U=(1<>1,fe=23===B?Math.pow(2,-24)-Math.pow(2,-77):0,de=o?0:W-1,be=o?1:-1,Te=u<0||0===u&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(re=isNaN(u)?1:0,ee=U):(ee=Math.floor(Math.log(u)/Math.LN2),u*(V=Math.pow(2,-ee))<1&&(ee--,V*=2),(u+=ee+L>=1?fe/V:fe*Math.pow(2,1-L))*V>=2&&(ee++,V/=2),ee+L>=U?(re=0,ee=U):ee+L>=1?(re=(u*V-1)*Math.pow(2,B),ee+=L):(re=u*Math.pow(2,L-1)*Math.pow(2,B),ee=0));B>=8;v[y+de]=255&re,de+=be,re/=256,B-=8);for(ee=ee<0;v[y+de]=255&ee,de+=be,ee/=256,F-=8);v[y+de-be]|=128*Te}},119:tn=>{tn.exports=function y(o,B,W){function ee(F,U){if(!B[F]){if(!o[F]){if(re)return re(F,!0);var fe=new Error("Cannot find module '"+F+"'");throw fe.code="MODULE_NOT_FOUND",fe}var de=B[F]={exports:{}};o[F][0].call(de.exports,function(be){return ee(o[F][1][be]||be)},de,de.exports,y,o,B,W)}return B[F].exports}for(var re=void 0,V=0;V"u"&&y(3);var L=Promise;function fe(K,Ae){Ae&&K.then(function(se){Ae(null,se)},function(se){Ae(se)})}function de(K,Ae,se){"function"==typeof Ae&&K.then(Ae),"function"==typeof se&&K.catch(se)}function be(K){return"string"!=typeof K&&(console.warn(K+" used as a key, but it is not a string."),K=String(K)),K}function Te(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var Me="local-forage-detect-blob-support",te=void 0,ve={},tt=Object.prototype.toString,bt="readonly",Ve="readwrite";function rt(K){for(var Ae=K.length,se=new ArrayBuffer(Ae),$e=new Uint8Array(se),vt=0;vt=43)}}).catch(function(){return!1})}(K).then(function(Ae){return te=Ae})}function he(K){var Ae=ve[K.name],se={};se.promise=new L(function($e,vt){se.resolve=$e,se.reject=vt}),Ae.deferredOperations.push(se),Ae.dbReady=Ae.dbReady?Ae.dbReady.then(function(){return se.promise}):se.promise}function Le(K){var se=ve[K.name].deferredOperations.pop();if(se)return se.resolve(),se.promise}function et(K,Ae){var $e=ve[K.name].deferredOperations.pop();if($e)return $e.reject(Ae),$e.promise}function It(K,Ae){return new L(function(se,$e){if(ve[K.name]=ve[K.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},K.db){if(!Ae)return se(K.db);he(K),K.db.close()}var vt=[K.name];Ae&&vt.push(K.version);var at=V.open.apply(V,vt);Ae&&(at.onupgradeneeded=function($t){var hn=at.result;try{hn.createObjectStore(K.storeName),$t.oldVersion<=1&&hn.createObjectStore(Me)}catch(gn){if("ConstraintError"!==gn.name)throw gn;console.warn('The database "'+K.name+'" has been upgraded from version '+$t.oldVersion+" to version "+$t.newVersion+', but the storage "'+K.storeName+'" already exists.')}}),at.onerror=function($t){$t.preventDefault(),$e(at.error)},at.onsuccess=function(){var $t=at.result;$t.onversionchange=function(hn){hn.target.close()},se($t),Le(K)}})}function Et(K){return It(K,!1)}function Tt(K){return It(K,!0)}function nn(K,Ae){if(!K.db)return!0;var se=!K.db.objectStoreNames.contains(K.storeName),vt=K.version>K.db.version;if(K.versionK.version&&(K.version=at)}return!0}return!1}function $n(K){return U([rt(atob(K.data))],{type:K.type})}function yn(K){return K&&K.__local_forage_encoded_blob}function di(K){var Ae=this,se=Ae._initReady().then(function(){var $e=ve[Ae._dbInfo.name];if($e&&$e.dbReady)return $e.dbReady});return de(se,K,K),se}function Ee(K,Ae,se,$e){void 0===$e&&($e=1);try{var vt=K.db.transaction(K.storeName,Ae);se(null,vt)}catch(at){if($e>0&&(!K.db||"InvalidStateError"===at.name||"NotFoundError"===at.name))return L.resolve().then(function(){if(!K.db||"NotFoundError"===at.name&&!K.db.objectStoreNames.contains(K.storeName)&&K.version<=K.db.version)return K.db&&(K.version=K.db.version+1),Tt(K)}).then(function(){return function mt(K){he(K);for(var Ae=ve[K.name],se=Ae.forages,$e=0;$e>4,xn[vt++]=(15&$t)<<4|hn>>2,xn[vt++]=(3&hn)<<6|63&gn;return En}function nt(K){var $e,Ae=new Uint8Array(K),se="";for($e=0;$e>2],se+=xt[(3&Ae[$e])<<4|Ae[$e+1]>>4],se+=xt[(15&Ae[$e+1])<<2|Ae[$e+2]>>6],se+=xt[63&Ae[$e+2]];return Ae.length%3==2?se=se.substring(0,se.length-1)+"=":Ae.length%3==1&&(se=se.substring(0,se.length-2)+"=="),se}var jt={serialize:function zt(K,Ae){var se="";if(K&&(se=le.call(K)),K&&("[object ArrayBuffer]"===se||K.buffer&&"[object ArrayBuffer]"===le.call(K.buffer))){var $e,vt=Rt;K instanceof ArrayBuffer?($e=K,vt+=mn):($e=K.buffer,"[object Int8Array]"===se?vt+="si08":"[object Uint8Array]"===se?vt+="ui08":"[object Uint8ClampedArray]"===se?vt+="uic8":"[object Int16Array]"===se?vt+="si16":"[object Uint16Array]"===se?vt+="ur16":"[object Int32Array]"===se?vt+="si32":"[object Uint32Array]"===se?vt+=Q:"[object Float32Array]"===se?vt+=T:"[object Float64Array]"===se?vt+=N:Ae(new Error("Failed to get type for BinaryArray"))),Ae(vt+nt($e))}else if("[object Blob]"===se){var at=new FileReader;at.onload=function(){var $t="~~local_forage_type~"+K.type+"~"+nt(this.result);Ae(Rt+ni+$t)},at.readAsArrayBuffer(K)}else try{Ae(JSON.stringify(K))}catch($t){console.error("Couldn't convert value into a JSON string: ",K),Ae(null,$t)}},deserialize:function Ut(K){if(K.substring(0,9)!==Rt)return JSON.parse(K);var $e,Ae=K.substring(13),se=K.substring(9,13);if(se===ni&&ut.test(Ae)){var vt=Ae.match(ut);$e=vt[1],Ae=Ae.substring(vt[0].length)}var at=ue(Ae);switch(se){case mn:return at;case ni:return U([at],{type:$e});case"si08":return new Int8Array(at);case"ui08":return new Uint8Array(at);case"uic8":return new Uint8ClampedArray(at);case"si16":return new Int16Array(at);case"ur16":return new Uint16Array(at);case"si32":return new Int32Array(at);case Q:return new Uint32Array(at);case T:return new Float32Array(at);case N:return new Float64Array(at);default:throw new Error("Unkown type: "+se)}},stringToBuffer:ue,bufferToString:nt};function On(K,Ae,se,$e){K.executeSql("CREATE TABLE IF NOT EXISTS "+Ae.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],se,$e)}function wi(K,Ae,se,$e,vt,at){K.executeSql(se,$e,vt,function($t,hn){hn.code===hn.SYNTAX_ERR?$t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ae.storeName],function(gn,En){En.rows.length?at(gn,hn):On(gn,Ae,function(){gn.executeSql(se,$e,vt,at)},at)},at):at($t,hn)},at)}function He(K,Ae,se,$e){var vt=this;K=be(K);var at=new L(function($t,hn){vt.ready().then(function(){void 0===Ae&&(Ae=null);var gn=Ae,En=vt._dbInfo;En.serializer.serialize(Ae,function(xn,Vn){Vn?hn(Vn):En.db.transaction(function(Hn){wi(Hn,En,"INSERT OR REPLACE INTO "+En.storeName+" (key, value) VALUES (?, ?)",[K,xn],function(){$t(gn)},function(ui,Oi){hn(Oi)})},function(Hn){if(Hn.code===Hn.QUOTA_ERR){if($e>0)return void $t(He.apply(vt,[K,gn,se,$e-1]));hn(Hn)}})})}).catch(hn)});return fe(at,se),at}var At={_driver:"webSQLStorage",_initStorage:function Ln(K){var Ae=this,se={db:null};if(K)for(var $e in K)se[$e]="string"!=typeof K[$e]?K[$e].toString():K[$e];var vt=new L(function(at,$t){try{se.db=openDatabase(se.name,String(se.version),se.description,se.size)}catch(hn){return $t(hn)}se.db.transaction(function(hn){On(hn,se,function(){Ae._dbInfo=se,at()},function(gn,En){$t(En)})},$t)});return se.serializer=jt,vt},_support:function Pe(){return"function"==typeof openDatabase}(),iterate:function Cn(K,Ae){var se=this,$e=new L(function(vt,at){se.ready().then(function(){var $t=se._dbInfo;$t.db.transaction(function(hn){wi(hn,$t,"SELECT * FROM "+$t.storeName,[],function(gn,En){for(var xn=En.rows,Vn=xn.length,Hn=0;Hn '__WebKitDatabaseInfoTable__'",[],function(vt,at){for(var $t=[],hn=0;hn0}var Kr={_driver:"localStorageWrapper",_initStorage:function Ie(K){var se={};if(K)for(var $e in K)se[$e]=K[$e];return se.keyPrefix=Bt(K,this._defaultConfig),qe()?(this._dbInfo=se,se.serializer=jt,L.resolve()):L.reject()},_support:function st(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function an(K,Ae){var se=this,$e=se.ready().then(function(){for(var vt=se._dbInfo,at=vt.keyPrefix,$t=at.length,hn=localStorage.length,gn=1,En=0;En=0;vt--){var at=localStorage.key(vt);0===at.indexOf($e)&&localStorage.removeItem(at)}});return fe(se,K),se},length:function Dr(K){var se=this.keys().then(function($e){return $e.length});return fe(se,K),se},key:function li(K,Ae){var se=this,$e=se.ready().then(function(){var at,vt=se._dbInfo;try{at=localStorage.key(K)}catch{at=null}return at&&(at=at.substring(vt.keyPrefix.length)),at});return fe($e,Ae),$e},keys:function wr(K){var Ae=this,se=Ae.ready().then(function(){for(var $e=Ae._dbInfo,vt=localStorage.length,at=[],$t=0;$t=0;$t--){var hn=localStorage.key($t);0===hn.indexOf(at)&&localStorage.removeItem(hn)}}):L.reject("Invalid arguments"),Ae),vt}},Or=function(Ae,se){return Ae===se||"number"==typeof Ae&&"number"==typeof se&&isNaN(Ae)&&isNaN(se)},ft=function(Ae,se){for(var $e=Ae.length,vt=0;vt<$e;){if(Or(Ae[vt],se))return!0;vt++}return!1},Ot=Array.isArray||function(K){return"[object Array]"===Object.prototype.toString.call(K)},un={},bn={},Tn={INDEXEDDB:We,WEBSQL:At,LOCALSTORAGE:Kr},Kn=[Tn.INDEXEDDB._driver,Tn.WEBSQL._driver,Tn.LOCALSTORAGE._driver],zn=["dropInstance"],ii=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(zn),ci={description:"",driver:Kn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Bn(K,Ae){K[Ae]=function(){var se=arguments;return K.ready().then(function(){return K[Ae].apply(K,se)})}}function Ce(){for(var K=1;K"u"?"undefined":W(se))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var $e in se){if("storeName"===$e&&(se[$e]=se[$e].replace(/\W/g,"_")),"version"===$e&&"number"!=typeof se[$e])return new Error("Database version must be a number.");this._config[$e]=se[$e]}return!("driver"in se)||!se.driver||this.setDriver(this._config.driver)}return"string"==typeof se?this._config[se]:this._config},K.prototype.defineDriver=function(se,$e,vt){var at=new L(function($t,hn){try{var gn=se._driver,En=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!se._driver)return void hn(En);for(var xn=ii.concat("_initStorage"),Vn=0,Hn=xn.length;Vn{"use strict";v.d(Re,{t:()=>y});var u=v(1413);class y extends u.B{constructor(B){super(),this._value=B}get value(){return this.getValue()}_subscribe(B){const W=super._subscribe(B);return!W.closed&&B.next(this._value),W}getValue(){const{hasError:B,thrownError:W,_value:ee}=this;if(B)throw W;return this._throwIfClosed(),ee}next(B){super.next(this._value=B)}}},1985:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>V});var u=v(7707),y=v(8359),o=v(3494),B=v(1203),W=v(1026),ee=v(8071),re=v(9786);let V=(()=>{class fe{constructor(be){be&&(this._subscribe=be)}lift(be){const Te=new fe;return Te.source=this,Te.operator=be,Te}subscribe(be,Te,Me){const te=function L(fe){return fe&&fe instanceof u.vU||function U(fe){return fe&&(0,ee.T)(fe.next)&&(0,ee.T)(fe.error)&&(0,ee.T)(fe.complete)}(fe)&&(0,y.Uv)(fe)}(be)?be:new u.Ms(be,Te,Me);return(0,re.Y)(()=>{const{operator:ve,source:tt}=this;te.add(ve?ve.call(te,tt):tt?this._subscribe(te):this._trySubscribe(te))}),te}_trySubscribe(be){try{return this._subscribe(be)}catch(Te){be.error(Te)}}forEach(be,Te){return new(Te=F(Te))((Me,te)=>{const ve=new u.Ms({next:tt=>{try{be(tt)}catch(bt){te(bt),ve.unsubscribe()}},error:te,complete:Me});this.subscribe(ve)})}_subscribe(be){var Te;return null===(Te=this.source)||void 0===Te?void 0:Te.subscribe(be)}[o.s](){return this}pipe(...be){return(0,B.m)(be)(this)}toPromise(be){return new(be=F(be))((Te,Me)=>{let te;this.subscribe(ve=>te=ve,ve=>Me(ve),()=>Te(te))})}}return fe.create=de=>new fe(de),fe})();function F(fe){var de;return null!==(de=fe??W.$.Promise)&&void 0!==de?de:Promise}},2771:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>o});var u=v(1413),y=v(6129);class o extends u.B{constructor(W=1/0,ee=1/0,re=y.U){super(),this._bufferSize=W,this._windowTime=ee,this._timestampProvider=re,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ee===1/0,this._bufferSize=Math.max(1,W),this._windowTime=Math.max(1,ee)}next(W){const{isStopped:ee,_buffer:re,_infiniteTimeWindow:V,_timestampProvider:F,_windowTime:U}=this;ee||(re.push(W),!V&&re.push(F.now()+U)),this._trimBuffer(),super.next(W)}_subscribe(W){this._throwIfClosed(),this._trimBuffer();const ee=this._innerSubscribe(W),{_infiniteTimeWindow:re,_buffer:V}=this,F=V.slice();for(let U=0;U{"use strict";v.d(Re,{B:()=>re});var u=v(1985),y=v(8359);const B=(0,v(1853).L)(F=>function(){F(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var W=v(7908),ee=v(9786);let re=(()=>{class F extends u.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(L){const fe=new V(this,this);return fe.operator=L,fe}_throwIfClosed(){if(this.closed)throw new B}next(L){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const fe of this.currentObservers)fe.next(L)}})}error(L){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=L;const{observers:fe}=this;for(;fe.length;)fe.shift().error(L)}})}complete(){(0,ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:L}=this;for(;L.length;)L.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var L;return(null===(L=this.observers)||void 0===L?void 0:L.length)>0}_trySubscribe(L){return this._throwIfClosed(),super._trySubscribe(L)}_subscribe(L){return this._throwIfClosed(),this._checkFinalizedStatuses(L),this._innerSubscribe(L)}_innerSubscribe(L){const{hasError:fe,isStopped:de,observers:be}=this;return fe||de?y.Kn:(this.currentObservers=null,be.push(L),new y.yU(()=>{this.currentObservers=null,(0,W.o)(be,L)}))}_checkFinalizedStatuses(L){const{hasError:fe,thrownError:de,isStopped:be}=this;fe?L.error(de):be&&L.complete()}asObservable(){const L=new u.c;return L.source=this,L}}return F.create=(U,L)=>new V(U,L),F})();class V extends re{constructor(U,L){super(),this.destination=U,this.source=L}next(U){var L,fe;null===(fe=null===(L=this.destination)||void 0===L?void 0:L.next)||void 0===fe||fe.call(L,U)}error(U){var L,fe;null===(fe=null===(L=this.destination)||void 0===L?void 0:L.error)||void 0===fe||fe.call(L,U)}complete(){var U,L;null===(L=null===(U=this.destination)||void 0===U?void 0:U.complete)||void 0===L||L.call(U)}_subscribe(U){var L,fe;return null!==(fe=null===(L=this.source)||void 0===L?void 0:L.subscribe(U))&&void 0!==fe?fe:y.Kn}}},7707:(tn,Re,v)=>{"use strict";v.d(Re,{Ms:()=>Me,vU:()=>fe});var u=v(8071),y=v(8359),o=v(1026),B=v(5334),W=v(5343);const ee=F("C",void 0,void 0);function F(Ve,rt,Xe){return{kind:Ve,value:rt,error:Xe}}var U=v(9270),L=v(9786);class fe extends y.yU{constructor(rt){super(),this.isStopped=!1,rt?(this.destination=rt,(0,y.Uv)(rt)&&rt.add(this)):this.destination=bt}static create(rt,Xe,oe){return new Me(rt,Xe,oe)}next(rt){this.isStopped?tt(function V(Ve){return F("N",Ve,void 0)}(rt),this):this._next(rt)}error(rt){this.isStopped?tt(function re(Ve){return F("E",void 0,Ve)}(rt),this):(this.isStopped=!0,this._error(rt))}complete(){this.isStopped?tt(ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(rt){this.destination.next(rt)}_error(rt){try{this.destination.error(rt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const de=Function.prototype.bind;function be(Ve,rt){return de.call(Ve,rt)}class Te{constructor(rt){this.partialObserver=rt}next(rt){const{partialObserver:Xe}=this;if(Xe.next)try{Xe.next(rt)}catch(oe){te(oe)}}error(rt){const{partialObserver:Xe}=this;if(Xe.error)try{Xe.error(rt)}catch(oe){te(oe)}else te(rt)}complete(){const{partialObserver:rt}=this;if(rt.complete)try{rt.complete()}catch(Xe){te(Xe)}}}class Me extends fe{constructor(rt,Xe,oe){let he;if(super(),(0,u.T)(rt)||!rt)he={next:rt??void 0,error:Xe??void 0,complete:oe??void 0};else{let Le;this&&o.$.useDeprecatedNextContext?(Le=Object.create(rt),Le.unsubscribe=()=>this.unsubscribe(),he={next:rt.next&&be(rt.next,Le),error:rt.error&&be(rt.error,Le),complete:rt.complete&&be(rt.complete,Le)}):he=rt}this.destination=new Te(he)}}function te(Ve){o.$.useDeprecatedSynchronousErrorHandling?(0,L.l)(Ve):(0,B.m)(Ve)}function tt(Ve,rt){const{onStoppedNotification:Xe}=o.$;Xe&&U.f.setTimeout(()=>Xe(Ve,rt))}const bt={closed:!0,next:W.l,error:function ve(Ve){throw Ve},complete:W.l}},8359:(tn,Re,v)=>{"use strict";v.d(Re,{Kn:()=>ee,yU:()=>W,Uv:()=>re});var u=v(8071);const o=(0,v(1853).L)(F=>function(L){F(this),this.message=L?`${L.length} errors occurred during unsubscription:\n${L.map((fe,de)=>`${de+1}) ${fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=L});var B=v(7908);class W{constructor(U){this.initialTeardown=U,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let U;if(!this.closed){this.closed=!0;const{_parentage:L}=this;if(L)if(this._parentage=null,Array.isArray(L))for(const be of L)be.remove(this);else L.remove(this);const{initialTeardown:fe}=this;if((0,u.T)(fe))try{fe()}catch(be){U=be instanceof o?be.errors:[be]}const{_finalizers:de}=this;if(de){this._finalizers=null;for(const be of de)try{V(be)}catch(Te){U=U??[],Te instanceof o?U=[...U,...Te.errors]:U.push(Te)}}if(U)throw new o(U)}}add(U){var L;if(U&&U!==this)if(this.closed)V(U);else{if(U instanceof W){if(U.closed||U._hasParent(this))return;U._addParent(this)}(this._finalizers=null!==(L=this._finalizers)&&void 0!==L?L:[]).push(U)}}_hasParent(U){const{_parentage:L}=this;return L===U||Array.isArray(L)&&L.includes(U)}_addParent(U){const{_parentage:L}=this;this._parentage=Array.isArray(L)?(L.push(U),L):L?[L,U]:U}_removeParent(U){const{_parentage:L}=this;L===U?this._parentage=null:Array.isArray(L)&&(0,B.o)(L,U)}remove(U){const{_finalizers:L}=this;L&&(0,B.o)(L,U),U instanceof W&&U._removeParent(this)}}W.EMPTY=(()=>{const F=new W;return F.closed=!0,F})();const ee=W.EMPTY;function re(F){return F instanceof W||F&&"closed"in F&&(0,u.T)(F.remove)&&(0,u.T)(F.add)&&(0,u.T)(F.unsubscribe)}function V(F){(0,u.T)(F)?F():F.unsubscribe()}},1026:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>u});const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(tn,Re,v)=>{"use strict";v.d(Re,{G:()=>ee});var u=v(1985),y=v(8359),o=v(9898),B=v(4360),W=v(9974);class ee extends u.c{constructor(V,F){super(),this.source=V,this.subjectFactory=F,this._subject=null,this._refCount=0,this._connection=null,(0,W.S)(V)&&(this.lift=V.lift)}_subscribe(V){return this.getSubject().subscribe(V)}getSubject(){const V=this._subject;return(!V||V.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:V}=this;this._subject=this._connection=null,V?.unsubscribe()}connect(){let V=this._connection;if(!V){V=this._connection=new y.yU;const F=this.getSubject();V.add(this.source.subscribe((0,B._)(F,void 0,()=>{this._teardown(),F.complete()},U=>{this._teardown(),F.error(U)},()=>this._teardown()))),V.closed&&(this._connection=null,V=y.yU.EMPTY)}return V}refCount(){return(0,o.B)()(this)}}},4572:(tn,Re,v)=>{"use strict";v.d(Re,{z:()=>U});var u=v(1985),y=v(3073),o=v(6648),B=v(3669),W=v(6450),ee=v(9326),re=v(8496),V=v(4360),F=v(5225);function U(...de){const be=(0,ee.lI)(de),Te=(0,ee.ms)(de),{args:Me,keys:te}=(0,y.D)(de);if(0===Me.length)return(0,o.H)([],be);const ve=new u.c(function L(de,be,Te=B.D){return Me=>{fe(be,()=>{const{length:te}=de,ve=new Array(te);let tt=te,bt=te;for(let Ve=0;Ve{const rt=(0,o.H)(de[Ve],be);let Xe=!1;rt.subscribe((0,V._)(Me,oe=>{ve[Ve]=oe,Xe||(Xe=!0,bt--),bt||Me.next(Te(ve.slice()))},()=>{--tt||Me.complete()}))},Me)},Me)}}(Me,be,te?tt=>(0,re.e)(te,tt):B.D));return Te?ve.pipe((0,W.I)(Te)):ve}function fe(de,be,Te){de?(0,F.N)(Te,de,be):be()}},8793:(tn,Re,v)=>{"use strict";v.d(Re,{x:()=>W});var u=v(6365),o=v(9326),B=v(6648);function W(...ee){return function y(){return(0,u.U)(1)}()((0,B.H)(ee,(0,o.lI)(ee)))}},9030:(tn,Re,v)=>{"use strict";v.d(Re,{v:()=>o});var u=v(1985),y=v(8750);function o(B){return new u.c(W=>{(0,y.Tg)(B()).subscribe(W)})}},983:(tn,Re,v)=>{"use strict";v.d(Re,{w:()=>y});const y=new(v(1985).c)(W=>W.complete())},7468:(tn,Re,v)=>{"use strict";v.d(Re,{p:()=>V});var u=v(1985),y=v(3073),o=v(8750),B=v(9326),W=v(4360),ee=v(6450),re=v(8496);function V(...F){const U=(0,B.ms)(F),{args:L,keys:fe}=(0,y.D)(F),de=new u.c(be=>{const{length:Te}=L;if(!Te)return void be.complete();const Me=new Array(Te);let te=Te,ve=Te;for(let tt=0;tt{bt||(bt=!0,ve--),Me[tt]=Ve},()=>te--,void 0,()=>{(!te||!bt)&&(ve||be.next(fe?(0,re.e)(fe,Me):Me),be.complete())}))}});return U?de.pipe((0,ee.I)(U)):de}},6648:(tn,Re,v)=>{"use strict";v.d(Re,{H:()=>oe});var u=v(8750),y=v(5225),o=v(9974),B=v(4360);function W(he,Le=0){return(0,o.N)((et,It)=>{et.subscribe((0,B._)(It,Et=>(0,y.N)(It,he,()=>It.next(Et),Le),()=>(0,y.N)(It,he,()=>It.complete(),Le),Et=>(0,y.N)(It,he,()=>It.error(Et),Le)))})}function ee(he,Le=0){return(0,o.N)((et,It)=>{It.add(he.schedule(()=>et.subscribe(It),Le))})}var F=v(1985),L=v(4761),fe=v(8071);function be(he,Le){if(!he)throw new Error("Iterable cannot be null");return new F.c(et=>{(0,y.N)(et,Le,()=>{const It=he[Symbol.asyncIterator]();(0,y.N)(et,Le,()=>{It.next().then(Et=>{Et.done?et.complete():et.next(Et.value)})},0,!0)})})}var Te=v(5055),Me=v(9858),te=v(7441),ve=v(5397),tt=v(7953),bt=v(591),Ve=v(5196);function oe(he,Le){return Le?function Xe(he,Le){if(null!=he){if((0,Te.l)(he))return function re(he,Le){return(0,u.Tg)(he).pipe(ee(Le),W(Le))}(he,Le);if((0,te.X)(he))return function U(he,Le){return new F.c(et=>{let It=0;return Le.schedule(function(){It===he.length?et.complete():(et.next(he[It++]),et.closed||this.schedule())})})}(he,Le);if((0,Me.y)(he))return function V(he,Le){return(0,u.Tg)(he).pipe(ee(Le),W(Le))}(he,Le);if((0,tt.T)(he))return be(he,Le);if((0,ve.x)(he))return function de(he,Le){return new F.c(et=>{let It;return(0,y.N)(et,Le,()=>{It=he[L.l](),(0,y.N)(et,Le,()=>{let Et,Tt;try{({value:Et,done:Tt}=It.next())}catch(nn){return void et.error(nn)}Tt?et.complete():et.next(Et)},0,!0)}),()=>(0,fe.T)(It?.return)&&It.return()})}(he,Le);if((0,Ve.U)(he))return function rt(he,Le){return be((0,Ve.C)(he),Le)}(he,Le)}throw(0,bt.L)(he)}(he,Le):(0,u.Tg)(he)}},3726:(tn,Re,v)=>{"use strict";v.d(Re,{R:()=>U});var u=v(8750),y=v(1985),o=v(1397),B=v(7441),W=v(8071),ee=v(6450);const re=["addListener","removeListener"],V=["addEventListener","removeEventListener"],F=["on","off"];function U(Te,Me,te,ve){if((0,W.T)(te)&&(ve=te,te=void 0),ve)return U(Te,Me,te).pipe((0,ee.I)(ve));const[tt,bt]=function be(Te){return(0,W.T)(Te.addEventListener)&&(0,W.T)(Te.removeEventListener)}(Te)?V.map(Ve=>rt=>Te[Ve](Me,rt,te)):function fe(Te){return(0,W.T)(Te.addListener)&&(0,W.T)(Te.removeListener)}(Te)?re.map(L(Te,Me)):function de(Te){return(0,W.T)(Te.on)&&(0,W.T)(Te.off)}(Te)?F.map(L(Te,Me)):[];if(!tt&&(0,B.X)(Te))return(0,o.Z)(Ve=>U(Ve,Me,te))((0,u.Tg)(Te));if(!tt)throw new TypeError("Invalid event target");return new y.c(Ve=>{const rt=(...Xe)=>Ve.next(1bt(rt)})}function L(Te,Me){return te=>ve=>Te[te](Me,ve)}},8750:(tn,Re,v)=>{"use strict";v.d(Re,{Tg:()=>de});var u=v(1635),y=v(7441),o=v(9858),B=v(1985),W=v(5055),ee=v(7953),re=v(591),V=v(5397),F=v(5196),U=v(8071),L=v(5334),fe=v(3494);function de(Ve){if(Ve instanceof B.c)return Ve;if(null!=Ve){if((0,W.l)(Ve))return function be(Ve){return new B.c(rt=>{const Xe=Ve[fe.s]();if((0,U.T)(Xe.subscribe))return Xe.subscribe(rt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,y.X)(Ve))return function Te(Ve){return new B.c(rt=>{for(let Xe=0;Xe{Ve.then(Xe=>{rt.closed||(rt.next(Xe),rt.complete())},Xe=>rt.error(Xe)).then(null,L.m)})}(Ve);if((0,ee.T)(Ve))return ve(Ve);if((0,V.x)(Ve))return function te(Ve){return new B.c(rt=>{for(const Xe of Ve)if(rt.next(Xe),rt.closed)return;rt.complete()})}(Ve);if((0,F.U)(Ve))return function tt(Ve){return ve((0,F.C)(Ve))}(Ve)}throw(0,re.L)(Ve)}function ve(Ve){return new B.c(rt=>{(function bt(Ve,rt){var Xe,oe,he,Le;return(0,u.sH)(this,void 0,void 0,function*(){try{for(Xe=(0,u.xN)(Ve);!(oe=yield Xe.next()).done;)if(rt.next(oe.value),rt.closed)return}catch(et){he={error:et}}finally{try{oe&&!oe.done&&(Le=Xe.return)&&(yield Le.call(Xe))}finally{if(he)throw he.error}}rt.complete()})})(Ve,rt).catch(Xe=>rt.error(Xe))})}},7786:(tn,Re,v)=>{"use strict";v.d(Re,{h:()=>ee});var u=v(6365),y=v(8750),o=v(983),B=v(9326),W=v(6648);function ee(...re){const V=(0,B.lI)(re),F=(0,B.R0)(re,1/0),U=re;return U.length?1===U.length?(0,y.Tg)(U[0]):(0,u.U)(F)((0,W.H)(U,V)):o.w}},7673:(tn,Re,v)=>{"use strict";v.d(Re,{of:()=>o});var u=v(9326),y=v(6648);function o(...B){const W=(0,u.lI)(B);return(0,y.H)(B,W)}},8810:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>o});var u=v(1985),y=v(8071);function o(B,W){const ee=(0,y.T)(B)?B:()=>B,re=V=>V.error(ee());return new u.c(W?V=>W.schedule(re,0,V):re)}},1584:(tn,Re,v)=>{"use strict";v.d(Re,{O:()=>W});var u=v(1985),y=v(3236),o=v(9470);function W(ee=0,re,V=y.b){let F=-1;return null!=re&&((0,o.m)(re)?V=re:F=re),new u.c(U=>{let L=function B(ee){return ee instanceof Date&&!isNaN(ee)}(ee)?+ee-V.now():ee;L<0&&(L=0);let fe=0;return V.schedule(function(){U.closed||(U.next(fe++),0<=F?this.schedule(void 0,F):U.complete())},L)})}},4360:(tn,Re,v)=>{"use strict";v.d(Re,{_:()=>y});var u=v(7707);function y(B,W,ee,re,V){return new o(B,W,ee,re,V)}class o extends u.vU{constructor(W,ee,re,V,F,U){super(W),this.onFinalize=F,this.shouldUnsubscribe=U,this._next=ee?function(L){try{ee(L)}catch(fe){W.error(fe)}}:super._next,this._error=V?function(L){try{V(L)}catch(fe){W.error(fe)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(L){W.error(L)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var W;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ee}=this;super.unsubscribe(),!ee&&(null===(W=this.onFinalize)||void 0===W||W.call(this))}}}},3798:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>re});var u=v(3236),y=v(9974),o=v(8750),B=v(4360),ee=v(1584);function re(V,F=u.E){return function W(V){return(0,y.N)((F,U)=>{let L=!1,fe=null,de=null,be=!1;const Te=()=>{if(de?.unsubscribe(),de=null,L){L=!1;const te=fe;fe=null,U.next(te)}be&&U.complete()},Me=()=>{de=null,be&&U.complete()};F.subscribe((0,B._)(U,te=>{L=!0,fe=te,de||(0,o.Tg)(V(te)).subscribe(de=(0,B._)(U,Te,Me))},()=>{be=!0,(!L||!de||de.closed)&&U.complete()}))})}(()=>(0,ee.O)(V,F))}},9437:(tn,Re,v)=>{"use strict";v.d(Re,{W:()=>B});var u=v(8750),y=v(4360),o=v(9974);function B(W){return(0,o.N)((ee,re)=>{let U,V=null,F=!1;V=ee.subscribe((0,y._)(re,void 0,void 0,L=>{U=(0,u.Tg)(W(L,B(W)(ee))),V?(V.unsubscribe(),V=null,U.subscribe(re)):F=!0})),F&&(V.unsubscribe(),V=null,U.subscribe(re))})}},274:(tn,Re,v)=>{"use strict";v.d(Re,{H:()=>o});var u=v(1397),y=v(8071);function o(B,W){return(0,y.T)(W)?(0,u.Z)(B,W,1):(0,u.Z)(B,1)}},152:(tn,Re,v)=>{"use strict";v.d(Re,{B:()=>B});var u=v(3236),y=v(9974),o=v(4360);function B(W,ee=u.E){return(0,y.N)((re,V)=>{let F=null,U=null,L=null;const fe=()=>{if(F){F.unsubscribe(),F=null;const be=U;U=null,V.next(be)}};function de(){const be=L+W,Te=ee.now();if(Te{U=be,L=ee.now(),F||(F=ee.schedule(de,W),V.add(F))},()=>{fe(),V.complete()},void 0,()=>{U=F=null}))})}},1986:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>de});var u=v(3236),y=v(8793),o=v(6697),B=v(9974),W=v(4360),ee=v(5343),V=v(3703),F=v(1397),U=v(8750);function L(be,Te){return Te?Me=>(0,y.x)(Te.pipe((0,o.s)(1),function re(){return(0,B.N)((be,Te)=>{be.subscribe((0,W._)(Te,ee.l))})}()),Me.pipe(L(be))):(0,F.Z)((Me,te)=>(0,U.Tg)(be(Me,te)).pipe((0,o.s)(1),(0,V.u)(Me)))}var fe=v(1584);function de(be,Te=u.E){const Me=(0,fe.O)(be,Te);return L(()=>Me)}},3294:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>B});var u=v(3669),y=v(9974),o=v(4360);function B(ee,re=u.D){return ee=ee??W,(0,y.N)((V,F)=>{let U,L=!0;V.subscribe((0,o._)(F,fe=>{const de=re(fe);(L||!ee(U,de))&&(L=!1,U=de,F.next(fe))}))})}function W(ee,re){return ee===re}},5964:(tn,Re,v)=>{"use strict";v.d(Re,{p:()=>o});var u=v(9974),y=v(4360);function o(B,W){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>B.call(W,F,V++)&&re.next(F)))})}},980:(tn,Re,v)=>{"use strict";v.d(Re,{j:()=>y});var u=v(9974);function y(o){return(0,u.N)((B,W)=>{try{B.subscribe(W)}finally{W.add(o)}})}},6354:(tn,Re,v)=>{"use strict";v.d(Re,{T:()=>o});var u=v(9974),y=v(4360);function o(B,W){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>{re.next(B.call(W,F,V++))}))})}},3703:(tn,Re,v)=>{"use strict";v.d(Re,{u:()=>y});var u=v(6354);function y(o){return(0,u.T)(()=>o)}},6365:(tn,Re,v)=>{"use strict";v.d(Re,{U:()=>o});var u=v(1397),y=v(3669);function o(B=1/0){return(0,u.Z)(y.D,B)}},1397:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>V});var u=v(6354),y=v(8750),o=v(9974),B=v(5225),W=v(4360),re=v(8071);function V(F,U,L=1/0){return(0,re.T)(U)?V((fe,de)=>(0,u.T)((be,Te)=>U(fe,be,de,Te))((0,y.Tg)(F(fe,de))),L):("number"==typeof U&&(L=U),(0,o.N)((fe,de)=>function ee(F,U,L,fe,de,be,Te,Me){const te=[];let ve=0,tt=0,bt=!1;const Ve=()=>{bt&&!te.length&&!ve&&U.complete()},rt=oe=>ve{be&&U.next(oe),ve++;let he=!1;(0,y.Tg)(L(oe,tt++)).subscribe((0,W._)(U,Le=>{de?.(Le),be?rt(Le):U.next(Le)},()=>{he=!0},void 0,()=>{if(he)try{for(ve--;te.length&&veXe(Le)):Xe(Le)}Ve()}catch(Le){U.error(Le)}}))};return F.subscribe((0,W._)(U,rt,()=>{bt=!0,Ve()})),()=>{Me?.()}}(fe,de,F,L)))}},9898:(tn,Re,v)=>{"use strict";v.d(Re,{B:()=>o});var u=v(9974),y=v(4360);function o(){return(0,u.N)((B,W)=>{let ee=null;B._refCount++;const re=(0,y._)(W,void 0,void 0,void 0,()=>{if(!B||B._refCount<=0||0<--B._refCount)return void(ee=null);const V=B._connection,F=ee;ee=null,V&&(!F||V===F)&&V.unsubscribe(),W.unsubscribe()});B.subscribe(re),re.closed||(ee=B.connect())})}},7647:(tn,Re,v)=>{"use strict";v.d(Re,{u:()=>W});var u=v(8750),y=v(1413),o=v(7707),B=v(9974);function W(re={}){const{connector:V=()=>new y.B,resetOnError:F=!0,resetOnComplete:U=!0,resetOnRefCountZero:L=!0}=re;return fe=>{let de,be,Te,Me=0,te=!1,ve=!1;const tt=()=>{be?.unsubscribe(),be=void 0},bt=()=>{tt(),de=Te=void 0,te=ve=!1},Ve=()=>{const rt=de;bt(),rt?.unsubscribe()};return(0,B.N)((rt,Xe)=>{Me++,!ve&&!te&&tt();const oe=Te=Te??V();Xe.add(()=>{Me--,0===Me&&!ve&&!te&&(be=ee(Ve,L))}),oe.subscribe(Xe),!de&&Me>0&&(de=new o.Ms({next:he=>oe.next(he),error:he=>{ve=!0,tt(),be=ee(bt,F,he),oe.error(he)},complete:()=>{te=!0,tt(),be=ee(bt,U),oe.complete()}}),(0,u.Tg)(rt).subscribe(de))})(fe)}}function ee(re,V,...F){if(!0===V)return void re();if(!1===V)return;const U=new o.Ms({next:()=>{U.unsubscribe(),re()}});return(0,u.Tg)(V(...F)).subscribe(U)}},4668:(tn,Re,v)=>{"use strict";v.d(Re,{t:()=>o});var u=v(2771),y=v(7647);function o(B,W,ee){let re,V=!1;return B&&"object"==typeof B?({bufferSize:re=1/0,windowTime:W=1/0,refCount:V=!1,scheduler:ee}=B):re=B??1/0,(0,y.u)({connector:()=>new u.m(re,W,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:V})}},5245:(tn,Re,v)=>{"use strict";v.d(Re,{i:()=>y});var u=v(5964);function y(o){return(0,u.p)((B,W)=>o<=W)}},9172:(tn,Re,v)=>{"use strict";v.d(Re,{Z:()=>B});var u=v(8793),y=v(9326),o=v(9974);function B(...W){const ee=(0,y.lI)(W);return(0,o.N)((re,V)=>{(ee?(0,u.x)(W,re,ee):(0,u.x)(W,re)).subscribe(V)})}},5558:(tn,Re,v)=>{"use strict";v.d(Re,{n:()=>B});var u=v(8750),y=v(9974),o=v(4360);function B(W,ee){return(0,y.N)((re,V)=>{let F=null,U=0,L=!1;const fe=()=>L&&!F&&V.complete();re.subscribe((0,o._)(V,de=>{F?.unsubscribe();let be=0;const Te=U++;(0,u.Tg)(W(de,Te)).subscribe(F=(0,o._)(V,Me=>V.next(ee?ee(de,Me,Te,be++):Me),()=>{F=null,fe()}))},()=>{L=!0,fe()}))})}},6697:(tn,Re,v)=>{"use strict";v.d(Re,{s:()=>B});var u=v(983),y=v(9974),o=v(4360);function B(W){return W<=0?()=>u.w:(0,y.N)((ee,re)=>{let V=0;ee.subscribe((0,o._)(re,F=>{++V<=W&&(re.next(F),W<=V&&re.complete())}))})}},6977:(tn,Re,v)=>{"use strict";v.d(Re,{Q:()=>W});var u=v(9974),y=v(4360),o=v(8750),B=v(5343);function W(ee){return(0,u.N)((re,V)=>{(0,o.Tg)(ee).subscribe((0,y._)(V,()=>V.complete(),B.l)),!V.closed&&re.subscribe(V)})}},7048:(tn,Re,v)=>{"use strict";v.d(Re,{v:()=>o});var u=v(9974),y=v(4360);function o(B,W=!1){return(0,u.N)((ee,re)=>{let V=0;ee.subscribe((0,y._)(re,F=>{const U=B(F,V++);(U||W)&&re.next(F),!U&&re.complete()}))})}},8141:(tn,Re,v)=>{"use strict";v.d(Re,{M:()=>W});var u=v(8071),y=v(9974),o=v(4360),B=v(3669);function W(ee,re,V){const F=(0,u.T)(ee)||re||V?{next:ee,error:re,complete:V}:ee;return F?(0,y.N)((U,L)=>{var fe;null===(fe=F.subscribe)||void 0===fe||fe.call(F);let de=!0;U.subscribe((0,o._)(L,be=>{var Te;null===(Te=F.next)||void 0===Te||Te.call(F,be),L.next(be)},()=>{var be;de=!1,null===(be=F.complete)||void 0===be||be.call(F),L.complete()},be=>{var Te;de=!1,null===(Te=F.error)||void 0===Te||Te.call(F,be),L.error(be)},()=>{var be,Te;de&&(null===(be=F.unsubscribe)||void 0===be||be.call(F)),null===(Te=F.finalize)||void 0===Te||Te.call(F)}))}):B.D}},6780:(tn,Re,v)=>{"use strict";v.d(Re,{R:()=>W});var u=v(8359);class y extends u.yU{constructor(re,V){super()}schedule(re,V=0){return this}}const o={setInterval(ee,re,...V){const{delegate:F}=o;return F?.setInterval?F.setInterval(ee,re,...V):setInterval(ee,re,...V)},clearInterval(ee){const{delegate:re}=o;return(re?.clearInterval||clearInterval)(ee)},delegate:void 0};var B=v(7908);class W extends y{constructor(re,V){super(re,V),this.scheduler=re,this.work=V,this.pending=!1}schedule(re,V=0){var F;if(this.closed)return this;this.state=re;const U=this.id,L=this.scheduler;return null!=U&&(this.id=this.recycleAsyncId(L,U,V)),this.pending=!0,this.delay=V,this.id=null!==(F=this.id)&&void 0!==F?F:this.requestAsyncId(L,this.id,V),this}requestAsyncId(re,V,F=0){return o.setInterval(re.flush.bind(re,this),F)}recycleAsyncId(re,V,F=0){if(null!=F&&this.delay===F&&!1===this.pending)return V;null!=V&&o.clearInterval(V)}execute(re,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const F=this._execute(re,V);if(F)return F;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(re,V){let U,F=!1;try{this.work(re)}catch(L){F=!0,U=L||new Error("Scheduled action threw falsy error")}if(F)return this.unsubscribe(),U}unsubscribe(){if(!this.closed){const{id:re,scheduler:V}=this,{actions:F}=V;this.work=this.state=this.scheduler=null,this.pending=!1,(0,B.o)(F,this),null!=re&&(this.id=this.recycleAsyncId(V,re,null)),this.delay=null,super.unsubscribe()}}}},9687:(tn,Re,v)=>{"use strict";v.d(Re,{q:()=>o});var u=v(6129);class y{constructor(W,ee=y.now){this.schedulerActionCtor=W,this.now=ee}schedule(W,ee=0,re){return new this.schedulerActionCtor(this,W).schedule(re,ee)}}y.now=u.U.now;class o extends y{constructor(W,ee=y.now){super(W,ee),this.actions=[],this._active=!1}flush(W){const{actions:ee}=this;if(this._active)return void ee.push(W);let re;this._active=!0;do{if(re=W.execute(W.state,W.delay))break}while(W=ee.shift());if(this._active=!1,re){for(;W=ee.shift();)W.unsubscribe();throw re}}}},5007:(tn,Re,v)=>{"use strict";v.d(Re,{$:()=>be});var u=v(6780);let o,y=1;const B={};function W(Me){return Me in B&&(delete B[Me],!0)}const ee={setImmediate(Me){const te=y++;return B[te]=!0,o||(o=Promise.resolve()),o.then(()=>W(te)&&Me()),te},clearImmediate(Me){W(Me)}},{setImmediate:V,clearImmediate:F}=ee,U={setImmediate(...Me){const{delegate:te}=U;return(te?.setImmediate||V)(...Me)},clearImmediate(Me){const{delegate:te}=U;return(te?.clearImmediate||F)(Me)},delegate:void 0};var fe=v(9687);const be=new class de extends fe.q{flush(te){this._active=!0;const ve=this._scheduled;this._scheduled=void 0;const{actions:tt}=this;let bt;te=te||tt.shift();do{if(bt=te.execute(te.state,te.delay))break}while((te=tt[0])&&te.id===ve&&tt.shift());if(this._active=!1,bt){for(;(te=tt[0])&&te.id===ve&&tt.shift();)te.unsubscribe();throw bt}}}(class L extends u.R{constructor(te,ve){super(te,ve),this.scheduler=te,this.work=ve}requestAsyncId(te,ve,tt=0){return null!==tt&&tt>0?super.requestAsyncId(te,ve,tt):(te.actions.push(this),te._scheduled||(te._scheduled=U.setImmediate(te.flush.bind(te,void 0))))}recycleAsyncId(te,ve,tt=0){var bt;if(null!=tt?tt>0:this.delay>0)return super.recycleAsyncId(te,ve,tt);const{actions:Ve}=te;null!=ve&&(null===(bt=Ve[Ve.length-1])||void 0===bt?void 0:bt.id)!==ve&&(U.clearImmediate(ve),te._scheduled===ve&&(te._scheduled=void 0))}})},3236:(tn,Re,v)=>{"use strict";v.d(Re,{E:()=>o,b:()=>B});var u=v(6780);const o=new(v(9687).q)(u.R),B=o},6129:(tn,Re,v)=>{"use strict";v.d(Re,{U:()=>u});const u={now:()=>(u.delegate||Date).now(),delegate:void 0}},9270:(tn,Re,v)=>{"use strict";v.d(Re,{f:()=>u});const u={setTimeout(y,o,...B){const{delegate:W}=u;return W?.setTimeout?W.setTimeout(y,o,...B):setTimeout(y,o,...B)},clearTimeout(y){const{delegate:o}=u;return(o?.clearTimeout||clearTimeout)(y)},delegate:void 0}},4761:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>y});const y=function u(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(tn,Re,v)=>{"use strict";v.d(Re,{s:()=>u});const u="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(tn,Re,v)=>{"use strict";v.d(Re,{G:()=>y});const y=(0,v(1853).L)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(tn,Re,v)=>{"use strict";v.d(Re,{R0:()=>ee,lI:()=>W,ms:()=>B});var u=v(8071),y=v(9470);function o(re){return re[re.length-1]}function B(re){return(0,u.T)(o(re))?re.pop():void 0}function W(re){return(0,y.m)(o(re))?re.pop():void 0}function ee(re,V){return"number"==typeof o(re)?re.pop():V}},3073:(tn,Re,v)=>{"use strict";v.d(Re,{D:()=>W});const{isArray:u}=Array,{getPrototypeOf:y,prototype:o,keys:B}=Object;function W(re){if(1===re.length){const V=re[0];if(u(V))return{args:V,keys:null};if(function ee(re){return re&&"object"==typeof re&&y(re)===o}(V)){const F=B(V);return{args:F.map(U=>V[U]),keys:F}}}return{args:re,keys:null}}},7908:(tn,Re,v)=>{"use strict";function u(y,o){if(y){const B=y.indexOf(o);0<=B&&y.splice(B,1)}}v.d(Re,{o:()=>u})},1853:(tn,Re,v)=>{"use strict";function u(y){const B=y(W=>{Error.call(W),W.stack=(new Error).stack});return B.prototype=Object.create(Error.prototype),B.prototype.constructor=B,B}v.d(Re,{L:()=>u})},8496:(tn,Re,v)=>{"use strict";function u(y,o){return y.reduce((B,W,ee)=>(B[W]=o[ee],B),{})}v.d(Re,{e:()=>u})},9786:(tn,Re,v)=>{"use strict";v.d(Re,{Y:()=>o,l:()=>B});var u=v(1026);let y=null;function o(W){if(u.$.useDeprecatedSynchronousErrorHandling){const ee=!y;if(ee&&(y={errorThrown:!1,error:null}),W(),ee){const{errorThrown:re,error:V}=y;if(y=null,re)throw V}}else W()}function B(W){u.$.useDeprecatedSynchronousErrorHandling&&y&&(y.errorThrown=!0,y.error=W)}},5225:(tn,Re,v)=>{"use strict";function u(y,o,B,W=0,ee=!1){const re=o.schedule(function(){B(),ee?y.add(this.schedule(null,W)):this.unsubscribe()},W);if(y.add(re),!ee)return re}v.d(Re,{N:()=>u})},3669:(tn,Re,v)=>{"use strict";function u(y){return y}v.d(Re,{D:()=>u})},7441:(tn,Re,v)=>{"use strict";v.d(Re,{X:()=>u});const u=y=>y&&"number"==typeof y.length&&"function"!=typeof y},7953:(tn,Re,v)=>{"use strict";v.d(Re,{T:()=>y});var u=v(8071);function y(o){return Symbol.asyncIterator&&(0,u.T)(o?.[Symbol.asyncIterator])}},8071:(tn,Re,v)=>{"use strict";function u(y){return"function"==typeof y}v.d(Re,{T:()=>u})},5055:(tn,Re,v)=>{"use strict";v.d(Re,{l:()=>o});var u=v(3494),y=v(8071);function o(B){return(0,y.T)(B[u.s])}},5397:(tn,Re,v)=>{"use strict";v.d(Re,{x:()=>o});var u=v(4761),y=v(8071);function o(B){return(0,y.T)(B?.[u.l])}},4402:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(1985),y=v(8071);function o(B){return!!B&&(B instanceof u.c||(0,y.T)(B.lift)&&(0,y.T)(B.subscribe))}},9858:(tn,Re,v)=>{"use strict";v.d(Re,{y:()=>y});var u=v(8071);function y(o){return(0,u.T)(o?.then)}},5196:(tn,Re,v)=>{"use strict";v.d(Re,{C:()=>o,U:()=>B});var u=v(1635),y=v(8071);function o(W){return(0,u.AQ)(this,arguments,function*(){const re=W.getReader();try{for(;;){const{value:V,done:F}=yield(0,u.N3)(re.read());if(F)return yield(0,u.N3)(void 0);yield yield(0,u.N3)(V)}}finally{re.releaseLock()}})}function B(W){return(0,y.T)(W?.getReader)}},9470:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>y});var u=v(8071);function y(o){return o&&(0,u.T)(o.schedule)}},9974:(tn,Re,v)=>{"use strict";v.d(Re,{N:()=>o,S:()=>y});var u=v(8071);function y(B){return(0,u.T)(B?.lift)}function o(B){return W=>{if(y(W))return W.lift(function(ee){try{return B(ee,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(tn,Re,v)=>{"use strict";v.d(Re,{I:()=>B});var u=v(6354);const{isArray:y}=Array;function B(W){return(0,u.T)(ee=>function o(W,ee){return y(ee)?W(...ee):W(ee)}(W,ee))}},5343:(tn,Re,v)=>{"use strict";function u(){}v.d(Re,{l:()=>u})},1203:(tn,Re,v)=>{"use strict";v.d(Re,{F:()=>y,m:()=>o});var u=v(3669);function y(...B){return o(B)}function o(B){return 0===B.length?u.D:1===B.length?B[0]:function(ee){return B.reduce((re,V)=>V(re),ee)}}},5334:(tn,Re,v)=>{"use strict";v.d(Re,{m:()=>o});var u=v(1026),y=v(9270);function o(B){y.f.setTimeout(()=>{const{onUnhandledError:W}=u.$;if(!W)throw B;W(B)})}},591:(tn,Re,v)=>{"use strict";function u(y){return new TypeError(`You provided ${null!==y&&"object"==typeof y?"an invalid object":`'${y}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}v.d(Re,{L:()=>u})},9969:(tn,Re,v)=>{"use strict";v.d(Re,{FX:()=>It,If:()=>o,K2:()=>V,MA:()=>be,Os:()=>re,P:()=>Me,S6:()=>ve,hZ:()=>W,i0:()=>ee,i7:()=>L,iF:()=>F,kY:()=>fe,kp:()=>B,sf:()=>Le,ui:()=>et,wk:()=>U});var u=v(177),y=v(4438),o=function(Et){return Et[Et.State=0]="State",Et[Et.Transition=1]="Transition",Et[Et.Sequence=2]="Sequence",Et[Et.Group=3]="Group",Et[Et.Animate=4]="Animate",Et[Et.Keyframes=5]="Keyframes",Et[Et.Style=6]="Style",Et[Et.Trigger=7]="Trigger",Et[Et.Reference=8]="Reference",Et[Et.AnimateChild=9]="AnimateChild",Et[Et.AnimateRef=10]="AnimateRef",Et[Et.Query=11]="Query",Et[Et.Stagger=12]="Stagger",Et}(o||{});const B="*";function W(Et,Tt){return{type:o.Trigger,name:Et,definitions:Tt,options:{}}}function ee(Et,Tt=null){return{type:o.Animate,styles:Tt,timings:Et}}function re(Et,Tt=null){return{type:o.Group,steps:Et,options:Tt}}function V(Et,Tt=null){return{type:o.Sequence,steps:Et,options:Tt}}function F(Et){return{type:o.Style,styles:Et,offset:null}}function U(Et,Tt,nn){return{type:o.State,name:Et,styles:Tt,options:nn}}function L(Et){return{type:o.Keyframes,steps:Et}}function fe(Et,Tt,nn=null){return{type:o.Transition,expr:Et,animation:Tt,options:nn}}function be(Et=null){return{type:o.AnimateChild,options:Et}}function Me(Et,Tt,nn=null){return{type:o.Query,selector:Et,animation:Tt,options:nn}}let ve=(()=>{class Et{static{this.\u0275fac=function(Fn){return new(Fn||Et)}}static{this.\u0275prov=y.jDH({token:Et,factory:()=>(0,y.WQX)(bt),providedIn:"root"})}}return Et})();class tt{}let bt=(()=>{class Et extends ve{constructor(nn,Fn){if(super(),this.animationModuleType=(0,y.WQX)(y.bc$,{optional:!0}),this._nextAnimationId=0,this._renderer=nn.createRenderer(Fn.body,{id:"0",encapsulation:y.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function he(Et){const Tt=Et.\u0275type;return 0===Tt||1===Tt}(this._renderer))throw new y.wOt(3600,!1)}build(nn){const Fn=this._nextAnimationId;this._nextAnimationId++;const $n=Array.isArray(nn)?V(nn):nn;return Xe(this._renderer,null,Fn,"register",[$n]),new Ve(Fn,this._renderer)}static{this.\u0275fac=function(Fn){return new(Fn||Et)(y.KVO(y._9s),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:Et,factory:Et.\u0275fac,providedIn:"root"})}}return Et})();class Ve extends tt{constructor(Tt,nn){super(),this._id=Tt,this._renderer=nn}create(Tt,nn){return new rt(this._id,Tt,nn||{},this._renderer)}}class rt{constructor(Tt,nn,Fn,$n){this.id=Tt,this.element=nn,this._renderer=$n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Fn)}_listen(Tt,nn){return this._renderer.listen(this.element,`@@${this.id}:${Tt}`,nn)}_command(Tt,...nn){Xe(this._renderer,this.element,this.id,Tt,nn)}onDone(Tt){this._listen("done",Tt)}onStart(Tt){this._listen("start",Tt)}onDestroy(Tt){this._listen("destroy",Tt)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(Tt){this._command("setPosition",Tt)}getPosition(){return function oe(Et){const Tt=Et.\u0275type;return 0===Tt?Et:1===Tt?Et.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}}function Xe(Et,Tt,nn,Fn,$n){Et.setProperty(Tt,`@@${nn}:${Fn}`,$n)}class Le{constructor(Tt=0,nn=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Tt+nn}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Tt=>Tt()),this._onDoneFns=[])}onStart(Tt){this._originalOnStartFns.push(Tt),this._onStartFns.push(Tt)}onDone(Tt){this._originalOnDoneFns.push(Tt),this._onDoneFns.push(Tt)}onDestroy(Tt){this._onDestroyFns.push(Tt)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Tt=>Tt()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Tt=>Tt()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(Tt){this._position=this.totalTime?Tt*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Tt){const nn="start"==Tt?this._onStartFns:this._onDoneFns;nn.forEach(Fn=>Fn()),nn.length=0}}class et{constructor(Tt){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Tt;let nn=0,Fn=0,$n=0;const yn=this.players.length;0==yn?queueMicrotask(()=>this._onFinish()):this.players.forEach(di=>{di.onDone(()=>{++nn==yn&&this._onFinish()}),di.onDestroy(()=>{++Fn==yn&&this._onDestroy()}),di.onStart(()=>{++$n==yn&&this._onStart()})}),this.totalTime=this.players.reduce((di,mt)=>Math.max(di,mt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Tt=>Tt()),this._onDoneFns=[])}init(){this.players.forEach(Tt=>Tt.init())}onStart(Tt){this._onStartFns.push(Tt)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Tt=>Tt()),this._onStartFns=[])}onDone(Tt){this._onDoneFns.push(Tt)}onDestroy(Tt){this._onDestroyFns.push(Tt)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Tt=>Tt.play())}pause(){this.players.forEach(Tt=>Tt.pause())}restart(){this.players.forEach(Tt=>Tt.restart())}finish(){this._onFinish(),this.players.forEach(Tt=>Tt.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Tt=>Tt.destroy()),this._onDestroyFns.forEach(Tt=>Tt()),this._onDestroyFns=[])}reset(){this.players.forEach(Tt=>Tt.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Tt){const nn=Tt*this.totalTime;this.players.forEach(Fn=>{const $n=Fn.totalTime?Math.min(1,nn/Fn.totalTime):1;Fn.setPosition($n)})}getPosition(){const Tt=this.players.reduce((nn,Fn)=>null===nn||Fn.totalTime>nn.totalTime?Fn:nn,null);return null!=Tt?Tt.getPosition():0}beforeDestroy(){this.players.forEach(Tt=>{Tt.beforeDestroy&&Tt.beforeDestroy()})}triggerCallback(Tt){const nn="start"==Tt?this._onStartFns:this._onDoneFns;nn.forEach(Fn=>Fn()),nn.length=0}}const It="!"},9888:(tn,Re,v)=>{"use strict";v.d(Re,{Pd:()=>Bt,Au:()=>mt,vr:()=>Tt,Bu:()=>Ee,FN:()=>Gt,GX:()=>Je,Q_:()=>st,Z7:()=>we,Ai:()=>Cn,px:()=>Xe,_G:()=>$,w6:()=>le,Ae:()=>oe});var u=v(177),y=v(4438),o=v(6860),B=v(1413),W=v(8359),re=(v(4402),v(7673)),V=v(4412),F=v(7336),U=v(8141),L=v(152),fe=v(5964),de=v(6354),Te=(v(6697),v(5245)),Me=v(3294),te=v(6977),tt=v(2318),bt=v(4085),Ve=v(9327);const rt=" ";function Xe(ot,qe,Ie){const lt=he(ot,qe);Ie=Ie.trim(),!lt.some(Xt=>Xt.trim()===Ie)&&(lt.push(Ie),ot.setAttribute(qe,lt.join(rt)))}function oe(ot,qe,Ie){const lt=he(ot,qe);Ie=Ie.trim();const Xt=lt.filter(an=>an!==Ie);Xt.length?ot.setAttribute(qe,Xt.join(rt)):ot.removeAttribute(qe)}function he(ot,qe){return ot.getAttribute(qe)?.match(/\S+/g)??[]}const et="cdk-describedby-message",It="cdk-describedby-host";let Et=0,Tt=(()=>{class ot{constructor(Ie,lt){this._platform=lt,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Et++,this._document=Ie,this._id=(0,y.WQX)(y.sZ2)+"-"+Et++}describe(Ie,lt,Xt){if(!this._canBeDescribed(Ie,lt))return;const an=nn(lt,Xt);"string"!=typeof lt?(Fn(lt,this._id),this._messageRegistry.set(an,{messageElement:lt,referenceCount:0})):this._messageRegistry.has(an)||this._createMessageElement(lt,Xt),this._isElementDescribedByMessage(Ie,an)||this._addMessageReference(Ie,an)}removeDescription(Ie,lt,Xt){if(!lt||!this._isElementNode(Ie))return;const an=nn(lt,Xt);if(this._isElementDescribedByMessage(Ie,an)&&this._removeMessageReference(Ie,an),"string"==typeof lt){const li=this._messageRegistry.get(an);li&&0===li.referenceCount&&this._deleteMessageElement(an)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Ie=this._document.querySelectorAll(`[${It}="${this._id}"]`);for(let lt=0;lt0!=Xt.indexOf(et));Ie.setAttribute("aria-describedby",lt.join(" "))}_addMessageReference(Ie,lt){const Xt=this._messageRegistry.get(lt);Xe(Ie,"aria-describedby",Xt.messageElement.id),Ie.setAttribute(It,this._id),Xt.referenceCount++}_removeMessageReference(Ie,lt){const Xt=this._messageRegistry.get(lt);Xt.referenceCount--,oe(Ie,"aria-describedby",Xt.messageElement.id),Ie.removeAttribute(It)}_isElementDescribedByMessage(Ie,lt){const Xt=he(Ie,"aria-describedby"),an=this._messageRegistry.get(lt),li=an&&an.messageElement.id;return!!li&&-1!=Xt.indexOf(li)}_canBeDescribed(Ie,lt){if(!this._isElementNode(Ie))return!1;if(lt&&"object"==typeof lt)return!0;const Xt=null==lt?"":`${lt}`.trim(),an=Ie.getAttribute("aria-label");return!(!Xt||an&&an.trim()===Xt)}_isElementNode(Ie){return Ie.nodeType===this._document.ELEMENT_NODE}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(u.qQ),y.KVO(o.OD))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function nn(ot,qe){return"string"==typeof ot?`${qe||""}/${ot}`:ot}function Fn(ot,qe){ot.id||(ot.id=`${et}-${qe}-${Et++}`)}class yn{constructor(qe,Ie){this._letterKeyStream=new B.B,this._items=[],this._selectedItemIndex=-1,this._pressedLetters=[],this._selectedItem=new B.B,this.selectedItem=this._selectedItem;const lt="number"==typeof Ie?.debounceInterval?Ie.debounceInterval:200;Ie?.skipPredicate&&(this._skipPredicateFn=Ie.skipPredicate),this.setItems(qe),this._setupKeyHandler(lt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(qe){this._selectedItemIndex=qe}setItems(qe){this._items=qe}handleKey(qe){const Ie=qe.keyCode;qe.key&&1===qe.key.length?this._letterKeyStream.next(qe.key.toLocaleUpperCase()):(Ie>=F.A&&Ie<=F.Z||Ie>=F.f2&&Ie<=F.bn)&&this._letterKeyStream.next(String.fromCharCode(Ie))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(qe){this._letterKeyStream.pipe((0,U.M)(Ie=>this._pressedLetters.push(Ie)),(0,L.B)(qe),(0,fe.p)(()=>this._pressedLetters.length>0),(0,de.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Ie=>{for(let lt=1;ltlt.disabled,this.tabOut=new B.B,this.change=new B.B,qe instanceof y.rOR?this._itemChangesSubscription=qe.changes.subscribe(lt=>this._itemsChanged(lt.toArray())):(0,y.Hps)(qe)&&(this._effectRef=(0,y.QZP)(()=>this._itemsChanged(qe()),{injector:Ie}))}skipPredicate(qe){return this._skipPredicateFn=qe,this}withWrap(qe=!0){return this._wrap=qe,this}withVerticalOrientation(qe=!0){return this._vertical=qe,this}withHorizontalOrientation(qe){return this._horizontal=qe,this}withAllowedModifierKeys(qe){return this._allowedModifierKeys=qe,this}withTypeAhead(qe=200){this._typeaheadSubscription.unsubscribe();const Ie=this._getItemsArray();return this._typeahead=new yn(Ie,{debounceInterval:"number"==typeof qe?qe:void 0,skipPredicate:lt=>this._skipPredicateFn(lt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(lt=>{this.setActiveItem(lt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(qe=!0){return this._homeAndEnd=qe,this}withPageUpDown(qe=!0,Ie=10){return this._pageUpAndDown={enabled:qe,delta:Ie},this}setActiveItem(qe){const Ie=this._activeItem;this.updateActiveItem(qe),this._activeItem!==Ie&&this.change.next(this._activeItemIndex)}onKeydown(qe){const Ie=qe.keyCode,Xt=["altKey","ctrlKey","metaKey","shiftKey"].every(an=>!qe[an]||this._allowedModifierKeys.indexOf(an)>-1);switch(Ie){case F.wn:return void this.tabOut.next();case F.n6:if(this._vertical&&Xt){this.setNextItemActive();break}return;case F.i7:if(this._vertical&&Xt){this.setPreviousItemActive();break}return;case F.LE:if(this._horizontal&&Xt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case F.UQ:if(this._horizontal&&Xt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case F.yZ:if(this._homeAndEnd&&Xt){this.setFirstItemActive();break}return;case F.Kp:if(this._homeAndEnd&&Xt){this.setLastItemActive();break}return;case F.w_:if(this._pageUpAndDown.enabled&&Xt){const an=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(an>0?an:0,1);break}return;case F.dB:if(this._pageUpAndDown.enabled&&Xt){const an=this._activeItemIndex+this._pageUpAndDown.delta,li=this._getItemsArray().length;this._setActiveItemByIndex(an-1&&Ie!==this._activeItemIndex&&(this._activeItemIndex=Ie,this._typeahead?.setCurrentSelectedItemIndex(Ie))}}}class mt extends di{setActiveItem(qe){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(qe),this.activeItem&&this.activeItem.setActiveStyles()}}class Ee extends di{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(qe){return this._origin=qe,this}setActiveItem(qe){super.setActiveItem(qe),this.activeItem&&this.activeItem.focus(this._origin)}}let we=(()=>{class ot{constructor(Ie){this._platform=Ie}isDisabled(Ie){return Ie.hasAttribute("disabled")}isVisible(Ie){return function me(ot){return!!(ot.offsetWidth||ot.offsetHeight||"function"==typeof ot.getClientRects&&ot.getClientRects().length)}(Ie)&&"visible"===getComputedStyle(Ie).visibility}isTabbable(Ie){if(!this._platform.isBrowser)return!1;const lt=function Oe(ot){try{return ot.frameElement}catch{return null}}(function Zt(ot){return ot.ownerDocument&&ot.ownerDocument.defaultView||window}(Ie));if(lt&&(-1===wt(lt)||!this.isVisible(lt)))return!1;let Xt=Ie.nodeName.toLowerCase(),an=wt(Ie);return Ie.hasAttribute("contenteditable")?-1!==an:!("iframe"===Xt||"object"===Xt||this._platform.WEBKIT&&this._platform.IOS&&!function mn(ot){let qe=ot.nodeName.toLowerCase(),Ie="input"===qe&&ot.type;return"text"===Ie||"password"===Ie||"select"===qe||"textarea"===qe}(Ie))&&("audio"===Xt?!!Ie.hasAttribute("controls")&&-1!==an:"video"===Xt?-1!==an&&(null!==an||this._platform.FIREFOX||Ie.hasAttribute("controls")):Ie.tabIndex>=0)}isFocusable(Ie,lt){return function ni(ot){return!function Pe(ot){return function xe(ot){return"input"==ot.nodeName.toLowerCase()}(ot)&&"hidden"==ot.type}(ot)&&(function We(ot){let qe=ot.nodeName.toLowerCase();return"input"===qe||"select"===qe||"button"===qe||"textarea"===qe}(ot)||function xt(ot){return function ut(ot){return"a"==ot.nodeName.toLowerCase()}(ot)&&ot.hasAttribute("href")}(ot)||ot.hasAttribute("contenteditable")||Rt(ot))}(Ie)&&!this.isDisabled(Ie)&&(lt?.ignoreVisibility||this.isVisible(Ie))}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function Rt(ot){if(!ot.hasAttribute("tabindex")||void 0===ot.tabIndex)return!1;let qe=ot.getAttribute("tabindex");return!(!qe||isNaN(parseInt(qe,10)))}function wt(ot){if(!Rt(ot))return null;const qe=parseInt(ot.getAttribute("tabindex")||"",10);return isNaN(qe)?-1:qe}class _e{get enabled(){return this._enabled}set enabled(qe){this._enabled=qe,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}constructor(qe,Ie,lt,Xt,an=!1,li){this._element=qe,this._checker=Ie,this._ngZone=lt,this._document=Xt,this._injector=li,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,an||this.attachAnchors()}destroy(){const qe=this._startAnchor,Ie=this._endAnchor;qe&&(qe.removeEventListener("focus",this.startAnchorListener),qe.remove()),Ie&&(Ie.removeEventListener("focus",this.endAnchorListener),Ie.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusInitialElement(qe)))})}focusFirstTabbableElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusFirstTabbableElement(qe)))})}focusLastTabbableElementWhenReady(qe){return new Promise(Ie=>{this._executeOnStable(()=>Ie(this.focusLastTabbableElement(qe)))})}_getRegionBoundary(qe){const Ie=this._element.querySelectorAll(`[cdk-focus-region-${qe}], [cdkFocusRegion${qe}], [cdk-focus-${qe}]`);return"start"==qe?Ie.length?Ie[0]:this._getFirstTabbableElement(this._element):Ie.length?Ie[Ie.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(qe){const Ie=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ie){if(!this._checker.isFocusable(Ie)){const lt=this._getFirstTabbableElement(Ie);return lt?.focus(qe),!!lt}return Ie.focus(qe),!0}return this.focusFirstTabbableElement(qe)}focusFirstTabbableElement(qe){const Ie=this._getRegionBoundary("start");return Ie&&Ie.focus(qe),!!Ie}focusLastTabbableElement(qe){const Ie=this._getRegionBoundary("end");return Ie&&Ie.focus(qe),!!Ie}hasAttached(){return this._hasAttached}_getFirstTabbableElement(qe){if(this._checker.isFocusable(qe)&&this._checker.isTabbable(qe))return qe;const Ie=qe.children;for(let lt=0;lt=0;lt--){const Xt=Ie[lt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ie[lt]):null;if(Xt)return Xt}return null}_createAnchor(){const qe=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,qe),qe.classList.add("cdk-visually-hidden"),qe.classList.add("cdk-focus-trap-anchor"),qe.setAttribute("aria-hidden","true"),qe}_toggleAnchorTabIndex(qe,Ie){qe?Ie.setAttribute("tabindex","0"):Ie.removeAttribute("tabindex")}toggleAnchors(qe){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(qe,this._startAnchor),this._toggleAnchorTabIndex(qe,this._endAnchor))}_executeOnStable(qe){this._injector?(0,y.mal)(qe,{injector:this._injector}):setTimeout(qe)}}let Je=(()=>{class ot{constructor(Ie,lt,Xt){this._checker=Ie,this._ngZone=lt,this._injector=(0,y.WQX)(y.zZn),this._document=Xt}create(Ie,lt=!1){return new _e(Ie,this._checker,this._ngZone,this._document,lt,this._injector)}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(we),y.KVO(y.SKi),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();function $(ot){return 0===ot.buttons||0===ot.detail}function le(ot){const qe=ot.touches&&ot.touches[0]||ot.changedTouches&&ot.changedTouches[0];return!(!qe||-1!==qe.identifier||null!=qe.radiusX&&1!==qe.radiusX||null!=qe.radiusY&&1!==qe.radiusY)}const ue=new y.nKC("cdk-input-modality-detector-options"),nt={ignoreKeys:[F.A$,F.W3,F.eg,F.Ge,F.FX]},Ut=(0,o.BQ)({passive:!0,capture:!0});let jt=(()=>{class ot{get mostRecentModality(){return this._modality.value}constructor(Ie,lt,Xt,an){this._platform=Ie,this._mostRecentTarget=null,this._modality=new V.t(null),this._lastTouchMs=0,this._onKeydown=li=>{this._options?.ignoreKeys?.some(wr=>wr===li.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,o.Fb)(li))},this._onMousedown=li=>{Date.now()-this._lastTouchMs<650||(this._modality.next($(li)?"keyboard":"mouse"),this._mostRecentTarget=(0,o.Fb)(li))},this._onTouchstart=li=>{le(li)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,o.Fb)(li))},this._options={...nt,...an},this.modalityDetected=this._modality.pipe((0,Te.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,Me.F)()),Ie.isBrowser&<.runOutsideAngular(()=>{Xt.addEventListener("keydown",this._onKeydown,Ut),Xt.addEventListener("mousedown",this._onMousedown,Ut),Xt.addEventListener("touchstart",this._onTouchstart,Ut)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ut),document.removeEventListener("mousedown",this._onMousedown,Ut),document.removeEventListener("touchstart",this._onTouchstart,Ut))}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD),y.KVO(y.SKi),y.KVO(u.qQ),y.KVO(ue,8))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})();const On=new y.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Ln(){return null}}),wi=new y.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let en=0,Cn=(()=>{class ot{constructor(Ie,lt,Xt,an){this._ngZone=lt,this._defaultOptions=an,this._document=Xt,this._liveElement=Ie||this._createLiveElement()}announce(Ie,...lt){const Xt=this._defaultOptions;let an,li;return 1===lt.length&&"number"==typeof lt[0]?li=lt[0]:[an,li]=lt,this.clear(),clearTimeout(this._previousTimeout),an||(an=Xt&&Xt.politeness?Xt.politeness:"polite"),null==li&&Xt&&(li=Xt.duration),this._liveElement.setAttribute("aria-live",an),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(wr=>this._currentResolve=wr)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Ie,"number"==typeof li&&(this._previousTimeout=setTimeout(()=>this.clear(),li)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const Ie="cdk-live-announcer-element",lt=this._document.getElementsByClassName(Ie),Xt=this._document.createElement("div");for(let an=0;an .cdk-overlay-container [aria-modal="true"]');for(let Xt=0;Xt{class ot{constructor(Ie,lt,Xt,an,li){this._ngZone=Ie,this._platform=lt,this._inputModalityDetector=Xt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new B.B,this._rootNodeFocusAndBlurListener=wr=>{for(let Mi=(0,o.Fb)(wr);Mi;Mi=Mi.parentElement)"focus"===wr.type?this._onFocus(wr,Mi):this._onBlur(wr,Mi)},this._document=an,this._detectionMode=li?.detectionMode||Be.IMMEDIATE}monitor(Ie,lt=!1){const Xt=(0,bt.i8)(Ie);if(!this._platform.isBrowser||1!==Xt.nodeType)return(0,re.of)();const an=(0,o.KT)(Xt)||this._getDocument(),li=this._elementInfo.get(Xt);if(li)return lt&&(li.checkChildren=!0),li.subject;const wr={checkChildren:lt,subject:new B.B,rootNode:an};return this._elementInfo.set(Xt,wr),this._registerGlobalListeners(wr),wr.subject}stopMonitoring(Ie){const lt=(0,bt.i8)(Ie),Xt=this._elementInfo.get(lt);Xt&&(Xt.subject.complete(),this._setClasses(lt),this._elementInfo.delete(lt),this._removeGlobalListeners(Xt))}focusVia(Ie,lt,Xt){const an=(0,bt.i8)(Ie);an===this._getDocument().activeElement?this._getClosestElementsInfo(an).forEach(([wr,Dr])=>this._originChanged(wr,lt,Dr)):(this._setOrigin(lt),"function"==typeof an.focus&&an.focus(Xt))}ngOnDestroy(){this._elementInfo.forEach((Ie,lt)=>this.stopMonitoring(lt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ie){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ie)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ie&&this._isLastInteractionFromInputLabel(Ie)?"mouse":"program"}_shouldBeAttributedToTouch(Ie){return this._detectionMode===Be.EVENTUAL||!!Ie?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ie,lt){Ie.classList.toggle("cdk-focused",!!lt),Ie.classList.toggle("cdk-touch-focused","touch"===lt),Ie.classList.toggle("cdk-keyboard-focused","keyboard"===lt),Ie.classList.toggle("cdk-mouse-focused","mouse"===lt),Ie.classList.toggle("cdk-program-focused","program"===lt)}_setOrigin(Ie,lt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ie,this._originFromTouchInteraction="touch"===Ie&<,this._detectionMode===Be.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ie,lt){const Xt=this._elementInfo.get(lt),an=(0,o.Fb)(Ie);!Xt||!Xt.checkChildren&<!==an||this._originChanged(lt,this._getFocusOrigin(an),Xt)}_onBlur(Ie,lt){const Xt=this._elementInfo.get(lt);!Xt||Xt.checkChildren&&Ie.relatedTarget instanceof Node&<.contains(Ie.relatedTarget)||(this._setClasses(lt),this._emitOrigin(Xt,null))}_emitOrigin(Ie,lt){Ie.subject.observers.length&&this._ngZone.run(()=>Ie.subject.next(lt))}_registerGlobalListeners(Ie){if(!this._platform.isBrowser)return;const lt=Ie.rootNode,Xt=this._rootNodeFocusListenerCount.get(lt)||0;Xt||this._ngZone.runOutsideAngular(()=>{lt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),lt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ye)}),this._rootNodeFocusListenerCount.set(lt,Xt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,te.Q)(this._stopInputModalityDetector)).subscribe(an=>{this._setOrigin(an,!0)}))}_removeGlobalListeners(Ie){const lt=Ie.rootNode;if(this._rootNodeFocusListenerCount.has(lt)){const Xt=this._rootNodeFocusListenerCount.get(lt);Xt>1?this._rootNodeFocusListenerCount.set(lt,Xt-1):(lt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ye),lt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ye),this._rootNodeFocusListenerCount.delete(lt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ie,lt,Xt){this._setClasses(Ie,lt),this._emitOrigin(Xt,lt),this._lastFocusOrigin=lt}_getClosestElementsInfo(Ie){const lt=[];return this._elementInfo.forEach((Xt,an)=>{(an===Ie||Xt.checkChildren&&an.contains(Ie))&<.push([an,Xt])}),lt}_isLastInteractionFromInputLabel(Ie){const{_mostRecentTarget:lt,mostRecentModality:Xt}=this._inputModalityDetector;if("mouse"!==Xt||!lt||lt===Ie||"INPUT"!==Ie.nodeName&&"TEXTAREA"!==Ie.nodeName||Ie.disabled)return!1;const an=Ie.labels;if(an)for(let li=0;li{class ot{constructor(Ie,lt){this._platform=Ie,this._document=lt,this._breakpointSubscription=(0,y.WQX)(Ve.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return yi.NONE;const Ie=this._document.createElement("div");Ie.style.backgroundColor="rgb(1,2,3)",Ie.style.position="absolute",this._document.body.appendChild(Ie);const lt=this._document.defaultView||window,Xt=lt&<.getComputedStyle?lt.getComputedStyle(Ie):null,an=(Xt&&Xt.backgroundColor||"").replace(/ /g,"");switch(Ie.remove(),an){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return yi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return yi.BLACK_ON_WHITE}return yi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ie=this._document.body.classList;Ie.remove(At,Ti,sn),this._hasCheckedHighContrastMode=!0;const lt=this.getHighContrastMode();lt===yi.BLACK_ON_WHITE?Ie.add(At,Ti):lt===yi.WHITE_ON_BLACK&&Ie.add(At,sn)}}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(o.OD),y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:ot,factory:ot.\u0275fac,providedIn:"root"})}}return ot})(),Bt=(()=>{class ot{constructor(Ie){Ie._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(lt){return new(lt||ot)(y.KVO(st))}}static{this.\u0275mod=y.$C({type:ot})}static{this.\u0275inj=y.G2t({imports:[tt.w5]})}}return ot})()},8203:(tn,Re,v)=>{"use strict";v.d(Re,{dS:()=>re,jI:()=>F});var u=v(4438),y=v(177);const o=new u.nKC("cdk-dir-doc",{providedIn:"root",factory:function B(){return(0,u.WQX)(y.qQ)}}),W=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let re=(()=>{class U{constructor(fe){this.value="ltr",this.change=new u.bkB,fe&&(this.value=function ee(U){const L=U?.toLowerCase()||"";return"auto"===L&&typeof navigator<"u"&&navigator?.language?W.test(navigator.language)?"rtl":"ltr":"rtl"===L?"rtl":"ltr"}((fe.body?fe.body.dir:null)||(fe.documentElement?fe.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(de){return new(de||U)(u.KVO(o,8))}}static{this.\u0275prov=u.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}}return U})(),F=(()=>{class U{static{this.\u0275fac=function(de){return new(de||U)}}static{this.\u0275mod=u.$C({type:U})}static{this.\u0275inj=u.G2t({})}}return U})()},4085:(tn,Re,v)=>{"use strict";v.d(Re,{FG:()=>W,OE:()=>o,a1:()=>ee,he:()=>y,i8:()=>re});var u=v(4438);function y(F){return null!=F&&"false"!=`${F}`}function o(F,U=0){return function B(F){return!isNaN(parseFloat(F))&&!isNaN(Number(F))}(F)?Number(F):2===arguments.length?U:0}function W(F){return Array.isArray(F)?F:[F]}function ee(F){return null==F?"":"string"==typeof F?F:`${F}px`}function re(F){return F instanceof u.aKT?F.nativeElement:F}},5024:(tn,Re,v)=>{"use strict";v.d(Re,{CB:()=>fe,zP:()=>be}),v(4402),v(7673);var o=v(1413),B=v(4438);class fe{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(Me=!1,te,ve=!0,tt){this._multiple=Me,this._emitChanges=ve,this.compareWith=tt,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new o.B,te&&te.length&&(Me?te.forEach(bt=>this._markSelected(bt)):this._markSelected(te[0]),this._selectedToEmit.length=0)}select(...Me){this._verifyValueAssignment(Me),Me.forEach(ve=>this._markSelected(ve));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}deselect(...Me){this._verifyValueAssignment(Me),Me.forEach(ve=>this._unmarkSelected(ve));const te=this._hasQueuedChanges();return this._emitChangeEvent(),te}setSelection(...Me){this._verifyValueAssignment(Me);const te=this.selected,ve=new Set(Me);Me.forEach(bt=>this._markSelected(bt)),te.filter(bt=>!ve.has(this._getConcreteValue(bt,ve))).forEach(bt=>this._unmarkSelected(bt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}toggle(Me){return this.isSelected(Me)?this.deselect(Me):this.select(Me)}clear(Me=!0){this._unmarkAll();const te=this._hasQueuedChanges();return Me&&this._emitChangeEvent(),te}isSelected(Me){return this._selection.has(this._getConcreteValue(Me))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Me){this._multiple&&this.selected&&this._selected.sort(Me)}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(Me){Me=this._getConcreteValue(Me),this.isSelected(Me)||(this._multiple||this._unmarkAll(),this.isSelected(Me)||this._selection.add(Me),this._emitChanges&&this._selectedToEmit.push(Me))}_unmarkSelected(Me){Me=this._getConcreteValue(Me),this.isSelected(Me)&&(this._selection.delete(Me),this._emitChanges&&this._deselectedToEmit.push(Me))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Me=>this._unmarkSelected(Me))}_verifyValueAssignment(Me){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Me,te){if(this.compareWith){te=te??this._selection;for(let ve of te)if(this.compareWith(Me,ve))return ve;return Me}return Me}}let be=(()=>{class Te{constructor(){this._listeners=[]}notify(te,ve){for(let tt of this._listeners)tt(te,ve)}listen(te){return this._listeners.push(te),()=>{this._listeners=this._listeners.filter(ve=>te!==ve)}}ngOnDestroy(){this._listeners=[]}static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275prov=B.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})()},7336:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Se,A$:()=>V,FX:()=>ee,Fm:()=>W,Ge:()=>T,Kp:()=>Te,LE:()=>tt,UQ:()=>te,W3:()=>re,Z:()=>Q,_f:()=>L,bn:()=>yn,dB:()=>be,eg:()=>Ae,f2:()=>he,i7:()=>ve,n6:()=>bt,rp:()=>se,t6:()=>fe,w_:()=>de,wn:()=>o,yZ:()=>Me});const o=9,W=13,ee=16,re=17,V=18,L=27,fe=32,de=33,be=34,Te=35,Me=36,te=37,ve=38,tt=39,bt=40,he=48,yn=57,Se=65,Q=90,T=91,Ae=224;function se($e,...vt){return vt.length?vt.some(at=>$e[at]):$e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey}},9327:(tn,Re,v)=>{"use strict";v.d(Re,{QP:()=>bt,Rp:()=>rt});var u=v(4438),y=v(4085),o=v(1413),B=v(4572),W=v(8793),ee=v(1985),re=v(6697),V=v(5245),F=v(152),U=v(6354),L=v(9172),fe=v(6977),de=v(6860);const Te=new Set;let Me,te=(()=>{class Xe{constructor(he,Le){this._platform=he,this._nonce=Le,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):tt}matchMedia(he){return(this._platform.WEBKIT||this._platform.BLINK)&&function ve(Xe,oe){if(!Te.has(Xe))try{Me||(Me=document.createElement("style"),oe&&Me.setAttribute("nonce",oe),Me.setAttribute("type","text/css"),document.head.appendChild(Me)),Me.sheet&&(Me.sheet.insertRule(`@media ${Xe} {body{ }}`,0),Te.add(Xe))}catch(he){console.error(he)}}(he,this._nonce),this._matchMedia(he)}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(de.OD),u.KVO(u.BIS,8))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();function tt(Xe){return{matches:"all"===Xe||""===Xe,media:Xe,addListener:()=>{},removeListener:()=>{}}}let bt=(()=>{class Xe{constructor(he,Le){this._mediaMatcher=he,this._zone=Le,this._queries=new Map,this._destroySubject=new o.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(he){return Ve((0,y.FG)(he)).some(et=>this._registerQuery(et).mql.matches)}observe(he){const et=Ve((0,y.FG)(he)).map(Et=>this._registerQuery(Et).observable);let It=(0,B.z)(et);return It=(0,W.x)(It.pipe((0,re.s)(1)),It.pipe((0,V.i)(1),(0,F.B)(0))),It.pipe((0,U.T)(Et=>{const Tt={matches:!1,breakpoints:{}};return Et.forEach(({matches:nn,query:Fn})=>{Tt.matches=Tt.matches||nn,Tt.breakpoints[Fn]=nn}),Tt}))}_registerQuery(he){if(this._queries.has(he))return this._queries.get(he);const Le=this._mediaMatcher.matchMedia(he),It={observable:new ee.c(Et=>{const Tt=nn=>this._zone.run(()=>Et.next(nn));return Le.addListener(Tt),()=>{Le.removeListener(Tt)}}).pipe((0,L.Z)(Le),(0,U.T)(({matches:Et})=>({query:he,matches:Et})),(0,fe.Q)(this._destroySubject)),mql:Le};return this._queries.set(he,It),It}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(te),u.KVO(u.SKi))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();function Ve(Xe){return Xe.map(oe=>oe.split(",")).reduce((oe,he)=>oe.concat(he)).map(oe=>oe.trim())}const rt={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2318:(tn,Re,v)=>{"use strict";v.d(Re,{w5:()=>ee});var u=v(4438);let o=(()=>{class re{create(F){return typeof MutationObserver>"u"?null:new MutationObserver(F)}static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275prov=u.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}}return re})(),ee=(()=>{class re{static{this.\u0275fac=function(U){return new(U||re)}}static{this.\u0275mod=u.$C({type:re})}static{this.\u0275inj=u.G2t({providers:[o]})}}return re})()},7987:(tn,Re,v)=>{"use strict";v.d(Re,{$Q:()=>xe,Sf:()=>yn,Tv:()=>Xe,WB:()=>ut,hJ:()=>We,rR:()=>oe,yY:()=>di,z_:()=>mn});var u=v(5542),y=v(177),o=v(4438),B=v(4085),W=v(6860),ee=v(5964),re=v(6977),V=v(7048),F=v(8203),U=v(6939),L=v(1413),fe=v(8359),de=v(7786),be=v(7336);const Te=(0,W.CZ)();class Me{constructor(_e,Je){this._viewportRuler=_e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Je}attach(){}enable(){if(this._canBeEnabled()){const _e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=_e.style.left||"",this._previousHTMLStyles.top=_e.style.top||"",_e.style.left=(0,B.a1)(-this._previousScrollPosition.left),_e.style.top=(0,B.a1)(-this._previousScrollPosition.top),_e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const _e=this._document.documentElement,Ge=_e.style,dt=this._document.body.style,rn=Ge.scrollBehavior||"",Q=dt.scrollBehavior||"";this._isEnabled=!1,Ge.left=this._previousHTMLStyles.left,Ge.top=this._previousHTMLStyles.top,_e.classList.remove("cdk-global-scrollblock"),Te&&(Ge.scrollBehavior=dt.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Te&&(Ge.scrollBehavior=rn,dt.scrollBehavior=Q)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Je=this._document.body,Ge=this._viewportRuler.getViewportSize();return Je.scrollHeight>Ge.height||Je.scrollWidth>Ge.width}}class ve{constructor(_e,Je,Ge,dt){this._scrollDispatcher=_e,this._ngZone=Je,this._viewportRuler=Ge,this._config=dt,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(_e){this._overlayRef=_e}enable(){if(this._scrollSubscription)return;const _e=this._scrollDispatcher.scrolled(0).pipe((0,ee.p)(Je=>!Je||!this._overlayRef.overlayElement.contains(Je.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=_e.subscribe(()=>{const Je=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Je-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}}class tt{enable(){}disable(){}attach(){}}function bt(Zt,_e){return _e.some(Je=>Zt.bottomJe.bottom||Zt.rightJe.right)}function Ve(Zt,_e){return _e.some(Je=>Zt.topJe.bottom||Zt.leftJe.right)}class rt{constructor(_e,Je,Ge,dt){this._scrollDispatcher=_e,this._viewportRuler=Je,this._ngZone=Ge,this._config=dt,this._scrollSubscription=null}attach(_e){this._overlayRef=_e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Je=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ge,height:dt}=this._viewportRuler.getViewportSize();bt(Je,[{width:Ge,height:dt,bottom:dt,right:Ge,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Xe=(()=>{class Zt{constructor(Je,Ge,dt,rn){this._scrollDispatcher=Je,this._viewportRuler=Ge,this._ngZone=dt,this.noop=()=>new tt,this.close=Q=>new ve(this._scrollDispatcher,this._ngZone,this._viewportRuler,Q),this.block=()=>new Me(this._viewportRuler,this._document),this.reposition=Q=>new rt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Q),this._document=rn}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(u.R),o.KVO(u.Xj),o.KVO(o.SKi),o.KVO(y.qQ))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();class oe{constructor(_e){if(this.scrollStrategy=new tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,_e){const Je=Object.keys(_e);for(const Ge of Je)void 0!==_e[Ge]&&(this[Ge]=_e[Ge])}}}class et{constructor(_e,Je){this.connectionPair=_e,this.scrollableViewProperties=Je}}let Tt=(()=>{class Zt{constructor(Je){this._attachedOverlays=[],this._document=Je}ngOnDestroy(){this.detach()}add(Je){this.remove(Je),this._attachedOverlays.push(Je)}remove(Je){const Ge=this._attachedOverlays.indexOf(Je);Ge>-1&&this._attachedOverlays.splice(Ge,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),nn=(()=>{class Zt extends Tt{constructor(Je,Ge){super(Je),this._ngZone=Ge,this._keydownListener=dt=>{const rn=this._attachedOverlays;for(let Q=rn.length-1;Q>-1;Q--)if(rn[Q]._keydownEvents.observers.length>0){const T=rn[Q]._keydownEvents;this._ngZone?this._ngZone.run(()=>T.next(dt)):T.next(dt);break}}}add(Je){super.add(Je),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)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ),o.KVO(o.SKi,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),Fn=(()=>{class Zt extends Tt{constructor(Je,Ge,dt){super(Je),this._platform=Ge,this._ngZone=dt,this._cursorStyleIsSet=!1,this._pointerDownListener=rn=>{this._pointerDownEventTarget=(0,W.Fb)(rn)},this._clickListener=rn=>{const Q=(0,W.Fb)(rn),T="click"===rn.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Q;this._pointerDownEventTarget=null;const N=this._attachedOverlays.slice();for(let $=N.length-1;$>-1;$--){const le=N[$];if(le._outsidePointerEvents.observers.length<1||!le.hasAttached())continue;if($n(le.overlayElement,Q)||$n(le.overlayElement,T))break;const ue=le._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ue.next(rn)):ue.next(rn)}}}add(Je){if(super.add(Je),!this._isAttached){const Ge=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ge)):this._addEventListeners(Ge),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ge.style.cursor,Ge.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Je=this._document.body;Je.removeEventListener("pointerdown",this._pointerDownListener,!0),Je.removeEventListener("click",this._clickListener,!0),Je.removeEventListener("auxclick",this._clickListener,!0),Je.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Je.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Je){Je.addEventListener("pointerdown",this._pointerDownListener,!0),Je.addEventListener("click",this._clickListener,!0),Je.addEventListener("auxclick",this._clickListener,!0),Je.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(y.qQ),o.KVO(W.OD),o.KVO(o.SKi,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();function $n(Zt,_e){const Je=typeof ShadowRoot<"u"&&ShadowRoot;let Ge=_e;for(;Ge;){if(Ge===Zt)return!0;Ge=Je&&Ge instanceof ShadowRoot?Ge.host:Ge.parentNode}return!1}let yn=(()=>{class Zt{constructor(Je,Ge){this._platform=Ge,this._document=Je}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Je="cdk-overlay-container";if(this._platform.isBrowser||(0,W.v8)()){const dt=this._document.querySelectorAll(`.${Je}[platform="server"], .${Je}[platform="test"]`);for(let rn=0;rnthis._backdropClick.next(nt),this._backdropTransitionendHandler=nt=>{this._disposeBackdrop(nt.target)},this._keydownEvents=new L.B,this._outsidePointerEvents=new L.B,this._renders=new L.B,dt.scrollStrategy&&(this._scrollStrategy=dt.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=dt.positionStrategy,this._afterRenderRef=(0,o.O8t)(()=>(0,o.Tzd)(()=>{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);const Je=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=(0,o.mal)(()=>{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),"function"==typeof Je?.onDestroy&&Je.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Je}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const _e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),_e}dispose(){const _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={...this._config,..._e},this._updateElementSize()}setDirection(_e){this._config={...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(){const _e=this._config.direction;return _e?"string"==typeof _e?_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;const _e=this._pane.style;_e.width=(0,B.a1)(this._config.width),_e.height=(0,B.a1)(this._config.height),_e.minWidth=(0,B.a1)(this._config.minWidth),_e.minHeight=(0,B.a1)(this._config.minHeight),_e.maxWidth=(0,B.a1)(this._config.maxWidth),_e.maxHeight=(0,B.a1)(this._config.maxHeight)}_togglePointerEvents(_e){this._pane.style.pointerEvents=_e?"":"none"}_attachBackdrop(){const _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(){const _e=this._backdropElement;if(_e){if(this._animationsDisabled)return void this._disposeBackdrop(_e);_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,Je,Ge){const dt=(0,B.FG)(Je||[]).filter(rn=>!!rn);dt.length&&(Ge?_e.classList.add(...dt):_e.classList.remove(...dt))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const _e=this._renders.pipe((0,re.Q)((0,de.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),_e.unsubscribe())})})}_disposeScrollStrategy(){const _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)}}const mt="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class J{get positions(){return this._preferredPositions}constructor(_e,Je,Ge,dt,rn){this._viewportRuler=Je,this._document=Ge,this._platform=dt,this._overlayContainer=rn,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 L.B,this._resizeSubscription=fe.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(_e)}attach(_e){this._validatePositions(),_e.hostElement.classList.add(mt),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)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const _e=this._originRect,Je=this._overlayRect,Ge=this._viewportRect,dt=this._containerRect,rn=[];let Q;for(let T of this._preferredPositions){let N=this._getOriginPoint(_e,dt,T),$=this._getOverlayPoint(N,Je,T),le=this._getOverlayFit($,Je,Ge,T);if(le.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(T,N);this._canFitWithFlexibleDimensions(le,$,Ge)?rn.push({position:T,origin:N,overlayRect:Je,boundingBoxRect:this._calculateBoundingBoxRect(N,T)}):(!Q||Q.overlayFit.visibleAreaN&&(N=le,T=$)}return this._isPushed=!1,void this._applyPosition(T.position,T.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Q.position,Q.originPoint);this._applyPosition(Q.position,Q.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Se(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const _e=this._lastPosition;if(_e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Je=this._getOriginPoint(this._originRect,this._containerRect,_e);this._applyPosition(_e,Je)}else this.apply()}withScrollableContainers(_e){return this._scrollables=_e,this}withPositions(_e){return this._preferredPositions=_e,-1===_e.indexOf(this._lastPosition)&&(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,Je,Ge){let dt,rn;if("center"==Ge.originX)dt=_e.left+_e.width/2;else{const Q=this._isRtl()?_e.right:_e.left,T=this._isRtl()?_e.left:_e.right;dt="start"==Ge.originX?Q:T}return Je.left<0&&(dt-=Je.left),rn="center"==Ge.originY?_e.top+_e.height/2:"top"==Ge.originY?_e.top:_e.bottom,Je.top<0&&(rn-=Je.top),{x:dt,y:rn}}_getOverlayPoint(_e,Je,Ge){let dt,rn;return dt="center"==Ge.overlayX?-Je.width/2:"start"===Ge.overlayX?this._isRtl()?-Je.width:0:this._isRtl()?0:-Je.width,rn="center"==Ge.overlayY?-Je.height/2:"top"==Ge.overlayY?0:-Je.height,{x:_e.x+dt,y:_e.y+rn}}_getOverlayFit(_e,Je,Ge,dt){const rn=Ne(Je);let{x:Q,y:T}=_e,N=this._getOffset(dt,"x"),$=this._getOffset(dt,"y");N&&(Q+=N),$&&(T+=$);let nt=0-T,zt=T+rn.height-Ge.height,Ut=this._subtractOverflows(rn.width,0-Q,Q+rn.width-Ge.width),jt=this._subtractOverflows(rn.height,nt,zt),On=Ut*jt;return{visibleArea:On,isCompletelyWithinViewport:rn.width*rn.height===On,fitsInViewportVertically:jt===rn.height,fitsInViewportHorizontally:Ut==rn.width}}_canFitWithFlexibleDimensions(_e,Je,Ge){if(this._hasFlexibleDimensions){const dt=Ge.bottom-Je.y,rn=Ge.right-Je.x,Q=gt(this._overlayRef.getConfig().minHeight),T=gt(this._overlayRef.getConfig().minWidth);return(_e.fitsInViewportVertically||null!=Q&&Q<=dt)&&(_e.fitsInViewportHorizontally||null!=T&&T<=rn)}return!1}_pushOverlayOnScreen(_e,Je,Ge){if(this._previousPushAmount&&this._positionLocked)return{x:_e.x+this._previousPushAmount.x,y:_e.y+this._previousPushAmount.y};const dt=Ne(Je),rn=this._viewportRect,Q=Math.max(_e.x+dt.width-rn.width,0),T=Math.max(_e.y+dt.height-rn.height,0),N=Math.max(rn.top-Ge.top-_e.y,0),$=Math.max(rn.left-Ge.left-_e.x,0);let le=0,ue=0;return le=dt.width<=rn.width?$||-Q:_e.xUt&&!this._isInitialRender&&!this._growAfterOpen&&(Q=_e.y-Ut/2)}if("end"===Je.overlayX&&!dt||"start"===Je.overlayX&&dt)nt=Ge.width-_e.x+2*this._viewportMargin,le=_e.x-this._viewportMargin;else if("start"===Je.overlayX&&!dt||"end"===Je.overlayX&&dt)ue=_e.x,le=Ge.right-_e.x;else{const zt=Math.min(Ge.right-_e.x+Ge.left,_e.x),Ut=this._lastBoundingBoxSize.width;le=2*zt,ue=_e.x-zt,le>Ut&&!this._isInitialRender&&!this._growAfterOpen&&(ue=_e.x-Ut/2)}return{top:Q,left:ue,bottom:T,right:nt,width:le,height:rn}}_setBoundingBoxStyles(_e,Je){const Ge=this._calculateBoundingBoxRect(_e,Je);!this._isInitialRender&&!this._growAfterOpen&&(Ge.height=Math.min(Ge.height,this._lastBoundingBoxSize.height),Ge.width=Math.min(Ge.width,this._lastBoundingBoxSize.width));const dt={};if(this._hasExactPosition())dt.top=dt.left="0",dt.bottom=dt.right=dt.maxHeight=dt.maxWidth="",dt.width=dt.height="100%";else{const rn=this._overlayRef.getConfig().maxHeight,Q=this._overlayRef.getConfig().maxWidth;dt.height=(0,B.a1)(Ge.height),dt.top=(0,B.a1)(Ge.top),dt.bottom=(0,B.a1)(Ge.bottom),dt.width=(0,B.a1)(Ge.width),dt.left=(0,B.a1)(Ge.left),dt.right=(0,B.a1)(Ge.right),dt.alignItems="center"===Je.overlayX?"center":"end"===Je.overlayX?"flex-end":"flex-start",dt.justifyContent="center"===Je.overlayY?"center":"bottom"===Je.overlayY?"flex-end":"flex-start",rn&&(dt.maxHeight=(0,B.a1)(rn)),Q&&(dt.maxWidth=(0,B.a1)(Q))}this._lastBoundingBoxSize=Ge,Se(this._boundingBox.style,dt)}_resetBoundingBoxStyles(){Se(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Se(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(_e,Je){const Ge={},dt=this._hasExactPosition(),rn=this._hasFlexibleDimensions,Q=this._overlayRef.getConfig();if(dt){const le=this._viewportRuler.getViewportScrollPosition();Se(Ge,this._getExactOverlayY(Je,_e,le)),Se(Ge,this._getExactOverlayX(Je,_e,le))}else Ge.position="static";let T="",N=this._getOffset(Je,"x"),$=this._getOffset(Je,"y");N&&(T+=`translateX(${N}px) `),$&&(T+=`translateY(${$}px)`),Ge.transform=T.trim(),Q.maxHeight&&(dt?Ge.maxHeight=(0,B.a1)(Q.maxHeight):rn&&(Ge.maxHeight="")),Q.maxWidth&&(dt?Ge.maxWidth=(0,B.a1)(Q.maxWidth):rn&&(Ge.maxWidth="")),Se(this._pane.style,Ge)}_getExactOverlayY(_e,Je,Ge){let dt={top:"",bottom:""},rn=this._getOverlayPoint(Je,this._overlayRect,_e);return this._isPushed&&(rn=this._pushOverlayOnScreen(rn,this._overlayRect,Ge)),"bottom"===_e.overlayY?dt.bottom=this._document.documentElement.clientHeight-(rn.y+this._overlayRect.height)+"px":dt.top=(0,B.a1)(rn.y),dt}_getExactOverlayX(_e,Je,Ge){let Q,dt={left:"",right:""},rn=this._getOverlayPoint(Je,this._overlayRect,_e);return this._isPushed&&(rn=this._pushOverlayOnScreen(rn,this._overlayRect,Ge)),Q=this._isRtl()?"end"===_e.overlayX?"left":"right":"end"===_e.overlayX?"right":"left","right"===Q?dt.right=this._document.documentElement.clientWidth-(rn.x+this._overlayRect.width)+"px":dt.left=(0,B.a1)(rn.x),dt}_getScrollVisibility(){const _e=this._getOriginRect(),Je=this._pane.getBoundingClientRect(),Ge=this._scrollables.map(dt=>dt.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ve(_e,Ge),isOriginOutsideView:bt(_e,Ge),isOverlayClipped:Ve(Je,Ge),isOverlayOutsideView:bt(Je,Ge)}}_subtractOverflows(_e,...Je){return Je.reduce((Ge,dt)=>Ge-Math.max(dt,0),_e)}_getNarrowedViewportRect(){const _e=this._document.documentElement.clientWidth,Je=this._document.documentElement.clientHeight,Ge=this._viewportRuler.getViewportScrollPosition();return{top:Ge.top+this._viewportMargin,left:Ge.left+this._viewportMargin,right:Ge.left+_e-this._viewportMargin,bottom:Ge.top+Je-this._viewportMargin,width:_e-2*this._viewportMargin,height:Je-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(_e,Je){return"x"===Je?null==_e.offsetX?this._offsetX:_e.offsetX:null==_e.offsetY?this._offsetY:_e.offsetY}_validatePositions(){}_addPanelClasses(_e){this._pane&&(0,B.FG)(_e).forEach(Je=>{""!==Je&&-1===this._appliedPanelClasses.indexOf(Je)&&(this._appliedPanelClasses.push(Je),this._pane.classList.add(Je))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(_e=>{this._pane.classList.remove(_e)}),this._appliedPanelClasses=[])}_getOriginRect(){const _e=this._origin;if(_e instanceof o.aKT)return _e.nativeElement.getBoundingClientRect();if(_e instanceof Element)return _e.getBoundingClientRect();const Je=_e.width||0,Ge=_e.height||0;return{top:_e.y,bottom:_e.y+Ge,left:_e.x,right:_e.x+Je,height:Ge,width:Je}}}function Se(Zt,_e){for(let Je in _e)_e.hasOwnProperty(Je)&&(Zt[Je]=_e[Je]);return Zt}function gt(Zt){if("number"!=typeof Zt&&null!=Zt){const[_e,Je]=Zt.split(Ee);return Je&&"px"!==Je?null:parseFloat(_e)}return Zt||null}function Ne(Zt){return{top:Math.floor(Zt.top),right:Math.floor(Zt.right),bottom:Math.floor(Zt.bottom),left:Math.floor(Zt.left),width:Math.floor(Zt.width),height:Math.floor(Zt.height)}}const Mt="cdk-global-overlay-wrapper";class we{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(_e){const Je=_e.getConfig();this._overlayRef=_e,this._width&&!Je.width&&_e.updateSize({width:this._width}),this._height&&!Je.height&&_e.updateSize({height:this._height}),_e.hostElement.classList.add(Mt),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;const _e=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement.style,Ge=this._overlayRef.getConfig(),{width:dt,height:rn,maxWidth:Q,maxHeight:T}=Ge,N=!("100%"!==dt&&"100vw"!==dt||Q&&"100%"!==Q&&"100vw"!==Q),$=!("100%"!==rn&&"100vh"!==rn||T&&"100%"!==T&&"100vh"!==T),le=this._xPosition,ue=this._xOffset,nt="rtl"===this._overlayRef.getConfig().direction;let zt="",Ut="",jt="";N?jt="flex-start":"center"===le?(jt="center",nt?Ut=ue:zt=ue):nt?"left"===le||"end"===le?(jt="flex-end",zt=ue):("right"===le||"start"===le)&&(jt="flex-start",Ut=ue):"left"===le||"start"===le?(jt="flex-start",zt=ue):("right"===le||"end"===le)&&(jt="flex-end",Ut=ue),_e.position=this._cssPosition,_e.marginLeft=N?"0":zt,_e.marginTop=$?"0":this._topOffset,_e.marginBottom=this._bottomOffset,_e.marginRight=N?"0":Ut,Je.justifyContent=jt,Je.alignItems=$?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const _e=this._overlayRef.overlayElement.style,Je=this._overlayRef.hostElement,Ge=Je.style;Je.classList.remove(Mt),Ge.justifyContent=Ge.alignItems=_e.marginTop=_e.marginBottom=_e.marginLeft=_e.marginRight=_e.position="",this._overlayRef=null,this._isDisposed=!0}}let Oe=(()=>{class Zt{constructor(Je,Ge,dt,rn){this._viewportRuler=Je,this._document=Ge,this._platform=dt,this._overlayContainer=rn}global(){return new we}flexibleConnectedTo(Je){return new J(Je,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(u.Xj),o.KVO(y.qQ),o.KVO(W.OD),o.KVO(yn))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})(),me=0,We=(()=>{class Zt{constructor(Je,Ge,dt,rn,Q,T,N,$,le,ue,nt,zt){this.scrollStrategies=Je,this._overlayContainer=Ge,this._componentFactoryResolver=dt,this._positionBuilder=rn,this._keyboardDispatcher=Q,this._injector=T,this._ngZone=N,this._document=$,this._directionality=le,this._location=ue,this._outsideClickDispatcher=nt,this._animationsModuleType=zt}create(Je){const Ge=this._createHostElement(),dt=this._createPaneElement(Ge),rn=this._createPortalOutlet(dt),Q=new oe(Je);return Q.direction=Q.direction||this._directionality.value,new di(rn,Ge,dt,Q,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(o.uvJ))}position(){return this._positionBuilder}_createPaneElement(Je){const Ge=this._document.createElement("div");return Ge.id="cdk-overlay-"+me++,Ge.classList.add("cdk-overlay-pane"),Je.appendChild(Ge),Ge}_createHostElement(){const Je=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Je),Je}_createPortalOutlet(Je){return this._appRef||(this._appRef=this._injector.get(o.o8S)),new U.aI(Je,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.KVO(Xe),o.KVO(yn),o.KVO(o.OM3),o.KVO(Oe),o.KVO(nn),o.KVO(o.zZn),o.KVO(o.SKi),o.KVO(y.qQ),o.KVO(F.dS),o.KVO(y.aZ),o.KVO(Fn),o.KVO(o.bc$,8))}}static{this.\u0275prov=o.jDH({token:Zt,factory:Zt.\u0275fac,providedIn:"root"})}}return Zt})();const Pe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],xt=new o.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Zt=(0,o.WQX)(We);return()=>Zt.scrollStrategies.reposition()}});let xe=(()=>{class Zt{constructor(Je){this.elementRef=Je}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.rXU(o.aKT))}}static{this.\u0275dir=o.FsC({type:Zt,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}}return Zt})(),ut=(()=>{class Zt{get offsetX(){return this._offsetX}set offsetX(Je){this._offsetX=Je,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Je){this._offsetY=Je,this._position&&this._updatePositionStrategy(this._position)}get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Je){this._disposeOnNavigation=Je}constructor(Je,Ge,dt,rn,Q){this._overlay=Je,this._dir=Q,this._backdropSubscription=fe.yU.EMPTY,this._attachSubscription=fe.yU.EMPTY,this._detachSubscription=fe.yU.EMPTY,this._positionSubscription=fe.yU.EMPTY,this._disposeOnNavigation=!1,this._ngZone=(0,o.WQX)(o.SKi),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 o.bkB,this.positionChange=new o.bkB,this.attach=new o.bkB,this.detach=new o.bkB,this.overlayKeydown=new o.bkB,this.overlayOutsideClick=new o.bkB,this._templatePortal=new U.VA(Ge,dt),this._scrollStrategyFactory=rn,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(Je){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Je.origin&&this.open&&this._position.apply()),Je.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Pe);const Je=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=Je.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Je.detachments().subscribe(()=>this.detach.emit()),Je.keydownEvents().subscribe(Ge=>{this.overlayKeydown.next(Ge),Ge.keyCode===be._f&&!this.disableClose&&!(0,be.rp)(Ge)&&(Ge.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ge=>{const dt=this._getOriginElement(),rn=(0,W.Fb)(Ge);(!dt||dt!==rn&&!dt.contains(rn))&&this.overlayOutsideClick.next(Ge)})}_buildConfig(){const Je=this._position=this.positionStrategy||this._createPositionStrategy(),Ge=new oe({direction:this._dir,positionStrategy:Je,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Ge.width=this.width),(this.height||0===this.height)&&(Ge.height=this.height),(this.minWidth||0===this.minWidth)&&(Ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ge.minHeight=this.minHeight),this.backdropClass&&(Ge.backdropClass=this.backdropClass),this.panelClass&&(Ge.panelClass=this.panelClass),Ge}_updatePositionStrategy(Je){const Ge=this.positions.map(dt=>({originX:dt.originX,originY:dt.originY,overlayX:dt.overlayX,overlayY:dt.overlayY,offsetX:dt.offsetX||this.offsetX,offsetY:dt.offsetY||this.offsetY,panelClass:dt.panelClass||void 0}));return Je.setOrigin(this._getOrigin()).withPositions(Ge).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Je=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(Je),Je}_getOrigin(){return this.origin instanceof xe?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof xe?this.origin.elementRef.nativeElement:this.origin instanceof o.aKT?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(Je=>{this.backdropClick.emit(Je)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,V.v)(()=>this.positionChange.observers.length>0)).subscribe(Je=>{this._ngZone.run(()=>this.positionChange.emit(Je)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static{this.\u0275fac=function(Ge){return new(Ge||Zt)(o.rXU(We),o.rXU(o.C4Q),o.rXU(o.c1b),o.rXU(xt),o.rXU(F.dS,8))}}static{this.\u0275dir=o.FsC({type:Zt,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",o.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",o.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",o.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",o.L39],push:[2,"cdkConnectedOverlayPush","push",o.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",o.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],standalone:!0,features:[o.GFd,o.OA$]})}}return Zt})();const wt={provide:xt,deps:[We],useFactory:function Rt(Zt){return()=>Zt.scrollStrategies.reposition()}};let mn=(()=>{class Zt{static{this.\u0275fac=function(Ge){return new(Ge||Zt)}}static{this.\u0275mod=o.$C({type:Zt})}static{this.\u0275inj=o.G2t({providers:[We,wt],imports:[F.jI,U.jc,u.E9,u.E9]})}}return Zt})()},6860:(tn,Re,v)=>{"use strict";v.d(Re,{BD:()=>Me,BQ:()=>L,CZ:()=>Te,Fb:()=>Ve,KT:()=>tt,MU:()=>V,OD:()=>B,r5:()=>fe,v8:()=>rt,vc:()=>bt});var u=v(4438),y=v(177);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let ee,B=(()=>{class Xe{constructor(he){this._platformId=he,this.isBrowser=this._platformId?(0,y.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.KVO(u.Agw))}}static{this.\u0275prov=u.jDH({token:Xe,factory:Xe.\u0275fac,providedIn:"root"})}}return Xe})();const re=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function V(){if(ee)return ee;if("object"!=typeof document||!document)return ee=new Set(re),ee;let Xe=document.createElement("input");return ee=new Set(re.filter(oe=>(Xe.setAttribute("type",oe),Xe.type===oe))),ee}let F;function L(Xe){return function U(){if(null==F&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>F=!0}))}finally{F=F||!1}return F}()?Xe:!!Xe.capture}var fe=function(Xe){return Xe[Xe.NORMAL=0]="NORMAL",Xe[Xe.NEGATED=1]="NEGATED",Xe[Xe.INVERTED=2]="INVERTED",Xe}(fe||{});let de,be,te;function Te(){if(null==be){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return be=!1,be;if("scrollBehavior"in document.documentElement.style)be=!0;else{const Xe=Element.prototype.scrollTo;be=!!Xe&&!/\{\s*\[native code\]\s*\}/.test(Xe.toString())}}return be}function Me(){if("object"!=typeof document||!document)return fe.NORMAL;if(null==de){const Xe=document.createElement("div"),oe=Xe.style;Xe.dir="rtl",oe.width="1px",oe.overflow="auto",oe.visibility="hidden",oe.pointerEvents="none",oe.position="absolute";const he=document.createElement("div"),Le=he.style;Le.width="2px",Le.height="1px",Xe.appendChild(he),document.body.appendChild(Xe),de=fe.NORMAL,0===Xe.scrollLeft&&(Xe.scrollLeft=1,de=0===Xe.scrollLeft?fe.NEGATED:fe.INVERTED),Xe.remove()}return de}function tt(Xe){if(function ve(){if(null==te){const Xe=typeof document<"u"?document.head:null;te=!(!Xe||!Xe.createShadowRoot&&!Xe.attachShadow)}return te}()){const oe=Xe.getRootNode?Xe.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&oe instanceof ShadowRoot)return oe}return null}function bt(){let Xe=typeof document<"u"&&document?document.activeElement:null;for(;Xe&&Xe.shadowRoot;){const oe=Xe.shadowRoot.activeElement;if(oe===Xe)break;Xe=oe}return Xe}function Ve(Xe){return Xe.composedPath?Xe.composedPath()[0]:Xe.target}function rt(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(tn,Re,v)=>{"use strict";v.d(Re,{A8:()=>U,I3:()=>tt,VA:()=>L,aI:()=>Te,jc:()=>Ve,lb:()=>de});var u=v(4438),y=v(177);class F{attach(oe){return this._attachedHost=oe,oe.attach(this)}detach(){let oe=this._attachedHost;null!=oe&&(this._attachedHost=null,oe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(oe){this._attachedHost=oe}}class U extends F{constructor(oe,he,Le,et,It){super(),this.component=oe,this.viewContainerRef=he,this.injector=Le,this.componentFactoryResolver=et,this.projectableNodes=It}}class L extends F{constructor(oe,he,Le,et){super(),this.templateRef=oe,this.viewContainerRef=he,this.context=Le,this.injector=et}get origin(){return this.templateRef.elementRef}attach(oe,he=this.context){return this.context=he,super.attach(oe)}detach(){return this.context=void 0,super.detach()}}class fe extends F{constructor(oe){super(),this.element=oe instanceof u.aKT?oe.nativeElement:oe}}class de{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(oe){return oe instanceof U?(this._attachedPortal=oe,this.attachComponentPortal(oe)):oe instanceof L?(this._attachedPortal=oe,this.attachTemplatePortal(oe)):this.attachDomPortal&&oe instanceof fe?(this._attachedPortal=oe,this.attachDomPortal(oe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(oe){this._disposeFn=oe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Te extends de{constructor(oe,he,Le,et,It){super(),this.outletElement=oe,this._componentFactoryResolver=he,this._appRef=Le,this._defaultInjector=et,this.attachDomPortal=Et=>{const Tt=Et.element,nn=this._document.createComment("dom-portal");Tt.parentNode.insertBefore(nn,Tt),this.outletElement.appendChild(Tt),this._attachedPortal=Et,super.setDisposeFn(()=>{nn.parentNode&&nn.parentNode.replaceChild(Tt,nn)})},this._document=It}attachComponentPortal(oe){const Le=(oe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(oe.component);let et;return oe.viewContainerRef?(et=oe.viewContainerRef.createComponent(Le,oe.viewContainerRef.length,oe.injector||oe.viewContainerRef.injector,oe.projectableNodes||void 0),this.setDisposeFn(()=>et.destroy())):(et=Le.create(oe.injector||this._defaultInjector||u.zZn.NULL),this._appRef.attachView(et.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(et.hostView),et.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(et)),this._attachedPortal=oe,et}attachTemplatePortal(oe){let he=oe.viewContainerRef,Le=he.createEmbeddedView(oe.templateRef,oe.context,{injector:oe.injector});return Le.rootNodes.forEach(et=>this.outletElement.appendChild(et)),Le.detectChanges(),this.setDisposeFn(()=>{let et=he.indexOf(Le);-1!==et&&he.remove(et)}),this._attachedPortal=oe,Le}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(oe){return oe.hostView.rootNodes[0]}}let tt=(()=>{class Xe extends de{constructor(he,Le,et){super(),this._componentFactoryResolver=he,this._viewContainerRef=Le,this._isInitialized=!1,this.attached=new u.bkB,this.attachDomPortal=It=>{const Et=It.element,Tt=this._document.createComment("dom-portal");It.setAttachedHost(this),Et.parentNode.insertBefore(Tt,Et),this._getRootNode().appendChild(Et),this._attachedPortal=It,super.setDisposeFn(()=>{Tt.parentNode&&Tt.parentNode.replaceChild(Et,Tt)})},this._document=et}get portal(){return this._attachedPortal}set portal(he){this.hasAttached()&&!he&&!this._isInitialized||(this.hasAttached()&&super.detach(),he&&super.attach(he),this._attachedPortal=he||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(he){he.setAttachedHost(this);const Le=null!=he.viewContainerRef?he.viewContainerRef:this._viewContainerRef,It=(he.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(he.component),Et=Le.createComponent(It,Le.length,he.injector||Le.injector,he.projectableNodes||void 0);return Le!==this._viewContainerRef&&this._getRootNode().appendChild(Et.hostView.rootNodes[0]),super.setDisposeFn(()=>Et.destroy()),this._attachedPortal=he,this._attachedRef=Et,this.attached.emit(Et),Et}attachTemplatePortal(he){he.setAttachedHost(this);const Le=this._viewContainerRef.createEmbeddedView(he.templateRef,he.context,{injector:he.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=he,this._attachedRef=Le,this.attached.emit(Le),Le}_getRootNode(){const he=this._viewContainerRef.element.nativeElement;return he.nodeType===he.ELEMENT_NODE?he:he.parentNode}static{this.\u0275fac=function(Le){return new(Le||Xe)(u.rXU(u.OM3),u.rXU(u.c1b),u.rXU(y.qQ))}}static{this.\u0275dir=u.FsC({type:Xe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[u.Vt3]})}}return Xe})(),Ve=(()=>{class Xe{static{this.\u0275fac=function(Le){return new(Le||Xe)}}static{this.\u0275mod=u.$C({type:Xe})}static{this.\u0275inj=u.G2t({})}}return Xe})()},5542:(tn,Re,v)=>{"use strict";v.d(Re,{uv:()=>Tt,Gj:()=>Ze,R:()=>Et,E9:()=>je,Xj:()=>Fn});var u=v(4085),y=v(4438),o=v(1413),B=v(7673),W=v(1985),ee=v(3726),re=v(6780),V=v(8359);const F={schedule(Lt){let Mt=requestAnimationFrame,we=cancelAnimationFrame;const{delegate:Oe}=F;Oe&&(Mt=Oe.requestAnimationFrame,we=Oe.cancelAnimationFrame);const me=Mt(We=>{we=void 0,Lt(We)});return new V.yU(()=>we?.(me))},requestAnimationFrame(...Lt){const{delegate:Mt}=F;return(Mt?.requestAnimationFrame||requestAnimationFrame)(...Lt)},cancelAnimationFrame(...Lt){const{delegate:Mt}=F;return(Mt?.cancelAnimationFrame||cancelAnimationFrame)(...Lt)},delegate:void 0};var L=v(9687);new class fe extends L.q{flush(Mt){this._active=!0;const we=this._scheduled;this._scheduled=void 0;const{actions:Oe}=this;let me;Mt=Mt||Oe.shift();do{if(me=Mt.execute(Mt.state,Mt.delay))break}while((Mt=Oe[0])&&Mt.id===we&&Oe.shift());if(this._active=!1,me){for(;(Mt=Oe[0])&&Mt.id===we&&Oe.shift();)Mt.unsubscribe();throw me}}}(class U extends re.R{constructor(Mt,we){super(Mt,we),this.scheduler=Mt,this.work=we}requestAsyncId(Mt,we,Oe=0){return null!==Oe&&Oe>0?super.requestAsyncId(Mt,we,Oe):(Mt.actions.push(this),Mt._scheduled||(Mt._scheduled=F.requestAnimationFrame(()=>Mt.flush(void 0))))}recycleAsyncId(Mt,we,Oe=0){var me;if(null!=Oe?Oe>0:this.delay>0)return super.recycleAsyncId(Mt,we,Oe);const{actions:We}=Mt;null!=we&&(null===(me=We[We.length-1])||void 0===me?void 0:me.id)!==we&&(F.cancelAnimationFrame(we),Mt._scheduled=void 0)}});v(5007);var Me=v(3798),te=v(5964),ve=v(6977),tt=v(6860),bt=v(177),Ve=v(8203);let Et=(()=>{class Lt{constructor(we,Oe,me){this._ngZone=we,this._platform=Oe,this._scrolled=new o.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=me}register(we){this.scrollContainers.has(we)||this.scrollContainers.set(we,we.elementScrolled().subscribe(()=>this._scrolled.next(we)))}deregister(we){const Oe=this.scrollContainers.get(we);Oe&&(Oe.unsubscribe(),this.scrollContainers.delete(we))}scrolled(we=20){return this._platform.isBrowser?new W.c(Oe=>{this._globalSubscription||this._addGlobalListener();const me=we>0?this._scrolled.pipe((0,Me.Z)(we)).subscribe(Oe):this._scrolled.subscribe(Oe);return this._scrolledCount++,()=>{me.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,B.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((we,Oe)=>this.deregister(Oe)),this._scrolled.complete()}ancestorScrolled(we,Oe){const me=this.getAncestorScrollContainers(we);return this.scrolled(Oe).pipe((0,te.p)(We=>!We||me.indexOf(We)>-1))}getAncestorScrollContainers(we){const Oe=[];return this.scrollContainers.forEach((me,We)=>{this._scrollableContainsElement(We,we)&&Oe.push(We)}),Oe}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(we,Oe){let me=(0,u.i8)(Oe),We=we.getElementRef().nativeElement;do{if(me==We)return!0}while(me=me.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const we=this._getWindow();return(0,ee.R)(we.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.KVO(y.SKi),y.KVO(tt.OD),y.KVO(bt.qQ,8))}}static{this.\u0275prov=y.jDH({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}}return Lt})(),Tt=(()=>{class Lt{constructor(we,Oe,me,We){this.elementRef=we,this.scrollDispatcher=Oe,this.ngZone=me,this.dir=We,this._destroyed=new o.B,this._elementScrolled=new W.c(Pe=>this.ngZone.runOutsideAngular(()=>(0,ee.R)(this.elementRef.nativeElement,"scroll").pipe((0,ve.Q)(this._destroyed)).subscribe(Pe)))}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(we){const Oe=this.elementRef.nativeElement,me=this.dir&&"rtl"==this.dir.value;null==we.left&&(we.left=me?we.end:we.start),null==we.right&&(we.right=me?we.start:we.end),null!=we.bottom&&(we.top=Oe.scrollHeight-Oe.clientHeight-we.bottom),me&&(0,tt.BD)()!=tt.r5.NORMAL?(null!=we.left&&(we.right=Oe.scrollWidth-Oe.clientWidth-we.left),(0,tt.BD)()==tt.r5.INVERTED?we.left=we.right:(0,tt.BD)()==tt.r5.NEGATED&&(we.left=we.right?-we.right:we.right)):null!=we.right&&(we.left=Oe.scrollWidth-Oe.clientWidth-we.right),this._applyScrollToOptions(we)}_applyScrollToOptions(we){const Oe=this.elementRef.nativeElement;(0,tt.CZ)()?Oe.scrollTo(we):(null!=we.top&&(Oe.scrollTop=we.top),null!=we.left&&(Oe.scrollLeft=we.left))}measureScrollOffset(we){const Oe="left",We=this.elementRef.nativeElement;if("top"==we)return We.scrollTop;if("bottom"==we)return We.scrollHeight-We.clientHeight-We.scrollTop;const Pe=this.dir&&"rtl"==this.dir.value;return"start"==we?we=Pe?"right":Oe:"end"==we&&(we=Pe?Oe:"right"),Pe&&(0,tt.BD)()==tt.r5.INVERTED?we==Oe?We.scrollWidth-We.clientWidth-We.scrollLeft:We.scrollLeft:Pe&&(0,tt.BD)()==tt.r5.NEGATED?we==Oe?We.scrollLeft+We.scrollWidth-We.clientWidth:-We.scrollLeft:we==Oe?We.scrollLeft:We.scrollWidth-We.clientWidth-We.scrollLeft}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.rXU(y.aKT),y.rXU(Et),y.rXU(y.SKi),y.rXU(Ve.dS,8))}}static{this.\u0275dir=y.FsC({type:Lt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}}return Lt})(),Fn=(()=>{class Lt{constructor(we,Oe,me){this._platform=we,this._change=new o.B,this._changeListener=We=>{this._change.next(We)},this._document=me,Oe.runOutsideAngular(()=>{if(we.isBrowser){const We=this._getWindow();We.addEventListener("resize",this._changeListener),We.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const we=this._getWindow();we.removeEventListener("resize",this._changeListener),we.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const we={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),we}getViewportRect(){const we=this.getViewportScrollPosition(),{width:Oe,height:me}=this.getViewportSize();return{top:we.top,left:we.left,bottom:we.top+me,right:we.left+Oe,height:me,width:Oe}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const we=this._document,Oe=this._getWindow(),me=we.documentElement,We=me.getBoundingClientRect();return{top:-We.top||we.body.scrollTop||Oe.scrollY||me.scrollTop||0,left:-We.left||we.body.scrollLeft||Oe.scrollX||me.scrollLeft||0}}change(we=20){return we>0?this._change.pipe((0,Me.Z)(we)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const we=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:we.innerWidth,height:we.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(Oe){return new(Oe||Lt)(y.KVO(tt.OD),y.KVO(y.SKi),y.KVO(bt.qQ,8))}}static{this.\u0275prov=y.jDH({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}}return Lt})(),Ze=(()=>{class Lt{static{this.\u0275fac=function(Oe){return new(Oe||Lt)}}static{this.\u0275mod=y.$C({type:Lt})}static{this.\u0275inj=y.G2t({})}}return Lt})(),je=(()=>{class Lt{static{this.\u0275fac=function(Oe){return new(Oe||Lt)}}static{this.\u0275mod=y.$C({type:Lt})}static{this.\u0275inj=y.G2t({imports:[Ve.jI,Ze,Ve.jI,Ze]})}}return Lt})()},7403:(tn,Re,v)=>{"use strict";v.d(Re,{EE:()=>be,P8:()=>L,xb:()=>de});var u=v(6860),y=v(4438),o=v(4085),B=v(983),W=v(1413),ee=v(3726),re=v(3798),V=v(6977),F=v(177);const U=(0,u.BQ)({passive:!0});let L=(()=>{class Te{constructor(te,ve){this._platform=te,this._ngZone=ve,this._monitoredElements=new Map}monitor(te){if(!this._platform.isBrowser)return B.w;const ve=(0,o.i8)(te),tt=this._monitoredElements.get(ve);if(tt)return tt.subject;const bt=new W.B,Ve="cdk-text-field-autofilled",rt=Xe=>{"cdk-text-field-autofill-start"!==Xe.animationName||ve.classList.contains(Ve)?"cdk-text-field-autofill-end"===Xe.animationName&&ve.classList.contains(Ve)&&(ve.classList.remove(Ve),this._ngZone.run(()=>bt.next({target:Xe.target,isAutofilled:!1}))):(ve.classList.add(Ve),this._ngZone.run(()=>bt.next({target:Xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ve.addEventListener("animationstart",rt,U),ve.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ve,{subject:bt,unlisten:()=>{ve.removeEventListener("animationstart",rt,U)}}),bt}stopMonitoring(te){const ve=(0,o.i8)(te),tt=this._monitoredElements.get(ve);tt&&(tt.unlisten(),tt.subject.complete(),ve.classList.remove("cdk-text-field-autofill-monitored"),ve.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ve))}ngOnDestroy(){this._monitoredElements.forEach((te,ve)=>this.stopMonitoring(ve))}static{this.\u0275fac=function(ve){return new(ve||Te)(y.KVO(u.OD),y.KVO(y.SKi))}}static{this.\u0275prov=y.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}}return Te})(),de=(()=>{class Te{get minRows(){return this._minRows}set minRows(te){this._minRows=(0,o.OE)(te),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(te){this._maxRows=(0,o.OE)(te),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(te){this._enabled!==te&&((this._enabled=te)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(te){this._cachedPlaceholderHeight=void 0,te?this._textareaElement.setAttribute("placeholder",te):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(te,ve,tt,bt){this._elementRef=te,this._platform=ve,this._ngZone=tt,this._destroyed=new W.B,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=Ve=>{this._hasFocus="focus"===Ve.type},this._document=bt,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const te=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.minHeight=te)}_setMaxHeight(){const te=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;te&&(this._textareaElement.style.maxHeight=te)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const te=this._getWindow();(0,ee.R)(te,"resize").pipe((0,re.Z)(16),(0,V.Q)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let te=this._textareaElement.cloneNode(!1);te.rows=1,te.style.position="absolute",te.style.visibility="hidden",te.style.border="none",te.style.padding="0",te.style.height="",te.style.minHeight="",te.style.maxHeight="",te.style.overflow="hidden",this._textareaElement.parentNode.appendChild(te),this._cachedLineHeight=te.clientHeight,te.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const te=this._textareaElement,ve=te.style.marginBottom||"",tt=this._platform.FIREFOX,bt=tt&&this._hasFocus,Ve=tt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";bt&&(te.style.marginBottom=`${te.clientHeight}px`),te.classList.add(Ve);const rt=te.scrollHeight-4;return te.classList.remove(Ve),bt&&(te.style.marginBottom=ve),rt}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const te=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=te}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(te=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const ve=this._elementRef.nativeElement,tt=ve.value;if(!te&&this._minRows===this._previousMinRows&&tt===this._previousValue)return;const bt=this._measureScrollHeight(),Ve=Math.max(bt,this._cachedPlaceholderHeight||0);ve.style.height=`${Ve}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(ve)):setTimeout(()=>this._scrollToCaretPosition(ve))}),this._previousValue=tt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(te){const{selectionStart:ve,selectionEnd:tt}=te;!this._destroyed.isStopped&&this._hasFocus&&te.setSelectionRange(ve,tt)}static{this.\u0275fac=function(ve){return new(ve||Te)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(F.qQ,8))}}static{this.\u0275dir=y.FsC({type:Te,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(ve,tt){1&ve&&y.bIt("input",function(){return tt._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",y.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],standalone:!0,features:[y.GFd]})}}return Te})(),be=(()=>{class Te{static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275mod=y.$C({type:Te})}static{this.\u0275inj=y.G2t({})}}return Te})()},177:(tn,Re,v)=>{"use strict";v.d(Re,{AJ:()=>Vr,B3:()=>ui,Jj:()=>Br,MD:()=>js,N0:()=>Xo,PV:()=>Bs,QT:()=>o,Sm:()=>Me,Sq:()=>Ke,T3:()=>Oi,UE:()=>$o,VF:()=>W,Vy:()=>va,Xr:()=>Hs,YU:()=>ci,ZD:()=>B,_b:()=>Kn,aZ:()=>ve,bT:()=>se,fw:()=>te,hb:()=>be,hj:()=>F,jo:()=>jo,qQ:()=>re,vh:()=>Kl});var u=v(4438);let y=null;function o(){return y}function B(S){y??=S}class W{}const re=new u.nKC("");let V=(()=>{class S{historyGo(p){throw new Error("")}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(U),providedIn:"platform"})}}return S})();const F=new u.nKC("");let U=(()=>{class S extends V{constructor(){super(),this._doc=(0,u.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(p){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("popstate",p,!1),()=>_.removeEventListener("popstate",p)}onHashChange(p){const _=o().getGlobalEventTarget(this._doc,"window");return _.addEventListener("hashchange",p,!1),()=>_.removeEventListener("hashchange",p)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(p){this._location.pathname=p}pushState(p,_,x){this._history.pushState(p,_,x)}replaceState(p,_,x){this._history.replaceState(p,_,x)}forward(){this._history.forward()}back(){this._history.back()}historyGo(p=0){this._history.go(p)}getState(){return this._history.state}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>new S,providedIn:"platform"})}}return S})();function L(S,ne){if(0==S.length)return ne;if(0==ne.length)return S;let p=0;return S.endsWith("/")&&p++,ne.startsWith("/")&&p++,2==p?S+ne.substring(1):1==p?S+ne:S+"/"+ne}function fe(S){const ne=S.match(/#|\?|$/),p=ne&&ne.index||S.length;return S.slice(0,p-("/"===S[p-1]?1:0))+S.slice(p)}function de(S){return S&&"?"!==S[0]?"?"+S:S}let be=(()=>{class S{historyGo(p){throw new Error("")}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:()=>(0,u.WQX)(Me),providedIn:"root"})}}return S})();const Te=new u.nKC("");let Me=(()=>{class S extends be{constructor(p,_){super(),this._platformLocation=p,this._removeListenerFns=[],this._baseHref=_??this._platformLocation.getBaseHrefFromDOM()??(0,u.WQX)(re).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}prepareExternalUrl(p){return L(this._baseHref,p)}path(p=!1){const _=this._platformLocation.pathname+de(this._platformLocation.search),x=this._platformLocation.hash;return x&&p?`${_}${x}`:_}pushState(p,_,x,X){const ce=this.prepareExternalUrl(x+de(X));this._platformLocation.pushState(p,_,ce)}replaceState(p,_,x,X){const ce=this.prepareExternalUrl(x+de(X));this._platformLocation.replaceState(p,_,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Te,8))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})(),te=(()=>{class S extends be{constructor(p,_){super(),this._platformLocation=p,this._baseHref="",this._removeListenerFns=[],null!=_&&(this._baseHref=_)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(p){this._removeListenerFns.push(this._platformLocation.onPopState(p),this._platformLocation.onHashChange(p))}getBaseHref(){return this._baseHref}path(p=!1){const _=this._platformLocation.hash??"#";return _.length>0?_.substring(1):_}prepareExternalUrl(p){const _=L(this._baseHref,p);return _.length>0?"#"+_:_}pushState(p,_,x,X){let ce=this.prepareExternalUrl(x+de(X));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.pushState(p,_,ce)}replaceState(p,_,x,X){let ce=this.prepareExternalUrl(x+de(X));0==ce.length&&(ce=this._platformLocation.pathname),this._platformLocation.replaceState(p,_,ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(p=0){this._platformLocation.historyGo?.(p)}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(V),u.KVO(Te,8))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}}return S})(),ve=(()=>{class S{constructor(p){this._subject=new u.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=p;const _=this._locationStrategy.getBaseHref();this._basePath=function rt(S){if(new RegExp("^(https?:)?//").test(S)){const[,p]=S.split(/\/\/[^\/]+/);return p}return S}(fe(Ve(_))),this._locationStrategy.onPopState(x=>{this._subject.emit({url:this.path(!0),pop:!0,state:x.state,type:x.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(p=!1){return this.normalize(this._locationStrategy.path(p))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(p,_=""){return this.path()==this.normalize(p+de(_))}normalize(p){return S.stripTrailingSlash(function bt(S,ne){if(!S||!ne.startsWith(S))return ne;const p=ne.substring(S.length);return""===p||["/",";","?","#"].includes(p[0])?p:ne}(this._basePath,Ve(p)))}prepareExternalUrl(p){return p&&"/"!==p[0]&&(p="/"+p),this._locationStrategy.prepareExternalUrl(p)}go(p,_="",x=null){this._locationStrategy.pushState(x,"",p,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+de(_)),x)}replaceState(p,_="",x=null){this._locationStrategy.replaceState(x,"",p,_),this._notifyUrlChangeListeners(this.prepareExternalUrl(p+de(_)),x)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(p=0){this._locationStrategy.historyGo?.(p)}onUrlChange(p){return this._urlChangeListeners.push(p),this._urlChangeSubscription??=this.subscribe(_=>{this._notifyUrlChangeListeners(_.url,_.state)}),()=>{const _=this._urlChangeListeners.indexOf(p);this._urlChangeListeners.splice(_,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(p="",_){this._urlChangeListeners.forEach(x=>x(p,_))}subscribe(p,_,x){return this._subject.subscribe({next:p,error:_,complete:x})}static{this.normalizeQueryParams=de}static{this.joinWithSlash=L}static{this.stripTrailingSlash=fe}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(be))}}static{this.\u0275prov=u.jDH({token:S,factory:()=>function tt(){return new ve((0,u.KVO)(be))}(),providedIn:"root"})}}return S})();function Ve(S){return S.replace(/\/index.html$/,"")}var he=function(S){return S[S.Zero=0]="Zero",S[S.One=1]="One",S[S.Two=2]="Two",S[S.Few=3]="Few",S[S.Many=4]="Many",S[S.Other=5]="Other",S}(he||{}),Le=function(S){return S[S.Format=0]="Format",S[S.Standalone=1]="Standalone",S}(Le||{}),et=function(S){return S[S.Narrow=0]="Narrow",S[S.Abbreviated=1]="Abbreviated",S[S.Wide=2]="Wide",S[S.Short=3]="Short",S}(et||{}),It=function(S){return S[S.Short=0]="Short",S[S.Medium=1]="Medium",S[S.Long=2]="Long",S[S.Full=3]="Full",S}(It||{});const Et={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J(S,ne){return xe((0,u.H5H)(S)[u.KH2.DateFormat],ne)}function Se(S,ne){return xe((0,u.H5H)(S)[u.KH2.TimeFormat],ne)}function gt(S,ne){return xe((0,u.H5H)(S)[u.KH2.DateTimeFormat],ne)}function Ne(S,ne){const p=(0,u.H5H)(S),_=p[u.KH2.NumberSymbols][ne];if(typeof _>"u"){if(ne===Et.CurrencyDecimal)return p[u.KH2.NumberSymbols][Et.Decimal];if(ne===Et.CurrencyGroup)return p[u.KH2.NumberSymbols][Et.Group]}return _}const Oe=u.mq5;function me(S){if(!S[u.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${S[u.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xe(S,ne){for(let p=ne;p>-1;p--)if(typeof S[p]<"u")return S[p];throw new Error("Locale data API: locale data undefined")}function ut(S){const[ne,p]=S.split(":");return{hours:+ne,minutes:+p}}const ni=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zt={},_e=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Je=function(S){return S[S.Short=0]="Short",S[S.ShortGMT=1]="ShortGMT",S[S.Long=2]="Long",S[S.Extended=3]="Extended",S}(Je||{}),Ge=function(S){return S[S.FullYear=0]="FullYear",S[S.Month=1]="Month",S[S.Date=2]="Date",S[S.Hours=3]="Hours",S[S.Minutes=4]="Minutes",S[S.Seconds=5]="Seconds",S[S.FractionalSeconds=6]="FractionalSeconds",S[S.Day=7]="Day",S}(Ge||{}),dt=function(S){return S[S.DayPeriods=0]="DayPeriods",S[S.Days=1]="Days",S[S.Months=2]="Months",S[S.Eras=3]="Eras",S}(dt||{});function rn(S,ne,p,_){let x=function yi(S){if(sn(S))return S;if("number"==typeof S&&!isNaN(S))return new Date(S);if("string"==typeof S){if(S=S.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(S)){const[x,X=1,ce=1]=S.split("-").map(ze=>+ze);return Q(x,X-1,ce)}const p=parseFloat(S);if(!isNaN(S-p))return new Date(p);let _;if(_=S.match(ni))return function Ti(S){const ne=new Date(0);let p=0,_=0;const x=S[8]?ne.setUTCFullYear:ne.setFullYear,X=S[8]?ne.setUTCHours:ne.setHours;S[9]&&(p=Number(S[9]+S[10]),_=Number(S[9]+S[11])),x.call(ne,Number(S[1]),Number(S[2])-1,Number(S[3]));const ce=Number(S[4]||0)-p,ze=Number(S[5]||0)-_,yt=Number(S[6]||0),Dt=Math.floor(1e3*parseFloat("0."+(S[7]||0)));return X.call(ne,ce,ze,yt,Dt),ne}(_)}const ne=new Date(S);if(!sn(ne))throw new Error(`Unable to convert "${S}" into a date`);return ne}(S);ne=T(p,ne)||ne;let ze,ce=[];for(;ne;){if(ze=_e.exec(ne),!ze){ce.push(ne);break}{ce=ce.concat(ze.slice(1));const Pt=ce.pop();if(!Pt)break;ne=Pt}}let yt=x.getTimezoneOffset();_&&(yt=Ye(_,yt),x=function Pn(S,ne,p){const _=p?-1:1,x=S.getTimezoneOffset();return function Gt(S,ne){return(S=new Date(S.getTime())).setMinutes(S.getMinutes()+ne),S}(S,_*(Ye(ne,x)-x))}(x,_,!0));let Dt="";return ce.forEach(Pt=>{const Wt=function ye(S){if(Be[S])return Be[S];let ne;switch(S){case"G":case"GG":case"GGG":ne=zt(dt.Eras,et.Abbreviated);break;case"GGGG":ne=zt(dt.Eras,et.Wide);break;case"GGGGG":ne=zt(dt.Eras,et.Narrow);break;case"y":ne=ue(Ge.FullYear,1,0,!1,!0);break;case"yy":ne=ue(Ge.FullYear,2,0,!0,!0);break;case"yyy":ne=ue(Ge.FullYear,3,0,!1,!0);break;case"yyyy":ne=ue(Ge.FullYear,4,0,!1,!0);break;case"Y":ne=He(1);break;case"YY":ne=He(2,!0);break;case"YYY":ne=He(3);break;case"YYYY":ne=He(4);break;case"M":case"L":ne=ue(Ge.Month,1,1);break;case"MM":case"LL":ne=ue(Ge.Month,2,1);break;case"MMM":ne=zt(dt.Months,et.Abbreviated);break;case"MMMM":ne=zt(dt.Months,et.Wide);break;case"MMMMM":ne=zt(dt.Months,et.Narrow);break;case"LLL":ne=zt(dt.Months,et.Abbreviated,Le.Standalone);break;case"LLLL":ne=zt(dt.Months,et.Wide,Le.Standalone);break;case"LLLLL":ne=zt(dt.Months,et.Narrow,Le.Standalone);break;case"w":ne=Cn(1);break;case"ww":ne=Cn(2);break;case"W":ne=Cn(1,!0);break;case"d":ne=ue(Ge.Date,1);break;case"dd":ne=ue(Ge.Date,2);break;case"c":case"cc":ne=ue(Ge.Day,1);break;case"ccc":ne=zt(dt.Days,et.Abbreviated,Le.Standalone);break;case"cccc":ne=zt(dt.Days,et.Wide,Le.Standalone);break;case"ccccc":ne=zt(dt.Days,et.Narrow,Le.Standalone);break;case"cccccc":ne=zt(dt.Days,et.Short,Le.Standalone);break;case"E":case"EE":case"EEE":ne=zt(dt.Days,et.Abbreviated);break;case"EEEE":ne=zt(dt.Days,et.Wide);break;case"EEEEE":ne=zt(dt.Days,et.Narrow);break;case"EEEEEE":ne=zt(dt.Days,et.Short);break;case"a":case"aa":case"aaa":ne=zt(dt.DayPeriods,et.Abbreviated);break;case"aaaa":ne=zt(dt.DayPeriods,et.Wide);break;case"aaaaa":ne=zt(dt.DayPeriods,et.Narrow);break;case"b":case"bb":case"bbb":ne=zt(dt.DayPeriods,et.Abbreviated,Le.Standalone,!0);break;case"bbbb":ne=zt(dt.DayPeriods,et.Wide,Le.Standalone,!0);break;case"bbbbb":ne=zt(dt.DayPeriods,et.Narrow,Le.Standalone,!0);break;case"B":case"BB":case"BBB":ne=zt(dt.DayPeriods,et.Abbreviated,Le.Format,!0);break;case"BBBB":ne=zt(dt.DayPeriods,et.Wide,Le.Format,!0);break;case"BBBBB":ne=zt(dt.DayPeriods,et.Narrow,Le.Format,!0);break;case"h":ne=ue(Ge.Hours,1,-12);break;case"hh":ne=ue(Ge.Hours,2,-12);break;case"H":ne=ue(Ge.Hours,1);break;case"HH":ne=ue(Ge.Hours,2);break;case"m":ne=ue(Ge.Minutes,1);break;case"mm":ne=ue(Ge.Minutes,2);break;case"s":ne=ue(Ge.Seconds,1);break;case"ss":ne=ue(Ge.Seconds,2);break;case"S":ne=ue(Ge.FractionalSeconds,1);break;case"SS":ne=ue(Ge.FractionalSeconds,2);break;case"SSS":ne=ue(Ge.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ne=jt(Je.Short);break;case"ZZZZZ":ne=jt(Je.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ne=jt(Je.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ne=jt(Je.Long);break;default:return null}return Be[S]=ne,ne}(Pt);Dt+=Wt?Wt(x,p,yt):"''"===Pt?"'":Pt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Dt}function Q(S,ne,p){const _=new Date(0);return _.setFullYear(S,ne,p),_.setHours(0,0,0),_}function T(S,ne){const p=function nn(S){return(0,u.H5H)(S)[u.KH2.LocaleId]}(S);if(Zt[p]??={},Zt[p][ne])return Zt[p][ne];let _="";switch(ne){case"shortDate":_=J(S,It.Short);break;case"mediumDate":_=J(S,It.Medium);break;case"longDate":_=J(S,It.Long);break;case"fullDate":_=J(S,It.Full);break;case"shortTime":_=Se(S,It.Short);break;case"mediumTime":_=Se(S,It.Medium);break;case"longTime":_=Se(S,It.Long);break;case"fullTime":_=Se(S,It.Full);break;case"short":const x=T(S,"shortTime"),X=T(S,"shortDate");_=N(gt(S,It.Short),[x,X]);break;case"medium":const ce=T(S,"mediumTime"),ze=T(S,"mediumDate");_=N(gt(S,It.Medium),[ce,ze]);break;case"long":const yt=T(S,"longTime"),Dt=T(S,"longDate");_=N(gt(S,It.Long),[yt,Dt]);break;case"full":const Pt=T(S,"fullTime"),Wt=T(S,"fullDate");_=N(gt(S,It.Full),[Pt,Wt])}return _&&(Zt[p][ne]=_),_}function N(S,ne){return ne&&(S=S.replace(/\{([^}]+)}/g,function(p,_){return null!=ne&&_ in ne?ne[_]:p})),S}function $(S,ne,p="-",_,x){let X="";(S<0||x&&S<=0)&&(x?S=1-S:(S=-S,X=p));let ce=String(S);for(;ce.length0||ze>-p)&&(ze+=p),S===Ge.Hours)0===ze&&-12===p&&(ze=12);else if(S===Ge.FractionalSeconds)return function le(S,ne){return $(S,3).substring(0,ne)}(ze,ne);const yt=Ne(ce,Et.MinusSign);return $(ze,ne,yt,_,x)}}function zt(S,ne,p=Le.Format,_=!1){return function(x,X){return function Ut(S,ne,p,_,x,X){switch(p){case dt.Months:return function yn(S,ne,p){const _=(0,u.H5H)(S),X=xe([_[u.KH2.MonthsFormat],_[u.KH2.MonthsStandalone]],ne);return xe(X,p)}(ne,x,_)[S.getMonth()];case dt.Days:return function $n(S,ne,p){const _=(0,u.H5H)(S),X=xe([_[u.KH2.DaysFormat],_[u.KH2.DaysStandalone]],ne);return xe(X,p)}(ne,x,_)[S.getDay()];case dt.DayPeriods:const ce=S.getHours(),ze=S.getMinutes();if(X){const Dt=function We(S){const ne=(0,u.H5H)(S);return me(ne),(ne[u.KH2.ExtraData][2]||[]).map(_=>"string"==typeof _?ut(_):[ut(_[0]),ut(_[1])])}(ne),Pt=function Pe(S,ne,p){const _=(0,u.H5H)(S);me(_);const X=xe([_[u.KH2.ExtraData][0],_[u.KH2.ExtraData][1]],ne)||[];return xe(X,p)||[]}(ne,x,_),Wt=Dt.findIndex(pn=>{if(Array.isArray(pn)){const[St,Ht]=pn,cn=ce>=St.hours&&ze>=St.minutes,kn=ce0?Math.floor(x/60):Math.ceil(x/60);switch(S){case Je.Short:return(x>=0?"+":"")+$(ce,2,X)+$(Math.abs(x%60),2,X);case Je.ShortGMT:return"GMT"+(x>=0?"+":"")+$(ce,1,X);case Je.Long:return"GMT"+(x>=0?"+":"")+$(ce,2,X)+":"+$(Math.abs(x%60),2,X);case Je.Extended:return 0===_?"Z":(x>=0?"+":"")+$(ce,2,X)+":"+$(Math.abs(x%60),2,X);default:throw new Error(`Unknown zone width "${S}"`)}}}const On=0,Ln=4;function en(S){const ne=S.getDay(),p=0===ne?-3:Ln-ne;return Q(S.getFullYear(),S.getMonth(),S.getDate()+p)}function Cn(S,ne=!1){return function(p,_){let x;if(ne){const X=new Date(p.getFullYear(),p.getMonth(),1).getDay()-1,ce=p.getDate();x=1+Math.floor((ce+X)/7)}else{const X=en(p),ce=function wi(S){const ne=Q(S,On,1).getDay();return Q(S,0,1+(ne<=Ln?Ln:Ln+7)-ne)}(X.getFullYear()),ze=X.getTime()-ce.getTime();x=1+Math.round(ze/6048e5)}return $(x,S,Ne(_,Et.MinusSign))}}function He(S,ne=!1){return function(p,_){return $(en(p).getFullYear(),S,Ne(_,Et.MinusSign),ne)}}const Be={};function Ye(S,ne){S=S.replace(/:/g,"");const p=Date.parse("Jan 01, 1970 00:00:00 "+S)/6e4;return isNaN(p)?ne:p}function sn(S){return S instanceof Date&&!isNaN(S.valueOf())}let Ot=(()=>{class S{static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275prov=u.jDH({token:S,factory:function(_){let x=null;return _?x=new _:(X=u.KVO(u.xe9),x=new bn(X)),x;var X},providedIn:"root"})}}return S})();let bn=(()=>{class S extends Ot{constructor(p){super(),this.locale=p}getPluralCategory(p,_){switch(Oe(_||this.locale)(p)){case he.Zero:return"zero";case he.One:return"one";case he.Two:return"two";case he.Few:return"few";case he.Many:return"many";default:return"other"}}static{this.\u0275fac=function(_){return new(_||S)(u.KVO(u.xe9))}}static{this.\u0275prov=u.jDH({token:S,factory:S.\u0275fac})}}return S})();function Kn(S,ne){ne=encodeURIComponent(ne);for(const p of S.split(";")){const _=p.indexOf("="),[x,X]=-1==_?[p,""]:[p.slice(0,_),p.slice(_+1)];if(x.trim()===ne)return decodeURIComponent(X)}return null}const zn=/\s+/,ii=[];let ci=(()=>{class S{constructor(p,_){this._ngEl=p,this._renderer=_,this.initialClasses=ii,this.stateMap=new Map}set klass(p){this.initialClasses=null!=p?p.trim().split(zn):ii}set ngClass(p){this.rawClass="string"==typeof p?p.trim().split(zn):p}ngDoCheck(){for(const _ of this.initialClasses)this._updateState(_,!0);const p=this.rawClass;if(Array.isArray(p)||p instanceof Set)for(const _ of p)this._updateState(_,!0);else if(null!=p)for(const _ of Object.keys(p))this._updateState(_,!!p[_]);this._applyStateDiff()}_updateState(p,_){const x=this.stateMap.get(p);void 0!==x?(x.enabled!==_&&(x.changed=!0,x.enabled=_),x.touched=!0):this.stateMap.set(p,{enabled:_,changed:!0,touched:!0})}_applyStateDiff(){for(const p of this.stateMap){const _=p[0],x=p[1];x.changed?(this._toggleClass(_,x.enabled),x.changed=!1):x.touched||(x.enabled&&this._toggleClass(_,!1),this.stateMap.delete(_)),x.touched=!1}}_toggleClass(p,_){(p=p.trim()).length>0&&p.split(zn).forEach(x=>{_?this._renderer.addClass(this._ngEl.nativeElement,x):this._renderer.removeClass(this._ngEl.nativeElement,x)})}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return S})();class Qe{constructor(ne,p,_,x){this.$implicit=ne,this.ngForOf=p,this.index=_,this.count=x}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ke=(()=>{class S{set ngForOf(p){this._ngForOf=p,this._ngForOfDirty=!0}set ngForTrackBy(p){this._trackByFn=p}get ngForTrackBy(){return this._trackByFn}constructor(p,_,x){this._viewContainer=p,this._template=_,this._differs=x,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(p){p&&(this._template=p)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const p=this._ngForOf;!this._differ&&p&&(this._differ=this._differs.find(p).create(this.ngForTrackBy))}if(this._differ){const p=this._differ.diff(this._ngForOf);p&&this._applyChanges(p)}}_applyChanges(p){const _=this._viewContainer;p.forEachOperation((x,X,ce)=>{if(null==x.previousIndex)_.createEmbeddedView(this._template,new Qe(x.item,this._ngForOf,-1,-1),null===ce?void 0:ce);else if(null==ce)_.remove(null===X?void 0:X);else if(null!==X){const ze=_.get(X);_.move(ze,ce),K(ze,x)}});for(let x=0,X=_.length;x{K(_.get(x.currentIndex),x)})}static ngTemplateContextGuard(p,_){return!0}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q),u.rXU(u._q3))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return S})();function K(S,ne){S.context.$implicit=ne.item}let se=(()=>{class S{constructor(p,_){this._viewContainer=p,this._context=new $e,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=_}set ngIf(p){this._context.$implicit=this._context.ngIf=p,this._updateView()}set ngIfThen(p){vt("ngIfThen",p),this._thenTemplateRef=p,this._thenViewRef=null,this._updateView()}set ngIfElse(p){vt("ngIfElse",p),this._elseTemplateRef=p,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(p,_){return!0}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b),u.rXU(u.C4Q))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return S})();class $e{constructor(){this.$implicit=null,this.ngIf=null}}function vt(S,ne){if(ne&&!ne.createEmbeddedView)throw new Error(`${S} must be a TemplateRef, but received '${(0,u.Tbb)(ne)}'.`)}let ui=(()=>{class S{constructor(p,_,x){this._ngEl=p,this._differs=_,this._renderer=x,this._ngStyle=null,this._differ=null}set ngStyle(p){this._ngStyle=p,!this._differ&&p&&(this._differ=this._differs.find(p).create())}ngDoCheck(){if(this._differ){const p=this._differ.diff(this._ngStyle);p&&this._applyChanges(p)}}_setStyle(p,_){const[x,X]=p.split("."),ce=-1===x.indexOf("-")?void 0:u.czy.DashCase;null!=_?this._renderer.setStyle(this._ngEl.nativeElement,x,X?`${_}${X}`:_,ce):this._renderer.removeStyle(this._ngEl.nativeElement,x,ce)}_applyChanges(p){p.forEachRemovedItem(_=>this._setStyle(_.key,null)),p.forEachAddedItem(_=>this._setStyle(_.key,_.currentValue)),p.forEachChangedItem(_=>this._setStyle(_.key,_.currentValue))}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.aKT),u.rXU(u.MKu),u.rXU(u.sFG))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return S})(),Oi=(()=>{class S{constructor(p){this._viewContainerRef=p,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(p){if(this._shouldRecreateView(p)){const _=this._viewContainerRef;if(this._viewRef&&_.remove(_.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const x=this._createContextForwardProxy();this._viewRef=_.createEmbeddedView(this.ngTemplateOutlet,x,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(p){return!!p.ngTemplateOutlet||!!p.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(p,_,x)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,_,x),get:(p,_,x)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,_,x)}})}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.c1b))}}static{this.\u0275dir=u.FsC({type:S,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[u.OA$]})}}return S})();function Wn(S,ne){return new u.wOt(2100,!1)}class Rr{createSubscription(ne,p){return(0,u.O8t)(()=>ne.subscribe({next:p,error:_=>{throw _}}))}dispose(ne){(0,u.O8t)(()=>ne.unsubscribe())}}class ho{createSubscription(ne,p){return ne.then(p,_=>{throw _})}dispose(ne){}}const Lr=new ho,Ci=new Rr;let Br=(()=>{class S{constructor(p){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=p}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(p){if(!this._obj){if(p)try{this.markForCheckOnValueUpdate=!1,this._subscribe(p)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return p!==this._obj?(this._dispose(),this.transform(p)):this._latestValue}_subscribe(p){this._obj=p,this._strategy=this._selectStrategy(p),this._subscription=this._strategy.createSubscription(p,_=>this._updateLatestValue(p,_))}_selectStrategy(p){if((0,u.jNT)(p))return Lr;if((0,u.zjR)(p))return Ci;throw Wn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(p,_){p===this._obj&&(this._latestValue=_,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.gRc,16))}}static{this.\u0275pipe=u.EJ8({name:"async",type:S,pure:!1,standalone:!0})}}return S})();const Gi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Bs=(()=>{class S{transform(p){if(null==p)return null;if("string"!=typeof p)throw Wn();return p.replace(Gi,_=>_[0].toUpperCase()+_.slice(1).toLowerCase())}static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275pipe=u.EJ8({name:"titlecase",type:S,pure:!0,standalone:!0})}}return S})();const ma=new u.nKC(""),ga=new u.nKC("");let Kl=(()=>{class S{constructor(p,_,x){this.locale=p,this.defaultTimezone=_,this.defaultOptions=x}transform(p,_,x,X){if(null==p||""===p||p!=p)return null;try{return rn(p,_??this.defaultOptions?.dateFormat??"mediumDate",X||this.locale,x??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(ce){throw Wn()}}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(u.xe9,16),u.rXU(ma,24),u.rXU(ga,24))}}static{this.\u0275pipe=u.EJ8({name:"date",type:S,pure:!0,standalone:!0})}}return S})();const vo=/#/g;let jo=(()=>{class S{constructor(p){this._localization=p}transform(p,_,x){if(null==p)return"";if("object"!=typeof _||null===_)throw Wn();return _[function un(S,ne,p,_){let x=`=${S}`;if(ne.indexOf(x)>-1||(x=p.getPluralCategory(S,_),ne.indexOf(x)>-1))return x;if(ne.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${S}"`)}(p,Object.keys(_),this._localization,x)].replace(vo,p.toString())}static{this.\u0275fac=function(_){return new(_||S)(u.rXU(Ot,16))}}static{this.\u0275pipe=u.EJ8({name:"i18nPlural",type:S,pure:!0,standalone:!0})}}return S})(),js=(()=>{class S{static{this.\u0275fac=function(_){return new(_||S)}}static{this.\u0275mod=u.$C({type:S})}static{this.\u0275inj=u.G2t({})}}return S})();const Vr="browser",Ho="server";function $o(S){return S===Vr}function va(S){return S===Ho}let Hs=(()=>{class S{static{this.\u0275prov=(0,u.jDH)({token:S,providedIn:"root",factory:()=>$o((0,u.WQX)(u.Agw))?new Xr((0,u.WQX)(re),window):new gr})}}return S})();class Xr{constructor(ne,p){this.document=ne,this.window=p,this.offset=()=>[0,0]}setOffset(ne){this.offset=Array.isArray(ne)?()=>ne:ne}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ne){this.window.scrollTo(ne[0],ne[1])}scrollToAnchor(ne){const p=function Li(S,ne){const p=S.getElementById(ne)||S.getElementsByName(ne)[0];if(p)return p;if("function"==typeof S.createTreeWalker&&S.body&&"function"==typeof S.body.attachShadow){const _=S.createTreeWalker(S.body,NodeFilter.SHOW_ELEMENT);let x=_.currentNode;for(;x;){const X=x.shadowRoot;if(X){const ce=X.getElementById(ne)||X.querySelector(`[name="${ne}"]`);if(ce)return ce}x=_.nextNode()}}return null}(this.document,ne);p&&(this.scrollToElement(p),p.focus())}setHistoryScrollRestoration(ne){this.window.history.scrollRestoration=ne}scrollToElement(ne){const p=ne.getBoundingClientRect(),_=p.left+this.window.pageXOffset,x=p.top+this.window.pageYOffset,X=this.offset();this.window.scrollTo(_-X[0],x-X[1])}}class gr{setOffset(ne){}getScrollPosition(){return[0,0]}scrollToPosition(ne){}scrollToAnchor(ne){}setHistoryScrollRestoration(ne){}}class Xo{}},1626:(tn,Re,v)=>{"use strict";v.d(Re,{$R:()=>Pn,Nl:()=>rt,Qq:()=>gt,b$:()=>yi,cS:()=>yn,yz:()=>di});var u=v(467),y=v(4438),o=v(7673),B=v(1985),W=v(6648),ee=v(274),re=v(5964),V=v(6354),F=v(980),U=v(5558),L=v(177);class fe{}class de{}class be{constructor(Qe){this.normalizedNames=new Map,this.lazyUpdate=null,Qe?"string"==typeof Qe?this.lazyInit=()=>{this.headers=new Map,Qe.split("\n").forEach(Ke=>{const K=Ke.indexOf(":");if(K>0){const Ae=Ke.slice(0,K),se=Ae.toLowerCase(),$e=Ke.slice(K+1).trim();this.maybeSetNormalizedName(Ae,se),this.headers.has(se)?this.headers.get(se).push($e):this.headers.set(se,[$e])}})}:typeof Headers<"u"&&Qe instanceof Headers?(this.headers=new Map,Qe.forEach((Ke,K)=>{this.setHeaderEntries(K,Ke)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Qe).forEach(([Ke,K])=>{this.setHeaderEntries(Ke,K)})}:this.headers=new Map}has(Qe){return this.init(),this.headers.has(Qe.toLowerCase())}get(Qe){this.init();const Ke=this.headers.get(Qe.toLowerCase());return Ke&&Ke.length>0?Ke[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Qe){return this.init(),this.headers.get(Qe.toLowerCase())||null}append(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"a"})}set(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"s"})}delete(Qe,Ke){return this.clone({name:Qe,value:Ke,op:"d"})}maybeSetNormalizedName(Qe,Ke){this.normalizedNames.has(Ke)||this.normalizedNames.set(Ke,Qe)}init(){this.lazyInit&&(this.lazyInit instanceof be?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Qe=>this.applyUpdate(Qe)),this.lazyUpdate=null))}copyFrom(Qe){Qe.init(),Array.from(Qe.headers.keys()).forEach(Ke=>{this.headers.set(Ke,Qe.headers.get(Ke)),this.normalizedNames.set(Ke,Qe.normalizedNames.get(Ke))})}clone(Qe){const Ke=new be;return Ke.lazyInit=this.lazyInit&&this.lazyInit instanceof be?this.lazyInit:this,Ke.lazyUpdate=(this.lazyUpdate||[]).concat([Qe]),Ke}applyUpdate(Qe){const Ke=Qe.name.toLowerCase();switch(Qe.op){case"a":case"s":let K=Qe.value;if("string"==typeof K&&(K=[K]),0===K.length)return;this.maybeSetNormalizedName(Qe.name,Ke);const Ae=("a"===Qe.op?this.headers.get(Ke):void 0)||[];Ae.push(...K),this.headers.set(Ke,Ae);break;case"d":const se=Qe.value;if(se){let $e=this.headers.get(Ke);if(!$e)return;$e=$e.filter(vt=>-1===se.indexOf(vt)),0===$e.length?(this.headers.delete(Ke),this.normalizedNames.delete(Ke)):this.headers.set(Ke,$e)}else this.headers.delete(Ke),this.normalizedNames.delete(Ke)}}setHeaderEntries(Qe,Ke){const K=(Array.isArray(Ke)?Ke:[Ke]).map(se=>se.toString()),Ae=Qe.toLowerCase();this.headers.set(Ae,K),this.maybeSetNormalizedName(Qe,Ae)}forEach(Qe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ke=>Qe(this.normalizedNames.get(Ke),this.headers.get(Ke)))}}class Me{encodeKey(Qe){return bt(Qe)}encodeValue(Qe){return bt(Qe)}decodeKey(Qe){return decodeURIComponent(Qe)}decodeValue(Qe){return decodeURIComponent(Qe)}}const ve=/%(\d[a-f0-9])/gi,tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bt(Ce){return encodeURIComponent(Ce).replace(ve,(Qe,Ke)=>tt[Ke]??Qe)}function Ve(Ce){return`${Ce}`}class rt{constructor(Qe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Qe.encoder||new Me,Qe.fromString){if(Qe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function te(Ce,Qe){const Ke=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(Ae=>{const se=Ae.indexOf("="),[$e,vt]=-1==se?[Qe.decodeKey(Ae),""]:[Qe.decodeKey(Ae.slice(0,se)),Qe.decodeValue(Ae.slice(se+1))],at=Ke.get($e)||[];at.push(vt),Ke.set($e,at)}),Ke}(Qe.fromString,this.encoder)}else Qe.fromObject?(this.map=new Map,Object.keys(Qe.fromObject).forEach(Ke=>{const K=Qe.fromObject[Ke],Ae=Array.isArray(K)?K.map(Ve):[Ve(K)];this.map.set(Ke,Ae)})):this.map=null}has(Qe){return this.init(),this.map.has(Qe)}get(Qe){this.init();const Ke=this.map.get(Qe);return Ke?Ke[0]:null}getAll(Qe){return this.init(),this.map.get(Qe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"a"})}appendAll(Qe){const Ke=[];return Object.keys(Qe).forEach(K=>{const Ae=Qe[K];Array.isArray(Ae)?Ae.forEach(se=>{Ke.push({param:K,value:se,op:"a"})}):Ke.push({param:K,value:Ae,op:"a"})}),this.clone(Ke)}set(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"s"})}delete(Qe,Ke){return this.clone({param:Qe,value:Ke,op:"d"})}toString(){return this.init(),this.keys().map(Qe=>{const Ke=this.encoder.encodeKey(Qe);return this.map.get(Qe).map(K=>Ke+"="+this.encoder.encodeValue(K)).join("&")}).filter(Qe=>""!==Qe).join("&")}clone(Qe){const Ke=new rt({encoder:this.encoder});return Ke.cloneFrom=this.cloneFrom||this,Ke.updates=(this.updates||[]).concat(Qe),Ke}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Qe=>this.map.set(Qe,this.cloneFrom.map.get(Qe))),this.updates.forEach(Qe=>{switch(Qe.op){case"a":case"s":const Ke=("a"===Qe.op?this.map.get(Qe.param):void 0)||[];Ke.push(Ve(Qe.value)),this.map.set(Qe.param,Ke);break;case"d":if(void 0===Qe.value){this.map.delete(Qe.param);break}{let K=this.map.get(Qe.param)||[];const Ae=K.indexOf(Ve(Qe.value));-1!==Ae&&K.splice(Ae,1),K.length>0?this.map.set(Qe.param,K):this.map.delete(Qe.param)}}}),this.cloneFrom=this.updates=null)}}class oe{constructor(){this.map=new Map}set(Qe,Ke){return this.map.set(Qe,Ke),this}get(Qe){return this.map.has(Qe)||this.map.set(Qe,Qe.defaultValue()),this.map.get(Qe)}delete(Qe){return this.map.delete(Qe),this}has(Qe){return this.map.has(Qe)}keys(){return this.map.keys()}}function Le(Ce){return typeof ArrayBuffer<"u"&&Ce instanceof ArrayBuffer}function et(Ce){return typeof Blob<"u"&&Ce instanceof Blob}function It(Ce){return typeof FormData<"u"&&Ce instanceof FormData}class Tt{constructor(Qe,Ke,K,Ae){let se;if(this.url=Ke,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Qe.toUpperCase(),function he(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ae?(this.body=void 0!==K?K:null,se=Ae):se=K,se&&(this.reportProgress=!!se.reportProgress,this.withCredentials=!!se.withCredentials,se.responseType&&(this.responseType=se.responseType),se.headers&&(this.headers=se.headers),se.context&&(this.context=se.context),se.params&&(this.params=se.params),this.transferCache=se.transferCache),this.headers??=new be,this.context??=new oe,this.params){const $e=this.params.toString();if(0===$e.length)this.urlWithParams=Ke;else{const vt=Ke.indexOf("?");this.urlWithParams=Ke+(-1===vt?"?":vtEn.set(xn,Qe.setHeaders[xn]),$t)),Qe.setParams&&(hn=Object.keys(Qe.setParams).reduce((En,xn)=>En.set(xn,Qe.setParams[xn]),hn)),new Tt(Ke,K,$e,{params:hn,headers:$t,context:gn,reportProgress:at,responseType:Ae,withCredentials:vt,transferCache:se})}}var nn=function(Ce){return Ce[Ce.Sent=0]="Sent",Ce[Ce.UploadProgress=1]="UploadProgress",Ce[Ce.ResponseHeader=2]="ResponseHeader",Ce[Ce.DownloadProgress=3]="DownloadProgress",Ce[Ce.Response=4]="Response",Ce[Ce.User=5]="User",Ce}(nn||{});class Fn{constructor(Qe,Ke=200,K="OK"){this.headers=Qe.headers||new be,this.status=void 0!==Qe.status?Qe.status:Ke,this.statusText=Qe.statusText||K,this.url=Qe.url||null,this.ok=this.status>=200&&this.status<300}}class $n extends Fn{constructor(Qe={}){super(Qe),this.type=nn.ResponseHeader}clone(Qe={}){return new $n({headers:Qe.headers||this.headers,status:void 0!==Qe.status?Qe.status:this.status,statusText:Qe.statusText||this.statusText,url:Qe.url||this.url||void 0})}}class yn extends Fn{constructor(Qe={}){super(Qe),this.type=nn.Response,this.body=void 0!==Qe.body?Qe.body:null}clone(Qe={}){return new yn({body:void 0!==Qe.body?Qe.body:this.body,headers:Qe.headers||this.headers,status:void 0!==Qe.status?Qe.status:this.status,statusText:Qe.statusText||this.statusText,url:Qe.url||this.url||void 0})}}class di extends Fn{constructor(Qe){super(Qe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Qe.url||"(unknown url)"}`:`Http failure response for ${Qe.url||"(unknown url)"}: ${Qe.status} ${Qe.statusText}`,this.error=Qe.error||null}}function Se(Ce,Qe){return{body:Qe,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials,transferCache:Ce.transferCache}}let gt=(()=>{class Ce{constructor(Ke){this.handler=Ke}request(Ke,K,Ae={}){let se;if(Ke instanceof Tt)se=Ke;else{let at,$t;at=Ae.headers instanceof be?Ae.headers:new be(Ae.headers),Ae.params&&($t=Ae.params instanceof rt?Ae.params:new rt({fromObject:Ae.params})),se=new Tt(Ke,K,void 0!==Ae.body?Ae.body:null,{headers:at,context:Ae.context,params:$t,reportProgress:Ae.reportProgress,responseType:Ae.responseType||"json",withCredentials:Ae.withCredentials,transferCache:Ae.transferCache})}const $e=(0,o.of)(se).pipe((0,ee.H)(at=>this.handler.handle(at)));if(Ke instanceof Tt||"events"===Ae.observe)return $e;const vt=$e.pipe((0,re.p)(at=>at instanceof yn));switch(Ae.observe||"body"){case"body":switch(se.responseType){case"arraybuffer":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&!(at.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return at.body}));case"blob":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&!(at.body instanceof Blob))throw new Error("Response is not a Blob.");return at.body}));case"text":return vt.pipe((0,V.T)(at=>{if(null!==at.body&&"string"!=typeof at.body)throw new Error("Response is not a string.");return at.body}));default:return vt.pipe((0,V.T)(at=>at.body))}case"response":return vt;default:throw new Error(`Unreachable: unhandled observe type ${Ae.observe}}`)}}delete(Ke,K={}){return this.request("DELETE",Ke,K)}get(Ke,K={}){return this.request("GET",Ke,K)}head(Ke,K={}){return this.request("HEAD",Ke,K)}jsonp(Ke,K){return this.request("JSONP",Ke,{params:(new rt).append(K,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ke,K={}){return this.request("OPTIONS",Ke,K)}patch(Ke,K,Ae={}){return this.request("PATCH",Ke,Se(Ae,K))}post(Ke,K,Ae={}){return this.request("POST",Ke,Se(Ae,K))}put(Ke,K,Ae={}){return this.request("PUT",Ke,Se(Ae,K))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(fe))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const Ne=/^\)\]\}',?\n/;function je(Ce){if(Ce.url)return Ce.url;const Qe="X-Request-URL".toLocaleLowerCase();return Ce.headers.get(Qe)}let Lt=(()=>{class Ce{constructor(){this.fetchImpl=(0,y.WQX)(Mt,{optional:!0})?.fetch??((...Ke)=>globalThis.fetch(...Ke)),this.ngZone=(0,y.WQX)(y.SKi)}handle(Ke){return new B.c(K=>{const Ae=new AbortController;return this.doRequest(Ke,Ae.signal,K).then(we,se=>K.error(new di({error:se}))),()=>Ae.abort()})}doRequest(Ke,K,Ae){var se=this;return(0,u.A)(function*(){const $e=se.createRequestInit(Ke);let vt;try{const Vn=se.ngZone.runOutsideAngular(()=>se.fetchImpl(Ke.urlWithParams,{signal:K,...$e}));(function Oe(Ce){Ce.then(we,we)})(Vn),Ae.next({type:nn.Sent}),vt=yield Vn}catch(Vn){return void Ae.error(new di({error:Vn,status:Vn.status??0,statusText:Vn.statusText,url:Ke.urlWithParams,headers:Vn.headers}))}const at=new be(vt.headers),$t=vt.statusText,hn=je(vt)??Ke.urlWithParams;let gn=vt.status,En=null;if(Ke.reportProgress&&Ae.next(new $n({headers:at,status:gn,statusText:$t,url:hn})),vt.body){const Vn=vt.headers.get("content-length"),Hn=[],ui=vt.body.getReader();let ti,Wn,Oi=0;const Rr=typeof Zone<"u"&&Zone.current;yield se.ngZone.runOutsideAngular((0,u.A)(function*(){for(;;){const{done:Lr,value:Ci}=yield ui.read();if(Lr)break;if(Hn.push(Ci),Oi+=Ci.length,Ke.reportProgress){Wn="text"===Ke.responseType?(Wn??"")+(ti??=new TextDecoder).decode(Ci,{stream:!0}):void 0;const Br=()=>Ae.next({type:nn.DownloadProgress,total:Vn?+Vn:void 0,loaded:Oi,partialText:Wn});Rr?Rr.run(Br):Br()}}}));const ho=se.concatChunks(Hn,Oi);try{const Lr=vt.headers.get("Content-Type")??"";En=se.parseBody(Ke,ho,Lr)}catch(Lr){return void Ae.error(new di({error:Lr,headers:new be(vt.headers),status:vt.status,statusText:vt.statusText,url:je(vt)??Ke.urlWithParams}))}}0===gn&&(gn=En?200:0),gn>=200&&gn<300?(Ae.next(new yn({body:En,headers:at,status:gn,statusText:$t,url:hn})),Ae.complete()):Ae.error(new di({error:En,headers:at,status:gn,statusText:$t,url:hn}))})()}parseBody(Ke,K,Ae){switch(Ke.responseType){case"json":const se=(new TextDecoder).decode(K).replace(Ne,"");return""===se?null:JSON.parse(se);case"text":return(new TextDecoder).decode(K);case"blob":return new Blob([K],{type:Ae});case"arraybuffer":return K.buffer}}createRequestInit(Ke){const K={},Ae=Ke.withCredentials?"include":void 0;if(Ke.headers.forEach((se,$e)=>K[se]=$e.join(",")),Ke.headers.has("Accept")||(K.Accept="application/json, text/plain, */*"),!Ke.headers.has("Content-Type")){const se=Ke.detectContentTypeHeader();null!==se&&(K["Content-Type"]=se)}return{body:Ke.serializeBody(),method:Ke.method,headers:K,credentials:Ae}}concatChunks(Ke,K){const Ae=new Uint8Array(K);let se=0;for(const $e of Ke)Ae.set($e,se),se+=$e.length;return Ae}static{this.\u0275fac=function(K){return new(K||Ce)}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();class Mt{}function we(){}function me(Ce,Qe){return Qe(Ce)}const xe=new y.nKC(""),ut=new y.nKC(""),Rt=new y.nKC("",{providedIn:"root",factory:()=>!0});let Zt=(()=>{class Ce extends fe{constructor(Ke,K){super(),this.backend=Ke,this.injector=K,this.chain=null,this.pendingTasks=(0,y.WQX)(y.TgB),this.contributeToStability=(0,y.WQX)(Rt)}handle(Ke){if(null===this.chain){const K=Array.from(new Set([...this.injector.get(xe),...this.injector.get(ut,[])]));this.chain=K.reduceRight((Ae,se)=>function Pe(Ce,Qe,Ke){return(K,Ae)=>(0,y.N4e)(Ke,()=>Qe(K,se=>Ce(se,Ae)))}(Ae,se,this.injector),me)}if(this.contributeToStability){const K=this.pendingTasks.add();return this.chain(Ke,Ae=>this.backend.handle(Ae)).pipe((0,F.j)(()=>this.pendingTasks.remove(K)))}return this.chain(Ke,K=>this.backend.handle(K))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(de),y.KVO(y.uvJ))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const nt=/^\)\]\}',?\n/;let Ut=(()=>{class Ce{constructor(Ke){this.xhrFactory=Ke}handle(Ke){if("JSONP"===Ke.method)throw new y.wOt(-2800,!1);const K=this.xhrFactory;return(K.\u0275loadImpl?(0,W.H)(K.\u0275loadImpl()):(0,o.of)(null)).pipe((0,U.n)(()=>new B.c(se=>{const $e=K.build();if($e.open(Ke.method,Ke.urlWithParams),Ke.withCredentials&&($e.withCredentials=!0),Ke.headers.forEach((Hn,ui)=>$e.setRequestHeader(Hn,ui.join(","))),Ke.headers.has("Accept")||$e.setRequestHeader("Accept","application/json, text/plain, */*"),!Ke.headers.has("Content-Type")){const Hn=Ke.detectContentTypeHeader();null!==Hn&&$e.setRequestHeader("Content-Type",Hn)}if(Ke.responseType){const Hn=Ke.responseType.toLowerCase();$e.responseType="json"!==Hn?Hn:"text"}const vt=Ke.serializeBody();let at=null;const $t=()=>{if(null!==at)return at;const Hn=$e.statusText||"OK",ui=new be($e.getAllResponseHeaders()),Oi=function zt(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}($e)||Ke.url;return at=new $n({headers:ui,status:$e.status,statusText:Hn,url:Oi}),at},hn=()=>{let{headers:Hn,status:ui,statusText:Oi,url:ti}=$t(),Wn=null;204!==ui&&(Wn=typeof $e.response>"u"?$e.responseText:$e.response),0===ui&&(ui=Wn?200:0);let Rr=ui>=200&&ui<300;if("json"===Ke.responseType&&"string"==typeof Wn){const ho=Wn;Wn=Wn.replace(nt,"");try{Wn=""!==Wn?JSON.parse(Wn):null}catch(Lr){Wn=ho,Rr&&(Rr=!1,Wn={error:Lr,text:Wn})}}Rr?(se.next(new yn({body:Wn,headers:Hn,status:ui,statusText:Oi,url:ti||void 0})),se.complete()):se.error(new di({error:Wn,headers:Hn,status:ui,statusText:Oi,url:ti||void 0}))},gn=Hn=>{const{url:ui}=$t(),Oi=new di({error:Hn,status:$e.status||0,statusText:$e.statusText||"Unknown Error",url:ui||void 0});se.error(Oi)};let En=!1;const xn=Hn=>{En||(se.next($t()),En=!0);let ui={type:nn.DownloadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(ui.total=Hn.total),"text"===Ke.responseType&&$e.responseText&&(ui.partialText=$e.responseText),se.next(ui)},Vn=Hn=>{let ui={type:nn.UploadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(ui.total=Hn.total),se.next(ui)};return $e.addEventListener("load",hn),$e.addEventListener("error",gn),$e.addEventListener("timeout",gn),$e.addEventListener("abort",gn),Ke.reportProgress&&($e.addEventListener("progress",xn),null!==vt&&$e.upload&&$e.upload.addEventListener("progress",Vn)),$e.send(vt),se.next({type:nn.Sent}),()=>{$e.removeEventListener("error",gn),$e.removeEventListener("abort",gn),$e.removeEventListener("load",hn),$e.removeEventListener("timeout",gn),Ke.reportProgress&&($e.removeEventListener("progress",xn),null!==vt&&$e.upload&&$e.upload.removeEventListener("progress",Vn)),$e.readyState!==$e.DONE&&$e.abort()}})))}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(L.N0))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();const jt=new y.nKC(""),Ln=new y.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),en=new y.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Cn{}let He=(()=>{class Ce{constructor(Ke,K,Ae){this.doc=Ke,this.platform=K,this.cookieName=Ae,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ke=this.doc.cookie||"";return Ke!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,L._b)(Ke,this.cookieName),this.lastCookieString=Ke),this.lastToken}static{this.\u0275fac=function(K){return new(K||Ce)(y.KVO(L.qQ),y.KVO(y.Agw),y.KVO(Ln))}}static{this.\u0275prov=y.jDH({token:Ce,factory:Ce.\u0275fac})}}return Ce})();function Be(Ce,Qe){const Ke=Ce.url.toLowerCase();if(!(0,y.WQX)(jt)||"GET"===Ce.method||"HEAD"===Ce.method||Ke.startsWith("http://")||Ke.startsWith("https://"))return Qe(Ce);const K=(0,y.WQX)(Cn).getToken(),Ae=(0,y.WQX)(en);return null!=K&&!Ce.headers.has(Ae)&&(Ce=Ce.clone({headers:Ce.headers.set(Ae,K)})),Qe(Ce)}var Ye=function(Ce){return Ce[Ce.Interceptors=0]="Interceptors",Ce[Ce.LegacyInterceptors=1]="LegacyInterceptors",Ce[Ce.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ce[Ce.NoXsrfProtection=3]="NoXsrfProtection",Ce[Ce.JsonpSupport=4]="JsonpSupport",Ce[Ce.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ce[Ce.Fetch=6]="Fetch",Ce}(Ye||{});function Pn(...Ce){const Qe=[gt,Ut,Zt,{provide:fe,useExisting:Zt},{provide:de,useFactory:()=>(0,y.WQX)(Lt,{optional:!0})??(0,y.WQX)(Ut)},{provide:xe,useValue:Be,multi:!0},{provide:jt,useValue:!0},{provide:Cn,useClass:He}];for(const Ke of Ce)Qe.push(...Ke.\u0275providers);return(0,y.EmA)(Qe)}function yi(Ce){return function Gt(Ce,Qe){return{\u0275kind:Ce,\u0275providers:Qe}}(Ye.Interceptors,Ce.map(Qe=>({provide:xe,useValue:Qe,multi:!0})))}},4438:(tn,Re,v)=>{"use strict";function u(e,t){return Object.is(e,t)}v.d(Re,{bc$:()=>pr,iLQ:()=>By,sZ2:()=>_i,hnV:()=>k1,wjH:()=>Qh,o8S:()=>tu,BIS:()=>mr,gRc:()=>X1,Ql9:()=>UM,OM3:()=>zh,Ocv:()=>GM,Z63:()=>is,aKT:()=>jc,uvJ:()=>Mr,zcH:()=>wl,bkB:()=>il,$GK:()=>Gi,nKC:()=>Bn,zZn:()=>hs,_q3:()=>VE,MKu:()=>jE,xe9:()=>NE,Co$:()=>CC,Vns:()=>Xh,SKi:()=>yo,Xx1:()=>Xr,Agw:()=>Vi,PLl:()=>Ji,rOR:()=>Hc,sFG:()=>lw,_9s:()=>fg,czy:()=>lp,WPN:()=>Vl,kdw:()=>gr,C4Q:()=>kh,NYb:()=>RM,giA:()=>O1,RxE:()=>C1,c1b:()=>xp,gXe:()=>Oo,mal:()=>_y,Tzd:()=>kC,L39:()=>GO,EWP:()=>YO,sbv:()=>sl,Ol2:()=>kw,w6W:()=>US,QZP:()=>SS,Rfq:()=>He,oKB:()=>hl,WQX:()=>xi,naY:()=>tO,Hps:()=>f,QuC:()=>Ro,EmA:()=>lo,Udg:()=>KO,HJs:()=>tR,N4e:()=>Bo,vPA:()=>H,O8t:()=>QO,H3F:()=>D1,H8p:()=>Yr,KH2:()=>Gp,TgB:()=>Lc,wOt:()=>wt,WHO:()=>I1,e01:()=>M1,lNU:()=>Rt,h9k:()=>mv,$MX:()=>ip,ZF7:()=>Ed,Kcf:()=>ub,e5t:()=>pb,UyX:()=>hb,cWb:()=>db,osQ:()=>fb,H5H:()=>lE,Zy3:()=>mn,mq5:()=>RD,JZv:()=>nt,TL3:()=>SO,LfX:()=>Ot,plB:()=>Qc,jNT:()=>ME,zjR:()=>R1,ngT:()=>c,TL$:()=>Si,Tbb:()=>Ln,rcV:()=>hc,nM4:()=>_C,Vt3:()=>Mw,GFd:()=>EC,OA$:()=>Qs,Jv_:()=>Hx,aNF:()=>$x,R7$:()=>Vv,BMQ:()=>Gw,HbH:()=>pD,ZvI:()=>wD,AVh:()=>qw,BUC:()=>ED,vxM:()=>SD,wni:()=>fx,C6U:()=>vx,VBU:()=>xs,FsC:()=>nu,jDH:()=>bi,G2t:()=>Or,$C:()=>ss,EJ8:()=>Xl,rXU:()=>Md,nrm:()=>rE,eu8:()=>oE,bVm:()=>Ay,qex:()=>Sy,k0s:()=>xy,j41:()=>Dy,RV6:()=>OD,xGo:()=>fa,Mr5:()=>sE,KVO:()=>Tr,kS0:()=>oc,QTQ:()=>Hv,bIt:()=>dE,lsd:()=>gx,joV:()=>yf,qSk:()=>Zu,XpG:()=>nx,nI1:()=>r1,bMT:()=>o1,i5U:()=>s1,SdG:()=>rx,NAR:()=>ix,Y8G:()=>Qw,FS9:()=>pE,Mz_:()=>Ry,lJ4:()=>Gx,eq3:()=>Kx,l_i:()=>Xx,sMw:()=>Yx,ziG:()=>Qx,lV:()=>Zx,NyB:()=>_x,mGM:()=>mx,sdS:()=>yx,Dyx:()=>TD,Z7z:()=>AD,Njj:()=>ju,eBV:()=>Yd,npT:()=>gv,f$h:()=>Im,B4B:()=>Tm,n$t:()=>vv,Aen:()=>_c,xc7:()=>Jw,Kam:()=>hE,zvX:()=>aE,DNE:()=>Pw,C5r:()=>a1,EFF:()=>Ix,JRh:()=>gE,SpI:()=>ky,Lme:()=>vE,DH7:()=>Bx,mxI:()=>yE,R50:()=>_E,GBs:()=>px});let y=null,o=!1,B=1;const W=Symbol("SIGNAL");function ee(e){const t=y;return y=e,t}const U={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function L(e){if(o)throw new Error("");if(null===y)return;y.consumerOnSignalRead(e);const t=y.nextProducerIndex++;oe(y),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function tt(e){oe(e);for(let t=0;t0}function oe(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function he(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Le(e){return void 0!==e.producerNode}function et(e){const t=Object.create(nn);t.computation=e;const n=()=>{if(de(t),L(t),t.value===Tt)throw t.error;return t.value};return n[W]=t,n}const It=Symbol("UNSET"),Et=Symbol("COMPUTING"),Tt=Symbol("ERRORED"),nn={...U,value:It,dirty:!0,error:null,equal:u,producerMustRecompute:e=>e.value===It||e.value===Et,producerRecomputeValue(e){if(e.value===Et)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Et;const n=te(e);let r;try{r=e.computation()}catch(l){r=Tt,e.error=l}finally{ve(e,n)}t!==It&&t!==Tt&&r!==Tt&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}};let $n=function Fn(){throw new Error};function yn(){$n()}let mt=null;function gt(e,t){Te()||yn(),e.equal(e.value,t)||(e.value=t,function Lt(e){e.version++,function fe(){B++}(),be(e),mt?.()}(e))}const je={...U,equal:u,value:void 0};const we=()=>{},Oe={...U,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:we};var We=v(4412),Pe=v(1413),xt=v(8359),xe=v(6354);const Rt="https://g.co/ng/security#xss";class wt extends Error{constructor(t,n){super(mn(t,n)),this.code=t}}function mn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function dt(e){return{toString:e}.toString()}const Q="__parameters__";function le(e,t,n){return dt(()=>{const r=function $(e){return function(...n){if(e){const r=e(...n);for(const l in r)this[l]=r[l]}}}(t);function l(...d){if(this instanceof l)return r.apply(this,d),this;const g=new l(...d);return w.annotation=g,w;function w(A,j,q){const Ue=A.hasOwnProperty(Q)?A[Q]:Object.defineProperty(A,Q,{value:[]})[Q];for(;Ue.length<=q;)Ue.push(null);return(Ue[q]=Ue[q]||[]).push(g),A}}return n&&(l.prototype=Object.create(n.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}const nt=globalThis;function jt(e){for(let t in e)if(e[t]===jt)return t;throw Error("Could not find renamed property on target object.")}function On(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ln(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ln).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function wi(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Cn=jt({__forward_ref__:jt});function He(e){return e.__forward_ref__=He,e.toString=function(){return Ln(this())},e}function Be(e){return ye(e)?e():e}function ye(e){return"function"==typeof e&&e.hasOwnProperty(Cn)&&e.__forward_ref__===He}function bi(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Or(e){return{providers:e.providers||[],imports:e.imports||[]}}function ft(e){return un(e,Kn)||un(e,ii)}function Ot(e){return null!==ft(e)}function un(e,t){return e.hasOwnProperty(t)?e[t]:null}function Tn(e){return e&&(e.hasOwnProperty(zn)||e.hasOwnProperty(ci))?e[zn]:null}const Kn=jt({\u0275prov:jt}),zn=jt({\u0275inj:jt}),ii=jt({ngInjectableDef:jt}),ci=jt({ngInjectorDef:jt});class Bn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=bi({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function hn(e){return e&&!!e.\u0275providers}const gn=jt({\u0275cmp:jt}),En=jt({\u0275dir:jt}),xn=jt({\u0275pipe:jt}),Vn=jt({\u0275mod:jt}),Hn=jt({\u0275fac:jt}),ui=jt({__NG_ELEMENT_ID__:jt}),Oi=jt({__NG_ENV_ID__:jt});function ti(e){return"string"==typeof e?e:null==e?"":String(e)}function Ko(e,t){throw new wt(-201,!1)}var Gi=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Gi||{});let Bs;function es(){return Bs}function io(e){const t=Bs;return Bs=e,t}function ma(e,t,n){const r=ft(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Gi.Optional?null:void 0!==t?t:void Ko()}const vo={},jo="__NG_DI_FLAG__",xr="ngTempTokenPath",hr=/\n/gm,Jr="__source";let Ii;function Sr(e){const t=Ii;return Ii=e,t}function Ar(e,t=Gi.Default){if(void 0===Ii)throw new wt(-203,!1);return null===Ii?ma(e,void 0,t):Ii.get(e,t&Gi.Optional?null:void 0,t)}function Tr(e,t=Gi.Default){return(es()||Ar)(Be(e),t)}function xi(e,t=Gi.Default){return Tr(e,js(t))}function js(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Vr(e){const t=[];for(let n=0;nArray.isArray(n)?oo(n,t):t(n))}function jr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function so(e,t,n){let r=Fo(e,t);return r>=0?e[1|r]=n:(r=~r,function Es(e,t,n,r){let l=e.length;if(l==t)e.push(n,r);else if(1===l)e.push(r,e[0]),e[0]=n;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function aa(e,t){const n=Fo(e,t);if(n>=0)return e[1|n]}function Fo(e,t){return function Oa(e,t,n){let r=0,l=e.length>>n;for(;l!==r;){const d=r+(l-r>>1),g=e[d<t?l=d:r=d+1}return~(l<t){g=d-1;break}}}for(;d-1){let d;for(;++ld?"":l[q+1].toLowerCase(),2&r&&j!==Ue){if(Y(r))return!1;g=!0}}}}else{if(!g&&!Y(r)&&!Y(A))return!1;if(g&&Y(A))continue;g=!1,r=A|1&r}}return Y(r)||g}function Y(e){return!(1&e)}function k(e,t,n,r){if(null===t)return-1;let l=0;if(r||!n){let d=!1;for(;l-1)for(n++;n0?'="'+w+'"':"")+"]"}else 8&r?l+="."+g:4&r&&(l+=" "+g);else""!==l&&!Y(g)&&(t+=ya(d,l),l=""),r=g,d=d||!Y(r);n++}return""!==l&&(t+=ya(d,l)),t}function xs(e){return dt(()=>{const t=Na(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===$s.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Oo.Emulated,styles:e.styles||sr,_:null,schemas:e.schemas||null,tView:null,id:""};la(n);const r=e.dependencies;return n.directiveDefs=Lo(r,!1),n.pipeDefs=Lo(r,!0),n.id=function ca(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const l of n)t=Math.imul(31,t)+l.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function nr(e){return zi(e)||po(e)}function Ea(e){return null!==e}function ss(e){return dt(()=>({type:e.type,bootstrap:e.bootstrap||sr,declarations:e.declarations||sr,imports:e.imports||sr,exports:e.exports||sr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function zs(e,t){if(null==e)return Qo;const n={};for(const r in e)if(e.hasOwnProperty(r)){const l=e[r];let d,g,w=fo.None;Array.isArray(l)?(w=l[0],d=l[1],g=l[2]??d):(d=l,g=l),t?(n[d]=w!==fo.None?[r,w]:r,t[d]=g):n[d]=r}return n}function nu(e){return dt(()=>{const t=Na(e);return la(t),t})}function Xl(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function zi(e){return e[gn]||null}function po(e){return e[En]||null}function Ni(e){return e[xn]||null}function Ro(e){const t=zi(e)||po(e)||Ni(e);return null!==t&&t.standalone}function _o(e,t){const n=e[Vn]||null;if(!n&&!0===t)throw new Error(`Type ${Ln(e)} does not have '\u0275mod' property.`);return n}function Na(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Qo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||sr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:zs(e.inputs,t),outputs:zs(e.outputs),debugInfo:null}}function la(e){e.features?.forEach(t=>t(e))}function Lo(e,t){if(!e)return null;const n=t?Ni:nr;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Ea)}function lo(e){return{\u0275providers:e}}function hl(...e){return{\u0275providers:Al(0,e),\u0275fromNgModule:!0}}function Al(e,...t){const n=[],r=new Set;let l;const d=g=>{n.push(g)};return oo(t,g=>{const w=g;fl(w,d,[],r)&&(l||=[],l.push(w))}),void 0!==l&&Yl(l,d),n}function Yl(e,t){for(let n=0;n{t(d,r)})}}function fl(e,t,n,r){if(!(e=Be(e)))return!1;let l=null,d=Tn(e);const g=!d&&zi(e);if(d||g){if(g&&!g.standalone)return!1;l=e}else{const A=e.ngModule;if(d=Tn(A),!d)return!1;l=A}const w=r.has(l);if(g){if(w)return!1;if(r.add(l),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const j of A)fl(j,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!w){let j;r.add(l);try{oo(d.imports,q=>{fl(q,t,n,r)&&(j||=[],j.push(q))})}finally{}void 0!==j&&Yl(j,t)}if(!w){const j=ro(l)||(()=>new l);t({provide:l,useFactory:j,deps:sr},l),t({provide:rs,useValue:l,multi:!0},l),t({provide:is,useValue:()=>Tr(l),multi:!0},l)}const A=d.providers;if(null!=A&&!w){const j=e;ml(A,q=>{t(q,j)})}}}return l!==e&&void 0!==e.providers}function ml(e,t){for(let n of e)hn(n)&&(n=n.\u0275providers),Array.isArray(n)?ml(n,t):t(n)}const Tl=jt({provide:String,useValue:jt});function Ss(e){return null!==e&&"object"==typeof e&&Tl in e}function as(e){return"function"==typeof e}const Yr=new Bn(""),ko={},iu={};let To;function ua(){return void 0===To&&(To=new qr),To}class Mr{}class Pa extends Mr{get destroyed(){return this._destroyed}constructor(t,n,r,l){super(),this.parent=n,this.source=r,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ha(t,g=>this.processProvider(g)),this.records.set(ao,Ws(void 0,this)),l.has("environment")&&this.records.set(Mr,Ws(void 0,this));const d=this.records.get(Yr);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(rs,sr,Gi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ee(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ee(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Sr(this),r=io(void 0);try{return t()}finally{Sr(n),io(r)}}get(t,n=vo,r=Gi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Oi))return t[Oi](this);r=js(r);const d=Sr(this),g=io(void 0);try{if(!(r&Gi.SkipSelf)){let A=this.records.get(t);if(void 0===A){const j=function Ya(e){return"function"==typeof e||"object"==typeof e&&e instanceof Bn}(t)&&ft(t);A=j&&this.injectableDefInScope(j)?Ws(da(t),ko):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(r&Gi.Self?ua():this.parent).get(t,n=r&Gi.Optional&&n===vo?null:n)}catch(w){if("NullInjectorError"===w.name){if((w[xr]=w[xr]||[]).unshift(Ln(t)),d)throw w;return function va(e,t,n,r){const l=e[xr];throw t[Jr]&&l.unshift(t[Jr]),e.message=function ws(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=Ln(t);if(Array.isArray(t))l=t.map(Ln).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let w=t[g];d.push(g+":"+("string"==typeof w?JSON.stringify(w):Ln(w)))}l=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${l}]: ${e.replace(hr,"\n ")}`}("\n"+e.message,l,n,r),e.ngTokenPath=l,e[xr]=null,e}(w,t,"R3InjectorError",this.source)}throw w}finally{io(g),Sr(d)}}resolveInjectorInitializers(){const t=ee(null),n=Sr(this),r=io(void 0);try{const d=this.get(is,sr,Gi.Self);for(const g of d)g()}finally{Sr(n),io(r),ee(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Ln(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new wt(205,!1)}processProvider(t){let n=as(t=Be(t))?t:Be(t&&t.provide);const r=function fr(e){return Ss(e)?Ws(void 0,e.useValue):Ws(As(e),ko)}(t);if(!as(t)&&!0===t.multi){let l=this.records.get(n);l||(l=Ws(void 0,ko,!0),l.factory=()=>Vr(l.multi),this.records.set(n,l)),n=t,l.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ee(null);try{return n.value===ko&&(n.value=iu,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gs(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ee(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Be(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function da(e){const t=ft(e),n=null!==t?t.factory:ro(e);if(null!==n)return n;if(e instanceof Bn)throw new wt(204,!1);if(e instanceof Function)return function ls(e){if(e.length>0)throw new wt(204,!1);const n=function bn(e){return e&&(e[Kn]||e[ii])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new wt(204,!1)}function As(e,t,n){let r;if(as(e)){const l=Be(e);return ro(l)||da(l)}if(Ss(e))r=()=>Be(e.useValue);else if(function Da(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Vr(e.deps||[]));else if(function Ca(e){return!(!e||!e.useExisting)}(e))r=()=>Tr(Be(e.useExisting));else{const l=Be(e&&(e.useClass||e.provide));if(!function Hr(e){return!!e.deps}(e))return ro(l)||da(l);r=()=>new l(...Vr(e.deps))}return r}function Ws(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ha(e,t){for(const n of e)Array.isArray(n)?ha(n,t):n&&hn(n)?ha(n.\u0275providers,t):t(n)}function Bo(e,t){e instanceof Pa&&e.assertNotDestroyed();const r=Sr(e),l=io(void 0);try{return t()}finally{Sr(r),io(l)}}function Ks(){return void 0!==es()||null!=function ns(){return Ii}()}function Qi(e){if(!Ks())throw new wt(-203,!1)}const St=0,Ht=1,cn=2,kn=3,fn=4,Mn=5,Nn=6,Qn=7,An=8,ri=9,hi=10,Rn=11,ki=12,Ai=13,ar=14,Ri=15,rr=16,Qr=17,Cr=18,Co=19,oi=20,Yn=21,ir=22,dr=23,Jn=25,eo=1,mo=7,Zo=9,zr=10;var vi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(vi||{});function kr(e){return Array.isArray(e)&&"object"==typeof e[eo]}function to(e){return Array.isArray(e)&&!0===e[eo]}function Ts(e){return!!(4&e.flags)}function Uo(e){return e.componentOffset>-1}function Ei(e){return!(1&~e.flags)}function Zr(e){return!!e.template}function cs(e){return!!(512&e[cn])}class ds{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function xa(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Qs(){return Ml}function Ml(e){return e.type.prototype.ngOnChanges&&(e.setInput=Rs),Fa}function Fa(){const e=rf(this),t=e?.current;if(t){const n=e.previous;if(n===Qo)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Rs(e,t,n,r,l){const d=this.declaredInputs[r],g=rf(e)||function Qp(e,t){return e[Jl]=t}(e,{previous:Qo,current:null}),w=g.current||(g.current={}),A=g.previous,j=A[d];w[d]=new ds(j&&j.currentValue,n,A===Qo),xa(e,t,l,n)}Qs.ngInherit=!0;const Jl="__ngSimpleChanges__";function rf(e){return e[Jl]||null}const La=function(e,t,n){},af="svg";function vr(e){for(;Array.isArray(e);)e=e[St];return e}function Cc(e,t){return vr(t[e])}function Is(e,t){return vr(t[e.index])}function vl(e,t){return e.data[t]}function Dc(e,t){return e[t]}function Zs(e,t){const n=t[e];return kr(n)?n:n[St]}function Ua(e){return!(128&~e[cn])}function Js(e,t){return null==t?null:e[t]}function Nu(e){e[Qr]=0}function Pu(e){1024&e[cn]||(e[cn]|=1024,Ua(e)&&xc(e))}function ou(e){return!!(9216&e[cn]||e[dr]?.dirty)}function Wd(e){e[hi].changeDetectionScheduler?.notify(8),64&e[cn]&&(e[cn]|=1024),ou(e)&&xc(e)}function xc(e){e[hi].changeDetectionScheduler?.notify(0);let t=Za(e);for(;null!==t&&!(8192&t[cn])&&(t[cn]|=8192,Ua(t));)t=Za(t)}function Sc(e,t){if(!(256&~e[cn]))throw new wt(911,!1);null===e[Yn]&&(e[Yn]=[]),e[Yn].push(t)}function Za(e){const t=e[kn];return to(t)?t[kn]:t}const Xi={lFrame:mf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Fu=!1;function Uu(){return Xi.bindingsEnabled}function Ol(){return null!==Xi.skipHydrationRootTNode}function _n(){return Xi.lFrame.lView}function lr(){return Xi.lFrame.tView}function Yd(e){return Xi.lFrame.contextLView=e,e[An]}function ju(e){return Xi.lFrame.contextLView=null,e}function yr(){let e=Hu();for(;null!==e&&64===e.type;)e=e.parent;return e}function Hu(){return Xi.lFrame.currentTNode}function ja(e,t){const n=Xi.lFrame;n.currentTNode=e,n.isParent=t}function Qd(){return Xi.lFrame.isParent}function $u(){Xi.lFrame.isParent=!1}function Wu(){return Fu}function Zd(e){Fu=e}function Wo(){const e=Xi.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ja(){return Xi.lFrame.bindingIndex++}function yl(e){const t=Xi.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Ku(e,t){const n=Xi.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xu(t)}function Xu(e){Xi.lFrame.currentDirectiveIndex=e}function ff(e){const t=Xi.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Yu(){return Xi.lFrame.currentQueryIndex}function Jd(e){Xi.lFrame.currentQueryIndex=e}function Gg(e){const t=e[Ht];return 2===t.type?t.declTNode:1===t.type?e[Mn]:null}function tm(e,t,n){if(n&Gi.SkipSelf){let l=t,d=e;for(;!(l=l.parent,null!==l||n&Gi.Host||(l=Gg(d),null===l||(d=d[ar],10&l.type))););if(null===l)return!1;t=l,e=d}const r=Xi.lFrame=su();return r.currentTNode=t,r.lView=e,!0}function pf(e){const t=su(),n=e[Ht];Xi.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function su(){const e=Xi.lFrame,t=null===e?null:e.child;return null===t?mf(e):t}function mf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function gf(){const e=Xi.lFrame;return Xi.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const vf=gf;function Tc(){const e=gf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Jo(){return Xi.lFrame.selectedIndex}function kl(e){Xi.lFrame.selectedIndex=e}function co(){const e=Xi.lFrame;return vl(e.tView,e.selectedIndex)}function Zu(){Xi.lFrame.currentNamespace=af}function yf(){!function nm(){Xi.lFrame.currentNamespace=null}()}let wf=!0;function au(){return wf}function qa(e){wf=e}function Ic(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[A]<0&&(e[Qr]+=65536),(w>14>16&&(3&e[cn])===t&&(e[cn]+=16384,im(w,d)):im(w,d)}const Oc=-1;class el{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}const nc={};class Nl{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=js(r);const l=this.injector.get(t,nc,r);return l!==nc||n===nc?l:this.parentInjector.get(t,n,r)}}function ed(e){return e!==Oc}function lu(e){return 32767&e}function cu(e,t){let n=function eh(e){return e>>16}(e),r=t;for(;n>0;)r=r[ar],n--;return r}let td=!0;function nd(e){const t=td;return td=e,t}const Sf=255,id=5;let th=0;const tl={};function Rc(e,t){const n=Af(e,t);if(-1!==n)return n;const r=t[Ht];r.firstCreatePass&&(e.injectorIndex=t.length,nh(r.data,e),nh(t,null),nh(r.blueprint,null));const l=rd(e,t),d=e.injectorIndex;if(ed(l)){const g=lu(l),w=cu(l,t),A=w[Ht].data;for(let j=0;j<8;j++)t[d+j]=w[g+j]|A[g+j]}return t[d+8]=l,d}function nh(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Af(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function rd(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,l=t;for(;null!==l;){if(r=If(l),null===r)return Oc;if(n++,l=l[ar],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Oc}function rc(e,t,n){!function ic(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ui)&&(r=n[ui]),null==r&&(r=n[ui]=th++);const l=r&Sf;t.data[e+(l>>id)]|=1<=0?t&Sf:ld:t}(n);if("function"==typeof d){if(!tm(t,e,r))return r&Gi.Host?Sa(l,0,r):sd(t,n,r,l);try{let g;if(g=d(r),null!=g||r&Gi.Optional)return g;Ko()}finally{vf()}}else if("number"==typeof d){let g=null,w=Af(e,t),A=Oc,j=r&Gi.Host?t[Ri][Mn]:null;for((-1===w||r&Gi.SkipSelf)&&(A=-1===w?rd(e,t):t[w+8],A!==Oc&&uu(r,!1)?(g=t[Ht],w=lu(A),t=cu(A,t)):w=-1);-1!==w;){const q=t[Ht];if(ad(d,w,q.data)){const Ue=lm(w,t,n,g,r,j);if(Ue!==tl)return Ue}A=t[w+8],A!==Oc&&uu(r,t[Ht].data[w+8]===j)&&ad(d,w,t)?(g=q,w=lu(A),t=cu(A,t)):w=-1}}return l}function lm(e,t,n,r,l,d){const g=t[Ht],w=g.data[e+8],q=ih(w,g,n,null==r?Uo(w)&&td:r!=g&&!!(3&w.type),l&Gi.Host&&d===w);return null!==q?nl(t,g,q,w):tl}function ih(e,t,n,r,l){const d=e.providerIndexes,g=t.data,w=1048575&d,A=e.directiveStart,q=d>>20,_t=l?w+q:e.directiveEnd;for(let kt=r?w:w+q;kt<_t;kt++){const qt=g[kt];if(kt=A&&qt.type===n)return kt}if(l){const kt=g[A];if(kt&&Zr(kt)&&kt.type===n)return A}return null}function nl(e,t,n,r){let l=e[n];const d=t.data;if(function Cf(e){return e instanceof el}(l)){const g=l;g.resolving&&function Lr(e,t){throw t&&t.join(" > "),new wt(-200,e)}(function Wn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ti(e)}(d[n]));const w=nd(g.canSeeViewProviders);g.resolving=!0;const j=g.injectImpl?io(g.injectImpl):null;tm(e,r,Gi.Default);try{l=e[n]=g.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ql(e,t,n){const{ngOnChanges:r,ngOnInit:l,ngDoCheck:d}=t.type.prototype;if(r){const g=Ml(t);(n.preOrderHooks??=[]).push(e,g),(n.preOrderCheckHooks??=[]).push(e,g)}l&&(n.preOrderHooks??=[]).push(0-e,l),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==j&&io(j),nd(w),g.resolving=!1,vf()}}return l}function ad(e,t,n){return!!(n[t+(e>>id)]&1<{const t=e.prototype.constructor,n=t[Hn]||$a(t),r=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==r;){const d=l[Hn]||$a(l);if(d&&d!==n)return d;l=Object.getPrototypeOf(l)}return d=>new d})}function $a(e){return ye(e)?()=>{const t=$a(Be(e));return t&&t()}:ro(e)}function If(e){const t=e[Ht],n=t.type;return 2===n?t.declTNode:1===n?e[Mn]:null}function oc(e){return function od(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let l=0;for(;lTr(ao)})}static{this.__NG_ELEMENT_ID__=-1}}new Bn("").__NG_ELEMENT_ID__=e=>{const t=yr();if(null===t)throw new wt(204,!1);if(2&t.type)return t.value;if(e&Gi.Optional)return null;throw new wt(204,!1)};function uh(e){return e.ngOriginalError}const Nf=!0;let ud=(()=>{class e{static{this.__NG_ELEMENT_ID__=Pf}static{this.__NG_ENV_ID__=n=>n}}return e})();class pm extends ud{constructor(t){super(),this._lView=t}onDestroy(t){return Sc(this._lView,t),()=>function Va(e,t){if(null===e[Yn])return;const n=e[Yn].indexOf(t);-1!==n&&e[Yn].splice(n,1)}(this._lView,t)}}function Pf(){return new pm(_n())}let Lc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new We.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new e})}}return e})();const il=class Bc extends Pe.B{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,Ks()&&(this.destroyRef=xi(ud,{optional:!0})??void 0,this.pendingTasks=xi(Lc,{optional:!0})??void 0)}emit(t){const n=ee(null);try{super.next(t)}finally{ee(n)}}subscribe(t,n,r){let l=t,d=n||(()=>null),g=r;if(t&&"object"==typeof t){const A=t;l=A.next?.bind(A),d=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(d=this.wrapInTimeout(d),l&&(l=this.wrapInTimeout(l)),g&&(g=this.wrapInTimeout(g)));const w=super.subscribe({next:l,error:d,complete:g});return t instanceof xt.yU&&t.add(w),w}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{t(n),void 0!==r&&this.pendingTasks?.remove(r)})}}};function $r(...e){}function Lf(e){let t,n;function r(){e=$r;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function ac(e){return queueMicrotask(()=>e()),()=>{e=$r}}const bl="isAngularZone",lc=bl+"_ID";let qo=0;class yo{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new il(!1),this.onMicrotaskEmpty=new il(!1),this.onStable=new il(!1),this.onError=new il(!1);const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:l=!1,scheduleInRootZone:d=Nf}=t;if(typeof Zone>"u")throw new wt(908,!1);Zone.assertZonePatched();const g=this;g._nesting=0,g._outer=g._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(g._inner=g._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(g._inner=g._inner.fork(Zone.longStackTraceZoneSpec)),g.shouldCoalesceEventChangeDetection=!l&&r,g.shouldCoalesceRunChangeDetection=l,g.callbackScheduled=!1,g.scheduleInRootZone=d,function mm(e){const t=()=>{!function hd(e){function t(){Lf(()=>{e.callbackScheduled=!1,dh(e),e.isCheckStableRunning=!0,dd(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),dh(e))}(e)},n=qo++;e._inner=e._inner.fork({name:"angular",properties:{[bl]:!0,[lc]:n,[lc+n]:!0},onInvokeTask:(r,l,d,g,w,A)=>{if(function Uc(e){return hh(e,"__ignore_ng_zone__")}(A))return r.invokeTask(d,g,w,A);try{return hu(e),r.invokeTask(d,g,w,A)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||e.shouldCoalesceRunChangeDetection)&&t(),Uf(e)}},onInvoke:(r,l,d,g,w,A,j)=>{try{return hu(e),r.invoke(d,g,w,A,j)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function cc(e){return hh(e,"__scheduler_tick__")}(A)&&t(),Uf(e)}},onHasTask:(r,l,d,g)=>{r.hasTask(d,g),l===d&&("microTask"==g.change?(e._hasPendingMicrotasks=g.microTask,dh(e),dd(e)):"macroTask"==g.change&&(e.hasPendingMacrotasks=g.macroTask))},onHandleError:(r,l,d,g)=>(r.handleError(d,g),e.runOutsideAngular(()=>e.onError.emit(g)),!1)})}(g)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(bl)}static assertInAngularZone(){if(!yo.isInAngularZone())throw new wt(909,!1)}static assertNotInAngularZone(){if(yo.isInAngularZone())throw new wt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,l){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+l,t,Bf,$r,$r);try{return d.runTask(g,n,r)}finally{d.cancelTask(g)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Bf={};function dd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function dh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function hu(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Uf(e){e._nesting--,dd(e)}class fd{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new il,this.onMicrotaskEmpty=new il,this.onStable=new il,this.onError=new il}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,l){return t.apply(n,r)}}function hh(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class wl{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&uh(t);for(;n&&uh(n);)n=uh(n);return n||null}}const Vf=new Bn("",{providedIn:"root",factory:()=>{const e=xi(yo),t=xi(wl);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Zg(){return El(yr(),_n())}function El(e,t){return new jc(Is(e,t))}let jc=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Zg}}return e})();function md(e){return e instanceof jc?e.nativeElement:e}function Hf(){return this._results[Symbol.iterator]()}class Hc{get changes(){return this._changes??=new il}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Hc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Hf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function Er(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function oa(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rDi}),Di="ng",Ji=new Bn(""),Vi=new Bn("",{providedIn:"platform",factory:()=>"unknown"}),pr=new Bn(""),mr=new Bn("",{providedIn:"root",factory:()=>qn().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let pu=()=>null;function ym(e,t,n=!1){return pu(e,t,n)}const tv=new Bn("",{providedIn:"root",factory:()=>!1});let tp,np;function wd(e){return function Em(){if(void 0===tp&&(tp=null,nt.trustedTypes))try{tp=nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return tp}()?.createHTML(e)||e}function Cm(){if(void 0===np&&(np=null,nt.trustedTypes))try{np=nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return np}function rv(e){return Cm()?.createHTML(e)||e}function Dm(e){return Cm()?.createScriptURL(e)||e}class gu{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Rt})`}}class ob extends gu{getTypeName(){return"HTML"}}class sb extends gu{getTypeName(){return"Style"}}class sv extends gu{getTypeName(){return"Script"}}class ab extends gu{getTypeName(){return"URL"}}class lb extends gu{getTypeName(){return"ResourceURL"}}function hc(e){return e instanceof gu?e.changingThisBreaksApplicationSecurity:e}function Ed(e,t){const n=function cb(e){return e instanceof gu&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Rt})`)}return n===t}function ub(e){return new ob(e)}function db(e){return new sb(e)}function hb(e){return new sv(e)}function fb(e){return new ab(e)}function pb(e){return new lb(e)}class mb{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(wd(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}}class gb{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=wd(t),n}}const _b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ip(e){return(e=String(e)).match(_b)?e:"unsafe:"+e}function fc(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ah(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const lv=fc("area,br,col,hr,img,wbr"),cv=fc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),uv=fc("rp,rt"),Sm=Ah(lv,Ah(cv,fc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ah(uv,fc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ah(uv,cv)),Am=fc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dv=Ah(Am,fc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),fc("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),bb=fc("script,style,template");class wb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,l=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)l.push(n),n=Db(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let d=Cb(n);if(d){n=d;break}n=l.pop()}return this.buf.join("")}startElement(t){const n=hv(t).toLowerCase();if(!Sm.hasOwnProperty(n))return this.sanitizedSomething=!0,!bb.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let l=0;l"),!0}endElement(t){const n=hv(t).toLowerCase();Sm.hasOwnProperty(n)&&!lv.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(pv(t))}}function Cb(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw fv(t);return t}function Db(e){const t=e.firstChild;if(t&&function Eb(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw fv(t);return t}function hv(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function fv(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const xb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sb=/([^\#-~ |!])/g;function pv(e){return e.replace(/&/g,"&").replace(xb,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Sb,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let rp;function mv(e,t){let n=null;try{rp=rp||function av(e){const t=new gb(e);return function vb(){try{return!!(new window.DOMParser).parseFromString(wd(""),"text/html")}catch{return!1}}()?new mb(t):t}(e);let r=t?String(t):"";n=rp.getInertBodyElement(r);let l=5,d=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=d,d=n.innerHTML,n=rp.getInertBodyElement(r)}while(r!==d);return wd((new wb).sanitizeChildren(Cd(n)||n))}finally{if(n){const r=Cd(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function Cd(e){return"content"in e&&function op(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Vl=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Vl||{});function gv(e){const t=Th();return t?rv(t.sanitize(Vl.HTML,e)||""):Ed(e,"HTML")?rv(hc(e)):mv(qn(),ti(e))}function Tm(e){const t=Th();return t?t.sanitize(Vl.URL,e)||"":Ed(e,"URL")?hc(e):ip(ti(e))}function Im(e){const t=Th();if(t)return Dm(t.sanitize(Vl.RESOURCE_URL,e)||"");if(Ed(e,"ResourceURL"))return Dm(hc(e));throw new wt(904,!1)}function vv(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Im:Tm}(t,n)(e)}function Th(){const e=_n();return e&&e[hi].sanitizer}const Rb=/^>|^->||--!>|)/g,Nb="\u200b$1\u200b";function bo(e){return e instanceof Function?e():e}function na(e){return"browser"===(e??xi(hs)).get(Vi)}var lp=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(lp||{});let _u;function cp(e,t){return _u(e,t)}function pc(e,t,n,r,l){if(null!=r){let d,g=!1;to(r)?d=r:kr(r)&&(g=!0,r=r[St]);const w=vr(r);0===e&&null!==n?null==l?Bm(t,n,w):yu(t,n,w,l||null,!0):1===e&&null!==n?yu(t,n,w,l||null,!0):2===e?function Ih(e,t,n){e.removeChild(null,t,n)}(t,w,g):3===e&&t.destroyNode(w),null!=d&&function Zb(e,t,n,r,l){const d=n[mo];d!==vr(n)&&pc(t,e,r,d,l);for(let w=zr;wt.replace(kb,Nb))}(t))}function up(e,t,n){return e.createElement(t,n)}function jl(e,t){t[hi].changeDetectionScheduler?.notify(9),fp(e,t,t[Rn],2,null,null)}function Tv(e,t){const n=e[Zo],r=t[kn];(kr(r)||t[Ri]!==r[kn][Ri])&&(e[cn]|=vi.HasTransplantedViews),null===n?e[Zo]=[t]:n.push(t)}function Pm(e,t){const n=e[Zo],r=n.indexOf(t);n.splice(r,1)}function Td(e,t){if(e.length<=zr)return;const n=zr+t,r=e[n];if(r){const l=r[rr];null!==l&&l!==e&&Pm(l,r),t>0&&(e[n-1][fn]=r[fn]);const d=xo(e,zr+t);!function Wb(e,t){jl(e,t),t[St]=null,t[Mn]=null}(r[Ht],r);const g=d[Cr];null!==g&&g.detachView(d[Ht]),r[kn]=null,r[fn]=null,r[cn]&=-129}return r}function dp(e,t){if(!(256&t[cn])){const n=t[Rn];n.destroyNode&&fp(e,t,n,3,null,null),function Av(e){let t=e[ki];if(!t)return Fm(e[Ht],e);for(;t;){let n=null;if(kr(t))n=t[ki];else{const r=t[zr];r&&(n=r)}if(!n){for(;t&&!t[fn]&&t!==e;)kr(t)&&Fm(t[Ht],t),t=t[kn];null===t&&(t=e),kr(t)&&Fm(t[Ht],t),n=t&&t[fn]}t=n}}(t)}}function Fm(e,t){if(256&t[cn])return;const n=ee(null);try{t[cn]&=-129,t[cn]|=256,t[dr]&&bt(t[dr]),function Xb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[g]():r[-g].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[Qn]=null);const l=t[Yn];if(null!==l){t[Yn]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[r.directiveStart+l];if(d===Oo.None||d===Oo.Emulated)return null}return Is(r,n)}}(e,t.parent,n)}function yu(e,t,n,r,l){e.insertBefore(t,n,r,l)}function Bm(e,t,n){e.appendChild(t,n)}function Um(e,t,n,r,l){null!==r?yu(e,t,n,r,l):Bm(e,t,n)}function Hl(e,t){return e.parentNode(t)}function Iv(e,t,n){return Ov(e,t,n)}let Vm,Ov=function Mv(e,t,n){return 40&e.type?Is(e,n):null};function hp(e,t,n,r){const l=Lm(e,r,t),d=t[Rn],w=Iv(r.parent||t[Mn],r,t);if(null!=l)if(Array.isArray(n))for(let A=0;AJn&&jv(e,t,Jn,!1),La(g?2:0,l),n(r,l)}finally{kl(d),La(g?3:1,l)}}function zm(e,t,n){if(Ts(t)){const r=ee(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function Cu(e,t,n,r,l){for(let d in t){if(!t.hasOwnProperty(d))continue;const g=t[d];if(void 0===g)continue;r??={};let w,A=fo.None;Array.isArray(g)?(w=g[0],A=g[1]):w=g;let j=d;if(null!==l){if(!l.hasOwnProperty(d))continue;j=l[d]}0===e?mp(r,n,j,w,A):mp(r,n,j,w)}return r}function mp(e,t,n,r,l){let d;e.hasOwnProperty(n)?(d=e[n]).push(t,r):d=e[n]=[t,r],void 0!==l&&d.push(l)}function Ta(e,t,n,r,l,d,g,w){const A=Is(t,n);let q,j=t.inputs;!w&&null!=j&&(q=j[r])?(qm(e,n,q,r,l),Uo(t)&&function r0(e,t){const n=Zs(t,e);16&n[cn]||(n[cn]|=64)}(n,t.index)):3&t.type&&(r=function Yv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),l=null!=g?g(l,t.value||"",r):l,d.setProperty(A,r,l))}function Xm(e,t,n,r){if(Uu()){const l=null===r?null:{"":-1},d=function iC(e,t){const n=e.directiveRegistry;let r=null,l=null;if(n)for(let d=0;d0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=w&&g.push(w),g.push(n,r,d)}}(e,t,r,Mh(e,n,l.hostVars,qi),l)}function zl(e,t,n,r,l,d){const g=Is(e,t);!function Zm(e,t,n,r,l,d,g){if(null==d)e.removeAttribute(t,l,n);else{const w=null==g?ti(d):g(d,r||"",l);e.setAttribute(t,l,w,n)}}(t[Rn],g,d,e.value,n,r,l)}function e_(e,t,n,r,l,d){const g=d[t];if(null!==g)for(let w=0;w0&&(n[l-1][fn]=t),r{xc(e.lView)},consumerOnSignalRead(){this.lView[dr]=this}},_0={...U,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Za(e.lView);for(;t&&!d_(t[Ht]);)t=Za(t);t&&Pu(t)},consumerOnSignalRead(){this.lView[dr]=this}};function d_(e){return 2!==e.type}const y0=100;function kd(e,t=!0,n=0){const r=e[hi],l=r.rendererFactory;l.begin?.();try{!function _p(e,t){const n=Wu();try{Zd(!0),ng(e,t);let r=0;for(;ou(e);){if(r===y0)throw new wt(103,!1);r++,ng(e,1)}}finally{Zd(n)}}(e,n)}catch(g){throw t&&vp(e,g),g}finally{l.end?.(),r.inlineEffectRunner?.flush()}}function b0(e,t,n,r){const l=t[cn];if(!(256&~l))return;t[hi].inlineEffectRunner?.flush(),pf(t);let w=!0,A=null,j=null;d_(e)?(j=function f0(e){return e[dr]??function p0(e){const t=u_.pop()??Object.create(g0);return t.lView=e,t}(e)}(t),A=te(j)):null===function re(){return y}()?(w=!1,j=function v0(e){const t=e[dr]??Object.create(_0);return t.lView=e,t}(t),A=te(j)):t[dr]&&(bt(t[dr]),t[dr]=null);try{Nu(t),function Gu(e){return Xi.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&zv(e,t,n,2,r);const q=!(3&~l);if(q){const kt=e.preOrderCheckHooks;null!==kt&&Mc(t,kt,null)}else{const kt=e.preOrderHooks;null!==kt&&ec(t,kt,0,null),qd(t,0)}if(function w0(e){for(let t=h(e);null!==t;t=m(t)){if(!(t[cn]&vi.HasTransplantedViews))continue;const n=t[Zo];for(let r=0;r-1&&(Td(t,r),xo(n,r))}this._attachedToViewContainer=!1}dp(this._lView[Ht],this._lView)}onDestroy(t){Sc(this._lView,t)}markForCheck(){Oh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[cn]&=-129}reattach(){Wd(this._lView),this._lView[cn]|=128}detectChanges(){this._lView[cn]|=1024,kd(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new wt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=cs(this._lView),n=this._lView[rr];null!==n&&!t&&Pm(n,this._lView),jl(this._lView[Ht],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new wt(902,!1);this._appRef=t;const n=cs(this._lView),r=this._lView[rr];null!==r&&!n&&Tv(r,this._lView),Wd(this._lView)}}let kh=(()=>{class e{static{this.__NG_ELEMENT_ID__=x0}}return e})();const C0=kh,D0=class extends C0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const l=Du(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Rh(l)}};function x0(){return yp(yr(),_n())}function yp(e,t){return 4&e.type?new D0(t,e,El(e,t)):null}let V_=()=>null;function Iu(e,t){return V_(e,t)}class Ud{}const $h=new Bn("",{providedIn:"root",factory:()=>!1}),j_=new Bn(""),hg=new Bn("");class ow{}class H_{}class aw{resolveComponentFactory(t){throw function sw(e){const t=Error(`No component factory found for ${Ln(e)}.`);return t.ngComponent=e,t}(t)}}class zh{static{this.NULL=new aw}}class fg{}let lw=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function cw(){const e=_n(),n=Zs(yr().index,e);return(kr(n)?n:e)[Rn]}()}}return e})(),z_=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>null})}}return e})();function Qc(e){return!!_o(e)}function Gh(e,t,n){let r=n?e.styles:null,l=n?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&Bv(e,n,d.join(" "))}}(_t,bs,qt,r),void 0!==n&&function Q_(e,t,n){const r=e.projection=[];for(let l=0;l{class e{static{this.__NG_ELEMENT_ID__=_w}}return e})();function _w(){return ey(yr(),_n())}const Z_=xp,J_=class extends Z_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return El(this._hostTNode,this._hostLView)}get injector(){return new Vo(this._hostTNode,this._hostLView)}get parentInjector(){const t=rd(this._hostTNode,this._hostLView);if(ed(t)){const n=cu(t,this._hostLView),r=lu(t);return new Vo(n[Ht].data[r+8],n)}return new Vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=q_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-zr}createEmbeddedView(t,n,r){let l,d;"number"==typeof r?l=r:null!=r&&(l=r.index,d=r.injector);const g=Iu(this._lContainer,t.ssrId),w=t.createEmbeddedViewImpl(n||{},d,g);return this.insertImpl(w,l,xu(this._hostTNode,g)),w}createComponent(t,n,r,l,d){const g=t&&!function x(e){return"function"==typeof e}(t);let w;if(g)w=n;else{const qt=n||{};w=qt.index,r=qt.injector,l=qt.projectableNodes,d=qt.environmentInjector||qt.ngModuleRef}const A=g?t:new Kh(zi(t)),j=r||this.parentInjector;if(!d&&null==A.ngModule){const In=(g?j:this.parentInjector).get(Mr,null);In&&(d=In)}const q=zi(A.componentType??{}),Ue=Iu(this._lContainer,q?.id??null),kt=A.create(j,l,Ue?.firstChild??null,d);return this.insertImpl(kt.hostView,w,xu(this._hostTNode,Ue)),kt}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const l=t._lView;if(function ku(e){return to(e[kn])}(l)){const w=this.indexOf(t);if(-1!==w)this.detach(w);else{const A=l[kn],j=new J_(A,A[Mn],A[kn]);j.detach(j.indexOf(t))}}const d=this._adjustIndex(n),g=this._lContainer;return Od(g,l,d,r),t.attachToViewContainerRef(),jr(vg(g),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=q_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Td(this._lContainer,n);r&&(xo(vg(this._lContainer),n),dp(r[Ht],r))}detach(t){const n=this._adjustIndex(t,-1),r=Td(this._lContainer,n);return r&&null!=xo(vg(this._lContainer),n)?new Rh(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function q_(e){return e[8]}function vg(e){return e[8]||(e[8]=[])}function ey(e,t){let n;const r=t[e.index];return to(r)?n=r:(n=t_(r,t,null,e),t[e.index]=n,gp(t,n)),ty(n,t,e,r),new J_(n,e,t)}let ty=function iy(e,t,n,r){if(e[mo])return;let l;l=8&n.type?vr(r):function yw(e,t){const n=e[Rn],r=n.createComment(""),l=Is(t,e);return yu(n,Hl(n,l),r,function Yb(e,t){return e.nextSibling(t)}(n,l),!1),r}(t,n),e[mo]=l},_g=()=>!1;class yg{constructor(t){this.queryList=t,this.matches=null}clone(){return new yg(this.queryList)}setDirty(){this.queryList.setDirty()}}class bg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,l=[];for(let d=0;dt.trim())}(t):t}}class wg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(g[w/2]);else{const j=d[w+1],q=t[-A];for(let Ue=zr;Ue(L(t),t.value);return n[W]=t,n}(e),r=n[W];return t?.equal&&(r.equal=t.equal),n.set=l=>gt(r,l),n.update=l=>function Ne(e,t){Te()||yn(),gt(e,t(e.value))}(r,l),n.asReadonly=ie.bind(n),n}function ie(){const e=this[W];if(void 0===e.readonlyFn){const t=()=>this();t[W]=e,e.readonlyFn=t}return e.readonlyFn}function Fe(e){return f(e)&&"function"==typeof e.set}function Nt(e,t){let n;const r=et(()=>{n._dirtyCounter();const l=function pi(e,t){const n=e._lView,r=e._queryIndex;if(void 0===n||void 0===r||4&n[cn])return t?void 0:sr;const l=sy(n,r),d=s(n,r);return l.reset(d,md),t?l.first:l._changesDetected||void 0===e._flatValue?e._flatValue=l.toArray():e._flatValue}(n,e);if(t&&void 0===l)throw new wt(-951,!1);return l});return n=r[W],n._dirtyCounter=H(0),n._flatValue=void 0,r}function go(e,t){return function Yt(){return Nt(!0,!1)}()}const sl=(go.required=function vc(e,t){return function jn(){return Nt(!0,!0)}()},go);function Mw(e){let t=function vC(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let l;if(Zr(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new wt(903,!1);l=t.\u0275dir}if(l){if(n){r.push(l);const g=e;g.inputs=hy(e.inputs),g.inputTransforms=hy(e.inputTransforms),g.declaredInputs=hy(e.declaredInputs),g.outputs=hy(e.outputs);const w=l.hostBindings;w&&NS(e,w);const A=l.viewQuery,j=l.contentQueries;if(A&&RS(e,A),j&&kS(e,j),MS(e,l),On(e.outputs,l.outputs),Zr(l)&&l.data.animation){const q=e.data;q.animation=(q.animation||[]).concat(l.data.animation)}}const d=l.features;if(d)for(let g=0;g=0;r--){const l=e[r];l.hostVars=t+=l.hostVars,l.hostAttrs=Os(l.hostAttrs,n=Os(n,l.hostAttrs))}}(r)}function MS(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const l=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(l))continue;e.inputTransforms??={},e.inputTransforms[l]=t.inputTransforms[l]}}}function hy(e){return e===Qo?{}:e===sr?[]:e}function RS(e,t){const n=e.viewQuery;e.viewQuery=n?(r,l)=>{t(r,l),n(r,l)}:t}function kS(e,t){const n=e.contentQueries;e.contentQueries=n?(r,l,d)=>{t(r,l,d),n(r,l,d)}:t}function NS(e,t){const n=e.hostBindings;e.hostBindings=n?(r,l)=>{t(r,l),n(r,l)}:t}function _C(e){const t=n=>{const r=(Array.isArray(e)?e:e()).map(l=>"function"==typeof l?{directive:Be(l),inputs:Qo,outputs:Qo}:{directive:Be(l.directive),inputs:bC(l.inputs),outputs:bC(l.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=yC,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function yC(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const l=po(r.directive);BS(l.declaredInputs,r.inputs),yC(l,t,n),n.set(l,r),t.push(l)}}function bC(e){if(void 0===e||0===e.length)return Qo;const t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Rw extends CC{constructor(t){super(),this.moduleType=t}create(t){return new Ow(this.moduleType,t,[])}}class DC extends Xh{constructor(t){super(),this.componentFactoryResolver=new K_(this),this.instance=null;const n=new Pa([...t.providers,{provide:Xh,useValue:this},{provide:zh,useValue:this.componentFactoryResolver}],t.parent||ua(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function kw(e,t,n=null){return new DC({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function fy(e){return!!Nw(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Nw(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qc(e,t,n){return e[t]=n}function Dg(e,t){return e[t]}function vs(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Yh(e,t,n,r){const l=vs(e,t,n);return vs(e,t+1,r)||l}function Gl(e,t,n,r,l,d){const g=Yh(e,t,n,r);return Yh(e,t+2,l,d)||g}function xg(e,t,n,r,l,d,g,w,A,j){const q=n+Jn,Ue=t.firstCreatePass?function WS(e,t,n,r,l,d,g,w,A){const j=t.consts,q=wu(t,e,4,g||null,w||null);Xm(t,n,q,Js(j,A)),Ic(t,q);const Ue=q.tView=Km(2,q,r,l,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,j,null);return null!==t.queries&&(t.queries.template(t,q),Ue.queries=t.queries.embeddedTView(q)),q}(q,t,e,r,l,d,g,w,A):t.data[q];ja(Ue,!1);const _t=xC(t,e,Ue,n);au()&&hp(t,e,_t,Ue),fs(_t,e);const kt=t_(_t,e,_t,Ue);return e[q]=kt,gp(e,kt),function ny(e,t,n){return _g(e,t,n)}(kt,Ue,e),Ei(Ue)&&Wm(t,e,Ue),null!=A&&Gm(e,Ue,j),Ue}function Pw(e,t,n,r,l,d,g,w){const A=_n(),j=lr();return xg(A,j,e,t,n,r,l,Js(j.consts,d),g,w),Pw}let xC=function SC(e,t,n,r){return qa(!0),t[Rn].createComment("")};var Qh=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Qh||{});let RC=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new e})}}return e})();class Tg{constructor(){this.ngZone=xi(yo),this.scheduler=xi(Ud),this.errorHandler=xi(wl,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[Qh.EarlyRead,Qh.Write,Qh.MixedReadWrite,Qh.Read]}execute(){this.executing=!0;for(const t of Tg.PHASES)for(const n of this.sequences)if(!n.erroredOrDestroyed&&n.hooks[t])try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(const t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(const t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=bi({token:Tg,providedIn:"root",factory:()=>new Tg})}}class YS{constructor(t,n,r,l){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function kC(e,t){!t?.injector&&Qi();const n=t?.injector??xi(hs);return na(n)?(c("NgAfterRender"),NC(e,n,t,!1)):PC}function _y(e,t){!t?.injector&&Qi();const n=t?.injector??xi(hs);return na(n)?(c("NgAfterNextRender"),NC(e,n,t,!0)):PC}function NC(e,t,n,r){const l=t.get(RC);l.impl??=t.get(Tg);const d=n?.phase??Qh.MixedReadWrite,g=!0!==n?.manualCleanup?t.get(ud):null,w=new YS(l.impl,function QS(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,d),r,g);return l.impl.register(w),w}const PC={destroy(){}};function Gw(e,t,n,r){const l=_n();return vs(l,Ja(),t)&&(lr(),zl(co(),l,e,t,n,r)),Gw}function Fp(e,t,n,r){return vs(e,Ja(),n)?t+ti(n)+r:qi}function Lp(e,t,n,r,l,d){const w=Yh(e,function _l(){return Xi.lFrame.bindingIndex}(),n,l);return yl(2),w?t+ti(n)+r+ti(l)+d:qi}function wy(e,t){return e<<17|t<<2}function Hd(e){return e>>17&32767}function Kw(e){return 2|e}function Jh(e){return(131068&e)>>2}function Xw(e,t){return-131069&e|t<<2}function Yw(e){return 1|e}function aD(e,t,n,r){const l=e[n+1],d=null===t;let g=r?Hd(l):Jh(l),w=!1;for(;0!==g&&(!1===w||d);){const j=e[g+1];RA(e[g],t)&&(w=!0,e[g+1]=r?Yw(j):Kw(j)),g=r?Hd(j):Jh(j)}w&&(e[n+1]=r?Kw(l):Yw(l))}function RA(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fo(e,t)>=0}const Fs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(e){return e.substring(Fs.key,Fs.keyEnd)}function kA(e){return e.substring(Fs.value,Fs.valueEnd)}function cD(e,t){const n=Fs.textEnd;return n===t?-1:(t=Fs.keyEnd=function FA(e,t,n){for(;t32;)t++;return t}(e,Fs.key=t,n),zp(e,t,n))}function uD(e,t){const n=Fs.textEnd;let r=Fs.key=zp(e,t,n);return n===r?-1:(r=Fs.keyEnd=function LA(e,t,n){let r;for(;t=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=hD(e,r,n),r=Fs.value=zp(e,r,n),r=Fs.valueEnd=function BA(e,t,n){let r=-1,l=-1,d=-1,g=t,w=g;for(;g32&&(w=g),d=l,l=r,r=-33&A}return w}(e,r,n),hD(e,r,n))}function dD(e){Fs.key=0,Fs.keyEnd=0,Fs.value=0,Fs.valueEnd=0,Fs.textEnd=e.length}function zp(e,t,n){for(;t=0;n=uD(t,n))vD(e,lD(t),kA(t))}function pD(e){bc(WA,eu,e,!0)}function eu(e,t){for(let n=function NA(e){return dD(e),cD(e,zp(e,0,Fs.textEnd))}(t);n>=0;n=cD(t,n))so(e,lD(t),!0)}function yc(e,t,n,r){const l=_n(),d=lr(),g=yl(2);d.firstUpdatePass&&gD(d,e,g,r),t!==qi&&vs(l,g,t)&&_D(d,d.data[Jo()],l,l[Rn],e,l[g+1]=function KA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Ln(hc(e)))),e}(t,n),r,g)}function bc(e,t,n,r){const l=lr(),d=yl(2);l.firstUpdatePass&&gD(l,null,d,r);const g=_n();if(n!==qi&&vs(g,d,n)){const w=l.data[Jo()];if(bD(w,r)&&!mD(l,d)){let A=r?w.classesWithoutHost:w.stylesWithoutHost;null!==A&&(n=wi(A,n||"")),Zw(l,w,g,n,r)}else!function GA(e,t,n,r,l,d,g,w){l===qi&&(l=sr);let A=0,j=0,q=0=e.expandoStartIndex}function gD(e,t,n,r){const l=e.data;if(null===l[n+1]){const d=l[Jo()],g=mD(e,n);bD(d,r)&&null===t&&!g&&(t=!1),t=function VA(e,t,n,r){const l=ff(e);let d=r?t.residualClasses:t.residualStyles;if(null===l)0===(r?t.classBindings:t.styleBindings)&&(n=Mg(n=eE(null,e,t,n,r),t.attrs,r),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==l)if(n=eE(l,e,t,n,r),null===d){let A=function jA(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Jh(r))return e[Hd(r)]}(e,t,r);void 0!==A&&Array.isArray(A)&&(A=eE(null,e,t,A[1],r),A=Mg(A,t.attrs,r),function HA(e,t,n,r){e[Hd(n?t.classBindings:t.styleBindings)]=r}(e,t,r,A))}else d=function $A(e,t,n){let r;const l=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(j=!0)):q=n,l)if(0!==A){const _t=Hd(e[w+1]);e[r+1]=wy(_t,w),0!==_t&&(e[_t+1]=Xw(e[_t+1],r)),e[w+1]=function TA(e,t){return 131071&e|t<<17}(e[w+1],r)}else e[r+1]=wy(w,0),0!==w&&(e[w+1]=Xw(e[w+1],r)),w=r;else e[r+1]=wy(A,0),0===w?w=r:e[A+1]=Xw(e[A+1],r),A=r;j&&(e[r+1]=Kw(e[r+1])),aD(e,q,r,!0),aD(e,q,r,!1),function OA(e,t,n,r,l){const d=l?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Fo(d,t)>=0&&(n[r+1]=Yw(n[r+1]))}(t,q,e,r,d),g=wy(w,A),d?t.classBindings=g:t.styleBindings=g}(l,d,t,n,g,r)}}function eE(e,t,n,r,l){let d=null;const g=n.directiveEnd;let w=n.directiveStylingLast;for(-1===w?w=n.directiveStart:w++;w0;){const A=e[l],j=Array.isArray(A),q=j?A[1]:A,Ue=null===q;let _t=n[l+1];_t===qi&&(_t=Ue?sr:void 0);let kt=Ue?aa(_t,r):q===r?_t:void 0;if(j&&!Ey(kt)&&(kt=aa(A,r)),Ey(kt)&&(w=kt,g))return w;const qt=e[l+1];l=g?Hd(qt):Jh(qt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(w=aa(A,r))}return w}function Ey(e){return void 0!==e}function bD(e,t){return!!(e.flags&(t?8:16))}function wD(e,t,n){bc(so,eu,Fp(_n(),e,t,n),!0)}function ED(){return _n()[Ri][An]}class nT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),l=Math.max(t,n),d=this.detach(l);if(l-r>1){const g=this.detach(r);this.attach(r,d),this.attach(l,g)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function tE(e,t,n,r,l){return e===n&&Object.is(t,r)?1:Object.is(l(e,t),l(n,r))?-1:0}function nE(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function CD(e,t,n,r,l){if(nE(e,t,r,n(r,l)))e.updateValue(r,l);else{const d=e.create(r,l);e.attach(r,d)}}function DD(e,t,n,r){const l=new Set;for(let d=t;d<=n;d++)l.add(r(d,e.at(d)));return l}class xD{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const l=this._vMap;for(;l.has(r);)r=l.get(r);l.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const l=this._vMap;for(;l.has(r);)r=l.get(r),t(r,n)}}}function SD(e,t){c("NgControlFlow");const n=_n(),r=Ja(),l=n[r]!==qi?n[r]:-1,d=-1!==l?Cy(n,Jn+l):void 0;if(vs(n,r,e)){const w=ee(null);try{if(void 0!==d&&tg(d,0),-1!==e){const A=Jn+e,j=Cy(n,A),q=iE(n[Ht],A),Ue=Iu(j,q.tView.ssrId);Od(j,Du(n,q,t,{dehydratedView:Ue}),0,xu(q,Ue))}}finally{ee(w)}}else if(void 0!==d){const w=l_(d,0);void 0!==w&&(w[An]=t)}}class rT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-zr}}class aT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function AD(e,t,n,r,l,d,g,w,A,j,q,Ue,_t){c("NgControlFlow");const kt=_n(),qt=lr(),In=void 0!==A,Zn=_n(),ai=w?g.bind(Zn[Ri][An]):g,Sn=new aT(In,ai);Zn[Jn+e]=Sn,xg(kt,qt,e+1,t,n,r,l,Js(qt.consts,d)),In&&xg(kt,qt,e+2,A,j,q,Ue,Js(qt.consts,_t))}class lT extends nT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-zr}at(t){return this.getLView(t)[An].$implicit}attach(t,n){const r=n[Nn];this.needsIndexUpdate||=t!==this.length,Od(this.lContainer,n,t,xu(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function cT(e,t){return Td(e,t)}(this.lContainer,t)}create(t,n){const r=Iu(this.lContainer,this.templateTNode.tView.ssrId),l=Du(this.hostLView,this.templateTNode,new rT(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),l}destroy(t){dp(t[Ht],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[An].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(A)})}(A,e,d.trackByFn),A.updateIndexes(),d.hasEmptyBlock){const j=Ja(),q=0===A.length;if(vs(r,j,q)){const Ue=n+2,_t=Cy(r,Ue);if(q){const kt=iE(l,Ue),qt=Iu(_t,kt.tView.ssrId);Od(_t,Du(r,kt,void 0,{dehydratedView:qt}),0,xu(kt,qt))}else tg(_t,0)}}}finally{ee(t)}}function Cy(e,t){return e[t]}function iE(e,t){return vl(e,t)}function Dy(e,t,n,r){const l=_n(),d=lr(),g=Jn+e,w=l[Rn],A=d.firstCreatePass?function dT(e,t,n,r,l,d){const g=t.consts,A=wu(t,e,2,r,Js(g,l));return Xm(t,n,A,Js(g,d)),null!==A.attrs&&Gh(A,A.attrs,!1),null!==A.mergedAttrs&&Gh(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,l,t,n,r):d.data[g],j=ID(d,l,A,w,t,e);l[g]=j;const q=Ei(A);return ja(A,!0),Uv(w,j,A),!function Tp(e){return!(32&~e.flags)}(A)&&au()&&hp(d,l,j,A),0===function Zp(){return Xi.lFrame.elementDepthCount}()&&fs(j,l),function Lu(){Xi.lFrame.elementDepthCount++}(),q&&(Wm(d,l,A),zm(d,A,l)),null!==r&&Gm(l,A),Dy}function xy(){let e=yr();Qd()?$u():(e=e.parent,ja(e,!1));const t=e;(function Jp(e){return Xi.skipHydrationRootTNode===e})(t)&&function Vu(){Xi.skipHydrationRootTNode=null}(),function Bu(){Xi.lFrame.elementDepthCount--}();const n=lr();return n.firstCreatePass&&(Ic(n,e),Ts(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function rm(e){return!!(8&e.flags)}(t)&&Zw(n,t,_n(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Df(e){return!!(16&e.flags)}(t)&&Zw(n,t,_n(),t.stylesWithoutHost,!1),xy}function rE(e,t,n,r){return Dy(e,t,n,r),xy(),rE}let ID=(e,t,n,r,l,d)=>(qa(!0),up(r,l,function bf(){return Xi.lFrame.currentNamespace}()));function Sy(e,t,n){const r=_n(),l=lr(),d=e+Jn,g=l.firstCreatePass?function pT(e,t,n,r,l){const d=t.consts,g=Js(d,r),w=wu(t,e,8,"ng-container",g);return null!==g&&Gh(w,g,!0),Xm(t,n,w,Js(d,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(d,l,r,t,n):l.data[d];ja(g,!0);const w=MD(l,r,g,e);return r[d]=w,au()&&hp(l,r,w,g),fs(w,r),Ei(g)&&(Wm(l,r,g),zm(l,g,r)),null!=n&&Gm(r,g),Sy}function Ay(){let e=yr();const t=lr();return Qd()?$u():(e=e.parent,ja(e,!1)),t.firstCreatePass&&(Ic(t,e),Ts(e)&&t.queries.elementEnd(e)),Ay}function oE(e,t,n){return Sy(e,t,n),Ay(),oE}let MD=(e,t,n,r)=>(qa(!0),Do(t[Rn],""));function OD(){return _n()}function sE(e,t,n){const r=_n();return vs(r,Ja(),t)&&Ta(lr(),co(),r,e,t,r[Rn],n,!0),sE}function aE(e,t,n){const r=_n();if(vs(r,Ja(),t)){const d=lr(),g=co();Ta(d,g,r,e,t,o_(ff(d.data),g,r),n,!0)}return aE}const qh=void 0;var _T=["en",[["a","p"],["AM","PM"],qh],[["AM","PM"],qh,qh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qh,"{1} 'at' {0}",qh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Wp={};function lE(e){const t=function yT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kD(t);if(n)return n;const r=t.split("-")[0];if(n=kD(r),n)return n;if("en"===r)return _T;throw new wt(701,!1)}function RD(e){return lE(e)[Gp.PluralCase]}function kD(e){return e in Wp||(Wp[e]=nt.ng&&nt.ng.common&&nt.ng.common.locales&&nt.ng.common.locales[e]),Wp[e]}var Gp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Gp||{});const Ty="en-US";let ND=Ty,JD=(e,t,n)=>{};function dE(e,t,n,r){const l=_n(),d=lr(),g=yr();return fE(d,l,l[Rn],g,e,t,r),dE}function hE(e,t){const n=yr(),r=_n(),l=lr();return fE(l,r,o_(ff(l.data),n,r),n,e,t),hE}function fE(e,t,n,r,l,d,g){const w=Ei(r),j=e.firstCreatePass&&r_(e),q=t[An],Ue=i_(t);let _t=!0;if(3&r.type||g){const In=Is(r,t),Zn=g?g(In):In,ai=Ue.length,Sn=g?Pr=>g(vr(Pr[r.index])):r.index;let or=null;if(!g&&w&&(or=function aI(e,t,n,r){const l=e.cleanup;if(null!=l)for(let d=0;dA?w[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,l,r.index)),null!==or)(or.__ngLastListenerFn__||or).__ngNextListenerFn__=d,or.__ngLastListenerFn__=d,_t=!1;else{d=tx(r,t,q,d),JD(In,l,d);const Pr=n.listen(Zn,l,d);Ue.push(d,Pr),j&&j.push(l,Sn,ai,ai+1)}}else d=tx(r,t,q,d);const kt=r.outputs;let qt;if(_t&&null!==kt&&(qt=kt[l])){const In=qt.length;if(In)for(let Zn=0;Zn-1?Zs(e.index,t):t,5);let w=ex(t,n,r,d),A=l.__ngNextListenerFn__;for(;A;)w=ex(t,n,A,d)&&w,A=A.__ngNextListenerFn__;return w}}function nx(e=1){return function Qu(e){return(Xi.lFrame.contextLView=function qs(e,t){for(;e>0;)t=t[ar],e--;return t}(e,Xi.lFrame.contextLView))[An]}(e)}function lI(e,t){let n=null;const r=function Ct(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let l=0;ln._dirtyCounter.update(r=>r+1))}(t,Eg(e,n,r,l))}function _x(e=1){Jd(Yu()+e)}function yx(e){return Dc(function Ha(){return Xi.lFrame.contextLView}(),Jn+e)}function Ix(e,t=""){const n=_n(),r=lr(),l=e+Jn,d=r.firstCreatePass?wu(r,l,1,t,null):r.data[l],g=Mx(r,n,d,t,e);n[l]=g,au()&&hp(r,n,g,d),ja(d,!1)}let Mx=(e,t,n,r,l)=>(qa(!0),function Sd(e,t){return e.createText(t)}(t[Rn],r));function gE(e){return ky("",e,""),gE}function ky(e,t,n){const r=_n(),l=Fp(r,e,t,n);return l!==qi&&Wl(r,Jo(),l),ky}function vE(e,t,n,r,l){const d=_n(),g=Lp(d,e,t,n,r,l);return g!==qi&&Wl(d,Jo(),g),vE}function _E(e,t,n){Fe(t)&&(t=t());const r=_n();return vs(r,Ja(),t)&&Ta(lr(),co(),r,e,t,r[Rn],n,!1),_E}function Bx(e,t){const n=Fe(e);return n&&e.set(t),n}function yE(e,t){const n=_n(),r=lr(),l=yr();return fE(r,n,n[Rn],l,e,t),yE}function bE(e,t,n,r,l){if(e=Be(e),Array.isArray(e))for(let d=0;d>20;if(as(e)||!e.multi){const kt=new el(j,l,Md),qt=EE(A,t,l?q:q+_t,Ue);-1===qt?(rc(Rc(w,g),d,A),wE(d,e,t.length),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(kt),g.push(kt)):(n[qt]=kt,g[qt]=kt)}else{const kt=EE(A,t,q+_t,Ue),qt=EE(A,t,q,q+_t),Zn=qt>=0&&n[qt];if(l&&!Zn||!l&&!(kt>=0&&n[kt])){rc(Rc(w,g),d,A);const ai=function AI(e,t,n,r,l){const d=new el(e,n,Md);return d.multi=[],d.index=t,d.componentProviders=0,jx(d,l,r&&!n),d}(l?SI:xI,n.length,l,r,j);!l&&Zn&&(n[qt].providerFactory=ai),wE(d,e,t.length,0),t.push(A),w.directiveStart++,w.directiveEnd++,l&&(w.providerIndexes+=1048576),n.push(ai),g.push(ai)}else wE(d,e,kt>-1?kt:qt,jx(n[l?qt:kt],j,!l&&r));!l&&r&&Zn&&n[qt].componentProviders++}}}function wE(e,t,n,r){const l=as(t),d=function Ql(e){return!!e.useClass}(t);if(l||d){const A=(d?Be(t.useClass):t).prototype.ngOnDestroy;if(A){const j=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const q=j.indexOf(n);-1===q?j.push(n,[r,A]):j[q+1].push(r,A)}else j.push(n,A)}}}function jx(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function EE(e,t,n,r){for(let l=n;l{n.providersResolver=(r,l)=>function DI(e,t,n){const r=lr();if(r.firstCreatePass){const l=Zr(e);bE(n,r.data,r.blueprint,l,!0),bE(t,r.data,r.blueprint,l,!1)}}(r,l?l(e):e,t)}}let TI=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Al(0,n.type),l=r.length>0?kw([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,l)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=bi({token:e,providedIn:"environment",factory:()=>new e(Tr(Mr))})}}return e})();function $x(e){c("NgStandalone"),e.getStandaloneInjector=t=>t.get(TI).getOrCreateStandaloneInjector(e)}function Gx(e,t,n){const r=Wo()+e,l=_n();return l[r]===qi?qc(l,r,n?t.call(n):t()):Dg(l,r)}function Kx(e,t,n,r){return Jx(_n(),Wo(),e,t,n,r)}function Xx(e,t,n,r,l){return qx(_n(),Wo(),e,t,n,r,l)}function Yx(e,t,n,r,l,d){return function e1(e,t,n,r,l,d,g,w){const A=t+n;return function py(e,t,n,r,l){const d=Yh(e,t,n,r);return vs(e,t+2,l)||d}(e,A,l,d,g)?qc(e,A+3,w?r.call(w,l,d,g):r(l,d,g)):Fg(e,A+3)}(_n(),Wo(),e,t,n,r,l,d)}function Qx(e,t,n,r,l,d,g){return function t1(e,t,n,r,l,d,g,w,A){const j=t+n;return Gl(e,j,l,d,g,w)?qc(e,j+4,A?r.call(A,l,d,g,w):r(l,d,g,w)):Fg(e,j+4)}(_n(),Wo(),e,t,n,r,l,d,g)}function Zx(e,t,n,r,l,d,g,w,A,j,q){const Ue=Wo()+e,_t=_n(),kt=Gl(_t,Ue,n,r,l,d);return Gl(_t,Ue+4,g,w,A,j)||kt?qc(_t,Ue+8,q?t.call(q,n,r,l,d,g,w,A,j):t(n,r,l,d,g,w,A,j)):Dg(_t,Ue+8)}function Fg(e,t){const n=e[t];return n===qi?void 0:n}function Jx(e,t,n,r,l,d){const g=t+n;return vs(e,g,l)?qc(e,g+1,d?r.call(d,l):r(l)):Fg(e,g+1)}function qx(e,t,n,r,l,d,g){const w=t+n;return Yh(e,w,l,d)?qc(e,w+2,g?r.call(g,l,d):r(l,d)):Fg(e,w+2)}function r1(e,t){const n=lr();let r;const l=e+Jn;n.firstCreatePass?(r=function FI(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[l]=r,r.onDestroy&&(n.destroyHooks??=[]).push(l,r.onDestroy)):r=n.data[l];const d=r.factory||(r.factory=ro(r.type)),w=io(Md);try{const A=nd(!1),j=d();return nd(A),function mE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_n(),l,j),j}finally{io(w)}}function o1(e,t,n){const r=e+Jn,l=_n(),d=Dc(l,r);return Lg(l,r)?Jx(l,Wo(),t,d.transform,n,d):d.transform(n)}function s1(e,t,n,r){const l=e+Jn,d=_n(),g=Dc(d,l);return Lg(d,l)?qx(d,Wo(),t,g.transform,n,r,g):g.transform(n,r)}function Lg(e,t){return e[Ht].data[t].pure}function a1(e,t){return yp(e,t)}class C1{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let D1=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const I1=new Bn(""),M1=new Bn("");let IE,RM=(()=>{class e{constructor(n,r,l){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,IE||(function kM(e){IE=e}(l),l.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,l){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==d),n()},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:l})}whenStable(n,r,l){if(l&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,l),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,l){return[]}static{this.\u0275fac=function(r){return new(r||e)(Tr(yo),Tr(O1),Tr(M1))}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac})}}return e})(),O1=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return IE?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function ME(e){return!!e&&"function"==typeof e.then}function R1(e){return!!e&&"function"==typeof e.subscribe}const k1=new Bn("");let N1=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=xi(k1,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const l of this.appInits){const d=l();if(ME(d))n.push(d);else if(R1(d)){const g=new Promise((w,A)=>{d.subscribe({complete:w,error:A})});n.push(g)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(l=>{this.reject(l)}),0===n.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const By=new Bn("");let tu=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=xi(Vf),this.afterRenderManager=xi(RC),this.zonelessEnabled=xi($h),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Pe.B,this.afterTick=new Pe.B,this.componentTypes=[],this.components=[],this.isStable=xi(Lc).hasPendingTasks.pipe((0,xe.T)(n=>!n)),this._injector=xi(Mr)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:l=>{l&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){const l=n instanceof H_;if(!this._injector.get(N1).done)throw!l&&Ro(n),new wt(405,!1);let g;g=l?n:this._injector.get(zh).resolveComponentFactory(n),this.componentTypes.push(g.componentType);const w=function NM(e){return e.isBoundToModule}(g)?void 0:this._injector.get(Xh),j=g.create(hs.NULL,[],r||g.selector,w),q=j.location.nativeElement,Ue=j.injector.get(I1,null);return Ue?.registerApplication(q),j.onDestroy(()=>{this.detachView(j.hostView),Uy(this.components,j),Ue?.unregisterApplication(q)}),this._loadComponent(j),j}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new wt(101,!1);const n=ee(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,ee(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(fg,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce(n)}synchronizeOnce(n){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8,this.beforeRender.next(r);for(let{_lView:l,notifyErrorHandler:d}of this._views)LM(l,d,r,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),7&this.dirtyFlags)return}else n?.begin?.(),n?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>ou(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Uy(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(By,[]);[...this._bootstrapListeners,...r].forEach(l=>l(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Uy(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new wt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Uy(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function LM(e,t,n,r){(n||ou(e))&&kd(e,t,n&&!r?0:1)}class BM{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let UM=(()=>{class e{compileModuleSync(n){return new Rw(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),d=bo(_o(n).declarations).reduce((g,w)=>{const A=zi(w);return A&&g.push(new Kh(A)),g},[]);return new BM(r,d)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),HM=(()=>{class e{constructor(){this.zone=xi(yo),this.changeDetectionScheduler=xi(Ud),this.applicationRef=xi(tu)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function OE({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new yo({...RE(),scheduleInRootZone:n}),[{provide:yo,useFactory:e},{provide:is,multi:!0,useFactory:()=>{const r=xi(HM,{optional:!0});return()=>r.initialize()}},{provide:is,multi:!0,useFactory:()=>{const r=xi(zM);return()=>{r.initialize()}}},!0===t?{provide:j_,useValue:!0}:[],{provide:hg,useValue:n??Nf}]}function RE(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let zM=(()=>{class e{constructor(){this.subscription=new xt.yU,this.initialized=!1,this.zone=xi(yo),this.pendingTasks=xi(Lc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{yo.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{yo.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vg=(()=>{class e{constructor(){this.appRef=xi(tu),this.taskService=xi(Lc),this.ngZone=xi(yo),this.zonelessEnabled=xi($h),this.disableScheduling=xi(j_,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new xt.yU,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(lc):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(xi(hg,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof fd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 7:this.appRef.deferredDirtyFlags|=8;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?ac:Lf;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(lc+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,ac(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=bi({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const NE=new Bn("",{providedIn:"root",factory:()=>xi(NE,Gi.Optional|Gi.SkipSelf)||function WM(){return typeof $localize<"u"&&$localize.locale||Ty}()}),GM=new Bn("",{providedIn:"root",factory:()=>"USD"}),jy=new Bn("");function Hy(e){return!e.moduleRef}let $d=null;function tO(){return!1}let X1=(()=>{class e{static{this.__NG_ELEMENT_ID__=nO}}return e})();function nO(e){return function iO(e,t,n){if(Uo(e)&&!n){const r=Zs(e.index,t);return new Rh(r,r)}return 175&e.type?new Rh(t[Ri],t):null}(yr(),_n(),!(16&~e))}class J1{constructor(){}supports(t){return fy(t)}create(t){return new lO(t)}}const aO=(e,t)=>t;class lO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||aO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,l=0,d=null;for(;n||r;){const g=!r||n&&n.currentIndex{g=this._trackByFn(l,w),null!==n&&Object.is(n.trackById,g)?(r&&(n=this._verifyReinsertion(n,w,g,l)),Object.is(n.item,w)||this._addIdentityChange(n,w)):(n=this._mismatch(n,w,g,l),r=!0),n=n._next,l++}),this.length=l;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,l){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,l))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,l)):t=this._addAfter(new cO(n,r),d,l),t}_verifyReinsertion(t,n,r,l){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,d=t._nextRemoved;return null===l?this._removalsHead=d:l._nextRemoved=d,null===d?this._removalsTail=l:d._prevRemoved=l,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const l=null===n?this._itHead:n._next;return t._next=l,t._prev=n,null===l?this._itTail=t:l._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new q1),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new q1),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class cO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class uO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class q1{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new uO,this.map.set(n,r)),r.add(t)}get(t,n){const l=this.map.get(t);return l?l.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eS(e,t,n){const r=e.previousIndex;if(null===r)return r;let l=0;return n&&r{if(n&&n.key===l)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(l,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,n);const d=l._prev,g=l._next;return d&&(d._next=g),g&&(g._prev=d),l._next=null,l._prev=null,l}const r=new hO(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class hO{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function nS(){return new VE([new J1])}let VE=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:nS})}constructor(n){this.factories=n}static create(n,r){if(null!=r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nS()),deps:[[e,new gr,new Xr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(null!=r)return r;throw new wt(901,!1)}}return e})();function iS(){return new jE([new tS])}let jE=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:iS})}constructor(n){this.factories=n}static create(n,r){if(r){const l=r.factories.slice();n=n.concat(l)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||iS()),deps:[[e,new gr,new Xr]]}}find(n){const r=this.factories.find(l=>l.supports(n));if(r)return r;throw new wt(901,!1)}}return e})();function SO(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,l=function eO(e=[]){if($d)return $d;const t=function W1(e=[],t){return hs.create({name:t,providers:[{provide:Yr,useValue:"platform"},{provide:jy,useValue:new Set([()=>$d=null])},...e]})}(e);return $d=t,function P1(){!function di(e){$n=e}(()=>{throw new wt(600,!1)})}(),function G1(e){e.get(Ji,null)?.forEach(n=>n())}(t),t}(r),d=[OE({}),{provide:Ud,useExisting:Vg},...n||[]];return function H1(e){const t=Hy(e)?e.r3Injector:e.moduleRef.injector,n=t.get(yo);return n.run(()=>{Hy(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(wl,null);let l;if(n.runOutsideAngular(()=>{l=n.onError.subscribe({next:d=>{r.handleError(d)}})}),Hy(e)){const d=()=>t.destroy(),g=e.platformInjector.get(jy);g.add(d),t.onDestroy(()=>{l.unsubscribe(),g.delete(d)})}else{const d=()=>e.moduleRef.destroy(),g=e.platformInjector.get(jy);g.add(d),e.moduleRef.onDestroy(()=>{Uy(e.allPlatformModules,e.moduleRef),l.unsubscribe(),g.delete(d)})}return function FM(e,t,n){try{const r=n();return ME(r)?r.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const d=t.get(N1);return d.runInitializers(),d.donePromise.then(()=>{if(function CT(e){"string"==typeof e&&(ND=e.toLowerCase().replace(/_/g,"-"))}(t.get(NE,Ty)||Ty),Hy(e)){const w=t.get(tu);return void 0!==e.rootComponent&&w.bootstrap(e.rootComponent),w}return function ZM(e,t){const n=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new wt(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new DC({providers:d,parent:l,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:l,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function KO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function YO(e,t){c("NgSignals");const n=et(e);return t?.equal&&(n[W].equal=t.equal),n}function QO(e){const t=ee(null);try{return e()}finally{ee(t)}}const ZO=new Bn("",{providedIn:"root",factory:()=>xi(JO)});let JO=(()=>{class e{static{this.\u0275prov=bi({token:e,providedIn:"root",factory:()=>new qO})}}return e})();class qO{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=xi(Lc),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){const n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,n]of this.queues)null===t?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(const n of t)t.delete(n),this.queuedEffectCount--,n.run()}}class eR{constructor(t,n,r,l,d,g){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=d,this.watcher=function Mt(e,t,n){const r=Object.create(Oe);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const l=A=>{r.cleanupFn=A};return r.ref={notify:()=>Me(r),run:()=>{if(null===r.fn)return;if(function V(){return o}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!tt(r))return;r.hasRun=!0;const A=te(r);try{r.cleanupFn(),r.cleanupFn=we,r.fn(l)}finally{ve(r,A)}},cleanup:()=>r.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(bt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=we)}(r),[W]:r},r.ref}(w=>this.runEffect(w),()=>this.schedule(),g),this.unregisterOnDestroy=l?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(wl,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}function SS(e,t){c("NgSignals"),!t?.injector&&Qi();const n=t?.injector??xi(hs),r=!0!==t?.manualCleanup?n.get(ud):null,l=new eR(n.get(ZO),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),d=n.get(X1,null,{optional:!0});return d&&8&d._lView[cn]?(d._lView[ir]??=[]).push(l.watcher.notify):l.watcher.notify(),l}function tR(e){const t=zi(e);if(!t)return null;const n=new Kh(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9417:(tn,Re,v)=>{"use strict";v.d(Re,{BC:()=>Rt,JD:()=>Vr,Q0:()=>ma,X1:()=>Ao,YN:()=>_r,YS:()=>so,cV:()=>En,cb:()=>wt,cz:()=>ve,hs:()=>ui,j4:()=>ns,k0:()=>Ve,kq:()=>F,l_:()=>Jr,me:()=>Te,ok:()=>Os,qT:()=>es,vO:()=>Pe,vS:()=>Bs,xq:()=>aa,ze:()=>os});var u=v(4438),y=v(177),o=v(6648),B=v(7468),W=v(1413),ee=v(6354);let re=(()=>{class z{constructor(k,ge){this._renderer=k,this._elementRef=ge,this.onChange=Ct=>{},this.onTouched=()=>{}}setProperty(k,ge){this._renderer.setProperty(this._elementRef.nativeElement,k,ge)}registerOnTouched(k){this.onTouched=k}registerOnChange(k){this.onChange=k}setDisabledState(k){this.setProperty("disabled",k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(u.sFG),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:z})}}return z})(),V=(()=>{class z extends re{static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,features:[u.Vt3]})}}return z})();const F=new u.nKC(""),fe={provide:F,useExisting:(0,u.Rfq)(()=>Te),multi:!0},be=new u.nKC("");let Te=(()=>{class z extends re{constructor(k,ge,Ct){super(k,ge),this._compositionMode=Ct,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function de(){const z=(0,y.QT)()?(0,y.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(k){this.setProperty("value",k??"")}_handleInput(k){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(k)}_compositionStart(){this._composing=!0}_compositionEnd(k){this._composing=!1,this._compositionMode&&this.onChange(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(be,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("input",function(Yi){return Ct._handleInput(Yi.target.value)})("blur",function(){return Ct.onTouched()})("compositionstart",function(){return Ct._compositionStart()})("compositionend",function(Yi){return Ct._compositionEnd(Yi.target.value)})},features:[u.Jv_([fe]),u.Vt3]})}}return z})();function Me(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}function te(z){return null!=z&&"number"==typeof z.length}const ve=new u.nKC(""),tt=new u.nKC(""),bt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ve{static min(Y){return function rt(z){return Y=>{if(Me(Y.value)||Me(z))return null;const k=parseFloat(Y.value);return!isNaN(k)&&k{if(Me(Y.value)||Me(z))return null;const k=parseFloat(Y.value);return!isNaN(k)&&k>z?{max:{max:z,actual:Y.value}}:null}}(Y)}static required(Y){return oe(Y)}static requiredTrue(Y){return he(Y)}static email(Y){return function Le(z){return Me(z.value)||bt.test(z.value)?null:{email:!0}}(Y)}static minLength(Y){return function et(z){return Y=>Me(Y.value)||!te(Y.value)?null:Y.value.lengthte(Y.value)&&Y.value.length>z?{maxlength:{requiredLength:z,actualLength:Y.value.length}}:null}(Y)}static pattern(Y){return function Et(z){if(!z)return Tt;let Y,k;return"string"==typeof z?(k="","^"!==z.charAt(0)&&(k+="^"),k+=z,"$"!==z.charAt(z.length-1)&&(k+="$"),Y=new RegExp(k)):(k=z.toString(),Y=z),ge=>{if(Me(ge.value))return null;const Ct=ge.value;return Y.test(Ct)?null:{pattern:{requiredPattern:k,actualValue:Ct}}}}(Y)}static nullValidator(Y){return null}static compose(Y){return Ee(Y)}static composeAsync(Y){return Se(Y)}}function oe(z){return Me(z.value)?{required:!0}:null}function he(z){return!0===z.value?null:{required:!0}}function Tt(z){return null}function nn(z){return null!=z}function Fn(z){return(0,u.jNT)(z)?(0,o.H)(z):z}function $n(z){let Y={};return z.forEach(k=>{Y=null!=k?{...Y,...k}:Y}),0===Object.keys(Y).length?null:Y}function yn(z,Y){return Y.map(k=>k(z))}function mt(z){return z.map(Y=>function di(z){return!z.validate}(Y)?Y:k=>Y.validate(k))}function Ee(z){if(!z)return null;const Y=z.filter(nn);return 0==Y.length?null:function(k){return $n(yn(k,Y))}}function J(z){return null!=z?Ee(mt(z)):null}function Se(z){if(!z)return null;const Y=z.filter(nn);return 0==Y.length?null:function(k){const ge=yn(k,Y).map(Fn);return(0,B.p)(ge).pipe((0,ee.T)($n))}}function gt(z){return null!=z?Se(mt(z)):null}function Ne(z,Y){return null===z?[Y]:Array.isArray(z)?[...z,Y]:[z,Y]}function Ze(z){return z._rawValidators}function je(z){return z._rawAsyncValidators}function Lt(z){return z?Array.isArray(z)?z:[z]:[]}function Mt(z,Y){return Array.isArray(z)?z.includes(Y):z===Y}function we(z,Y){const k=Lt(Y);return Lt(z).forEach(Ct=>{Mt(k,Ct)||k.push(Ct)}),k}function Oe(z,Y){return Lt(Y).filter(k=>!Mt(z,k))}class me{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Y){this._rawValidators=Y||[],this._composedValidatorFn=J(this._rawValidators)}_setAsyncValidators(Y){this._rawAsyncValidators=Y||[],this._composedAsyncValidatorFn=gt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Y){this._onDestroyCallbacks.push(Y)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Y=>Y()),this._onDestroyCallbacks=[]}reset(Y=void 0){this.control&&this.control.reset(Y)}hasError(Y,k){return!!this.control&&this.control.hasError(Y,k)}getError(Y,k){return this.control?this.control.getError(Y,k):null}}class We extends me{get formDirective(){return null}get path(){return null}}class Pe extends me{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xt{constructor(Y){this._cd=Y}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}}let Rt=(()=>{class z extends xt{constructor(k){super(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(Pe,2))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Ct){2&ge&&u.AVh("ng-untouched",Ct.isUntouched)("ng-touched",Ct.isTouched)("ng-pristine",Ct.isPristine)("ng-dirty",Ct.isDirty)("ng-valid",Ct.isValid)("ng-invalid",Ct.isInvalid)("ng-pending",Ct.isPending)},features:[u.Vt3]})}}return z})(),wt=(()=>{class z extends xt{constructor(k){super(k)}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,10))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Ct){2&ge&&u.AVh("ng-untouched",Ct.isUntouched)("ng-touched",Ct.isTouched)("ng-pristine",Ct.isPristine)("ng-dirty",Ct.isDirty)("ng-valid",Ct.isValid)("ng-invalid",Ct.isInvalid)("ng-pending",Ct.isPending)("ng-submitted",Ct.isSubmitted)},features:[u.Vt3]})}}return z})();const On="VALID",Ln="INVALID",wi="PENDING",en="DISABLED";class Cn{}class He extends Cn{constructor(Y,k){super(),this.value=Y,this.source=k}}class Be extends Cn{constructor(Y,k){super(),this.pristine=Y,this.source=k}}class ye extends Cn{constructor(Y,k){super(),this.touched=Y,this.source=k}}class Ye extends Cn{constructor(Y,k){super(),this.status=Y,this.source=k}}class Gt extends Cn{constructor(Y){super(),this.source=Y}}class Pn extends Cn{constructor(Y){super(),this.source=Y}}function yi(z){return(st(z)?z.validators:z)||null}function sn(z,Y){return(st(Y)?Y.asyncValidators:z)||null}function st(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}function Bt(z,Y,k){const ge=z.controls;if(!(Y?Object.keys(ge):ge).length)throw new u.wOt(1e3,"");if(!ge[k])throw new u.wOt(1001,"")}function ot(z,Y,k){z._forEachChild((ge,Ct)=>{if(void 0===k[Ct])throw new u.wOt(1002,"")})}class qe{constructor(Y,k){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=(0,u.EWP)(()=>this.statusReactive()),this.statusReactive=(0,u.vPA)(void 0),this._pristine=(0,u.EWP)(()=>this.pristineReactive()),this.pristineReactive=(0,u.vPA)(!0),this._touched=(0,u.EWP)(()=>this.touchedReactive()),this.touchedReactive=(0,u.vPA)(!1),this._events=new W.B,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(Y),this._assignAsyncValidators(k)}get validator(){return this._composedValidatorFn}set validator(Y){this._rawValidators=this._composedValidatorFn=Y}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Y){this._rawAsyncValidators=this._composedAsyncValidatorFn=Y}get parent(){return this._parent}get status(){return(0,u.O8t)(this.statusReactive)}set status(Y){(0,u.O8t)(()=>this.statusReactive.set(Y))}get valid(){return this.status===On}get invalid(){return this.status===Ln}get pending(){return this.status==wi}get disabled(){return this.status===en}get enabled(){return this.status!==en}get pristine(){return(0,u.O8t)(this.pristineReactive)}set pristine(Y){(0,u.O8t)(()=>this.pristineReactive.set(Y))}get dirty(){return!this.pristine}get touched(){return(0,u.O8t)(this.touchedReactive)}set touched(Y){(0,u.O8t)(()=>this.touchedReactive.set(Y))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Y){this._assignValidators(Y)}setAsyncValidators(Y){this._assignAsyncValidators(Y)}addValidators(Y){this.setValidators(we(Y,this._rawValidators))}addAsyncValidators(Y){this.setAsyncValidators(we(Y,this._rawAsyncValidators))}removeValidators(Y){this.setValidators(Oe(Y,this._rawValidators))}removeAsyncValidators(Y){this.setAsyncValidators(Oe(Y,this._rawAsyncValidators))}hasValidator(Y){return Mt(this._rawValidators,Y)}hasAsyncValidator(Y){return Mt(this._rawAsyncValidators,Y)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Y={}){const k=!1===this.touched;this.touched=!0;const ge=Y.sourceControl??this;this._parent&&!Y.onlySelf&&this._parent.markAsTouched({...Y,sourceControl:ge}),k&&!1!==Y.emitEvent&&this._events.next(new ye(!0,ge))}markAllAsTouched(Y={}){this.markAsTouched({onlySelf:!0,emitEvent:Y.emitEvent,sourceControl:this}),this._forEachChild(k=>k.markAllAsTouched(Y))}markAsUntouched(Y={}){const k=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const ge=Y.sourceControl??this;this._forEachChild(Ct=>{Ct.markAsUntouched({onlySelf:!0,emitEvent:Y.emitEvent,sourceControl:ge})}),this._parent&&!Y.onlySelf&&this._parent._updateTouched(Y,ge),k&&!1!==Y.emitEvent&&this._events.next(new ye(!1,ge))}markAsDirty(Y={}){const k=!0===this.pristine;this.pristine=!1;const ge=Y.sourceControl??this;this._parent&&!Y.onlySelf&&this._parent.markAsDirty({...Y,sourceControl:ge}),k&&!1!==Y.emitEvent&&this._events.next(new Be(!1,ge))}markAsPristine(Y={}){const k=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const ge=Y.sourceControl??this;this._forEachChild(Ct=>{Ct.markAsPristine({onlySelf:!0,emitEvent:Y.emitEvent})}),this._parent&&!Y.onlySelf&&this._parent._updatePristine(Y,ge),k&&!1!==Y.emitEvent&&this._events.next(new Be(!0,ge))}markAsPending(Y={}){this.status=wi;const k=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new Ye(this.status,k)),this.statusChanges.emit(this.status)),this._parent&&!Y.onlySelf&&this._parent.markAsPending({...Y,sourceControl:k})}disable(Y={}){const k=this._parentMarkedDirty(Y.onlySelf);this.status=en,this.errors=null,this._forEachChild(Ct=>{Ct.disable({...Y,onlySelf:!0})}),this._updateValue();const ge=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new He(this.value,ge)),this._events.next(new Ye(this.status,ge)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Y,skipPristineCheck:k},this),this._onDisabledChange.forEach(Ct=>Ct(!0))}enable(Y={}){const k=this._parentMarkedDirty(Y.onlySelf);this.status=On,this._forEachChild(ge=>{ge.enable({...Y,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Y.emitEvent}),this._updateAncestors({...Y,skipPristineCheck:k},this),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(Y,k){this._parent&&!Y.onlySelf&&(this._parent.updateValueAndValidity(Y),Y.skipPristineCheck||this._parent._updatePristine({},k),this._parent._updateTouched({},k))}setParent(Y){this._parent=Y}getRawValue(){return this.value}updateValueAndValidity(Y={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const ge=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===On||this.status===wi)&&this._runAsyncValidator(ge,Y.emitEvent)}const k=Y.sourceControl??this;!1!==Y.emitEvent&&(this._events.next(new He(this.value,k)),this._events.next(new Ye(this.status,k)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Y.onlySelf&&this._parent.updateValueAndValidity({...Y,sourceControl:k})}_updateTreeValidity(Y={emitEvent:!0}){this._forEachChild(k=>k._updateTreeValidity(Y)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Y.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?en:On}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Y,k){if(this.asyncValidator){this.status=wi,this._hasOwnPendingAsyncValidator={emitEvent:!1!==k};const ge=Fn(this.asyncValidator(this));this._asyncValidationSubscription=ge.subscribe(Ct=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(Ct,{emitEvent:k,shouldHaveEmitted:Y})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const Y=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,Y}return!1}setErrors(Y,k={}){this.errors=Y,this._updateControlsErrors(!1!==k.emitEvent,this,k.shouldHaveEmitted)}get(Y){let k=Y;return null==k||(Array.isArray(k)||(k=k.split(".")),0===k.length)?null:k.reduce((ge,Ct)=>ge&&ge._find(Ct),this)}getError(Y,k){const ge=k?this.get(k):this;return ge&&ge.errors?ge.errors[Y]:null}hasError(Y,k){return!!this.getError(Y,k)}get root(){let Y=this;for(;Y._parent;)Y=Y._parent;return Y}_updateControlsErrors(Y,k,ge){this.status=this._calculateStatus(),Y&&this.statusChanges.emit(this.status),(Y||ge)&&this._events.next(new Ye(this.status,k)),this._parent&&this._parent._updateControlsErrors(Y,k,ge)}_initObservables(){this.valueChanges=new u.bkB,this.statusChanges=new u.bkB}_calculateStatus(){return this._allControlsDisabled()?en:this.errors?Ln:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wi)?wi:this._anyControlsHaveStatus(Ln)?Ln:On}_anyControlsHaveStatus(Y){return this._anyControls(k=>k.status===Y)}_anyControlsDirty(){return this._anyControls(Y=>Y.dirty)}_anyControlsTouched(){return this._anyControls(Y=>Y.touched)}_updatePristine(Y,k){const ge=!this._anyControlsDirty(),Ct=this.pristine!==ge;this.pristine=ge,this._parent&&!Y.onlySelf&&this._parent._updatePristine(Y,k),Ct&&this._events.next(new Be(this.pristine,k))}_updateTouched(Y={},k){this.touched=this._anyControlsTouched(),this._events.next(new ye(this.touched,k)),this._parent&&!Y.onlySelf&&this._parent._updateTouched(Y,k)}_registerOnCollectionChange(Y){this._onCollectionChange=Y}_setUpdateStrategy(Y){st(Y)&&null!=Y.updateOn&&(this._updateOn=Y.updateOn)}_parentMarkedDirty(Y){return!Y&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Y){return null}_assignValidators(Y){this._rawValidators=Array.isArray(Y)?Y.slice():Y,this._composedValidatorFn=function Ti(z){return Array.isArray(z)?J(z):z||null}(this._rawValidators)}_assignAsyncValidators(Y){this._rawAsyncValidators=Array.isArray(Y)?Y.slice():Y,this._composedAsyncValidatorFn=function At(z){return Array.isArray(z)?gt(z):z||null}(this._rawAsyncValidators)}}class Ie extends qe{constructor(Y,k,ge){super(yi(k),sn(ge,k)),this.controls=Y,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Y,k){return this.controls[Y]?this.controls[Y]:(this.controls[Y]=k,k.setParent(this),k._registerOnCollectionChange(this._onCollectionChange),k)}addControl(Y,k,ge={}){this.registerControl(Y,k),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(Y,k={}){this.controls[Y]&&this.controls[Y]._registerOnCollectionChange(()=>{}),delete this.controls[Y],this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}setControl(Y,k,ge={}){this.controls[Y]&&this.controls[Y]._registerOnCollectionChange(()=>{}),delete this.controls[Y],k&&this.registerControl(Y,k),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(Y){return this.controls.hasOwnProperty(Y)&&this.controls[Y].enabled}setValue(Y,k={}){ot(this,0,Y),Object.keys(Y).forEach(ge=>{Bt(this,!0,ge),this.controls[ge].setValue(Y[ge],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(Y,k={}){null!=Y&&(Object.keys(Y).forEach(ge=>{const Ct=this.controls[ge];Ct&&Ct.patchValue(Y[ge],{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(Y={},k={}){this._forEachChild((ge,Ct)=>{ge.reset(Y?Y[Ct]:null,{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this._reduceChildren({},(Y,k,ge)=>(Y[ge]=k.getRawValue(),Y))}_syncPendingControls(){let Y=this._reduceChildren(!1,(k,ge)=>!!ge._syncPendingControls()||k);return Y&&this.updateValueAndValidity({onlySelf:!0}),Y}_forEachChild(Y){Object.keys(this.controls).forEach(k=>{const ge=this.controls[k];ge&&Y(ge,k)})}_setUpControls(){this._forEachChild(Y=>{Y.setParent(this),Y._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Y){for(const[k,ge]of Object.entries(this.controls))if(this.contains(k)&&Y(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(k,ge,Ct)=>((ge.enabled||this.disabled)&&(k[Ct]=ge.value),k))}_reduceChildren(Y,k){let ge=Y;return this._forEachChild((Ct,gi)=>{ge=k(ge,Ct,gi)}),ge}_allControlsDisabled(){for(const Y of Object.keys(this.controls))if(this.controls[Y].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Y){return this.controls.hasOwnProperty(Y)?this.controls[Y]:null}}class li extends Ie{}const Dr=new u.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Mi}),Mi="always";function Fr(z,Y){return[...Y.path,z]}function bi(z,Y,k=Mi){Ot(z,Y),Y.valueAccessor.writeValue(z.value),(z.disabled||"always"===k)&&Y.valueAccessor.setDisabledState?.(z.disabled),function bn(z,Y){Y.valueAccessor.registerOnChange(k=>{z._pendingValue=k,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&Kn(z,Y)})}(z,Y),function zn(z,Y){const k=(ge,Ct)=>{Y.valueAccessor.writeValue(ge),Ct&&Y.viewToModelUpdate(ge)};z.registerOnChange(k),Y._registerOnDestroy(()=>{z._unregisterOnChange(k)})}(z,Y),function Tn(z,Y){Y.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&Kn(z,Y),"submit"!==z.updateOn&&z.markAsTouched()})}(z,Y),function ft(z,Y){if(Y.valueAccessor.setDisabledState){const k=ge=>{Y.valueAccessor.setDisabledState(ge)};z.registerOnDisabledChange(k),Y._registerOnDestroy(()=>{z._unregisterOnDisabledChange(k)})}}(z,Y)}function Kr(z,Y,k=!0){const ge=()=>{};Y.valueAccessor&&(Y.valueAccessor.registerOnChange(ge),Y.valueAccessor.registerOnTouched(ge)),un(z,Y),z&&(Y._invokeOnDestroyCallbacks(),z._registerOnCollectionChange(()=>{}))}function Or(z,Y){z.forEach(k=>{k.registerOnValidatorChange&&k.registerOnValidatorChange(Y)})}function Ot(z,Y){const k=Ze(z);null!==Y.validator?z.setValidators(Ne(k,Y.validator)):"function"==typeof k&&z.setValidators([k]);const ge=je(z);null!==Y.asyncValidator?z.setAsyncValidators(Ne(ge,Y.asyncValidator)):"function"==typeof ge&&z.setAsyncValidators([ge]);const Ct=()=>z.updateValueAndValidity();Or(Y._rawValidators,Ct),Or(Y._rawAsyncValidators,Ct)}function un(z,Y){let k=!1;if(null!==z){if(null!==Y.validator){const Ct=Ze(z);if(Array.isArray(Ct)&&Ct.length>0){const gi=Ct.filter(Yi=>Yi!==Y.validator);gi.length!==Ct.length&&(k=!0,z.setValidators(gi))}}if(null!==Y.asyncValidator){const Ct=je(z);if(Array.isArray(Ct)&&Ct.length>0){const gi=Ct.filter(Yi=>Yi!==Y.asyncValidator);gi.length!==Ct.length&&(k=!0,z.setAsyncValidators(gi))}}}const ge=()=>{};return Or(Y._rawValidators,ge),Or(Y._rawAsyncValidators,ge),k}function Kn(z,Y){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),Y.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function ii(z,Y){Ot(z,Y)}function Ae(z,Y){if(!z.hasOwnProperty("model"))return!1;const k=z.model;return!!k.isFirstChange()||!Object.is(Y,k.currentValue)}function $e(z,Y){z._syncPendingControls(),Y.forEach(k=>{const ge=k.control;"submit"===ge.updateOn&&ge._pendingChange&&(k.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function vt(z,Y){if(!Y)return null;let k,ge,Ct;return Array.isArray(Y),Y.forEach(gi=>{gi.constructor===Te?k=gi:function se(z){return Object.getPrototypeOf(z.constructor)===V}(gi)?ge=gi:Ct=gi}),Ct||ge||k||null}const hn={provide:We,useExisting:(0,u.Rfq)(()=>En)},gn=Promise.resolve();let En=(()=>{class z extends We{get submitted(){return(0,u.O8t)(this.submittedReactive)}constructor(k,ge,Ct){super(),this.callSetDisabledState=Ct,this._submitted=(0,u.EWP)(()=>this.submittedReactive()),this.submittedReactive=(0,u.vPA)(!1),this._directives=new Set,this.ngSubmit=new u.bkB,this.form=new Ie({},J(k),gt(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(k){gn.then(()=>{const ge=this._findContainer(k.path);k.control=ge.registerControl(k.name,k.control),bi(k.control,k,this.callSetDisabledState),k.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(k)})}getControl(k){return this.form.get(k.path)}removeControl(k){gn.then(()=>{const ge=this._findContainer(k.path);ge&&ge.removeControl(k.name),this._directives.delete(k)})}addFormGroup(k){gn.then(()=>{const ge=this._findContainer(k.path),Ct=new Ie({});ii(Ct,k),ge.registerControl(k.name,Ct),Ct.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(k){gn.then(()=>{const ge=this._findContainer(k.path);ge&&ge.removeControl(k.name)})}getFormGroup(k){return this.form.get(k.path)}updateModel(k,ge){gn.then(()=>{this.form.get(k.path).setValue(ge)})}setValue(k){this.control.setValue(k)}onSubmit(k){return this.submittedReactive.set(!0),$e(this.form,this._directives),this.ngSubmit.emit(k),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(k){return k.pop(),k.length?this.form.get(k):this.form}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("submit",function(Yi){return Ct.onSubmit(Yi)})("reset",function(){return Ct.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([hn]),u.Vt3]})}}return z})();function xn(z,Y){const k=z.indexOf(Y);k>-1&&z.splice(k,1)}function Vn(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}const Hn=class extends qe{constructor(Y=null,k,ge){super(yi(k),sn(ge,k)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Y),this._setUpdateStrategy(k),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(k)&&(k.nonNullable||k.initialValueIsDefault)&&(this.defaultValue=Vn(Y)?Y.value:Y)}setValue(Y,k={}){this.value=this._pendingValue=Y,this._onChange.length&&!1!==k.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==k.emitViewToModelChange)),this.updateValueAndValidity(k)}patchValue(Y,k={}){this.setValue(Y,k)}reset(Y=this.defaultValue,k={}){this._applyFormState(Y),this.markAsPristine(k),this.markAsUntouched(k),this.setValue(this.value,k),this._pendingChange=!1}_updateValue(){}_anyControls(Y){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Y){this._onChange.push(Y)}_unregisterOnChange(Y){xn(this._onChange,Y)}registerOnDisabledChange(Y){this._onDisabledChange.push(Y)}_unregisterOnDisabledChange(Y){xn(this._onDisabledChange,Y)}_forEachChild(Y){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Y){Vn(Y)?(this.value=this._pendingValue=Y.value,Y.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Y}},ui=Hn,Ko={provide:Pe,useExisting:(0,u.Rfq)(()=>Bs)},Gi=Promise.resolve();let Bs=(()=>{class z extends Pe{constructor(k,ge,Ct,gi,Yi,zo){super(),this._changeDetectorRef=Yi,this.callSetDisabledState=zo,this.control=new Hn,this._registered=!1,this.name="",this.update=new u.bkB,this._parent=k,this._setValidators(ge),this._setAsyncValidators(Ct),this.valueAccessor=vt(0,gi)}ngOnChanges(k){if(this._checkForErrors(),!this._registered||"name"in k){if(this._registered&&(this._checkName(),this.formDirective)){const ge=k.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in k&&this._updateDisabled(k),Ae(k,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){bi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(k){Gi.then(()=>{this.control.setValue(k,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(k){const ge=k.isDisabled.currentValue,Ct=0!==ge&&(0,u.L39)(ge);Gi.then(()=>{Ct&&!this.control.disabled?this.control.disable():!Ct&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(k){return this._parent?Fr(k,this._parent):[k]}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,9),u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(u.gRc,8),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[u.Jv_([Ko]),u.Vt3,u.OA$]})}}return z})(),es=(()=>{class z{static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275dir=u.FsC({type:z,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return z})();const io={provide:F,useExisting:(0,u.Rfq)(()=>ma),multi:!0};let ma=(()=>{class z extends V{writeValue(k){this.setProperty("value",k??"")}registerOnChange(k){this.onChange=ge=>{k(""==ge?null:parseFloat(ge))}}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("input",function(Yi){return Ct.onChange(Yi.target.value)})("blur",function(){return Ct.onTouched()})},features:[u.Jv_([io]),u.Vt3]})}}return z})();const hr=new u.nKC(""),ts={provide:Pe,useExisting:(0,u.Rfq)(()=>Jr)};let Jr=(()=>{class z extends Pe{set isDisabled(k){}static{this._ngModelWarningSentOnce=!1}constructor(k,ge,Ct,gi,Yi){super(),this._ngModelWarningConfig=gi,this.callSetDisabledState=Yi,this.update=new u.bkB,this._ngModelWarningSent=!1,this._setValidators(k),this._setAsyncValidators(ge),this.valueAccessor=vt(0,Ct)}ngOnChanges(k){if(this._isControlChanged(k)){const ge=k.form.previousValue;ge&&Kr(ge,this,!1),bi(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ae(k,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Kr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}_isControlChanged(k){return k.hasOwnProperty("form")}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(hr,8),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[u.Jv_([ts]),u.Vt3,u.OA$]})}}return z})();const Ii={provide:We,useExisting:(0,u.Rfq)(()=>ns)};let ns=(()=>{class z extends We{get submitted(){return(0,u.O8t)(this._submittedReactive)}set submitted(k){this._submittedReactive.set(k)}constructor(k,ge,Ct){super(),this.callSetDisabledState=Ct,this._submitted=(0,u.EWP)(()=>this._submittedReactive()),this._submittedReactive=(0,u.vPA)(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new u.bkB,this._setValidators(k),this._setAsyncValidators(ge)}ngOnChanges(k){this._checkFormPresent(),k.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(un(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(k){const ge=this.form.get(k.path);return bi(ge,k,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(k),ge}getControl(k){return this.form.get(k.path)}removeControl(k){Kr(k.control||null,k,!1),function at(z,Y){const k=z.indexOf(Y);k>-1&&z.splice(k,1)}(this.directives,k)}addFormGroup(k){this._setUpFormContainer(k)}removeFormGroup(k){this._cleanUpFormContainer(k)}getFormGroup(k){return this.form.get(k.path)}addFormArray(k){this._setUpFormContainer(k)}removeFormArray(k){this._cleanUpFormContainer(k)}getFormArray(k){return this.form.get(k.path)}updateModel(k,ge){this.form.get(k.path).setValue(ge)}onSubmit(k){return this._submittedReactive.set(!0),$e(this.form,this.directives),this.ngSubmit.emit(k),this.form._events.next(new Gt(this.control)),"dialog"===k?.target?.method}onReset(){this.resetForm()}resetForm(k=void 0){this.form.reset(k),this._submittedReactive.set(!1),this.form._events.next(new Pn(this.form))}_updateDomValue(){this.directives.forEach(k=>{const ge=k.control,Ct=this.form.get(k.path);ge!==Ct&&(Kr(ge||null,k),(z=>z instanceof Hn)(Ct)&&(bi(Ct,k,this.callSetDisabledState),k.control=Ct))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(k){const ge=this.form.get(k.path);ii(ge,k),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(k){if(this.form){const ge=this.form.get(k.path);ge&&function ci(z,Y){return un(z,Y)}(ge,k)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ot(this.form,this),this._oldForm&&un(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(ve,10),u.rXU(tt,10),u.rXU(Dr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formGroup",""]],hostBindings:function(ge,Ct){1&ge&&u.bIt("submit",function(Yi){return Ct.onSubmit(Yi)})("reset",function(){return Ct.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[u.Jv_([Ii]),u.Vt3,u.OA$]})}}return z})();const js={provide:Pe,useExisting:(0,u.Rfq)(()=>Vr)};let Vr=(()=>{class z extends Pe{set isDisabled(k){}static{this._ngModelWarningSentOnce=!1}constructor(k,ge,Ct,gi,Yi){super(),this._ngModelWarningConfig=Yi,this._added=!1,this.name=null,this.update=new u.bkB,this._ngModelWarningSent=!1,this._parent=k,this._setValidators(ge),this._setAsyncValidators(Ct),this.valueAccessor=vt(0,gi)}ngOnChanges(k){this._added||this._setUpControl(),Ae(k,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(k){this.viewModel=k,this.update.emit(k)}get path(){return Fr(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(ge){return new(ge||z)(u.rXU(We,13),u.rXU(ve,10),u.rXU(tt,10),u.rXU(F,10),u.rXU(hr,8))}}static{this.\u0275dir=u.FsC({type:z,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[u.Jv_([js]),u.Vt3,u.OA$]})}}return z})(),jr=(()=>{class z{constructor(){this._validator=Tt}ngOnChanges(k){if(this.inputName in k){const ge=this.normalizeInput(k[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):Tt,this._onChange&&this._onChange()}}validate(k){return this._validator(k)}registerOnValidatorChange(k){this._onChange=k}enabled(k){return null!=k}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275dir=u.FsC({type:z,features:[u.OA$]})}}return z})();const Es={provide:ve,useExisting:(0,u.Rfq)(()=>so),multi:!0},sa={provide:ve,useExisting:(0,u.Rfq)(()=>aa),multi:!0};let so=(()=>{class z extends jr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=u.L39,this.createValidator=k=>oe}enabled(k){return k}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Ct){2&ge&&u.BMQ("required",Ct._enabled?"":null)},inputs:{required:"required"},features:[u.Jv_([Es]),u.Vt3]})}}return z})(),aa=(()=>{class z extends so{constructor(){super(...arguments),this.createValidator=k=>he}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275dir=u.FsC({type:z,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ge,Ct){2&ge&&u.BMQ("required",Ct._enabled?"":null)},features:[u.Jv_([sa]),u.Vt3]})}}return z})(),fo=(()=>{class z{static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({})}}return z})();class Cs extends qe{constructor(Y,k,ge){super(yi(k),sn(ge,k)),this.controls=Y,this._initObservables(),this._setUpdateStrategy(k),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Y){return this.controls[this._adjustIndex(Y)]}push(Y,k={}){this.controls.push(Y),this._registerControl(Y),this.updateValueAndValidity({emitEvent:k.emitEvent}),this._onCollectionChange()}insert(Y,k,ge={}){this.controls.splice(Y,0,k),this._registerControl(k),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(Y,k={}){let ge=this._adjustIndex(Y);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:k.emitEvent})}setControl(Y,k,ge={}){let Ct=this._adjustIndex(Y);Ct<0&&(Ct=0),this.controls[Ct]&&this.controls[Ct]._registerOnCollectionChange(()=>{}),this.controls.splice(Ct,1),k&&(this.controls.splice(Ct,0,k),this._registerControl(k)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Y,k={}){ot(this,0,Y),Y.forEach((ge,Ct)=>{Bt(this,!1,Ct),this.at(Ct).setValue(ge,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k)}patchValue(Y,k={}){null!=Y&&(Y.forEach((ge,Ct)=>{this.at(Ct)&&this.at(Ct).patchValue(ge,{onlySelf:!0,emitEvent:k.emitEvent})}),this.updateValueAndValidity(k))}reset(Y=[],k={}){this._forEachChild((ge,Ct)=>{ge.reset(Y[Ct],{onlySelf:!0,emitEvent:k.emitEvent})}),this._updatePristine(k,this),this._updateTouched(k,this),this.updateValueAndValidity(k)}getRawValue(){return this.controls.map(Y=>Y.getRawValue())}clear(Y={}){this.controls.length<1||(this._forEachChild(k=>k._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Y.emitEvent}))}_adjustIndex(Y){return Y<0?Y+this.length:Y}_syncPendingControls(){let Y=this.controls.reduce((k,ge)=>!!ge._syncPendingControls()||k,!1);return Y&&this.updateValueAndValidity({onlySelf:!0}),Y}_forEachChild(Y){this.controls.forEach((k,ge)=>{Y(k,ge)})}_updateValue(){this.value=this.controls.filter(Y=>Y.enabled||this.disabled).map(Y=>Y.value)}_anyControls(Y){return this.controls.some(k=>k.enabled&&Y(k))}_setUpControls(){this._forEachChild(Y=>this._registerControl(Y))}_allControlsDisabled(){for(const Y of this.controls)if(Y.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Y){Y.setParent(this),Y._registerOnCollectionChange(this._onCollectionChange)}_find(Y){return this.at(Y)??null}}function Ra(z){return!!z&&(void 0!==z.asyncValidators||void 0!==z.validators||void 0!==z.updateOn)}let Os=(()=>{class z{constructor(){this.useNonNullable=!1}get nonNullable(){const k=new z;return k.useNonNullable=!0,k}group(k,ge=null){const Ct=this._reduceControls(k);let gi={};return Ra(ge)?gi=ge:null!==ge&&(gi.validators=ge.validator,gi.asyncValidators=ge.asyncValidator),new Ie(Ct,gi)}record(k,ge=null){const Ct=this._reduceControls(k);return new li(Ct,ge)}control(k,ge,Ct){let gi={};return this.useNonNullable?(Ra(ge)?gi=ge:(gi.validators=ge,gi.asyncValidators=Ct),new Hn(k,{...gi,nonNullable:!0})):new Hn(k,ge,Ct)}array(k,ge,Ct){const gi=k.map(Yi=>this._createControl(Yi));return new Cs(gi,ge,Ct)}_reduceControls(k){const ge={};return Object.keys(k).forEach(Ct=>{ge[Ct]=this._createControl(k[Ct])}),ge}_createControl(k){return k instanceof Hn||k instanceof qe?k:Array.isArray(k)?this.control(k[0],k.length>1?k[1]:null,k.length>2?k[2]:null):this.control(k)}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})(),os=(()=>{class z extends Os{group(k,ge=null){return super.group(k,ge)}control(k,ge,Ct){return super.control(k,ge,Ct)}array(k,ge,Ct){return super.array(k,ge,Ct)}static{this.\u0275fac=(()=>{let k;return function(Ct){return(k||(k=u.xGo(z)))(Ct||z)}})()}static{this.\u0275prov=u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})(),_r=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:Dr,useValue:k.callSetDisabledState??Mi}]}}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({imports:[fo]})}}return z})(),Ao=(()=>{class z{static withConfig(k){return{ngModule:z,providers:[{provide:hr,useValue:k.warnOnNgModelWithFormControl??"always"},{provide:Dr,useValue:k.callSetDisabledState??Mi}]}}static{this.\u0275fac=function(ge){return new(ge||z)}}static{this.\u0275mod=u.$C({type:z})}static{this.\u0275inj=u.G2t({imports:[fo]})}}return z})()},8834:(tn,Re,v)=>{"use strict";v.d(Re,{$0:()=>It,$z:()=>rt,Hl:()=>$n,It:()=>Xe,iY:()=>nn,pQ:()=>Fn});var u=v(6860),y=v(4438),o=v(9888),B=v(6600);const W=["mat-button",""],ee=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],re=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],F=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",L=["mat-mini-fab",""],de=["mat-icon-button",""],be=["*"],Me=new y.nKC("MAT_BUTTON_CONFIG"),ve=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let tt=(()=>{class yn{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(mt){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,mt)}get disableRipple(){return this._disableRipple}set disableRipple(mt){this._disableRipple=mt,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(mt){this._disabled=mt,this._updateRippleDisabled()}constructor(mt,Ee,J,Se){this._elementRef=mt,this._platform=Ee,this._ngZone=J,this._animationMode=Se,this._focusMonitor=(0,y.WQX)(o.FN),this._rippleLoader=(0,y.WQX)(B.Ej),this._isFab=!1,this._disableRipple=!1,this._disabled=!1;const gt=(0,y.WQX)(Me,{optional:!0}),Ne=mt.nativeElement,Ze=Ne.classList;this.disabledInteractive=gt?.disabledInteractive??!1,this.color=gt?.color??null,this._rippleLoader?.configureRipple(Ne,{className:"mat-mdc-button-ripple"});for(const{attribute:je,mdcClasses:Lt}of ve)Ne.hasAttribute(je)&&Ze.add(...Lt)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(mt="program",Ee){mt?this._focusMonitor.focusVia(this._elementRef.nativeElement,mt,Ee):this._elementRef.nativeElement.focus(Ee)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static{this.\u0275fac=function(Ee){y.QTQ()}}static{this.\u0275dir=y.FsC({type:yn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",y.L39],disabled:[2,"disabled","disabled",y.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",y.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},features:[y.GFd]})}}return yn})(),Ve=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se),this._haltDisabledEvents=gt=>{this.disabled&&(gt.preventDefault(),gt.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_getAriaDisabled(){return null==this.ariaDisabled?this.disabled:this.ariaDisabled}static{this.\u0275fac=function(Ee){y.QTQ()}}static{this.\u0275dir=y.FsC({type:yn,inputs:{tabIndex:[2,"tabIndex","tabIndex",mt=>null==mt?void 0:(0,y.Udg)(mt)]},features:[y.GFd,y.Vt3]})}}return yn})(),rt=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:W,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}}return yn})(),Xe=(()=>{class yn extends Ve{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:15,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:W,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 8px);height:var(--mdc-text-button-container-height);font-family:var(--mdc-text-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 8px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, 0);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, 0)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display)}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-app-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-filled-button-horizontal-padding, 16px);height:var(--mdc-filled-button-container-height);font-family:var(--mdc-filled-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -4px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -4px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-app-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-app-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-app-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-protected-button-horizontal-padding, 16px);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-app-level1));height:var(--mdc-protected-button-container-height);font-family:var(--mdc-protected-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-app-label-large-weight))}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -4px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -4px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-app-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-app-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-app-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-app-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-app-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-app-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 var(--mat-outlined-button-horizontal-padding, 15px);height:var(--mdc-outlined-button-container-height);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-app-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-app-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-app-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-app-corner-full));border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -4px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -4px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-app-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-app-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-app-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button .mdc-button__ripple{border-width:var(--mdc-outlined-button-outline-width);border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',F],encapsulation:2,changeDetection:0})}}return yn})();const oe=new y.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:he});function he(){return{color:"accent"}}const Le=he();let It=(()=>{class yn extends tt{constructor(mt,Ee,J,Se,gt){super(mt,Ee,J,Se),this._options=gt,this._isFab=!0,this._options=this._options||Le,this.color=this._options.color||Le.color}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8),y.rXU(oe,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-mini-fab",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:L,ngContentSelectors:re,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(ee),y.nrm(0,"span",0),y.SdG(1),y.j41(2,"span",1),y.SdG(3,1),y.k0s(),y.SdG(4,2),y.nrm(5,"span",2)(6,"span",3)),2&Ee&&y.AVh("mdc-button__ripple",!J._isFab)("mdc-fab__ripple",J._isFab)},styles:['.mat-mdc-fab-base{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::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}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-app-corner-large));color:var(--mat-fab-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-app-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-app-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-app-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color)}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-app-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color);background-color:var(--mat-fab-small-disabled-state-container-color)}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-app-level3));height:var(--mdc-extended-fab-container-height);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-app-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-app-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-app-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-app-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-app-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-app-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-app-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}}return yn})(),nn=(()=>{class yn extends tt{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("aria-disabled",J._getAriaDisabled()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],standalone:!0,features:[y.Vt3,y.aNF],attrs:de,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',F],encapsulation:2,changeDetection:0})}}return yn})(),Fn=(()=>{class yn extends Ve{constructor(mt,Ee,J,Se){super(mt,Ee,J,Se)}static{this.\u0275fac=function(Ee){return new(Ee||yn)(y.rXU(y.aKT),y.rXU(u.OD),y.rXU(y.SKi),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:yn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(Ee,J){2&Ee&&(y.BMQ("disabled",J._getDisabledAttribute())("tabindex",J.disabled&&!J.disabledInteractive?-1:J.tabIndex)("aria-disabled",J._getDisabledAttribute()),y.HbH(J.color?"mat-"+J.color:""),y.AVh("mat-mdc-button-disabled",J.disabled)("mat-mdc-button-disabled-interactive",J.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-unthemed",!J.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],standalone:!0,features:[y.Vt3,y.aNF],attrs:de,ngContentSelectors:be,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Ee,J){1&Ee&&(y.NAR(),y.nrm(0,"span",0),y.SdG(1),y.nrm(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 48px);height:var(--mdc-icon-button-state-layer-size, 48px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 48px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size);color:var(--mdc-icon-button-icon-color, var(--mat-app-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-app-on-surface-variant))}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-app-focus-state-layer-opacity))}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-app-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',F],encapsulation:2,changeDetection:0})}}return yn})(),$n=(()=>{class yn{static{this.\u0275fac=function(Ee){return new(Ee||yn)}}static{this.\u0275mod=y.$C({type:yn})}static{this.\u0275inj=y.G2t({imports:[B.yE,B.pZ,B.yE]})}}return yn})()},6600:(tn,Re,v)=>{"use strict";v.d(Re,{MJ:()=>J,es:()=>me,N:()=>oe,de:()=>Se,Ju:()=>mt,QC:()=>zt,is:()=>ue,yE:()=>he,wT:()=>Ln,Sy:()=>Cn,MI:()=>On,r6:()=>T,Ej:()=>yi,pZ:()=>N,X0:()=>$n,tO:()=>Ti,jb:()=>wi,TL:()=>en});var u=v(4438),y=v(9888),o=v(8203),W=v(177),ee=v(6860),re=v(4085),V=v(1413),F=v(7336);const fe=["text"],de=[[["mat-icon"]],"*"],be=["mat-icon","*"];function Te(sn,At){if(1&sn&&u.nrm(0,"mat-pseudo-checkbox",1),2&sn){const st=u.XpG();u.Y8G("disabled",st.disabled)("state",st.selected?"checked":"unchecked")}}function Me(sn,At){if(1&sn&&u.nrm(0,"mat-pseudo-checkbox",3),2&sn){const st=u.XpG();u.Y8G("disabled",st.disabled)}}function te(sn,At){if(1&sn&&(u.j41(0,"span",4),u.EFF(1),u.k0s()),2&sn){const st=u.XpG();u.R7$(),u.SpI("(",st.group.label,")")}}const ve=["mat-internal-form-field",""],tt=["*"],oe=new u.nKC("mat-sanity-checks",{providedIn:"root",factory:function Xe(){return!0}});let he=(()=>{class sn{constructor(st,Bt,ot){this._sanityChecks=Bt,this._document=ot,this._hasDoneGlobalChecks=!1,st._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(st){return!(0,ee.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[st])}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.KVO(y.Q_),u.KVO(oe,8),u.KVO(W.qQ))}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[o.jI,o.jI]})}}return sn})();class $n{constructor(At,st,Bt,ot,qe){this._defaultMatcher=At,this.ngControl=st,this._parentFormGroup=Bt,this._parentForm=ot,this._stateChanges=qe,this.errorState=!1}updateErrorState(){const At=this.errorState,st=this._parentFormGroup||this._parentForm,Bt=this.matcher||this._defaultMatcher,ot=this.ngControl?this.ngControl.control:null,qe=Bt?.isErrorState(ot,st)??!1;qe!==At&&(this.errorState=qe,this._stateChanges.next())}}const mt=new u.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function Ee(){return(0,u.WQX)(u.xe9)}});class J{constructor(){this._localeChanges=new V.B,this.localeChanges=this._localeChanges}getValidDateOrNull(At){return this.isDateInstance(At)&&this.isValid(At)?At:null}deserialize(At){return null==At||this.isDateInstance(At)&&this.isValid(At)?At:this.invalid()}setLocale(At){this.locale=At,this._localeChanges.next()}compareDate(At,st){return this.getYear(At)-this.getYear(st)||this.getMonth(At)-this.getMonth(st)||this.getDate(At)-this.getDate(st)}sameDate(At,st){if(At&&st){let Bt=this.isValid(At),ot=this.isValid(st);return Bt&&ot?!this.compareDate(At,st):Bt==ot}return At==st}clampDate(At,st,Bt){return st&&this.compareDate(At,st)<0?st:Bt&&this.compareDate(At,Bt)>0?Bt:At}}const Se=new u.nKC("mat-date-formats");let me=(()=>{class sn{isErrorState(st,Bt){return!!(st&&st.invalid&&(st.touched||Bt&&Bt.submitted))}static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275prov=u.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}}return sn})();var ut=function(sn){return sn[sn.FADING_IN=0]="FADING_IN",sn[sn.VISIBLE=1]="VISIBLE",sn[sn.FADING_OUT=2]="FADING_OUT",sn[sn.HIDDEN=3]="HIDDEN",sn}(ut||{});class Rt{constructor(At,st,Bt,ot=!1){this._renderer=At,this.element=st,this.config=Bt,this._animationForciblyDisabledThroughCss=ot,this.state=ut.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}}const wt=(0,ee.BQ)({passive:!0,capture:!0});class mn{constructor(){this._events=new Map,this._delegateEventHandler=At=>{const st=(0,ee.Fb)(At);st&&this._events.get(At.type)?.forEach((Bt,ot)=>{(ot===st||ot.contains(st))&&Bt.forEach(qe=>qe.handleEvent(At))})}}addHandler(At,st,Bt,ot){const qe=this._events.get(st);if(qe){const Ie=qe.get(Bt);Ie?Ie.add(ot):qe.set(Bt,new Set([ot]))}else this._events.set(st,new Map([[Bt,new Set([ot])]])),At.runOutsideAngular(()=>{document.addEventListener(st,this._delegateEventHandler,wt)})}removeHandler(At,st,Bt){const ot=this._events.get(At);if(!ot)return;const qe=ot.get(st);qe&&(qe.delete(Bt),0===qe.size&&ot.delete(st),0===ot.size&&(this._events.delete(At),document.removeEventListener(At,this._delegateEventHandler,wt)))}}const ni={enterDuration:225,exitDuration:150},_e=(0,ee.BQ)({passive:!0,capture:!0}),Je=["mousedown","touchstart"],Ge=["mouseup","mouseleave","touchend","touchcancel"];class dt{static{this._eventManager=new mn}constructor(At,st,Bt,ot){this._target=At,this._ngZone=st,this._platform=ot,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ot.isBrowser&&(this._containerElement=(0,re.i8)(Bt))}fadeInRipple(At,st,Bt={}){const ot=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),qe={...ni,...Bt.animation};Bt.centered&&(At=ot.left+ot.width/2,st=ot.top+ot.height/2);const Ie=Bt.radius||function rn(sn,At,st){const Bt=Math.max(Math.abs(sn-st.left),Math.abs(sn-st.right)),ot=Math.max(Math.abs(At-st.top),Math.abs(At-st.bottom));return Math.sqrt(Bt*Bt+ot*ot)}(At,st,ot),lt=At-ot.left,Xt=st-ot.top,an=qe.enterDuration,li=document.createElement("div");li.classList.add("mat-ripple-element"),li.style.left=lt-Ie+"px",li.style.top=Xt-Ie+"px",li.style.height=2*Ie+"px",li.style.width=2*Ie+"px",null!=Bt.color&&(li.style.backgroundColor=Bt.color),li.style.transitionDuration=`${an}ms`,this._containerElement.appendChild(li);const wr=window.getComputedStyle(li),Mi=wr.transitionDuration,Fr="none"===wr.transitionProperty||"0s"===Mi||"0s, 0s"===Mi||0===ot.width&&0===ot.height,bi=new Rt(this,li,Bt,Fr);li.style.transform="scale3d(1, 1, 1)",bi.state=ut.FADING_IN,Bt.persistent||(this._mostRecentTransientRipple=bi);let Kr=null;return!Fr&&(an||qe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Or=()=>{Kr&&(Kr.fallbackTimer=null),clearTimeout(Ot),this._finishRippleTransition(bi)},ft=()=>this._destroyRipple(bi),Ot=setTimeout(ft,an+100);li.addEventListener("transitionend",Or),li.addEventListener("transitioncancel",ft),Kr={onTransitionEnd:Or,onTransitionCancel:ft,fallbackTimer:Ot}}),this._activeRipples.set(bi,Kr),(Fr||!an)&&this._finishRippleTransition(bi),bi}fadeOutRipple(At){if(At.state===ut.FADING_OUT||At.state===ut.HIDDEN)return;const st=At.element,Bt={...ni,...At.config.animation};st.style.transitionDuration=`${Bt.exitDuration}ms`,st.style.opacity="0",At.state=ut.FADING_OUT,(At._animationForciblyDisabledThroughCss||!Bt.exitDuration)&&this._finishRippleTransition(At)}fadeOutAll(){this._getActiveRipples().forEach(At=>At.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(At=>{At.config.persistent||At.fadeOut()})}setupTriggerEvents(At){const st=(0,re.i8)(At);!this._platform.isBrowser||!st||st===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=st,Je.forEach(Bt=>{dt._eventManager.addHandler(this._ngZone,Bt,st,this)}))}handleEvent(At){"mousedown"===At.type?this._onMousedown(At):"touchstart"===At.type?this._onTouchStart(At):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ge.forEach(st=>{this._triggerElement.addEventListener(st,this,_e)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(At){At.state===ut.FADING_IN?this._startFadeOutTransition(At):At.state===ut.FADING_OUT&&this._destroyRipple(At)}_startFadeOutTransition(At){const st=At===this._mostRecentTransientRipple,{persistent:Bt}=At.config;At.state=ut.VISIBLE,!Bt&&(!st||!this._isPointerDown)&&At.fadeOut()}_destroyRipple(At){const st=this._activeRipples.get(At)??null;this._activeRipples.delete(At),this._activeRipples.size||(this._containerRect=null),At===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),At.state=ut.HIDDEN,null!==st&&(At.element.removeEventListener("transitionend",st.onTransitionEnd),At.element.removeEventListener("transitioncancel",st.onTransitionCancel),null!==st.fallbackTimer&&clearTimeout(st.fallbackTimer)),At.element.remove()}_onMousedown(At){const st=(0,y._G)(At),Bt=this._lastTouchStartEvent&&Date.now(){!At.config.persistent&&(At.state===ut.VISIBLE||At.config.terminateOnPointerUp&&At.state===ut.FADING_IN)&&At.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const At=this._triggerElement;At&&(Je.forEach(st=>dt._eventManager.removeHandler(st,At,this)),this._pointerUpEventsRegistered&&(Ge.forEach(st=>At.removeEventListener(st,this,_e)),this._pointerUpEventsRegistered=!1))}}const Q=new u.nKC("mat-ripple-global-options");let T=(()=>{class sn{get disabled(){return this._disabled}set disabled(st){st&&this.fadeOutAllNonPersistent(),this._disabled=st,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(st){this._trigger=st,this._setupTriggerEventsIfEnabled()}constructor(st,Bt,ot,qe,Ie){this._elementRef=st,this._animationMode=Ie,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=qe||{},this._rippleRenderer=new dt(this,Bt,st,ot)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(st,Bt=0,ot){return"number"==typeof st?this._rippleRenderer.fadeInRipple(st,Bt,{...this.rippleConfig,...ot}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...st})}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(ee.OD),u.rXU(Q,8),u.rXU(u.bc$,8))}}static{this.\u0275dir=u.FsC({type:sn,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mat-ripple-unbounded",ot.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0})}}return sn})(),N=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[he,he]})}}return sn})(),$=(()=>{class sn{constructor(st){this._animationMode=st,this.state="unchecked",this.disabled=!1,this.appearance="full"}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.bc$,8))}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===ot.state)("mat-pseudo-checkbox-checked","checked"===ot.state)("mat-pseudo-checkbox-disabled",ot.disabled)("mat-pseudo-checkbox-minimal","minimal"===ot.appearance)("mat-pseudo-checkbox-full","full"===ot.appearance)("_mat-animation-noopable","NoopAnimations"===ot._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(Bt,ot){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-app-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-app-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-app-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-app-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-app-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}}return sn})(),le=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[he]})}}return sn})();const ue=new u.nKC("MAT_OPTION_PARENT_COMPONENT"),zt=new u.nKC("MatOptgroup");let jt=0;class On{constructor(At,st=!1){this.source=At,this.isUserInput=st}}let Ln=(()=>{class sn{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(st){this._disabled=st}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(st,Bt,ot,qe){this._element=st,this._changeDetectorRef=Bt,this._parent=ot,this.group=qe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+jt++,this.onSelectionChange=new u.bkB,this._stateChanges=new V.B}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(st=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),st&&this._emitSelectionChangeEvent())}deselect(st=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),st&&this._emitSelectionChangeEvent())}focus(st,Bt){const ot=this._getHostElement();"function"==typeof ot.focus&&ot.focus(Bt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(st){(st.keyCode===F.Fm||st.keyCode===F.t6)&&!(0,F.rp)(st)&&(this._selectViaInteraction(),st.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const st=this.viewValue;st!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=st)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(st=!1){this.onSelectionChange.emit(new On(this,st))}static{this.\u0275fac=function(Bt){return new(Bt||sn)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(ue,8),u.rXU(zt,8))}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["mat-option"]],viewQuery:function(Bt,ot){if(1&Bt&&u.GBs(fe,7),2&Bt){let qe;u.mGM(qe=u.lsd())&&(ot._text=qe.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Bt,ot){1&Bt&&u.bIt("click",function(){return ot._selectViaInteraction()})("keydown",function(Ie){return ot._handleKeydown(Ie)}),2&Bt&&(u.Mr5("id",ot.id),u.BMQ("aria-selected",ot.selected)("aria-disabled",ot.disabled.toString()),u.AVh("mdc-list-item--selected",ot.selected)("mat-mdc-option-multiple",ot.multiple)("mat-mdc-option-active",ot.active)("mdc-list-item--disabled",ot.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",u.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:be,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Bt,ot){1&Bt&&(u.NAR(de),u.DNE(0,Te,1,2,"mat-pseudo-checkbox",1),u.SdG(1),u.j41(2,"span",2,0),u.SdG(4,1),u.k0s(),u.DNE(5,Me,1,1,"mat-pseudo-checkbox",3)(6,te,2,1,"span",4),u.nrm(7,"div",5)),2&Bt&&(u.vxM(ot.multiple?0:-1),u.R7$(5),u.vxM(ot.multiple||!ot.selected||ot.hideSingleSelectionIndicator?-1:5),u.R7$(),u.vxM(ot.group&&ot.group._inert?6:-1),u.R7$(),u.Y8G("matRippleTrigger",ot._getHostElement())("matRippleDisabled",ot.disabled||ot.disableRipple))},dependencies:[$,T],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-app-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-app-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-app-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-app-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-app-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color);outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-app-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-app-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return sn})();function wi(sn,At,st){if(st.length){let Bt=At.toArray(),ot=st.toArray(),qe=0;for(let Ie=0;Iest+Bt?Math.max(0,sn-Bt+At):st}let Cn=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275mod=u.$C({type:sn})}static{this.\u0275inj=u.G2t({imports:[N,he,le]})}}return sn})();const He={capture:!0},Be=["focus","mousedown","mouseenter","touchstart"],ye="mat-ripple-loader-uninitialized",Ye="mat-ripple-loader-class-name",Gt="mat-ripple-loader-centered",Pn="mat-ripple-loader-disabled";let yi=(()=>{class sn{constructor(){this._document=(0,u.WQX)(W.qQ,{optional:!0}),this._animationMode=(0,u.WQX)(u.bc$,{optional:!0}),this._globalRippleOptions=(0,u.WQX)(Q,{optional:!0}),this._platform=(0,u.WQX)(ee.OD),this._ngZone=(0,u.WQX)(u.SKi),this._hosts=new Map,this._onInteraction=st=>{const Bt=(0,ee.Fb)(st);if(Bt instanceof HTMLElement){const ot=Bt.closest(`[${ye}="${this._globalRippleOptions?.namespace??""}"]`);ot&&this._createRipple(ot)}},this._ngZone.runOutsideAngular(()=>{for(const st of Be)this._document?.addEventListener(st,this._onInteraction,He)})}ngOnDestroy(){const st=this._hosts.keys();for(const Bt of st)this.destroyRipple(Bt);for(const Bt of Be)this._document?.removeEventListener(Bt,this._onInteraction,He)}configureRipple(st,Bt){st.setAttribute(ye,this._globalRippleOptions?.namespace??""),(Bt.className||!st.hasAttribute(Ye))&&st.setAttribute(Ye,Bt.className||""),Bt.centered&&st.setAttribute(Gt,""),Bt.disabled&&st.setAttribute(Pn,"")}getRipple(st){return this._hosts.get(st)||this._createRipple(st)}setDisabled(st,Bt){const ot=this._hosts.get(st);ot?ot.disabled=Bt:Bt?st.setAttribute(Pn,""):st.removeAttribute(Pn)}_createRipple(st){if(!this._document)return;const Bt=this._hosts.get(st);if(Bt)return Bt;st.querySelector(".mat-ripple")?.remove();const ot=this._document.createElement("span");ot.classList.add("mat-ripple",st.getAttribute(Ye)),st.append(ot);const qe=new T(new u.aKT(ot),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return qe._isInitialized=!0,qe.trigger=st,qe.centered=st.hasAttribute(Gt),qe.disabled=st.hasAttribute(Pn),this.attachRipple(st,qe),qe}attachRipple(st,Bt){st.removeAttribute(ye),this._hosts.set(st,Bt)}destroyRipple(st){const Bt=this._hosts.get(st);Bt&&(Bt.ngOnDestroy(),this._hosts.delete(st))}static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275prov=u.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})}}return sn})(),Ti=(()=>{class sn{static{this.\u0275fac=function(Bt){return new(Bt||sn)}}static{this.\u0275cmp=u.VBU({type:sn,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Bt,ot){2&Bt&&u.AVh("mdc-form-field--align-end","before"===ot.labelPosition)},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[u.aNF],attrs:ve,ngContentSelectors:tt,decls:1,vars:0,template:function(Bt,ot){1&Bt&&(u.NAR(),u.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}"],encapsulation:2,changeDetection:0})}}return sn})()},5351:(tn,Re,v)=>{"use strict";v.d(Re,{Vh:()=>Oe,bZ:()=>ut,E7:()=>_e,tx:()=>wt,Yi:()=>Zt,hM:()=>dt,CP:()=>Mt});var u=v(7987),y=v(177),o=v(4438),B=v(9888),W=v(6860),ee=v(6939),re=v(7336),V=v(1413),F=v(9030),U=v(7673),L=v(8203),fe=v(9172);function de(T,N){}class be{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Me=(()=>{class T extends ee.lb{constructor($,le,ue,nt,zt,Ut,jt,On){super(),this._elementRef=$,this._focusTrapFactory=le,this._config=nt,this._interactivityChecker=zt,this._ngZone=Ut,this._overlayRef=jt,this._focusMonitor=On,this._platform=(0,o.WQX)(W.OD),this._focusTrap=null,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this._changeDetectorRef=(0,o.WQX)(o.gRc),this._injector=(0,o.WQX)(o.zZn),this._isDestroyed=!1,this.attachDomPortal=Ln=>{this._portalOutlet.hasAttached();const wi=this._portalOutlet.attachDomPortal(Ln);return this._contentAttached(),wi},this._document=ue,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy($){this._ariaLabelledByQueue.push($),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy($){const le=this._ariaLabelledByQueue.indexOf($);le>-1&&(this._ariaLabelledByQueue.splice(le,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal($){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachComponentPortal($);return this._contentAttached(),le}attachTemplatePortal($){this._portalOutlet.hasAttached();const le=this._portalOutlet.attachTemplatePortal($);return this._contentAttached(),le}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus($,le){this._interactivityChecker.isFocusable($)||($.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ue=()=>{$.removeEventListener("blur",ue),$.removeEventListener("mousedown",ue),$.removeAttribute("tabindex")};$.addEventListener("blur",ue),$.addEventListener("mousedown",ue)})),$.focus(le)}_focusByCssSelector($,le){let ue=this._elementRef.nativeElement.querySelector($);ue&&this._forceFocus(ue,le)}_trapFocus(){this._isDestroyed||(0,o.mal)(()=>{const $=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||$.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)}},{injector:this._injector})}_restoreFocus(){const $=this._config.restoreFocus;let le=null;if("string"==typeof $?le=this._document.querySelector($):"boolean"==typeof $?le=$?this._elementFocusedBeforeDialogWasOpened:null:$&&(le=$),this._config.restoreFocus&&le&&"function"==typeof le.focus){const ue=(0,W.vc)(),nt=this._elementRef.nativeElement;(!ue||ue===this._document.body||ue===nt||nt.contains(ue))&&(this._focusMonitor?(this._focusMonitor.focusVia(le,this._closeInteractionType),this._closeInteractionType=null):le.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const $=this._elementRef.nativeElement,le=(0,W.vc)();return $===le||$.contains(le)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,W.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(o.aKT),o.rXU(B.GX),o.rXU(y.qQ,8),o.rXU(be),o.rXU(B.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(B.FN))}}static{this.\u0275cmp=o.VBU({type:T,selectors:[["cdk-dialog-container"]],viewQuery:function(le,ue){if(1&le&&o.GBs(ee.I3,7),2&le){let nt;o.mGM(nt=o.lsd())&&(ue._portalOutlet=nt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(le,ue){2&le&&o.BMQ("id",ue._config.id||null)("role",ue._config.role)("aria-modal",ue._config.ariaModal)("aria-labelledby",ue._config.ariaLabel?null:ue._ariaLabelledByQueue[0])("aria-label",ue._config.ariaLabel)("aria-describedby",ue._config.ariaDescribedBy||null)},standalone:!0,features:[o.Vt3,o.aNF],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(le,ue){1&le&&o.DNE(0,de,0,0,"ng-template",0)},dependencies:[ee.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return T})();class te{constructor(N,$){this.overlayRef=N,this.config=$,this.closed=new V.B,this.disableClose=$.disableClose,this.backdropClick=N.backdropClick(),this.keydownEvents=N.keydownEvents(),this.outsidePointerEvents=N.outsidePointerEvents(),this.id=$.id,this.keydownEvents.subscribe(le=>{le.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(le)&&(le.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=N.detachments().subscribe(()=>{!1!==$.closeOnOverlayDetachments&&this.close()})}close(N,$){if(this.containerInstance){const le=this.closed;this.containerInstance._closeInteractionType=$?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),le.next(N),le.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(N="",$=""){return this.overlayRef.updateSize({width:N,height:$}),this}addPanelClass(N){return this.overlayRef.addPanelClass(N),this}removePanelClass(N){return this.overlayRef.removePanelClass(N),this}}const ve=new o.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}}),tt=new o.nKC("DialogData"),bt=new o.nKC("DefaultDialogConfig");let Xe=0,oe=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor($,le,ue,nt,zt,Ut){this._overlay=$,this._injector=le,this._defaultOptions=ue,this._parentDialog=nt,this._overlayContainer=zt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,F.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.Z)(void 0))),this._scrollStrategy=Ut}open($,le){(le={...this._defaultOptions||new be,...le}).id=le.id||"cdk-dialog-"+Xe++,le.id&&this.getDialogById(le.id);const nt=this._getOverlayConfig(le),zt=this._overlay.create(nt),Ut=new te(zt,le),jt=this._attachContainer(zt,Ut,le);return Ut.containerInstance=jt,this._attachDialogContent($,Ut,jt,le),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ut),Ut.closed.subscribe(()=>this._removeOpenDialog(Ut,!0)),this.afterOpened.next(Ut),Ut}closeAll(){he(this.openDialogs,$=>$.close())}getDialogById($){return this.openDialogs.find(le=>le.id===$)}ngOnDestroy(){he(this._openDialogsAtThisLevel,$=>{!1===$.config.closeOnDestroy&&this._removeOpenDialog($,!1)}),he(this._openDialogsAtThisLevel,$=>$.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig($){const le=new u.rR({positionStrategy:$.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:$.scrollStrategy||this._scrollStrategy(),panelClass:$.panelClass,hasBackdrop:$.hasBackdrop,direction:$.direction,minWidth:$.minWidth,minHeight:$.minHeight,maxWidth:$.maxWidth,maxHeight:$.maxHeight,width:$.width,height:$.height,disposeOnNavigation:$.closeOnNavigation});return $.backdropClass&&(le.backdropClass=$.backdropClass),le}_attachContainer($,le,ue){const nt=ue.injector||ue.viewContainerRef?.injector,zt=[{provide:be,useValue:ue},{provide:te,useValue:le},{provide:u.yY,useValue:$}];let Ut;ue.container?"function"==typeof ue.container?Ut=ue.container:(Ut=ue.container.type,zt.push(...ue.container.providers(ue))):Ut=Me;const jt=new ee.A8(Ut,ue.viewContainerRef,o.zZn.create({parent:nt||this._injector,providers:zt}),ue.componentFactoryResolver);return $.attach(jt).instance}_attachDialogContent($,le,ue,nt){if($ instanceof o.C4Q){const zt=this._createInjector(nt,le,ue,void 0);let Ut={$implicit:nt.data,dialogRef:le};nt.templateContext&&(Ut={...Ut,..."function"==typeof nt.templateContext?nt.templateContext():nt.templateContext}),ue.attachTemplatePortal(new ee.VA($,null,Ut,zt))}else{const zt=this._createInjector(nt,le,ue,this._injector),Ut=ue.attachComponentPortal(new ee.A8($,nt.viewContainerRef,zt,nt.componentFactoryResolver));le.componentRef=Ut,le.componentInstance=Ut.instance}}_createInjector($,le,ue,nt){const zt=$.injector||$.viewContainerRef?.injector,Ut=[{provide:tt,useValue:$.data},{provide:te,useValue:le}];return $.providers&&("function"==typeof $.providers?Ut.push(...$.providers(le,$,ue)):Ut.push(...$.providers)),$.direction&&(!zt||!zt.get(L.dS,null,{optional:!0}))&&Ut.push({provide:L.dS,useValue:{value:$.direction,change:(0,U.of)()}}),o.zZn.create({parent:zt||nt,providers:Ut})}_removeOpenDialog($,le){const ue=this.openDialogs.indexOf($);ue>-1&&(this.openDialogs.splice(ue,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((nt,zt)=>{nt?zt.setAttribute("aria-hidden",nt):zt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),le&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const $=this._overlayContainer.getContainerElement();if($.parentElement){const le=$.parentElement.children;for(let ue=le.length-1;ue>-1;ue--){const nt=le[ue];nt!==$&&"SCRIPT"!==nt.nodeName&&"STYLE"!==nt.nodeName&&!nt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(nt,nt.getAttribute("aria-hidden")),nt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(le){return new(le||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(bt,8),o.KVO(T,12),o.KVO(u.Sf),o.KVO(ve))}}static{this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})();function he(T,N){let $=T.length;for(;$--;)N(T[$])}let Le=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275mod=o.$C({type:T})}static{this.\u0275inj=o.G2t({providers:[oe],imports:[u.z_,ee.jc,B.Pd,ee.jc]})}}return T})();var et=v(4085),It=v(7786),Et=v(5964),Tt=v(6697),nn=v(5542),Fn=v(6600);function yn(T,N){}v(9969);class di{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}}const mt="mdc-dialog--open",Ee="mdc-dialog--opening",J="mdc-dialog--closing";let Ne=(()=>{class T extends Me{constructor($,le,ue,nt,zt,Ut,jt,On,Ln){super($,le,ue,nt,zt,Ut,jt,Ln),this._animationMode=On,this._animationStateChanged=new o.bkB,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._actionSectionCount=0,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?je(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?je(this._config.exitAnimationDuration)??75: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(Ze,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ee,mt)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(mt),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(mt),this._animationsEnabled?(this._hostElement.style.setProperty(Ze,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(J)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount($){this._actionSectionCount+=$,this._changeDetectorRef.markForCheck()}_clearAnimationClasses(){this._hostElement.classList.remove(Ee,J)}_waitForAnimationToComplete($,le){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(le,$)}_requestAnimationFrame($){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame($):$()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone($){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:$})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal($){const le=super.attachComponentPortal($);return le.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),le}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(o.aKT),o.rXU(B.GX),o.rXU(y.qQ,8),o.rXU(di),o.rXU(B.Z7),o.rXU(o.SKi),o.rXU(u.yY),o.rXU(o.bc$,8),o.rXU(B.FN))}}static{this.\u0275cmp=o.VBU({type:T,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(le,ue){2&le&&(o.Mr5("id",ue._config.id),o.BMQ("aria-modal",ue._config.ariaModal)("role",ue._config.role)("aria-labelledby",ue._config.ariaLabel?null:ue._ariaLabelledByQueue[0])("aria-label",ue._config.ariaLabel)("aria-describedby",ue._config.ariaDescribedBy||null),o.AVh("_mat-animation-noopable",!ue._animationsEnabled)("mat-mdc-dialog-container-with-actions",ue._actionSectionCount>0))},standalone:!0,features:[o.Vt3,o.aNF],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(le,ue){1&le&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,yn,0,0,"ng-template",2),o.k0s()())},dependencies:[ee.I3],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})}}return T})();const Ze="--mat-dialog-transition-duration";function je(T){return null==T?null:"number"==typeof T?T:T.endsWith("ms")?(0,et.OE)(T.substring(0,T.length-2)):T.endsWith("s")?1e3*(0,et.OE)(T.substring(0,T.length-1)):"0"===T?0:null}var Lt=function(T){return T[T.OPEN=0]="OPEN",T[T.CLOSING=1]="CLOSING",T[T.CLOSED=2]="CLOSED",T}(Lt||{});class Mt{constructor(N,$,le){this._ref=N,this._containerInstance=le,this._afterOpened=new V.B,this._beforeClosed=new V.B,this._state=Lt.OPEN,this.disableClose=$.disableClose,this.id=N.id,N.addPanelClass("mat-mdc-dialog-panel"),le._animationStateChanged.pipe((0,Et.p)(ue=>"opened"===ue.state),(0,Tt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),le._animationStateChanged.pipe((0,Et.p)(ue=>"closed"===ue.state),(0,Tt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),N.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,It.h)(this.backdropClick(),this.keydownEvents().pipe((0,Et.p)(ue=>ue.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(ue)))).subscribe(ue=>{this.disableClose||(ue.preventDefault(),we(this,"keydown"===ue.type?"keyboard":"mouse"))})}close(N){this._result=N,this._containerInstance._animationStateChanged.pipe((0,Et.p)($=>"closing"===$.state),(0,Tt.s)(1)).subscribe($=>{this._beforeClosed.next(N),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),$.totalTime+100)}),this._state=Lt.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(N){let $=this._ref.config.positionStrategy;return N&&(N.left||N.right)?N.left?$.left(N.left):$.right(N.right):$.centerHorizontally(),N&&(N.top||N.bottom)?N.top?$.top(N.top):$.bottom(N.bottom):$.centerVertically(),this._ref.updatePosition(),this}updateSize(N="",$=""){return this._ref.updateSize(N,$),this}addPanelClass(N){return this._ref.addPanelClass(N),this}removePanelClass(N){return this._ref.removePanelClass(N),this}getState(){return this._state}_finishDialogClose(){this._state=Lt.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function we(T,N,$){return T._closeInteractionType=N,T.close($)}const Oe=new o.nKC("MatMdcDialogData"),me=new o.nKC("mat-mdc-dialog-default-options"),We=new o.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const T=(0,o.WQX)(u.hJ);return()=>T.scrollStrategies.block()}});let xe=0,ut=(()=>{class T{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const $=this._parentDialog;return $?$._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor($,le,ue,nt,zt,Ut,jt,On){this._overlay=$,this._defaultOptions=nt,this._scrollStrategy=zt,this._parentDialog=Ut,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V.B,this._afterOpenedAtThisLevel=new V.B,this.dialogConfigClass=di,this.afterAllClosed=(0,F.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,fe.Z)(void 0))),this._dialog=le.get(oe),this._dialogRefConstructor=Mt,this._dialogContainerType=Ne,this._dialogDataToken=Oe}open($,le){let ue;(le={...this._defaultOptions||new di,...le}).id=le.id||"mat-mdc-dialog-"+xe++,le.scrollStrategy=le.scrollStrategy||this._scrollStrategy();const nt=this._dialog.open($,{...le,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:le},{provide:be,useValue:le}]},templateContext:()=>({dialogRef:ue}),providers:(zt,Ut,jt)=>(ue=new this._dialogRefConstructor(zt,le,jt),ue.updatePosition(le?.position),[{provide:this._dialogContainerType,useValue:jt},{provide:this._dialogDataToken,useValue:Ut.data},{provide:this._dialogRefConstructor,useValue:ue}])});return ue.componentRef=nt.componentRef,ue.componentInstance=nt.componentInstance,this.openDialogs.push(ue),this.afterOpened.next(ue),ue.afterClosed().subscribe(()=>{const zt=this.openDialogs.indexOf(ue);zt>-1&&(this.openDialogs.splice(zt,1),this.openDialogs.length||this._getAfterAllClosed().next())}),ue}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById($){return this.openDialogs.find(le=>le.id===$)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs($){let le=$.length;for(;le--;)$[le].close()}static{this.\u0275fac=function(le){return new(le||T)(o.KVO(u.hJ),o.KVO(o.zZn),o.KVO(y.aZ,8),o.KVO(me,8),o.KVO(We),o.KVO(T,12),o.KVO(u.Sf),o.KVO(o.bc$,8))}}static{this.\u0275prov=o.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})(),wt=(()=>{class T{constructor($,le,ue){this.dialogRef=$,this._elementRef=le,this._dialog=ue,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Je(this._elementRef,this._dialog.openDialogs))}ngOnChanges($){const le=$._matDialogClose||$._matDialogCloseResult;le&&(this.dialogResult=le.currentValue)}_onButtonClick($){we(this.dialogRef,0===$.screenX&&0===$.screenY?"keyboard":"mouse",this.dialogResult)}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(Mt,8),o.rXU(o.aKT),o.rXU(ut))}}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(le,ue){1&le&&o.bIt("click",function(zt){return ue._onButtonClick(zt)}),2&le&&o.BMQ("aria-label",ue.ariaLabel||null)("type",ue.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[o.OA$]})}}return T})(),mn=(()=>{class T{constructor($,le,ue){this._dialogRef=$,this._elementRef=le,this._dialog=ue}ngOnInit(){this._dialogRef||(this._dialogRef=Je(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static{this.\u0275fac=function(le){return new(le||T)(o.rXU(Mt,8),o.rXU(o.aKT),o.rXU(ut))}}static{this.\u0275dir=o.FsC({type:T,standalone:!0})}}return T})(),Zt=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],standalone:!0,features:[o.nM4([nn.uv])]})}}return T})(),_e=(()=>{class T extends mn{_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static{this.\u0275fac=(()=>{let $;return function(ue){return($||($=o.xGo(T)))(ue||T)}})()}static{this.\u0275dir=o.FsC({type:T,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(le,ue){2&le&&o.AVh("mat-mdc-dialog-actions-align-start","start"===ue.align)("mat-mdc-dialog-actions-align-center","center"===ue.align)("mat-mdc-dialog-actions-align-end","end"===ue.align)},inputs:{align:"align"},standalone:!0,features:[o.Vt3]})}}return T})();function Je(T,N){let $=T.nativeElement.parentElement;for(;$&&!$.classList.contains("mat-mdc-dialog-container");)$=$.parentElement;return $?N.find(le=>le.id===$.id):null}let dt=(()=>{class T{static{this.\u0275fac=function(le){return new(le||T)}}static{this.\u0275mod=o.$C({type:T})}static{this.\u0275inj=o.G2t({providers:[ut],imports:[Le,u.z_,ee.jc,Fn.yE,Fn.yE]})}}return T})()},1997:(tn,Re,v)=>{"use strict";v.d(Re,{q:()=>B,w:()=>W});var u=v(4438),y=v(4085),o=v(6600);let B=(()=>{class ee{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(V){this._vertical=(0,y.he)(V)}get inset(){return this._inset}set inset(V){this._inset=(0,y.he)(V)}static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275cmp=u.VBU({type:ee,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(F,U){2&F&&(u.BMQ("aria-orientation",U.vertical?"vertical":"horizontal"),u.AVh("mat-divider-vertical",U.vertical)("mat-divider-horizontal",!U.vertical)("mat-divider-inset",U.inset))},inputs:{vertical:"vertical",inset:"inset"},standalone:!0,features:[u.aNF],decls:0,vars:0,template:function(F,U){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-app-outline));border-top-width:var(--mat-divider-width)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-app-outline));border-right-width:var(--mat-divider-width)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0})}}return ee})(),W=(()=>{class ee{static{this.\u0275fac=function(F){return new(F||ee)}}static{this.\u0275mod=u.$C({type:ee})}static{this.\u0275inj=u.G2t({imports:[o.yE,o.yE]})}}return ee})()},2102:(tn,Re,v)=>{"use strict";v.d(Re,{xb:()=>le,U$:()=>ue,TL:()=>We,rl:()=>Ln,qT:()=>Q,RG:()=>wi,MV:()=>xt,nJ:()=>we,JW:()=>ut,yw:()=>wt});var u=v(4438),y=v(8203),o=v(4085),B=v(6860),W=v(177),ee=v(8359),re=v(1413),V=v(7786),F=v(6977),U=v(1985),L=v(5964),fe=v(4668);class be{constructor(Cn){this._box=Cn,this._destroyed=new re.B,this._resizeSubject=new re.B,this._elementObservables=new Map,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(He=>this._resizeSubject.next(He)))}observe(Cn){return this._elementObservables.has(Cn)||this._elementObservables.set(Cn,new U.c(He=>{const Be=this._resizeSubject.subscribe(He);return this._resizeObserver?.observe(Cn,{box:this._box}),()=>{this._resizeObserver?.unobserve(Cn),Be.unsubscribe(),this._elementObservables.delete(Cn)}}).pipe((0,L.p)(He=>He.some(Be=>Be.target===Cn)),(0,fe.t)({bufferSize:1,refCount:!0}),(0,F.Q)(this._destroyed))),this._elementObservables.get(Cn)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Te=(()=>{class en{constructor(){this._observers=new Map,this._ngZone=(0,u.WQX)(u.SKi)}ngOnDestroy(){for(const[,He]of this._observers)He.destroy();this._observers.clear()}observe(He,Be){const ye=Be?.box||"content-box";return this._observers.has(ye)||this._observers.set(ye,new be(ye)),this._observers.get(ye).observe(He)}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275prov=u.jDH({token:en,factory:en.\u0275fac,providedIn:"root"})}}return en})();var Me=v(9969),te=v(2318),ve=v(6600);const tt=["notch"],bt=["matFormFieldNotchedOutline",""],Ve=["*"],rt=["textField"],Xe=["iconPrefixContainer"],oe=["textPrefixContainer"],he=["iconSuffixContainer"],Le=["textSuffixContainer"],et=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],It=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Et(en,Cn){1&en&&u.nrm(0,"span",21)}function Tt(en,Cn){if(1&en&&(u.j41(0,"label",20),u.SdG(1,1),u.DNE(2,Et,1,0,"span",21),u.k0s()),2&en){const He=u.XpG(2);u.Y8G("floating",He._shouldLabelFloat())("monitorResize",He._hasOutline())("id",He._labelId),u.BMQ("for",He._control.disableAutomaticLabeling?null:He._control.id),u.R7$(2),u.vxM(!He.hideRequiredMarker&&He._control.required?2:-1)}}function nn(en,Cn){if(1&en&&u.DNE(0,Tt,3,5,"label",20),2&en){const He=u.XpG();u.vxM(He._hasFloatingLabel()?0:-1)}}function Fn(en,Cn){1&en&&u.nrm(0,"div",7)}function $n(en,Cn){}function yn(en,Cn){if(1&en&&u.DNE(0,$n,0,0,"ng-template",13),2&en){u.XpG(2);const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function di(en,Cn){if(1&en&&(u.j41(0,"div",9),u.DNE(1,yn,1,1,null,13),u.k0s()),2&en){const He=u.XpG();u.Y8G("matFormFieldNotchedOutlineOpen",He._shouldLabelFloat()),u.R7$(),u.vxM(He._forceDisplayInfixLabel()?-1:1)}}function mt(en,Cn){1&en&&(u.j41(0,"div",10,2),u.SdG(2,2),u.k0s())}function Ee(en,Cn){1&en&&(u.j41(0,"div",11,3),u.SdG(2,3),u.k0s())}function J(en,Cn){}function Se(en,Cn){if(1&en&&u.DNE(0,J,0,0,"ng-template",13),2&en){u.XpG();const He=u.sdS(1);u.Y8G("ngTemplateOutlet",He)}}function gt(en,Cn){1&en&&(u.j41(0,"div",14,4),u.SdG(2,4),u.k0s())}function Ne(en,Cn){1&en&&(u.j41(0,"div",15,5),u.SdG(2,5),u.k0s())}function Ze(en,Cn){1&en&&u.nrm(0,"div",16)}function je(en,Cn){if(1&en&&(u.j41(0,"div",18),u.SdG(1,6),u.k0s()),2&en){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState)}}function Lt(en,Cn){if(1&en&&(u.j41(0,"mat-hint",22),u.EFF(1),u.k0s()),2&en){const He=u.XpG(2);u.Y8G("id",He._hintLabelId),u.R7$(),u.JRh(He.hintLabel)}}function Mt(en,Cn){if(1&en&&(u.j41(0,"div",19),u.DNE(1,Lt,2,2,"mat-hint",22),u.SdG(2,7),u.nrm(3,"div",23),u.SdG(4,8),u.k0s()),2&en){const He=u.XpG();u.Y8G("@transitionMessages",He._subscriptAnimationState),u.R7$(),u.vxM(He.hintLabel?1:-1)}}let we=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-label"]],standalone:!0})}}return en})(),Oe=0;const me=new u.nKC("MatError");let We=(()=>{class en{constructor(He,Be){this.id="mat-mdc-error-"+Oe++,He||Be.nativeElement.setAttribute("aria-live","polite")}static{this.\u0275fac=function(Be){return new(Be||en)(u.kS0("aria-live"),u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Be,ye){2&Be&&u.Mr5("id",ye.id)},inputs:{id:"id"},standalone:!0,features:[u.Jv_([{provide:me,useExisting:en}])]})}}return en})(),Pe=0,xt=(()=>{class en{constructor(){this.align="start",this.id="mat-mdc-hint-"+Pe++}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Be,ye){2&Be&&(u.Mr5("id",ye.id),u.BMQ("align",null),u.AVh("mat-mdc-form-field-hint-end","end"===ye.align))},inputs:{align:"align",id:"id"},standalone:!0})}}return en})();const xe=new u.nKC("MatPrefix");let ut=(()=>{class en{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:xe,useExisting:en}])]})}}return en})();const Rt=new u.nKC("MatSuffix");let wt=(()=>{class en{constructor(){this._isText=!1}set _isTextSelector(He){this._isText=!0}static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},standalone:!0,features:[u.Jv_([{provide:Rt,useExisting:en}])]})}}return en})();const mn=new u.nKC("FloatingLabelParent");let ni=(()=>{class en{get floating(){return this._floating}set floating(He){this._floating=He,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(He){this._monitorResize=He,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(He){this._elementRef=He,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,u.WQX)(Te),this._ngZone=(0,u.WQX)(u.SKi),this._parent=(0,u.WQX)(mn),this._resizeSubscription=new ee.yU}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Zt(en){if(null!==en.offsetParent)return en.scrollWidth;const He=en.cloneNode(!0);He.style.setProperty("position","absolute"),He.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(He);const Be=He.scrollWidth;return He.remove(),Be}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-floating-label--float-above",ye.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"},standalone:!0})}}return en})();const _e="mdc-line-ripple--active",Je="mdc-line-ripple--deactivating";let Ge=(()=>{class en{constructor(He,Be){this._elementRef=He,this._handleTransitionEnd=ye=>{const Ye=this._elementRef.nativeElement.classList,Gt=Ye.contains(Je);"opacity"===ye.propertyName&&Gt&&Ye.remove(_e,Je)},Be.runOutsideAngular(()=>{He.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const He=this._elementRef.nativeElement.classList;He.remove(Je),He.add(_e)}deactivate(){this._elementRef.nativeElement.classList.add(Je)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.SKi))}}static{this.\u0275dir=u.FsC({type:en,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"],standalone:!0})}}return en})(),dt=(()=>{class en{constructor(He,Be){this._elementRef=He,this._ngZone=Be,this.open=!1}ngAfterViewInit(){const He=this._elementRef.nativeElement.querySelector(".mdc-floating-label");He?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(He.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>He.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(He){this._notch.nativeElement.style.width=this.open&&He?`calc(${He}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.SKi))}}static{this.\u0275cmp=u.VBU({type:en,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Be,ye){if(1&Be&&u.GBs(tt,5),2&Be){let Ye;u.mGM(Ye=u.lsd())&&(ye._notch=Ye.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Be,ye){2&Be&&u.AVh("mdc-notched-outline--notched",ye.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},standalone:!0,features:[u.aNF],attrs:bt,ngContentSelectors:Ve,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(Be,ye){1&Be&&(u.NAR(),u.nrm(0,"div",1),u.j41(1,"div",2,0),u.SdG(3),u.k0s(),u.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}}return en})();const rn={transitionMessages:(0,Me.hZ)("transitionMessages",[(0,Me.wk)("enter",(0,Me.iF)({opacity:1,transform:"translateY(0%)"})),(0,Me.kY)("void => enter",[(0,Me.iF)({opacity:0,transform:"translateY(-5px)"}),(0,Me.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Q=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275dir=u.FsC({type:en})}}return en})();const le=new u.nKC("MatFormField"),ue=new u.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let nt=0,Ln=(()=>{class en{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(He){this._hideRequiredMarker=(0,o.he)(He)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(He){He!==this._floatLabel&&(this._floatLabel=He,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(He){const Be=this._appearance;this._appearance=He||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Be&&(this._needsOutlineLabelOffsetUpdate=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(He){this._subscriptSizing=He||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(He){this._hintLabel=He,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(He){this._explicitFormFieldControl=He}constructor(He,Be,ye,Ye,Gt,Pn,yi,Ti){this._elementRef=He,this._changeDetectorRef=Be,this._dir=Ye,this._platform=Gt,this._defaults=Pn,this._animationMode=yi,this._labelChild=(0,u.sbv)(we),this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+nt++,this._hintLabelId="mat-mdc-hint-"+nt++,this._subscriptAnimationState="",this._destroyed=new re.B,this._isFocused=null,this._needsOutlineLabelOffsetUpdate=!1,this._previousControl=null,this._injector=(0,u.WQX)(u.zZn),this.getLabelId=(0,u.EWP)(()=>this._hasFloatingLabel()?this._labelId:null),this._hasFloatingLabel=(0,u.EWP)(()=>!!this._labelChild()),Pn&&(Pn.appearance&&(this.appearance=Pn.appearance),this._hideRequiredMarker=!!Pn?.hideRequiredMarker,Pn.color&&(this.color=Pn.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._previousControl=this._control)}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(He){const Be=this._control,ye="mat-mdc-form-field-type-";He&&this._elementRef.nativeElement.classList.remove(ye+He.controlType),Be.controlType&&this._elementRef.nativeElement.classList.add(ye+Be.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Be.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._valueChanges?.unsubscribe(),Be.ngControl&&Be.ngControl.valueChanges&&(this._valueChanges=Be.ngControl.valueChanges.pipe((0,F.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(He=>!He._isText),this._hasTextPrefix=!!this._prefixChildren.find(He=>He._isText),this._hasIconSuffix=!!this._suffixChildren.find(He=>!He._isText),this._hasTextSuffix=!!this._suffixChildren.find(He=>He._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,V.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),(0,u.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,F.Q)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(He){const Be=this._control?this._control.ngControl:null;return Be&&Be[He]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let He=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&He.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Be=this._hintChildren?this._hintChildren.find(Ye=>"start"===Ye.align):null,ye=this._hintChildren?this._hintChildren.find(Ye=>"end"===Ye.align):null;Be?He.push(Be.id):this._hintLabel&&He.push(this._hintLabelId),ye&&He.push(ye.id)}else this._errorChildren&&He.push(...this._errorChildren.map(Be=>Be.id));this._control.setDescribedByIds(He)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const He=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(He.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Be=this._iconPrefixContainer?.nativeElement,ye=this._textPrefixContainer?.nativeElement,Ye=this._iconSuffixContainer?.nativeElement,Gt=this._textSuffixContainer?.nativeElement,Pn=Be?.getBoundingClientRect().width??0,yi=ye?.getBoundingClientRect().width??0,Ti=Ye?.getBoundingClientRect().width??0,sn=Gt?.getBoundingClientRect().width??0;He.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Pn+yi}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Pn+yi+Ti+sn}px)`)}_isAttachedToDom(){const He=this._elementRef.nativeElement;if(He.getRootNode){const Be=He.getRootNode();return Be&&Be!==He}return document.documentElement.contains(He)}static{this.\u0275fac=function(Be){return new(Be||en)(u.rXU(u.aKT),u.rXU(u.gRc),u.rXU(u.SKi),u.rXU(y.dS),u.rXU(B.OD),u.rXU(ue,8),u.rXU(u.bc$,8),u.rXU(W.qQ))}}static{this.\u0275cmp=u.VBU({type:en,selectors:[["mat-form-field"]],contentQueries:function(Be,ye,Ye){if(1&Be&&(u.C6U(Ye,ye._labelChild,we,5),u.wni(Ye,Q,5),u.wni(Ye,xe,5),u.wni(Ye,Rt,5),u.wni(Ye,me,5),u.wni(Ye,xt,5)),2&Be){let Gt;u.NyB(),u.mGM(Gt=u.lsd())&&(ye._formFieldControl=Gt.first),u.mGM(Gt=u.lsd())&&(ye._prefixChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._suffixChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._errorChildren=Gt),u.mGM(Gt=u.lsd())&&(ye._hintChildren=Gt)}},viewQuery:function(Be,ye){if(1&Be&&(u.GBs(rt,5),u.GBs(Xe,5),u.GBs(oe,5),u.GBs(he,5),u.GBs(Le,5),u.GBs(ni,5),u.GBs(dt,5),u.GBs(Ge,5)),2&Be){let Ye;u.mGM(Ye=u.lsd())&&(ye._textField=Ye.first),u.mGM(Ye=u.lsd())&&(ye._iconPrefixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._textPrefixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._iconSuffixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._textSuffixContainer=Ye.first),u.mGM(Ye=u.lsd())&&(ye._floatingLabel=Ye.first),u.mGM(Ye=u.lsd())&&(ye._notchedOutline=Ye.first),u.mGM(Ye=u.lsd())&&(ye._lineRipple=Ye.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Be,ye){2&Be&&u.AVh("mat-mdc-form-field-label-always-float",ye._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",ye._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",ye._hasIconSuffix)("mat-form-field-invalid",ye._control.errorState)("mat-form-field-disabled",ye._control.disabled)("mat-form-field-autofilled",ye._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===ye._animationMode)("mat-form-field-appearance-fill","fill"==ye.appearance)("mat-form-field-appearance-outline","outline"==ye.appearance)("mat-form-field-hide-placeholder",ye._hasFloatingLabel()&&!ye._shouldLabelFloat())("mat-focused",ye._control.focused)("mat-primary","accent"!==ye.color&&"warn"!==ye.color)("mat-accent","accent"===ye.color)("mat-warn","warn"===ye.color)("ng-untouched",ye._shouldForward("untouched"))("ng-touched",ye._shouldForward("touched"))("ng-pristine",ye._shouldForward("pristine"))("ng-dirty",ye._shouldForward("dirty"))("ng-valid",ye._shouldForward("valid"))("ng-invalid",ye._shouldForward("invalid"))("ng-pending",ye._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],standalone:!0,features:[u.Jv_([{provide:le,useExisting:en},{provide:mn,useExisting:en}]),u.aNF],ngContentSelectors:It,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(Be,ye){if(1&Be){const Ye=u.RV6();u.NAR(et),u.DNE(0,nn,1,1,"ng-template",null,0,u.C5r),u.j41(2,"div",6,1),u.bIt("click",function(Pn){return u.eBV(Ye),u.Njj(ye._control.onContainerClick(Pn))}),u.DNE(4,Fn,1,0,"div",7),u.j41(5,"div",8),u.DNE(6,di,2,2,"div",9)(7,mt,3,0,"div",10)(8,Ee,3,0,"div",11),u.j41(9,"div",12),u.DNE(10,Se,1,1,null,13),u.SdG(11),u.k0s(),u.DNE(12,gt,3,0,"div",14)(13,Ne,3,0,"div",15),u.k0s(),u.DNE(14,Ze,1,0,"div",16),u.k0s(),u.j41(15,"div",17),u.DNE(16,je,2,1,"div",18)(17,Mt,5,2,"div",19),u.k0s()}if(2&Be){let Ye;u.R7$(2),u.AVh("mdc-text-field--filled",!ye._hasOutline())("mdc-text-field--outlined",ye._hasOutline())("mdc-text-field--no-label",!ye._hasFloatingLabel())("mdc-text-field--disabled",ye._control.disabled)("mdc-text-field--invalid",ye._control.errorState),u.R7$(2),u.vxM(ye._hasOutline()||ye._control.disabled?-1:4),u.R7$(2),u.vxM(ye._hasOutline()?6:-1),u.R7$(),u.vxM(ye._hasIconPrefix?7:-1),u.R7$(),u.vxM(ye._hasTextPrefix?8:-1),u.R7$(2),u.vxM(!ye._hasOutline()||ye._forceDisplayInfixLabel()?10:-1),u.R7$(2),u.vxM(ye._hasTextSuffix?12:-1),u.R7$(),u.vxM(ye._hasIconSuffix?13:-1),u.R7$(),u.vxM(ye._hasOutline()?-1:14),u.R7$(),u.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===ye.subscriptSizing),u.R7$(),u.vxM("error"===(Ye=ye._getDisplayedMessages())?16:"hint"===Ye?17:-1)}},dependencies:[ni,dt,W.T3,Ge,xt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-app-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--disabled .cdk-high-contrast-active .mdc-text-field__input{background-color:Window}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-app-corner-extra-small-top))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-app-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.cdk-high-contrast-active .mdc-text-field--disabled .mdc-floating-label{z-index:1}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-app-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-app-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-app-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-app-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-app-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-app-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-app-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-app-outline));border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-app-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-app-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-app-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-app-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-app-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-app-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-app-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-app-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-app-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-app-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-app-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height);padding-top:var(--mat-form-field-filled-with-label-container-padding-top);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding);padding-bottom:var(--mat-form-field-container-vertical-padding)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-app-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-app-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-app-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-app-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-app-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-app-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-app-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-app-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color)}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-app-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-app-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color)}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-app-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-app-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-app-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-app-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-app-body-large-weight))}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color)}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-app-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color)}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-app-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-app-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-app-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field:not(.mat-form-field-no-animations).mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[rn.transitionMessages]},changeDetection:0})}}return en})(),wi=(()=>{class en{static{this.\u0275fac=function(Be){return new(Be||en)}}static{this.\u0275mod=u.$C({type:en})}static{this.\u0275inj=u.G2t({imports:[ve.yE,W.MD,te.w5,ve.yE]})}}return en})()},9213:(tn,Re,v)=>{"use strict";v.d(Re,{An:()=>Ee,m_:()=>J,tp:()=>he});var u=v(4438),y=v(6600),o=v(177),B=v(7673),W=v(8810),ee=v(7468),re=v(8359),V=v(8141),F=v(6354),U=v(9437),L=v(980),fe=v(7647),de=v(6697),be=v(1626),Te=v(345);const Me=["*"];let te;function tt(Se){return function ve(){if(void 0===te&&(te=null,typeof window<"u")){const Se=window;void 0!==Se.trustedTypes&&(te=Se.trustedTypes.createPolicy("angular#components",{createHTML:gt=>gt}))}return te}()?.createHTML(Se)||Se}function bt(Se){return Error(`Unable to find icon with the name "${Se}"`)}function rt(Se){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Se}".`)}function Xe(Se){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Se}".`)}class oe{constructor(gt,Ne,Ze){this.url=gt,this.svgText=Ne,this.options=Ze}}let he=(()=>{class Se{constructor(Ne,Ze,je,Lt){this._httpClient=Ne,this._sanitizer=Ze,this._errorHandler=Lt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=je}addSvgIcon(Ne,Ze,je){return this.addSvgIconInNamespace("",Ne,Ze,je)}addSvgIconLiteral(Ne,Ze,je){return this.addSvgIconLiteralInNamespace("",Ne,Ze,je)}addSvgIconInNamespace(Ne,Ze,je,Lt){return this._addSvgIconConfig(Ne,Ze,new oe(je,null,Lt))}addSvgIconResolver(Ne){return this._resolvers.push(Ne),this}addSvgIconLiteralInNamespace(Ne,Ze,je,Lt){const Mt=this._sanitizer.sanitize(u.WPN.HTML,je);if(!Mt)throw Xe(je);const we=tt(Mt);return this._addSvgIconConfig(Ne,Ze,new oe("",we,Lt))}addSvgIconSet(Ne,Ze){return this.addSvgIconSetInNamespace("",Ne,Ze)}addSvgIconSetLiteral(Ne,Ze){return this.addSvgIconSetLiteralInNamespace("",Ne,Ze)}addSvgIconSetInNamespace(Ne,Ze,je){return this._addSvgIconSetConfig(Ne,new oe(Ze,null,je))}addSvgIconSetLiteralInNamespace(Ne,Ze,je){const Lt=this._sanitizer.sanitize(u.WPN.HTML,Ze);if(!Lt)throw Xe(Ze);const Mt=tt(Lt);return this._addSvgIconSetConfig(Ne,new oe("",Mt,je))}registerFontClassAlias(Ne,Ze=Ne){return this._fontCssClassesByAlias.set(Ne,Ze),this}classNameForFontAlias(Ne){return this._fontCssClassesByAlias.get(Ne)||Ne}setDefaultFontSetClass(...Ne){return this._defaultFontSetClass=Ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ne){const Ze=this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Ne);if(!Ze)throw rt(Ne);const je=this._cachedIconsByUrl.get(Ze);return je?(0,B.of)(It(je)):this._loadSvgIconFromConfig(new oe(Ne,null)).pipe((0,V.M)(Lt=>this._cachedIconsByUrl.set(Ze,Lt)),(0,F.T)(Lt=>It(Lt)))}getNamedSvgIcon(Ne,Ze=""){const je=Et(Ze,Ne);let Lt=this._svgIconConfigs.get(je);if(Lt)return this._getSvgFromConfig(Lt);if(Lt=this._getIconConfigFromResolvers(Ze,Ne),Lt)return this._svgIconConfigs.set(je,Lt),this._getSvgFromConfig(Lt);const Mt=this._iconSetConfigs.get(Ze);return Mt?this._getSvgFromIconSetConfigs(Ne,Mt):(0,W.$)(bt(je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ne){return Ne.svgText?(0,B.of)(It(this._svgElementFromConfig(Ne))):this._loadSvgIconFromConfig(Ne).pipe((0,F.T)(Ze=>It(Ze)))}_getSvgFromIconSetConfigs(Ne,Ze){const je=this._extractIconWithNameFromAnySet(Ne,Ze);if(je)return(0,B.of)(je);const Lt=Ze.filter(Mt=>!Mt.svgText).map(Mt=>this._loadSvgIconSetFromConfig(Mt).pipe((0,U.W)(we=>{const me=`Loading icon set URL: ${this._sanitizer.sanitize(u.WPN.RESOURCE_URL,Mt.url)} failed: ${we.message}`;return this._errorHandler.handleError(new Error(me)),(0,B.of)(null)})));return(0,ee.p)(Lt).pipe((0,F.T)(()=>{const Mt=this._extractIconWithNameFromAnySet(Ne,Ze);if(!Mt)throw bt(Ne);return Mt}))}_extractIconWithNameFromAnySet(Ne,Ze){for(let je=Ze.length-1;je>=0;je--){const Lt=Ze[je];if(Lt.svgText&&Lt.svgText.toString().indexOf(Ne)>-1){const Mt=this._svgElementFromConfig(Lt),we=this._extractSvgIconFromSet(Mt,Ne,Lt.options);if(we)return we}}return null}_loadSvgIconFromConfig(Ne){return this._fetchIcon(Ne).pipe((0,V.M)(Ze=>Ne.svgText=Ze),(0,F.T)(()=>this._svgElementFromConfig(Ne)))}_loadSvgIconSetFromConfig(Ne){return Ne.svgText?(0,B.of)(null):this._fetchIcon(Ne).pipe((0,V.M)(Ze=>Ne.svgText=Ze))}_extractSvgIconFromSet(Ne,Ze,je){const Lt=Ne.querySelector(`[id="${Ze}"]`);if(!Lt)return null;const Mt=Lt.cloneNode(!0);if(Mt.removeAttribute("id"),"svg"===Mt.nodeName.toLowerCase())return this._setSvgAttributes(Mt,je);if("symbol"===Mt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Mt),je);const we=this._svgElementFromString(tt(""));return we.appendChild(Mt),this._setSvgAttributes(we,je)}_svgElementFromString(Ne){const Ze=this._document.createElement("DIV");Ze.innerHTML=Ne;const je=Ze.querySelector("svg");if(!je)throw Error(" tag not found");return je}_toSvgElement(Ne){const Ze=this._svgElementFromString(tt("")),je=Ne.attributes;for(let Lt=0;Lttt(me)),(0,L.j)(()=>this._inProgressUrlFetches.delete(Mt)),(0,fe.u)());return this._inProgressUrlFetches.set(Mt,Oe),Oe}_addSvgIconConfig(Ne,Ze,je){return this._svgIconConfigs.set(Et(Ne,Ze),je),this}_addSvgIconSetConfig(Ne,Ze){const je=this._iconSetConfigs.get(Ne);return je?je.push(Ze):this._iconSetConfigs.set(Ne,[Ze]),this}_svgElementFromConfig(Ne){if(!Ne.svgElement){const Ze=this._svgElementFromString(Ne.svgText);this._setSvgAttributes(Ze,Ne.options),Ne.svgElement=Ze}return Ne.svgElement}_getIconConfigFromResolvers(Ne,Ze){for(let je=0;jegt?gt.pathname+gt.search:""}}}),yn=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],di=yn.map(Se=>`[${Se}]`).join(", "),mt=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class Se{get color(){return this._color||this._defaultColor}set color(Ne){this._color=Ne}get svgIcon(){return this._svgIcon}set svgIcon(Ne){Ne!==this._svgIcon&&(Ne?this._updateSvgIcon(Ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ne)}get fontSet(){return this._fontSet}set fontSet(Ne){const Ze=this._cleanupFontValue(Ne);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ne){const Ze=this._cleanupFontValue(Ne);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(Ne,Ze,je,Lt,Mt,we){this._elementRef=Ne,this._iconRegistry=Ze,this._location=Lt,this._errorHandler=Mt,this.inline=!1,this._previousFontSetClass=[],this._currentIconFetch=re.yU.EMPTY,we&&(we.color&&(this.color=this._defaultColor=we.color),we.fontSet&&(this.fontSet=we.fontSet)),je||Ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ne){if(!Ne)return["",""];const Ze=Ne.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${Ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ne=this._elementsWithExternalReferences;if(Ne&&Ne.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ne){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(Ne),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(Ne)}_clearSvgElement(){const Ne=this._elementRef.nativeElement;let Ze=Ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const je=Ne.childNodes[Ze];(1!==je.nodeType||"svg"===je.nodeName.toLowerCase())&&je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ne=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(je=>je.length>0);this._previousFontSetClass.forEach(je=>Ne.classList.remove(je)),Ze.forEach(je=>Ne.classList.add(je)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ne.classList.remove(this._previousFontIconClass),this.fontIcon&&Ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ne){return"string"==typeof Ne?Ne.trim().split(" ")[0]:Ne}_prependPathToReferences(Ne){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((je,Lt)=>{je.forEach(Mt=>{Lt.setAttribute(Mt.name,`url('${Ne}#${Mt.value}')`)})})}_cacheChildrenWithExternalReferences(Ne){const Ze=Ne.querySelectorAll(di),je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Lt=0;Lt{const we=Ze[Lt],Oe=we.getAttribute(Mt),me=Oe?Oe.match(mt):null;if(me){let We=je.get(we);We||(We=[],je.set(we,We)),We.push({name:Mt,value:me[1]})}})}_updateSvgIcon(Ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ne){const[Ze,je]=this._splitIconName(Ne);Ze&&(this._svgNamespace=Ze),je&&(this._svgName=je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(je,Ze).pipe((0,de.s)(1)).subscribe(Lt=>this._setSvgElement(Lt),Lt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${je}! ${Lt.message}`))})}}static{this.\u0275fac=function(Ze){return new(Ze||Se)(u.rXU(u.aKT),u.rXU(he),u.kS0("aria-hidden"),u.rXU(Fn),u.rXU(u.zcH),u.rXU(nn,8))}}static{this.\u0275cmp=u.VBU({type:Se,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(Ze,je){2&Ze&&(u.BMQ("data-mat-icon-type",je._usingFontIcon()?"font":"svg")("data-mat-icon-name",je._svgName||je.fontIcon)("data-mat-icon-namespace",je._svgNamespace||je.fontSet)("fontIcon",je._usingFontIcon()?je.fontIcon:null),u.HbH(je.color?"mat-"+je.color:""),u.AVh("mat-icon-inline",je.inline)("mat-icon-no-color","primary"!==je.color&&"accent"!==je.color&&"warn"!==je.color))},inputs:{color:"color",inline:[2,"inline","inline",u.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],standalone:!0,features:[u.GFd,u.aNF],ngContentSelectors:Me,decls:1,vars:0,template:function(Ze,je){1&Ze&&(u.NAR(),u.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return Se})(),J=(()=>{class Se{static{this.\u0275fac=function(Ze){return new(Ze||Se)}}static{this.\u0275mod=u.$C({type:Se})}static{this.\u0275inj=u.G2t({imports:[y.yE,y.yE]})}}return Se})()},9042:(tn,Re,v)=>{"use strict";v.d(Re,{fS:()=>be,fg:()=>de});var u=v(4085),y=v(6860),o=v(7403),B=v(4438),W=v(9417),ee=v(6600),re=v(2102),V=v(1413);const U=new B.nKC("MAT_INPUT_VALUE_ACCESSOR"),L=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let fe=0,de=(()=>{class Te{get disabled(){return this._disabled}set disabled(te){this._disabled=(0,u.he)(te),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(te){this._id=te||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(W.k0.required)??!1}set required(te){this._required=(0,u.he)(te)}get type(){return this._type}set type(te){this._type=te||"text",this._validateType(),!this._isTextarea&&(0,y.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(te){this._errorStateTracker.matcher=te}get value(){return this._inputValueAccessor.value}set value(te){te!==this.value&&(this._inputValueAccessor.value=te,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(te){this._readonly=(0,u.he)(te)}get errorState(){return this._errorStateTracker.errorState}set errorState(te){this._errorStateTracker.errorState=te}constructor(te,ve,tt,bt,Ve,rt,Xe,oe,he,Le){this._elementRef=te,this._platform=ve,this.ngControl=tt,this._autofillMonitor=oe,this._ngZone=he,this._formField=Le,this._uid="mat-input-"+fe++,this._webkitBlinkWheelListenerAttached=!1,this.focused=!1,this.stateChanges=new V.B,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Et=>(0,y.MU)().has(Et)),this._iOSKeyupListener=Et=>{const Tt=Et.target;!Tt.value&&0===Tt.selectionStart&&0===Tt.selectionEnd&&(Tt.setSelectionRange(1,1),Tt.setSelectionRange(0,0))},this._webkitBlinkWheelListener=()=>{};const et=this._elementRef.nativeElement,It=et.nodeName.toLowerCase();this._inputValueAccessor=Xe||et,this._previousNativeValue=this.value,this.id=this.id,ve.IOS&&he.runOutsideAngular(()=>{te.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ee.X0(rt,tt,Ve,bt,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===It,this._isTextarea="textarea"===It,this._isInFormField=!!Le,this._isNativeSelect&&(this.controlType=et.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(te=>{this.autofilled=te.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener),this._webkitBlinkWheelListenerAttached&&this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(te){this._elementRef.nativeElement.focus(te)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(te){te!==this.focused&&(this.focused=te,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const te=this._elementRef.nativeElement.value;this._previousNativeValue!==te&&(this._previousNativeValue=te,this.stateChanges.next())}_dirtyCheckPlaceholder(){const te=this._getPlaceholder();if(te!==this._previousPlaceholder){const ve=this._elementRef.nativeElement;this._previousPlaceholder=te,te?ve.setAttribute("placeholder",te):ve.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){L.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let te=this._elementRef.nativeElement.validity;return te&&te.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const te=this._elementRef.nativeElement,ve=te.options[0];return this.focused||te.multiple||!this.empty||!!(te.selectedIndex>-1&&ve&&ve.label)}return this.focused||!this.empty}setDescribedByIds(te){te.length?this._elementRef.nativeElement.setAttribute("aria-describedby",te.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const te=this._elementRef.nativeElement;return this._isNativeSelect&&(te.multiple||te.size>1)}_ensureWheelDefaultBehavior(){!this._webkitBlinkWheelListenerAttached&&"number"===this._type&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("wheel",this._webkitBlinkWheelListener)}),this._webkitBlinkWheelListenerAttached=!0),this._webkitBlinkWheelListenerAttached&&"number"!==this._type&&(this._elementRef.nativeElement.removeEventListener("wheel",this._webkitBlinkWheelListener),this._webkitBlinkWheelListenerAttached=!0)}static{this.\u0275fac=function(ve){return new(ve||Te)(B.rXU(B.aKT),B.rXU(y.OD),B.rXU(W.vO,10),B.rXU(W.cV,8),B.rXU(W.j4,8),B.rXU(ee.es),B.rXU(U,10),B.rXU(o.P8),B.rXU(B.SKi),B.rXU(re.xb,8))}}static{this.\u0275dir=B.FsC({type:Te,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(ve,tt){1&ve&&B.bIt("focus",function(){return tt._focusChanged(!0)})("blur",function(){return tt._focusChanged(!1)})("input",function(){return tt._onInput()}),2&ve&&(B.Mr5("id",tt.id)("disabled",tt.disabled)("required",tt.required),B.BMQ("name",tt.name||null)("readonly",tt.readonly&&!tt._isNativeSelect||null)("aria-invalid",tt.empty&&tt.required?null:tt.errorState)("aria-required",tt.required)("id",tt.id),B.AVh("mat-input-server",tt._isServer)("mat-mdc-form-field-textarea-control",tt._isInFormField&&tt._isTextarea)("mat-mdc-form-field-input-control",tt._isInFormField)("mdc-text-field__input",tt._isInFormField)("mat-mdc-native-select-inline",tt._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[B.Jv_([{provide:re.qT,useExisting:Te}]),B.OA$]})}}return Te})(),be=(()=>{class Te{static{this.\u0275fac=function(ve){return new(ve||Te)}}static{this.\u0275mod=B.$C({type:Te})}static{this.\u0275inj=B.G2t({imports:[ee.yE,re.RG,re.RG,o.EE,ee.yE]})}}return Te})()},9115:(tn,Re,v)=>{"use strict";v.d(Re,{Cn:()=>We,Cp:()=>me,fb:()=>Tt,kk:()=>Ze});var u=v(4438),y=v(9888),o=v(7336),B=v(1413),W=v(7786),ee=v(8359),re=v(7673),V=v(5007),F=v(9172),U=v(5558),L=v(6977),fe=v(5964),de=v(6697),be=v(1986),Te=v(177),Me=v(6600),te=v(6939),ve=v(9969),tt=v(8203),bt=v(7987),Ve=v(6860),rt=v(5542);const Xe=["mat-menu-item",""],oe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],he=["mat-icon, [matMenuItemIcon]","*"];function Le(Pe,xt){1&Pe&&(u.qSk(),u.j41(0,"svg",2),u.nrm(1,"polygon",3),u.k0s())}const et=["*"];function It(Pe,xt){if(1&Pe){const xe=u.RV6();u.j41(0,"div",0),u.bIt("keydown",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._handleKeydown(Rt))})("click",function(){u.eBV(xe);const Rt=u.XpG();return u.Njj(Rt.closed.emit("click"))})("@transformMenu.start",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._onAnimationStart(Rt))})("@transformMenu.done",function(Rt){u.eBV(xe);const wt=u.XpG();return u.Njj(wt._onAnimationDone(Rt))}),u.j41(1,"div",1),u.SdG(2),u.k0s()()}if(2&Pe){const xe=u.XpG();u.HbH(xe._classList),u.Y8G("id",xe.panelId)("@transformMenu",xe._panelAnimationState),u.BMQ("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const Et=new u.nKC("MAT_MENU_PANEL");let Tt=(()=>{class Pe{constructor(xe,ut,Rt,wt,mn){this._elementRef=xe,this._document=ut,this._focusMonitor=Rt,this._parentMenu=wt,this._changeDetectorRef=mn,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new B.B,this._focused=new B.B,this._highlighted=!1,this._triggersSubmenu=!1,wt?.addItem?.(this)}focus(xe,ut){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,ut):this._getHostElement().focus(ut),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(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const xe=this._elementRef.nativeElement.cloneNode(!0),ut=xe.querySelectorAll("mat-icon, .material-icons");for(let Rt=0;Rt enter",(0,ve.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ve.iF)({opacity:1,transform:"scale(1)"}))),(0,ve.kY)("* => void",(0,ve.i0)("100ms 25ms linear",(0,ve.iF)({opacity:0})))]),fadeInItems:(0,ve.hZ)("fadeInItems",[(0,ve.wk)("showing",(0,ve.iF)({opacity:1})),(0,ve.kY)("void => *",[(0,ve.iF)({opacity:0}),(0,ve.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Se=0;const gt=new u.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ne(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ze=(()=>{class Pe{get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}set panelClass(xe){const ut=this._previousPanelClass,Rt={...this._classList};ut&&ut.length&&ut.split(" ").forEach(wt=>{Rt[wt]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(wt=>{Rt[wt]=!0}),this._elementRef.nativeElement.className=""),this._classList=Rt}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}constructor(xe,ut,Rt,wt){this._elementRef=xe,this._changeDetectorRef=wt,this._elevationPrefix="mat-elevation-z",this._baseElevation=null,this._directDescendantItems=new u.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new B.B,this.closed=new u.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Se++,this._injector=(0,u.WQX)(u.zZn),this.overlayPanelClass=Rt.overlayPanelClass||"",this._xPosition=Rt.xPosition,this._yPosition=Rt.yPosition,this.backdropClass=Rt.backdropClass,this.overlapTrigger=Rt.overlapTrigger,this.hasBackdrop=Rt.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new y.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,U.n)(xe=>(0,W.h)(...xe.map(ut=>ut._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{const ut=this._keyManager;if("enter"===this._panelAnimationState&&ut.activeItem?._hasFocus()){const Rt=xe.toArray(),wt=Math.max(0,Math.min(Rt.length-1,ut.activeItemIndex||0));Rt[wt]&&!Rt[wt].disabled?ut.setActiveItem(wt):ut.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,F.Z)(this._directDescendantItems),(0,U.n)(ut=>(0,W.h)(...ut.map(Rt=>Rt._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const ut=xe.keyCode,Rt=this._keyManager;switch(ut){case o._f:(0,o.rp)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case o.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case o.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ut===o.i7||ut===o.n6)&&Rt.setFocusOrigin("keyboard"),void Rt.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,u.mal)(()=>{let ut=null;if(this._directDescendantItems.length&&(ut=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ut||!ut.contains(document.activeElement)){const Rt=this._keyManager;Rt.setFocusOrigin(xe).setFirstItemActive(),!Rt.activeItem&&ut&&ut.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){if(null===this._baseElevation){const ni=("function"==typeof getComputedStyle?getComputedStyle(this._elementRef.nativeElement):null)?.getPropertyValue("--mat-menu-base-elevation-level")||"8";this._baseElevation=parseInt(ni)}const ut=Math.min(this._baseElevation+xe,24),Rt=`${this._elevationPrefix}${ut}`,wt=Object.keys(this._classList).find(mn=>mn.startsWith(this._elevationPrefix));if(!wt||wt===this._previousElevation){const mn={...this._classList};this._previousElevation&&(mn[this._previousElevation]=!1),mn[Rt]=!0,this._previousElevation=Rt,this._classList=mn}}setPositionClasses(xe=this.xPosition,ut=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===xe,"mat-menu-after":"after"===xe,"mat-menu-above":"above"===ut,"mat-menu-below":"below"===ut},this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,F.Z)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(ut=>ut._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(ut){return new(ut||Pe)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(gt),u.rXU(u.gRc))}}static{this.\u0275cmp=u.VBU({type:Pe,selectors:[["mat-menu"]],contentQueries:function(ut,Rt,wt){if(1&ut&&(u.wni(wt,yn,5),u.wni(wt,Tt,5),u.wni(wt,Tt,4)),2&ut){let mn;u.mGM(mn=u.lsd())&&(Rt.lazyContent=mn.first),u.mGM(mn=u.lsd())&&(Rt._allItems=mn),u.mGM(mn=u.lsd())&&(Rt.items=mn)}},viewQuery:function(ut,Rt){if(1&ut&&u.GBs(u.C4Q,5),2&ut){let wt;u.mGM(wt=u.lsd())&&(Rt.templateRef=wt.first)}},hostVars:3,hostBindings:function(ut,Rt){2&ut&&u.BMQ("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",u.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",xe=>null==xe?null:(0,u.L39)(xe)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[u.Jv_([{provide:Et,useExisting:Pe}]),u.GFd,u.aNF],ngContentSelectors:et,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(ut,Rt){1&ut&&(u.NAR(),u.DNE(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:[mt.transformMenu,mt.fadeInItems]},changeDetection:0})}}return Pe})();const je=new u.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Pe=(0,u.WQX)(bt.hJ);return()=>Pe.scrollStrategies.reposition()}}),Mt={provide:je,deps:[bt.hJ],useFactory:function Lt(Pe){return()=>Pe.scrollStrategies.reposition()}},we=(0,Ve.BQ)({passive:!0});let me=(()=>{class Pe{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(ut=>{this._destroyMenu(ut),("click"===ut||"tab"===ut)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ut)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(xe,ut,Rt,wt,mn,ni,Zt,_e,Je){this._overlay=xe,this._element=ut,this._viewContainerRef=Rt,this._menuItemInstance=ni,this._dir=Zt,this._focusMonitor=_e,this._ngZone=Je,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ee.yU.EMPTY,this._hoverSubscription=ee.yU.EMPTY,this._menuCloseSubscription=ee.yU.EMPTY,this._changeDetectorRef=(0,u.WQX)(u.gRc),this._handleTouchStart=Ge=>{(0,y.w6)(Ge)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=wt,this._parentMaterialMenu=mn instanceof Ze?mn:void 0,ut.nativeElement.addEventListener("touchstart",this._handleTouchStart,we)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,we),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const xe=this.menu;if(this._menuOpen||!xe)return;const ut=this._createOverlay(xe),Rt=ut.getConfig(),wt=Rt.positionStrategy;this._setPosition(xe,wt),Rt.hasBackdrop=null==xe.hasBackdrop?!this.triggersSubmenu():xe.hasBackdrop,ut.attach(this._getPortal(xe)),xe.lazyContent&&xe.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(xe),xe instanceof Ze&&(xe._startAnimation(),xe._directDescendantItems.changes.pipe((0,L.Q)(xe.close)).subscribe(()=>{wt.withLockedPosition(!1).reapplyLastPosition(),wt.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(xe,ut){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,ut):this._element.nativeElement.focus(ut)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const ut=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ut instanceof Ze?(ut._resetAnimation(),ut.lazyContent?ut._animationDone.pipe((0,fe.p)(Rt=>"void"===Rt.toState),(0,de.s)(1),(0,L.Q)(ut.lazyContent._attached)).subscribe({next:()=>ut.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ut?.lazyContent?.detach())}_initMenu(xe){xe.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,xe.direction=this.dir,this._setMenuElevation(xe),xe.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(xe){if(xe.setElevation){let ut=0,Rt=xe.parentMenu;for(;Rt;)ut++,Rt=Rt.parentMenu;xe.setElevation(ut)}}_setIsMenuOpen(xe){xe!==this._menuOpen&&(this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe),this._changeDetectorRef.markForCheck())}_createOverlay(xe){if(!this._overlayRef){const ut=this._getOverlayConfig(xe);this._subscribeToPositions(xe,ut.positionStrategy),this._overlayRef=this._overlay.create(ut),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(xe){return new bt.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:xe.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:xe.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(xe,ut){xe.setPositionClasses&&ut.positionChanges.subscribe(Rt=>{const wt="start"===Rt.connectionPair.overlayX?"after":"before",mn="top"===Rt.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>xe.setPositionClasses(wt,mn)):xe.setPositionClasses(wt,mn)})}_setPosition(xe,ut){let[Rt,wt]="before"===xe.xPosition?["end","start"]:["start","end"],[mn,ni]="above"===xe.yPosition?["bottom","top"]:["top","bottom"],[Zt,_e]=[mn,ni],[Je,Ge]=[Rt,wt],dt=0;if(this.triggersSubmenu()){if(Ge=Rt="before"===xe.xPosition?"start":"end",wt=Je="end"===Rt?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const rn=this._parentMaterialMenu.items.first;this._parentInnerPadding=rn?rn._getHostElement().offsetTop:0}dt="bottom"===mn?this._parentInnerPadding:-this._parentInnerPadding}}else xe.overlapTrigger||(Zt="top"===mn?"bottom":"top",_e="top"===ni?"bottom":"top");ut.withPositions([{originX:Rt,originY:Zt,overlayX:Je,overlayY:mn,offsetY:dt},{originX:wt,originY:Zt,overlayX:Ge,overlayY:mn,offsetY:dt},{originX:Rt,originY:_e,overlayX:Je,overlayY:ni,offsetY:-dt},{originX:wt,originY:_e,overlayX:Ge,overlayY:ni,offsetY:-dt}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),ut=this._overlayRef.detachments(),Rt=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,re.of)(),wt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,fe.p)(mn=>mn!==this._menuItemInstance),(0,fe.p)(()=>this._menuOpen)):(0,re.of)();return(0,W.h)(xe,Rt,wt,ut)}_handleMousedown(xe){(0,y._G)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const ut=xe.keyCode;(ut===o.Fm||ut===o.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ut===o.LE&&"ltr"===this.dir||ut===o.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,fe.p)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,be.c)(0,V.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,de.s)(1),(0,be.c)(0,V.$),(0,L.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(xe){return(!this._portal||this._portal.templateRef!==xe.templateRef)&&(this._portal=new te.VA(xe.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(ut){return new(ut||Pe)(u.rXU(bt.hJ),u.rXU(u.aKT),u.rXU(u.c1b),u.rXU(je),u.rXU(Et,8),u.rXU(Tt,10),u.rXU(tt.dS,8),u.rXU(y.FN),u.rXU(u.SKi))}}static{this.\u0275dir=u.FsC({type:Pe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(ut,Rt){1&ut&&u.bIt("click",function(mn){return Rt._handleClick(mn)})("mousedown",function(mn){return Rt._handleMousedown(mn)})("keydown",function(mn){return Rt._handleKeydown(mn)}),2&ut&&u.BMQ("aria-haspopup",Rt.menu?"menu":null)("aria-expanded",Rt.menuOpen)("aria-controls",Rt.menuOpen?Rt.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})}}return Pe})(),We=(()=>{class Pe{static{this.\u0275fac=function(ut){return new(ut||Pe)}}static{this.\u0275mod=u.$C({type:Pe})}static{this.\u0275inj=u.G2t({providers:[Mt],imports:[Te.MD,Me.pZ,Me.yE,bt.z_,rt.Gj,Me.yE]})}}return Pe})()},7575:(tn,Re,v)=>{"use strict";v.d(Re,{HM:()=>V,PO:()=>U});var u=v(4438),o=(v(177),v(6600));function B(L,fe){1&L&&u.nrm(0,"div",2)}const W=new u.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let V=(()=>{class L{constructor(de,be,Te,Me,te){this._elementRef=de,this._ngZone=be,this._changeDetectorRef=Te,this._animationMode=Me,this._isNoopAnimation=!1,this._defaultColor="primary",this._value=0,this._bufferValue=0,this.animationEnd=new u.bkB,this._mode="determinate",this._transitionendHandler=ve=>{0===this.animationEnd.observers.length||!ve.target||!ve.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Me,te&&(te.color&&(this.color=this._defaultColor=te.color),this.mode=te.mode||this.mode)}get color(){return this._color||this._defaultColor}set color(de){this._color=de}get value(){return this._value}set value(de){this._value=F(de||0),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(de){this._bufferValue=F(de||0),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(de){this._mode=de,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static{this.\u0275fac=function(be){return new(be||L)(u.rXU(u.aKT),u.rXU(u.SKi),u.rXU(u.gRc),u.rXU(u.bc$,8),u.rXU(W,8))}}static{this.\u0275cmp=u.VBU({type:L,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(be,Te){2&be&&(u.BMQ("aria-valuenow",Te._isIndeterminate()?null:Te.value)("mode",Te.mode),u.HbH("mat-"+Te.color),u.AVh("_mat-animation-noopable",Te._isNoopAnimation)("mdc-linear-progress--animation-ready",!Te._isNoopAnimation)("mdc-linear-progress--indeterminate",Te._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",u.Udg],bufferValue:[2,"bufferValue","bufferValue",u.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],standalone:!0,features:[u.GFd,u.aNF],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(be,Te){1&be&&(u.j41(0,"div",0),u.nrm(1,"div",1),u.DNE(2,B,1,0,"div",2),u.k0s(),u.j41(3,"div",3),u.nrm(4,"span",4),u.k0s(),u.j41(5,"div",5),u.nrm(6,"span",4),u.k0s()),2&be&&(u.R7$(),u.xc7("flex-basis",Te._getBufferBarFlexBasis()),u.R7$(),u.vxM("buffer"===Te.mode?2:-1),u.R7$(),u.xc7("transform",Te._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mdc-linear-progress-track-height),var(--mdc-linear-progress-active-indicator-height))}.cdk-high-contrast-active .mdc-linear-progress{outline-color:CanvasText}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mdc-linear-progress-active-indicator-color, var(--mat-app-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mdc-linear-progress-track-height);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-app-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.cdk-high-contrast-active .mdc-linear-progress__buffer-dots{background-color:ButtonBorder}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mdc-linear-progress-track-color, var(--mat-app-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}"],encapsulation:2,changeDetection:0})}}return L})();function F(L,fe=0,de=100){return Math.max(fe,Math.min(de,L))}let U=(()=>{class L{static{this.\u0275fac=function(be){return new(be||L)}}static{this.\u0275mod=u.$C({type:L})}static{this.\u0275inj=u.G2t({imports:[o.yE]})}}return L})()},2798:(tn,Re,v)=>{"use strict";v.d(Re,{$2:()=>Lt,VO:()=>je,Ve:()=>Mt});var u=v(7987),y=v(177),o=v(4438),B=v(6600),W=v(2102),ee=v(5542),re=v(9888),V=v(8203),F=v(5024),U=v(7336),L=v(9417),fe=v(1413),de=v(9030),be=v(7786),Te=v(9172),Me=v(5558),te=v(5964),ve=v(6354),tt=v(3294),bt=v(6977),Ve=v(6697),rt=v(9969);const Xe=["trigger"],oe=["panel"],he=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"];function et(we,Oe){if(1&we&&(o.j41(0,"span",4),o.EFF(1),o.k0s()),2&we){const me=o.XpG();o.R7$(),o.JRh(me.placeholder)}}function It(we,Oe){1&we&&o.SdG(0)}function Et(we,Oe){if(1&we&&(o.j41(0,"span",11),o.EFF(1),o.k0s()),2&we){const me=o.XpG(2);o.R7$(),o.JRh(me.triggerValue)}}function Tt(we,Oe){if(1&we&&(o.j41(0,"span",5),o.DNE(1,It,1,0)(2,Et,2,1,"span",11),o.k0s()),2&we){const me=o.XpG();o.R7$(),o.vxM(me.customTrigger?1:2)}}function nn(we,Oe){if(1&we){const me=o.RV6();o.j41(0,"div",12,1),o.bIt("@transformPanel.done",function(Pe){o.eBV(me);const xt=o.XpG();return o.Njj(xt._panelDoneAnimatingStream.next(Pe.toState))})("keydown",function(Pe){o.eBV(me);const xt=o.XpG();return o.Njj(xt._handleKeydown(Pe))}),o.SdG(2,1),o.k0s()}if(2&we){const me=o.XpG();o.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",me._getPanelTheme(),""),o.Y8G("ngClass",me.panelClass)("@transformPanel","showing"),o.BMQ("id",me.id+"-panel")("aria-multiselectable",me.multiple)("aria-label",me.ariaLabel||null)("aria-labelledby",me._getPanelAriaLabelledby())}}const Fn={transformPanelWrap:(0,rt.hZ)("transformPanelWrap",[(0,rt.kY)("* => void",(0,rt.P)("@transformPanel",[(0,rt.MA)()],{optional:!0}))]),transformPanel:(0,rt.hZ)("transformPanel",[(0,rt.wk)("void",(0,rt.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,rt.kY)("void => showing",(0,rt.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,rt.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,rt.kY)("* => void",(0,rt.i0)("100ms linear",(0,rt.iF)({opacity:0})))])};let mt=0;const Ee=new o.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const we=(0,o.WQX)(u.hJ);return()=>we.scrollStrategies.reposition()}}),Se=new o.nKC("MAT_SELECT_CONFIG"),gt={provide:Ee,deps:[u.hJ],useFactory:function J(we){return()=>we.scrollStrategies.reposition()}},Ne=new o.nKC("MatSelectTrigger");class Ze{constructor(Oe,me){this.source=Oe,this.value=me}}let je=(()=>{class we{_scrollOptionIntoView(me){const We=this.options.toArray()[me];if(We){const Pe=this.panel.nativeElement,xt=(0,B.jb)(me,this.options,this.optionGroups),xe=We._getHostElement();Pe.scrollTop=0===me&&1===xt?0:(0,B.TL)(xe.offsetTop,xe.offsetHeight,Pe.scrollTop,Pe.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(me){return new Ze(this,me)}get focused(){return this._focused||this._panelOpen}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(me){this._hideSingleSelectionIndicator=me,this._syncParentProperties()}get placeholder(){return this._placeholder}set placeholder(me){this._placeholder=me,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(L.k0.required)??!1}set required(me){this._required=me,this.stateChanges.next()}get multiple(){return this._multiple}set multiple(me){this._multiple=me}get compareWith(){return this._compareWith}set compareWith(me){this._compareWith=me,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(me){this._assignValue(me)&&this._onChange(me)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(me){this._errorStateTracker.matcher=me}get id(){return this._id}set id(me){this._id=me||this._uid,this.stateChanges.next()}get errorState(){return this._errorStateTracker.errorState}set errorState(me){this._errorStateTracker.errorState=me}constructor(me,We,Pe,xt,xe,ut,Rt,wt,mn,ni,Zt,_e,Je,Ge){this._viewportRuler=me,this._changeDetectorRef=We,this._elementRef=xe,this._dir=ut,this._parentFormField=mn,this.ngControl=ni,this._liveAnnouncer=Je,this._defaultOptions=Ge,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=(dt,rn)=>dt===rn,this._uid="mat-select-"+mt++,this._triggerAriaLabelledBy=null,this._destroy=new fe.B,this.stateChanges=new fe.B,this.disableAutomaticLabeling=!0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+mt++,this._panelDoneAnimatingStream=new fe.B,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 fe.B,this.optionSelectionChanges=(0,de.v)(()=>{const dt=this.options;return dt?dt.changes.pipe((0,Te.Z)(dt),(0,Me.n)(()=>(0,be.h)(...dt.map(rn=>rn.onSelectionChange)))):this._initialized.pipe((0,Me.n)(()=>this.optionSelectionChanges))}),this.openedChange=new o.bkB,this._openedStream=this.openedChange.pipe((0,te.p)(dt=>dt),(0,ve.T)(()=>{})),this._closedStream=this.openedChange.pipe((0,te.p)(dt=>!dt),(0,ve.T)(()=>{})),this.selectionChange=new o.bkB,this.valueChange=new o.bkB,this._trackedModal=null,this._skipPredicate=dt=>!this.panelOpen&&dt.disabled,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Ge?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=Ge.typeaheadDebounceInterval),this._errorStateTracker=new B.X0(xt,ni,wt,Rt,this.stateChanges),this._scrollStrategyFactory=_e,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Zt)||0,this.id=this.id}ngOnInit(){this._selectionModel=new F.CB(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,tt.F)(),(0,bt.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,bt.Q)(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((0,bt.Q)(this._destroy)).subscribe(me=>{me.added.forEach(We=>We.select()),me.removed.forEach(We=>We.deselect())}),this.options.changes.pipe((0,Te.Z)(null),(0,bt.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const me=this._getTriggerAriaLabelledby(),We=this.ngControl;if(me!==this._triggerAriaLabelledBy){const Pe=this._elementRef.nativeElement;this._triggerAriaLabelledBy=me,me?Pe.setAttribute("aria-labelledby",me):Pe.removeAttribute("aria-labelledby")}We&&(this._previousControl!==We.control&&(void 0!==this._previousControl&&null!==We.disabled&&We.disabled!==this.disabled&&(this.disabled=We.disabled),this._previousControl=We.control),this.updateErrorState())}ngOnChanges(me){(me.disabled||me.userAriaDescribedBy)&&this.stateChanges.next(),me.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(){const me=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!me)return;const We=`${this.id}-panel`;this._trackedModal&&(0,re.Ae)(this._trackedModal,"aria-owns",We),(0,re.px)(me,"aria-owns",We),this._trackedModal=me}_clearFromModal(){this._trackedModal&&((0,re.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),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(me){this._assignValue(me)}registerOnChange(me){this._onChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this.disabled=me,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const me=this._selectionModel.selected.map(We=>We.viewValue);return this._isRtl()&&me.reverse(),me.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(me){this.disabled||(this.panelOpen?this._handleOpenKeydown(me):this._handleClosedKeydown(me))}_handleClosedKeydown(me){const We=me.keyCode,Pe=We===U.n6||We===U.i7||We===U.UQ||We===U.LE,xt=We===U.Fm||We===U.t6,xe=this._keyManager;if(!xe.isTyping()&&xt&&!(0,U.rp)(me)||(this.multiple||me.altKey)&&Pe)me.preventDefault(),this.open();else if(!this.multiple){const ut=this.selected;xe.onKeydown(me);const Rt=this.selected;Rt&&ut!==Rt&&this._liveAnnouncer.announce(Rt.viewValue,1e4)}}_handleOpenKeydown(me){const We=this._keyManager,Pe=me.keyCode,xt=Pe===U.n6||Pe===U.i7,xe=We.isTyping();if(xt&&me.altKey)me.preventDefault(),this.close();else if(xe||Pe!==U.Fm&&Pe!==U.t6||!We.activeItem||(0,U.rp)(me))if(!xe&&this._multiple&&Pe===U.A&&me.ctrlKey){me.preventDefault();const ut=this.options.some(Rt=>!Rt.disabled&&!Rt.selected);this.options.forEach(Rt=>{Rt.disabled||(ut?Rt.select():Rt.deselect())})}else{const ut=We.activeItemIndex;We.onKeydown(me),this._multiple&&xt&&me.shiftKey&&We.activeItem&&We.activeItemIndex!==ut&&We.activeItem._selectViaInteraction()}else me.preventDefault(),We.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Ve.s)(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(me){if(this.options.forEach(We=>We.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&me)Array.isArray(me),me.forEach(We=>this._selectOptionByValue(We)),this._sortValues();else{const We=this._selectOptionByValue(me);We?this._keyManager.updateActiveItem(We):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(me){const We=this.options.find(Pe=>{if(this._selectionModel.isSelected(Pe))return!1;try{return null!=Pe.value&&this._compareWith(Pe.value,me)}catch{return!1}});return We&&this._selectionModel.select(We),We}_assignValue(me){return!!(me!==this._value||this._multiple&&Array.isArray(me))&&(this.options&&this._setSelectionByValue(me),this._value=me,!0)}_getOverlayWidth(me){return"auto"===this.panelWidth?(me instanceof u.$Q?me.elementRef:me||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const me of this.options)me._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new re.Au(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(){const me=(0,be.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,bt.Q)(me)).subscribe(We=>{this._onSelect(We.source,We.isUserInput),We.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,be.h)(...this.options.map(We=>We._stateChanges)).pipe((0,bt.Q)(me)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(me,We){const Pe=this._selectionModel.isSelected(me);null!=me.value||this._multiple?(Pe!==me.selected&&(me.selected?this._selectionModel.select(me):this._selectionModel.deselect(me)),We&&this._keyManager.setActiveItem(me),this.multiple&&(this._sortValues(),We&&this.focus())):(me.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(me.value)),Pe!==this._selectionModel.isSelected(me)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const me=this.options.toArray();this._selectionModel.sort((We,Pe)=>this.sortComparator?this.sortComparator(We,Pe,me):me.indexOf(We)-me.indexOf(Pe)),this.stateChanges.next()}}_propagateChanges(me){let We;We=this.multiple?this.selected.map(Pe=>Pe.value):this.selected?this.selected.value:me,this._value=We,this.valueChange.emit(We),this._onChange(We),this.selectionChange.emit(this._getChangeEvent(We)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let me=-1;for(let We=0;We0}focus(me){this._elementRef.nativeElement.focus(me)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const me=this._parentFormField?.getLabelId();return this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const me=this._parentFormField?.getLabelId();let We=(me?me+" ":"")+this._valueId;return this.ariaLabelledby&&(We+=" "+this.ariaLabelledby),We}_panelDoneAnimating(me){this.openedChange.emit(me)}setDescribedByIds(me){me.length?this._elementRef.nativeElement.setAttribute("aria-describedby",me.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static{this.\u0275fac=function(We){return new(We||we)(o.rXU(ee.Xj),o.rXU(o.gRc),o.rXU(o.SKi),o.rXU(B.es),o.rXU(o.aKT),o.rXU(V.dS,8),o.rXU(L.cV,8),o.rXU(L.j4,8),o.rXU(W.xb,8),o.rXU(L.vO,10),o.kS0("tabindex"),o.rXU(Ee),o.rXU(re.Ai),o.rXU(Se,8))}}static{this.\u0275cmp=o.VBU({type:we,selectors:[["mat-select"]],contentQueries:function(We,Pe,xt){if(1&We&&(o.wni(xt,Ne,5),o.wni(xt,B.wT,5),o.wni(xt,B.QC,5)),2&We){let xe;o.mGM(xe=o.lsd())&&(Pe.customTrigger=xe.first),o.mGM(xe=o.lsd())&&(Pe.options=xe),o.mGM(xe=o.lsd())&&(Pe.optionGroups=xe)}},viewQuery:function(We,Pe){if(1&We&&(o.GBs(Xe,5),o.GBs(oe,5),o.GBs(u.WB,5)),2&We){let xt;o.mGM(xt=o.lsd())&&(Pe.trigger=xt.first),o.mGM(xt=o.lsd())&&(Pe.panel=xt.first),o.mGM(xt=o.lsd())&&(Pe._overlayDir=xt.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(We,Pe){1&We&&o.bIt("keydown",function(xe){return Pe._handleKeydown(xe)})("focus",function(){return Pe._onFocus()})("blur",function(){return Pe._onBlur()}),2&We&&(o.BMQ("id",Pe.id)("tabindex",Pe.disabled?-1:Pe.tabIndex)("aria-controls",Pe.panelOpen?Pe.id+"-panel":null)("aria-expanded",Pe.panelOpen)("aria-label",Pe.ariaLabel||null)("aria-required",Pe.required.toString())("aria-disabled",Pe.disabled.toString())("aria-invalid",Pe.errorState)("aria-activedescendant",Pe._getAriaActiveDescendant()),o.AVh("mat-mdc-select-disabled",Pe.disabled)("mat-mdc-select-invalid",Pe.errorState)("mat-mdc-select-required",Pe.required)("mat-mdc-select-empty",Pe.empty)("mat-mdc-select-multiple",Pe.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",o.L39],disableRipple:[2,"disableRipple","disableRipple",o.L39],tabIndex:[2,"tabIndex","tabIndex",me=>null==me?0:(0,o.Udg)(me)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",o.L39],placeholder:"placeholder",required:[2,"required","required",o.L39],multiple:[2,"multiple","multiple",o.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",o.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",o.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],standalone:!0,features:[o.Jv_([{provide:W.qT,useExisting:we},{provide:B.is,useExisting:we}]),o.GFd,o.OA$,o.aNF],ngContentSelectors:Le,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(We,Pe){if(1&We){const xt=o.RV6();o.NAR(he),o.j41(0,"div",2,0),o.bIt("click",function(){return o.eBV(xt),o.Njj(Pe.open())}),o.j41(3,"div",3),o.DNE(4,et,2,1,"span",4)(5,Tt,3,1,"span",5),o.k0s(),o.j41(6,"div",6)(7,"div",7),o.qSk(),o.j41(8,"svg",8),o.nrm(9,"path",9),o.k0s()()()(),o.DNE(10,nn,3,9,"ng-template",10),o.bIt("backdropClick",function(){return o.eBV(xt),o.Njj(Pe.close())})("attach",function(){return o.eBV(xt),o.Njj(Pe._onAttached())})("detach",function(){return o.eBV(xt),o.Njj(Pe.close())})}if(2&We){const xt=o.sdS(1);o.R7$(3),o.BMQ("id",Pe._valueId),o.R7$(),o.vxM(Pe.empty?4:5),o.R7$(6),o.Y8G("cdkConnectedOverlayPanelClass",Pe._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Pe._scrollStrategy)("cdkConnectedOverlayOrigin",Pe._preferredOverlayOrigin||xt)("cdkConnectedOverlayOpen",Pe.panelOpen)("cdkConnectedOverlayPositions",Pe._positions)("cdkConnectedOverlayWidth",Pe._overlayWidth)}},dependencies:[u.$Q,u.WB,y.YU],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:[Fn.transformPanel]},changeDetection:0})}}return we})(),Lt=(()=>{class we{static{this.\u0275fac=function(We){return new(We||we)}}static{this.\u0275dir=o.FsC({type:we,selectors:[["mat-select-trigger"]],standalone:!0,features:[o.Jv_([{provide:Ne,useExisting:we}])]})}}return we})(),Mt=(()=>{class we{static{this.\u0275fac=function(We){return new(We||we)}}static{this.\u0275mod=o.$C({type:we})}static{this.\u0275inj=o.G2t({providers:[gt],imports:[y.MD,u.z_,B.Sy,B.yE,ee.Gj,W.RG,B.Sy,B.yE]})}}return we})()},882:(tn,Re,v)=>{"use strict";v.d(Re,{$C:()=>gt,$l:()=>J,qe:()=>Se,vg:()=>Lt});var u=v(5542),y=v(4438),o=v(6600),B=v(9888),W=v(8203),ee=v(4085),re=v(7336),V=v(6860),F=v(177),U=v(1413),L=v(3726),fe=v(7786),de=v(5964),be=v(6354),Te=v(3703),Me=v(6977),te=v(3294),ve=v(6697),tt=v(9172),bt=v(152),Ve=v(9969);const rt=["*"],Xe=["content"],oe=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],he=["mat-drawer","mat-drawer-content","*"];function Le(Mt,we){if(1&Mt){const Oe=y.RV6();y.j41(0,"div",1),y.bIt("click",function(){y.eBV(Oe);const We=y.XpG();return y.Njj(We._onBackdropClicked())}),y.k0s()}if(2&Mt){const Oe=y.XpG();y.AVh("mat-drawer-shown",Oe._isShowingBackdrop())}}function et(Mt,we){1&Mt&&(y.j41(0,"mat-drawer-content"),y.SdG(1,2),y.k0s())}const $n={transformDrawer:(0,Ve.hZ)("transform",[(0,Ve.wk)("open, open-instant",(0,Ve.iF)({transform:"none",visibility:"visible"})),(0,Ve.wk)("void",(0,Ve.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Ve.kY)("void => open-instant",(0,Ve.i0)("0ms")),(0,Ve.kY)("void <=> open, open-instant => void",(0,Ve.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},di=new y.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Ee(){return!1}}),mt=new y.nKC("MAT_DRAWER_CONTAINER");let J=(()=>{class Mt extends u.uv{constructor(Oe,me,We,Pe,xt){super(We,Pe,xt),this._changeDetectorRef=Oe,this._container=me}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(y.gRc),y.rXU((0,y.Rfq)(()=>gt)),y.rXU(y.aKT),y.rXU(u.R),y.rXU(y.SKi))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(me,We){2&me&&y.xc7("margin-left",We._container._contentMargins.left,"px")("margin-right",We._container._contentMargins.right,"px")},standalone:!0,features:[y.Jv_([{provide:u.uv,useExisting:Mt}]),y.Vt3,y.aNF],ngContentSelectors:rt,decls:1,vars:0,template:function(me,We){1&me&&(y.NAR(),y.SdG(0))},encapsulation:2,changeDetection:0})}}return Mt})(),Se=(()=>{class Mt{get position(){return this._position}set position(Oe){(Oe="end"===Oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Oe),this._position=Oe,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Oe){this._mode=Oe,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Oe){this._disableClose=(0,ee.he)(Oe)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Oe){("true"===Oe||"false"===Oe||null==Oe)&&(Oe=(0,ee.he)(Oe)),this._autoFocus=Oe}get opened(){return this._opened}set opened(Oe){this.toggle((0,ee.he)(Oe))}constructor(Oe,me,We,Pe,xt,xe,ut,Rt){this._elementRef=Oe,this._focusTrapFactory=me,this._focusMonitor=We,this._platform=Pe,this._ngZone=xt,this._interactivityChecker=xe,this._doc=ut,this._container=Rt,this._focusTrap=null,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new U.B,this._animationEnd=new U.B,this._animationState="void",this.openedChange=new y.bkB(!0),this._openedStream=this.openedChange.pipe((0,de.p)(wt=>wt),(0,be.T)(()=>{})),this.openedStart=this._animationStarted.pipe((0,de.p)(wt=>wt.fromState!==wt.toState&&0===wt.toState.indexOf("open")),(0,Te.u)(void 0)),this._closedStream=this.openedChange.pipe((0,de.p)(wt=>!wt),(0,be.T)(()=>{})),this.closedStart=this._animationStarted.pipe((0,de.p)(wt=>wt.fromState!==wt.toState&&"void"===wt.toState),(0,Te.u)(void 0)),this._destroyed=new U.B,this.onPositionChanged=new y.bkB,this._modeChanged=new U.B,this._injector=(0,y.WQX)(y.zZn),this._changeDetectorRef=(0,y.WQX)(y.gRc),this.openedChange.pipe((0,Me.Q)(this._destroyed)).subscribe(wt=>{wt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,L.R)(this._elementRef.nativeElement,"keydown").pipe((0,de.p)(wt=>wt.keyCode===re._f&&!this.disableClose&&!(0,re.rp)(wt)),(0,Me.Q)(this._destroyed)).subscribe(wt=>this._ngZone.run(()=>{this.close(),wt.stopPropagation(),wt.preventDefault()}))}),this._animationEnd.pipe((0,te.F)((wt,mn)=>wt.fromState===mn.fromState&&wt.toState===mn.toState)).subscribe(wt=>{const{fromState:mn,toState:ni}=wt;(0===ni.indexOf("open")&&"void"===mn||"void"===ni&&0===mn.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Oe,me){this._interactivityChecker.isFocusable(Oe)||(Oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const We=()=>{Oe.removeEventListener("blur",We),Oe.removeEventListener("mousedown",We),Oe.removeAttribute("tabindex")};Oe.addEventListener("blur",We),Oe.addEventListener("mousedown",We)})),Oe.focus(me)}_focusByCssSelector(Oe,me){let We=this._elementRef.nativeElement.querySelector(Oe);We&&this._forceFocus(We,me)}_takeFocus(){if(!this._focusTrap)return;const Oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,y.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof Oe.focus&&Oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Oe=this._doc.activeElement;return!!Oe&&this._elementRef.nativeElement.contains(Oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&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(Oe){return this.toggle(!0,Oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Oe=!this.opened,me){Oe&&me&&(this._openedVia=me);const We=this._setOpen(Oe,!Oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return Oe||(this._openedVia=null),We}_setOpen(Oe,me,We){return this._opened=Oe,Oe?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",me&&this._restoreFocus(We)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Pe=>{this.openedChange.pipe((0,ve.s)(1)).subscribe(xt=>Pe(xt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(Oe){if(!this._platform.isBrowser)return;const me=this._elementRef.nativeElement,We=me.parentNode;"end"===Oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),We.insertBefore(this._anchor,me)),We.appendChild(me)):this._anchor&&this._anchor.parentNode.insertBefore(me,this._anchor)}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(y.aKT),y.rXU(B.GX),y.rXU(B.FN),y.rXU(V.OD),y.rXU(y.SKi),y.rXU(B.Z7),y.rXU(F.qQ,8),y.rXU(mt,8))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer"]],viewQuery:function(me,We){if(1&me&&y.GBs(Xe,5),2&me){let Pe;y.mGM(Pe=y.lsd())&&(We._content=Pe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(me,We){1&me&&y.Kam("@transform.start",function(xt){return We._animationStarted.next(xt)})("@transform.done",function(xt){return We._animationEnd.next(xt)}),2&me&&(y.zvX("@transform",We._animationState),y.BMQ("align",null),y.AVh("mat-drawer-end","end"===We.position)("mat-drawer-over","over"===We.mode)("mat-drawer-push","push"===We.mode)("mat-drawer-side","side"===We.mode)("mat-drawer-opened",We.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:[y.aNF],ngContentSelectors:rt,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(me,We){1&me&&(y.NAR(),y.j41(0,"div",1,0),y.SdG(2),y.k0s())},dependencies:[u.uv],encapsulation:2,data:{animation:[$n.transformDrawer]},changeDetection:0})}}return Mt})(),gt=(()=>{class Mt{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Oe){this._autosize=(0,ee.he)(Oe)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(Oe){this._backdropOverride=null==Oe?null:(0,ee.he)(Oe)}get scrollable(){return this._userContent||this._content}constructor(Oe,me,We,Pe,xt,xe=!1,ut){this._dir=Oe,this._element=me,this._ngZone=We,this._changeDetectorRef=Pe,this._animationMode=ut,this._drawers=new y.rOR,this.backdropClick=new y.bkB,this._destroyed=new U.B,this._doCheckSubject=new U.B,this._contentMargins={left:null,right:null},this._contentMarginChanges=new U.B,this._injector=(0,y.WQX)(y.zZn),Oe&&Oe.change.pipe((0,Me.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),xt.change().pipe((0,Me.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=xe}ngAfterContentInit(){this._allDrawers.changes.pipe((0,tt.Z)(this._allDrawers),(0,Me.Q)(this._destroyed)).subscribe(Oe=>{this._drawers.reset(Oe.filter(me=>!me._container||me._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,tt.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Oe=>{this._watchDrawerToggle(Oe),this._watchDrawerPosition(Oe),this._watchDrawerMode(Oe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,bt.B)(10),(0,Me.Q)(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(Oe=>Oe.open())}close(){this._drawers.forEach(Oe=>Oe.close())}updateContentMargins(){let Oe=0,me=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Oe+=this._left._getWidth();else if("push"==this._left.mode){const We=this._left._getWidth();Oe+=We,me-=We}if(this._right&&this._right.opened)if("side"==this._right.mode)me+=this._right._getWidth();else if("push"==this._right.mode){const We=this._right._getWidth();me+=We,Oe-=We}Oe=Oe||null,me=me||null,(Oe!==this._contentMargins.left||me!==this._contentMargins.right)&&(this._contentMargins={left:Oe,right:me},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Oe){Oe._animationStarted.pipe((0,de.p)(me=>me.fromState!==me.toState),(0,Me.Q)(this._drawers.changes)).subscribe(me=>{"open-instant"!==me.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Oe.mode&&Oe.openedChange.pipe((0,Me.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Oe.opened))}_watchDrawerPosition(Oe){Oe&&Oe.onPositionChanged.pipe((0,Me.Q)(this._drawers.changes)).subscribe(()=>{(0,y.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:y.wjH.Read})})}_watchDrawerMode(Oe){Oe&&Oe._modeChanged.pipe((0,Me.Q)((0,fe.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Oe){const me=this._element.nativeElement.classList,We="mat-drawer-container-has-open";Oe?me.add(We):me.remove(We)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Oe=>{"end"==Oe.position?this._end=Oe:this._start=Oe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Oe=>Oe&&!Oe.disableClose&&this._drawerHasBackdrop(Oe)).forEach(Oe=>Oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(Oe){return null!=Oe&&Oe.opened}_drawerHasBackdrop(Oe){return null==this._backdropOverride?!!Oe&&"side"!==Oe.mode:this._backdropOverride}static{this.\u0275fac=function(me){return new(me||Mt)(y.rXU(W.dS,8),y.rXU(y.aKT),y.rXU(y.SKi),y.rXU(y.gRc),y.rXU(u.Xj),y.rXU(di),y.rXU(y.bc$,8))}}static{this.\u0275cmp=y.VBU({type:Mt,selectors:[["mat-drawer-container"]],contentQueries:function(me,We,Pe){if(1&me&&(y.wni(Pe,J,5),y.wni(Pe,Se,5)),2&me){let xt;y.mGM(xt=y.lsd())&&(We._content=xt.first),y.mGM(xt=y.lsd())&&(We._allDrawers=xt)}},viewQuery:function(me,We){if(1&me&&y.GBs(J,5),2&me){let Pe;y.mGM(Pe=y.lsd())&&(We._userContent=Pe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(me,We){2&me&&y.AVh("mat-drawer-container-explicit-backdrop",We._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],standalone:!0,features:[y.Jv_([{provide:mt,useExisting:Mt}]),y.aNF],ngContentSelectors:he,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(me,We){1&me&&(y.NAR(oe),y.DNE(0,Le,1,2,"div",0),y.SdG(1),y.SdG(2,1),y.DNE(3,et,2,0,"mat-drawer-content")),2&me&&(y.vxM(We.hasBackdrop?0:-1),y.R7$(3),y.vxM(We._content?-1:3))},dependencies:[J],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})}}return Mt})(),Lt=(()=>{class Mt{static{this.\u0275fac=function(me){return new(me||Mt)}}static{this.\u0275mod=y.$C({type:Mt})}static{this.\u0275inj=y.G2t({imports:[o.yE,u.Gj,u.Gj,o.yE]})}}return Mt})()},4823:(tn,Re,v)=>{"use strict";v.d(Re,{oV:()=>Tt,uc:()=>$n});var u=v(6977),y=v(4085),o=v(7336),B=v(4438),W=v(177),ee=v(6860),re=v(9888),V=v(8203),F=v(7987),U=v(5542),L=v(6939),fe=v(1413),be=(v(9969),v(6600));const Te=["tooltip"],ve=new B.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const yn=(0,B.WQX)(F.hJ);return()=>yn.scrollStrategies.reposition({scrollThrottle:20})}}),bt={provide:ve,deps:[F.hJ],useFactory:function tt(yn){return()=>yn.scrollStrategies.reposition({scrollThrottle:20})}},rt=new B.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ve(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),oe="tooltip-panel",he=(0,ee.BQ)({passive:!0});let Tt=(()=>{class yn{get position(){return this._position}set position(mt){mt!==this._position&&(this._position=mt,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(mt){this._positionAtOrigin=(0,y.he)(mt),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(mt){const Ee=(0,y.he)(mt);this._disabled!==Ee&&(this._disabled=Ee,Ee?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(mt){this._showDelay=(0,y.OE)(mt)}get hideDelay(){return this._hideDelay}set hideDelay(mt){this._hideDelay=(0,y.OE)(mt),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(mt){const Ee=this._message;this._message=null!=mt?String(mt).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(Ee)}get tooltipClass(){return this._tooltipClass}set tooltipClass(mt){this._tooltipClass=mt,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(mt,Ee,J,Se,gt,Ne,Ze,je,Lt,Mt,we,Oe){this._overlay=mt,this._elementRef=Ee,this._scrollDispatcher=J,this._viewContainerRef=Se,this._ngZone=gt,this._platform=Ne,this._ariaDescriber=Ze,this._focusMonitor=je,this._dir=Mt,this._defaultOptions=we,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=nn,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._touchstartTimeout=null,this._destroyed=new fe.B,this._injector=(0,B.WQX)(B.zZn),this._scrollStrategy=Lt,this._document=Oe,we&&(this._showDelay=we.showDelay,this._hideDelay=we.hideDelay,we.position&&(this.position=we.position),we.positionAtOrigin&&(this.positionAtOrigin=we.positionAtOrigin),we.touchGestures&&(this.touchGestures=we.touchGestures),we.tooltipClass&&(this.tooltipClass=we.tooltipClass)),Mt.change.pipe((0,u.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,u.Q)(this._destroyed)).subscribe(mt=>{mt?"keyboard"===mt&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const mt=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ee,J])=>{mt.removeEventListener(Ee,J,he)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(mt,this.message,"tooltip"),this._focusMonitor.stopMonitoring(mt)}show(mt=this.showDelay,Ee){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const J=this._createOverlay(Ee);this._detach(),this._portal=this._portal||new L.A8(this._tooltipComponent,this._viewContainerRef);const Se=this._tooltipInstance=J.attach(this._portal).instance;Se._triggerElement=this._elementRef.nativeElement,Se._mouseLeaveHideDelay=this._hideDelay,Se.afterHidden().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Se.show(mt)}hide(mt=this.hideDelay){const Ee=this._tooltipInstance;Ee&&(Ee.isVisible()?Ee.hide(mt):(Ee._cancelPendingAnimations(),this._detach()))}toggle(mt){this._isTooltipVisible()?this.hide():this.show(void 0,mt)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(mt){if(this._overlayRef){const Se=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!mt)&&Se._origin instanceof B.aKT)return this._overlayRef;this._detach()}const Ee=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),J=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&mt||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Ee);return J.positionChanges.pipe((0,u.Q)(this._destroyed)).subscribe(Se=>{this._updateCurrentPositionClass(Se.connectionPair),this._tooltipInstance&&Se.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:J,panelClass:`${this._cssClassPrefix}-${oe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,u.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,u.Q)(this._destroyed)).subscribe(Se=>{this._isTooltipVisible()&&Se.keyCode===o._f&&!(0,o.rp)(Se)&&(Se.preventDefault(),Se.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(mt){const Ee=mt.getConfig().positionStrategy,J=this._getOrigin(),Se=this._getOverlayPosition();Ee.withPositions([this._addOffset({...J.main,...Se.main}),this._addOffset({...J.fallback,...Se.fallback})])}_addOffset(mt){const J=!this._dir||"ltr"==this._dir.value;return"top"===mt.originY?mt.offsetY=-8:"bottom"===mt.originY?mt.offsetY=8:"start"===mt.originX?mt.offsetX=J?-8:8:"end"===mt.originX&&(mt.offsetX=J?8:-8),mt}_getOrigin(){const mt=!this._dir||"ltr"==this._dir.value,Ee=this.position;let J;"above"==Ee||"below"==Ee?J={originX:"center",originY:"above"==Ee?"top":"bottom"}:"before"==Ee||"left"==Ee&&mt||"right"==Ee&&!mt?J={originX:"start",originY:"center"}:("after"==Ee||"right"==Ee&&mt||"left"==Ee&&!mt)&&(J={originX:"end",originY:"center"});const{x:Se,y:gt}=this._invertPosition(J.originX,J.originY);return{main:J,fallback:{originX:Se,originY:gt}}}_getOverlayPosition(){const mt=!this._dir||"ltr"==this._dir.value,Ee=this.position;let J;"above"==Ee?J={overlayX:"center",overlayY:"bottom"}:"below"==Ee?J={overlayX:"center",overlayY:"top"}:"before"==Ee||"left"==Ee&&mt||"right"==Ee&&!mt?J={overlayX:"end",overlayY:"center"}:("after"==Ee||"right"==Ee&&mt||"left"==Ee&&!mt)&&(J={overlayX:"start",overlayY:"center"});const{x:Se,y:gt}=this._invertPosition(J.overlayX,J.overlayY);return{main:J,fallback:{overlayX:Se,overlayY:gt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,B.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(mt){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=mt,this._tooltipInstance._markForCheck())}_invertPosition(mt,Ee){return"above"===this.position||"below"===this.position?"top"===Ee?Ee="bottom":"bottom"===Ee&&(Ee="top"):"end"===mt?mt="start":"start"===mt&&(mt="end"),{x:mt,y:Ee}}_updateCurrentPositionClass(mt){const{overlayY:Ee,originX:J,originY:Se}=mt;let gt;if(gt="center"===Ee?this._dir&&"rtl"===this._dir.value?"end"===J?"left":"right":"start"===J?"left":"right":"bottom"===Ee&&"top"===Se?"above":"below",gt!==this._currentPosition){const Ne=this._overlayRef;if(Ne){const Ze=`${this._cssClassPrefix}-${oe}-`;Ne.removePanelClass(Ze+this._currentPosition),Ne.addPanelClass(Ze+gt)}this._currentPosition=gt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",mt=>{let Ee;this._setupPointerExitEventsIfNeeded(),void 0!==mt.x&&void 0!==mt.y&&(Ee=mt),this.show(void 0,Ee)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",mt=>{const Ee=mt.targetTouches?.[0],J=Ee?{x:Ee.clientX,y:Ee.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,J)},this._defaultOptions.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const mt=[];if(this._platformSupportsMouseEvents())mt.push(["mouseleave",Ee=>{const J=Ee.relatedTarget;(!J||!this._overlayRef?.overlayElement.contains(J))&&this.hide()}],["wheel",Ee=>this._wheelListener(Ee)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ee=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};mt.push(["touchend",Ee],["touchcancel",Ee])}this._addListeners(mt),this._passiveListeners.push(...mt)}_addListeners(mt){mt.forEach(([Ee,J])=>{this._elementRef.nativeElement.addEventListener(Ee,J,he)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(mt){if(this._isTooltipVisible()){const Ee=this._document.elementFromPoint(mt.clientX,mt.clientY),J=this._elementRef.nativeElement;Ee!==J&&!J.contains(Ee)&&this.hide()}}_disableNativeGesturesIfNecessary(){const mt=this.touchGestures;if("off"!==mt){const Ee=this._elementRef.nativeElement,J=Ee.style;("on"===mt||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName)&&(J.userSelect=J.msUserSelect=J.webkitUserSelect=J.MozUserSelect="none"),("on"===mt||!Ee.draggable)&&(J.webkitUserDrag="none"),J.touchAction="none",J.webkitTapHighlightColor="transparent"}}_syncAriaDescription(mt){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,mt,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static{this.\u0275fac=function(Ee){return new(Ee||yn)(B.rXU(F.hJ),B.rXU(B.aKT),B.rXU(U.R),B.rXU(B.c1b),B.rXU(B.SKi),B.rXU(ee.OD),B.rXU(re.vr),B.rXU(re.FN),B.rXU(ve),B.rXU(V.dS),B.rXU(rt,8),B.rXU(W.qQ))}}static{this.\u0275dir=B.FsC({type:yn,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(Ee,J){2&Ee&&B.AVh("mat-mdc-tooltip-disabled",J.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})}}return yn})(),nn=(()=>{class yn{constructor(mt,Ee,J){this._changeDetectorRef=mt,this._elementRef=Ee,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new fe.B,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===J}show(mt){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},mt)}hide(mt){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},mt)}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:mt}){(!mt||!this._triggerElement.contains(mt))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const mt=this._elementRef.nativeElement.getBoundingClientRect();return mt.height>24&&mt.width>=200}_handleAnimationEnd({animationName:mt}){(mt===this._showAnimation||mt===this._hideAnimation)&&this._finalizeAnimation(mt===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(mt){mt?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(mt){const Ee=this._tooltip.nativeElement,J=this._showAnimation,Se=this._hideAnimation;if(Ee.classList.remove(mt?Se:J),Ee.classList.add(mt?J:Se),this._isVisible!==mt&&(this._isVisible=mt,this._changeDetectorRef.markForCheck()),mt&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const gt=getComputedStyle(Ee);("0s"===gt.getPropertyValue("animation-duration")||"none"===gt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}mt&&this._onShow(),this._animationsDisabled&&(Ee.classList.add("_mat-animation-noopable"),this._finalizeAnimation(mt))}static{this.\u0275fac=function(Ee){return new(Ee||yn)(B.rXU(B.gRc),B.rXU(B.aKT),B.rXU(B.bc$,8))}}static{this.\u0275cmp=B.VBU({type:yn,selectors:[["mat-tooltip-component"]],viewQuery:function(Ee,J){if(1&Ee&&B.GBs(Te,7),2&Ee){let Se;B.mGM(Se=B.lsd())&&(J._tooltip=Se.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(Ee,J){1&Ee&&B.bIt("mouseleave",function(gt){return J._handleMouseLeave(gt)})},standalone:!0,features:[B.aNF],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(Ee,J){if(1&Ee){const Se=B.RV6();B.j41(0,"div",1,0),B.bIt("animationend",function(Ne){return B.eBV(Se),B.Njj(J._handleAnimationEnd(Ne))}),B.j41(2,"div",2),B.EFF(3),B.k0s()()}2&Ee&&(B.AVh("mdc-tooltip--multiline",J._isMultiline),B.Y8G("ngClass",J.tooltipClass),B.R7$(3),B.JRh(J.message))},dependencies:[W.YU],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})}}return yn})(),$n=(()=>{class yn{static{this.\u0275fac=function(Ee){return new(Ee||yn)}}static{this.\u0275mod=B.$C({type:yn})}static{this.\u0275inj=B.G2t({providers:[bt],imports:[re.Pd,W.MD,F.z_,be.yE,be.yE,U.Gj]})}}return yn})()},345:(tn,Re,v)=>{"use strict";v.d(Re,{B7:()=>he,B8:()=>J,hE:()=>ut,up:()=>le});var u=v(177),y=v(4438);class o extends u.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class B extends o{static makeCurrent(){(0,u.ZD)(new B)}onAndCancel(Be,ye,Ye){return Be.addEventListener(ye,Ye),()=>{Be.removeEventListener(ye,Ye)}}dispatchEvent(Be,ye){Be.dispatchEvent(ye)}remove(Be){Be.remove()}createElement(Be,ye){return(ye=ye||this.getDefaultDocument()).createElement(Be)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Be){return Be.nodeType===Node.ELEMENT_NODE}isShadowRoot(Be){return Be instanceof DocumentFragment}getGlobalEventTarget(Be,ye){return"window"===ye?window:"document"===ye?Be:"body"===ye?Be.body:null}getBaseHref(Be){const ye=function ee(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}();return null==ye?null:function re(He){return new URL(He,document.baseURI).pathname}(ye)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(Be){return(0,u._b)(document.cookie,Be)}}let W=null,F=(()=>{class He{build(){return new XMLHttpRequest}static{this.\u0275fac=function(Ye){return new(Ye||He)}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const U=new y.nKC("");let L=(()=>{class He{constructor(ye,Ye){this._zone=Ye,this._eventNameToPlugin=new Map,ye.forEach(Gt=>{Gt.manager=this}),this._plugins=ye.slice().reverse()}addEventListener(ye,Ye,Gt){return this._findPluginFor(Ye).addEventListener(ye,Ye,Gt)}getZone(){return this._zone}_findPluginFor(ye){let Ye=this._eventNameToPlugin.get(ye);if(Ye)return Ye;if(Ye=this._plugins.find(Pn=>Pn.supports(ye)),!Ye)throw new y.wOt(5101,!1);return this._eventNameToPlugin.set(ye,Ye),Ye}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(U),y.KVO(y.SKi))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();class fe{constructor(Be){this._doc=Be}}const de="ng-app-id";let be=(()=>{class He{constructor(ye,Ye,Gt,Pn={}){this.doc=ye,this.appId=Ye,this.nonce=Gt,this.platformId=Pn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,u.Vy)(Pn),this.resetHostNodes()}addStyles(ye){for(const Ye of ye)1===this.changeUsageCount(Ye,1)&&this.onStyleAdded(Ye)}removeStyles(ye){for(const Ye of ye)this.changeUsageCount(Ye,-1)<=0&&this.onStyleRemoved(Ye)}ngOnDestroy(){const ye=this.styleNodesInDOM;ye&&(ye.forEach(Ye=>Ye.remove()),ye.clear());for(const Ye of this.getAllStyles())this.onStyleRemoved(Ye);this.resetHostNodes()}addHost(ye){this.hostNodes.add(ye);for(const Ye of this.getAllStyles())this.addStyleToHost(ye,Ye)}removeHost(ye){this.hostNodes.delete(ye)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ye){for(const Ye of this.hostNodes)this.addStyleToHost(Ye,ye)}onStyleRemoved(ye){const Ye=this.styleRef;Ye.get(ye)?.elements?.forEach(Gt=>Gt.remove()),Ye.delete(ye)}collectServerRenderedStyles(){const ye=this.doc.head?.querySelectorAll(`style[${de}="${this.appId}"]`);if(ye?.length){const Ye=new Map;return ye.forEach(Gt=>{null!=Gt.textContent&&Ye.set(Gt.textContent,Gt)}),Ye}return null}changeUsageCount(ye,Ye){const Gt=this.styleRef;if(Gt.has(ye)){const Pn=Gt.get(ye);return Pn.usage+=Ye,Pn.usage}return Gt.set(ye,{usage:Ye,elements:[]}),Ye}getStyleElement(ye,Ye){const Gt=this.styleNodesInDOM,Pn=Gt?.get(Ye);if(Pn?.parentNode===ye)return Gt.delete(Ye),Pn.removeAttribute(de),Pn;{const yi=this.doc.createElement("style");return this.nonce&&yi.setAttribute("nonce",this.nonce),yi.textContent=Ye,this.platformIsServer&&yi.setAttribute(de,this.appId),ye.appendChild(yi),yi}}addStyleToHost(ye,Ye){const Gt=this.getStyleElement(ye,Ye),Pn=this.styleRef,yi=Pn.get(Ye)?.elements;yi?yi.push(Gt):Pn.set(Ye,{elements:[Gt],usage:1})}resetHostNodes(){const ye=this.hostNodes;ye.clear(),ye.add(this.doc.head)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ),y.KVO(y.sZ2),y.KVO(y.BIS,8),y.KVO(y.Agw))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const Te={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Me=/%COMP%/g,Ve=new y.nKC("",{providedIn:"root",factory:()=>!0});function oe(He,Be){return Be.map(ye=>ye.replace(Me,He))}let he=(()=>{class He{constructor(ye,Ye,Gt,Pn,yi,Ti,sn,At=null){this.eventManager=ye,this.sharedStylesHost=Ye,this.appId=Gt,this.removeStylesOnCompDestroy=Pn,this.doc=yi,this.platformId=Ti,this.ngZone=sn,this.nonce=At,this.rendererByCompId=new Map,this.platformIsServer=(0,u.Vy)(Ti),this.defaultRenderer=new Le(ye,yi,sn,this.platformIsServer)}createRenderer(ye,Ye){if(!ye||!Ye)return this.defaultRenderer;this.platformIsServer&&Ye.encapsulation===y.gXe.ShadowDom&&(Ye={...Ye,encapsulation:y.gXe.Emulated});const Gt=this.getOrCreateRenderer(ye,Ye);return Gt instanceof Fn?Gt.applyToHost(ye):Gt instanceof nn&&Gt.applyStyles(),Gt}getOrCreateRenderer(ye,Ye){const Gt=this.rendererByCompId;let Pn=Gt.get(Ye.id);if(!Pn){const yi=this.doc,Ti=this.ngZone,sn=this.eventManager,At=this.sharedStylesHost,st=this.removeStylesOnCompDestroy,Bt=this.platformIsServer;switch(Ye.encapsulation){case y.gXe.Emulated:Pn=new Fn(sn,At,Ye,this.appId,st,yi,Ti,Bt);break;case y.gXe.ShadowDom:return new Tt(sn,At,ye,Ye,yi,Ti,this.nonce,Bt);default:Pn=new nn(sn,At,Ye,st,yi,Ti,Bt)}Gt.set(Ye.id,Pn)}return Pn}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(L),y.KVO(be),y.KVO(y.sZ2),y.KVO(Ve),y.KVO(u.qQ),y.KVO(y.Agw),y.KVO(y.SKi),y.KVO(y.BIS))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();class Le{constructor(Be,ye,Ye,Gt){this.eventManager=Be,this.doc=ye,this.ngZone=Ye,this.platformIsServer=Gt,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Be,ye){return ye?this.doc.createElementNS(Te[ye]||ye,Be):this.doc.createElement(Be)}createComment(Be){return this.doc.createComment(Be)}createText(Be){return this.doc.createTextNode(Be)}appendChild(Be,ye){(Et(Be)?Be.content:Be).appendChild(ye)}insertBefore(Be,ye,Ye){Be&&(Et(Be)?Be.content:Be).insertBefore(ye,Ye)}removeChild(Be,ye){ye.remove()}selectRootElement(Be,ye){let Ye="string"==typeof Be?this.doc.querySelector(Be):Be;if(!Ye)throw new y.wOt(-5104,!1);return ye||(Ye.textContent=""),Ye}parentNode(Be){return Be.parentNode}nextSibling(Be){return Be.nextSibling}setAttribute(Be,ye,Ye,Gt){if(Gt){ye=Gt+":"+ye;const Pn=Te[Gt];Pn?Be.setAttributeNS(Pn,ye,Ye):Be.setAttribute(ye,Ye)}else Be.setAttribute(ye,Ye)}removeAttribute(Be,ye,Ye){if(Ye){const Gt=Te[Ye];Gt?Be.removeAttributeNS(Gt,ye):Be.removeAttribute(`${Ye}:${ye}`)}else Be.removeAttribute(ye)}addClass(Be,ye){Be.classList.add(ye)}removeClass(Be,ye){Be.classList.remove(ye)}setStyle(Be,ye,Ye,Gt){Gt&(y.czy.DashCase|y.czy.Important)?Be.style.setProperty(ye,Ye,Gt&y.czy.Important?"important":""):Be.style[ye]=Ye}removeStyle(Be,ye,Ye){Ye&y.czy.DashCase?Be.style.removeProperty(ye):Be.style[ye]=""}setProperty(Be,ye,Ye){null!=Be&&(Be[ye]=Ye)}setValue(Be,ye){Be.nodeValue=ye}listen(Be,ye,Ye){if("string"==typeof Be&&!(Be=(0,u.QT)().getGlobalEventTarget(this.doc,Be)))throw new Error(`Unsupported event target ${Be} for event ${ye}`);return this.eventManager.addEventListener(Be,ye,this.decoratePreventDefault(Ye))}decoratePreventDefault(Be){return ye=>{if("__ngUnwrap__"===ye)return Be;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Be(ye)):Be(ye))&&ye.preventDefault()}}}function Et(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class Tt extends Le{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){super(Be,Pn,yi,sn),this.sharedStylesHost=ye,this.hostEl=Ye,this.shadowRoot=Ye.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const At=oe(Gt.id,Gt.styles);for(const st of At){const Bt=document.createElement("style");Ti&&Bt.setAttribute("nonce",Ti),Bt.textContent=st,this.shadowRoot.appendChild(Bt)}}nodeOrShadowRoot(Be){return Be===this.hostEl?this.shadowRoot:Be}appendChild(Be,ye){return super.appendChild(this.nodeOrShadowRoot(Be),ye)}insertBefore(Be,ye,Ye){return super.insertBefore(this.nodeOrShadowRoot(Be),ye,Ye)}removeChild(Be,ye){return super.removeChild(null,ye)}parentNode(Be){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Be)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class nn extends Le{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){super(Be,Pn,yi,Ti),this.sharedStylesHost=ye,this.removeStylesOnCompDestroy=Gt,this.styles=sn?oe(sn,Ye.styles):Ye.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Fn extends nn{constructor(Be,ye,Ye,Gt,Pn,yi,Ti,sn){const At=Gt+"-"+Ye.id;super(Be,ye,Ye,Pn,yi,Ti,sn,At),this.contentAttr=function rt(He){return"_ngcontent-%COMP%".replace(Me,He)}(At),this.hostAttr=function Xe(He){return"_nghost-%COMP%".replace(Me,He)}(At)}applyToHost(Be){this.applyStyles(),this.setAttribute(Be,this.hostAttr,"")}createElement(Be,ye){const Ye=super.createElement(Be,ye);return super.setAttribute(Ye,this.contentAttr,""),Ye}}let $n=(()=>{class He extends fe{constructor(ye){super(ye)}supports(ye){return!0}addEventListener(ye,Ye,Gt){return ye.addEventListener(Ye,Gt,!1),()=>this.removeEventListener(ye,Ye,Gt)}removeEventListener(ye,Ye,Gt){return ye.removeEventListener(Ye,Gt)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();const yn=["alt","control","meta","shift"],di={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},mt={alt:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let Ee=(()=>{class He extends fe{constructor(ye){super(ye)}supports(ye){return null!=He.parseEventName(ye)}addEventListener(ye,Ye,Gt){const Pn=He.parseEventName(Ye),yi=He.eventCallback(Pn.fullKey,Gt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,u.QT)().onAndCancel(ye,Pn.domEventName,yi))}static parseEventName(ye){const Ye=ye.toLowerCase().split("."),Gt=Ye.shift();if(0===Ye.length||"keydown"!==Gt&&"keyup"!==Gt)return null;const Pn=He._normalizeKey(Ye.pop());let yi="",Ti=Ye.indexOf("code");if(Ti>-1&&(Ye.splice(Ti,1),yi="code."),yn.forEach(At=>{const st=Ye.indexOf(At);st>-1&&(Ye.splice(st,1),yi+=At+".")}),yi+=Pn,0!=Ye.length||0===Pn.length)return null;const sn={};return sn.domEventName=Gt,sn.fullKey=yi,sn}static matchEventFullKeyCode(ye,Ye){let Gt=di[ye.key]||ye.key,Pn="";return Ye.indexOf("code.")>-1&&(Gt=ye.code,Pn="code."),!(null==Gt||!Gt)&&(Gt=Gt.toLowerCase()," "===Gt?Gt="space":"."===Gt&&(Gt="dot"),yn.forEach(yi=>{yi!==Gt&&(0,mt[yi])(ye)&&(Pn+=yi+".")}),Pn+=Gt,Pn===Ye)}static eventCallback(ye,Ye,Gt){return Pn=>{He.matchEventFullKeyCode(Pn,ye)&&Gt.runGuarded(()=>Ye(Pn))}}static _normalizeKey(ye){return"esc"===ye?"escape":ye}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac})}}return He})();function J(He,Be){return(0,y.TL3)({rootComponent:He,...gt(Be)})}function gt(He){return{appProviders:[...We,...He?.providers??[]],platformProviders:Mt}}const Mt=[{provide:y.Agw,useValue:u.AJ},{provide:y.PLl,useValue:function Ze(){B.makeCurrent()},multi:!0},{provide:u.qQ,useFactory:function Lt(){return(0,y.TL$)(document),document},deps:[]}],We=[{provide:y.H8p,useValue:"root"},{provide:y.zcH,useFactory:function je(){return new y.zcH},deps:[]},{provide:U,useClass:$n,multi:!0,deps:[u.qQ,y.SKi,y.Agw]},{provide:U,useClass:Ee,multi:!0,deps:[u.qQ]},he,be,L,{provide:y._9s,useExisting:he},{provide:u.N0,useClass:F,deps:[]},[]];let ut=(()=>{class He{constructor(ye){this._doc=ye}getTitle(){return this._doc.title}setTitle(ye){this._doc.title=ye||""}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})(),le=(()=>{class He{static{this.\u0275fac=function(Ye){return new(Ye||He)}}static{this.\u0275prov=y.jDH({token:He,factory:function(Ye){let Gt=null;return Gt=Ye?new(Ye||He):y.KVO(ue),Gt},providedIn:"root"})}}return He})(),ue=(()=>{class He extends le{constructor(ye){super(),this._doc=ye}sanitize(ye,Ye){if(null==Ye)return null;switch(ye){case y.WPN.NONE:return Ye;case y.WPN.HTML:return(0,y.ZF7)(Ye,"HTML")?(0,y.rcV)(Ye):(0,y.h9k)(this._doc,String(Ye)).toString();case y.WPN.STYLE:return(0,y.ZF7)(Ye,"Style")?(0,y.rcV)(Ye):Ye;case y.WPN.SCRIPT:if((0,y.ZF7)(Ye,"Script"))return(0,y.rcV)(Ye);throw new y.wOt(5200,!1);case y.WPN.URL:return(0,y.ZF7)(Ye,"URL")?(0,y.rcV)(Ye):(0,y.$MX)(String(Ye));case y.WPN.RESOURCE_URL:if((0,y.ZF7)(Ye,"ResourceURL"))return(0,y.rcV)(Ye);throw new y.wOt(5201,!1);default:throw new y.wOt(5202,!1)}}bypassSecurityTrustHtml(ye){return(0,y.Kcf)(ye)}bypassSecurityTrustStyle(ye){return(0,y.cWb)(ye)}bypassSecurityTrustScript(ye){return(0,y.UyX)(ye)}bypassSecurityTrustUrl(ye){return(0,y.osQ)(ye)}bypassSecurityTrustResourceUrl(ye){return(0,y.e5t)(ye)}static{this.\u0275fac=function(Ye){return new(Ye||He)(y.KVO(u.qQ))}}static{this.\u0275prov=y.jDH({token:He,factory:He.\u0275fac,providedIn:"root"})}}return He})()},9192:(tn,Re,v)=>{"use strict";v.d(Re,{nX:()=>Vr,wF:()=>se,Kp:()=>Qn,Ix:()=>St,Wk:()=>kn,wQ:()=>fn,iI:()=>Uo,n3:()=>Xo,lh:()=>ki,oH:()=>Cr,Sn:()=>Io});var u=v(4438),y=v(4402),o=v(6648),B=v(7673),W=v(4412),ee=v(4572),re=v(9350),V=v(8793),F=v(9030),U=v(1203),L=v(8810),fe=v(983),de=v(17),be=v(1413),Te=v(8359),Me=v(177),te=v(6354),ve=v(5558),tt=v(6697),bt=v(9172),Ve=v(5964),rt=v(1397),Xe=v(9974),oe=v(4360);function he(E){return(0,Xe.N)((O,D)=>{let R=!1;O.subscribe((0,oe._)(D,Z=>{R=!0,D.next(Z)},()=>{R||D.next(E),D.complete()}))})}function Le(E=et){return(0,Xe.N)((O,D)=>{let R=!1;O.subscribe((0,oe._)(D,Z=>{R=!0,D.next(Z)},()=>R?D.complete():D.error(E())))})}function et(){return new re.G}var It=v(3669);function Et(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,Ve.p)((Z,De)=>E(Z,De,R)):It.D,(0,tt.s)(1),D?he(O):Le(()=>new re.G))}var Tt=v(274),nn=v(8141),Fn=v(9437);function di(E){return E<=0?()=>fe.w:(0,Xe.N)((O,D)=>{let R=[];O.subscribe((0,oe._)(D,Z=>{R.push(Z),E{for(const Z of R)D.next(Z);D.complete()},void 0,()=>{R=null}))})}var Ee=v(3703),J=v(980),Se=v(9898),gt=v(6977),Ne=v(6365),Ze=v(345);const je="primary",Lt=Symbol("RouteTitle");class Mt{constructor(O){this.params=O||{}}has(O){return Object.prototype.hasOwnProperty.call(this.params,O)}get(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D[0]:D}return null}getAll(O){if(this.has(O)){const D=this.params[O];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function we(E){return new Mt(E)}function Oe(E,O,D){const R=D.path.split("/");if(R.length>E.length||"full"===D.pathMatch&&(O.hasChildren()||R.lengthR[De]===Z)}return E===O}function xe(E){return E.length>0?E[E.length-1]:null}function ut(E){return(0,y.A)(E)?E:(0,u.jNT)(E)?(0,o.H)(Promise.resolve(E)):(0,B.of)(E)}const Rt={exact:function Zt(E,O,D){if(!$(E.segments,O.segments)||!dt(E.segments,O.segments,D)||E.numberOfChildren!==O.numberOfChildren)return!1;for(const R in O.children)if(!E.children[R]||!Zt(E.children[R],O.children[R],D))return!1;return!0},subset:Je},wt={exact:function ni(E,O){return We(E,O)},subset:function _e(E,O){return Object.keys(O).length<=Object.keys(E).length&&Object.keys(O).every(D=>xt(E[D],O[D]))},ignored:()=>!0};function mn(E,O,D){return Rt[D.paths](E.root,O.root,D.matrixParams)&&wt[D.queryParams](E.queryParams,O.queryParams)&&!("exact"===D.fragment&&E.fragment!==O.fragment)}function Je(E,O,D){return Ge(E,O,O.segments,D)}function Ge(E,O,D,R){if(E.segments.length>D.length){const Z=E.segments.slice(0,D.length);return!(!$(Z,D)||O.hasChildren()||!dt(Z,D,R))}if(E.segments.length===D.length){if(!$(E.segments,D)||!dt(E.segments,D,R))return!1;for(const Z in O.children)if(!E.children[Z]||!Je(E.children[Z],O.children[Z],R))return!1;return!0}{const Z=D.slice(0,E.segments.length),De=D.slice(E.segments.length);return!!($(E.segments,Z)&&dt(E.segments,Z,R)&&E.children[je])&&Ge(E.children[je],O,De,R)}}function dt(E,O,D){return O.every((R,Z)=>wt[D](E[Z].parameters,R.parameters))}class rn{constructor(O=new Q([],{}),D={},R=null){this.root=O,this.queryParams=D,this.fragment=R}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){return zt.serialize(this)}}class Q{constructor(O,D){this.segments=O,this.children=D,this.parent=null,Object.values(D).forEach(R=>R.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ut(this)}}class T{constructor(O,D){this.path=O,this.parameters=D}get parameterMap(){return this._parameterMap??=we(this.parameters),this._parameterMap}toString(){return Be(this)}}function $(E,O){return E.length===O.length&&E.every((D,R)=>D.path===O[R].path)}let ue=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>new nt,providedIn:"root"})}}return E})();class nt{parse(O){const D=new ot(O);return new rn(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(O){const D=`/${jt(O.root,!0)}`,R=function Ye(E){const O=Object.entries(E).map(([D,R])=>Array.isArray(R)?R.map(Z=>`${Ln(D)}=${Ln(Z)}`).join("&"):`${Ln(D)}=${Ln(R)}`).filter(D=>D);return O.length?`?${O.join("&")}`:""}(O.queryParams);return`${D}${R}${"string"==typeof O.fragment?`#${function wi(E){return encodeURI(E)}(O.fragment)}`:""}`}}const zt=new nt;function Ut(E){return E.segments.map(O=>Be(O)).join("/")}function jt(E,O){if(!E.hasChildren())return Ut(E);if(O){const D=E.children[je]?jt(E.children[je],!1):"",R=[];return Object.entries(E.children).forEach(([Z,De])=>{Z!==je&&R.push(`${Z}:${jt(De,!1)}`)}),R.length>0?`${D}(${R.join("//")})`:D}{const D=function le(E,O){let D=[];return Object.entries(E.children).forEach(([R,Z])=>{R===je&&(D=D.concat(O(Z,R)))}),Object.entries(E.children).forEach(([R,Z])=>{R!==je&&(D=D.concat(O(Z,R)))}),D}(E,(R,Z)=>Z===je?[jt(E.children[je],!1)]:[`${Z}:${jt(R,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[je]?`${Ut(E)}/${D[0]}`:`${Ut(E)}/(${D.join("//")})`}}function On(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(E){return On(E).replace(/%3B/gi,";")}function en(E){return On(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cn(E){return decodeURIComponent(E)}function He(E){return Cn(E.replace(/\+/g,"%20"))}function Be(E){return`${en(E.path)}${function ye(E){return Object.entries(E).map(([O,D])=>`;${en(O)}=${en(D)}`).join("")}(E.parameters)}`}const Gt=/^[^\/()?;#]+/;function Pn(E){const O=E.match(Gt);return O?O[0]:""}const yi=/^[^\/()?;=#]+/,sn=/^[^=?&#]+/,st=/^[^&#]+/;class ot{constructor(O){this.url=O,this.remaining=O}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const O={};if(this.consumeOptional("?"))do{this.parseQueryParam(O)}while(this.consumeOptional("&"));return O}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const O=[];for(this.peekStartsWith("(")||O.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),O.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let R={};return this.peekStartsWith("(")&&(R=this.parseParens(!1)),(O.length>0||Object.keys(D).length>0)&&(R[je]=new Q(O,D)),R}parseSegment(){const O=Pn(this.remaining);if(""===O&&this.peekStartsWith(";"))throw new u.wOt(4009,!1);return this.capture(O),new T(Cn(O),this.parseMatrixParams())}parseMatrixParams(){const O={};for(;this.consumeOptional(";");)this.parseParam(O);return O}parseParam(O){const D=function Ti(E){const O=E.match(yi);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const Z=Pn(this.remaining);Z&&(R=Z,this.capture(R))}O[Cn(D)]=Cn(R)}parseQueryParam(O){const D=function At(E){const O=E.match(sn);return O?O[0]:""}(this.remaining);if(!D)return;this.capture(D);let R="";if(this.consumeOptional("=")){const ct=function Bt(E){const O=E.match(st);return O?O[0]:""}(this.remaining);ct&&(R=ct,this.capture(R))}const Z=He(D),De=He(R);if(O.hasOwnProperty(Z)){let ct=O[Z];Array.isArray(ct)||(ct=[ct],O[Z]=ct),ct.push(De)}else O[Z]=De}parseParens(O){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const R=Pn(this.remaining),Z=this.remaining[R.length];if("/"!==Z&&")"!==Z&&";"!==Z)throw new u.wOt(4010,!1);let De;R.indexOf(":")>-1?(De=R.slice(0,R.indexOf(":")),this.capture(De),this.capture(":")):O&&(De=je);const ct=this.parseChildren();D[De]=1===Object.keys(ct).length?ct[je]:new Q([],ct),this.consumeOptional("//")}return D}peekStartsWith(O){return this.remaining.startsWith(O)}consumeOptional(O){return!!this.peekStartsWith(O)&&(this.remaining=this.remaining.substring(O.length),!0)}capture(O){if(!this.consumeOptional(O))throw new u.wOt(4011,!1)}}function qe(E){return E.segments.length>0?new Q([],{[je]:E}):E}function Ie(E){const O={};for(const[R,Z]of Object.entries(E.children)){const De=Ie(Z);if(R===je&&0===De.segments.length&&De.hasChildren())for(const[ct,ln]of Object.entries(De.children))O[ct]=ln;else(De.segments.length>0||De.hasChildren())&&(O[R]=De)}return function lt(E){if(1===E.numberOfChildren&&E.children[je]){const O=E.children[je];return new Q(E.segments.concat(O.segments),O.children)}return E}(new Q(E.segments,O))}function Xt(E){return E instanceof rn}function li(E){let O;const Z=qe(function D(De){const ct={};for(const Qt of De.children){const ei=D(Qt);ct[Qt.outlet]=ei}const ln=new Q(De.url,ct);return De===E&&(O=ln),ln}(E.root));return O??Z}function wr(E,O,D,R){let Z=E;for(;Z.parent;)Z=Z.parent;if(0===O.length)return Fr(Z,Z,Z,D,R);const De=function Or(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new Kr(!0,0,E);let O=0,D=!1;const R=E.reduce((Z,De,ct)=>{if("object"==typeof De&&null!=De){if(De.outlets){const ln={};return Object.entries(De.outlets).forEach(([Qt,ei])=>{ln[Qt]="string"==typeof ei?ei.split("/"):ei}),[...Z,{outlets:ln}]}if(De.segmentPath)return[...Z,De.segmentPath]}return"string"!=typeof De?[...Z,De]:0===ct?(De.split("/").forEach((ln,Qt)=>{0==Qt&&"."===ln||(0==Qt&&""===ln?D=!0:".."===ln?O++:""!=ln&&Z.push(ln))}),Z):[...Z,De]},[]);return new Kr(D,O,R)}(O);if(De.toRoot())return Fr(Z,Z,new Q([],{}),D,R);const ct=function Ot(E,O,D){if(E.isAbsolute)return new ft(O,!0,0);if(!D)return new ft(O,!1,NaN);if(null===D.parent)return new ft(D,!0,0);const R=Dr(E.commands[0])?0:1;return function un(E,O,D){let R=E,Z=O,De=D;for(;De>Z;){if(De-=Z,R=R.parent,!R)throw new u.wOt(4005,!1);Z=R.segments.length}return new ft(R,!1,Z-De)}(D,D.segments.length-1+R,E.numberOfDoubleDots)}(De,Z,E),ln=ct.processChildren?Kn(ct.segmentGroup,ct.index,De.commands):Tn(ct.segmentGroup,ct.index,De.commands);return Fr(Z,ct.segmentGroup,ln,D,R)}function Dr(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Mi(E){return"object"==typeof E&&null!=E&&E.outlets}function Fr(E,O,D,R,Z){let ct,De={};R&&Object.entries(R).forEach(([Qt,ei])=>{De[Qt]=Array.isArray(ei)?ei.map(Wi=>`${Wi}`):`${ei}`}),ct=E===O?D:bi(E,O,D);const ln=qe(Ie(ct));return new rn(ln,De,Z)}function bi(E,O,D){const R={};return Object.entries(E.children).forEach(([Z,De])=>{R[Z]=De===O?D:bi(De,O,D)}),new Q(E.segments,R)}class Kr{constructor(O,D,R){if(this.isAbsolute=O,this.numberOfDoubleDots=D,this.commands=R,O&&R.length>0&&Dr(R[0]))throw new u.wOt(4003,!1);const Z=R.find(Mi);if(Z&&Z!==xe(R))throw new u.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ft{constructor(O,D,R){this.segmentGroup=O,this.processChildren=D,this.index=R}}function Tn(E,O,D){if(E??=new Q([],{}),0===E.segments.length&&E.hasChildren())return Kn(E,O,D);const R=function zn(E,O,D){let R=0,Z=O;const De={match:!1,pathIndex:0,commandIndex:0};for(;Z=D.length)return De;const ct=E.segments[Z],ln=D[R];if(Mi(ln))break;const Qt=`${ln}`,ei=R0&&void 0===Qt)break;if(Qt&&ei&&"object"==typeof ei&&void 0===ei.outlets){if(!Ce(Qt,ei,ct))return De;R+=2}else{if(!Ce(Qt,{},ct))return De;R++}Z++}return{match:!0,pathIndex:Z,commandIndex:R}}(E,O,D),Z=D.slice(R.commandIndex);if(R.match&&R.pathIndexDe!==je)&&E.children[je]&&1===E.numberOfChildren&&0===E.children[je].segments.length){const De=Kn(E.children[je],O,D);return new Q(E.segments,De.children)}return Object.entries(R).forEach(([De,ct])=>{"string"==typeof ct&&(ct=[ct]),null!==ct&&(Z[De]=Tn(E.children[De],O,ct))}),Object.entries(E.children).forEach(([De,ct])=>{void 0===R[De]&&(Z[De]=ct)}),new Q(E.segments,Z)}}function ii(E,O,D){const R=E.segments.slice(0,O);let Z=0;for(;Z{"string"==typeof R&&(R=[R]),null!==R&&(O[D]=ii(new Q([],{}),0,R))}),O}function Bn(E){const O={};return Object.entries(E).forEach(([D,R])=>O[D]=`${R}`),O}function Ce(E,O,D){return E==D.path&&We(O,D.parameters)}const Qe="imperative";var Ke=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(Ke||{});class K{constructor(O,D){this.id=O,this.url=D}}class Ae extends K{constructor(O,D,R="imperative",Z=null){super(O,D),this.type=Ke.NavigationStart,this.navigationTrigger=R,this.restoredState=Z}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class se extends K{constructor(O,D,R){super(O,D),this.urlAfterRedirects=R,this.type=Ke.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var $e=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}($e||{}),vt=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(vt||{});class at extends K{constructor(O,D,R,Z){super(O,D),this.reason=R,this.code=Z,this.type=Ke.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class $t extends K{constructor(O,D,R,Z){super(O,D),this.reason=R,this.code=Z,this.type=Ke.NavigationSkipped}}class hn extends K{constructor(O,D,R,Z){super(O,D),this.error=R,this.target=Z,this.type=Ke.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xn extends K{constructor(O,D,R,Z,De){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.shouldActivate=De,this.type=Ke.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends K{constructor(O,D,R,Z){super(O,D),this.urlAfterRedirects=R,this.state=Z,this.type=Ke.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ui{constructor(O){this.route=O,this.type=Ke.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Oi{constructor(O){this.route=O,this.type=Ke.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ti{constructor(O){this.snapshot=O,this.type=Ke.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wn{constructor(O){this.snapshot=O,this.type=Ke.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{constructor(O){this.snapshot=O,this.type=Ke.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ho{constructor(O){this.snapshot=O,this.type=Ke.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lr{constructor(O,D,R){this.routerEvent=O,this.position=D,this.anchor=R,this.type=Ke.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ci{}class Br{constructor(O,D){this.url=O,this.navigationBehaviorOptions=D}}function xr(E){return E.outlet||je}function hr(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class ts{get injector(){return hr(this.route?.snapshot)??this.rootInjector}set injector(O){}constructor(O){this.rootInjector=O,this.outlet=null,this.route=null,this.children=new Jr(this.rootInjector),this.attachRef=null}}let Jr=(()=>{class E{constructor(D){this.rootInjector=D,this.contexts=new Map}onChildOutletCreated(D,R){const Z=this.getOrCreateContext(D);Z.outlet=R,this.contexts.set(D,Z)}onChildOutletDestroyed(D){const R=this.getContext(D);R&&(R.outlet=null,R.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let R=this.getContext(D);return R||(R=new ts(this.rootInjector),this.contexts.set(D,R)),R}getContext(D){return this.contexts.get(D)||null}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(u.uvJ))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();class Ii{constructor(O){this._root=O}get root(){return this._root.value}parent(O){const D=this.pathFromRoot(O);return D.length>1?D[D.length-2]:null}children(O){const D=ns(O,this._root);return D?D.children.map(R=>R.value):[]}firstChild(O){const D=ns(O,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(O){const D=Sr(O,this._root);return D.length<2?[]:D[D.length-2].children.map(Z=>Z.value).filter(Z=>Z!==O)}pathFromRoot(O){return Sr(O,this._root).map(D=>D.value)}}function ns(E,O){if(E===O.value)return O;for(const D of O.children){const R=ns(E,D);if(R)return R}return null}function Sr(E,O){if(E===O.value)return[O];for(const D of O.children){const R=Sr(E,D);if(R.length)return R.unshift(O),R}return[]}class Ar{constructor(O,D){this.value=O,this.children=D}toString(){return`TreeNode(${this.value})`}}function Tr(E){const O={};return E&&E.children.forEach(D=>O[D.value.outlet]=D),O}class Vs extends Ii{constructor(O,D){super(O),this.snapshot=D,ws(this,O)}toString(){return this.snapshot.toString()}}function xi(E){const O=function js(E){const De=new $o([],{},{},"",{},je,E,null,{});return new va("",new Ar(De,[]))}(E),D=new W.t([new T("",{})]),R=new W.t({}),Z=new W.t({}),De=new W.t({}),ct=new W.t(""),ln=new Vr(D,R,De,ct,Z,je,E,O.root);return ln.snapshot=O.root,new Vs(new Ar(ln,[]),O)}class Vr{constructor(O,D,R,Z,De,ct,ln,Qt){this.urlSubject=O,this.paramsSubject=D,this.queryParamsSubject=R,this.fragmentSubject=Z,this.dataSubject=De,this.outlet=ct,this.component=ln,this._futureSnapshot=Qt,this.title=this.dataSubject?.pipe((0,te.T)(ei=>ei[Lt]))??(0,B.of)(void 0),this.url=O,this.params=D,this.queryParams=R,this.fragment=Z,this.data=De}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,te.T)(O=>we(O))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,te.T)(O=>we(O))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ho(E,O,D="emptyOnly"){let R;const{routeConfig:Z}=E;return R=null===O||"always"!==D&&""!==Z?.path&&(O.component||O.routeConfig?.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...E._resolvedData??{}}}:{params:{...O.params,...E.params},data:{...O.data,...E.data},resolve:{...E.data,...O.data,...Z?.data,...E._resolvedData}},Z&&gr(Z)&&(R.resolve[Lt]=Z.title),R}class $o{get title(){return this.data?.[Lt]}constructor(O,D,R,Z,De,ct,ln,Qt,ei){this.url=O,this.params=D,this.queryParams=R,this.fragment=Z,this.data=De,this.outlet=ct,this.component=ln,this.routeConfig=Qt,this._resolve=ei}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=we(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=we(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(R=>R.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class va extends Ii{constructor(O,D){super(D),this.url=O,ws(this,D)}toString(){return Hs(this._root)}}function ws(E,O){O.value._routerState=E,O.children.forEach(D=>ws(E,D))}function Hs(E){const O=E.children.length>0?` { ${E.children.map(Hs).join(", ")} } `:"";return`${E.value}${O}`}function Xr(E){if(E.snapshot){const O=E.snapshot,D=E._futureSnapshot;E.snapshot=D,We(O.queryParams,D.queryParams)||E.queryParamsSubject.next(D.queryParams),O.fragment!==D.fragment&&E.fragmentSubject.next(D.fragment),We(O.params,D.params)||E.paramsSubject.next(D.params),function me(E,O){if(E.length!==O.length)return!1;for(let D=0;DWe(D.parameters,O[R].parameters))}(E.url,O.url);return D&&!(!E.parent!=!O.parent)&&(!E.parent||Li(E.parent,O.parent))}function gr(E){return"string"==typeof E.title||null===E.title}let Xo=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=je,this.activateEvents=new u.bkB,this.deactivateEvents=new u.bkB,this.attachEvents=new u.bkB,this.detachEvents=new u.bkB,this.parentContexts=(0,u.WQX)(Jr),this.location=(0,u.WQX)(u.c1b),this.changeDetector=(0,u.WQX)(u.gRc),this.inputBinder=(0,u.WQX)(oa,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:R,previousValue:Z}=D.name;if(R)return;this.isTrackedInParentContexts(Z)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Z)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new u.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new u.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new u.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,R){this.activated=D,this._activatedRoute=R,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,R){if(this.isActivated)throw new u.wOt(4013,!1);this._activatedRoute=D;const Z=this.location,ct=D.snapshot.component,ln=this.parentContexts.getOrCreateContext(this.name).children,Qt=new ro(D,ln,Z.injector);this.activated=Z.createComponent(ct,{index:Z.length,injector:Qt,environmentInjector:R}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275dir=u.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[u.OA$]})}}return E})();class ro{__ngOutletInjector(O){return new ro(this.route,this.childContexts,O)}constructor(O,D,R){this.route=O,this.childContexts=D,this.parent=R}get(O,D){return O===Vr?this.route:O===Jr?this.childContexts:this.parent.get(O,D)}}const oa=new u.nKC("");let Er=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:R}=D,Z=(0,ee.z)([R.queryParams,R.params,R.data]).pipe((0,ve.n)(([De,ct,ln],Qt)=>(ln={...De,...ct,...ln},0===Qt?(0,B.of)(ln):Promise.resolve(ln)))).subscribe(De=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==R||null===R.component)return void this.unsubscribeFromRouteData(D);const ct=(0,u.HJs)(R.component);if(ct)for(const{templateName:ln}of ct.inputs)D.activatedComponentRef.setInput(ln,De[ln]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,Z)}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}}return E})();function jr(E,O,D){if(D&&E.shouldReuseRoute(O.value,D.value.snapshot)){const R=D.value;R._futureSnapshot=O.value;const Z=function xo(E,O,D){return O.children.map(R=>{for(const Z of D.children)if(E.shouldReuseRoute(R.value,Z.value.snapshot))return jr(E,R,Z);return jr(E,R)})}(E,O,D);return new Ar(R,Z)}{if(E.shouldAttach(O.value)){const De=E.retrieve(O.value);if(null!==De){const ct=De.route;return ct.value._futureSnapshot=O.value,ct.children=O.children.map(ln=>jr(E,ln)),ct}}const R=function Ir(E){return new Vr(new W.t(E.url),new W.t(E.params),new W.t(E.queryParams),new W.t(E.fragment),new W.t(E.data),E.outlet,E.component,E)}(O.value),Z=O.children.map(De=>jr(E,De));return new Ar(R,Z)}}class Yo{constructor(O,D){this.redirectTo=O,this.navigationBehaviorOptions=D}}const Eo="ngNavigationCancelingError";function Es(E,O){const{redirectTo:D,navigationBehaviorOptions:R}=Xt(O)?{redirectTo:O,navigationBehaviorOptions:void 0}:O,Z=sa(!1,$e.Redirect);return Z.url=D,Z.navigationBehaviorOptions=R,Z}function sa(E,O){const D=new Error(`NavigationCancelingError: ${E||""}`);return D[Eo]=!0,D.cancellationCode=O,D}function aa(E){return!!E&&E[Eo]}class Oa{constructor(O,D,R,Z,De){this.routeReuseStrategy=O,this.futureState=D,this.currState=R,this.forwardEvent=Z,this.inputBindingEnabled=De}activate(O){const D=this.futureState._root,R=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,R,O),Xr(this.futureState.root),this.activateChildRoutes(D,R,O)}deactivateChildRoutes(O,D,R){const Z=Tr(D);O.children.forEach(De=>{const ct=De.value.outlet;this.deactivateRoutes(De,Z[ct],R),delete Z[ct]}),Object.values(Z).forEach(De=>{this.deactivateRouteAndItsChildren(De,R)})}deactivateRoutes(O,D,R){const Z=O.value,De=D?D.value:null;if(Z===De)if(Z.component){const ct=R.getContext(Z.outlet);ct&&this.deactivateChildRoutes(O,D,ct.children)}else this.deactivateChildRoutes(O,D,R);else De&&this.deactivateRouteAndItsChildren(D,R)}deactivateRouteAndItsChildren(O,D){O.value.component&&this.routeReuseStrategy.shouldDetach(O.value.snapshot)?this.detachAndStoreRouteSubtree(O,D):this.deactivateRouteAndOutlet(O,D)}detachAndStoreRouteSubtree(O,D){const R=D.getContext(O.value.outlet),Z=R&&O.value.component?R.children:D,De=Tr(O);for(const ct of Object.values(De))this.deactivateRouteAndItsChildren(ct,Z);if(R&&R.outlet){const ct=R.outlet.detach(),ln=R.children.onOutletDeactivated();this.routeReuseStrategy.store(O.value.snapshot,{componentRef:ct,route:O,contexts:ln})}}deactivateRouteAndOutlet(O,D){const R=D.getContext(O.value.outlet),Z=R&&O.value.component?R.children:D,De=Tr(O);for(const ct of Object.values(De))this.deactivateRouteAndItsChildren(ct,Z);R&&(R.outlet&&(R.outlet.deactivate(),R.children.onOutletDeactivated()),R.attachRef=null,R.route=null)}activateChildRoutes(O,D,R){const Z=Tr(D);O.children.forEach(De=>{this.activateRoutes(De,Z[De.value.outlet],R),this.forwardEvent(new ho(De.value.snapshot))}),O.children.length&&this.forwardEvent(new Wn(O.value.snapshot))}activateRoutes(O,D,R){const Z=O.value,De=D?D.value:null;if(Xr(Z),Z===De)if(Z.component){const ct=R.getOrCreateContext(Z.outlet);this.activateChildRoutes(O,D,ct.children)}else this.activateChildRoutes(O,D,R);else if(Z.component){const ct=R.getOrCreateContext(Z.outlet);if(this.routeReuseStrategy.shouldAttach(Z.snapshot)){const ln=this.routeReuseStrategy.retrieve(Z.snapshot);this.routeReuseStrategy.store(Z.snapshot,null),ct.children.onOutletReAttached(ln.contexts),ct.attachRef=ln.componentRef,ct.route=ln.route.value,ct.outlet&&ct.outlet.attach(ln.componentRef,ln.route.value),Xr(ln.route.value),this.activateChildRoutes(O,null,ct.children)}else ct.attachRef=null,ct.route=Z,ct.outlet&&ct.outlet.activateWith(Z,ct.injector),this.activateChildRoutes(O,null,ct.children)}else this.activateChildRoutes(O,null,R)}}class Qo{constructor(O){this.path=O,this.route=this.path[this.path.length-1]}}class sr{constructor(O,D){this.component=O,this.route=D}}function is(E,O,D){const R=E._root;return qr(R,O?O._root:null,D,[R.value])}function rs(E,O){const D=Symbol(),R=O.get(E,D);return R===D?"function"!=typeof E||(0,u.LfX)(E)?O.get(E):E:R}function qr(E,O,D,R,Z={canDeactivateChecks:[],canActivateChecks:[]}){const De=Tr(O);return E.children.forEach(ct=>{(function $s(E,O,D,R,Z={canDeactivateChecks:[],canActivateChecks:[]}){const De=E.value,ct=O?O.value:null,ln=D?D.getContext(E.value.outlet):null;if(ct&&De.routeConfig===ct.routeConfig){const Qt=function Oo(E,O,D){if("function"==typeof D)return D(E,O);switch(D){case"pathParamsChange":return!$(E.url,O.url);case"pathParamsOrQueryParamsChange":return!$(E.url,O.url)||!We(E.queryParams,O.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Li(E,O)||!We(E.queryParams,O.queryParams);default:return!Li(E,O)}}(ct,De,De.routeConfig.runGuardsAndResolvers);Qt?Z.canActivateChecks.push(new Qo(R)):(De.data=ct.data,De._resolvedData=ct._resolvedData),qr(E,O,De.component?ln?ln.children:null:D,R,Z),Qt&&ln&&ln.outlet&&ln.outlet.isActivated&&Z.canDeactivateChecks.push(new sr(ln.outlet.component,ct))}else ct&&fo(O,ln,Z),Z.canActivateChecks.push(new Qo(R)),qr(E,null,De.component?ln?ln.children:null:D,R,Z)})(ct,De[ct.value.outlet],D,R.concat([ct.value]),Z),delete De[ct.value.outlet]}),Object.entries(De).forEach(([ct,ln])=>fo(ln,D.getContext(ct),Z)),Z}function fo(E,O,D){const R=Tr(E),Z=E.value;Object.entries(R).forEach(([De,ct])=>{fo(ct,Z.component?O?O.children.getContext(De):null:O,D)}),D.canDeactivateChecks.push(new sr(Z.component&&O&&O.outlet&&O.outlet.isActivated?O.outlet.component:null,Z))}function Cs(E){return"function"==typeof E}function So(E){return E instanceof re.G||"EmptyError"===E?.name}const _r=Symbol("INITIAL_VALUE");function Ao(){return(0,ve.n)(E=>(0,ee.z)(E.map(O=>O.pipe((0,tt.s)(1),(0,bt.Z)(_r)))).pipe((0,te.T)(O=>{for(const D of O)if(!0!==D){if(D===_r)return _r;if(!1===D||z(D))return D}return!0}),(0,Ve.p)(O=>O!==_r),(0,tt.s)(1)))}function z(E){return Xt(E)||E instanceof Yo}function ba(E){return(0,U.F)((0,nn.M)(O=>{if("boolean"!=typeof O)throw Es(0,O)}),(0,te.T)(O=>!0===O))}class xs{constructor(O){this.segmentGroup=O||null}}class nr extends Error{constructor(O){super(),this.urlTree=O}}function Ea(E){return(0,L.$)(new xs(E))}class Xl{constructor(O,D){this.urlSerializer=O,this.urlTree=D}lineralizeSegments(O,D){let R=[],Z=D.root;for(;;){if(R=R.concat(Z.segments),0===Z.numberOfChildren)return(0,B.of)(R);if(Z.numberOfChildren>1||!Z.children[je])return(0,L.$)(new u.wOt(4e3,!1));Z=Z.children[je]}}applyRedirectCommands(O,D,R,Z,De){if("string"!=typeof D){const ln=D,{queryParams:Qt,fragment:ei,routeConfig:Wi,url:er,outlet:Zi,params:us,data:ds,title:xa}=Z,Qs=(0,u.N4e)(De,()=>ln({params:us,data:ds,queryParams:Qt,fragment:ei,routeConfig:Wi,url:er,outlet:Zi,title:xa}));if(Qs instanceof rn)throw new nr(Qs);D=Qs}const ct=this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),O,R);if("/"===D[0])throw new nr(ct);return ct}applyRedirectCreateUrlTree(O,D,R,Z){const De=this.createSegmentGroup(O,D.root,R,Z);return new rn(De,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(O,D){const R={};return Object.entries(O).forEach(([Z,De])=>{if("string"==typeof De&&":"===De[0]){const ln=De.substring(1);R[Z]=D[ln]}else R[Z]=De}),R}createSegmentGroup(O,D,R,Z){const De=this.createSegments(O,D.segments,R,Z);let ct={};return Object.entries(D.children).forEach(([ln,Qt])=>{ct[ln]=this.createSegmentGroup(O,Qt,R,Z)}),new Q(De,ct)}createSegments(O,D,R,Z){return D.map(De=>":"===De.path[0]?this.findPosParam(O,De,Z):this.findOrReturn(De,R))}findPosParam(O,D,R){const Z=R[D.path.substring(1)];if(!Z)throw new u.wOt(4001,!1);return Z}findOrReturn(O,D){let R=0;for(const Z of D){if(Z.path===O.path)return D.splice(R),Z;R++}return O}}const zi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function po(E,O,D,R,Z){const De=Ni(E,O,D);return De.matched?(R=function Gi(E,O){return E.providers&&!E._injector&&(E._injector=(0,u.Ol2)(E.providers,O,`Route: ${E.path}`)),E._injector??O}(O,R),function wa(E,O,D,R){const Z=O.canMatch;if(!Z||0===Z.length)return(0,B.of)(!0);const De=Z.map(ct=>{const ln=rs(ct,E);return ut(function os(E){return E&&Cs(E.canMatch)}(ln)?ln.canMatch(O,D):(0,u.N4e)(E,()=>ln(O,D)))});return(0,B.of)(De).pipe(Ao(),ba())}(R,O,D).pipe((0,te.T)(ct=>!0===ct?De:{...zi}))):(0,B.of)(De)}function Ni(E,O,D){if("**"===O.path)return function Ro(E){return{matched:!0,parameters:E.length>0?xe(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(D);if(""===O.path)return"full"===O.pathMatch&&(E.hasChildren()||D.length>0)?{...zi}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const Z=(O.matcher||Oe)(D,E,O);if(!Z)return{...zi};const De={};Object.entries(Z.posParams??{}).forEach(([ln,Qt])=>{De[ln]=Qt.path});const ct=Z.consumed.length>0?{...De,...Z.consumed[Z.consumed.length-1].parameters}:De;return{matched:!0,consumedSegments:Z.consumed,remainingSegments:D.slice(Z.consumed.length),parameters:ct,positionalParamSegments:Z.posParams??{}}}function _o(E,O,D,R){return D.length>0&&function Lo(E,O,D){return D.some(R=>ca(E,O,R)&&xr(R)!==je)}(E,D,R)?{segmentGroup:new Q(O,la(R,new Q(D,E.children))),slicedSegments:[]}:0===D.length&&function dl(E,O,D){return D.some(R=>ca(E,O,R))}(E,D,R)?{segmentGroup:new Q(E.segments,Na(E,D,R,E.children)),slicedSegments:D}:{segmentGroup:new Q(E.segments,E.children),slicedSegments:D}}function Na(E,O,D,R){const Z={};for(const De of D)if(ca(E,O,De)&&!R[xr(De)]){const ct=new Q([],{});Z[xr(De)]=ct}return{...R,...Z}}function la(E,O){const D={};D[je]=O;for(const R of E)if(""===R.path&&xr(R)!==je){const Z=new Q([],{});D[xr(R)]=Z}return D}function ca(E,O,D){return(!(E.hasChildren()||O.length>0)||"full"!==D.pathMatch)&&""===D.path}class hl{}class fl{constructor(O,D,R,Z,De,ct,ln){this.injector=O,this.configLoader=D,this.rootComponentType=R,this.config=Z,this.urlTree=De,this.paramsInheritanceStrategy=ct,this.urlSerializer=ln,this.applyRedirects=new Xl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(O){return new u.wOt(4002,`'${O.segmentGroup}'`)}recognize(){const O=_o(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(O).pipe((0,te.T)(({children:D,rootSnapshot:R})=>{const Z=new Ar(R,D),De=new va("",Z),ct=function an(E,O,D=null,R=null){return wr(li(E),O,D,R)}(R,[],this.urlTree.queryParams,this.urlTree.fragment);return ct.queryParams=this.urlTree.queryParams,De.url=this.urlSerializer.serialize(ct),{state:De,tree:ct}}))}match(O){const D=new $o([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),je,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,O,je,D).pipe((0,te.T)(R=>({children:R,rootSnapshot:D})),(0,Fn.W)(R=>{if(R instanceof nr)return this.urlTree=R.urlTree,this.match(R.urlTree.root);throw R instanceof xs?this.noMatchError(R):R}))}processSegmentGroup(O,D,R,Z,De){return 0===R.segments.length&&R.hasChildren()?this.processChildren(O,D,R,De):this.processSegment(O,D,R,R.segments,Z,!0,De).pipe((0,te.T)(ct=>ct instanceof Ar?[ct]:[]))}processChildren(O,D,R,Z){const De=[];for(const ct of Object.keys(R.children))"primary"===ct?De.unshift(ct):De.push(ct);return(0,o.H)(De).pipe((0,Tt.H)(ct=>{const ln=R.children[ct],Qt=function Us(E,O){const D=E.filter(R=>xr(R)===O);return D.push(...E.filter(R=>xr(R)!==O)),D}(D,ct);return this.processSegmentGroup(O,Qt,ln,ct,Z)}),function yn(E,O){return(0,Xe.N)(function $n(E,O,D,R,Z){return(De,ct)=>{let ln=D,Qt=O,ei=0;De.subscribe((0,oe._)(ct,Wi=>{const er=ei++;Qt=ln?E(Qt,Wi,er):(ln=!0,Wi),R&&ct.next(Qt)},Z&&(()=>{ln&&ct.next(Qt),ct.complete()})))}}(E,O,arguments.length>=2,!0))}((ct,ln)=>(ct.push(...ln),ct)),he(null),function mt(E,O){const D=arguments.length>=2;return R=>R.pipe(E?(0,Ve.p)((Z,De)=>E(Z,De,R)):It.D,di(1),D?he(O):Le(()=>new re.G))}(),(0,rt.Z)(ct=>{if(null===ct)return Ea(R);const ln=Tl(ct);return function pl(E){E.sort((O,D)=>O.value.outlet===je?-1:D.value.outlet===je?1:O.value.outlet.localeCompare(D.value.outlet))}(ln),(0,B.of)(ln)}))}processSegment(O,D,R,Z,De,ct,ln){return(0,o.H)(D).pipe((0,Tt.H)(Qt=>this.processSegmentAgainstRoute(Qt._injector??O,D,Qt,R,Z,De,ct,ln).pipe((0,Fn.W)(ei=>{if(ei instanceof xs)return(0,B.of)(null);throw ei}))),Et(Qt=>!!Qt),(0,Fn.W)(Qt=>{if(So(Qt))return function lo(E,O,D){return 0===O.length&&!E.children[D]}(R,Z,De)?(0,B.of)(new hl):Ea(R);throw Qt}))}processSegmentAgainstRoute(O,D,R,Z,De,ct,ln,Qt){return xr(R)===ct||ct!==je&&ca(Z,De,R)?void 0===R.redirectTo?this.matchSegmentAgainstRoute(O,Z,R,De,ct,Qt):this.allowRedirects&&ln?this.expandSegmentAgainstRouteUsingRedirect(O,Z,D,R,De,ct,Qt):Ea(Z):Ea(Z)}expandSegmentAgainstRouteUsingRedirect(O,D,R,Z,De,ct,ln){const{matched:Qt,parameters:ei,consumedSegments:Wi,positionalParamSegments:er,remainingSegments:Zi}=Ni(D,Z,De);if(!Qt)return Ea(D);"string"==typeof Z.redirectTo&&"/"===Z.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const us=new $o(De,ei,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ca(Z),xr(Z),Z.component??Z._loadedComponent??null,Z,Da(Z)),ds=Ho(us,ln,this.paramsInheritanceStrategy);us.params=Object.freeze(ds.params),us.data=Object.freeze(ds.data);const xa=this.applyRedirects.applyRedirectCommands(Wi,Z.redirectTo,er,us,O);return this.applyRedirects.lineralizeSegments(Z,xa).pipe((0,rt.Z)(Qs=>this.processSegment(O,R,D,Qs.concat(Zi),ct,!1,ln)))}matchSegmentAgainstRoute(O,D,R,Z,De,ct){const ln=po(D,R,Z,O);return"**"===R.path&&(D.children={}),ln.pipe((0,ve.n)(Qt=>Qt.matched?this.getChildConfig(O=R._injector??O,R,Z).pipe((0,ve.n)(({routes:ei})=>{const Wi=R._loadedInjector??O,{parameters:er,consumedSegments:Zi,remainingSegments:us}=Qt,ds=new $o(Zi,er,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ca(R),xr(R),R.component??R._loadedComponent??null,R,Da(R)),xa=Ho(ds,ct,this.paramsInheritanceStrategy);ds.params=Object.freeze(xa.params),ds.data=Object.freeze(xa.data);const{segmentGroup:Qs,slicedSegments:Ml}=_o(D,Zi,us,ei);if(0===Ml.length&&Qs.hasChildren())return this.processChildren(Wi,ei,Qs,ds).pipe((0,te.T)(Rs=>new Ar(ds,Rs)));if(0===ei.length&&0===Ml.length)return(0,B.of)(new Ar(ds,[]));const Fa=xr(R)===De;return this.processSegment(Wi,ei,Qs,Ml,Fa?je:De,!0,ds).pipe((0,te.T)(Rs=>new Ar(ds,Rs instanceof Ar?[Rs]:[])))})):Ea(D)))}getChildConfig(O,D,R){return D.children?(0,B.of)({routes:D.children,injector:O}):D.loadChildren?void 0!==D._loadedRoutes?(0,B.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function Ds(E,O,D,R){const Z=O.canLoad;if(void 0===Z||0===Z.length)return(0,B.of)(!0);const De=Z.map(ct=>{const ln=rs(ct,E);return ut(function _a(E){return E&&Cs(E.canLoad)}(ln)?ln.canLoad(O,D):(0,u.N4e)(E,()=>ln(O,D)))});return(0,B.of)(De).pipe(Ao(),ba())}(O,D,R).pipe((0,rt.Z)(Z=>Z?this.configLoader.loadChildren(O,D).pipe((0,nn.M)(De=>{D._loadedRoutes=De.routes,D._loadedInjector=De.injector})):function nu(){return(0,L.$)(sa(!1,$e.GuardRejected))}())):(0,B.of)({routes:[],injector:O})}}function ml(E){const O=E.value.routeConfig;return O&&""===O.path}function Tl(E){const O=[],D=new Set;for(const R of E){if(!ml(R)){O.push(R);continue}const Z=O.find(De=>R.value.routeConfig===De.value.routeConfig);void 0!==Z?(Z.children.push(...R.children),D.add(Z)):O.push(R)}for(const R of D){const Z=Tl(R.children);O.push(new Ar(R.value,Z))}return O.filter(R=>!D.has(R))}function Ca(E){return E.data||{}}function Da(E){return E.resolve||{}}function Yr(E){const O=E.children.map(D=>Yr(D)).flat();return[E,...O]}function ua(E){return(0,ve.n)(O=>{const D=E(O);return D?(0,o.H)(D).pipe((0,te.T)(()=>O)):(0,B.of)(O)})}let Mr=(()=>{class E{buildTitle(D){let R,Z=D.root;for(;void 0!==Z;)R=this.getResolvedTitleForRoute(Z)??R,Z=Z.children.find(De=>De.outlet===je);return R}getResolvedTitleForRoute(D){return D.data[Lt]}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Pa),providedIn:"root"})}}return E})(),Pa=(()=>{class E extends Mr{constructor(D){super(),this.title=D}updateTitle(D){const R=this.buildTitle(D);void 0!==R&&this.title.setTitle(R)}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(Ze.hE))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const da=new u.nKC("",{providedIn:"root",factory:()=>({})});let ls=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275cmp=u.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[u.aNF],decls:1,vars:0,template:function(R,Z){1&R&&u.nrm(0,"router-outlet")},dependencies:[Xo],encapsulation:2})}}return E})();function fr(E){const O=E.children&&E.children.map(fr),D=O?{...E,children:O}:{...E};return!D.component&&!D.loadComponent&&(O||D.loadChildren)&&D.outlet&&D.outlet!==je&&(D.component=ls),D}const As=new u.nKC("");let Ws=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,u.WQX)(u.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,B.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const R=ut(D.loadComponent()).pipe((0,te.T)(Ya),(0,nn.M)(De=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=De}),(0,J.j)(()=>{this.componentLoaders.delete(D)})),Z=new de.G(R,()=>new be.B).pipe((0,Se.B)());return this.componentLoaders.set(D,Z),Z}loadChildren(D,R){if(this.childrenLoaders.get(R))return this.childrenLoaders.get(R);if(R._loadedRoutes)return(0,B.of)({routes:R._loadedRoutes,injector:R._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(R);const De=function Hr(E,O,D,R){return ut(E.loadChildren()).pipe((0,te.T)(Ya),(0,rt.Z)(Z=>Z instanceof u.Co$||Array.isArray(Z)?(0,B.of)(Z):(0,o.H)(O.compileModuleAsync(Z))),(0,te.T)(Z=>{R&&R(E);let De,ct,ln=!1;return Array.isArray(Z)?(ct=Z,!0):(De=Z.create(D).injector,ct=De.get(As,[],{optional:!0,self:!0}).flat()),{routes:ct.map(fr),injector:De}}))}(R,this.compiler,D,this.onLoadEndListener).pipe((0,J.j)(()=>{this.childrenLoaders.delete(R)})),ct=new de.G(De,()=>new be.B).pipe((0,Se.B)());return this.childrenLoaders.set(R,ct),ct}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();function Ya(E){return function Gs(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ha=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(Bo),providedIn:"root"})}}return E})(),Bo=(()=>{class E{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,R){return D}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const Ks=new u.nKC(""),Qi=new u.nKC("");function Qa(E,O,D){const R=E.get(Qi),Z=E.get(Me.qQ);return E.get(u.SKi).runOutsideAngular(()=>{if(!Z.startViewTransition||R.skipNextTransition)return R.skipNextTransition=!1,new Promise(ei=>setTimeout(ei));let De;const ct=new Promise(ei=>{De=ei}),ln=Z.startViewTransition(()=>(De(),function gl(E){return new Promise(O=>{(0,u.mal)({read:()=>setTimeout(O)},{injector:E})})}(E))),{onViewTransitionCreated:Qt}=R;return Qt&&(0,u.N4e)(E,()=>Qt({transition:ln,from:O,to:D})),ct})}const S=new u.nKC("");let ne=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new be.B,this.transitionAbortSubject=new be.B,this.configLoader=(0,u.WQX)(Ws),this.environmentInjector=(0,u.WQX)(u.uvJ),this.urlSerializer=(0,u.WQX)(ue),this.rootContexts=(0,u.WQX)(Jr),this.location=(0,u.WQX)(Me.aZ),this.inputBindingEnabled=null!==(0,u.WQX)(oa,{optional:!0}),this.titleStrategy=(0,u.WQX)(Mr),this.options=(0,u.WQX)(da,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,u.WQX)(ha),this.createViewTransition=(0,u.WQX)(Ks,{optional:!0}),this.navigationErrorHandler=(0,u.WQX)(S,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,B.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Z=>this.events.next(new Oi(Z)),this.configLoader.onLoadStartListener=Z=>this.events.next(new ui(Z))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const R=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:R})}setupNavigations(D,R,Z){return this.transitions=new W.t({id:0,currentUrlTree:R,currentRawUrl:R,extractedUrl:this.urlHandlingStrategy.extract(R),urlAfterRedirects:this.urlHandlingStrategy.extract(R),rawUrl:R,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Qe,restoredState:null,currentSnapshot:Z.snapshot,targetSnapshot:null,currentRouterState:Z,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ve.p)(De=>0!==De.id),(0,te.T)(De=>({...De,extractedUrl:this.urlHandlingStrategy.extract(De.rawUrl)})),(0,ve.n)(De=>{let ct=!1,ln=!1;return(0,B.of)(De).pipe((0,ve.n)(Qt=>{if(this.navigationId>De.id)return this.cancelNavigationTransition(De,"",$e.SupersededByNewNavigation),fe.w;this.currentTransition=De,this.currentNavigation={id:Qt.id,initialUrl:Qt.rawUrl,extractedUrl:Qt.extractedUrl,targetBrowserUrl:"string"==typeof Qt.extras.browserUrl?this.urlSerializer.parse(Qt.extras.browserUrl):Qt.extras.browserUrl,trigger:Qt.source,extras:Qt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const ei=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!ei&&"reload"!==(Qt.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const er="";return this.events.next(new $t(Qt.id,this.urlSerializer.serialize(Qt.rawUrl),er,vt.IgnoredSameUrlNavigation)),Qt.resolve(!1),fe.w}if(this.urlHandlingStrategy.shouldProcessUrl(Qt.rawUrl))return(0,B.of)(Qt).pipe((0,ve.n)(er=>{const Zi=this.transitions?.getValue();return this.events.next(new Ae(er.id,this.urlSerializer.serialize(er.extractedUrl),er.source,er.restoredState)),Zi!==this.transitions?.getValue()?fe.w:Promise.resolve(er)}),function as(E,O,D,R,Z,De){return(0,rt.Z)(ct=>function Al(E,O,D,R,Z,De,ct="emptyOnly"){return new fl(E,O,D,R,Z,ct,De).recognize()}(E,O,D,R,ct.extractedUrl,Z,De).pipe((0,te.T)(({state:ln,tree:Qt})=>({...ct,targetSnapshot:ln,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,nn.M)(er=>{De.targetSnapshot=er.targetSnapshot,De.urlAfterRedirects=er.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:er.urlAfterRedirects};const Zi=new gn(er.id,this.urlSerializer.serialize(er.extractedUrl),this.urlSerializer.serialize(er.urlAfterRedirects),er.targetSnapshot);this.events.next(Zi)}));if(ei&&this.urlHandlingStrategy.shouldProcessUrl(Qt.currentRawUrl)){const{id:er,extractedUrl:Zi,source:us,restoredState:ds,extras:xa}=Qt,Qs=new Ae(er,this.urlSerializer.serialize(Zi),us,ds);this.events.next(Qs);const Ml=xi(this.rootComponentType).snapshot;return this.currentTransition=De={...Qt,targetSnapshot:Ml,urlAfterRedirects:Zi,extras:{...xa,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,B.of)(De)}{const er="";return this.events.next(new $t(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),er,vt.IgnoredByUrlHandlingStrategy)),Qt.resolve(!1),fe.w}}),(0,nn.M)(Qt=>{const ei=new En(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot);this.events.next(ei)}),(0,te.T)(Qt=>(this.currentTransition=De={...Qt,guards:is(Qt.targetSnapshot,Qt.currentSnapshot,this.rootContexts)},De)),function Y(E,O){return(0,rt.Z)(D=>{const{targetSnapshot:R,currentSnapshot:Z,guards:{canActivateChecks:De,canDeactivateChecks:ct}}=D;return 0===ct.length&&0===De.length?(0,B.of)({...D,guardsResult:!0}):function k(E,O,D,R){return(0,o.H)(E).pipe((0,rt.Z)(Z=>function ya(E,O,D,R,Z){const De=O&&O.routeConfig?O.routeConfig.canDeactivate:null;if(!De||0===De.length)return(0,B.of)(!0);const ct=De.map(ln=>{const Qt=hr(O)??Z,ei=rs(ln,Qt);return ut(function ka(E){return E&&Cs(E.canDeactivate)}(ei)?ei.canDeactivate(E,O,D,R):(0,u.N4e)(Qt,()=>ei(E,O,D,R))).pipe(Et())});return(0,B.of)(ct).pipe(Ao())}(Z.component,Z.route,D,O,R)),Et(Z=>!0!==Z,!0))}(ct,R,Z,E).pipe((0,rt.Z)(ln=>ln&&function ul(E){return"boolean"==typeof E}(ln)?function ge(E,O,D,R){return(0,o.H)(O).pipe((0,Tt.H)(Z=>(0,V.x)(function gi(E,O){return null!==E&&O&&O(new ti(E)),(0,B.of)(!0)}(Z.route.parent,R),function Ct(E,O){return null!==E&&O&&O(new Rr(E)),(0,B.of)(!0)}(Z.route,R),function zo(E,O,D){const R=O[O.length-1],De=O.slice(0,O.length-1).reverse().map(ct=>function ao(E){const O=E.routeConfig?E.routeConfig.canActivateChild:null;return O&&0!==O.length?{node:E,guards:O}:null}(ct)).filter(ct=>null!==ct).map(ct=>(0,F.v)(()=>{const ln=ct.guards.map(Qt=>{const ei=hr(ct.node)??D,Wi=rs(Qt,ei);return ut(function Os(E){return E&&Cs(E.canActivateChild)}(Wi)?Wi.canActivateChild(R,E):(0,u.N4e)(ei,()=>Wi(R,E))).pipe(Et())});return(0,B.of)(ln).pipe(Ao())}));return(0,B.of)(De).pipe(Ao())}(E,Z.path,D),function Yi(E,O,D){const R=O.routeConfig?O.routeConfig.canActivate:null;if(!R||0===R.length)return(0,B.of)(!0);const Z=R.map(De=>(0,F.v)(()=>{const ct=hr(O)??D,ln=rs(De,ct);return ut(function Ra(E){return E&&Cs(E.canActivate)}(ln)?ln.canActivate(O,E):(0,u.N4e)(ct,()=>ln(O,E))).pipe(Et())}));return(0,B.of)(Z).pipe(Ao())}(E,Z.route,D))),Et(Z=>!0!==Z,!0))}(R,De,E,O):(0,B.of)(ln)),(0,te.T)(ln=>({...D,guardsResult:ln})))})}(this.environmentInjector,Qt=>this.events.next(Qt)),(0,nn.M)(Qt=>{if(De.guardsResult=Qt.guardsResult,Qt.guardsResult&&"boolean"!=typeof Qt.guardsResult)throw Es(0,Qt.guardsResult);const ei=new xn(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects),Qt.targetSnapshot,!!Qt.guardsResult);this.events.next(ei)}),(0,Ve.p)(Qt=>!!Qt.guardsResult||(this.cancelNavigationTransition(Qt,"",$e.GuardRejected),!1)),ua(Qt=>{if(Qt.guards.canActivateChecks.length)return(0,B.of)(Qt).pipe((0,nn.M)(ei=>{const Wi=new Vn(ei.id,this.urlSerializer.serialize(ei.extractedUrl),this.urlSerializer.serialize(ei.urlAfterRedirects),ei.targetSnapshot);this.events.next(Wi)}),(0,ve.n)(ei=>{let Wi=!1;return(0,B.of)(ei).pipe(function Ql(E,O){return(0,rt.Z)(D=>{const{targetSnapshot:R,guards:{canActivateChecks:Z}}=D;if(!Z.length)return(0,B.of)(D);const De=new Set(Z.map(Qt=>Qt.route)),ct=new Set;for(const Qt of De)if(!ct.has(Qt))for(const ei of Yr(Qt))ct.add(ei);let ln=0;return(0,o.H)(ct).pipe((0,Tt.H)(Qt=>De.has(Qt)?function ko(E,O,D,R){const Z=E.routeConfig,De=E._resolve;return void 0!==Z?.title&&!gr(Z)&&(De[Lt]=Z.title),function iu(E,O,D,R){const Z=Pe(E);if(0===Z.length)return(0,B.of)({});const De={};return(0,o.H)(Z).pipe((0,rt.Z)(ct=>function To(E,O,D,R){const Z=hr(O)??R,De=rs(E,Z);return ut(De.resolve?De.resolve(O,D):(0,u.N4e)(Z,()=>De(O,D)))}(E[ct],O,D,R).pipe(Et(),(0,nn.M)(ln=>{if(ln instanceof Yo)throw Es(new nt,ln);De[ct]=ln}))),di(1),(0,Ee.u)(De),(0,Fn.W)(ct=>So(ct)?fe.w:(0,L.$)(ct)))}(De,E,O,R).pipe((0,te.T)(ct=>(E._resolvedData=ct,E.data=Ho(E,E.parent,D).resolve,null)))}(Qt,R,E,O):(Qt.data=Ho(Qt,Qt.parent,E).resolve,(0,B.of)(void 0))),(0,nn.M)(()=>ln++),di(1),(0,rt.Z)(Qt=>ln===ct.size?(0,B.of)(D):fe.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,nn.M)({next:()=>Wi=!0,complete:()=>{Wi||this.cancelNavigationTransition(ei,"",$e.NoDataFromResolver)}}))}),(0,nn.M)(ei=>{const Wi=new Hn(ei.id,this.urlSerializer.serialize(ei.extractedUrl),this.urlSerializer.serialize(ei.urlAfterRedirects),ei.targetSnapshot);this.events.next(Wi)}))}),ua(Qt=>{const ei=Wi=>{const er=[];Wi.routeConfig?.loadComponent&&!Wi.routeConfig._loadedComponent&&er.push(this.configLoader.loadComponent(Wi.routeConfig).pipe((0,nn.M)(Zi=>{Wi.component=Zi}),(0,te.T)(()=>{})));for(const Zi of Wi.children)er.push(...ei(Zi));return er};return(0,ee.z)(ei(Qt.targetSnapshot.root)).pipe(he(null),(0,tt.s)(1))}),ua(()=>this.afterPreactivation()),(0,ve.n)(()=>{const{currentSnapshot:Qt,targetSnapshot:ei}=De,Wi=this.createViewTransition?.(this.environmentInjector,Qt.root,ei.root);return Wi?(0,o.H)(Wi).pipe((0,te.T)(()=>De)):(0,B.of)(De)}),(0,te.T)(Qt=>{const ei=function oo(E,O,D){const R=jr(E,O._root,D?D._root:void 0);return new Vs(R,O)}(D.routeReuseStrategy,Qt.targetSnapshot,Qt.currentRouterState);return this.currentTransition=De={...Qt,targetRouterState:ei},this.currentNavigation.targetRouterState=ei,De}),(0,nn.M)(()=>{this.events.next(new Ci)}),((E,O,D,R)=>(0,te.T)(Z=>(new Oa(O,Z.targetRouterState,Z.currentRouterState,D,R).activate(E),Z)))(this.rootContexts,D.routeReuseStrategy,Qt=>this.events.next(Qt),this.inputBindingEnabled),(0,tt.s)(1),(0,nn.M)({next:Qt=>{ct=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new se(Qt.id,this.urlSerializer.serialize(Qt.extractedUrl),this.urlSerializer.serialize(Qt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Qt.targetRouterState.snapshot),Qt.resolve(!0)},complete:()=>{ct=!0}}),(0,gt.Q)(this.transitionAbortSubject.pipe((0,nn.M)(Qt=>{throw Qt}))),(0,J.j)(()=>{!ct&&!ln&&this.cancelNavigationTransition(De,"",$e.SupersededByNewNavigation),this.currentTransition?.id===De.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Fn.W)(Qt=>{if(ln=!0,aa(Qt))this.events.next(new at(De.id,this.urlSerializer.serialize(De.extractedUrl),Qt.message,Qt.cancellationCode)),function so(E){return aa(E)&&Xt(E.url)}(Qt)?this.events.next(new Br(Qt.url,Qt.navigationBehaviorOptions)):De.resolve(!1);else{const ei=new hn(De.id,this.urlSerializer.serialize(De.extractedUrl),Qt,De.targetSnapshot??void 0);try{const Wi=(0,u.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(ei));if(Wi instanceof Yo){const{message:er,cancellationCode:Zi}=Es(0,Wi);this.events.next(new at(De.id,this.urlSerializer.serialize(De.extractedUrl),er,Zi)),this.events.next(new Br(Wi.redirectTo,Wi.navigationBehaviorOptions))}else{this.events.next(ei);const er=D.errorHandler(Qt);De.resolve(!!er)}}catch(Wi){this.options.resolveNavigationPromiseOnError?De.resolve(!1):De.reject(Wi)}}return fe.w}))}))}cancelNavigationTransition(D,R,Z){const De=new at(D.id,this.urlSerializer.serialize(D.extractedUrl),R,Z);this.events.next(De),D.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const D=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),R=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return D.toString()!==R?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();function p(E){return E!==Qe}let _=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(X),providedIn:"root"})}}return E})();class x{shouldDetach(O){return!1}store(O,D){}shouldAttach(O){return!1}retrieve(O){return null}shouldReuseRoute(O,D){return O.routeConfig===D.routeConfig}}let X=(()=>{class E extends x{static{this.\u0275fac=(()=>{let D;return function(Z){return(D||(D=u.xGo(E)))(Z||E)}})()}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),ce=(()=>{class E{static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:()=>(0,u.WQX)(ze),providedIn:"root"})}}return E})(),ze=(()=>{class E extends ce{constructor(){super(...arguments),this.location=(0,u.WQX)(Me.aZ),this.urlSerializer=(0,u.WQX)(ue),this.options=(0,u.WQX)(da,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,u.WQX)(ha),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new rn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=xi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(R=>{"popstate"===R.type&&D(R.url,R.state)})}handleRouterEvent(D,R){if(D instanceof Ae)this.stateMemento=this.createStateMemento();else if(D instanceof $t)this.rawUrlTree=R.initialUrl;else if(D instanceof gn){if("eager"===this.urlUpdateStrategy&&!R.extras.skipLocationChange){const Z=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl);this.setBrowserUrl(R.targetBrowserUrl??Z,R)}}else D instanceof Ci?(this.currentUrlTree=R.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(R.finalUrl,R.initialUrl),this.routerState=R.targetRouterState,"deferred"===this.urlUpdateStrategy&&!R.extras.skipLocationChange&&this.setBrowserUrl(R.targetBrowserUrl??this.rawUrlTree,R)):D instanceof at&&(D.code===$e.GuardRejected||D.code===$e.NoDataFromResolver)?this.restoreHistory(R):D instanceof hn?this.restoreHistory(R,!0):D instanceof se&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,R){const Z=D instanceof rn?this.urlSerializer.serialize(D):D;if(this.location.isCurrentPathEqualTo(Z)||R.extras.replaceUrl){const ct={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId)};this.location.replaceState(Z,"",ct)}else{const De={...R.extras.state,...this.generateNgRouterState(R.id,this.browserPageId+1)};this.location.go(Z,"",De)}}restoreHistory(D,R=!1){if("computed"===this.canceledNavigationResolution){const De=this.currentPageId-this.browserPageId;0!==De?this.location.historyGo(De):this.currentUrlTree===D.finalUrl&&0===De&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(R&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,R){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:R}:{navigationId:D}}static{this.\u0275fac=(()=>{let D;return function(Z){return(D||(D=u.xGo(E)))(Z||E)}})()}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();var yt=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(yt||{});function Dt(E,O){E.events.pipe((0,Ve.p)(D=>D instanceof se||D instanceof at||D instanceof hn||D instanceof $t),(0,te.T)(D=>D instanceof se||D instanceof $t?yt.COMPLETE:D instanceof at&&(D.code===$e.Redirect||D.code===$e.SupersededByNewNavigation)?yt.REDIRECTING:yt.FAILED),(0,Ve.p)(D=>D!==yt.REDIRECTING),(0,tt.s)(1)).subscribe(()=>{O()})}function Pt(E){throw E}const Wt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let St=(()=>{class E{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=(0,u.WQX)(u.H3F),this.stateManager=(0,u.WQX)(ce),this.options=(0,u.WQX)(da,{optional:!0})||{},this.pendingTasks=(0,u.WQX)(u.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,u.WQX)(ne),this.urlSerializer=(0,u.WQX)(ue),this.location=(0,u.WQX)(Me.aZ),this.urlHandlingStrategy=(0,u.WQX)(ha),this._events=new be.B,this.errorHandler=this.options.errorHandler||Pt,this.navigated=!1,this.routeReuseStrategy=(0,u.WQX)(_),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,u.WQX)(As,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,u.WQX)(oa,{optional:!0}),this.eventsSubscription=new Te.yU,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:D=>{this.console.warn(D)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(R=>{try{const Z=this.navigationTransitions.currentTransition,De=this.navigationTransitions.currentNavigation;if(null!==Z&&null!==De)if(this.stateManager.handleRouterEvent(R,De),R instanceof at&&R.code!==$e.Redirect&&R.code!==$e.SupersededByNewNavigation)this.navigated=!0;else if(R instanceof se)this.navigated=!0;else if(R instanceof Br){const ct=R.navigationBehaviorOptions,ln=this.urlHandlingStrategy.merge(R.url,Z.currentRawUrl),Qt={browserUrl:Z.extras.browserUrl,info:Z.extras.info,skipLocationChange:Z.extras.skipLocationChange,replaceUrl:Z.extras.replaceUrl||"eager"===this.urlUpdateStrategy||p(Z.source),...ct};this.scheduleNavigation(ln,Qe,null,Qt,{resolve:Z.resolve,reject:Z.reject,promise:Z.promise})}(function cn(E){return!(E instanceof Ci||E instanceof Br)})(R)&&this._events.next(R)}catch(Z){this.navigationTransitions.transitionAbortSubject.next(Z)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((D,R)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(D,"popstate",R)},0)})}navigateToSyncWithBrowser(D,R,Z){const De={replaceUrl:!0},ct=Z?.navigationId?Z:null;if(Z){const Qt={...Z};delete Qt.navigationId,delete Qt.\u0275routerPageId,0!==Object.keys(Qt).length&&(De.state=Qt)}const ln=this.parseUrl(D);this.scheduleNavigation(ln,R,ct,De)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(fr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,R={}){const{relativeTo:Z,queryParams:De,fragment:ct,queryParamsHandling:ln,preserveFragment:Qt}=R,ei=Qt?this.currentUrlTree.fragment:ct;let er,Wi=null;switch(ln??this.options.defaultQueryParamsHandling){case"merge":Wi={...this.currentUrlTree.queryParams,...De};break;case"preserve":Wi=this.currentUrlTree.queryParams;break;default:Wi=De||null}null!==Wi&&(Wi=this.removeEmptyProps(Wi));try{er=li(Z?Z.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||"/"!==D[0][0])&&(D=[]),er=this.currentUrlTree.root}return wr(er,D,Wi,ei??null)}navigateByUrl(D,R={skipLocationChange:!1}){const Z=Xt(D)?D:this.parseUrl(D),De=this.urlHandlingStrategy.merge(Z,this.rawUrlTree);return this.scheduleNavigation(De,Qe,null,R)}navigate(D,R={skipLocationChange:!1}){return function Ht(E){for(let O=0;O(null!=De&&(R[Z]=De),R),{})}scheduleNavigation(D,R,Z,De,ct){if(this.disposed)return Promise.resolve(!1);let ln,Qt,ei;ct?(ln=ct.resolve,Qt=ct.reject,ei=ct.promise):ei=new Promise((er,Zi)=>{ln=er,Qt=Zi});const Wi=this.pendingTasks.add();return Dt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Wi))}),this.navigationTransitions.handleNavigationRequest({source:R,restoredState:Z,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:De,resolve:ln,reject:Qt,promise:ei,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ei.catch(er=>Promise.reject(er))}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),kn=(()=>{class E{constructor(D,R,Z,De,ct,ln){this.router=D,this.route=R,this.tabIndexAttribute=Z,this.renderer=De,this.el=ct,this.locationStrategy=ln,this.href=null,this.onChanges=new be.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;const Qt=ct.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Qt||"area"===Qt,this.isAnchorElement?this.subscription=D.events.subscribe(ei=>{ei instanceof se&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null==D?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=Xt(D)||Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0"))}onClick(D,R,Z,De,ct){const ln=this.urlTree;return!!(null===ln||this.isAnchorElement&&(0!==D||R||Z||De||ct||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(ln,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const D=this.urlTree;this.href=null!==D&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(D)):null;const R=null===this.href?null:(0,u.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",R)}applyAttributeValue(D,R){const Z=this.renderer,De=this.el.nativeElement;null!==R?Z.setAttribute(De,D,R):Z.removeAttribute(De,D)}get urlTree(){return null===this.routerLinkInput?null:Xt(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(R){return new(R||E)(u.rXU(St),u.rXU(Vr),u.kS0("tabindex"),u.rXU(u.sFG),u.rXU(u.aKT),u.rXU(Me.hb))}}static{this.\u0275dir=u.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(R,Z){1&R&&u.bIt("click",function(ct){return Z.onClick(ct.button,ct.ctrlKey,ct.shiftKey,ct.altKey,ct.metaKey)}),2&R&&u.BMQ("target",Z.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",u.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",u.L39],replaceUrl:[2,"replaceUrl","replaceUrl",u.L39],routerLink:"routerLink"},standalone:!0,features:[u.GFd,u.OA$]})}}return E})(),fn=(()=>{class E{get isActive(){return this._isActive}constructor(D,R,Z,De,ct){this.router=D,this.element=R,this.renderer=Z,this.cdr=De,this.link=ct,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new u.bkB,this.routerEventsSubscription=D.events.subscribe(ln=>{ln instanceof se&&this.update()})}ngAfterContentInit(){(0,B.of)(this.links.changes,(0,B.of)(null)).pipe((0,Ne.U)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(R=>!!R).map(R=>R.onChanges);this.linkInputChangesSubscription=(0,o.H)(D).pipe((0,Ne.U)()).subscribe(R=>{this._isActive!==this.isLinkActive(this.router)(R)&&this.update()})}set routerLinkActive(D){const R=Array.isArray(D)?D:D.split(" ");this.classes=R.filter(Z=>!!Z)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this.classes.forEach(R=>{D?this.renderer.addClass(this.element.nativeElement,R):this.renderer.removeClass(this.element.nativeElement,R)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.isActiveChange.emit(D))})}isLinkActive(D){const R=function Mn(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Z=>{const De=Z.urlTree;return!!De&&D.isActive(De,R)}}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}static{this.\u0275fac=function(R){return new(R||E)(u.rXU(St),u.rXU(u.aKT),u.rXU(u.sFG),u.rXU(u.gRc),u.rXU(kn,8))}}static{this.\u0275dir=u.FsC({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(R,Z,De){if(1&R&&u.wni(De,kn,5),2&R){let ct;u.mGM(ct=u.lsd())&&(Z.links=ct)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[u.OA$]})}}return E})();class Nn{}let Qn=(()=>{class E{preload(D,R){return R().pipe((0,Fn.W)(()=>(0,B.of)(null)))}static{this.\u0275fac=function(R){return new(R||E)}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),ri=(()=>{class E{constructor(D,R,Z,De,ct){this.router=D,this.injector=Z,this.preloadingStrategy=De,this.loader=ct}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ve.p)(D=>D instanceof se),(0,Tt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,R){const Z=[];for(const De of R){De.providers&&!De._injector&&(De._injector=(0,u.Ol2)(De.providers,D,`Route: ${De.path}`));const ct=De._injector??D,ln=De._loadedInjector??ct;(De.loadChildren&&!De._loadedRoutes&&void 0===De.canLoad||De.loadComponent&&!De._loadedComponent)&&Z.push(this.preloadConfig(ct,De)),(De.children||De._loadedRoutes)&&Z.push(this.processRoutes(ln,De.children??De._loadedRoutes))}return(0,o.H)(Z).pipe((0,Ne.U)())}preloadConfig(D,R){return this.preloadingStrategy.preload(R,()=>{let Z;Z=R.loadChildren&&void 0===R.canLoad?this.loader.loadChildren(D,R):(0,B.of)(null);const De=Z.pipe((0,rt.Z)(ct=>null===ct?(0,B.of)(void 0):(R._loadedRoutes=ct.routes,R._loadedInjector=ct.injector,this.processRoutes(ct.injector??D,ct.routes))));if(R.loadComponent&&!R._loadedComponent){const ct=this.loader.loadComponent(R);return(0,o.H)([De,ct]).pipe((0,Ne.U)())}return De})}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(St),u.KVO(u.Ql9),u.KVO(u.uvJ),u.KVO(Nn),u.KVO(Ws))}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();const hi=new u.nKC("");let Rn=(()=>{class E{constructor(D,R,Z,De,ct={}){this.urlSerializer=D,this.transitions=R,this.viewportScroller=Z,this.zone=De,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration||="disabled",ct.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof se?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof $t&&D.code===vt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Lr&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,R){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Lr(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,R))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(R){u.QTQ()}}static{this.\u0275prov=u.jDH({token:E,factory:E.\u0275fac})}}return E})();function ki(E,...O){return(0,u.EmA)([{provide:As,multi:!0,useValue:E},[],{provide:Vr,useFactory:Ai,deps:[St]},{provide:u.iLQ,multi:!0,useFactory:Co},O.map(D=>D.\u0275providers)])}function Ai(E){return E.routerState.root}function ar(E,O){return{\u0275kind:E,\u0275providers:O}}function Cr(E={}){return ar(4,[{provide:hi,useFactory:()=>{const D=(0,u.WQX)(Me.Xr),R=(0,u.WQX)(u.SKi),Z=(0,u.WQX)(ne),De=(0,u.WQX)(ue);return new Rn(De,Z,D,R,E)}}])}function Co(){const E=(0,u.WQX)(u.zZn);return O=>{const D=E.get(u.o8S);if(O!==D.components[0])return;const R=E.get(St),Z=E.get(oi);1===E.get(Yn)&&R.initialNavigation(),E.get(eo,null,u.$GK.Optional)?.setUpPreloading(),E.get(hi,null,u.$GK.Optional)?.init(),R.resetRootComponentType(D.componentTypes[0]),Z.closed||(Z.next(),Z.complete(),Z.unsubscribe())}}const oi=new u.nKC("",{factory:()=>new be.B}),Yn=new u.nKC("",{providedIn:"root",factory:()=>1}),eo=new u.nKC("");function Io(E){return ar(0,[{provide:eo,useExisting:ri},{provide:Nn,useExisting:E}])}function vi(E){return ar(9,[{provide:Ks,useValue:Qa},{provide:Qi,useValue:{skipNextTransition:!!E?.skipInitialTransition,...E}}])}const to=new u.nKC("ROUTER_FORROOT_GUARD"),Ts=[Me.aZ,{provide:ue,useClass:nt},St,Jr,{provide:Vr,useFactory:Ai,deps:[St]},Ws,[]];let Uo=(()=>{class E{constructor(D){}static forRoot(D,R){return{ngModule:E,providers:[Ts,[],{provide:As,multi:!0,useValue:D},{provide:to,useFactory:Ys,deps:[[St,new u.Xx1,new u.kdw]]},{provide:da,useValue:R||{}},R?.useHash?{provide:Me.hb,useClass:Me.fw}:{provide:Me.hb,useClass:Me.Sm},{provide:hi,useFactory:()=>{const E=(0,u.WQX)(Me.Xr),O=(0,u.WQX)(u.SKi),D=(0,u.WQX)(da),R=(0,u.WQX)(ne),Z=(0,u.WQX)(ue);return D.scrollOffset&&E.setOffset(D.scrollOffset),new Rn(Z,R,E,O,D)}},R?.preloadingStrategy?Io(R.preloadingStrategy).\u0275providers:[],R?.initialNavigation?wc(R):[],R?.bindToComponentInputs?ar(8,[Er,{provide:oa,useExisting:Er}]).\u0275providers:[],R?.enableViewTransitions?vi().\u0275providers:[],[{provide:Il,useFactory:Co},{provide:u.iLQ,multi:!0,useExisting:Il}]]}}static forChild(D){return{ngModule:E,providers:[{provide:As,multi:!0,useValue:D}]}}static{this.\u0275fac=function(R){return new(R||E)(u.KVO(to,8))}}static{this.\u0275mod=u.$C({type:E})}static{this.\u0275inj=u.G2t({})}}return E})();function Ys(E){return"guarded"}function wc(E){return["disabled"===E.initialNavigation?ar(3,[{provide:u.hnV,multi:!0,useFactory:()=>{const O=(0,u.WQX)(St);return()=>{O.setUpLocationChangeListener()}}},{provide:Yn,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?ar(2,[{provide:Yn,useValue:0},{provide:u.hnV,multi:!0,deps:[u.zZn],useFactory:O=>{const D=O.get(Me.hj,Promise.resolve());return()=>D.then(()=>new Promise(R=>{const Z=O.get(St),De=O.get(oi);Dt(Z,()=>{R(!0)}),O.get(ne).afterPreactivation=()=>(R(!0),De.closed?(0,B.of)(void 0):De),Z.initialNavigation()}))}}]).\u0275providers:[]]}const Il=new u.nKC("")},5766:(tn,Re,v)=>{"use strict";v.d(Re,{My:()=>Ve,aT:()=>oe}),new Uint8Array(new Uint32Array([287454020]).buffer);const bt=Array.from({length:256},(J,Se)=>Se.toString(16).padStart(2,"0"));function Ve(J){!function B(J,...Se){if(!function o(J){return J instanceof Uint8Array||null!=J&&"object"==typeof J&&"Uint8Array"===J.constructor.name}(J))throw new Error("Uint8Array expected");if(Se.length>0&&!Se.includes(J.length))throw new Error(`Uint8Array expected of length ${Se}, not of length=${J.length}`)}(J);let Se="";for(let gt=0;gt=rt._0&&J<=rt._9?J-rt._0:J>=rt._A&&J<=rt._F?J-(rt._A-10):J>=rt._a&&J<=rt._f?J-(rt._a-10):void 0}function oe(J){if("string"!=typeof J)throw new Error("hex string expected, got "+typeof J);const Se=J.length,gt=Se/2;if(Se%2)throw new Error("padded hex string expected, got unpadded hex of length "+Se);const Ne=new Uint8Array(gt);for(let Ze=0,je=0;Ze{"use strict";function y(Pe){return Pe instanceof Uint8Array||null!=Pe&&"object"==typeof Pe&&"Uint8Array"===Pe.constructor.name}function o(...Pe){const xt=wt=>wt,xe=(wt,mn)=>ni=>wt(mn(ni));return{encode:Pe.map(wt=>wt.encode).reduceRight(xe,xt),decode:Pe.map(wt=>wt.decode).reduce(xe,xt)}}function B(Pe){return{encode:xt=>{if(!Array.isArray(xt)||xt.length&&"number"!=typeof xt[0])throw new Error("alphabet.encode input should be an array of numbers");return xt.map(xe=>{if(xe<0||xe>=Pe.length)throw new Error(`Digit index outside alphabet: ${xe} (alphabet: ${Pe.length})`);return Pe[xe]})},decode:xt=>{if(!Array.isArray(xt)||xt.length&&"string"!=typeof xt[0])throw new Error("alphabet.decode input should be array of strings");return xt.map(xe=>{if("string"!=typeof xe)throw new Error(`alphabet.decode: not string element=${xe}`);const ut=Pe.indexOf(xe);if(-1===ut)throw new Error(`Unknown letter: "${xe}". Allowed: ${Pe}`);return ut})}}}function W(Pe=""){if("string"!=typeof Pe)throw new Error("join separator should be string");return{encode:xt=>{if(!Array.isArray(xt)||xt.length&&"string"!=typeof xt[0])throw new Error("join.encode input should be array of strings");for(let xe of xt)if("string"!=typeof xe)throw new Error(`join.encode: non-string input=${xe}`);return xt.join(Pe)},decode:xt=>{if("string"!=typeof xt)throw new Error("join.decode input should be string");return xt.split(Pe)}}}function ee(Pe,xt="="){if("string"!=typeof xt)throw new Error("padding chr should be string");return{encode(xe){if(!Array.isArray(xe)||xe.length&&"string"!=typeof xe[0])throw new Error("padding.encode input should be array of strings");for(let ut of xe)if("string"!=typeof ut)throw new Error(`padding.encode: non-string input=${ut}`);for(;xe.length*Pe%8;)xe.push(xt);return xe},decode(xe){if(!Array.isArray(xe)||xe.length&&"string"!=typeof xe[0])throw new Error("padding.encode input should be array of strings");for(let Rt of xe)if("string"!=typeof Rt)throw new Error(`padding.decode: non-string input=${Rt}`);let ut=xe.length;if(ut*Pe%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;ut>0&&xe[ut-1]===xt;ut--)if(!((ut-1)*Pe%8))throw new Error("Invalid padding: string has too much padding");return xe.slice(0,ut)}}}function V(Pe,xt,xe){if(xt<2)throw new Error(`convertRadix: wrong from=${xt}, base cannot be less than 2`);if(xe<2)throw new Error(`convertRadix: wrong to=${xe}, base cannot be less than 2`);if(!Array.isArray(Pe))throw new Error("convertRadix: data should be array");if(!Pe.length)return[];let ut=0;const Rt=[],wt=Array.from(Pe);for(wt.forEach(mn=>{if(mn<0||mn>=xt)throw new Error(`Wrong integer: ${mn}`)});;){let mn=0,ni=!0;for(let Zt=ut;Ztgt,K3:()=>Xe,Tq:()=>yn,Wp:()=>Me});const F=(Pe,xt)=>xt?F(xt,Pe%xt):Pe,U=(Pe,xt)=>Pe+(xt-F(Pe,xt));function L(Pe,xt,xe,ut){if(!Array.isArray(Pe))throw new Error("convertRadix2: data should be array");if(xt<=0||xt>32)throw new Error(`convertRadix2: wrong from=${xt}`);if(xe<=0||xe>32)throw new Error(`convertRadix2: wrong to=${xe}`);if(U(xt,xe)>32)throw new Error(`convertRadix2: carry overflow from=${xt} to=${xe} carryBits=${U(xt,xe)}`);let Rt=0,wt=0;const mn=2**xe-1,ni=[];for(const Zt of Pe){if(Zt>=2**xt)throw new Error(`convertRadix2: invalid data word=${Zt} from=${xt}`);if(Rt=Rt<32)throw new Error(`convertRadix2: carry overflow pos=${wt} from=${xt}`);for(wt+=xt;wt>=xe;wt-=xe)ni.push((Rt>>wt-xe&mn)>>>0);Rt&=2**wt-1}if(Rt=Rt<=xt)throw new Error("Excess padding");if(!ut&&Rt)throw new Error(`Non-zero padding: ${Rt}`);return ut&&wt>0&&ni.push(Rt>>>0),ni}function fe(Pe){return{encode:xt=>{if(!y(xt))throw new Error("radix.encode input should be Uint8Array");return V(Array.from(xt),256,Pe)},decode:xt=>{if(!Array.isArray(xt)||xt.length&&"number"!=typeof xt[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(V(xt,Pe,256))}}}function de(Pe,xt=!1){if(Pe<=0||Pe>32)throw new Error("radix2: bits should be in (0..32]");if(U(8,Pe)>32||U(Pe,8)>32)throw new Error("radix2: carry overflow");return{encode:xe=>{if(!y(xe))throw new Error("radix2.encode input should be Uint8Array");return L(Array.from(xe),8,Pe,!xt)},decode:xe=>{if(!Array.isArray(xe)||xe.length&&"number"!=typeof xe[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(L(xe,Pe,8,xt))}}}function be(Pe){if("function"!=typeof Pe)throw new Error("unsafeWrapper fn should be function");return function(...xt){try{return Pe.apply(null,xt)}catch{}}}function Te(Pe,xt){if("function"!=typeof xt)throw new Error("checksum fn should be function");return{encode(xe){if(!y(xe))throw new Error("checksum.encode: input should be Uint8Array");const ut=xt(xe).slice(0,Pe),Rt=new Uint8Array(xe.length+Pe);return Rt.set(xe),Rt.set(ut,xe.length),Rt},decode(xe){if(!y(xe))throw new Error("checksum.decode: input should be Uint8Array");const ut=xe.slice(0,-Pe),Rt=xt(ut).slice(0,Pe),wt=xe.slice(-Pe);for(let mn=0;mno(fe(58),B("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),W("")))(),yn=Pe=>o(Te(4,xt=>Pe(Pe(xt))),It),di=o(B("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),W("")),mt=[996825010,642813549,513874426,1027748829,705979059];function Ee(Pe){const xt=Pe>>25;let xe=(33554431&Pe)<<5;for(let ut=0;ut>ut&1)&&(xe^=mt[ut]);return xe}function J(Pe,xt,xe=1){const ut=Pe.length;let Rt=1;for(let wt=0;wt126)throw new Error(`Invalid prefix (${Pe})`);Rt=Ee(Rt)^mn>>5}Rt=Ee(Rt);for(let wt=0;wtrn)throw new TypeError(`Length ${Q} exceeds limit ${rn}`);const T=Ge.toLowerCase(),N=J(T,dt,xt);return`${T}1${di.encode(dt)}${N}`}function ni(Ge,dt=90){if("string"!=typeof Ge)throw new Error("bech32.decode input should be string, not "+typeof Ge);if(Ge.length<8||!1!==dt&&Ge.length>dt)throw new TypeError(`Wrong string length: ${Ge.length} (${Ge}). Expected (8..${dt})`);const rn=Ge.toLowerCase();if(Ge!==rn&&Ge!==Ge.toUpperCase())throw new Error("String must be lowercase or uppercase");const Q=rn.lastIndexOf("1");if(0===Q||-1===Q)throw new Error('Letter "1" must be present between prefix and data only');const T=rn.slice(0,Q),N=rn.slice(Q+1);if(N.length<6)throw new Error("Data must be at least 6 characters long");const $=di.decode(N).slice(0,-6),le=J(T,$,xt);if(!N.endsWith(le))throw new Error(`Invalid checksum in ${Ge}: expected "${le}"`);return{prefix:T,words:$}}return{encode:mn,decode:ni,encodeFromBytes:function Je(Ge,dt){return mn(Ge,Rt(dt))},decodeToBytes:function _e(Ge){const{prefix:dt,words:rn}=ni(Ge,!1);return{prefix:dt,words:rn,bytes:ut(rn)}},decodeUnsafe:be(ni),fromWords:ut,fromWordsUnsafe:wt,toWords:Rt}}const gt=Se("bech32")},9608:(tn,Re,v)=>{"use strict";v.d(Re,{c:()=>ne});var u={};function y(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function W(p,..._){if(!function B(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}(p))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(p.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${p.length}`)}function re(p,_=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(_&&p.finished)throw new Error("Hash#digest() has already been called")}function de(p){return p instanceof Uint8Array||null!=p&&"object"==typeof p&&"Uint8Array"===p.constructor.name}v.r(u),v.d(u,{OG:()=>Ho,My:()=>vo,Ph:()=>hr,lX:()=>ts,Id:()=>Ar,fg:()=>ws,qj:()=>Sr,aT:()=>Us,lq:()=>Jr,z:()=>Ii,Q5:()=>Xr});const be=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),Te=(p,_)=>p<<32-_|p>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const te=Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0")),tt={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function bt(p){return p>=tt._0&&p<=tt._9?p-tt._0:p>=tt._A&&p<=tt._F?p-(tt._A-10):p>=tt._a&&p<=tt._f?p-(tt._a-10):void 0}function he(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}function Le(p){if("string"==typeof p&&(p=he(p)),!de(p))throw new Error("expected Uint8Array, got "+typeof p);return p}function et(...p){let _=0;for(let X=0;Xp().update(Le(X)).digest(),x=p();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>p(),_}class di extends It{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,function ee(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");y(p.outputLen),y(p.blockLen)}(_);const X=Le(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const ce=this.blockLen,ze=new Uint8Array(ce);ze.set(X.length>ce?_.create().update(X).digest():X);for(let yt=0;ytnew di(p,_).update(x).digest();mt.create=(p,_)=>new di(p,_);class J extends It{constructor(_,x,X,ce){super(),this.blockLen=_,this.outputLen=x,this.padOffset=X,this.isLE=ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=be(this.buffer)}update(_){re(this);const{view:x,buffer:X,blockLen:ce}=this,ze=(_=Le(_)).length;for(let yt=0;ytce-yt&&(this.process(X,0),yt=0);for(let St=yt;St>ce&ze),Dt=Number(x&ze),Wt=X?0:4;p.setUint32(_+(X?4:0),yt,X),p.setUint32(_+Wt,Dt,X)})(X,ce-8,BigInt(8*this.length),ze),this.process(X,0);const Dt=be(_),Pt=this.outputLen;if(Pt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Wt=Pt/4,pn=this.get();if(Wt>pn.length)throw new Error("_sha2: outputLen bigger than state");for(let St=0;St_);let Ze=[gt],je=[gt.map(p=>(9*p+5)%16)];for(let p=0;p<4;p++)for(let _ of[Ze,je])_.push(_[p].map(x=>Se[x]));const Lt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(p=>new Uint8Array(p)),Mt=Ze.map((p,_)=>p.map(x=>Lt[_][x])),we=je.map((p,_)=>p.map(x=>Lt[_][x])),Oe=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),me=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),We=(p,_)=>p<<_|p>>>32-_;function Pe(p,_,x,X){return 0===p?_^x^X:1===p?_&x|~_&X:2===p?(_|~x)^X:3===p?_&X|x&~X:_^(x|~X)}const xt=new Uint32Array(16);class xe extends J{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:_,h1:x,h2:X,h3:ce,h4:ze}=this;return[_,x,X,ce,ze]}set(_,x,X,ce,ze){this.h0=0|_,this.h1=0|x,this.h2=0|X,this.h3=0|ce,this.h4=0|ze}process(_,x){for(let cn=0;cn<16;cn++,x+=4)xt[cn]=_.getUint32(x,!0);let X=0|this.h0,ce=X,ze=0|this.h1,yt=ze,Dt=0|this.h2,Pt=Dt,Wt=0|this.h3,pn=Wt,St=0|this.h4,Ht=St;for(let cn=0;cn<5;cn++){const kn=4-cn,fn=Oe[cn],Mn=me[cn],Nn=Ze[cn],Qn=je[cn],An=Mt[cn],ri=we[cn];for(let hi=0;hi<16;hi++){const Rn=We(X+Pe(cn,ze,Dt,Wt)+xt[Nn[hi]]+fn,An[hi])+St|0;X=St,St=Wt,Wt=0|We(Dt,10),Dt=ze,ze=Rn}for(let hi=0;hi<16;hi++){const Rn=We(ce+Pe(kn,yt,Pt,pn)+xt[Qn[hi]]+Mn,ri[hi])+Ht|0;ce=Ht,Ht=pn,pn=0|We(Pt,10),Pt=yt,yt=Rn}}this.set(this.h1+Dt+pn|0,this.h2+Wt+Ht|0,this.h3+St+ce|0,this.h4+X+yt|0,this.h0+ze+Pt|0)}roundClean(){xt.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ut=nn(()=>new xe),Rt=(p,_,x)=>p&_^~p&x,wt=(p,_,x)=>p&_^p&x^_&x,mn=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]),ni=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Zt=new Uint32Array(64);class _e extends J{constructor(){super(64,32,8,!1),this.A=0|ni[0],this.B=0|ni[1],this.C=0|ni[2],this.D=0|ni[3],this.E=0|ni[4],this.F=0|ni[5],this.G=0|ni[6],this.H=0|ni[7]}get(){const{A:_,B:x,C:X,D:ce,E:ze,F:yt,G:Dt,H:Pt}=this;return[_,x,X,ce,ze,yt,Dt,Pt]}set(_,x,X,ce,ze,yt,Dt,Pt){this.A=0|_,this.B=0|x,this.C=0|X,this.D=0|ce,this.E=0|ze,this.F=0|yt,this.G=0|Dt,this.H=0|Pt}process(_,x){for(let St=0;St<16;St++,x+=4)Zt[St]=_.getUint32(x,!1);for(let St=16;St<64;St++){const Ht=Zt[St-15],cn=Zt[St-2],kn=Te(Ht,7)^Te(Ht,18)^Ht>>>3,fn=Te(cn,17)^Te(cn,19)^cn>>>10;Zt[St]=fn+Zt[St-7]+kn+Zt[St-16]|0}let{A:X,B:ce,C:ze,D:yt,E:Dt,F:Pt,G:Wt,H:pn}=this;for(let St=0;St<64;St++){const cn=pn+(Te(Dt,6)^Te(Dt,11)^Te(Dt,25))+Rt(Dt,Pt,Wt)+mn[St]+Zt[St]|0,fn=(Te(X,2)^Te(X,13)^Te(X,22))+wt(X,ce,ze)|0;pn=Wt,Wt=Pt,Pt=Dt,Dt=yt+cn|0,yt=ze,ze=ce,ce=X,X=cn+fn|0}X=X+this.A|0,ce=ce+this.B|0,ze=ze+this.C|0,yt=yt+this.D|0,Dt=Dt+this.E|0,Pt=Pt+this.F|0,Wt=Wt+this.G|0,pn=pn+this.H|0,this.set(X,ce,ze,yt,Dt,Pt,Wt,pn)}roundClean(){Zt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ge=nn(()=>new _e),rn=BigInt(2**32-1),Q=BigInt(32);function T(p,_=!1){return _?{h:Number(p&rn),l:Number(p>>Q&rn)}:{h:0|Number(p>>Q&rn),l:0|Number(p&rn)}}const At_split=function N(p,_=!1){let x=new Uint32Array(p.length),X=new Uint32Array(p.length);for(let ce=0;cep>>>x,At_shrSL=(p,_,x)=>p<<32-x|_>>>x,At_rotrSH=(p,_,x)=>p>>>x|_<<32-x,At_rotrSL=(p,_,x)=>p<<32-x|_>>>x,At_rotrBH=(p,_,x)=>p<<64-x|_>>>x-32,At_rotrBL=(p,_,x)=>p>>>x-32|_<<64-x,At_add=function Be(p,_,x,X){const ce=(_>>>0)+(X>>>0);return{h:p+x+(ce/2**32|0)|0,l:0|ce}},At_add3L=(p,_,x)=>(p>>>0)+(_>>>0)+(x>>>0),At_add3H=(p,_,x,X)=>_+x+X+(p/2**32|0)|0,At_add4L=(p,_,x,X)=>(p>>>0)+(_>>>0)+(x>>>0)+(X>>>0),At_add4H=(p,_,x,X,ce)=>_+x+X+ce+(p/2**32|0)|0,At_add5H=(p,_,x,X,ce,ze)=>_+x+X+ce+ze+(p/2**32|0)|0,At_add5L=(p,_,x,X,ce)=>(p>>>0)+(_>>>0)+(x>>>0)+(X>>>0)+(ce>>>0),[st,Bt]=At_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(p=>BigInt(p))),ot=new Uint32Array(80),qe=new Uint32Array(80);class Ie extends J{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:_,Al:x,Bh:X,Bl:ce,Ch:ze,Cl:yt,Dh:Dt,Dl:Pt,Eh:Wt,El:pn,Fh:St,Fl:Ht,Gh:cn,Gl:kn,Hh:fn,Hl:Mn}=this;return[_,x,X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn]}set(_,x,X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn){this.Ah=0|_,this.Al=0|x,this.Bh=0|X,this.Bl=0|ce,this.Ch=0|ze,this.Cl=0|yt,this.Dh=0|Dt,this.Dl=0|Pt,this.Eh=0|Wt,this.El=0|pn,this.Fh=0|St,this.Fl=0|Ht,this.Gh=0|cn,this.Gl=0|kn,this.Hh=0|fn,this.Hl=0|Mn}process(_,x){for(let An=0;An<16;An++,x+=4)ot[An]=_.getUint32(x),qe[An]=_.getUint32(x+=4);for(let An=16;An<80;An++){const ri=0|ot[An-15],hi=0|qe[An-15],Rn=At_rotrSH(ri,hi,1)^At_rotrSH(ri,hi,8)^At_shrSH(ri,hi,7),ki=At_rotrSL(ri,hi,1)^At_rotrSL(ri,hi,8)^At_shrSL(ri,hi,7),Ai=0|ot[An-2],ar=0|qe[An-2],Ri=At_rotrSH(Ai,ar,19)^At_rotrBH(Ai,ar,61)^At_shrSH(Ai,ar,6),rr=At_rotrSL(Ai,ar,19)^At_rotrBL(Ai,ar,61)^At_shrSL(Ai,ar,6),Qr=At_add4L(ki,rr,qe[An-7],qe[An-16]),Cr=At_add4H(Qr,Rn,Ri,ot[An-7],ot[An-16]);ot[An]=0|Cr,qe[An]=0|Qr}let{Ah:X,Al:ce,Bh:ze,Bl:yt,Ch:Dt,Cl:Pt,Dh:Wt,Dl:pn,Eh:St,El:Ht,Fh:cn,Fl:kn,Gh:fn,Gl:Mn,Hh:Nn,Hl:Qn}=this;for(let An=0;An<80;An++){const ri=At_rotrSH(St,Ht,14)^At_rotrSH(St,Ht,18)^At_rotrBH(St,Ht,41),hi=At_rotrSL(St,Ht,14)^At_rotrSL(St,Ht,18)^At_rotrBL(St,Ht,41),Rn=St&cn^~St&fn,Ai=At_add5L(Qn,hi,Ht&kn^~Ht&Mn,Bt[An],qe[An]),ar=At_add5H(Ai,Nn,ri,Rn,st[An],ot[An]),Ri=0|Ai,rr=At_rotrSH(X,ce,28)^At_rotrBH(X,ce,34)^At_rotrBH(X,ce,39),Qr=At_rotrSL(X,ce,28)^At_rotrBL(X,ce,34)^At_rotrBL(X,ce,39),Cr=X&ze^X&Dt^ze&Dt,Co=ce&yt^ce&Pt^yt&Pt;Nn=0|fn,Qn=0|Mn,fn=0|cn,Mn=0|kn,cn=0|St,kn=0|Ht,({h:St,l:Ht}=At_add(0|Wt,0|pn,0|ar,0|Ri)),Wt=0|Dt,pn=0|Pt,Dt=0|ze,Pt=0|yt,ze=0|X,yt=0|ce;const oi=At_add3L(Ri,Qr,Co);X=At_add3H(oi,ar,rr,Cr),ce=0|oi}({h:X,l:ce}=At_add(0|this.Ah,0|this.Al,0|X,0|ce)),({h:ze,l:yt}=At_add(0|this.Bh,0|this.Bl,0|ze,0|yt)),({h:Dt,l:Pt}=At_add(0|this.Ch,0|this.Cl,0|Dt,0|Pt)),({h:Wt,l:pn}=At_add(0|this.Dh,0|this.Dl,0|Wt,0|pn)),({h:St,l:Ht}=At_add(0|this.Eh,0|this.El,0|St,0|Ht)),({h:cn,l:kn}=At_add(0|this.Fh,0|this.Fl,0|cn,0|kn)),({h:fn,l:Mn}=At_add(0|this.Gh,0|this.Gl,0|fn,0|Mn)),({h:Nn,l:Qn}=At_add(0|this.Hh,0|this.Hl,0|Nn,0|Qn)),this.set(X,ce,ze,yt,Dt,Pt,Wt,pn,St,Ht,cn,kn,fn,Mn,Nn,Qn)}roundClean(){ot.fill(0),qe.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const li=nn(()=>new Ie);function Fr(p){if(!Number.isSafeInteger(p)||p<0)throw new Error(`Wrong positive integer: ${p}`)}function Kr(p,..._){if(!(p instanceof Uint8Array))throw new Error("Expected Uint8Array");if(_.length>0&&!_.includes(p.length))throw new Error(`Expected Uint8Array of length ${_}, not of length=${p.length}`)}const bn={number:Fr,bool:function bi(p){if("boolean"!=typeof p)throw new Error(`Expected boolean, not ${p}`)},bytes:Kr,hash:function Or(p){if("function"!=typeof p||"function"!=typeof p.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Fr(p.outputLen),Fr(p.blockLen)},exists:function ft(p,_=!0){if(p.destroyed)throw new Error("Hash instance has been destroyed");if(_&&p.finished)throw new Error("Hash#digest() has already been called")},output:function Ot(p,_){Kr(p);const x=_.outputLen;if(p.lengthp instanceof Uint8Array,ci=p=>new DataView(p.buffer,p.byteOffset,p.byteLength),Bn=(p,_)=>p<<32-_|p>>>_;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function at(p){if("string"==typeof p&&(p=function vt(p){if("string"!=typeof p)throw new Error("utf8ToBytes expected string, got "+typeof p);return new Uint8Array((new TextEncoder).encode(p))}(p)),!Kn(p))throw new Error("expected Uint8Array, got "+typeof p);return p}Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0"));class hn{clone(){return this._cloneInto()}}function xn(p){const _=X=>p().update(at(X)).digest(),x=p();return _.outputLen=x.outputLen,_.blockLen=x.blockLen,_.create=()=>p(),_}function ui(p=32){if(Tn&&"function"==typeof Tn.getRandomValues)return Tn.getRandomValues(new Uint8Array(p));throw new Error("crypto.getRandomValues must be defined")}class ti extends hn{constructor(_,x,X,ce){super(),this.blockLen=_,this.outputLen=x,this.padOffset=X,this.isLE=ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(_),this.view=ci(this.buffer)}update(_){bn.exists(this);const{view:x,buffer:X,blockLen:ce}=this,ze=(_=at(_)).length;for(let yt=0;ytce-yt&&(this.process(X,0),yt=0);for(let St=yt;St>ce&ze),Dt=Number(x&ze),Wt=X?0:4;p.setUint32(_+(X?4:0),yt,X),p.setUint32(_+Wt,Dt,X)})(X,ce-8,BigInt(8*this.length),ze),this.process(X,0);const Dt=ci(_),Pt=this.outputLen;if(Pt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Wt=Pt/4,pn=this.get();if(Wt>pn.length)throw new Error("_sha2: outputLen bigger than state");for(let St=0;Stp&_^~p&x,Rr=(p,_,x)=>p&_^p&x^_&x,ho=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]),Lr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ci=new Uint32Array(64);class Br extends ti{constructor(){super(64,32,8,!1),this.A=0|Lr[0],this.B=0|Lr[1],this.C=0|Lr[2],this.D=0|Lr[3],this.E=0|Lr[4],this.F=0|Lr[5],this.G=0|Lr[6],this.H=0|Lr[7]}get(){const{A:_,B:x,C:X,D:ce,E:ze,F:yt,G:Dt,H:Pt}=this;return[_,x,X,ce,ze,yt,Dt,Pt]}set(_,x,X,ce,ze,yt,Dt,Pt){this.A=0|_,this.B=0|x,this.C=0|X,this.D=0|ce,this.E=0|ze,this.F=0|yt,this.G=0|Dt,this.H=0|Pt}process(_,x){for(let St=0;St<16;St++,x+=4)Ci[St]=_.getUint32(x,!1);for(let St=16;St<64;St++){const Ht=Ci[St-15],cn=Ci[St-2],kn=Bn(Ht,7)^Bn(Ht,18)^Ht>>>3,fn=Bn(cn,17)^Bn(cn,19)^cn>>>10;Ci[St]=fn+Ci[St-7]+kn+Ci[St-16]|0}let{A:X,B:ce,C:ze,D:yt,E:Dt,F:Pt,G:Wt,H:pn}=this;for(let St=0;St<64;St++){const cn=pn+(Bn(Dt,6)^Bn(Dt,11)^Bn(Dt,25))+Wn(Dt,Pt,Wt)+ho[St]+Ci[St]|0,fn=(Bn(X,2)^Bn(X,13)^Bn(X,22))+Rr(X,ce,ze)|0;pn=Wt,Wt=Pt,Pt=Dt,Dt=yt+cn|0,yt=ze,ze=ce,ce=X,X=cn+fn|0}X=X+this.A|0,ce=ce+this.B|0,ze=ze+this.C|0,yt=yt+this.D|0,Dt=Dt+this.E|0,Pt=Pt+this.F|0,Wt=Wt+this.G|0,pn=pn+this.H|0,this.set(X,ce,ze,yt,Dt,Pt,Wt,pn)}roundClean(){Ci.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Ko extends Br{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}}const Gi=xn(()=>new Br),io=(xn(()=>new Ko),BigInt(0),BigInt(1)),ma=BigInt(2),ga=p=>p instanceof Uint8Array,Kl=Array.from({length:256},(p,_)=>_.toString(16).padStart(2,"0"));function vo(p){if(!ga(p))throw new Error("Uint8Array expected");let _="";for(let x=0;xX+ce.length,0));let x=0;return p.forEach(X=>{if(!ga(X))throw new Error("Uint8Array expected");_.set(X,x),x+=X.length}),_}const Ho=p=>(ma<new Uint8Array(p),va=p=>Uint8Array.from(p);function ws(p,_,x){if("number"!=typeof p||p<2)throw new Error("hashLen must be a number");if("number"!=typeof _||_<2)throw new Error("qByteLen must be a number");if("function"!=typeof x)throw new Error("hmacFn must be a function");let X=$o(p),ce=$o(p),ze=0;const yt=()=>{X.fill(1),ce.fill(0),ze=0},Dt=(...St)=>x(ce,X,...St),Pt=(St=$o())=>{ce=Dt(va([0]),St),X=Dt(),0!==St.length&&(ce=Dt(va([1]),St),X=Dt())},Wt=()=>{if(ze++>=1e3)throw new Error("drbg: tried 1000 values");let St=0;const Ht=[];for(;St<_;){X=Dt();const cn=X.slice();Ht.push(cn),St+=X.length}return Ar(...Ht)};return(St,Ht)=>{let cn;for(yt(),Pt(St);!(cn=Ht(Wt()));)Pt();return yt(),cn}}const Hs={bigint:p=>"bigint"==typeof p,function:p=>"function"==typeof p,boolean:p=>"boolean"==typeof p,string:p=>"string"==typeof p,isSafeInteger:p=>Number.isSafeInteger(p),array:p=>Array.isArray(p),field:(p,_)=>_.Fp.isValid(p),hash:p=>"function"==typeof p&&Number.isSafeInteger(p.outputLen)};function Xr(p,_,x={}){const X=(ce,ze,yt)=>{const Dt=Hs[ze];if("function"!=typeof Dt)throw new Error(`Invalid validator "${ze}", expected function`);const Pt=p[ce];if(!(yt&&void 0===Pt||Dt(Pt,p)))throw new Error(`Invalid param ${String(ce)}=${Pt} (${typeof Pt}), expected ${ze}`)};for(const[ce,ze]of Object.entries(_))X(ce,ze,!1);for(const[ce,ze]of Object.entries(x))X(ce,ze,!0);return p}const Li=BigInt(0),gr=BigInt(1),Xo=BigInt(2),ro=BigInt(3),oa=BigInt(4),Er=BigInt(5),oo=BigInt(8);function Ir(p,_){const x=p%_;return x>=Li?x:_+x}function Yo(p,_,x){if(x<=Li||_ 0");if(x===gr)return Li;let X=gr;for(;_>Li;)_&gr&&(X=X*p%x),p=p*p%x,_>>=gr;return X}function Eo(p,_,x){let X=p;for(;_-- >Li;)X*=X,X%=x;return X}function Es(p,_){if(p===Li||_<=Li)throw new Error(`invert: expected positive integers, got n=${p} mod=${_}`);let x=Ir(p,_),X=_,ce=Li,ze=gr,yt=gr,Dt=Li;for(;x!==Li;){const Wt=X/x,pn=X%x,St=ce-yt*Wt,Ht=ze-Dt*Wt;X=x,x=pn,ce=yt,ze=Dt,yt=St,Dt=Ht}if(X!==gr)throw new Error("invert: does not exist");return Ir(ce,_)}BigInt(9),BigInt(16);const Fo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ao(p,_){const x=void 0!==_?_:p.toString(2).length;return{nBitLength:x,nByteLength:Math.ceil(x/8)}}const fo=BigInt(0),Cs=BigInt(1);function _a(p){return function Xa(p){Xr(p,Fo.reduce((X,ce)=>(X[ce]="function",X),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(p.Fp),Xr(p,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ao(p.n,p.nBitLength),...p,p:p.Fp.ORDER})}const{Ph:Os,aT:ka}=u,os={Err:class extends Error{constructor(_=""){super(_)}},_parseInt(p){const{Err:_}=os;if(p.length<2||2!==p[0])throw new _("Invalid signature integer tag");const x=p[1],X=p.subarray(2,x+2);if(!x||X.length!==x)throw new _("Invalid signature integer: wrong length");if(128&X[0])throw new _("Invalid signature integer: negative");if(0===X[0]&&!(128&X[1]))throw new _("Invalid signature integer: unnecessary leading zero");return{d:Os(X),l:p.subarray(x+2)}},toSig(p){const{Err:_}=os,x="string"==typeof p?ka(p):p;if(!(x instanceof Uint8Array))throw new Error("ui8a expected");let X=x.length;if(X<2||48!=x[0])throw new _("Invalid signature tag");if(x[1]!==X-2)throw new _("Invalid signature: incorrect length");const{d:ce,l:ze}=os._parseInt(x.subarray(2)),{d:yt,l:Dt}=os._parseInt(ze);if(Dt.length)throw new _("Invalid signature: left bytes after parsing");return{r:ce,s:yt}},hexFromSig(p){const _=Wt=>8&Number.parseInt(Wt[0],16)?"00"+Wt:Wt,x=Wt=>{const pn=Wt.toString(16);return 1&pn.length?`0${pn}`:pn},X=_(x(p.s)),ce=_(x(p.r)),ze=X.length/2,yt=ce.length/2,Dt=x(ze),Pt=x(yt);return`30${x(yt+ze+4)}02${Pt}${ce}02${Dt}${X}`}},So=BigInt(0),_r=BigInt(1),z=(BigInt(2),BigInt(3));function Ct(p){const _=function ge(p){const _=_a(p);return Xr(_,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,..._})}(p),{Fp:x,n:X}=_,ce=x.BYTES+1,ze=2*x.BYTES+1;function Dt(oi){return Ir(oi,X)}function Pt(oi){return Es(oi,X)}const{ProjectivePoint:Wt,normPrivateKeyToScalar:pn,weierstrassEquation:St,isWithinCurveOrder:Ht}=function k(p){const _=function Ra(p){const _=_a(p);Xr(_,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:x,Fp:X,a:ce}=_;if(x){if(!X.eql(ce,X.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof x||"bigint"!=typeof x.beta||"function"!=typeof x.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({..._})}(p),{Fp:x}=_,X=_.toBytes||((kn,fn,Mn)=>{const Nn=fn.toAffine();return Ar(Uint8Array.from([4]),x.toBytes(Nn.x),x.toBytes(Nn.y))}),ce=_.fromBytes||(kn=>{const fn=kn.subarray(1);return{x:x.fromBytes(fn.subarray(0,x.BYTES)),y:x.fromBytes(fn.subarray(x.BYTES,2*x.BYTES))}});function ze(kn){const{a:fn,b:Mn}=_,Nn=x.sqr(kn),Qn=x.mul(Nn,kn);return x.add(x.add(Qn,x.mul(kn,fn)),Mn)}if(!x.eql(x.sqr(_.Gy),ze(_.Gx)))throw new Error("bad generator point: equation left != right");function yt(kn){return"bigint"==typeof kn&&Sox.eql(An,x.ZERO);return Qn(Mn)&&Qn(Nn)?St.ZERO:new St(Mn,Nn,x.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(fn){const Mn=x.invertBatch(fn.map(Nn=>Nn.pz));return fn.map((Nn,Qn)=>Nn.toAffine(Mn[Qn])).map(St.fromAffine)}static fromHex(fn){const Mn=St.fromAffine(ce(Sr("pointHex",fn)));return Mn.assertValidity(),Mn}static fromPrivateKey(fn){return St.BASE.multiply(Pt(fn))}_setWindowSize(fn){this._WINDOW_SIZE=fn,Wt.delete(this)}assertValidity(){if(this.is0()){if(_.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:fn,y:Mn}=this.toAffine();if(!x.isValid(fn)||!x.isValid(Mn))throw new Error("bad point: x or y not FE");const Nn=x.sqr(Mn),Qn=ze(fn);if(!x.eql(Nn,Qn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:fn}=this.toAffine();if(x.isOdd)return!x.isOdd(fn);throw new Error("Field doesn't support isOdd")}equals(fn){pn(fn);const{px:Mn,py:Nn,pz:Qn}=this,{px:An,py:ri,pz:hi}=fn,Rn=x.eql(x.mul(Mn,hi),x.mul(An,Qn)),ki=x.eql(x.mul(Nn,hi),x.mul(ri,Qn));return Rn&&ki}negate(){return new St(this.px,x.neg(this.py),this.pz)}double(){const{a:fn,b:Mn}=_,Nn=x.mul(Mn,z),{px:Qn,py:An,pz:ri}=this;let hi=x.ZERO,Rn=x.ZERO,ki=x.ZERO,Ai=x.mul(Qn,Qn),ar=x.mul(An,An),Ri=x.mul(ri,ri),rr=x.mul(Qn,An);return rr=x.add(rr,rr),ki=x.mul(Qn,ri),ki=x.add(ki,ki),hi=x.mul(fn,ki),Rn=x.mul(Nn,Ri),Rn=x.add(hi,Rn),hi=x.sub(ar,Rn),Rn=x.add(ar,Rn),Rn=x.mul(hi,Rn),hi=x.mul(rr,hi),ki=x.mul(Nn,ki),Ri=x.mul(fn,Ri),rr=x.sub(Ai,Ri),rr=x.mul(fn,rr),rr=x.add(rr,ki),ki=x.add(Ai,Ai),Ai=x.add(ki,Ai),Ai=x.add(Ai,Ri),Ai=x.mul(Ai,rr),Rn=x.add(Rn,Ai),Ri=x.mul(An,ri),Ri=x.add(Ri,Ri),Ai=x.mul(Ri,rr),hi=x.sub(hi,Ai),ki=x.mul(Ri,ar),ki=x.add(ki,ki),ki=x.add(ki,ki),new St(hi,Rn,ki)}add(fn){pn(fn);const{px:Mn,py:Nn,pz:Qn}=this,{px:An,py:ri,pz:hi}=fn;let Rn=x.ZERO,ki=x.ZERO,Ai=x.ZERO;const ar=_.a,Ri=x.mul(_.b,z);let rr=x.mul(Mn,An),Qr=x.mul(Nn,ri),Cr=x.mul(Qn,hi),Co=x.add(Mn,Nn),oi=x.add(An,ri);Co=x.mul(Co,oi),oi=x.add(rr,Qr),Co=x.sub(Co,oi),oi=x.add(Mn,Qn);let Yn=x.add(An,hi);return oi=x.mul(oi,Yn),Yn=x.add(rr,Cr),oi=x.sub(oi,Yn),Yn=x.add(Nn,Qn),Rn=x.add(ri,hi),Yn=x.mul(Yn,Rn),Rn=x.add(Qr,Cr),Yn=x.sub(Yn,Rn),Ai=x.mul(ar,oi),Rn=x.mul(Ri,Cr),Ai=x.add(Rn,Ai),Rn=x.sub(Qr,Ai),Ai=x.add(Qr,Ai),ki=x.mul(Rn,Ai),Qr=x.add(rr,rr),Qr=x.add(Qr,rr),Cr=x.mul(ar,Cr),oi=x.mul(Ri,oi),Qr=x.add(Qr,Cr),Cr=x.sub(rr,Cr),Cr=x.mul(ar,Cr),oi=x.add(oi,Cr),rr=x.mul(Qr,oi),ki=x.add(ki,rr),rr=x.mul(Yn,oi),Rn=x.mul(Co,Rn),Rn=x.sub(Rn,rr),rr=x.mul(Co,Qr),Ai=x.mul(Yn,Ai),Ai=x.add(Ai,rr),new St(Rn,ki,Ai)}subtract(fn){return this.add(fn.negate())}is0(){return this.equals(St.ZERO)}wNAF(fn){return cn.wNAFCached(this,Wt,fn,Mn=>{const Nn=x.invertBatch(Mn.map(Qn=>Qn.pz));return Mn.map((Qn,An)=>Qn.toAffine(Nn[An])).map(St.fromAffine)})}multiplyUnsafe(fn){const Mn=St.ZERO;if(fn===So)return Mn;if(Dt(fn),fn===_r)return this;const{endo:Nn}=_;if(!Nn)return cn.unsafeLadder(this,fn);let{k1neg:Qn,k1:An,k2neg:ri,k2:hi}=Nn.splitScalar(fn),Rn=Mn,ki=Mn,Ai=this;for(;An>So||hi>So;)An&_r&&(Rn=Rn.add(Ai)),hi&_r&&(ki=ki.add(Ai)),Ai=Ai.double(),An>>=_r,hi>>=_r;return Qn&&(Rn=Rn.negate()),ri&&(ki=ki.negate()),ki=new St(x.mul(ki.px,Nn.beta),ki.py,ki.pz),Rn.add(ki)}multiply(fn){Dt(fn);let Nn,Qn,Mn=fn;const{endo:An}=_;if(An){const{k1neg:ri,k1:hi,k2neg:Rn,k2:ki}=An.splitScalar(Mn);let{p:Ai,f:ar}=this.wNAF(hi),{p:Ri,f:rr}=this.wNAF(ki);Ai=cn.constTimeNegate(ri,Ai),Ri=cn.constTimeNegate(Rn,Ri),Ri=new St(x.mul(Ri.px,An.beta),Ri.py,Ri.pz),Nn=Ai.add(Ri),Qn=ar.add(rr)}else{const{p:ri,f:hi}=this.wNAF(Mn);Nn=ri,Qn=hi}return St.normalizeZ([Nn,Qn])[0]}multiplyAndAddUnsafe(fn,Mn,Nn){const Qn=St.BASE,An=(hi,Rn)=>Rn!==So&&Rn!==_r&&hi.equals(Qn)?hi.multiply(Rn):hi.multiplyUnsafe(Rn),ri=An(this,Mn).add(An(fn,Nn));return ri.is0()?void 0:ri}toAffine(fn){const{px:Mn,py:Nn,pz:Qn}=this,An=this.is0();null==fn&&(fn=An?x.ONE:x.inv(Qn));const ri=x.mul(Mn,fn),hi=x.mul(Nn,fn),Rn=x.mul(Qn,fn);if(An)return{x:x.ZERO,y:x.ZERO};if(!x.eql(Rn,x.ONE))throw new Error("invZ was invalid");return{x:ri,y:hi}}isTorsionFree(){const{h:fn,isTorsionFree:Mn}=_;if(fn===_r)return!0;if(Mn)return Mn(St,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:fn,clearCofactor:Mn}=_;return fn===_r?this:Mn?Mn(St,this):this.multiplyUnsafe(_.h)}toRawBytes(fn=!0){return this.assertValidity(),X(St,this,fn)}toHex(fn=!0){return vo(this.toRawBytes(fn))}}St.BASE=new St(_.Gx,_.Gy,x.ONE),St.ZERO=new St(x.ZERO,x.ONE,x.ZERO);const Ht=_.nBitLength,cn=function ul(p,_){const x=(ce,ze)=>{const yt=ze.negate();return ce?yt:ze},X=ce=>({windows:Math.ceil(_/ce)+1,windowSize:2**(ce-1)});return{constTimeNegate:x,unsafeLadder(ce,ze){let yt=p.ZERO,Dt=ce;for(;ze>fo;)ze&Cs&&(yt=yt.add(Dt)),Dt=Dt.double(),ze>>=Cs;return yt},precomputeWindow(ce,ze){const{windows:yt,windowSize:Dt}=X(ze),Pt=[];let Wt=ce,pn=Wt;for(let St=0;St>=cn,Mn>Pt&&(Mn-=Ht,yt+=Cs);const Nn=fn,Qn=fn+Math.abs(Mn)-1,ri=Mn<0;0===Mn?pn=pn.add(x(kn%2!=0,ze[Nn])):Wt=Wt.add(x(ri,ze[Qn]))}return{p:Wt,f:pn}},wNAFCached(ce,ze,yt,Dt){const Pt=ce._WINDOW_SIZE||1;let Wt=ze.get(ce);return Wt||(Wt=this.precomputeWindow(ce,Pt),1!==Pt&&ze.set(ce,Dt(Wt))),this.wNAF(Pt,Wt,yt)}}}(St,_.endo?Math.ceil(Ht/2):Ht);return{CURVE:_,ProjectivePoint:St,normPrivateKeyToScalar:Pt,weierstrassEquation:ze,isWithinCurveOrder:yt}}({..._,toBytes(oi,Yn,ir){const dr=Yn.toAffine(),Jn=x.toBytes(dr.x),eo=Ar;return ir?eo(Uint8Array.from([Yn.hasEvenY()?2:3]),Jn):eo(Uint8Array.from([4]),Jn,x.toBytes(dr.y))},fromBytes(oi){const Yn=oi.length,ir=oi[0],dr=oi.subarray(1);if(Yn!==ce||2!==ir&&3!==ir){if(Yn===ze&&4===ir)return{x:x.fromBytes(dr.subarray(0,x.BYTES)),y:x.fromBytes(dr.subarray(x.BYTES,2*x.BYTES))};throw new Error(`Point of length ${Yn} was invalid. Expected ${ce} compressed bytes or ${ze} uncompressed bytes`)}{const Jn=hr(dr);if(!function yt(oi){return Sovo(Jr(oi,_.nByteLength));function kn(oi){return oi>X>>_r}const Mn=(oi,Yn,ir)=>hr(oi.slice(Yn,ir));class Nn{constructor(Yn,ir,dr){this.r=Yn,this.s=ir,this.recovery=dr,this.assertValidity()}static fromCompact(Yn){const ir=_.nByteLength;return Yn=Sr("compactSignature",Yn,2*ir),new Nn(Mn(Yn,0,ir),Mn(Yn,ir,2*ir))}static fromDER(Yn){const{r:ir,s:dr}=os.toSig(Sr("DER",Yn));return new Nn(ir,dr)}assertValidity(){if(!Ht(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Ht(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(Yn){return new Nn(this.r,this.s,Yn)}recoverPublicKey(Yn){const{r:ir,s:dr,recovery:Jn}=this,eo=ki(Sr("msgHash",Yn));if(null==Jn||![0,1,2,3].includes(Jn))throw new Error("recovery id invalid");const Io=2===Jn||3===Jn?ir+_.n:ir;if(Io>=x.ORDER)throw new Error("recovery id 2 or 3 invalid");const Xs=Wt.fromHex((1&Jn?"03":"02")+cn(Io)),Zo=Pt(Io),zr=Dt(-eo*Zo),vi=Dt(dr*Zo),kr=Wt.BASE.multiplyAndAddUnsafe(Xs,zr,vi);if(!kr)throw new Error("point at infinify");return kr.assertValidity(),kr}hasHighS(){return kn(this.s)}normalizeS(){return this.hasHighS()?new Nn(this.r,Dt(-this.s),this.recovery):this}toDERRawBytes(){return Us(this.toDERHex())}toDERHex(){return os.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Us(this.toCompactHex())}toCompactHex(){return cn(this.r)+cn(this.s)}}const Qn={isValidPrivateKey(oi){try{return pn(oi),!0}catch{return!1}},normPrivateKeyToScalar:pn,randomPrivateKey:()=>{const Yn=function Oo(p,_,x=!1){const X=(p=Sr("privateHash",p)).length,ce=ao(_).nByteLength+8;if(ce<24||X1024)throw new Error(`hashToPrivateScalar: expected ${ce}-1024 bytes of input, got ${X}`);return Ir(x?ts(p):hr(p),_-gr)+gr}(_.randomBytes(x.BYTES+8),X);return Jr(Yn,_.nByteLength)},precompute:(oi=8,Yn=Wt.BASE)=>(Yn._setWindowSize(oi),Yn.multiply(BigInt(3)),Yn)};function ri(oi){const Yn=oi instanceof Uint8Array,ir="string"==typeof oi,dr=(Yn||ir)&&oi.length;return Yn?dr===ce||dr===ze:ir?dr===2*ce||dr===2*ze:oi instanceof Wt}const Rn=_.bits2int||function(oi){const Yn=hr(oi),ir=8*oi.length-_.nBitLength;return ir>0?Yn>>BigInt(ir):Yn},ki=_.bits2int_modN||function(oi){return Dt(Rn(oi))},Ai=Ho(_.nBitLength);function ar(oi){if("bigint"!=typeof oi)throw new Error("bigint expected");if(!(So<=oi&&oiTs in ir))throw new Error("sign() legacy options not supported");const{hash:dr,randomBytes:Jn}=_;let{lowS:eo,prehash:Io,extraEntropy:mo}=ir;null==eo&&(eo=!0),oi=Sr("msgHash",oi),Io&&(oi=Sr("prehashed msgHash",dr(oi)));const Xs=ki(oi),Zo=pn(Yn),zr=[ar(Zo),ar(Xs)];if(null!=mo){const Ts=!0===mo?Jn(x.BYTES):mo;zr.push(Sr("extraEntropy",Ts,x.BYTES))}const vi=Ar(...zr),kr=Xs;return{seed:vi,k2sig:function to(Ts){const Uo=Rn(Ts);if(!Ht(Uo))return;const Ei=Pt(Uo),Zr=Wt.BASE.multiply(Uo).toAffine(),cs=Dt(Zr.x);if(cs===So)return;const Ys=Dt(Ei*Dt(kr+cs*Zo));if(Ys===So)return;let wc=(Zr.x===cs?0:2)|Number(Zr.y&_r),Il=Ys;return eo&&kn(Ys)&&(Il=function fn(oi){return kn(oi)?Dt(-oi):oi}(Ys),wc^=1),new Nn(cs,Il,wc)}}}(oi,Yn,ir);return ws(_.hash.outputLen,_.nByteLength,_.hmac)(dr,Jn)},verify:function Co(oi,Yn,ir,dr=Qr){const Jn=oi;if(Yn=Sr("msgHash",Yn),ir=Sr("publicKey",ir),"strict"in dr)throw new Error("options.strict was renamed to lowS");const{lowS:eo,prehash:Io}=dr;let mo,Xs;try{if("string"==typeof Jn||Jn instanceof Uint8Array)try{mo=Nn.fromDER(Jn)}catch(Zr){if(!(Zr instanceof os.Err))throw Zr;mo=Nn.fromCompact(Jn)}else{if("object"!=typeof Jn||"bigint"!=typeof Jn.r||"bigint"!=typeof Jn.s)throw new Error("PARSE");{const{r:Zr,s:cs}=Jn;mo=new Nn(Zr,cs)}}Xs=Wt.fromHex(ir)}catch(Zr){if("PARSE"===Zr.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(eo&&mo.hasHighS())return!1;Io&&(Yn=_.hash(Yn));const{r:Zo,s:zr}=mo,vi=ki(Yn),kr=Pt(zr),to=Dt(vi*kr),Ts=Dt(Zo*kr),Uo=Wt.BASE.multiplyAndAddUnsafe(Xs,to,Ts)?.toAffine();return!!Uo&&Dt(Uo.x)===Zo},ProjectivePoint:Wt,Signature:Nn,utils:Qn}}BigInt(4);class Xl extends hn{constructor(_,x){super(),this.finished=!1,this.destroyed=!1,bn.hash(_);const X=at(x);if(this.iHash=_.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const ce=this.blockLen,ze=new Uint8Array(ce);ze.set(X.length>ce?_.create().update(X).digest():X);for(let yt=0;ytnew Xl(p,_).update(x).digest();function po(p){return{hash:p,hmac:(_,...x)=>zi(p,_,function $t(...p){const _=new Uint8Array(p.reduce((X,ce)=>X+ce.length,0));let x=0;return p.forEach(X=>{if(!Kn(X))throw new Error("Uint8Array expected");_.set(X,x),x+=X.length}),_}(...x)),randomBytes:ui}}zi.create=(p,_)=>new Xl(p,_);const Ro=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),_o=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Na=BigInt(1),la=BigInt(2),Lo=(p,_)=>(p+_/la)/_;const ca=function rs(p,_,x=!1,X={}){if(p<=Li)throw new Error(`Expected Fp ORDER > 0, got ${p}`);const{nBitLength:ce,nByteLength:ze}=ao(p,_);if(ze>2048)throw new Error("Field lengths over 2048 bytes are not supported");const yt=function so(p){if(p%oa===ro){const _=(p+gr)/oa;return function(X,ce){const ze=X.pow(ce,_);if(!X.eql(X.sqr(ze),ce))throw new Error("Cannot find square root");return ze}}if(p%oo===Er){const _=(p-Er)/oo;return function(X,ce){const ze=X.mul(ce,Xo),yt=X.pow(ze,_),Dt=X.mul(ce,yt),Pt=X.mul(X.mul(Dt,Xo),yt),Wt=X.mul(Dt,X.sub(Pt,X.ONE));if(!X.eql(X.sqr(Wt),ce))throw new Error("Cannot find square root");return Wt}}return function sa(p){const _=(p-gr)/Xo;let x,X,ce;for(x=p-gr,X=0;x%Xo===Li;x/=Xo,X++);for(ce=Xo;ceIr(Pt,p),isValid:Pt=>{if("bigint"!=typeof Pt)throw new Error("Invalid field element: expected bigint, got "+typeof Pt);return Li<=Pt&&PtPt===Li,isOdd:Pt=>(Pt&gr)===gr,neg:Pt=>Ir(-Pt,p),eql:(Pt,Wt)=>Pt===Wt,sqr:Pt=>Ir(Pt*Pt,p),add:(Pt,Wt)=>Ir(Pt+Wt,p),sub:(Pt,Wt)=>Ir(Pt-Wt,p),mul:(Pt,Wt)=>Ir(Pt*Wt,p),pow:(Pt,Wt)=>function Oa(p,_,x){if(x 0");if(x===Li)return p.ONE;if(x===gr)return _;let X=p.ONE,ce=_;for(;x>Li;)x&gr&&(X=p.mul(X,ce)),ce=p.sqr(ce),x>>=gr;return X}(Dt,Pt,Wt),div:(Pt,Wt)=>Ir(Pt*Es(Wt,p),p),sqrN:Pt=>Pt*Pt,addN:(Pt,Wt)=>Pt+Wt,subN:(Pt,Wt)=>Pt-Wt,mulN:(Pt,Wt)=>Pt*Wt,inv:Pt=>Es(Pt,p),sqrt:X.sqrt||(Pt=>yt(Dt,Pt)),invertBatch:Pt=>function Qo(p,_){const x=new Array(_.length),X=_.reduce((ze,yt,Dt)=>p.is0(yt)?ze:(x[Dt]=ze,p.mul(ze,yt)),p.ONE),ce=p.inv(X);return _.reduceRight((ze,yt,Dt)=>p.is0(yt)?ze:(x[Dt]=p.mul(ze,x[Dt]),p.mul(ze,yt)),ce),x}(Dt,Pt),cmov:(Pt,Wt,pn)=>pn?Wt:Pt,toBytes:Pt=>x?Ii(Pt,ze):Jr(Pt,ze),fromBytes:Pt=>{if(Pt.length!==ze)throw new Error(`Fp.fromBytes: expected ${ze}, got ${Pt.length}`);return x?ts(Pt):hr(Pt)}});return Object.freeze(Dt)}(Ro,void 0,void 0,{sqrt:function dl(p){const _=Ro,x=BigInt(3),X=BigInt(6),ce=BigInt(11),ze=BigInt(22),yt=BigInt(23),Dt=BigInt(44),Pt=BigInt(88),Wt=p*p*p%_,pn=Wt*Wt*p%_,St=Eo(pn,x,_)*pn%_,Ht=Eo(St,x,_)*pn%_,cn=Eo(Ht,la,_)*Wt%_,kn=Eo(cn,ce,_)*cn%_,fn=Eo(kn,ze,_)*kn%_,Mn=Eo(fn,Dt,_)*fn%_,Nn=Eo(Mn,Pt,_)*Mn%_,Qn=Eo(Nn,Dt,_)*fn%_,An=Eo(Qn,x,_)*pn%_,ri=Eo(An,yt,_)*kn%_,hi=Eo(ri,X,_)*Wt%_,Rn=Eo(hi,la,_);if(!ca.eql(ca.sqr(Rn),p))throw new Error("Cannot find square root");return Rn}}),lo=function Ni(p,_){const x=X=>Ct({...p,...po(X)});return Object.freeze({...x(_),create:x})}({a:BigInt(0),b:BigInt(7),Fp:ca,n:_o,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:p=>{const _=_o,x=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),X=-Na*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),ze=x,yt=BigInt("0x100000000000000000000000000000000"),Dt=Lo(ze*p,_),Pt=Lo(-X*p,_);let Wt=Ir(p-Dt*x-Pt*ce,_),pn=Ir(-Dt*X-Pt*ze,_);const St=Wt>yt,Ht=pn>yt;if(St&&(Wt=_-Wt),Ht&&(pn=_-pn),Wt>yt||pn>yt)throw new Error("splitScalar: Endomorphism failed, k="+p);return{k1neg:St,k1:Wt,k2neg:Ht,k2:pn}}}},Gi);BigInt(0);var Ws=v(3813);const Hr=lo.ProjectivePoint,Gs=(0,Ws.Tq)(Ge);function Ya(p){return BigInt(`0x${function ve(p){if(!de(p))throw new Error("Uint8Array expected");let _="";for(let x=0;x{if(!Number.isSafeInteger(p)||p<0||p>2**32-1)throw new Error(`Invalid number=${p}. Should be from 0 to 2 ** 32 - 1`);const _=new Uint8Array(4);return be(_).setUint32(0,p,!1),_};class ne{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return be(this.pubHash).getUint32(0,!1)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){const _=this.privateKey;if(!_)throw new Error("No private key");return Gs.encode(this.serialize(this.versions.private,et(new Uint8Array([0]),_)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return Gs.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(_,x=Ks){if(W(_),8*_.length<128||8*_.length>512)throw new Error(`HDKey: wrong seed length=${_.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const X=mt(li,Bo,_);return new ne({versions:x,chainCode:X.slice(32),privateKey:X.slice(0,32)})}static fromExtendedKey(_,x=Ks){const X=Gs.decode(_),ce=be(X),ze=ce.getUint32(0,!1),yt={versions:x,depth:X[4],parentFingerprint:ce.getUint32(5,!1),index:ce.getUint32(9,!1),chainCode:X.slice(13,45)},Dt=X.slice(45),Pt=0===Dt[0];if(ze!==x[Pt?"private":"public"])throw new Error("Version mismatch");return new ne(Pt?{...yt,privateKey:Dt.slice(1)}:{...yt,publicKey:Dt})}static fromJSON(_){return ne.fromExtendedKey(_.xpriv)}constructor(_){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!_||"object"!=typeof _)throw new Error("HDKey.constructor must not be called directly");if(this.versions=_.versions||Ks,this.depth=_.depth||0,this.chainCode=_.chainCode,this.index=_.index||0,this.parentFingerprint=_.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(_.publicKey&&_.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(_.privateKey){if(!lo.utils.isValidPrivateKey(_.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof _.privateKey?_.privateKey:Ya(_.privateKey),this.privKeyBytes=function ha(p){return function Ve(p){if("string"!=typeof p)throw new Error("hex string expected, got "+typeof p);const _=p.length,x=_/2;if(_%2)throw new Error("padded hex string expected, got unpadded hex of length "+_);const X=new Uint8Array(x);for(let ce=0,ze=0;ce=Qi)throw new Error("Invalid index");"'"===ze[2]&&(yt+=Qi),X=X.deriveChild(yt)}return X}deriveChild(_){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let x=S(_);if(_>=Qi){const Dt=this.privateKey;if(!Dt)throw new Error("Could not derive hardened child key");x=et(new Uint8Array([0]),Dt,x)}else x=et(this.pubKey,x);const X=mt(li,this.chainCode,x),ce=Ya(X.slice(0,32)),ze=X.slice(32);if(!lo.utils.isValidPrivateKey(ce))throw new Error("Tweak bigger than curve order");const yt={versions:this.versions,chainCode:ze,depth:this.depth+1,parentFingerprint:this.fingerprint,index:_};try{if(this.privateKey){const Dt=Ir(this.privKey+ce,lo.CURVE.n);if(!lo.utils.isValidPrivateKey(Dt))throw new Error("The tweak was out of range or the resulted private key is invalid");yt.privateKey=Dt}else{const Dt=Hr.fromHex(this.pubKey).add(Hr.fromPrivateKey(ce));if(Dt.equals(Hr.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");yt.publicKey=Dt.toRawBytes(!0)}return new ne(yt)}catch{return this.deriveChild(_+1)}}sign(_){if(!this.privateKey)throw new Error("No privateKey set!");return W(_,32),lo.sign(_,this.privKey).toCompactRawBytes()}verify(_,x){if(W(_,32),W(x,64),!this.publicKey)throw new Error("No publicKey set!");let X;try{X=lo.Signature.fromCompact(x)}catch{return!1}return lo.verify(X,_,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(_,x){if(!this.chainCode)throw new Error("No chainCode set");return W(x,33),et(S(_),new Uint8Array([this.depth]),S(this.parentFingerprint),S(this.index),this.chainCode,x)}}},9673:(tn,Re,v)=>{"use strict";function u(ft){if(!Number.isSafeInteger(ft)||ft<0)throw new Error(`Wrong positive integer: ${ft}`)}function B(ft,...Ot){if(!function o(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("Expected Uint8Array");if(Ot.length>0&&!Ot.includes(ft.length))throw new Error(`Expected Uint8Array of length ${Ot}, not of length=${ft.length}`)}function W(ft){if("function"!=typeof ft||"function"!=typeof ft.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");u(ft.outputLen),u(ft.blockLen)}function ee(ft,Ot=!0){if(ft.destroyed)throw new Error("Hash instance has been destroyed");if(Ot&&ft.finished)throw new Error("Hash#digest() has already been called")}function re(ft,Ot){B(ft);const un=Ot.outputLen;if(ft.lengthan,kw:()=>Or,JB:()=>Fr});const F={number:u,bool:function y(ft){if("boolean"!=typeof ft)throw new Error(`Expected boolean, not ${ft}`)},bytes:B,hash:W,exists:ee,output:re},U="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;const be=ft=>new DataView(ft.buffer,ft.byteOffset,ft.byteLength),Te=(ft,Ot)=>ft<<32-Ot|ft>>>Ot;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Le(ft){if("string"==typeof ft&&(ft=function he(ft){if("string"!=typeof ft)throw new Error("utf8ToBytes expected string, got "+typeof ft);return new Uint8Array((new TextEncoder).encode(ft))}(ft)),!function de(ft){return ft instanceof Uint8Array||null!=ft&&"object"==typeof ft&&"Uint8Array"===ft.constructor.name}(ft))throw new Error("expected Uint8Array, got "+typeof ft);return ft}class It{clone(){return this._cloneInto()}}const Et={}.toString;function nn(ft){const Ot=bn=>ft().update(Le(bn)).digest(),un=ft();return Ot.outputLen=un.outputLen,Ot.blockLen=un.blockLen,Ot.create=()=>ft(),Ot}class di extends It{constructor(Ot,un){super(),this.finished=!1,this.destroyed=!1,W(Ot);const bn=Le(un);if(this.iHash=Ot.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const Tn=this.blockLen,Kn=new Uint8Array(Tn);Kn.set(bn.length>Tn?Ot.create().update(bn).digest():bn);for(let zn=0;znnew di(ft,Ot).update(un).digest();mt.create=(ft,Ot)=>new di(ft,Ot);class je extends It{constructor(Ot,un,bn,Tn){super(),this.blockLen=Ot,this.outputLen=un,this.padOffset=bn,this.isLE=Tn,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(Ot),this.view=be(this.buffer)}update(Ot){ee(this);const{view:un,buffer:bn,blockLen:Tn}=this,Kn=(Ot=Le(Ot)).length;for(let zn=0;znTn-zn&&(this.process(bn,0),zn=0);for(let Qe=zn;Qe>Tn&Kn),ii=Number(un&Kn),Bn=bn?0:4;ft.setUint32(Ot+(bn?4:0),zn,bn),ft.setUint32(Ot+Bn,ii,bn)})(bn,Tn-8,BigInt(8*this.length),Kn),this.process(bn,0);const ii=be(Ot),ci=this.outputLen;if(ci%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const Bn=ci/4,Ce=this.get();if(Bn>Ce.length)throw new Error("_sha2: outputLen bigger than state");for(let Qe=0;Qeft&Ot^~ft&un,Mt=(ft,Ot,un)=>ft&Ot^ft&un^Ot&un,we=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]),Oe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),me=new Uint32Array(64);class We extends je{constructor(){super(64,32,8,!1),this.A=0|Oe[0],this.B=0|Oe[1],this.C=0|Oe[2],this.D=0|Oe[3],this.E=0|Oe[4],this.F=0|Oe[5],this.G=0|Oe[6],this.H=0|Oe[7]}get(){const{A:Ot,B:un,C:bn,D:Tn,E:Kn,F:zn,G:ii,H:ci}=this;return[Ot,un,bn,Tn,Kn,zn,ii,ci]}set(Ot,un,bn,Tn,Kn,zn,ii,ci){this.A=0|Ot,this.B=0|un,this.C=0|bn,this.D=0|Tn,this.E=0|Kn,this.F=0|zn,this.G=0|ii,this.H=0|ci}process(Ot,un){for(let Qe=0;Qe<16;Qe++,un+=4)me[Qe]=Ot.getUint32(un,!1);for(let Qe=16;Qe<64;Qe++){const Ke=me[Qe-15],K=me[Qe-2],Ae=Te(Ke,7)^Te(Ke,18)^Ke>>>3,se=Te(K,17)^Te(K,19)^K>>>10;me[Qe]=se+me[Qe-7]+Ae+me[Qe-16]|0}let{A:bn,B:Tn,C:Kn,D:zn,E:ii,F:ci,G:Bn,H:Ce}=this;for(let Qe=0;Qe<64;Qe++){const K=Ce+(Te(ii,6)^Te(ii,11)^Te(ii,25))+Lt(ii,ci,Bn)+we[Qe]+me[Qe]|0,se=(Te(bn,2)^Te(bn,13)^Te(bn,22))+Mt(bn,Tn,Kn)|0;Ce=Bn,Bn=ci,ci=ii,ii=zn+K|0,zn=Kn,Kn=Tn,Tn=bn,bn=K+se|0}bn=bn+this.A|0,Tn=Tn+this.B|0,Kn=Kn+this.C|0,zn=zn+this.D|0,ii=ii+this.E|0,ci=ci+this.F|0,Bn=Bn+this.G|0,Ce=Ce+this.H|0,this.set(bn,Tn,Kn,zn,ii,ci,Bn,Ce)}roundClean(){me.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const xt=nn(()=>new We),ut=BigInt(2**32-1),Rt=BigInt(32);function wt(ft,Ot=!1){return Ot?{h:Number(ft&ut),l:Number(ft>>Rt&ut)}:{h:0|Number(ft>>Rt&ut),l:0|Number(ft&ut)}}const Cn_split=function mn(ft,Ot=!1){let un=new Uint32Array(ft.length),bn=new Uint32Array(ft.length);for(let Tn=0;Tnft>>>un,Cn_shrSL=(ft,Ot,un)=>ft<<32-un|Ot>>>un,Cn_rotrSH=(ft,Ot,un)=>ft>>>un|Ot<<32-un,Cn_rotrSL=(ft,Ot,un)=>ft<<32-un|Ot>>>un,Cn_rotrBH=(ft,Ot,un)=>ft<<64-un|Ot>>>un-32,Cn_rotrBL=(ft,Ot,un)=>ft>>>un-32|Ot<<64-un,Cn_add=function nt(ft,Ot,un,bn){const Tn=(Ot>>>0)+(bn>>>0);return{h:ft+un+(Tn/2**32|0)|0,l:0|Tn}},Cn_add3L=(ft,Ot,un)=>(ft>>>0)+(Ot>>>0)+(un>>>0),Cn_add3H=(ft,Ot,un,bn)=>Ot+un+bn+(ft/2**32|0)|0,Cn_add4L=(ft,Ot,un,bn)=>(ft>>>0)+(Ot>>>0)+(un>>>0)+(bn>>>0),Cn_add4H=(ft,Ot,un,bn,Tn)=>Ot+un+bn+Tn+(ft/2**32|0)|0,Cn_add5H=(ft,Ot,un,bn,Tn,Kn)=>Ot+un+bn+Tn+Kn+(ft/2**32|0)|0,Cn_add5L=(ft,Ot,un,bn,Tn)=>(ft>>>0)+(Ot>>>0)+(un>>>0)+(bn>>>0)+(Tn>>>0),[He,Be]=Cn_split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(ft=>BigInt(ft))),ye=new Uint32Array(80),Ye=new Uint32Array(80);class Gt extends je{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:Ot,Al:un,Bh:bn,Bl:Tn,Ch:Kn,Cl:zn,Dh:ii,Dl:ci,Eh:Bn,El:Ce,Fh:Qe,Fl:Ke,Gh:K,Gl:Ae,Hh:se,Hl:$e}=this;return[Ot,un,bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,se,$e]}set(Ot,un,bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,se,$e){this.Ah=0|Ot,this.Al=0|un,this.Bh=0|bn,this.Bl=0|Tn,this.Ch=0|Kn,this.Cl=0|zn,this.Dh=0|ii,this.Dl=0|ci,this.Eh=0|Bn,this.El=0|Ce,this.Fh=0|Qe,this.Fl=0|Ke,this.Gh=0|K,this.Gl=0|Ae,this.Hh=0|se,this.Hl=0|$e}process(Ot,un){for(let $t=0;$t<16;$t++,un+=4)ye[$t]=Ot.getUint32(un),Ye[$t]=Ot.getUint32(un+=4);for(let $t=16;$t<80;$t++){const hn=0|ye[$t-15],gn=0|Ye[$t-15],En=Cn_rotrSH(hn,gn,1)^Cn_rotrSH(hn,gn,8)^Cn_shrSH(hn,gn,7),xn=Cn_rotrSL(hn,gn,1)^Cn_rotrSL(hn,gn,8)^Cn_shrSL(hn,gn,7),Vn=0|ye[$t-2],Hn=0|Ye[$t-2],ui=Cn_rotrSH(Vn,Hn,19)^Cn_rotrBH(Vn,Hn,61)^Cn_shrSH(Vn,Hn,6),Oi=Cn_rotrSL(Vn,Hn,19)^Cn_rotrBL(Vn,Hn,61)^Cn_shrSL(Vn,Hn,6),ti=Cn_add4L(xn,Oi,Ye[$t-7],Ye[$t-16]),Wn=Cn_add4H(ti,En,ui,ye[$t-7],ye[$t-16]);ye[$t]=0|Wn,Ye[$t]=0|ti}let{Ah:bn,Al:Tn,Bh:Kn,Bl:zn,Ch:ii,Cl:ci,Dh:Bn,Dl:Ce,Eh:Qe,El:Ke,Fh:K,Fl:Ae,Gh:se,Gl:$e,Hh:vt,Hl:at}=this;for(let $t=0;$t<80;$t++){const hn=Cn_rotrSH(Qe,Ke,14)^Cn_rotrSH(Qe,Ke,18)^Cn_rotrBH(Qe,Ke,41),gn=Cn_rotrSL(Qe,Ke,14)^Cn_rotrSL(Qe,Ke,18)^Cn_rotrBL(Qe,Ke,41),En=Qe&K^~Qe&se,Vn=Cn_add5L(at,gn,Ke&Ae^~Ke&$e,Be[$t],Ye[$t]),Hn=Cn_add5H(Vn,vt,hn,En,He[$t],ye[$t]),ui=0|Vn,Oi=Cn_rotrSH(bn,Tn,28)^Cn_rotrBH(bn,Tn,34)^Cn_rotrBH(bn,Tn,39),ti=Cn_rotrSL(bn,Tn,28)^Cn_rotrBL(bn,Tn,34)^Cn_rotrBL(bn,Tn,39),Wn=bn&Kn^bn&ii^Kn&ii,Rr=Tn&zn^Tn&ci^zn&ci;vt=0|se,at=0|$e,se=0|K,$e=0|Ae,K=0|Qe,Ae=0|Ke,({h:Qe,l:Ke}=Cn_add(0|Bn,0|Ce,0|Hn,0|ui)),Bn=0|ii,Ce=0|ci,ii=0|Kn,ci=0|zn,Kn=0|bn,zn=0|Tn;const ho=Cn_add3L(ui,ti,Rr);bn=Cn_add3H(ho,Hn,Oi,Wn),Tn=0|ho}({h:bn,l:Tn}=Cn_add(0|this.Ah,0|this.Al,0|bn,0|Tn)),({h:Kn,l:zn}=Cn_add(0|this.Bh,0|this.Bl,0|Kn,0|zn)),({h:ii,l:ci}=Cn_add(0|this.Ch,0|this.Cl,0|ii,0|ci)),({h:Bn,l:Ce}=Cn_add(0|this.Dh,0|this.Dl,0|Bn,0|Ce)),({h:Qe,l:Ke}=Cn_add(0|this.Eh,0|this.El,0|Qe,0|Ke)),({h:K,l:Ae}=Cn_add(0|this.Fh,0|this.Fl,0|K,0|Ae)),({h:se,l:$e}=Cn_add(0|this.Gh,0|this.Gl,0|se,0|$e)),({h:vt,l:at}=Cn_add(0|this.Hh,0|this.Hl,0|vt,0|at)),this.set(bn,Tn,Kn,zn,ii,ci,Bn,Ce,Qe,Ke,K,Ae,se,$e,vt,at)}roundClean(){ye.fill(0),Ye.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const sn=nn(()=>new Gt);var ot=v(3813);const qe=ft=>"\u3042\u3044\u3053\u304f\u3057\u3093"===ft[0];function Ie(ft){if("string"!=typeof ft)throw new TypeError("Invalid mnemonic type: "+typeof ft);return ft.normalize("NFKD")}function lt(ft){const Ot=Ie(ft),un=Ot.split(" ");if(![12,15,18,21,24].includes(un.length))throw new Error("Invalid mnemonic");return{nfkd:Ot,words:un}}function Xt(ft){F.bytes(ft,16,20,24,28,32)}function an(ft,Ot=128){if(F.number(Ot),Ot%32!=0||Ot>256)throw new TypeError("Invalid entropy");return function Mi(ft,Ot){return Xt(ft),wr(Ot).encode(ft).join(qe(Ot)?"\u3000":" ")}(function yn(ft=32){if(U&&"function"==typeof U.getRandomValues)return U.getRandomValues(new Uint8Array(ft));throw new Error("crypto.getRandomValues must be defined")}(Ot/8),ft)}const li=ft=>{const Ot=8-ft.length/4;return new Uint8Array([xt(ft)[0]>>Ot<{if("string"!=typeof Ot)throw new Error(`Wordlist: non-string element: ${Ot}`)}),ot.Wp.chain(ot.Wp.checksum(1,li),ot.Wp.radix2(11,!0),ot.Wp.alphabet(ft))}function Fr(ft,Ot){try{!function Dr(ft,Ot){const{words:un}=lt(ft),bn=wr(Ot).decode(un);Xt(bn)}(ft,Ot)}catch{return!1}return!0}const bi=ft=>Ie(`mnemonic${ft}`);function Or(ft,Ot=""){return function Se(ft,Ot,un,bn){const{c:Tn,dkLen:Kn,DK:zn,PRF:ii,PRFSalt:ci}=function Ee(ft,Ot,un,bn){W(ft);const Tn=function Tt(ft,Ot){if(void 0!==Ot&&"[object Object]"!==Et.call(Ot))throw new Error("Options should be object or undefined");return Object.assign(ft,Ot)}({dkLen:32,asyncTick:10},bn),{c:Kn,dkLen:zn,asyncTick:ii}=Tn;if(u(Kn),u(zn),u(ii),Kn<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const ci=Le(Ot),Bn=Le(un),Ce=new Uint8Array(zn),Qe=mt.create(ft,ci),Ke=Qe._cloneInto().update(Bn);return{c:Kn,dkLen:zn,asyncTick:ii,DK:Ce,PRF:Qe,PRFSalt:Ke}}(ft,Ot,un,bn);let Bn;const Ce=new Uint8Array(4),Qe=be(Ce),Ke=new Uint8Array(ii.outputLen);for(let K=1,Ae=0;Ae{"use strict";v.d(Re,{p:()=>u});const u="abandon\nability\nable\nabout\nabove\nabsent\nabsorb\nabstract\nabsurd\nabuse\naccess\naccident\naccount\naccuse\nachieve\nacid\nacoustic\nacquire\nacross\nact\naction\nactor\nactress\nactual\nadapt\nadd\naddict\naddress\nadjust\nadmit\nadult\nadvance\nadvice\naerobic\naffair\nafford\nafraid\nagain\nage\nagent\nagree\nahead\naim\nair\nairport\naisle\nalarm\nalbum\nalcohol\nalert\nalien\nall\nalley\nallow\nalmost\nalone\nalpha\nalready\nalso\nalter\nalways\namateur\namazing\namong\namount\namused\nanalyst\nanchor\nancient\nanger\nangle\nangry\nanimal\nankle\nannounce\nannual\nanother\nanswer\nantenna\nantique\nanxiety\nany\napart\napology\nappear\napple\napprove\napril\narch\narctic\narea\narena\nargue\narm\narmed\narmor\narmy\naround\narrange\narrest\narrive\narrow\nart\nartefact\nartist\nartwork\nask\naspect\nassault\nasset\nassist\nassume\nasthma\nathlete\natom\nattack\nattend\nattitude\nattract\nauction\naudit\naugust\naunt\nauthor\nauto\nautumn\naverage\navocado\navoid\nawake\naware\naway\nawesome\nawful\nawkward\naxis\nbaby\nbachelor\nbacon\nbadge\nbag\nbalance\nbalcony\nball\nbamboo\nbanana\nbanner\nbar\nbarely\nbargain\nbarrel\nbase\nbasic\nbasket\nbattle\nbeach\nbean\nbeauty\nbecause\nbecome\nbeef\nbefore\nbegin\nbehave\nbehind\nbelieve\nbelow\nbelt\nbench\nbenefit\nbest\nbetray\nbetter\nbetween\nbeyond\nbicycle\nbid\nbike\nbind\nbiology\nbird\nbirth\nbitter\nblack\nblade\nblame\nblanket\nblast\nbleak\nbless\nblind\nblood\nblossom\nblouse\nblue\nblur\nblush\nboard\nboat\nbody\nboil\nbomb\nbone\nbonus\nbook\nboost\nborder\nboring\nborrow\nboss\nbottom\nbounce\nbox\nboy\nbracket\nbrain\nbrand\nbrass\nbrave\nbread\nbreeze\nbrick\nbridge\nbrief\nbright\nbring\nbrisk\nbroccoli\nbroken\nbronze\nbroom\nbrother\nbrown\nbrush\nbubble\nbuddy\nbudget\nbuffalo\nbuild\nbulb\nbulk\nbullet\nbundle\nbunker\nburden\nburger\nburst\nbus\nbusiness\nbusy\nbutter\nbuyer\nbuzz\ncabbage\ncabin\ncable\ncactus\ncage\ncake\ncall\ncalm\ncamera\ncamp\ncan\ncanal\ncancel\ncandy\ncannon\ncanoe\ncanvas\ncanyon\ncapable\ncapital\ncaptain\ncar\ncarbon\ncard\ncargo\ncarpet\ncarry\ncart\ncase\ncash\ncasino\ncastle\ncasual\ncat\ncatalog\ncatch\ncategory\ncattle\ncaught\ncause\ncaution\ncave\nceiling\ncelery\ncement\ncensus\ncentury\ncereal\ncertain\nchair\nchalk\nchampion\nchange\nchaos\nchapter\ncharge\nchase\nchat\ncheap\ncheck\ncheese\nchef\ncherry\nchest\nchicken\nchief\nchild\nchimney\nchoice\nchoose\nchronic\nchuckle\nchunk\nchurn\ncigar\ncinnamon\ncircle\ncitizen\ncity\ncivil\nclaim\nclap\nclarify\nclaw\nclay\nclean\nclerk\nclever\nclick\nclient\ncliff\nclimb\nclinic\nclip\nclock\nclog\nclose\ncloth\ncloud\nclown\nclub\nclump\ncluster\nclutch\ncoach\ncoast\ncoconut\ncode\ncoffee\ncoil\ncoin\ncollect\ncolor\ncolumn\ncombine\ncome\ncomfort\ncomic\ncommon\ncompany\nconcert\nconduct\nconfirm\ncongress\nconnect\nconsider\ncontrol\nconvince\ncook\ncool\ncopper\ncopy\ncoral\ncore\ncorn\ncorrect\ncost\ncotton\ncouch\ncountry\ncouple\ncourse\ncousin\ncover\ncoyote\ncrack\ncradle\ncraft\ncram\ncrane\ncrash\ncrater\ncrawl\ncrazy\ncream\ncredit\ncreek\ncrew\ncricket\ncrime\ncrisp\ncritic\ncrop\ncross\ncrouch\ncrowd\ncrucial\ncruel\ncruise\ncrumble\ncrunch\ncrush\ncry\ncrystal\ncube\nculture\ncup\ncupboard\ncurious\ncurrent\ncurtain\ncurve\ncushion\ncustom\ncute\ncycle\ndad\ndamage\ndamp\ndance\ndanger\ndaring\ndash\ndaughter\ndawn\nday\ndeal\ndebate\ndebris\ndecade\ndecember\ndecide\ndecline\ndecorate\ndecrease\ndeer\ndefense\ndefine\ndefy\ndegree\ndelay\ndeliver\ndemand\ndemise\ndenial\ndentist\ndeny\ndepart\ndepend\ndeposit\ndepth\ndeputy\nderive\ndescribe\ndesert\ndesign\ndesk\ndespair\ndestroy\ndetail\ndetect\ndevelop\ndevice\ndevote\ndiagram\ndial\ndiamond\ndiary\ndice\ndiesel\ndiet\ndiffer\ndigital\ndignity\ndilemma\ndinner\ndinosaur\ndirect\ndirt\ndisagree\ndiscover\ndisease\ndish\ndismiss\ndisorder\ndisplay\ndistance\ndivert\ndivide\ndivorce\ndizzy\ndoctor\ndocument\ndog\ndoll\ndolphin\ndomain\ndonate\ndonkey\ndonor\ndoor\ndose\ndouble\ndove\ndraft\ndragon\ndrama\ndrastic\ndraw\ndream\ndress\ndrift\ndrill\ndrink\ndrip\ndrive\ndrop\ndrum\ndry\nduck\ndumb\ndune\nduring\ndust\ndutch\nduty\ndwarf\ndynamic\neager\neagle\nearly\nearn\nearth\neasily\neast\neasy\necho\necology\neconomy\nedge\nedit\neducate\neffort\negg\neight\neither\nelbow\nelder\nelectric\nelegant\nelement\nelephant\nelevator\nelite\nelse\nembark\nembody\nembrace\nemerge\nemotion\nemploy\nempower\nempty\nenable\nenact\nend\nendless\nendorse\nenemy\nenergy\nenforce\nengage\nengine\nenhance\nenjoy\nenlist\nenough\nenrich\nenroll\nensure\nenter\nentire\nentry\nenvelope\nepisode\nequal\nequip\nera\nerase\nerode\nerosion\nerror\nerupt\nescape\nessay\nessence\nestate\neternal\nethics\nevidence\nevil\nevoke\nevolve\nexact\nexample\nexcess\nexchange\nexcite\nexclude\nexcuse\nexecute\nexercise\nexhaust\nexhibit\nexile\nexist\nexit\nexotic\nexpand\nexpect\nexpire\nexplain\nexpose\nexpress\nextend\nextra\neye\neyebrow\nfabric\nface\nfaculty\nfade\nfaint\nfaith\nfall\nfalse\nfame\nfamily\nfamous\nfan\nfancy\nfantasy\nfarm\nfashion\nfat\nfatal\nfather\nfatigue\nfault\nfavorite\nfeature\nfebruary\nfederal\nfee\nfeed\nfeel\nfemale\nfence\nfestival\nfetch\nfever\nfew\nfiber\nfiction\nfield\nfigure\nfile\nfilm\nfilter\nfinal\nfind\nfine\nfinger\nfinish\nfire\nfirm\nfirst\nfiscal\nfish\nfit\nfitness\nfix\nflag\nflame\nflash\nflat\nflavor\nflee\nflight\nflip\nfloat\nflock\nfloor\nflower\nfluid\nflush\nfly\nfoam\nfocus\nfog\nfoil\nfold\nfollow\nfood\nfoot\nforce\nforest\nforget\nfork\nfortune\nforum\nforward\nfossil\nfoster\nfound\nfox\nfragile\nframe\nfrequent\nfresh\nfriend\nfringe\nfrog\nfront\nfrost\nfrown\nfrozen\nfruit\nfuel\nfun\nfunny\nfurnace\nfury\nfuture\ngadget\ngain\ngalaxy\ngallery\ngame\ngap\ngarage\ngarbage\ngarden\ngarlic\ngarment\ngas\ngasp\ngate\ngather\ngauge\ngaze\ngeneral\ngenius\ngenre\ngentle\ngenuine\ngesture\nghost\ngiant\ngift\ngiggle\nginger\ngiraffe\ngirl\ngive\nglad\nglance\nglare\nglass\nglide\nglimpse\nglobe\ngloom\nglory\nglove\nglow\nglue\ngoat\ngoddess\ngold\ngood\ngoose\ngorilla\ngospel\ngossip\ngovern\ngown\ngrab\ngrace\ngrain\ngrant\ngrape\ngrass\ngravity\ngreat\ngreen\ngrid\ngrief\ngrit\ngrocery\ngroup\ngrow\ngrunt\nguard\nguess\nguide\nguilt\nguitar\ngun\ngym\nhabit\nhair\nhalf\nhammer\nhamster\nhand\nhappy\nharbor\nhard\nharsh\nharvest\nhat\nhave\nhawk\nhazard\nhead\nhealth\nheart\nheavy\nhedgehog\nheight\nhello\nhelmet\nhelp\nhen\nhero\nhidden\nhigh\nhill\nhint\nhip\nhire\nhistory\nhobby\nhockey\nhold\nhole\nholiday\nhollow\nhome\nhoney\nhood\nhope\nhorn\nhorror\nhorse\nhospital\nhost\nhotel\nhour\nhover\nhub\nhuge\nhuman\nhumble\nhumor\nhundred\nhungry\nhunt\nhurdle\nhurry\nhurt\nhusband\nhybrid\nice\nicon\nidea\nidentify\nidle\nignore\nill\nillegal\nillness\nimage\nimitate\nimmense\nimmune\nimpact\nimpose\nimprove\nimpulse\ninch\ninclude\nincome\nincrease\nindex\nindicate\nindoor\nindustry\ninfant\ninflict\ninform\ninhale\ninherit\ninitial\ninject\ninjury\ninmate\ninner\ninnocent\ninput\ninquiry\ninsane\ninsect\ninside\ninspire\ninstall\nintact\ninterest\ninto\ninvest\ninvite\ninvolve\niron\nisland\nisolate\nissue\nitem\nivory\njacket\njaguar\njar\njazz\njealous\njeans\njelly\njewel\njob\njoin\njoke\njourney\njoy\njudge\njuice\njump\njungle\njunior\njunk\njust\nkangaroo\nkeen\nkeep\nketchup\nkey\nkick\nkid\nkidney\nkind\nkingdom\nkiss\nkit\nkitchen\nkite\nkitten\nkiwi\nknee\nknife\nknock\nknow\nlab\nlabel\nlabor\nladder\nlady\nlake\nlamp\nlanguage\nlaptop\nlarge\nlater\nlatin\nlaugh\nlaundry\nlava\nlaw\nlawn\nlawsuit\nlayer\nlazy\nleader\nleaf\nlearn\nleave\nlecture\nleft\nleg\nlegal\nlegend\nleisure\nlemon\nlend\nlength\nlens\nleopard\nlesson\nletter\nlevel\nliar\nliberty\nlibrary\nlicense\nlife\nlift\nlight\nlike\nlimb\nlimit\nlink\nlion\nliquid\nlist\nlittle\nlive\nlizard\nload\nloan\nlobster\nlocal\nlock\nlogic\nlonely\nlong\nloop\nlottery\nloud\nlounge\nlove\nloyal\nlucky\nluggage\nlumber\nlunar\nlunch\nluxury\nlyrics\nmachine\nmad\nmagic\nmagnet\nmaid\nmail\nmain\nmajor\nmake\nmammal\nman\nmanage\nmandate\nmango\nmansion\nmanual\nmaple\nmarble\nmarch\nmargin\nmarine\nmarket\nmarriage\nmask\nmass\nmaster\nmatch\nmaterial\nmath\nmatrix\nmatter\nmaximum\nmaze\nmeadow\nmean\nmeasure\nmeat\nmechanic\nmedal\nmedia\nmelody\nmelt\nmember\nmemory\nmention\nmenu\nmercy\nmerge\nmerit\nmerry\nmesh\nmessage\nmetal\nmethod\nmiddle\nmidnight\nmilk\nmillion\nmimic\nmind\nminimum\nminor\nminute\nmiracle\nmirror\nmisery\nmiss\nmistake\nmix\nmixed\nmixture\nmobile\nmodel\nmodify\nmom\nmoment\nmonitor\nmonkey\nmonster\nmonth\nmoon\nmoral\nmore\nmorning\nmosquito\nmother\nmotion\nmotor\nmountain\nmouse\nmove\nmovie\nmuch\nmuffin\nmule\nmultiply\nmuscle\nmuseum\nmushroom\nmusic\nmust\nmutual\nmyself\nmystery\nmyth\nnaive\nname\nnapkin\nnarrow\nnasty\nnation\nnature\nnear\nneck\nneed\nnegative\nneglect\nneither\nnephew\nnerve\nnest\nnet\nnetwork\nneutral\nnever\nnews\nnext\nnice\nnight\nnoble\nnoise\nnominee\nnoodle\nnormal\nnorth\nnose\nnotable\nnote\nnothing\nnotice\nnovel\nnow\nnuclear\nnumber\nnurse\nnut\noak\nobey\nobject\noblige\nobscure\nobserve\nobtain\nobvious\noccur\nocean\noctober\nodor\noff\noffer\noffice\noften\noil\nokay\nold\nolive\nolympic\nomit\nonce\none\nonion\nonline\nonly\nopen\nopera\nopinion\noppose\noption\norange\norbit\norchard\norder\nordinary\norgan\norient\noriginal\norphan\nostrich\nother\noutdoor\nouter\noutput\noutside\noval\noven\nover\nown\nowner\noxygen\noyster\nozone\npact\npaddle\npage\npair\npalace\npalm\npanda\npanel\npanic\npanther\npaper\nparade\nparent\npark\nparrot\nparty\npass\npatch\npath\npatient\npatrol\npattern\npause\npave\npayment\npeace\npeanut\npear\npeasant\npelican\npen\npenalty\npencil\npeople\npepper\nperfect\npermit\nperson\npet\nphone\nphoto\nphrase\nphysical\npiano\npicnic\npicture\npiece\npig\npigeon\npill\npilot\npink\npioneer\npipe\npistol\npitch\npizza\nplace\nplanet\nplastic\nplate\nplay\nplease\npledge\npluck\nplug\nplunge\npoem\npoet\npoint\npolar\npole\npolice\npond\npony\npool\npopular\nportion\nposition\npossible\npost\npotato\npottery\npoverty\npowder\npower\npractice\npraise\npredict\nprefer\nprepare\npresent\npretty\nprevent\nprice\npride\nprimary\nprint\npriority\nprison\nprivate\nprize\nproblem\nprocess\nproduce\nprofit\nprogram\nproject\npromote\nproof\nproperty\nprosper\nprotect\nproud\nprovide\npublic\npudding\npull\npulp\npulse\npumpkin\npunch\npupil\npuppy\npurchase\npurity\npurpose\npurse\npush\nput\npuzzle\npyramid\nquality\nquantum\nquarter\nquestion\nquick\nquit\nquiz\nquote\nrabbit\nraccoon\nrace\nrack\nradar\nradio\nrail\nrain\nraise\nrally\nramp\nranch\nrandom\nrange\nrapid\nrare\nrate\nrather\nraven\nraw\nrazor\nready\nreal\nreason\nrebel\nrebuild\nrecall\nreceive\nrecipe\nrecord\nrecycle\nreduce\nreflect\nreform\nrefuse\nregion\nregret\nregular\nreject\nrelax\nrelease\nrelief\nrely\nremain\nremember\nremind\nremove\nrender\nrenew\nrent\nreopen\nrepair\nrepeat\nreplace\nreport\nrequire\nrescue\nresemble\nresist\nresource\nresponse\nresult\nretire\nretreat\nreturn\nreunion\nreveal\nreview\nreward\nrhythm\nrib\nribbon\nrice\nrich\nride\nridge\nrifle\nright\nrigid\nring\nriot\nripple\nrisk\nritual\nrival\nriver\nroad\nroast\nrobot\nrobust\nrocket\nromance\nroof\nrookie\nroom\nrose\nrotate\nrough\nround\nroute\nroyal\nrubber\nrude\nrug\nrule\nrun\nrunway\nrural\nsad\nsaddle\nsadness\nsafe\nsail\nsalad\nsalmon\nsalon\nsalt\nsalute\nsame\nsample\nsand\nsatisfy\nsatoshi\nsauce\nsausage\nsave\nsay\nscale\nscan\nscare\nscatter\nscene\nscheme\nschool\nscience\nscissors\nscorpion\nscout\nscrap\nscreen\nscript\nscrub\nsea\nsearch\nseason\nseat\nsecond\nsecret\nsection\nsecurity\nseed\nseek\nsegment\nselect\nsell\nseminar\nsenior\nsense\nsentence\nseries\nservice\nsession\nsettle\nsetup\nseven\nshadow\nshaft\nshallow\nshare\nshed\nshell\nsheriff\nshield\nshift\nshine\nship\nshiver\nshock\nshoe\nshoot\nshop\nshort\nshoulder\nshove\nshrimp\nshrug\nshuffle\nshy\nsibling\nsick\nside\nsiege\nsight\nsign\nsilent\nsilk\nsilly\nsilver\nsimilar\nsimple\nsince\nsing\nsiren\nsister\nsituate\nsix\nsize\nskate\nsketch\nski\nskill\nskin\nskirt\nskull\nslab\nslam\nsleep\nslender\nslice\nslide\nslight\nslim\nslogan\nslot\nslow\nslush\nsmall\nsmart\nsmile\nsmoke\nsmooth\nsnack\nsnake\nsnap\nsniff\nsnow\nsoap\nsoccer\nsocial\nsock\nsoda\nsoft\nsolar\nsoldier\nsolid\nsolution\nsolve\nsomeone\nsong\nsoon\nsorry\nsort\nsoul\nsound\nsoup\nsource\nsouth\nspace\nspare\nspatial\nspawn\nspeak\nspecial\nspeed\nspell\nspend\nsphere\nspice\nspider\nspike\nspin\nspirit\nsplit\nspoil\nsponsor\nspoon\nsport\nspot\nspray\nspread\nspring\nspy\nsquare\nsqueeze\nsquirrel\nstable\nstadium\nstaff\nstage\nstairs\nstamp\nstand\nstart\nstate\nstay\nsteak\nsteel\nstem\nstep\nstereo\nstick\nstill\nsting\nstock\nstomach\nstone\nstool\nstory\nstove\nstrategy\nstreet\nstrike\nstrong\nstruggle\nstudent\nstuff\nstumble\nstyle\nsubject\nsubmit\nsubway\nsuccess\nsuch\nsudden\nsuffer\nsugar\nsuggest\nsuit\nsummer\nsun\nsunny\nsunset\nsuper\nsupply\nsupreme\nsure\nsurface\nsurge\nsurprise\nsurround\nsurvey\nsuspect\nsustain\nswallow\nswamp\nswap\nswarm\nswear\nsweet\nswift\nswim\nswing\nswitch\nsword\nsymbol\nsymptom\nsyrup\nsystem\ntable\ntackle\ntag\ntail\ntalent\ntalk\ntank\ntape\ntarget\ntask\ntaste\ntattoo\ntaxi\nteach\nteam\ntell\nten\ntenant\ntennis\ntent\nterm\ntest\ntext\nthank\nthat\ntheme\nthen\ntheory\nthere\nthey\nthing\nthis\nthought\nthree\nthrive\nthrow\nthumb\nthunder\nticket\ntide\ntiger\ntilt\ntimber\ntime\ntiny\ntip\ntired\ntissue\ntitle\ntoast\ntobacco\ntoday\ntoddler\ntoe\ntogether\ntoilet\ntoken\ntomato\ntomorrow\ntone\ntongue\ntonight\ntool\ntooth\ntop\ntopic\ntopple\ntorch\ntornado\ntortoise\ntoss\ntotal\ntourist\ntoward\ntower\ntown\ntoy\ntrack\ntrade\ntraffic\ntragic\ntrain\ntransfer\ntrap\ntrash\ntravel\ntray\ntreat\ntree\ntrend\ntrial\ntribe\ntrick\ntrigger\ntrim\ntrip\ntrophy\ntrouble\ntruck\ntrue\ntruly\ntrumpet\ntrust\ntruth\ntry\ntube\ntuition\ntumble\ntuna\ntunnel\nturkey\nturn\nturtle\ntwelve\ntwenty\ntwice\ntwin\ntwist\ntwo\ntype\ntypical\nugly\numbrella\nunable\nunaware\nuncle\nuncover\nunder\nundo\nunfair\nunfold\nunhappy\nuniform\nunique\nunit\nuniverse\nunknown\nunlock\nuntil\nunusual\nunveil\nupdate\nupgrade\nuphold\nupon\nupper\nupset\nurban\nurge\nusage\nuse\nused\nuseful\nuseless\nusual\nutility\nvacant\nvacuum\nvague\nvalid\nvalley\nvalve\nvan\nvanish\nvapor\nvarious\nvast\nvault\nvehicle\nvelvet\nvendor\nventure\nvenue\nverb\nverify\nversion\nvery\nvessel\nveteran\nviable\nvibrant\nvicious\nvictory\nvideo\nview\nvillage\nvintage\nviolin\nvirtual\nvirus\nvisa\nvisit\nvisual\nvital\nvivid\nvocal\nvoice\nvoid\nvolcano\nvolume\nvote\nvoyage\nwage\nwagon\nwait\nwalk\nwall\nwalnut\nwant\nwarfare\nwarm\nwarrior\nwash\nwasp\nwaste\nwater\nwave\nway\nwealth\nweapon\nwear\nweasel\nweather\nweb\nwedding\nweekend\nweird\nwelcome\nwest\nwet\nwhale\nwhat\nwheat\nwheel\nwhen\nwhere\nwhip\nwhisper\nwide\nwidth\nwife\nwild\nwill\nwin\nwindow\nwine\nwing\nwink\nwinner\nwinter\nwire\nwisdom\nwise\nwish\nwitness\nwolf\nwoman\nwonder\nwood\nwool\nword\nwork\nworld\nworry\nworth\nwrap\nwreck\nwrestle\nwrist\nwrite\nwrong\nyard\nyear\nyellow\nyou\nyoung\nyouth\nzebra\nzero\nzone\nzoo".split("\n")},6568:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(4713),y=v(1860);const B=(0,u.A)(y.A,"Map")},7730:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>le});var o=v(1319);const W=function B(ue,nt){for(var zt=ue.length;zt--;)if((0,o.A)(ue[zt][0],nt))return zt;return-1};var re=Array.prototype.splice;function Me(ue){var nt=-1,zt=null==ue?0:ue.length;for(this.clear();++nt-1},Me.prototype.set=function be(ue,nt){var zt=this.__data__,Ut=W(zt,ue);return Ut<0?(++this.size,zt.push([ue,nt])):zt[Ut][1]=nt,this};const te=Me;var Le=v(6568);const Et=(0,v(4713).A)(Object,"create");var mt=Object.prototype.hasOwnProperty;var gt=Object.prototype.hasOwnProperty;function we(ue){var nt=-1,zt=null==ue?0:ue.length;for(this.clear();++nt{"use strict";v.d(Re,{A:()=>o});const o=v(1860).A.Symbol},6726:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>L});var o=v(6513),B=v(3744),W=v(9377),ee=v(8606),re=v(8885),F=Object.prototype.hasOwnProperty;const L=function U(fe,de){var be=(0,B.A)(fe),Te=!be&&(0,o.A)(fe),Me=!be&&!Te&&(0,W.A)(fe),te=!be&&!Te&&!Me&&(0,re.A)(fe),ve=be||Te||Me||te,tt=ve?function u(fe,de){for(var be=-1,Te=Array(fe);++be{"use strict";v.d(Re,{A:()=>ee});var u=v(1827),y=v(1319),B=Object.prototype.hasOwnProperty;const ee=function W(re,V,F){var U=re[V];(!B.call(re,V)||!(0,y.A)(U,F)||void 0===F&&!(V in re))&&(0,u.A)(re,V,F)}},1827:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(4746);const o=function y(B,W,ee){"__proto__"==W&&u.A?(0,u.A)(B,W,{configurable:!0,enumerable:!0,value:ee,writable:!0}):B[W]=ee}},5281:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>Me});var u=v(6944),y=Object.prototype,o=y.hasOwnProperty,B=y.toString,W=u.A?u.A.toStringTag:void 0;var F=Object.prototype.toString;var be=u.A?u.A.toStringTag:void 0;const Me=function Te(te){return null==te?void 0===te?"[object Undefined]":"[object Null]":be&&be in Object(te)?function ee(te){var ve=o.call(te,W),tt=te[W];try{te[W]=void 0;var bt=!0}catch{}var Ve=B.call(te);return bt&&(ve?te[W]=tt:delete te[W]),Ve}(te):function U(te){return F.call(te)}(te)}},778:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){return function(B){return o(B)}}},9750:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>W});const o=v(1860).A.Uint8Array,W=function B(ee){var re=new ee.constructor(ee.byteLength);return new o(re).set(new o(ee)),re}},9933:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(1860),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,W=o&&o.exports===y?u.A.Buffer:void 0,ee=W?W.allocUnsafe:void 0;const V=function re(F,U){if(U)return F.slice();var L=F.length,fe=ee?ee(L):new F.constructor(L);return F.copy(fe),fe}},4314:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});var u=v(9750);const o=function y(B,W){var ee=W?(0,u.A)(B.buffer):B.buffer;return new B.constructor(ee,B.byteOffset,B.length)}},4528:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){var W=-1,ee=o.length;for(B||(B=Array(ee));++W{"use strict";v.d(Re,{A:()=>B});var u=v(1984),y=v(1827);const B=function o(W,ee,re,V){var F=!re;re||(re={});for(var U=-1,L=ee.length;++U{"use strict";v.d(Re,{A:()=>o});var u=v(4713);const o=function(){try{var B=(0,u.A)(Object,"defineProperty");return B({},"",{}),B}catch{}}()},7133:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y="object"==typeof global&&global&&global.Object===Object&&global},4713:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>rt});var Xe,u=v(129),o=v(1860).A["__core-js_shared__"],W=(Xe=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+Xe:"";var V=v(554),F=v(8736),L=/^\[object .+?Constructor\]$/,Me=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ve=function te(Xe){return!(!(0,V.A)(Xe)||function ee(Xe){return!!W&&W in Xe}(Xe))&&((0,u.A)(Xe)?Me:L).test((0,F.A)(Xe))},rt=function Ve(Xe,oe){var he=function tt(Xe,oe){return Xe?.[oe]}(Xe,oe);return ve(he)?he:void 0}},8010:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});const o=(0,v(8992).A)(Object.getPrototypeOf,Object)},923:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(554),y=Object.create;const B=function(){function F(){}return function(U){if(!(0,u.A)(U))return{};if(y)return y(U);F.prototype=U;var L=new F;return F.prototype=void 0,L}}();var W=v(8010),ee=v(5776);const V=function re(F){return"function"!=typeof F.constructor||(0,ee.A)(F)?{}:B((0,W.A)(F))}},8606:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var y=/^(?:0|[1-9]\d*)$/;const B=function o(W,ee){var re=typeof W;return!!(ee=ee??9007199254740991)&&("number"==re||"symbol"!=re&&y.test(W))&&W>-1&&W%1==0&&W{"use strict";v.d(Re,{A:()=>o});var u=Object.prototype;const o=function y(B){var W=B&&B.constructor;return B===("function"==typeof W&&W.prototype||u)}},3340:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>re});var u=v(7133),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=y&&"object"==typeof module&&module&&!module.nodeType&&module,W=o&&o.exports===y&&u.A.process;const re=function(){try{return o&&o.require&&o.require("util").types||W&&W.binding&&W.binding("util")}catch{}}()},8992:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){return function(W){return o(B(W))}}},1860:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(7133),y="object"==typeof self&&self&&self.Object===Object&&self;const B=u.A||y||Function("return this")()},8736:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var y=Function.prototype.toString;const B=function o(W){if(null!=W){try{return y.call(W)}catch{}try{return W+""}catch{}}return""}},1319:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o,B){return o===B||o!=o&&B!=B}},7680:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){for(var B=-1,W=null==o?0:o.length,ee={};++B{"use strict";v.d(Re,{A:()=>U});var u=v(5281),y=v(2661);const W=function B(L){return(0,y.A)(L)&&"[object Arguments]"==(0,u.A)(L)};var ee=Object.prototype,re=ee.hasOwnProperty,V=ee.propertyIsEnumerable;const U=W(function(){return arguments}())?W:function(L){return(0,y.A)(L)&&re.call(L,"callee")&&!V.call(L,"callee")}},3744:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=Array.isArray},1287:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>B});var u=v(129),y=v(5481);const B=function o(W){return null!=W&&(0,y.A)(W.length)&&!(0,u.A)(W)}},9377:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>U});var u=v(1860),B="object"==typeof exports&&exports&&!exports.nodeType&&exports,W=B&&"object"==typeof module&&module&&!module.nodeType&&module,re=W&&W.exports===B?u.A.Buffer:void 0;const U=(re?re.isBuffer:void 0)||function y(){return!1}},129:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>V});var u=v(5281),y=v(554);const V=function re(F){if(!(0,y.A)(F))return!1;var U=(0,u.A)(F);return"[object Function]"==U||"[object GeneratorFunction]"==U||"[object AsyncFunction]"==U||"[object Proxy]"==U}},5481:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>o});const o=function y(B){return"number"==typeof B&&B>-1&&B%1==0&&B<=9007199254740991}},554:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){var B=typeof o;return null!=o&&("object"==B||"function"==B)}},2661:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>y});const y=function u(o){return null!=o&&"object"==typeof o}},8885:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>di});var u=v(5281),y=v(5481),o=v(2661),It={};It["[object Float32Array]"]=It["[object Float64Array]"]=It["[object Int8Array]"]=It["[object Int16Array]"]=It["[object Int32Array]"]=It["[object Uint8Array]"]=It["[object Uint8ClampedArray]"]=It["[object Uint16Array]"]=It["[object Uint32Array]"]=!0,It["[object Arguments]"]=It["[object Array]"]=It["[object ArrayBuffer]"]=It["[object Boolean]"]=It["[object DataView]"]=It["[object Date]"]=It["[object Error]"]=It["[object Function]"]=It["[object Map]"]=It["[object Number]"]=It["[object Object]"]=It["[object RegExp]"]=It["[object Set]"]=It["[object String]"]=It["[object WeakMap]"]=!1;var nn=v(778),Fn=v(3340),$n=Fn.A&&Fn.A.isTypedArray;const di=$n?(0,nn.A)($n):function Et(mt){return(0,o.A)(mt)&&(0,y.A)(mt.length)&&!!It[(0,u.A)(mt)]}},133:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>fe});var u=v(6726),y=v(554),o=v(5776);var re=Object.prototype.hasOwnProperty;const F=function V(de){if(!(0,y.A)(de))return function B(de){var be=[];if(null!=de)for(var Te in Object(de))be.push(Te);return be}(de);var be=(0,o.A)(de),Te=[];for(var Me in de)"constructor"==Me&&(be||!re.call(de,Me))||Te.push(Me);return Te};var U=v(1287);const fe=function L(de){return(0,U.A)(de)?(0,u.A)(de,!0):F(de)}},2401:(tn,Re,v)=>{"use strict";v.d(Re,{A:()=>zt});var u=v(7730),y=v(1827),o=v(1319);const W=function B(Ut,jt,On){(void 0!==On&&!(0,o.A)(Ut[jt],On)||void 0===On&&!(jt in Ut))&&(0,y.A)(Ut,jt,On)},F=function ee(Ut){return function(jt,On,Ln){for(var wi=-1,en=Object(jt),Cn=Ln(jt),He=Cn.length;He--;){var Be=Cn[Ut?He:++wi];if(!1===On(en[Be],Be,en))break}return jt}}();var U=v(9933),L=v(4314),fe=v(4528),de=v(923),be=v(6513),Te=v(3744),Me=v(1287),te=v(2661);var bt=v(9377),Ve=v(129),rt=v(554),Xe=v(5281),oe=v(8010),It=Function.prototype.toString,Et=Object.prototype.hasOwnProperty,Tt=It.call(Object);var $n=v(8885);const di=function yn(Ut,jt){if(("constructor"!==jt||"function"!=typeof Ut[jt])&&"__proto__"!=jt)return Ut[jt]};var mt=v(7517),Ee=v(133);const Ne=function gt(Ut,jt,On,Ln,wi,en,Cn){var He=di(Ut,On),Be=di(jt,On),ye=Cn.get(Be);if(ye)W(Ut,On,ye);else{var Ye=en?en(He,Be,On+"",Ut,jt,Cn):void 0,Gt=void 0===Ye;if(Gt){var Pn=(0,Te.A)(Be),yi=!Pn&&(0,bt.A)(Be),Ti=!Pn&&!yi&&(0,$n.A)(Be);Ye=Be,Pn||yi||Ti?(0,Te.A)(He)?Ye=He:function ve(Ut){return(0,te.A)(Ut)&&(0,Me.A)(Ut)}(He)?Ye=(0,fe.A)(He):yi?(Gt=!1,Ye=(0,U.A)(Be,!0)):Ti?(Gt=!1,Ye=(0,L.A)(Be,!0)):Ye=[]:function nn(Ut){if(!(0,te.A)(Ut)||"[object Object]"!=(0,Xe.A)(Ut))return!1;var jt=(0,oe.A)(Ut);if(null===jt)return!0;var On=Et.call(jt,"constructor")&&jt.constructor;return"function"==typeof On&&On instanceof On&&It.call(On)==Tt}(Be)||(0,be.A)(Be)?(Ye=He,(0,be.A)(He)?Ye=function J(Ut){return(0,mt.A)(Ut,(0,Ee.A)(Ut))}(He):(!(0,rt.A)(He)||(0,Ve.A)(He))&&(Ye=(0,de.A)(Be))):Gt=!1}Gt&&(Cn.set(Be,Ye),wi(Ye,Be,Ln,en,Cn),Cn.delete(Be)),W(Ut,On,Ye)}},je=function Ze(Ut,jt,On,Ln,wi){Ut!==jt&&F(jt,function(en,Cn){if(wi||(wi=new u.A),(0,rt.A)(en))Ne(Ut,jt,Cn,On,Ze,Ln,wi);else{var He=Ln?Ln(di(Ut,Cn),en,Cn+"",Ut,jt,wi):void 0;void 0===He&&(He=en),W(Ut,Cn,He)}},Ee.A)},Mt=function Lt(Ut){return Ut};var me=Math.max;const xe=function xt(Ut){return function(){return Ut}};var ut=v(4746),Zt=Date.now;const dt=function _e(Ut){var jt=0,On=0;return function(){var Ln=Zt(),wi=16-(Ln-On);if(On=Ln,wi>0){if(++jt>=800)return arguments[0]}else jt=0;return Ut.apply(void 0,arguments)}}(ut.A?function(Ut,jt){return(0,ut.A)(Ut,"toString",{configurable:!0,enumerable:!1,value:xe(jt),writable:!0})}:Mt),Q=function rn(Ut,jt){return dt(function We(Ut,jt,On){return jt=me(void 0===jt?Ut.length-1:jt,0),function(){for(var Ln=arguments,wi=-1,en=me(Ln.length-jt,0),Cn=Array(en);++wi1?On[wi-1]:void 0,Cn=wi>2?On[2]:void 0;for(en=Ut.length>3&&"function"==typeof en?(wi--,en):void 0,Cn&&function N(Ut,jt,On){if(!(0,rt.A)(On))return!1;var Ln=typeof jt;return!!("number"==Ln?(0,Me.A)(On)&&(0,T.A)(jt,On.length):"string"==Ln&&jt in On)&&(0,o.A)(On[jt],Ut)}(On[0],On[1],Cn)&&(en=wi<3?void 0:en,wi=1),jt=Object(jt);++Ln{"use strict";v.d(Re,{lo:()=>nd,pC:()=>Ba,Bq:()=>Cc,dq:()=>vr,lG:()=>Is,sh:()=>nl,Qe:()=>xf});var u={};v.r(u),v.d(u,{OG:()=>N,My:()=>Pe,Ph:()=>Rt,lX:()=>wt,Id:()=>Je,fg:()=>ue,qj:()=>_e,aT:()=>ut,lq:()=>mn,z:()=>ni,Q5:()=>zt});var y=v(467);function o(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`Wrong positive integer: ${h}`)}function W(h,...m){if(!(h instanceof Uint8Array))throw new Error("Expected Uint8Array");if(m.length>0&&!m.includes(h.length))throw new Error(`Expected Uint8Array of length ${m}, not of length=${h.length}`)}function re(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")}const L="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,fe=h=>h instanceof Uint8Array,Te=h=>new DataView(h.buffer,h.byteOffset,h.byteLength),Me=(h,m)=>h<<32-m|h>>>m;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function he(h){if("string"==typeof h&&(h=function oe(h){if("string"!=typeof h)throw new Error("utf8ToBytes expected string, got "+typeof h);return new Uint8Array((new TextEncoder).encode(h))}(h)),!fe(h))throw new Error("expected Uint8Array, got "+typeof h);return h}class et{clone(){return this._cloneInto()}}function Tt(h){const m=I=>h().update(he(I)).digest(),b=h();return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=()=>h(),m}function $n(h=32){if(L&&"function"==typeof L.getRandomValues)return L.getRandomValues(new Uint8Array(h));throw new Error("crypto.getRandomValues must be defined")}class di extends et{constructor(m,b,I,P){super(),this.blockLen=m,this.outputLen=b,this.padOffset=I,this.isLE=P,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(m),this.view=Te(this.buffer)}update(m){re(this);const{view:b,buffer:I,blockLen:P}=this,G=(m=he(m)).length;for(let ae=0;aeP-ae&&(this.process(I,0),ae=0);for(let pt=ae;pt>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)})(I,P-8,BigInt(8*this.length),G),this.process(I,0);const pe=Te(m),ke=this.outputLen;if(ke%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const it=ke/4,ht=this.get();if(it>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pth&m^~h&b,Ee=(h,m,b)=>h&m^h&b^m&b,J=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]),Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),gt=new Uint32Array(64);class Ne extends di{constructor(){super(64,32,8,!1),this.A=0|Se[0],this.B=0|Se[1],this.C=0|Se[2],this.D=0|Se[3],this.E=0|Se[4],this.F=0|Se[5],this.G=0|Se[6],this.H=0|Se[7]}get(){const{A:m,B:b,C:I,D:P,E:G,F:ae,G:pe,H:ke}=this;return[m,b,I,P,G,ae,pe,ke]}set(m,b,I,P,G,ae,pe,ke){this.A=0|m,this.B=0|b,this.C=0|I,this.D=0|P,this.E=0|G,this.F=0|ae,this.G=0|pe,this.H=0|ke}process(m,b){for(let pt=0;pt<16;pt++,b+=4)gt[pt]=m.getUint32(b,!1);for(let pt=16;pt<64;pt++){const Jt=gt[pt-15],on=gt[pt-2],Kt=Me(Jt,7)^Me(Jt,18)^Jt>>>3,Ft=Me(on,17)^Me(on,19)^on>>>10;gt[pt]=Ft+gt[pt-7]+Kt+gt[pt-16]|0}let{A:I,B:P,C:G,D:ae,E:pe,F:ke,G:it,H:ht}=this;for(let pt=0;pt<64;pt++){const on=ht+(Me(pe,6)^Me(pe,11)^Me(pe,25))+mt(pe,ke,it)+J[pt]+gt[pt]|0,Ft=(Me(I,2)^Me(I,13)^Me(I,22))+Ee(I,P,G)|0;ht=it,it=ke,ke=pe,pe=ae+on|0,ae=G,G=P,P=I,I=on+Ft|0}I=I+this.A|0,P=P+this.B|0,G=G+this.C|0,ae=ae+this.D|0,pe=pe+this.E|0,ke=ke+this.F|0,it=it+this.G|0,ht=ht+this.H|0,this.set(I,P,G,ae,pe,ke,it,ht)}roundClean(){gt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const je=Tt(()=>new Ne),we=(BigInt(0),BigInt(1)),Oe=BigInt(2),me=h=>h instanceof Uint8Array,We=Array.from({length:256},(h,m)=>m.toString(16).padStart(2,"0"));function Pe(h){if(!me(h))throw new Error("Uint8Array expected");let m="";for(let b=0;bI+P.length,0));let b=0;return h.forEach(I=>{if(!me(I))throw new Error("Uint8Array expected");m.set(I,b),b+=I.length}),m}const N=h=>(Oe<new Uint8Array(h),le=h=>Uint8Array.from(h);function ue(h,m,b){if("number"!=typeof h||h<2)throw new Error("hashLen must be a number");if("number"!=typeof m||m<2)throw new Error("qByteLen must be a number");if("function"!=typeof b)throw new Error("hmacFn must be a function");let I=$(h),P=$(h),G=0;const ae=()=>{I.fill(1),P.fill(0),G=0},pe=(...pt)=>b(P,I,...pt),ke=(pt=$())=>{P=pe(le([0]),pt),I=pe(),0!==pt.length&&(P=pe(le([1]),pt),I=pe())},it=()=>{if(G++>=1e3)throw new Error("drbg: tried 1000 values");let pt=0;const Jt=[];for(;pt{let on;for(ae(),ke(pt);!(on=Jt(it()));)ke();return ae(),on}}const nt={bigint:h=>"bigint"==typeof h,function:h=>"function"==typeof h,boolean:h=>"boolean"==typeof h,string:h=>"string"==typeof h,stringOrUint8Array:h=>"string"==typeof h||h instanceof Uint8Array,isSafeInteger:h=>Number.isSafeInteger(h),array:h=>Array.isArray(h),field:(h,m)=>m.Fp.isValid(h),hash:h=>"function"==typeof h&&Number.isSafeInteger(h.outputLen)};function zt(h,m,b={}){const I=(P,G,ae)=>{const pe=nt[G];if("function"!=typeof pe)throw new Error(`Invalid validator "${G}", expected function`);const ke=h[P];if(!(ae&&void 0===ke||pe(ke,h)))throw new Error(`Invalid param ${String(P)}=${ke} (${typeof ke}), expected ${G}`)};for(const[P,G]of Object.entries(m))I(P,G,!1);for(const[P,G]of Object.entries(b))I(P,G,!0);return h}const Ut=BigInt(0),jt=BigInt(1),On=BigInt(2),Ln=BigInt(3),wi=BigInt(4),en=BigInt(5),Cn=BigInt(8);function ye(h,m){const b=h%m;return b>=Ut?b:m+b}function Ye(h,m,b){if(b<=Ut||m 0");if(b===jt)return Ut;let I=jt;for(;m>Ut;)m&jt&&(I=I*h%b),h=h*h%b,m>>=jt;return I}function Gt(h,m,b){let I=h;for(;m-- >Ut;)I*=I,I%=b;return I}function Pn(h,m){if(h===Ut||m<=Ut)throw new Error(`invert: expected positive integers, got n=${h} mod=${m}`);let b=ye(h,m),I=m,P=Ut,G=jt,ae=jt,pe=Ut;for(;b!==Ut;){const it=I/b,ht=I%b,pt=P-ae*it,Jt=G-pe*it;I=b,b=ht,P=ae,G=pe,ae=pt,pe=Jt}if(I!==jt)throw new Error("invert: does not exist");return ye(P,m)}BigInt(9),BigInt(16);const At=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function lt(h,m){const b=void 0!==m?m:h.toString(2).length;return{nBitLength:b,nByteLength:Math.ceil(b/8)}}function Dr(h){if("bigint"!=typeof h)throw new Error("field order must be bigint");const m=h.toString(2).length;return Math.ceil(m/8)}function Mi(h){const m=Dr(h);return m+Math.ceil(m/2)}class bi extends et{constructor(m,b){super(),this.finished=!1,this.destroyed=!1,function ee(h){if("function"!=typeof h||"function"!=typeof h.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");o(h.outputLen),o(h.blockLen)}(m);const I=he(b);if(this.iHash=m.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const P=this.blockLen,G=new Uint8Array(P);G.set(I.length>P?m.create().update(I).digest():I);for(let ae=0;aenew bi(h,m).update(b).digest();Kr.create=(h,m)=>new bi(h,m);const Or=BigInt(0),ft=BigInt(1);function un(h){return function st(h){zt(h,At.reduce((I,P)=>(I[P]="function",I),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(h.Fp),zt(h,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...lt(h.n,h.nBitLength),...h,p:h.Fp.ORDER})}const{Ph:Tn,aT:Kn}=u,zn={Err:class extends Error{constructor(m=""){super(m)}},_parseInt(h){const{Err:m}=zn;if(h.length<2||2!==h[0])throw new m("Invalid signature integer tag");const b=h[1],I=h.subarray(2,b+2);if(!b||I.length!==b)throw new m("Invalid signature integer: wrong length");if(128&I[0])throw new m("Invalid signature integer: negative");if(0===I[0]&&!(128&I[1]))throw new m("Invalid signature integer: unnecessary leading zero");return{d:Tn(I),l:h.subarray(b+2)}},toSig(h){const{Err:m}=zn,b="string"==typeof h?Kn(h):h;if(!(b instanceof Uint8Array))throw new Error("ui8a expected");let I=b.length;if(I<2||48!=b[0])throw new m("Invalid signature tag");if(b[1]!==I-2)throw new m("Invalid signature: incorrect length");const{d:P,l:G}=zn._parseInt(b.subarray(2)),{d:ae,l:pe}=zn._parseInt(G);if(pe.length)throw new m("Invalid signature: left bytes after parsing");return{r:P,s:ae}},hexFromSig(h){const m=it=>8&Number.parseInt(it[0],16)?"00"+it:it,b=it=>{const ht=it.toString(16);return 1&ht.length?`0${ht}`:ht},I=m(b(h.s)),P=m(b(h.r)),G=I.length/2,ae=P.length/2,pe=b(G),ke=b(ae);return`30${b(ae+G+4)}02${ke}${P}02${pe}${I}`}},ii=BigInt(0),ci=BigInt(1),Ce=(BigInt(2),BigInt(3));function Ae(h){const m=function K(h){const m=un(h);return zt(m,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...m})}(h),{Fp:b,n:I}=m,P=b.BYTES+1,G=2*b.BYTES+1;function pe(Gn){return ye(Gn,I)}function ke(Gn){return Pn(Gn,I)}const{ProjectivePoint:it,normPrivateKeyToScalar:ht,weierstrassEquation:pt,isWithinCurveOrder:Jt}=function Ke(h){const m=function bn(h){const m=un(h);zt(m,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:b,Fp:I,a:P}=m;if(b){if(!I.eql(P,I.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof b||"bigint"!=typeof b.beta||"function"!=typeof b.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...m})}(h),{Fp:b}=m,I=m.toBytes||((Kt,Ft,Vt)=>{const dn=Ft.toAffine();return Je(Uint8Array.from([4]),b.toBytes(dn.x),b.toBytes(dn.y))}),P=m.fromBytes||(Kt=>{const Ft=Kt.subarray(1);return{x:b.fromBytes(Ft.subarray(0,b.BYTES)),y:b.fromBytes(Ft.subarray(b.BYTES,2*b.BYTES))}});function G(Kt){const{a:Ft,b:Vt}=m,dn=b.sqr(Kt),vn=b.mul(dn,Kt);return b.add(b.add(vn,b.mul(Kt,Ft)),Vt)}if(!b.eql(b.sqr(m.Gy),G(m.Gx)))throw new Error("bad generator point: equation left != right");function ae(Kt){return"bigint"==typeof Kt&&iib.eql(Un,b.ZERO);return vn(Vt)&&vn(dn)?pt.ZERO:new pt(Vt,dn,b.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Ft){const Vt=b.invertBatch(Ft.map(dn=>dn.pz));return Ft.map((dn,vn)=>dn.toAffine(Vt[vn])).map(pt.fromAffine)}static fromHex(Ft){const Vt=pt.fromAffine(P(_e("pointHex",Ft)));return Vt.assertValidity(),Vt}static fromPrivateKey(Ft){return pt.BASE.multiply(ke(Ft))}_setWindowSize(Ft){this._WINDOW_SIZE=Ft,it.delete(this)}assertValidity(){if(this.is0()){if(m.allowInfinityPoint&&!b.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Ft,y:Vt}=this.toAffine();if(!b.isValid(Ft)||!b.isValid(Vt))throw new Error("bad point: x or y not FE");const dn=b.sqr(Vt),vn=G(Ft);if(!b.eql(dn,vn))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Ft}=this.toAffine();if(b.isOdd)return!b.isOdd(Ft);throw new Error("Field doesn't support isOdd")}equals(Ft){ht(Ft);const{px:Vt,py:dn,pz:vn}=this,{px:Un,py:Xn,pz:Si}=Ft,qn=b.eql(b.mul(Vt,Si),b.mul(Un,vn)),_i=b.eql(b.mul(dn,Si),b.mul(Xn,vn));return qn&&_i}negate(){return new pt(this.px,b.neg(this.py),this.pz)}double(){const{a:Ft,b:Vt}=m,dn=b.mul(Vt,Ce),{px:vn,py:Un,pz:Xn}=this;let Si=b.ZERO,qn=b.ZERO,_i=b.ZERO,Di=b.mul(vn,vn),Ji=b.mul(Un,Un),Vi=b.mul(Xn,Xn),ji=b.mul(vn,Un);return ji=b.add(ji,ji),_i=b.mul(vn,Xn),_i=b.add(_i,_i),Si=b.mul(Ft,_i),qn=b.mul(dn,Vi),qn=b.add(Si,qn),Si=b.sub(Ji,qn),qn=b.add(Ji,qn),qn=b.mul(Si,qn),Si=b.mul(ji,Si),_i=b.mul(dn,_i),Vi=b.mul(Ft,Vi),ji=b.sub(Di,Vi),ji=b.mul(Ft,ji),ji=b.add(ji,_i),_i=b.add(Di,Di),Di=b.add(_i,Di),Di=b.add(Di,Vi),Di=b.mul(Di,ji),qn=b.add(qn,Di),Vi=b.mul(Un,Xn),Vi=b.add(Vi,Vi),Di=b.mul(Vi,ji),Si=b.sub(Si,Di),_i=b.mul(Vi,Ji),_i=b.add(_i,_i),_i=b.add(_i,_i),new pt(Si,qn,_i)}add(Ft){ht(Ft);const{px:Vt,py:dn,pz:vn}=this,{px:Un,py:Xn,pz:Si}=Ft;let qn=b.ZERO,_i=b.ZERO,Di=b.ZERO;const Ji=m.a,Vi=b.mul(m.b,Ce);let ji=b.mul(Vt,Un),pr=b.mul(dn,Xn),mr=b.mul(vn,Si),Nr=b.add(Vt,dn),Gn=b.add(Un,Xn);Nr=b.mul(Nr,Gn),Gn=b.add(ji,pr),Nr=b.sub(Nr,Gn),Gn=b.add(Vt,vn);let si=b.add(Un,Si);return Gn=b.mul(Gn,si),si=b.add(ji,mr),Gn=b.sub(Gn,si),si=b.add(dn,vn),qn=b.add(Xn,Si),si=b.mul(si,qn),qn=b.add(pr,mr),si=b.sub(si,qn),Di=b.mul(Ji,Gn),qn=b.mul(Vi,mr),Di=b.add(qn,Di),qn=b.sub(pr,Di),Di=b.add(pr,Di),_i=b.mul(qn,Di),pr=b.add(ji,ji),pr=b.add(pr,ji),mr=b.mul(Ji,mr),Gn=b.mul(Vi,Gn),pr=b.add(pr,mr),mr=b.sub(ji,mr),mr=b.mul(Ji,mr),Gn=b.add(Gn,mr),ji=b.mul(pr,Gn),_i=b.add(_i,ji),ji=b.mul(si,Gn),qn=b.mul(Nr,qn),qn=b.sub(qn,ji),ji=b.mul(Nr,pr),Di=b.mul(si,Di),Di=b.add(Di,ji),new pt(qn,_i,Di)}subtract(Ft){return this.add(Ft.negate())}is0(){return this.equals(pt.ZERO)}wNAF(Ft){return on.wNAFCached(this,it,Ft,Vt=>{const dn=b.invertBatch(Vt.map(vn=>vn.pz));return Vt.map((vn,Un)=>vn.toAffine(dn[Un])).map(pt.fromAffine)})}multiplyUnsafe(Ft){const Vt=pt.ZERO;if(Ft===ii)return Vt;if(pe(Ft),Ft===ci)return this;const{endo:dn}=m;if(!dn)return on.unsafeLadder(this,Ft);let{k1neg:vn,k1:Un,k2neg:Xn,k2:Si}=dn.splitScalar(Ft),qn=Vt,_i=Vt,Di=this;for(;Un>ii||Si>ii;)Un&ci&&(qn=qn.add(Di)),Si&ci&&(_i=_i.add(Di)),Di=Di.double(),Un>>=ci,Si>>=ci;return vn&&(qn=qn.negate()),Xn&&(_i=_i.negate()),_i=new pt(b.mul(_i.px,dn.beta),_i.py,_i.pz),qn.add(_i)}multiply(Ft){pe(Ft);let dn,vn,Vt=Ft;const{endo:Un}=m;if(Un){const{k1neg:Xn,k1:Si,k2neg:qn,k2:_i}=Un.splitScalar(Vt);let{p:Di,f:Ji}=this.wNAF(Si),{p:Vi,f:ji}=this.wNAF(_i);Di=on.constTimeNegate(Xn,Di),Vi=on.constTimeNegate(qn,Vi),Vi=new pt(b.mul(Vi.px,Un.beta),Vi.py,Vi.pz),dn=Di.add(Vi),vn=Ji.add(ji)}else{const{p:Xn,f:Si}=this.wNAF(Vt);dn=Xn,vn=Si}return pt.normalizeZ([dn,vn])[0]}multiplyAndAddUnsafe(Ft,Vt,dn){const vn=pt.BASE,Un=(Si,qn)=>qn!==ii&&qn!==ci&&Si.equals(vn)?Si.multiply(qn):Si.multiplyUnsafe(qn),Xn=Un(this,Vt).add(Un(Ft,dn));return Xn.is0()?void 0:Xn}toAffine(Ft){const{px:Vt,py:dn,pz:vn}=this,Un=this.is0();null==Ft&&(Ft=Un?b.ONE:b.inv(vn));const Xn=b.mul(Vt,Ft),Si=b.mul(dn,Ft),qn=b.mul(vn,Ft);if(Un)return{x:b.ZERO,y:b.ZERO};if(!b.eql(qn,b.ONE))throw new Error("invZ was invalid");return{x:Xn,y:Si}}isTorsionFree(){const{h:Ft,isTorsionFree:Vt}=m;if(Ft===ci)return!0;if(Vt)return Vt(pt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Ft,clearCofactor:Vt}=m;return Ft===ci?this:Vt?Vt(pt,this):this.multiplyUnsafe(m.h)}toRawBytes(Ft=!0){return this.assertValidity(),I(pt,this,Ft)}toHex(Ft=!0){return Pe(this.toRawBytes(Ft))}}pt.BASE=new pt(m.Gx,m.Gy,b.ONE),pt.ZERO=new pt(b.ZERO,b.ONE,b.ZERO);const Jt=m.nBitLength,on=function Ot(h,m){const b=(P,G)=>{const ae=G.negate();return P?ae:G},I=P=>({windows:Math.ceil(m/P)+1,windowSize:2**(P-1)});return{constTimeNegate:b,unsafeLadder(P,G){let ae=h.ZERO,pe=P;for(;G>Or;)G&ft&&(ae=ae.add(pe)),pe=pe.double(),G>>=ft;return ae},precomputeWindow(P,G){const{windows:ae,windowSize:pe}=I(G),ke=[];let it=P,ht=it;for(let pt=0;pt>=on,Vt>ke&&(Vt-=Jt,ae+=ft);const dn=Ft,vn=Ft+Math.abs(Vt)-1,Xn=Vt<0;0===Vt?ht=ht.add(b(Kt%2!=0,G[dn])):it=it.add(b(Xn,G[vn]))}return{p:it,f:ht}},wNAFCached(P,G,ae,pe){const ke=P._WINDOW_SIZE||1;let it=G.get(P);return it||(it=this.precomputeWindow(P,ke),1!==ke&&G.set(P,pe(it))),this.wNAF(ke,it,ae)}}}(pt,m.endo?Math.ceil(Jt/2):Jt);return{CURVE:m,ProjectivePoint:pt,normPrivateKeyToScalar:ke,weierstrassEquation:G,isWithinCurveOrder:ae}}({...m,toBytes(Gn,si,Pi){const Hi=si.toAffine(),fi=b.toBytes(Hi.x),cr=Je;return Pi?cr(Uint8Array.from([si.hasEvenY()?2:3]),fi):cr(Uint8Array.from([4]),fi,b.toBytes(Hi.y))},fromBytes(Gn){const si=Gn.length,Pi=Gn[0],Hi=Gn.subarray(1);if(si!==P||2!==Pi&&3!==Pi){if(si===G&&4===Pi)return{x:b.fromBytes(Hi.subarray(0,b.BYTES)),y:b.fromBytes(Hi.subarray(b.BYTES,2*b.BYTES))};throw new Error(`Point of length ${si} was invalid. Expected ${P} compressed bytes or ${G} uncompressed bytes`)}{const fi=Rt(Hi);if(!function ae(Gn){return iiPe(mn(Gn,m.nByteLength));function Kt(Gn){return Gn>I>>ci}const Vt=(Gn,si,Pi)=>Rt(Gn.slice(si,Pi));class dn{constructor(si,Pi,Hi){this.r=si,this.s=Pi,this.recovery=Hi,this.assertValidity()}static fromCompact(si){const Pi=m.nByteLength;return si=_e("compactSignature",si,2*Pi),new dn(Vt(si,0,Pi),Vt(si,Pi,2*Pi))}static fromDER(si){const{r:Pi,s:Hi}=zn.toSig(_e("DER",si));return new dn(Pi,Hi)}assertValidity(){if(!Jt(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Jt(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(si){return new dn(this.r,this.s,si)}recoverPublicKey(si){const{r:Pi,s:Hi,recovery:fi}=this,cr=_i(_e("msgHash",si));if(null==fi||![0,1,2,3].includes(fi))throw new Error("recovery id invalid");const br=2===fi||3===fi?Pi+m.n:Pi;if(br>=b.ORDER)throw new Error("recovery id 2 or 3 invalid");const No=it.fromHex((1&fi?"03":"02")+on(br)),ps=ke(br),ms=pe(-cr*ps),Ns=pe(Hi*ps),Go=it.BASE.multiplyAndAddUnsafe(No,ms,Ns);if(!Go)throw new Error("point at infinify");return Go.assertValidity(),Go}hasHighS(){return Kt(this.s)}normalizeS(){return this.hasHighS()?new dn(this.r,pe(-this.s),this.recovery):this}toDERRawBytes(){return ut(this.toDERHex())}toDERHex(){return zn.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return ut(this.toCompactHex())}toCompactHex(){return on(this.r)+on(this.s)}}const vn={isValidPrivateKey(Gn){try{return ht(Gn),!0}catch{return!1}},normPrivateKeyToScalar:ht,randomPrivateKey:()=>{const Gn=Mi(m.n);return function Fr(h,m,b=!1){const I=h.length,P=Dr(m),G=Mi(m);if(I<16||I1024)throw new Error(`expected ${G}-1024 bytes of input, got ${I}`);const pe=ye(b?Rt(h):wt(h),m-jt)+jt;return b?ni(pe,P):mn(pe,P)}(m.randomBytes(Gn),m.n)},precompute:(Gn=8,si=it.BASE)=>(si._setWindowSize(Gn),si.multiply(BigInt(3)),si)};function Xn(Gn){const si=Gn instanceof Uint8Array,Pi="string"==typeof Gn,Hi=(si||Pi)&&Gn.length;return si?Hi===P||Hi===G:Pi?Hi===2*P||Hi===2*G:Gn instanceof it}const qn=m.bits2int||function(Gn){const si=Rt(Gn),Pi=8*Gn.length-m.nBitLength;return Pi>0?si>>BigInt(Pi):si},_i=m.bits2int_modN||function(Gn){return pe(qn(Gn))},Di=N(m.nBitLength);function Ji(Gn){if("bigint"!=typeof Gn)throw new Error("bigint expected");if(!(ii<=Gn&&GnMs in Pi))throw new Error("sign() legacy options not supported");const{hash:Hi,randomBytes:fi}=m;let{lowS:cr,prehash:br,extraEntropy:ur}=Pi;null==cr&&(cr=!0),Gn=_e("msgHash",Gn),br&&(Gn=_e("prehashed msgHash",Hi(Gn)));const No=_i(Gn),ps=ht(si),ms=[Ji(ps),Ji(No)];if(null!=ur){const Ms=!0===ur?fi(b.BYTES):ur;ms.push(_e("extraEntropy",Ms))}const Ns=Je(...ms),Go=No;return{seed:Ns,k2sig:function za(Ms){const Cl=qn(Ms);if(!Jt(Cl))return;const Dh=ke(Cl),Bl=it.BASE.multiply(Cl).toAffine(),dc=pe(Bl.x);if(dc===ii)return;const Ul=pe(Dh*pe(Go+dc*ps));if(Ul===ii)return;let Xc=(Bl.x===dc?0:2)|Number(Bl.y&ci),pu=Ul;return cr&&Kt(Ul)&&(pu=function Ft(Gn){return Kt(Gn)?pe(-Gn):Gn}(Ul),Xc^=1),new dn(dc,pu,Xc)}}}(Gn,si,Pi);return ue(m.hash.outputLen,m.nByteLength,m.hmac)(Hi,fi)},verify:function Nr(Gn,si,Pi,Hi=pr){const fi=Gn;if(si=_e("msgHash",si),Pi=_e("publicKey",Pi),"strict"in Hi)throw new Error("options.strict was renamed to lowS");const{lowS:cr,prehash:br}=Hi;let ur,No;try{if("string"==typeof fi||fi instanceof Uint8Array)try{ur=dn.fromDER(fi)}catch(Bl){if(!(Bl instanceof zn.Err))throw Bl;ur=dn.fromCompact(fi)}else{if("object"!=typeof fi||"bigint"!=typeof fi.r||"bigint"!=typeof fi.s)throw new Error("PARSE");{const{r:Bl,s:dc}=fi;ur=new dn(Bl,dc)}}No=it.fromHex(Pi)}catch(Bl){if("PARSE"===Bl.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(cr&&ur.hasHighS())return!1;br&&(si=m.hash(si));const{r:ps,s:ms}=ur,Ns=_i(si),Go=ke(ms),za=pe(Ns*Go),Ms=pe(ps*Go),Cl=it.BASE.multiplyAndAddUnsafe(No,za,Ms)?.toAffine();return!!Cl&&pe(Cl.x)===ps},ProjectivePoint:it,Signature:dn,utils:vn}}function vt(h){return{hash:h,hmac:(m,...b)=>Kr(h,m,function Le(...h){const m=new Uint8Array(h.reduce((I,P)=>I+P.length,0));let b=0;return h.forEach(I=>{if(!fe(I))throw new Error("Uint8Array expected");m.set(I,b),b+=I.length}),m}(...b)),randomBytes:$n}}BigInt(4);const $t=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),hn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),gn=BigInt(1),En=BigInt(2),xn=(h,m)=>(h+m/En)/m;function Vn(h){const m=$t,b=BigInt(3),I=BigInt(6),P=BigInt(11),G=BigInt(22),ae=BigInt(23),pe=BigInt(44),ke=BigInt(88),it=h*h*h%m,ht=it*it*h%m,pt=Gt(ht,b,m)*ht%m,Jt=Gt(pt,b,m)*ht%m,on=Gt(Jt,En,m)*it%m,Kt=Gt(on,P,m)*on%m,Ft=Gt(Kt,G,m)*Kt%m,Vt=Gt(Ft,pe,m)*Ft%m,dn=Gt(Vt,ke,m)*Vt%m,vn=Gt(dn,pe,m)*Ft%m,Un=Gt(vn,b,m)*ht%m,Xn=Gt(Un,ae,m)*Kt%m,Si=Gt(Xn,I,m)*it%m,qn=Gt(Si,En,m);if(!Hn.eql(Hn.sqr(qn),h))throw new Error("Cannot find square root");return qn}const Hn=function Xt(h,m,b=!1,I={}){if(h<=Ut)throw new Error(`Expected Field ORDER > 0, got ${h}`);const{nBitLength:P,nByteLength:G}=lt(h,m);if(G>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ae=function Ti(h){if(h%wi===Ln){const m=(h+jt)/wi;return function(I,P){const G=I.pow(P,m);if(!I.eql(I.sqr(G),P))throw new Error("Cannot find square root");return G}}if(h%Cn===en){const m=(h-en)/Cn;return function(I,P){const G=I.mul(P,On),ae=I.pow(G,m),pe=I.mul(P,ae),ke=I.mul(I.mul(pe,On),ae),it=I.mul(pe,I.sub(ke,I.ONE));if(!I.eql(I.sqr(it),P))throw new Error("Cannot find square root");return it}}return function yi(h){const m=(h-jt)/On;let b,I,P;for(b=h-jt,I=0;b%On===Ut;b/=On,I++);for(P=On;Pye(ke,h),isValid:ke=>{if("bigint"!=typeof ke)throw new Error("Invalid field element: expected bigint, got "+typeof ke);return Ut<=ke&&keke===Ut,isOdd:ke=>(ke&jt)===jt,neg:ke=>ye(-ke,h),eql:(ke,it)=>ke===it,sqr:ke=>ye(ke*ke,h),add:(ke,it)=>ye(ke+it,h),sub:(ke,it)=>ye(ke-it,h),mul:(ke,it)=>ye(ke*it,h),pow:(ke,it)=>function Bt(h,m,b){if(b 0");if(b===Ut)return h.ONE;if(b===jt)return m;let I=h.ONE,P=m;for(;b>Ut;)b&jt&&(I=h.mul(I,P)),P=h.sqr(P),b>>=jt;return I}(pe,ke,it),div:(ke,it)=>ye(ke*Pn(it,h),h),sqrN:ke=>ke*ke,addN:(ke,it)=>ke+it,subN:(ke,it)=>ke-it,mulN:(ke,it)=>ke*it,inv:ke=>Pn(ke,h),sqrt:I.sqrt||(ke=>ae(pe,ke)),invertBatch:ke=>function ot(h,m){const b=new Array(m.length),I=m.reduce((G,ae,pe)=>h.is0(ae)?G:(b[pe]=G,h.mul(G,ae)),h.ONE),P=h.inv(I);return m.reduceRight((G,ae,pe)=>h.is0(ae)?G:(b[pe]=h.mul(G,b[pe]),h.mul(G,ae)),P),b}(pe,ke),cmov:(ke,it,ht)=>ht?it:ke,toBytes:ke=>b?ni(ke,G):mn(ke,G),fromBytes:ke=>{if(ke.length!==G)throw new Error(`Fp.fromBytes: expected ${G}, got ${ke.length}`);return b?wt(ke):Rt(ke)}});return Object.freeze(pe)}($t,void 0,void 0,{sqrt:Vn}),ui=function at(h,m){const b=I=>Ae({...h,...vt(I)});return Object.freeze({...b(m),create:b})}({a:BigInt(0),b:BigInt(7),Fp:Hn,n:hn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:h=>{const m=hn,b=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),I=-gn*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),P=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),G=b,ae=BigInt("0x100000000000000000000000000000000"),pe=xn(G*h,m),ke=xn(-I*h,m);let it=ye(h-pe*b-ke*P,m),ht=ye(-pe*I-ke*G,m);const pt=it>ae,Jt=ht>ae;if(pt&&(it=m-it),Jt&&(ht=m-ht),it>ae||ht>ae)throw new Error("splitScalar: Endomorphism failed, k="+h);return{k1neg:pt,k1:it,k2neg:Jt,k2:ht}}}},je),Oi=BigInt(0),ti=h=>"bigint"==typeof h&&OiP.charCodeAt(0)));b=Je(I,I),Rr[h]=b}return je(Je(b,...m))}const Lr=h=>h.toRawBytes(!0).slice(1),Ci=h=>mn(h,32),Br=h=>ye(h,$t),Ko=h=>ye(h,hn),Gi=ui.ProjectivePoint;function es(h){let m=ui.utils.normPrivateKeyToScalar(h),b=Gi.fromPrivateKey(m);return{scalar:b.hasEvenY()?m:Ko(-m),bytes:Lr(b)}}function io(h){if(!ti(h))throw new Error("bad x: need 0 < x < p");const m=Br(h*h);let I=Vn(Br(m*h+BigInt(7)));I%En!==Oi&&(I=Br(-I));const P=new Gi(h,I,gn);return P.assertValidity(),P}function ma(...h){return Ko(Rt(ho("BIP0340/challenge",...h)))}function vo(h,m,b){const I=_e("signature",h,64),P=_e("message",m),G=_e("publicKey",b,32);try{const ae=io(Rt(G)),pe=Rt(I.subarray(0,32));if(!ti(pe))return!1;const ke=Rt(I.subarray(32,64));if(!(h=>"bigint"==typeof h&&OiGi.BASE.multiplyAndAddUnsafe(h,m,b))(ae,ke,Ko(-it));return!(!ht||!ht.hasEvenY()||ht.toAffine().x!==pe)}catch{return!1}}const jo={getPublicKey:function ga(h){return es(h).bytes},sign:function Kl(h,m,b=$n(32)){const I=_e("message",h),{bytes:P,scalar:G}=es(m),ae=_e("auxRand",b,32),pe=Ci(G^Rt(ho("BIP0340/aux",ae))),ke=ho("BIP0340/nonce",pe,P,I),it=Ko(Rt(ke));if(it===Oi)throw new Error("sign failed: k is zero");const{bytes:ht,scalar:pt}=es(it),Jt=ma(ht,P,I),on=new Uint8Array(64);if(on.set(ht,0),on.set(Ci(Ko(pt+Jt*G)),32),!vo(on,I,P))throw new Error("sign: Invalid signature produced");return on},verify:vo,utils:{randomPrivateKey:ui.utils.randomPrivateKey,lift_x:io,pointToBytes:Lr,numberToBytesBE:mn,bytesToNumberBE:Rt,taggedHash:ho,mod:ye}};var Ii=v(6391);function ns(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`Wrong positive integer: ${h}`)}function Ar(h,...m){if(!(h instanceof Uint8Array))throw new Error("Expected Uint8Array");if(m.length>0&&!m.includes(h.length))throw new Error(`Expected Uint8Array of length ${m}, not of length=${h.length}`)}const Vr={number:ns,bool:function Sr(h){if("boolean"!=typeof h)throw new Error(`Expected boolean, not ${h}`)},bytes:Ar,hash:function Tr(h){if("function"!=typeof h||"function"!=typeof h.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");ns(h.outputLen),ns(h.blockLen)},exists:function Vs(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")},output:function xi(h,m){Ar(h);const b=m.outputLen;if(h.lengthP-ae&&(this.process(I,0),ae=0);for(let pt=ae;pt>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)})(I,P-8,BigInt(8*this.length),G),this.process(I,0);const pe=(0,Ii.O8)(m),ke=this.outputLen;if(ke%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const it=ke/4,ht=this.get();if(it>ht.length)throw new Error("_sha2: outputLen bigger than state");for(let pt=0;pth&m^~h&b,ws=(h,m,b)=>h&m^h&b^m&b,Hs=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]),Xr=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Li=new Uint32Array(64);class gr extends $o{constructor(){super(64,32,8,!1),this.A=0|Xr[0],this.B=0|Xr[1],this.C=0|Xr[2],this.D=0|Xr[3],this.E=0|Xr[4],this.F=0|Xr[5],this.G=0|Xr[6],this.H=0|Xr[7]}get(){const{A:m,B:b,C:I,D:P,E:G,F:ae,G:pe,H:ke}=this;return[m,b,I,P,G,ae,pe,ke]}set(m,b,I,P,G,ae,pe,ke){this.A=0|m,this.B=0|b,this.C=0|I,this.D=0|P,this.E=0|G,this.F=0|ae,this.G=0|pe,this.H=0|ke}process(m,b){for(let pt=0;pt<16;pt++,b+=4)Li[pt]=m.getUint32(b,!1);for(let pt=16;pt<64;pt++){const Jt=Li[pt-15],on=Li[pt-2],Kt=(0,Ii.Ow)(Jt,7)^(0,Ii.Ow)(Jt,18)^Jt>>>3,Ft=(0,Ii.Ow)(on,17)^(0,Ii.Ow)(on,19)^on>>>10;Li[pt]=Ft+Li[pt-7]+Kt+Li[pt-16]|0}let{A:I,B:P,C:G,D:ae,E:pe,F:ke,G:it,H:ht}=this;for(let pt=0;pt<64;pt++){const on=ht+((0,Ii.Ow)(pe,6)^(0,Ii.Ow)(pe,11)^(0,Ii.Ow)(pe,25))+va(pe,ke,it)+Hs[pt]+Li[pt]|0,Ft=((0,Ii.Ow)(I,2)^(0,Ii.Ow)(I,13)^(0,Ii.Ow)(I,22))+ws(I,P,G)|0;ht=it,it=ke,ke=pe,pe=ae+on|0,ae=G,G=P,P=I,I=on+Ft|0}I=I+this.A|0,P=P+this.B|0,G=G+this.C|0,ae=ae+this.D|0,pe=pe+this.E|0,ke=ke+this.F|0,it=it+this.G|0,ht=ht+this.H|0,this.set(I,P,G,ae,pe,ke,it,ht)}roundClean(){Li.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class Xo extends gr{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}}const ro=(0,Ii.ld)(()=>new gr);function Er(h){if(!Number.isSafeInteger(h))throw new Error(`Wrong integer: ${h}`)}function oo(...h){const m=(P,G)=>ae=>P(G(ae));return{encode:Array.from(h).reverse().reduce((P,G)=>P?m(P,G.encode):G.encode,void 0),decode:h.reduce((P,G)=>P?m(P,G.decode):G.decode,void 0)}}function jr(h){return{encode:m=>{if(!Array.isArray(m)||m.length&&"number"!=typeof m[0])throw new Error("alphabet.encode input should be an array of numbers");return m.map(b=>{if(Er(b),b<0||b>=h.length)throw new Error(`Digit index outside alphabet: ${b} (alphabet: ${h.length})`);return h[b]})},decode:m=>{if(!Array.isArray(m)||m.length&&"string"!=typeof m[0])throw new Error("alphabet.decode input should be array of strings");return m.map(b=>{if("string"!=typeof b)throw new Error(`alphabet.decode: not string element=${b}`);const I=h.indexOf(b);if(-1===I)throw new Error(`Unknown letter: "${b}". Allowed: ${h}`);return I})}}}function xo(h=""){if("string"!=typeof h)throw new Error("join separator should be string");return{encode:m=>{if(!Array.isArray(m)||m.length&&"string"!=typeof m[0])throw new Error("join.encode input should be array of strings");for(let b of m)if("string"!=typeof b)throw new Error(`join.encode: non-string input=${b}`);return m.join(h)},decode:m=>{if("string"!=typeof m)throw new Error("join.decode input should be string");return m.split(h)}}}function Ir(h,m="="){if(Er(h),"string"!=typeof m)throw new Error("padding chr should be string");return{encode(b){if(!Array.isArray(b)||b.length&&"string"!=typeof b[0])throw new Error("padding.encode input should be array of strings");for(let I of b)if("string"!=typeof I)throw new Error(`padding.encode: non-string input=${I}`);for(;b.length*h%8;)b.push(m);return b},decode(b){if(!Array.isArray(b)||b.length&&"string"!=typeof b[0])throw new Error("padding.encode input should be array of strings");for(let P of b)if("string"!=typeof P)throw new Error(`padding.decode: non-string input=${P}`);let I=b.length;if(I*h%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;I>0&&b[I-1]===m;I--)if(!((I-1)*h%8))throw new Error("Invalid padding: string has too much padding");return b.slice(0,I)}}}function Yo(h){if("function"!=typeof h)throw new Error("normalize fn should be function");return{encode:m=>m,decode:m=>h(m)}}function Eo(h,m,b){if(m<2)throw new Error(`convertRadix: wrong from=${m}, base cannot be less than 2`);if(b<2)throw new Error(`convertRadix: wrong to=${b}, base cannot be less than 2`);if(!Array.isArray(h))throw new Error("convertRadix: data should be array");if(!h.length)return[];let I=0;const P=[],G=Array.from(h);for(G.forEach(ae=>{if(Er(ae),ae<0||ae>=m)throw new Error(`Wrong integer: ${ae}`)});;){let ae=0,pe=!0;for(let ke=I;kenew Xo);const Es=(h,m)=>m?Es(m,h%m):h,sa=(h,m)=>h+(m-Es(h,m));function so(h,m,b,I){if(!Array.isArray(h))throw new Error("convertRadix2: data should be array");if(m<=0||m>32)throw new Error(`convertRadix2: wrong from=${m}`);if(b<=0||b>32)throw new Error(`convertRadix2: wrong to=${b}`);if(sa(m,b)>32)throw new Error(`convertRadix2: carry overflow from=${m} to=${b} carryBits=${sa(m,b)}`);let P=0,G=0;const ae=2**b-1,pe=[];for(const ke of h){if(Er(ke),ke>=2**m)throw new Error(`convertRadix2: invalid data word=${ke} from=${m}`);if(P=P<32)throw new Error(`convertRadix2: carry overflow pos=${G} from=${m}`);for(G+=m;G>=b;G-=b)pe.push((P>>G-b&ae)>>>0);P&=2**G-1}if(P=P<=m)throw new Error("Excess padding");if(!I&&P)throw new Error(`Non-zero padding: ${P}`);return I&&G>0&&pe.push(P>>>0),pe}function Fo(h,m=!1){if(Er(h),h<=0||h>32)throw new Error("radix2: bits should be in (0..32]");if(sa(8,h)>32||sa(h,8)>32)throw new Error("radix2: carry overflow");return{encode:b=>{if(!(b instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return so(Array.from(b),8,h,!m)},decode:b=>{if(!Array.isArray(b)||b.length&&"number"!=typeof b[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(so(b,h,8,m))}}}function Xa(h){if("function"!=typeof h)throw new Error("unsafeWrapper fn should be function");return function(...m){try{return h.apply(null,m)}catch{}}}oo(Fo(4),jr("0123456789ABCDEF"),xo("")),oo(Fo(5),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),Ir(5),xo(""));const qr=(oo(Fo(5),jr("0123456789ABCDEFGHIJKLMNOPQRSTUV"),Ir(5),xo("")),oo(Fo(5),jr("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),xo(""),Yo(h=>h.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),oo(Fo(6),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Ir(6),xo(""))),Oo=(oo(Fo(6),jr("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),Ir(6),xo("")),h=>oo(function aa(h){return Er(h),{encode:m=>{if(!(m instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Eo(Array.from(m),256,h)},decode:m=>{if(!Array.isArray(m)||m.length&&"number"!=typeof m[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Eo(m,h,256))}}}(58),jr(h),xo(""))),ka=(Oo("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Oo("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),Oo("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),oo(jr("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),xo(""))),os=[996825010,642813549,513874426,1027748829,705979059];function So(h){const m=h>>25;let b=(33554431&h)<<5;for(let I=0;I>I&1)&&(b^=os[I]);return b}function _r(h,m,b=1){const I=h.length;let P=1;for(let G=0;G126)throw new Error(`Invalid prefix (${h})`);P=So(P)^ae>>5}P=So(P);for(let G=0;Gpt)throw new TypeError(`Wrong string length: ${ht.length} (${ht}). Expected (8..${pt})`);const Jt=ht.toLowerCase();if(ht!==Jt&&ht!==ht.toUpperCase())throw new Error("String must be lowercase or uppercase");const on=(ht=Jt).lastIndexOf("1");if(0===on||-1===on)throw new Error('Letter "1" must be present between prefix and data only');const Kt=ht.slice(0,on),Ft=ht.slice(on+1);if(Ft.length<6)throw new Error("Data must be at least 6 characters long");const Vt=ka.decode(Ft).slice(0,-6),dn=_r(Kt,Vt,m);if(!Ft.endsWith(dn))throw new Error(`Invalid checksum in ${ht}: expected "${dn}"`);return{prefix:Kt,words:Vt}}return{encode:function ae(ht,pt,Jt=90){if("string"!=typeof ht)throw new Error("bech32.encode prefix should be string, not "+typeof ht);if(!Array.isArray(pt)||pt.length&&"number"!=typeof pt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof pt);const on=ht.length+7+pt.length;if(!1!==Jt&&on>Jt)throw new TypeError(`Length ${on} exceeds limit ${Jt}`);return`${ht=ht.toLowerCase()}1${ka.encode(pt)}${_r(ht,pt,m)}`},decode:pe,decodeToBytes:function it(ht){const{prefix:pt,words:Jt}=pe(ht,!1);return{prefix:pt,words:Jt,bytes:I(Jt)}},decodeUnsafe:Xa(pe),fromWords:I,fromWordsUnsafe:G,toWords:P}}const z=Ao("bech32");function ba(h){if(!Number.isSafeInteger(h)||h<0)throw new Error(`positive integer expected, not ${h}`)}function wa(h){if("boolean"!=typeof h)throw new Error(`boolean expected, not ${h}`)}function xs(h){return h instanceof Uint8Array||null!=h&&"object"==typeof h&&"Uint8Array"===h.constructor.name}function nr(h,...m){if(!xs(h))throw new Error("Uint8Array expected");if(m.length>0&&!m.includes(h.length))throw new Error(`Uint8Array expected of length ${m}, not of length=${h.length}`)}function ss(h,m=!0){if(h.destroyed)throw new Error("Hash instance has been destroyed");if(m&&h.finished)throw new Error("Hash#digest() has already been called")}function zs(h,m){nr(h);const b=m.outputLen;if(h.length{if("string"!=typeof h||h.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof h} with length ${h.length}`);return h.toLowerCase()}));const Ni=h=>new Uint32Array(h.buffer,h.byteOffset,Math.floor(h.byteLength/4)),Ro=h=>new DataView(h.buffer,h.byteOffset,h.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function Ss(h){if("string"==typeof h)h=function ml(h){if("string"!=typeof h)throw new Error("string expected, got "+typeof h);return new Uint8Array((new TextEncoder).encode(h))}(h);else{if(!xs(h))throw new Error("Uint8Array expected, got "+typeof h);h=h.slice()}return h}function as(h,m){if(h.length!==m.length)return!1;let b=0;for(let I=0;I(Object.assign(m,h),m);function ko(h,m,b,I){if("function"==typeof h.setBigUint64)return h.setBigUint64(m,b,I);const P=BigInt(32),G=BigInt(4294967295),ae=Number(b>>P&G),pe=Number(b&G),it=I?0:4;h.setUint32(m+(I?4:0),ae,I),h.setUint32(m+it,pe,I)}const ua=new Uint8Array(16),Mr=Ni(ua),da=(h,m,b,I)=>({s3:b<<31|I>>>1,s2:m<<31|b>>>1,s1:h<<31|m>>>1,s0:h>>>1^225<<24&-(1&I)}),ls=h=>(h>>>0&255)<<24|(h>>>8&255)<<16|(h>>>16&255)<<8|h>>>24&255;class Ws{constructor(m,b){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,nr(m=Ss(m),16);const I=Ro(m);let P=I.getUint32(0,!1),G=I.getUint32(4,!1),ae=I.getUint32(8,!1),pe=I.getUint32(12,!1);const ke=[];for(let Kt=0;Kt<128;Kt++)ke.push({s0:ls(P),s1:ls(G),s2:ls(ae),s3:ls(pe)}),({s0:P,s1:G,s2:ae,s3:pe}=da(P,G,ae,pe));const it=(h=b||1024)>65536?8:h>1024?4:2;var h;if(![1,2,4,8].includes(it))throw new Error(`ghash: wrong window size=${it}, should be 2, 4 or 8`);this.W=it;const pt=128/it,Jt=this.windowSize=2**it,on=[];for(let Kt=0;Kt>>it-Xn-1&1))continue;const{s0:qn,s1:_i,s2:Di,s3:Ji}=ke[it*Kt+Xn];Vt^=qn,dn^=_i,vn^=Di,Un^=Ji}on.push({s0:Vt,s1:dn,s2:vn,s3:Un})}this.t=on}_updateBlock(m,b,I,P){m^=this.s0,b^=this.s1,I^=this.s2,P^=this.s3;const{W:G,t:ae,windowSize:pe}=this;let ke=0,it=0,ht=0,pt=0;const Jt=(1<>>8*Ft&255;for(let dn=8/G-1;dn>=0;dn--){const vn=Vt>>>G*dn&Jt,{s0:Un,s1:Xn,s2:Si,s3:qn}=ae[on*pe+vn];ke^=Un,it^=Xn,ht^=Si,pt^=qn,on+=1}}this.s0=ke,this.s1=it,this.s2=ht,this.s3=pt}update(m){m=Ss(m),ss(this);const b=Ni(m),I=Math.floor(m.length/16),P=m.length%16;for(let G=0;G>>1|b,b=(1&P)<<7}return h[0]^=225&-m,h}((m=Ss(m)).slice());super(I,b),I.fill(0)}update(m){m=Ss(m),ss(this);const b=Ni(m),I=m.length%16,P=Math.floor(m.length/16);for(let G=0;Gh(P,I.length).update(Ss(I)).digest(),b=h(new Uint8Array(16),0);return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=(I,P)=>h(I,P),m}Gs((h,m)=>new Ws(h,m)),Gs((h,m)=>new Hr(h,m)),new Uint8Array(16);const Qa=283;function gl(h){return h<<1^Qa&-(h>>7)}function S(h,m){let b=0;for(;m>0;m>>=1)b^=h&-(1&m),h=gl(h);return b}const ne=(()=>{let h=new Uint8Array(256);for(let b=0,I=1;b<256;b++,I^=gl(I))h[b]=I;const m=new Uint8Array(256);m[0]=99;for(let b=0;b<255;b++){let I=h[255-b];I|=I<<8,m[h[b]]=255&(I^I>>4^I>>5^I>>6^I>>7^99)}return m})(),p=ne.map((h,m)=>ne.indexOf(m)),_=h=>h<<24|h>>>8,x=h=>h<<8|h>>>24;function X(h,m){if(256!==h.length)throw new Error("Wrong sbox length");const b=new Uint32Array(256).map((it,ht)=>m(h[ht])),I=b.map(x),P=I.map(x),G=P.map(x),ae=new Uint32Array(65536),pe=new Uint32Array(65536),ke=new Uint16Array(65536);for(let it=0;it<256;it++)for(let ht=0;ht<256;ht++){const pt=256*it+ht;ae[pt]=b[it]^I[ht],pe[pt]=P[it]^G[ht],ke[pt]=h[it]<<8|h[ht]}return{sbox:h,sbox2:ke,T0:b,T1:I,T2:P,T3:G,T01:ae,T23:pe}}const ce=X(ne,h=>S(h,3)<<24|h<<16|h<<8|S(h,2)),ze=X(p,h=>S(h,11)<<24|S(h,13)<<16|S(h,9)<<8|S(h,14)),yt=(()=>{const h=new Uint8Array(16);for(let m=0,b=1;m<16;m++,b=gl(b))h[m]=b;return h})();function Dt(h){nr(h);const m=h.length;if(![16,24,32].includes(m))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${m}`);const{sbox2:b}=ce,I=Ni(h),P=I.length,G=pe=>pn(b,pe,pe,pe,pe),ae=new Uint32Array(m+28);ae.set(I);for(let pe=P;pe6&&pe%P==4&&(ke=G(ke)),ae[pe]=ae[pe-P]^ke}return ae}function Wt(h,m,b,I,P,G){return h[b<<8&65280|I>>>8&255]^m[P>>>8&65280|G>>>24&255]}function pn(h,m,b,I,P){return h[255&m|65280&b]|h[I>>>16&255|P>>>16&65280]<<16}function St(h,m,b,I,P){const{sbox2:G,T01:ae,T23:pe}=ce;let ke=0;m^=h[ke++],b^=h[ke++],I^=h[ke++],P^=h[ke++];const it=h.length/4-2;for(let Kt=0;Kt{const pe=Dt(m),{b:ke,o:it,out:ht}=function Qn(h,m,b){let I=h.length;const P=I%16;if(!m&&0!==P)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const G=Ni(h);if(m){let ke=16-P;ke||(ke=16),I+=ke}const ae=cn(I,b);return{b:G,o:Ni(ae),out:ae}}(G,P,ae),pt=Ni(b);let Jt=pt[0],on=pt[1],Kt=pt[2],Ft=pt[3],Vt=0;for(;Vt+4<=ke.length;)Jt^=ke[Vt+0],on^=ke[Vt+1],Kt^=ke[Vt+2],Ft^=ke[Vt+3],({s0:Jt,s1:on,s2:Kt,s3:Ft}=St(pe,Jt,on,Kt,Ft)),it[Vt++]=Jt,it[Vt++]=on,it[Vt++]=Kt,it[Vt++]=Ft;if(P){const dn=function ri(h){const m=new Uint8Array(16),b=Ni(m);m.set(h);const I=16-h.length;for(let P=16-I;P<16;P++)m[P]=I;return b}(G.subarray(4*Vt));Jt^=dn[0],on^=dn[1],Kt^=dn[2],Ft^=dn[3],({s0:Jt,s1:on,s2:Kt,s3:Ft}=St(pe,Jt,on,Kt,Ft)),it[Vt++]=Jt,it[Vt++]=on,it[Vt++]=Kt,it[Vt++]=Ft}return pe.fill(0),ht},decrypt:(G,ae)=>{!function Nn(h){if(nr(h),h.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(G);const pe=function Pt(h){const m=Dt(h),b=m.slice(),I=m.length,{sbox2:P}=ce,{T0:G,T1:ae,T2:pe,T3:ke}=ze;for(let it=0;it>>8&255]^pe[pt>>>16&255]^ke[pt>>>24]}return b}(m),ke=Ni(b),it=cn(G.length,ae),ht=Ni(G),pt=Ni(it);let Jt=ke[0],on=ke[1],Kt=ke[2],Ft=ke[3];for(let Vt=0;Vt+4<=ht.length;){const dn=Jt,vn=on,Un=Kt,Xn=Ft;Jt=ht[Vt+0],on=ht[Vt+1],Kt=ht[Vt+2],Ft=ht[Vt+3];const{s0:Si,s1:qn,s2:_i,s3:Di}=Ht(pe,Jt,on,Kt,Ft);pt[Vt++]=Si^dn,pt[Vt++]=qn^vn,pt[Vt++]=_i^Un,pt[Vt++]=Di^Xn}return pe.fill(0),function An(h,m){if(!m)return h;const b=h.length;if(!b)throw new Error("aes/pcks5: empty ciphertext not allowed");const I=h[b-1];if(I<=0||I>16)throw new Error(`aes/pcks5: wrong padding byte: ${I}`);const P=h.subarray(0,-I);for(let G=0;G255&h[m++]|(255&h[m++])<<8;class ir{constructor(m){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,nr(m=Ss(m),32);const b=Yn(m,0),I=Yn(m,2),P=Yn(m,4),G=Yn(m,6),ae=Yn(m,8),pe=Yn(m,10),ke=Yn(m,12),it=Yn(m,14);this.r[0]=8191&b,this.r[1]=8191&(b>>>13|I<<3),this.r[2]=7939&(I>>>10|P<<6),this.r[3]=8191&(P>>>7|G<<9),this.r[4]=255&(G>>>4|ae<<12),this.r[5]=ae>>>1&8190,this.r[6]=8191&(ae>>>14|pe<<2),this.r[7]=8065&(pe>>>11|ke<<5),this.r[8]=8191&(ke>>>8|it<<8),this.r[9]=it>>>5&127;for(let ht=0;ht<8;ht++)this.pad[ht]=Yn(m,16+2*ht)}process(m,b,I=!1){const P=I?0:2048,{h:G,r:ae}=this,pe=ae[0],ke=ae[1],it=ae[2],ht=ae[3],pt=ae[4],Jt=ae[5],on=ae[6],Kt=ae[7],Ft=ae[8],Vt=ae[9],dn=Yn(m,b+0),vn=Yn(m,b+2),Un=Yn(m,b+4),Xn=Yn(m,b+6),Si=Yn(m,b+8),qn=Yn(m,b+10),_i=Yn(m,b+12),Di=Yn(m,b+14);let Ji=G[0]+(8191&dn),Vi=G[1]+(8191&(dn>>>13|vn<<3)),ji=G[2]+(8191&(vn>>>10|Un<<6)),pr=G[3]+(8191&(Un>>>7|Xn<<9)),mr=G[4]+(8191&(Xn>>>4|Si<<12)),Nr=G[5]+(Si>>>1&8191),Gn=G[6]+(8191&(Si>>>14|qn<<2)),si=G[7]+(8191&(qn>>>11|_i<<5)),Pi=G[8]+(8191&(_i>>>8|Di<<8)),Hi=G[9]+(Di>>>5|P),fi=0,cr=fi+Ji*pe+Vi*(5*Vt)+ji*(5*Ft)+pr*(5*Kt)+mr*(5*on);fi=cr>>>13,cr&=8191,cr+=Nr*(5*Jt)+Gn*(5*pt)+si*(5*ht)+Pi*(5*it)+Hi*(5*ke),fi+=cr>>>13,cr&=8191;let br=fi+Ji*ke+Vi*pe+ji*(5*Vt)+pr*(5*Ft)+mr*(5*Kt);fi=br>>>13,br&=8191,br+=Nr*(5*on)+Gn*(5*Jt)+si*(5*pt)+Pi*(5*ht)+Hi*(5*it),fi+=br>>>13,br&=8191;let ur=fi+Ji*it+Vi*ke+ji*pe+pr*(5*Vt)+mr*(5*Ft);fi=ur>>>13,ur&=8191,ur+=Nr*(5*Kt)+Gn*(5*on)+si*(5*Jt)+Pi*(5*pt)+Hi*(5*ht),fi+=ur>>>13,ur&=8191;let No=fi+Ji*ht+Vi*it+ji*ke+pr*pe+mr*(5*Vt);fi=No>>>13,No&=8191,No+=Nr*(5*Ft)+Gn*(5*Kt)+si*(5*on)+Pi*(5*Jt)+Hi*(5*pt),fi+=No>>>13,No&=8191;let ps=fi+Ji*pt+Vi*ht+ji*it+pr*ke+mr*pe;fi=ps>>>13,ps&=8191,ps+=Nr*(5*Vt)+Gn*(5*Ft)+si*(5*Kt)+Pi*(5*on)+Hi*(5*Jt),fi+=ps>>>13,ps&=8191;let ms=fi+Ji*Jt+Vi*pt+ji*ht+pr*it+mr*ke;fi=ms>>>13,ms&=8191,ms+=Nr*pe+Gn*(5*Vt)+si*(5*Ft)+Pi*(5*Kt)+Hi*(5*on),fi+=ms>>>13,ms&=8191;let Ns=fi+Ji*on+Vi*Jt+ji*pt+pr*ht+mr*it;fi=Ns>>>13,Ns&=8191,Ns+=Nr*ke+Gn*pe+si*(5*Vt)+Pi*(5*Ft)+Hi*(5*Kt),fi+=Ns>>>13,Ns&=8191;let Go=fi+Ji*Kt+Vi*on+ji*Jt+pr*pt+mr*ht;fi=Go>>>13,Go&=8191,Go+=Nr*it+Gn*ke+si*pe+Pi*(5*Vt)+Hi*(5*Ft),fi+=Go>>>13,Go&=8191;let za=fi+Ji*Ft+Vi*Kt+ji*on+pr*Jt+mr*pt;fi=za>>>13,za&=8191,za+=Nr*ht+Gn*it+si*ke+Pi*pe+Hi*(5*Vt),fi+=za>>>13,za&=8191;let Ms=fi+Ji*Vt+Vi*Ft+ji*Kt+pr*on+mr*Jt;fi=Ms>>>13,Ms&=8191,Ms+=Nr*pt+Gn*ht+si*it+Pi*ke+Hi*pe,fi+=Ms>>>13,Ms&=8191,fi=(fi<<2)+fi|0,fi=fi+cr|0,cr=8191&fi,fi>>>=13,br+=fi,G[0]=cr,G[1]=br,G[2]=ur,G[3]=No,G[4]=ps,G[5]=ms,G[6]=Ns,G[7]=Go,G[8]=za,G[9]=Ms}finalize(){const{h:m,pad:b}=this,I=new Uint16Array(10);let P=m[1]>>>13;m[1]&=8191;for(let pe=2;pe<10;pe++)m[pe]+=P,P=m[pe]>>>13,m[pe]&=8191;m[0]+=5*P,P=m[0]>>>13,m[0]&=8191,m[1]+=P,P=m[1]>>>13,m[1]&=8191,m[2]+=P,I[0]=m[0]+5,P=I[0]>>>13,I[0]&=8191;for(let pe=1;pe<10;pe++)I[pe]=m[pe]+P,P=I[pe]>>>13,I[pe]&=8191;I[9]-=8192;let G=(1^P)-1;for(let pe=0;pe<10;pe++)I[pe]&=G;G=~G;for(let pe=0;pe<10;pe++)m[pe]=m[pe]&G|I[pe];m[0]=65535&(m[0]|m[1]<<13),m[1]=65535&(m[1]>>>3|m[2]<<10),m[2]=65535&(m[2]>>>6|m[3]<<7),m[3]=65535&(m[3]>>>9|m[4]<<4),m[4]=65535&(m[4]>>>12|m[5]<<1|m[6]<<14),m[5]=65535&(m[6]>>>2|m[7]<<11),m[6]=65535&(m[7]>>>5|m[8]<<8),m[7]=65535&(m[8]>>>8|m[9]<<5);let ae=m[0]+b[0];m[0]=65535&ae;for(let pe=1;pe<8;pe++)ae=(m[pe]+b[pe]|0)+(ae>>>16)|0,m[pe]=65535&ae}update(m){ss(this);const{buffer:b,blockLen:I}=this,P=(m=Ss(m)).length;for(let G=0;G>>0,m[G++]=I[ae]>>>8;return m}digest(){const{buffer:m,outputLen:b}=this;this.digestInto(m);const I=m.slice(0,b);return this.destroy(),I}}const Jn=function dr(h){const m=(I,P)=>h(P).update(Ss(I)).digest(),b=h(new Uint8Array(32));return m.outputLen=b.outputLen,m.blockLen=b.blockLen,m.create=I=>h(I),m}(h=>new ir(h)),eo=h=>Uint8Array.from(h.split("").map(m=>m.charCodeAt(0))),Io=eo("expand 16-byte k"),mo=eo("expand 32-byte k"),Xs=Ni(Io),Zo=Ni(mo);function vi(h,m){return h<>>32-m}function kr(h){return h.byteOffset%4==0}Zo.slice();const Uo=2**32-1,Ei=new Uint32Array;function cs(h,m){const{allowShortKeys:b,extendNonceFn:I,counterLength:P,counterRight:G,rounds:ae}=function Da(h,m){if(null==m||"object"!=typeof m)throw new Error("options must be defined");return Object.assign(h,m)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},m);if("function"!=typeof h)throw new Error("core must be a function");return ba(P),ba(ae),wa(G),wa(b),(pe,ke,it,ht,pt=0)=>{nr(pe),nr(ke),nr(it);const Jt=it.length;if(ht||(ht=new Uint8Array(Jt)),nr(ht),ba(pt),pt<0||pt>=Uo)throw new Error("arx: counter overflow");if(ht.length=Uo)throw new Error("arx: counter overflow");const Ft=Math.min(64,ke-Kt);if(pt&&64===Ft){const Vt=Kt/4;if(Kt%4!=0)throw new Error("arx: invalid block position");for(let vn,dn=0;dn<16;dn++)vn=Vt+dn,on[vn]=Jt[vn]^ht[dn];Kt+=64}else{for(let dn,Vt=0;Vt0;)on.pop().fill(0);return ht}}function Ys(h,m,b,I,P,G=20){let ae=h[0],pe=h[1],ke=h[2],it=h[3],ht=m[0],pt=m[1],Jt=m[2],on=m[3],Kt=m[4],Ft=m[5],Vt=m[6],dn=m[7],vn=P,Un=b[0],Xn=b[1],Si=b[2],qn=ae,_i=pe,Di=ke,Ji=it,Vi=ht,ji=pt,pr=Jt,mr=on,Nr=Kt,Gn=Ft,si=Vt,Pi=dn,Hi=vn,fi=Un,cr=Xn,br=Si;for(let No=0;No{h.update(m);const b=m.length%16;b&&h.update(zg.subarray(b))},Wg=new Uint8Array(32);function E(h,m,b,I,P){const G=h(m,b,Wg),ae=Jn.create(G);P&&mi(ae,P),mi(ae,I);const pe=new Uint8Array(16),ke=Ro(pe);ko(ke,0,BigInt(P?P.length:0),!0),ko(ke,8,BigInt(I.length),!0),ae.update(pe);const it=ae.digest();return G.fill(0),it}const O=h=>(m,b,I)=>(nr(m,32),nr(b),{encrypt:(G,ae)=>{const pe=G.length,ke=pe+16;ae?nr(ae,ke):ae=new Uint8Array(ke),h(m,b,G,ae,1);const it=E(h,m,b,ae.subarray(0,-16),I);return ae.set(it,pe),ae},decrypt:(G,ae)=>{const pe=G.length,ke=pe-16;if(pe<16)throw new Error("encrypted data must be at least 16 bytes");ae?nr(ae,ke):ae=new Uint8Array(ke);const it=G.subarray(0,-16);if(!as(G.subarray(-16),E(h,m,b,it,I)))throw new Error("invalid tag");return h(m,b,it,ae,1),ae}});O(Zl),O(tf);class Z extends Ii.Vw{constructor(m,b){super(),this.finished=!1,this.destroyed=!1,Vr.hash(m);const I=(0,Ii.ZJ)(b);if(this.iHash=m.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const P=this.blockLen,G=new Uint8Array(P);G.set(I.length>P?m.create().update(I).digest():I);for(let ae=0;aenew Z(h,m).update(b).digest();De.create=(h,m)=>new Z(h,m);const ln=new Uint8Array([0]),Qt=new Uint8Array;var er=Object.defineProperty,Zi=(h,m)=>{for(var b in m)er(h,b,{get:m[b],enumerable:!0})},us=Symbol("verified"),ds=h=>h instanceof Object;function xa(h){if(!ds(h)||"number"!=typeof h.kind||"string"!=typeof h.content||"number"!=typeof h.created_at||"string"!=typeof h.pubkey||!h.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(h.tags))return!1;for(let m=0;mLa,QueueNode:()=>sf,binarySearch:()=>ru,insertEventIntoAscendingList:()=>Qp,insertEventIntoDescendingList:()=>rf,normalizeURL:()=>Jl,utf8Decoder:()=>Fa,utf8Encoder:()=>Rs});var Fa=new TextDecoder("utf-8"),Rs=new TextEncoder;function Jl(h){-1===h.indexOf("://")&&(h="wss://"+h);let m=new URL(h);return m.pathname=m.pathname.replace(/\/+/g,"/"),m.pathname.endsWith("/")&&(m.pathname=m.pathname.slice(0,-1)),("80"===m.port&&"ws:"===m.protocol||"443"===m.port&&"wss:"===m.protocol)&&(m.port=""),m.searchParams.sort(),m.hash="",m.toString()}function rf(h,m){const[b,I]=ru(h,P=>m.id===P.id?0:m.created_at===P.created_at?-1:P.created_at-m.created_at);return I||h.splice(b,0,m),h}function Qp(h,m){const[b,I]=ru(h,P=>m.id===P.id?0:m.created_at===P.created_at?-1:m.created_at-P.created_at);return I||h.splice(b,0,m),h}function ru(h,m){let b=0,I=h.length-1;for(;b<=I;){const P=Math.floor((b+I)/2),G=m(h[P]);if(0===G)return[P,!0];G<0?I=P-1:b=P+1}return[b,!1]}var sf=class{value;next=null;prev=null;constructor(h){this.value=h}},La=class{first;last;constructor(){this.first=null,this.last=null}enqueue(h){const m=new sf(h);return this.last?this.last===this.first?(this.last=m,this.last.prev=this.first,this.first.next=m):(m.prev=this.last,this.last.next=m,this.last=m):(this.first=m,this.last=m),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const m=this.first;return this.first=null,this.last=null,m.value}const h=this.first;return this.first=h.next,h.value}};function vr(h){let m=ro(Rs.encode(function lf(h){if(!xa(h))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,h.pubkey,h.created_at,h.kind,h.tags,h.content])}(h)));return(0,Ii.My)(m)}var Ec=new class{generateSecretKey(){return jo.utils.randomPrivateKey()}getPublicKey(h){return(0,Ii.My)(jo.getPublicKey(h))}finalizeEvent(h,m){const b=h;return b.pubkey=(0,Ii.My)(jo.getPublicKey(m)),b.id=vr(b),b.sig=(0,Ii.My)(jo.sign(vr(b),m)),b[us]=!0,b}verifyEvent(h){if("boolean"==typeof h[us])return h[us];const m=vr(h);if(m!==h.id)return h[us]=!1,!1;try{const b=jo.verify(h.sig,m,h.pubkey);return h[us]=b,b}catch{return h[us]=!1,!1}}},Cc=Ec.generateSecretKey,Is=Ec.getPublicKey,Ba=Ec.finalizeEvent,vl=Ec.verifyEvent;function Zs(h){return 1e3<=h&&h<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(h)}function zd(h){return[0,3].includes(h)||1e4<=h&&h<2e4}function Ua(h){return 2e4<=h&&h<3e4}function ku(h){return 3e4<=h&&h<4e4}function Js(h){return Zs(h)?"regular":zd(h)?"replaceable":Ua(h)?"ephemeral":ku(h)?"parameterized":"unknown"}Zi({},{Application:()=>Zu,BadgeAward:()=>Za,BadgeDefinition:()=>gf,BlockedRelaysList:()=>Zd,BookmarkList:()=>zu,Bookmarksets:()=>pf,Calendar:()=>qa,CalendarEventRSVP:()=>ql,ChannelCreation:()=>Fu,ChannelHideMessage:()=>Lu,ChannelMessage:()=>Zp,ChannelMetadata:()=>cf,ChannelMuteUser:()=>Bu,ClassifiedListing:()=>nm,ClientAuth:()=>Ku,CommunitiesList:()=>df,CommunityDefinition:()=>ec,CommunityPostApproval:()=>lr,Contacts:()=>ou,CreateOrUpdateProduct:()=>Qu,CreateOrUpdateStall:()=>Tc,Curationsets:()=>su,Date:()=>wf,DirectMessageRelaysList:()=>Ja,DraftClassifiedListing:()=>bf,DraftLong:()=>kl,Emojisets:()=>co,EncryptedDirectMessage:()=>Wd,EventDeletion:()=>xc,FileMetadata:()=>Jp,FileServerPreference:()=>yl,Followsets:()=>Jd,GenericRepost:()=>Kd,Genericlists:()=>Gg,GiftWrap:()=>Ol,HTTPAuth:()=>Yu,Handlerinformation:()=>Mc,Handlerrecommendation:()=>Ic,Highlights:()=>Qd,InterestsList:()=>_l,Interestsets:()=>vf,JobFeedback:()=>yr,JobRequest:()=>Yd,JobResult:()=>ju,Label:()=>_n,LightningPubRPC:()=>ea,LiveChatMessage:()=>uf,LiveEvent:()=>_f,LongFormArticle:()=>Jo,Metadata:()=>Nu,Mutelist:()=>$u,NWCWalletInfo:()=>em,NWCWalletRequest:()=>hf,NWCWalletResponse:()=>Xu,NostrConnect:()=>ff,OpenTimestamps:()=>Uu,Pinlist:()=>Ha,PrivateDirectMessage:()=>Gd,ProblemTracker:()=>qp,ProfileBadges:()=>mf,PublicChatsList:()=>Wu,Reaction:()=>Va,RecommendRelay:()=>qs,RelayList:()=>Ac,Relaysets:()=>tm,Report:()=>Xd,Reporting:()=>Vu,Repost:()=>Sc,Seal:()=>Xi,SearchRelaysList:()=>Wo,ShortTextNote:()=>Pu,Time:()=>au,UserEmojiList:()=>Gu,UserStatuses:()=>yf,Zap:()=>ja,ZapGoal:()=>Hu,ZapRequest:()=>Rl,classifyKind:()=>Js,isEphemeralKind:()=>Ua,isParameterizedReplaceableKind:()=>ku,isRegularKind:()=>Zs,isReplaceableKind:()=>zd});var Nu=0,Pu=1,qs=2,ou=3,Wd=4,xc=5,Sc=6,Va=7,Za=8,Xi=13,Gd=14,Kd=16,Fu=40,cf=41,Zp=42,Lu=43,Bu=44,Uu=1040,Ol=1059,Jp=1063,uf=1311,qp=1971,Xd=1984,Vu=1984,_n=1985,lr=4550,Yd=5999,ju=6999,yr=7e3,Hu=9041,Rl=9734,ja=9735,Qd=9802,$u=1e4,Ha=10001,Ac=10002,zu=10003,df=10004,Wu=10005,Zd=10006,Wo=10007,_l=10015,Gu=10030,Ja=10050,yl=10096,em=13194,ea=21e3,Ku=22242,hf=23194,Xu=23195,ff=24133,Yu=27235,Jd=3e4,Gg=30001,tm=30002,pf=30003,su=30004,mf=30008,gf=30009,vf=30015,Tc=30017,Qu=30018,Jo=30023,kl=30024,co=30030,Zu=30078,_f=30311,yf=30315,nm=30402,bf=30403,wf=31922,au=31923,qa=31924,ql=31925,Ic=31989,Mc=31990,ec=34550;function qd(h,m){if(h.ids&&-1===h.ids.indexOf(m.id)||h.kinds&&-1===h.kinds.indexOf(m.kind)||h.authors&&-1===h.authors.indexOf(m.pubkey))return!1;for(let b in h)if("#"===b[0]){let P=h[`#${b.slice(1)}`];if(P&&!m.tags.find(([G,ae])=>G===b.slice(1)&&-1!==P.indexOf(ae)))return!1}return!(h.since&&m.created_ath.until)}function el(h,m){let b=m.length+3,I=h.indexOf(`"${m}":`)+b,P=h.slice(I).indexOf('"')+I+1;return h.slice(P,P+64)}function Cf(h,m){let b=m.length,I=h.indexOf(`"${m}":`)+b+3,P=h.slice(I),G=Math.min(P.indexOf(","),P.indexOf("}"));return parseInt(P.slice(0,G),10)}function tc(h){let m=h.slice(0,22).indexOf('"EVENT"');if(-1===m)return null;let b=h.slice(m+7+1).indexOf('"');if(-1===b)return null;let I=m+7+1+b,P=h.slice(I+1,80).indexOf('"');return-1===P?null:h.slice(I+1,I+1+P)}function Ju(h,m){return m===el(h,"id")}function qu(h,m){return m===el(h,"pubkey")}function rm(h,m){return m===Cf(h,"kind")}function om(h,m){return{kind:Ku,created_at:Math.floor(Date.now()/1e3),tags:[["relay",h],["challenge",m]],content:""}}function sm(){return nc.apply(this,arguments)}function nc(){return(nc=(0,y.A)(function*(){return new Promise(h=>{const m=new MessageChannel,b=()=>{m.port1.removeEventListener("message",b),h()};m.port1.addEventListener("message",b),m.port2.postMessage(0),m.port1.start()})})).apply(this,arguments)}Zi({},{getHex64:()=>el,getInt:()=>Cf,getSubscriptionId:()=>tc,matchEventId:()=>Ju,matchEventKind:()=>rm,matchEventPubkey:()=>qu}),Zi({},{makeAuthEvent:()=>om});var Nl=h=>(h[us]=!0,!0),ed=class{url;_connected=!1;onclose=null;onnotice=h=>console.debug(`NOTICE from ${this.url}: ${h}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new La;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(h,m){this.url=Jl(h),this.verifyEvent=m.verifyEvent,this._WebSocket=m.websocketImplementation||WebSocket}static connect(h,m){return(0,y.A)(function*(){const b=new ed(h,m);return yield b.connect(),b})()}closeAllSubscriptions(h){for(let[m,b]of this.openSubs)b.close(h);this.openSubs.clear();for(let[m,b]of this.openEventPublishes)b.reject(new Error(h));this.openEventPublishes.clear();for(let[m,b]of this.openCountRequests)b.reject(new Error(h));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var h=this;return(0,y.A)(function*(){return h.connectionPromise||(h.challenge=void 0,h.connectionPromise=new Promise((m,b)=>{h.connectionTimeoutHandle=setTimeout(()=>{b("connection timed out"),h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection timed out")},h.connectionTimeout);try{h.ws=new h._WebSocket(h.url)}catch(I){return void b(I)}h.ws.onopen=()=>{clearTimeout(h.connectionTimeoutHandle),h._connected=!0,m()},h.ws.onerror=I=>{b(I.message||"websocket error"),h._connected&&(h._connected=!1,h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection errored"))},h.ws.onclose=(0,y.A)(function*(){h._connected&&(h._connected=!1,h.connectionPromise=void 0,h.onclose?.(),h.closeAllSubscriptions("relay connection closed"))}),h.ws.onmessage=h._onmessage.bind(h)})),h.connectionPromise})()}runQueue(){var h=this;return(0,y.A)(function*(){for(h.queueRunning=!0;!1!==h.handleNext();)yield sm();h.queueRunning=!1})()}handleNext(){const h=this.incomingMessageQueue.dequeue();if(!h)return!1;const m=tc(h);if(m){const b=this.openSubs.get(m);if(!b)return;const I=el(h,"id"),P=b.alreadyHaveEvent?.(I);if(b.receivedEvent?.(this,I),P)return}try{let b=JSON.parse(h);switch(b[0]){case"EVENT":{const I=this.openSubs.get(b[1]),P=b[2];return void(this.verifyEvent(P)&&function Ef(h,m){for(let b=0;b{m.ws?.send(h)})})()}auth(h){var m=this;return(0,y.A)(function*(){if(!m.challenge)throw new Error("can't perform auth, no challenge was received");const b=yield h(om(m.url,m.challenge)),I=new Promise((P,G)=>{m.openEventPublishes.set(b.id,{resolve:P,reject:G})});return m.send('["AUTH",'+JSON.stringify(b)+"]"),I})()}publish(h){var m=this;return(0,y.A)(function*(){const b=new Promise((I,P)=>{m.openEventPublishes.set(h.id,{resolve:I,reject:P})});return m.send('["EVENT",'+JSON.stringify(h)+"]"),b})()}count(h,m){var b=this;return(0,y.A)(function*(){b.serial++;const I=m?.id||"count:"+b.serial,P=new Promise((G,ae)=>{b.openCountRequests.set(I,{resolve:G,reject:ae})});return b.send('["COUNT","'+I+'",'+JSON.stringify(h).substring(1)),P})()}subscribe(h,m){const b=this.prepareSubscription(h,m);return b.fire(),b}prepareSubscription(h,m){this.serial++;const b=m.id||"sub:"+this.serial,I=new lu(this,b,h,m);return this.openSubs.set(b,I),I}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(h){this.incomingMessageQueue.enqueue(h.data),this.queueRunning||this.runQueue()}},lu=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(h,m,b,I){this.relay=h,this.filters=b,this.id=m,this.alreadyHaveEvent=I.alreadyHaveEvent,this.receivedEvent=I.receivedEvent,this.eoseTimeout=I.eoseTimeout||h.baseEoseTimeout,this.oneose=I.oneose,this.onclose=I.onclose,this.onevent=I.onevent||(P=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,P)})}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(h="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?.(h)}};try{WebSocket}catch{}var td,am=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(h){this.verifyEvent=h.verifyEvent,this._WebSocket=h.websocketImplementation}ensureRelay(h,m){var b=this;return(0,y.A)(function*(){h=Jl(h);let I=b.relays.get(h);return I||(I=new ed(h,{verifyEvent:b.trustedRelayURLs.has(h)?Nl:b.verifyEvent,websocketImplementation:b._WebSocket}),m?.connectionTimeout&&(I.connectionTimeout=m.connectionTimeout),b.relays.set(h,I)),yield I.connect(),I})()}close(h){h.map(Jl).forEach(m=>{this.relays.get(m)?.close()})}subscribeMany(h,m,b){return this.subscribeManyMap(Object.fromEntries(h.map(I=>[I,m])),b)}subscribeManyMap(h,m){var b=this;this.trackRelays&&(m.receivedEvent=(Jt,on)=>{let Kt=this.seenOn.get(on);Kt||(Kt=new Set,this.seenOn.set(on,Kt)),Kt.add(Jt)});const I=new Set,P=[],G=Object.keys(h).length,ae=[];let pe=Jt=>{ae[Jt]=!0,ae.filter(on=>on).length===G&&(m.oneose?.(),pe=()=>{})};const ke=[];let it=(Jt,on)=>{pe(Jt),ke[Jt]=on,ke.filter(Kt=>Kt).length===G&&(m.onclose?.(ke),it=()=>{})};const ht=Jt=>{if(m.alreadyHaveEvent?.(Jt))return!0;const on=I.has(Jt);return I.add(Jt),on},pt=Promise.all(Object.entries(h).map(function(){var Jt=(0,y.A)(function*(on,Kt,Ft){if(Ft.indexOf(on)!==Kt)return void it(Kt,"duplicate url");let vn,[Vt,dn]=on;Vt=Jl(Vt);try{vn=yield b.ensureRelay(Vt,{connectionTimeout:m.maxWait?Math.max(.8*m.maxWait,m.maxWait-1e3):void 0})}catch(Xn){return void it(Kt,Xn?.message||String(Xn))}let Un=vn.subscribe(dn,{...m,oneose:()=>pe(Kt),onclose:Xn=>it(Kt,Xn),alreadyHaveEvent:ht,eoseTimeout:m.maxWait});P.push(Un)});return function(on,Kt,Ft){return Jt.apply(this,arguments)}}()));return{close:()=>(0,y.A)(function*(){yield pt,P.forEach(Jt=>{Jt.close()})})()}}subscribeManyEose(h,m,b){const I=this.subscribeMany(h,m,{...b,oneose(){I.close()}});return I}querySync(h,m,b){var I=this;return(0,y.A)(function*(){return new Promise(function(){var P=(0,y.A)(function*(G){const ae=[];I.subscribeManyEose(h,[m],{...b,onevent(pe){ae.push(pe)},onclose(pe){G(ae)}})});return function(G){return P.apply(this,arguments)}}())})()}get(h,m,b){var I=this;return(0,y.A)(function*(){m.limit=1;const P=yield I.querySync(h,m,b);return P.sort((G,ae)=>ae.created_at-G.created_at),P[0]||null})()}publish(h,m){var b=this;return h.map(Jl).map(function(){var I=(0,y.A)(function*(P,G,ae){if(ae.indexOf(P)!==G)return Promise.reject("duplicate url");let pe=yield b.ensureRelay(P);return pe.publish(m).then(ke=>{if(b.trackRelays){let it=b.seenOn.get(m.id);it||(it=new Set,b.seenOn.set(m.id,it)),it.add(pe)}return ke})});return function(P,G,ae){return I.apply(this,arguments)}}())}listConnectionStatus(){const h=new Map;return this.relays.forEach((m,b)=>h.set(b,m.connected)),h}destroy(){this.relays.forEach(h=>h.close()),this.relays=new Map}};try{td=WebSocket}catch{}var nd=class extends am{constructor(){super({verifyEvent:vl,websocketImplementation:td})}},xf={};Zi(xf,{BECH32_REGEX:()=>th,Bech32MaxSize:()=>id,NostrTypeGuard:()=>Sf,decode:()=>ic,encodeBytes:()=>od,naddrEncode:()=>kc,neventEncode:()=>sd,noteEncode:()=>rd,nprofileEncode:()=>Sa,npubEncode:()=>Af,nsecEncode:()=>nh});var Sf={isNProfile:h=>/^nprofile1[a-z\d]+$/.test(h||""),isNRelay:h=>/^nrelay1[a-z\d]+$/.test(h||""),isNEvent:h=>/^nevent1[a-z\d]+$/.test(h||""),isNAddr:h=>/^naddr1[a-z\d]+$/.test(h||""),isNSec:h=>/^nsec1[a-z\d]{58}$/.test(h||""),isNPub:h=>/^npub1[a-z\d]{58}$/.test(h||""),isNote:h=>/^note1[a-z\d]+$/.test(h||""),isNcryptsec:h=>/^ncryptsec1[a-z\d]+$/.test(h||"")},id=5e3,th=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function ic(h){let{prefix:m,words:b}=z.decode(h,id),I=new Uint8Array(z.fromWords(b));switch(m){case"nprofile":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==P[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Ii.My)(P[0][0]),relays:P[1]?P[1].map(G=>Fa.decode(G)):[]}}}case"nevent":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==P[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(P[2]&&32!==P[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(P[3]&&4!==P[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Ii.My)(P[0][0]),relays:P[1]?P[1].map(G=>Fa.decode(G)):[],author:P[2]?.[0]?(0,Ii.My)(P[2][0]):void 0,kind:P[3]?.[0]?parseInt((0,Ii.My)(P[3][0]),16):void 0}}}case"naddr":{let P=Rc(I);if(!P[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!P[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==P[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!P[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==P[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Fa.decode(P[0][0]),pubkey:(0,Ii.My)(P[2][0]),kind:parseInt((0,Ii.My)(P[3][0]),16),relays:P[1]?P[1].map(G=>Fa.decode(G)):[]}}}case"nsec":return{type:m,data:I};case"npub":case"note":return{type:m,data:(0,Ii.My)(I)};default:throw new Error(`unknown prefix ${m}`)}}function Rc(h){let m={},b=h;for(;b.length>0;){let I=b[0],P=b[1],G=b.slice(2,2+P);if(b=b.slice(2+P),G.lengthRs.encode(b))}))}function sd(h){let m;return void 0!==h.kind&&(m=function tl(h){const m=new Uint8Array(4);return m[0]=h>>24&255,m[1]=h>>16&255,m[2]=h>>8&255,m[3]=255&h,m}(h.kind)),rc("nevent",Nc({0:[(0,Ii.aT)(h.id)],1:(h.relays||[]).map(I=>Rs.encode(I)),2:h.author?[(0,Ii.aT)(h.author)]:[],3:m?[new Uint8Array(m)]:[]}))}function kc(h){let m=new ArrayBuffer(4);return new DataView(m).setUint32(0,h.kind,!1),rc("naddr",Nc({0:[Rs.encode(h.identifier)],1:(h.relays||[]).map(I=>Rs.encode(I)),2:[(0,Ii.aT)(h.pubkey)],3:[new Uint8Array(m)]}))}function Nc(h){let m=[];return Object.entries(h).reverse().forEach(([b,I])=>{I.forEach(P=>{let G=new Uint8Array(P.length+2);G.set([parseInt(b)],0),G.set([P.length],1),G.set(P,2),m.push(G)})}),(0,Ii.Id)(...m)}var nl={};function Tf(h,m,b){return ad.apply(this,arguments)}function ad(){return(ad=(0,y.A)(function*(h,m,b){const I=h instanceof Uint8Array?(0,Ii.My)(h):h,G=Fl(ui.getSharedSecret(I,"02"+m));let ae=Uint8Array.from((0,Ii.po)(16)),pe=Rs.encode(b),ke=Rn(G,ae).encrypt(pe);return`${qr.encode(new Uint8Array(ke))}?iv=${qr.encode(new Uint8Array(ae.buffer))}`})).apply(this,arguments)}function uu(h,m,b){return Pl.apply(this,arguments)}function Pl(){return(Pl=(0,y.A)(function*(h,m,b){const I=h instanceof Uint8Array?(0,Ii.My)(h):h;let[P,G]=b.split("?iv="),pe=Fl(ui.getSharedSecret(I,"02"+m)),ke=qr.decode(G),it=qr.decode(P),ht=Rn(pe,ke).decrypt(it);return Fa.decode(ht)})).apply(this,arguments)}function Fl(h){return h.slice(1,33)}Zi(nl,{decrypt:()=>uu,encrypt:()=>Tf}),Zi({},{NIP05_REGEX:()=>ld,isNip05:()=>fa,isValid:()=>sc,queryProfile:()=>Mf,searchDomain:()=>If,useFetchImplementation:()=>cm});var $a,ld=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,fa=h=>ld.test(h||"");try{$a=fetch}catch{}function cm(h){$a=h}function If(h){return oc.apply(this,arguments)}function oc(){return(oc=(0,y.A)(function*(h,m=""){try{const b=`https://${h}/.well-known/nostr.json?name=${m}`;return(yield(yield $a(b,{redirect:"error"})).json()).names}catch{return{}}})).apply(this,arguments)}function Mf(h){return du.apply(this,arguments)}function du(){return(du=(0,y.A)(function*(h){const m=h.match(ld);if(!m)return null;const[b,I="_",P]=m;try{const G=`https://${P}/.well-known/nostr.json?name=${I}`,ae=yield(yield $a(G,{redirect:"error"})).json();let pe=ae.names[I];return pe?{pubkey:pe,relays:ae.relays?.[pe]}:null}catch{return null}})).apply(this,arguments)}function sc(h,m){return Pc.apply(this,arguments)}function Pc(){return(Pc=(0,y.A)(function*(h,m){let b=yield Mf(m);return!!b&&b.pubkey===h})).apply(this,arguments)}function rh(h){const m={reply:void 0,root:void 0,mentions:[],profiles:[]},b=[];for(const I of h.tags)"e"===I[0]&&I[1]&&b.push(I),"p"===I[0]&&I[1]&&m.profiles.push({pubkey:I[1],relays:I[2]?[I[2]]:[]});for(let I=0;Irh}),Zi({},{fetchRelayInformation:()=>Xg,useFetchImplementation:()=>sh});try{fetch}catch{}function sh(h){}function Xg(h){return ah.apply(this,arguments)}function ah(){return(ah=(0,y.A)(function*(h){return yield(yield fetch(h.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function lh(h){let m=0;for(let b=0;b=m)break}return I}function Rf(h,m,b,I){return Ba({kind:Sc,tags:[...h.tags??[],["e",m.id,b],["p",m.pubkey]],content:""===h.content?"":JSON.stringify(m),created_at:h.created_at},I)}function hs(h){if(h.kind!==Sc)return;let m,b;for(let I=h.tags.length-1;I>=0&&(void 0===m||void 0===b);I--){const P=h.tags[I];P.length>=2&&("e"===P[0]&&void 0===m?m=P:"p"===P[0]&&void 0===b&&(b=P))}return void 0!==m?{id:m[1],relays:[m[2],b?.[2]].filter(I=>"string"==typeof I),author:b?.[1]}:void 0}function Yg(h,{skipVerification:m}={}){const b=hs(h);if(void 0===b||""===h.content)return;let I;try{I=JSON.parse(h.content)}catch{return}return I.id===b.id&&(m||vl(I))?I:void 0}Zi({},{getPow:()=>lh,minePow:()=>dm}),Zi({},{finishRepostEvent:()=>Rf,getRepostedEvent:()=>Yg,getRepostedEventPointer:()=>hs}),Zi({},{NOSTR_URI_REGEX:()=>ch,parse:()=>fm,test:()=>kf});var ch=new RegExp(`nostr:(${th.source})`);function kf(h){return"string"==typeof h&&new RegExp(`^${ch.source}$`).test(h)}function fm(h){const m=h.match(new RegExp(`^${ch.source}$`));if(!m)throw new Error(`Invalid Nostr URI: ${h}`);return{uri:m[0],value:m[1],decoded:ic(m[1])}}function Nf(h,m,b){const I=m.tags.filter(P=>P.length>=2&&("e"===P[0]||"p"===P[0]));return Ba({...h,kind:Va,tags:[...h.tags??[],...I,["e",m.id],["p",m.pubkey]],content:h.content??"+"},b)}function ud(h){if(h.kind!==Va)return;let m,b;for(let I=h.tags.length-1;I>=0&&(void 0===m||void 0===b);I--){const P=h.tags[I];P.length>=2&&("e"===P[0]&&void 0===m?m=P:"p"===P[0]&&void 0===b&&(b=P))}return void 0!==m&&void 0!==b?{id:m[1],relays:[m[2],b[2]].filter(I=>void 0!==I),author:b[1]}:void 0}Zi({},{finishReactionEvent:()=>Nf,getReactedEventPointer:()=>ud}),Zi({},{matchAll:()=>Lc,regex:()=>Pf,replaceAll:()=>Ff});var Pf=()=>new RegExp(`\\b${ch.source}\\b`,"g");function*Lc(h){const m=h.matchAll(Pf());for(const b of m)try{const[I,P]=b;yield{uri:I,value:P,decoded:ic(P),start:b.index,end:b.index+I.length}}catch{}}function Ff(h,m){return h.replaceAll(Pf(),(b,I)=>m({uri:b,value:I,decoded:ic(I)}))}Zi({},{channelCreateEvent:()=>il,channelHideMessageEvent:()=>ac,channelMessageEvent:()=>Lf,channelMetadataEvent:()=>$r,channelMuteUserEvent:()=>Jy});var il=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Fu,tags:[...h.tags??[]],content:b,created_at:h.created_at},m)},$r=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:cf,tags:[["e",h.channel_create_event_id],...h.tags??[]],content:b,created_at:h.created_at},m)},Lf=(h,m)=>{const b=[["e",h.channel_create_event_id,h.relay_url,"root"]];return h.reply_to_channel_message_event_id&&b.push(["e",h.reply_to_channel_message_event_id,h.relay_url,"reply"]),Ba({kind:Zp,tags:[...b,...h.tags??[]],content:h.content,created_at:h.created_at},m)},ac=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Lu,tags:[["e",h.channel_message_event_id],...h.tags??[]],content:b,created_at:h.created_at},m)},Jy=(h,m)=>{let b;if("object"==typeof h.content)b=JSON.stringify(h.content);else{if("string"!=typeof h.content)return;b=h.content}return Ba({kind:Bu,tags:[["p",h.pubkey_to_mute],...h.tags??[]],content:b,created_at:h.created_at},m)};Zi({},{EMOJI_SHORTCODE_REGEX:()=>lc,matchAll:()=>yo,regex:()=>qo,replaceAll:()=>Bf});var hd,lc=/:(\w+):/,qo=()=>new RegExp(`\\B${lc.source}\\B`,"g");function*yo(h){const m=h.matchAll(qo());for(const b of m)try{const[I,P]=b;yield{shortcode:I,name:P,start:b.index,end:b.index+I.length}}catch{}}function Bf(h,m){return h.replaceAll(qo(),(b,I)=>m({shortcode:b,name:I}))}Zi({},{useFetchImplementation:()=>mm,validateGithub:()=>dh});try{hd=fetch}catch{}function mm(h){hd=h}function dh(h,m,b){return hu.apply(this,arguments)}function hu(){return(hu=(0,y.A)(function*(h,m,b){try{return(yield(yield hd(`https://gist.github.com/${m}/${b}/raw`)).text())===`Verifying that I control the following Nostr public key: ${h}`}catch{return!1}})).apply(this,arguments)}Zi({},{decrypt:()=>pd,encrypt:()=>jf,getConversationKey:()=>cc,v2:()=>Qg});var fd=1,Uc=65535;function cc(h,m){const b=ui.getSharedSecret(h,"02"+m).subarray(1,33);return function ct(h,m,b){return Vr.hash(h),void 0===b&&(b=new Uint8Array(h.outputLen)),De(h,(0,Ii.ZJ)(b),(0,Ii.ZJ)(m))}(ro,b,"nip44-v2")}function hh(h,m){const b=function ei(h,m,b,I=32){if(Vr.hash(h),Vr.number(I),I>255*h.outputLen)throw new Error("Length should be <= 255*HashLen");const P=Math.ceil(I/h.outputLen);void 0===b&&(b=Qt);const G=new Uint8Array(P*h.outputLen),ae=De.create(h,m),pe=ae._cloneInto(),ke=new Uint8Array(ae.outputLen);for(let it=0;itUc)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const m=new Uint8Array(2);return new DataView(m.buffer).setUint16(0,h,!1),m}(b),P=new Uint8Array(Vc(b)-b);return(0,Ii.Id)(I,m,P)}(h),pe=Zl(I,P,ae),ke=gm(G,pe,b);return qr.encode((0,Ii.Id)(new Uint8Array([2]),b,pe,ke))}function pd(h,m){const{nonce:b,ciphertext:I,mac:P}=function vm(h){if("string"!=typeof h)throw new Error("payload must be a valid string");const m=h.length;if(m<132||m>87472)throw new Error("invalid payload length: "+m);if("#"===h[0])throw new Error("unknown encryption version");let b;try{b=qr.decode(h)}catch(G){throw new Error("invalid base64: "+G.message)}const I=b.length;if(I<99||I>65603)throw new Error("invalid data length: "+I);const P=b[0];if(2!==P)throw new Error("unknown encryption version "+P);return{nonce:b.subarray(1,33),ciphertext:b.subarray(33,-32),mac:b.subarray(-32)}}(h),{chacha_key:G,chacha_nonce:ae,hmac_key:pe}=hh(m,b);if(!as(gm(pe,I,b),P))throw new Error("invalid MAC");return function fh(h){const m=new DataView(h.buffer).getUint16(0),b=h.subarray(2,2+m);if(mUc||b.length!==m||h.length!==2+Vc(m))throw new Error("invalid padding");return Fa.decode(b)}(Zl(G,ae,I))}var Hc,Qg={utils:{getConversationKey:cc,calcPaddedLen:Vc},encrypt:jf,decrypt:pd};function El(h){const{pathname:m,searchParams:b}=new URL(h),I=m,P=b.get("relay"),G=b.get("secret");if(!I||!P||!G)throw new Error("invalid connection string");return{pubkey:I,relay:P,secret:G}}function jc(h,m,b){return md.apply(this,arguments)}function md(){return(md=(0,y.A)(function*(h,m,b){const P=yield Tf(m,h,JSON.stringify({method:"pay_invoice",params:{invoice:b}})),G={kind:hf,created_at:Math.round(Date.now()/1e3),content:P,tags:[["p",h]]};return Ba(G,m)})).apply(this,arguments)}Zi({},{makeNwcRequestEvent:()=>jc,parseConnectionString:()=>El}),Zi({},{getZapEndpoint:()=>_m,makeZapReceipt:()=>Gc,makeZapRequest:()=>$f,useFetchImplementation:()=>$c,validateZapRequest:()=>Wc});try{Hc=fetch}catch{}function $c(h){Hc=h}function _m(h){return zc.apply(this,arguments)}function zc(){return(zc=(0,y.A)(function*(h){try{let m="",{lud06:b,lud16:I}=JSON.parse(h.content);if(b){let{words:ae}=z.decode(b,1e3),pe=z.fromWords(ae);m=Fa.decode(pe)}else{if(!I)return null;{let[ae,pe]=I.split("@");m=new URL(`/.well-known/lnurlp/${ae}`,`https://${pe}`).toString()}}let G=yield(yield Hc(m)).json();if(G.allowsNostr&&G.nostrPubkey)return G.callback}catch{}return null})).apply(this,arguments)}function $f({profile:h,event:m,amount:b,relays:I,comment:P=""}){if(!b)throw new Error("amount not given");if(!h)throw new Error("profile not given");let G={kind:9734,created_at:Math.round(Date.now()/1e3),content:P,tags:[["p",h],["amount",b.toString()],["relays",...I]]};return m&&G.tags.push(["e",m]),G}function Wc(h){let m;try{m=JSON.parse(h)}catch{return"Invalid zap request JSON."}if(!xa(m))return"Zap request is not a valid Nostr event.";if(!vl(m))return"Invalid signature on zap request.";let b=m.tags.find(([G,ae])=>"p"===G&&ae);if(!b)return"Zap request doesn't have a 'p' tag.";if(!b[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let I=m.tags.find(([G,ae])=>"e"===G&&ae);return I&&!I[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":m.tags.find(([G,ae])=>"relays"===G&&ae)?null:"Zap request doesn't have a 'relays' tag."}function Gc({zapRequest:h,preimage:m,bolt11:b,paidAt:I}){let P=JSON.parse(h),G=P.tags.filter(([pe])=>"e"===pe||"p"===pe||"a"===pe),ae={kind:9735,created_at:Math.round(I.getTime()/1e3),content:"",tags:[...G,["P",P.pubkey],["bolt11",b],["description",h]]};return m&&ae.tags.push(["preimage",m]),ae}Zi({},{createRumor:()=>Wf,createSeal:()=>ks,createWrap:()=>rl,unwrapEvent:()=>Kc,wrapEvent:()=>Gf});var zf=()=>Math.round(Date.now()/1e3),mh=()=>Math.round(zf()-172800*Math.random()),gh=(h,m)=>cc(h,m),vh=(h,m,b)=>jf(JSON.stringify(h),gh(m,b)),fu=(h,m)=>JSON.parse(pd(h.content,gh(m,h.pubkey)));function Wf(h,m){const b={created_at:zf(),content:"",tags:[],...h,pubkey:Is(m)};return b.id=vr(b),b}function ks(h,m,b){return Ba({kind:Xi,content:vh(h,m,b),created_at:mh(),tags:[]},m)}function rl(h,m){const b=Cc();return Ba({kind:Ol,content:vh(h,b,m),created_at:mh(),tags:[["p",m]]},b)}function Gf(h,m,b){return rl(ks(Wf(h,m),m,b),b)}function Kc(h,m){const b=fu(h,m);return fu(b,m)}Zi({},{getToken:()=>fs,hashPayload:()=>uc,unpackEventFromToken:()=>vd,validateEvent:()=>Eh,validateEventKind:()=>bh,validateEventMethodTag:()=>Ll,validateEventPayloadTag:()=>Yf,validateEventTimestamp:()=>Xf,validateEventUrlTag:()=>wh,validateToken:()=>_h});var Kf="Nostr ";function fs(h,m,b){return ol.apply(this,arguments)}function ol(){return(ol=(0,y.A)(function*(h,m,b,I=!1,P){const G={kind:Yu,tags:[["u",h],["method",m]],created_at:Math.round((new Date).getTime()/1e3),content:""};P&&G.tags.push(["payload",uc(P)]);const ae=yield b(G);return(I?Kf:"")+qr.encode(Rs.encode(JSON.stringify(ae)))})).apply(this,arguments)}function _h(h,m,b){return yh.apply(this,arguments)}function yh(){return(yh=(0,y.A)(function*(h,m,b){const I=yield vd(h).catch(G=>{throw G});return yield Eh(I,m,b).catch(G=>{throw G})})).apply(this,arguments)}function vd(h){return _d.apply(this,arguments)}function _d(){return(_d=(0,y.A)(function*(h){if(!h)throw new Error("Missing token");h=h.replace(Kf,"");const m=Fa.decode(qr.decode(h));if(!m||0===m.length||!m.startsWith("{"))throw new Error("Invalid token");return JSON.parse(m)})).apply(this,arguments)}function Xf(h){return!!h.created_at&&Math.round((new Date).getTime()/1e3)-h.created_at<60}function bh(h){return h.kind===Yu}function wh(h,m){const b=h.tags.find(I=>"u"===I[0]);return!!b&&b.length>0&&b[1]===m}function Ll(h,m){const b=h.tags.find(I=>"method"===I[0]);return!!b&&b.length>0&&b[1].toLowerCase()===m.toLowerCase()}function uc(h){const m=ro(Rs.encode(JSON.stringify(h)));return(0,Ii.My)(m)}function Yf(h,m){const b=h.tags.find(P=>"payload"===P[0]);if(!b)return!1;const I=uc(m);return b.length>0&&b[1]===I}function Eh(h,m,b,I){return Ch.apply(this,arguments)}function Ch(){return(Ch=(0,y.A)(function*(h,m,b,I){if(!vl(h))throw new Error("Invalid nostr event, signature invalid");if(!bh(h))throw new Error("Invalid nostr event, kind invalid");if(!Xf(h))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!wh(h,m))throw new Error("Invalid nostr event, url tag invalid");if(!Ll(h,b))throw new Error("Invalid nostr event, method tag invalid");if(I&&"object"==typeof I&&Object.keys(I).length>0&&!Yf(h,I))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},8418:(tn,Re,v)=>{"use strict";v.d(Re,{In:()=>F,rV:()=>U});var F=3,U=4},6391:(tn,Re,v)=>{"use strict";v.d(Re,{Vw:()=>te,My:()=>F,Id:()=>Me,O8:()=>W,aT:()=>U,po:()=>Xe,Ow:()=>ee,ZJ:()=>Te,ld:()=>bt});const u="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,y=oe=>oe instanceof Uint8Array,W=oe=>new DataView(oe.buffer,oe.byteOffset,oe.byteLength),ee=(oe,he)=>oe<<32-he|oe>>>he;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const V=Array.from({length:256},(oe,he)=>he.toString(16).padStart(2,"0"));function F(oe){if(!y(oe))throw new Error("Uint8Array expected");let he="";for(let Le=0;Leet+It.length,0));let Le=0;return oe.forEach(et=>{if(!y(et))throw new Error("Uint8Array expected");he.set(et,Le),Le+=et.length}),he}class te{clone(){return this._cloneInto()}}function bt(oe){const he=et=>oe().update(Te(et)).digest(),Le=oe();return he.outputLen=Le.outputLen,he.blockLen=Le.blockLen,he.create=()=>oe(),he}function Xe(oe=32){if(u&&"function"==typeof u.getRandomValues)return u.getRandomValues(new Uint8Array(oe));throw new Error("crypto.getRandomValues must be defined")}},467:(tn,Re,v)=>{"use strict";function u(o,B,W,ee,re,V,F){try{var U=o[V](F),L=U.value}catch(fe){return void W(fe)}U.done?B(L):Promise.resolve(L).then(ee,re)}function y(o){return function(){var B=this,W=arguments;return new Promise(function(ee,re){var V=o.apply(B,W);function F(L){u(V,ee,re,F,U,"next",L)}function U(L){u(V,ee,re,F,U,"throw",L)}F(void 0)})}}v.d(Re,{A:()=>y})},1635:(tn,Re,v)=>{"use strict";function fe(Ee,J,Se,gt){return new(Se||(Se=Promise))(function(Ze,je){function Lt(Oe){try{we(gt.next(Oe))}catch(me){je(me)}}function Mt(Oe){try{we(gt.throw(Oe))}catch(me){je(me)}}function we(Oe){Oe.done?Ze(Oe.value):function Ne(Ze){return Ze instanceof Se?Ze:new Se(function(je){je(Ze)})}(Oe.value).then(Lt,Mt)}we((gt=gt.apply(Ee,J||[])).next())})}function Ve(Ee){return this instanceof Ve?(this.v=Ee,this):new Ve(Ee)}function rt(Ee,J,Se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ne,gt=Se.apply(Ee,J||[]),Ze=[];return Ne=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Lt("next"),Lt("throw"),Lt("return",function je(Pe){return function(xt){return Promise.resolve(xt).then(Pe,me)}}),Ne[Symbol.asyncIterator]=function(){return this},Ne;function Lt(Pe,xt){gt[Pe]&&(Ne[Pe]=function(xe){return new Promise(function(ut,Rt){Ze.push([Pe,xe,ut,Rt])>1||Mt(Pe,xe)})},xt&&(Ne[Pe]=xt(Ne[Pe])))}function Mt(Pe,xt){try{!function we(Pe){Pe.value instanceof Ve?Promise.resolve(Pe.value.v).then(Oe,me):We(Ze[0][2],Pe)}(gt[Pe](xt))}catch(xe){We(Ze[0][3],xe)}}function Oe(Pe){Mt("next",Pe)}function me(Pe){Mt("throw",Pe)}function We(Pe,xt){Pe(xt),Ze.shift(),Ze.length&&Mt(Ze[0][0],Ze[0][1])}}function oe(Ee){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Se,J=Ee[Symbol.asyncIterator];return J?J.call(Ee):(Ee=function Me(Ee){var J="function"==typeof Symbol&&Symbol.iterator,Se=J&&Ee[J],gt=0;if(Se)return Se.call(Ee);if(Ee&&"number"==typeof Ee.length)return{next:function(){return Ee&>>=Ee.length&&(Ee=void 0),{value:Ee&&Ee[gt++],done:!Ee}}};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ee),Se={},gt("next"),gt("throw"),gt("return"),Se[Symbol.asyncIterator]=function(){return this},Se);function gt(Ze){Se[Ze]=Ee[Ze]&&function(je){return new Promise(function(Lt,Mt){!function Ne(Ze,je,Lt,Mt){Promise.resolve(Mt).then(function(we){Ze({value:we,done:Lt})},je)}(Lt,Mt,(je=Ee[Ze](je)).done,je.value)})}}}v.d(Re,{AQ:()=>rt,N3:()=>Ve,sH:()=>fe,xN:()=>oe}),"function"==typeof SuppressedError&&SuppressedError}},tn=>{tn(tn.s=368)}]); \ No newline at end of file diff --git a/ngsw.json b/ngsw.json index 045c964..6b4dd6d 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1729930961291, + "timestamp": 1729935241736, "index": "/index.html", "assetGroups": [], "dataGroups": [], diff --git a/runtime.24140919c28461a1.js b/runtime.24140919c28461a1.js deleted file mode 100644 index cc627d7..0000000 --- a/runtime.24140919c28461a1.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,d)=>{if(!t){var a=1/0;for(f=0;f=d)&&Object.keys(r.O).every(p=>r.O[p](t[o]))?t.splice(o--,1):(u=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[t,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{19:"b4580ee31fef8cf4",76:"8387d21f47bfcd2b",182:"23e37154050d0229",258:"7649e8b3a38462e3",389:"ea91c43b6c028724",416:"58824f5e2bfd083a",514:"3cbedf0fb12273c0",541:"3926e171aa60482c",576:"ab428255577385a0",588:"380d9cba851daca3",621:"55a0de86df466512",770:"2eb56154f776da7e",865:"e320a31fbe74bda0",879:"3bf2631172caf663",963:"c7d13f1c7cf258ea"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(t,i,d,f)=>{if(e[t])e[t].push(i);else{var a,u;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(p)),m)return m(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),u&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=i){var a=new Promise((c,s)=>f=e[i]=[c,s]);d.push(f[2]=a);var u=r.p+r.u(i),o=new Error;r.l(u,c=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;o.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var o,l,[f,a,u]=d,c=0;if(f.some(b=>0!==e[b])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(u)var s=u(r)}for(i&&i(d);c{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var a=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=v,e=[],r.O=(n,a,i,d)=>{if(!a){var t=1/0;for(f=0;f=d)&&Object.keys(r.O).every(p=>r.O[p](a[o]))?a.splice(o--,1):(u=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[a,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var a in n)r.o(n,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,a)=>(r.f[a](e,n),n),[])),r.u=e=>(76===e?"common":e)+"."+{19:"b4580ee31fef8cf4",76:"8387d21f47bfcd2b",182:"23e37154050d0229",258:"7649e8b3a38462e3",389:"0fc7edae525b0b80",416:"58824f5e2bfd083a",514:"3cbedf0fb12273c0",541:"3926e171aa60482c",576:"ab428255577385a0",588:"380d9cba851daca3",621:"55a0de86df466512",770:"2eb56154f776da7e",865:"e320a31fbe74bda0",879:"3bf2631172caf663",963:"c7d13f1c7cf258ea"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(a,i,d,f)=>{if(e[a])e[a].push(i);else{var t,u;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(b);var h=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),h&&h.forEach(_=>_(p)),m)return m(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),u&&document.head.appendChild(t)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(121!=i){var t=new Promise((c,s)=>f=e[i]=[c,s]);d.push(f[2]=t);var u=r.p+r.u(i),o=new Error;r.l(u,c=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;o.message="Loading chunk "+i+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var o,l,[f,t,u]=d,c=0;if(f.some(b=>0!==e[b])){for(o in t)r.o(t,o)&&(r.m[o]=t[o]);if(u)var s=u(r)}for(i&&i(d);c