diff --git a/318.afda1c4d799c528b.js b/318.b458f6d3dc91cab3.js similarity index 99% rename from 318.afda1c4d799c528b.js rename to 318.b458f6d3dc91cab3.js index b5135cf..d1cf765 100644 --- a/318.afda1c4d799c528b.js +++ b/318.b458f6d3dc91cab3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[318],{2773:(w,l,s)=>{s.d(l,{n:()=>v});var r=s(6146),m=s(3022),e=s(3107);const _=[[["","angorCardFront",""]],[["","angorCardBack",""]],"*",[["","angorCardExpansion",""]]],u=["[angorCardFront]","[angorCardBack]","*","[angorCardExpansion]"];function f(n,b){1&n&&(e.j41(0,"div",0),e.SdG(1),e.k0s(),e.j41(2,"div",1),e.SdG(3,1),e.k0s())}function h(n,b){1&n&&(e.j41(0,"div",2),e.SdG(1,3),e.k0s()),2&n&&e.Y8G("@expandCollapse",void 0)}function g(n,b){if(1&n&&(e.SdG(0,2),e.DNE(1,h,2,1,"div",2)),2&n){const c=e.XpG();e.R7$(),e.vxM(c.expanded?1:-1)}}let v=(()=>{class n{constructor(){this.expanded=!1,this.face="front",this.flippable=!1}get classList(){return{"angor-card-expanded":this.expanded,"angor-card-face-back":this.flippable&&"back"===this.face,"angor-card-face-front":this.flippable&&"front"===this.face,"angor-card-flippable":this.flippable}}ngOnChanges(c){"expanded"in c&&(this.expanded=(0,m.he)(c.expanded.currentValue)),"flippable"in c&&(this.flippable=(0,m.he)(c.flippable.currentValue))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["angor-card"]],hostVars:2,hostBindings:function(i,p){2&i&&e.HbH(p.classList)},inputs:{expanded:"expanded",face:"face",flippable:"flippable"},exportAs:["angorCard"],features:[e.OA$],ngContentSelectors:u,decls:2,vars:2,consts:[[1,"angor-card-front"],[1,"angor-card-back"],[1,"angor-card-expansion"]],template:function(i,p){1&i&&(e.NAR(_),e.DNE(0,f,4,0)(1,g,2,1)),2&i&&(e.vxM(p.flippable?0:-1),e.R7$(),e.vxM(p.flippable?-1:1))},styles:["angor-card{position:relative;display:flex;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}angor-card.angor-card-flippable .angor-card-front,angor-card.angor-card-flippable .angor-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable .angor-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}angor-card.angor-card-flippable .angor-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"],encapsulation:2,data:{animation:r.F}})}}return n})()},7785:(w,l,s)=>{s.d(l,{n:()=>r.n});var r=s(2773)},1054:(w,l,s)=>{s.d(l,{D6:()=>c,LG:()=>n});var r=s(3107),m=s(4460),e=s(2902);const _=["determinateSpinner"];function u(i,p){if(1&i&&(r.qSk(),r.j41(0,"svg",11),r.nrm(1,"circle",12),r.k0s()),2&i){const a=r.XpG();r.BMQ("viewBox",a._viewBox()),r.R7$(),r.xc7("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),r.BMQ("r",a._circleRadius())}}const f=new r.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function h(){return{diameter:g}}}),g=100;let n=(()=>{class i{_elementRef=(0,r.WQX)(r.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(a){this._color=a}_color;_defaultColor="primary";_determinateCircle;constructor(){const a=(0,r.WQX)(r.bc$,{optional:!0}),t=(0,r.WQX)(f);this._noopAnimations="NoopAnimations"===a&&!!t&&!t._forceAnimations,this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",t&&(t.color&&(this.color=this._defaultColor=t.color),t.diameter&&(this.diameter=t.diameter),t.strokeWidth&&(this.strokeWidth=t.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,a||0))}_value=0;get diameter(){return this._diameter}set diameter(a){this._diameter=a||0}_diameter=g;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(a){this._strokeWidth=a||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const a=2*this._circleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_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 \u0275fac=function(t){return new(t||i)};static \u0275cmp=r.VBU({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,o){if(1&t&&r.GBs(_,5),2&t){let d;r.mGM(d=r.lsd())&&(o._determinateCircle=d.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,o){2&t&&(r.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),r.HbH("mat-"+o.color),r.xc7("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),r.AVh("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",r.Udg],diameter:[2,"diameter","diameter",r.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",r.Udg]},exportAs:["matProgressSpinner"],features:[r.GFd],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(t,o){if(1&t&&(r.DNE(0,u,2,8,"ng-template",null,0,r.C5r),r.j41(2,"div",2,1),r.qSk(),r.j41(4,"svg",3),r.nrm(5,"circle",4),r.k0s()(),r.joV(),r.j41(6,"div",5)(7,"div",6)(8,"div",7),r.eu8(9,8),r.k0s(),r.j41(10,"div",9),r.eu8(11,8),r.k0s(),r.j41(12,"div",10),r.eu8(13,8),r.k0s()()()),2&t){const d=r.sdS(1);r.R7$(4),r.BMQ("viewBox",o._viewBox()),r.R7$(),r.xc7("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),r.BMQ("r",o._circleRadius()),r.R7$(4),r.Y8G("ngTemplateOutlet",d),r.R7$(2),r.Y8G("ngTemplateOutlet",d),r.R7$(2),r.Y8G("ngTemplateOutlet",d)}},dependencies:[m.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, 4px)}.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}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.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-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.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 i})(),c=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=r.$C({type:i});static \u0275inj=r.G2t({imports:[e.yE]})}return i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[318],{2773:(w,l,s)=>{s.d(l,{n:()=>v});var r=s(7618),m=s(3022),e=s(3107);const _=[[["","angorCardFront",""]],[["","angorCardBack",""]],"*",[["","angorCardExpansion",""]]],u=["[angorCardFront]","[angorCardBack]","*","[angorCardExpansion]"];function f(n,b){1&n&&(e.j41(0,"div",0),e.SdG(1),e.k0s(),e.j41(2,"div",1),e.SdG(3,1),e.k0s())}function h(n,b){1&n&&(e.j41(0,"div",2),e.SdG(1,3),e.k0s()),2&n&&e.Y8G("@expandCollapse",void 0)}function g(n,b){if(1&n&&(e.SdG(0,2),e.DNE(1,h,2,1,"div",2)),2&n){const c=e.XpG();e.R7$(),e.vxM(c.expanded?1:-1)}}let v=(()=>{class n{constructor(){this.expanded=!1,this.face="front",this.flippable=!1}get classList(){return{"angor-card-expanded":this.expanded,"angor-card-face-back":this.flippable&&"back"===this.face,"angor-card-face-front":this.flippable&&"front"===this.face,"angor-card-flippable":this.flippable}}ngOnChanges(c){"expanded"in c&&(this.expanded=(0,m.he)(c.expanded.currentValue)),"flippable"in c&&(this.flippable=(0,m.he)(c.flippable.currentValue))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["angor-card"]],hostVars:2,hostBindings:function(i,p){2&i&&e.HbH(p.classList)},inputs:{expanded:"expanded",face:"face",flippable:"flippable"},exportAs:["angorCard"],features:[e.OA$],ngContentSelectors:u,decls:2,vars:2,consts:[[1,"angor-card-front"],[1,"angor-card-back"],[1,"angor-card-expansion"]],template:function(i,p){1&i&&(e.NAR(_),e.DNE(0,f,4,0)(1,g,2,1)),2&i&&(e.vxM(p.flippable?0:-1),e.R7$(),e.vxM(p.flippable?-1:1))},styles:["angor-card{position:relative;display:flex;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}angor-card.angor-card-flippable .angor-card-front,angor-card.angor-card-flippable .angor-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable .angor-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}angor-card.angor-card-flippable .angor-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"],encapsulation:2,data:{animation:r.F}})}}return n})()},7785:(w,l,s)=>{s.d(l,{n:()=>r.n});var r=s(2773)},1054:(w,l,s)=>{s.d(l,{D6:()=>c,LG:()=>n});var r=s(3107),m=s(4460),e=s(2902);const _=["determinateSpinner"];function u(i,p){if(1&i&&(r.qSk(),r.j41(0,"svg",11),r.nrm(1,"circle",12),r.k0s()),2&i){const a=r.XpG();r.BMQ("viewBox",a._viewBox()),r.R7$(),r.xc7("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),r.BMQ("r",a._circleRadius())}}const f=new r.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function h(){return{diameter:g}}}),g=100;let n=(()=>{class i{_elementRef=(0,r.WQX)(r.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(a){this._color=a}_color;_defaultColor="primary";_determinateCircle;constructor(){const a=(0,r.WQX)(r.bc$,{optional:!0}),t=(0,r.WQX)(f);this._noopAnimations="NoopAnimations"===a&&!!t&&!t._forceAnimations,this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",t&&(t.color&&(this.color=this._defaultColor=t.color),t.diameter&&(this.diameter=t.diameter),t.strokeWidth&&(this.strokeWidth=t.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,a||0))}_value=0;get diameter(){return this._diameter}set diameter(a){this._diameter=a||0}_diameter=g;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(a){this._strokeWidth=a||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const a=2*this._circleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_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 \u0275fac=function(t){return new(t||i)};static \u0275cmp=r.VBU({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,o){if(1&t&&r.GBs(_,5),2&t){let d;r.mGM(d=r.lsd())&&(o._determinateCircle=d.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,o){2&t&&(r.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===o.mode?o.value:null)("mode",o.mode),r.HbH("mat-"+o.color),r.xc7("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),r.AVh("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===o.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",r.Udg],diameter:[2,"diameter","diameter",r.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",r.Udg]},exportAs:["matProgressSpinner"],features:[r.GFd],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(t,o){if(1&t&&(r.DNE(0,u,2,8,"ng-template",null,0,r.C5r),r.j41(2,"div",2,1),r.qSk(),r.j41(4,"svg",3),r.nrm(5,"circle",4),r.k0s()(),r.joV(),r.j41(6,"div",5)(7,"div",6)(8,"div",7),r.eu8(9,8),r.k0s(),r.j41(10,"div",9),r.eu8(11,8),r.k0s(),r.j41(12,"div",10),r.eu8(13,8),r.k0s()()()),2&t){const d=r.sdS(1);r.R7$(4),r.BMQ("viewBox",o._viewBox()),r.R7$(),r.xc7("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),r.BMQ("r",o._circleRadius()),r.R7$(4),r.Y8G("ngTemplateOutlet",d),r.R7$(2),r.Y8G("ngTemplateOutlet",d),r.R7$(2),r.Y8G("ngTemplateOutlet",d)}},dependencies:[m.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, 4px)}.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}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.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-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.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 i})(),c=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=r.$C({type:i});static \u0275inj=r.G2t({imports:[e.yE]})}return i})()}}]); \ No newline at end of file diff --git a/404.html b/404.html index f7481e7..2713aa4 100644 --- a/404.html +++ b/404.html @@ -26,7 +26,7 @@ - + @@ -41,5 +41,5 @@ - + diff --git a/664.8a10de4594052b2f.js b/664.bddcb91772855f24.js similarity index 99% rename from 664.8a10de4594052b2f.js rename to 664.bddcb91772855f24.js index b4700fe..7937dbc 100644 --- a/664.8a10de4594052b2f.js +++ b/664.bddcb91772855f24.js @@ -1 +1 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[664],{9664:(I,d,s)=>{s.r(d),s.d(d,{default:()=>G});var v=s(6146),b=s(6903),g=s(4460),i=s(936),c=s(9471),u=s(2992),a=s(6071),p=s(3904),f=s(6389),h=s(1054),y=s(8716),e=s(3107),x=s(8078);const k=["registerNgForm"],j=()=>["/login"];function F(o,m){if(1&o&&(e.j41(0,"angor-alert",24),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message," ")}}function w(o,m){if(1&o){const t=e.RV6();e.j41(0,"div",25)(1,"mat-form-field",26)(2,"mat-label"),e.EFF(3,"Secret Key"),e.k0s(),e.nrm(4,"input",27),e.j41(5,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.secretKey))}),e.nrm(6,"mat-icon",29),e.k0s()(),e.j41(7,"mat-form-field",26)(8,"mat-label"),e.EFF(9,"Public Key"),e.k0s(),e.nrm(10,"input",27),e.j41(11,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.pubkey))}),e.nrm(12,"mat-icon",29),e.k0s()(),e.j41(13,"mat-form-field",26)(14,"mat-label"),e.EFF(15,"NPUB"),e.k0s(),e.nrm(16,"input",27),e.j41(17,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.npub))}),e.nrm(18,"mat-icon",29),e.k0s()(),e.j41(19,"mat-form-field",26)(20,"mat-label"),e.EFF(21,"NSEC"),e.k0s(),e.nrm(22,"input",27),e.j41(23,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.nsec))}),e.nrm(24,"mat-icon",29),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("value",t.generatedKeys.secretKey),e.R7$(6),e.Y8G("value",t.generatedKeys.pubkey),e.R7$(6),e.Y8G("value",t.generatedKeys.npub),e.R7$(6),e.Y8G("value",t.generatedKeys.nsec)}}function R(o,m){1&o&&e.nrm(0,"mat-progress-spinner",33),2&o&&e.Y8G("diameter",24)("mode","indeterminate")}function C(o,m){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"mat-checkbox",30),e.EFF(2," I confirm I have copied the keys "),e.k0s(),e.j41(3,"button",31),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.register())}),e.j41(4,"span"),e.EFF(5,"Create account"),e.k0s(),e.DNE(6,R,1,2,"mat-progress-spinner",32),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("formControlName","confirmation"),e.R7$(2),e.Y8G("color","primary")("disabled",!t.registerForm.valid||!t.generatedKeys),e.R7$(3),e.Y8G("ngIf",t.registerForm.disabled)}}const G=[{path:"",component:(()=>{class o{constructor(t,n,r){this._formBuilder=t,this._router=n,this._signerService=r,this.alert={type:"success",message:""},this.showAlert=!1,this.generatedKeys=null}ngOnInit(){this.registerForm=this._formBuilder.group({confirmation:[!1,i.k0.requiredTrue]})}generateKeys(){const t=this.registerForm.get("password")?.value,n=this._signerService.generateAndStoreKeys(t);n?(this.generatedKeys=n,this.alert={type:"success",message:"Keys generated and stored successfully!"}):this.alert={type:"error",message:"Error generating keys. Please try again."},this.showAlert=!0}register(){if(this.registerForm.invalid||!this.generatedKeys)return;this.registerForm.disable(),this.showAlert=!1;const t={...this.generatedKeys,password:this.registerForm.get("password")?.value};console.log("User Metadata:",t),this.alert={type:"success",message:"Account created successfully!"},this.showAlert=!0,this._router.navigateByUrl("/home")}copyToClipboard(t){navigator.clipboard.writeText(t).then(()=>{console.log("Copied to clipboard successfully!")},n=>{console.error("Could not copy text: ",n)})}static{this.\u0275fac=function(n){return new(n||o)(e.rXU(i.ze),e.rXU(y.Ix),e.rXU(x.A))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["auth-create"]],viewQuery:function(n,r){if(1&n&&e.GBs(k,5),2&n){let l;e.mGM(l=e.lsd())&&(r.registerNgForm=l.first)}},decls:33,vars:7,consts:[["registerNgForm","ngForm"],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],["class","mt-8",3,"appearance","showIcon","type",4,"ngIf"],["mat-flat-button","",1,"mt-6","w-full","angor-mat-button-large",3,"click","color"],["class","mt-4 space-y-2",4,"ngIf"],[1,"mt-2",3,"formGroup"],[4,"ngIf"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-right-16","-top-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-4","space-y-2"],["appearance","outline",1,"w-full"],["matInput","","readonly","",3,"value"],["mat-icon-button","","matSuffix","",3,"click"],["svgIcon","heroicons_outline:clipboard-document"],[1,"mt-4",3,"formControlName"],["mat-flat-button","",1,"angor-mat-button-large","mt-6","w-full",3,"click","color","disabled"],[3,"diameter","mode",4,"ngIf"],[3,"diameter","mode"]],template:function(n,r){if(1&n){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),e.EFF(4," Create account "),e.k0s(),e.j41(5,"div",5)(6,"div"),e.EFF(7,"Already have an account?"),e.k0s(),e.j41(8,"a",6),e.EFF(9,"Login "),e.k0s()(),e.DNE(10,F,2,5,"angor-alert",7),e.j41(11,"button",8),e.bIt("click",function(){return e.eBV(l),e.Njj(r.generateKeys())}),e.EFF(12," Generate and Store Keys "),e.k0s(),e.DNE(13,w,25,4,"div",9),e.j41(14,"form",10,0),e.DNE(16,C,7,4,"div",11),e.k0s()()(),e.j41(17,"div",12),e.qSk(),e.j41(18,"svg",13)(19,"g",14),e.nrm(20,"circle",15)(21,"circle",16),e.k0s()(),e.j41(22,"svg",17)(23,"defs")(24,"pattern",18),e.nrm(25,"rect",19),e.k0s()(),e.nrm(26,"rect",20),e.k0s(),e.joV(),e.j41(27,"div",21)(28,"div",22)(29,"div"),e.EFF(30,"Angor Hub"),e.k0s()(),e.j41(31,"div",23),e.EFF(32," Angor Hub is a Nostr client that is customized around the Angor protocol, a decentralized crowdfunding platform. "),e.k0s()()()()}2&n&&(e.R7$(8),e.Y8G("routerLink",e.lJ4(6,j)),e.R7$(2),e.Y8G("ngIf",r.showAlert),e.R7$(),e.Y8G("color","primary"),e.R7$(2),e.Y8G("ngIf",r.generatedKeys),e.R7$(),e.Y8G("formGroup",r.registerForm),e.R7$(2),e.Y8G("ngIf",r.generatedKeys))},dependencies:[y.Wk,b.h,i.YN,i.qT,i.BC,i.cb,i.X1,i.j4,i.JD,a.RG,a.rl,a.nJ,a.yw,f.fS,f.fg,c.Hl,c.$z,c.iY,p.m_,p.An,u.g7,u.So,h.D6,h.LG,g.MD,g.bT],encapsulation:2,data:{animation:v.F}})}}return o})()}]}}]); \ No newline at end of file +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[664],{9664:(I,d,s)=>{s.r(d),s.d(d,{default:()=>G});var v=s(7618),b=s(6903),g=s(4460),i=s(936),c=s(9471),u=s(2992),a=s(6071),p=s(3904),f=s(6389),h=s(1054),y=s(8716),e=s(3107),x=s(8078);const k=["registerNgForm"],j=()=>["/login"];function F(o,m){if(1&o&&(e.j41(0,"angor-alert",24),e.EFF(1),e.k0s()),2&o){const t=e.XpG();e.Y8G("appearance","outline")("showIcon",!1)("type",t.alert.type)("@shake","error"===t.alert.type),e.R7$(),e.SpI(" ",t.alert.message," ")}}function w(o,m){if(1&o){const t=e.RV6();e.j41(0,"div",25)(1,"mat-form-field",26)(2,"mat-label"),e.EFF(3,"Secret Key"),e.k0s(),e.nrm(4,"input",27),e.j41(5,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.secretKey))}),e.nrm(6,"mat-icon",29),e.k0s()(),e.j41(7,"mat-form-field",26)(8,"mat-label"),e.EFF(9,"Public Key"),e.k0s(),e.nrm(10,"input",27),e.j41(11,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.pubkey))}),e.nrm(12,"mat-icon",29),e.k0s()(),e.j41(13,"mat-form-field",26)(14,"mat-label"),e.EFF(15,"NPUB"),e.k0s(),e.nrm(16,"input",27),e.j41(17,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.npub))}),e.nrm(18,"mat-icon",29),e.k0s()(),e.j41(19,"mat-form-field",26)(20,"mat-label"),e.EFF(21,"NSEC"),e.k0s(),e.nrm(22,"input",27),e.j41(23,"button",28),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.copyToClipboard(r.generatedKeys.nsec))}),e.nrm(24,"mat-icon",29),e.k0s()()()}if(2&o){const t=e.XpG();e.R7$(4),e.Y8G("value",t.generatedKeys.secretKey),e.R7$(6),e.Y8G("value",t.generatedKeys.pubkey),e.R7$(6),e.Y8G("value",t.generatedKeys.npub),e.R7$(6),e.Y8G("value",t.generatedKeys.nsec)}}function R(o,m){1&o&&e.nrm(0,"mat-progress-spinner",33),2&o&&e.Y8G("diameter",24)("mode","indeterminate")}function C(o,m){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"mat-checkbox",30),e.EFF(2," I confirm I have copied the keys "),e.k0s(),e.j41(3,"button",31),e.bIt("click",function(){e.eBV(t);const r=e.XpG();return e.Njj(r.register())}),e.j41(4,"span"),e.EFF(5,"Create account"),e.k0s(),e.DNE(6,R,1,2,"mat-progress-spinner",32),e.k0s()()}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("formControlName","confirmation"),e.R7$(2),e.Y8G("color","primary")("disabled",!t.registerForm.valid||!t.generatedKeys),e.R7$(3),e.Y8G("ngIf",t.registerForm.disabled)}}const G=[{path:"",component:(()=>{class o{constructor(t,n,r){this._formBuilder=t,this._router=n,this._signerService=r,this.alert={type:"success",message:""},this.showAlert=!1,this.generatedKeys=null}ngOnInit(){this.registerForm=this._formBuilder.group({confirmation:[!1,i.k0.requiredTrue]})}generateKeys(){const t=this.registerForm.get("password")?.value,n=this._signerService.generateAndStoreKeys(t);n?(this.generatedKeys=n,this.alert={type:"success",message:"Keys generated and stored successfully!"}):this.alert={type:"error",message:"Error generating keys. Please try again."},this.showAlert=!0}register(){if(this.registerForm.invalid||!this.generatedKeys)return;this.registerForm.disable(),this.showAlert=!1;const t={...this.generatedKeys,password:this.registerForm.get("password")?.value};console.log("User Metadata:",t),this.alert={type:"success",message:"Account created successfully!"},this.showAlert=!0,this._router.navigateByUrl("/home")}copyToClipboard(t){navigator.clipboard.writeText(t).then(()=>{console.log("Copied to clipboard successfully!")},n=>{console.error("Could not copy text: ",n)})}static{this.\u0275fac=function(n){return new(n||o)(e.rXU(i.ze),e.rXU(y.Ix),e.rXU(x.A))}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["auth-create"]],viewQuery:function(n,r){if(1&n&&e.GBs(k,5),2&n){let l;e.mGM(l=e.lsd())&&(r.registerNgForm=l.first)}},decls:33,vars:7,consts:[["registerNgForm","ngForm"],[1,"flex","min-w-0","flex-auto","flex-col","items-center","sm:flex-row","sm:justify-center","md:items-start","md:justify-start"],[1,"w-full","px-4","py-8","sm:bg-card","sm:w-auto","sm:rounded-2xl","sm:p-12","sm:shadow","md:flex","md:h-full","md:w-1/2","md:items-center","md:justify-end","md:rounded-none","md:p-16","md:shadow-none"],[1,"mx-auto","w-full","max-w-80","sm:mx-0","sm:w-80"],[1,"mt-8","text-4xl","font-extrabold","leading-tight","tracking-tight"],[1,"mt-0.5","flex","items-baseline","font-medium"],[1,"ml-1","text-primary-500","hover:underline",3,"routerLink"],["class","mt-8",3,"appearance","showIcon","type",4,"ngIf"],["mat-flat-button","",1,"mt-6","w-full","angor-mat-button-large",3,"click","color"],["class","mt-4 space-y-2",4,"ngIf"],[1,"mt-2",3,"formGroup"],[4,"ngIf"],[1,"relative","hidden","h-full","w-1/2","flex-auto","items-center","justify-center","overflow-hidden","bg-gray-800","p-16","dark:border-l","md:flex","lg:px-28"],["viewBox","0 0 960 540","width","100%","height","100%","preserveAspectRatio","xMidYMax slice","xmlns","http://www.w3.org/2000/svg",1,"pointer-events-none","absolute","inset-0"],["fill","none","stroke","currentColor","stroke-width","100",1,"text-gray-700","opacity-25"],["r","234","cx","196","cy","23"],["r","234","cx","790","cy","491"],["viewBox","0 0 220 192","width","220","height","192","fill","none",1,"absolute","-right-16","-top-16","text-gray-700"],["id","837c3e70-6c3a-44e6-8854-cc48c737b659","x","0","y","0","width","20","height","20","patternUnits","userSpaceOnUse"],["x","0","y","0","width","4","height","4","fill","currentColor"],["width","220","height","192","fill","url(#837c3e70-6c3a-44e6-8854-cc48c737b659)"],[1,"relative","z-10","w-full","max-w-2xl"],[1,"text-7xl","font-bold","leading-none","text-gray-100"],[1,"mt-6","text-lg","leading-6","tracking-tight","text-gray-400"],[1,"mt-8",3,"appearance","showIcon","type"],[1,"mt-4","space-y-2"],["appearance","outline",1,"w-full"],["matInput","","readonly","",3,"value"],["mat-icon-button","","matSuffix","",3,"click"],["svgIcon","heroicons_outline:clipboard-document"],[1,"mt-4",3,"formControlName"],["mat-flat-button","",1,"angor-mat-button-large","mt-6","w-full",3,"click","color","disabled"],[3,"diameter","mode",4,"ngIf"],[3,"diameter","mode"]],template:function(n,r){if(1&n){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),e.EFF(4," Create account "),e.k0s(),e.j41(5,"div",5)(6,"div"),e.EFF(7,"Already have an account?"),e.k0s(),e.j41(8,"a",6),e.EFF(9,"Login "),e.k0s()(),e.DNE(10,F,2,5,"angor-alert",7),e.j41(11,"button",8),e.bIt("click",function(){return e.eBV(l),e.Njj(r.generateKeys())}),e.EFF(12," Generate and Store Keys "),e.k0s(),e.DNE(13,w,25,4,"div",9),e.j41(14,"form",10,0),e.DNE(16,C,7,4,"div",11),e.k0s()()(),e.j41(17,"div",12),e.qSk(),e.j41(18,"svg",13)(19,"g",14),e.nrm(20,"circle",15)(21,"circle",16),e.k0s()(),e.j41(22,"svg",17)(23,"defs")(24,"pattern",18),e.nrm(25,"rect",19),e.k0s()(),e.nrm(26,"rect",20),e.k0s(),e.joV(),e.j41(27,"div",21)(28,"div",22)(29,"div"),e.EFF(30,"Angor Hub"),e.k0s()(),e.j41(31,"div",23),e.EFF(32," Angor Hub is a Nostr client that is customized around the Angor protocol, a decentralized crowdfunding platform. "),e.k0s()()()()}2&n&&(e.R7$(8),e.Y8G("routerLink",e.lJ4(6,j)),e.R7$(2),e.Y8G("ngIf",r.showAlert),e.R7$(),e.Y8G("color","primary"),e.R7$(2),e.Y8G("ngIf",r.generatedKeys),e.R7$(),e.Y8G("formGroup",r.registerForm),e.R7$(2),e.Y8G("ngIf",r.generatedKeys))},dependencies:[y.Wk,b.h,i.YN,i.qT,i.BC,i.cb,i.X1,i.j4,i.JD,a.RG,a.rl,a.nJ,a.yw,f.fS,f.fg,c.Hl,c.$z,c.iY,p.m_,p.An,u.g7,u.So,h.D6,h.LG,g.MD,g.bT],encapsulation:2,data:{animation:v.F}})}}return o})()}]}}]); \ No newline at end of file diff --git a/785.790ad74884c879a0.js b/785.57ec2fa6fb38bc28.js similarity index 99% rename from 785.790ad74884c879a0.js rename to 785.57ec2fa6fb38bc28.js index 3a760d6..2819942 100644 --- a/785.790ad74884c879a0.js +++ b/785.57ec2fa6fb38bc28.js @@ -1 +1 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[785],{2773:(k,v,a)=>{a.d(v,{n:()=>w});var c=a(6146),h=a(3022),o=a(3107);const t=[[["","angorCardFront",""]],[["","angorCardBack",""]],"*",[["","angorCardExpansion",""]]],l=["[angorCardFront]","[angorCardBack]","*","[angorCardExpansion]"];function x(e,r){1&e&&(o.j41(0,"div",0),o.SdG(1),o.k0s(),o.j41(2,"div",1),o.SdG(3,1),o.k0s())}function b(e,r){1&e&&(o.j41(0,"div",2),o.SdG(1,3),o.k0s()),2&e&&o.Y8G("@expandCollapse",void 0)}function g(e,r){if(1&e&&(o.SdG(0,2),o.DNE(1,b,2,1,"div",2)),2&e){const i=o.XpG();o.R7$(),o.vxM(i.expanded?1:-1)}}let w=(()=>{class e{constructor(){this.expanded=!1,this.face="front",this.flippable=!1}get classList(){return{"angor-card-expanded":this.expanded,"angor-card-face-back":this.flippable&&"back"===this.face,"angor-card-face-front":this.flippable&&"front"===this.face,"angor-card-flippable":this.flippable}}ngOnChanges(i){"expanded"in i&&(this.expanded=(0,h.he)(i.expanded.currentValue)),"flippable"in i&&(this.flippable=(0,h.he)(i.flippable.currentValue))}static{this.\u0275fac=function(p){return new(p||e)}}static{this.\u0275cmp=o.VBU({type:e,selectors:[["angor-card"]],hostVars:2,hostBindings:function(p,y){2&p&&o.HbH(y.classList)},inputs:{expanded:"expanded",face:"face",flippable:"flippable"},exportAs:["angorCard"],features:[o.OA$],ngContentSelectors:l,decls:2,vars:2,consts:[[1,"angor-card-front"],[1,"angor-card-back"],[1,"angor-card-expansion"]],template:function(p,y){1&p&&(o.NAR(t),o.DNE(0,x,4,0)(1,g,2,1)),2&p&&(o.vxM(y.flippable?0:-1),o.R7$(),o.vxM(y.flippable?-1:1))},styles:["angor-card{position:relative;display:flex;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}angor-card.angor-card-flippable .angor-card-front,angor-card.angor-card-flippable .angor-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable .angor-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}angor-card.angor-card-flippable .angor-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"],encapsulation:2,data:{animation:c.F}})}}return e})()},8166:(k,v,a)=>{a.r(v),a.d(v,{default:()=>D});var c=a(3014),h=a(708),o=a(4460),t=a(3107),l=a(936),x=a(9471),b=a(6071),g=a(3904),w=a(6389),e=a(2675),r=a(8378),i=a(3125),p=a(8078),y=a(5821),F=a(5492),T=a(2773);function I(f,A){1&f&&(t.j41(0,"div",6)(1,"label",7),t.EFF(2,"Comment (Optional)"),t.k0s(),t.nrm(3,"textarea",17),t.k0s())}function U(f,A){if(1&f&&(t.j41(0,"div",18)(1,"h3",19),t.EFF(2,"Invoice Created:"),t.k0s(),t.j41(3,"p",20),t.EFF(4),t.k0s()()),2&f){const n=t.XpG();t.R7$(4),t.JRh(n.invoice.pr)}}function B(f,A){if(1&f&&(t.j41(0,"div",21)(1,"p",22),t.EFF(2),t.k0s()()),2&f){const n=t.XpG();t.R7$(2),t.JRh(n.error)}}const D=[{path:"",component:(()=>{class f{constructor(){this.formBuilder=(0,t.WQX)(l.ok),this.signerService=(0,t.WQX)(p.A),this.relayService=(0,t.WQX)(i.b),this.utilities=(0,t.WQX)(y.FP),this.payRequest=null,this.invoice={pr:""},this.canZap=!1,this.loading=!1,this.error=null}ngOnInit(){this.initializeForm()}initializeForm(){this.sendZapForm=this.formBuilder.group({lightningAddress:["",[l.k0.required,this.validateLightningAddress]],eventId:[""],amount:["",[l.k0.required,l.k0.min(1)]],comment:[""]})}validateLightningAddress(n){return n.value.includes("@")?null:{invalidFormat:!0}}getCallbackUrl(n){try{if(n.includes("@")){const[d,s]=n.split("@");return`https://${s}/.well-known/lnurlp/${d}`}return n.toLowerCase().startsWith("lnurl")?this.utilities.convertBech32ToText(n).toString():null}catch(d){return console.error("Error generating callback URL:",d),null}}fetchPayRequest(){var n=this;return(0,c.A)(function*(){n.resetState();const d=n.sendZapForm.get("lightningAddress")?.value;if(!d)return void n.setError("Lightning Address is required.");const s=n.getCallbackUrl(d);if(s)try{const u=yield fetch(s);if(!u.ok)throw new Error(`Failed to fetch pay request: ${u.statusText}`);const m=yield u.json();if("ERROR"===m.status)throw new Error(m.reason||"Error fetching the pay request.");n.payRequest=m,n.canZap=!0,n.configureAmountValidators()}catch(u){n.setError(u.message||"Error connecting to the server.")}finally{n.loading=!1}else n.setError("Invalid Lightning Address.")})()}configureAmountValidators(){if(!this.payRequest)return;const n=(this.payRequest.minSendable||1e3)/1e3,d=(this.payRequest.maxSendable||21e6)/1e3,s=this.sendZapForm.get("amount");s?.setValidators([l.k0.required,l.k0.min(n),l.k0.max(d)]),s?.updateValueAndValidity()}onSubmit(){var n=this;return(0,c.A)(function*(){if(n.sendZapForm.invalid)return void n.setError("Please fill out the form correctly.");n.resetState();const{eventId:s,amount:u,comment:m}=n.sendZapForm.value;if(n.payRequest)try{const E=new URL(n.payRequest.callback),C=new URLSearchParams({amount:(1e3*u).toString()});if(m&&n.payRequest.commentAllowed&&C.set("comment",m),s){const P=yield n.createAndSignZapRequest(s,m);C.set("nostr",JSON.stringify(P))}const R=yield fetch(`${E.origin}${E.pathname}?${C.toString()}`);if(!R.ok)throw new Error(`Failed to fetch invoice: ${R.statusText}`);const S=yield R.json();if("ERROR"===S.status)throw new Error(S.reason||"Error fetching the invoice.");n.invoice=S}catch(E){n.setError(E.message||"Error processing the zap request.")}finally{n.loading=!1}else n.setError("Pay request is not loaded.")})()}createAndSignZapRequest(n,d){var s=this;return(0,c.A)(function*(){try{const u=s.createZapRequestData(n,d),m=s.signerService.isUsingSecretKey()?(0,F.pC)(u,(0,r.aT)(yield s.signerService.getDecryptedSecretKey())):yield s.signerService.signEventWithExtension(u);if(!m)throw new Error("Signing failed. Signed event is null.");return m}catch(u){throw console.error("Error creating and signing zap request:",u),new Error("Failed to create and sign zap request.")}})()}createZapRequestData(n,d){return{kind:9734,content:d||"",tags:[["e",n],["p",this.payRequest?.nostrPubkey||""],["relays",...this.relayService.getConnectedRelays()]],pubkey:this.signerService.getPublicKey(),created_at:Math.floor(Date.now()/1e3)}}resetState(){this.error=null,this.loading=!0,this.invoice={pr:""}}setError(n){this.error=n,this.loading=!1}static{this.\u0275fac=function(d){return new(d||f)}}static{this.\u0275cmp=t.VBU({type:f,selectors:[["app-zap"]],decls:27,vars:6,consts:[[1,"mx-auto","w-full","max-w-5xl","p-6","sm:p-8"],[1,"flex","w-full","max-w-140","m-auto","flex-col","items-start"],[1,"mb-8","flex","flex-col","items-start","p-6","sm:p-8","transition-all","duration-300","w-full","pb-6"],[1,"flex","items-center","justify-center","mb-6","w-full"],[1,"text-2xl","font-semibold","text-center"],[1,"w-full","space-y-4",3,"ngSubmit","formGroup"],[1,"form-group"],[1,"block","text-sm","font-medium","text-gray-600","mb-1"],[1,"flex","items-center"],["type","text","formControlName","lightningAddress","placeholder","username@domain.com",1,"flex-grow","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["type","button",1,"ml-2","px-4","py-2","text-sm","bg-gray-800","text-white","rounded","hover:bg-gray-700",3,"click"],["type","text","formControlName","eventId","placeholder","Event ID for specific zap",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["type","number","formControlName","amount","placeholder","Amount",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["class","form-group",4,"ngIf"],["type","submit",1,"w-full","py-2","text-sm","font-semibold","bg-gray-800","text-white","rounded","hover:bg-gray-700","disabled:bg-gray-400",3,"disabled"],["class","invoice mt-6 p-4 border rounded-lg bg-gray-50 shadow w-full",4,"ngIf"],["class","error mt-6 p-4 border rounded-lg bg-red-50 shadow w-full",4,"ngIf"],["formControlName","comment","placeholder","Add a comment...","rows","3",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],[1,"invoice","mt-6","p-4","border","rounded-lg","bg-gray-50","shadow","w-full"],[1,"text-lg","font-semibold","text-gray-800"],[1,"text-gray-700","break-words"],[1,"error","mt-6","p-4","border","rounded-lg","bg-red-50","shadow","w-full"],[1,"text-red-600","font-medium"]],template:function(d,s){1&d&&(t.j41(0,"div",0)(1,"div",1)(2,"angor-card",2)(3,"div",3)(4,"h2",4),t.EFF(5,"Send a Zap"),t.k0s()(),t.j41(6,"form",5),t.bIt("ngSubmit",function(){return s.onSubmit()}),t.j41(7,"div",6)(8,"label",7),t.EFF(9,"Lightning Address"),t.k0s(),t.j41(10,"div",8),t.nrm(11,"input",9),t.j41(12,"button",10),t.bIt("click",function(){return s.fetchPayRequest()}),t.EFF(13," Fetch "),t.k0s()()(),t.j41(14,"div",6)(15,"label",7),t.EFF(16,"Event ID (Optional)"),t.k0s(),t.nrm(17,"input",11),t.k0s(),t.j41(18,"div",6)(19,"label",7),t.EFF(20,"Amount (in Satoshis)"),t.k0s(),t.nrm(21,"input",12),t.k0s(),t.DNE(22,I,4,0,"div",13),t.j41(23,"button",14),t.EFF(24),t.k0s()(),t.DNE(25,U,5,1,"div",15)(26,B,3,1,"div",16),t.k0s()()()),2&d&&(t.R7$(6),t.Y8G("formGroup",s.sendZapForm),t.R7$(16),t.Y8G("ngIf",null==s.payRequest?null:s.payRequest.commentAllowed),t.R7$(),t.Y8G("disabled",s.sendZapForm.invalid||s.loading),t.R7$(),t.SpI(" ",s.loading?"Sending...":"Send Zap"," "),t.R7$(),t.Y8G("ngIf",s.invoice.pr),t.R7$(),t.Y8G("ngIf",s.error))},dependencies:[o.MD,o.bT,b.RG,w.fS,x.Hl,g.m_,e.Ve,h.EE,l.X1,l.qT,l.me,l.Q0,l.BC,l.cb,l.j4,l.JD,T.n],encapsulation:2})}}return f})()}]},5821:(k,v,a)=>{a.d(v,{FP:()=>b});var c=a(1998),h=a(3107),o=a(7859),t=a(6388);let b=(()=>{class g{constructor(e,r){this.snackBar=e,this.sanitizer=r,this.defaultBackground="url(/assets/gradient.jpg)"}unsubscribe(e){if(e)for(let r=0;rparseInt(r,16))||[])}arrayToHex(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}convertFromBech32(e){const r=c.I.decode(e);return c.I.fromWords(r.words)}convertFromBech32ToHex(e){const r=c.I.decode(e),i=c.I.fromWords(r.words);return this.arrayToHex(i)}convertBech32ToText(e){const r=c.I.decode(e,1e3),i=c.I.fromWords(r.words);return(new TextDecoder).decode(Uint8Array.from(i))}keyToHex(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}sanitizeLUD06(e){if(e&&!e.startsWith("http"))return this.bypassUrl(e)}sanitizeUrlAndBypass(e){const r=this.sanitizeUrl(e);return this.bypassUrl(r)}sanitizeUrlAndBypassFrame(e){const r=this.sanitizeUrl(e);return this.bypassFrameUrl(r)}sanitizeUrl(e,r){if(!e)return"";if(!e?.startsWith("http")){if(!r)return e.startsWith("/assets")?e:"";e="https://"+e}return e}sanitizeImageUrl(e){if(!(e=this.sanitizeUrl(e)))return;let r=e.toLowerCase();return r=r.split("?")[0],r.endsWith("jpg")||r.endsWith("jpeg")||r.endsWith("png")||r.endsWith("webp")||r.endsWith("gif")?e:void 0}bypassUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}bypassStyle(e){return this.sanitizer.bypassSecurityTrustStyle(e)}bypassFrameUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}static{this.\u0275fac=function(r){return new(r||g)(h.KVO(o.UG),h.KVO(t.up))}}static{this.\u0275prov=h.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[785],{2773:(k,v,a)=>{a.d(v,{n:()=>w});var c=a(7618),h=a(3022),o=a(3107);const t=[[["","angorCardFront",""]],[["","angorCardBack",""]],"*",[["","angorCardExpansion",""]]],l=["[angorCardFront]","[angorCardBack]","*","[angorCardExpansion]"];function x(e,r){1&e&&(o.j41(0,"div",0),o.SdG(1),o.k0s(),o.j41(2,"div",1),o.SdG(3,1),o.k0s())}function b(e,r){1&e&&(o.j41(0,"div",2),o.SdG(1,3),o.k0s()),2&e&&o.Y8G("@expandCollapse",void 0)}function g(e,r){if(1&e&&(o.SdG(0,2),o.DNE(1,b,2,1,"div",2)),2&e){const i=o.XpG();o.R7$(),o.vxM(i.expanded?1:-1)}}let w=(()=>{class e{constructor(){this.expanded=!1,this.face="front",this.flippable=!1}get classList(){return{"angor-card-expanded":this.expanded,"angor-card-face-back":this.flippable&&"back"===this.face,"angor-card-face-front":this.flippable&&"front"===this.face,"angor-card-flippable":this.flippable}}ngOnChanges(i){"expanded"in i&&(this.expanded=(0,h.he)(i.expanded.currentValue)),"flippable"in i&&(this.flippable=(0,h.he)(i.flippable.currentValue))}static{this.\u0275fac=function(p){return new(p||e)}}static{this.\u0275cmp=o.VBU({type:e,selectors:[["angor-card"]],hostVars:2,hostBindings:function(p,y){2&p&&o.HbH(y.classList)},inputs:{expanded:"expanded",face:"face",flippable:"flippable"},exportAs:["angorCard"],features:[o.OA$],ngContentSelectors:l,decls:2,vars:2,consts:[[1,"angor-card-front"],[1,"angor-card-back"],[1,"angor-card-expansion"]],template:function(p,y){1&p&&(o.NAR(t),o.DNE(0,x,4,0)(1,g,2,1)),2&p&&(o.vxM(y.flippable?0:-1),o.R7$(),o.vxM(y.flippable?-1:1))},styles:["angor-card{position:relative;display:flex;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}angor-card.angor-card-flippable.angor-card-face-back .angor-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}angor-card.angor-card-flippable .angor-card-front,angor-card.angor-card-flippable .angor-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-card.angor-card-flippable .angor-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}angor-card.angor-card-flippable .angor-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"],encapsulation:2,data:{animation:c.F}})}}return e})()},8166:(k,v,a)=>{a.r(v),a.d(v,{default:()=>D});var c=a(3014),h=a(708),o=a(4460),t=a(3107),l=a(936),x=a(9471),b=a(6071),g=a(3904),w=a(6389),e=a(2675),r=a(8378),i=a(3125),p=a(8078),y=a(5821),F=a(5492),T=a(2773);function I(f,A){1&f&&(t.j41(0,"div",6)(1,"label",7),t.EFF(2,"Comment (Optional)"),t.k0s(),t.nrm(3,"textarea",17),t.k0s())}function U(f,A){if(1&f&&(t.j41(0,"div",18)(1,"h3",19),t.EFF(2,"Invoice Created:"),t.k0s(),t.j41(3,"p",20),t.EFF(4),t.k0s()()),2&f){const n=t.XpG();t.R7$(4),t.JRh(n.invoice.pr)}}function B(f,A){if(1&f&&(t.j41(0,"div",21)(1,"p",22),t.EFF(2),t.k0s()()),2&f){const n=t.XpG();t.R7$(2),t.JRh(n.error)}}const D=[{path:"",component:(()=>{class f{constructor(){this.formBuilder=(0,t.WQX)(l.ok),this.signerService=(0,t.WQX)(p.A),this.relayService=(0,t.WQX)(i.b),this.utilities=(0,t.WQX)(y.FP),this.payRequest=null,this.invoice={pr:""},this.canZap=!1,this.loading=!1,this.error=null}ngOnInit(){this.initializeForm()}initializeForm(){this.sendZapForm=this.formBuilder.group({lightningAddress:["",[l.k0.required,this.validateLightningAddress]],eventId:[""],amount:["",[l.k0.required,l.k0.min(1)]],comment:[""]})}validateLightningAddress(n){return n.value.includes("@")?null:{invalidFormat:!0}}getCallbackUrl(n){try{if(n.includes("@")){const[d,s]=n.split("@");return`https://${s}/.well-known/lnurlp/${d}`}return n.toLowerCase().startsWith("lnurl")?this.utilities.convertBech32ToText(n).toString():null}catch(d){return console.error("Error generating callback URL:",d),null}}fetchPayRequest(){var n=this;return(0,c.A)(function*(){n.resetState();const d=n.sendZapForm.get("lightningAddress")?.value;if(!d)return void n.setError("Lightning Address is required.");const s=n.getCallbackUrl(d);if(s)try{const u=yield fetch(s);if(!u.ok)throw new Error(`Failed to fetch pay request: ${u.statusText}`);const m=yield u.json();if("ERROR"===m.status)throw new Error(m.reason||"Error fetching the pay request.");n.payRequest=m,n.canZap=!0,n.configureAmountValidators()}catch(u){n.setError(u.message||"Error connecting to the server.")}finally{n.loading=!1}else n.setError("Invalid Lightning Address.")})()}configureAmountValidators(){if(!this.payRequest)return;const n=(this.payRequest.minSendable||1e3)/1e3,d=(this.payRequest.maxSendable||21e6)/1e3,s=this.sendZapForm.get("amount");s?.setValidators([l.k0.required,l.k0.min(n),l.k0.max(d)]),s?.updateValueAndValidity()}onSubmit(){var n=this;return(0,c.A)(function*(){if(n.sendZapForm.invalid)return void n.setError("Please fill out the form correctly.");n.resetState();const{eventId:s,amount:u,comment:m}=n.sendZapForm.value;if(n.payRequest)try{const E=new URL(n.payRequest.callback),C=new URLSearchParams({amount:(1e3*u).toString()});if(m&&n.payRequest.commentAllowed&&C.set("comment",m),s){const P=yield n.createAndSignZapRequest(s,m);C.set("nostr",JSON.stringify(P))}const R=yield fetch(`${E.origin}${E.pathname}?${C.toString()}`);if(!R.ok)throw new Error(`Failed to fetch invoice: ${R.statusText}`);const S=yield R.json();if("ERROR"===S.status)throw new Error(S.reason||"Error fetching the invoice.");n.invoice=S}catch(E){n.setError(E.message||"Error processing the zap request.")}finally{n.loading=!1}else n.setError("Pay request is not loaded.")})()}createAndSignZapRequest(n,d){var s=this;return(0,c.A)(function*(){try{const u=s.createZapRequestData(n,d),m=s.signerService.isUsingSecretKey()?(0,F.pC)(u,(0,r.aT)(yield s.signerService.getDecryptedSecretKey())):yield s.signerService.signEventWithExtension(u);if(!m)throw new Error("Signing failed. Signed event is null.");return m}catch(u){throw console.error("Error creating and signing zap request:",u),new Error("Failed to create and sign zap request.")}})()}createZapRequestData(n,d){return{kind:9734,content:d||"",tags:[["e",n],["p",this.payRequest?.nostrPubkey||""],["relays",...this.relayService.getConnectedRelays()]],pubkey:this.signerService.getPublicKey(),created_at:Math.floor(Date.now()/1e3)}}resetState(){this.error=null,this.loading=!0,this.invoice={pr:""}}setError(n){this.error=n,this.loading=!1}static{this.\u0275fac=function(d){return new(d||f)}}static{this.\u0275cmp=t.VBU({type:f,selectors:[["app-zap"]],decls:27,vars:6,consts:[[1,"mx-auto","w-full","max-w-5xl","p-6","sm:p-8"],[1,"flex","w-full","max-w-140","m-auto","flex-col","items-start"],[1,"mb-8","flex","flex-col","items-start","p-6","sm:p-8","transition-all","duration-300","w-full","pb-6"],[1,"flex","items-center","justify-center","mb-6","w-full"],[1,"text-2xl","font-semibold","text-center"],[1,"w-full","space-y-4",3,"ngSubmit","formGroup"],[1,"form-group"],[1,"block","text-sm","font-medium","text-gray-600","mb-1"],[1,"flex","items-center"],["type","text","formControlName","lightningAddress","placeholder","username@domain.com",1,"flex-grow","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["type","button",1,"ml-2","px-4","py-2","text-sm","bg-gray-800","text-white","rounded","hover:bg-gray-700",3,"click"],["type","text","formControlName","eventId","placeholder","Event ID for specific zap",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["type","number","formControlName","amount","placeholder","Amount",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],["class","form-group",4,"ngIf"],["type","submit",1,"w-full","py-2","text-sm","font-semibold","bg-gray-800","text-white","rounded","hover:bg-gray-700","disabled:bg-gray-400",3,"disabled"],["class","invoice mt-6 p-4 border rounded-lg bg-gray-50 shadow w-full",4,"ngIf"],["class","error mt-6 p-4 border rounded-lg bg-red-50 shadow w-full",4,"ngIf"],["formControlName","comment","placeholder","Add a comment...","rows","3",1,"w-full","p-2","border","rounded","focus:outline-none","focus:ring-2","focus:ring-gray-500"],[1,"invoice","mt-6","p-4","border","rounded-lg","bg-gray-50","shadow","w-full"],[1,"text-lg","font-semibold","text-gray-800"],[1,"text-gray-700","break-words"],[1,"error","mt-6","p-4","border","rounded-lg","bg-red-50","shadow","w-full"],[1,"text-red-600","font-medium"]],template:function(d,s){1&d&&(t.j41(0,"div",0)(1,"div",1)(2,"angor-card",2)(3,"div",3)(4,"h2",4),t.EFF(5,"Send a Zap"),t.k0s()(),t.j41(6,"form",5),t.bIt("ngSubmit",function(){return s.onSubmit()}),t.j41(7,"div",6)(8,"label",7),t.EFF(9,"Lightning Address"),t.k0s(),t.j41(10,"div",8),t.nrm(11,"input",9),t.j41(12,"button",10),t.bIt("click",function(){return s.fetchPayRequest()}),t.EFF(13," Fetch "),t.k0s()()(),t.j41(14,"div",6)(15,"label",7),t.EFF(16,"Event ID (Optional)"),t.k0s(),t.nrm(17,"input",11),t.k0s(),t.j41(18,"div",6)(19,"label",7),t.EFF(20,"Amount (in Satoshis)"),t.k0s(),t.nrm(21,"input",12),t.k0s(),t.DNE(22,I,4,0,"div",13),t.j41(23,"button",14),t.EFF(24),t.k0s()(),t.DNE(25,U,5,1,"div",15)(26,B,3,1,"div",16),t.k0s()()()),2&d&&(t.R7$(6),t.Y8G("formGroup",s.sendZapForm),t.R7$(16),t.Y8G("ngIf",null==s.payRequest?null:s.payRequest.commentAllowed),t.R7$(),t.Y8G("disabled",s.sendZapForm.invalid||s.loading),t.R7$(),t.SpI(" ",s.loading?"Sending...":"Send Zap"," "),t.R7$(),t.Y8G("ngIf",s.invoice.pr),t.R7$(),t.Y8G("ngIf",s.error))},dependencies:[o.MD,o.bT,b.RG,w.fS,x.Hl,g.m_,e.Ve,h.EE,l.X1,l.qT,l.me,l.Q0,l.BC,l.cb,l.j4,l.JD,T.n],encapsulation:2})}}return f})()}]},5821:(k,v,a)=>{a.d(v,{FP:()=>b});var c=a(1998),h=a(3107),o=a(7859),t=a(6388);let b=(()=>{class g{constructor(e,r){this.snackBar=e,this.sanitizer=r,this.defaultBackground="url(/assets/gradient.jpg)"}unsubscribe(e){if(e)for(let r=0;rparseInt(r,16))||[])}arrayToHex(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}convertFromBech32(e){const r=c.I.decode(e);return c.I.fromWords(r.words)}convertFromBech32ToHex(e){const r=c.I.decode(e),i=c.I.fromWords(r.words);return this.arrayToHex(i)}convertBech32ToText(e){const r=c.I.decode(e,1e3),i=c.I.fromWords(r.words);return(new TextDecoder).decode(Uint8Array.from(i))}keyToHex(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}sanitizeLUD06(e){if(e&&!e.startsWith("http"))return this.bypassUrl(e)}sanitizeUrlAndBypass(e){const r=this.sanitizeUrl(e);return this.bypassUrl(r)}sanitizeUrlAndBypassFrame(e){const r=this.sanitizeUrl(e);return this.bypassFrameUrl(r)}sanitizeUrl(e,r){if(!e)return"";if(!e?.startsWith("http")){if(!r)return e.startsWith("/assets")?e:"";e="https://"+e}return e}sanitizeImageUrl(e){if(!(e=this.sanitizeUrl(e)))return;let r=e.toLowerCase();return r=r.split("?")[0],r.endsWith("jpg")||r.endsWith("jpeg")||r.endsWith("png")||r.endsWith("webp")||r.endsWith("gif")?e:void 0}bypassUrl(e){return this.sanitizer.bypassSecurityTrustUrl(e)}bypassStyle(e){return this.sanitizer.bypassSecurityTrustStyle(e)}bypassFrameUrl(e){return this.sanitizer.bypassSecurityTrustResourceUrl(e)}static{this.\u0275fac=function(r){return new(r||g)(h.KVO(o.UG),h.KVO(t.up))}}static{this.\u0275prov=h.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}}return g})()}}]); \ No newline at end of file diff --git a/87.89382f6778c57112.js b/87.3a2e64bb6d08ae46.js similarity index 99% rename from 87.89382f6778c57112.js rename to 87.3a2e64bb6d08ae46.js index 926663d..4705d60 100644 --- a/87.89382f6778c57112.js +++ b/87.3a2e64bb6d08ae46.js @@ -1 +1 @@ -"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[87],{6903:(D,A,s)=>{s.d(A,{h:()=>y});var t=s(6146),a=s(7838),r=s(3107);let w=(()=>{class n{constructor(){this._onDismiss=new a.m(1),this._onShow=new a.m(1)}get onDismiss(){return this._onDismiss.asObservable()}get onShow(){return this._onShow.asObservable()}dismiss(c){c&&this._onDismiss.next(c)}show(c){c&&this._onShow.next(c)}static{this.\u0275fac=function(u){return new(u||n)}}static{this.\u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var I=s(3939),x=s(3022),C=s(9471),v=s(3904),M=s(8447),_=s(1483),b=s(5424);const E=[[["","angorAlertTitle",""]],"*",[["","angorAlertIcon",""]]],m=["[angorAlertTitle]","*","[angorAlertIcon]"];function T(n,h){1&n&&r.nrm(0,"div",1)}function g(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function p(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function d(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:x-circle")}function k(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function R(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:information-circle")}function l(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function O(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:exclamation-triangle")}function e(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:x-circle")}function i(n,h){if(1&n&&(r.j41(0,"div",2)(1,"div",8),r.SdG(2,2),r.k0s(),r.j41(3,"div",9),r.DNE(4,g,1,1,"mat-icon",7)(5,p,1,1,"mat-icon",7)(6,d,1,1,"mat-icon",7)(7,k,1,1,"mat-icon",7)(8,R,1,1,"mat-icon",7)(9,l,1,1,"mat-icon",7)(10,O,1,1,"mat-icon",7)(11,e,1,1,"mat-icon",7),r.k0s()()),2&n){const c=r.XpG(2);r.R7$(4),r.vxM("primary"===c.type?4:-1),r.R7$(),r.vxM("accent"===c.type?5:-1),r.R7$(),r.vxM("warn"===c.type?6:-1),r.R7$(),r.vxM("basic"===c.type?7:-1),r.R7$(),r.vxM("info"===c.type?8:-1),r.R7$(),r.vxM("success"===c.type?9:-1),r.R7$(),r.vxM("warning"===c.type?10:-1),r.R7$(),r.vxM("error"===c.type?11:-1)}}function o(n,h){if(1&n){const c=r.RV6();r.j41(0,"div",0),r.DNE(1,T,1,0,"div",1)(2,i,12,8,"div",2),r.j41(3,"div",3)(4,"div",4),r.SdG(5),r.k0s(),r.j41(6,"div",5),r.SdG(7,1),r.k0s()(),r.j41(8,"button",6),r.bIt("click",function(){r.eBV(c);const f=r.XpG();return r.Njj(f.dismiss())}),r.nrm(9,"mat-icon",7),r.k0s()()}if(2&n){const c=r.XpG();r.Y8G("@fadeIn",!c.dismissed)("@fadeOut",!c.dismissed),r.R7$(),r.vxM("border"===c.appearance?1:-1),r.R7$(),r.vxM(c.showIcon?2:-1),r.R7$(7),r.Y8G("svgIcon","heroicons_solid:x-mark")}}let y=(()=>{class n{constructor(){this._changeDetectorRef=(0,r.WQX)(r.gRc),this._angorAlertService=(0,r.WQX)(w),this._angorUtilsService=(0,r.WQX)(I.Q),this.appearance="soft",this.dismissed=!1,this.dismissible=!1,this.name=this._angorUtilsService.randomId(),this.showIcon=!0,this.type="primary",this.dismissedChanged=new r.bkB,this._unsubscribeAll=new M.B}get classList(){return{"angor-alert-appearance-border":"border"===this.appearance,"angor-alert-appearance-fill":"fill"===this.appearance,"angor-alert-appearance-outline":"outline"===this.appearance,"angor-alert-appearance-soft":"soft"===this.appearance,"angor-alert-dismissed":this.dismissed,"angor-alert-dismissible":this.dismissible,"angor-alert-show-icon":this.showIcon,"angor-alert-type-primary":"primary"===this.type,"angor-alert-type-accent":"accent"===this.type,"angor-alert-type-warn":"warn"===this.type,"angor-alert-type-basic":"basic"===this.type,"angor-alert-type-info":"info"===this.type,"angor-alert-type-success":"success"===this.type,"angor-alert-type-warning":"warning"===this.type,"angor-alert-type-error":"error"===this.type}}ngOnChanges(c){"dismissed"in c&&(this.dismissed=(0,x.he)(c.dismissed.currentValue),this._toggleDismiss(this.dismissed)),"dismissible"in c&&(this.dismissible=(0,x.he)(c.dismissible.currentValue)),"showIcon"in c&&(this.showIcon=(0,x.he)(c.showIcon.currentValue))}ngOnInit(){this._angorAlertService.onDismiss.pipe((0,_.p)(c=>this.name===c),(0,b.Q)(this._unsubscribeAll)).subscribe(()=>{this.dismiss()}),this._angorAlertService.onShow.pipe((0,_.p)(c=>this.name===c),(0,b.Q)(this._unsubscribeAll)).subscribe(()=>{this.show()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}dismiss(){this.dismissed||this._toggleDismiss(!0)}show(){this.dismissed&&this._toggleDismiss(!1)}_toggleDismiss(c){this.dismissible&&(this.dismissed=c,this.dismissedChanged.next(this.dismissed),this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(u){return new(u||n)}}static{this.\u0275cmp=r.VBU({type:n,selectors:[["angor-alert"]],hostVars:2,hostBindings:function(u,f){2&u&&r.HbH(f.classList)},inputs:{appearance:"appearance",dismissed:"dismissed",dismissible:"dismissible",name:"name",showIcon:"showIcon",type:"type"},outputs:{dismissedChanged:"dismissedChanged"},exportAs:["angorAlert"],features:[r.OA$],ngContentSelectors:m,decls:1,vars:1,consts:[[1,"angor-alert-container"],[1,"angor-alert-border"],[1,"angor-alert-icon"],[1,"angor-alert-content"],[1,"angor-alert-title"],[1,"angor-alert-message"],["mat-icon-button","",1,"angor-alert-dismiss-button",3,"click"],[3,"svgIcon"],[1,"angor-alert-custom-icon"],[1,"angor-alert-default-icon"]],template:function(u,f){1&u&&(r.NAR(E),r.DNE(0,o,10,5,"div",0)),2&u&&r.vxM(!f.dismissible||f.dismissible&&!f.dismissed?0:-1)},dependencies:[v.m_,v.An,C.Hl,C.iY],styles:["angor-alert{display:block}angor-alert .angor-alert-container{position:relative;display:flex;padding:16px;font-size:14px;line-height:1}angor-alert .angor-alert-container .mat-icon{color:currentColor!important}angor-alert .angor-alert-container .angor-alert-icon{display:flex;align-items:flex-start}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon,angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon{display:none;align-items:center;justify-content:center;border-radius:50%}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty),angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon:not(:empty){display:flex;margin-right:12px}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon .mat-icon{width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem;font-size:1.25rem;line-height:1.25rem}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon .mat-icon svg{width:1.25rem;height:1.25rem}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon{display:none}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty){display:flex}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty)+.angor-alert-default-icon{display:none}angor-alert .angor-alert-container .angor-alert-content{display:flex;flex-direction:column;justify-content:center;line-height:1}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title{display:none;font-weight:600;line-height:20px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title:not(:empty){display:block}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title:not(:empty)+.angor-alert-message:not(:empty){margin-top:4px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-message{display:none;line-height:20px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-message:not(:empty){display:block}angor-alert .angor-alert-container .angor-alert-dismiss-button{position:absolute;top:10px;right:10px;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;line-height:32px!important}angor-alert .angor-alert-container .angor-alert-dismiss-button .mat-icon{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:1rem;line-height:1rem}angor-alert .angor-alert-container .angor-alert-dismiss-button .mat-icon svg{width:1rem;height:1rem}angor-alert.angor-alert-dismissible .angor-alert-container .angor-alert-content{margin-right:32px}angor-alert:not(.angor-alert-dismissible) .angor-alert-container .angor-alert-dismiss-button{display:none!important}angor-alert.angor-alert-appearance-border .angor-alert-container{position:relative;overflow:hidden;border-radius:6px;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-alert.angor-alert-appearance-border .angor-alert-container .angor-alert-border{position:absolute;left:0;top:0;bottom:0;width:4px}angor-alert.angor-alert-appearance-border .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(59 117 134 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-fill .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(203 221 225 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-primary-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-primary-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-accent-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-accent-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-warn-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-warn-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(59 117 134 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(2 34 41 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(5 43 51 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(155 186 195 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(74 222 128 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(251 191 36 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-primary-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-accent-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-warn-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(2 34 41 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(5 43 51 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(155 186 195 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}\n"],encapsulation:2,data:{animation:t.F},changeDetection:0})}}return n})()},2992:(D,A,s)=>{s.d(A,{So:()=>g,g7:()=>R});var t=s(8559),a=s(3107),r=s(936),w=s(2902),I=s(5467);const x=["input"],C=["label"],v=["*"],M=new a.nKC("mat-checkbox-default-options",{providedIn:"root",factory:_});function _(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var b=function(l){return l[l.Init=0]="Init",l[l.Checked=1]="Checked",l[l.Unchecked=2]="Unchecked",l[l.Indeterminate=3]="Indeterminate",l}(b||{});const E={provide:r.kq,useExisting:(0,a.Rfq)(()=>g),multi:!0};class m{source;checked}const T=_();let g=(()=>{class l{_elementRef=(0,a.WQX)(a.aKT);_changeDetectorRef=(0,a.WQX)(a.gRc);_ngZone=(0,a.WQX)(a.SKi);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_options=(0,a.WQX)(M,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new m;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new a.bkB;indeterminateChange=new a.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=b.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,a.WQX)(I.l).load(w.Ah);const e=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this._options=this._options||T,this.color=this._options.color||T.color,this.tabIndex=null==e?0:parseInt(e)||0,this.id=this._uniqueId=(0,a.WQX)(t.g7).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=e,i&&(this._transitionCheckState(this._indeterminate?b.Indeterminate:this.checked?b.Checked:b.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const y=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(y)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===e)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?b.Checked:b.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case b.Init:if(i===b.Checked)return this._animationClasses.uncheckedToChecked;if(i==b.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case b.Unchecked:return i===b.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case b.Checked:return i===b.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case b.Indeterminate:return i===b.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(i){return new(i||l)};static \u0275cmp=a.VBU({type:l,selectors:[["mat-checkbox"]],viewQuery:function(i,o){if(1&i&&(a.GBs(x,5),a.GBs(C,5)),2&i){let y;a.mGM(y=a.lsd())&&(o._inputElement=y.first),a.mGM(y=a.lsd())&&(o._labelElement=y.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,o){2&i&&(a.Mr5("id",o.id),a.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),a.HbH(o.color?"mat-"+o.color:"mat-accent"),a.AVh("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",a.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",a.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",e=>null==e?void 0:(0,a.Udg)(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",a.L39],checked:[2,"checked","checked",a.L39],disabled:[2,"disabled","disabled",a.L39],indeterminate:[2,"indeterminate","indeterminate",a.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.Jv_([E,{provide:r.cz,useExisting:l,multi:!0}]),a.GFd,a.OA$],ngContentSelectors:v,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i){const y=a.RV6();a.NAR(),a.j41(0,"div",3),a.bIt("click",function(h){return a.eBV(y),a.Njj(o._preventBubblingFromLabel(h))}),a.j41(1,"div",4,0)(3,"div",5),a.bIt("click",function(){return a.eBV(y),a.Njj(o._onTouchTargetClick())}),a.k0s(),a.j41(4,"input",6,1),a.bIt("blur",function(){return a.eBV(y),a.Njj(o._onBlur())})("click",function(){return a.eBV(y),a.Njj(o._onInputClick())})("change",function(h){return a.eBV(y),a.Njj(o._onInteractionEvent(h))}),a.k0s(),a.nrm(6,"div",7),a.j41(7,"div",8),a.qSk(),a.j41(8,"svg",9),a.nrm(9,"path",10),a.k0s(),a.joV(),a.nrm(10,"div",11),a.k0s(),a.nrm(11,"div",12),a.k0s(),a.j41(12,"label",13,2),a.SdG(14),a.k0s()()}if(2&i){const y=a.sdS(2);a.Y8G("labelPosition",o.labelPosition),a.R7$(4),a.AVh("mdc-checkbox--selected",o.checked),a.Y8G("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),a.BMQ("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",!(!o.disabled||!o.disabledInteractive)||null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),a.R7$(7),a.Y8G("matRippleTrigger",y)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),a.R7$(),a.Y8G("for",o.inputId)}},dependencies:[w.r6,w.tO],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return l})(),R=(()=>{class l{static \u0275fac=function(i){return new(i||l)};static \u0275mod=a.$C({type:l});static \u0275inj=a.G2t({imports:[g,w.yE,w.yE]})}return l})()},1054:(D,A,s)=>{s.d(A,{D6:()=>E,LG:()=>_});var t=s(3107),a=s(4460),r=s(2902);const w=["determinateSpinner"];function I(m,T){if(1&m&&(t.qSk(),t.j41(0,"svg",11),t.nrm(1,"circle",12),t.k0s()),2&m){const g=t.XpG();t.BMQ("viewBox",g._viewBox()),t.R7$(),t.xc7("stroke-dasharray",g._strokeCircumference(),"px")("stroke-dashoffset",g._strokeCircumference()/2,"px")("stroke-width",g._circleStrokeWidth(),"%"),t.BMQ("r",g._circleRadius())}}const x=new t.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function C(){return{diameter:v}}}),v=100;let _=(()=>{class m{_elementRef=(0,t.WQX)(t.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(g){this._color=g}_color;_defaultColor="primary";_determinateCircle;constructor(){const g=(0,t.WQX)(t.bc$,{optional:!0}),p=(0,t.WQX)(x);this._noopAnimations="NoopAnimations"===g&&!!p&&!p._forceAnimations,this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",p&&(p.color&&(this.color=this._defaultColor=p.color),p.diameter&&(this.diameter=p.diameter),p.strokeWidth&&(this.strokeWidth=p.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(g){this._value=Math.max(0,Math.min(100,g||0))}_value=0;get diameter(){return this._diameter}set diameter(g){this._diameter=g||0}_diameter=v;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(g){this._strokeWidth=g||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const g=2*this._circleRadius()+this.strokeWidth;return`0 0 ${g} ${g}`}_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 \u0275fac=function(p){return new(p||m)};static \u0275cmp=t.VBU({type:m,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(p,d){if(1&p&&t.GBs(w,5),2&p){let k;t.mGM(k=t.lsd())&&(d._determinateCircle=k.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(p,d){2&p&&(t.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===d.mode?d.value:null)("mode",d.mode),t.HbH("mat-"+d.color),t.xc7("width",d.diameter,"px")("height",d.diameter,"px")("--mdc-circular-progress-size",d.diameter+"px")("--mdc-circular-progress-active-indicator-width",d.diameter+"px"),t.AVh("_mat-animation-noopable",d._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===d.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",t.Udg],diameter:[2,"diameter","diameter",t.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",t.Udg]},exportAs:["matProgressSpinner"],features:[t.GFd],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(p,d){if(1&p&&(t.DNE(0,I,2,8,"ng-template",null,0,t.C5r),t.j41(2,"div",2,1),t.qSk(),t.j41(4,"svg",3),t.nrm(5,"circle",4),t.k0s()(),t.joV(),t.j41(6,"div",5)(7,"div",6)(8,"div",7),t.eu8(9,8),t.k0s(),t.j41(10,"div",9),t.eu8(11,8),t.k0s(),t.j41(12,"div",10),t.eu8(13,8),t.k0s()()()),2&p){const k=t.sdS(1);t.R7$(4),t.BMQ("viewBox",d._viewBox()),t.R7$(),t.xc7("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeDashOffset(),"px")("stroke-width",d._circleStrokeWidth(),"%"),t.BMQ("r",d._circleRadius()),t.R7$(4),t.Y8G("ngTemplateOutlet",k),t.R7$(2),t.Y8G("ngTemplateOutlet",k),t.R7$(2),t.Y8G("ngTemplateOutlet",k)}},dependencies:[a.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, 4px)}.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}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.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-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.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 m})(),E=(()=>{class m{static \u0275fac=function(p){return new(p||m)};static \u0275mod=t.$C({type:m});static \u0275inj=t.G2t({imports:[r.yE]})}return m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkangor=self.webpackChunkangor||[]).push([[87],{6903:(D,A,s)=>{s.d(A,{h:()=>y});var t=s(7618),a=s(7838),r=s(3107);let w=(()=>{class n{constructor(){this._onDismiss=new a.m(1),this._onShow=new a.m(1)}get onDismiss(){return this._onDismiss.asObservable()}get onShow(){return this._onShow.asObservable()}dismiss(c){c&&this._onDismiss.next(c)}show(c){c&&this._onShow.next(c)}static{this.\u0275fac=function(u){return new(u||n)}}static{this.\u0275prov=r.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var I=s(3939),x=s(3022),C=s(9471),v=s(3904),M=s(8447),_=s(1483),b=s(5424);const E=[[["","angorAlertTitle",""]],"*",[["","angorAlertIcon",""]]],m=["[angorAlertTitle]","*","[angorAlertIcon]"];function T(n,h){1&n&&r.nrm(0,"div",1)}function g(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function p(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function d(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:x-circle")}function k(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function R(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:information-circle")}function l(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:check-circle")}function O(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:exclamation-triangle")}function e(n,h){1&n&&r.nrm(0,"mat-icon",7),2&n&&r.Y8G("svgIcon","heroicons_solid:x-circle")}function i(n,h){if(1&n&&(r.j41(0,"div",2)(1,"div",8),r.SdG(2,2),r.k0s(),r.j41(3,"div",9),r.DNE(4,g,1,1,"mat-icon",7)(5,p,1,1,"mat-icon",7)(6,d,1,1,"mat-icon",7)(7,k,1,1,"mat-icon",7)(8,R,1,1,"mat-icon",7)(9,l,1,1,"mat-icon",7)(10,O,1,1,"mat-icon",7)(11,e,1,1,"mat-icon",7),r.k0s()()),2&n){const c=r.XpG(2);r.R7$(4),r.vxM("primary"===c.type?4:-1),r.R7$(),r.vxM("accent"===c.type?5:-1),r.R7$(),r.vxM("warn"===c.type?6:-1),r.R7$(),r.vxM("basic"===c.type?7:-1),r.R7$(),r.vxM("info"===c.type?8:-1),r.R7$(),r.vxM("success"===c.type?9:-1),r.R7$(),r.vxM("warning"===c.type?10:-1),r.R7$(),r.vxM("error"===c.type?11:-1)}}function o(n,h){if(1&n){const c=r.RV6();r.j41(0,"div",0),r.DNE(1,T,1,0,"div",1)(2,i,12,8,"div",2),r.j41(3,"div",3)(4,"div",4),r.SdG(5),r.k0s(),r.j41(6,"div",5),r.SdG(7,1),r.k0s()(),r.j41(8,"button",6),r.bIt("click",function(){r.eBV(c);const f=r.XpG();return r.Njj(f.dismiss())}),r.nrm(9,"mat-icon",7),r.k0s()()}if(2&n){const c=r.XpG();r.Y8G("@fadeIn",!c.dismissed)("@fadeOut",!c.dismissed),r.R7$(),r.vxM("border"===c.appearance?1:-1),r.R7$(),r.vxM(c.showIcon?2:-1),r.R7$(7),r.Y8G("svgIcon","heroicons_solid:x-mark")}}let y=(()=>{class n{constructor(){this._changeDetectorRef=(0,r.WQX)(r.gRc),this._angorAlertService=(0,r.WQX)(w),this._angorUtilsService=(0,r.WQX)(I.Q),this.appearance="soft",this.dismissed=!1,this.dismissible=!1,this.name=this._angorUtilsService.randomId(),this.showIcon=!0,this.type="primary",this.dismissedChanged=new r.bkB,this._unsubscribeAll=new M.B}get classList(){return{"angor-alert-appearance-border":"border"===this.appearance,"angor-alert-appearance-fill":"fill"===this.appearance,"angor-alert-appearance-outline":"outline"===this.appearance,"angor-alert-appearance-soft":"soft"===this.appearance,"angor-alert-dismissed":this.dismissed,"angor-alert-dismissible":this.dismissible,"angor-alert-show-icon":this.showIcon,"angor-alert-type-primary":"primary"===this.type,"angor-alert-type-accent":"accent"===this.type,"angor-alert-type-warn":"warn"===this.type,"angor-alert-type-basic":"basic"===this.type,"angor-alert-type-info":"info"===this.type,"angor-alert-type-success":"success"===this.type,"angor-alert-type-warning":"warning"===this.type,"angor-alert-type-error":"error"===this.type}}ngOnChanges(c){"dismissed"in c&&(this.dismissed=(0,x.he)(c.dismissed.currentValue),this._toggleDismiss(this.dismissed)),"dismissible"in c&&(this.dismissible=(0,x.he)(c.dismissible.currentValue)),"showIcon"in c&&(this.showIcon=(0,x.he)(c.showIcon.currentValue))}ngOnInit(){this._angorAlertService.onDismiss.pipe((0,_.p)(c=>this.name===c),(0,b.Q)(this._unsubscribeAll)).subscribe(()=>{this.dismiss()}),this._angorAlertService.onShow.pipe((0,_.p)(c=>this.name===c),(0,b.Q)(this._unsubscribeAll)).subscribe(()=>{this.show()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}dismiss(){this.dismissed||this._toggleDismiss(!0)}show(){this.dismissed&&this._toggleDismiss(!1)}_toggleDismiss(c){this.dismissible&&(this.dismissed=c,this.dismissedChanged.next(this.dismissed),this._changeDetectorRef.markForCheck())}static{this.\u0275fac=function(u){return new(u||n)}}static{this.\u0275cmp=r.VBU({type:n,selectors:[["angor-alert"]],hostVars:2,hostBindings:function(u,f){2&u&&r.HbH(f.classList)},inputs:{appearance:"appearance",dismissed:"dismissed",dismissible:"dismissible",name:"name",showIcon:"showIcon",type:"type"},outputs:{dismissedChanged:"dismissedChanged"},exportAs:["angorAlert"],features:[r.OA$],ngContentSelectors:m,decls:1,vars:1,consts:[[1,"angor-alert-container"],[1,"angor-alert-border"],[1,"angor-alert-icon"],[1,"angor-alert-content"],[1,"angor-alert-title"],[1,"angor-alert-message"],["mat-icon-button","",1,"angor-alert-dismiss-button",3,"click"],[3,"svgIcon"],[1,"angor-alert-custom-icon"],[1,"angor-alert-default-icon"]],template:function(u,f){1&u&&(r.NAR(E),r.DNE(0,o,10,5,"div",0)),2&u&&r.vxM(!f.dismissible||f.dismissible&&!f.dismissed?0:-1)},dependencies:[v.m_,v.An,C.Hl,C.iY],styles:["angor-alert{display:block}angor-alert .angor-alert-container{position:relative;display:flex;padding:16px;font-size:14px;line-height:1}angor-alert .angor-alert-container .mat-icon{color:currentColor!important}angor-alert .angor-alert-container .angor-alert-icon{display:flex;align-items:flex-start}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon,angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon{display:none;align-items:center;justify-content:center;border-radius:50%}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty),angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon:not(:empty){display:flex;margin-right:12px}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon .mat-icon{width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem;font-size:1.25rem;line-height:1.25rem}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-default-icon .mat-icon svg{width:1.25rem;height:1.25rem}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon{display:none}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty){display:flex}angor-alert .angor-alert-container .angor-alert-icon .angor-alert-custom-icon:not(:empty)+.angor-alert-default-icon{display:none}angor-alert .angor-alert-container .angor-alert-content{display:flex;flex-direction:column;justify-content:center;line-height:1}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title{display:none;font-weight:600;line-height:20px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title:not(:empty){display:block}angor-alert .angor-alert-container .angor-alert-content .angor-alert-title:not(:empty)+.angor-alert-message:not(:empty){margin-top:4px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-message{display:none;line-height:20px}angor-alert .angor-alert-container .angor-alert-content .angor-alert-message:not(:empty){display:block}angor-alert .angor-alert-container .angor-alert-dismiss-button{position:absolute;top:10px;right:10px;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;line-height:32px!important}angor-alert .angor-alert-container .angor-alert-dismiss-button .mat-icon{width:1rem;height:1rem;min-width:1rem;min-height:1rem;font-size:1rem;line-height:1rem}angor-alert .angor-alert-container .angor-alert-dismiss-button .mat-icon svg{width:1rem;height:1rem}angor-alert.angor-alert-dismissible .angor-alert-container .angor-alert-content{margin-right:32px}angor-alert:not(.angor-alert-dismissible) .angor-alert-container .angor-alert-dismiss-button{display:none!important}angor-alert.angor-alert-appearance-border .angor-alert-container{position:relative;overflow:hidden;border-radius:6px;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}angor-alert.angor-alert-appearance-border .angor-alert-container .angor-alert-border{position:absolute;left:0;top:0;bottom:0;width:4px}angor-alert.angor-alert-appearance-border .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-400-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-400-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(59 117 134 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-border{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(107 152 164 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-border.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-fill .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-100-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(203 221 225 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-title{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-fill.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-primary-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-primary-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-accent-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-accent-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgba(var(--angor-warn-400-rgb), var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-warn-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(59 117 134 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(2 34 41 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(5 43 51 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(155 186 195 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(96 165 250 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(74 222 128 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(251 191 36 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-outline.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft .angor-alert-container{border-radius:6px}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-primary-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-primary .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-primary-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-accent-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-accent-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-accent .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-accent-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgba(var(--angor-warn-900-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-700-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-warn-800-rgb),var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container{--tw-bg-opacity: 1;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warn .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgba(var(--angor-warn-200-rgb),var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(7 52 62 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(2 34 41 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(5 43 51 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(3 33 40 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-basic .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(155 186 195 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-info .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-success .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-warning .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-title,angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container code{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-icon{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-title,.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-dismiss-button{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark angor-alert.angor-alert-appearance-soft.angor-alert-type-error .angor-alert-container .angor-alert-message{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}\n"],encapsulation:2,data:{animation:t.F},changeDetection:0})}}return n})()},2992:(D,A,s)=>{s.d(A,{So:()=>g,g7:()=>R});var t=s(8559),a=s(3107),r=s(936),w=s(2902),I=s(5467);const x=["input"],C=["label"],v=["*"],M=new a.nKC("mat-checkbox-default-options",{providedIn:"root",factory:_});function _(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var b=function(l){return l[l.Init=0]="Init",l[l.Checked=1]="Checked",l[l.Unchecked=2]="Unchecked",l[l.Indeterminate=3]="Indeterminate",l}(b||{});const E={provide:r.kq,useExisting:(0,a.Rfq)(()=>g),multi:!0};class m{source;checked}const T=_();let g=(()=>{class l{_elementRef=(0,a.WQX)(a.aKT);_changeDetectorRef=(0,a.WQX)(a.gRc);_ngZone=(0,a.WQX)(a.SKi);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_options=(0,a.WQX)(M,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){const i=new m;return i.source=this,i.checked=e,i}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new a.bkB;indeterminateChange=new a.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=b.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,a.WQX)(I.l).load(w.Ah);const e=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this._options=this._options||T,this.color=this._options.color||T.color,this.tabIndex=null==e?0:parseInt(e)||0,this.id=this._uniqueId=(0,a.WQX)(t.g7).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){const i=e!=this._indeterminate;this._indeterminate=e,i&&(this._transitionCheckState(this._indeterminate?b.Indeterminate:this.checked?b.Checked:b.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&!0!==e.value?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let i=this._currentCheckState,o=this._getAnimationTargetElement();if(i!==e&&o&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(i,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);const y=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(y)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const e=this._options?.clickAction;this.disabled||"noop"===e?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===e)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==e&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?b.Checked:b.Unchecked),this._emitChangeEvent())}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,i){if("NoopAnimations"===this._animationMode)return"";switch(e){case b.Init:if(i===b.Checked)return this._animationClasses.uncheckedToChecked;if(i==b.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case b.Unchecked:return i===b.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case b.Checked:return i===b.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case b.Indeterminate:return i===b.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){const i=this._inputElement;i&&(i.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(i){return new(i||l)};static \u0275cmp=a.VBU({type:l,selectors:[["mat-checkbox"]],viewQuery:function(i,o){if(1&i&&(a.GBs(x,5),a.GBs(C,5)),2&i){let y;a.mGM(y=a.lsd())&&(o._inputElement=y.first),a.mGM(y=a.lsd())&&(o._labelElement=y.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(i,o){2&i&&(a.Mr5("id",o.id),a.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),a.HbH(o.color?"mat-"+o.color:"mat-accent"),a.AVh("_mat-animation-noopable","NoopAnimations"===o._animationMode)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",a.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",a.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",e=>null==e?void 0:(0,a.Udg)(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",a.L39],checked:[2,"checked","checked",a.L39],disabled:[2,"disabled","disabled",a.L39],indeterminate:[2,"indeterminate","indeterminate",a.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[a.Jv_([E,{provide:r.cz,useExisting:l,multi:!0}]),a.GFd,a.OA$],ngContentSelectors:v,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(i,o){if(1&i){const y=a.RV6();a.NAR(),a.j41(0,"div",3),a.bIt("click",function(h){return a.eBV(y),a.Njj(o._preventBubblingFromLabel(h))}),a.j41(1,"div",4,0)(3,"div",5),a.bIt("click",function(){return a.eBV(y),a.Njj(o._onTouchTargetClick())}),a.k0s(),a.j41(4,"input",6,1),a.bIt("blur",function(){return a.eBV(y),a.Njj(o._onBlur())})("click",function(){return a.eBV(y),a.Njj(o._onInputClick())})("change",function(h){return a.eBV(y),a.Njj(o._onInteractionEvent(h))}),a.k0s(),a.nrm(6,"div",7),a.j41(7,"div",8),a.qSk(),a.j41(8,"svg",9),a.nrm(9,"path",10),a.k0s(),a.joV(),a.nrm(10,"div",11),a.k0s(),a.nrm(11,"div",12),a.k0s(),a.j41(12,"label",13,2),a.SdG(14),a.k0s()()}if(2&i){const y=a.sdS(2);a.Y8G("labelPosition",o.labelPosition),a.R7$(4),a.AVh("mdc-checkbox--selected",o.checked),a.Y8G("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),a.BMQ("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",!(!o.disabled||!o.disabledInteractive)||null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),a.R7$(7),a.Y8G("matRippleTrigger",y)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),a.R7$(),a.Y8G("for",o.inputId)}},dependencies:[w.r6,w.tO],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover .mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover .mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover .mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *,.mat-mdc-checkbox._mat-animation-noopable .mdc-checkbox *::before{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return l})(),R=(()=>{class l{static \u0275fac=function(i){return new(i||l)};static \u0275mod=a.$C({type:l});static \u0275inj=a.G2t({imports:[g,w.yE,w.yE]})}return l})()},1054:(D,A,s)=>{s.d(A,{D6:()=>E,LG:()=>_});var t=s(3107),a=s(4460),r=s(2902);const w=["determinateSpinner"];function I(m,T){if(1&m&&(t.qSk(),t.j41(0,"svg",11),t.nrm(1,"circle",12),t.k0s()),2&m){const g=t.XpG();t.BMQ("viewBox",g._viewBox()),t.R7$(),t.xc7("stroke-dasharray",g._strokeCircumference(),"px")("stroke-dashoffset",g._strokeCircumference()/2,"px")("stroke-width",g._circleStrokeWidth(),"%"),t.BMQ("r",g._circleRadius())}}const x=new t.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function C(){return{diameter:v}}}),v=100;let _=(()=>{class m{_elementRef=(0,t.WQX)(t.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(g){this._color=g}_color;_defaultColor="primary";_determinateCircle;constructor(){const g=(0,t.WQX)(t.bc$,{optional:!0}),p=(0,t.WQX)(x);this._noopAnimations="NoopAnimations"===g&&!!p&&!p._forceAnimations,this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",p&&(p.color&&(this.color=this._defaultColor=p.color),p.diameter&&(this.diameter=p.diameter),p.strokeWidth&&(this.strokeWidth=p.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(g){this._value=Math.max(0,Math.min(100,g||0))}_value=0;get diameter(){return this._diameter}set diameter(g){this._diameter=g||0}_diameter=v;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(g){this._strokeWidth=g||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const g=2*this._circleRadius()+this.strokeWidth;return`0 0 ${g} ${g}`}_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 \u0275fac=function(p){return new(p||m)};static \u0275cmp=t.VBU({type:m,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(p,d){if(1&p&&t.GBs(w,5),2&p){let k;t.mGM(k=t.lsd())&&(d._determinateCircle=k.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(p,d){2&p&&(t.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===d.mode?d.value:null)("mode",d.mode),t.HbH("mat-"+d.color),t.xc7("width",d.diameter,"px")("height",d.diameter,"px")("--mdc-circular-progress-size",d.diameter+"px")("--mdc-circular-progress-active-indicator-width",d.diameter+"px"),t.AVh("_mat-animation-noopable",d._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===d.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",t.Udg],diameter:[2,"diameter","diameter",t.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",t.Udg]},exportAs:["matProgressSpinner"],features:[t.GFd],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(p,d){if(1&p&&(t.DNE(0,I,2,8,"ng-template",null,0,t.C5r),t.j41(2,"div",2,1),t.qSk(),t.j41(4,"svg",3),t.nrm(5,"circle",4),t.k0s()(),t.joV(),t.j41(6,"div",5)(7,"div",6)(8,"div",7),t.eu8(9,8),t.k0s(),t.j41(10,"div",9),t.eu8(11,8),t.k0s(),t.j41(12,"div",10),t.eu8(13,8),t.k0s()()()),2&p){const k=t.sdS(1);t.R7$(4),t.BMQ("viewBox",d._viewBox()),t.R7$(),t.xc7("stroke-dasharray",d._strokeCircumference(),"px")("stroke-dashoffset",d._strokeDashOffset(),"px")("stroke-width",d._circleStrokeWidth(),"%"),t.BMQ("r",d._circleRadius()),t.R7$(4),t.Y8G("ngTemplateOutlet",k),t.R7$(2),t.Y8G("ngTemplateOutlet",k),t.R7$(2),t.Y8G("ngTemplateOutlet",k)}},dependencies:[a.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, 4px)}.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}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.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-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.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 m})(),E=(()=>{class m{static \u0275fac=function(p){return new(p||m)};static \u0275mod=t.$C({type:m});static \u0275inj=t.G2t({imports:[r.yE]})}return m})()}}]); \ No newline at end of file diff --git a/index.html b/index.html index f7481e7..2713aa4 100644 --- a/index.html +++ b/index.html @@ -26,7 +26,7 @@ - + @@ -41,5 +41,5 @@ - + diff --git a/main.a5cfe79cd4accb38.js b/main.a5cfe79cd4accb38.js new file mode 100644 index 0000000..059b0fd --- /dev/null +++ b/main.a5cfe79cd4accb38.js @@ -0,0 +1 @@ +(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{7618:(o,s,n)=>{"use strict";n.d(s,{F:()=>st});let i=(()=>{class lt{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 lt})(),a=(()=>{class lt{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return lt})();var c=n(1204);const ae=(lt,bt,at,sn,fn=`${a.entering} ${i.deceleration}`,En=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(lt,[(0,c.wk)("void",(0,c.iF)(bt)),(0,c.wk)("*",(0,c.iF)(at)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(sn||fn),{params:{timings:fn}}),(0,c.kY)("* => void",(0,c.i0)(sn||En),{params:{timings:En}})]),st=[(0,c.hZ)("expandCollapse",[(0,c.wk)("void, collapsed",(0,c.iF)({height:"0"})),(0,c.wk)("*, expanded",(0,c.iF)("*")),(0,c.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,c.kY)("void <=> *, collapsed <=> expanded",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeIn",[(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInTop",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInBottom",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInLeft",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInRight",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeOut",[(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutTop",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutBottom",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutLeft",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutRight",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("shake",[(0,c.kY)("void => false",[]),(0,c.kY)("void => *, * => true",[(0,c.i0)("{{timings}}",(0,c.i7)([(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,c.hZ)("slideInTop",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInBottom",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInLeft",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInRight",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideOutTop",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutBottom",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutLeft",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutRight",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),ae("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),ae("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},3871:(o,s,n)=>{"use strict";n.d(s,{$w:()=>tt,lX:()=>c,Tv:()=>Aa});var i=n(7618),a=n(3107);let c=(()=>{class q{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(J,ot){this._componentRegistry.set(J,ot)}deregisterComponent(J){this._componentRegistry.delete(J)}getComponent(J){return this._componentRegistry.get(J)}storeNavigation(J,ot){this._navigationStore.set(J,ot)}getNavigation(J){return this._navigationStore.get(J)??[]}deleteNavigation(J){this._navigationStore.has(J)||console.warn(`Navigation with the key '${J}' does not exist.`),this._navigationStore.delete(J)}getFlatNavigation(J,ot=[]){for(const Ct of J)"basic"===Ct.type?ot.push(Ct):Ct.children&&this.getFlatNavigation(Ct.children,ot);return ot}getItem(J,ot){for(const Ct of ot){if(Ct.id===J)return Ct;if(Ct.children){const jn=this.getItem(J,Ct.children);if(jn)return jn}}return null}getItemParent(J,ot,Ct){for(const jn of ot){if(jn.id===J)return Ct;if(jn.children){const Pn=this.getItemParent(J,jn.children,jn);if(Pn)return Pn}}return null}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275prov=a.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})();var y=n(3939),w=n(7838),C=n(8447),T=n(4460),S=n(3904),M=n(7818),k=n(7712),R=n(8716),X=n(5424);const Z=q=>({"angor-horizontal-navigation-item-active-forced":q}),ne=q=>[q];function _e(q,qe){1&q&&a.eu8(0)}function pe(q,qe){if(1&q&&(a.j41(0,"div",2),a.DNE(1,_e,1,0,"ng-container",7),a.k0s()),2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,Pn.item.active))("routerLink",a.eq3(12,ne,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function de(q,qe){1&q&&a.eu8(0)}function De(q,qe){if(1&q&&(a.j41(0,"a",3),a.DNE(1,de,1,0,"ng-container",7),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ee(q,qe){1&q&&a.eu8(0)}function Le(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ee,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ae(q,qe){1&q&&a.eu8(0)}function we(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ae,1,0,"ng-container",7),a.k0s()}if(2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,Pn.item.active))("routerLink",a.eq3(12,ne,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function le(q,qe){1&q&&a.eu8(0)}function ae(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,le,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function xe(q,qe){1&q&&a.eu8(0)}function Be(q,qe){if(1&q&&(a.j41(0,"div",4),a.DNE(1,xe,1,0,"ng-container",7),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function st(q,qe){1&q&&a.eu8(0)}function lt(q,qe){if(1&q&&(a.j41(0,"div",6),a.DNE(1,st,1,0,"ng-container",7),a.k0s()),2&q){a.XpG();const J=a.sdS(9);a.R7$(),a.Y8G("ngTemplateOutlet",J)}}function bt(q,qe){if(1&q&&a.nrm(0,"mat-icon",11),2&q){const J=a.XpG(2);a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function at(q,qe){if(1&q&&(a.j41(0,"div",15)(1,"span",14),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function sn(q,qe){if(1&q&&(a.j41(0,"div",16)(1,"div",17),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function fn(q,qe){if(1&q&&(a.DNE(0,bt,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,at,3,2,"div",15),a.k0s(),a.DNE(6,sn,3,2,"div",16)),2&q){const J=a.XpG();a.vxM(J.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.title),a.R7$(),a.SpI(" ",J.item.title," "),a.R7$(),a.vxM(J.item.subtitle?5:-1),a.R7$(),a.vxM(J.item.badge?6:-1)}}let En=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",1),a.DNE(1,pe,2,14,"div",2)(2,De,2,4,"a",3)(3,Le,2,5,"div",4)(4,we,2,14,"div",2)(5,ae,2,4,"a",5)(6,Be,2,5,"div",4)(7,lt,2,1,"div",6),a.k0s(),a.DNE(8,fn,7,5,"ng-template",null,0,a.C5r)),2&ot&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.vxM(!Ct.item.link||Ct.item.externalLink||Ct.item.function||Ct.item.disabled?-1:1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&!Ct.item.function&&!Ct.item.disabled?2:-1),a.R7$(),a.vxM(Ct.item.link||!Ct.item.function||Ct.item.disabled?-1:3),a.R7$(),a.vxM(Ct.item.link&&!Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?4:-1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?5:-1),a.R7$(),a.vxM(Ct.item.link||Ct.item.function||Ct.item.disabled?-1:6),a.R7$(),a.vxM(Ct.item.disabled?7:-1))},dependencies:[T.YU,R.Wk,R.wQ,k.uc,k.oV,T.T3,M.Cn,M.fb,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),Wn=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();const wn=["matMenu"],Je=(q,qe)=>({"angor-horizontal-navigation-menu-active":q,"angor-horizontal-navigation-menu-active-forced":qe}),_t=q=>({$implicit:q}),ze=(q,qe)=>({"angor-horizontal-navigation-item-disabled":q,"angor-horizontal-navigation-item-active-forced":qe});function Ue(q,qe){1&q&&a.eu8(0)}function Ft(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.triggerChangeDetection())})("onMenuClose",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.triggerChangeDetection())}),a.DNE(2,Ue,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.sdS(1),ot=a.XpG(),Ct=a.sdS(2),jn=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Je,J.menuOpen,ot.item.active))("matMenuTriggerFor",Ct),a.R7$(2),a.Y8G("ngTemplateOutlet",jn)("ngTemplateOutletContext",a.eq3(7,_t,ot.item))}}function Ke(q,qe){if(1&q&&(a.j41(0,"div",8),a.nrm(1,"angor-horizontal-navigation-basic-item",11),a.k0s()),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("disabled",J.disabled),a.R7$(),a.Y8G("item",J)("name",ot.name)}}function Ze(q,qe){1&q&&a.eu8(0)}function it(q,qe){if(1&q&&(a.j41(0,"div",9),a.DNE(1,Ze,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&q){const J=a.sdS(3),ot=a.XpG(2).$implicit,Ct=a.XpG(),jn=a.sdS(6);a.Y8G("disabled",ot.disabled)("matMenuTriggerFor",J.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",jn)("ngTemplateOutletContext",a.eq3(7,_t,ot)),a.R7$(),a.Y8G("child",!0)("item",ot)("name",Ct.name)}}function Ot(q,qe){if(1&q&&(a.j41(0,"div",10),a.nrm(1,"angor-horizontal-navigation-divider-item",11),a.k0s()),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.R7$(),a.Y8G("item",J)("name",ot.name)}}function Qt(q,qe){if(1&q&&a.DNE(0,Ke,2,3,"div",8)(1,it,4,9,"div",9)(2,Ot,2,2,"div",10),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("aside"===J.type||"collapsable"===J.type||"group"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1)}}function Me(q,qe){if(1&q&&a.DNE(0,Qt,3,3),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function ht(q,qe){if(1&q&&a.nrm(0,"mat-icon",15),2&q){const J=a.XpG().$implicit;a.Y8G("ngClass",null==J.classes?null:J.classes.icon)("svgIcon",J.icon)}}function Xt(q,qe){if(1&q&&(a.j41(0,"div",19)(1,"span",18),a.EFF(2),a.k0s()()),2&q){const J=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",null==J.classes?null:J.classes.subtitle),a.R7$(),a.SpI(" ",J.subtitle," ")}}function Tn(q,qe){if(1&q&&(a.j41(0,"div",20)(1,"div",21),a.EFF(2),a.k0s()()),2&q){const J=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",J.badge.classes),a.R7$(),a.SpI(" ",J.badge.title," ")}}function Wt(q,qe){if(1&q&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,ht,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Xt,3,2,"div",19),a.k0s(),a.DNE(8,Tn,3,2,"div",20),a.k0s()()),2&q){const J=qe.$implicit;a.AVh("angor-horizontal-navigation-item-has-subtitle",!!J.subtitle),a.Y8G("ngClass",null==J.classes?null:J.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.l_i(10,ze,J.disabled,J.active))("matTooltip",J.tooltip||""),a.R7$(),a.vxM(J.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==J.classes?null:J.classes.title),a.R7$(),a.SpI(" ",J.title," "),a.R7$(),a.vxM(J.subtitle?7:-1),a.R7$(),a.vxM(J.badge?8:-1)}}let Zt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this.child=!1,this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(ot,Ct){if(1&ot&&a.GBs(wn,7),2&ot){let jn;a.mGM(jn=a.lsd())&&(Ct.matMenu=jn.first)}},inputs:{child:"child",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.DNE(0,Ft,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,Me,1,1,null,null,Ct.trackByFn,!0),a.k0s(),a.DNE(5,Wt,9,13,"ng-template",null,1,a.C5r)),2&ot&&(a.vxM(Ct.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(Ct.item.children))},dependencies:()=>[q,T.YU,M.Cn,M.kk,M.fb,M.Cp,T.T3,En,Wn,k.uc,k.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),rt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();function Ht(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function en(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Nn(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function mn(q,qe){if(1&q&&a.DNE(0,Ht,1,2,"angor-horizontal-navigation-basic-item",1)(1,en,1,2,"angor-horizontal-navigation-branch-item",1)(2,Nn,1,2,"angor-horizontal-navigation-spacer-item",1),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("aside"===J.type||"collapsable"===J.type||"group"===J.type?1:-1),a.R7$(),a.vxM("spacer"===J.type?2:-1)}}function Mn(q,qe){if(1&q&&a.DNE(0,mn,3,3),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}let tt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new w.m(1),this._unsubscribeAll=new C.B}ngOnChanges(J){"navigation"in J&&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(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],features:[a.OA$],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(ot,Ct){1&ot&&(a.j41(0,"div",0),a.Z7z(1,Mn,1,1,null,null,Ct.trackByFn,!0),a.k0s()),2&ot&&(a.R7$(),a.Dyx(Ct.navigation))},dependencies:[En,Zt,rt],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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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:i.F},changeDetection:0})}}return q})();const Kt=q=>({"angor-vertical-navigation-item-active-forced":q}),At=q=>[q];function Te(q,qe){1&q&&a.eu8(0)}function be(q,qe){if(1&q&&(a.j41(0,"a",2),a.DNE(1,Te,1,0,"ng-container",6),a.k0s()),2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,Pn.item.active))("routerLink",a.eq3(12,At,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function He(q,qe){1&q&&a.eu8(0)}function z(q,qe){if(1&q&&(a.j41(0,"a",3),a.DNE(1,He,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function L(q,qe){1&q&&a.eu8(0)}function V(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,L,1,0,"ng-container",6),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ne(q,qe){1&q&&a.eu8(0)}function ft(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ne,1,0,"ng-container",6),a.k0s()}if(2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,Pn.item.active))("routerLink",a.eq3(12,At,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function mt(q,qe){1&q&&a.eu8(0)}function Tt(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,mt,1,0,"ng-container",6),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function On(q,qe){1&q&&a.eu8(0)}function cn(q,qe){if(1&q&&(a.j41(0,"div",4),a.DNE(1,On,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function hn(q,qe){1&q&&a.eu8(0)}function Ln(q,qe){if(1&q&&(a.j41(0,"div",5),a.DNE(1,hn,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function lr(q,qe){if(1&q&&a.nrm(0,"mat-icon",10),2&q){const J=a.XpG(2);a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Dn(q,qe){if(1&q&&(a.j41(0,"div",14)(1,"span",13),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function Hr(q,qe){if(1&q&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function Mr(q,qe){if(1&q&&(a.DNE(0,lr,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Dn,3,2,"div",14),a.k0s(),a.DNE(6,Hr,3,2,"div",15)),2&q){const J=a.XpG();a.vxM(J.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.title),a.R7$(),a.SpI(" ",J.item.title," "),a.R7$(),a.vxM(J.item.subtitle?5:-1),a.R7$(),a.vxM(J.item.badge?6:-1)}}let Vr=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",1),a.DNE(1,be,2,14,"a",2)(2,z,2,4,"a",3)(3,V,2,5,"div",4)(4,ft,2,14,"a",2)(5,Tt,2,4,"a",3)(6,cn,2,5,"div",4)(7,Ln,2,2,"div",5),a.k0s(),a.DNE(8,Mr,7,5,"ng-template",null,0,a.C5r)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.vxM(!Ct.item.link||Ct.item.externalLink||Ct.item.function||Ct.item.disabled?-1:1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&!Ct.item.function&&!Ct.item.disabled?2:-1),a.R7$(),a.vxM(Ct.item.link||!Ct.item.function||Ct.item.disabled?-1:3),a.R7$(),a.vxM(Ct.item.link&&!Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?4:-1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?5:-1),a.R7$(),a.vxM(Ct.item.link||Ct.item.function||Ct.item.disabled?-1:6),a.R7$(),a.vxM(Ct.item.disabled?7:-1))},dependencies:[T.YU,R.Wk,R.wQ,k.uc,k.oV,T.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),vt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})(),Vt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();function Oe(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Ge(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function je(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",8),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function Dt(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function ct(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Bt(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function xn(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function er(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function xr(q,qe){if(1&q&&a.DNE(0,Dt,1,2,"angor-vertical-navigation-basic-item",9)(1,ct,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Bt,1,2,"angor-vertical-navigation-divider-item",9)(3,xn,1,2,"angor-vertical-navigation-group-item",9)(4,er,1,2,"angor-vertical-navigation-spacer-item",9),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function si(q,qe){if(1&q&&a.DNE(0,xr,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}let hi=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Oe,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Ge,3,2,"div",6),a.k0s(),a.DNE(8,je,3,2,"div",7),a.k0s()(),a.Z7z(9,si,1,1,null,null,Ct.trackByFn,!0)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(2),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.Dyx(Ct.item.children))},dependencies:()=>[q,T.YU,S.m_,S.An,Vr,qo,vt,Vt],encapsulation:2,changeDetection:0})}}return q})();var Zi=n(1483);const nn=q=>({"angor-vertical-navigation-item-disabled":q});function Mt(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function nt(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function Rt(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",10),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function ln(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function vn(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function fr(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Co(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Ni(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function ds(q,qe){if(1&q&&a.DNE(0,ln,1,2,"angor-vertical-navigation-basic-item",11)(1,vn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,fr,1,2,"angor-vertical-navigation-divider-item",11)(3,Co,1,2,"angor-vertical-navigation-group-item",11)(4,Ni,1,2,"angor-vertical-navigation-spacer-item",11),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function $o(q,qe){if(1&q&&a.DNE(0,ds,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function ai(q,qe){if(1&q&&(a.j41(0,"div",9),a.Z7z(1,$o,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.Y8G("@expandCollapse",void 0),a.R7$(),a.Dyx(J.item.children)}}let qo=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(J=>{null!==J&&this._isChildrenOf(J,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(J=>{null!==J&&(this._isChildrenOf(this.item,J)||this._hasActiveChild(this.item,this._router.url)||this.item!==J&&this.collapse())}),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(J=>{this._hasActiveChild(this.item,J.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.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(J,ot){return ot.id||J}_hasActiveChild(J,ot){const Ct=J.children;if(!Ct)return!1;for(const jn of Ct)if(jn.children&&this._hasActiveChild(jn,ot)||jn.link&&this._router.isActive(jn.link,jn.exactMatch||!1))return!0;return!1}_isChildrenOf(J,ot){const Ct=J.children;if(!Ct)return!1;if(Ct.indexOf(ot)>-1)return!0;for(const jn of Ct)if(jn.children&&this._isChildrenOf(jn,ot))return!0;return!1}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(ot,Ct){2&ot&&a.HbH(Ct.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return Ct.toggleCollapsable()}),a.DNE(2,Mt,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,nt,3,2,"div",6),a.k0s(),a.DNE(8,Rt,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ai,3,1,"div",9)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,nn,Ct.item.disabled))("matTooltip",Ct.item.tooltip||""),a.R7$(),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(Ct.isCollapsed?-1:10))},dependencies:()=>[q,T.YU,k.uc,k.oV,S.m_,S.An,Vr,vt,hi,Vt],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return q})();const fo=(q,qe,J)=>({"angor-vertical-navigation-item-active":q,"angor-vertical-navigation-item-disabled":qe,"angor-vertical-navigation-item-active-forced":J});function Jo(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Fo(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function ia(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",9),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function ao(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function po(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Ii(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Io(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function et(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function xt(q,qe){if(1&q&&a.DNE(0,ao,1,2,"angor-vertical-navigation-basic-item",10)(1,po,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Ii,1,2,"angor-vertical-navigation-divider-item",10)(3,Io,1,2,"angor-vertical-navigation-group-item",10)(4,et,1,2,"angor-vertical-navigation-spacer-item",10),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function dt(q,qe){if(1&q&&a.DNE(0,xt,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function me(q,qe){if(1&q&&(a.j41(0,"div",8),a.Z7z(1,dt,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.R7$(),a.Dyx(J.item.children)}}let Ye=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(J){"activeItemId"in J&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(J=>{this._markIfActive(J.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(J,ot){return ot.id||J}_hasActiveChild(J,ot){const Ct=J.children;if(!Ct)return!1;for(const jn of Ct){if(jn.children&&this._hasActiveChild(jn,ot))return!0;if("basic"===jn.type&&jn.link&&this._router.isActive(jn.link,jn.exactMatch||!1))return!0}return!1}_markIfActive(J){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,J)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},features:[a.OA$],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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Jo,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Fo,3,2,"div",6),a.k0s(),a.DNE(8,ia,3,2,"div",7),a.k0s()(),a.DNE(9,me,3,0,"div",8)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,fo,Ct.active,Ct.item.disabled,Ct.item.active))("matTooltip",Ct.item.tooltip||""),a.R7$(),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.vxM(Ct.skipChildren?-1:9))},dependencies:[T.YU,k.uc,k.oV,S.m_,S.An,Vr,qo,vt,hi,Vt],encapsulation:2,changeDetection:0})}}return q})();class Re{constructor(qe,J,ot,Ct){this.x=qe,this.y=J,this.w=ot,this.h=Ct}}class gt{constructor(qe,J){this.x=qe,this.y=J}}var jt=n(3022),kt=n(2147),pn=n(4819);function Sn(q){return getComputedStyle(q)}function An(q,qe){for(var J in qe){var ot=qe[J];"number"==typeof ot&&(ot+="px"),q.style[J]=ot}return q}function Fn(q){var qe=document.createElement("div");return qe.className=q,qe}var zn=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function tr(q,qe){if(!zn)throw new Error("No element matching method supported");return zn.call(q,qe)}function cr(q){q.remove?q.remove():q.parentNode&&q.parentNode.removeChild(q)}function Er(q,qe){return Array.prototype.filter.call(q.children,function(J){return tr(J,qe)})}var Cr={main:"ps",rtl:"ps__rtl",element:{thumb:function(q){return"ps__thumb-"+q},rail:function(q){return"ps__rail-"+q},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(q){return"ps--active-"+q},scrolling:function(q){return"ps--scrolling-"+q}}},gi={x:null,y:null};function ni(q,qe){var J=q.element.classList,ot=Cr.state.scrolling(qe);J.contains(ot)?clearTimeout(gi[qe]):J.add(ot)}function Mi(q,qe){gi[qe]=setTimeout(function(){return q.isAlive&&q.element.classList.remove(Cr.state.scrolling(qe))},q.settings.scrollingThreshold)}var Qr=function(qe){this.element=qe,this.handlers={}},Pr={isEmpty:{configurable:!0}};Qr.prototype.bind=function(qe,J){typeof this.handlers[qe]>"u"&&(this.handlers[qe]=[]),this.handlers[qe].push(J),this.element.addEventListener(qe,J,!1)},Qr.prototype.unbind=function(qe,J){var ot=this;this.handlers[qe]=this.handlers[qe].filter(function(Ct){return!(!J||Ct===J)||(ot.element.removeEventListener(qe,Ct,!1),!1)})},Qr.prototype.unbindAll=function(){for(var qe in this.handlers)this.unbind(qe)},Pr.isEmpty.get=function(){var q=this;return Object.keys(this.handlers).every(function(qe){return 0===q.handlers[qe].length})},Object.defineProperties(Qr.prototype,Pr);var Do=function(){this.eventElements=[]};function es(q){if("function"==typeof window.CustomEvent)return new CustomEvent(q);var qe=document.createEvent("CustomEvent");return qe.initCustomEvent(q,!1,!1,void 0),qe}function zs(q,qe,J,ot,Ct){var jn;if(void 0===ot&&(ot=!0),void 0===Ct&&(Ct=!1),"top"===qe)jn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==qe)throw new Error("A proper axis should be provided");jn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function oa(q,qe,J,ot,Ct){var jn=J[0],Pn=J[1],Gn=J[2],qn=J[3],qr=J[4],zi=J[5];void 0===ot&&(ot=!0),void 0===Ct&&(Ct=!1);var kr=q.element;q.reach[qn]=null,kr[Gn]<1&&(q.reach[qn]="start"),kr[Gn]>q[jn]-q[Pn]-1&&(q.reach[qn]="end"),qe&&(kr.dispatchEvent(es("ps-scroll-"+qn)),qe<0?kr.dispatchEvent(es("ps-scroll-"+qr)):qe>0&&kr.dispatchEvent(es("ps-scroll-"+zi)),ot&&function Rr(q,qe){ni(q,qe),Mi(q,qe)}(q,qn)),q.reach[qn]&&(qe||Ct)&&kr.dispatchEvent(es("ps-"+qn+"-reach-"+q.reach[qn]))}(q,J,jn,ot,Ct)}function Li(q){return parseInt(q,10)||0}Do.prototype.eventElement=function(qe){var J=this.eventElements.filter(function(ot){return ot.element===qe})[0];return J||(J=new Qr(qe),this.eventElements.push(J)),J},Do.prototype.bind=function(qe,J,ot){this.eventElement(qe).bind(J,ot)},Do.prototype.unbind=function(qe,J,ot){var Ct=this.eventElement(qe);Ct.unbind(J,ot),Ct.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ct),1)},Do.prototype.unbindAll=function(){this.eventElements.forEach(function(qe){return qe.unbindAll()}),this.eventElements=[]},Do.prototype.once=function(qe,J,ot){var Ct=this.eventElement(qe),jn=function(Pn){Ct.unbind(J,jn),ot(Pn)};Ct.bind(J,jn)};var Ks={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 Oo(q){var qe=q.element,J=Math.floor(qe.scrollTop),ot=qe.getBoundingClientRect();q.containerWidth=Math.floor(ot.width),q.containerHeight=Math.floor(ot.height),q.contentWidth=qe.scrollWidth,q.contentHeight=qe.scrollHeight,qe.contains(q.scrollbarXRail)||(Er(qe,Cr.element.rail("x")).forEach(function(Ct){return cr(Ct)}),qe.appendChild(q.scrollbarXRail)),qe.contains(q.scrollbarYRail)||(Er(qe,Cr.element.rail("y")).forEach(function(Ct){return cr(Ct)}),qe.appendChild(q.scrollbarYRail)),!q.settings.suppressScrollX&&q.containerWidth+q.settings.scrollXMarginOffset=q.railXWidth-q.scrollbarXWidth&&(q.scrollbarXLeft=q.railXWidth-q.scrollbarXWidth),q.scrollbarYTop>=q.railYHeight-q.scrollbarYHeight&&(q.scrollbarYTop=q.railYHeight-q.scrollbarYHeight),function No(q,qe){var J={width:qe.railXWidth},ot=Math.floor(q.scrollTop);J.left=qe.isRtl?qe.negativeScrollAdjustment+q.scrollLeft+qe.containerWidth-qe.contentWidth:q.scrollLeft,qe.isScrollbarXUsingBottom?J.bottom=qe.scrollbarXBottom-ot:J.top=qe.scrollbarXTop+ot,An(qe.scrollbarXRail,J);var Ct={top:ot,height:qe.railYHeight};qe.isScrollbarYUsingRight?Ct.right=qe.isRtl?qe.contentWidth-(qe.negativeScrollAdjustment+q.scrollLeft)-qe.scrollbarYRight-qe.scrollbarYOuterWidth-9:qe.scrollbarYRight-q.scrollLeft:Ct.left=qe.isRtl?qe.negativeScrollAdjustment+q.scrollLeft+2*qe.containerWidth-qe.contentWidth-qe.scrollbarYLeft-qe.scrollbarYOuterWidth:qe.scrollbarYLeft+q.scrollLeft,An(qe.scrollbarYRail,Ct),An(qe.scrollbarX,{left:qe.scrollbarXLeft,width:qe.scrollbarXWidth-qe.railBorderXWidth}),An(qe.scrollbarY,{top:qe.scrollbarYTop,height:qe.scrollbarYHeight-qe.railBorderYWidth})}(qe,q),q.scrollbarXActive?qe.classList.add(Cr.state.active("x")):(qe.classList.remove(Cr.state.active("x")),q.scrollbarXWidth=0,q.scrollbarXLeft=0,qe.scrollLeft=!0===q.isRtl?q.contentWidth:0),q.scrollbarYActive?qe.classList.add(Cr.state.active("y")):(qe.classList.remove(Cr.state.active("y")),q.scrollbarYHeight=0,q.scrollbarYTop=0,qe.scrollTop=0)}function Cs(q,qe){return q.settings.minScrollbarLength&&(qe=Math.max(qe,q.settings.minScrollbarLength)),q.settings.maxScrollbarLength&&(qe=Math.min(qe,q.settings.maxScrollbarLength)),qe}var Ko=null;function Go(q,qe){var J=qe[0],ot=qe[1],Ct=qe[2],jn=qe[3],Pn=qe[4],Gn=qe[5],qn=qe[6],qr=qe[7],zi=qe[8],kr=q.element,fi=null,zr=null,di=null;function Fi(Ho){Ho.touches&&Ho.touches[0]&&(Ho[Ct]=Ho.touches[0]["page"+qr.toUpperCase()]),Ko===Pn&&(kr[qn]=fi+di*(Ho[Ct]-zr),ni(q,qr),Oo(q),Ho.stopPropagation(),Ho.preventDefault())}function Ro(){Mi(q,qr),q[zi].classList.remove(Cr.state.clicking),document.removeEventListener("mousemove",Fi),document.removeEventListener("mouseup",Ro),document.removeEventListener("touchmove",Fi),document.removeEventListener("touchend",Ro),Ko=null}function jo(Ho){null===Ko&&(Ko=Pn,fi=kr[qn],Ho.touches&&(Ho[Ct]=Ho.touches[0]["page"+qr.toUpperCase()]),zr=Ho[Ct],di=(q[ot]-q[J])/(q[jn]-q[Gn]),Ho.touches?(document.addEventListener("touchmove",Fi,{passive:!1}),document.addEventListener("touchend",Ro)):(document.addEventListener("mousemove",Fi),document.addEventListener("mouseup",Ro)),q[zi].classList.add(Cr.state.clicking)),Ho.stopPropagation(),Ho.cancelable&&Ho.preventDefault()}q[Pn].addEventListener("mousedown",jo),q[Pn].addEventListener("touchstart",jo)}var io={"click-rail":function hs(q){q.event.bind(q.scrollbarY,"mousedown",function(qe){return qe.stopPropagation()}),q.event.bind(q.scrollbarYRail,"mousedown",function(qe){var J=qe.pageY-window.pageYOffset-q.scrollbarYRail.getBoundingClientRect().top;q.element.scrollTop+=(J>q.scrollbarYTop?1:-1)*q.containerHeight,Oo(q),qe.stopPropagation()}),q.event.bind(q.scrollbarX,"mousedown",function(qe){return qe.stopPropagation()}),q.event.bind(q.scrollbarXRail,"mousedown",function(qe){var J=qe.pageX-window.pageXOffset-q.scrollbarXRail.getBoundingClientRect().left;q.element.scrollLeft+=(J>q.scrollbarXLeft?1:-1)*q.containerWidth,Oo(q),qe.stopPropagation()})},"drag-thumb":function mo(q){Go(q,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Go(q,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function Rs(q){var qe=q.element;q.event.bind(q.ownerDocument,"keydown",function(jn){if(!(jn.isDefaultPrevented&&jn.isDefaultPrevented()||jn.defaultPrevented)&&(tr(qe,":hover")||tr(q.scrollbarX,":focus")||tr(q.scrollbarY,":focus"))){var Pn=document.activeElement?document.activeElement:q.ownerDocument.activeElement;if(Pn){if("IFRAME"===Pn.tagName)Pn=Pn.contentDocument.activeElement;else for(;Pn.shadowRoot;)Pn=Pn.shadowRoot.activeElement;if(function bi(q){return tr(q,"input,[contenteditable]")||tr(q,"select,[contenteditable]")||tr(q,"textarea,[contenteditable]")||tr(q,"button,[contenteditable]")}(Pn))return}var Gn=0,qn=0;switch(jn.which){case 37:Gn=jn.metaKey?-q.contentWidth:jn.altKey?-q.containerWidth:-30;break;case 38:qn=jn.metaKey?q.contentHeight:jn.altKey?q.containerHeight:30;break;case 39:Gn=jn.metaKey?q.contentWidth:jn.altKey?q.containerWidth:30;break;case 40:qn=jn.metaKey?-q.contentHeight:jn.altKey?-q.containerHeight:-30;break;case 32:qn=jn.shiftKey?q.containerHeight:-q.containerHeight;break;case 33:qn=q.containerHeight;break;case 34:qn=-q.containerHeight;break;case 36:qn=q.contentHeight;break;case 35:qn=-q.contentHeight;break;default:return}q.settings.suppressScrollX&&0!==Gn||q.settings.suppressScrollY&&0!==qn||(qe.scrollTop-=qn,qe.scrollLeft+=Gn,Oo(q),function Ct(jn,Pn){var Gn=Math.floor(qe.scrollTop);if(0===jn){if(!q.scrollbarYActive)return!1;if(0===Gn&&Pn>0||Gn>=q.contentHeight-q.containerHeight&&Pn<0)return!q.settings.wheelPropagation}var qn=qe.scrollLeft;if(0===Pn){if(!q.scrollbarXActive)return!1;if(0===qn&&jn<0||qn>=q.contentWidth-q.containerWidth&&jn>0)return!q.settings.wheelPropagation}return!0}(Gn,qn)&&jn.preventDefault())}})},wheel:function Xr(q){var qe=q.element;function jn(Pn){var Gn=function ot(Pn){var Gn=Pn.deltaX,qn=-1*Pn.deltaY;return(typeof Gn>"u"||typeof qn>"u")&&(Gn=-1*Pn.wheelDeltaX/6,qn=Pn.wheelDeltaY/6),Pn.deltaMode&&1===Pn.deltaMode&&(Gn*=10,qn*=10),Gn!=Gn&&qn!=qn&&(Gn=0,qn=Pn.wheelDelta),Pn.shiftKey?[-qn,-Gn]:[Gn,qn]}(Pn),qn=Gn[0],qr=Gn[1];if(!function Ct(Pn,Gn,qn){if(!Ks.isWebKit&&qe.querySelector("select:focus"))return!0;if(!qe.contains(Pn))return!1;for(var qr=Pn;qr&&qr!==qe;){if(qr.classList.contains(Cr.element.consuming))return!0;var zi=Sn(qr);if(qn&&zi.overflowY.match(/(scroll|auto)/)){var kr=qr.scrollHeight-qr.clientHeight;if(kr>0&&(qr.scrollTop>0&&qn<0||qr.scrollTop0))return!0}if(Gn&&zi.overflowX.match(/(scroll|auto)/)){var fi=qr.scrollWidth-qr.clientWidth;if(fi>0&&(qr.scrollLeft>0&&Gn<0||qr.scrollLeft0))return!0}qr=qr.parentNode}return!1}(Pn.target,qn,qr)){var zi=!1;q.settings.useBothWheelAxes?q.scrollbarYActive&&!q.scrollbarXActive?(qr?qe.scrollTop-=qr*q.settings.wheelSpeed:qe.scrollTop+=qn*q.settings.wheelSpeed,zi=!0):q.scrollbarXActive&&!q.scrollbarYActive&&(qn?qe.scrollLeft+=qn*q.settings.wheelSpeed:qe.scrollLeft-=qr*q.settings.wheelSpeed,zi=!0):(qe.scrollTop-=qr*q.settings.wheelSpeed,qe.scrollLeft+=qn*q.settings.wheelSpeed),Oo(q),zi=zi||function J(Pn,Gn){var qn=Math.floor(qe.scrollTop),qr=0===qe.scrollTop,zi=qn+qe.offsetHeight===qe.scrollHeight,kr=0===qe.scrollLeft,fi=qe.scrollLeft+qe.offsetWidth===qe.scrollWidth;return!(Math.abs(Gn)>Math.abs(Pn)?qr||zi:kr||fi)||!q.settings.wheelPropagation}(qn,qr),zi&&!Pn.ctrlKey&&(Pn.stopPropagation(),Pn.preventDefault())}}typeof window.onwheel<"u"?q.event.bind(qe,"wheel",jn):typeof window.onmousewheel<"u"&&q.event.bind(qe,"mousewheel",jn)},touch:function Ds(q){if(Ks.supportsTouch||Ks.supportsIePointer){var qe=q.element,J={startOffset:{},startTime:0,speed:{},easingLoop:null};Ks.supportsTouch?(q.event.bind(qe,"touchstart",Gn),q.event.bind(qe,"touchmove",qr),q.event.bind(qe,"touchend",zi)):Ks.supportsIePointer&&(window.PointerEvent?(q.event.bind(qe,"pointerdown",Gn),q.event.bind(qe,"pointermove",qr),q.event.bind(qe,"pointerup",zi)):window.MSPointerEvent&&(q.event.bind(qe,"MSPointerDown",Gn),q.event.bind(qe,"MSPointerMove",qr),q.event.bind(qe,"MSPointerUp",zi)))}function Ct(kr,fi){qe.scrollTop-=fi,qe.scrollLeft-=kr,Oo(q)}function jn(kr){return kr.targetTouches?kr.targetTouches[0]:kr}function Pn(kr){return!(kr.target===q.scrollbarX||kr.target===q.scrollbarY||kr.pointerType&&"pen"===kr.pointerType&&0===kr.buttons||!(kr.targetTouches&&1===kr.targetTouches.length||kr.pointerType&&"mouse"!==kr.pointerType&&kr.pointerType!==kr.MSPOINTER_TYPE_MOUSE))}function Gn(kr){if(Pn(kr)){var fi=jn(kr);J.startOffset.pageX=fi.pageX,J.startOffset.pageY=fi.pageY,J.startTime=(new Date).getTime(),null!==J.easingLoop&&clearInterval(J.easingLoop)}}function qr(kr){if(Pn(kr)){var fi=jn(kr),zr={pageX:fi.pageX,pageY:fi.pageY},di=zr.pageX-J.startOffset.pageX,Fi=zr.pageY-J.startOffset.pageY;if(function qn(kr,fi,zr){if(!qe.contains(kr))return!1;for(var di=kr;di&&di!==qe;){if(di.classList.contains(Cr.element.consuming))return!0;var Fi=Sn(di);if(zr&&Fi.overflowY.match(/(scroll|auto)/)){var Ro=di.scrollHeight-di.clientHeight;if(Ro>0&&(di.scrollTop>0&&zr<0||di.scrollTop0))return!0}if(fi&&Fi.overflowX.match(/(scroll|auto)/)){var jo=di.scrollWidth-di.clientWidth;if(jo>0&&(di.scrollLeft>0&&fi<0||di.scrollLeft0))return!0}di=di.parentNode}return!1}(kr.target,di,Fi))return;Ct(di,Fi),J.startOffset=zr;var Ro=(new Date).getTime(),jo=Ro-J.startTime;jo>0&&(J.speed.x=di/jo,J.speed.y=Fi/jo,J.startTime=Ro),function ot(kr,fi){var zr=Math.floor(qe.scrollTop),di=qe.scrollLeft,Fi=Math.abs(kr),Ro=Math.abs(fi);if(Ro>Fi){if(fi<0&&zr===q.contentHeight-q.containerHeight||fi>0&&0===zr)return 0===window.scrollY&&fi>0&&Ks.isChrome}else if(Fi>Ro&&(kr<0&&di===q.contentWidth-q.containerWidth||kr>0&&0===di))return!0;return!0}(di,Fi)&&kr.cancelable&&kr.preventDefault()}}function zi(){q.settings.swipeEasing&&(clearInterval(J.easingLoop),J.easingLoop=setInterval(function(){q.isInitialized?clearInterval(J.easingLoop):J.speed.x||J.speed.y?Math.abs(J.speed.x)<.01&&Math.abs(J.speed.y)<.01?clearInterval(J.easingLoop):(Ct(30*J.speed.x,30*J.speed.y),J.speed.x*=.8,J.speed.y*=.8):clearInterval(J.easingLoop)},10))}}},fs=function(qe,J){var ot=this;if(void 0===J&&(J={}),"string"==typeof qe&&(qe=document.querySelector(qe)),!qe||!qe.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ct in this.element=qe,qe.classList.add(Cr.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},J)this.settings[Ct]=J[Ct];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var zi,qr,jn=function(){return qe.classList.add(Cr.state.focus)},Pn=function(){return qe.classList.remove(Cr.state.focus)};this.isRtl="rtl"===Sn(qe).direction,!0===this.isRtl&&qe.classList.add(Cr.rtl),this.isNegativeScroll=(qr=qe.scrollLeft,qe.scrollLeft=-1,zi=qe.scrollLeft<0,qe.scrollLeft=qr,zi),this.negativeScrollAdjustment=this.isNegativeScroll?qe.scrollWidth-qe.clientWidth:0,this.event=new Do,this.ownerDocument=qe.ownerDocument||document,this.scrollbarXRail=Fn(Cr.element.rail("x")),qe.appendChild(this.scrollbarXRail),this.scrollbarX=Fn(Cr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",jn),this.event.bind(this.scrollbarX,"blur",Pn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Gn=Sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Gn.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Li(Gn.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Li(Gn.borderLeftWidth)+Li(Gn.borderRightWidth),An(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Li(Gn.marginLeft)+Li(Gn.marginRight),An(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Fn(Cr.element.rail("y")),qe.appendChild(this.scrollbarYRail),this.scrollbarY=Fn(Cr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",jn),this.event.bind(this.scrollbarY,"blur",Pn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var qn=Sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(qn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Li(qn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function sa(q){var qe=Sn(q);return Li(qe.width)+Li(qe.paddingLeft)+Li(qe.paddingRight)+Li(qe.borderLeftWidth)+Li(qe.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Li(qn.borderTopWidth)+Li(qn.borderBottomWidth),An(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Li(qn.marginTop)+Li(qn.marginBottom),An(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:qe.scrollLeft<=0?"start":qe.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:qe.scrollTop<=0?"start":qe.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(qr){return io[qr](ot)}),this.lastScrollTop=Math.floor(qe.scrollTop),this.lastScrollLeft=qe.scrollLeft,this.event.bind(this.element,"scroll",function(qr){return ot.onScroll(qr)}),Oo(this)};fs.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,An(this.scrollbarXRail,{display:"block"}),An(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Li(Sn(this.scrollbarXRail).marginLeft)+Li(Sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Li(Sn(this.scrollbarYRail).marginTop)+Li(Sn(this.scrollbarYRail).marginBottom),An(this.scrollbarXRail,{display:"none"}),An(this.scrollbarYRail,{display:"none"}),Oo(this),zs(this,"top",0,!1,!0),zs(this,"left",0,!1,!0),An(this.scrollbarXRail,{display:""}),An(this.scrollbarYRail,{display:""}))},fs.prototype.onScroll=function(qe){this.isAlive&&(Oo(this),zs(this,"top",this.element.scrollTop-this.lastScrollTop),zs(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},fs.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),cr(this.scrollbarX),cr(this.scrollbarY),cr(this.scrollbarXRail),cr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},fs.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(qe){return!qe.match(/^ps([-_].+|)$/)}).join(" ")};const Xo=fs;var Ya=n(909),_o=n(8627);let Ao=(()=>{class q{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(kt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(J){"angorScrollbar"in J&&(this.angorScrollbar=(0,jt.he)(J.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in J&&(this._options=(0,pn.A)({},this._options,J.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Ya.R)(window,"resize").pipe((0,X.Q)(this._unsubscribeAll),(0,_o.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(J="scroll"){return new Re(this._elementRef.nativeElement[`${J}Left`],this._elementRef.nativeElement[`${J}Top`],this._elementRef.nativeElement[`${J}Width`],this._elementRef.nativeElement[`${J}Height`])}position(J=!1){return!J&&this._ps?new gt(this._ps.reach.x||0,this._ps.reach.y||0):new gt(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(J,ot,Ct){null==ot&&null==Ct?this.animateScrolling("scrollTop",J,Ct):(null!=J&&this.scrollToX(J,Ct),null!=ot&&this.scrollToY(ot,Ct))}scrollToX(J,ot){this.animateScrolling("scrollLeft",J,ot)}scrollToY(J,ot){this.animateScrolling("scrollTop",J,ot)}scrollToTop(J=0,ot){this.animateScrolling("scrollTop",J,ot)}scrollToBottom(J=0,ot){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-J,ot)}scrollToLeft(J=0,ot){this.animateScrolling("scrollLeft",J,ot)}scrollToRight(J=0,ot){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-J,ot)}scrollToElement(J,ot=0,Ct=!1,jn){const Pn=this._elementRef.nativeElement.querySelector(J);if(!Pn)return;const Gn=Pn.getBoundingClientRect(),qn=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(Gn.left,qn.left,"scrollLeft",ot,Ct,jn),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(Gn.top,qn.top,"scrollTop",ot,Ct,jn)}animateScrolling(J,ot,Ct){this._animation&&window.cancelAnimationFrame(this._animation),!Ct||typeof window>"u"?this._elementRef.nativeElement[J]=ot:ot!==this._elementRef.nativeElement[J]&&this._smoothScroll(J,ot,Ct)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new Xo(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(J,ot,Ct,jn,Pn,Gn){Pn&&J<=ot-Math.abs(jn)||this.animateScrolling(Ct,J-ot+this._elementRef.nativeElement[Ct]+jn,Gn)}_smoothScroll(J,ot,Ct){let jn=0,Pn=this._elementRef.nativeElement[J];const Gn=(Pn-ot)/2;let qn=performance.now();const qr=zi=>{jn+=Math.PI/(Ct/(zi-qn));const kr=Math.round(ot+Gn+Gn*Math.cos(jn));this._elementRef.nativeElement[J]===Pn&&(jn>=Math.PI?this.animateScrolling(J,ot,0):(this._elementRef.nativeElement[J]=kr,Pn=this._elementRef.nativeElement[J],qn=zi,this._animation=window.requestAnimationFrame(qr)))};window.requestAnimationFrame(qr)}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275dir=a.FsC({type:q,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],features:[a.OA$]})}}return q})();var ur=n(1204),As=n(9666),Gs=n(7509),_s=n(8136);const aa=["navigationContent"],ls=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Vi=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],sl=q=>({wheelPropagation:q,suppressScrollX:!0}),la=()=>({wheelPropagation:!1,suppressScrollX:!0});function Ss(q,qe){if(1&q){const J=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG(2).$implicit,jn=a.XpG();return a.Njj(jn.toggleAside(Ct))}),a.k0s()}if(2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("activeItemId",ot.activeAsideItemId)("autoCollapse",ot.autoCollapse)("skipChildren",!0)}}function Ts(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Ns(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function So(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Bo(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function lo(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function ps(q,qe){if(1&q&&a.DNE(0,Ss,1,5,"angor-vertical-navigation-aside-item",7)(1,Ts,1,2,"angor-vertical-navigation-basic-item",8)(2,Ns,1,3,"angor-vertical-navigation-collapsable-item",9)(3,So,1,2,"angor-vertical-navigation-divider-item",8)(4,Bo,1,3,"angor-vertical-navigation-group-item",9)(5,lo,1,2,"angor-vertical-navigation-spacer-item",8),2&q){const J=a.XpG().$implicit;a.vxM("aside"===J.type?0:-1),a.R7$(),a.vxM("basic"===J.type?1:-1),a.R7$(),a.vxM("collapsable"===J.type?2:-1),a.R7$(),a.vxM("divider"===J.type?3:-1),a.R7$(),a.vxM("group"===J.type?4:-1),a.R7$(),a.vxM("spacer"===J.type?5:-1)}}function Da(q,qe){if(1&q&&a.DNE(0,ps,6,6),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function Ms(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Us(q,qe){if(1&q&&a.DNE(0,Ms,1,3,"angor-vertical-navigation-aside-item",9),2&q){const J=a.XpG().$implicit,ot=a.XpG(2);a.vxM("aside"===J.type&&J.id===ot.activeAsideItemId?0:-1)}}function ca(q,qe){if(1&q&&a.DNE(0,Us,1,1),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function Qa(q,qe){if(1&q&&(a.j41(0,"div",6),a.Z7z(1,ca,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,la))("@fadeInLeft","left"===J.position)("@fadeInRight","right"===J.position)("@fadeOutLeft","left"===J.position)("@fadeOutRight","right"===J.position),a.R7$(),a.Dyx(J.navigation)}}let Aa=(()=>{class q{constructor(){this._animationBuilder=(0,a.WQX)(ur.S6),this._changeDetectorRef=(0,a.WQX)(a.gRc),this._document=(0,a.WQX)(T.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(R.Ix),this._scrollStrategyOptions=(0,a.WQX)(As.Tv),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.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 a.bkB,this.modeChanged=new a.bkB,this.openedChanged=new a.bkB,this.positionChanged=new a.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new w.m(1),this.onCollapsableItemExpanded=new w.m(1),this.onRefreshed=new w.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new C.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(J){this._angorScrollbarDirectives=J,0!==J.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,Gs.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,X.Q)(this._unsubscribeAll),(0,_s.c)(250)).subscribe(()=>{J.forEach(ot=>{ot.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(J){if("appearance"in J&&this.appearanceChanged.next(J.appearance.currentValue),"inner"in J&&(this.inner=(0,jt.he)(J.inner.currentValue)),"mode"in J){const ot=J.mode.currentValue,Ct=J.mode.previousValue;this._disableAnimations(),"over"===Ct&&"side"===ot&&this._hideOverlay(),"side"===Ct&&"over"===ot&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(ot),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in J&&this._changeDetectorRef.markForCheck(),"opened"in J&&(this.opened=(0,jt.he)(J.opened.currentValue),this._toggleOpened(this.opened)),"position"in J&&this.positionChanged.next(J.position.currentValue),"transparentOverlay"in J&&(this.transparentOverlay=(0,jt.he)(J.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(J=>{J.forEach(ot=>{const Ct=ot.target;if("class"===ot.attributeName)if(Ct.classList.contains("cdk-global-scrollblock")){const jn=parseInt(Ct.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(jn)}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(J=>{J.isEnabled()&&J.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const J=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");J&&J.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(J){J.disabled||!J.id||(this.activeAsideItemId=J.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(J){this.activeAsideItemId===J.id?this.closeAside():this.openAside(J)}trackByFn(J,ot){return ot.id||J}_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,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.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,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.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(J){this.opened=J,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(J)}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation"]],viewQuery:function(ot,Ct){if(1&ot&&(a.GBs(aa,5),a.GBs(Ao,5)),2&ot){let jn;a.mGM(jn=a.lsd())&&(Ct._navigationContentEl=jn.first),a.mGM(jn=a.lsd())&&(Ct.angorScrollbarDirectives=jn)}},hostVars:4,hostBindings:function(ot,Ct){1&ot&&a.bIt("mouseenter",function(){return Ct._onMouseenter()})("mouseleave",function(){return Ct._onMouseleave()}),2&ot&&(a.Aen(Ct.styleList),a.HbH(Ct.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"],features:[a.OA$],ngContentSelectors:Vi,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(ot,Ct){1&ot&&(a.NAR(ls),a.j41(0,"div",1)(1,"div",2),a.SdG(2),a.k0s(),a.j41(3,"div",3,0)(5,"div",4),a.SdG(6,1),a.k0s(),a.Z7z(7,Da,1,1,null,null,Ct.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Qa,3,6,"div",6)),2&ot&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,sl,Ct.inner)),a.R7$(4),a.Dyx(Ct.navigation),a.R7$(4),a.vxM(Ct.activeAsideItemId?11:-1))},dependencies:[Ao,Ye,Vr,qo,vt,hi,Vt],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, 1));--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, 1));--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, 1));--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, 1));--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, 1));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, 1))}: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:i.F},changeDetection:0})}}return q})()},7891:(o,s,n)=>{"use strict";n.d(s,{t:()=>a});const a=new(n(3107).nKC)("ANGOR_APP_CONFIG")},1109:(o,s,n)=>{"use strict";n.d(s,{P:()=>w});var i=n(7891),a=n(3107),c=n(4819),y=n(1217);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const M=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(M)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(M){return new(M||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},7153:(o,s,n)=>{"use strict";n.d(s,{m:()=>de});var i=n(4460),a=n(3107),c=n(9471),y=n(7544),w=n(3904);const C=(De,Ee,Le,Ae,we,le,ae,xe)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":De,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":Ee,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Le,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Ae,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":we,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":le,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":ae,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":xe});function T(De,Ee){1&De&&(a.j41(0,"div",1)(1,"button",6),a.nrm(2,"mat-icon",7),a.k0s()()),2&De&&(a.R7$(),a.Y8G("matDialogClose",void 0),a.R7$(),a.Y8G("svgIcon","heroicons_outline:x-mark"))}function S(De,Ee){if(1&De&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&De){const Le=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Le.data.icon.color,"accent"===Le.data.icon.color,"warn"===Le.data.icon.color,"basic"===Le.data.icon.color,"info"===Le.data.icon.color,"success"===Le.data.icon.color,"warning"===Le.data.icon.color,"error"===Le.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Le.data.icon.name)}}function M(De,Ee){if(1&De&&a.nrm(0,"div",9),2&De){const Le=a.XpG(2);a.Y8G("innerHTML",Le.data.title,a.npT)}}function k(De,Ee){if(1&De&&a.nrm(0,"div",10),2&De){const Le=a.XpG(2);a.Y8G("innerHTML",Le.data.message,a.npT)}}function R(De,Ee){if(1&De&&(a.j41(0,"div",4),a.DNE(1,M,1,1,"div",9)(2,k,1,1,"div",10),a.k0s()),2&De){const Le=a.XpG();a.R7$(),a.vxM(Le.data.title?1:-1),a.R7$(),a.vxM(Le.data.message?2:-1)}}function X(De,Ee){if(1&De&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&De){const Le=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Le.data.actions.cancel.label," ")}}function Z(De,Ee){if(1&De&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&De){const Le=a.XpG(2);a.Y8G("color",Le.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Le.data.actions.confirm.label," ")}}function ne(De,Ee){if(1&De&&(a.j41(0,"div",5),a.DNE(1,X,2,2,"button",11)(2,Z,2,3,"button",12),a.k0s()),2&De){const Le=a.XpG();a.R7$(),a.vxM(Le.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Le.data.actions.confirm.show?2:-1)}}let _e=(()=>{class De{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Ae){return new(Ae||De)}}static{this.\u0275cmp=a.VBU({type:De,selectors:[["angor-confirmation-dialog"]],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(Ae,we){1&Ae&&(a.j41(0,"div",0),a.DNE(1,T,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,R,3,2,"div",4),a.k0s(),a.DNE(5,ne,3,2,"div",5),a.k0s()),2&Ae&&(a.R7$(),a.vxM(we.data.dismissible?1:-1),a.R7$(2),a.vxM(we.data.icon.show?3:-1),a.R7$(),a.vxM(we.data.title||we.data.message?4:-1),a.R7$(),a.vxM(we.data.actions.confirm.show||we.data.actions.cancel.show?5:-1))},dependencies:[c.Hl,c.$z,c.iY,y.hM,y.tx,w.m_,w.An,i.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 De})();var pe=n(4819);let de=(()=>{class De{constructor(){this._matDialog=(0,a.WQX)(y.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(Le={}){const Ae=(0,pe.A)({},this._defaultConfig,Le);return this._matDialog.open(_e,{autoFocus:!1,disableClose:!Ae.dismissible,data:Ae,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Ae){return new(Ae||De)}}static{this.\u0275prov=a.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})()},2012:(o,s,n)=>{"use strict";n.d(s,{l:()=>S});var i=n(1109),a=n(6520),c=n(3107),y=n(6143),w=n(7838),C=n(7947),T=n(2867);let S=(()=>{class M{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(R=>(0,y.A)(Object.entries(R.screens).map(([X,Z])=>[X,`(min-width: ${Z})`]))),(0,T.n)(R=>this._breakpointObserver.observe(Object.values(R)).pipe((0,C.T)(X=>{const Z=[],ne={},_e=Object.entries(X.breakpoints).filter(([pe,de])=>de)??[];for(const[pe]of _e){const de=Object.entries(R).find(([De,Ee])=>Ee===pe)[0];de&&(Z.push(de),ne[de]=pe)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:ne})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(R){return this._breakpointObserver.observe(R)}static{this.\u0275fac=function(X){return new(X||M)}}static{this.\u0275prov=c.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},3939:(o,s,n)=>{"use strict";n.d(s,{Q:()=>a});var i=n(3107);let a=(()=>{class c{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 T="";for(let S=0;S<10;S++)T+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return T}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},4482:(o,s,n)=>{"use strict";n.d(s,{v:()=>y});var i=n(3024),a=n(8447),c=n(3107);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(T,S)=>{this.handleAuthSuccess(T,S)}})}setupEventListeners(){document.addEventListener("nlAuth",this.handleNlAuthEvent.bind(this)),document.addEventListener("nlLogout",this.handleNlLogoutEvent.bind(this)),document.addEventListener("nlDarkMode",this.handleNlDarkModeEvent.bind(this)),document.addEventListener("nlLaunch",this.handleNlLaunchEvent.bind(this))}handleNlLogoutEvent(){console.log("Logout event detected"),this.handleLogout()}handleNlAuthEvent(T){const{type:S,pubkey:M,options:k}=T.detail;switch(S){case"login":console.log("User logged in:",M),this.handleAuthSuccess(M,k);break;case"signup":console.log("User signed up:",M),this.handleSignupSuccess(M,k);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",M),this.handleAccountSwitch(M,k);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==M&&(console.log("Account switched to:",M),this.handleAccountSwitch(M,k)),this.previousPublicKey=M}handleAuthSuccess(T,S){console.log("Authenticated successfully with public key:",T),this.publicKeySubject.next(T)}handleSignupSuccess(T,S){console.log("Signup successful with public key:",T),this.publicKeySubject.next(T)}handleAccountSwitch(T,S){console.log("Account switched to:",T),this.publicKeySubject.next(T),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(T){const S=T.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(T){const S=T.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(T){(0,i.ql)(T)}updateDarkMode(T){document.body.classList.toggle("dark-mode",T),console.log("Dark mode is now "+(T?"enabled":"disabled"))}getPublicKeyObservable(){return this.publicKeySubject.asObservable()}launchWelcomeScreen(){(0,i.ql)("welcome")}launchSignupScreen(){(0,i.ql)("welcome-signup")}launchLoginScreen(){(0,i.ql)("welcome-login")}switchAccount(){document.dispatchEvent(new CustomEvent("nlLaunch",{detail:"switch-account"}))}logout(){document.dispatchEvent(new Event("nlLogout"))}toggleDarkMode(T){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:T}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},3125:(o,s,n)=>{"use strict";n.d(s,{b:()=>T});var i=n(3014),a=n(3107),c=n(5492),y=n(1217),w=n(8447),C=n(4460);let T=(()=>{class S{constructor(k,R){this.document=k,this.platformId=R,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const k=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return k.length>0?k.map(X=>({...X,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://nos.lol",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 k=this.relays.map(R=>({url:R.url,accessType:R.accessType,connected:R.connected,retries:R.retries,retryTimeout:R.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(k)),this.relaysSubject.next(this.relays)}connectToRelay(k){k.connected||(k.ws=new WebSocket(k.url),k.ws.onopen=()=>{k.connected=!0,k.retries=0,clearTimeout(k.retryTimeout),this.saveRelaysToLocalStorage()},k.ws.onerror=()=>this.handleRelayError(k),k.ws.onclose=()=>{k.connected=!1,this.handleRelayError(k)},k.ws.onmessage=({data:R})=>{try{const X=JSON.parse("string"==typeof R?R:R.toString("utf-8"));this.eventSubject.next(X)}catch(X){console.warn("Error parsing WebSocket message:",X)}})}handleRelayError(k){k.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${k.url}. No further attempts will be made.`):(k.retries++,k.retryTimeout=setTimeout(()=>this.connectToRelay(k),this.retryDelay*k.retries))}connectToRelays(){this.relays.forEach(k=>!k.connected&&this.connectToRelay(k))}ensureConnectedRelays(){var k=this;return(0,i.A)(function*(){return k.connectToRelays(),new Promise(R=>{const X=setInterval(()=>{k.getConnectedRelays().length>0&&(clearInterval(X),R())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(k=>k.ws?.close())}))}getConnectedRelays(){return this.relays.filter(k=>k.connected).map(k=>k.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(k){var R=this;return(0,i.A)(function*(){const X=R.relays.filter(Z=>["write","read-write"].includes(Z.accessType)&&Z.connected);if(!X.length)throw new Error("No connected write relays available");try{return yield Promise.any(X.map(Z=>R.pool.publish([Z.url],k))),R.eventSubject.next(k),k}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(k,R="read-write"){if(!this.relays.some(X=>X.url===k)){const X={url:k,connected:!1,retries:0,retryTimeout:null,accessType:R};this.relays.push(X),this.connectToRelay(X),this.saveRelaysToLocalStorage()}}removeRelay(k){const R=this.relays.find(X=>X.url===k);R&&(R.ws?.close(),clearTimeout(R.retryTimeout)),this.relays=this.relays.filter(X=>X.url!==k),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const k=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(R=>{k.includes(R.url)||(R.ws?.close(),clearTimeout(R.retryTimeout))}),this.relays=this.relays.filter(R=>k.includes(R.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(k,R){const X=this.relays.find(Z=>Z.url===k);X&&(X.accessType=R,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(k=>k.ws?.close())}static{this.\u0275fac=function(R){return new(R||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},8078:(o,s,n)=>{"use strict";n.d(s,{A:()=>yd});var i={};n.r(i),n.d(i,{OG:()=>Xs,My:()=>da,Ph:()=>oo,lX:()=>$n,Id:()=>so,fg:()=>vo,qj:()=>Qi,aT:()=>Wo,lq:()=>Tr,z:()=>Oi,Q5:()=>Vs});var a=n(3014),c=n(8378),y=n(2226),w=n(871),C=n(5492);function M(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function X(O,...P){if(!function R(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}function Z(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");M(O.outputLen),M(O.blockLen)}function ne(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")}n(4704),"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");const Ae=O=>new DataView(O.buffer,O.byteOffset,O.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function En(O){if("string"==typeof O&&(O=function fn(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!function Le(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("expected Uint8Array, got "+typeof O);return O}class wn{clone(){return this._cloneInto()}}const Je={}.toString;function ze(O){const P=oe=>O().update(En(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}class Ze extends wn{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,Z(P);const oe=En($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return ne(this),this.iHash.update(P),this}digestInto(P){ne(this),X(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const it=(O,P,$)=>new Ze(O,P).update($).digest();it.create=(O,P)=>new Ze(O,P);class Wt extends wn{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=Ae(this.buffer)}update(P){ne(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=En(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=Ae(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){ne(this),function _e(O,P){X(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Ae(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qt>rt&Zt)}:{h:0|Number(O>>rt&Zt),l:0|Number(O&Zt)}}const Dn_split=function en(O,P=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ce=0;CeO>>>$,Dn_shrSL=(O,P,$)=>O<<32-$|P>>>$,Dn_rotrSH=(O,P,$)=>O>>>$|P<<32-$,Dn_rotrSL=(O,P,$)=>O<<32-$|P>>>$,Dn_rotrBH=(O,P,$)=>O<<64-$|P>>>$-32,Dn_rotrBL=(O,P,$)=>O>>>$-32|P<<64-$,Dn_add=function ft(O,P,$,oe){const Ce=(P>>>0)+(oe>>>0);return{h:O+$+(Ce/2**32|0)|0,l:0|Ce}},Dn_add3L=(O,P,$)=>(O>>>0)+(P>>>0)+($>>>0),Dn_add3H=(O,P,$,oe)=>P+$+oe+(O/2**32|0)|0,Dn_add4L=(O,P,$,oe)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0),Dn_add4H=(O,P,$,oe,Ce)=>P+$+oe+Ce+(O/2**32|0)|0,Dn_add5H=(O,P,$,oe,Ce,$e)=>P+$+oe+Ce+$e+(O/2**32|0)|0,Dn_add5L=(O,P,$,oe,Ce)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0)+(Ce>>>0),[Hr,Mr]=Dn_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(O=>BigInt(O))),Vr=new Uint32Array(80),vt=new Uint32Array(80);class Vt extends Wt{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:P,Al:$,Bh:oe,Bl:Ce,Ch:$e,Cl:pt,Dh:It,Dl:zt,Eh:un,El:kn,Fh:qt,Fl:Yn,Gh:Xn,Gl:ir,Hh:Rn,Hl:Kn}=this;return[P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn]}set(P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn){this.Ah=0|P,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ce,this.Ch=0|$e,this.Cl=0|pt,this.Dh=0|It,this.Dl=0|zt,this.Eh=0|un,this.El=0|kn,this.Fh=0|qt,this.Fl=0|Yn,this.Gh=0|Xn,this.Gl=0|ir,this.Hh=0|Rn,this.Hl=0|Kn}process(P,$){for(let Hn=0;Hn<16;Hn++,$+=4)Vr[Hn]=P.getUint32($),vt[Hn]=P.getUint32($+=4);for(let Hn=16;Hn<80;Hn++){const Or=0|Vr[Hn-15],sr=0|vt[Hn-15],Dr=Dn_rotrSH(Or,sr,1)^Dn_rotrSH(Or,sr,8)^Dn_shrSH(Or,sr,7),Gr=Dn_rotrSL(Or,sr,1)^Dn_rotrSL(Or,sr,8)^Dn_shrSL(Or,sr,7),Br=0|Vr[Hn-2],ro=0|vt[Hn-2],Ji=Dn_rotrSH(Br,ro,19)^Dn_rotrBH(Br,ro,61)^Dn_shrSH(Br,ro,6),Xi=Dn_rotrSL(Br,ro,19)^Dn_rotrBL(Br,ro,61)^Dn_shrSL(Br,ro,6),bo=Dn_add4L(Gr,Xi,vt[Hn-7],vt[Hn-16]),To=Dn_add4H(bo,Dr,Ji,Vr[Hn-7],Vr[Hn-16]);Vr[Hn]=0|To,vt[Hn]=0|bo}let{Ah:oe,Al:Ce,Bh:$e,Bl:pt,Ch:It,Cl:zt,Dh:un,Dl:kn,Eh:qt,El:Yn,Fh:Xn,Fl:ir,Gh:Rn,Gl:Kn,Hh:Qn,Hl:yr}=this;for(let Hn=0;Hn<80;Hn++){const Or=Dn_rotrSH(qt,Yn,14)^Dn_rotrSH(qt,Yn,18)^Dn_rotrBH(qt,Yn,41),sr=Dn_rotrSL(qt,Yn,14)^Dn_rotrSL(qt,Yn,18)^Dn_rotrBL(qt,Yn,41),Dr=qt&Xn^~qt&Rn,Br=Dn_add5L(yr,sr,Yn&ir^~Yn&Kn,Mr[Hn],vt[Hn]),ro=Dn_add5H(Br,Qn,Or,Dr,Hr[Hn],Vr[Hn]),Ji=0|Br,Xi=Dn_rotrSH(oe,Ce,28)^Dn_rotrBH(oe,Ce,34)^Dn_rotrBH(oe,Ce,39),bo=Dn_rotrSL(oe,Ce,28)^Dn_rotrBL(oe,Ce,34)^Dn_rotrBL(oe,Ce,39),To=oe&$e^oe&It^$e&It,ma=Ce&pt^Ce&zt^pt&zt;Qn=0|Rn,yr=0|Kn,Rn=0|Xn,Kn=0|ir,Xn=0|qt,ir=0|Yn,({h:qt,l:Yn}=Dn_add(0|un,0|kn,0|ro,0|Ji)),un=0|It,kn=0|zt,It=0|$e,zt=0|pt,$e=0|oe,pt=0|Ce;const vr=Dn_add3L(Ji,bo,ma);oe=Dn_add3H(vr,ro,Xi,To),Ce=0|vr}({h:oe,l:Ce}=Dn_add(0|this.Ah,0|this.Al,0|oe,0|Ce)),({h:$e,l:pt}=Dn_add(0|this.Bh,0|this.Bl,0|$e,0|pt)),({h:It,l:zt}=Dn_add(0|this.Ch,0|this.Cl,0|It,0|zt)),({h:un,l:kn}=Dn_add(0|this.Dh,0|this.Dl,0|un,0|kn)),({h:qt,l:Yn}=Dn_add(0|this.Eh,0|this.El,0|qt,0|Yn)),({h:Xn,l:ir}=Dn_add(0|this.Fh,0|this.Fl,0|Xn,0|ir)),({h:Rn,l:Kn}=Dn_add(0|this.Gh,0|this.Gl,0|Rn,0|Kn)),({h:Qn,l:yr}=Dn_add(0|this.Hh,0|this.Hl,0|Qn,0|yr)),this.set(oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn,Qn,yr)}roundClean(){Vr.fill(0),vt.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 Dt=ze(()=>new Vt);function xr(O){if("string"!=typeof O)throw new TypeError("Invalid mnemonic type: "+typeof O);return O.normalize("NFKD")}function Co(O,P=""){return function Me(O,P,$,oe){const{c:Ce,dkLen:$e,DK:pt,PRF:It,PRFSalt:zt}=function Ot(O,P,$,oe){Z(O);const Ce=function _t(O,P){if(void 0!==P&&"[object Object]"!==Je.call(P))throw new Error("Options should be object or undefined");return Object.assign(O,P)}({dkLen:32,asyncTick:10},oe),{c:$e,dkLen:pt,asyncTick:It}=Ce;if(M($e),M(pt),M(It),$e<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const zt=En(P),un=En($),kn=new Uint8Array(pt),qt=it.create(O,zt),Yn=qt._cloneInto().update(un);return{c:$e,dkLen:pt,asyncTick:It,DK:kn,PRF:qt,PRFSalt:Yn}}(O,P,$,oe);let un;const kn=new Uint8Array(4),qt=Ae(kn),Yn=new Uint8Array(It.outputLen);for(let Xn=1,ir=0;ir<$e;Xn++,ir+=It.outputLen){const Rn=pt.subarray(ir,ir+It.outputLen);qt.setInt32(0,Xn,!1),(un=zt._cloneInto(un)).update(kn).digestInto(Yn),Rn.set(Yn.subarray(0,Rn.length));for(let Kn=1;Knxr(`mnemonic${O}`))(P),{c:2048,dkLen:64})}function Ni(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function ai(O,...P){if(!function $o(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}function fo(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")}function Ii(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}const Io=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),et=(O,P)=>O<<32-P|O>>>P;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const dt=Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0")),Ye={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Re(O){return O>=Ye._0&&O<=Ye._9?O-Ye._0:O>=Ye._A&&O<=Ye._F?O-(Ye._A-10):O>=Ye._a&&O<=Ye._f?O-(Ye._a-10):void 0}function Sn(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}function An(O){if("string"==typeof O&&(O=Sn(O)),!Ii(O))throw new Error("expected Uint8Array, got "+typeof O);return O}function Fn(...O){let P=0;for(let oe=0;oeO().update(An(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}class Mi extends zn{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,function qo(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Ni(O.outputLen),Ni(O.blockLen)}(P);const oe=An($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return fo(this),this.iHash.update(P),this}digestInto(P){fo(this),ai(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Rr=(O,P,$)=>new Mi(O,P).update($).digest();Rr.create=(O,P)=>new Mi(O,P);class Pr extends zn{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=Io(this.buffer)}update(P){fo(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=An(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=Io(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){fo(this),function Jo(O,P){ai(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Io(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtP);let oa=[es],Li=[es.map(O=>(9*O+5)%16)];for(let O=0;O<4;O++)for(let P of[oa,Li])P.push(P[O].map($=>Do[$]));const bi=[[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(O=>new Uint8Array(O)),sa=oa.map((O,P)=>O.map($=>bi[P][$])),Ks=Li.map((O,P)=>O.map($=>bi[P][$])),Oo=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Cs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),No=(O,P)=>O<>>32-P;function hs(O,P,$,oe){return 0===O?P^$^oe:1===O?P&$|~P&oe:2===O?(P|~$)^oe:3===O?P&oe|$&~oe:P^($|~oe)}const Ko=new Uint32Array(16);class mo extends Pr{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:P,h1:$,h2:oe,h3:Ce,h4:$e}=this;return[P,$,oe,Ce,$e]}set(P,$,oe,Ce,$e){this.h0=0|P,this.h1=0|$,this.h2=0|oe,this.h3=0|Ce,this.h4=0|$e}process(P,$){for(let Xn=0;Xn<16;Xn++,$+=4)Ko[Xn]=P.getUint32($,!0);let oe=0|this.h0,Ce=oe,$e=0|this.h1,pt=$e,It=0|this.h2,zt=It,un=0|this.h3,kn=un,qt=0|this.h4,Yn=qt;for(let Xn=0;Xn<5;Xn++){const ir=4-Xn,Rn=Oo[Xn],Kn=Cs[Xn],Qn=oa[Xn],yr=Li[Xn],Hn=sa[Xn],Or=Ks[Xn];for(let sr=0;sr<16;sr++){const Dr=No(oe+hs(Xn,$e,It,un)+Ko[Qn[sr]]+Rn,Hn[sr])+qt|0;oe=qt,qt=un,un=0|No(It,10),It=$e,$e=Dr}for(let sr=0;sr<16;sr++){const Dr=No(Ce+hs(ir,pt,zt,kn)+Ko[yr[sr]]+Kn,Or[sr])+Yn|0;Ce=Yn,Yn=kn,kn=0|No(zt,10),zt=pt,pt=Dr}}this.set(this.h1+It+kn|0,this.h2+un+Yn|0,this.h3+qt+Ce|0,this.h4+oe+pt|0,this.h0+$e+zt|0)}roundClean(){Ko.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const Go=Er(()=>new mo),Rs=(O,P,$)=>O&P^~O&$,Xr=(O,P,$)=>O&P^O&$^P&$,Ds=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]),go=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),io=new Uint32Array(64);class fs extends Pr{constructor(){super(64,32,8,!1),this.A=0|go[0],this.B=0|go[1],this.C=0|go[2],this.D=0|go[3],this.E=0|go[4],this.F=0|go[5],this.G=0|go[6],this.H=0|go[7]}get(){const{A:P,B:$,C:oe,D:Ce,E:$e,F:pt,G:It,H:zt}=this;return[P,$,oe,Ce,$e,pt,It,zt]}set(P,$,oe,Ce,$e,pt,It,zt){this.A=0|P,this.B=0|$,this.C=0|oe,this.D=0|Ce,this.E=0|$e,this.F=0|pt,this.G=0|It,this.H=0|zt}process(P,$){for(let qt=0;qt<16;qt++,$+=4)io[qt]=P.getUint32($,!1);for(let qt=16;qt<64;qt++){const Yn=io[qt-15],Xn=io[qt-2],ir=et(Yn,7)^et(Yn,18)^Yn>>>3,Rn=et(Xn,17)^et(Xn,19)^Xn>>>10;io[qt]=Rn+io[qt-7]+ir+io[qt-16]|0}let{A:oe,B:Ce,C:$e,D:pt,E:It,F:zt,G:un,H:kn}=this;for(let qt=0;qt<64;qt++){const Xn=kn+(et(It,6)^et(It,11)^et(It,25))+Rs(It,zt,un)+Ds[qt]+io[qt]|0,Rn=(et(oe,2)^et(oe,13)^et(oe,22))+Xr(oe,Ce,$e)|0;kn=un,un=zt,zt=It,It=pt+Xn|0,pt=$e,$e=Ce,Ce=oe,oe=Xn+Rn|0}oe=oe+this.A|0,Ce=Ce+this.B|0,$e=$e+this.C|0,pt=pt+this.D|0,It=It+this.E|0,zt=zt+this.F|0,un=un+this.G|0,kn=kn+this.H|0,this.set(oe,Ce,$e,pt,It,zt,un,kn)}roundClean(){io.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ya=Er(()=>new fs),Ao=BigInt(2**32-1),ur=BigInt(32);function As(O,P=!1){return P?{h:Number(O&Ao),l:Number(O>>ur&Ao)}:{h:0|Number(O>>ur&Ao),l:0|Number(O&Ao)}}const J_split=function Gs(O,P=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ce=0;CeO>>>$,J_shrSL=(O,P,$)=>O<<32-$|P>>>$,J_rotrSH=(O,P,$)=>O>>>$|P<<32-$,J_rotrSL=(O,P,$)=>O<<32-$|P>>>$,J_rotrBH=(O,P,$)=>O<<64-$|P>>>$-32,J_rotrBL=(O,P,$)=>O>>>$-32|P<<64-$,J_add=function Da(O,P,$,oe){const Ce=(P>>>0)+(oe>>>0);return{h:O+$+(Ce/2**32|0)|0,l:0|Ce}},J_add3L=(O,P,$)=>(O>>>0)+(P>>>0)+($>>>0),J_add3H=(O,P,$,oe)=>P+$+oe+(O/2**32|0)|0,J_add4L=(O,P,$,oe)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0),J_add4H=(O,P,$,oe,Ce)=>P+$+oe+Ce+(O/2**32|0)|0,J_add5H=(O,P,$,oe,Ce,$e)=>P+$+oe+Ce+$e+(O/2**32|0)|0,J_add5L=(O,P,$,oe,Ce)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0)+(Ce>>>0),[ot,Ct]=J_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(O=>BigInt(O))),jn=new Uint32Array(80),Pn=new Uint32Array(80);class Gn extends Pr{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:P,Al:$,Bh:oe,Bl:Ce,Ch:$e,Cl:pt,Dh:It,Dl:zt,Eh:un,El:kn,Fh:qt,Fl:Yn,Gh:Xn,Gl:ir,Hh:Rn,Hl:Kn}=this;return[P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn]}set(P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn){this.Ah=0|P,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ce,this.Ch=0|$e,this.Cl=0|pt,this.Dh=0|It,this.Dl=0|zt,this.Eh=0|un,this.El=0|kn,this.Fh=0|qt,this.Fl=0|Yn,this.Gh=0|Xn,this.Gl=0|ir,this.Hh=0|Rn,this.Hl=0|Kn}process(P,$){for(let Hn=0;Hn<16;Hn++,$+=4)jn[Hn]=P.getUint32($),Pn[Hn]=P.getUint32($+=4);for(let Hn=16;Hn<80;Hn++){const Or=0|jn[Hn-15],sr=0|Pn[Hn-15],Dr=J_rotrSH(Or,sr,1)^J_rotrSH(Or,sr,8)^J_shrSH(Or,sr,7),Gr=J_rotrSL(Or,sr,1)^J_rotrSL(Or,sr,8)^J_shrSL(Or,sr,7),Br=0|jn[Hn-2],ro=0|Pn[Hn-2],Ji=J_rotrSH(Br,ro,19)^J_rotrBH(Br,ro,61)^J_shrSH(Br,ro,6),Xi=J_rotrSL(Br,ro,19)^J_rotrBL(Br,ro,61)^J_shrSL(Br,ro,6),bo=J_add4L(Gr,Xi,Pn[Hn-7],Pn[Hn-16]),To=J_add4H(bo,Dr,Ji,jn[Hn-7],jn[Hn-16]);jn[Hn]=0|To,Pn[Hn]=0|bo}let{Ah:oe,Al:Ce,Bh:$e,Bl:pt,Ch:It,Cl:zt,Dh:un,Dl:kn,Eh:qt,El:Yn,Fh:Xn,Fl:ir,Gh:Rn,Gl:Kn,Hh:Qn,Hl:yr}=this;for(let Hn=0;Hn<80;Hn++){const Or=J_rotrSH(qt,Yn,14)^J_rotrSH(qt,Yn,18)^J_rotrBH(qt,Yn,41),sr=J_rotrSL(qt,Yn,14)^J_rotrSL(qt,Yn,18)^J_rotrBL(qt,Yn,41),Dr=qt&Xn^~qt&Rn,Br=J_add5L(yr,sr,Yn&ir^~Yn&Kn,Ct[Hn],Pn[Hn]),ro=J_add5H(Br,Qn,Or,Dr,ot[Hn],jn[Hn]),Ji=0|Br,Xi=J_rotrSH(oe,Ce,28)^J_rotrBH(oe,Ce,34)^J_rotrBH(oe,Ce,39),bo=J_rotrSL(oe,Ce,28)^J_rotrBL(oe,Ce,34)^J_rotrBL(oe,Ce,39),To=oe&$e^oe&It^$e&It,ma=Ce&pt^Ce&zt^pt&zt;Qn=0|Rn,yr=0|Kn,Rn=0|Xn,Kn=0|ir,Xn=0|qt,ir=0|Yn,({h:qt,l:Yn}=J_add(0|un,0|kn,0|ro,0|Ji)),un=0|It,kn=0|zt,It=0|$e,zt=0|pt,$e=0|oe,pt=0|Ce;const vr=J_add3L(Ji,bo,ma);oe=J_add3H(vr,ro,Xi,To),Ce=0|vr}({h:oe,l:Ce}=J_add(0|this.Ah,0|this.Al,0|oe,0|Ce)),({h:$e,l:pt}=J_add(0|this.Bh,0|this.Bl,0|$e,0|pt)),({h:It,l:zt}=J_add(0|this.Ch,0|this.Cl,0|It,0|zt)),({h:un,l:kn}=J_add(0|this.Dh,0|this.Dl,0|un,0|kn)),({h:qt,l:Yn}=J_add(0|this.Eh,0|this.El,0|qt,0|Yn)),({h:Xn,l:ir}=J_add(0|this.Fh,0|this.Fl,0|Xn,0|ir)),({h:Rn,l:Kn}=J_add(0|this.Gh,0|this.Gl,0|Rn,0|Kn)),({h:Qn,l:yr}=J_add(0|this.Hh,0|this.Hl,0|Qn,0|yr)),this.set(oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn,Qn,yr)}roundClean(){jn.fill(0),Pn.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 kr=Er(()=>new Gn);function Fi(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function jo(O,...P){if(!(O instanceof Uint8Array))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}const ce={number:Fi,bool:function Ro(O){if("boolean"!=typeof O)throw new Error(`Expected boolean, not ${O}`)},bytes:jo,hash:function Ho(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Fi(O.outputLen),Fi(O.blockLen)},exists:function Ba(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")},output:function Ua(O,P){jo(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}},ue="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Q=O=>O instanceof Uint8Array,wr=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),Jr=(O,P)=>O<<32-P|O>>>P;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function vs(O){if("string"==typeof O&&(O=function cs(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!Q(O))throw new Error("expected Uint8Array, got "+typeof O);return O}Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0"));class yl{clone(){return this._cloneInto()}}function ll(O){const P=oe=>O().update(vs(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}function Jc(O=32){if(ue&&"function"==typeof ue.getRandomValues)return ue.getRandomValues(new Uint8Array(O));throw new Error("crypto.getRandomValues must be defined")}class cl extends yl{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=wr(this.buffer)}update(P){ce.exists(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=vs(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=wr(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){ce.exists(this),ce.output(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=wr(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtO&P^~O&$,Il=(O,P,$)=>O&P^O&$^P&$,Sa=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]),ks=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),js=new Uint32Array(64);class tu extends cl{constructor(){super(64,32,8,!1),this.A=0|ks[0],this.B=0|ks[1],this.C=0|ks[2],this.D=0|ks[3],this.E=0|ks[4],this.F=0|ks[5],this.G=0|ks[6],this.H=0|ks[7]}get(){const{A:P,B:$,C:oe,D:Ce,E:$e,F:pt,G:It,H:zt}=this;return[P,$,oe,Ce,$e,pt,It,zt]}set(P,$,oe,Ce,$e,pt,It,zt){this.A=0|P,this.B=0|$,this.C=0|oe,this.D=0|Ce,this.E=0|$e,this.F=0|pt,this.G=0|It,this.H=0|zt}process(P,$){for(let qt=0;qt<16;qt++,$+=4)js[qt]=P.getUint32($,!1);for(let qt=16;qt<64;qt++){const Yn=js[qt-15],Xn=js[qt-2],ir=Jr(Yn,7)^Jr(Yn,18)^Yn>>>3,Rn=Jr(Xn,17)^Jr(Xn,19)^Xn>>>10;js[qt]=Rn+js[qt-7]+ir+js[qt-16]|0}let{A:oe,B:Ce,C:$e,D:pt,E:It,F:zt,G:un,H:kn}=this;for(let qt=0;qt<64;qt++){const Xn=kn+(Jr(It,6)^Jr(It,11)^Jr(It,25))+$s(It,zt,un)+Sa[qt]+js[qt]|0,Rn=(Jr(oe,2)^Jr(oe,13)^Jr(oe,22))+Il(oe,Ce,$e)|0;kn=un,un=zt,zt=It,It=pt+Xn|0,pt=$e,$e=Ce,Ce=oe,oe=Xn+Rn|0}oe=oe+this.A|0,Ce=Ce+this.B|0,$e=$e+this.C|0,pt=pt+this.D|0,It=It+this.E|0,zt=zt+this.F|0,un=un+this.G|0,kn=kn+this.H|0,this.set(oe,Ce,$e,pt,It,zt,un,kn)}roundClean(){js.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class ns extends tu{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 nu=ll(()=>new tu),$l=(ll(()=>new ns),BigInt(0),BigInt(1)),ul=BigInt(2),jl=O=>O instanceof Uint8Array,Vl=Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0"));function da(O){if(!jl(O))throw new Error("Uint8Array expected");let P="";for(let $=0;$oe+Ce.length,0));let $=0;return O.forEach(oe=>{if(!jl(oe))throw new Error("Uint8Array expected");P.set(oe,$),$+=oe.length}),P}const Xs=O=>(ul<new Uint8Array(O),Uo=O=>Uint8Array.from(O);function vo(O,P,$){if("number"!=typeof O||O<2)throw new Error("hashLen must be a number");if("number"!=typeof P||P<2)throw new Error("qByteLen must be a number");if("function"!=typeof $)throw new Error("hmacFn must be a function");let oe=Za(O),Ce=Za(O),$e=0;const pt=()=>{oe.fill(1),Ce.fill(0),$e=0},It=(...qt)=>$(Ce,oe,...qt),zt=(qt=Za())=>{Ce=It(Uo([0]),qt),oe=It(),0!==qt.length&&(Ce=It(Uo([1]),qt),oe=It())},un=()=>{if($e++>=1e3)throw new Error("drbg: tried 1000 values");let qt=0;const Yn=[];for(;qt{let Xn;for(pt(),zt(qt);!(Xn=Yn(un()));)zt();return pt(),Xn}}const Ci={bigint:O=>"bigint"==typeof O,function:O=>"function"==typeof O,boolean:O=>"boolean"==typeof O,string:O=>"string"==typeof O,isSafeInteger:O=>Number.isSafeInteger(O),array:O=>Array.isArray(O),field:(O,P)=>P.Fp.isValid(O),hash:O=>"function"==typeof O&&Number.isSafeInteger(O.outputLen)};function Vs(O,P,$={}){const oe=(Ce,$e,pt)=>{const It=Ci[$e];if("function"!=typeof It)throw new Error(`Invalid validator "${$e}", expected function`);const zt=O[Ce];if(!(pt&&void 0===zt||It(zt,O)))throw new Error(`Invalid param ${String(Ce)}=${zt} (${typeof zt}), expected ${$e}`)};for(const[Ce,$e]of Object.entries(P))oe(Ce,$e,!1);for(const[Ce,$e]of Object.entries($))oe(Ce,$e,!0);return O}const uo=BigInt(0),Ui=BigInt(1),U=BigInt(2),Ie=BigInt(3),te=BigInt(4),ve=BigInt(5),Et=BigInt(8);function rr(O,P){const $=O%P;return $>=uo?$:P+$}function ci(O,P,$){if($<=uo||P 0");if($===Ui)return uo;let oe=Ui;for(;P>uo;)P&Ui&&(oe=oe*O%$),O=O*O%$,P>>=Ui;return oe}function ki(O,P,$){let oe=O;for(;P-- >uo;)oe*=oe,oe%=$;return oe}function Di(O,P){if(O===uo||P<=uo)throw new Error(`invert: expected positive integers, got n=${O} mod=${P}`);let $=rr(O,P),oe=P,Ce=uo,$e=Ui,pt=Ui,It=uo;for(;$!==uo;){const un=oe/$,kn=oe%$,qt=Ce-pt*un,Yn=$e-It*un;oe=$,$=kn,Ce=pt,$e=It,pt=qt,It=Yn}if(oe!==Ui)throw new Error("invert: does not exist");return rr(Ce,P)}BigInt(9),BigInt(16);const wi=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ls(O,P){const $=void 0!==P?P:O.toString(2).length;return{nBitLength:$,nByteLength:Math.ceil($/8)}}const ka=BigInt(0),Ia=BigInt(1);function ou(O){return function bs(O){Vs(O,wi.reduce((oe,Ce)=>(oe[Ce]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(O.Fp),Vs(O,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ls(O.n,O.nBitLength),...O,p:O.Fp.ORDER})}const{Ph:Hl,aT:fc}=i,dl={Err:class extends Error{constructor(P=""){super(P)}},_parseInt(O){const{Err:P}=dl;if(O.length<2||2!==O[0])throw new P("Invalid signature integer tag");const $=O[1],oe=O.subarray(2,$+2);if(!$||oe.length!==$)throw new P("Invalid signature integer: wrong length");if(128&oe[0])throw new P("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new P("Invalid signature integer: unnecessary leading zero");return{d:Hl(oe),l:O.subarray($+2)}},toSig(O){const{Err:P}=dl,$="string"==typeof O?fc(O):O;if(!($ instanceof Uint8Array))throw new Error("ui8a expected");let oe=$.length;if(oe<2||48!=$[0])throw new P("Invalid signature tag");if($[1]!==oe-2)throw new P("Invalid signature: incorrect length");const{d:Ce,l:$e}=dl._parseInt($.subarray(2)),{d:pt,l:It}=dl._parseInt($e);if(It.length)throw new P("Invalid signature: left bytes after parsing");return{r:Ce,s:pt}},hexFromSig(O){const P=un=>8&Number.parseInt(un[0],16)?"00"+un:un,$=un=>{const kn=un.toString(16);return 1&kn.length?`0${kn}`:kn},oe=P($(O.s)),Ce=P($(O.r)),$e=oe.length/2,pt=Ce.length/2,It=$($e),zt=$(pt);return`30${$(pt+$e+4)}02${zt}${Ce}02${It}${oe}`}},yo=BigInt(0),zo=BigInt(1),su=(BigInt(2),BigInt(3));function lh(O){const P=function Lu(O){const P=ou(O);return Vs(P,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...P})}(O),{Fp:$,n:oe}=P,Ce=$.BYTES+1,$e=2*$.BYTES+1;function It(vr){return rr(vr,oe)}function zt(vr){return Di(vr,oe)}const{ProjectivePoint:un,normPrivateKeyToScalar:kn,weierstrassEquation:qt,isWithinCurveOrder:Yn}=function au(O){const P=function Nu(O){const P=ou(O);Vs(P,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:oe,a:Ce}=P;if($){if(!oe.eql(Ce,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof $||"bigint"!=typeof $.beta||"function"!=typeof $.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...P})}(O),{Fp:$}=P,oe=P.toBytes||((ir,Rn,Kn)=>{const Qn=Rn.toAffine();return so(Uint8Array.from([4]),$.toBytes(Qn.x),$.toBytes(Qn.y))}),Ce=P.fromBytes||(ir=>{const Rn=ir.subarray(1);return{x:$.fromBytes(Rn.subarray(0,$.BYTES)),y:$.fromBytes(Rn.subarray($.BYTES,2*$.BYTES))}});function $e(ir){const{a:Rn,b:Kn}=P,Qn=$.sqr(ir),yr=$.mul(Qn,ir);return $.add($.add(yr,$.mul(ir,Rn)),Kn)}if(!$.eql($.sqr(P.Gy),$e(P.Gx)))throw new Error("bad generator point: equation left != right");function pt(ir){return"bigint"==typeof ir&&yo$.eql(Hn,$.ZERO);return yr(Kn)&&yr(Qn)?qt.ZERO:new qt(Kn,Qn,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Rn){const Kn=$.invertBatch(Rn.map(Qn=>Qn.pz));return Rn.map((Qn,yr)=>Qn.toAffine(Kn[yr])).map(qt.fromAffine)}static fromHex(Rn){const Kn=qt.fromAffine(Ce(Qi("pointHex",Rn)));return Kn.assertValidity(),Kn}static fromPrivateKey(Rn){return qt.BASE.multiply(zt(Rn))}_setWindowSize(Rn){this._WINDOW_SIZE=Rn,un.delete(this)}assertValidity(){if(this.is0()){if(P.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Rn,y:Kn}=this.toAffine();if(!$.isValid(Rn)||!$.isValid(Kn))throw new Error("bad point: x or y not FE");const Qn=$.sqr(Kn),yr=$e(Rn);if(!$.eql(Qn,yr))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Rn}=this.toAffine();if($.isOdd)return!$.isOdd(Rn);throw new Error("Field doesn't support isOdd")}equals(Rn){kn(Rn);const{px:Kn,py:Qn,pz:yr}=this,{px:Hn,py:Or,pz:sr}=Rn,Dr=$.eql($.mul(Kn,sr),$.mul(Hn,yr)),Gr=$.eql($.mul(Qn,sr),$.mul(Or,yr));return Dr&&Gr}negate(){return new qt(this.px,$.neg(this.py),this.pz)}double(){const{a:Rn,b:Kn}=P,Qn=$.mul(Kn,su),{px:yr,py:Hn,pz:Or}=this;let sr=$.ZERO,Dr=$.ZERO,Gr=$.ZERO,Br=$.mul(yr,yr),ro=$.mul(Hn,Hn),Ji=$.mul(Or,Or),Xi=$.mul(yr,Hn);return Xi=$.add(Xi,Xi),Gr=$.mul(yr,Or),Gr=$.add(Gr,Gr),sr=$.mul(Rn,Gr),Dr=$.mul(Qn,Ji),Dr=$.add(sr,Dr),sr=$.sub(ro,Dr),Dr=$.add(ro,Dr),Dr=$.mul(sr,Dr),sr=$.mul(Xi,sr),Gr=$.mul(Qn,Gr),Ji=$.mul(Rn,Ji),Xi=$.sub(Br,Ji),Xi=$.mul(Rn,Xi),Xi=$.add(Xi,Gr),Gr=$.add(Br,Br),Br=$.add(Gr,Br),Br=$.add(Br,Ji),Br=$.mul(Br,Xi),Dr=$.add(Dr,Br),Ji=$.mul(Hn,Or),Ji=$.add(Ji,Ji),Br=$.mul(Ji,Xi),sr=$.sub(sr,Br),Gr=$.mul(Ji,ro),Gr=$.add(Gr,Gr),Gr=$.add(Gr,Gr),new qt(sr,Dr,Gr)}add(Rn){kn(Rn);const{px:Kn,py:Qn,pz:yr}=this,{px:Hn,py:Or,pz:sr}=Rn;let Dr=$.ZERO,Gr=$.ZERO,Br=$.ZERO;const ro=P.a,Ji=$.mul(P.b,su);let Xi=$.mul(Kn,Hn),bo=$.mul(Qn,Or),To=$.mul(yr,sr),ma=$.add(Kn,Qn),vr=$.add(Hn,Or);ma=$.mul(ma,vr),vr=$.add(Xi,bo),ma=$.sub(ma,vr),vr=$.add(Kn,yr);let jr=$.add(Hn,sr);return vr=$.mul(vr,jr),jr=$.add(Xi,To),vr=$.sub(vr,jr),jr=$.add(Qn,yr),Dr=$.add(Or,sr),jr=$.mul(jr,Dr),Dr=$.add(bo,To),jr=$.sub(jr,Dr),Br=$.mul(ro,vr),Dr=$.mul(Ji,To),Br=$.add(Dr,Br),Dr=$.sub(bo,Br),Br=$.add(bo,Br),Gr=$.mul(Dr,Br),bo=$.add(Xi,Xi),bo=$.add(bo,Xi),To=$.mul(ro,To),vr=$.mul(Ji,vr),bo=$.add(bo,To),To=$.sub(Xi,To),To=$.mul(ro,To),vr=$.add(vr,To),Xi=$.mul(bo,vr),Gr=$.add(Gr,Xi),Xi=$.mul(jr,vr),Dr=$.mul(ma,Dr),Dr=$.sub(Dr,Xi),Xi=$.mul(ma,bo),Br=$.mul(jr,Br),Br=$.add(Br,Xi),new qt(Dr,Gr,Br)}subtract(Rn){return this.add(Rn.negate())}is0(){return this.equals(qt.ZERO)}wNAF(Rn){return Xn.wNAFCached(this,un,Rn,Kn=>{const Qn=$.invertBatch(Kn.map(yr=>yr.pz));return Kn.map((yr,Hn)=>yr.toAffine(Qn[Hn])).map(qt.fromAffine)})}multiplyUnsafe(Rn){const Kn=qt.ZERO;if(Rn===yo)return Kn;if(It(Rn),Rn===zo)return this;const{endo:Qn}=P;if(!Qn)return Xn.unsafeLadder(this,Rn);let{k1neg:yr,k1:Hn,k2neg:Or,k2:sr}=Qn.splitScalar(Rn),Dr=Kn,Gr=Kn,Br=this;for(;Hn>yo||sr>yo;)Hn&zo&&(Dr=Dr.add(Br)),sr&zo&&(Gr=Gr.add(Br)),Br=Br.double(),Hn>>=zo,sr>>=zo;return yr&&(Dr=Dr.negate()),Or&&(Gr=Gr.negate()),Gr=new qt($.mul(Gr.px,Qn.beta),Gr.py,Gr.pz),Dr.add(Gr)}multiply(Rn){It(Rn);let Qn,yr,Kn=Rn;const{endo:Hn}=P;if(Hn){const{k1neg:Or,k1:sr,k2neg:Dr,k2:Gr}=Hn.splitScalar(Kn);let{p:Br,f:ro}=this.wNAF(sr),{p:Ji,f:Xi}=this.wNAF(Gr);Br=Xn.constTimeNegate(Or,Br),Ji=Xn.constTimeNegate(Dr,Ji),Ji=new qt($.mul(Ji.px,Hn.beta),Ji.py,Ji.pz),Qn=Br.add(Ji),yr=ro.add(Xi)}else{const{p:Or,f:sr}=this.wNAF(Kn);Qn=Or,yr=sr}return qt.normalizeZ([Qn,yr])[0]}multiplyAndAddUnsafe(Rn,Kn,Qn){const yr=qt.BASE,Hn=(sr,Dr)=>Dr!==yo&&Dr!==zo&&sr.equals(yr)?sr.multiply(Dr):sr.multiplyUnsafe(Dr),Or=Hn(this,Kn).add(Hn(Rn,Qn));return Or.is0()?void 0:Or}toAffine(Rn){const{px:Kn,py:Qn,pz:yr}=this,Hn=this.is0();null==Rn&&(Rn=Hn?$.ONE:$.inv(yr));const Or=$.mul(Kn,Rn),sr=$.mul(Qn,Rn),Dr=$.mul(yr,Rn);if(Hn)return{x:$.ZERO,y:$.ZERO};if(!$.eql(Dr,$.ONE))throw new Error("invZ was invalid");return{x:Or,y:sr}}isTorsionFree(){const{h:Rn,isTorsionFree:Kn}=P;if(Rn===zo)return!0;if(Kn)return Kn(qt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Rn,clearCofactor:Kn}=P;return Rn===zo?this:Kn?Kn(qt,this):this.multiplyUnsafe(P.h)}toRawBytes(Rn=!0){return this.assertValidity(),oe(qt,this,Rn)}toHex(Rn=!0){return da(this.toRawBytes(Rn))}}qt.BASE=new qt(P.Gx,P.Gy,$.ONE),qt.ZERO=new qt($.ZERO,$.ONE,$.ZERO);const Yn=P.nBitLength,Xn=function Ol(O,P){const $=(Ce,$e)=>{const pt=$e.negate();return Ce?pt:$e},oe=Ce=>({windows:Math.ceil(P/Ce)+1,windowSize:2**(Ce-1)});return{constTimeNegate:$,unsafeLadder(Ce,$e){let pt=O.ZERO,It=Ce;for(;$e>ka;)$e&Ia&&(pt=pt.add(It)),It=It.double(),$e>>=Ia;return pt},precomputeWindow(Ce,$e){const{windows:pt,windowSize:It}=oe($e),zt=[];let un=Ce,kn=un;for(let qt=0;qt>=Xn,Kn>zt&&(Kn-=Yn,pt+=Ia);const Qn=Rn,yr=Rn+Math.abs(Kn)-1,Or=Kn<0;0===Kn?kn=kn.add($(ir%2!=0,$e[Qn])):un=un.add($(Or,$e[yr]))}return{p:un,f:kn}},wNAFCached(Ce,$e,pt,It){const zt=Ce._WINDOW_SIZE||1;let un=$e.get(Ce);return un||(un=this.precomputeWindow(Ce,zt),1!==zt&&$e.set(Ce,It(un))),this.wNAF(zt,un,pt)}}}(qt,P.endo?Math.ceil(Yn/2):Yn);return{CURVE:P,ProjectivePoint:qt,normPrivateKeyToScalar:zt,weierstrassEquation:$e,isWithinCurveOrder:pt}}({...P,toBytes(vr,jr,Hi){const Yi=jr.toAffine(),Mo=$.toBytes(Yi.x),gs=so;return Hi?gs(Uint8Array.from([jr.hasEvenY()?2:3]),Mo):gs(Uint8Array.from([4]),Mo,$.toBytes(Yi.y))},fromBytes(vr){const jr=vr.length,Hi=vr[0],Yi=vr.subarray(1);if(jr!==Ce||2!==Hi&&3!==Hi){if(jr===$e&&4===Hi)return{x:$.fromBytes(Yi.subarray(0,$.BYTES)),y:$.fromBytes(Yi.subarray($.BYTES,2*$.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ce} compressed bytes or ${$e} uncompressed bytes`)}{const Mo=oo(Yi);if(!function pt(vr){return yoda(Tr(vr,P.nByteLength));function ir(vr){return vr>oe>>zo}const Kn=(vr,jr,Hi)=>oo(vr.slice(jr,Hi));class Qn{constructor(jr,Hi,Yi){this.r=jr,this.s=Hi,this.recovery=Yi,this.assertValidity()}static fromCompact(jr){const Hi=P.nByteLength;return jr=Qi("compactSignature",jr,2*Hi),new Qn(Kn(jr,0,Hi),Kn(jr,Hi,2*Hi))}static fromDER(jr){const{r:Hi,s:Yi}=dl.toSig(Qi("DER",jr));return new Qn(Hi,Yi)}assertValidity(){if(!Yn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Yn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(jr){return new Qn(this.r,this.s,jr)}recoverPublicKey(jr){const{r:Hi,s:Yi,recovery:Mo}=this,gs=Gr(Qi("msgHash",jr));if(null==Mo||![0,1,2,3].includes(Mo))throw new Error("recovery id invalid");const qs=2===Mo||3===Mo?Hi+P.n:Hi;if(qs>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const el=un.fromHex((1&Mo?"03":"02")+Xn(qs)),Cl=zt(qs),ql=It(-gs*Cl),_c=It(Yi*Cl),Jl=un.BASE.multiplyAndAddUnsafe(el,ql,_c);if(!Jl)throw new Error("point at infinify");return Jl.assertValidity(),Jl}hasHighS(){return ir(this.s)}normalizeS(){return this.hasHighS()?new Qn(this.r,It(-this.s),this.recovery):this}toDERRawBytes(){return Wo(this.toDERHex())}toDERHex(){return dl.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Wo(this.toCompactHex())}toCompactHex(){return Xn(this.r)+Xn(this.s)}}const yr={isValidPrivateKey(vr){try{return kn(vr),!0}catch{return!1}},normPrivateKeyToScalar:kn,randomPrivateKey:()=>{const jr=function iu(O,P,$=!1){const oe=(O=Qi("privateHash",O)).length,Ce=Ls(P).nByteLength+8;if(Ce<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ce}-1024 bytes of input, got ${oe}`);return rr($?$n(O):oo(O),P-Ui)+Ui}(P.randomBytes($.BYTES+8),oe);return Tr(jr,P.nByteLength)},precompute:(vr=8,jr=un.BASE)=>(jr._setWindowSize(vr),jr.multiply(BigInt(3)),jr)};function Or(vr){const jr=vr instanceof Uint8Array,Hi="string"==typeof vr,Yi=(jr||Hi)&&vr.length;return jr?Yi===Ce||Yi===$e:Hi?Yi===2*Ce||Yi===2*$e:vr instanceof un}const Dr=P.bits2int||function(vr){const jr=oo(vr),Hi=8*vr.length-P.nBitLength;return Hi>0?jr>>BigInt(Hi):jr},Gr=P.bits2int_modN||function(vr){return It(Dr(vr))},Br=Xs(P.nBitLength);function ro(vr){if("bigint"!=typeof vr)throw new Error("bigint expected");if(!(yo<=vr&&vrec in Hi))throw new Error("sign() legacy options not supported");const{hash:Yi,randomBytes:Mo}=P;let{lowS:gs,prehash:qs,extraEntropy:Ps}=Hi;null==gs&&(gs=!0),vr=Qi("msgHash",vr),qs&&(vr=Qi("prehashed msgHash",Yi(vr)));const el=Gr(vr),Cl=kn(jr),ql=[ro(Cl),ro(el)];if(null!=Ps){const ec=!0===Ps?Mo($.BYTES):Ps;ql.push(Qi("extraEntropy",ec,$.BYTES))}const _c=so(...ql),Jl=el;return{seed:_c,k2sig:function vc(ec){const Rc=Dr(ec);if(!Yn(Rc))return;const gh=zt(Rc),Js=un.BASE.multiply(Rc).toAffine(),fl=It(Js.x);if(fl===yo)return;const yc=It(gh*It(Jl+fl*Cl));if(yc===yo)return;let tc=(Js.x===fl?0:2)|Number(Js.y&zo),Bu=yc;return gs&&ir(yc)&&(Bu=function Rn(vr){return ir(vr)?It(-vr):vr}(yc),tc^=1),new Qn(fl,Bu,tc)}}}(vr,jr,Hi);return vo(P.hash.outputLen,P.nByteLength,P.hmac)(Yi,Mo)},verify:function ma(vr,jr,Hi,Yi=bo){const Mo=vr;if(jr=Qi("msgHash",jr),Hi=Qi("publicKey",Hi),"strict"in Yi)throw new Error("options.strict was renamed to lowS");const{lowS:gs,prehash:qs}=Yi;let Ps,el;try{if("string"==typeof Mo||Mo instanceof Uint8Array)try{Ps=Qn.fromDER(Mo)}catch(Js){if(!(Js instanceof dl.Err))throw Js;Ps=Qn.fromCompact(Mo)}else{if("object"!=typeof Mo||"bigint"!=typeof Mo.r||"bigint"!=typeof Mo.s)throw new Error("PARSE");{const{r:Js,s:fl}=Mo;Ps=new Qn(Js,fl)}}el=un.fromHex(Hi)}catch(Js){if("PARSE"===Js.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(gs&&Ps.hasHighS())return!1;qs&&(jr=P.hash(jr));const{r:Cl,s:ql}=Ps,_c=Gr(jr),Jl=zt(ql),vc=It(_c*Jl),ec=It(Cl*Jl),Rc=un.BASE.multiplyAndAddUnsafe(el,vc,ec)?.toAffine();return!!Rc&&It(Rc.x)===Cl},ProjectivePoint:un,Signature:Qn,utils:yr}}BigInt(4);class Xl extends yl{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,ce.hash(P);const oe=vs($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return ce.exists(this),this.iHash.update(P),this}digestInto(P){ce.exists(this),ce.bytes(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Wa=(O,P,$)=>new Xl(O,P).update($).digest();function ch(O){return{hash:O,hmac:(P,...$)=>Wa(O,P,function ja(...O){const P=new Uint8Array(O.reduce((oe,Ce)=>oe+Ce.length,0));let $=0;return O.forEach(oe=>{if(!Q(oe))throw new Error("Uint8Array expected");P.set(oe,$),$+=oe.length}),P}(...$)),randomBytes:Jc}}Wa.create=(O,P)=>new Xl(O,P);const qi=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ar=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),mc=BigInt(1),rs=BigInt(2),N=(O,P)=>(O+P/rs)/P;const F=function Ta(O,P,$=!1,oe={}){if(O<=uo)throw new Error(`Expected Fp ORDER > 0, got ${O}`);const{nBitLength:Ce,nByteLength:$e}=Ls(O,P);if($e>2048)throw new Error("Field lengths over 2048 bytes are not supported");const pt=function li(O){if(O%te===Ie){const P=(O+Ui)/te;return function(oe,Ce){const $e=oe.pow(Ce,P);if(!oe.eql(oe.sqr($e),Ce))throw new Error("Cannot find square root");return $e}}if(O%Et===ve){const P=(O-ve)/Et;return function(oe,Ce){const $e=oe.mul(Ce,U),pt=oe.pow($e,P),It=oe.mul(Ce,pt),zt=oe.mul(oe.mul(It,U),pt),un=oe.mul(It,oe.sub(zt,oe.ONE));if(!oe.eql(oe.sqr(un),Ce))throw new Error("Cannot find square root");return un}}return function Nr(O){const P=(O-Ui)/U;let $,oe,Ce;for($=O-Ui,oe=0;$%U===uo;$/=U,oe++);for(Ce=U;Cerr(zt,O),isValid:zt=>{if("bigint"!=typeof zt)throw new Error("Invalid field element: expected bigint, got "+typeof zt);return uo<=zt&&ztzt===uo,isOdd:zt=>(zt&Ui)===Ui,neg:zt=>rr(-zt,O),eql:(zt,un)=>zt===un,sqr:zt=>rr(zt*zt,O),add:(zt,un)=>rr(zt+un,O),sub:(zt,un)=>rr(zt-un,O),mul:(zt,un)=>rr(zt*un,O),pow:(zt,un)=>function Lo(O,P,$){if($ 0");if($===uo)return O.ONE;if($===Ui)return P;let oe=O.ONE,Ce=P;for(;$>uo;)$&Ui&&(oe=O.mul(oe,Ce)),Ce=O.sqr(Ce),$>>=Ui;return oe}(It,zt,un),div:(zt,un)=>rr(zt*Di(un,O),O),sqrN:zt=>zt*zt,addN:(zt,un)=>zt+un,subN:(zt,un)=>zt-un,mulN:(zt,un)=>zt*un,inv:zt=>Di(zt,O),sqrt:oe.sqrt||(zt=>pt(It,zt)),invertBatch:zt=>function ha(O,P){const $=new Array(P.length),oe=P.reduce(($e,pt,It)=>O.is0(pt)?$e:($[It]=$e,O.mul($e,pt)),O.ONE),Ce=O.inv(oe);return P.reduceRight(($e,pt,It)=>O.is0(pt)?$e:($[It]=O.mul($e,$[It]),O.mul($e,pt)),Ce),$}(It,zt),cmov:(zt,un,kn)=>kn?un:zt,toBytes:zt=>$?Oi(zt,$e):Tr(zt,$e),fromBytes:zt=>{if(zt.length!==$e)throw new Error(`Fp.fromBytes: expected ${$e}, got ${zt.length}`);return $?$n(zt):oo(zt)}});return Object.freeze(It)}(qi,void 0,void 0,{sqrt:function G(O){const P=qi,$=BigInt(3),oe=BigInt(6),Ce=BigInt(11),$e=BigInt(22),pt=BigInt(23),It=BigInt(44),zt=BigInt(88),un=O*O*O%P,kn=un*un*O%P,qt=ki(kn,$,P)*kn%P,Yn=ki(qt,$,P)*kn%P,Xn=ki(Yn,rs,P)*un%P,ir=ki(Xn,Ce,P)*Xn%P,Rn=ki(ir,$e,P)*ir%P,Kn=ki(Rn,It,P)*Rn%P,Qn=ki(Kn,zt,P)*Kn%P,yr=ki(Qn,It,P)*Rn%P,Hn=ki(yr,$,P)*kn%P,Or=ki(Hn,pt,P)*ir%P,sr=ki(Or,oe,P)*un%P,Dr=ki(sr,rs,P);if(!F.eql(F.sqr(Dr),O))throw new Error("Cannot find square root");return Dr}}),K=function uh(O,P){const $=oe=>lh({...O,...ch(oe)});return Object.freeze({...$(P),create:$})}({a:BigInt(0),b:BigInt(7),Fp:F,n:Ar,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:O=>{const P=Ar,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-mc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$e=$,pt=BigInt("0x100000000000000000000000000000000"),It=N($e*O,P),zt=N(-oe*O,P);let un=rr(O-It*$-zt*Ce,P),kn=rr(-It*oe-zt*$e,P);const qt=un>pt,Yn=kn>pt;if(qt&&(un=P-un),Yn&&(kn=P-kn),un>pt||kn>pt)throw new Error("splitScalar: Endomorphism failed, k="+O);return{k1neg:qt,k1:un,k2neg:Yn,k2:kn}}}},nu);BigInt(0);var Yl=n(1998);const Ql=K.ProjectivePoint,cu=(0,Yl.Tq)(Ya);function uu(O){return BigInt(`0x${function me(O){if(!Ii(O))throw new Error("Uint8Array expected");let P="";for(let $=0;${if(!Number.isSafeInteger(O)||O<0||O>2**32-1)throw new Error(`Invalid number=${O}. Should be from 0 to 2 ** 32 - 1`);const P=new Uint8Array(4);return Io(P).setUint32(0,O,!1),P};class Ra{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Io(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 P=this.privateKey;if(!P)throw new Error("No private key");return cu.encode(this.serialize(this.versions.private,Fn(new Uint8Array([0]),P)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return cu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(P,$=pi){if(ai(P),8*P.length<128||8*P.length>512)throw new Error(`HDKey: wrong seed length=${P.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=Rr(kr,Cn,P);return new Ra({versions:$,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(P,$=pi){const oe=cu.decode(P),Ce=Io(oe),$e=Ce.getUint32(0,!1),pt={versions:$,depth:oe[4],parentFingerprint:Ce.getUint32(5,!1),index:Ce.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),zt=0===It[0];if($e!==$[zt?"private":"public"])throw new Error("Version mismatch");return new Ra(zt?{...pt,privateKey:It.slice(1)}:{...pt,publicKey:It})}static fromJSON(P){return Ra.fromExtendedKey(P.xpriv)}constructor(P){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!P||"object"!=typeof P)throw new Error("HDKey.constructor must not be called directly");if(this.versions=P.versions||pi,this.depth=P.depth||0,this.chainCode=P.chainCode,this.index=P.index||0,this.parentFingerprint=P.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(P.publicKey&&P.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(P.privateKey){if(!K.utils.isValidPrivateKey(P.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof P.privateKey?P.privateKey:uu(P.privateKey),this.privKeyBytes=function Ja(O){return function gt(O){if("string"!=typeof O)throw new Error("hex string expected, got "+typeof O);const P=O.length,$=P/2;if(P%2)throw new Error("padded hex string expected, got unpadded hex of length "+P);const oe=new Uint8Array($);for(let Ce=0,$e=0;Ce<$;Ce++,$e+=2){const pt=Re(O.charCodeAt($e)),It=Re(O.charCodeAt($e+1));if(void 0===pt||void 0===It)throw new Error('hex string expected, got non-hex character "'+(O[$e]+O[$e+1])+'" at index '+$e);oe[Ce]=16*pt+It}return oe}(O.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=K.getPublicKey(P.privateKey,!0)}else{if(!P.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Ql.fromHex(P.publicKey).toRawBytes(!0)}this.pubHash=Go(Ya(this.pubKey))}derive(P){if(!/^[mM]'?/.test(P))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(P))return this;const $=P.replace(/^[mM]'?\//,"").split("/");let oe=this;for(const Ce of $){const $e=/^(\d+)('?)$/.exec(Ce);if(!$e||3!==$e.length)throw new Error(`Invalid child index: ${Ce}`);let pt=+$e[1];if(!Number.isSafeInteger(pt)||pt>=Ic)throw new Error("Invalid index");"'"===$e[2]&&(pt+=Ic),oe=oe.deriveChild(pt)}return oe}deriveChild(P){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let $=Rl(P);if(P>=Ic){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");$=Fn(new Uint8Array([0]),It,$)}else $=Fn(this.pubKey,$);const oe=Rr(kr,this.chainCode,$),Ce=uu(oe.slice(0,32)),$e=oe.slice(32);if(!K.utils.isValidPrivateKey(Ce))throw new Error("Tweak bigger than curve order");const pt={versions:this.versions,chainCode:$e,depth:this.depth+1,parentFingerprint:this.fingerprint,index:P};try{if(this.privateKey){const It=rr(this.privKey+Ce,K.CURVE.n);if(!K.utils.isValidPrivateKey(It))throw new Error("The tweak was out of range or the resulted private key is invalid");pt.privateKey=It}else{const It=Ql.fromHex(this.pubKey).add(Ql.fromPrivateKey(Ce));if(It.equals(Ql.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");pt.publicKey=It.toRawBytes(!0)}return new Ra(pt)}catch{return this.deriveChild(P+1)}}sign(P){if(!this.privateKey)throw new Error("No privateKey set!");return ai(P,32),K.sign(P,this.privKey).toCompactRawBytes()}verify(P,$){if(ai(P,32),ai($,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=K.Signature.fromCompact($)}catch{return!1}return K.verify(oe,P,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(P,$){if(!this.chainCode)throw new Error("No chainCode set");return ai($,33),Fn(Rl(P),new Uint8Array([this.depth]),Rl(this.parentFingerprint),Rl(this.index),this.chainCode,$)}}var pa=n(3107);let Zl=(()=>{class O{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey($){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode($),"PBKDF2",!1,["deriveKey"])})()}deriveKey($,oe,Ce){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},$,{name:"AES-GCM",length:256},!1,Ce)})()}encryptData($,oe){var Ce=this;return(0,a.A)(function*(){try{const $e=window.crypto.getRandomValues(new Uint8Array(16)),pt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ce.getPasswordKey(oe),zt=yield Ce.deriveKey(It,$e,["encrypt"]),un=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:pt},zt,Ce.encoder.encode($))),kn=new Uint8Array($e.length+pt.length+un.length);return kn.set($e,0),kn.set(pt,$e.length),kn.set(un,$e.length+pt.length),Yl.K3.encode(kn)}catch($e){throw console.error("Encryption failed:",$e),new Error("Failed to encrypt data.")}})()}decryptData($,oe){var Ce=this;return(0,a.A)(function*(){try{const $e=Yl.K3.decode($),pt=$e.slice(0,16),It=$e.slice(16,28),zt=$e.slice(28),un=yield Ce.getPasswordKey(oe),kn=yield Ce.deriveKey(un,pt,["decrypt"]),qt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},kn,zt);return Ce.decoder.decode(qt)}catch($e){throw console.error("Decryption failed:",$e),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||O)}}static{this.\u0275prov=pa.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();var Zs=n(7544),xl=n(4482);let yd=(()=>{class O{constructor($,oe,Ce){this.securityService=$,this.dialog=oe,this._nostrLoginService=Ce,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword($,oe){const Ce=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:$,expirationTime:Ce}))}getPassword(){const $=sessionStorage.getItem(this.storageKey);if(!$)return null;const{password:oe,expirationTime:Ce}=JSON.parse($);return Date.now()>Ce?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword($,oe,Ce){var $e=this;return(0,a.A)(function*(){try{const pt=yield $e.getSecretKey($);if(!pt)throw new Error("Incorrect current password.");yield $e.setSecretKey(pt,oe);const It=yield $e.getNsec($);return It&&(yield $e.setNsec(It,oe)),$e.clearPassword(),Ce&&$e.savePassword(oe,60),!0}catch(pt){return console.error("Failed to change password: ",pt),!1}})()}getUsername($){return $.startsWith("npub")&&($=C.Qe.decode($).data.toString()),`@${localStorage.getItem(`${$}`)||C.Qe.npubEncode($)}`}npub(){let $=this.getPublicKey();return C.Qe.npubEncode($)}requestPassword(){var $=this;return(0,a.A)(function*(){return $.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec($){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ce=yield oe.getSecretKey($);const $e=Uint8Array.from(w.hp.from(Ce,"hex"));return C.Qe.nsecEncode($e)}return""})()}pubkey($){return C.Qe.decode($).data.toString()}setPublicKey($){const oe=C.Qe.npubEncode($);window.localStorage.setItem(this.localStoragePublicKeyName,$),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const $=localStorage.getItem("__nostrlogin_nip46");if($)try{return JSON.parse($).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub($){localStorage.setItem(this.localStorageNpubName,$)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey($,oe=""){var Ce=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ce.localStorageSecretKeyName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ce.securityService.encryptData($,oe);localStorage.setItem(Ce.localStorageSecretKeyName,$e),localStorage.setItem("usePassword","true")}})()}getSecretKey($=""){var oe=this;return(0,a.A)(function*(){const Ce=localStorage.getItem(oe.localStorageSecretKeyName),$e="true"===localStorage.getItem("usePassword");return Ce?$e?yield oe.securityService.decryptData(Ce,$):Ce:null})()}getDecryptedSecretKey(){var $=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return $.getSecretKey();const Ce=$.getPassword();if(Ce)return yield $.getSecretKey(Ce);const $e=yield $.requestPassword();if($e?.password){const pt=yield $.getSecretKey($e.password);return 0!==$e.duration&&$.savePassword($e.password,$e.duration),pt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec($,oe=""){var Ce=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ce.localStorageNsecName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ce.securityService.encryptData($,oe);localStorage.setItem(Ce.localStorageNsecName,$e),localStorage.setItem("usePassword","true")}})()}getNsec($=""){var oe=this;return(0,a.A)(function*(){const Ce=localStorage.getItem(oe.localStorageNsecName),$e="true"===localStorage.getItem("usePassword");return Ce?$e?yield oe.securityService.decryptData(Ce,$):Ce:null})()}setPublicKeyFromExtension($){this.setPublicKey($)}handleLoginWithKey($,oe=""){let Ce,$e,pt,It;try{if($.startsWith(this.localStorageNsecName)){const un=C.Qe.decode($);if(un.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ce=w.hp.from(un.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test($))throw new Error("Invalid key format. Must be either nsec or hex.");Ce=$}const zt=new Uint8Array(w.hp.from(Ce,"hex"));return $e=(0,C.lG)(zt),It=C.Qe.npubEncode($e),pt=C.Qe.nsecEncode(zt),this.setSecretKey(Ce,oe),this.setNsec(It,oe),this.setPublicKey($e),this.setNpub(It),!0}catch(zt){return console.error("Error during key handling: ",zt),!1}}handleLoginWithMnemonic($,oe="",Ce=""){try{const pt=function Oc(O,P,$=0){let Ce=Ra.fromMasterSeed(Co(O,P)).derive(`m/44'/1237'/${$}'/0/0`).privateKey;if(!Ce)throw new Error("could not derive private key");return Ce}($,oe,0),It=(0,c.My)(pt),zt=(0,C.lG)(pt),un=C.Qe.npubEncode(zt),kn=C.Qe.nsecEncode(pt);return this.setSecretKey(It,Ce),this.setNsec(kn,Ce),this.setPublicKey(zt),this.setNpub(un),window.localStorage.setItem(this.localStorageNsecName,kn),!0}catch($e){return console.error("Error during login with mnemonic:",$e),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys($=""){try{const oe=(0,C.Bq)(),Ce=w.hp.from(oe).toString("hex"),$e=(0,C.lG)(oe),pt=C.Qe.npubEncode($e),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ce,$),this.setNsec(It,$),this.setPublicKey($e),this.setNpub(pt),{secretKey:Ce,pubkey:$e,npub:pt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ce=yield oe.nostr.getPublicKey();if(!Ce)throw new Error("Public key not available from Nostr extension.");return $.setPublicKeyFromExtension(Ce),!0}catch(Ce){return console.error("Failed to connect to Nostr extension:",Ce),!1}})()}encryptMessage($,oe,Ce){return(0,a.A)(function*(){console.log(Ce);try{return yield C.sh.encrypt($,oe,Ce)}catch($e){throw console.error("Error encrypting message:",$e),$e}})()}encryptMessageWithExtension($,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,$)})()}decryptMessageWithExtension($,oe){return(0,a.A)(function*(){const Ce=globalThis;if(Ce.nostr&&"function"==typeof Ce.nostr.nip04?.decrypt)try{return yield Ce.nostr.nip04.decrypt($,oe)}catch($e){return console.error("Decryption failed:",$e),"*Failed to decrypt content: "+$e.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage($,oe,Ce){return(0,a.A)(function*(){try{if(!$||!oe||!Ce)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const $e=yield C.sh.decrypt($,oe,Ce);if(!$e)throw new Error("Decryption returned an empty message.");return $e}catch($e){throw $e}})()}getUnsignedEvent($,oe,Ce){return{kind:$,pubkey:this.getPublicKey(),tags:oe,content:Ce,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent($,oe){const Ce=(0,c.aT)(oe);return(0,C.pC)($,Ce)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags($){let oe=[];$.forEach(Ce=>{oe.push(Ce[1])}),this.setMuteList(oe)}setMuteList($){if(0===$.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set($));localStorage.setItem("muteList",oe.filter(Ce=>Ce).join(","))}}signEventWithExtension($){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent($);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension($,oe){return(0,a.A)(function*(){const Ce=globalThis;if(Ce.nostr&&Ce.nostr.nip04?.encrypt)return yield Ce.nostr.nip04.encrypt($,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem($.localStorageSecretKeyName)}catch(Ce){return console.error("Failed to check Nostr extension:",Ce),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey($){try{return C.Qe.npubEncode($)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey($){try{const oe=Uint8Array.from(w.hp.from($,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub($){try{const oe=C.Qe.decode($);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey($){try{if($.startsWith("npub")){const oe=this.getHexFromNpub($);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test($))return $;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||O)(pa.KVO(Zl),pa.KVO(Zs.bZ),pa.KVO(xl.v))}}static{this.\u0275prov=pa.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},6433:(o,s,n)=>{"use strict";n.d(s,{d:()=>C});var i=n(3014),a=n(3797),c=n(3107),y=n(5506),w=n(3149);let C=(()=>{class T{constructor(M,k){this.subscriptionService=M,this.storageService=k,this.isProfileLoaded=!1}loadUserProfile(M){var k=this;return(0,i.A)(function*(){k.isProfileLoaded||(yield k.subscribeToUserProfile(M),yield k.subscribeToUserChats(M),yield k.subscribeToUserPosts(M),yield k.subscribeToMyLikes(M),k.isProfileLoaded=!0)})()}subscribeToUserProfile(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("users"),X={kinds:[0],authors:[M],limit:1};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{const ne=k.parseMetadataEvent(Z);k.storageService.saveProfile(M,ne)})})()}subscribeToUserChats(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("chats"),X=[{kinds:[a.rV],authors:[M],limit:300},{kinds:[a.rV],"#p":[M],limit:300}];if(R){const Z=parseInt(R,10);X.forEach(ne=>ne.since=Z)}else k.storageService.removeAllChats();k.subscriptionService.addSubscriptions(X,Z=>{const ne=k.parseChatEvent(Z);k.storageService.saveChatEvent(ne)})})()}subscribeToUserPosts(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("posts"),X={kinds:[a.av],authors:[M]};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{k.isReply(Z)||k.storageService.savePost(Z)})})()}isReply(M){return M.tags.filter(R=>"e"===R[0]||"p"===R[0]).length>0}subscribeToMyLikes(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("myLikes"),X={kinds:[a.qT],authors:[M]};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{k.storageService.saveLike(Z)})})()}parseMetadataEvent(M){try{return JSON.parse(M.content)}catch(k){return console.error("Error parsing metadata event:",k),null}}parseChatEvent(M){try{const k=M.content.split("?iv=");return{id:M.id,kind:M.kind,pubkey:M.pubkey,created_at:M.created_at,tags:M.tags,content:k[0],iv:k[1],IsRead:!1}}catch(k){return console.error("Error parsing chat event:",k),null}}static{this.\u0275fac=function(k){return new(k||T)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},3149:(o,s,n)=>{"use strict";n.d(s,{n:()=>C});var i=n(3014),a=n(230),c=n.n(a),y=n(1217),w=n(3107);let C=(()=>{class T{constructor(){this.profileSubject=new y.t(null),this.projectsSubject=new y.t([]),this.projectStatsSubject=new y.t({}),this.chatEventsSubject=new y.t([]),this.unreadChatCountSubject=new y.t(0),this.contactsSubject=new y.t({pubKey:"",contacts:[]}),this.postsSubject=new y.t(null),this.myLikesSubject=new y.t([]),this.notificationsSubject=new y.t([]),this.contactStatsSubject=new y.t({totalContacts:0,followersCount:0,followingCount:0}),this.investorsSubject=new y.t([]),this.projectDetailsSubject=new y.t([]),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.projectDetailsStore=this.createStore("projectDetails"),this.projectStatsStore=this.createStore("projectStatistics"),this.investorsStore=this.createStore("investors"),this.loadAllProjectsFromDB(),this.loadAllProjectDetailsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllInvestorsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.calculateAndStoreAllContactStats()}createStore(M){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:M})}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()}get investors$(){return this.investorsSubject.asObservable()}get projectDetails$(){return this.projectDetailsSubject.asObservable()}saveInvestor(M){var k=this;return(0,i.A)(function*(){try{const R=`${M.projectIdentifier}-${M.investorPublicKey}`;yield k.investorsStore.setItem(R,M);const Z=[...k.investorsSubject.value.filter(ne=>ne.projectIdentifier!==M.projectIdentifier||ne.investorPublicKey!==M.investorPublicKey),M];k.investorsSubject.next(Z),console.log("Investor saved successfully:",M)}catch(R){console.error("Error saving investor:",R)}})()}getInvestor(M,k){var R=this;return(0,i.A)(function*(){try{const X=`${M}-${k}`;return(yield R.investorsStore.getItem(X))||null}catch(X){return console.error("Error retrieving investor:",X),null}})()}getAllInvestors(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.investorsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all investors:",k),k}catch(k){return console.error("Error retrieving all investors:",k),[]}})()}saveProjectDetails(M){var k=this;return(0,i.A)(function*(){try{const R=M.projectIdentifier;yield k.projectDetailsStore.setItem(R,M);const Z=[...k.projectDetailsSubject.value.filter(ne=>ne.projectIdentifier!==M.projectIdentifier),M];k.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",M)}catch(R){console.error("Error saving project details:",R)}})()}getProjectDetails(M){var k=this;return(0,i.A)(function*(){try{return(yield k.projectDetailsStore.getItem(M))||null}catch(R){return console.error("Error retrieving project details:",R),null}})()}getAllProjectDetails(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all project details:",k),k}catch(k){return console.error("Error retrieving all project details:",k),[]}})()}saveContacts(M,k){var R=this;return(0,i.A)(function*(){try{const X=[];for(const Z of k){const ne=`${M}:${Z.id}`;yield R.contactsStore.setItem(ne,Z),X.push(Z)}R.contactsSubject.next({pubKey:M,contacts:X}),yield R.calculateAndStoreAllContactStats(),yield R.setUpdateHistory("contacts")}catch(X){console.error("Error saving contacts:",X)}})()}calculateAndStoreAllContactStats(){var M=this;return(0,i.A)(function*(){try{const k={};yield M.contactsStore.iterate((R,X)=>{const[Z]=X.split(":");k[Z]||(k[Z]={totalContacts:0,followersCount:0,followingCount:0}),k[Z].totalContacts++,R.isFollower?k[Z].followersCount++:k[Z].followingCount++});for(const R in k)M.contactStatsMap[R]||(M.contactStatsMap[R]=new y.t({pubKey:R,totalContacts:0,followersCount:0,followingCount:0})),M.contactStatsMap[R].next({pubKey:R,totalContacts:k[R].totalContacts,followersCount:k[R].followersCount,followingCount:k[R].followingCount})}catch(k){console.error("Error calculating and storing contact stats:",k)}})()}getContactStats$(M){return this.contactStatsMap[M]||(this.contactStatsMap[M]=new y.t({pubKey:M,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[M].asObservable()}getAllContactsPaginated(M,k,R){var X=this;return(0,i.A)(function*(){try{const Z=[];yield X.contactsStore.iterate((de,De)=>{const[Ee]=De.split(":");Ee===M&&Z.push(de)});const ne=Z.length,_e=(k-1)*R;return{contacts:Z.slice(_e,_e+R),totalCount:ne}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(M=""){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.contactsStore.iterate((X,Z)=>{const[ne,_e]=Z.split(":");(""===M||ne===M)&&R.push({pubKey:ne,contact:X})}),R}catch(R){return console.error("Error retrieving contacts:",R),[]}})()}getContactStats(M){var k=this;return(0,i.A)(function*(){try{let R=0,X=0,Z=0;return yield k.contactsStore.iterate((ne,_e)=>{const[pe,de]=_e.split(":");pe===M&&(R++,ne.isFollower?X++:Z++)}),{totalContacts:R,followersCount:X,followingCount:Z}}catch(R){return console.error("Error retrieving contact stats for pubKey:",R),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(M){var k=this;return(0,i.A)(function*(){try{const R=[];yield k.contactsStore.iterate((X,Z)=>{const[ne]=Z.split(":");ne===M&&R.push(Z)});for(const X of R)yield k.contactsStore.removeItem(X);yield k.contactsStore.clear(),k.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),k.contactsSubject.next({pubKey:M,contacts:[]}),yield k.setUpdateHistory("contacts")}catch(R){console.error("Error removing all contacts for pubKey:",R)}})()}saveProfile(M,k){var R=this;return(0,i.A)(function*(){try{if(!M||!k)return void console.error("Invalid pubKey or metadata:",M,k);k.pubKey=M,yield R.profileStore.setItem(M,k),R.profileSubject.next({pubKey:M,metadata:k}),yield R.setUpdateHistory("profiles")}catch(X){console.error("Error saving profile",X)}})()}getProfile(M){var k=this;return(0,i.A)(function*(){try{return(yield k.profileStore.getItem(M))||null}catch(R){return console.error("Error retrieving profile metadata:",R),null}})()}getAllProfiles(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.profileStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all Profile:",k),[]}})()}searchProfile(M){var k=this;return(0,i.A)(function*(){try{const R=[],X=M.toLowerCase();return yield k.profileStore.iterate((Z,ne)=>{JSON.stringify(Z).toLowerCase().includes(X)&&R.push({pubKey:ne,profile:Z})}),R}catch(R){return console.error("Error searching profiles by metadata:",R),[]}})()}getLastUpdateDate(M){var k=this;return(0,i.A)(function*(){try{return(yield k.updateHistoryStore.getItem(M))||null}catch(R){return console.error("Error retrieving last update date:",R),null}})()}saveProject(M){var k=this;return(0,i.A)(function*(){try{yield k.projectsStore.setItem(M.projectIdentifier,M);const R=yield k.getAllProjects();k.projectsSubject.next(R),yield k.setUpdateHistory("projects")}catch(R){console.error("Error saving project:",R)}})()}getProjectsByNostrPubKeys(M){var k=this;return(0,i.A)(function*(){if(!M||0===M.length)return[];const R=[],X=yield k.projectDetailsStore.keys();for(const Z of X){const ne=yield k.projectDetailsStore.getItem(Z);ne&&M.includes(ne.nostrPubKey)&&R.push(ne)}return R})()}getAllProjects(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.projectsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all projects:",k),[]}})()}getProjectStats(M){var k=this;return(0,i.A)(function*(){try{return(yield k.projectStatsStore.getItem(M))||null}catch(R){return console.error("Error retrieving project stats:",R),null}})()}saveProjectStats(M,k){var R=this;return(0,i.A)(function*(){try{yield R.projectStatsStore.setItem(M,k);const X=yield R.getAllProjectStats();R.projectStatsSubject.next(X),yield R.setUpdateHistory("projectStats")}catch(X){console.error("Error saving project stats:",X)}})()}getAllProjectStats(){var M=this;return(0,i.A)(function*(){try{const k={};return yield M.projectStatsStore.iterate((R,X)=>{k[X]=R}),k}catch(k){return console.error("Error retrieving all project stats:",k),{}}})()}savePost(M){var k=this;return(0,i.A)(function*(){try{yield k.postsStore.setItem(M.id,M),yield k.setUpdateHistory("posts"),k.postsSubject.next(M)}catch(R){console.error("Error saving event type 1 and sending it to clients:",R)}})()}getPostsByPubKey(M){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.postsStore.iterate(X=>{X.pubkey===M&&1===X.kind&&R.push(X)}),R.sort((X,Z)=>Z.createdAt-X.createdAt)}catch(R){return console.error("Error retrieving events for pubKey:",R),[]}})()}getPostById(M){var k=this;return(0,i.A)(function*(){try{let R=null;return yield k.postsStore.iterate(X=>{if(X.id===M&&1===X.kind)return R=X,R}),R}catch(R){return console.error("Error retrieving post by ID:",R),null}})()}getAllPostsWithPagination(M,k=10){var R=this;return(0,i.A)(function*(){try{const X=[],Z=(M-1)*k;return yield R.postsStore.iterate(ne=>{1===ne.kind&&X.push(ne)}),X.sort((ne,_e)=>_e.created_at-ne.created_at).slice(Z,Z+k)}catch(X){return console.error("Error retrieving all posts with pagination:",X),[]}})()}getPostsByPubKeysWithPagination(M,k,R=10){var X=this;return(0,i.A)(function*(){try{const Z=[],ne=(k-1)*R;return yield X.postsStore.iterate(_e=>{M.includes(_e.pubkey)&&1===_e.kind&&Z.push(_e)}),Z.sort((_e,pe)=>pe.created_at-_e.created_at).slice(ne,ne+R)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(M){var k=this;return(0,i.A)(function*(){try{yield k.myLikesStore.setItem(M.id,M);const R=yield k.getAllMyLikes();k.myLikesSubject.next(R),yield k.setUpdateHistory("myLikes")}catch(R){console.error("Error saving like:",R)}})()}getAllMyLikes(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.myLikesStore.iterate(R=>{try{const X=R.tags.find(Z=>"e"===Z[0]);X&&k.push(X[1])}catch(X){console.warn("Error parsing like:",R,X)}}),k}catch(k){return console.error("Error retrieving all likes:",k),[]}})()}saveNotification(M){var k=this;return(0,i.A)(function*(){try{yield k.notificationsStore.setItem(M.id,M);const R=yield k.getAllNotifications();k.notificationsSubject.next(R),yield k.setUpdateHistory("notifications")}catch(R){console.error("Error saving notification:",R)}})()}getAllNotifications(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.notificationsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all notifications:",k),[]}})()}saveChatEvent(M){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.setItem(M.id,M),yield k.setUpdateHistory("chats");const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error saving chat event:",R)}})()}getAllChatEvents(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.chatsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all chat events:",k),[]}})()}getChatEventsByPubKey(M){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.chatsStore.iterate(X=>{const Z=k.getReceiverPubKeyFromTags(X.tags);(X.pubkey===M||Z===M)&&R.push(X)}),R}catch(R){return console.error("Error retrieving chat events by pubkey:",R),[]}})()}updateChatEventReadStatus(M,k){var R=this;return(0,i.A)(function*(){try{const X=yield R.chatsStore.getItem(M);if(X){X.IsRead=k,yield R.chatsStore.setItem(M,X);const Z=yield R.getAllChatEvents();R.chatEventsSubject.next(Z),R.updateUnreadChatCount(Z)}}catch(X){console.error("Error updating chat event read status:",X)}})()}markAllChatEventsAsRead(M){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.iterate(function(){var X=(0,i.A)(function*(Z,ne){const _e=k.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===M||_e===M)&&!Z.IsRead&&(Z.IsRead=!0,yield k.chatsStore.setItem(ne,Z))});return function(Z,ne){return X.apply(this,arguments)}}());const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error marking all chat events as read:",R)}})()}getReceiverPubKeyFromTags(M){for(const k of M)if("p"===k[0]&&k[1])return k[1];return null}updateUnreadChatCount(M){const k=M.filter(R=>!R.IsRead).length;this.unreadChatCountSubject.next(k)}removeAllChats(){var M=this;return(0,i.A)(function*(){try{yield M.chatsStore.clear(),M.chatEventsSubject.next([]),M.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(k){console.error("Error removing all chat events:",k)}})()}setUpdateHistory(M){var k=this;return(0,i.A)(function*(){try{const R=Math.floor(Date.now()/1e3);yield k.updateHistoryStore.setItem(M,R)}catch(R){console.error("Error updating history:",R)}})()}loadAllProjectsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllProjects();M.projectsSubject.next(k)}catch(k){console.error("Error loading projects from DB:",k)}})()}loadAllProjectStatsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllProjectStats();M.projectStatsSubject.next(k)}catch(k){console.error("Error loading project stats from DB:",k)}})()}loadAllContactsFromDB(M=""){var k=this;return(0,i.A)(function*(){try{const R=yield k.getAllContacts(M);if(R.length>0){const X={};for(const Z of R)X[Z.pubKey]||(X[Z.pubKey]=[]),X[Z.pubKey].push(Z.contact);for(const Z in X)k.contactsSubject.next({pubKey:Z,contacts:X[Z]})}}catch(R){console.error("Error loading contacts from DB:",R)}})()}loadAllChatEventsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllChatEvents();M.chatEventsSubject.next(k)}catch(k){console.error("Error loading chat events from DB:",k)}})()}loadPostsFromDB(M,k=10,R=0){var X=this;return(0,i.A)(function*(){try{const Z=[];return yield X.postsStore.iterate(ne=>{M.includes(ne.pubkey)&&Z.push(ne)}),Z.sort((ne,_e)=>_e.created_at-ne.created_at).slice(R,R+k)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(M,k){var R=this;return(0,i.A)(function*(){const Z=10*(k-1),ne=yield R.loadPostsFromDB(M,10,Z);ne.length>0&&ne.forEach(_e=>{R.postsSubject.next(_e)})})()}loadAllMyLikesFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllMyLikes();M.myLikesSubject.next(k)}catch(k){console.error("Error loading likes from DB:",k)}})()}loadAllNotificationsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllNotifications();M.notificationsSubject.next(k)}catch(k){console.error("Error loading notifications from DB:",k)}})()}loadContactStatsFromDB(){var M=this;return(0,i.A)(function*(){try{let k=0,R=0,X=0;yield M.contactsStore.iterate((Z,ne)=>{const[_e]=ne.split(":");k++,Z.isFollower?R++:X++}),M.contactStatsSubject.next({totalContacts:k,followersCount:R,followingCount:X})}catch(k){console.error("Error loading contact stats from DB:",k)}})()}loadAllInvestorsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=[];yield M.investorsStore.iterate(R=>{k.push(R)}),console.log("Loaded Investors:",k),M.investorsSubject.next(k)}catch(k){console.error("Error loading investors from DB:",k)}})()}loadAllProjectDetailsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=[];yield M.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Loaded Project Details:",k),M.projectDetailsSubject.next(k)}catch(k){console.error("Error loading project details from DB:",k)}})()}static{this.\u0275fac=function(k){return new(k||T)}}static{this.\u0275prov=w.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},5506:(o,s,n)=>{"use strict";n.d(s,{n:()=>pe});var a,i=n(1217),c=new Uint8Array(16);function y(){if(!a&&!(a=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 a(c)}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 S=[],M=0;M<256;++M)S.push((M+256).toString(16).substr(1));const R=function k(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ee=(S[de[De+0]]+S[de[De+1]]+S[de[De+2]]+S[de[De+3]]+"-"+S[de[De+4]]+S[de[De+5]]+"-"+S[de[De+6]]+S[de[De+7]]+"-"+S[de[De+8]]+S[de[De+9]]+"-"+S[de[De+10]]+S[de[De+11]]+S[de[De+12]]+S[de[De+13]]+S[de[De+14]]+S[de[De+15]]).toLowerCase();if(!function C(de){return"string"==typeof de&&w.test(de)}(Ee))throw TypeError("Stringified UUID is invalid");return Ee},Z=function X(de,De,Ee){var Le=(de=de||{}).random||(de.rng||y)();if(Le[6]=15&Le[6]|64,Le[8]=63&Le[8]|128,De){Ee=Ee||0;for(var Ae=0;Ae<16;++Ae)De[Ee+Ae]=Le[Ae];return De}return R(Le)};var ne=n(3107),_e=n(3125);let pe=(()=>{class de{constructor(Ee){this.relayService=Ee,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new i.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=1e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=1e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(Ee,Le,Ae){const we=this.findExistingSubscription(Ee);if(we)return we.callbacks.push(Le),we.id;const le=Z();this.lastActionTimestamp.set(le,Date.now());const ae={filter:Ee,callbacks:[Le],id:le};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(Ee){return Array.from(this.subscriptions.values()).find(Le=>JSON.stringify(Le.filter)===JSON.stringify(Ee))}removeSubscriptionById(Ee){const Le=Date.now(),Ae=this.lastActionTimestamp.get(Ee);Ae&&Le-Ae{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Ae=>this.subscribeToRelays(Ae.filter,Ae))},this.queueInterval))}subscribeToRelays(Ee,Le){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Ae=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Ae,Ee,{onevent:we=>{Le.callbacks.forEach(le=>le(we))},onclose:()=>console.log("Subscription closed")})}).catch(Ae=>{console.error("Error subscribing to relays:",Ae)}):this.pendingSubscriptions.set(Le.id,Le)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ee=>{this.subscribeToRelays(Ee.filter,Ee)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ee=>{console.error("Error connecting to relays:",Ee)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Le){return new(Le||de)(ne.KVO(_e.b))}}static{this.\u0275prov=ne.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}}return de})()},2226:(o,s,n)=>{"use strict";n.d(s,{b:()=>Z});var i=n(4460),a=n(936),c=n(9471),y=n(2902),w=n(7544),C=n(6071),T=n(3904),S=n(6389),M=n(2675),k=n(5785),R=n(3107);function X(ne,_e){1&ne&&(R.j41(0,"mat-error"),R.EFF(1," Password is required "),R.k0s())}let Z=(()=>{class ne{constructor(pe,de,De){this.fb=pe,this.dialogRef=de,this.data=De,this.passwordForm=this.fb.group({password:["",a.k0.required],duration:["0",a.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(de){return new(de||ne)(R.rXU(a.ok),R.rXU(w.CP),R.rXU(w.Vh))}}static{this.\u0275cmp=R.VBU({type:ne,selectors:[["password-dialog"]],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(de,De){1&de&&(R.j41(0,"h1",0),R.EFF(1,"Enter Password"),R.k0s(),R.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),R.EFF(6,"Password"),R.k0s(),R.j41(7,"mat-icon",4),R.EFF(8,"lock"),R.k0s(),R.nrm(9,"input",5),R.DNE(10,X,2,0,"mat-error",6),R.k0s(),R.j41(11,"mat-form-field",7)(12,"mat-label"),R.EFF(13,"Duration"),R.k0s(),R.j41(14,"mat-select",8)(15,"mat-option",9),R.EFF(16,"0 Minute"),R.k0s(),R.j41(17,"mat-option",10),R.EFF(18,"1 Minute"),R.k0s(),R.j41(19,"mat-option",11),R.EFF(20,"5 Minutes"),R.k0s(),R.j41(21,"mat-option",12),R.EFF(22,"10 Minutes"),R.k0s(),R.j41(23,"mat-option",13),R.EFF(24,"1 Hour"),R.k0s()()()()(),R.j41(25,"div",14)(26,"button",15),R.bIt("click",function(){return De.onCancel()}),R.EFF(27,"Cancel"),R.k0s(),R.j41(28,"button",16),R.bIt("click",function(){return De.onSubmit()}),R.EFF(29," Submit "),R.k0s()()),2&de&&(R.R7$(3),R.Y8G("formGroup",De.passwordForm),R.R7$(),R.Y8G("subscriptSizing","dynamic"),R.R7$(5),R.Y8G("formControlName","password"),R.R7$(),R.Y8G("ngIf",De.passwordForm.get("password").hasError("required")),R.R7$(18),R.Y8G("disabled",De.passwordForm.invalid))},dependencies:[k.vg,c.Hl,c.$z,T.m_,T.An,a.YN,a.qT,a.me,a.BC,a.cb,y.wT,C.nJ,C.rl,a.X1,a.j4,a.JD,i.MD,i.bT,M.Ve,C.TL,C.JW,M.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return ne})()},770:(o,s,n)=>{"use strict";var i=n(6388),a=n(8716),c=n(3107);let y=(()=>{class v{constructor(){}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["app-root"]],decls:1,vars:0,template:function(_,D){1&_&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return v})();var w=n(3014);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var T=n(8915),S=n(1698),M=n(7610),k=n(3016);class R{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,T.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,T.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,T.$)(()=>new Error("Request does not exist!"));this._replied++;const m=this._reply({request:this.request,urlParams:this.urlParams});return m instanceof S.c?m.pipe((0,M.s)(1)):(0,k.of)(m).pipe((0,M.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var X=n(6143);let Z=(()=>{class v{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(d,_){const D={handler:void 0,urlParams:{}},W=_.split("/"),re=this._handlers[d.toLowerCase()];for(const[ye,Xe]of re){const yt=ye.split("/");if(W.length===yt.length&&yt.every((yn,_r)=>yn.startsWith(":")||yn===W[_r])){D.handler=Xe,D.urlParams=(0,X.A)(yt.map((yn,_r)=>yn.startsWith(":")?[yn.substring(1),W[_r]]:void 0).filter(Boolean));break}}return D}onGet(d,_){return this._registerHandler("get",d,_)}onPost(d,_){return this._registerHandler("post",d,_)}onPatch(d,_){return this._registerHandler("patch",d,_)}onDelete(d,_){return this._registerHandler("delete",d,_)}onPut(d,_){return this._registerHandler("put",d,_)}onHead(d,_){return this._registerHandler("head",d,_)}onJsonp(d,_){return this._registerHandler("jsonp",d,_)}onOptions(d,_){return this._registerHandler("options",d,_)}_registerHandler(d,_,D){const W=new R(_,D);return this._handlers[d].set(_,W),W}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var ne=n(7691),_e=n(8136),pe=n(2867);const de=(v,m)=>{const d=(0,c.WQX)(C),_=(0,c.WQX)(Z),{handler:D,urlParams:W}=_.findHandler(v.method.toUpperCase(),v.url);return D?(D.request=v,D.urlParams=W,D.response.pipe((0,_e.c)(D.delay??d??0),(0,pe.n)(re=>{if(!re)return(0,T.$)(()=>new ne.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const ye={status:re[0],body:re[1]};return ye.status>=200&&ye.status<300?(0,k.of)(new ne.cS({body:ye.body,status:ye.status,statusText:"OK"})):(0,T.$)(()=>new ne.yz({error:ye.body?.error,status:ye.status,statusText:"ERROR"}))}))):m(v)};var De=n(7891),Ee=n(7153),Le=n(1217);let Ae=(()=>{class v{constructor(){this._auto$=new Le.t(!0),this._mode$=new Le.t("indeterminate"),this._progress$=new Le.t(0),this._show$=new Le.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(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,_){_?(!0===d?(this._urlMap.set(_,d),this._show$.next(!0)):!1===d&&this._urlMap.has(_)&&this._urlMap.delete(_),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var we=n(4447);const le=(v,m)=>{const d=(0,c.WQX)(Ae);let _=!1;return d.auto$.pipe((0,M.s)(1)).subscribe(D=>{_=D}),_?(d._setLoadingStatus(!0,v.url),m(v).pipe((0,we.j)(()=>{d._setLoadingStatus(!1,v.url)}))):m(v)};var ae=n(2012),xe=n(2147);let Be=(()=>{class v{constructor(){this._platform=(0,c.WQX)(xe.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(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var st=n(4460),lt=n(1483);let bt=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,lt.p)(d=>d instanceof a.wF),(0,M.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(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var at=n(3939),sn=n(2902),fn=n(7544),En=n(6071);class wn extends Error{}class Je extends wn{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class _t extends wn{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends wn{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Ue extends wn{}class Ft extends wn{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends wn{}class Ze extends wn{constructor(){super("Zone is an abstract class")}}const it="numeric",Ot="short",Qt="long",Me={year:it,month:it,day:it},ht={year:it,month:Ot,day:it},Xt={year:it,month:Ot,day:it,weekday:Ot},Tn={year:it,month:Qt,day:it},Wt={year:it,month:Qt,day:it,weekday:Qt},Zt={hour:it,minute:it},rt={hour:it,minute:it,second:it},Ht={hour:it,minute:it,second:it,timeZoneName:Ot},en={hour:it,minute:it,second:it,timeZoneName:Qt},Nn={hour:it,minute:it,hourCycle:"h23"},mn={hour:it,minute:it,second:it,hourCycle:"h23"},Mn={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Ot},tt={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Qt},Kt={year:it,month:it,day:it,hour:it,minute:it},At={year:it,month:it,day:it,hour:it,minute:it,second:it},Te={year:it,month:Ot,day:it,hour:it,minute:it},be={year:it,month:Ot,day:it,hour:it,minute:it,second:it},He={year:it,month:Ot,day:it,weekday:Ot,hour:it,minute:it},z={year:it,month:Qt,day:it,hour:it,minute:it,timeZoneName:Ot},L={year:it,month:Qt,day:it,hour:it,minute:it,second:it,timeZoneName:Ot},V={year:it,month:Qt,day:it,weekday:Qt,hour:it,minute:it,timeZoneName:Qt},Ne={year:it,month:Qt,day:it,weekday:Qt,hour:it,minute:it,second:it,timeZoneName:Qt};class ft{get type(){throw new Ze}get name(){throw new Ze}get ianaName(){return this.name}get isUniversal(){throw new Ze}offsetName(m,d){throw new Ze}formatOffset(m,d){throw new Ze}offset(m){throw new Ze}equals(m){throw new Ze}get isValid(){throw new Ze}}let mt=null;class Tt extends ft{static get instance(){return null===mt&&(mt=new Tt),mt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return ur(m,d,_)}formatOffset(m,d){return aa(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let On={};const hn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Dn={};class Hr extends ft{static create(m){return Dn[m]||(Dn[m]=new Hr(m)),Dn[m]}static resetCache(){Dn={},On={}}static isValidSpecifier(m){return this.isValidZone(m)}static isValidZone(m){if(!m)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:m}).format(),!0}catch{return!1}}constructor(m){super(),this.zoneName=m,this.valid=Hr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return ur(m,d,_,this.name)}formatOffset(m,d){return aa(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const _=function cn(v){return On[v]||(On[v]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),On[v]}(this.name);let[D,W,re,ye,Xe,yt,dn]=_.formatToParts?function lr(v,m){const d=v.formatToParts(m),_=[];for(let D=0;D=0?mr:1e3+mr,(Xo({year:D,month:W,day:re,hour:24===Xe?0:Xe,minute:yt,second:dn,millisecond:0})-nr)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let Mr={},vt={};function Vt(v,m={}){const d=JSON.stringify([v,m]);let _=vt[d];return _||(_=new Intl.DateTimeFormat(v,m),vt[d]=_),_}let Oe={},je={},ct=null,xn={};function nn(v,m,d,_){const D=v.listingMode();return"error"===D?null:"en"===D?d(m):_(m)}class nt{constructor(m,d,_){this.padTo=_.padTo||0,this.floor=_.floor||!1;const{padTo:D,floor:W,...re}=_;if(!d||Object.keys(re).length>0){const ye={useGrouping:!1,..._};_.padTo>0&&(ye.minimumIntegerDigits=_.padTo),this.inf=function Ge(v,m={}){const d=JSON.stringify([v,m]);let _=Oe[d];return _||(_=new Intl.NumberFormat(v,m),Oe[d]=_),_}(m,ye)}}format(m){if(this.inf){const d=this.floor?Math.floor(m):m;return this.inf.format(d)}return mo(this.floor?Math.floor(m):Ds(m,3),this.padTo)}}class Rt{constructor(m,d,_){let D;if(this.opts=_,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const re=m.offset/60*-1,ye=re>=0?`Etc/GMT+${re}`:`Etc/GMT${re}`;0!==m.offset&&Hr.create(ye).valid?(D=ye,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const W={...this.opts};W.timeZone=W.timeZone||D,this.dtf=Vt(d,W)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const _=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:_}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class ln{constructor(m,d,_){this.opts={style:"long",..._},!d&&Li()&&(this.rtf=function Dt(v,m={}){const{base:d,..._}=m,D=JSON.stringify([v,_]);let W=je[D];return W||(W=new Intl.RelativeTimeFormat(v,m),je[D]=W),W}(m,_))}format(m,d){return this.rtf?this.rtf.format(m,d):function J(v,m,d="always",_=!1){const D={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."]},W=-1===["hours","minutes","seconds"].indexOf(v);if("auto"===d&&W){const yn="days"===v;switch(m){case 1:return yn?"tomorrow":`next ${D[v][0]}`;case-1:return yn?"yesterday":`last ${D[v][0]}`;case 0:return yn?"today":`this ${D[v][0]}`}}const re=Object.is(m,-0)||m<0,ye=Math.abs(m),Xe=1===ye,yt=D[v],dn=_?Xe?yt[1]:yt[2]||yt[1]:Xe?D[v][0]:v;return re?`${ye} ${dn} ago`:`in ${ye} ${dn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const vn={firstDay:1,minimalDays:4,weekend:[6,7]};class fr{static fromOpts(m){return fr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,_,D,W=!1){const re=m||Re.defaultLocale,ye=re||(W?"en-US":function Bt(){return ct||(ct=(new Intl.DateTimeFormat).resolvedOptions().locale,ct)}()),Xe=d||Re.defaultNumberingSystem,yt=_||Re.defaultOutputCalendar,dn=No(D)||Re.defaultWeekSettings;return new fr(ye,Xe,yt,dn,re)}static resetCache(){ct=null,vt={},Oe={},je={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:_,weekSettings:D}={}){return fr.create(m,d,_,D)}constructor(m,d,_,D,W){const[re,ye,Xe]=function xr(v){const m=v.indexOf("-x-");-1!==m&&(v=v.substring(0,m));const d=v.indexOf("-u-");if(-1===d)return[v];{let _,D;try{_=Vt(v).resolvedOptions(),D=v}catch{const Xe=v.substring(0,d);_=Vt(Xe).resolvedOptions(),D=Xe}const{numberingSystem:W,calendar:re}=_;return[D,W,re]}}(m);this.locale=re,this.numberingSystem=d||ye||null,this.outputCalendar=_||Xe||null,this.weekSettings=D,this.intl=function si(v,m,d){return(d||m)&&(v.includes("-u-")||(v+="-u"),d&&(v+=`-ca-${d}`),m&&(v+=`-nu-${m}`)),v}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=W,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Mt(v){return(!v.numberingSystem||"latn"===v.numberingSystem)&&("latn"===v.numberingSystem||!v.locale||v.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(v.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(m){return m&&0!==Object.getOwnPropertyNames(m).length?fr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,No(m.weekSettings)||this.weekSettings,m.defaultToEN||!1):this}redefaultToEN(m={}){return this.clone({...m,defaultToEN:!0})}redefaultToSystem(m={}){return this.clone({...m,defaultToEN:!1})}months(m,d=!1){return nn(this,m,Ts,()=>{const _=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function hi(v){const m=[];for(let d=1;d<=12;d++){const _=Fr.utc(2009,d,1);m.push(v(_))}return m}(W=>this.extract(W,_,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return nn(this,m,lo,()=>{const _=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Zi(v){const m=[];for(let d=1;d<=7;d++){const _=Fr.utc(2016,11,13+d);m.push(v(_))}return m}(W=>this.extract(W,_,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return nn(this,void 0,()=>ps,()=>{if(!this.meridiemCache){const m={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Fr.utc(2016,11,13,9),Fr.utc(2016,11,13,19)].map(d=>this.extract(d,m,"dayperiod"))}return this.meridiemCache})}eras(m){return nn(this,m,ca,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Fr.utc(-40,1,1),Fr.utc(2017,1,1)].map(_=>this.extract(_,d,"era"))),this.eraCache[m]})}extract(m,d,_){const re=this.dtFormatter(m,d).formatToParts().find(ye=>ye.type.toLowerCase()===_);return re?re.value:null}numberFormatter(m={}){return new nt(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new Rt(m,this.intl,d)}relFormatter(m={}){return new ln(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Vr(v,m={}){const d=JSON.stringify([v,m]);let _=Mr[d];return _||(_=new Intl.ListFormat(v,m),Mr[d]=_),_}(this.intl,m)}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:bi()?function er(v){let m=xn[v];if(!m){const d=new Intl.Locale(v);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,xn[v]=m}return m}(this.locale):vn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(m){return this.locale===m.locale&&this.numberingSystem===m.numberingSystem&&this.outputCalendar===m.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Co=null;class Ni extends ft{static get utcInstance(){return null===Co&&(Co=new Ni(0)),Co}static instance(m){return 0===m?Ni.utcInstance:new Ni(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Ni(As(d[1],d[2]))}return null}constructor(m){super(),this.fixed=m}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${aa(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${aa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return aa(this.fixed,d)}get isUniversal(){return!0}offset(){return this.fixed}equals(m){return"fixed"===m.type&&m.fixed===this.fixed}get isValid(){return!0}}class ds extends ft{constructor(m){super(),this.zoneName=m}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 $o(v,m){if(Pr(v)||null===v)return m;if(v instanceof ft)return v;if(function zs(v){return"string"==typeof v}(v)){const _=v.toLowerCase();return"default"===_?m:"local"===_||"system"===_?Tt.instance:"utc"===_||"gmt"===_?Ni.utcInstance:Ni.parseSpecifier(_)||Hr.create(v)}return Do(v)?Ni.instance(v):"object"==typeof v&&"offset"in v&&"function"==typeof v.offset?v:new ds(v)}const ai={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"},qo={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]},fo=ai.hanidec.replace(/[\[|\]]/g,"").split("");let Fo={};function ao({numberingSystem:v},m=""){const d=v||"latn";return Fo[d]||(Fo[d]={}),Fo[d][m]||(Fo[d][m]=new RegExp(`${ai[d]}${m}`)),Fo[d][m]}let me,po=()=>Date.now(),Ii="system",Io=null,et=null,xt=null,dt=60,Ye=null;class Re{static get now(){return po}static set now(m){po=m}static set defaultZone(m){Ii=m}static get defaultZone(){return $o(Ii,Tt.instance)}static get defaultLocale(){return Io}static set defaultLocale(m){Io=m}static get defaultNumberingSystem(){return et}static set defaultNumberingSystem(m){et=m}static get defaultOutputCalendar(){return xt}static set defaultOutputCalendar(m){xt=m}static get defaultWeekSettings(){return Ye}static set defaultWeekSettings(m){Ye=No(m)}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(m){dt=m%100}static get throwOnInvalid(){return me}static set throwOnInvalid(m){me=m}static resetCaches(){fr.resetCache(),Hr.resetCache(),Fr.resetCache(),function ia(){Fo={}}()}}class gt{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const jt=[0,31,59,90,120,151,181,212,243,273,304,334],kt=[0,31,60,91,121,152,182,213,244,274,305,335];function pn(v,m){return new gt("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${v}, which is invalid`)}function Sn(v,m,d){const _=new Date(Date.UTC(v,m-1,d));v<100&&v>=0&&_.setUTCFullYear(_.getUTCFullYear()-1900);const D=_.getUTCDay();return 0===D?7:D}function An(v,m,d){return d+(go(v)?kt:jt)[m-1]}function Fn(v,m){const d=go(v)?kt:jt,_=d.findIndex(W=>W_o(_,m,d)?(yt=_+1,Xe=1):yt=_,{weekYear:yt,weekNumber:Xe,weekday:ye,...ls(v)}}function cr(v,m=4,d=1){const{weekYear:_,weekNumber:D,weekday:W}=v,re=zn(Sn(_,1,m),d),ye=io(_);let yt,Xe=7*D+W-re-7+m;Xe<1?(yt=_-1,Xe+=io(yt)):Xe>ye?(yt=_+1,Xe-=io(_)):yt=_;const{month:dn,day:yn}=Fn(yt,Xe);return{year:yt,month:dn,day:yn,...ls(v)}}function Er(v){const{year:m,month:d,day:_}=v;return{year:m,ordinal:An(m,d,_),...ls(v)}}function Cr(v){const{year:m,ordinal:d}=v,{month:_,day:D}=Fn(m,d);return{year:m,month:_,day:D,...ls(v)}}function gi(v,m){if(Pr(v.localWeekday)&&Pr(v.localWeekNumber)&&Pr(v.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Pr(v.weekday)||!Pr(v.weekNumber)||!Pr(v.weekYear))throw new Ue("Cannot mix locale-based week fields with ISO-based week fields");return Pr(v.localWeekday)||(v.weekday=v.localWeekday),Pr(v.localWeekNumber)||(v.weekNumber=v.localWeekNumber),Pr(v.localWeekYear)||(v.weekYear=v.localWeekYear),delete v.localWeekday,delete v.localWeekNumber,delete v.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function Rr(v){const m=es(v.year),d=hs(v.month,1,12),_=hs(v.day,1,fs(v.year,v.month));return m?d?!_&&pn("day",v.day):pn("month",v.month):pn("year",v.year)}function Qr(v){const{hour:m,minute:d,second:_,millisecond:D}=v,W=hs(m,0,23)||24===m&&0===d&&0===_&&0===D,re=hs(d,0,59),ye=hs(_,0,59),Xe=hs(D,0,999);return W?re?ye?!Xe&&pn("millisecond",D):pn("second",_):pn("minute",d):pn("hour",m)}function Pr(v){return typeof v>"u"}function Do(v){return"number"==typeof v}function es(v){return"number"==typeof v&&v%1==0}function Li(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bi(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ks(v,m,d){if(0!==v.length)return v.reduce((_,D)=>{const W=[m(D),D];return _&&d(_[0],W[0])===_[0]?_:W},null)[1]}function Cs(v,m){return Object.prototype.hasOwnProperty.call(v,m)}function No(v){if(null==v)return null;if("object"!=typeof v)throw new Ke("Week settings must be an object");if(!hs(v.firstDay,1,7)||!hs(v.minimalDays,1,7)||!Array.isArray(v.weekend)||v.weekend.some(m=>!hs(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:v.firstDay,minimalDays:v.minimalDays,weekend:Array.from(v.weekend)}}function hs(v,m,d){return es(v)&&v>=m&&v<=d}function mo(v,m=2){let _;return _=v<0?"-"+(""+-v).padStart(m,"0"):(""+v).padStart(m,"0"),_}function Go(v){if(!Pr(v)&&null!==v&&""!==v)return parseInt(v,10)}function Rs(v){if(!Pr(v)&&null!==v&&""!==v)return parseFloat(v)}function Xr(v){if(!Pr(v)&&null!==v&&""!==v){const m=1e3*parseFloat("0."+v);return Math.floor(m)}}function Ds(v,m,d=!1){const _=10**m;return(d?Math.trunc:Math.round)(v*_)/_}function go(v){return v%4==0&&(v%100!=0||v%400==0)}function io(v){return go(v)?366:365}function fs(v,m){const d=function Ko(v,m){return v-m*Math.floor(v/m)}(m-1,12)+1;return 2===d?go(v+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Xo(v){let m=Date.UTC(v.year,v.month-1,v.day,v.hour,v.minute,v.second,v.millisecond);return v.year<100&&v.year>=0&&(m=new Date(m),m.setUTCFullYear(v.year,v.month-1,v.day)),+m}function Ya(v,m,d){return-zn(Sn(v,1,m),d)+m-1}function _o(v,m=4,d=1){const _=Ya(v,m,d),D=Ya(v+1,m,d);return(io(v)-_+D)/7}function Ao(v){return v>99?v:v>Re.twoDigitCutoffYear?1900+v:2e3+v}function ur(v,m,d,_=null){const D=new Date(v),W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};_&&(W.timeZone=_);const re={timeZoneName:m,...W},ye=new Intl.DateTimeFormat(d,re).formatToParts(D).find(Xe=>"timezonename"===Xe.type.toLowerCase());return ye?ye.value:null}function As(v,m){let d=parseInt(v,10);Number.isNaN(d)&&(d=0);const _=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-_:_)}function Gs(v){const m=Number(v);if("boolean"==typeof v||""===v||Number.isNaN(m))throw new Ke(`Invalid unit value ${v}`);return m}function _s(v,m){const d={};for(const _ in v)if(Cs(v,_)){const D=v[_];if(null==D)continue;d[m(_)]=Gs(D)}return d}function aa(v,m){const d=Math.trunc(Math.abs(v/60)),_=Math.trunc(Math.abs(v%60)),D=v>=0?"+":"-";switch(m){case"short":return`${D}${mo(d,2)}:${mo(_,2)}`;case"narrow":return`${D}${d}${_>0?`:${_}`:""}`;case"techie":return`${D}${mo(d,2)}${mo(_,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function ls(v){return function Oo(v,m){return m.reduce((d,_)=>(d[_]=v[_],d),{})}(v,["hour","minute","second","millisecond"])}const sl=["January","February","March","April","May","June","July","August","September","October","November","December"],la=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ss=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ts(v){switch(v){case"narrow":return[...Ss];case"short":return[...la];case"long":return[...sl];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 Ns=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],So=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bo=["M","T","W","T","F","S","S"];function lo(v){switch(v){case"narrow":return[...Bo];case"short":return[...So];case"long":return[...Ns];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ps=["AM","PM"],Da=["Before Christ","Anno Domini"],Ms=["BC","AD"],Us=["B","A"];function ca(v){switch(v){case"narrow":return[...Us];case"short":return[...Ms];case"long":return[...Da];default:return null}}function Ct(v,m){let d="";for(const _ of v)d+=_.literal?_.val:m(_.val);return d}const jn={D:Me,DD:ht,DDD:Tn,DDDD:Wt,t:Zt,tt:rt,ttt:Ht,tttt:en,T:Nn,TT:mn,TTT:Mn,TTTT:tt,f:Kt,ff:Te,fff:z,ffff:V,F:At,FF:be,FFF:L,FFFF:Ne};class Pn{static create(m,d={}){return new Pn(m,d)}static parseFormat(m){let d=null,_="",D=!1;const W=[];for(let re=0;re0&&W.push({literal:D||/^\s+$/.test(_),val:_}),d=null,_="",D=!D):D||ye===d?_+=ye:(_.length>0&&W.push({literal:/^\s+$/.test(_),val:_}),_=ye,d=ye)}return _.length>0&&W.push({literal:D||/^\s+$/.test(_),val:_}),W}static macroTokenToFormatOpts(m){return jn[m]}constructor(m,d){this.opts=d,this.loc=m,this.systemLoc=null}formatWithSystemDefault(m,d){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(m,{...this.opts,...d}).format()}dtFormatter(m,d={}){return this.loc.dtFormatter(m,{...this.opts,...d})}formatDateTime(m,d){return this.dtFormatter(m,d).format()}formatDateTimeParts(m,d){return this.dtFormatter(m,d).formatToParts()}formatInterval(m,d){return this.dtFormatter(m.start,d).dtf.formatRange(m.start.toJSDate(),m.end.toJSDate())}resolvedOptions(m,d){return this.dtFormatter(m,d).resolvedOptions()}num(m,d=0){if(this.opts.forceSimple)return mo(m,d);const _={...this.opts};return d>0&&(_.padTo=d),this.loc.numberFormatter(_).format(m)}formatDateTimeFromString(m,d){const _="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,W=(nr,mr)=>this.loc.extract(m,nr,mr),re=nr=>m.isOffsetFixed&&0===m.offset&&nr.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,nr.format):"",Xe=(nr,mr)=>_?function q(v,m){return Ts(m)[v.month-1]}(m,nr):W(mr?{month:nr}:{month:nr,day:"numeric"},"month"),yt=(nr,mr)=>_?function Aa(v,m){return lo(m)[v.weekday-1]}(m,nr):W(mr?{weekday:nr}:{weekday:nr,month:"long",day:"numeric"},"weekday"),dn=nr=>{const mr=Pn.macroTokenToFormatOpts(nr);return mr?this.formatWithSystemDefault(m,mr):nr},yn=nr=>_?function qe(v,m){return ca(m)[v.year<0?0:1]}(m,nr):W({era:nr},"era");return Ct(Pn.parseFormat(d),nr=>{switch(nr){case"S":return this.num(m.millisecond);case"u":case"SSS":return this.num(m.millisecond,3);case"s":return this.num(m.second);case"ss":return this.num(m.second,2);case"uu":return this.num(Math.floor(m.millisecond/10),2);case"uuu":return this.num(Math.floor(m.millisecond/100));case"m":return this.num(m.minute);case"mm":return this.num(m.minute,2);case"h":return this.num(m.hour%12==0?12:m.hour%12);case"hh":return this.num(m.hour%12==0?12:m.hour%12,2);case"H":return this.num(m.hour);case"HH":return this.num(m.hour,2);case"Z":return re({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return re({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return re({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return _?function Qa(v){return ps[v.hour<12?0:1]}(m):W({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?W({day:"numeric"},"day"):this.num(m.day);case"dd":return D?W({day:"2-digit"},"day"):this.num(m.day,2);case"c":case"E":return this.num(m.weekday);case"ccc":return yt("short",!0);case"cccc":return yt("long",!0);case"ccccc":return yt("narrow",!0);case"EEE":return yt("short",!1);case"EEEE":return yt("long",!1);case"EEEEE":return yt("narrow",!1);case"L":return D?W({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?W({month:"2-digit",day:"numeric"},"month"):this.num(m.month,2);case"LLL":return Xe("short",!0);case"LLLL":return Xe("long",!0);case"LLLLL":return Xe("narrow",!0);case"M":return D?W({month:"numeric"},"month"):this.num(m.month);case"MM":return D?W({month:"2-digit"},"month"):this.num(m.month,2);case"MMM":return Xe("short",!1);case"MMMM":return Xe("long",!1);case"MMMMM":return Xe("narrow",!1);case"y":return D?W({year:"numeric"},"year"):this.num(m.year);case"yy":return D?W({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?W({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?W({year:"numeric"},"year"):this.num(m.year,6);case"G":return yn("short");case"GG":return yn("long");case"GGGGG":return yn("narrow");case"kk":return this.num(m.weekYear.toString().slice(-2),2);case"kkkk":return this.num(m.weekYear,4);case"W":return this.num(m.weekNumber);case"WW":return this.num(m.weekNumber,2);case"n":return this.num(m.localWeekNumber);case"nn":return this.num(m.localWeekNumber,2);case"ii":return this.num(m.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(m.localWeekYear,4);case"o":return this.num(m.ordinal);case"ooo":return this.num(m.ordinal,3);case"q":return this.num(m.quarter);case"qq":return this.num(m.quarter,2);case"X":return this.num(Math.floor(m.ts/1e3));case"x":return this.num(m.ts);default:return dn(nr)}})}formatDurationFromString(m,d){const _=Xe=>{switch(Xe[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}},W=Pn.parseFormat(d),re=W.reduce((Xe,{literal:yt,val:dn})=>yt?Xe:Xe.concat(dn),[]);return Ct(W,(Xe=>yt=>{const dn=_(yt);return dn?this.num(Xe.get(dn),yt.length):yt})(m.shiftTo(...re.map(_).filter(Xe=>Xe))))}}const Gn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qn(...v){const m=v.reduce((d,_)=>d+_.source,"");return RegExp(`^${m}$`)}function qr(...v){return m=>v.reduce(([d,_,D],W)=>{const[re,ye,Xe]=W(m,D);return[{...d,...re},ye||_,Xe]},[{},null,1]).slice(0,2)}function zi(v,...m){if(null==v)return[null,null];for(const[d,_]of m){const D=d.exec(v);if(D)return _(D)}return[null,null]}function kr(...v){return(m,d)=>{const _={};let D;for(D=0;Dvoid 0!==nr&&(mr||nr&&dn)?-nr:nr;return[{years:_r(Rs(d)),months:_r(Rs(_)),weeks:_r(Rs(D)),days:_r(Rs(W)),hours:_r(Rs(re)),minutes:_r(Rs(ye)),seconds:_r(Rs(Xe),"-0"===Xe),milliseconds:_r(Xr(yt),yn)}]}const hc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function al(v,m,d,_,D,W,re){const ye={year:2===m.length?Ao(Go(m)):Go(m),month:la.indexOf(d)+1,day:Go(_),hour:Go(D),minute:Go(W)};return re&&(ye.second=Go(re)),v&&(ye.weekday=v.length>3?Ns.indexOf(v)+1:So.indexOf(v)+1),ye}const _i=/^(?:(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 cs(v){const[,m,d,_,D,W,re,ye,Xe,yt,dn,yn]=v,_r=al(m,D,_,d,W,re,ye);let nr;return nr=Xe?hc[Xe]:yt?0:As(dn,yn),[_r,new Ni(nr)]}const ja=/^(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$/,yl=/^(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$/,Ru=/^(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 bl(v){const[,m,d,_,D,W,re,ye]=v;return[al(m,D,_,d,W,re,ye),Ni.utcInstance]}function ll(v){const[,m,d,_,D,W,re,ye]=v;return[al(m,ye,d,_,D,W,re),Ni.utcInstance]}const yi=qn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ro),kl=qn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ro),Jc=qn(/(\d{4})-?(\d{3})/,Ro),eu=qn(Fi),cl=qr(function $t(v,m){return[{year:Fe(v,m),month:Fe(v,m+1,1),day:Fe(v,m+2,1)},null,m+3]},wr,Jr,ts),$s=qr(Ua,wr,Jr,ts),Il=qr(ua,wr,Jr,ts),Sa=qr(wr,Jr,ts),nu=qr(wr),wl=qn(/(\d{4})-(\d\d)-(\d\d)/,Q),$l=qn(ue),ul=qr(wr,Jr,ts),Vl="Invalid Duration",da={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}},ru={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},...da},Vo=365.2425,Wo=30.436875,oo={years:{quarters:4,months:12,weeks:Vo/7,days:Vo,hours:24*Vo,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Vo/28,days:Vo/4,hours:24*Vo/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Wo/7,days:Wo,hours:24*Wo,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...da},$n=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Tr=$n.slice(0).reverse();function Oi(v,m,d=!1){const _={values:d?m.values:{...v.values,...m.values||{}},loc:v.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||v.conversionAccuracy,matrix:m.matrix||v.matrix};return new Bi(_)}function ys(v,m){let d=m.milliseconds??0;for(const _ of Tr.slice(1))m[_]&&(d+=m[_]*v[_].milliseconds);return d}function Qi(v,m){const d=ys(v,m)<0?-1:1;$n.reduceRight((_,D)=>{if(Pr(m[D]))return _;if(_){const re=v[D][_],ye=Math.floor(m[_]*d/re);m[D]+=ye*d,m[_]-=ye*re*d}return D},null),$n.reduce((_,D)=>{if(Pr(m[D]))return _;if(_){const W=m[_]%1;m[_]-=W,m[D]+=W*v[_][D]}return D},null)}class Bi{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let _=d?oo:ru;m.matrix&&(_=m.matrix),this.values=m.values,this.loc=m.loc||fr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=_,this.isLuxonDuration=!0}static fromMillis(m,d){return Bi.fromObject({milliseconds:m},d)}static fromObject(m,d={}){if(null==m||"object"!=typeof m)throw new Ke("Duration.fromObject: argument expected to be an object, got "+(null===m?"null":typeof m));return new Bi({values:_s(m,Bi.normalizeUnit),loc:fr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Do(m))return Bi.fromMillis(m);if(Bi.isDuration(m))return m;if("object"==typeof m)return Bi.fromObject(m);throw new Ke(`Unknown duration argument ${m} of type ${typeof m}`)}static fromISO(m,d){const[_]=function ns(v){return zi(v,[vl,$a])}(m);return _?Bi.fromObject(_,d):Bi.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[_]=function Mc(v){return zi(v,[Ml,nu])}(m);return _?Bi.fromObject(_,d):Bi.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Duration is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new ze(_);return new Bi({invalid:_})}static normalizeUnit(m){const d={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"}[m&&m.toLowerCase()];if(!d)throw new Ft(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const _={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?Pn.create(this.loc,_).formatDurationFromString(this,m):Vl}toHuman(m={}){if(!this.isValid)return Vl;const d=$n.map(_=>{const D=this.values[_];return Pr(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:_.slice(0,-1)}).format(D)}).filter(_=>_);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=Ds(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===m&&(m+="T0S"),m}toISOTime(m={}){if(!this.isValid)return null;const d=this.toMillis();return d<0||d>=864e5?null:(m={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...m,includeOffset:!1},Fr.fromMillis(d,{zone:"UTC"}).toISOTime(m))}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?ys(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(m){if(!this.isValid)return this;const d=Bi.fromDurationLike(m),_={};for(const D of $n)(Cs(d.values,D)||Cs(this.values,D))&&(_[D]=d.get(D)+this.get(D));return Oi(this,{values:_},!0)}minus(m){if(!this.isValid)return this;const d=Bi.fromDurationLike(m);return this.plus(d.negate())}mapUnits(m){if(!this.isValid)return this;const d={};for(const _ of Object.keys(this.values))d[_]=Gs(m(this.values[_],_));return Oi(this,{values:d},!0)}get(m){return this[Bi.normalizeUnit(m)]}set(m){return this.isValid?Oi(this,{values:{...this.values,..._s(m,Bi.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:_,matrix:D}={}){return Oi(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:_})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return Qi(this.matrix,m),Oi(this,{values:m},!0)}rescale(){return this.isValid?Oi(this,{values:function so(v){const m={};for(const[d,_]of Object.entries(v))0!==_&&(m[d]=_);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(re=>Bi.normalizeUnit(re));const d={},_={},D=this.toObject();let W;for(const re of $n)if(m.indexOf(re)>=0){W=re;let ye=0;for(const yt in _)ye+=this.matrix[yt][re]*_[yt],_[yt]=0;Do(D[re])&&(ye+=D[re]);const Xe=Math.trunc(ye);d[re]=Xe,_[re]=(1e3*ye-1e3*Xe)/1e3}else Do(D[re])&&(_[re]=D[re]);for(const re in _)0!==_[re]&&(d[W]+=re===W?_[re]:_[re]/this.matrix[W][re]);return Qi(this.matrix,d),Oi(this,{values:d},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const m={};for(const d of Object.keys(this.values))m[d]=0===this.values[d]?0:-this.values[d];return Oi(this,{values:m},!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(m){if(!this.isValid||!m.isValid||!this.loc.equals(m.loc))return!1;function d(_,D){return void 0===_||0===_?void 0===D||0===D:_===D}for(const _ of $n)if(!d(this.values[_],m.values[_]))return!1;return!0}}const Ki="Invalid Interval";class co{constructor(m){this.s=m.start,this.e=m.end,this.invalid=m.invalid||null,this.isLuxonInterval=!0}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Interval is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new _t(_);return new co({invalid:_})}static fromDateTimes(m,d){const _=zl(m),D=zl(d),W=function no(v,m){return v&&v.isValid?m&&m.isValid?mm}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?co.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(zl).filter(re=>this.contains(re)).sort((re,ye)=>re.toMillis()-ye.toMillis()),_=[];let{s:D}=this,W=0;for(;D+this.e?this.e:re;_.push(co.fromDateTimes(D,ye)),D=ye,W+=1}return _}splitBy(m){const d=Bi.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let W,{s:_}=this,D=1;const re=[];for(;_Xe*D));W=+ye>+this.e?this.e:ye,re.push(co.fromDateTimes(_,W)),_=W,D+=1}return re}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,_=this.e=_?null:co.fromDateTimes(d,_)}union(m){return this.isValid?co.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,_]=m.sort((D,W)=>D.s-W.s).reduce(([D,W],re)=>W?W.overlaps(re)||W.abutsStart(re)?[D,W.union(re)]:[D.concat([W]),re]:[D,re],[[],null]);return _&&d.push(_),d}static xor(m){let d=null,_=0;const D=[],W=m.map(Xe=>[{time:Xe.s,type:"s"},{time:Xe.e,type:"e"}]),ye=Array.prototype.concat(...W).sort((Xe,yt)=>Xe.time-yt.time);for(const Xe of ye)_+="s"===Xe.type?1:-1,1===_?d=Xe.time:(d&&+d!=+Xe.time&&D.push(co.fromDateTimes(d,Xe.time)),d=null);return co.merge(D)}difference(...m){return co.xor([this].concat(m)).map(d=>this.intersection(d)).filter(d=>d&&!d.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ki}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(m=Me,d={}){return this.isValid?Pn.create(this.s.loc.clone(d),m).formatInterval(this):Ki}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:Ki}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ki}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:Ki}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:Ki}toDuration(m,d){return this.isValid?this.e.diff(this.s,m,d):Bi.invalid(this.invalidReason)}mapEndpoints(m){return co.fromDateTimes(m(this.s),m(this.e))}}class ri{static hasDST(m=Re.defaultZone){const d=Fr.now().setZone(m).set({month:12});return!m.isUniversal&&d.offset!==d.set({month:6}).offset}static isValidIANAZone(m){return Hr.isValidZone(m)}static normalizeZone(m){return $o(m,Re.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,_,W)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,_,W)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||fr.create(d,_,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||fr.create(d,_,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return fr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return fr.create(d,null,"gregory").eras(m)}static features(){return{relative:Li(),localeWeek:bi()}}}function Xs(v,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),_=d(m)-d(v);return Math.floor(Bi.fromMillis(_).as("days"))}function Ci(v,m=d=>d){return{regex:v,deser:([d])=>m(function Jo(v){let m=parseInt(v,10);if(isNaN(m)){m="";for(let d=0;d=W&&_<=re&&(m+=_-W)}}return parseInt(m,10)}return m}(d))}}const uo="[ \xa0]",Ui=new RegExp(uo,"g");function U(v){return v.replace(/\./g,"\\.?").replace(Ui,uo)}function Ie(v){return v.replace(/\./g,"").replace(Ui," ").toLowerCase()}function te(v,m){return null===v?null:{regex:RegExp(v.map(U).join("|")),deser:([d])=>v.findIndex(_=>Ie(d)===Ie(_))+m}}function ve(v,m){return{regex:v,deser:([,d,_])=>As(d,_),groups:m}}function Et(v){return{regex:v,deser:([m])=>m}}function Gt(v){return v.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const rr={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 li=null;function bs(v,m){return Array.prototype.concat(...v.map(d=>function wi(v,m){if(v.literal)return v;const _=Va(Pn.macroTokenToFormatOpts(v.val),m);return null==_||_.includes(void 0)?v:_}(d,m)))}class Lo{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=bs(Pn.parseFormat(d),m),this.units=this.tokens.map(_=>function Vn(v,m){const d=ao(m),_=ao(m,"{2}"),D=ao(m,"{3}"),W=ao(m,"{4}"),re=ao(m,"{6}"),ye=ao(m,"{1,2}"),Xe=ao(m,"{1,3}"),yt=ao(m,"{1,6}"),dn=ao(m,"{1,9}"),yn=ao(m,"{2,4}"),_r=ao(m,"{4,6}"),nr=Ai=>({regex:RegExp(Gt(Ai.val)),deser:([ko])=>ko,literal:!0}),ti=(Ai=>{if(v.literal)return nr(Ai);switch(Ai.val){case"G":return te(m.eras("short"),0);case"GG":return te(m.eras("long"),0);case"y":return Ci(yt);case"yy":case"kk":return Ci(yn,Ao);case"yyyy":case"kkkk":return Ci(W);case"yyyyy":return Ci(_r);case"yyyyyy":return Ci(re);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Ci(ye);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Ci(_);case"MMM":return te(m.months("short",!0),1);case"MMMM":return te(m.months("long",!0),1);case"LLL":return te(m.months("short",!1),1);case"LLLL":return te(m.months("long",!1),1);case"o":case"S":return Ci(Xe);case"ooo":case"SSS":return Ci(D);case"u":return Et(dn);case"uu":return Et(ye);case"uuu":case"E":case"c":return Ci(d);case"a":return te(m.meridiems(),0);case"EEE":return te(m.weekdays("short",!1),1);case"EEEE":return te(m.weekdays("long",!1),1);case"ccc":return te(m.weekdays("short",!0),1);case"cccc":return te(m.weekdays("long",!0),1);case"Z":case"ZZ":return ve(new RegExp(`([+-]${ye.source})(?::(${_.source}))?`),2);case"ZZZ":return ve(new RegExp(`([+-]${ye.source})(${_.source})?`),2);case"z":return Et(/[a-z_+-/]{1,256}?/i);case" ":return Et(/[^\S\n\r]/);default:return nr(Ai)}})(v)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ti.token=v,ti}(_,m)),this.disqualifyingUnit=this.units.find(_=>_.invalidReason),!this.disqualifyingUnit){const[_,D]=function ki(v){return[`^${v.map(d=>d.regex).reduce((d,_)=>`${d}(${_.source})`,"")}$`,v]}(this.units);this.regex=RegExp(_,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,_]=function Di(v,m,d){const _=v.match(m);if(_){const D={};let W=1;for(const re in d)if(Cs(d,re)){const ye=d[re],Xe=ye.groups?ye.groups+1:1;!ye.literal&&ye.token&&(D[ye.token.val[0]]=ye.deser(_.slice(W,W+Xe))),W+=Xe}return[_,D]}return[_,{}]}(m,this.regex,this.handlers),[D,W,re]=_?function Nr(v){let _,d=null;return Pr(v.z)||(d=Hr.create(v.z)),Pr(v.Z)||(d||(d=new Ni(v.Z)),_=v.Z),Pr(v.q)||(v.M=3*(v.q-1)+1),Pr(v.h)||(v.h<12&&1===v.a?v.h+=12:12===v.h&&0===v.a&&(v.h=0)),0===v.G&&v.y&&(v.y=-v.y),Pr(v.u)||(v.S=Xr(v.u)),[Object.keys(v).reduce((W,re)=>{const ye=(W=>{switch(W){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}})(re);return ye&&(W[ye]=v[re]),W},{}),d,_]}(_):[null,null,void 0];if(Cs(_,"a")&&Cs(_,"H"))throw new Ue("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:_,result:D,zone:W,specificOffset:re}}return{input:m,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ha(v,m,d){return new Lo(v,d).explainFromTokens(m)}function Va(v,m){if(!v)return null;const _=Pn.create(m,v).dtFormatter(function ii(){return li||(li=Fr.fromMillis(1555555555555)),li}()),D=_.formatToParts(),W=_.resolvedOptions();return D.map(re=>function ci(v,m,d){const{type:_,value:D}=v;if("literal"===_){const Xe=/^\s+$/.test(D);return{literal:!Xe,val:Xe?" ":D}}let re=_;"hour"===_&&(re=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let ye=rr[re];if("object"==typeof ye&&(ye=ye[m[_]]),ye)return{literal:!1,val:ye}}(re,v,W))}const Ls="Invalid DateTime",Ta=864e13;function Ma(v){return new gt("unsupported zone",`the zone "${v.name}" is not supported`)}function qa(v){return null===v.weekData&&(v.weekData=tr(v.c)),v.weekData}function iu(v){return null===v.localWeekData&&(v.localWeekData=tr(v.c,v.loc.getMinDaysInFirstWeek(),v.loc.getStartOfWeek())),v.localWeekData}function ka(v,m){const d={ts:v.ts,zone:v.zone,c:v.c,o:v.o,loc:v.loc,invalid:v.invalid};return new Fr({...d,...m,old:d})}function Ia(v,m,d){let _=v-60*m*1e3;const D=d.offset(_);if(m===D)return[_,m];_-=60*(D-m)*1e3;const W=d.offset(_);return D===W?[_,D]:[v-60*Math.min(D,W)*1e3,Math.max(D,W)]}function Ol(v,m){const d=new Date(v+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function ou(v,m,d){return Ia(Xo(v),m,d)}function Nu(v,m){const d=v.o,_=v.c.year+Math.trunc(m.years),D=v.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),W={...v.c,year:_,month:D,day:Math.min(v.c.day,fs(_,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},re=Bi.fromObject({years:m.years-Math.trunc(m.years),quarters:m.quarters-Math.trunc(m.quarters),months:m.months-Math.trunc(m.months),weeks:m.weeks-Math.trunc(m.weeks),days:m.days-Math.trunc(m.days),hours:m.hours,minutes:m.minutes,seconds:m.seconds,milliseconds:m.milliseconds}).as("milliseconds"),ye=Xo(W);let[Xe,yt]=Ia(ye,d,v.zone);return 0!==re&&(Xe+=re,yt=v.zone.offset(Xe)),{ts:Xe,o:yt}}function Hl(v,m,d,_,D,W){const{setZone:re,zone:ye}=d;if(v&&0!==Object.keys(v).length||m){const Xe=m||ye,yt=Fr.fromObject(v,{...d,zone:Xe,specificOffset:W});return re?yt:yt.setZone(ye)}return Fr.invalid(new gt("unparsable",`the input "${D}" can't be parsed as ${_}`))}function fc(v,m,d=!0){return v.isValid?Pn.create(fr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(v,m):null}function dl(v,m){const d=v.c.year>9999||v.c.year<0;let _="";return d&&v.c.year>=0&&(_+="+"),_+=mo(v.c.year,d?6:4),m?(_+="-",_+=mo(v.c.month),_+="-",_+=mo(v.c.day)):(_+=mo(v.c.month),_+=mo(v.c.day)),_}function yo(v,m,d,_,D,W){let re=mo(v.c.hour);return m?(re+=":",re+=mo(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(re+=":")):re+=mo(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(re+=mo(v.c.second),(0!==v.c.millisecond||!_)&&(re+=".",re+=mo(v.c.millisecond,3))),D&&(v.isOffsetFixed&&0===v.offset&&!W?re+="Z":v.o<0?(re+="-",re+=mo(Math.trunc(-v.o/60)),re+=":",re+=mo(Math.trunc(-v.o%60))):(re+="+",re+=mo(Math.trunc(v.o/60)),re+=":",re+=mo(Math.trunc(v.o%60)))),W&&(re+="["+v.zone.ianaName+"]"),re}const zo={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},El={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},su={ordinal:1,hour:0,minute:0,second:0,millisecond:0},pc=["year","month","day","hour","minute","second","millisecond"],au=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Lu=["year","ordinal","hour","minute","second","millisecond"];function Pu(v){switch(v.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function lh(v){const m={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"}[v.toLowerCase()];if(!m)throw new Ft(v);return m}(v)}}function Ur(v,m){const d=$o(m.zone,Re.defaultZone);if(!d.isValid)return Fr.invalid(Ma(d));const _=fr.fromObject(m);let D,W;if(Pr(v.year))D=Re.now();else{for(const Xe of pc)Pr(v[Xe])&&(v[Xe]=zo[Xe]);const re=Rr(v)||Qr(v);if(re)return Fr.invalid(re);const ye=function Cf(v){return Ha[v]||(void 0===Wl&&(Wl=Re.now()),Ha[v]=v.offset(Wl)),Ha[v]}(d);[D,W]=ou(v,ye,d)}return new Fr({ts:D,zone:d,loc:_,o:W})}function kc(v,m,d){const _=!!Pr(d.round)||d.round,D=(re,ye)=>(re=Ds(re,_||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(re,ye)),W=re=>d.calendary?m.hasSame(v,re)?0:m.startOf(re).diff(v.startOf(re),re).get(re):m.diff(v,re).get(re);if(d.unit)return D(W(d.unit),d.unit);for(const re of d.units){const ye=W(re);if(Math.abs(ye)>=1)return D(ye,re)}return D(v>m?-0:0,d.units[d.units.length-1])}function Hs(v){let d,m={};return v.length>0&&"object"==typeof v[v.length-1]?(m=v[v.length-1],d=Array.from(v).slice(0,v.length-1)):d=Array.from(v),[m,d]}let Wl,Ha={};class Fr{constructor(m){const d=m.zone||Re.defaultZone;let _=m.invalid||(Number.isNaN(m.ts)?new gt("invalid input"):null)||(d.isValid?null:Ma(d));this.ts=Pr(m.ts)?Re.now():m.ts;let D=null,W=null;if(!_)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,W]=[m.old.c,m.old.o];else{const ye=Do(m.o)&&!m.old?m.o:d.offset(this.ts);D=Ol(this.ts,ye),_=Number.isNaN(D.year)?new gt("invalid input"):null,D=_?null:D,W=_?null:ye}this._zone=d,this.loc=m.loc||fr.create(),this.invalid=_,this.weekData=null,this.localWeekData=null,this.c=D,this.o=W,this.isLuxonDateTime=!0}static now(){return new Fr({})}static local(){const[m,d]=Hs(arguments),[_,D,W,re,ye,Xe,yt]=d;return Ur({year:_,month:D,day:W,hour:re,minute:ye,second:Xe,millisecond:yt},m)}static utc(){const[m,d]=Hs(arguments),[_,D,W,re,ye,Xe,yt]=d;return m.zone=Ni.utcInstance,Ur({year:_,month:D,day:W,hour:re,minute:ye,second:Xe,millisecond:yt},m)}static fromJSDate(m,d={}){const _=function oa(v){return"[object Date]"===Object.prototype.toString.call(v)}(m)?m.valueOf():NaN;if(Number.isNaN(_))return Fr.invalid("invalid input");const D=$o(d.zone,Re.defaultZone);return D.isValid?new Fr({ts:_,zone:D,loc:fr.fromObject(d)}):Fr.invalid(Ma(D))}static fromMillis(m,d={}){if(Do(m))return m<-Ta||m>Ta?Fr.invalid("Timestamp out of range"):new Fr({ts:m,zone:$o(d.zone,Re.defaultZone),loc:fr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Do(m))return new Fr({ts:1e3*m,zone:$o(d.zone,Re.defaultZone),loc:fr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const _=$o(d.zone,Re.defaultZone);if(!_.isValid)return Fr.invalid(Ma(_));const D=fr.fromObject(d),W=_s(m,Pu),{minDaysInFirstWeek:re,startOfWeek:ye}=gi(W,D),Xe=Re.now(),yt=Pr(d.specificOffset)?_.offset(Xe):d.specificOffset,dn=!Pr(W.ordinal),yn=!Pr(W.year),_r=!Pr(W.month)||!Pr(W.day),nr=yn||_r,mr=W.weekYear||W.weekNumber;if((nr||dn)&&mr)throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_r&&dn)throw new Ue("Can't mix ordinal dates with month/day");const ti=mr||W.weekday&&!nr;let Ai,ko,ho=Ol(Xe,yt);ti?(Ai=au,ko=El,ho=tr(ho,re,ye)):dn?(Ai=Lu,ko=su,ho=Er(ho)):(Ai=pc,ko=zo);let Ea=!1;for(const Fl of Ai)Pr(W[Fl])?W[Fl]=Ea?ko[Fl]:ho[Fl]:Ea=!0;const ea=ti?function ni(v,m=4,d=1){const _=es(v.weekYear),D=hs(v.weekNumber,1,_o(v.weekYear,m,d)),W=hs(v.weekday,1,7);return _?D?!W&&pn("weekday",v.weekday):pn("week",v.weekNumber):pn("weekYear",v.weekYear)}(W,re,ye):dn?function Mi(v){const m=es(v.year),d=hs(v.ordinal,1,io(v.year));return m?!d&&pn("ordinal",v.ordinal):pn("year",v.year)}(W):Rr(W),Mu=ea||Qr(W);if(Mu)return Fr.invalid(Mu);const _l=ti?cr(W,re,ye):dn?Cr(W):W,[xa,Xa]=ou(_l,yt,_),Al=new Fr({ts:xa,zone:_,o:Xa,loc:D});return W.weekday&&nr&&m.weekday!==Al.weekday?Fr.invalid("mismatched weekday",`you can't specify both a weekday of ${W.weekday} and a date of ${Al.toISO()}`):Al.isValid?Al:Fr.invalid(Al.invalid)}static fromISO(m,d={}){const[_,D]=function ks(v){return zi(v,[yi,cl],[kl,$s],[Jc,Il],[eu,Sa])}(m);return Hl(_,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[_,D]=function js(v){return zi(function vs(v){return v.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(v),[_i,cs])}(m);return Hl(_,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[_,D]=function tu(v){return zi(v,[ja,bl],[yl,bl],[Ru,ll])}(m);return Hl(_,D,d,"HTTP",d)}static fromFormat(m,d,_={}){if(Pr(m)||Pr(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:W=null}=_,re=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),[ye,Xe,yt,dn]=function Yo(v,m,d){const{result:_,zone:D,specificOffset:W,invalidReason:re}=ha(v,m,d);return[_,D,W,re]}(re,m,d);return dn?Fr.invalid(dn):Hl(ye,Xe,_,`format ${d}`,m,yt)}static fromString(m,d,_={}){return Fr.fromFormat(m,d,_)}static fromSQL(m,d={}){const[_,D]=function jl(v){return zi(v,[wl,cl],[$l,ul])}(m);return Hl(_,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new Je(_);return new Fr({invalid:_})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const _=Va(m,fr.fromObject(d));return _?_.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return bs(Pn.parseFormat(m),fr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){Wl=void 0,Ha={}}get(m){return this[m]}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?qa(this).weekYear:NaN}get weekNumber(){return this.isValid?qa(this).weekNumber:NaN}get weekday(){return this.isValid?qa(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?iu(this).weekday:NaN}get localWeekNumber(){return this.isValid?iu(this).weekNumber:NaN}get localWeekYear(){return this.isValid?iu(this).weekYear:NaN}get ordinal(){return this.isValid?Er(this.c).ordinal:NaN}get monthShort(){return this.isValid?ri.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ri.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ri.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ri.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 m=864e5,d=6e4,_=Xo(this.c),D=this.zone.offset(_-m),W=this.zone.offset(_+m),re=this.zone.offset(_-D*d),ye=this.zone.offset(_-W*d);if(re===ye)return[this];const Xe=_-re*d,yt=_-ye*d,dn=Ol(Xe,re),yn=Ol(yt,ye);return dn.hour===yn.hour&&dn.minute===yn.minute&&dn.second===yn.second&&dn.millisecond===yn.millisecond?[ka(this,{ts:Xe}),ka(this,{ts:yt})]:[this]}get isInLeapYear(){return go(this.year)}get daysInMonth(){return fs(this.year,this.month)}get daysInYear(){return this.isValid?io(this.year):NaN}get weeksInWeekYear(){return this.isValid?_o(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_o(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:_,calendar:D}=Pn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:_,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Ni.instance(m),d)}toLocal(){return this.setZone(Re.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:_=!1}={}){if((m=$o(m,Re.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||_){const W=m.offset(this.ts),re=this.toObject();[D]=ou(re,W,m)}return ka(this,{ts:D,zone:m})}return Fr.invalid(Ma(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:_}={}){return ka(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:_})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=_s(m,Pu),{minDaysInFirstWeek:_,startOfWeek:D}=gi(d,this.loc),W=!Pr(d.weekYear)||!Pr(d.weekNumber)||!Pr(d.weekday),re=!Pr(d.ordinal),ye=!Pr(d.year),Xe=!Pr(d.month)||!Pr(d.day);if((ye||Xe||re)&&(d.weekYear||d.weekNumber))throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Xe&&re)throw new Ue("Can't mix ordinal dates with month/day");let yn;W?yn=cr({...tr(this.c,_,D),...d},_,D):Pr(d.ordinal)?(yn={...this.toObject(),...d},Pr(d.day)&&(yn.day=Math.min(fs(yn.year,yn.month),yn.day))):yn=Cr({...Er(this.c),...d});const[_r,nr]=ou(yn,this.o,this.zone);return ka(this,{ts:_r,o:nr})}plus(m){return this.isValid?ka(this,Nu(this,Bi.fromDurationLike(m))):this}minus(m){return this.isValid?ka(this,Nu(this,Bi.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const _={},D=Bi.normalizeUnit(m);switch(D){case"years":_.month=1;case"quarters":case"months":_.day=1;case"weeks":case"days":_.hour=0;case"hours":_.minute=0;case"minutes":_.second=0;case"seconds":_.millisecond=0}if("weeks"===D)if(d){const W=this.loc.getStartOfWeek(),{weekday:re}=this;rethis.valueOf(),yt=function Uo(v,m,d,_){let[D,W,re,ye]=function Za(v,m,d){const _=[["years",(Xe,yt)=>yt.year-Xe.year],["quarters",(Xe,yt)=>yt.quarter-Xe.quarter+4*(yt.year-Xe.year)],["months",(Xe,yt)=>yt.month-Xe.month+12*(yt.year-Xe.year)],["weeks",(Xe,yt)=>{const dn=Xs(Xe,yt);return(dn-dn%7)/7}],["days",Xs]],D={},W=v;let re,ye;for(const[Xe,yt]of _)d.indexOf(Xe)>=0&&(re=Xe,D[Xe]=yt(v,m),ye=W.plus(D),ye>m?(D[Xe]--,(v=W.plus(D))>m&&(ye=v,D[Xe]--,v=W.plus(D))):v=ye);return[v,D,ye,re]}(v,m,d);const Xe=m-D,yt=d.filter(yn=>["hours","minutes","seconds","milliseconds"].indexOf(yn)>=0);0===yt.length&&(re0?Bi.fromMillis(Xe,_).shiftTo(...yt).plus(dn):dn}(re?this:m,re?m:this,W,D);return re?yt.negate():yt}diffNow(m="milliseconds",d={}){return this.diff(Fr.now(),m,d)}until(m){return this.isValid?co.fromDateTimes(this,m):this}hasSame(m,d,_){if(!this.isValid)return!1;const D=m.valueOf(),W=this.setZone(m.zone,{keepLocalTime:!0});return W.startOf(d,_)<=D&&D<=W.endOf(d,_)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Fr.fromObject({},{zone:this.zone}),_=m.padding?thisd.valueOf(),Math.min)}static max(...m){if(!m.every(Fr.isDateTime))throw new Ke("max requires all arguments be DateTimes");return Ks(m,d=>d.valueOf(),Math.max)}static fromFormatExplain(m,d,_={}){const{locale:D=null,numberingSystem:W=null}=_;return ha(fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,_={}){return Fr.fromFormatExplain(m,d,_)}static buildFormatParser(m,d={}){const{locale:_=null,numberingSystem:D=null}=d,W=fr.fromOpts({locale:_,numberingSystem:D,defaultToEN:!0});return new Lo(W,m)}static fromFormatParser(m,d,_={}){if(Pr(m)||Pr(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:W=null}=_,re=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0});if(!re.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${re}, but the format parser was created for ${d.locale}`);const{result:ye,zone:Xe,specificOffset:yt,invalidReason:dn}=d.explainFromTokens(m);return dn?Fr.invalid(dn):Hl(ye,Xe,_,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return Me}static get DATE_MED(){return ht}static get DATE_MED_WITH_WEEKDAY(){return Xt}static get DATE_FULL(){return Tn}static get DATE_HUGE(){return Wt}static get TIME_SIMPLE(){return Zt}static get TIME_WITH_SECONDS(){return rt}static get TIME_WITH_SHORT_OFFSET(){return Ht}static get TIME_WITH_LONG_OFFSET(){return en}static get TIME_24_SIMPLE(){return Nn}static get TIME_24_WITH_SECONDS(){return mn}static get TIME_24_WITH_SHORT_OFFSET(){return Mn}static get TIME_24_WITH_LONG_OFFSET(){return tt}static get DATETIME_SHORT(){return Kt}static get DATETIME_SHORT_WITH_SECONDS(){return At}static get DATETIME_MED(){return Te}static get DATETIME_MED_WITH_SECONDS(){return be}static get DATETIME_MED_WITH_WEEKDAY(){return He}static get DATETIME_FULL(){return z}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return V}static get DATETIME_HUGE_WITH_SECONDS(){return Ne}}function zl(v){if(Fr.isDateTime(v))return v;if(v&&v.valueOf&&Do(v.valueOf()))return Fr.fromJSDate(v);if(v&&"object"==typeof v)return Fr.fromObject(v);throw new Ke(`Unknown datetime argument: ${v}, of type ${typeof v}`)}const hl=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function gd(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Xl=(()=>{class v extends sn.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(sn.Ju,{optional:!0}),_=(0,c.WQX)(hl,{optional:!0});this._useUTC=!!_?.useUtc,this._firstDayOfWeek=_?.firstDayOfWeek||0,this._defaultOutputCalendar=_?.defaultOutputCalendar||"gregory",this.setLocale(d||Fr.local().locale)}getYear(d){return d.year}getMonth(d){return d.month-1}getDate(d){return d.day}getDayOfWeek(d){return d.weekday}getMonthNames(d){return ri.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function lu(v,m){const d=Array(v);for(let _=0;_d.format(Fr.utc(2017,1,_+1).toJSDate()))}getDayOfWeekNames(d){const _=ri.weekdays(d,{locale:this.locale});return _.unshift(_.pop()),_}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Fr.fromObject(d.toObject(),this._getOptions())}createDate(d,_,D){const W=this._getOptions();if(_<0||_>11)throw Error(`Invalid month index "${_}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const re=this._useUTC?Fr.utc(d,_+1,D,W):Fr.local(d,_+1,D,W);if(!this.isValid(re))throw Error(`Invalid date "${D}". Reason: "${re.invalidReason}".`);return re}today(){const d=this._getOptions();return this._useUTC?Fr.utc(d):Fr.local(d)}parse(d,_){const D=this._getOptions();if("string"==typeof d&&d.length>0){const W=Fr.fromISO(d,D);if(this.isValid(W))return W;const re=Array.isArray(_)?_:[_];if(!_.length)throw Error("Formats array must not be empty.");for(const ye of re){const Xe=Fr.fromFormat(d,ye,D);if(this.isValid(Xe))return Xe}return this.invalid()}return"number"==typeof d?Fr.fromMillis(d,D):d instanceof Date?Fr.fromJSDate(d,D):d instanceof Fr?Fr.fromMillis(d.toMillis(),D):null}format(d,_){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(_):d.setLocale(this.locale).toFormat(_)}addCalendarYears(d,_){return d.reconfigure(this._getOptions()).plus({years:_})}addCalendarMonths(d,_){return d.reconfigure(this._getOptions()).plus({months:_})}addCalendarDays(d,_){return d.reconfigure(this._getOptions()).plus({days:_})}toIso8601(d){return d.toISO()}deserialize(d){const _=this._getOptions();let D;if(d instanceof Date&&(D=Fr.fromJSDate(d,_)),"string"==typeof d){if(!d)return null;D=Fr.fromISO(d,_)}return D&&this.isValid(D)?D:super.deserialize(d)}isDateInstance(d){return d instanceof Fr}isValid(d){return d.isValid}invalid(){return Fr.invalid("Invalid Luxon DateTime object.")}setTime(d,_,D,W){return this.clone(d).set({hour:_,minute:D,second:W,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,_){const D=this.parse(d,_);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),_)||D}addSeconds(d,_){return d.reconfigure(this._getOptions()).plus({seconds:_})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();var Ar=n(1204);function rs(v){return new c.wOt(3e3,!1)}function Si(v){switch(v.length){case 0:return new Ar.sf;case 1:return v[0];default:return new Ar.ui(v)}}function Rl(v,m,d=new Map,_=new Map){const D=[],W=[];let re=-1,ye=null;if(m.forEach(Xe=>{const yt=Xe.get("offset"),dn=yt==re,yn=dn&&ye||new Map;Xe.forEach((_r,nr)=>{let mr=nr,ti=_r;if("offset"!==nr)switch(mr=v.normalizePropertyName(mr,D),ti){case Ar.FX:ti=d.get(nr);break;case Ar.kp:ti=_.get(nr);break;default:ti=v.normalizeStyleValue(nr,mr,ti,D)}yn.set(mr,ti)}),dn||W.push(yn),ye=yn,re=yt}),D.length)throw function dh(){return new c.wOt(3502,!1)}();return W}function Ra(v,m,d,_){switch(m){case"start":v.onStart(()=>_(d&&Qs(d,"start",v)));break;case"done":v.onDone(()=>_(d&&Qs(d,"done",v)));break;case"destroy":v.onDestroy(()=>_(d&&Qs(d,"destroy",v)))}}function Qs(v,m,d){const W=Oc(v.element,v.triggerName,v.fromState,v.toState,m||v.phaseName,d.totalTime??v.totalTime,!!d.disabled),re=v._data;return null!=re&&(W._data=re),W}function Oc(v,m,d,_,D="",W=0,re){return{element:v,triggerName:m,fromState:d,toState:_,phaseName:D,totalTime:W,disabled:!!re}}function fa(v,m,d){let _=v.get(m);return _||v.set(m,_=d),_}function vd(v){const m=v.indexOf(":");return[v.substring(1,m),v.slice(m+1)]}const nm=typeof document>"u"?null:document.documentElement;function ph(v){const m=v.parentNode||v.host||null;return m===nm?null:m}let pa=null,Zl=!1;function O(v,m){for(;m;){if(m===v)return!0;m=ph(m)}return!1}function P(v,m,d){if(d)return Array.from(v.querySelectorAll(m));const _=v.querySelector(m);return _?[_]:[]}let oe=(()=>{class v{validateStyleProperty(d){return function Zs(v){pa||(pa=function yd(){return typeof document<"u"?document.body:null}()||{},Zl=!!pa.style&&"WebkitAppearance"in pa.style);let m=!0;return pa.style&&!function mh(v){return"ebkit"==v.substring(1,6)}(v)&&(m=v in pa.style,!m&&Zl&&(m="Webkit"+v.charAt(0).toUpperCase()+v.slice(1)in pa.style)),m}(d)}containsElement(d,_){return O(d,_)}getParentElement(d){return ph(d)}query(d,_,D){return P(d,_,D)}computeStyle(d,_,D){return D||""}animate(d,_,D,W,re,ye=[],Xe){return new Ar.sf(D,W)}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();class Ce{static NOOP=new oe}class $e{}const It=1e3,kn="ng-enter",qt="ng-leave",Yn="ng-trigger",Xn=".ng-trigger",ir="ng-animating",Rn=".ng-animating";function Kn(v){if("number"==typeof v)return v;const m=v.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(v,m){return"s"===m?v*It:v}function yr(v,m,d){return v.hasOwnProperty("duration")?v:function Hn(v,m,d){let D,W=0,re="";if("string"==typeof v){const ye=v.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ye)return m.push(rs()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(ye[1]),ye[2]);const Xe=ye[3];null!=Xe&&(W=Qn(parseFloat(Xe),ye[4]));const yt=ye[5];yt&&(re=yt)}else D=v;if(!d){let ye=!1,Xe=m.length;D<0&&(m.push(function N(){return new c.wOt(3100,!1)}()),ye=!0),W<0&&(m.push(function G(){return new c.wOt(3101,!1)}()),ye=!0),ye&&m.splice(Xe,0,rs())}return{duration:D,delay:W,easing:re}}(v,m,d)}function Dr(v,m,d){m.forEach((_,D)=>{const W=ma(D);d&&!d.has(D)&&d.set(D,v.style[W]),v.style[W]=_})}function Gr(v,m){m.forEach((d,_)=>{const D=ma(_);v.style[D]=""})}function Br(v){return Array.isArray(v)?1==v.length?v[0]:(0,Ar.K2)(v):v}const Ji=new RegExp("{{\\s*(.+?)\\s*}}","g");function Xi(v){let m=[];if("string"==typeof v){let d;for(;d=Ji.exec(v);)m.push(d[1]);Ji.lastIndex=0}return m}function bo(v,m,d){const _=`${v}`,D=_.replace(Ji,(W,re)=>{let ye=m[re];return null==ye&&(d.push(function K(){return new c.wOt(3003,!1)}()),ye=""),ye.toString()});return D==_?v:D}const To=/-+([a-z0-9])/g;function ma(v){return v.replace(To,(...m)=>m[1].toUpperCase())}function Yi(v,m,d){switch(m.type){case Ar.If.Trigger:return v.visitTrigger(m,d);case Ar.If.State:return v.visitState(m,d);case Ar.If.Transition:return v.visitTransition(m,d);case Ar.If.Sequence:return v.visitSequence(m,d);case Ar.If.Group:return v.visitGroup(m,d);case Ar.If.Animate:return v.visitAnimate(m,d);case Ar.If.Keyframes:return v.visitKeyframes(m,d);case Ar.If.Style:return v.visitStyle(m,d);case Ar.If.Reference:return v.visitReference(m,d);case Ar.If.AnimateChild:return v.visitAnimateChild(m,d);case Ar.If.AnimateRef:return v.visitAnimateRef(m,d);case Ar.If.Query:return v.visitQuery(m,d);case Ar.If.Stagger:return v.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function Mo(v,m){return window.getComputedStyle(v)[m]}const gs=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 qs extends $e{normalizePropertyName(m,d){return ma(m)}normalizeStyleValue(m,d,_,D){let W="";const re=_.toString().trim();if(gs.has(d)&&0!==_&&"0"!==_)if("number"==typeof _)W="px";else{const ye=_.match(/^[+-]?[\d\.]+([a-z]*)$/);ye&&0==ye[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return re+W}}const vc="*";const Js=new Set(["true","1"]),fl=new Set(["false","0"]);function yc(v,m){const d=Js.has(v)||fl.has(v),_=Js.has(m)||fl.has(m);return(D,W)=>{let re=v==vc||v==D,ye=m==vc||m==W;return!re&&d&&"boolean"==typeof D&&(re=D?Js.has(v):fl.has(v)),!ye&&_&&"boolean"==typeof W&&(ye=W?Js.has(m):fl.has(m)),re&&ye}}const Bu=new RegExp("s*:selfs*,?","g");function Uu(v,m,d,_){return new _h(v).build(m,d,_)}class _h{_driver;constructor(m){this._driver=m}build(m,d,_){const D=new ju(d);return this._resetContextStyleTimingState(D),Yi(this,Br(m),D)}_resetContextStyleTimingState(m){m.currentQuerySelector="",m.collectedStyles=new Map,m.collectedStyles.set("",new Map),m.currentTime=0}visitTrigger(m,d){let _=d.queryCount=0,D=d.depCount=0;const W=[],re=[];return"@"==m.name.charAt(0)&&d.errors.push(function St(){return new c.wOt(3006,!1)}()),m.definitions.forEach(ye=>{if(this._resetContextStyleTimingState(d),ye.type==Ar.If.State){const Xe=ye,yt=Xe.name;yt.toString().split(/\s*,\s*/).forEach(dn=>{Xe.name=dn,W.push(this.visitState(Xe,d))}),Xe.name=yt}else if(ye.type==Ar.If.Transition){const Xe=this.visitTransition(ye,d);_+=Xe.queryCount,D+=Xe.depCount,re.push(Xe)}else d.errors.push(function gn(){return new c.wOt(3007,!1)}())}),{type:Ar.If.Trigger,name:m.name,states:W,transitions:re,queryCount:_,depCount:D,options:null}}visitState(m,d){const _=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(_.containsDynamicStyles){const W=new Set,re=D||{};_.styles.forEach(ye=>{ye instanceof Map&&ye.forEach(Xe=>{Xi(Xe).forEach(yt=>{re.hasOwnProperty(yt)||W.add(yt)})})}),W.size&&d.errors.push(function an(){return new c.wOt(3008,!1)}(0,W.values()))}return{type:Ar.If.State,name:m.name,style:_,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const _=Yi(this,Br(m.animation),d),D=function ec(v,m){const d=[];return"string"==typeof v?v.split(/\s*,\s*/).forEach(_=>function Rc(v,m,d){if(":"==v[0]){const Xe=function gh(v,m){switch(v){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,_)=>parseFloat(_)>parseFloat(d);case":decrement":return(d,_)=>parseFloat(_) *"}}(v,d);if("function"==typeof Xe)return void m.push(Xe);v=Xe}const _=v.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==_||_.length<4)return d.push(function Ys(){return new c.wOt(3015,!1)}()),m;const D=_[1],W=_[2],re=_[3];m.push(yc(D,re)),"<"==W[0]&&(D!=vc||re!=vc)&&m.push(yc(re,D))}(_,d,m)):d.push(v),d}(m.expr,d.errors);return{type:Ar.If.Transition,matchers:D,animation:_,queryCount:d.queryCount,depCount:d.depCount,options:Nl(m.options)}}visitSequence(m,d){return{type:Ar.If.Sequence,steps:m.steps.map(_=>Yi(this,_,d)),options:Nl(m.options)}}visitGroup(m,d){const _=d.currentTime;let D=0;const W=m.steps.map(re=>{d.currentTime=_;const ye=Yi(this,re,d);return D=Math.max(D,d.currentTime),ye});return d.currentTime=D,{type:Ar.If.Group,steps:W,options:Nl(m.options)}}visitAnimate(m,d){const _=function vh(v,m){if(v.hasOwnProperty("duration"))return v;if("number"==typeof v)return Df(yr(v,m).duration,0,"");const d=v;if(d.split(/\s+/).some(W=>"{"==W.charAt(0)&&"{"==W.charAt(1))){const W=Df(0,0,"");return W.dynamic=!0,W.strValue=d,W}const D=yr(d,m);return Df(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=_;let D,W=m.styles?m.styles:(0,Ar.iF)({});if(W.type==Ar.If.Keyframes)D=this.visitKeyframes(W,d);else{let re=m.styles,ye=!1;if(!re){ye=!0;const yt={};_.easing&&(yt.easing=_.easing),re=(0,Ar.iF)(yt)}d.currentTime+=_.duration+_.delay;const Xe=this.visitStyle(re,d);Xe.isEmptyStep=ye,D=Xe}return d.currentAnimateTimings=null,{type:Ar.If.Animate,timings:_,style:D,options:null}}visitStyle(m,d){const _=this._makeStyleAst(m,d);return this._validateStyleAst(_,d),_}_makeStyleAst(m,d){const _=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let ye of D)"string"==typeof ye?ye===Ar.kp?_.push(ye):d.errors.push(new c.wOt(3002,!1)):_.push(new Map(Object.entries(ye)));let W=!1,re=null;return _.forEach(ye=>{if(ye instanceof Map&&(ye.has("easing")&&(re=ye.get("easing"),ye.delete("easing")),!W))for(let Xe of ye.values())if(Xe.toString().indexOf("{{")>=0){W=!0;break}}),{type:Ar.If.Style,styles:_,easing:re,offset:m.offset,containsDynamicStyles:W,options:null}}_validateStyleAst(m,d){const _=d.currentAnimateTimings;let D=d.currentTime,W=d.currentTime;_&&W>0&&(W-=_.duration+_.delay),m.styles.forEach(re=>{"string"!=typeof re&&re.forEach((ye,Xe)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),dn=yt.get(Xe);let yn=!0;dn&&(W!=D&&W>=dn.startTime&&D<=dn.endTime&&(d.errors.push(function Ir(){return new c.wOt(3010,!1)}()),yn=!1),W=dn.startTime),yn&&yt.set(Xe,{startTime:W,endTime:D}),d.options&&function ro(v,m,d){const _=m.params||{},D=Xi(v);D.length&&D.forEach(W=>{_.hasOwnProperty(W)||d.push(function F(){return new c.wOt(3001,!1)}())})}(ye,d.options,d.errors)})})}visitKeyframes(m,d){const _={type:Ar.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function Gi(){return new c.wOt(3011,!1)}()),_;let W=0;const re=[];let ye=!1,Xe=!1,yt=0;const dn=m.steps.map(ko=>{const ho=this._makeStyleAst(ko,d);let Ea=null!=ho.offset?ho.offset:function im(v){if("string"==typeof v)return null;let m=null;if(Array.isArray(v))v.forEach(d=>{if(d instanceof Map&&d.has("offset")){const _=d;m=parseFloat(_.get("offset")),_.delete("offset")}});else if(v instanceof Map&&v.has("offset")){const d=v;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(ho.styles),ea=0;return null!=Ea&&(W++,ea=ho.offset=Ea),Xe=Xe||ea<0||ea>1,ye=ye||ea0&&W{const Ea=_r>0?ho==nr?1:_r*ho:re[ho],ea=Ea*Ai;d.currentTime=mr+ti.delay+ea,ti.duration=ea,this._validateStyleAst(ko,d),ko.offset=Ea,_.styles.push(ko)}),_}visitReference(m,d){return{type:Ar.If.Reference,animation:Yi(this,Br(m.animation),d),options:Nl(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Ar.If.AnimateChild,options:Nl(m.options)}}visitAnimateRef(m,d){return{type:Ar.If.AnimateRef,animation:this.visitReference(m.animation,d),options:Nl(m.options)}}visitQuery(m,d){const _=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[W,re]=function $u(v){const m=!!v.split(/\s*,\s*/).find(d=>":self"==d);return m&&(v=v.replace(Bu,"")),v=v.replace(/@\*/g,Xn).replace(/@\w+/g,d=>Xn+"-"+d.slice(1)).replace(/:animating/g,Rn),[v,m]}(m.selector);d.currentQuerySelector=_.length?_+" "+W:W,fa(d.collectedStyles,d.currentQuerySelector,new Map);const ye=Yi(this,Br(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=_,{type:Ar.If.Query,selector:W,limit:D.limit||0,optional:!!D.optional,includeSelf:re,animation:ye,originalSelector:m.selector,options:Nl(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function us(){return new c.wOt(3013,!1)}());const _="full"===m.timings?{duration:0,delay:0,easing:"full"}:yr(m.timings,d.errors,!0);return{type:Ar.If.Stagger,animation:Yi(this,Br(m.animation),d),timings:_,options:null}}}class ju{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(m){this.errors=m}}function Nl(v){return v?(v={...v}).params&&(v.params=function rm(v){return v?{...v}:null}(v.params)):v={},v}function Df(v,m,d){return{duration:v,delay:m,easing:d}}function bd(v,m,d,_,D,W,re=null,ye=!1){return{type:1,element:v,keyframes:m,preStyleProps:d,postStyleProps:_,duration:D,delay:W,totalTime:D+W,easing:re,subTimeline:ye}}class Vu{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let _=this._map.get(m);_||this._map.set(m,_=[]),_.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const sm=new RegExp(":enter","g"),Af=new RegExp(":leave","g");function wd(v,m,d,_,D,W=new Map,re=new Map,ye,Xe,yt=[]){return(new Nc).buildKeyframes(v,m,d,_,D,W,re,ye,Xe,yt)}class Nc{buildKeyframes(m,d,_,D,W,re,ye,Xe,yt,dn=[]){yt=yt||new Vu;const yn=new Ed(m,d,yt,D,W,dn,[]);yn.options=Xe;const _r=Xe.delay?Kn(Xe.delay):0;yn.currentTimeline.delayNextStep(_r),yn.currentTimeline.setStyles([re],null,yn.errors,Xe),Yi(this,_,yn);const nr=yn.timelines.filter(mr=>mr.containsAnimation());if(nr.length&&ye.size){let mr;for(let ti=nr.length-1;ti>=0;ti--){const Ai=nr[ti];if(Ai.element===d){mr=Ai;break}}mr&&!mr.allowOnlyTimelineStyles()&&mr.setStyles([ye],null,yn.errors,Xe)}return nr.length?nr.map(mr=>mr.buildKeyframes()):[bd(d,[],[],[],0,_r,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const _=d.subInstructions.get(d.element);if(_){const D=d.createSubContext(m.options),W=d.currentTimeline.currentTime,re=this._visitSubInstructions(_,D,D.options);W!=re&&d.transformIntoNewTimeline(re)}d.previousNode=m}visitAnimateRef(m,d){const _=d.createSubContext(m.options);_.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,_),this.visitReference(m.animation,_),d.transformIntoNewTimeline(_.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,_){for(const D of m){const W=D?.delay;if(W){const re="number"==typeof W?W:Kn(bo(W,D?.params??{},d.errors));_.delayNextStep(re)}}}_visitSubInstructions(m,d,_){let W=d.currentTimeline.currentTime;const re=null!=_.duration?Kn(_.duration):null,ye=null!=_.delay?Kn(_.delay):null;return 0!==re&&m.forEach(Xe=>{const yt=d.appendInstructionToTimeline(Xe,re,ye);W=Math.max(W,yt.duration+yt.delay)}),W}visitReference(m,d){d.updateOptions(m.options,!0),Yi(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const _=d.subContextCount;let D=d;const W=m.options;if(W&&(W.params||W.delay)&&(D=d.createSubContext(W),D.transformIntoNewTimeline(),null!=W.delay)){D.previousNode.type==Ar.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=Lc);const re=Kn(W.delay);D.delayNextStep(re)}m.steps.length&&(m.steps.forEach(re=>Yi(this,re,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>_&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const _=[];let D=d.currentTimeline.currentTime;const W=m.options&&m.options.delay?Kn(m.options.delay):0;m.steps.forEach(re=>{const ye=d.createSubContext(m.options);W&&ye.delayNextStep(W),Yi(this,re,ye),D=Math.max(D,ye.currentTimeline.currentTime),_.push(ye.currentTimeline)}),_.forEach(re=>d.currentTimeline.mergeTimelineCollectedStyles(re)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const _=m.strValue;return yr(d.params?bo(_,d.params,d.errors):_,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const _=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;_.delay&&(d.incrementTime(_.delay),D.snapshotCurrentStyles());const W=m.style;W.type==Ar.If.Keyframes?this.visitKeyframes(W,d):(d.incrementTime(_.duration),this.visitStyle(W,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const _=d.currentTimeline,D=d.currentAnimateTimings;!D&&_.hasCurrentStyleProperties()&&_.forwardFrame();const W=D&&D.easing||m.easing;m.isEmptyStep?_.applyEmptyStep(W):_.setStyles(m.styles,W,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const _=d.currentAnimateTimings,D=d.currentTimeline.duration,W=_.duration,ye=d.createSubContext().currentTimeline;ye.easing=_.easing,m.styles.forEach(Xe=>{ye.forwardTime((Xe.offset||0)*W),ye.setStyles(Xe.styles,Xe.easing,d.errors,d.options),ye.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(ye),d.transformIntoNewTimeline(D+W),d.previousNode=m}visitQuery(m,d){const _=d.currentTimeline.currentTime,D=m.options||{},W=D.delay?Kn(D.delay):0;W&&(d.previousNode.type===Ar.If.Style||0==_&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=Lc);let re=_;const ye=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=ye.length;let Xe=null;ye.forEach((yt,dn)=>{d.currentQueryIndex=dn;const yn=d.createSubContext(m.options,yt);W&&yn.delayNextStep(W),yt===d.element&&(Xe=yn.currentTimeline),Yi(this,m.animation,yn),yn.currentTimeline.applyStylesToKeyframe(),re=Math.max(re,yn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(re),Xe&&(d.currentTimeline.mergeTimelineCollectedStyles(Xe),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const _=d.parentContext,D=d.currentTimeline,W=m.timings,re=Math.abs(W.duration),ye=re*(d.currentQueryTotal-1);let Xe=re*d.currentQueryIndex;switch(W.duration<0?"reverse":W.easing){case"reverse":Xe=ye-Xe;break;case"full":Xe=_.currentStaggerTime}const dn=d.currentTimeline;Xe&&dn.delayNextStep(Xe);const yn=dn.currentTime;Yi(this,m.animation,d),d.previousNode=m,_.currentStaggerTime=D.currentTime-yn+(D.startTime-_.currentTimeline.startTime)}}const Lc={};class Ed{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Lc;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,_,D,W,re,ye,Xe){this._driver=m,this.element=d,this.subInstructions=_,this._enterClassName=D,this._leaveClassName=W,this.errors=re,this.timelines=ye,this.currentTimeline=Xe||new Hu(this._driver,d,0),ye.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const _=m;let D=this.options;null!=_.duration&&(D.duration=Kn(_.duration)),null!=_.delay&&(D.delay=Kn(_.delay));const W=_.params;if(W){let re=D.params;re||(re=this.options.params={}),Object.keys(W).forEach(ye=>{(!d||!re.hasOwnProperty(ye))&&(re[ye]=bo(W[ye],re,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const _=m.params={};Object.keys(d).forEach(D=>{_[D]=d[D]})}}return m}createSubContext(m=null,d,_){const D=d||this.element,W=new Ed(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,_||0));return W.previousNode=this.previousNode,W.currentAnimateTimings=this.currentAnimateTimings,W.options=this._copyOptions(),W.updateOptions(m),W.currentQueryIndex=this.currentQueryIndex,W.currentQueryTotal=this.currentQueryTotal,W.parentContext=this,this.subContextCount++,W}transformIntoNewTimeline(m){return this.previousNode=Lc,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,_){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(_??0)+m.delay,easing:""},W=new Sf(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(W),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,_,D,W,re){let ye=[];if(D&&ye.push(this.element),m.length>0){m=(m=m.replace(sm,"."+this._enterClassName)).replace(Af,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=_);0!==_&&(yt=_<0?yt.slice(yt.length+_,yt.length):yt.slice(0,_)),ye.push(...yt)}return!W&&0==ye.length&&re.push(function Wr(){return new c.wOt(3014,!1)}()),ye}}class Hu{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,_,D){this._driver=m,this.element=d,this.startTime=_,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,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(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new Hu(this._driver,m,d||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(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,_]of this._globalTimelineStyles)this._backFill.set(d,_||Ar.kp),this._currentKeyframe.set(d,Ar.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,_,D){d&&this._previousKeyframe.set("easing",d);const W=D&&D.params||{},re=function Tf(v,m){const d=new Map;let _;return v.forEach(D=>{if("*"===D){_??=m.keys();for(let W of _)d.set(W,Ar.kp)}else for(let[W,re]of D)d.set(W,re)}),d}(m,this._globalTimelineStyles);for(let[ye,Xe]of re){const yt=bo(Xe,W,_);this._pendingStyles.set(ye,yt),this._localTimelineStyles.has(ye)||this._backFill.set(ye,this._globalTimelineStyles.get(ye)??Ar.kp),this._updateStyle(ye,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,_)=>{const D=this._styleSummary.get(_);(!D||d.time>D.time)&&this._updateStyle(_,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,_=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((ye,Xe)=>{const yt=new Map([...this._backFill,...ye]);yt.forEach((dn,yn)=>{dn===Ar.FX?m.add(yn):dn===Ar.kp&&d.add(yn)}),_||yt.set("offset",Xe/this.duration),D.push(yt)});const W=[...m.values()],re=[...d.values()];if(_){const ye=D[0],Xe=new Map(ye);ye.set("offset",0),Xe.set("offset",1),D=[ye,Xe]}return bd(this.element,D,W,re,this.duration,this.startTime,this.easing,!1)}}class Sf extends Hu{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,_,D,W,re,ye=!1){super(m,d,re.delay),this.keyframes=_,this.preStyleProps=D,this.postStyleProps=W,this._stretchStartingKeyframe=ye,this.timings={duration:re.duration,delay:re.delay,easing:re.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:_,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const W=[],re=_+d,ye=d/re,Xe=new Map(m[0]);Xe.set("offset",0),W.push(Xe);const yt=new Map(m[0]);yt.set("offset",bh(ye)),W.push(yt);const dn=m.length-1;for(let yn=1;yn<=dn;yn++){let _r=new Map(m[yn]);const nr=_r.get("offset");_r.set("offset",bh((d+nr*_)/re)),W.push(_r)}_=re,d=0,D="",m=W}return bd(this.element,m,this.preStyleProps,this.postStyleProps,_,d,D,!0)}}function bh(v,m=3){const d=Math.pow(10,m-1);return Math.round(v*d)/d}function wh(v,m,d,_,D,W,re,ye,Xe,yt,dn,yn,_r){return{type:0,element:v,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:W,toState:_,toStyles:re,timelines:ye,queriedElements:Xe,preStyleProps:yt,postStyleProps:dn,totalTime:yn,errors:_r}}const hu={};class Pl{_triggerName;ast;_stateStyles;constructor(m,d,_){this._triggerName=m,this.ast=d,this._stateStyles=_}match(m,d,_,D){return function xd(v,m,d,_,D){return v.some(W=>W(m,d,_,D))}(this.ast.matchers,m,d,_,D)}buildStyles(m,d,_){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,_):new Map}build(m,d,_,D,W,re,ye,Xe,yt,dn){const yn=[],_r=this.ast.options&&this.ast.options.params||hu,mr=this.buildStyles(_,ye&&ye.params||hu,yn),ti=Xe&&Xe.params||hu,Ai=this.buildStyles(D,ti,yn),ko=new Set,ho=new Map,Ea=new Map,ea="void"===D,Mu={params:Eh(ti,_r),delay:this.ast.options?.delay},_l=dn?[]:wd(m,d,this.ast.animation,W,re,mr,Ai,Mu,yt,yn);let xa=0;return _l.forEach(Xa=>{xa=Math.max(Xa.duration+Xa.delay,xa)}),yn.length?wh(d,this._triggerName,_,D,ea,mr,Ai,[],[],ho,Ea,xa,yn):(_l.forEach(Xa=>{const Al=Xa.element,Fl=fa(ho,Al,new Set);Xa.preStyleProps.forEach(pd=>Fl.add(pd));const mf=fa(Ea,Al,new Set);Xa.postStyleProps.forEach(pd=>mf.add(pd)),Al!==d&&ko.add(Al)}),wh(d,this._triggerName,_,D,ea,mr,Ai,_l,[...ko.values()],ho,Ea,xa))}}function Eh(v,m){const d={...m};return Object.entries(v).forEach(([_,D])=>{null!=D&&(d[_]=D)}),d}class Pc{styles;defaultParams;normalizer;constructor(m,d,_){this.styles=m,this.defaultParams=d,this.normalizer=_}buildStyles(m,d){const _=new Map,D=Eh(m,this.defaultParams);return this.styles.styles.forEach(W=>{"string"!=typeof W&&W.forEach((re,ye)=>{re&&(re=bo(re,D,d));const Xe=this.normalizer.normalizePropertyName(ye,d);re=this.normalizer.normalizeStyleValue(ye,Xe,re,d),_.set(ye,re)})}),_}}class Fs{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,_){this.name=m,this.ast=d,this._normalizer=_,d.states.forEach(D=>{this.states.set(D.name,new Pc(D.style,D.options&&D.options.params||{},_))}),xh(this.states,"true","1"),xh(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new Pl(m,D,this.states))}),this.fallbackTransition=function Mf(v,m){return new Pl(v,{type:Ar.If.Transition,animation:{type:Ar.If.Sequence,steps:[],options:null},matchers:[(re,ye)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,_,D){return this.transitionFactories.find(re=>re.match(m,d,_,D))||null}matchStyles(m,d,_){return this.fallbackTransition.buildStyles(m,d,_)}}function xh(v,m,d){v.has(m)?v.has(d)||v.set(d,v.get(m)):v.has(d)&&v.set(m,v.get(d))}const Cd=new Vu;class am{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,_){this.bodyNode=m,this._driver=d,this._normalizer=_}register(m,d){const _=[],W=Uu(this._driver,d,_,[]);if(_.length)throw function hh(){return new c.wOt(3503,!1)}();this._animations.set(m,W)}_buildPlayer(m,d,_){const D=m.element,W=Rl(this._normalizer,m.keyframes,d,_);return this._driver.animate(D,W,m.duration,m.delay,m.easing,[],!0)}create(m,d,_={}){const D=[],W=this._animations.get(m);let re;const ye=new Map;if(W?(re=wd(this._driver,d,W,kn,qt,new Map,new Map,_,Cd,D),re.forEach(dn=>{const yn=fa(ye,dn.element,new Map);dn.postStyleProps.forEach(_r=>yn.set(_r,null))})):(D.push(function fh(){return new c.wOt(3300,!1)}()),re=[]),D.length)throw function gc(){return new c.wOt(3504,!1)}();ye.forEach((dn,yn)=>{dn.forEach((_r,nr)=>{dn.set(nr,this._driver.computeStyle(yn,nr,Ar.kp))})});const yt=Si(re.map(dn=>{const yn=ye.get(dn.element);return this._buildPlayer(dn,new Map,yn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const _=this.players.indexOf(d);_>=0&&this.players.splice(_,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function Yl(){return new c.wOt(3301,!1)}();return d}listen(m,d,_,D){const W=Oc(d,"","","");return Ra(this._getPlayer(m),_,W,D),()=>{}}command(m,d,_,D){if("register"==_)return void this.register(m,D[0]);if("create"==_)return void this.create(m,d,D[0]||{});const W=this._getPlayer(m);switch(_){case"play":W.play();break;case"pause":W.pause();break;case"reset":W.reset();break;case"restart":W.restart();break;case"finish":W.finish();break;case"init":W.init();break;case"setPosition":W.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const Wu="ng-animate-queued",Ch="ng-animate-disabled",kf=[],If={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ad={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ka="__ng_removed";class Sd{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const _=m&&m.hasOwnProperty("value");if(this.value=function Sh(v){return v??null}(_?m.value:m),_){const{value:W,...re}=m;this.options=re}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const _=this.options.params;Object.keys(d).forEach(D=>{null==_[D]&&(_[D]=d[D])})}}}const Gu="void",Td=new Sd(Gu);class Dh{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,_){this.id=m,this.hostElement=d,this._engine=_,this._hostClassName="ng-tns-"+m,ws(d,this._hostClassName)}listen(m,d,_,D){if(!this._triggers.has(d))throw function Ql(){return new c.wOt(3302,!1)}();if(null==_||0==_.length)throw function cu(){return new c.wOt(3303,!1)}();if(!function um(v){return"start"==v||"done"==v}(_))throw function uu(){return new c.wOt(3400,!1)}();const W=fa(this._elementListeners,m,[]),re={name:d,phase:_,callback:D};W.push(re);const ye=fa(this._engine.statesByElement,m,new Map);return ye.has(d)||(ws(m,Yn),ws(m,Yn+"-"+d),ye.set(d,Td)),()=>{this._engine.afterFlush(()=>{const Xe=W.indexOf(re);Xe>=0&&W.splice(Xe,1),this._triggers.has(d)||ye.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function Ja(){return new c.wOt(3401,!1)}();return d}trigger(m,d,_,D=!0){const W=this._getTrigger(d),re=new cm(this.id,d,m);let ye=this._engine.statesByElement.get(m);ye||(ws(m,Yn),ws(m,Yn+"-"+d),this._engine.statesByElement.set(m,ye=new Map));let Xe=ye.get(d);const yt=new Sd(_,this.id);if(!(_&&_.hasOwnProperty("value"))&&Xe&&yt.absorbOptions(Xe.options),ye.set(d,yt),Xe||(Xe=Td),yt.value!==Gu&&Xe.value===yt.value){if(!function Rf(v,m){const d=Object.keys(v),_=Object.keys(m);if(d.length!=_.length)return!1;for(let D=0;D{Gr(m,Ai),Dr(m,ko)})}return}const _r=fa(this._engine.playersByElement,m,[]);_r.forEach(ti=>{ti.namespaceId==this.id&&ti.triggerName==d&&ti.queued&&ti.destroy()});let nr=W.matchTransition(Xe.value,yt.value,m,yt.params),mr=!1;if(!nr){if(!D)return;nr=W.fallbackTransition,mr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:nr,fromState:Xe,toState:yt,player:re,isFallbackTransition:mr}),mr||(ws(m,Wu),re.onStart(()=>{Fc(m,Wu)})),re.onDone(()=>{let ti=this.players.indexOf(re);ti>=0&&this.players.splice(ti,1);const Ai=this._engine.playersByElement.get(m);if(Ai){let ko=Ai.indexOf(re);ko>=0&&Ai.splice(ko,1)}}),this.players.push(re),_r.push(re),re}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,_)=>{this._elementListeners.set(_,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(_=>_.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const _=this._engine.driver.query(m,Xn,!0);_.forEach(D=>{if(D[Ka])return;const W=this._engine.fetchNamespacesByElement(D);W.size?W.forEach(re=>re.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>_.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,_,D){const W=this._engine.statesByElement.get(m),re=new Map;if(W){const ye=[];if(W.forEach((Xe,yt)=>{if(re.set(yt,Xe.value),this._triggers.has(yt)){const dn=this.trigger(m,yt,Gu,D);dn&&ye.push(dn)}}),ye.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,re),_&&Si(ye).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),_=this._engine.statesByElement.get(m);if(d&&_){const D=new Set;d.forEach(W=>{const re=W.name;if(D.has(re))return;D.add(re);const Xe=this._triggers.get(re).fallbackTransition,yt=_.get(re)||Td,dn=new Sd(Gu),yn=new cm(this.id,re,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:re,transition:Xe,fromState:yt,toState:dn,player:yn,isFallbackTransition:!0})})}}removeNode(m,d){const _=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(_.totalAnimations){const W=_.players.length?_.playersByQueriedElement.get(m):[];if(W&&W.length)D=!0;else{let re=m;for(;re=re.parentNode;)if(_.statesByElement.get(re)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)_.markElementAsRemoved(this.id,m,!1,d);else{const W=m[Ka];(!W||W===If)&&(_.afterFlush(()=>this.clearElementCache(m)),_.destroyInnerAnimations(m),_._onRemovalComplete(m,d))}}insertNode(m,d){ws(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(_=>{const D=_.player;if(D.destroyed)return;const W=_.element,re=this._elementListeners.get(W);re&&re.forEach(ye=>{if(ye.name==_.triggerName){const Xe=Oc(W,_.triggerName,_.fromState.value,_.toState.value);Xe._data=m,Ra(_.player,ye.phase,Xe,ye.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(_)}),this._queue=[],d.sort((_,D)=>{const W=_.transition.ast.depCount,re=D.transition.ast.depCount;return 0==W||0==re?W-re:this._engine.driver.containsElement(_.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class lm{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,_){this.bodyNode=m,this.driver=d,this._normalizer=_}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(_=>{_.queued&&m.push(_)})}),m}createNamespace(m,d){const _=new Dh(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(_,d):(this.newHostElements.set(d,_),this.collectEnterElement(d)),this._namespaceLookup[m]=_}_balanceNamespaceList(m,d){const _=this._namespaceList,D=this.namespacesByHostElement;if(_.length-1>=0){let re=!1,ye=this.driver.getParentElement(d);for(;ye;){const Xe=D.get(ye);if(Xe){const yt=_.indexOf(Xe);_.splice(yt+1,0,m),re=!0;break}ye=this.driver.getParentElement(ye)}re||_.unshift(m)}else _.push(m);return D.set(d,m),m}register(m,d){let _=this._namespaceLookup[m];return _||(_=this.createNamespace(m,d)),_}registerTrigger(m,d,_){let D=this._namespaceLookup[m];D&&D.register(d,_)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const _=this._fetchNamespace(m);this.namespacesByHostElement.delete(_.hostElement);const D=this._namespaceList.indexOf(_);D>=0&&this._namespaceList.splice(D,1),_.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,_=this.statesByElement.get(m);if(_)for(let D of _.values())if(D.namespaceId){const W=this._fetchNamespace(D.namespaceId);W&&d.add(W)}return d}trigger(m,d,_,D){if(Qo(d)){const W=this._fetchNamespace(m);if(W)return W.trigger(d,_,D),!0}return!1}insertNode(m,d,_,D){if(!Qo(d))return;const W=d[Ka];if(W&&W.setForRemoval){W.setForRemoval=!1,W.setForMove=!0;const re=this.collectedLeaveElements.indexOf(d);re>=0&&this.collectedLeaveElements.splice(re,1)}if(m){const re=this._fetchNamespace(m);re&&re.insertNode(d,_)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),ws(m,Ch)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Fc(m,Ch))}removeNode(m,d,_){if(Qo(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,_):this.markElementAsRemoved(m,d,!1,_);const W=this.namespacesByHostElement.get(d);W&&W.id!==m&&W.removeNode(d,_)}else this._onRemovalComplete(d,_)}markElementAsRemoved(m,d,_,D,W){this.collectedLeaveElements.push(d),d[Ka]={namespaceId:m,setForRemoval:D,hasAnimation:_,removedBeforeQueried:!1,previousTriggersValues:W}}listen(m,d,_,D,W){return Qo(d)?this._fetchNamespace(m).listen(d,_,D,W):()=>{}}_buildInstruction(m,d,_,D,W){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,_,D,m.fromState.options,m.toState.options,d,W)}destroyInnerAnimations(m){let d=this.driver.query(m,Xn,!0);d.forEach(_=>this.destroyActiveAnimationsForElement(_)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,Rn,!0),d.forEach(_=>this.finishActiveQueriedAnimationOnElement(_)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(_=>{_.queued?_.markedForDestroy=!0:_.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(_=>_.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Si(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[Ka];if(d&&d.setForRemoval){if(m[Ka]=If,d.namespaceId){this.destroyInnerAnimations(m);const _=this._fetchNamespace(d.namespaceId);_&&_.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(Ch)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(_=>{this.markElementAsDisabled(_,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((_,D)=>this._balanceNamespaceList(_,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let _=0;__()),this._flushFns=[],this._whenQuietFns.length){const _=this._whenQuietFns;this._whenQuietFns=[],d.length?Si(d).onDone(()=>{_.forEach(D=>D())}):_.forEach(D=>D())}}reportError(m){throw function Cn(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const _=new Vu,D=[],W=new Map,re=[],ye=new Map,Xe=new Map,yt=new Map,dn=new Set;this.disabledNodes.forEach(Zr=>{dn.add(Zr);const vi=this.driver.query(Zr,".ng-animate-queued",!0);for(let Ti=0;Ti{const Ti=kn+ti++;mr.set(vi,Ti),Zr.forEach(xo=>ws(xo,Ti))});const Ai=[],ko=new Set,ho=new Set;for(let Zr=0;Zrko.add(xo)):ho.add(vi))}const Ea=new Map,ea=Th(_r,Array.from(ko));ea.forEach((Zr,vi)=>{const Ti=qt+ti++;Ea.set(vi,Ti),Zr.forEach(xo=>ws(xo,Ti))}),m.push(()=>{nr.forEach((Zr,vi)=>{const Ti=mr.get(vi);Zr.forEach(xo=>Fc(xo,Ti))}),ea.forEach((Zr,vi)=>{const Ti=Ea.get(vi);Zr.forEach(xo=>Fc(xo,Ti))}),Ai.forEach(Zr=>{this.processLeaveNode(Zr)})});const Mu=[],_l=[];for(let Zr=this._namespaceList.length-1;Zr>=0;Zr--)this._namespaceList[Zr].drainQueuedTransitions(d).forEach(Ti=>{const xo=Ti.player,Ca=Ti.element;if(Mu.push(xo),this.collectedEnterElements.length){const na=Ca[Ka];if(na&&na.setForMove){if(na.previousTriggersValues&&na.previousTriggersValues.has(Ti.triggerName)){const Yc=na.previousTriggersValues.get(Ti.triggerName),uc=this.statesByElement.get(Ti.element);if(uc&&uc.has(Ti.triggerName)){const gf=uc.get(Ti.triggerName);gf.value=Yc,uc.set(Ti.triggerName,gf)}}return void xo.destroy()}}const ta=!yn||!this.driver.containsElement(yn,Ca),il=Ea.get(Ca),ku=mr.get(Ca),xs=this._buildInstruction(Ti,_,ku,il,ta);if(xs.errors&&xs.errors.length)return void _l.push(xs);if(ta)return xo.onStart(()=>Gr(Ca,xs.fromStyles)),xo.onDestroy(()=>Dr(Ca,xs.toStyles)),void D.push(xo);if(Ti.isFallbackTransition)return xo.onStart(()=>Gr(Ca,xs.fromStyles)),xo.onDestroy(()=>Dr(Ca,xs.toStyles)),void D.push(xo);const og=[];xs.timelines.forEach(na=>{na.stretchStartingKeyframe=!0,this.disabledNodes.has(na.element)||og.push(na)}),xs.timelines=og,_.append(Ca,xs.timelines),re.push({instruction:xs,player:xo,element:Ca}),xs.queriedElements.forEach(na=>fa(ye,na,[]).push(xo)),xs.preStyleProps.forEach((na,Yc)=>{if(na.size){let uc=Xe.get(Yc);uc||Xe.set(Yc,uc=new Set),na.forEach((gf,Sp)=>uc.add(Sp))}}),xs.postStyleProps.forEach((na,Yc)=>{let uc=yt.get(Yc);uc||yt.set(Yc,uc=new Set),na.forEach((gf,Sp)=>uc.add(Sp))})});if(_l.length){const Zr=[];_l.forEach(vi=>{Zr.push(function Ic(){return new c.wOt(3505,!1)}())}),Mu.forEach(vi=>vi.destroy()),this.reportError(Zr)}const xa=new Map,Xa=new Map;re.forEach(Zr=>{const vi=Zr.element;_.has(vi)&&(Xa.set(vi,vi),this._beforeAnimationBuild(Zr.player.namespaceId,Zr.instruction,xa))}),D.forEach(Zr=>{const vi=Zr.element;this._getPreviousPlayers(vi,!1,Zr.namespaceId,Zr.triggerName,null).forEach(xo=>{fa(xa,vi,[]).push(xo),xo.destroy()})});const Al=Ai.filter(Zr=>Od(Zr,Xe,yt)),Fl=new Map;Of(Fl,this.driver,ho,yt,Ar.kp).forEach(Zr=>{Od(Zr,Xe,yt)&&Al.push(Zr)});const pd=new Map;nr.forEach((Zr,vi)=>{Of(pd,this.driver,new Set(Zr),Xe,Ar.FX)}),Al.forEach(Zr=>{const vi=Fl.get(Zr),Ti=pd.get(Zr);Fl.set(Zr,new Map([...vi?.entries()??[],...Ti?.entries()??[]]))});const ig=[],Ap=[],ov={};re.forEach(Zr=>{const{element:vi,player:Ti,instruction:xo}=Zr;if(_.has(vi)){if(dn.has(vi))return Ti.onDestroy(()=>Dr(vi,xo.toStyles)),Ti.disabled=!0,Ti.overrideTotalTime(xo.totalTime),void D.push(Ti);let Ca=ov;if(Xa.size>1){let il=vi;const ku=[];for(;il=il.parentNode;){const xs=Xa.get(il);if(xs){Ca=xs;break}ku.push(il)}ku.forEach(xs=>Xa.set(xs,Ca))}const ta=this._buildAnimation(Ti.namespaceId,xo,xa,W,pd,Fl);if(Ti.setRealPlayer(ta),Ca===ov)ig.push(Ti);else{const il=this.playersByElement.get(Ca);il&&il.length&&(Ti.parentPlayer=Si(il)),D.push(Ti)}}else Gr(vi,xo.fromStyles),Ti.onDestroy(()=>Dr(vi,xo.toStyles)),Ap.push(Ti),dn.has(vi)&&D.push(Ti)}),Ap.forEach(Zr=>{const vi=W.get(Zr.element);if(vi&&vi.length){const Ti=Si(vi);Zr.setRealPlayer(Ti)}}),D.forEach(Zr=>{Zr.parentPlayer?Zr.syncPlayerEvents(Zr.parentPlayer):Zr.destroy()});for(let Zr=0;Zr!ta.destroyed);Ca.length?kd(this,vi,Ca):this.processLeaveNode(vi)}return Ai.length=0,ig.forEach(Zr=>{this.players.push(Zr),Zr.onDone(()=>{Zr.destroy();const vi=this.players.indexOf(Zr);this.players.splice(vi,1)}),Zr.play()}),ig}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,_,D,W){let re=[];if(d){const ye=this.playersByQueriedElement.get(m);ye&&(re=ye)}else{const ye=this.playersByElement.get(m);if(ye){const Xe=!W||W==Gu;ye.forEach(yt=>{yt.queued||!Xe&&yt.triggerName!=D||re.push(yt)})}}return(_||D)&&(re=re.filter(ye=>!(_&&_!=ye.namespaceId||D&&D!=ye.triggerName))),re}_beforeAnimationBuild(m,d,_){const W=d.element,re=d.isRemovalTransition?void 0:m,ye=d.isRemovalTransition?void 0:d.triggerName;for(const Xe of d.timelines){const yt=Xe.element,dn=yt!==W,yn=fa(_,yt,[]);this._getPreviousPlayers(yt,dn,re,ye,d.toState).forEach(nr=>{const mr=nr.getRealPlayer();mr.beforeDestroy&&mr.beforeDestroy(),nr.destroy(),yn.push(nr)})}Gr(W,d.fromStyles)}_buildAnimation(m,d,_,D,W,re){const ye=d.triggerName,Xe=d.element,yt=[],dn=new Set,yn=new Set,_r=d.timelines.map(mr=>{const ti=mr.element;dn.add(ti);const Ai=ti[Ka];if(Ai&&Ai.removedBeforeQueried)return new Ar.sf(mr.duration,mr.delay);const ko=ti!==Xe,ho=function nc(v){const m=[];return mu(v,m),m}((_.get(ti)||kf).map(xa=>xa.getRealPlayer())).filter(xa=>!!xa.element&&xa.element===ti),Ea=W.get(ti),ea=re.get(ti),Mu=Rl(this._normalizer,mr.keyframes,Ea,ea),_l=this._buildPlayer(mr,Mu,ho);if(mr.subTimeline&&D&&yn.add(ti),ko){const xa=new cm(m,ye,ti);xa.setRealPlayer(_l),yt.push(xa)}return _l});yt.forEach(mr=>{fa(this.playersByQueriedElement,mr.element,[]).push(mr),mr.onDone(()=>function Ah(v,m,d){let _=v.get(m);if(_){if(_.length){const D=_.indexOf(d);_.splice(D,1)}0==_.length&&v.delete(m)}return _}(this.playersByQueriedElement,mr.element,mr))}),dn.forEach(mr=>ws(mr,ir));const nr=Si(_r);return nr.onDestroy(()=>{dn.forEach(mr=>Fc(mr,ir)),Dr(Xe,d.toStyles)}),yn.forEach(mr=>{fa(D,mr,[]).push(nr)}),nr}_buildPlayer(m,d,_){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,_):new Ar.sf(m.duration,m.delay)}}class cm{namespaceId;triggerName;element;_player=new Ar.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(m,d,_){this.namespaceId=m,this.triggerName=d,this.element=_}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,_)=>{d.forEach(D=>Ra(m,_,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){fa(this._queuedCallbacks,m,[]).push(d)}onDone(m){this.queued&&this._queueEvent("done",m),this._player.onDone(m)}onStart(m){this.queued&&this._queueEvent("start",m),this._player.onStart(m)}onDestroy(m){this.queued&&this._queueEvent("destroy",m),this._player.onDestroy(m)}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(m){this.queued||this._player.setPosition(m)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(m){const d=this._player;d.triggerCallback&&d.triggerCallback(m)}}function Qo(v){return v&&1===v.nodeType}function Md(v,m){const d=v.style.display;return v.style.display=m??"none",d}function Of(v,m,d,_,D){const W=[];d.forEach(Xe=>W.push(Md(Xe)));const re=[];_.forEach((Xe,yt)=>{const dn=new Map;Xe.forEach(yn=>{const _r=m.computeStyle(yt,yn,D);dn.set(yn,_r),(!_r||0==_r.length)&&(yt[Ka]=Ad,re.push(yt))}),v.set(yt,dn)});let ye=0;return d.forEach(Xe=>Md(Xe,W[ye++])),re}function Th(v,m){const d=new Map;if(v.forEach(ye=>d.set(ye,[])),0==m.length)return d;const D=new Set(m),W=new Map;function re(ye){if(!ye)return 1;let Xe=W.get(ye);if(Xe)return Xe;const yt=ye.parentNode;return Xe=d.has(yt)?yt:D.has(yt)?1:re(yt),W.set(ye,Xe),Xe}return m.forEach(ye=>{const Xe=re(ye);1!==Xe&&d.get(Xe).push(ye)}),d}function ws(v,m){v.classList?.add(m)}function Fc(v,m){v.classList?.remove(m)}function kd(v,m,d){Si(d).onDone(()=>v.processLeaveNode(m))}function mu(v,m){for(let d=0;dD.add(W)):m.set(v,_),d.delete(v),!0}class rc{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,_){this._driver=d,this._normalizer=_,this._transitionEngine=new lm(m.body,d,_),this._timelineEngine=new am(m.body,d,_),this._transitionEngine.onRemovalComplete=(D,W)=>this.onRemovalComplete(D,W)}registerTrigger(m,d,_,D,W){const re=m+"-"+D;let ye=this._triggerCache[re];if(!ye){const Xe=[],dn=Uu(this._driver,W,Xe,[]);if(Xe.length)throw function _d(){return new c.wOt(3404,!1)}();ye=function fu(v,m,d){return new Fs(v,m,d)}(D,dn,this._normalizer),this._triggerCache[re]=ye}this._transitionEngine.registerTrigger(d,D,ye)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,_,D){this._transitionEngine.insertNode(m,d,_,D)}onRemove(m,d,_){this._transitionEngine.removeNode(m,d,_)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,_,D){if("@"==_.charAt(0)){const[W,re]=vd(_);this._timelineEngine.command(W,d,re,D)}else this._transitionEngine.trigger(m,d,_,D)}listen(m,d,_,D,W){if("@"==_.charAt(0)){const[re,ye]=vd(_);return this._timelineEngine.listen(re,d,ye,W)}return this._transitionEngine.listen(m,d,_,D,W)}flush(m=-1){this._transitionEngine.flush(m)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(m){this._transitionEngine.afterFlushAnimationsDone(m)}}let Mh=(()=>{class v{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,_,D){this._element=d,this._startStyles=_,this._endStyles=D;let W=v.initialStylesByElement.get(d);W||v.initialStylesByElement.set(d,W=new Map),this._initialStyles=W}start(){this._state<1&&(this._startStyles&&Dr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dr(this._element,this._initialStyles),this._endStyles&&(Dr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(v.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Dr(this._element,this._initialStyles),this._state=3)}}return v})();function kh(v){let m=null;return v.forEach((d,_)=>{(function ic(v){return"display"===v||"position"===v})(_)&&(m=m||new Map,m.set(_,d))}),m}class gu{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,_,D){this.element=m,this.keyframes=d,this.options=_,this._specialStyles=D,this._duration=_.duration,this._delay=_.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(_=>{d.push(Object.fromEntries(_))}),d}_triggerWebAnimation(m,d,_){return m.animate(this._convertKeyframesToObject(d),_)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),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(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((_,D)=>{"offset"!==D&&m.set(D,this._finished?_:Mo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(_=>_()),d.length=0}}class Rd{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return O(m,d)}getParentElement(m){return ph(m)}query(m,d,_){return P(m,d,_)}computeStyle(m,d,_){return Mo(m,d)}animate(m,d,_,D,W,re=[]){const Xe={duration:_,delay:D,fill:0==D?"both":"forwards"};W&&(Xe.easing=W);const yt=new Map,dn=re.filter(nr=>nr instanceof gu);(function jr(v,m){return 0===v||0===m})(_,D)&&dn.forEach(nr=>{nr.currentSnapshot.forEach((mr,ti)=>yt.set(ti,mr))});let yn=function Or(v){return v.length?v[0]instanceof Map?v:v.map(m=>new Map(Object.entries(m))):[]}(d).map(nr=>new Map(nr));yn=function Hi(v,m,d){if(d.size&&m.length){let _=m[0],D=[];if(d.forEach((W,re)=>{_.has(re)||D.push(re),_.set(re,W)}),D.length)for(let W=1;Wre.set(ye,Mo(v,ye)))}}return m}(m,yn,yt);const _r=function wc(v,m){let d=null,_=null;return Array.isArray(m)&&m.length?(d=kh(m[0]),m.length>1&&(_=kh(m[m.length-1]))):m instanceof Map&&(d=kh(m)),d||_?new Mh(v,d,_):null}(m,yn);return new gu(m,yn,Xe,_r)}}const Xu="@.disabled";class Ih{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,_,D){this.namespaceId=m,this.delegate=d,this.engine=_,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,_,D=!0){this.delegate.insertBefore(m,d,_),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,_){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,_,D){this.delegate.setAttribute(m,d,_,D)}removeAttribute(m,d,_){this.delegate.removeAttribute(m,d,_)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,_,D){this.delegate.setStyle(m,d,_,D)}removeStyle(m,d,_){this.delegate.removeStyle(m,d,_)}setProperty(m,d,_){"@"==d.charAt(0)&&d==Xu?this.disableAnimations(m,!!_):this.delegate.setProperty(m,d,_)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,_){return this.delegate.listen(m,d,_)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class os extends Ih{factory;constructor(m,d,_,D,W){super(d,_,D,W),this.factory=m,this.namespaceId=d}setProperty(m,d,_){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Xu?this.disableAnimations(m,_=void 0===_||!!_):this.engine.process(this.namespaceId,m,d.slice(1),_):this.delegate.setProperty(m,d,_)}listen(m,d,_){if("@"==d.charAt(0)){const D=function Nf(v){switch(v){case"body":return document.body;case"document":return document;case"window":return window;default:return v}}(m);let W=d.slice(1),re="";return"@"!=W.charAt(0)&&([W,re]=function Oh(v){const m=v.indexOf(".");return[v.substring(0,m),v.slice(m+1)]}(W)),this.engine.listen(this.namespaceId,D,W,re,ye=>{this.factory.scheduleListenerCallback(ye._data||-1,_,ye)})}return this.delegate.listen(m,d,_)}}class hm{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,_){this.delegate=m,this.engine=d,this._zone=_,d.onRemovalComplete=(D,W)=>{W?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let dn=yt.get(D);return dn||(dn=new Ih("",D,this.engine,()=>yt.delete(D)),yt.set(D,dn)),dn}const W=d.id,re=d.id+"-"+this._currentId;this._currentId++,this.engine.register(re,m);const ye=yt=>{Array.isArray(yt)?yt.forEach(ye):this.engine.registerTrigger(W,re,m,yt.name,yt)};return d.data.animation.forEach(ye),new os(this,re,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,_){if(m>=0&&md(_));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(W=>{const[re,ye]=W;re(ye)}),this._animationCallbacksBuffer=[]})}),D.push([d,_])}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 _u=[{provide:$e,useFactory:function Rh(){return new qs}},{provide:rc,useClass:(()=>{class v extends rc{constructor(d,_,D){super(d,_,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(_){return new(_||v)(c.KVO(st.qQ),c.KVO(Ce),c.KVO($e))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})()},{provide:c._9s,useFactory:function Pf(v,m,d){return new hm(v,m,d)},deps:[i.B7,rc,c.SKi]}],Nh=[{provide:Ce,useFactory:()=>new Rd},{provide:c.bc$,useValue:"BrowserAnimations"},..._u];var Yu=n(6381),vu=n(909),Vg=n(3569),pl=n(8447),Bf=n(850);const yu=new S.c(Bf.l);var bu=n(7509),Cc=n(1787),Os=n(7947),Lh=n(1642),Nd=n(1126),Uf=n(7225),Qu=n(5351);const Zu={connector:()=>new pl.B};function Ph(v,m=Zu){const{connector:d}=m;return(0,Qu.N)((_,D)=>{const W=d();(0,Uf.Tg)(v(function pm(v){return new S.c(m=>v.subscribe(m))}(W))).subscribe(D),D.add(_.subscribe(W))})}var wu=n(2040);const oc="Service workers are disabled or not supported by this browser";class Eu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const _=(0,vu.R)(m,"controllerchange").pipe((0,Os.T)(()=>m.controller)),D=(0,Yu.v)(()=>(0,k.of)(m.controller)),W=(0,Vg.x)(D,_);this.worker=W.pipe((0,lt.p)(dn=>!!dn)),this.registration=this.worker.pipe((0,pe.n)(()=>m.getRegistration()));const yt=(0,vu.R)(m,"message").pipe((0,Os.T)(dn=>dn.data)).pipe((0,lt.p)(dn=>dn&&dn.type)).pipe(function Bc(v){return v?m=>Ph(v)(m):m=>function qu(v,m){const d=(0,Nd.T)(v)?v:()=>v;return(0,Nd.T)(m)?Ph(m,{connector:d}):_=>new Lh.G(_,d)}(new pl.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function Ju(v){return(0,Yu.v)(()=>(0,T.$)(new Error(v)))}(oc)}postMessage(m,d){return this.worker.pipe((0,M.s)(1),(0,wu.M)(_=>{_.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,_){const D=this.waitForOperationCompleted(_),W=this.postMessage(m,d);return Promise.all([W,D]).then(([,re])=>re)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?_=>_.type===m:_=>m.includes(_.type),this.events.pipe((0,lt.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,M.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,lt.p)(d=>d.nonce===m),(0,M.s)(1),(0,Os.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let $f=(()=>{class v{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new pl.B;constructor(d){if(this.sw=d,!d.isEnabled)return this.messages=yu,this.notificationClicks=yu,void(this.subscription=yu);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Os.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Os.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,Os.T)(D=>D.pushManager));const _=this.pushManager.pipe((0,pe.n)(D=>D.getSubscription()));this.subscription=(0,bu.h)(_,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(oc));const _={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),W=new Uint8Array(new ArrayBuffer(D.length));for(let re=0;rere.subscribe(_)),(0,M.s)(1)).toPromise().then(re=>(this.subscriptionChanges.next(re),re))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,M.s)(1),(0,pe.n)(_=>{if(null===_)throw new Error("Not subscribed to push notifications.");return _.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(oc))}decodeBase64(d){return atob(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Eu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})(),Ld=(()=>{class v{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=yu,void(this.unrecoverable=yu);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(oc));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:d},d)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(oc));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Eu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Fh=new c.nKC("");function Bh(v,m,d,_){return()=>{if(!(0,st.UE)(_)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=v.get(c.SKi),W=v.get(c.o8S);let re;if(D.runOutsideAngular(()=>{const ye=navigator.serviceWorker,Xe=()=>ye.controller?.postMessage({action:"INITIALIZE"});ye.addEventListener("controllerchange",Xe),W.onDestroy(()=>{ye.removeEventListener("controllerchange",Xe)})}),"function"==typeof d.registrationStrategy)re=d.registrationStrategy();else{const[ye,...Xe]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(ye){case"registerImmediately":re=(0,k.of)(null);break;case"registerWithDelay":re=jf(+Xe[0]||0);break;case"registerWhenStable":const yt=(0,Cc.H)(v.get(c.o8S).whenStable());re=Xe[0]?(0,bu.h)(yt,jf(+Xe[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>re.pipe((0,M.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(ye=>console.error("Service worker registration failed with:",ye))))}}function jf(v){return(0,k.of)(null).pipe((0,_e.c)(v))}function Vf(v,m){return new Eu((0,st.UE)(m)&&!1!==v.enabled?navigator.serviceWorker:void 0)}class ga{enabled;scope;registrationStrategy}var Uc=n(2653),Wg=n(5903),mm=n(7178),va=n(8249),sc=n(6627),$h=n(6564);function td(v){return v&&v.constructor&&"function"==typeof v.constructor.isBuffer&&v.constructor.isBuffer(v)}function Hf(v){return v}function jh(v,m){const d=(m=m||{}).delimiter||".",_=m.maxDepth,D=m.transformKey||Hf,W={};return function re(ye,Xe,yt){yt=yt||1,Object.keys(ye).forEach(function(dn){const yn=ye[dn],_r=m.safe&&Array.isArray(yn),nr=Object.prototype.toString.call(yn),mr=td(yn),ti="[object Object]"===nr||"[object Array]"===nr,Ai=Xe?Xe+d+D(dn):D(dn);if(!_r&&!mr&&ti&&Object.keys(yn).length&&(!m.maxDepth||yt<_))return re(yn,Ai,yt+1);W[Ai]=yn})}(v),W}function Pd(v,m){const d=(m=m||{}).delimiter||".",_=m.overwrite||!1,D=m.transformKey||Hf,W={};if(td(v)||"[object Object]"!==Object.prototype.toString.call(v))return v;function ye(dn){const yn=Number(dn);return isNaN(yn)||-1!==dn.indexOf(".")||m.object?dn:yn}return v=Object.keys(v).reduce(function(dn,yn){const _r=Object.prototype.toString.call(v[yn]);return"[object Object]"!==_r&&"[object Array]"!==_r||function yt(dn){const yn=Object.prototype.toString.call(dn);return!dn||("[object Array]"===yn?!dn.length:"[object Object]"===yn?!Object.keys(dn).length:void 0)}(v[yn])?(dn[yn]=v[yn],dn):function Xe(dn,yn,_r){return Object.keys(_r).reduce(function(nr,mr){return nr[dn+d+mr]=_r[mr],nr},yn)}(yn,dn,jh(v[yn],m))},{}),Object.keys(v).forEach(function(dn){const yn=dn.split(d).map(D);let _r=ye(yn.shift()),nr=ye(yn[0]),mr=W;for(;void 0!==nr;){if("__proto__"===_r)return;const ti=Object.prototype.toString.call(mr[_r]),Ai="[object Object]"===ti||"[object Array]"===ti;if(!_&&!Ai&&typeof mr[_r]<"u")return;(_&&!Ai||!_&&null==mr[_r])&&(mr[_r]="number"!=typeof nr||m.object?{}:[]),mr=mr[_r],yn.length>0&&(_r=ye(yn.shift()),nr=ye(yn[0]))}mr[_r]=Pd(v[dn],m)}),W}class Wf{translations;constructor(m){this.translations=m}getTranslation(m){return(0,k.of)(this.translations.get(m)||{})}}const zf=new c.nKC("TRANSLOCO_LOADER");function Vh(v,m){return v&&(Object.prototype.hasOwnProperty.call(v,m)?v[m]:m.split(".").reduce((d,_)=>d?.[_],v))}function Kf(v){return v?Array.isArray(v)?v.length:nd(v)?Object.keys(v).length:v?v.length:0:0}function ac(v){return"string"==typeof v}function nd(v){return!!v&&"object"==typeof v&&!Array.isArray(v)}function xu(v){return null==v}function Wh(v){return!1===xu(v)}function zh(v){return v&&"string"==typeof v.scope}function Kh(v){return jh(v,{safe:!0})}const $c=new c.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>jc}),jc={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function Zf(v={}){return{...jc,...v,missingHandler:{...jc.missingHandler,...v.missingHandler},flatten:{...jc.flatten,...v.flatten}}}const Gh=new c.nKC("TRANSLOCO_TRANSPILER");let qf=(()=>{class v{interpolationMatcher;constructor(d){this.interpolationMatcher=function Xh(v){const[m,d]=v.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??jc)}transpile(d,_={},D,W){return ac(d)?d.replace(this.interpolationMatcher,(re,ye)=>(ye=ye.trim(),Wh(_[ye])?_[ye]:Wh(D[ye])?this.transpile(D[ye],_,D,W):"")):(_&&(nd(d)?d=this.handleObject(d,_,D,W):Array.isArray(d)&&(d=this.handleArray(d,_,D,W))),d)}handleObject(d,_={},D,W){let re=d;return Object.keys(_).forEach(ye=>{const Xe=Vh(re,ye),yt=Vh(_,ye),dn=this.transpile(Xe,yt,D,W);re=function gm(v,m,d){v={...v};const _=m.split("."),D=_.length-1;return _.reduce((W,re,ye)=>(W[re]=ye===D?d:Array.isArray(W[re])?W[re].slice():{...W[re]},W&&W[re]),v),v}(re,ye,dn)}),re}handleArray(d,_={},D,W){return d.map(re=>this.transpile(re,_,D,W))}static \u0275fac=function(_){return new(_||v)(c.KVO($c,8))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const tl=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Cu=(()=>{class v{handle(d,_){return _.missingHandler.logMissingKey&&!_.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Qh=new c.nKC("TRANSLOCO_INTERCEPTOR");let rd=(()=>{class v{preSaveTranslation(d){return d}preSaveTranslationKey(d,_){return _}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const b=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let on,E=(()=>{class v{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(_){return new(_||v)(c.KVO($c))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();function A(v){if(!v)return"";const m=v.split("/");return m.pop(),m.join("/")}function j(v){return v?v.split("/").pop():""}function wt(v){return{scope:A(v)||null,langName:j(v)}}function Pt(v){const{path:m,inlineLoader:d,mainLoader:_,data:D}=v;if(d){if(!1===function Xf(v){return"function"==typeof v}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(re=>re.default?re.default:re)}return _.getTranslation(m,D)}let Yt=(()=>{class v{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 pl.B;events$=this.events.asObservable();config;constructor(d,_,D,W,re,ye){this.loader=d,this.parser=_,this.missingHandler=D,this.interceptor=W,this.fallbackStrategy=ye,this.loader||(this.loader=new Wf(this.translations)),on=this,this.config=JSON.parse(JSON.stringify(re)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Le.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(Xe=>{"translationLoadSuccess"===Xe.type&&Xe.wasFailure&&this.setActiveLang(Xe.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(d){this.defaultLang=d}getActiveLang(){return this.lang.getValue()}setActiveLang(d){return this.parser.onLangChanged?.(d),this.lang.next(d),this.events.next({type:"langChanged",payload:wt(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,_={}){const D=this.cache.get(d);if(D)return D;let W;const re=this._isLangScoped(d);let ye;re&&(ye=A(d));const Xe={path:d,mainLoader:this.loader,inlineLoader:_.inlineLoader,data:re?{scope:ye}:void 0};if(this.useFallbackTranslation(d)){const dn=re?`${ye}/${this.firstFallbackLang}`:this.firstFallbackLang,yn=function Lt({mainLoader:v,path:m,data:d,fallbackPath:_,inlineLoader:D}){return(_?[m,_]:[m]).map(re=>{const ye=Pt({path:re,mainLoader:v,inlineLoader:D,data:d});return(0,Cc.H)(ye).pipe((0,Os.T)(Xe=>({translation:Xe,lang:re})))})}({...Xe,fallbackPath:dn});W=(0,Uc.p)(yn)}else{const dn=Pt(Xe);W=(0,Cc.H)(dn)}const yt=W.pipe((0,Wg.L)(this.config.failedRetries),(0,wu.M)(dn=>{Array.isArray(dn)?dn.forEach(yn=>{this.handleSuccess(yn.lang,yn.translation),yn.lang!==d&&this.cache.set(yn.lang,(0,k.of)({}))}):this.handleSuccess(d,dn)}),(0,mm.W)(dn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,dn),this.handleFailure(d,_))),(0,va.t)(1));return this.cache.set(d,yt),yt}translate(d,_={},D=this.getActiveLang()){if(!d)return d;const{scope:W,resolveLang:re}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(W?`${W}.${yt}`:yt,_,re));d=W?`${W}.${d}`:d;const ye=this.getTranslation(re),Xe=ye[d];return Xe?this.parser.transpile(Xe,_,ye,d):this._handleMissingKey(d,Xe,_)}selectTranslate(d,_,D,W=!1){let re;const ye=(yt,dn)=>this.load(yt,dn).pipe((0,Os.T)(()=>W?this.translateObject(d,_,yt):this.translate(d,_,yt)));if(xu(D))return this.langChanges$.pipe((0,pe.n)(yt=>ye(yt)));if(function vm(v){return Array.isArray(v)&&v.every(zh)}(D)||zh(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,re=function Qe(v,m){return function Yf(v){return v&&nd(v.loader)}(v)?function Pe(v,m){return Object.keys(v).reduce((d,_)=>(d[`${m}/${_}`]=v[_],d),{})}(v.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return ye(D);const Xe=D;return this.langChanges$.pipe((0,pe.n)(yt=>ye(`${Xe}/${yt}`,{inlineLoader:re})))}isScopeWithLang(d){return this.isLang(j(d))}translateObject(d,_={},D=this.getActiveLang()){if(ac(d)||Array.isArray(d)){const{resolveLang:re,scope:ye}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(dn=>this.translateObject(ye?`${ye}.${dn}`:dn,_,re));const Xe=this.getTranslation(re),yt=function Qf(v){return Pd(v)}(this.getObjectByKey(Xe,d=ye?`${ye}.${d}`:d));return function Gf(v){return 0===Kf(v)}(yt)?this.translate(d,_,D):this.parser.transpile(yt,_,Xe,d)}const W=[];for(const[re,ye]of this.getEntries(d))W.push(this.translateObject(re,ye,D));return W}selectTranslateObject(d,_,D){if(ac(d)||Array.isArray(d))return this.selectTranslate(d,_,D,!0);const[[W,re],...ye]=this.getEntries(d);return this.selectTranslateObject(W,re,D).pipe((0,Os.T)(Xe=>{const yt=[Xe];for(const[dn,yn]of ye)yt.push(this.translateObject(dn,yn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:_,resolveLang:D}=this.resolveLangAndScope(d),W=this.translations.get(D)||{};return this.getObjectByKey(W,_)}}return this.translations}selectTranslation(d){let _=this.langChanges$;if(d){const D=j(d)!==d;_=this.isLang(d)||D?(0,k.of)(d):this.langChanges$.pipe((0,Os.T)(W=>`${d}/${W}`))}return _.pipe((0,pe.n)(D=>this.load(D).pipe((0,Os.T)(()=>this.getTranslation(D)))))}setTranslation(d,_=this.getActiveLang(),D={}){const re={merge:!0,emitChange:!0,...D},ye=A(_);let Xe=d;if(ye){const nr=this.getMappedScope(ye);Xe=Kh({[nr]:d})}const yt=ye?j(_):_,dn={...re.merge&&this.getTranslation(yt),...Xe},yn=this.config.flatten.aot?dn:Kh(dn),_r=this.interceptor.preSaveTranslation(yn,yt);this.translations.set(yt,_r),re.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,_,D=this.getActiveLang(),W={}){const re=this.interceptor.preSaveTranslationKey(d,_,D);this.setTranslation({[d]:re},D,{...W,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const _=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(_)&&(this.firstFallbackLang=_)}_handleMissingKey(d,_,D){if(this.config.missingHandler.allowEmpty&&""===_)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const W=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,W}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,_){const D=j(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,sc.z)([this.load(D),this.load(d,{inlineLoader:_})]):this.load(d,{inlineLoader:_})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(j(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,_){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=_}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return Kf(this.getTranslation(d))}getAvailableLangsIds(){return ac(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(_=>_.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,_){this.setTranslation(_,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:wt(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,_){xu(_.failedCounter)&&(_.failedCounter=0,_.fallbackLangs||(_.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),re=_.fallbackLangs[_.failedCounter];if(this.failedLangs.add(d),this.cache.has(re))return this.handleSuccess(re,this.getTranslation(re)),$h.w;if(!re||re===D[D.length-1]){let yt="Unable to load translation and all the fallback languages";throw D.length>1&&(yt+=", did you misspelled the scope name?"),new Error(yt)}let Xe=re;return D.length>1&&(D[D.length-1]=re,Xe=D.join("/")),_.failedCounter++,this.events.next({type:"translationLoadFailure",payload:wt(d)}),this.load(Xe,_)}getMappedScope(d){const{scopeMapping:_={}}=this.config;return _[d]||function Bd(v){return v.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,_=d;if(this._isLangScoped(d)){const W=j(d),re=this.isLang(W);_=re?W:this.getActiveLang(),D=this.getMappedScope(re?A(d):d)}return{scope:D,resolveLang:_}}getObjectByKey(d,_){const D={},W=`${_}.`;for(const re in d)re.startsWith(W)&&(D[re.replace(W,"")]=d[re]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(zf,8),c.KVO(Gh),c.KVO(tl),c.KVO(Qh),c.KVO($c),c.KVO(b))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();function pr(v){return(0,c.EmA)([{provide:Gh,useClass:v,deps:[$c]}])}function Yr(v){return(0,c.EmA)([{provide:b,useClass:v,deps:[$c]}])}function mi(v){return(0,c.EmA)([{provide:tl,useClass:v}])}function br(v){return(0,c.EmA)([{provide:Qh,useClass:v}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Ga=n(7838);let ba=(()=>{class v{constructor(){this._httpClient=(0,c.WQX)(ne.Qq),this._navigation=new Ga.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,wu.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})(),Vc=(()=>{class v{constructor(d){this._httpClient=d,this._chat=new Le.t(null),this._chats=new Le.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,wu.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,Os.T)(_=>(this._chat.next(_),_)),(0,pe.n)(_=>_?(0,k.of)(_):(0,T.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const lc=new class Po{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.12").full;var wa=n(5424),Zo=n(3022),Hc=n(2322);function jd(v,m){if(1&v&&c.nrm(0,"mat-progress-bar",0),2&v){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Wc=(()=>{class v{constructor(){this._angorLoadingService=(0,c.WQX)(Ae),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new pl.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Zo.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(_,D){1&_&&c.DNE(0,jd,1,2,"mat-progress-bar",0),2&_&&c.vxM(D.show?0:-1)},dependencies:[Hc.PO,Hc.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return v})();function Zh(v,m){1&v&&c.nrm(0,"router-outlet")}let Jf=(()=>{class v{constructor(){this._unsubscribeAll=new pl.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Zh,1,0,"router-outlet"),c.k0s()()),2&_&&(c.R7$(3),c.vxM(3))},dependencies:[Wc,a.n3],encapsulation:2})}}return v})();var gl=n(9471),rl=n(3904),zc=n(7712);function bm(v,m){1&v&&c.nrm(0,"mat-icon",3)}let Dc=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.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(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(W),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,bm,1,0,"ng-template",null,0,c.C5r)}if(2&_){const W=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||W)}},dependencies:[gl.Hl,gl.iY,zc.uc,zc.oV,st.T3,rl.m_,rl.An],encapsulation:2,changeDetection:0})}}return v})();var qh=n(3871),wm=n(6192),Jh=n(3125);let ep=(()=>{class v{constructor(d){this.relayService=d,this.notificationSubject=new Le.t([]),this.notificationCount=new Le.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,_){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",_.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var _=this;return(0,w.A)(function*(){yield _.relayService.ensureConnectedRelays();const D=_.relayService.getPool(),W=_.relayService.getConnectedRelays();if(0===W.length)throw new Error("No connected relays");const re=_.loadTimestampFromLocalStorage(),ye=_.loadFilterPreferences();0===ye.length&&ye.push(1,3,4,7,9735);const Xe={kinds:ye,"#p":[d],limit:50,since:re||void 0};return new Promise(yt=>{D.subscribeMany(W,[Xe],{onevent:yn=>_.handleNotificationEvent(yn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,_){if(this.isNotificationEvent(d,_)){const W=new Date(1e3*d.created_at);let re="",ye="",Xe="";switch(d.kind){case 1:re="Mention",ye="Mentioned you in an event.",Xe="heroicons_outline:at-symbol";break;case 4:re="Private Message",ye="Sent a private message.",Xe="heroicons_outline:envelope-open";break;case 9735:re="Zap",ye="Received a zap event.",Xe="feather:zap";break;case 3:re="New Follower",ye="You have a new follower.",Xe="heroicons_outline:user-plus";break;case 7:re="New Like",ye="You have a new Like.",Xe="heroicons_outline:hand-thumb-up";break;default:re="Notification",Xe="heroicons_outline:bell"}const yn=[{id:d.id,icon:Xe,title:re,description:ye,time:W,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(yn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const _=this.notificationCount.value+1;this.notificationCount.next(_),this.saveNotificationData(_,d)}markAllAsRead(){const d=this.notificationSubject.value.map(D=>({...D,read:!0}));this.notificationSubject.next(d),this.notificationCount.next(0);const _=Math.floor(Date.now()/1e3);this.saveNotificationData(0,_)}isNotificationEvent(d,_){return d.tags.some(D=>"p"===D[0]&&D[1]===_)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Jh.b))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var id=n(9666),Vd=n(8078);const ef=["notificationsOrigin"],La=["notificationsPanel"],oy=v=>({unread:v}),Es=(v,m)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":v,"bg-primary":m});function sy(v,m){if(1&v&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&v){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount," ")}}function ay(v,m){1&v&&c.eu8(0)}function Em(v,m){if(1&v&&(c.j41(0,"a",23),c.DNE(1,ay,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function zg(v,m){1&v&&c.eu8(0)}function Kg(v,m){if(1&v&&(c.j41(0,"a",24),c.DNE(1,zg,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function ly(v,m){if(1&v&&c.DNE(0,Em,2,2,"a",23)(1,Kg,2,2,"a",24),2&v){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Tw(v,m){1&v&&c.eu8(0)}function Gg(v,m){if(1&v&&(c.j41(0,"div",17),c.DNE(1,Tw,1,0,"ng-container",25),c.k0s()),2&v){c.XpG();const d=c.sdS(9);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function cy(v,m){if(1&v&&(c.j41(0,"div",26),c.nrm(1,"mat-icon",32),c.k0s()),2&v){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function tp(v,m){if(1&v&&c.nrm(0,"img",27),2&v){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function xm(v,m){if(1&v&&c.nrm(0,"div",29),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Cm(v,m){if(1&v&&c.nrm(0,"div",30),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function Hd(v,m){if(1&v&&(c.DNE(0,cy,2,1,"div",26)(1,tp,1,2,"img",27),c.j41(2,"div",28),c.DNE(3,xm,1,1,"div",29)(4,Cm,1,1,"div",30),c.j41(5,"div",31),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&v){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function np(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",16),c.DNE(1,ly,2,2)(2,Gg,2,1,"div",17),c.j41(3,"div",18)(4,"button",19),c.bIt("click",function(){const D=c.eBV(d).$implicit,W=c.XpG(2);return c.Njj(W.toggleRead(D))}),c.nrm(5,"span",20),c.k0s(),c.j41(6,"button",21),c.bIt("click",function(){const D=c.eBV(d).$implicit,W=c.XpG(2);return c.Njj(W.deleteNotification(D))}),c.nrm(7,"mat-icon",22),c.k0s()()(),c.DNE(8,Hd,8,8,"ng-template",null,2,c.C5r)}if(2&v){const d=m.$implicit;c.Y8G("ngClass",c.eq3(7,oy,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2),c.R7$(2),c.Y8G("matTooltip",d.read?"Mark as unread":"Mark as read"),c.R7$(),c.Y8G("ngClass",c.l_i(9,Es,d.read,!d.read)),c.R7$(),c.Y8G("matTooltip","Remove"),c.R7$(),c.Y8G("svgIcon","heroicons_solid:x-mark")}}function rp(v,m){1&v&&(c.j41(0,"div",15)(1,"div",33),c.nrm(2,"mat-icon",34),c.k0s(),c.j41(3,"div",35),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",36),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&v&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Wd(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,np,10,12,null,null,c.BUC().trackByFn,!0),c.DNE(13,rp,7,1,"div",15),c.k0s()()}if(2&v){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications),c.R7$(2),c.vxM(d.notifications&&d.notifications.length?-1:13)}}let ip=(()=>{class v{constructor(d,_,D,W,re){this._notificationService=d,this._changeDetectorRef=_,this._overlay=D,this._viewContainerRef=W,this._signerService=re,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new pl.B}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(_=>{this.notifications=_,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(_=>{this.unreadCount=_,this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new wm.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(d){d.read=!d.read}trackByFn(d,_){return _.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(_){return new(_||v)(c.rXU(ep),c.rXU(c.gRc),c.rXU(id.hJ),c.rXU(c.c1b),c.rXU(Vd.A))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["notifications"]],viewQuery:function(_,D){if(1&_&&(c.GBs(ef,5),c.GBs(La,5)),2&_){let W;c.mGM(W=c.lsd())&&(D._notificationsOrigin=W.first),c.mGM(W=c.lsd())&&(D._notificationsPanel=W.first)}},exportAs:["notifications"],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(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(W),c.Njj(D.openPanel())}),c.DNE(2,sy,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,Wd,14,5,"ng-template",null,1,c.C5r)}2&_&&(c.R7$(2),c.vxM(D.unreadCount>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[gl.Hl,gl.iY,rl.m_,rl.An,zc.uc,zc.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return v})();var Du=n(936),Dm=n(8108),Au=n(8559),tf=n(5710),uy=n(2944),Ac=n(5919),od=n(6520),nf=n(593);const Mw=["panel"],Xg=["*"];function dy(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const W=c.XpG();return c.Njj(W._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&v){const d=m.id,_=c.XpG();c.HbH(_._classList),c.AVh("mat-mdc-autocomplete-visible",_.showPanel)("mat-mdc-autocomplete-hidden",!_.showPanel)("mat-primary","primary"===_._color)("mat-accent","accent"===_._color)("mat-warn","warn"===_._color),c.Y8G("id",_.id)("@panelAnimation",_.isOpen?"visible":"hidden"),c.BMQ("aria-label",_.ariaLabel||null)("aria-labelledby",_._getPanelAriaLabelledby(d))}}const Yg=(0,Ar.hZ)("panelAnimation",[(0,Ar.wk)("void, hidden",(0,Ar.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,Ar.kY)(":enter, hidden => visible",[(0,Ar.Os)([(0,Ar.i0)("0.03s linear",(0,Ar.iF)({opacity:1})),(0,Ar.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Ar.iF)({transform:"scaleY(1)"}))])]),(0,Ar.kY)(":leave, visible => hidden",[(0,Ar.i0)("0.075s linear",(0,Ar.iF)({opacity:0}))])]);class kw{source;option;constructor(m,d){this.source=m,this.option=d}}const Am=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function hy(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Qg=(()=>{class v{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(Am);_activeOptionChanges=tf.yU.EMPTY;_animationDone=new c.bkB;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(d){this._color=d,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new c.bkB;opened=new c.bkB;closed=new c.bkB;optionActivated=new c.bkB;set classList(d){this._classList=d,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(d){this._hideSingleSelectionIndicator=d,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const d of this.options)d._changeDetectorRef.markForCheck()}id=(0,c.WQX)(Au.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(xe.OD);this.inertGroups=d?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Au.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const _=new kw(this,d);this.optionSelected.emit(_)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(_){return new(_||v)};static \u0275cmp=c.VBU({type:v,selectors:[["mat-autocomplete"]],contentQueries:function(_,D,W){if(1&_&&(c.wni(W,sn.wT,5),c.wni(W,sn.QC,5)),2&_){let re;c.mGM(re=c.lsd())&&(D.options=re),c.mGM(re=c.lsd())&&(D.optionGroups=re)}},viewQuery:function(_,D){if(1&_&&(c.GBs(c.C4Q,7),c.GBs(Mw,5)),2&_){let W;c.mGM(W=c.lsd())&&(D.template=W.first),c.mGM(W=c.lsd())&&(D.panel=W.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",c.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",c.L39],requireSelection:[2,"requireSelection","requireSelection",c.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",c.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.Jv_([{provide:sn.is,useExisting:v}]),c.GFd],ngContentSelectors:Xg,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(_,D){1&_&&(c.NAR(),c.DNE(0,dy,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-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: 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:[Yg]},changeDetection:0})}return v})();const fy={provide:Du.kq,useExisting:(0,c.Rfq)(()=>zd),multi:!0},op=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const v=(0,c.WQX)(id.hJ);return()=>v.scrollStrategies.reposition()}}),sp={provide:op,deps:[id.hJ],useFactory:function Iw(v){return()=>v.scrollStrategies.reposition()}};let zd=(()=>{class v{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(id.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(uy.dS,{optional:!0});_formField=(0,c.WQX)(En.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Dm.Xj);_defaults=(0,c.WQX)(Am,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(op);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=tf.yU.EMPTY;_breakpointObserver=(0,c.WQX)(od.QP);_handsetLandscapeSubscription=tf.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new pl.B;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new pl.B;_injector=(0,c.WQX)(c.zZn);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const d=this._getWindow();typeof d<"u"&&this._zone.runOutsideAngular(()=>d.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(d){d.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const d=this._getWindow();typeof d<"u"&&d.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}_overlayAttached=!1;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,Au.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,bu.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,lt.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,lt.p)(()=>this._overlayAttached)):(0,k.of)()).pipe((0,Os.T)(d=>d instanceof sn.MI?d:null))}optionSelections=(0,Yu.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,nf.Z)(d),(0,pe.n)(()=>(0,bu.h)(...d.map(_=>_.onSelectionChange)))):this._initialized.pipe((0,pe.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,bu.h)((0,vu.R)(this._document,"click"),(0,vu.R)(this._document,"auxclick"),(0,vu.R)(this._document,"touchend")).pipe((0,lt.p)(d=>{const _=(0,xe.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(_))&&(!W||!W.contains(_))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const _=d.keyCode,D=(0,Ac.rp)(d);if(_===Ac._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&_===Ac.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,re=_===Ac.i7||_===Ac.n6;_===Ac.wn||re&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):re&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(re||this.autocomplete._keyManager.activeItem!==W)&&(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(d){let _=d.target,D=_.value;if("number"===_.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const W=this.autocomplete.options?.find(re=>re.selected);W&&D!==this._getDisplayValue(W.value)&&W.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const W=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(W)}}}_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(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),_=this.autocomplete.options.changes.pipe((0,wu.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,_e.c)(0));return(0,bu.h)(d,_).pipe((0,pe.n)(()=>this._zone.run(()=>{const D=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),D!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,M.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const _=this.autocomplete;return _&&_.displayWith?_.displayWith(d):d}_assignOptionValue(d){const _=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(_??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const _=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),_._emitSelectEvent(D),this._element.nativeElement.focus()):_.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),_._animationDone?_._animationDone.pipe((0,M.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,_){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(_)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Au.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let _=this._overlayRef;_?(this._positionStrategy.setOrigin(this._getConnectedElement()),_.updateSize({width:this._getPanelWidth()})):(this._portal=new wm.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),_=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_&&_.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(od.Rp.HandsetLandscape).subscribe(W=>{W.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),_&&!_.hasAttached()&&(_.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===Ac._f&&!(0,Ac.rp)(d)||d.keyCode===Ac.i7&&(0,Ac.rp)(d,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),d.stopPropagation(),d.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const d=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=d.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=d.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new id.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const _=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let re;re="above"===this.position?W:"below"===this.position?_:[..._,...W],d.withPositions(re)}_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 d=this.autocomplete;if(d.autoActiveFirstOption){let _=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const _=this.autocomplete.id;this._trackedModal&&(0,Au.Ae)(this._trackedModal,"aria-owns",_),(0,Au.px)(d,"aria-owns",_),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Au.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(_){return new(_||v)};static \u0275dir=c.FsC({type:v,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(_,D){1&_&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(re){return D._handleInput(re)})("keydown",function(re){return D._handleKeydown(re)})("click",function(){return D._handleClick()}),2&_&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([fy]),c.GFd,c.OA$]})}return v})(),py=(()=>{class v{static \u0275fac=function(_){return new(_||v)};static \u0275mod=c.$C({type:v});static \u0275inj=c.G2t({providers:[sp],imports:[id.z_,sn.Sy,sn.yE,Dm.Gj,sn.Sy,sn.yE]})}return v})();var Zg=n(6389),qg=n(3149),my=n(8627);const Sm=["barSearchInput"],Jg=["matAutocomplete"],e_=(v,m)=>m.id;function gy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",4),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",5),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function rf(v,m){1&v&&(c.j41(0,"mat-option",9),c.EFF(1," No results found! "),c.k0s())}function t_(v,m){if(1&v){const d=c.RV6();c.j41(0,"img",19),c.bIt("error",function(D){c.eBV(d);const W=c.XpG(5);return c.Njj(W.handleImageError(D))}),c.k0s()}if(2&v){const d=c.XpG().$implicit;c.FS9("alt",d.name),c.Y8G("src",d.avatar,c.B4B)}}function Tm(v,m){1&v&&c.nrm(0,"mat-icon",15),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}function _y(v,m){if(1&v&&(c.j41(0,"div",18),c.EFF(1),c.k0s()),2&v){const d=c.XpG().$implicit;c.R7$(),c.JRh(d.about)}}function Ow(v,m){if(1&v&&(c.j41(0,"mat-option",11)(1,"div",12)(2,"div",13),c.DNE(3,t_,1,2,"img",14)(4,Tm,1,1,"mat-icon",15),c.k0s(),c.j41(5,"div",16)(6,"span",17),c.EFF(7),c.k0s(),c.DNE(8,_y,2,1,"div",18),c.k0s()()()),2&v){const d=m.$implicit;c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.vxM(d.avatar?3:4),c.R7$(4),c.JRh(d.name),c.R7$(),c.vxM(d.about?8:-1)}}function Rw(v,m){1&v&&c.Z7z(0,Ow,9,5,"mat-option",11,e_),2&v&&c.Dyx(m.$implicit.results)}function sf(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",3),c.nrm(1,"mat-icon",6),c.j41(2,"input",7,0),c.bIt("keydown",function(D){c.eBV(d);const W=c.XpG(2);return c.Njj(W.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",8,1),c.DNE(6,rf,2,0,"mat-option",9),c.Z7z(7,Rw,2,0,null,null,e_),c.k0s(),c.j41(9,"button",10),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(10,"mat-icon",5),c.k0s()()}if(2&v){let d;const _=c.sdS(5),D=c.XpG(2);c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",D.searchControl)("matAutocomplete",_),c.R7$(4),c.vxM(0===(null==(d=D.resultSets())?null:d.length)?6:-1),c.R7$(),c.Dyx(D.resultSets()),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function vy(v,m){if(1&v&&c.DNE(0,gy,2,1,"button",2)(1,sf,11,5,"div",3),2&v){const d=c.XpG();c.vxM(d.opened()?-1:0),c.R7$(),c.vxM(d.opened()?1:-1)}}let af=(()=>{class v{constructor(){this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.searchControl=new Du.hs,this.resultSets=(0,c.vPA)([]),this.opened=(0,c.vPA)(!1),this.unsubscribeAll=new pl.B,this.storageService=(0,c.WQX)(qg.n)}ngOnInit(){this.initializeSearch()}ngOnDestroy(){this.unsubscribeAll.next(),this.unsubscribeAll.complete()}initializeSearch(){var d=this;this.searchControl.valueChanges.pipe((0,my.B)(this.debounce),(0,wa.Q)(this.unsubscribeAll),(0,Os.T)(_=>((!_||_.length_&&_.length>=this.minLength)).subscribe(function(){var _=(0,w.A)(function*(D){const re=(yield d.storageService.searchProfile(D)).map(ye=>({label:"Project",results:[{name:ye.profile.name||ye.profile.displayName||ye.pubKey,pubkey:ye.pubKey,about:ye.profile.about?.replace(/<\/?[^>]+(>|$)/g,"")||"",avatar:ye.profile.picture||null,link:`/profile/${ye.pubKey}`}]}));d.resultSets.set(re),d.search.emit(re)});return function(D){return _.apply(this,arguments)}}())}onKeydown(d){"Escape"===d.key&&this.close()}open(){this.opened()||this.opened.set(!0)}close(){this.opened()&&(this.searchControl.setValue(""),this.opened.set(!1))}handleImageError(d){const _=d.target;_.onerror=null,_.src="images/avatars/avatar-placeholder.png"}trackByFn(d,_){return _.id||d}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["search"]],viewQuery:function(_,D){if(1&_&&(c.GBs(Sm,5),c.GBs(Jg,5)),2&_){let W;c.mGM(W=c.lsd())&&(D.barSearchInput=W.first),c.mGM(W=c.lsd())&&(D.matAutocomplete=W.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},decls:2,vars:1,consts:[["barSearchInput",""],["matAutocomplete","matAutocomplete"],["mat-icon-button",""],[1,"bg-card","absolute","inset-0","z-99","flex","items-center"],["mat-icon-button","",3,"click"],[3,"svgIcon"],[1,"absolute","ml-6","sm:ml-8",3,"svgIcon"],["placeholder","Search...",1,"h-full","w-full","px-16","sm:px-18",3,"keydown","formControl","matAutocomplete"],[1,"max-h-128","rounded-b","border-t","shadow-md"],[1,"text-secondary","pointer-events-none"],["mat-icon-button","",1,"absolute","right-5","top-1/2","-mt-5",3,"click"],[3,"routerLink","value"],[1,"flex","items-center"],[1,"h-8","w-8","rounded-full","bg-primary-100","dark:bg-primary-800"],[1,"h-full","w-full","object-cover",3,"src","alt"],[1,"m-0","text-primary",3,"svgIcon"],[1,"ml-3","truncate"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],[1,"h-full","w-full","object-cover",3,"error","src","alt"]],template:function(_,D){1&_&&(c.j41(0,"div"),c.DNE(1,vy,2,2),c.k0s()),2&_&&(c.R7$(),c.vxM("bar"===D.appearance?1:-1))},dependencies:[gl.Hl,gl.iY,rl.m_,rl.An,Du.X1,Du.me,Du.BC,Du.l_,py,Qg,sn.wT,zd,sn.Sy,a.Wk,En.RG,Zg.fS,st.MD],encapsulation:2})}}return v})();var ap=n(1109),Kd=n(7702),Mm=n(7818),Nw=n(4482);const n_=()=>["/settings"];function yy(v,m){if(1&v&&c.nrm(0,"img",4),2&v){let d;const _=c.XpG();c.Y8G("src",_.getSafeUrl(null==(d=_.user())?null:d.picture),c.B4B)}}function r_(v,m){1&v&&c.nrm(0,"mat-icon",5),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}let lp=(()=>{class v{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(Vd.A),this.storageService=(0,c.WQX)(qg.n),this.angorConfigService=(0,c.WQX)(ap.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Nw.v),this.userPubKey.set(this.signerService.getPublicKey()),this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["user"]],decls:49,vars:15,consts:[["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[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"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink"]],template:function(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",2)(1,"span",3),c.DNE(2,yy,1,1,"img",4)(3,r_,1,1,"mat-icon",5),c.k0s()(),c.j41(4,"mat-menu",6,0)(6,"button",7)(7,"span",8)(8,"span"),c.EFF(9,"Logged in as"),c.k0s(),c.j41(10,"span",9),c.EFF(11),c.k0s()()(),c.nrm(12,"mat-divider",10),c.j41(13,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.Switch())}),c.nrm(14,"mat-icon",5),c.j41(15,"span"),c.EFF(16,"Switch account"),c.k0s()(),c.j41(17,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.profile())}),c.nrm(18,"mat-icon",5),c.j41(19,"span"),c.EFF(20,"Profile"),c.k0s()(),c.j41(21,"button",12),c.nrm(22,"mat-icon",5),c.j41(23,"span"),c.EFF(24,"Options"),c.k0s()(),c.nrm(25,"mat-divider",10),c.j41(26,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.logout())}),c.nrm(27,"mat-icon",5),c.j41(28,"span"),c.EFF(29,"logout"),c.k0s()()(),c.j41(30,"mat-menu",null,1)(32,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("auto"))}),c.nrm(33,"mat-icon",5),c.j41(34,"span"),c.EFF(35,"Auto Theme"),c.k0s()(),c.j41(36,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("light"))}),c.nrm(37,"mat-icon",5),c.j41(38,"span"),c.EFF(39,"Light Theme"),c.k0s()(),c.j41(40,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("dark"))}),c.nrm(41,"mat-icon",5),c.j41(42,"span"),c.EFF(43,"Dark Theme"),c.k0s()(),c.nrm(44,"mat-divider"),c.j41(45,"button",13),c.nrm(46,"mat-icon",5),c.j41(47,"span"),c.EFF(48,"Settings"),c.k0s()()()}if(2&_){let W,re;const ye=c.sdS(5),Xe=c.sdS(31);c.Y8G("matMenuTriggerFor",ye),c.R7$(2),c.vxM(null!=(W=D.user())&&W.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(7),c.JRh((null==(re=D.user())?null:re.display_name)||(null==D.user?null:D.user.name)||"Unknown User"),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",Xe),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(14,n_)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[gl.Hl,gl.iY,Mm.Cn,Mm.kk,Mm.fb,Mm.Cp,rl.m_,rl.An,Kd.w,Kd.q,st.MD,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return v})();var i_=n(6061),ad=n(9587);let by=(()=>{class v{constructor(d,_){this.swUpdate=d,this.zone=_,this.newVersionAvailableSubject=new Le.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function o_(v=0,m=i_.E){return v<0&&(v=0),(0,ad.O)(v,v,m)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(_){console.error("Failed to check for updates:",_)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Ld),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();function wy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&v){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let s_=(()=>{class v{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(by),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(_,D){1&_&&c.DNE(0,wy,2,2,"button",0),2&_&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,gl.Hl,gl.iY,rl.m_,rl.An,zc.uc,zc.oV],encapsulation:2,changeDetection:0})}}return v})();function Ey(v,m){if(1&v&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&v){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function a_(v,m){if(1&v&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&v){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function xy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function Cy(v,m){1&v&&c.nrm(0,"router-outlet")}let Dy=(()=>{class v{constructor(d,_,D,W,re){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=re,this._unsubscribeAll=new pl.B,this.version=lc}ngOnInit(){this._navigationService.navigation$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ba),c.rXU(ae.l),c.rXU(qh.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["modern-layout"]],decls:17,vars:6,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(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,Ey,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,a_,6,2)(5,xy,2,1,"button",3),c.j41(6,"div",4),c.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),c.k0s()(),c.j41(12,"div",7),c.DNE(13,Cy,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&_&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Wc,qh.Tv,qh.$w,gl.Hl,gl.iY,rl.m_,rl.An,Dc,af,ip,lp,a.n3,s_],encapsulation:2})}}return v})();function Ay(v,m){1&v&&c.nrm(0,"router-outlet")}let Sy=(()=>{class v{constructor(d,_,D,W,re){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=re,this._unsubscribeAll=new pl.B,this.version=lc}ngOnInit(){this._navigationService.navigation$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ba),c.rXU(ae.l),c.rXU(qh.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["classic-layout"]],decls:21,vars:8,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(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,Ay,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&_&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Wc,qh.Tv,gl.Hl,gl.iY,rl.m_,rl.An,Dc,af,ip,lp,a.n3,s_],encapsulation:2})}}return v})();function km(v,m){1&v&&c.nrm(0,"empty-layout")}function Ty(v,m){1&v&&c.nrm(0,"modern-layout")}function My(v,m){1&v&&c.nrm(0,"classic-layout")}let Sc=(()=>{class v{constructor(d,_,D,W,re,ye,Xe){this._activatedRoute=d,this._document=_,this._renderer2=D,this._router=W,this._angorConfigService=re,this._angorMediaWatcherService=ye,this._angorPlatformService=Xe,this._unsubscribeAll=new pl.B}ngOnInit(){(0,sc.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,wa.Q)(this._unsubscribeAll),(0,Os.T)(([d,_])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=_.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,lt.p)(d=>d instanceof a.wF),(0,wa.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",lc),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const _=d.snapshot.queryParamMap.get("layout");_&&(this.layout=_,this.config&&(this.config.layout=_)),d.pathFromRoot.forEach(W=>{W.routeConfig&&W.routeConfig.data&&W.routeConfig.data.layout&&(this.layout=W.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(ap.P),c.rXU(ae.l),c.rXU(Be))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["layout"]],decls:3,vars:3,template:function(_,D){1&_&&c.DNE(0,km,1,0,"empty-layout")(1,Ty,1,0,"modern-layout")(2,My,1,0,"classic-layout"),2&_&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Jf,Dy,Sy],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 v})();const ld=()=>{const v=(0,c.WQX)(Vd.A),m=(0,c.WQX)(a.Ix);return""!==v.getPublicKey()||m.parseUrl("/login")},Im=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:Sc,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([n.e(87),n.e(232)]).then(n.bind(n,6232))},{path:"create",loadChildren:()=>Promise.all([n.e(87),n.e(664)]).then(n.bind(n,9664))}]},{path:"",canActivate:[ld],canActivateChild:[ld],component:Sc,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>n.e(957).then(n.bind(n,7957))}]},{path:"",canActivate:[ld],canActivateChild:[ld],component:Sc,resolve:{initialData:()=>{const v=(0,c.WQX)(ba);return(0,c.WQX)(Vc),(0,Uc.p)([v.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(863),n.e(836)]).then(n.bind(n,836))},{path:"explore",loadChildren:()=>Promise.all([n.e(318),n.e(371),n.e(76),n.e(45)]).then(n.bind(n,2045))},{path:"zap",loadChildren:()=>Promise.all([n.e(859),n.e(785)]).then(n.bind(n,8166))},{path:"bookmark",loadChildren:()=>Promise.all([n.e(318),n.e(371),n.e(76),n.e(767)]).then(n.bind(n,6767))},{path:"profile",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"post",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(556),n.e(863),n.e(544)]).then(n.bind(n,6544))},{path:"post/:id",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(556),n.e(863),n.e(544)]).then(n.bind(n,6544))},{path:"settings",loadChildren:()=>Promise.all([n.e(859),n.e(371),n.e(76),n.e(824)]).then(n.bind(n,8824))},{path:"settings/:id",loadChildren:()=>Promise.all([n.e(859),n.e(371),n.e(76),n.e(824)]).then(n.bind(n,8824))},{path:"chat",loadChildren:()=>Promise.all([n.e(859),n.e(523),n.e(556),n.e(512)]).then(n.bind(n,1512))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>n.e(256).then(n.bind(n,9256))},{path:"**",redirectTo:"404-not-found"}]}];let Gd=(()=>{class v{constructor(){const d=(0,c.WQX)(i.up),_=(0,c.WQX)(rl.tp);_.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),_.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),_.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),_.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),_.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),_.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),_.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Iy=n(8747),Lw=n(1540);let Om=(()=>{class v{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const l_=[{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:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}],c_=[{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:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}];var u_=n(1238);var Ry=n(2065),up=n(101),Ny=n(6259),Ly=n(1561);const Py=(0,n(5717).A)(Object.keys,Object);var By=Object.prototype.hasOwnProperty;var jy=n(2808);const Rm=function d_(v){return(0,jy.A)(v)?(0,Ny.A)(v):function Uy(v){if(!(0,Ly.A)(v))return Py(v);var m=[];for(var d in Object(v))By.call(v,d)&&"constructor"!=d&&m.push(d);return m}(v)};var Nm=n(3959);var lf=n(4224),h_=n(1369);const Wy=function Pw(){return[]};var Lm=Object.prototype.propertyIsEnumerable,hp=Object.getOwnPropertySymbols;const m_=hp?function(v){return null==v?[]:(v=Object(v),function f_(v,m){for(var d=-1,_=null==v?0:v.length,D=0,W=[];++d<_;){var re=v[d];m(re,d,v)&&(W[D++]=re)}return W}(hp(v),function(m){return Lm.call(v,m)}))}:Wy,__=function Ky(v,m){for(var d=-1,_=m.length,D=v.length;++d<_;)v[D+d]=m[d];return v};var Gy=n(5749);const Pm=Object.getOwnPropertySymbols?function(v){for(var m=[];v;)__(m,m_(v)),v=(0,Gy.A)(v);return m}:Wy;var Fm=n(9007);const Bm=function fp(v,m,d){var _=m(v);return(0,Fm.A)(v)?_:__(_,d(v))},Zy=function Um(v){return Bm(v,Rm,m_)},y_=function ud(v){return Bm(v,Nm.A,Pm)};var pp=n(3121),Yd=n(9311);const jm=(0,pp.A)(Yd.A,"DataView");var Vm=n(2769);const Hm=(0,pp.A)(Yd.A,"Promise"),w_=(0,pp.A)(Yd.A,"Set"),dd=(0,pp.A)(Yd.A,"WeakMap");var E_=n(5688),Qd=n(4435),x_="[object Map]",D_="[object Promise]",A_="[object Set]",S_="[object WeakMap]",T_="[object DataView]",Jy=(0,Qd.A)(jm),eb=(0,Qd.A)(Vm.A),Wm=(0,Qd.A)(Hm),$w=(0,Qd.A)(w_),jw=(0,Qd.A)(dd),Xc=E_.A;(jm&&Xc(new jm(new ArrayBuffer(1)))!=T_||Vm.A&&Xc(new Vm.A)!=x_||Hm&&Xc(Hm.resolve())!=D_||w_&&Xc(new w_)!=A_||dd&&Xc(new dd)!=S_)&&(Xc=function(v){var m=(0,E_.A)(v),d="[object Object]"==m?v.constructor:void 0,_=d?(0,Qd.A)(d):"";if(_)switch(_){case Jy:return T_;case eb:return x_;case Wm:return D_;case $w:return A_;case jw:return S_}return m});const M_=Xc;var Hw=Object.prototype.hasOwnProperty;var k_=n(3031);var I_=/\w*$/;var N_=n(4883),L_=N_.A?N_.A.prototype:void 0,zm=L_?L_.valueOf:void 0;var P_=n(7383);const ib=function j_(v,m,d){var _=v.constructor;switch(m){case"[object ArrayBuffer]":return(0,k_.A)(v);case"[object Boolean]":case"[object Date]":return new _(+v);case"[object DataView]":return function mp(v,m){var d=m?(0,k_.A)(v.buffer):v.buffer;return new v.constructor(d,v.byteOffset,v.byteLength)}(v,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,P_.A)(v,d);case"[object Map]":case"[object Set]":return new _;case"[object Number]":case"[object String]":return new _(v);case"[object RegExp]":return function O_(v){var m=new v.constructor(v.source,I_.exec(v));return m.lastIndex=v.lastIndex,m}(v);case"[object Symbol]":return function Zd(v){return zm?Object(zm.call(v)):{}}(v)}};var ob=n(223),V_=n(5303),yp=n(2312);var H_=n(4975),bp=n(8583),wp=bp.A&&bp.A.isMap;const hd=wp?(0,H_.A)(wp):function uf(v){return(0,yp.A)(v)&&"[object Map]"==M_(v)};var z_=n(7999);var qm=bp.A&&bp.A.isSet;const X_=qm?(0,H_.A)(qm):function Zm(v){return(0,yp.A)(v)&&"[object Set]"==M_(v)};var Tu="[object Arguments]",xp="[object Function]",J_="[object Object]",ss={};ss[Tu]=ss["[object Array]"]=ss["[object ArrayBuffer]"]=ss["[object DataView]"]=ss["[object Boolean]"]=ss["[object Date]"]=ss["[object Float32Array]"]=ss["[object Float64Array]"]=ss["[object Int8Array]"]=ss["[object Int16Array]"]=ss["[object Int32Array]"]=ss["[object Map]"]=ss["[object Number]"]=ss[J_]=ss["[object RegExp]"]=ss["[object Set]"]=ss["[object String]"]=ss["[object Symbol]"]=ss["[object Uint8Array]"]=ss["[object Uint8ClampedArray]"]=ss["[object Uint16Array]"]=ss["[object Uint32Array]"]=!0,ss["[object Error]"]=ss[xp]=ss["[object WeakMap]"]=!1;const vb=function hf(v,m,d,_,D,W){var re,ye=1&m,Xe=2&m,yt=4&m;if(d&&(re=D?d(v,_,D,W):d(v)),void 0!==re)return re;if(!(0,z_.A)(v))return v;var dn=(0,Fm.A)(v);if(dn){if(re=function Ww(v){var m=v.length,d=new v.constructor(m);return m&&"string"==typeof v[0]&&Hw.call(v,"index")&&(d.index=v.index,d.input=v.input),d}(v),!ye)return(0,h_.A)(v,re)}else{var yn=M_(v),_r=yn==xp||"[object GeneratorFunction]"==yn;if((0,V_.A)(v))return(0,lf.A)(v,ye);if(yn==J_||yn==Tu||_r&&!D){if(re=Xe||_r?{}:(0,ob.A)(v),!ye)return Xe?function Yy(v,m){return(0,up.A)(v,Pm(v),m)}(v,function dp(v,m){return v&&(0,up.A)(m,(0,Nm.A)(m),v)}(re,v)):function g_(v,m){return(0,up.A)(v,m_(v),m)}(v,function Vy(v,m){return v&&(0,up.A)(m,Rm(m),v)}(re,v))}else{if(!ss[yn])return D?v:{};re=ib(v,yn,ye)}}W||(W=new u_.A);var nr=W.get(v);if(nr)return nr;W.set(v,re),X_(v)?v.forEach(function(Ai){re.add(hf(Ai,m,d,Ai,v,W))}):hd(v)&&v.forEach(function(Ai,ko){re.set(ko,hf(Ai,m,d,ko,v,W))});var ti=dn?void 0:(yt?Xe?y_:Zy:Xe?Nm.A:Rm)(v);return function cd(v,m){for(var d=-1,_=null==v?0:v.length;++d<_&&!1!==m(v[d],d,v););}(ti||v,function(Ai,ko){ti&&(Ai=v[ko=Ai]),(0,Ry.A)(re,ko,hf(Ai,m,d,ko,v,W))}),re},Dp=function $i(v){return vb(v,5)},Jd=[(()=>{class v{constructor(d){this._angorMockApiService=d,this._defaultNavigation=l_,this._horizontalNavigation=c_,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._horizontalNavigation.forEach(d=>{this._defaultNavigation.forEach(_=>{_.id===d.id&&(d.children=Dp(_.children))})}),[200,{default:Dp(this._defaultNavigation),horizontal:Dp(this._horizontalNavigation)}]))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Z))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()];let iv=(()=>{class v{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const _=yield d.http.get(d.ngswFilePath).toPromise();_&&_.timestamp?(d.timestamp=_.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(_){console.error("Error loading ngsw.json:",_)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,Os.T)(d=>d.timestamp||null),(0,mm.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,T.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(ne.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var ng=n(6433),Eb=n(3024);const pf={providers:[function Ff(){return(0,c.ngT)("NgEagerAnimations"),[...Nh]}(),(0,ne.$R)(),function ed(v,m={}){return(0,c.EmA)([$f,Ld,{provide:Fh,useValue:v},{provide:ga,useValue:m},{provide:Eu,useFactory:Vf,deps:[ga,c.Agw]},{provide:c.hnV,useFactory:Bh,deps:[c.zZn,Fh,ga,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function rg(v){return()=>v.load()},deps:[iv,Vd.A,ng.d],multi:!0},{provide:c.hnV,useFactory:function ff(v,m){return(0,w.A)(function*(){const d=v.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[Vd.A,ng.d],multi:!0},{provide:c.hnV,useFactory:function fd(){return()=>{(0,Eb.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(v,m)=>{}})}},multi:!0},(0,a.lh)(Im,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:sn.MJ,useClass:Xl},{provide:sn.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function ei(v){const m=[pr(qf),mi(Cu),br(rd),Yr(E)];return v.config&&m.push(function eo(v){return(0,c.EmA)([{provide:$c,useValue:Zf(v)}])}(v.config)),v.loader&&m.push(function to(v){return(0,c.EmA)([{provide:zf,useClass:v}])}(v.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:Om}),{provide:c.hnV,useFactory:()=>{const v=(0,c.WQX)(Yt),m=v.getDefaultLang();return v.setActiveLang(m),()=>function cp(v,m){const d="object"==typeof m;return new Promise((_,D)=>{const W=new Lw.Ms({next:re=>{_(re),W.unsubscribe()},error:D,complete:()=>{d?_(m.defaultValue):D(new Iy.G)}});v.subscribe(W)})}(v.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(Gd),multi:!0}],(v=>{const m=[{provide:sn.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:En.U$,useValue:{appearance:"fill"}},{provide:C,useValue:v?.mockApi?.delay??0},{provide:De.t,useValue:v?.angor??{}},(0,c.oKB)(fn.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ee.m),multi:!0},(0,ne.$R)((0,ne.b$)([le])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ae),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ae.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(Be),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(bt),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(at.Q),multi:!0}];return v?.mockApi?.services&&m.push((0,ne.$R)((0,ne.b$)([de])),{provide:c.hnV,deps:[...v.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:Jd},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,i.B8)(y,pf).catch(v=>console.error(v))},9566:(o,s)=>{"use strict";s.byteLength=function T(Z){var ne=C(Z),pe=ne[1];return 3*(ne[0]+pe)/4-pe},s.toByteArray=function M(Z){var ne,Ae,_e=C(Z),pe=_e[0],de=_e[1],De=new a(function S(Z,ne,_e){return 3*(ne+_e)/4-_e}(0,pe,de)),Ee=0,Le=de>0?pe-4:pe;for(Ae=0;Ae>16&255,De[Ee++]=ne>>8&255,De[Ee++]=255≠return 2===de&&(ne=i[Z.charCodeAt(Ae)]<<2|i[Z.charCodeAt(Ae+1)]>>4,De[Ee++]=255&ne),1===de&&(ne=i[Z.charCodeAt(Ae)]<<10|i[Z.charCodeAt(Ae+1)]<<4|i[Z.charCodeAt(Ae+2)]>>2,De[Ee++]=ne>>8&255,De[Ee++]=255&ne),De},s.fromByteArray=function X(Z){for(var ne,_e=Z.length,pe=_e%3,de=[],Ee=0,Le=_e-pe;EeLe?Le:Ee+16383));return 1===pe?de.push(n[(ne=Z[_e-1])>>2]+n[ne<<4&63]+"=="):2===pe&&de.push(n[(ne=(Z[_e-2]<<8)+Z[_e-1])>>10]+n[ne>>4&63]+n[ne<<2&63]+"="),de.join("")};for(var n=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)n[y]=c[y],i[c.charCodeAt(y)]=y;function C(Z){var ne=Z.length;if(ne%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _e=Z.indexOf("=");return-1===_e&&(_e=ne),[_e,_e===ne?0:4-_e%4]}function k(Z){return n[Z>>18&63]+n[Z>>12&63]+n[Z>>6&63]+n[63&Z]}function R(Z,ne,_e){for(var de=[],De=ne;De<_e;De+=3)de.push(k((Z[De]<<16&16711680)+(Z[De+1]<<8&65280)+(255&Z[De+2])));return de.join("")}i[45]=62,i[95]=63},871:(o,s,n)=>{"use strict";const a=n(9566),c=n(9859),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function T(z){if(z>w)throw new RangeError('The value "'+z+'" is invalid for option "size"');const L=new Uint8Array(z);return Object.setPrototypeOf(L,S.prototype),L}function S(z,L,V){if("number"==typeof z){if("string"==typeof L)throw new TypeError('The "string" argument must be of type string. Received type number');return X(z)}return M(z,L,V)}function M(z,L,V){if("string"==typeof z)return function Z(z,L){if(("string"!=typeof L||""===L)&&(L="utf8"),!S.isEncoding(L))throw new TypeError("Unknown encoding: "+L);const V=0|Le(z,L);let Ne=T(V);const ft=Ne.write(z,L);return ft!==V&&(Ne=Ne.slice(0,ft)),Ne}(z,L);if(ArrayBuffer.isView(z))return function _e(z){if(Kt(z,Uint8Array)){const L=new Uint8Array(z);return pe(L.buffer,L.byteOffset,L.byteLength)}return ne(z)}(z);if(null==z)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Kt(z,ArrayBuffer)||z&&Kt(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(z,SharedArrayBuffer)||z&&Kt(z.buffer,SharedArrayBuffer)))return pe(z,L,V);if("number"==typeof z)throw new TypeError('The "value" argument must not be of type number. Received type number');const Ne=z.valueOf&&z.valueOf();if(null!=Ne&&Ne!==z)return S.from(Ne,L,V);const ft=function de(z){if(S.isBuffer(z)){const L=0|De(z.length),V=T(L);return 0===V.length||z.copy(V,0,0,L),V}return void 0!==z.length?"number"!=typeof z.length||At(z.length)?T(0):ne(z):"Buffer"===z.type&&Array.isArray(z.data)?ne(z.data):void 0}(z);if(ft)return ft;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof z[Symbol.toPrimitive])return S.from(z[Symbol.toPrimitive]("string"),L,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}function k(z){if("number"!=typeof z)throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function X(z){return k(z),T(z<0?0:0|De(z))}function ne(z){const L=z.length<0?0:0|De(z.length),V=T(L);for(let Ne=0;Ne=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|z}function Le(z,L){if(S.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Kt(z,ArrayBuffer))return z.byteLength;if("string"!=typeof z)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);const V=z.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===V)return 0;let ft=!1;for(;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return en(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return Mn(z).length;default:if(ft)return Ne?-1:en(z).length;L=(""+L).toLowerCase(),ft=!0}}function Ae(z,L,V){let Ne=!1;if((void 0===L||L<0)&&(L=0),L>this.length||((void 0===V||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(z||(z="utf8");;)switch(z){case"hex":return Je(this,L,V);case"utf8":case"utf-8":return sn(this,L,V);case"ascii":return Wn(this,L,V);case"latin1":case"binary":return wn(this,L,V);case"base64":return at(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,L,V);default:if(Ne)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),Ne=!0}}function we(z,L,V){const Ne=z[L];z[L]=z[V],z[V]=Ne}function le(z,L,V,Ne,ft){if(0===z.length)return-1;if("string"==typeof V?(Ne=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),At(V=+V)&&(V=ft?0:z.length-1),V<0&&(V=z.length+V),V>=z.length){if(ft)return-1;V=z.length-1}else if(V<0){if(!ft)return-1;V=0}if("string"==typeof L&&(L=S.from(L,Ne)),S.isBuffer(L))return 0===L.length?-1:ae(z,L,V,Ne,ft);if("number"==typeof L)return L&=255,"function"==typeof Uint8Array.prototype.indexOf?ft?Uint8Array.prototype.indexOf.call(z,L,V):Uint8Array.prototype.lastIndexOf.call(z,L,V):ae(z,[L],V,Ne,ft);throw new TypeError("val must be string, number or Buffer")}function ae(z,L,V,Ne,ft){let hn,mt=1,Tt=z.length,On=L.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(z.length<2||L.length<2)return-1;mt=2,Tt/=2,On/=2,V/=2}function cn(Ln,lr){return 1===mt?Ln[lr]:Ln.readUInt16BE(lr*mt)}if(ft){let Ln=-1;for(hn=V;hnTt&&(V=Tt-On),hn=V;hn>=0;hn--){let Ln=!0;for(let lr=0;lrft&&(Ne=ft):Ne=ft;const mt=L.length;let Tt;for(Ne>mt/2&&(Ne=mt/2),Tt=0;Tt>8,ft=V%256,mt.push(ft),mt.push(Ne);return mt}(L,z.length-V),z,V,Ne)}function at(z,L,V){return a.fromByteArray(0===L&&V===z.length?z:z.slice(L,V))}function sn(z,L,V){V=Math.min(z.length,V);const Ne=[];let ft=L;for(;ft239?4:mt>223?3:mt>191?2:1;if(ft+On<=V){let cn,hn,Ln,lr;switch(On){case 1:mt<128&&(Tt=mt);break;case 2:cn=z[ft+1],128==(192&cn)&&(lr=(31&mt)<<6|63&cn,lr>127&&(Tt=lr));break;case 3:cn=z[ft+1],hn=z[ft+2],128==(192&cn)&&128==(192&hn)&&(lr=(15&mt)<<12|(63&cn)<<6|63&hn,lr>2047&&(lr<55296||lr>57343)&&(Tt=lr));break;case 4:cn=z[ft+1],hn=z[ft+2],Ln=z[ft+3],128==(192&cn)&&128==(192&hn)&&128==(192&Ln)&&(lr=(15&mt)<<18|(63&cn)<<12|(63&hn)<<6|63&Ln,lr>65535&&lr<1114112&&(Tt=lr))}}null===Tt?(Tt=65533,On=1):Tt>65535&&(Tt-=65536,Ne.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),Ne.push(Tt),ft+=On}return function En(z){const L=z.length;if(L<=fn)return String.fromCharCode.apply(String,z);let V="",Ne=0;for(;Neft.length?(S.isBuffer(Tt)||(Tt=S.from(Tt)),Tt.copy(ft,mt)):Uint8Array.prototype.set.call(ft,Tt,mt);else{if(!S.isBuffer(Tt))throw new TypeError('"list" argument must be an Array of Buffers');Tt.copy(ft,mt)}mt+=Tt.length}return ft},S.byteLength=Le,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let V=0;VV&&(L+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(L,V,Ne,ft,mt){if(Kt(L,Uint8Array)&&(L=S.from(L,L.offset,L.byteLength)),!S.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(void 0===V&&(V=0),void 0===Ne&&(Ne=L?L.length:0),void 0===ft&&(ft=0),void 0===mt&&(mt=this.length),V<0||Ne>L.length||ft<0||mt>this.length)throw new RangeError("out of range index");if(ft>=mt&&V>=Ne)return 0;if(ft>=mt)return-1;if(V>=Ne)return 1;if(this===L)return 0;let Tt=(mt>>>=0)-(ft>>>=0),On=(Ne>>>=0)-(V>>>=0);const cn=Math.min(Tt,On),hn=this.slice(ft,mt),Ln=L.slice(V,Ne);for(let lr=0;lr>>=0,isFinite(Ne)?(Ne>>>=0,void 0===ft&&(ft="utf8")):(ft=Ne,Ne=void 0)}const mt=this.length-V;if((void 0===Ne||Ne>mt)&&(Ne=mt),L.length>0&&(Ne<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ft||(ft="utf8");let Tt=!1;for(;;)switch(ft){case"hex":return xe(this,L,V,Ne);case"utf8":case"utf-8":return Be(this,L,V,Ne);case"ascii":case"latin1":case"binary":return st(this,L,V,Ne);case"base64":return lt(this,L,V,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,L,V,Ne);default:if(Tt)throw new TypeError("Unknown encoding: "+ft);ft=(""+ft).toLowerCase(),Tt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const fn=4096;function Wn(z,L,V){let Ne="";V=Math.min(z.length,V);for(let ft=L;ftNe)&&(V=Ne);let ft="";for(let mt=L;mtV)throw new RangeError("Trying to access beyond buffer length")}function Ue(z,L,V,Ne,ft,mt){if(!S.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>ft||Lz.length)throw new RangeError("Index out of range")}function Ft(z,L,V,Ne,ft){Tn(L,Ne,ft,z,V,7);let mt=Number(L&BigInt(4294967295));z[V++]=mt,mt>>=8,z[V++]=mt,mt>>=8,z[V++]=mt,mt>>=8,z[V++]=mt;let Tt=Number(L>>BigInt(32)&BigInt(4294967295));return z[V++]=Tt,Tt>>=8,z[V++]=Tt,Tt>>=8,z[V++]=Tt,Tt>>=8,z[V++]=Tt,V}function Ke(z,L,V,Ne,ft){Tn(L,Ne,ft,z,V,7);let mt=Number(L&BigInt(4294967295));z[V+7]=mt,mt>>=8,z[V+6]=mt,mt>>=8,z[V+5]=mt,mt>>=8,z[V+4]=mt;let Tt=Number(L>>BigInt(32)&BigInt(4294967295));return z[V+3]=Tt,Tt>>=8,z[V+2]=Tt,Tt>>=8,z[V+1]=Tt,Tt>>=8,z[V]=Tt,V+8}function Ze(z,L,V,Ne,ft,mt){if(V+Ne>z.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function it(z,L,V,Ne,ft){return L=+L,V>>>=0,ft||Ze(z,0,V,4),c.write(z,L,V,Ne,23,4),V+4}function Ot(z,L,V,Ne,ft){return L=+L,V>>>=0,ft||Ze(z,0,V,8),c.write(z,L,V,Ne,52,8),V+8}S.prototype.slice=function(L,V){const Ne=this.length;(L=~~L)<0?(L+=Ne)<0&&(L=0):L>Ne&&(L=Ne),(V=void 0===V?Ne:~~V)<0?(V+=Ne)<0&&(V=0):V>Ne&&(V=Ne),V>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L],mt=1,Tt=0;for(;++Tt>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L+--V],mt=1;for(;V>0&&(mt*=256);)ft+=this[L+--V]*mt;return ft},S.prototype.readUint8=S.prototype.readUInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),this[L]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]|this[L+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]<<8|this[L+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},S.prototype.readBigUInt64LE=be(function(L){Wt(L>>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=V+256*this[++L]+65536*this[++L]+this[++L]*2**24,mt=this[++L]+256*this[++L]+65536*this[++L]+Ne*2**24;return BigInt(ft)+(BigInt(mt)<>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=V*2**24+65536*this[++L]+256*this[++L]+this[++L],mt=this[++L]*2**24+65536*this[++L]+256*this[++L]+Ne;return(BigInt(ft)<>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L],mt=1,Tt=0;for(;++Tt=mt&&(ft-=Math.pow(2,8*V)),ft},S.prototype.readIntBE=function(L,V,Ne){L>>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=V,mt=1,Tt=this[L+--ft];for(;ft>0&&(mt*=256);)Tt+=this[L+--ft]*mt;return mt*=128,Tt>=mt&&(Tt-=Math.pow(2,8*V)),Tt},S.prototype.readInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},S.prototype.readInt16LE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Ne=this[L]|this[L+1]<<8;return 32768&Ne?4294901760|Ne:Ne},S.prototype.readInt16BE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Ne=this[L+1]|this[L]<<8;return 32768&Ne?4294901760|Ne:Ne},S.prototype.readInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},S.prototype.readInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},S.prototype.readBigInt64LE=be(function(L){Wt(L>>>=0,"offset");const V=this[L],Ne=this[L+7];return(void 0===V||void 0===Ne)&&Zt(L,this.length-8),(BigInt(this[L+4]+256*this[L+5]+65536*this[L+6]+(Ne<<24))<>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=(V<<24)+65536*this[++L]+256*this[++L]+this[++L];return(BigInt(ft)<>>=0,V||ze(L,4,this.length),c.read(this,L,!0,23,4)},S.prototype.readFloatBE=function(L,V){return L>>>=0,V||ze(L,4,this.length),c.read(this,L,!1,23,4)},S.prototype.readDoubleLE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!0,52,8)},S.prototype.readDoubleBE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(L,V,Ne,ft){L=+L,V>>>=0,Ne>>>=0,ft||Ue(this,L,V,Ne,Math.pow(2,8*Ne)-1,0);let mt=1,Tt=0;for(this[V]=255&L;++Tt>>=0,Ne>>>=0,ft||Ue(this,L,V,Ne,Math.pow(2,8*Ne)-1,0);let mt=Ne-1,Tt=1;for(this[V+mt]=255&L;--mt>=0&&(Tt*=256);)this[V+mt]=L/Tt&255;return V+Ne},S.prototype.writeUint8=S.prototype.writeUInt8=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,1,255,0),this[V]=255&L,V+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,65535,0),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,65535,0),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,4294967295,0),this[V+3]=L>>>24,this[V+2]=L>>>16,this[V+1]=L>>>8,this[V]=255&L,V+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,4294967295,0),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigUInt64LE=be(function(L,V=0){return Ft(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=be(function(L,V=0){return Ke(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(L,V,Ne,ft){if(L=+L,V>>>=0,!ft){const cn=Math.pow(2,8*Ne-1);Ue(this,L,V,Ne,cn-1,-cn)}let mt=0,Tt=1,On=0;for(this[V]=255&L;++mt>>=0,!ft){const cn=Math.pow(2,8*Ne-1);Ue(this,L,V,Ne,cn-1,-cn)}let mt=Ne-1,Tt=1,On=0;for(this[V+mt]=255&L;--mt>=0&&(Tt*=256);)L<0&&0===On&&0!==this[V+mt+1]&&(On=1),this[V+mt]=(L/Tt|0)-On&255;return V+Ne},S.prototype.writeInt8=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,1,127,-128),L<0&&(L=255+L+1),this[V]=255&L,V+1},S.prototype.writeInt16LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,32767,-32768),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeInt16BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,32767,-32768),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeInt32LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,2147483647,-2147483648),this[V]=255&L,this[V+1]=L>>>8,this[V+2]=L>>>16,this[V+3]=L>>>24,V+4},S.prototype.writeInt32BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigInt64LE=be(function(L,V=0){return Ft(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=be(function(L,V=0){return Ke(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(L,V,Ne){return it(this,L,V,!0,Ne)},S.prototype.writeFloatBE=function(L,V,Ne){return it(this,L,V,!1,Ne)},S.prototype.writeDoubleLE=function(L,V,Ne){return Ot(this,L,V,!0,Ne)},S.prototype.writeDoubleBE=function(L,V,Ne){return Ot(this,L,V,!1,Ne)},S.prototype.copy=function(L,V,Ne,ft){if(!S.isBuffer(L))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!ft&&0!==ft&&(ft=this.length),V>=L.length&&(V=L.length),V||(V=0),ft>0&&ft=this.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("sourceEnd out of bounds");ft>this.length&&(ft=this.length),L.length-V>>=0,Ne=void 0===Ne?this.length:Ne>>>0,L||(L=0),"number"==typeof L)for(mt=V;mt=Ne+4;V-=3)L=`_${z.slice(V-3,V)}${L}`;return`${z.slice(0,V)}${L}`}function Tn(z,L,V,Ne,ft,mt){if(z>V||z3?0===L||L===BigInt(0)?`>= 0${Tt} and < 2${Tt} ** ${8*(mt+1)}${Tt}`:`>= -(2${Tt} ** ${8*(mt+1)-1}${Tt}) and < 2 ** ${8*(mt+1)-1}${Tt}`:`>= ${L}${Tt} and <= ${V}${Tt}`,new Qt.ERR_OUT_OF_RANGE("value",On,z)}!function Xt(z,L,V){Wt(L,"offset"),(void 0===z[L]||void 0===z[L+V])&&Zt(L,z.length-(V+1))}(Ne,ft,mt)}function Wt(z,L){if("number"!=typeof z)throw new Qt.ERR_INVALID_ARG_TYPE(L,"number",z)}function Zt(z,L,V){throw Math.floor(z)!==z?(Wt(z,V),new Qt.ERR_OUT_OF_RANGE(V||"offset","an integer",z)):L<0?new Qt.ERR_BUFFER_OUT_OF_BOUNDS:new Qt.ERR_OUT_OF_RANGE(V||"offset",`>= ${V?1:0} and <= ${L}`,z)}Me("ERR_BUFFER_OUT_OF_BOUNDS",function(z){return z?`${z} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Me("ERR_INVALID_ARG_TYPE",function(z,L){return`The "${z}" argument must be of type number. Received type ${typeof L}`},TypeError),Me("ERR_OUT_OF_RANGE",function(z,L,V){let Ne=`The value of "${z}" is out of range.`,ft=V;return Number.isInteger(V)&&Math.abs(V)>2**32?ft=ht(String(V)):"bigint"==typeof V&&(ft=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(ft=ht(ft)),ft+="n"),Ne+=` It must be ${L}. Received ${ft}`,Ne},RangeError);const rt=/[^+/0-9A-Za-z-_]/g;function en(z,L){let V;L=L||1/0;const Ne=z.length;let ft=null;const mt=[];for(let Tt=0;Tt55295&&V<57344){if(!ft){if(V>56319){(L-=3)>-1&&mt.push(239,191,189);continue}if(Tt+1===Ne){(L-=3)>-1&&mt.push(239,191,189);continue}ft=V;continue}if(V<56320){(L-=3)>-1&&mt.push(239,191,189),ft=V;continue}V=65536+(ft-55296<<10|V-56320)}else ft&&(L-=3)>-1&&mt.push(239,191,189);if(ft=null,V<128){if((L-=1)<0)break;mt.push(V)}else if(V<2048){if((L-=2)<0)break;mt.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=3)<0)break;mt.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((L-=4)<0)break;mt.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return mt}function Mn(z){return a.toByteArray(function Ht(z){if((z=(z=z.split("=")[0]).trim().replace(rt,"")).length<2)return"";for(;z.length%4!=0;)z+="=";return z}(z))}function tt(z,L,V,Ne){let ft;for(ft=0;ft=L.length||ft>=z.length);++ft)L[ft+V]=z[ft];return ft}function Kt(z,L){return z instanceof L||null!=z&&null!=z.constructor&&null!=z.constructor.name&&z.constructor.name===L.name}function At(z){return z!=z}const Te=function(){const z="0123456789abcdef",L=new Array(256);for(let V=0;V<16;++V){const Ne=16*V;for(let ft=0;ft<16;++ft)L[Ne+ft]=z[V]+z[ft]}return L}();function be(z){return typeof BigInt>"u"?He:z}function He(){throw new Error("BigInt not supported")}},9859:(o,s)=>{s.read=function(n,i,a,c,y){var w,C,T=8*y-c-1,S=(1<>1,k=-7,R=a?y-1:0,X=a?-1:1,Z=n[i+R];for(R+=X,w=Z&(1<<-k)-1,Z>>=-k,k+=T;k>0;w=256*w+n[i+R],R+=X,k-=8);for(C=w&(1<<-k)-1,w>>=-k,k+=c;k>0;C=256*C+n[i+R],R+=X,k-=8);if(0===w)w=1-M;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=M}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(n,i,a,c,y,w){var C,T,S,M=8*w-y-1,k=(1<>1,X=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,ne=c?1:-1,_e=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(T=isNaN(i)?1:0,C=k):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+R>=1?X/S:X*Math.pow(2,1-R))*S>=2&&(C++,S/=2),C+R>=k?(T=0,C=k):C+R>=1?(T=(i*S-1)*Math.pow(2,y),C+=R):(T=i*Math.pow(2,R-1)*Math.pow(2,y),C=0));y>=8;n[a+Z]=255&T,Z+=ne,T/=256,y-=8);for(C=C<0;n[a+Z]=255&C,Z+=ne,C/=256,M-=8);n[a+Z-ne]|=128*_e}},230:o=>{o.exports=function a(c,y,w){function C(M,k){if(!y[M]){if(!c[M]){if(T)return T(M,!0);var X=new Error("Cannot find module '"+M+"'");throw X.code="MODULE_NOT_FOUND",X}var Z=y[M]={exports:{}};c[M][0].call(Z.exports,function(ne){return C(c[M][1][ne]||ne)},Z,Z.exports,a,c,y,w)}return y[M].exports}for(var T=void 0,S=0;S"u"&&a(3);var R=Promise;function X(me,Ye){Ye&&me.then(function(Re){Ye(null,Re)},function(Re){Ye(Re)})}function Z(me,Ye,Re){"function"==typeof Ye&&me.then(Ye),"function"==typeof Re&&me.catch(Re)}function ne(me){return"string"!=typeof me&&(console.warn(me+" used as a key, but it is not a string."),me=String(me)),me}function _e(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var pe="local-forage-detect-blob-support",de=void 0,De={},Ee=Object.prototype.toString,Le="readonly",Ae="readwrite";function we(me){for(var Ye=me.length,Re=new ArrayBuffer(Ye),gt=new Uint8Array(Re),jt=0;jt=43)}}).catch(function(){return!1})}(me).then(function(Ye){return de=Ye})}function xe(me){var Ye=De[me.name],Re={};Re.promise=new R(function(gt,jt){Re.resolve=gt,Re.reject=jt}),Ye.deferredOperations.push(Re),Ye.dbReady=Ye.dbReady?Ye.dbReady.then(function(){return Re.promise}):Re.promise}function Be(me){var Re=De[me.name].deferredOperations.pop();if(Re)return Re.resolve(),Re.promise}function st(me,Ye){var gt=De[me.name].deferredOperations.pop();if(gt)return gt.reject(Ye),gt.promise}function lt(me,Ye){return new R(function(Re,gt){if(De[me.name]=De[me.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},me.db){if(!Ye)return Re(me.db);xe(me),me.db.close()}var jt=[me.name];Ye&&jt.push(me.version);var kt=S.open.apply(S,jt);Ye&&(kt.onupgradeneeded=function(pn){var Sn=kt.result;try{Sn.createObjectStore(me.storeName),pn.oldVersion<=1&&Sn.createObjectStore(pe)}catch(An){if("ConstraintError"!==An.name)throw An;console.warn('The database "'+me.name+'" has been upgraded from version '+pn.oldVersion+" to version "+pn.newVersion+', but the storage "'+me.storeName+'" already exists.')}}),kt.onerror=function(pn){pn.preventDefault(),gt(kt.error)},kt.onsuccess=function(){var pn=kt.result;pn.onversionchange=function(Sn){Sn.target.close()},Re(pn),Be(me)}})}function bt(me){return lt(me,!1)}function at(me){return lt(me,!0)}function sn(me,Ye){if(!me.db)return!0;var Re=!me.db.objectStoreNames.contains(me.storeName),jt=me.version>me.db.version;if(me.versionme.version&&(me.version=kt)}return!0}return!1}function En(me){return k([we(atob(me.data))],{type:me.type})}function Wn(me){return me&&me.__local_forage_encoded_blob}function wn(me){var Ye=this,Re=Ye._initReady().then(function(){var gt=De[Ye._dbInfo.name];if(gt&>.dbReady)return gt.dbReady});return Z(Re,me,me),Re}function _t(me,Ye,Re,gt){void 0===gt&&(gt=1);try{var jt=me.db.transaction(me.storeName,Ye);Re(null,jt)}catch(kt){if(gt>0&&(!me.db||"InvalidStateError"===kt.name||"NotFoundError"===kt.name))return R.resolve().then(function(){if(!me.db||"NotFoundError"===kt.name&&!me.db.objectStoreNames.contains(me.storeName)&&me.version<=me.db.version)return me.db&&(me.version=me.db.version+1),at(me)}).then(function(){return function Je(me){xe(me);for(var Ye=De[me.name],Re=Ye.forages,gt=0;gt>4,zn[jt++]=(15&pn)<<4|Sn>>2,zn[jt++]=(3&Sn)<<6|63&An;return Fn}function Tt(me){var gt,Ye=new Uint8Array(me),Re="";for(gt=0;gt>2],Re+=Zt[(3&Ye[gt])<<4|Ye[gt+1]>>4],Re+=Zt[(15&Ye[gt+1])<<2|Ye[gt+2]>>6],Re+=Zt[63&Ye[gt+2]];return Ye.length%3==2?Re=Re.substring(0,Re.length-1)+"=":Ye.length%3==1&&(Re=Re.substring(0,Re.length-2)+"=="),Re}var hn={serialize:function On(me,Ye){var Re="";if(me&&(Re=ft.call(me)),me&&("[object ArrayBuffer]"===Re||me.buffer&&"[object ArrayBuffer]"===ft.call(me.buffer))){var gt,jt=en;me instanceof ArrayBuffer?(gt=me,jt+=mn):(gt=me.buffer,"[object Int8Array]"===Re?jt+="si08":"[object Uint8Array]"===Re?jt+="ui08":"[object Uint8ClampedArray]"===Re?jt+="uic8":"[object Int16Array]"===Re?jt+="si16":"[object Uint16Array]"===Re?jt+="ur16":"[object Int32Array]"===Re?jt+="si32":"[object Uint32Array]"===Re?jt+=z:"[object Float32Array]"===Re?jt+=L:"[object Float64Array]"===Re?jt+=V:Ye(new Error("Failed to get type for BinaryArray"))),Ye(jt+Tt(gt))}else if("[object Blob]"===Re){var kt=new FileReader;kt.onload=function(){var pn="~~local_forage_type~"+me.type+"~"+Tt(this.result);Ye(en+Mn+pn)},kt.readAsArrayBuffer(me)}else try{Ye(JSON.stringify(me))}catch(pn){console.error("Couldn't convert value into a JSON string: ",me),Ye(null,pn)}},deserialize:function cn(me){if(me.substring(0,9)!==en)return JSON.parse(me);var gt,Ye=me.substring(13),Re=me.substring(9,13);if(Re===Mn&&Ht.test(Ye)){var jt=Ye.match(Ht);gt=jt[1],Ye=Ye.substring(jt[0].length)}var kt=mt(Ye);switch(Re){case mn:return kt;case Mn:return k([kt],{type:gt});case"si08":return new Int8Array(kt);case"ui08":return new Uint8Array(kt);case"uic8":return new Uint8ClampedArray(kt);case"si16":return new Int16Array(kt);case"ur16":return new Uint16Array(kt);case"si32":return new Int32Array(kt);case z:return new Uint32Array(kt);case L:return new Float32Array(kt);case V:return new Float64Array(kt);default:throw new Error("Unkown type: "+Re)}},stringToBuffer:mt,bufferToString:Tt};function Ln(me,Ye,Re,gt){me.executeSql("CREATE TABLE IF NOT EXISTS "+Ye.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Re,gt)}function Dn(me,Ye,Re,gt,jt,kt){me.executeSql(Re,gt,jt,function(pn,Sn){Sn.code===Sn.SYNTAX_ERR?pn.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ye.storeName],function(An,Fn){Fn.rows.length?kt(An,Sn):Ln(An,Ye,function(){An.executeSql(Re,gt,jt,kt)},kt)},kt):kt(pn,Sn)},kt)}function Vr(me,Ye,Re,gt){var jt=this;me=ne(me);var kt=new R(function(pn,Sn){jt.ready().then(function(){void 0===Ye&&(Ye=null);var An=Ye,Fn=jt._dbInfo;Fn.serializer.serialize(Ye,function(zn,tr){tr?Sn(tr):Fn.db.transaction(function(cr){Dn(cr,Fn,"INSERT OR REPLACE INTO "+Fn.storeName+" (key, value) VALUES (?, ?)",[me,zn],function(){pn(An)},function(Er,Cr){Sn(Cr)})},function(cr){if(cr.code===cr.QUOTA_ERR){if(gt>0)return void pn(Vr.apply(jt,[me,An,Re,gt-1]));Sn(cr)}})})}).catch(Sn)});return X(kt,Re),kt}var xn={_driver:"webSQLStorage",_initStorage:function lr(me){var Ye=this,Re={db:null};if(me)for(var gt in me)Re[gt]="string"!=typeof me[gt]?me[gt].toString():me[gt];var jt=new R(function(kt,pn){try{Re.db=openDatabase(Re.name,String(Re.version),Re.description,Re.size)}catch(Sn){return pn(Sn)}Re.db.transaction(function(Sn){Ln(Sn,Re,function(){Ye._dbInfo=Re,kt()},function(An,Fn){pn(Fn)})},pn)});return Re.serializer=hn,jt},_support:function Wt(){return"function"==typeof openDatabase}(),iterate:function Mr(me,Ye){var Re=this,gt=new R(function(jt,kt){Re.ready().then(function(){var pn=Re._dbInfo;pn.db.transaction(function(Sn){Dn(Sn,pn,"SELECT * FROM "+pn.storeName,[],function(An,Fn){for(var zn=Fn.rows,tr=zn.length,cr=0;cr '__WebKitDatabaseInfoTable__'",[],function(jt,kt){for(var pn=[],Sn=0;Sn0}var ds={_driver:"localStorageWrapper",_initStorage:function Zi(me){var Re={};if(me)for(var gt in me)Re[gt]=me[gt];return Re.keyPrefix=xr(me,this._defaultConfig),hi()?(this._dbInfo=Re,Re.serializer=hn,R.resolve()):R.reject()},_support:function er(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function nt(me,Ye){var Re=this,gt=Re.ready().then(function(){for(var jt=Re._dbInfo,kt=jt.keyPrefix,pn=kt.length,Sn=localStorage.length,An=1,Fn=0;Fn=0;jt--){var kt=localStorage.key(jt);0===kt.indexOf(gt)&&localStorage.removeItem(kt)}});return X(Re,me),Re},length:function vn(me){var Re=this.keys().then(function(gt){return gt.length});return X(Re,me),Re},key:function Rt(me,Ye){var Re=this,gt=Re.ready().then(function(){var kt,jt=Re._dbInfo;try{kt=localStorage.key(me)}catch{kt=null}return kt&&(kt=kt.substring(jt.keyPrefix.length)),kt});return X(gt,Ye),gt},keys:function ln(me){var Ye=this,Re=Ye.ready().then(function(){for(var gt=Ye._dbInfo,jt=localStorage.length,kt=[],pn=0;pn=0;pn--){var Sn=localStorage.key(pn);0===Sn.indexOf(kt)&&localStorage.removeItem(Sn)}}):R.reject("Invalid arguments"),Ye),jt}},$o=function(Ye,Re){return Ye===Re||"number"==typeof Ye&&"number"==typeof Re&&isNaN(Ye)&&isNaN(Re)},ai=function(Ye,Re){for(var gt=Ye.length,jt=0;jt"u"?"undefined":w(Re))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var gt in Re){if("storeName"===gt&&(Re[gt]=Re[gt].replace(/\W/g,"_")),"version"===gt&&"number"!=typeof Re[gt])return new Error("Database version must be a number.");this._config[gt]=Re[gt]}return!("driver"in Re)||!Re.driver||this.setDriver(this._config.driver)}return"string"==typeof Re?this._config[Re]:this._config},me.prototype.defineDriver=function(Re,gt,jt){var kt=new R(function(pn,Sn){try{var An=Re._driver,Fn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Re._driver)return void Sn(Fn);for(var zn=po.concat("_initStorage"),tr=0,cr=zn.length;tr{"use strict";n.d(s,{t:()=>a});var i=n(8447);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1698:(o,s,n)=>{"use strict";n.d(s,{c:()=>S});var i=n(1540),a=n(5710),c=n(2563),y=n(6742),w=n(3305),C=n(1126),T=n(4171);let S=(()=>{class X{constructor(ne){ne&&(this._subscribe=ne)}lift(ne){const _e=new X;return _e.source=this,_e.operator=ne,_e}subscribe(ne,_e,pe){const de=function R(X){return X&&X instanceof i.vU||function k(X){return X&&(0,C.T)(X.next)&&(0,C.T)(X.error)&&(0,C.T)(X.complete)}(X)&&(0,a.Uv)(X)}(ne)?ne:new i.Ms(ne,_e,pe);return(0,T.Y)(()=>{const{operator:De,source:Ee}=this;de.add(De?De.call(de,Ee):Ee?this._subscribe(de):this._trySubscribe(de))}),de}_trySubscribe(ne){try{return this._subscribe(ne)}catch(_e){ne.error(_e)}}forEach(ne,_e){return new(_e=M(_e))((pe,de)=>{const De=new i.Ms({next:Ee=>{try{ne(Ee)}catch(Le){de(Le),De.unsubscribe()}},error:de,complete:pe});this.subscribe(De)})}_subscribe(ne){var _e;return null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(ne)}[c.s](){return this}pipe(...ne){return(0,y.m)(ne)(this)}toPromise(ne){return new(ne=M(ne))((_e,pe)=>{let de;this.subscribe(De=>de=De,De=>pe(De),()=>_e(de))})}}return X.create=Z=>new X(Z),X})();function M(X){var Z;return null!==(Z=X??w.$.Promise)&&void 0!==Z?Z:Promise}},7838:(o,s,n)=>{"use strict";n.d(s,{m:()=>c});var i=n(8447),a=n(6188);class c extends i.B{constructor(w=1/0,C=1/0,T=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:T,_infiniteTimeWindow:S,_timestampProvider:M,_windowTime:k}=this;C||(T.push(w),!S&&T.push(M.now()+k)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:T,_buffer:S}=this,M=S.slice();for(let k=0;k{"use strict";n.d(s,{B:()=>T});var i=n(1698),a=n(5710);const y=(0,n(5644).L)(M=>function(){M(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=n(5891),C=n(4171);let T=(()=>{class M extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(R){const X=new S(this,this);return X.operator=R,X}_throwIfClosed(){if(this.closed)throw new y}next(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const X of this.currentObservers)X.next(R)}})}error(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=R;const{observers:X}=this;for(;X.length;)X.shift().error(R)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:R}=this;for(;R.length;)R.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var R;return(null===(R=this.observers)||void 0===R?void 0:R.length)>0}_trySubscribe(R){return this._throwIfClosed(),super._trySubscribe(R)}_subscribe(R){return this._throwIfClosed(),this._checkFinalizedStatuses(R),this._innerSubscribe(R)}_innerSubscribe(R){const{hasError:X,isStopped:Z,observers:ne}=this;return X||Z?a.Kn:(this.currentObservers=null,ne.push(R),new a.yU(()=>{this.currentObservers=null,(0,w.o)(ne,R)}))}_checkFinalizedStatuses(R){const{hasError:X,thrownError:Z,isStopped:ne}=this;X?R.error(Z):ne&&R.complete()}asObservable(){const R=new i.c;return R.source=this,R}}return M.create=(k,R)=>new S(k,R),M})();class S extends T{constructor(k,R){super(),this.destination=k,this.source=R}next(k){var R,X;null===(X=null===(R=this.destination)||void 0===R?void 0:R.next)||void 0===X||X.call(R,k)}error(k){var R,X;null===(X=null===(R=this.destination)||void 0===R?void 0:R.error)||void 0===X||X.call(R,k)}complete(){var k,R;null===(R=null===(k=this.destination)||void 0===k?void 0:k.complete)||void 0===R||R.call(k)}_subscribe(k){var R,X;return null!==(X=null===(R=this.source)||void 0===R?void 0:R.subscribe(k))&&void 0!==X?X:a.Kn}}},1540:(o,s,n)=>{"use strict";n.d(s,{Ms:()=>pe,vU:()=>X});var i=n(1126),a=n(5710),c=n(3305),y=n(191),w=n(850);const C=M("C",void 0,void 0);function M(Ae,we,le){return{kind:Ae,value:we,error:le}}var k=n(3695),R=n(4171);class X extends a.yU{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,a.Uv)(we)&&we.add(this)):this.destination=Le}static create(we,le,ae){return new pe(we,le,ae)}next(we){this.isStopped?Ee(function S(Ae){return M("N",Ae,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Ee(function T(Ae){return M("E",void 0,Ae)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Ee(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function ne(Ae,we){return Z.call(Ae,we)}class _e{constructor(we){this.partialObserver=we}next(we){const{partialObserver:le}=this;if(le.next)try{le.next(we)}catch(ae){de(ae)}}error(we){const{partialObserver:le}=this;if(le.error)try{le.error(we)}catch(ae){de(ae)}else de(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(le){de(le)}}}class pe extends X{constructor(we,le,ae){let xe;if(super(),(0,i.T)(we)||!we)xe={next:we??void 0,error:le??void 0,complete:ae??void 0};else{let Be;this&&c.$.useDeprecatedNextContext?(Be=Object.create(we),Be.unsubscribe=()=>this.unsubscribe(),xe={next:we.next&&ne(we.next,Be),error:we.error&&ne(we.error,Be),complete:we.complete&&ne(we.complete,Be)}):xe=we}this.destination=new _e(xe)}}function de(Ae){c.$.useDeprecatedSynchronousErrorHandling?(0,R.l)(Ae):(0,y.m)(Ae)}function Ee(Ae,we){const{onStoppedNotification:le}=c.$;le&&k.f.setTimeout(()=>le(Ae,we))}const Le={closed:!0,next:w.l,error:function De(Ae){throw Ae},complete:w.l}},5710:(o,s,n)=>{"use strict";n.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>T});var i=n(1126);const c=(0,n(5644).L)(M=>function(R){M(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((X,Z)=>`${Z+1}) ${X.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R});var y=n(5891);class w{constructor(k){this.initialTeardown=k,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let k;if(!this.closed){this.closed=!0;const{_parentage:R}=this;if(R)if(this._parentage=null,Array.isArray(R))for(const ne of R)ne.remove(this);else R.remove(this);const{initialTeardown:X}=this;if((0,i.T)(X))try{X()}catch(ne){k=ne instanceof c?ne.errors:[ne]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const ne of Z)try{S(ne)}catch(_e){k=k??[],_e instanceof c?k=[...k,..._e.errors]:k.push(_e)}}if(k)throw new c(k)}}add(k){var R;if(k&&k!==this)if(this.closed)S(k);else{if(k instanceof w){if(k.closed||k._hasParent(this))return;k._addParent(this)}(this._finalizers=null!==(R=this._finalizers)&&void 0!==R?R:[]).push(k)}}_hasParent(k){const{_parentage:R}=this;return R===k||Array.isArray(R)&&R.includes(k)}_addParent(k){const{_parentage:R}=this;this._parentage=Array.isArray(R)?(R.push(k),R):R?[R,k]:k}_removeParent(k){const{_parentage:R}=this;R===k?this._parentage=null:Array.isArray(R)&&(0,y.o)(R,k)}remove(k){const{_finalizers:R}=this;R&&(0,y.o)(R,k),k instanceof w&&k._removeParent(this)}}w.EMPTY=(()=>{const M=new w;return M.closed=!0,M})();const C=w.EMPTY;function T(M){return M instanceof w||M&&"closed"in M&&(0,i.T)(M.remove)&&(0,i.T)(M.add)&&(0,i.T)(M.unsubscribe)}function S(M){(0,i.T)(M)?M():M.unsubscribe()}},3305:(o,s,n)=>{"use strict";n.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},1642:(o,s,n)=>{"use strict";n.d(s,{G:()=>C});var i=n(1698),a=n(5710),c=n(3589),y=n(2483),w=n(5351);class C extends i.c{constructor(S,M){super(),this.source=S,this.subjectFactory=M,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new a.yU;const M=this.getSubject();S.add(this.source.subscribe((0,y._)(M,void 0,()=>{this._teardown(),M.complete()},k=>{this._teardown(),M.error(k)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},6627:(o,s,n)=>{"use strict";n.d(s,{z:()=>k});var i=n(1698),a=n(3740),c=n(1787),y=n(9220),w=n(3759),C=n(4327),T=n(9321),S=n(2483),M=n(8266);function k(...Z){const ne=(0,C.lI)(Z),_e=(0,C.ms)(Z),{args:pe,keys:de}=(0,a.D)(Z);if(0===pe.length)return(0,c.H)([],ne);const De=new i.c(function R(Z,ne,_e=y.D){return pe=>{X(ne,()=>{const{length:de}=Z,De=new Array(de);let Ee=de,Le=de;for(let Ae=0;Ae{const we=(0,c.H)(Z[Ae],ne);let le=!1;we.subscribe((0,S._)(pe,ae=>{De[Ae]=ae,le||(le=!0,Le--),Le||pe.next(_e(De.slice()))},()=>{--Ee||pe.complete()}))},pe)},pe)}}(pe,ne,de?Ee=>(0,T.e)(de,Ee):y.D));return _e?De.pipe((0,w.I)(_e)):De}function X(Z,ne,_e){Z?(0,M.N)(_e,Z,ne):ne()}},3569:(o,s,n)=>{"use strict";n.d(s,{x:()=>w});var i=n(1890),c=n(4327),y=n(1787);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},6381:(o,s,n)=>{"use strict";n.d(s,{v:()=>c});var i=n(1698),a=n(7225);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},6564:(o,s,n)=>{"use strict";n.d(s,{w:()=>a});const a=new(n(1698).c)(w=>w.complete())},2653:(o,s,n)=>{"use strict";n.d(s,{p:()=>S});var i=n(1698),a=n(3740),c=n(7225),y=n(4327),w=n(2483),C=n(3759),T=n(9321);function S(...M){const k=(0,y.ms)(M),{args:R,keys:X}=(0,a.D)(M),Z=new i.c(ne=>{const{length:_e}=R;if(!_e)return void ne.complete();const pe=new Array(_e);let de=_e,De=_e;for(let Ee=0;Ee<_e;Ee++){let Le=!1;(0,c.Tg)(R[Ee]).subscribe((0,w._)(ne,Ae=>{Le||(Le=!0,De--),pe[Ee]=Ae},()=>de--,void 0,()=>{(!de||!Le)&&(De||ne.next(X?(0,T.e)(X,pe):pe),ne.complete())}))}});return k?Z.pipe((0,C.I)(k)):Z}},1787:(o,s,n)=>{"use strict";n.d(s,{H:()=>ae});var i=n(7225),a=n(8266),c=n(5351),y=n(2483);function w(xe,Be=0){return(0,c.N)((st,lt)=>{st.subscribe((0,y._)(lt,bt=>(0,a.N)(lt,xe,()=>lt.next(bt),Be),()=>(0,a.N)(lt,xe,()=>lt.complete(),Be),bt=>(0,a.N)(lt,xe,()=>lt.error(bt),Be)))})}function C(xe,Be=0){return(0,c.N)((st,lt)=>{lt.add(xe.schedule(()=>st.subscribe(lt),Be))})}var M=n(1698),R=n(6952),X=n(1126);function ne(xe,Be){if(!xe)throw new Error("Iterable cannot be null");return new M.c(st=>{(0,a.N)(st,Be,()=>{const lt=xe[Symbol.asyncIterator]();(0,a.N)(st,Be,()=>{lt.next().then(bt=>{bt.done?st.complete():st.next(bt.value)})},0,!0)})})}var _e=n(6600),pe=n(6505),de=n(6786),De=n(4876),Ee=n(8394),Le=n(8810),Ae=n(3173);function ae(xe,Be){return Be?function le(xe,Be){if(null!=xe){if((0,_e.l)(xe))return function T(xe,Be){return(0,i.Tg)(xe).pipe(C(Be),w(Be))}(xe,Be);if((0,de.X)(xe))return function k(xe,Be){return new M.c(st=>{let lt=0;return Be.schedule(function(){lt===xe.length?st.complete():(st.next(xe[lt++]),st.closed||this.schedule())})})}(xe,Be);if((0,pe.y)(xe))return function S(xe,Be){return(0,i.Tg)(xe).pipe(C(Be),w(Be))}(xe,Be);if((0,Ee.T)(xe))return ne(xe,Be);if((0,De.x)(xe))return function Z(xe,Be){return new M.c(st=>{let lt;return(0,a.N)(st,Be,()=>{lt=xe[R.l](),(0,a.N)(st,Be,()=>{let bt,at;try{({value:bt,done:at}=lt.next())}catch(sn){return void st.error(sn)}at?st.complete():st.next(bt)},0,!0)}),()=>(0,X.T)(lt?.return)&<.return()})}(xe,Be);if((0,Ae.U)(xe))return function we(xe,Be){return ne((0,Ae.C)(xe),Be)}(xe,Be)}throw(0,Le.L)(xe)}(xe,Be):(0,i.Tg)(xe)}},909:(o,s,n)=>{"use strict";n.d(s,{R:()=>k});var i=n(7225),a=n(1698),c=n(5823),y=n(6786),w=n(1126),C=n(3759);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],M=["on","off"];function k(_e,pe,de,De){if((0,w.T)(de)&&(De=de,de=void 0),De)return k(_e,pe,de).pipe((0,C.I)(De));const[Ee,Le]=function ne(_e){return(0,w.T)(_e.addEventListener)&&(0,w.T)(_e.removeEventListener)}(_e)?S.map(Ae=>we=>_e[Ae](pe,we,de)):function X(_e){return(0,w.T)(_e.addListener)&&(0,w.T)(_e.removeListener)}(_e)?T.map(R(_e,pe)):function Z(_e){return(0,w.T)(_e.on)&&(0,w.T)(_e.off)}(_e)?M.map(R(_e,pe)):[];if(!Ee&&(0,y.X)(_e))return(0,c.Z)(Ae=>k(Ae,pe,de))((0,i.Tg)(_e));if(!Ee)throw new TypeError("Invalid event target");return new a.c(Ae=>{const we=(...le)=>Ae.next(1Le(we)})}function R(_e,pe){return de=>De=>_e[de](pe,De)}},7225:(o,s,n)=>{"use strict";n.d(s,{Tg:()=>Z});var i=n(1635),a=n(6786),c=n(6505),y=n(1698),w=n(6600),C=n(8394),T=n(8810),S=n(4876),M=n(3173),k=n(1126),R=n(191),X=n(2563);function Z(Ae){if(Ae instanceof y.c)return Ae;if(null!=Ae){if((0,w.l)(Ae))return function ne(Ae){return new y.c(we=>{const le=Ae[X.s]();if((0,k.T)(le.subscribe))return le.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,a.X)(Ae))return function _e(Ae){return new y.c(we=>{for(let le=0;le{Ae.then(le=>{we.closed||(we.next(le),we.complete())},le=>we.error(le)).then(null,R.m)})}(Ae);if((0,C.T)(Ae))return De(Ae);if((0,S.x)(Ae))return function de(Ae){return new y.c(we=>{for(const le of Ae)if(we.next(le),we.closed)return;we.complete()})}(Ae);if((0,M.U)(Ae))return function Ee(Ae){return De((0,M.C)(Ae))}(Ae)}throw(0,T.L)(Ae)}function De(Ae){return new y.c(we=>{(function Le(Ae,we){var le,ae,xe,Be;return(0,i.sH)(this,void 0,void 0,function*(){try{for(le=(0,i.xN)(Ae);!(ae=yield le.next()).done;)if(we.next(ae.value),we.closed)return}catch(st){xe={error:st}}finally{try{ae&&!ae.done&&(Be=le.return)&&(yield Be.call(le))}finally{if(xe)throw xe.error}}we.complete()})})(Ae,we).catch(le=>we.error(le))})}},7509:(o,s,n)=>{"use strict";n.d(s,{h:()=>C});var i=n(1890),a=n(7225),c=n(6564),y=n(4327),w=n(1787);function C(...T){const S=(0,y.lI)(T),M=(0,y.R0)(T,1/0),k=T;return k.length?1===k.length?(0,a.Tg)(k[0]):(0,i.U)(M)((0,w.H)(k,S)):c.w}},3016:(o,s,n)=>{"use strict";n.d(s,{of:()=>c});var i=n(4327),a=n(1787);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8915:(o,s,n)=>{"use strict";n.d(s,{$:()=>c});var i=n(1698),a=n(1126);function c(y,w){const C=(0,a.T)(y)?y:()=>y,T=S=>S.error(C());return new i.c(w?S=>w.schedule(T,0,S):T)}},9587:(o,s,n)=>{"use strict";n.d(s,{O:()=>w});var i=n(1698),a=n(6061),c=n(9921);function w(C=0,T,S=a.b){let M=-1;return null!=T&&((0,c.m)(T)?S=T:M=T),new i.c(k=>{let R=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;R<0&&(R=0);let X=0;return S.schedule(function(){k.closed||(k.next(X++),0<=M?this.schedule(void 0,M):k.complete())},R)})}},2483:(o,s,n)=>{"use strict";n.d(s,{_:()=>a});var i=n(1540);function a(y,w,C,T,S){return new c(y,w,C,T,S)}class c extends i.vU{constructor(w,C,T,S,M,k){super(w),this.onFinalize=M,this.shouldUnsubscribe=k,this._next=C?function(R){try{C(R)}catch(X){w.error(X)}}:super._next,this._error=S?function(R){try{S(R)}catch(X){w.error(X)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(R){w.error(R)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},5684:(o,s,n)=>{"use strict";n.d(s,{Z:()=>T});var i=n(6061),a=n(5351),c=n(7225),y=n(2483),C=n(9587);function T(S,M=i.E){return function w(S){return(0,a.N)((M,k)=>{let R=!1,X=null,Z=null,ne=!1;const _e=()=>{if(Z?.unsubscribe(),Z=null,R){R=!1;const de=X;X=null,k.next(de)}ne&&k.complete()},pe=()=>{Z=null,ne&&k.complete()};M.subscribe((0,y._)(k,de=>{R=!0,X=de,Z||(0,c.Tg)(S(de)).subscribe(Z=(0,y._)(k,_e,pe))},()=>{ne=!0,(!R||!Z||Z.closed)&&k.complete()}))})}(()=>(0,C.O)(S,M))}},7178:(o,s,n)=>{"use strict";n.d(s,{W:()=>y});var i=n(7225),a=n(2483),c=n(5351);function y(w){return(0,c.N)((C,T)=>{let k,S=null,M=!1;S=C.subscribe((0,a._)(T,void 0,void 0,R=>{k=(0,i.Tg)(w(R,y(w)(C))),S?(S.unsubscribe(),S=null,k.subscribe(T)):M=!0})),M&&(S.unsubscribe(),S=null,k.subscribe(T))})}},1459:(o,s,n)=>{"use strict";n.d(s,{H:()=>c});var i=n(5823),a=n(1126);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},8627:(o,s,n)=>{"use strict";n.d(s,{B:()=>y});var i=n(6061),a=n(5351),c=n(2483);function y(w,C=i.E){return(0,a.N)((T,S)=>{let M=null,k=null,R=null;const X=()=>{if(M){M.unsubscribe(),M=null;const ne=k;k=null,S.next(ne)}};function Z(){const ne=R+w,_e=C.now();if(_e{k=ne,R=C.now(),M||(M=C.schedule(Z,w),S.add(M))},()=>{X(),S.complete()},void 0,()=>{k=M=null}))})}},5670:(o,s,n)=>{"use strict";n.d(s,{U:()=>c});var i=n(5351),a=n(2483);function c(y){return(0,i.N)((w,C)=>{let T=!1;w.subscribe((0,a._)(C,S=>{T=!0,C.next(S)},()=>{T||C.next(y),C.complete()}))})}},8136:(o,s,n)=>{"use strict";n.d(s,{c:()=>Z});var i=n(6061),a=n(3569),c=n(7610),y=n(5351),w=n(2483),C=n(850),S=n(6590),M=n(5823),k=n(7225);function R(ne,_e){return _e?pe=>(0,a.x)(_e.pipe((0,c.s)(1),function T(){return(0,y.N)((ne,_e)=>{ne.subscribe((0,w._)(_e,C.l))})}()),pe.pipe(R(ne))):(0,M.Z)((pe,de)=>(0,k.Tg)(ne(pe,de)).pipe((0,c.s)(1),(0,S.u)(pe)))}var X=n(9587);function Z(ne,_e=i.E){const pe=(0,X.O)(ne,_e);return R(()=>pe)}},6645:(o,s,n)=>{"use strict";n.d(s,{F:()=>y});var i=n(9220),a=n(5351),c=n(2483);function y(C,T=i.D){return C=C??w,(0,a.N)((S,M)=>{let k,R=!0;S.subscribe((0,c._)(M,X=>{const Z=T(X);(R||!C(k,Z))&&(R=!1,k=Z,M.next(X))}))})}function w(C,T){return C===T}},1483:(o,s,n)=>{"use strict";n.d(s,{p:()=>c});var i=n(5351),a=n(2483);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>y.call(w,M,S++)&&T.next(M)))})}},4447:(o,s,n)=>{"use strict";n.d(s,{j:()=>a});var i=n(5351);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},1703:(o,s,n)=>{"use strict";n.d(s,{$:()=>T});var i=n(8747),a=n(1483),c=n(7610),y=n(5670),w=n(5017),C=n(9220);function T(S,M){const k=arguments.length>=2;return R=>R.pipe(S?(0,a.p)((X,Z)=>S(X,Z,R)):C.D,(0,c.s)(1),k?(0,y.U)(M):(0,w.v)(()=>new i.G))}},7947:(o,s,n)=>{"use strict";n.d(s,{T:()=>c});var i=n(5351),a=n(2483);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>{T.next(y.call(w,M,S++))}))})}},6590:(o,s,n)=>{"use strict";n.d(s,{u:()=>a});var i=n(7947);function a(c){return(0,i.T)(()=>c)}},1890:(o,s,n)=>{"use strict";n.d(s,{U:()=>c});var i=n(5823),a=n(9220);function c(y=1/0){return(0,i.Z)(a.D,y)}},5823:(o,s,n)=>{"use strict";n.d(s,{Z:()=>S});var i=n(7947),a=n(7225),c=n(5351),y=n(8266),w=n(2483),T=n(1126);function S(M,k,R=1/0){return(0,T.T)(k)?S((X,Z)=>(0,i.T)((ne,_e)=>k(X,ne,Z,_e))((0,a.Tg)(M(X,Z))),R):("number"==typeof k&&(R=k),(0,c.N)((X,Z)=>function C(M,k,R,X,Z,ne,_e,pe){const de=[];let De=0,Ee=0,Le=!1;const Ae=()=>{Le&&!de.length&&!De&&k.complete()},we=ae=>De{ne&&k.next(ae),De++;let xe=!1;(0,a.Tg)(R(ae,Ee++)).subscribe((0,w._)(k,Be=>{Z?.(Be),ne?we(Be):k.next(Be)},()=>{xe=!0},void 0,()=>{if(xe)try{for(De--;de.length&&Dele(Be)):le(Be)}Ae()}catch(Be){k.error(Be)}}))};return M.subscribe((0,w._)(k,we,()=>{Le=!0,Ae()})),()=>{pe?.()}}(X,Z,M,R)))}},3589:(o,s,n)=>{"use strict";n.d(s,{B:()=>c});var i=n(5351),a=n(2483);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const T=(0,a._)(w,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(C=null);const S=y._connection,M=C;C=null,S&&(!M||S===M)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(T),T.closed||(C=y.connect())})}},5903:(o,s,n)=>{"use strict";n.d(s,{L:()=>C});var i=n(5351),a=n(2483),c=n(9220),y=n(9587),w=n(7225);function C(T=1/0){let S;S=T&&"object"==typeof T?T:{count:T};const{count:M=1/0,delay:k,resetOnSuccess:R=!1}=S;return M<=0?c.D:(0,i.N)((X,Z)=>{let _e,ne=0;const pe=()=>{let de=!1;_e=X.subscribe((0,a._)(Z,De=>{R&&(ne=0),Z.next(De)},void 0,De=>{if(ne++{_e?(_e.unsubscribe(),_e=null,pe()):de=!0};if(null!=k){const Le="number"==typeof k?(0,y.O)(k):(0,w.Tg)(k(De,ne)),Ae=(0,a._)(Z,()=>{Ae.unsubscribe(),Ee()},()=>{Z.complete()});Le.subscribe(Ae)}else Ee()}else Z.error(De)})),de&&(_e.unsubscribe(),_e=null,pe())};pe()})}},36:(o,s,n)=>{"use strict";n.d(s,{S:()=>a});var i=n(2483);function a(c,y,w,C,T){return(S,M)=>{let k=w,R=y,X=0;S.subscribe((0,i._)(M,Z=>{const ne=X++;R=k?c(R,Z,ne):(k=!0,Z),C&&M.next(R)},T&&(()=>{k&&M.next(R),M.complete()})))}}},6218:(o,s,n)=>{"use strict";n.d(s,{u:()=>w});var i=n(7225),a=n(8447),c=n(1540),y=n(5351);function w(T={}){const{connector:S=()=>new a.B,resetOnError:M=!0,resetOnComplete:k=!0,resetOnRefCountZero:R=!0}=T;return X=>{let Z,ne,_e,pe=0,de=!1,De=!1;const Ee=()=>{ne?.unsubscribe(),ne=void 0},Le=()=>{Ee(),Z=_e=void 0,de=De=!1},Ae=()=>{const we=Z;Le(),we?.unsubscribe()};return(0,y.N)((we,le)=>{pe++,!De&&!de&&Ee();const ae=_e=_e??S();le.add(()=>{pe--,0===pe&&!De&&!de&&(ne=C(Ae,R))}),ae.subscribe(le),!Z&&pe>0&&(Z=new c.Ms({next:xe=>ae.next(xe),error:xe=>{De=!0,Ee(),ne=C(Le,M,xe),ae.error(xe)},complete:()=>{de=!0,Ee(),ne=C(Le,k),ae.complete()}}),(0,i.Tg)(we).subscribe(Z))})(X)}}function C(T,S,...M){if(!0===S)return void T();if(!1===S)return;const k=new c.Ms({next:()=>{k.unsubscribe(),T()}});return(0,i.Tg)(S(...M)).subscribe(k)}},8249:(o,s,n)=>{"use strict";n.d(s,{t:()=>c});var i=n(7838),a=n(6218);function c(y,w,C){let T,S=!1;return y&&"object"==typeof y?({bufferSize:T=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):T=y??1/0,(0,a.u)({connector:()=>new i.m(T,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},1866:(o,s,n)=>{"use strict";n.d(s,{i:()=>a});var i=n(1483);function a(c){return(0,i.p)((y,w)=>c<=w)}},593:(o,s,n)=>{"use strict";n.d(s,{Z:()=>y});var i=n(3569),a=n(4327),c=n(5351);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((T,S)=>{(C?(0,i.x)(w,T,C):(0,i.x)(w,T)).subscribe(S)})}},2867:(o,s,n)=>{"use strict";n.d(s,{n:()=>y});var i=n(7225),a=n(5351),c=n(2483);function y(w,C){return(0,a.N)((T,S)=>{let M=null,k=0,R=!1;const X=()=>R&&!M&&S.complete();T.subscribe((0,c._)(S,Z=>{M?.unsubscribe();let ne=0;const _e=k++;(0,i.Tg)(w(Z,_e)).subscribe(M=(0,c._)(S,pe=>S.next(C?C(Z,pe,_e,ne++):pe),()=>{M=null,X()}))},()=>{R=!0,X()}))})}},7610:(o,s,n)=>{"use strict";n.d(s,{s:()=>y});var i=n(6564),a=n(5351),c=n(2483);function y(w){return w<=0?()=>i.w:(0,a.N)((C,T)=>{let S=0;C.subscribe((0,c._)(T,M=>{++S<=w&&(T.next(M),w<=S&&T.complete())}))})}},5424:(o,s,n)=>{"use strict";n.d(s,{Q:()=>w});var i=n(5351),a=n(2483),c=n(7225),y=n(850);function w(C){return(0,i.N)((T,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&T.subscribe(S)})}},8445:(o,s,n)=>{"use strict";n.d(s,{v:()=>c});var i=n(5351),a=n(2483);function c(y,w=!1){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>{const k=y(M,S++);(k||w)&&T.next(M),!k&&T.complete()}))})}},2040:(o,s,n)=>{"use strict";n.d(s,{M:()=>w});var i=n(1126),a=n(5351),c=n(2483),y=n(9220);function w(C,T,S){const M=(0,i.T)(C)||T||S?{next:C,error:T,complete:S}:C;return M?(0,a.N)((k,R)=>{var X;null===(X=M.subscribe)||void 0===X||X.call(M);let Z=!0;k.subscribe((0,c._)(R,ne=>{var _e;null===(_e=M.next)||void 0===_e||_e.call(M,ne),R.next(ne)},()=>{var ne;Z=!1,null===(ne=M.complete)||void 0===ne||ne.call(M),R.complete()},ne=>{var _e;Z=!1,null===(_e=M.error)||void 0===_e||_e.call(M,ne),R.error(ne)},()=>{var ne,_e;Z&&(null===(ne=M.unsubscribe)||void 0===ne||ne.call(M)),null===(_e=M.finalize)||void 0===_e||_e.call(M)}))}):y.D}},5017:(o,s,n)=>{"use strict";n.d(s,{v:()=>y});var i=n(8747),a=n(5351),c=n(2483);function y(C=w){return(0,a.N)((T,S)=>{let M=!1;T.subscribe((0,c._)(S,k=>{M=!0,S.next(k)},()=>M?S.complete():S.error(C())))})}function w(){return new i.G}},9899:(o,s,n)=>{"use strict";n.d(s,{R:()=>w});var i=n(5710);class a extends i.yU{constructor(T,S){super()}schedule(T,S=0){return this}}const c={setInterval(C,T,...S){const{delegate:M}=c;return M?.setInterval?M.setInterval(C,T,...S):setInterval(C,T,...S)},clearInterval(C){const{delegate:T}=c;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var y=n(5891);class w extends a{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var M;if(this.closed)return this;this.state=T;const k=this.id,R=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(R,k,S)),this.pending=!0,this.delay=S,this.id=null!==(M=this.id)&&void 0!==M?M:this.requestAsyncId(R,this.id,S),this}requestAsyncId(T,S,M=0){return c.setInterval(T.flush.bind(T,this),M)}recycleAsyncId(T,S,M=0){if(null!=M&&this.delay===M&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const M=this._execute(T,S);if(M)return M;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let k,M=!1;try{this.work(T)}catch(R){M=!0,k=R||new Error("Scheduled action threw falsy error")}if(M)return this.unsubscribe(),k}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:M}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(M,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},8050:(o,s,n)=>{"use strict";n.d(s,{q:()=>c});var i=n(6188);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,T){return new this.schedulerActionCtor(this,w).schedule(T,C)}}a.now=i.U.now;class c extends a{constructor(w,C=a.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let T;this._active=!0;do{if(T=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,T){for(;w=C.shift();)w.unsubscribe();throw T}}}},4984:(o,s,n)=>{"use strict";n.d(s,{$:()=>ne});var i=n(9899);let c,a=1;const y={};function w(pe){return pe in y&&(delete y[pe],!0)}const C={setImmediate(pe){const de=a++;return y[de]=!0,c||(c=Promise.resolve()),c.then(()=>w(de)&&pe()),de},clearImmediate(pe){w(pe)}},{setImmediate:S,clearImmediate:M}=C,k={setImmediate(...pe){const{delegate:de}=k;return(de?.setImmediate||S)(...pe)},clearImmediate(pe){const{delegate:de}=k;return(de?.clearImmediate||M)(pe)},delegate:void 0};var X=n(8050);const ne=new class Z extends X.q{flush(de){this._active=!0;const De=this._scheduled;this._scheduled=void 0;const{actions:Ee}=this;let Le;de=de||Ee.shift();do{if(Le=de.execute(de.state,de.delay))break}while((de=Ee[0])&&de.id===De&&Ee.shift());if(this._active=!1,Le){for(;(de=Ee[0])&&de.id===De&&Ee.shift();)de.unsubscribe();throw Le}}}(class R extends i.R{constructor(de,De){super(de,De),this.scheduler=de,this.work=De}requestAsyncId(de,De,Ee=0){return null!==Ee&&Ee>0?super.requestAsyncId(de,De,Ee):(de.actions.push(this),de._scheduled||(de._scheduled=k.setImmediate(de.flush.bind(de,void 0))))}recycleAsyncId(de,De,Ee=0){var Le;if(null!=Ee?Ee>0:this.delay>0)return super.recycleAsyncId(de,De,Ee);const{actions:Ae}=de;null!=De&&(null===(Le=Ae[Ae.length-1])||void 0===Le?void 0:Le.id)!==De&&(k.clearImmediate(De),de._scheduled===De&&(de._scheduled=void 0))}})},6061:(o,s,n)=>{"use strict";n.d(s,{E:()=>c,b:()=>y});var i=n(9899);const c=new(n(8050).q)(i.R),y=c},6188:(o,s,n)=>{"use strict";n.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3695:(o,s,n)=>{"use strict";n.d(s,{f:()=>i});const i={setTimeout(a,c,...y){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(a,c,...y):setTimeout(a,c,...y)},clearTimeout(a){const{delegate:c}=i;return(c?.clearTimeout||clearTimeout)(a)},delegate:void 0}},6952:(o,s,n)=>{"use strict";n.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2563:(o,s,n)=>{"use strict";n.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},8747:(o,s,n)=>{"use strict";n.d(s,{G:()=>a});const a=(0,n(5644).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},4327:(o,s,n)=>{"use strict";n.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=n(1126),a=n(9921);function c(T){return T[T.length-1]}function y(T){return(0,i.T)(c(T))?T.pop():void 0}function w(T){return(0,a.m)(c(T))?T.pop():void 0}function C(T,S){return"number"==typeof c(T)?T.pop():S}},3740:(o,s,n)=>{"use strict";n.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function C(T){return T&&"object"==typeof T&&a(T)===c}(S)){const M=y(S);return{args:M.map(k=>S[k]),keys:M}}}return{args:T,keys:null}}},5891:(o,s,n)=>{"use strict";function i(a,c){if(a){const y=a.indexOf(c);0<=y&&a.splice(y,1)}}n.d(s,{o:()=>i})},5644:(o,s,n)=>{"use strict";function i(a){const y=a(w=>{Error.call(w),w.stack=(new Error).stack});return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}n.d(s,{L:()=>i})},9321:(o,s,n)=>{"use strict";function i(a,c){return a.reduce((y,w,C)=>(y[w]=c[C],y),{})}n.d(s,{e:()=>i})},4171:(o,s,n)=>{"use strict";n.d(s,{Y:()=>c,l:()=>y});var i=n(3305);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:T,error:S}=a;if(a=null,T)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},8266:(o,s,n)=>{"use strict";function i(a,c,y,w=0,C=!1){const T=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(T),!C)return T}n.d(s,{N:()=>i})},9220:(o,s,n)=>{"use strict";function i(a){return a}n.d(s,{D:()=>i})},6786:(o,s,n)=>{"use strict";n.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},8394:(o,s,n)=>{"use strict";n.d(s,{T:()=>a});var i=n(1126);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},1126:(o,s,n)=>{"use strict";function i(a){return"function"==typeof a}n.d(s,{T:()=>i})},6600:(o,s,n)=>{"use strict";n.d(s,{l:()=>c});var i=n(2563),a=n(1126);function c(y){return(0,a.T)(y[i.s])}},4876:(o,s,n)=>{"use strict";n.d(s,{x:()=>c});var i=n(6952),a=n(1126);function c(y){return(0,a.T)(y?.[i.l])}},1531:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(1698),a=n(1126);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},6505:(o,s,n)=>{"use strict";n.d(s,{y:()=>a});var i=n(1126);function a(c){return(0,i.T)(c?.then)}},3173:(o,s,n)=>{"use strict";n.d(s,{C:()=>c,U:()=>y});var i=n(1635),a=n(1126);function c(w){return(0,i.AQ)(this,arguments,function*(){const T=w.getReader();try{for(;;){const{value:S,done:M}=yield(0,i.N3)(T.read());if(M)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{T.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9921:(o,s,n)=>{"use strict";n.d(s,{m:()=>a});var i=n(1126);function a(c){return c&&(0,i.T)(c.schedule)}},5351:(o,s,n)=>{"use strict";n.d(s,{N:()=>c,S:()=>a});var i=n(1126);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},3759:(o,s,n)=>{"use strict";n.d(s,{I:()=>y});var i=n(7947);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},850:(o,s,n)=>{"use strict";function i(){}n.d(s,{l:()=>i})},6742:(o,s,n)=>{"use strict";n.d(s,{F:()=>a,m:()=>c});var i=n(9220);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((T,S)=>S(T),C)}}},191:(o,s,n)=>{"use strict";n.d(s,{m:()=>c});var i=n(3305),a=n(3695);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},8810:(o,s,n)=>{"use strict";function i(a){return new TypeError(`You provided ${null!==a&&"object"==typeof a?"an invalid object":`'${a}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}n.d(s,{L:()=>i})},1204:(o,s,n)=>{"use strict";n.d(s,{FX:()=>lt,If:()=>c,K2:()=>S,MA:()=>ne,Os:()=>T,P:()=>pe,S6:()=>De,hZ:()=>w,i0:()=>C,i7:()=>R,iF:()=>M,kY:()=>X,kp:()=>y,sf:()=>Be,ui:()=>st,wk:()=>k});var i=n(4460),a=n(3107),c=function(bt){return bt[bt.State=0]="State",bt[bt.Transition=1]="Transition",bt[bt.Sequence=2]="Sequence",bt[bt.Group=3]="Group",bt[bt.Animate=4]="Animate",bt[bt.Keyframes=5]="Keyframes",bt[bt.Style=6]="Style",bt[bt.Trigger=7]="Trigger",bt[bt.Reference=8]="Reference",bt[bt.AnimateChild=9]="AnimateChild",bt[bt.AnimateRef=10]="AnimateRef",bt[bt.Query=11]="Query",bt[bt.Stagger=12]="Stagger",bt}(c||{});const y="*";function w(bt,at){return{type:c.Trigger,name:bt,definitions:at,options:{}}}function C(bt,at=null){return{type:c.Animate,styles:at,timings:bt}}function T(bt,at=null){return{type:c.Group,steps:bt,options:at}}function S(bt,at=null){return{type:c.Sequence,steps:bt,options:at}}function M(bt){return{type:c.Style,styles:bt,offset:null}}function k(bt,at,sn){return{type:c.State,name:bt,styles:at,options:sn}}function R(bt){return{type:c.Keyframes,steps:bt}}function X(bt,at,sn=null){return{type:c.Transition,expr:bt,animation:at,options:sn}}function ne(bt=null){return{type:c.AnimateChild,options:bt}}function pe(bt,at,sn=null){return{type:c.Query,selector:bt,animation:at,options:sn}}let De=(()=>{class bt{static \u0275fac=function(fn){return new(fn||bt)};static \u0275prov=a.jDH({token:bt,factory:()=>(0,a.WQX)(Le),providedIn:"root"})}return bt})();class Ee{}let Le=(()=>{class bt extends De{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(sn,fn){if(super(),this._renderer=sn.createRenderer(fn.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function xe(bt){const at=bt.\u0275type;return 0===at||1===at}(this._renderer))throw new a.wOt(3600,!1)}build(sn){const fn=this._nextAnimationId;this._nextAnimationId++;const En=Array.isArray(sn)?S(sn):sn;return le(this._renderer,null,fn,"register",[En]),new Ae(fn,this._renderer)}static \u0275fac=function(fn){return new(fn||bt)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:bt,factory:bt.\u0275fac,providedIn:"root"})}return bt})();class Ae extends Ee{_id;_renderer;constructor(at,sn){super(),this._id=at,this._renderer=sn}create(at,sn){return new we(this._id,at,sn||{},this._renderer)}}class we{id;element;_renderer;parentPlayer=null;_started=!1;constructor(at,sn,fn,En){this.id=at,this.element=sn,this._renderer=En,this._command("create",fn)}_listen(at,sn){return this._renderer.listen(this.element,`@@${this.id}:${at}`,sn)}_command(at,...sn){le(this._renderer,this.element,this.id,at,sn)}onDone(at){this._listen("done",at)}onStart(at){this._listen("start",at)}onDestroy(at){this._listen("destroy",at)}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(at){this._command("setPosition",at)}getPosition(){return function ae(bt){const at=bt.\u0275type;return 0===at?bt:1===at?bt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function le(bt,at,sn,fn,En){bt.setProperty(at,`@@${sn}:${fn}`,En)}class Be{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(at=0,sn=0){this.totalTime=at+sn}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}onStart(at){this._originalOnStartFns.push(at),this._onStartFns.push(at)}onDone(at){this._originalOnDoneFns.push(at),this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(at=>at()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(at){this._position=this.totalTime?at*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(at){const sn="start"==at?this._onStartFns:this._onDoneFns;sn.forEach(fn=>fn()),sn.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(at){this.players=at;let sn=0,fn=0,En=0;const Wn=this.players.length;0==Wn?queueMicrotask(()=>this._onFinish()):this.players.forEach(wn=>{wn.onDone(()=>{++sn==Wn&&this._onFinish()}),wn.onDestroy(()=>{++fn==Wn&&this._onDestroy()}),wn.onStart(()=>{++En==Wn&&this._onStart()})}),this.totalTime=this.players.reduce((wn,Je)=>Math.max(wn,Je.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}init(){this.players.forEach(at=>at.init())}onStart(at){this._onStartFns.push(at)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(at=>at()),this._onStartFns=[])}onDone(at){this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(at=>at.play())}pause(){this.players.forEach(at=>at.pause())}restart(){this.players.forEach(at=>at.restart())}finish(){this._onFinish(),this.players.forEach(at=>at.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(at=>at.destroy()),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this.players.forEach(at=>at.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(at){const sn=at*this.totalTime;this.players.forEach(fn=>{const En=fn.totalTime?Math.min(1,sn/fn.totalTime):1;fn.setPosition(En)})}getPosition(){const at=this.players.reduce((sn,fn)=>null===sn||fn.totalTime>sn.totalTime?fn:sn,null);return null!=at?at.getPosition():0}beforeDestroy(){this.players.forEach(at=>{at.beforeDestroy&&at.beforeDestroy()})}triggerCallback(at){const sn="start"==at?this._onStartFns:this._onDoneFns;sn.forEach(fn=>fn()),sn.length=0}}const lt="!"},8559:(o,s,n)=>{"use strict";n.d(s,{Pd:()=>si,Au:()=>_t,vr:()=>sn,Bu:()=>ze,FN:()=>je,GX:()=>Te,Q_:()=>xr,Z7:()=>ht,Ai:()=>Vr,g7:()=>Zi,px:()=>ae,_G:()=>ft,w6:()=>mt,Ae:()=>xe});var i=n(4460),a=n(3107),c=n(2147),y=n(5467),w=n(5919),C=n(8447),T=n(5710),M=(n(1531),n(3016)),k=n(1217),R=n(2040),X=n(8627),Z=n(1483),ne=n(7947),pe=(n(7610),n(1866)),de=n(6645),De=n(5424),Le=n(7747),Ae=n(3022),we=n(6520);const le=" ";function ae(nn,Mt,nt){const Rt=Be(nn,Mt);nt=nt.trim(),!Rt.some(ln=>ln.trim()===nt)&&(Rt.push(nt),nn.setAttribute(Mt,Rt.join(le)))}function xe(nn,Mt,nt){const Rt=Be(nn,Mt);nt=nt.trim();const ln=Rt.filter(vn=>vn!==nt);ln.length?nn.setAttribute(Mt,ln.join(le)):nn.removeAttribute(Mt)}function Be(nn,Mt){return nn.getAttribute(Mt)?.match(/\S+/g)??[]}const lt="cdk-describedby-message",bt="cdk-describedby-host";let at=0,sn=(()=>{class nn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+at++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+at++}describe(nt,Rt,ln){if(!this._canBeDescribed(nt,Rt))return;const vn=fn(Rt,ln);"string"!=typeof Rt?(En(Rt,this._id),this._messageRegistry.set(vn,{messageElement:Rt,referenceCount:0})):this._messageRegistry.has(vn)||this._createMessageElement(Rt,ln),this._isElementDescribedByMessage(nt,vn)||this._addMessageReference(nt,vn)}removeDescription(nt,Rt,ln){if(!Rt||!this._isElementNode(nt))return;const vn=fn(Rt,ln);if(this._isElementDescribedByMessage(nt,vn)&&this._removeMessageReference(nt,vn),"string"==typeof Rt){const fr=this._messageRegistry.get(vn);fr&&0===fr.referenceCount&&this._deleteMessageElement(vn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const nt=this._document.querySelectorAll(`[${bt}="${this._id}"]`);for(let Rt=0;Rt0!=ln.indexOf(lt));nt.setAttribute("aria-describedby",Rt.join(" "))}_addMessageReference(nt,Rt){const ln=this._messageRegistry.get(Rt);ae(nt,"aria-describedby",ln.messageElement.id),nt.setAttribute(bt,this._id),ln.referenceCount++}_removeMessageReference(nt,Rt){const ln=this._messageRegistry.get(Rt);ln.referenceCount--,xe(nt,"aria-describedby",ln.messageElement.id),nt.removeAttribute(bt)}_isElementDescribedByMessage(nt,Rt){const ln=Be(nt,"aria-describedby"),vn=this._messageRegistry.get(Rt),fr=vn&&vn.messageElement.id;return!!fr&&-1!=ln.indexOf(fr)}_canBeDescribed(nt,Rt){if(!this._isElementNode(nt))return!1;if(Rt&&"object"==typeof Rt)return!0;const ln=null==Rt?"":`${Rt}`.trim(),vn=nt.getAttribute("aria-label");return!(!ln||vn&&vn.trim()===ln)}_isElementNode(nt){return nt.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function fn(nn,Mt){return"string"==typeof nn?`${Mt||""}/${nn}`:nn}function En(nn,Mt){nn.id||(nn.id=`${lt}-${Mt}-${at++}`)}class wn{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(Mt,nt){const Rt="number"==typeof nt?.debounceInterval?nt.debounceInterval:200;nt?.skipPredicate&&(this._skipPredicateFn=nt.skipPredicate),this.setItems(Mt),this._setupKeyHandler(Rt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Mt){this._selectedItemIndex=Mt}setItems(Mt){this._items=Mt}handleKey(Mt){const nt=Mt.keyCode;Mt.key&&1===Mt.key.length?this._letterKeyStream.next(Mt.key.toLocaleUpperCase()):(nt>=w.A&&nt<=w.Z||nt>=w.f2&&nt<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(nt))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Mt){this._letterKeyStream.pipe((0,R.M)(nt=>this._pressedLetters.push(nt)),(0,X.B)(Mt),(0,Z.p)(()=>this._pressedLetters.length>0),(0,ne.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(nt=>{for(let Rt=1;RtMt.disabled;constructor(Mt,nt){this._items=Mt,Mt instanceof a.rOR?this._itemChangesSubscription=Mt.changes.subscribe(Rt=>this._itemsChanged(Rt.toArray())):(0,a.Hps)(Mt)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(Mt()),{injector:nt}))}tabOut=new C.B;change=new C.B;skipPredicate(Mt){return this._skipPredicateFn=Mt,this}withWrap(Mt=!0){return this._wrap=Mt,this}withVerticalOrientation(Mt=!0){return this._vertical=Mt,this}withHorizontalOrientation(Mt){return this._horizontal=Mt,this}withAllowedModifierKeys(Mt){return this._allowedModifierKeys=Mt,this}withTypeAhead(Mt=200){this._typeaheadSubscription.unsubscribe();const nt=this._getItemsArray();return this._typeahead=new wn(nt,{debounceInterval:"number"==typeof Mt?Mt:void 0,skipPredicate:Rt=>this._skipPredicateFn(Rt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Rt=>{this.setActiveItem(Rt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Mt=!0){return this._homeAndEnd=Mt,this}withPageUpDown(Mt=!0,nt=10){return this._pageUpAndDown={enabled:Mt,delta:nt},this}setActiveItem(Mt){const nt=this._activeItem();this.updateActiveItem(Mt),this._activeItem()!==nt&&this.change.next(this._activeItemIndex)}onKeydown(Mt){const nt=Mt.keyCode,ln=["altKey","ctrlKey","metaKey","shiftKey"].every(vn=>!Mt[vn]||this._allowedModifierKeys.indexOf(vn)>-1);switch(nt){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&ln){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&ln){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&ln){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&ln){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&ln){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&ln){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&ln){const vn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(vn>0?vn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&ln){const vn=this._activeItemIndex+this._pageUpAndDown.delta,fr=this._getItemsArray().length;this._setActiveItemByIndex(vn-1&&Rt!==this._activeItemIndex&&(this._activeItemIndex=Rt,this._typeahead?.setCurrentSelectedItemIndex(Rt))}}}class _t extends Je{setActiveItem(Mt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Mt),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Je{_origin="program";setFocusOrigin(Mt){return this._origin=Mt,this}setActiveItem(Mt){super.setActiveItem(Mt),this.activeItem&&this.activeItem.focus(this._origin)}}let ht=(()=>{class nn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(nt){return nt.hasAttribute("disabled")}isVisible(nt){return function Tn(nn){return!!(nn.offsetWidth||nn.offsetHeight||"function"==typeof nn.getClientRects&&nn.getClientRects().length)}(nt)&&"visible"===getComputedStyle(nt).visibility}isTabbable(nt){if(!this._platform.isBrowser)return!1;const Rt=function Xt(nn){try{return nn.frameElement}catch{return null}}(function Kt(nn){return nn.ownerDocument&&nn.ownerDocument.defaultView||window}(nt));if(Rt&&(-1===mn(Rt)||!this.isVisible(Rt)))return!1;let ln=nt.nodeName.toLowerCase(),vn=mn(nt);return nt.hasAttribute("contenteditable")?-1!==vn:!("iframe"===ln||"object"===ln||this._platform.WEBKIT&&this._platform.IOS&&!function Mn(nn){let Mt=nn.nodeName.toLowerCase(),nt="input"===Mt&&nn.type;return"text"===nt||"password"===nt||"select"===Mt||"textarea"===Mt}(nt))&&("audio"===ln?!!nt.hasAttribute("controls")&&-1!==vn:"video"===ln?-1!==vn&&(null!==vn||this._platform.FIREFOX||nt.hasAttribute("controls")):nt.tabIndex>=0)}isFocusable(nt,Rt){return function tt(nn){return!function Zt(nn){return function Ht(nn){return"input"==nn.nodeName.toLowerCase()}(nn)&&"hidden"==nn.type}(nn)&&(function Wt(nn){let Mt=nn.nodeName.toLowerCase();return"input"===Mt||"select"===Mt||"button"===Mt||"textarea"===Mt}(nn)||function rt(nn){return function en(nn){return"a"==nn.nodeName.toLowerCase()}(nn)&&nn.hasAttribute("href")}(nn)||nn.hasAttribute("contenteditable")||Nn(nn))}(nt)&&!this.isDisabled(nt)&&(Rt?.ignoreVisibility||this.isVisible(nt))}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function Nn(nn){if(!nn.hasAttribute("tabindex")||void 0===nn.tabIndex)return!1;let Mt=nn.getAttribute("tabindex");return!(!Mt||isNaN(parseInt(Mt,10)))}function mn(nn){if(!Nn(nn))return null;const Mt=parseInt(nn.getAttribute("tabindex")||"",10);return isNaN(Mt)?-1:Mt}class At{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Mt){this._enabled=Mt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Mt,this._startAnchor),this._toggleAnchorTabIndex(Mt,this._endAnchor))}_enabled=!0;constructor(Mt,nt,Rt,ln,vn=!1,fr){this._element=Mt,this._checker=nt,this._ngZone=Rt,this._document=ln,this._injector=fr,vn||this.attachAnchors()}destroy(){const Mt=this._startAnchor,nt=this._endAnchor;Mt&&(Mt.removeEventListener("focus",this.startAnchorListener),Mt.remove()),nt&&(nt.removeEventListener("focus",this.endAnchorListener),nt.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(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusInitialElement(Mt)))})}focusFirstTabbableElementWhenReady(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusFirstTabbableElement(Mt)))})}focusLastTabbableElementWhenReady(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusLastTabbableElement(Mt)))})}_getRegionBoundary(Mt){const nt=this._element.querySelectorAll(`[cdk-focus-region-${Mt}], [cdkFocusRegion${Mt}], [cdk-focus-${Mt}]`);return"start"==Mt?nt.length?nt[0]:this._getFirstTabbableElement(this._element):nt.length?nt[nt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Mt){const nt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(nt){if(!this._checker.isFocusable(nt)){const Rt=this._getFirstTabbableElement(nt);return Rt?.focus(Mt),!!Rt}return nt.focus(Mt),!0}return this.focusFirstTabbableElement(Mt)}focusFirstTabbableElement(Mt){const nt=this._getRegionBoundary("start");return nt&&nt.focus(Mt),!!nt}focusLastTabbableElement(Mt){const nt=this._getRegionBoundary("end");return nt&&nt.focus(Mt),!!nt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Mt){if(this._checker.isFocusable(Mt)&&this._checker.isTabbable(Mt))return Mt;const nt=Mt.children;for(let Rt=0;Rt=0;Rt--){const ln=nt[Rt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(nt[Rt]):null;if(ln)return ln}return null}_createAnchor(){const Mt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Mt),Mt.classList.add("cdk-visually-hidden"),Mt.classList.add("cdk-focus-trap-anchor"),Mt.setAttribute("aria-hidden","true"),Mt}_toggleAnchorTabIndex(Mt,nt){Mt?nt.setAttribute("tabindex","0"):nt.removeAttribute("tabindex")}toggleAnchors(Mt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Mt,this._startAnchor),this._toggleAnchorTabIndex(Mt,this._endAnchor))}_executeOnStable(Mt){this._injector?(0,a.mal)(Mt,{injector:this._injector}):setTimeout(Mt)}}let Te=(()=>{class nn{_checker=(0,a.WQX)(ht);_ngZone=(0,a.WQX)(a.SKi);_document=(0,a.WQX)(i.qQ);_injector=(0,a.WQX)(a.zZn);constructor(){(0,a.WQX)(y.l).load(y.Y)}create(nt,Rt=!1){return new At(nt,this._checker,this._ngZone,this._document,Rt,this._injector)}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function ft(nn){return 0===nn.buttons||0===nn.detail}function mt(nn){const Mt=nn.touches&&nn.touches[0]||nn.changedTouches&&nn.changedTouches[0];return!(!Mt||-1!==Mt.identifier||null!=Mt.radiusX&&1!==Mt.radiusX||null!=Mt.radiusY&&1!==Mt.radiusY)}const Tt=new a.nKC("cdk-input-modality-detector-options"),On={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},hn=(0,c.BQ)({passive:!0,capture:!0});let Ln=(()=>{class nn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new k.t(null);_options;_lastTouchMs=0;_onKeydown=nt=>{this._options?.ignoreKeys?.some(Rt=>Rt===nt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(nt))};_onMousedown=nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ft(nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(nt))};_onTouchstart=nt=>{mt(nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(nt))};constructor(){const nt=(0,a.WQX)(a.SKi),Rt=(0,a.WQX)(i.qQ),ln=(0,a.WQX)(Tt,{optional:!0});this._options={...On,...ln},this.modalityDetected=this._modality.pipe((0,pe.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,de.F)()),this._platform.isBrowser&&nt.runOutsideAngular(()=>{Rt.addEventListener("keydown",this._onKeydown,hn),Rt.addEventListener("mousedown",this._onMousedown,hn),Rt.addEventListener("touchstart",this._onTouchstart,hn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,hn),document.removeEventListener("mousedown",this._onMousedown,hn),document.removeEventListener("touchstart",this._onTouchstart,hn))}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();const lr=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Dn(){return null}}),Hr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mr=0,Vr=(()=>{class nn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(Hr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const nt=(0,a.WQX)(lr,{optional:!0});this._liveElement=nt||this._createLiveElement()}announce(nt,...Rt){const ln=this._defaultOptions;let vn,fr;return 1===Rt.length&&"number"==typeof Rt[0]?fr=Rt[0]:[vn,fr]=Rt,this.clear(),clearTimeout(this._previousTimeout),vn||(vn=ln&&ln.politeness?ln.politeness:"polite"),null==fr&&ln&&(fr=ln.duration),this._liveElement.setAttribute("aria-live",vn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Co=>this._currentResolve=Co)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=nt,"number"==typeof fr&&(this._previousTimeout=setTimeout(()=>this.clear(),fr)),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 nt="cdk-live-announcer-element",Rt=this._document.getElementsByClassName(nt),ln=this._document.createElement("div");for(let vn=0;vn .cdk-overlay-container [aria-modal="true"]');for(let ln=0;ln{class nn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(Ln);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)};_document=(0,a.WQX)(i.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const nt=(0,a.WQX)(Oe,{optional:!0});this._detectionMode=nt?.detectionMode||Vt.IMMEDIATE}_rootNodeFocusAndBlurListener=nt=>{for(let ln=(0,c.Fb)(nt);ln;ln=ln.parentElement)"focus"===nt.type?this._onFocus(nt,ln):this._onBlur(nt,ln)};monitor(nt,Rt=!1){const ln=(0,Ae.i8)(nt);if(!this._platform.isBrowser||1!==ln.nodeType)return(0,M.of)();const vn=(0,c.KT)(ln)||this._getDocument(),fr=this._elementInfo.get(ln);if(fr)return Rt&&(fr.checkChildren=!0),fr.subject;const Co={checkChildren:Rt,subject:new C.B,rootNode:vn};return this._elementInfo.set(ln,Co),this._registerGlobalListeners(Co),Co.subject}stopMonitoring(nt){const Rt=(0,Ae.i8)(nt),ln=this._elementInfo.get(Rt);ln&&(ln.subject.complete(),this._setClasses(Rt),this._elementInfo.delete(Rt),this._removeGlobalListeners(ln))}focusVia(nt,Rt,ln){const vn=(0,Ae.i8)(nt);vn===this._getDocument().activeElement?this._getClosestElementsInfo(vn).forEach(([Co,Ni])=>this._originChanged(Co,Rt,Ni)):(this._setOrigin(Rt),"function"==typeof vn.focus&&vn.focus(ln))}ngOnDestroy(){this._elementInfo.forEach((nt,Rt)=>this.stopMonitoring(Rt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(nt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(nt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:nt&&this._isLastInteractionFromInputLabel(nt)?"mouse":"program"}_shouldBeAttributedToTouch(nt){return this._detectionMode===Vt.EVENTUAL||!!nt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(nt,Rt){nt.classList.toggle("cdk-focused",!!Rt),nt.classList.toggle("cdk-touch-focused","touch"===Rt),nt.classList.toggle("cdk-keyboard-focused","keyboard"===Rt),nt.classList.toggle("cdk-mouse-focused","mouse"===Rt),nt.classList.toggle("cdk-program-focused","program"===Rt)}_setOrigin(nt,Rt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=nt,this._originFromTouchInteraction="touch"===nt&&Rt,this._detectionMode===Vt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(nt,Rt){const ln=this._elementInfo.get(Rt),vn=(0,c.Fb)(nt);!ln||!ln.checkChildren&&Rt!==vn||this._originChanged(Rt,this._getFocusOrigin(vn),ln)}_onBlur(nt,Rt){const ln=this._elementInfo.get(Rt);!ln||ln.checkChildren&&nt.relatedTarget instanceof Node&&Rt.contains(nt.relatedTarget)||(this._setClasses(Rt),this._emitOrigin(ln,null))}_emitOrigin(nt,Rt){nt.subject.observers.length&&this._ngZone.run(()=>nt.subject.next(Rt))}_registerGlobalListeners(nt){if(!this._platform.isBrowser)return;const Rt=nt.rootNode,ln=this._rootNodeFocusListenerCount.get(Rt)||0;ln||this._ngZone.runOutsideAngular(()=>{Rt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),Rt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(Rt,ln+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,De.Q)(this._stopInputModalityDetector)).subscribe(vn=>{this._setOrigin(vn,!0)}))}_removeGlobalListeners(nt){const Rt=nt.rootNode;if(this._rootNodeFocusListenerCount.has(Rt)){const ln=this._rootNodeFocusListenerCount.get(Rt);ln>1?this._rootNodeFocusListenerCount.set(Rt,ln-1):(Rt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),Rt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(Rt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(nt,Rt,ln){this._setClasses(nt,Rt),this._emitOrigin(ln,Rt),this._lastFocusOrigin=Rt}_getClosestElementsInfo(nt){const Rt=[];return this._elementInfo.forEach((ln,vn)=>{(vn===nt||ln.checkChildren&&vn.contains(nt))&&Rt.push([vn,ln])}),Rt}_isLastInteractionFromInputLabel(nt){const{_mostRecentTarget:Rt,mostRecentModality:ln}=this._inputModalityDetector;if("mouse"!==ln||!Rt||Rt===nt||"INPUT"!==nt.nodeName&&"TEXTAREA"!==nt.nodeName||nt.disabled)return!1;const vn=nt.labels;if(vn)for(let fr=0;fr{class nn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(we.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ct.NONE;const nt=this._document.createElement("div");nt.style.backgroundColor="rgb(1,2,3)",nt.style.position="absolute",this._document.body.appendChild(nt);const Rt=this._document.defaultView||window,ln=Rt&&Rt.getComputedStyle?Rt.getComputedStyle(nt):null,vn=(ln&&ln.backgroundColor||"").replace(/ /g,"");switch(nt.remove(),vn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ct.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ct.BLACK_ON_WHITE}return ct.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const nt=this._document.body.classList;nt.remove(er,Bt,xn),this._hasCheckedHighContrastMode=!0;const Rt=this.getHighContrastMode();Rt===ct.BLACK_ON_WHITE?nt.add(er,Bt):Rt===ct.WHITE_ON_BLACK&&nt.add(er,xn)}}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})(),si=(()=>{class nn{constructor(){(0,a.WQX)(xr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275mod=a.$C({type:nn});static \u0275inj=a.G2t({imports:[Le.w5]})}return nn})();const hi={};let Zi=(()=>{class nn{_appId=(0,a.WQX)(a.sZ2);getId(nt){return"ng"!==this._appId&&(nt+=this._appId),hi.hasOwnProperty(nt)||(hi[nt]=0),`${nt}${hi[nt]++}`}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})()},2944:(o,s,n)=>{"use strict";n.d(s,{dS:()=>T,jI:()=>M});var i=n(3107),a=n(4460);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class k{value="ltr";change=new i.bkB;constructor(){const X=(0,i.WQX)(c,{optional:!0});X&&(this.value=function C(k){const R=k?.toLowerCase()||"";return"auto"===R&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===R?"rtl":"ltr"}((X.body?X.body.dir:null)||(X.documentElement?X.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||k)};static \u0275prov=i.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),M=(()=>{class k{static \u0275fac=function(Z){return new(Z||k)};static \u0275mod=i.$C({type:k});static \u0275inj=i.G2t({})}return k})()},3022:(o,s,n)=>{"use strict";n.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>T});var i=n(3107);function a(M){return null!=M&&"false"!=`${M}`}function c(M,k=0){return function y(M){return!isNaN(parseFloat(M))&&!isNaN(Number(M))}(M)?Number(M):2===arguments.length?k:0}function w(M){return Array.isArray(M)?M:[M]}function C(M){return null==M?"":"string"==typeof M?M:`${M}px`}function T(M){return M instanceof i.aKT?M.nativeElement:M}},5919:(o,s,n)=>{"use strict";n.d(s,{A:()=>Ue,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>L,Kp:()=>_e,LE:()=>Ee,UQ:()=>de,W3:()=>T,Z:()=>z,_f:()=>R,bn:()=>Wn,dB:()=>ne,eg:()=>Ye,f2:()=>xe,i7:()=>De,n6:()=>Le,rp:()=>Re,t6:()=>X,w_:()=>Z,wn:()=>c,yZ:()=>pe});const c=9,w=13,C=16,T=17,S=18,R=27,X=32,Z=33,ne=34,_e=35,pe=36,de=37,De=38,Ee=39,Le=40,xe=48,Wn=57,Ue=65,z=90,L=91,Ye=224;function Re(gt,...jt){return jt.length?jt.some(kt=>gt[kt]):gt.altKey||gt.shiftKey||gt.ctrlKey||gt.metaKey}},6520:(o,s,n)=>{"use strict";n.d(s,{QP:()=>Le,Rp:()=>we});var i=n(3107),a=n(3022),c=n(8447),y=n(6627),w=n(3569),C=n(1698),T=n(7610),S=n(1866),M=n(8627),k=n(7947),R=n(593),X=n(5424),Z=n(2147);const _e=new Set;let pe,de=(()=>{class le{_platform=(0,i.WQX)(Z.OD);_nonce=(0,i.WQX)(i.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ee}matchMedia(xe){return(this._platform.WEBKIT||this._platform.BLINK)&&function De(le,ae){if(!_e.has(le))try{pe||(pe=document.createElement("style"),ae&&pe.setAttribute("nonce",ae),pe.setAttribute("type","text/css"),document.head.appendChild(pe)),pe.sheet&&(pe.sheet.insertRule(`@media ${le} {body{ }}`,0),_e.add(le))}catch(xe){console.error(xe)}}(xe,this._nonce),this._matchMedia(xe)}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Ee(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let Le=(()=>{class le{_mediaMatcher=(0,i.WQX)(de);_zone=(0,i.WQX)(i.SKi);_queries=new Map;_destroySubject=new c.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(xe){return Ae((0,a.FG)(xe)).some(st=>this._registerQuery(st).mql.matches)}observe(xe){const st=Ae((0,a.FG)(xe)).map(bt=>this._registerQuery(bt).observable);let lt=(0,y.z)(st);return lt=(0,w.x)(lt.pipe((0,T.s)(1)),lt.pipe((0,S.i)(1),(0,M.B)(0))),lt.pipe((0,k.T)(bt=>{const at={matches:!1,breakpoints:{}};return bt.forEach(({matches:sn,query:fn})=>{at.matches=at.matches||sn,at.breakpoints[fn]=sn}),at}))}_registerQuery(xe){if(this._queries.has(xe))return this._queries.get(xe);const Be=this._mediaMatcher.matchMedia(xe),lt={observable:new C.c(bt=>{const at=sn=>this._zone.run(()=>bt.next(sn));return Be.addListener(at),()=>{Be.removeListener(at)}}).pipe((0,R.Z)(Be),(0,k.T)(({matches:bt})=>({query:xe,matches:bt})),(0,X.Q)(this._destroySubject)),mql:Be};return this._queries.set(xe,lt),lt}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Ae(le){return le.map(ae=>ae.split(",")).reduce((ae,xe)=>ae.concat(xe)).map(ae=>ae.trim())}const we={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)"}},7747:(o,s,n)=>{"use strict";n.d(s,{w5:()=>C});var i=n(3107);let c=(()=>{class T{create(M){return typeof MutationObserver>"u"?null:new MutationObserver(M)}static \u0275fac=function(k){return new(k||T)};static \u0275prov=i.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),C=(()=>{class T{static \u0275fac=function(k){return new(k||T)};static \u0275mod=i.$C({type:T});static \u0275inj=i.G2t({providers:[c]})}return T})()},9666:(o,s,n)=>{"use strict";n.d(s,{$Q:()=>en,Sf:()=>_t,Tv:()=>xe,WB:()=>Nn,hJ:()=>Zt,rR:()=>Be,yY:()=>ze,z_:()=>tt});var i=n(8108),a=n(4460),c=n(3107),y=n(3022),w=n(2147),C=n(1483),T=n(5424),S=n(8445),M=n(2944),k=n(6192),R=n(8559),X=n(5467),Z=n(8447),ne=n(5710),_e=n(7509),pe=n(5919);const de=(0,w.CZ)();class De{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Te,be){this._viewportRuler=Te,this._document=be}attach(){}enable(){if(this._canBeEnabled()){const Te=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Te.style.left||"",this._previousHTMLStyles.top=Te.style.top||"",Te.style.left=(0,y.a1)(-this._previousScrollPosition.left),Te.style.top=(0,y.a1)(-this._previousScrollPosition.top),Te.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Te=this._document.documentElement,He=Te.style,z=this._document.body.style,L=He.scrollBehavior||"",V=z.scrollBehavior||"";this._isEnabled=!1,He.left=this._previousHTMLStyles.left,He.top=this._previousHTMLStyles.top,Te.classList.remove("cdk-global-scrollblock"),de&&(He.scrollBehavior=z.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),de&&(He.scrollBehavior=L,z.scrollBehavior=V)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const be=this._document.body,He=this._viewportRuler.getViewportSize();return be.scrollHeight>He.height||be.scrollWidth>He.width}}class Le{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Te,be,He,z){this._scrollDispatcher=Te,this._ngZone=be,this._viewportRuler=He,this._config=z}attach(Te){this._overlayRef=Te}enable(){if(this._scrollSubscription)return;const Te=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(be=>!be||!this._overlayRef.overlayElement.contains(be.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Te.subscribe(()=>{const be=this._viewportRuler.getViewportScrollPosition().top;Math.abs(be-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Te.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class Ae{enable(){}disable(){}attach(){}}function we(At,Te){return Te.some(be=>At.bottombe.bottom||At.rightbe.right)}function le(At,Te){return Te.some(be=>At.topbe.bottom||At.leftbe.right)}class ae{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Te,be,He,z){this._scrollDispatcher=Te,this._viewportRuler=be,this._ngZone=He,this._config=z}attach(Te){this._overlayRef=Te}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 be=this._overlayRef.overlayElement.getBoundingClientRect(),{width:He,height:z}=this._viewportRuler.getViewportSize();we(be,[{width:He,height:z,bottom:z,right:He,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 At{_scrollDispatcher=(0,c.WQX)(i.R);_viewportRuler=(0,c.WQX)(i.Xj);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);constructor(){}noop=()=>new Ae;close=be=>new Le(this._scrollDispatcher,this._ngZone,this._viewportRuler,be);block=()=>new De(this._viewportRuler,this._document);reposition=be=>new ae(this._scrollDispatcher,this._viewportRuler,this._ngZone,be);static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();class Be{positionStrategy;scrollStrategy=new Ae;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Te){if(Te){const be=Object.keys(Te);for(const He of be)void 0!==Te[He]&&(this[He]=Te[He])}}}class bt{connectionPair;scrollableViewProperties;constructor(Te,be){this.connectionPair=Te,this.scrollableViewProperties=be}}let fn=(()=>{class At{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(be){this.remove(be),this._attachedOverlays.push(be)}remove(be){const He=this._attachedOverlays.indexOf(be);He>-1&&this._attachedOverlays.splice(He,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),En=(()=>{class At extends fn{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(be){super.add(be),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)}_keydownListener=be=>{const He=this._attachedOverlays;for(let z=He.length-1;z>-1;z--)if(He[z]._keydownEvents.observers.length>0){const L=He[z]._keydownEvents;this._ngZone?this._ngZone.run(()=>L.next(be)):L.next(be);break}};static \u0275fac=(()=>{let be;return function(z){return(be||(be=c.xGo(At)))(z||At)}})();static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Wn=(()=>{class At extends fn{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(be){if(super.add(be),!this._isAttached){const He=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(He)):this._addEventListeners(He),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=He.style.cursor,He.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const be=this._document.body;be.removeEventListener("pointerdown",this._pointerDownListener,!0),be.removeEventListener("click",this._clickListener,!0),be.removeEventListener("auxclick",this._clickListener,!0),be.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(be.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(be){be.addEventListener("pointerdown",this._pointerDownListener,!0),be.addEventListener("click",this._clickListener,!0),be.addEventListener("auxclick",this._clickListener,!0),be.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=be=>{this._pointerDownEventTarget=(0,w.Fb)(be)};_clickListener=be=>{const He=(0,w.Fb)(be),z="click"===be.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:He;this._pointerDownEventTarget=null;const L=this._attachedOverlays.slice();for(let V=L.length-1;V>-1;V--){const Ne=L[V];if(Ne._outsidePointerEvents.observers.length<1||!Ne.hasAttached())continue;if(wn(Ne.overlayElement,He)||wn(Ne.overlayElement,z))break;const ft=Ne._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ft.next(be)):ft.next(be)}};static \u0275fac=(()=>{let be;return function(z){return(be||(be=c.xGo(At)))(z||At)}})();static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();function wn(At,Te){const be=typeof ShadowRoot<"u"&&ShadowRoot;let He=Te;for(;He;){if(He===At)return!0;He=be&&He instanceof ShadowRoot?He.host:He.parentNode}return!1}let Je=(()=>{class At{static \u0275fac=function(He){return new(He||At)};static \u0275cmp=c.VBU({type:At,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(He,z){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return At})(),_t=(()=>{class At{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(X.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const be="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const z=this._document.querySelectorAll(`.${be}[platform="server"], .${be}[platform="test"]`);for(let L=0;Lthis._backdropClick.next(Te);_backdropTransitionendHandler=Te=>{this._disposeBackdrop(Te.target)};_previousHostParent;_keydownEvents=new Z.B;_outsidePointerEvents=new Z.B;_renders=new Z.B;_afterRenderRef;_afterNextRenderRef;constructor(Te,be,He,z,L,V,Ne,ft,mt,Tt=!1,On){this._portalOutlet=Te,this._host=be,this._pane=He,this._config=z,this._ngZone=L,this._keyboardDispatcher=V,this._document=Ne,this._location=ft,this._outsideClickDispatcher=mt,this._animationsDisabled=Tt,this._injector=On,z.scrollStrategy&&(this._scrollStrategy=z.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=z.positionStrategy,this._afterRenderRef=(0,c.O8t)(()=>(0,c.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Te){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const be=this._portalOutlet.attach(Te);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,c.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 be?.onDestroy&&be.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),be}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Te=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Te}dispose(){const Te=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,Te&&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(Te){Te!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Te,this.hasAttached()&&(Te.attach(this),this.updatePosition()))}updateSize(Te){this._config={...this._config,...Te},this._updateElementSize()}setDirection(Te){this._config={...this._config,direction:Te},this._updateElementDirection()}addPanelClass(Te){this._pane&&this._toggleClasses(this._pane,Te,!0)}removePanelClass(Te){this._pane&&this._toggleClasses(this._pane,Te,!1)}getDirection(){const Te=this._config.direction;return Te?"string"==typeof Te?Te:Te.value:"ltr"}updateScrollStrategy(Te){Te!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Te,this.hasAttached()&&(Te.attach(this),Te.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Te=this._pane.style;Te.width=(0,y.a1)(this._config.width),Te.height=(0,y.a1)(this._config.height),Te.minWidth=(0,y.a1)(this._config.minWidth),Te.minHeight=(0,y.a1)(this._config.minHeight),Te.maxWidth=(0,y.a1)(this._config.maxWidth),Te.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(Te){this._pane.style.pointerEvents=Te?"":"none"}_attachBackdrop(){const Te="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(Te)})}):this._backdropElement.classList.add(Te)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Te=this._backdropElement;if(Te){if(this._animationsDisabled)return void this._disposeBackdrop(Te);Te.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Te.addEventListener("transitionend",this._backdropTransitionendHandler)}),Te.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Te)},500))}}_toggleClasses(Te,be,He){const z=(0,y.FG)(be||[]).filter(L=>!!L);z.length&&(He?Te.classList.add(...z):Te.classList.remove(...z))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const Te=this._renders.pipe((0,T.Q)((0,_e.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()),Te.unsubscribe())})})}_disposeScrollStrategy(){const Te=this._scrollStrategy;Te&&(Te.disable(),Te.detach&&Te.detach())}_disposeBackdrop(Te){Te&&(Te.removeEventListener("click",this._backdropClickHandler),Te.removeEventListener("transitionend",this._backdropTransitionendHandler),Te.remove(),this._backdropElement===Te&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ue="cdk-overlay-connected-position-bounding-box",Ft=/([A-Za-z%]+)$/;class Ke{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Z.B;_resizeSubscription=ne.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Te,be,He,z,L){this._viewportRuler=be,this._document=He,this._platform=z,this._overlayContainer=L,this.setOrigin(Te)}attach(Te){this._validatePositions(),Te.hostElement.classList.add(Ue),this._overlayRef=Te,this._boundingBox=Te.hostElement,this._pane=Te.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 Te=this._originRect,be=this._overlayRect,He=this._viewportRect,z=this._containerRect,L=[];let V;for(let Ne of this._preferredPositions){let ft=this._getOriginPoint(Te,z,Ne),mt=this._getOverlayPoint(ft,be,Ne),Tt=this._getOverlayFit(mt,be,He,Ne);if(Tt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ne,ft);this._canFitWithFlexibleDimensions(Tt,mt,He)?L.push({position:Ne,origin:ft,overlayRect:be,boundingBoxRect:this._calculateBoundingBoxRect(ft,Ne)}):(!V||V.overlayFit.visibleAreaft&&(ft=Tt,Ne=mt)}return this._isPushed=!1,void this._applyPosition(Ne.position,Ne.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(V.position,V.originPoint);this._applyPosition(V.position,V.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ze(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ue),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Te=this._lastPosition;if(Te){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const be=this._getOriginPoint(this._originRect,this._containerRect,Te);this._applyPosition(Te,be)}else this.apply()}withScrollableContainers(Te){return this._scrollables=Te,this}withPositions(Te){return this._preferredPositions=Te,-1===Te.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Te){return this._viewportMargin=Te,this}withFlexibleDimensions(Te=!0){return this._hasFlexibleDimensions=Te,this}withGrowAfterOpen(Te=!0){return this._growAfterOpen=Te,this}withPush(Te=!0){return this._canPush=Te,this}withLockedPosition(Te=!0){return this._positionLocked=Te,this}setOrigin(Te){return this._origin=Te,this}withDefaultOffsetX(Te){return this._offsetX=Te,this}withDefaultOffsetY(Te){return this._offsetY=Te,this}withTransformOriginOn(Te){return this._transformOriginSelector=Te,this}_getOriginPoint(Te,be,He){let z,L;if("center"==He.originX)z=Te.left+Te.width/2;else{const V=this._isRtl()?Te.right:Te.left,Ne=this._isRtl()?Te.left:Te.right;z="start"==He.originX?V:Ne}return be.left<0&&(z-=be.left),L="center"==He.originY?Te.top+Te.height/2:"top"==He.originY?Te.top:Te.bottom,be.top<0&&(L-=be.top),{x:z,y:L}}_getOverlayPoint(Te,be,He){let z,L;return z="center"==He.overlayX?-be.width/2:"start"===He.overlayX?this._isRtl()?-be.width:0:this._isRtl()?0:-be.width,L="center"==He.overlayY?-be.height/2:"top"==He.overlayY?0:-be.height,{x:Te.x+z,y:Te.y+L}}_getOverlayFit(Te,be,He,z){const L=Ot(be);let{x:V,y:Ne}=Te,ft=this._getOffset(z,"x"),mt=this._getOffset(z,"y");ft&&(V+=ft),mt&&(Ne+=mt);let cn=0-Ne,hn=Ne+L.height-He.height,Ln=this._subtractOverflows(L.width,0-V,V+L.width-He.width),lr=this._subtractOverflows(L.height,cn,hn),Dn=Ln*lr;return{visibleArea:Dn,isCompletelyWithinViewport:L.width*L.height===Dn,fitsInViewportVertically:lr===L.height,fitsInViewportHorizontally:Ln==L.width}}_canFitWithFlexibleDimensions(Te,be,He){if(this._hasFlexibleDimensions){const z=He.bottom-be.y,L=He.right-be.x,V=it(this._overlayRef.getConfig().minHeight),Ne=it(this._overlayRef.getConfig().minWidth);return(Te.fitsInViewportVertically||null!=V&&V<=z)&&(Te.fitsInViewportHorizontally||null!=Ne&&Ne<=L)}return!1}_pushOverlayOnScreen(Te,be,He){if(this._previousPushAmount&&this._positionLocked)return{x:Te.x+this._previousPushAmount.x,y:Te.y+this._previousPushAmount.y};const z=Ot(be),L=this._viewportRect,V=Math.max(Te.x+z.width-L.width,0),Ne=Math.max(Te.y+z.height-L.height,0),ft=Math.max(L.top-He.top-Te.y,0),mt=Math.max(L.left-He.left-Te.x,0);let Tt=0,On=0;return Tt=z.width<=L.width?mt||-V:Te.xLn&&!this._isInitialRender&&!this._growAfterOpen&&(V=Te.y-Ln/2)}if("end"===be.overlayX&&!z||"start"===be.overlayX&&z)cn=He.width-Te.x+2*this._viewportMargin,Tt=Te.x-this._viewportMargin;else if("start"===be.overlayX&&!z||"end"===be.overlayX&&z)On=Te.x,Tt=He.right-Te.x;else{const hn=Math.min(He.right-Te.x+He.left,Te.x),Ln=this._lastBoundingBoxSize.width;Tt=2*hn,On=Te.x-hn,Tt>Ln&&!this._isInitialRender&&!this._growAfterOpen&&(On=Te.x-Ln/2)}return{top:V,left:On,bottom:Ne,right:cn,width:Tt,height:L}}_setBoundingBoxStyles(Te,be){const He=this._calculateBoundingBoxRect(Te,be);!this._isInitialRender&&!this._growAfterOpen&&(He.height=Math.min(He.height,this._lastBoundingBoxSize.height),He.width=Math.min(He.width,this._lastBoundingBoxSize.width));const z={};if(this._hasExactPosition())z.top=z.left="0",z.bottom=z.right=z.maxHeight=z.maxWidth="",z.width=z.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,V=this._overlayRef.getConfig().maxWidth;z.height=(0,y.a1)(He.height),z.top=(0,y.a1)(He.top),z.bottom=(0,y.a1)(He.bottom),z.width=(0,y.a1)(He.width),z.left=(0,y.a1)(He.left),z.right=(0,y.a1)(He.right),z.alignItems="center"===be.overlayX?"center":"end"===be.overlayX?"flex-end":"flex-start",z.justifyContent="center"===be.overlayY?"center":"bottom"===be.overlayY?"flex-end":"flex-start",L&&(z.maxHeight=(0,y.a1)(L)),V&&(z.maxWidth=(0,y.a1)(V))}this._lastBoundingBoxSize=He,Ze(this._boundingBox.style,z)}_resetBoundingBoxStyles(){Ze(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ze(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Te,be){const He={},z=this._hasExactPosition(),L=this._hasFlexibleDimensions,V=this._overlayRef.getConfig();if(z){const Tt=this._viewportRuler.getViewportScrollPosition();Ze(He,this._getExactOverlayY(be,Te,Tt)),Ze(He,this._getExactOverlayX(be,Te,Tt))}else He.position="static";let Ne="",ft=this._getOffset(be,"x"),mt=this._getOffset(be,"y");ft&&(Ne+=`translateX(${ft}px) `),mt&&(Ne+=`translateY(${mt}px)`),He.transform=Ne.trim(),V.maxHeight&&(z?He.maxHeight=(0,y.a1)(V.maxHeight):L&&(He.maxHeight="")),V.maxWidth&&(z?He.maxWidth=(0,y.a1)(V.maxWidth):L&&(He.maxWidth="")),Ze(this._pane.style,He)}_getExactOverlayY(Te,be,He){let z={top:"",bottom:""},L=this._getOverlayPoint(be,this._overlayRect,Te);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,He)),"bottom"===Te.overlayY?z.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":z.top=(0,y.a1)(L.y),z}_getExactOverlayX(Te,be,He){let V,z={left:"",right:""},L=this._getOverlayPoint(be,this._overlayRect,Te);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,He)),V=this._isRtl()?"end"===Te.overlayX?"left":"right":"end"===Te.overlayX?"right":"left","right"===V?z.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":z.left=(0,y.a1)(L.x),z}_getScrollVisibility(){const Te=this._getOriginRect(),be=this._pane.getBoundingClientRect(),He=this._scrollables.map(z=>z.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:le(Te,He),isOriginOutsideView:we(Te,He),isOverlayClipped:le(be,He),isOverlayOutsideView:we(be,He)}}_subtractOverflows(Te,...be){return be.reduce((He,z)=>He-Math.max(z,0),Te)}_getNarrowedViewportRect(){const Te=this._document.documentElement.clientWidth,be=this._document.documentElement.clientHeight,He=this._viewportRuler.getViewportScrollPosition();return{top:He.top+this._viewportMargin,left:He.left+this._viewportMargin,right:He.left+Te-this._viewportMargin,bottom:He.top+be-this._viewportMargin,width:Te-2*this._viewportMargin,height:be-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Te,be){return"x"===be?null==Te.offsetX?this._offsetX:Te.offsetX:null==Te.offsetY?this._offsetY:Te.offsetY}_validatePositions(){}_addPanelClasses(Te){this._pane&&(0,y.FG)(Te).forEach(be=>{""!==be&&-1===this._appliedPanelClasses.indexOf(be)&&(this._appliedPanelClasses.push(be),this._pane.classList.add(be))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Te=>{this._pane.classList.remove(Te)}),this._appliedPanelClasses=[])}_getOriginRect(){const Te=this._origin;if(Te instanceof c.aKT)return Te.nativeElement.getBoundingClientRect();if(Te instanceof Element)return Te.getBoundingClientRect();const be=Te.width||0,He=Te.height||0;return{top:Te.y,bottom:Te.y+He,left:Te.x,right:Te.x+be,height:He,width:be}}}function Ze(At,Te){for(let be in Te)Te.hasOwnProperty(be)&&(At[be]=Te[be]);return At}function it(At){if("number"!=typeof At&&null!=At){const[Te,be]=At.split(Ft);return be&&"px"!==be?null:parseFloat(Te)}return At||null}function Ot(At){return{top:Math.floor(At.top),right:Math.floor(At.right),bottom:Math.floor(At.bottom),left:Math.floor(At.left),width:Math.floor(At.width),height:Math.floor(At.height)}}const Xt="cdk-global-overlay-wrapper";class Tn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Te){const be=Te.getConfig();this._overlayRef=Te,this._width&&!be.width&&Te.updateSize({width:this._width}),this._height&&!be.height&&Te.updateSize({height:this._height}),Te.hostElement.classList.add(Xt),this._isDisposed=!1}top(Te=""){return this._bottomOffset="",this._topOffset=Te,this._alignItems="flex-start",this}left(Te=""){return this._xOffset=Te,this._xPosition="left",this}bottom(Te=""){return this._topOffset="",this._bottomOffset=Te,this._alignItems="flex-end",this}right(Te=""){return this._xOffset=Te,this._xPosition="right",this}start(Te=""){return this._xOffset=Te,this._xPosition="start",this}end(Te=""){return this._xOffset=Te,this._xPosition="end",this}width(Te=""){return this._overlayRef?this._overlayRef.updateSize({width:Te}):this._width=Te,this}height(Te=""){return this._overlayRef?this._overlayRef.updateSize({height:Te}):this._height=Te,this}centerHorizontally(Te=""){return this.left(Te),this._xPosition="center",this}centerVertically(Te=""){return this.top(Te),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Te=this._overlayRef.overlayElement.style,be=this._overlayRef.hostElement.style,He=this._overlayRef.getConfig(),{width:z,height:L,maxWidth:V,maxHeight:Ne}=He,ft=!("100%"!==z&&"100vw"!==z||V&&"100%"!==V&&"100vw"!==V),mt=!("100%"!==L&&"100vh"!==L||Ne&&"100%"!==Ne&&"100vh"!==Ne),Tt=this._xPosition,On=this._xOffset,cn="rtl"===this._overlayRef.getConfig().direction;let hn="",Ln="",lr="";ft?lr="flex-start":"center"===Tt?(lr="center",cn?Ln=On:hn=On):cn?"left"===Tt||"end"===Tt?(lr="flex-end",hn=On):("right"===Tt||"start"===Tt)&&(lr="flex-start",Ln=On):"left"===Tt||"start"===Tt?(lr="flex-start",hn=On):("right"===Tt||"end"===Tt)&&(lr="flex-end",Ln=On),Te.position=this._cssPosition,Te.marginLeft=ft?"0":hn,Te.marginTop=mt?"0":this._topOffset,Te.marginBottom=this._bottomOffset,Te.marginRight=ft?"0":Ln,be.justifyContent=lr,be.alignItems=mt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Te=this._overlayRef.overlayElement.style,be=this._overlayRef.hostElement,He=be.style;be.classList.remove(Xt),He.justifyContent=He.alignItems=Te.marginTop=Te.marginBottom=Te.marginLeft=Te.marginRight=Te.position="",this._overlayRef=null,this._isDisposed=!0}}let Wt=(()=>{class At{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(_t);constructor(){}global(){return new Tn}flexibleConnectedTo(be){return new Ke(be,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Zt=(()=>{class At{scrollStrategies=(0,c.WQX)(xe);_overlayContainer=(0,c.WQX)(_t);_positionBuilder=(0,c.WQX)(Wt);_keyboardDispatcher=(0,c.WQX)(En);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(M.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)(Wn);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(R.g7);_appRef;_styleLoader=(0,c.WQX)(X.l);constructor(){}create(be){this._styleLoader.load(Je);const He=this._createHostElement(),z=this._createPaneElement(He),L=this._createPortalOutlet(z),V=new Be(be);return V.direction=V.direction||this._directionality.value,new ze(L,He,z,V,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(be){const He=this._document.createElement("div");return He.id=this._idGenerator.getId("cdk-overlay-"),He.classList.add("cdk-overlay-pane"),be.appendChild(He),He}_createHostElement(){const be=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(be),be}_createPortalOutlet(be){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new k.aI(be,null,this._appRef,this._injector,this._document)}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();const rt=[{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"}],Ht=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const At=(0,c.WQX)(Zt);return()=>At.scrollStrategies.reposition()}});let en=(()=>{class At{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(He){return new(He||At)};static \u0275dir=c.FsC({type:At,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return At})(),Nn=(()=>{class At{_overlay=(0,c.WQX)(Zt);_dir=(0,c.WQX)(M.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=ne.yU.EMPTY;_attachSubscription=ne.yU.EMPTY;_detachSubscription=ne.yU.EMPTY;_positionSubscription=ne.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(Ht);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(be){this._offsetX=be,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(be){this._offsetY=be,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(be){this._disposeOnNavigation=be}backdropClick=new c.bkB;positionChange=new c.bkB;attach=new c.bkB;detach=new c.bkB;overlayKeydown=new c.bkB;overlayOutsideClick=new c.bkB;constructor(){const be=(0,c.WQX)(c.C4Q),He=(0,c.WQX)(c.c1b);this._templatePortal=new k.VA(be,He),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(be){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),be.origin&&this.open&&this._position.apply()),be.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=rt);const be=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=be.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=be.detachments().subscribe(()=>this.detach.emit()),be.keydownEvents().subscribe(He=>{this.overlayKeydown.next(He),He.keyCode===pe._f&&!this.disableClose&&!(0,pe.rp)(He)&&(He.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(He=>{const z=this._getOriginElement(),L=(0,w.Fb)(He);(!z||z!==L&&!z.contains(L))&&this.overlayOutsideClick.next(He)})}_buildConfig(){const be=this._position=this.positionStrategy||this._createPositionStrategy(),He=new Be({direction:this._dir||"ltr",positionStrategy:be,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(He.width=this.width),(this.height||0===this.height)&&(He.height=this.height),(this.minWidth||0===this.minWidth)&&(He.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(He.minHeight=this.minHeight),this.backdropClass&&(He.backdropClass=this.backdropClass),this.panelClass&&(He.panelClass=this.panelClass),He}_updatePositionStrategy(be){const He=this.positions.map(z=>({originX:z.originX,originY:z.originY,overlayX:z.overlayX,overlayY:z.overlayY,offsetX:z.offsetX||this.offsetX,offsetY:z.offsetY||this.offsetY,panelClass:z.panelClass||void 0}));return be.setOrigin(this._getOrigin()).withPositions(He).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const be=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(be),be}_getOrigin(){return this.origin instanceof en?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof en?this.origin.elementRef.nativeElement:this.origin instanceof c.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(be=>{this.backdropClick.emit(be)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,S.v)(()=>this.positionChange.observers.length>0)).subscribe(be=>{this._ngZone.run(()=>this.positionChange.emit(be)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(He){return new(He||At)};static \u0275dir=c.FsC({type:At,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",c.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",c.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",c.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",c.L39],push:[2,"cdkConnectedOverlayPush","push",c.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",c.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.GFd,c.OA$]})}return At})();const Mn={provide:Ht,deps:[Zt],useFactory:function mn(At){return()=>At.scrollStrategies.reposition()}};let tt=(()=>{class At{static \u0275fac=function(He){return new(He||At)};static \u0275mod=c.$C({type:At});static \u0275inj=c.G2t({providers:[Zt,Mn],imports:[M.jI,k.jc,i.E9,i.E9]})}return At})()},2147:(o,s,n)=>{"use strict";n.d(s,{BD:()=>pe,BQ:()=>R,CZ:()=>_e,Fb:()=>Ae,KT:()=>Ee,MU:()=>S,OD:()=>y,r5:()=>X,v8:()=>we,vc:()=>Le});var i=n(3107),a=n(4460);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class le{_platformId=(0,i.WQX)(i.Agw);isBrowser=this._platformId?(0,a.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let le=document.createElement("input");return C=new Set(T.filter(ae=>(le.setAttribute("type",ae),le.type===ae))),C}let M;function R(le){return function k(){if(null==M&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>M=!0}))}finally{M=M||!1}return M}()?le:!!le.capture}var X=function(le){return le[le.NORMAL=0]="NORMAL",le[le.NEGATED=1]="NEGATED",le[le.INVERTED=2]="INVERTED",le}(X||{});let Z,ne,de;function _e(){if(null==ne){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ne=!1,ne;if("scrollBehavior"in document.documentElement.style)ne=!0;else{const le=Element.prototype.scrollTo;ne=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return ne}function pe(){if("object"!=typeof document||!document)return X.NORMAL;if(null==Z){const le=document.createElement("div"),ae=le.style;le.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const xe=document.createElement("div"),Be=xe.style;Be.width="2px",Be.height="1px",le.appendChild(xe),document.body.appendChild(le),Z=X.NORMAL,0===le.scrollLeft&&(le.scrollLeft=1,Z=0===le.scrollLeft?X.NEGATED:X.INVERTED),le.remove()}return Z}function Ee(le){if(function De(){if(null==de){const le=typeof document<"u"?document.head:null;de=!(!le||!le.createShadowRoot&&!le.attachShadow)}return de}()){const ae=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function Le(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ae=le.shadowRoot.activeElement;if(ae===le)break;le=ae}return le}function Ae(le){return le.composedPath?le.composedPath()[0]:le.target}function we(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6192:(o,s,n)=>{"use strict";n.d(s,{A8:()=>k,I3:()=>Ee,VA:()=>R,aI:()=>_e,jc:()=>Ae,lb:()=>Z});var i=n(3107),a=n(4460);class M{_attachedHost;attach(ae){return this._attachedHost=ae,ae.attach(this)}detach(){let ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ae){this._attachedHost=ae}}class k extends M{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(ae,xe,Be,st,lt){super(),this.component=ae,this.viewContainerRef=xe,this.injector=Be,this.projectableNodes=lt}}class R extends M{templateRef;viewContainerRef;context;injector;constructor(ae,xe,Be,st){super(),this.templateRef=ae,this.viewContainerRef=xe,this.context=Be,this.injector=st}get origin(){return this.templateRef.elementRef}attach(ae,xe=this.context){return this.context=xe,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class X extends M{element;constructor(ae){super(),this.element=ae instanceof i.aKT?ae.nativeElement:ae}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof k?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof R?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof X?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class _e extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(ae,xe,Be,st,lt){super(),this.outletElement=ae,this._appRef=Be,this._defaultInjector=st,this._document=lt}attachComponentPortal(ae){let xe;if(ae.viewContainerRef){const Be=ae.injector||ae.viewContainerRef.injector,st=Be.get(i.Vns,null,{optional:!0})||void 0;xe=ae.viewContainerRef.createComponent(ae.component,{index:ae.viewContainerRef.length,injector:Be,ngModuleRef:st,projectableNodes:ae.projectableNodes||void 0}),this.setDisposeFn(()=>xe.destroy())}else xe=(0,i.a0P)(ae.component,{elementInjector:ae.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:ae.projectableNodes||void 0}),this._appRef.attachView(xe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(xe.hostView),xe.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(xe)),this._attachedPortal=ae,xe}attachTemplatePortal(ae){let xe=ae.viewContainerRef,Be=xe.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return Be.rootNodes.forEach(st=>this.outletElement.appendChild(st)),Be.detectChanges(),this.setDisposeFn(()=>{let st=xe.indexOf(Be);-1!==st&&xe.remove(st)}),this._attachedPortal=ae,Be}attachDomPortal=ae=>{const xe=ae.element,Be=this._document.createComment("dom-portal");xe.parentNode.insertBefore(Be,xe),this.outletElement.appendChild(xe),this._attachedPortal=ae,super.setDisposeFn(()=>{Be.parentNode&&Be.parentNode.replaceChild(xe,Be)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let Ee=(()=>{class le extends Z{_moduleRef=(0,i.WQX)(i.Vns,{optional:!0});_document=(0,i.WQX)(a.qQ);_viewContainerRef=(0,i.WQX)(i.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(xe){this.hasAttached()&&!xe&&!this._isInitialized||(this.hasAttached()&&super.detach(),xe&&super.attach(xe),this._attachedPortal=xe||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(xe){xe.setAttachedHost(this);const Be=null!=xe.viewContainerRef?xe.viewContainerRef:this._viewContainerRef,st=Be.createComponent(xe.component,{index:Be.length,injector:xe.injector||Be.injector,projectableNodes:xe.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return Be!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=xe,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(xe){xe.setAttachedHost(this);const Be=this._viewContainerRef.createEmbeddedView(xe.templateRef,xe.context,{injector:xe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=xe,this._attachedRef=Be,this.attached.emit(Be),Be}attachDomPortal=xe=>{const Be=xe.element,st=this._document.createComment("dom-portal");xe.setAttachedHost(this),Be.parentNode.insertBefore(st,Be),this._getRootNode().appendChild(Be),this._attachedPortal=xe,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild(Be,st)})};_getRootNode(){const xe=this._viewContainerRef.element.nativeElement;return xe.nodeType===xe.ELEMENT_NODE?xe:xe.parentNode}static \u0275fac=function(Be){return new(Be||le)};static \u0275dir=i.FsC({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return le})(),Ae=(()=>{class le{static \u0275fac=function(Be){return new(Be||le)};static \u0275mod=i.$C({type:le});static \u0275inj=i.G2t({})}return le})()},5467:(o,s,n)=>{"use strict";n.d(s,{Y:()=>y,l:()=>c});var i=n(3107);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(T){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let M=a.get(S);M||(M={loaders:new Set,refs:[]},a.set(S,M),S.onDestroy(()=>{a.get(S)?.refs.forEach(k=>k.destroy()),a.delete(S)})),M.loaders.has(T)||(M.loaders.add(T),M.refs.push((0,i.a0P)(T,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(S){return new(S||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),y=(()=>{class w{static \u0275fac=function(S){return new(S||w)};static \u0275cmp=i.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(S,M){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},8108:(o,s,n)=>{"use strict";n.d(s,{uv:()=>at,Gj:()=>Ze,R:()=>bt,E9:()=>it,Xj:()=>fn});var i=n(3022),a=n(3107),c=n(8447),y=n(3016),w=n(1698),C=n(909),T=n(9899),S=n(5710);const M={schedule(Ot){let Qt=requestAnimationFrame,Me=cancelAnimationFrame;const{delegate:ht}=M;ht&&(Qt=ht.requestAnimationFrame,Me=ht.cancelAnimationFrame);const Xt=Qt(Tn=>{Me=void 0,Ot(Tn)});return new S.yU(()=>Me?.(Xt))},requestAnimationFrame(...Ot){const{delegate:Qt}=M;return(Qt?.requestAnimationFrame||requestAnimationFrame)(...Ot)},cancelAnimationFrame(...Ot){const{delegate:Qt}=M;return(Qt?.cancelAnimationFrame||cancelAnimationFrame)(...Ot)},delegate:void 0};var R=n(8050);new class X extends R.q{flush(Qt){this._active=!0;const Me=this._scheduled;this._scheduled=void 0;const{actions:ht}=this;let Xt;Qt=Qt||ht.shift();do{if(Xt=Qt.execute(Qt.state,Qt.delay))break}while((Qt=ht[0])&&Qt.id===Me&&ht.shift());if(this._active=!1,Xt){for(;(Qt=ht[0])&&Qt.id===Me&&ht.shift();)Qt.unsubscribe();throw Xt}}}(class k extends T.R{constructor(Qt,Me){super(Qt,Me),this.scheduler=Qt,this.work=Me}requestAsyncId(Qt,Me,ht=0){return null!==ht&&ht>0?super.requestAsyncId(Qt,Me,ht):(Qt.actions.push(this),Qt._scheduled||(Qt._scheduled=M.requestAnimationFrame(()=>Qt.flush(void 0))))}recycleAsyncId(Qt,Me,ht=0){var Xt;if(null!=ht?ht>0:this.delay>0)return super.recycleAsyncId(Qt,Me,ht);const{actions:Tn}=Qt;null!=Me&&(null===(Xt=Tn[Tn.length-1])||void 0===Xt?void 0:Xt.id)!==Me&&(M.cancelAnimationFrame(Me),Qt._scheduled=void 0)}});n(4984);var pe=n(5684),de=n(1483),De=n(5424),Ee=n(2147),Le=n(4460),Ae=n(2944);let bt=(()=>{class Ot{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(Ee.OD);_document=(0,a.WQX)(Le.qQ,{optional:!0});constructor(){}_scrolled=new c.B;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(Me){this.scrollContainers.has(Me)||this.scrollContainers.set(Me,Me.elementScrolled().subscribe(()=>this._scrolled.next(Me)))}deregister(Me){const ht=this.scrollContainers.get(Me);ht&&(ht.unsubscribe(),this.scrollContainers.delete(Me))}scrolled(Me=20){return this._platform.isBrowser?new w.c(ht=>{this._globalSubscription||this._addGlobalListener();const Xt=Me>0?this._scrolled.pipe((0,pe.Z)(Me)).subscribe(ht):this._scrolled.subscribe(ht);return this._scrolledCount++,()=>{Xt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Me,ht)=>this.deregister(ht)),this._scrolled.complete()}ancestorScrolled(Me,ht){const Xt=this.getAncestorScrollContainers(Me);return this.scrolled(ht).pipe((0,de.p)(Tn=>!Tn||Xt.indexOf(Tn)>-1))}getAncestorScrollContainers(Me){const ht=[];return this.scrollContainers.forEach((Xt,Tn)=>{this._scrollableContainsElement(Tn,Me)&&ht.push(Tn)}),ht}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Me,ht){let Xt=(0,i.i8)(ht),Tn=Me.getElementRef().nativeElement;do{if(Xt==Tn)return!0}while(Xt=Xt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Me=this._getWindow();return(0,C.R)(Me.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275prov=a.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),at=(()=>{class Ot{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(bt);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Ae.dS,{optional:!0});_destroyed=new c.B;_elementScrolled=new w.c(Me=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,De.Q)(this._destroyed)).subscribe(Me)));constructor(){}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(Me){const ht=this.elementRef.nativeElement,Xt=this.dir&&"rtl"==this.dir.value;null==Me.left&&(Me.left=Xt?Me.end:Me.start),null==Me.right&&(Me.right=Xt?Me.start:Me.end),null!=Me.bottom&&(Me.top=ht.scrollHeight-ht.clientHeight-Me.bottom),Xt&&(0,Ee.BD)()!=Ee.r5.NORMAL?(null!=Me.left&&(Me.right=ht.scrollWidth-ht.clientWidth-Me.left),(0,Ee.BD)()==Ee.r5.INVERTED?Me.left=Me.right:(0,Ee.BD)()==Ee.r5.NEGATED&&(Me.left=Me.right?-Me.right:Me.right)):null!=Me.right&&(Me.left=ht.scrollWidth-ht.clientWidth-Me.right),this._applyScrollToOptions(Me)}_applyScrollToOptions(Me){const ht=this.elementRef.nativeElement;(0,Ee.CZ)()?ht.scrollTo(Me):(null!=Me.top&&(ht.scrollTop=Me.top),null!=Me.left&&(ht.scrollLeft=Me.left))}measureScrollOffset(Me){const ht="left",Tn=this.elementRef.nativeElement;if("top"==Me)return Tn.scrollTop;if("bottom"==Me)return Tn.scrollHeight-Tn.clientHeight-Tn.scrollTop;const Wt=this.dir&&"rtl"==this.dir.value;return"start"==Me?Me=Wt?"right":ht:"end"==Me&&(Me=Wt?ht:"right"),Wt&&(0,Ee.BD)()==Ee.r5.INVERTED?Me==ht?Tn.scrollWidth-Tn.clientWidth-Tn.scrollLeft:Tn.scrollLeft:Wt&&(0,Ee.BD)()==Ee.r5.NEGATED?Me==ht?Tn.scrollLeft+Tn.scrollWidth-Tn.clientWidth:-Tn.scrollLeft:Me==ht?Tn.scrollLeft:Tn.scrollWidth-Tn.clientWidth-Tn.scrollLeft}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275dir=a.FsC({type:Ot,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return Ot})(),fn=(()=>{class Ot{_platform=(0,a.WQX)(Ee.OD);_viewportSize;_change=new c.B;_changeListener=Me=>{this._change.next(Me)};_document=(0,a.WQX)(Le.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const ht=this._getWindow();ht.addEventListener("resize",this._changeListener),ht.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Me=this._getWindow();Me.removeEventListener("resize",this._changeListener),Me.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Me={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Me}getViewportRect(){const Me=this.getViewportScrollPosition(),{width:ht,height:Xt}=this.getViewportSize();return{top:Me.top,left:Me.left,bottom:Me.top+Xt,right:Me.left+ht,height:Xt,width:ht}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Me=this._document,ht=this._getWindow(),Xt=Me.documentElement,Tn=Xt.getBoundingClientRect();return{top:-Tn.top||Me.body.scrollTop||ht.scrollY||Xt.scrollTop||0,left:-Tn.left||Me.body.scrollLeft||ht.scrollX||Xt.scrollLeft||0}}change(Me=20){return Me>0?this._change.pipe((0,pe.Z)(Me)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Me=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Me.innerWidth,height:Me.innerHeight}:{width:0,height:0}}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275prov=a.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),Ze=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({})}return Ot})(),it=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({imports:[Ae.jI,Ze,Ae.jI,Ze]})}return Ot})()},708:(o,s,n)=>{"use strict";n.d(s,{EE:()=>pe,P8:()=>Z,xb:()=>_e});var i=n(2147),a=n(3107),c=n(5467),y=n(3022),w=n(6564),C=n(8447),T=n(909),S=n(4460),M=n(5684),k=n(5424);let R=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275cmp=a.VBU({type:de,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Le,Ae){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return de})();const X=(0,i.BQ)({passive:!0});let Z=(()=>{class de{_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_styleLoader=(0,a.WQX)(c.l);_monitoredElements=new Map;constructor(){}monitor(Ee){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(R);const Le=(0,y.i8)(Ee),Ae=this._monitoredElements.get(Le);if(Ae)return Ae.subject;const we=new C.B,le="cdk-text-field-autofilled",ae=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||Le.classList.contains(le)?"cdk-text-field-autofill-end"===xe.animationName&&Le.classList.contains(le)&&(Le.classList.remove(le),this._ngZone.run(()=>we.next({target:xe.target,isAutofilled:!1}))):(Le.classList.add(le),this._ngZone.run(()=>we.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Le.addEventListener("animationstart",ae,X),Le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Le,{subject:we,unlisten:()=>{Le.removeEventListener("animationstart",ae,X)}}),we}stopMonitoring(Ee){const Le=(0,y.i8)(Ee),Ae=this._monitoredElements.get(Le);Ae&&(Ae.unlisten(),Ae.subject.complete(),Le.classList.remove("cdk-text-field-autofill-monitored"),Le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Le))}ngOnDestroy(){this._monitoredElements.forEach((Ee,Le)=>this.stopMonitoring(Le))}static \u0275fac=function(Le){return new(Le||de)};static \u0275prov=a.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),_e=(()=>{class de{_elementRef=(0,a.WQX)(a.aKT);_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_previousValue;_initialHeight;_destroyed=new C.B;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(Ee){this._minRows=(0,y.OE)(Ee),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Ee){this._maxRows=(0,y.OE)(Ee),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Ee){this._enabled!==Ee&&((this._enabled=Ee)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Ee){this._cachedPlaceholderHeight=void 0,Ee?this._textareaElement.setAttribute("placeholder",Ee):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(R),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const Ee=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Ee&&(this._textareaElement.style.minHeight=Ee)}_setMaxHeight(){const Ee=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Ee&&(this._textareaElement.style.maxHeight=Ee)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Ee=this._getWindow();(0,T.R)(Ee,"resize").pipe((0,M.Z)(16),(0,k.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 Ee=this._textareaElement.cloneNode(!1);Ee.rows=1,Ee.style.position="absolute",Ee.style.visibility="hidden",Ee.style.border="none",Ee.style.padding="0",Ee.style.height="",Ee.style.minHeight="",Ee.style.maxHeight="",Ee.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Ee),this._cachedLineHeight=Ee.clientHeight,Ee.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Ee=this._textareaElement,Le=Ee.style.marginBottom||"",Ae=this._platform.FIREFOX,we=Ae&&this._hasFocus,le=Ae?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";we&&(Ee.style.marginBottom=`${Ee.clientHeight}px`),Ee.classList.add(le);const ae=Ee.scrollHeight-4;return Ee.classList.remove(le),we&&(Ee.style.marginBottom=Le),ae}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Ee=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Ee}_handleFocusEvent=Ee=>{this._hasFocus="focus"===Ee.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Ee=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Le=this._elementRef.nativeElement,Ae=Le.value;if(!Ee&&this._minRows===this._previousMinRows&&Ae===this._previousValue)return;const we=this._measureScrollHeight(),le=Math.max(we,this._cachedPlaceholderHeight||0);Le.style.height=`${le}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Le)):setTimeout(()=>this._scrollToCaretPosition(Le))}),this._previousValue=Ae,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(Ee){const{selectionStart:Le,selectionEnd:Ae}=Ee;!this._destroyed.isStopped&&this._hasFocus&&Ee.setSelectionRange(Le,Ae)}static \u0275fac=function(Le){return new(Le||de)};static \u0275dir=a.FsC({type:de,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Le,Ae){1&Le&&a.bIt("input",function(){return Ae._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",a.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[a.GFd]})}return de})(),pe=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275mod=a.$C({type:de});static \u0275inj=a.G2t({})}return de})()},4460:(o,s,n)=>{"use strict";n.d(s,{AJ:()=>ur,B3:()=>Cr,Jj:()=>es,MD:()=>Ao,N0:()=>Ss,PV:()=>Li,QT:()=>y,Sm:()=>de,Sq:()=>me,T3:()=>gi,UE:()=>Gs,VF:()=>C,Vy:()=>_s,Xr:()=>ls,YU:()=>Io,ZD:()=>w,_b:()=>ao,aZ:()=>Ee,bT:()=>gt,fw:()=>De,hb:()=>_e,hj:()=>k,jo:()=>hs,qQ:()=>S,vh:()=>Cs});var i=n(3107),a=n(8447);let c=null;function y(){return c}function w(U){c??=U}class C{}const S=new i.nKC("");let M=(()=>{class U{historyGo(te){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(R),providedIn:"platform"})}return U})();const k=new i.nKC("");let R=(()=>{class U extends M{_location;_history;_doc=(0,i.WQX)(S);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(te){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("popstate",te,!1),()=>ve.removeEventListener("popstate",te)}onHashChange(te){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("hashchange",te,!1),()=>ve.removeEventListener("hashchange",te)}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(te){this._location.pathname=te}pushState(te,ve,Et){this._history.pushState(te,ve,Et)}replaceState(te,ve,Et){this._history.replaceState(te,ve,Et)}forward(){this._history.forward()}back(){this._history.back()}historyGo(te=0){this._history.go(te)}getState(){return this._history.state}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>new U,providedIn:"platform"})}return U})();function X(U,Ie){if(0==U.length)return Ie;if(0==Ie.length)return U;let te=0;return U.endsWith("/")&&te++,Ie.startsWith("/")&&te++,2==te?U+Ie.substring(1):1==te?U+Ie:U+"/"+Ie}function Z(U){const Ie=U.match(/#|\?|$/),te=Ie&&Ie.index||U.length;return U.slice(0,te-("/"===U[te-1]?1:0))+U.slice(te)}function ne(U){return U&&"?"!==U[0]?"?"+U:U}let _e=(()=>{class U{historyGo(te){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(de),providedIn:"root"})}return U})();const pe=new i.nKC("");let de=(()=>{class U extends _e{_platformLocation;_baseHref;_removeListenerFns=[];constructor(te,ve){super(),this._platformLocation=te,this._baseHref=ve??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(S).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}prepareExternalUrl(te){return X(this._baseHref,te)}path(te=!1){const ve=this._platformLocation.pathname+ne(this._platformLocation.search),Et=this._platformLocation.hash;return Et&&te?`${ve}${Et}`:ve}pushState(te,ve,Et,Gt){const Vn=this.prepareExternalUrl(Et+ne(Gt));this._platformLocation.pushState(te,ve,Vn)}replaceState(te,ve,Et,Gt){const Vn=this.prepareExternalUrl(Et+ne(Gt));this._platformLocation.replaceState(te,ve,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(M),i.KVO(pe,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),De=(()=>{class U extends _e{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(te,ve){super(),this._platformLocation=te,null!=ve&&(this._baseHref=ve)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(te){this._removeListenerFns.push(this._platformLocation.onPopState(te),this._platformLocation.onHashChange(te))}getBaseHref(){return this._baseHref}path(te=!1){const ve=this._platformLocation.hash??"#";return ve.length>0?ve.substring(1):ve}prepareExternalUrl(te){const ve=X(this._baseHref,te);return ve.length>0?"#"+ve:ve}pushState(te,ve,Et,Gt){let Vn=this.prepareExternalUrl(Et+ne(Gt));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.pushState(te,ve,Vn)}replaceState(te,ve,Et,Gt){let Vn=this.prepareExternalUrl(Et+ne(Gt));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.replaceState(te,ve,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(te=0){this._platformLocation.historyGo?.(te)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(M),i.KVO(pe,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})(),Ee=(()=>{class U{_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(te){this._locationStrategy=te;const ve=this._locationStrategy.getBaseHref();this._basePath=function le(U){if(new RegExp("^(https?:)?//").test(U)){const[,te]=U.split(/\/\/[^\/]+/);return te}return U}(Z(we(ve))),this._locationStrategy.onPopState(Et=>{this._subject.next({url:this.path(!0),pop:!0,state:Et.state,type:Et.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(te=!1){return this.normalize(this._locationStrategy.path(te))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(te,ve=""){return this.path()==this.normalize(te+ne(ve))}normalize(te){return U.stripTrailingSlash(function Ae(U,Ie){if(!U||!Ie.startsWith(U))return Ie;const te=Ie.substring(U.length);return""===te||["/",";","?","#"].includes(te[0])?te:Ie}(this._basePath,we(te)))}prepareExternalUrl(te){return te&&"/"!==te[0]&&(te="/"+te),this._locationStrategy.prepareExternalUrl(te)}go(te,ve="",Et=null){this._locationStrategy.pushState(Et,"",te,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+ne(ve)),Et)}replaceState(te,ve="",Et=null){this._locationStrategy.replaceState(Et,"",te,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(te+ne(ve)),Et)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(te=0){this._locationStrategy.historyGo?.(te)}onUrlChange(te){return this._urlChangeListeners.push(te),this._urlChangeSubscription??=this.subscribe(ve=>{this._notifyUrlChangeListeners(ve.url,ve.state)}),()=>{const ve=this._urlChangeListeners.indexOf(te);this._urlChangeListeners.splice(ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(te="",ve){this._urlChangeListeners.forEach(Et=>Et(te,ve))}subscribe(te,ve,Et){return this._subject.subscribe({next:te,error:ve??void 0,complete:Et??void 0})}static normalizeQueryParams=ne;static joinWithSlash=X;static stripTrailingSlash=Z;static \u0275fac=function(ve){return new(ve||U)(i.KVO(_e))};static \u0275prov=i.jDH({token:U,factory:()=>function Le(){return new Ee((0,i.KVO)(_e))}(),providedIn:"root"})}return U})();function we(U){return U.replace(/\/index.html$/,"")}var Be=function(U){return U[U.Zero=0]="Zero",U[U.One=1]="One",U[U.Two=2]="Two",U[U.Few=3]="Few",U[U.Many=4]="Many",U[U.Other=5]="Other",U}(Be||{}),st=function(U){return U[U.Format=0]="Format",U[U.Standalone=1]="Standalone",U}(st||{}),lt=function(U){return U[U.Narrow=0]="Narrow",U[U.Abbreviated=1]="Abbreviated",U[U.Wide=2]="Wide",U[U.Short=3]="Short",U}(lt||{}),bt=function(U){return U[U.Short=0]="Short",U[U.Medium=1]="Medium",U[U.Long=2]="Long",U[U.Full=3]="Full",U}(bt||{});const at={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 Ue(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.DateFormat],Ie)}function Ft(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.TimeFormat],Ie)}function Ke(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.DateTimeFormat],Ie)}function Ze(U,Ie){const te=(0,i.H5H)(U),ve=te[i.KH2.NumberSymbols][Ie];if(typeof ve>"u"){if(Ie===at.CurrencyDecimal)return te[i.KH2.NumberSymbols][at.Decimal];if(Ie===at.CurrencyGroup)return te[i.KH2.NumberSymbols][at.Group]}return ve}const Xt=i.mq5;function Tn(U){if(!U[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ht(U,Ie){for(let te=Ie;te>-1;te--)if(typeof U[te]<"u")return U[te];throw new Error("Locale data API: locale data undefined")}function en(U){const[Ie,te]=U.split(":");return{hours:+Ie,minutes:+te}}const tt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},At=/((?:[^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 Te=function(U){return U[U.Short=0]="Short",U[U.ShortGMT=1]="ShortGMT",U[U.Long=2]="Long",U[U.Extended=3]="Extended",U}(Te||{}),be=function(U){return U[U.FullYear=0]="FullYear",U[U.Month=1]="Month",U[U.Date=2]="Date",U[U.Hours=3]="Hours",U[U.Minutes=4]="Minutes",U[U.Seconds=5]="Seconds",U[U.FractionalSeconds=6]="FractionalSeconds",U[U.Day=7]="Day",U}(be||{}),He=function(U){return U[U.DayPeriods=0]="DayPeriods",U[U.Days=1]="Days",U[U.Months=2]="Months",U[U.Eras=3]="Eras",U}(He||{});function z(U,Ie,te,ve){let Et=function ct(U){if(xn(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[Et,Gt=1,Vn=1]=U.split("-").map(rr=>+rr);return L(Et,Gt-1,Vn)}const te=parseFloat(U);if(!isNaN(U-te))return new Date(te);let ve;if(ve=U.match(tt))return function Bt(U){const Ie=new Date(0);let te=0,ve=0;const Et=U[8]?Ie.setUTCFullYear:Ie.setFullYear,Gt=U[8]?Ie.setUTCHours:Ie.setHours;U[9]&&(te=Number(U[9]+U[10]),ve=Number(U[9]+U[11])),Et.call(Ie,Number(U[1]),Number(U[2])-1,Number(U[3]));const Vn=Number(U[4]||0)-te,rr=Number(U[5]||0)-ve,ci=Number(U[6]||0),ki=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return Gt.call(Ie,Vn,rr,ci,ki),Ie}(ve)}const Ie=new Date(U);if(!xn(Ie))throw new Error(`Unable to convert "${U}" into a date`);return Ie}(U);Ie=V(te,Ie)||Ie;let rr,Vn=[];for(;Ie;){if(rr=At.exec(Ie),!rr){Vn.push(Ie);break}{Vn=Vn.concat(rr.slice(1));const Di=Vn.pop();if(!Di)break;Ie=Di}}let ci=Et.getTimezoneOffset();ve&&(ci=Ge(ve,ci),Et=function Dt(U,Ie,te){const ve=te?-1:1,Et=U.getTimezoneOffset();return function je(U,Ie){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+Ie),U}(U,ve*(Ge(Ie,Et)-Et))}(Et,ve,!0));let ki="";return Vn.forEach(Di=>{const Nr=function Oe(U){if(Vt[U])return Vt[U];let Ie;switch(U){case"G":case"GG":case"GGG":Ie=cn(He.Eras,lt.Abbreviated);break;case"GGGG":Ie=cn(He.Eras,lt.Wide);break;case"GGGGG":Ie=cn(He.Eras,lt.Narrow);break;case"y":Ie=Tt(be.FullYear,1,0,!1,!0);break;case"yy":Ie=Tt(be.FullYear,2,0,!0,!0);break;case"yyy":Ie=Tt(be.FullYear,3,0,!1,!0);break;case"yyyy":Ie=Tt(be.FullYear,4,0,!1,!0);break;case"Y":Ie=vt(1);break;case"YY":Ie=vt(2,!0);break;case"YYY":Ie=vt(3);break;case"YYYY":Ie=vt(4);break;case"M":case"L":Ie=Tt(be.Month,1,1);break;case"MM":case"LL":Ie=Tt(be.Month,2,1);break;case"MMM":Ie=cn(He.Months,lt.Abbreviated);break;case"MMMM":Ie=cn(He.Months,lt.Wide);break;case"MMMMM":Ie=cn(He.Months,lt.Narrow);break;case"LLL":Ie=cn(He.Months,lt.Abbreviated,st.Standalone);break;case"LLLL":Ie=cn(He.Months,lt.Wide,st.Standalone);break;case"LLLLL":Ie=cn(He.Months,lt.Narrow,st.Standalone);break;case"w":Ie=Vr(1);break;case"ww":Ie=Vr(2);break;case"W":Ie=Vr(1,!0);break;case"d":Ie=Tt(be.Date,1);break;case"dd":Ie=Tt(be.Date,2);break;case"c":case"cc":Ie=Tt(be.Day,1);break;case"ccc":Ie=cn(He.Days,lt.Abbreviated,st.Standalone);break;case"cccc":Ie=cn(He.Days,lt.Wide,st.Standalone);break;case"ccccc":Ie=cn(He.Days,lt.Narrow,st.Standalone);break;case"cccccc":Ie=cn(He.Days,lt.Short,st.Standalone);break;case"E":case"EE":case"EEE":Ie=cn(He.Days,lt.Abbreviated);break;case"EEEE":Ie=cn(He.Days,lt.Wide);break;case"EEEEE":Ie=cn(He.Days,lt.Narrow);break;case"EEEEEE":Ie=cn(He.Days,lt.Short);break;case"a":case"aa":case"aaa":Ie=cn(He.DayPeriods,lt.Abbreviated);break;case"aaaa":Ie=cn(He.DayPeriods,lt.Wide);break;case"aaaaa":Ie=cn(He.DayPeriods,lt.Narrow);break;case"b":case"bb":case"bbb":Ie=cn(He.DayPeriods,lt.Abbreviated,st.Standalone,!0);break;case"bbbb":Ie=cn(He.DayPeriods,lt.Wide,st.Standalone,!0);break;case"bbbbb":Ie=cn(He.DayPeriods,lt.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":Ie=cn(He.DayPeriods,lt.Abbreviated,st.Format,!0);break;case"BBBB":Ie=cn(He.DayPeriods,lt.Wide,st.Format,!0);break;case"BBBBB":Ie=cn(He.DayPeriods,lt.Narrow,st.Format,!0);break;case"h":Ie=Tt(be.Hours,1,-12);break;case"hh":Ie=Tt(be.Hours,2,-12);break;case"H":Ie=Tt(be.Hours,1);break;case"HH":Ie=Tt(be.Hours,2);break;case"m":Ie=Tt(be.Minutes,1);break;case"mm":Ie=Tt(be.Minutes,2);break;case"s":Ie=Tt(be.Seconds,1);break;case"ss":Ie=Tt(be.Seconds,2);break;case"S":Ie=Tt(be.FractionalSeconds,1);break;case"SS":Ie=Tt(be.FractionalSeconds,2);break;case"SSS":Ie=Tt(be.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ie=Ln(Te.Short);break;case"ZZZZZ":Ie=Ln(Te.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ie=Ln(Te.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ie=Ln(Te.Long);break;default:return null}return Vt[U]=Ie,Ie}(Di);ki+=Nr?Nr(Et,te,ci):"''"===Di?"'":Di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ki}function L(U,Ie,te){const ve=new Date(0);return ve.setFullYear(U,Ie,te),ve.setHours(0,0,0),ve}function V(U,Ie){const te=function fn(U){return(0,i.H5H)(U)[i.KH2.LocaleId]}(U);if(Kt[te]??={},Kt[te][Ie])return Kt[te][Ie];let ve="";switch(Ie){case"shortDate":ve=Ue(U,bt.Short);break;case"mediumDate":ve=Ue(U,bt.Medium);break;case"longDate":ve=Ue(U,bt.Long);break;case"fullDate":ve=Ue(U,bt.Full);break;case"shortTime":ve=Ft(U,bt.Short);break;case"mediumTime":ve=Ft(U,bt.Medium);break;case"longTime":ve=Ft(U,bt.Long);break;case"fullTime":ve=Ft(U,bt.Full);break;case"short":const Et=V(U,"shortTime"),Gt=V(U,"shortDate");ve=Ne(Ke(U,bt.Short),[Et,Gt]);break;case"medium":const Vn=V(U,"mediumTime"),rr=V(U,"mediumDate");ve=Ne(Ke(U,bt.Medium),[Vn,rr]);break;case"long":const ci=V(U,"longTime"),ki=V(U,"longDate");ve=Ne(Ke(U,bt.Long),[ci,ki]);break;case"full":const Di=V(U,"fullTime"),Nr=V(U,"fullDate");ve=Ne(Ke(U,bt.Full),[Di,Nr])}return ve&&(Kt[te][Ie]=ve),ve}function Ne(U,Ie){return Ie&&(U=U.replace(/\{([^}]+)}/g,function(te,ve){return null!=Ie&&ve in Ie?Ie[ve]:te})),U}function ft(U,Ie,te="-",ve,Et){let Gt="";(U<0||Et&&U<=0)&&(Et?U=1-U:(U=-U,Gt=te));let Vn=String(U);for(;Vn.length0||rr>-te)&&(rr+=te),U===be.Hours)0===rr&&-12===te&&(rr=12);else if(U===be.FractionalSeconds)return function mt(U,Ie){return ft(U,3).substring(0,Ie)}(rr,Ie);const ci=Ze(Vn,at.MinusSign);return ft(rr,Ie,ci,ve,Et)}}function cn(U,Ie,te=st.Format,ve=!1){return function(Et,Gt){return function hn(U,Ie,te,ve,Et,Gt){switch(te){case He.Months:return function wn(U,Ie,te){const ve=(0,i.H5H)(U),Gt=Ht([ve[i.KH2.MonthsFormat],ve[i.KH2.MonthsStandalone]],Ie);return Ht(Gt,te)}(Ie,Et,ve)[U.getMonth()];case He.Days:return function Wn(U,Ie,te){const ve=(0,i.H5H)(U),Gt=Ht([ve[i.KH2.DaysFormat],ve[i.KH2.DaysStandalone]],Ie);return Ht(Gt,te)}(Ie,Et,ve)[U.getDay()];case He.DayPeriods:const Vn=U.getHours(),rr=U.getMinutes();if(Gt){const ki=function Wt(U){const Ie=(0,i.H5H)(U);return Tn(Ie),(Ie[i.KH2.ExtraData][2]||[]).map(ve=>"string"==typeof ve?en(ve):[en(ve[0]),en(ve[1])])}(Ie),Di=function Zt(U,Ie,te){const ve=(0,i.H5H)(U);Tn(ve);const Gt=Ht([ve[i.KH2.ExtraData][0],ve[i.KH2.ExtraData][1]],Ie)||[];return Ht(Gt,te)||[]}(Ie,Et,ve),Nr=ki.findIndex(li=>{if(Array.isArray(li)){const[ii,wi]=li,bs=Vn>=ii.hours&&rr>=ii.minutes,Lo=Vn0?Math.floor(Et/60):Math.ceil(Et/60);switch(U){case Te.Short:return(Et>=0?"+":"")+ft(Vn,2,Gt)+ft(Math.abs(Et%60),2,Gt);case Te.ShortGMT:return"GMT"+(Et>=0?"+":"")+ft(Vn,1,Gt);case Te.Long:return"GMT"+(Et>=0?"+":"")+ft(Vn,2,Gt)+":"+ft(Math.abs(Et%60),2,Gt);case Te.Extended:return 0===ve?"Z":(Et>=0?"+":"")+ft(Vn,2,Gt)+":"+ft(Math.abs(Et%60),2,Gt);default:throw new Error(`Unknown zone width "${U}"`)}}}const lr=0,Dn=4;function Mr(U){const Ie=U.getDay(),te=0===Ie?-3:Dn-Ie;return L(U.getFullYear(),U.getMonth(),U.getDate()+te)}function Vr(U,Ie=!1){return function(te,ve){let Et;if(Ie){const Gt=new Date(te.getFullYear(),te.getMonth(),1).getDay()-1,Vn=te.getDate();Et=1+Math.floor((Vn+Gt)/7)}else{const Gt=Mr(te),Vn=function Hr(U){const Ie=L(U,lr,1).getDay();return L(U,0,1+(Ie<=Dn?Dn:Dn+7)-Ie)}(Gt.getFullYear()),rr=Gt.getTime()-Vn.getTime();Et=1+Math.round(rr/6048e5)}return ft(Et,U,Ze(ve,at.MinusSign))}}function vt(U,Ie=!1){return function(te,ve){return ft(Mr(te).getFullYear(),U,Ze(ve,at.MinusSign),Ie)}}const Vt={};function Ge(U,Ie){U=U.replace(/:/g,"");const te=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(te)?Ie:te}function xn(U){return U instanceof Date&&!isNaN(U.valueOf())}let fo=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:function(ve){let Et=null;return ve?Et=new ve:(Gt=i.KVO(i.xe9),Et=new Fo(Gt)),Et;var Gt},providedIn:"root"})}return U})();let Fo=(()=>{class U extends fo{locale;constructor(te){super(),this.locale=te}getPluralCategory(te,ve){switch(Xt(ve||this.locale)(te)){case Be.Zero:return"zero";case Be.One:return"one";case Be.Two:return"two";case Be.Few:return"few";case Be.Many:return"many";default:return"other"}}static \u0275fac=function(ve){return new(ve||U)(i.KVO(i.xe9))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})();function ao(U,Ie){Ie=encodeURIComponent(Ie);for(const te of U.split(";")){const ve=te.indexOf("="),[Et,Gt]=-1==ve?[te,""]:[te.slice(0,ve),te.slice(ve+1)];if(Et.trim()===Ie)return decodeURIComponent(Gt)}return null}const po=/\s+/,Ii=[];let Io=(()=>{class U{_ngEl;_renderer;initialClasses=Ii;rawClass;stateMap=new Map;constructor(te,ve){this._ngEl=te,this._renderer=ve}set klass(te){this.initialClasses=null!=te?te.trim().split(po):Ii}set ngClass(te){this.rawClass="string"==typeof te?te.trim().split(po):te}ngDoCheck(){for(const ve of this.initialClasses)this._updateState(ve,!0);const te=this.rawClass;if(Array.isArray(te)||te instanceof Set)for(const ve of te)this._updateState(ve,!0);else if(null!=te)for(const ve of Object.keys(te))this._updateState(ve,!!te[ve]);this._applyStateDiff()}_updateState(te,ve){const Et=this.stateMap.get(te);void 0!==Et?(Et.enabled!==ve&&(Et.changed=!0,Et.enabled=ve),Et.touched=!0):this.stateMap.set(te,{enabled:ve,changed:!0,touched:!0})}_applyStateDiff(){for(const te of this.stateMap){const ve=te[0],Et=te[1];Et.changed?(this._toggleClass(ve,Et.enabled),Et.changed=!1):Et.touched||(Et.enabled&&this._toggleClass(ve,!1),this.stateMap.delete(ve)),Et.touched=!1}}_toggleClass(te,ve){(te=te.trim()).length>0&&te.split(po).forEach(Et=>{ve?this._renderer.addClass(this._ngEl.nativeElement,Et):this._renderer.removeClass(this._ngEl.nativeElement,Et)})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return U})();class dt{$implicit;ngForOf;index;count;constructor(Ie,te,ve,Et){this.$implicit=Ie,this.ngForOf=te,this.index=ve,this.count=Et}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 me=(()=>{class U{_viewContainer;_template;_differs;set ngForOf(te){this._ngForOf=te,this._ngForOfDirty=!0}set ngForTrackBy(te){this._trackByFn=te}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(te,ve,Et){this._viewContainer=te,this._template=ve,this._differs=Et}set ngForTemplate(te){te&&(this._template=te)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const te=this._ngForOf;!this._differ&&te&&(this._differ=this._differs.find(te).create(this.ngForTrackBy))}if(this._differ){const te=this._differ.diff(this._ngForOf);te&&this._applyChanges(te)}}_applyChanges(te){const ve=this._viewContainer;te.forEachOperation((Et,Gt,Vn)=>{if(null==Et.previousIndex)ve.createEmbeddedView(this._template,new dt(Et.item,this._ngForOf,-1,-1),null===Vn?void 0:Vn);else if(null==Vn)ve.remove(null===Gt?void 0:Gt);else if(null!==Gt){const rr=ve.get(Gt);ve.move(rr,Vn),Ye(rr,Et)}});for(let Et=0,Gt=ve.length;Et{Ye(ve.get(Et.currentIndex),Et)})}static ngTemplateContextGuard(te,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return U})();function Ye(U,Ie){U.context.$implicit=Ie.item}let gt=(()=>{class U{_viewContainer;_context=new jt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(te,ve){this._viewContainer=te,this._thenTemplateRef=ve}set ngIf(te){this._context.$implicit=this._context.ngIf=te,this._updateView()}set ngIfThen(te){kt("ngIfThen",te),this._thenTemplateRef=te,this._thenViewRef=null,this._updateView()}set ngIfElse(te){kt("ngIfElse",te),this._elseTemplateRef=te,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(te,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return U})();class jt{$implicit=null;ngIf=null}function kt(U,Ie){if(Ie&&!Ie.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,i.Tbb)(Ie)}'.`)}let Cr=(()=>{class U{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(te,ve,Et){this._ngEl=te,this._differs=ve,this._renderer=Et}set ngStyle(te){this._ngStyle=te,!this._differ&&te&&(this._differ=this._differs.find(te).create())}ngDoCheck(){if(this._differ){const te=this._differ.diff(this._ngStyle);te&&this._applyChanges(te)}}_setStyle(te,ve){const[Et,Gt]=te.split("."),Vn=-1===Et.indexOf("-")?void 0:i.czy.DashCase;null!=ve?this._renderer.setStyle(this._ngEl.nativeElement,Et,Gt?`${ve}${Gt}`:ve,Vn):this._renderer.removeStyle(this._ngEl.nativeElement,Et,Vn)}_applyChanges(te){te.forEachRemovedItem(ve=>this._setStyle(ve.key,null)),te.forEachAddedItem(ve=>this._setStyle(ve.key,ve.currentValue)),te.forEachChangedItem(ve=>this._setStyle(ve.key,ve.currentValue))}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return U})(),gi=(()=>{class U{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(te){this._viewContainerRef=te}ngOnChanges(te){if(this._shouldRecreateView(te)){const ve=this._viewContainerRef;if(this._viewRef&&ve.remove(ve.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Et=this._createContextForwardProxy();this._viewRef=ve.createEmbeddedView(this.ngTemplateOutlet,Et,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(te){return!!te.ngTemplateOutlet||!!te.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(te,ve,Et)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ve,Et),get:(te,ve,Et)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ve,Et)}})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return U})();function Mi(U,Ie){return new i.wOt(2100,!1)}class Rr{createSubscription(Ie,te){return(0,i.O8t)(()=>Ie.subscribe({next:te,error:ve=>{throw ve}}))}dispose(Ie){(0,i.O8t)(()=>Ie.unsubscribe())}}class Qr{createSubscription(Ie,te){return Ie.then(te,ve=>{throw ve})}dispose(Ie){}}const Pr=new Qr,Do=new Rr;let es=(()=>{class U{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(te){this._ref=te}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(te){if(!this._obj){if(te)try{this.markForCheckOnValueUpdate=!1,this._subscribe(te)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return te!==this._obj?(this._dispose(),this.transform(te)):this._latestValue}_subscribe(te){this._obj=te,this._strategy=this._selectStrategy(te),this._subscription=this._strategy.createSubscription(te,ve=>this._updateLatestValue(te,ve))}_selectStrategy(te){if((0,i.jNT)(te))return Pr;if((0,i.zjR)(te))return Do;throw Mi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(te,ve){te===this._obj&&(this._latestValue=ve,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:U,pure:!1})}return U})();const oa=/(?:[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 Li=(()=>{class U{transform(te){if(null==te)return null;if("string"!=typeof te)throw Mi();return te.replace(oa,ve=>ve[0].toUpperCase()+ve.slice(1).toLowerCase())}static \u0275fac=function(ve){return new(ve||U)};static \u0275pipe=i.EJ8({name:"titlecase",type:U,pure:!0})}return U})();const Ks=new i.nKC(""),Oo=new i.nKC("");let Cs=(()=>{class U{locale;defaultTimezone;defaultOptions;constructor(te,ve,Et){this.locale=te,this.defaultTimezone=ve,this.defaultOptions=Et}transform(te,ve,Et,Gt){if(null==te||""===te||te!=te)return null;try{return z(te,ve??this.defaultOptions?.dateFormat??"mediumDate",Gt||this.locale,Et??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Vn){throw Mi()}}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.xe9,16),i.rXU(Ks,24),i.rXU(Oo,24))};static \u0275pipe=i.EJ8({name:"date",type:U,pure:!0})}return U})();const No=/#/g;let hs=(()=>{class U{_localization;constructor(te){this._localization=te}transform(te,ve,Et){if(null==te)return"";if("object"!=typeof ve||null===ve)throw Mi();return ve[function Jo(U,Ie,te,ve){let Et=`=${U}`;if(Ie.indexOf(Et)>-1||(Et=te.getPluralCategory(U,ve),Ie.indexOf(Et)>-1))return Et;if(Ie.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${U}"`)}(te,Object.keys(ve),this._localization,Et)].replace(No,te.toString())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(fo,16))};static \u0275pipe=i.EJ8({name:"i18nPlural",type:U,pure:!0})}return U})(),Ao=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275mod=i.$C({type:U});static \u0275inj=i.G2t({})}return U})();const ur="browser",As="server";function Gs(U){return U===ur}function _s(U){return U===As}let ls=(()=>{class U{static \u0275prov=(0,i.jDH)({token:U,providedIn:"root",factory:()=>Gs((0,i.WQX)(i.Agw))?new Vi((0,i.WQX)(S),window):new la})}return U})();class Vi{document;window;offset=()=>[0,0];constructor(Ie,te){this.document=Ie,this.window=te}setOffset(Ie){this.offset=Array.isArray(Ie)?()=>Ie:Ie}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Ie){this.window.scrollTo(Ie[0],Ie[1])}scrollToAnchor(Ie){const te=function sl(U,Ie){const te=U.getElementById(Ie)||U.getElementsByName(Ie)[0];if(te)return te;if("function"==typeof U.createTreeWalker&&U.body&&"function"==typeof U.body.attachShadow){const ve=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let Et=ve.currentNode;for(;Et;){const Gt=Et.shadowRoot;if(Gt){const Vn=Gt.getElementById(Ie)||Gt.querySelector(`[name="${Ie}"]`);if(Vn)return Vn}Et=ve.nextNode()}}return null}(this.document,Ie);te&&(this.scrollToElement(te),te.focus())}setHistoryScrollRestoration(Ie){this.window.history.scrollRestoration=Ie}scrollToElement(Ie){const te=Ie.getBoundingClientRect(),ve=te.left+this.window.pageXOffset,Et=te.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(ve-Gt[0],Et-Gt[1])}}class la{setOffset(Ie){}getScrollPosition(){return[0,0]}scrollToPosition(Ie){}scrollToAnchor(Ie){}setHistoryScrollRestoration(Ie){}}class Ss{}},7691:(o,s,n)=>{"use strict";n.d(s,{$R:()=>je,Nl:()=>we,Qq:()=>Ft,b$:()=>Dt,cS:()=>Wn,yz:()=>wn});var i=n(3014),a=n(3107),c=n(3016),y=n(1698),w=n(1787),C=n(1459),T=n(1483),S=n(7947),M=n(4447),k=n(2867),R=n(4460);class X{}class Z{}class ne{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(xt){xt?"string"==typeof xt?this.lazyInit=()=>{this.headers=new Map,xt.split("\n").forEach(dt=>{const me=dt.indexOf(":");if(me>0){const Ye=dt.slice(0,me),Re=dt.slice(me+1).trim();this.addHeaderEntry(Ye,Re)}})}:typeof Headers<"u"&&xt instanceof Headers?(this.headers=new Map,xt.forEach((dt,me)=>{this.addHeaderEntry(me,dt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(xt).forEach(([dt,me])=>{this.setHeaderEntries(dt,me)})}:this.headers=new Map}has(xt){return this.init(),this.headers.has(xt.toLowerCase())}get(xt){this.init();const dt=this.headers.get(xt.toLowerCase());return dt&&dt.length>0?dt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(xt){return this.init(),this.headers.get(xt.toLowerCase())||null}append(xt,dt){return this.clone({name:xt,value:dt,op:"a"})}set(xt,dt){return this.clone({name:xt,value:dt,op:"s"})}delete(xt,dt){return this.clone({name:xt,value:dt,op:"d"})}maybeSetNormalizedName(xt,dt){this.normalizedNames.has(dt)||this.normalizedNames.set(dt,xt)}init(){this.lazyInit&&(this.lazyInit instanceof ne?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(xt=>this.applyUpdate(xt)),this.lazyUpdate=null))}copyFrom(xt){xt.init(),Array.from(xt.headers.keys()).forEach(dt=>{this.headers.set(dt,xt.headers.get(dt)),this.normalizedNames.set(dt,xt.normalizedNames.get(dt))})}clone(xt){const dt=new ne;return dt.lazyInit=this.lazyInit&&this.lazyInit instanceof ne?this.lazyInit:this,dt.lazyUpdate=(this.lazyUpdate||[]).concat([xt]),dt}applyUpdate(xt){const dt=xt.name.toLowerCase();switch(xt.op){case"a":case"s":let me=xt.value;if("string"==typeof me&&(me=[me]),0===me.length)return;this.maybeSetNormalizedName(xt.name,dt);const Ye=("a"===xt.op?this.headers.get(dt):void 0)||[];Ye.push(...me),this.headers.set(dt,Ye);break;case"d":const Re=xt.value;if(Re){let gt=this.headers.get(dt);if(!gt)return;gt=gt.filter(jt=>-1===Re.indexOf(jt)),0===gt.length?(this.headers.delete(dt),this.normalizedNames.delete(dt)):this.headers.set(dt,gt)}else this.headers.delete(dt),this.normalizedNames.delete(dt)}}addHeaderEntry(xt,dt){const me=xt.toLowerCase();this.maybeSetNormalizedName(xt,me),this.headers.has(me)?this.headers.get(me).push(dt):this.headers.set(me,[dt])}setHeaderEntries(xt,dt){const me=(Array.isArray(dt)?dt:[dt]).map(Re=>Re.toString()),Ye=xt.toLowerCase();this.headers.set(Ye,me),this.maybeSetNormalizedName(xt,Ye)}forEach(xt){this.init(),Array.from(this.normalizedNames.keys()).forEach(dt=>xt(this.normalizedNames.get(dt),this.headers.get(dt)))}}class pe{encodeKey(xt){return Le(xt)}encodeValue(xt){return Le(xt)}decodeKey(xt){return decodeURIComponent(xt)}decodeValue(xt){return decodeURIComponent(xt)}}const De=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Le(et){return encodeURIComponent(et).replace(De,(xt,dt)=>Ee[dt]??xt)}function Ae(et){return`${et}`}class we{map;encoder;updates=null;cloneFrom=null;constructor(xt={}){if(this.encoder=xt.encoder||new pe,xt.fromString){if(xt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(et,xt){const dt=new Map;return et.length>0&&et.replace(/^\?/,"").split("&").forEach(Ye=>{const Re=Ye.indexOf("="),[gt,jt]=-1==Re?[xt.decodeKey(Ye),""]:[xt.decodeKey(Ye.slice(0,Re)),xt.decodeValue(Ye.slice(Re+1))],kt=dt.get(gt)||[];kt.push(jt),dt.set(gt,kt)}),dt}(xt.fromString,this.encoder)}else xt.fromObject?(this.map=new Map,Object.keys(xt.fromObject).forEach(dt=>{const me=xt.fromObject[dt],Ye=Array.isArray(me)?me.map(Ae):[Ae(me)];this.map.set(dt,Ye)})):this.map=null}has(xt){return this.init(),this.map.has(xt)}get(xt){this.init();const dt=this.map.get(xt);return dt?dt[0]:null}getAll(xt){return this.init(),this.map.get(xt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(xt,dt){return this.clone({param:xt,value:dt,op:"a"})}appendAll(xt){const dt=[];return Object.keys(xt).forEach(me=>{const Ye=xt[me];Array.isArray(Ye)?Ye.forEach(Re=>{dt.push({param:me,value:Re,op:"a"})}):dt.push({param:me,value:Ye,op:"a"})}),this.clone(dt)}set(xt,dt){return this.clone({param:xt,value:dt,op:"s"})}delete(xt,dt){return this.clone({param:xt,value:dt,op:"d"})}toString(){return this.init(),this.keys().map(xt=>{const dt=this.encoder.encodeKey(xt);return this.map.get(xt).map(me=>dt+"="+this.encoder.encodeValue(me)).join("&")}).filter(xt=>""!==xt).join("&")}clone(xt){const dt=new we({encoder:this.encoder});return dt.cloneFrom=this.cloneFrom||this,dt.updates=(this.updates||[]).concat(xt),dt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(xt=>this.map.set(xt,this.cloneFrom.map.get(xt))),this.updates.forEach(xt=>{switch(xt.op){case"a":case"s":const dt=("a"===xt.op?this.map.get(xt.param):void 0)||[];dt.push(Ae(xt.value)),this.map.set(xt.param,dt);break;case"d":if(void 0===xt.value){this.map.delete(xt.param);break}{let me=this.map.get(xt.param)||[];const Ye=me.indexOf(Ae(xt.value));-1!==Ye&&me.splice(Ye,1),me.length>0?this.map.set(xt.param,me):this.map.delete(xt.param)}}}),this.cloneFrom=this.updates=null)}}class ae{map=new Map;set(xt,dt){return this.map.set(xt,dt),this}get(xt){return this.map.has(xt)||this.map.set(xt,xt.defaultValue()),this.map.get(xt)}delete(xt){return this.map.delete(xt),this}has(xt){return this.map.has(xt)}keys(){return this.map.keys()}}function Be(et){return typeof ArrayBuffer<"u"&&et instanceof ArrayBuffer}function st(et){return typeof Blob<"u"&&et instanceof Blob}function lt(et){return typeof FormData<"u"&&et instanceof FormData}class at{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(xt,dt,me,Ye){let Re;if(this.url=dt,this.method=xt.toUpperCase(),function xe(et){switch(et){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ye?(this.body=void 0!==me?me:null,Re=Ye):Re=me,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params),this.transferCache=Re.transferCache),this.headers??=new ne,this.context??=new ae,this.params){const gt=this.params.toString();if(0===gt.length)this.urlWithParams=dt;else{const jt=dt.indexOf("?");this.urlWithParams=dt+(-1===jt?"?":jtFn.set(zn,xt.setHeaders[zn]),pn)),xt.setParams&&(Sn=Object.keys(xt.setParams).reduce((Fn,zn)=>Fn.set(zn,xt.setParams[zn]),Sn)),new at(dt,me,gt,{params:Sn,headers:pn,context:An,reportProgress:kt,responseType:Ye,withCredentials:jt,transferCache:Re})}}var sn=function(et){return et[et.Sent=0]="Sent",et[et.UploadProgress=1]="UploadProgress",et[et.ResponseHeader=2]="ResponseHeader",et[et.DownloadProgress=3]="DownloadProgress",et[et.Response=4]="Response",et[et.User=5]="User",et}(sn||{});class fn{headers;status;statusText;url;ok;type;constructor(xt,dt=200,me="OK"){this.headers=xt.headers||new ne,this.status=void 0!==xt.status?xt.status:dt,this.statusText=xt.statusText||me,this.url=xt.url||null,this.ok=this.status>=200&&this.status<300}}class En extends fn{constructor(xt={}){super(xt)}type=sn.ResponseHeader;clone(xt={}){return new En({headers:xt.headers||this.headers,status:void 0!==xt.status?xt.status:this.status,statusText:xt.statusText||this.statusText,url:xt.url||this.url||void 0})}}class Wn extends fn{body;constructor(xt={}){super(xt),this.body=void 0!==xt.body?xt.body:null}type=sn.Response;clone(xt={}){return new Wn({body:void 0!==xt.body?xt.body:this.body,headers:xt.headers||this.headers,status:void 0!==xt.status?xt.status:this.status,statusText:xt.statusText||this.statusText,url:xt.url||this.url||void 0})}}class wn extends fn{name="HttpErrorResponse";message;error;ok=!1;constructor(xt){super(xt,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${xt.url||"(unknown url)"}`:`Http failure response for ${xt.url||"(unknown url)"}: ${xt.status} ${xt.statusText}`,this.error=xt.error||null}}function Ue(et,xt){return{body:xt,headers:et.headers,context:et.context,observe:et.observe,params:et.params,reportProgress:et.reportProgress,responseType:et.responseType,withCredentials:et.withCredentials,transferCache:et.transferCache}}let Ft=(()=>{class et{handler;constructor(dt){this.handler=dt}request(dt,me,Ye={}){let Re;if(dt instanceof at)Re=dt;else{let kt,pn;kt=Ye.headers instanceof ne?Ye.headers:new ne(Ye.headers),Ye.params&&(pn=Ye.params instanceof we?Ye.params:new we({fromObject:Ye.params})),Re=new at(dt,me,void 0!==Ye.body?Ye.body:null,{headers:kt,context:Ye.context,params:pn,reportProgress:Ye.reportProgress,responseType:Ye.responseType||"json",withCredentials:Ye.withCredentials,transferCache:Ye.transferCache})}const gt=(0,c.of)(Re).pipe((0,C.H)(kt=>this.handler.handle(kt)));if(dt instanceof at||"events"===Ye.observe)return gt;const jt=gt.pipe((0,T.p)(kt=>kt instanceof Wn));switch(Ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return jt.pipe((0,S.T)(kt=>kt.body))}case"response":return jt;default:throw new Error(`Unreachable: unhandled observe type ${Ye.observe}}`)}}delete(dt,me={}){return this.request("DELETE",dt,me)}get(dt,me={}){return this.request("GET",dt,me)}head(dt,me={}){return this.request("HEAD",dt,me)}jsonp(dt,me){return this.request("JSONP",dt,{params:(new we).append(me,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(dt,me={}){return this.request("OPTIONS",dt,me)}patch(dt,me,Ye={}){return this.request("PATCH",dt,Ue(Ye,me))}post(dt,me,Ye={}){return this.request("POST",dt,Ue(Ye,me))}put(dt,me,Ye={}){return this.request("PUT",dt,Ue(Ye,me))}static \u0275fac=function(me){return new(me||et)(a.KVO(X))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Ke=/^\)\]\}',?\n/;function it(et){if(et.url)return et.url;const xt="X-Request-URL".toLocaleLowerCase();return et.headers.get(xt)}let Ot=(()=>{class et{fetchImpl=(0,a.WQX)(Qt,{optional:!0})?.fetch??((...dt)=>globalThis.fetch(...dt));ngZone=(0,a.WQX)(a.SKi);handle(dt){return new y.c(me=>{const Ye=new AbortController;return this.doRequest(dt,Ye.signal,me).then(Me,Re=>me.error(new wn({error:Re}))),()=>Ye.abort()})}doRequest(dt,me,Ye){var Re=this;return(0,i.A)(function*(){const gt=Re.createRequestInit(dt);let jt;try{const tr=Re.ngZone.runOutsideAngular(()=>Re.fetchImpl(dt.urlWithParams,{signal:me,...gt}));(function ht(et){et.then(Me,Me)})(tr),Ye.next({type:sn.Sent}),jt=yield tr}catch(tr){return void Ye.error(new wn({error:tr,status:tr.status??0,statusText:tr.statusText,url:dt.urlWithParams,headers:tr.headers}))}const kt=new ne(jt.headers),pn=jt.statusText,Sn=it(jt)??dt.urlWithParams;let An=jt.status,Fn=null;if(dt.reportProgress&&Ye.next(new En({headers:kt,status:An,statusText:pn,url:Sn})),jt.body){const tr=jt.headers.get("content-length"),cr=[],Er=jt.body.getReader();let gi,ni,Cr=0;const Mi=typeof Zone<"u"&&Zone.current;yield Re.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:Qr,value:Pr}=yield Er.read();if(Qr)break;if(cr.push(Pr),Cr+=Pr.length,dt.reportProgress){ni="text"===dt.responseType?(ni??"")+(gi??=new TextDecoder).decode(Pr,{stream:!0}):void 0;const Do=()=>Ye.next({type:sn.DownloadProgress,total:tr?+tr:void 0,loaded:Cr,partialText:ni});Mi?Mi.run(Do):Do()}}}));const Rr=Re.concatChunks(cr,Cr);try{const Qr=jt.headers.get("Content-Type")??"";Fn=Re.parseBody(dt,Rr,Qr)}catch(Qr){return void Ye.error(new wn({error:Qr,headers:new ne(jt.headers),status:jt.status,statusText:jt.statusText,url:it(jt)??dt.urlWithParams}))}}0===An&&(An=Fn?200:0),An>=200&&An<300?(Ye.next(new Wn({body:Fn,headers:kt,status:An,statusText:pn,url:Sn})),Ye.complete()):Ye.error(new wn({error:Fn,headers:kt,status:An,statusText:pn,url:Sn}))})()}parseBody(dt,me,Ye){switch(dt.responseType){case"json":const Re=(new TextDecoder).decode(me).replace(Ke,"");return""===Re?null:JSON.parse(Re);case"text":return(new TextDecoder).decode(me);case"blob":return new Blob([me],{type:Ye});case"arraybuffer":return me.buffer}}createRequestInit(dt){const me={},Ye=dt.withCredentials?"include":void 0;if(dt.headers.forEach((Re,gt)=>me[Re]=gt.join(",")),dt.headers.has("Accept")||(me.Accept="application/json, text/plain, */*"),!dt.headers.has("Content-Type")){const Re=dt.detectContentTypeHeader();null!==Re&&(me["Content-Type"]=Re)}return{body:dt.serializeBody(),method:dt.method,headers:me,credentials:Ye}}concatChunks(dt,me){const Ye=new Uint8Array(me);let Re=0;for(const gt of dt)Ye.set(gt,Re),Re+=gt.length;return Ye}static \u0275fac=function(me){return new(me||et)};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();class Qt{}function Me(){}function Xt(et,xt){return xt(et)}const rt=new a.nKC(""),Ht=new a.nKC(""),en=new a.nKC("",{providedIn:"root",factory:()=>!0});let tt=(()=>{class et extends X{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(en);constructor(dt,me){super(),this.backend=dt,this.injector=me}handle(dt){if(null===this.chain){const me=Array.from(new Set([...this.injector.get(rt),...this.injector.get(Ht,[])]));this.chain=me.reduceRight((Ye,Re)=>function Wt(et,xt,dt){return(me,Ye)=>(0,a.N4e)(dt,()=>xt(me,Re=>et(Re,Ye)))}(Ye,Re,this.injector),Xt)}if(this.contributeToStability){const me=this.pendingTasks.add();return this.chain(dt,Ye=>this.backend.handle(Ye)).pipe((0,M.j)(()=>this.pendingTasks.remove(me)))}return this.chain(dt,me=>this.backend.handle(me))}static \u0275fac=function(me){return new(me||et)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Tt=/^\)\]\}',?\n/;let cn=(()=>{class et{xhrFactory;constructor(dt){this.xhrFactory=dt}handle(dt){if("JSONP"===dt.method)throw new a.wOt(-2800,!1);const me=this.xhrFactory;return(me.\u0275loadImpl?(0,w.H)(me.\u0275loadImpl()):(0,c.of)(null)).pipe((0,k.n)(()=>new y.c(Re=>{const gt=me.build();if(gt.open(dt.method,dt.urlWithParams),dt.withCredentials&&(gt.withCredentials=!0),dt.headers.forEach((cr,Er)=>gt.setRequestHeader(cr,Er.join(","))),dt.headers.has("Accept")||gt.setRequestHeader("Accept","application/json, text/plain, */*"),!dt.headers.has("Content-Type")){const cr=dt.detectContentTypeHeader();null!==cr&>.setRequestHeader("Content-Type",cr)}if(dt.responseType){const cr=dt.responseType.toLowerCase();gt.responseType="json"!==cr?cr:"text"}const jt=dt.serializeBody();let kt=null;const pn=()=>{if(null!==kt)return kt;const cr=gt.statusText||"OK",Er=new ne(gt.getAllResponseHeaders()),Cr=function On(et){return"responseURL"in et&&et.responseURL?et.responseURL:/^X-Request-URL:/m.test(et.getAllResponseHeaders())?et.getResponseHeader("X-Request-URL"):null}(gt)||dt.url;return kt=new En({headers:Er,status:gt.status,statusText:cr,url:Cr}),kt},Sn=()=>{let{headers:cr,status:Er,statusText:Cr,url:gi}=pn(),ni=null;204!==Er&&(ni=typeof gt.response>"u"?gt.responseText:gt.response),0===Er&&(Er=ni?200:0);let Mi=Er>=200&&Er<300;if("json"===dt.responseType&&"string"==typeof ni){const Rr=ni;ni=ni.replace(Tt,"");try{ni=""!==ni?JSON.parse(ni):null}catch(Qr){ni=Rr,Mi&&(Mi=!1,ni={error:Qr,text:ni})}}Mi?(Re.next(new Wn({body:ni,headers:cr,status:Er,statusText:Cr,url:gi||void 0})),Re.complete()):Re.error(new wn({error:ni,headers:cr,status:Er,statusText:Cr,url:gi||void 0}))},An=cr=>{const{url:Er}=pn(),Cr=new wn({error:cr,status:gt.status||0,statusText:gt.statusText||"Unknown Error",url:Er||void 0});Re.error(Cr)};let Fn=!1;const zn=cr=>{Fn||(Re.next(pn()),Fn=!0);let Er={type:sn.DownloadProgress,loaded:cr.loaded};cr.lengthComputable&&(Er.total=cr.total),"text"===dt.responseType&>.responseText&&(Er.partialText=gt.responseText),Re.next(Er)},tr=cr=>{let Er={type:sn.UploadProgress,loaded:cr.loaded};cr.lengthComputable&&(Er.total=cr.total),Re.next(Er)};return gt.addEventListener("load",Sn),gt.addEventListener("error",An),gt.addEventListener("timeout",An),gt.addEventListener("abort",An),dt.reportProgress&&(gt.addEventListener("progress",zn),null!==jt&>.upload&>.upload.addEventListener("progress",tr)),gt.send(jt),Re.next({type:sn.Sent}),()=>{gt.removeEventListener("error",An),gt.removeEventListener("abort",An),gt.removeEventListener("load",Sn),gt.removeEventListener("timeout",An),dt.reportProgress&&(gt.removeEventListener("progress",zn),null!==jt&>.upload&>.upload.removeEventListener("progress",tr)),gt.readyState!==gt.DONE&>.abort()}})))}static \u0275fac=function(me){return new(me||et)(a.KVO(R.N0))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const hn=new a.nKC(""),lr=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Hr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Mr{}let Vr=(()=>{class et{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(dt,me,Ye){this.doc=dt,this.platform=me,this.cookieName=Ye}getToken(){if("server"===this.platform)return null;const dt=this.doc.cookie||"";return dt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,R._b)(dt,this.cookieName),this.lastCookieString=dt),this.lastToken}static \u0275fac=function(me){return new(me||et)(a.KVO(R.qQ),a.KVO(a.Agw),a.KVO(lr))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();function vt(et,xt){const dt=et.url.toLowerCase();if(!(0,a.WQX)(hn)||"GET"===et.method||"HEAD"===et.method||dt.startsWith("http://")||dt.startsWith("https://"))return xt(et);const me=(0,a.WQX)(Mr).getToken(),Ye=(0,a.WQX)(Hr);return null!=me&&!et.headers.has(Ye)&&(et=et.clone({headers:et.headers.set(Ye,me)})),xt(et)}var Oe=function(et){return et[et.Interceptors=0]="Interceptors",et[et.LegacyInterceptors=1]="LegacyInterceptors",et[et.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",et[et.NoXsrfProtection=3]="NoXsrfProtection",et[et.JsonpSupport=4]="JsonpSupport",et[et.RequestsMadeViaParent=5]="RequestsMadeViaParent",et[et.Fetch=6]="Fetch",et}(Oe||{});function je(...et){const xt=[Ft,cn,tt,{provide:X,useExisting:tt},{provide:Z,useFactory:()=>(0,a.WQX)(Ot,{optional:!0})??(0,a.WQX)(cn)},{provide:rt,useValue:vt,multi:!0},{provide:hn,useValue:!0},{provide:Mr,useClass:Vr}];for(const dt of et)xt.push(...dt.\u0275providers);return(0,a.EmA)(xt)}function Dt(et){return function Ge(et,xt){return{\u0275kind:et,\u0275providers:xt}}(Oe.Interceptors,et.map(xt=>({provide:rt,useValue:xt,multi:!0})))}},3107:(o,s,n)=>{"use strict";function a(e,t){return Object.is(e,t)}n.d(s,{bc$:()=>A,iLQ:()=>_g,sZ2:()=>Cu,hnV:()=>jb,wjH:()=>Wi,o8S:()=>dc,BIS:()=>j,gRc:()=>x2,Ql9:()=>FI,Ocv:()=>WI,Z63:()=>qn,aKT:()=>Os,uvJ:()=>cs,zcH:()=>xc,bkB:()=>ic,ES_:()=>um,$GK:()=>bi,nKC:()=>dt,zZn:()=>Qo,_q3:()=>_w,MKu:()=>vw,xe9:()=>dw,Co$:()=>l1,Vns:()=>vf,SKi:()=>os,Xx1:()=>la,Agw:()=>b,PLl:()=>rd,rOR:()=>Uf,sFG:()=>jD,_9s:()=>kb,czy:()=>_p,WPN:()=>ud,kdw:()=>Ts,C4Q:()=>cg,NYb:()=>LA,giA:()=>k1,RxE:()=>h2,c1b:()=>Cv,gXe:()=>Sc,mal:()=>Ga,Tzd:()=>ya,L39:()=>GO,EWP:()=>xw,sbv:()=>$S,a0P:()=>vR,Ol2:()=>Lb,w6W:()=>tA,QZP:()=>Dw,Rfq:()=>Oe,oKB:()=>Ba,WQX:()=>ur,hFB:()=>Hg,naY:()=>JI,Hps:()=>Fb,QuC:()=>Ro,EmA:()=>jo,Udg:()=>XO,HJs:()=>yR,N4e:()=>$s,vPA:()=>Op,O8t:()=>Jp,H3F:()=>E1,H8p:()=>vl,KH2:()=>Qp,TgB:()=>wc,wOt:()=>tt,WHO:()=>T1,e01:()=>M1,lNU:()=>Mn,h9k:()=>Bm,$MX:()=>dp,ZF7:()=>Xd,Kcf:()=>Fy,e5t:()=>jy,UyX:()=>Uy,cWb:()=>By,osQ:()=>$y,H5H:()=>j0,Zy3:()=>Kt,mq5:()=>Cx,JZv:()=>hn,TL3:()=>CO,LfX:()=>Fo,plB:()=>eh,jNT:()=>$b,zjR:()=>I1,ngT:()=>oi,hVU:()=>NA,TL$:()=>ym,Tbb:()=>Mr,rcV:()=>Kc,nM4:()=>SE,Vt3:()=>d0,GFd:()=>OE,OA$:()=>Wl,Jv_:()=>NC,R7$:()=>Dp,BMQ:()=>D0,HbH:()=>ox,ZvI:()=>hx,AVh:()=>O0,BUC:()=>fx,vxM:()=>_x,wni:()=>iC,C6U:()=>lC,VBU:()=>m1,FsC:()=>_1,jDH:()=>ai,G2t:()=>fo,$C:()=>Pb,EJ8:()=>v1,rXU:()=>Jd,nrm:()=>F0,eu8:()=>B0,bVm:()=>Fv,qex:()=>Pv,k0s:()=>Lv,j41:()=>Nv,RV6:()=>xx,xGo:()=>xh,Mr5:()=>U0,KVO:()=>_o,kS0:()=>zu,QTQ:()=>iv,bIt:()=>W0,lsd:()=>aC,joV:()=>Br,qSk:()=>Dr,XpG:()=>Gx,nI1:()=>GC,bMT:()=>XC,i5U:()=>YC,SdG:()=>Yx,NAR:()=>Xx,Y8G:()=>M0,FS9:()=>G0,lJ4:()=>PC,eq3:()=>FC,l_i:()=>BC,sMw:()=>UC,ziG:()=>$C,lV:()=>jC,NyB:()=>cC,mGM:()=>sC,sdS:()=>uC,Dyx:()=>bx,Z7z:()=>yx,Vm6:()=>vx,Njj:()=>du,eBV:()=>Ic,npT:()=>y_,f$h:()=>$m,B4B:()=>Yd,n$t:()=>b_,Aen:()=>Qc,xc7:()=>I0,Kam:()=>z0,zvX:()=>$0,DNE:()=>p0,C5r:()=>QC,EFF:()=>bC,JRh:()=>Q0,SpI:()=>Vv,DH7:()=>kC,mxI:()=>q0,R50:()=>Z0,GBs:()=>oC}),n(3014);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function T(e){const t=c;return c=e,t}const R={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 X(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;Be(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ae(e){Be(e);for(let t=0;t0}function Be(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function lt(e){return void 0!==e.producerNode}function bt(e){const t=Object.create(En);t.computation=e;const r=()=>{if(ne(t),X(t),t.value===fn)throw t.error;return t.value};return r[C]=t,r}const at=Symbol("UNSET"),sn=Symbol("COMPUTING"),fn=Symbol("ERRORED"),En={...R,value:at,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===at||e.value===sn,producerRecomputeValue(e){if(e.value===sn)throw new Error("Detected cycle in computations.");const t=e.value;e.value=sn;const r=Ee(e);let l;try{l=e.computation()}catch(p){l=fn,e.error=p}finally{Le(e,r)}t!==at&&t!==fn&&l!==fn&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let wn=function Wn(){throw new Error};function Je(){wn()}let ze=null;function Ze(e,t){pe()||Je(),e.equal(e.value,t)||(e.value=t,function Me(e){e.version++,function Z(){w++}(),_e(e),ze?.()}(e))}const Qt={...R,equal:a,value:void 0};const Xt=()=>{},Tn={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Xt};var Zt=n(1217),rt=n(8447),Ht=n(5710),en=n(7947);n(1703);const Mn="https://g.co/ng/security#xss";class tt extends Error{code;constructor(t,r){super(Kt(t,r)),this.code=t}}function Kt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const At=Symbol("InputSignalNode#UNSET"),Te={...Qt,transformFn:void 0,applyValueToInputSignal(e,t){Ze(e,t)}};function z(e,t){const r=Object.create(Te);function l(){if(X(r),r.value===At)throw new tt(-950,!1);return r.value}return r.value=e,r.transformFn=t?.transform,l[C]=r,l}function L(e){return{toString:e}.toString()}const Ne="__parameters__";function On(e,t,r){return L(()=>{const l=function Tt(e){return function(...r){if(e){const l=e(...r);for(const p in l)this[p]=l[p]}}}(t);function p(...g){if(this instanceof p)return l.apply(this,g),this;const x=new p(...g);return I.annotation=x,I;function I(B,ie,Se){const Ve=B.hasOwnProperty(Ne)?B[Ne]:Object.defineProperty(B,Ne,{value:[]})[Ne];for(;Ve.length<=Se;)Ve.push(null);return(Ve[Se]=Ve[Se]||[]).push(x),B}}return r&&(p.prototype=Object.create(r.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const hn=globalThis;function Dn(e){for(let t in e)if(e[t]===Dn)return t;throw Error("Could not find renamed property on target object.")}function Hr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function Mr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Mr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Vr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Vt=Dn({__forward_ref__:Dn});function Oe(e){return e.__forward_ref__=Oe,e.toString=function(){return Mr(this())},e}function Ge(e){return je(e)?e():e}function je(e){return"function"==typeof e&&e.hasOwnProperty(Vt)&&e.__forward_ref__===Oe}function ai(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fo(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jo(e){return ia(e,Ii)||ia(e,et)}function Fo(e){return null!==Jo(e)}function ia(e,t){return e.hasOwnProperty(t)?e[t]:null}function po(e){return e&&(e.hasOwnProperty(Io)||e.hasOwnProperty(xt))?e[Io]:null}const Ii=Dn({\u0275prov:Dn}),Io=Dn({\u0275inj:Dn}),et=Dn({ngInjectableDef:Dn}),xt=Dn({ngInjectorDef:Dn});class dt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,r){this._desc=t,this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=ai({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function zn(e){return e&&!!e.\u0275providers}const tr=Dn({\u0275cmp:Dn}),cr=Dn({\u0275dir:Dn}),Er=Dn({\u0275pipe:Dn}),Cr=Dn({\u0275mod:Dn}),gi=Dn({\u0275fac:Dn}),ni=Dn({__NG_ELEMENT_ID__:Dn}),Mi=Dn({__NG_ENV_ID__:Dn});function Rr(e){return"string"==typeof e?e:null==e?"":String(e)}function Li(e,t){throw new tt(-201,!1)}var bi=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}(bi||{});let sa;function Ks(){return sa}function Oo(e){const t=sa;return sa=e,t}function Cs(e,t,r){const l=Jo(e);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:r&bi.Optional?null:void 0!==t?t:void Li()}const Ko={},mo="__NG_DI_FLAG__",Go="ngTempTokenPath",Xr=/\n/gm,go="__source";let io;function Xo(e){const t=io;return io=e,t}function Ya(e,t=bi.Default){if(void 0===io)throw new tt(-203,!1);return null===io?Cs(e,void 0,t):io.get(e,t&bi.Optional?null:void 0,t)}function _o(e,t=bi.Default){return(Ks()||Ya)(Ge(e),t)}function ur(e,t=bi.Default){return _o(e,As(t))}function As(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gs(e){const t=[];for(let r=0;rArray.isArray(r)?ps(r,t):t(r))}function Da(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qe(e,t,r){let l=ot(e,t);return l>=0?e[1|l]=r:(l=~l,function Aa(e,t,r,l){let p=e.length;if(p==t)e.push(r,l);else if(1===p)e.push(l,e[0]),e[0]=r;else{for(p--,e.push(e[p-1],e[p]);p>t;)e[p]=e[p-2],p--;e[t]=r,e[t+1]=l}}(e,l,t,r)),l}function J(e,t){const r=ot(e,t);if(r>=0)return e[1|r]}function ot(e,t){return function jn(e,t,r){let l=0,p=e.length>>r;for(;p!==l;){const g=l+(p-l>>1),x=e[g<t?p=g:l=g+1}return~(p<{r.push(x)};return ps(t,x=>{const I=x;ce(I,g,[],l)&&(p||=[],p.push(I))}),void 0!==p&&ua(p,g),r}function ua(e,t){for(let r=0;r{t(g,l)})}}function ce(e,t,r,l){if(!(e=Ge(e)))return!1;let p=null,g=po(e);const x=!g&&zr(e);if(g||x){if(x&&!x.standalone)return!1;p=e}else{const B=e.ngModule;if(g=po(B),!g)return!1;p=B}const I=l.has(p);if(x){if(I)return!1;if(l.add(p),x.dependencies){const B="function"==typeof x.dependencies?x.dependencies():x.dependencies;for(const ie of B)ce(ie,t,r,l)}}else{if(!g)return!1;{if(null!=g.imports&&!I){let ie;l.add(p);try{ps(g.imports,Se=>{ce(Se,t,r,l)&&(ie||=[],ie.push(Se))})}finally{}void 0!==ie&&ua(ie,t)}if(!I){const ie=So(p)||(()=>new p);t({provide:p,useFactory:ie,deps:Gn},p),t({provide:zi,useValue:p,multi:!0},p),t({provide:qn,useValue:()=>_o(p),multi:!0},p)}const B=g.providers;if(null!=B&&!I){const ie=e;Q(B,Se=>{t(Se,ie)})}}}return p!==e&&void 0!==e.providers}function Q(e,t){for(let r of e)zn(r)&&(r=r.\u0275providers),Array.isArray(r)?Q(r,t):t(r)}const Fe=Dn({provide:String,useValue:Dn});function $t(e){return null!==e&&"object"==typeof e&&Fe in e}function ts(e){return"function"==typeof e}const vl=new dt(""),$a={},hc={};let al;function _i(){return void 0===al&&(al=new kr),al}class cs{}class vs extends cs{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,r,l,p){super(),this.parent=r,this.source=l,this.scopes=p,cl(t,x=>this.processProvider(x)),this.records.set(qr,yi(void 0,this)),p.has("environment")&&this.records.set(cs,yi(void 0,this));const g=this.records.get(vl);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(zi,Gn,bi.Self))}destroy(){ll(this),this._destroyed=!0;const t=T(null);try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of r)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return ll(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ll(this);const r=Xo(this),l=Oo(void 0);try{return t()}finally{Xo(r),Oo(l)}}get(t,r=Ko,l=bi.Default){if(ll(this),t.hasOwnProperty(Mi))return t[Mi](this);l=As(l);const g=Xo(this),x=Oo(void 0);try{if(!(l&bi.SkipSelf)){let B=this.records.get(t);if(void 0===B){const ie=function eu(e){return"function"==typeof e||"object"==typeof e&&e instanceof dt}(t)&&Jo(t);B=ie&&this.injectableDefInScope(ie)?yi(ja(t),$a):null,this.records.set(t,B)}if(null!=B)return this.hydrate(t,B)}return(l&bi.Self?_i():this.parent).get(t,r=l&bi.Optional&&r===Ko?null:r)}catch(I){if("NullInjectorError"===I.name){if((I[Go]=I[Go]||[]).unshift(Mr(t)),g)throw I;return function ls(e,t,r,l){const p=e[Go];throw t[go]&&p.unshift(t[go]),e.message=function Vi(e,t,r,l=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let p=Mr(t);if(Array.isArray(t))p=t.map(Mr).join(" -> ");else if("object"==typeof t){let g=[];for(let x in t)if(t.hasOwnProperty(x)){let I=t[x];g.push(x+":"+("string"==typeof I?JSON.stringify(I):Mr(I)))}p=`{${g.join(", ")}}`}return`${r}${l?"("+l+")":""}[${p}]: ${e.replace(Xr,"\n ")}`}("\n"+e.message,p,r,l),e.ngTokenPath=p,e[Go]=null,e}(I,t,"R3InjectorError",this.source)}throw I}finally{Oo(x),Xo(g)}}resolveInjectorInitializers(){const t=T(null),r=Xo(this),l=Oo(void 0);try{const g=this.get(qn,Gn,bi.Self);for(const x of g)x()}finally{Xo(r),Oo(l),T(t)}}toString(){const t=[],r=this.records;for(const l of r.keys())t.push(Mr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let r=ts(t=Ge(t))?t:Ge(t&&t.provide);const l=function Ru(e){return $t(e)?yi(void 0,e.useValue):yi(bl(e),$a)}(t);if(!ts(t)&&!0===t.multi){let p=this.records.get(r);p||(p=yi(void 0,$a,!0),p.factory=()=>Gs(p.multi),this.records.set(r,p)),r=t,p.multi.push(t)}this.records.set(r,l)}hydrate(t,r){const l=T(null);try{return r.value===$a&&(r.value=hc,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Jc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{T(l)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=Ge(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function ja(e){const t=Jo(e),r=null!==t?t.factory:So(e);if(null!==r)return r;if(e instanceof dt)throw new tt(204,!1);if(e instanceof Function)return function yl(e){if(e.length>0)throw new tt(204,!1);const r=function ao(e){return e&&(e[Ii]||e[et])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new tt(204,!1)}function bl(e,t,r){let l;if(ts(e)){const p=Ge(e);return So(p)||ja(p)}if($t(e))l=()=>Ge(e.useValue);else if(function Jr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...Gs(e.deps||[]));else if(function wr(e){return!(!e||!e.useExisting)}(e))l=()=>_o(Ge(e.useExisting));else{const p=Ge(e&&(e.useClass||e.provide));if(!function kl(e){return!!e.deps}(e))return So(p)||ja(p);l=()=>new p(...Gs(e.deps))}return l}function ll(e){if(e.destroyed)throw new tt(205,!1)}function yi(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function cl(e,t){for(const r of e)Array.isArray(r)?cl(r,t):r&&zn(r)?cl(r.\u0275providers,t):t(r)}function $s(e,t){e instanceof vs&&ll(e);const l=Xo(e),p=Oo(void 0);try{return t()}finally{Xo(l),Oo(p)}}function Il(){return void 0!==Ks()||null!=function fs(){return io}()}function Sa(e){if(!Il())throw new tt(-203,!1)}const oo=0,$n=1,Tr=2,Oi=3,ys=4,Qi=5,so=6,Bi=7,Ki=8,no=9,co=10,ri=11,Xs=12,Za=13,Uo=14,vo=15,Ci=16,Vs=17,uo=18,Ui=19,U=20,Ie=21,te=22,ve=23,Et=24,Gt=25,Vn=1,ci=7,Di=9,Nr=10;var li=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(li||{});function ii(e){return Array.isArray(e)&&"object"==typeof e[Vn]}function wi(e){return Array.isArray(e)&&!0===e[Vn]}function bs(e){return!!(4&e.flags)}function Lo(e){return e.componentOffset>-1}function ha(e){return!(1&~e.flags)}function Yo(e){return!!e.template}function Va(e){return!!(512&e[Tr])}class kc{previousValue;currentValue;firstChange;constructor(t,r,l){this.previousValue=t,this.currentValue=r,this.firstChange=l}isFirstChange(){return this.firstChange}}function Hs(e,t,r,l){null!==t?t.applyValueToInputSignal(t,l):e[r]=l}const Wl=(()=>{const e=()=>Ha;return e.ngInherit=!0,e})();function Ha(e){return e.type.prototype.ngOnChanges&&(e.setInput=zl),Fr}function Fr(){const e=hl(this),t=e?.current;if(t){const r=e.previous;if(r===Pn)e.previous=t;else for(let l in t)r[l]=t[l];e.current=null,this.ngOnChanges(t)}}function zl(e,t,r,l,p){const g=this.declaredInputs[l],x=hl(e)||function gd(e,t){return e[Gl]=t}(e,{previous:Pn,current:null}),I=x.current||(x.current={}),B=x.previous,ie=B[g];I[g]=new kc(ie&&ie.currentValue,r,B===Pn),Hs(e,t,p,r)}const Gl="__ngSimpleChanges__";function hl(e){return e[Gl]||null}const Wa=function(e,t,r){},ch="svg";function qi(e){for(;Array.isArray(e);)e=e[oo];return e}function mc(e,t){return qi(t[e])}function rs(e,t){return qi(t[e.index])}function G(e,t){return e.data[t]}function F(e,t){return e[t]}function K(e,t){const r=t[e];return ii(r)?r:r[oo]}function We(e){return!(128&~e[Tr])}function gn(e,t){return null==t?null:e[t]}function an(e){e[Vs]=0}function hr(e){1024&e[Tr]||(e[Tr]|=1024,We(e)&&Is(e))}function Ir(e){return!!(9216&e[Tr]||e[Et]?.dirty)}function Gi(e){e[co].changeDetectionScheduler?.notify(9),64&e[Tr]&&(e[Tr]|=1024),Ir(e)&&Is(e)}function Is(e){e[co].changeDetectionScheduler?.notify(0);let t=us(e);for(;null!==t&&!(8192&t[Tr])&&(t[Tr]|=8192,We(t));)t=us(t)}function is(e,t){if(!(256&~e[Tr]))throw new tt(911,!1);null===e[Ie]&&(e[Ie]=[]),e[Ie].push(t)}function us(e){const t=e[Oi];return wi(t)?t[Oi]:t}const Wr={lFrame:ir(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Fu=!1;function fh(){return Wr.bindingsEnabled}function gc(){return null!==Wr.skipHydrationRootTNode}function Cn(){return Wr.lFrame.lView}function pi(){return Wr.lFrame.tView}function Ic(e){return Wr.lFrame.contextLView=e,e[Ki]}function du(e){return Wr.lFrame.contextLView=null,e}function Si(){let e=Rl();for(;null!==e&&64===e.type;)e=e.parent;return e}function Rl(){return Wr.lFrame.currentTNode}function Qs(e,t){const r=Wr.lFrame;r.currentTNode=e,r.isParent=t}function Oc(){return Wr.lFrame.isParent}function fa(){Wr.lFrame.isParent=!1}function pa(){return Fu}function Zl(e){const t=Fu;return Fu=e,t}function Zs(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function O(){return Wr.lFrame.bindingIndex++}function P(e){const t=Wr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Ce(e,t){const r=Wr.lFrame;r.bindingIndex=r.bindingRootIndex=e,pt(t)}function pt(e){Wr.lFrame.currentDirectiveIndex=e}function It(e){const t=Wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function zt(){return Wr.lFrame.currentQueryIndex}function un(e){Wr.lFrame.currentQueryIndex=e}function kn(e){const t=e[$n];return 2===t.type?t.declTNode:1===t.type?e[Qi]:null}function qt(e,t,r){if(r&bi.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||r&bi.Host||(p=kn(g),null===p||(g=g[Uo],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Xn();return l.currentTNode=t,l.lView=e,!0}function Yn(e){const t=Xn(),r=e[$n];Wr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Xn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?ir(e):t}function ir(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 Rn(){const e=Wr.lFrame;return Wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Kn=Rn;function Qn(){const e=Rn();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 Hn(){return Wr.lFrame.selectedIndex}function Or(e){Wr.lFrame.selectedIndex=e}function sr(){const e=Wr.lFrame;return G(e.tView,e.selectedIndex)}function Dr(){Wr.lFrame.currentNamespace=ch}function Br(){!function ro(){Wr.lFrame.currentNamespace=null}()}let Xi=!0;function bo(){return Xi}function To(e){Xi=e}function vr(e,t){for(let r=t.directiveStart,l=t.directiveEnd;r=l)break}else t[B]<0&&(e[Vs]+=65536),(I>14>16&&(3&e[Tr])===t&&(e[Tr]+=16384,gs(I,g)):gs(I,g)}const Ps=-1;class el{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,r,l){this.factory=t,this.canSeeViewProviders=r,this.injectImpl=l}}function Js(e,t,r){let l=0;for(;lt){x=g-1;break}}}for(;g>16}(e),l=t;for(;r>0;)l=l[Uo],r--;return l}let vh=!0;function Nl(e){const t=vh;return vh=e,t}const bd=255,Vu=5;let om=0;const Ll={};function yh(e,t){const r=wd(e,t);if(-1!==r)return r;const l=t[$n];l.firstCreatePass&&(e.injectorIndex=t.length,Af(l.data,e),Af(t,null),Af(l.blueprint,null));const p=Nc(e,t),g=e.injectorIndex;if(_h(p)){const x=$u(p),I=ju(p,t),B=I[$n].data;for(let ie=0;ie<8;ie++)t[g+ie]=I[x+ie]|B[x+ie]}return t[g+8]=p,g}function Af(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,l=null,p=t;for(;null!==p;){if(l=Wu(p),null===l)return Ps;if(r++,p=p[Uo],-1!==l.injectorIndex)return l.injectorIndex|r<<16}return Ps}function Lc(e,t,r){!function sm(e,t,r){let l;"string"==typeof r?l=r.charCodeAt(0)||0:r.hasOwnProperty(ni)&&(l=r[ni]),null==l&&(l=r[ni]=om++);const p=l&bd;t.data[e+(p>>Vu)]|=1<=0?t&bd:Mf:t}(r);if("function"==typeof g){if(!qt(t,e,l))return l&bi.Host?Hu(p,0,l):Sf(t,r,l,p);try{let x;if(x=g(l),null!=x||l&bi.Optional)return x;Li()}finally{Kn()}}else if("number"==typeof g){let x=null,I=wd(e,t),B=Ps,ie=l&bi.Host?t[vo][Qi]:null;for((-1===I||l&bi.SkipSelf)&&(B=-1===I?Nc(e,t):t[I+8],B!==Ps&&Eh(l,!1)?(x=t[$n],I=$u(B),t=ju(B,t)):I=-1);-1!==I;){const Se=t[$n];if(xd(g,I,Se.data)){const Ve=wh(I,t,r,x,l,ie);if(Ve!==Ll)return Ve}B=t[I+8],B!==Ps&&Eh(l,t[$n].data[I+8]===ie)&&xd(g,I,t)?(x=Se,I=$u(B),t=ju(B,t)):I=-1}}return p}function wh(e,t,r,l,p,g){const x=t[$n],I=x.data[e+8],Se=hu(I,x,r,null==l?Lo(I)&&vh:l!=x&&!!(3&I.type),p&bi.Host&&g===I);return null!==Se?Pl(t,x,Se,I):Ll}function hu(e,t,r,l,p){const g=e.providerIndexes,x=t.data,I=1048575&g,B=e.directiveStart,Se=g>>20,Nt=p?I+Se:e.directiveEnd;for(let Ut=l?I:I+Se;Ut=B&&tn.type===r)return Ut}if(p){const Ut=x[B];if(Ut&&Yo(Ut)&&Ut.type===r)return B}return null}function Pl(e,t,r,l){let p=e[r];const g=t.data;if(function Cl(e){return e instanceof el}(p)){const x=p;x.resolving&&function es(e,t){throw t&&t.join(" > "),new tt(-200,e)}(function Qr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Rr(e)}(g[r]));const I=Nl(x.canSeeViewProviders);x.resolving=!0;const ie=x.injectImpl?Oo(x.injectImpl):null;qt(e,l,bi.Default);try{p=e[r]=x.factory(void 0,g,e,l),t.firstCreatePass&&r>=l.directiveStart&&function ma(e,t,r){const{ngOnChanges:l,ngOnInit:p,ngDoCheck:g}=t.type.prototype;if(l){const x=Ha(t);(r.preOrderHooks??=[]).push(e,x),(r.preOrderCheckHooks??=[]).push(e,x)}p&&(r.preOrderHooks??=[]).push(0-e,p),g&&((r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g))}(r,g[r],t)}finally{null!==ie&&Oo(ie),Nl(I),x.resolving=!1,Kn()}}return p}function xd(e,t,r){return!!(r[t+(e>>Vu)]&1<{const t=e.prototype.constructor,r=t[gi]||Cd(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[gi]||Cd(p);if(g&&g!==r)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function Cd(e){return je(e)?()=>{const t=Cd(Ge(e));return t&&t()}:So(e)}function Wu(e){const t=e[$n],r=t.type;return 2===r?t.declTNode:1===r?e[Qi]:null}function zu(e){return function Ed(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const l=r.length;let p=0;for(;p_o(qr)});static __NG_ELEMENT_ID__=-1}class um{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>zu(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new dt("").__NG_ELEMENT_ID__=e=>{const t=Si();if(null===t)throw new tt(204,!1);if(2&t.type)return t.value;if(e&bi.Optional)return null;throw new tt(204,!1)};const Th=!1;let ws=(()=>class e{static __NG_ELEMENT_ID__=kd;static __NG_ENV_ID__=r=>r})();class Fc extends ws{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return is(this._lView,t),()=>function Oa(e,t){if(null===e[Ie])return;const r=e[Ie].indexOf(t);-1!==r&&e[Ie].splice(r,1)}(this._lView,t)}}function kd(){return new Fc(Cn())}class nc{}const mu=new dt("",{providedIn:"root",factory:()=>!1}),Od=new dt(""),rc=new dt("");let wc=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Zt.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}has(r){return this.pendingTasks.has(r)}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();const ic=class kh extends rt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Il()&&(this.destroyRef=ur(ws,{optional:!0})??void 0,this.pendingTasks=ur(wc,{optional:!0})??void 0)}emit(t){const r=T(null);try{super.next(t)}finally{T(r)}}subscribe(t,r,l){let p=t,g=r||(()=>null),x=l;if(t&&"object"==typeof t){const B=t;p=B.next?.bind(B),g=B.error?.bind(B),x=B.complete?.bind(B)}this.__isAsync&&(g=this.wrapInTimeout(g),p&&(p=this.wrapInTimeout(p)),x&&(x=this.wrapInTimeout(x)));const I=super.subscribe({next:p,error:g,complete:x});return t instanceof Ht.yU&&t.add(I),I}wrapInTimeout(t){return r=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(r),void 0!==l&&this.pendingTasks?.remove(l)})}}};function gu(...e){}function Rd(e){let t,r;function l(){e=gu;try{void 0!==r&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(r),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),l()}),"function"==typeof requestAnimationFrame&&(r=requestAnimationFrame(()=>{e(),l()})),()=>l()}function dm(e){return queueMicrotask(()=>e()),()=>{e=gu}}const Ec="isAngularZone",Xu=Ec+"_ID";let Ih=0;class os{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new ic(!1);onMicrotaskEmpty=new ic(!1);onStable=new ic(!1);onError=new ic(!1);constructor(t){const{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=Th}=t;if(typeof Zone>"u")throw new tt(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!p&&l,x.shouldCoalesceRunChangeDetection=p,x.callbackScheduled=!1,x.scheduleInRootZone=g,function Lf(e){const t=()=>{!function hm(e){function t(){Rd(()=>{e.callbackScheduled=!1,Rh(e),e.isCheckStableRunning=!0,Oh(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Rh(e))}(e)},r=Ih++;e._inner=e._inner.fork({name:"angular",properties:{[Ec]:!0,[Xu]:r,[Xu+r]:!0},onInvokeTask:(l,p,g,x,I,B)=>{if(function fm(e){return Ff(e,"__ignore_ng_zone__")}(B))return l.invokeTask(g,x,I,B);try{return Pf(e),l.invokeTask(g,x,I,B)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||e.shouldCoalesceRunChangeDetection)&&t(),_u(e)}},onInvoke:(l,p,g,x,I,B,ie)=>{try{return Pf(e),l.invoke(g,x,I,B,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function $g(e){return Ff(e,"__scheduler_tick__")}(B)&&t(),_u(e)}},onHasTask:(l,p,g,x)=>{l.hasTask(g,x),p===g&&("microTask"==x.change?(e._hasPendingMicrotasks=x.microTask,Rh(e),Oh(e)):"macroTask"==x.change&&(e.hasPendingMacrotasks=x.macroTask))},onHandleError:(l,p,g,x)=>(l.handleError(g,x),e.runOutsideAngular(()=>e.onError.emit(x)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Ec)}static assertInAngularZone(){if(!os.isInAngularZone())throw new tt(909,!1)}static assertNotInAngularZone(){if(os.isInAngularZone())throw new tt(909,!1)}run(t,r,l){return this._inner.run(t,r,l)}runTask(t,r,l,p){const g=this._inner,x=g.scheduleEventTask("NgZoneEvent: "+p,t,Nf,gu,gu);try{return g.runTask(x,r,l)}finally{g.cancelTask(x)}}runGuarded(t,r,l){return this._inner.runGuarded(t,r,l)}runOutsideAngular(t){return this._outer.run(t)}}const Nf={};function Oh(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 Rh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Pf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _u(e){e._nesting--,Oh(e)}class Nh{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new ic;onMicrotaskEmpty=new ic;onStable=new ic;onError=new ic;run(t,r,l){return t.apply(r,l)}runGuarded(t,r,l){return t.apply(r,l)}runOutsideAngular(t){return t()}runTask(t,r,l,p){return t.apply(r,l)}}function Ff(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class xc{_console=console;handleError(t){this._console.error("ERROR",t)}}const Yu=new dt("",{providedIn:"root",factory:()=>{const e=ur(os),t=ur(xc);return r=>e.runOutsideAngular(()=>t.handleError(r))}});function Bf(e,t){return z(e,t)}const Hg=(Bf.required=function yu(e){return z(At,e)},Bf);function bu(){return Cc(Si(),Cn())}function Cc(e,t){return new Os(rs(e,t))}let Os=(()=>class e{nativeElement;constructor(r){this.nativeElement=r}static __NG_ELEMENT_ID__=bu})();function Lh(e){return e instanceof Os?e.nativeElement:e}function Nd(){return this._results[Symbol.iterator]()}class Uf{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new rt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const l=function lo(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Bo(e,t,r){if(e.length!==t.length)return!1;for(let l=0;lQh}),Qh="ng",rd=new dt(""),b=new dt("",{providedIn:"platform",factory:()=>"unknown"}),A=new dt(""),j=new dt("",{providedIn:"root",factory:()=>tl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),to=new dt("",{providedIn:"root",factory:()=>!1}),br=new Set;function oi(e){br.has(e)||(br.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Wi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Wi||{});let Bs=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();const Na=[Wi.EarlyRead,Wi.Write,Wi.MixedReadWrite,Wi.Read];let nl=(()=>{class e{ngZone=ur(os);scheduler=ur(nc);errorHandler=ur(xc,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;execute(){this.executing=!0;for(const r of Na)for(const l of this.sequences)if(!l.erroredOrDestroyed&&l.hooks[r])try{l.pipelinedValue=this.ngZone.runOutsideAngular(()=>l.hooks[r](l.pipelinedValue))}catch(p){l.erroredOrDestroyed=!0,this.errorHandler?.handleError(p)}this.executing=!1;for(const r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(const r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(r){this.executing?this.deferredRegistrations.add(r):(this.sequences.add(r),this.scheduler.notify(7))}unregister(r){this.executing&&this.sequences.has(r)?(r.erroredOrDestroyed=!0,r.pipelinedValue=void 0,r.once=!0):(this.sequences.delete(r),this.deferredRegistrations.delete(r))}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();class ml{impl;hooks;once;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,r,l,p){this.impl=t,this.hooks=r,this.once=l,this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function ya(e,t){!t?.injector&&Sa();const r=t?.injector??ur(Qo);return typeof ngServerMode<"u"&&ngServerMode?$d:(oi("NgAfterRender"),Vc(e,r,t,!1))}function Ga(e,t){!t?.injector&&Sa();const r=t?.injector??ur(Qo);return typeof ngServerMode<"u"&&ngServerMode?$d:(oi("NgAfterNextRender"),Vc(e,r,t,!0))}function Vc(e,t,r,l){const p=t.get(Bs);p.impl??=t.get(nl);const g=r?.phase??Wi.MixedReadWrite,x=!0!==r?.manualCleanup?t.get(ws):null,I=new ml(p.impl,function ba(e,t){if(e instanceof Function){const r=[void 0,void 0,void 0,void 0];return r[t]=e,r}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,g),l,x);return p.impl.register(I),I}const $d={destroy(){}};let Zg=()=>null;function Sm(e,t,r=!1){return Zg(e,t,r)}var Sc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Sc||{});let ld,cp;function Gd(e){return function Im(){if(void 0===ld&&(ld=null,hn.trustedTypes))try{ld=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ld}()?.createHTML(e)||e}function Om(){if(void 0===cp&&(cp=null,hn.trustedTypes))try{cp=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return cp}function l_(e){return Om()?.createHTML(e)||e}function u_(e){return Om()?.createScriptURL(e)||e}class cd{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mn})`}}class Oy extends cd{getTypeName(){return"HTML"}}class Ry extends cd{getTypeName(){return"Style"}}class up extends cd{getTypeName(){return"Script"}}class Ny extends cd{getTypeName(){return"URL"}}class Ly extends cd{getTypeName(){return"ResourceURL"}}function Kc(e){return e instanceof cd?e.changingThisBreaksApplicationSecurity:e}function Xd(e,t){const r=function Py(e){return e instanceof cd&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Mn})`)}return r===t}function Fy(e){return new Oy(e)}function By(e){return new Ry(e)}function Uy(e){return new up(e)}function $y(e){return new Ny(e)}function jy(e){return new Ly(e)}class Rm{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Gd(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.firstChild?.remove(),r)}catch{return null}}}class Vy{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Gd(t),r}}const Nm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function dp(e){return(e=String(e)).match(Nm)?e:"unsafe:"+e}function Gc(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function lf(...e){const t={};for(const r of e)for(const l in r)r.hasOwnProperty(l)&&(t[l]=!0);return t}const h_=Gc("area,br,col,hr,img,wbr"),f_=Gc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),p_=Gc("rp,rt"),Lm=lf(h_,lf(f_,Gc("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")),lf(p_,Gc("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")),lf(p_,f_)),hp=Gc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),g_=lf(hp,Gc("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"),Gc("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")),zy=Gc("script,style,template");class Ky{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let r=t.firstChild,l=!0,p=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?l=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,l&&r.firstChild)p.push(r),r=Xy(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let g=Gy(r);if(g){r=g;break}r=p.pop()}return this.buf.join("")}startElement(t){const r=v_(t).toLowerCase();if(!Lm.hasOwnProperty(r))return this.sanitizedSomething=!0,!zy.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const r=v_(t).toLowerCase();Lm.hasOwnProperty(r)&&!h_.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fm(t))}}function Gy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Pm(t);return t}function Xy(e){const t=e.firstChild;if(t&&function __(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Pm(t);return t}function v_(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Pm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Qy=/([^\#-~ |!])/g;function Fm(e){return e.replace(/&/g,"&").replace(Yy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Qy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let fp;function Bm(e,t){let r=null;try{fp=fp||function d_(e){const t=new Vy(e);return function Hy(){try{return!!(new window.DOMParser).parseFromString(Gd(""),"text/html")}catch{return!1}}()?new Rm(t):t}(e);let l=t?String(t):"";r=fp.getInertBodyElement(l);let p=5,g=l;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,l=g,g=r.innerHTML,r=fp.getInertBodyElement(l)}while(l!==g);return Gd((new Ky).sanitizeChildren(Um(r)||r))}finally{if(r){const l=Um(r)||r;for(;l.firstChild;)l.firstChild.remove()}}}function Um(e){return"content"in e&&function Zy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ud=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}(ud||{});function y_(e){const t=dd();return t?l_(t.sanitize(ud.HTML,e)||""):Xd(e,"HTML")?l_(Kc(e)):Bm(tl(),Rr(e))}function Yd(e){const t=dd();return t?t.sanitize(ud.URL,e)||"":Xd(e,"URL")?Kc(e):dp(Rr(e))}function $m(e){const t=dd();if(t)return u_(t.sanitize(ud.RESOURCE_URL,e)||"");if(Xd(e,"ResourceURL"))return u_(Kc(e));throw new tt(904,!1)}function b_(e,t,r){return function Hm(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$m:Yd}(t,r)(e)}function dd(){const e=Cn();return e&&e[co].sanitizer}const E_=/^>|^->||--!>|)/g,x_="\u200b$1\u200b";function Dl(e){return e instanceof Function?e():e}var Su=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Su||{}),_p=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(_p||{});let Km;function Gm(e,t){return Km(e,t)}function qd(e,t,r,l,p){if(null!=l){let g,x=!1;wi(l)?g=l:ii(l)&&(x=!0,l=l[oo]);const I=qi(l);0===e&&null!==r?null==p?z_(t,r,I):hd(t,r,I,p||null,!0):1===e&&null!==r?hd(t,r,I,p||null,!0):2===e?function df(e,t,r){e.removeChild(null,t,r)}(t,I,x):3===e&&t.destroyNode(I),null!=g&&function J_(e,t,r,l,p){const g=r[ci];g!==qi(r)&&qd(t,e,l,g,p);for(let I=Nr;It.replace(Qd,x_))}(t))}function vp(e,t,r){return e.createElement(t,r)}function j_(e,t){t[co].changeDetectionScheduler?.notify(10),Cp(e,t,t[ri],2,null,null)}function V_(e,t){const r=e[Di],l=t[Oi];(ii(l)||t[vo]!==l[Oi][vo])&&(e[Tr]|=li.HasTransplantedViews),null===r?e[Di]=[t]:r.push(t)}function yp(e,t){const r=e[Di],l=r.indexOf(t);r.splice(l,1)}function cf(e,t){if(e.length<=Nr)return;const r=Nr+t,l=e[r];if(l){const p=l[Ci];null!==p&&p!==e&&yp(p,l),t>0&&(e[r-1][ys]=l[ys]);const g=Ms(e,Nr+t);!function $_(e,t){j_(e,t),t[oo]=null,t[Qi]=null}(l[$n],l);const x=g[uo];null!==x&&x.detachView(g[$n]),l[Oi]=null,l[ys]=null,l[Tr]&=-129}return l}function uf(e,t){if(!(256&t[Tr])){const r=t[ri];r.destroyNode&&Cp(e,t,r,3,null,null),function ib(e){let t=e[Xs];if(!t)return Qm(e[$n],e);for(;t;){let r=null;if(ii(t))r=t[Xs];else{const l=t[Nr];l&&(r=l)}if(!r){for(;t&&!t[ys]&&t!==e;)ii(t)&&Qm(t[$n],t),t=t[Oi];null===t&&(t=e),ii(t)&&Qm(t[$n],t),r=t&&t[ys]}t=r}}(t)}}function Qm(e,t){if(256&t[Tr])return;const r=T(null);try{t[Tr]&=-129,t[Tr]|=256,t[Et]&&we(t[Et]),function bp(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let l=0;l=0?l[I]():l[-I].unsubscribe(),x+=2}else r[x].call(l[r[x+1]]);null!==l&&(t[Bi]=null);const p=t[Ie];if(null!==p){t[Ie]=null;for(let x=0;x-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===Sc.None||g===Sc.Emulated)return null}return rs(l,r)}}(e,t.parent,r)}function hd(e,t,r,l,p){e.insertBefore(t,r,l,p)}function z_(e,t,r){e.appendChild(t,r)}function K_(e,t,r,l,p){null!==l?hd(e,t,r,l,p):z_(e,t,r)}function Zm(e,t){return e.parentNode(t)}function qm(e,t,r){return X_(e,t,r)}let Jm,X_=function G_(e,t,r){return 40&e.type?rs(e,r):null};function Ep(e,t,r,l){const p=wp(e,l,t),g=t[ri],I=qm(l.parent||t[Qi],l,t);if(null!=p)if(Array.isArray(r))for(let B=0;B-1){let g;for(;++pg?"":p[Se+1].toLowerCase(),2&l&&ie!==Ve){if(cc(l))return!1;x=!0}}}}else{if(!x&&!cc(l)&&!cc(B))return!1;if(x&&cc(B))continue;x=!1,l=B|1&l}}return cc(l)||x}function cc(e){return!(1&e)}function pb(e,t,r,l){if(null===t)return-1;let p=0;if(l||!r){let g=!1;for(;p-1)for(r++;r0?'="'+I+'"':"")+"]"}else 8&l?p+="."+x:4&l&&(p+=" "+x);else""!==p&&!cc(x)&&(t+=hf(g,p),p=""),l=x,g=g||!cc(l);r++}return""!==p&&(t+=hf(g,p)),t}const $i={};function Dp(e=1){wb(pi(),Cn(),Hn()+e,!1)}function wb(e,t,r,l){if(!l)if(3&~t[Tr]){const g=e.preOrderHooks;null!==g&&Hi(t,g,0,r)}else{const g=e.preOrderCheckHooks;null!==g&&jr(t,g,r)}Or(r)}function Jd(e,t=bi.Default){const r=Cn();return null===r?_o(e,t):bh(Si(),r,Ge(e),t)}function iv(){throw new Error("invalid")}function ng(e,t,r,l,p,g){const x=T(null);try{let I=null;p&Su.SignalBased&&(I=t[l][C]),null!==I&&void 0!==I.transformFn&&(g=I.transformFn(g)),p&Su.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,I,g,r,l):Hs(t,I,l,g)}finally{T(x)}}function ff(e,t,r,l,p,g,x,I,B,ie,Se){const Ve=t.blueprint.slice();return Ve[oo]=p,Ve[Tr]=1228|l,(null!==ie||e&&2048&e[Tr])&&(Ve[Tr]|=2048),an(Ve),Ve[Oi]=Ve[Uo]=e,Ve[Ki]=r,Ve[co]=x||e&&e[co],Ve[ri]=I||e&&e[ri],Ve[no]=B||e&&e[no]||null,Ve[Qi]=g,Ve[Ui]=function $f(){return Eu++}(),Ve[so]=Se,Ve[U]=ie,Ve[vo]=2==t.type?e[vo]:Ve,Ve}function fd(e,t,r,l,p){let g=e.data[t];if(null===g)g=function rg(e,t,r,l,p){const g=Rl(),x=Oc(),B=e.data[t]=function nr(e,t,r,l,p,g){let x=t?t.injectorIndex:-1,I=0;return gc()&&(I|=128),{type:r,index:l,insertBeforeIndex:null,injectorIndex:x,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,x?g:g&&g.parent,r,t,l,p);return null===e.firstChild&&(e.firstChild=B),null!==g&&(x?null==g.child&&null!==B.parent&&(g.child=B):null===g.next&&(g.next=B,B.prev=g)),B}(e,t,r,l,p),function $(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=r,g.value=l,g.attrs=p;const x=function Ra(){const e=Wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();g.injectorIndex=null===x?-1:x.injectorIndex}return Qs(g,!0),g}function pf(e,t,r,l){if(0===r)return-1;const p=t.length;for(let g=0;gGt&&wb(e,t,Gt,!1),Wa(x?2:0,p),r(l,p)}finally{Or(g),Wa(x?3:1,p)}}function m(e,t,r){if(bs(t)){const l=T(null);try{const g=t.directiveEnd;for(let x=t.directiveStart;xnull;function mr(e,t,r,l,p){for(let g in t){if(!t.hasOwnProperty(g))continue;const x=t[g];if(void 0===x)continue;l??={};let I,B=Su.None;Array.isArray(x)?(I=x[0],B=x[1]):I=x;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?ti(l,r,ie,I,B):ti(l,r,ie,I)}return l}function ti(e,t,r,l,p){let g;e.hasOwnProperty(r)?(g=e[r]).push(t,l):g=e[r]=[t,l],void 0!==p&&g.push(p)}function ho(e,t,r,l,p,g,x,I){const B=rs(t,r);let Se,ie=t.inputs;!I&&null!=ie&&(Se=ie[l])?(xb(e,r,Se,l,p),Lo(t)&&function Ea(e,t){const r=K(t,e);16&r[Tr]||(r[Tr]|=64)}(r,t.index)):3&t.type&&(l=function ko(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(l),p=null!=x?x(p,t.value||"",l):p,g.setProperty(B,l,p))}function _l(e,t,r,l){if(fh()){const p=null===l?null:{"":-1},g=function ig(e,t){const r=e.directiveRegistry;let l=null,p=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(x)!=I&&x.push(I),x.push(r,l,g)}}(e,t,l,pf(e,r,p.hostVars,$i),p)}function xo(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ta(e,t,r,l,p,g){const x=rs(e,t);!function il(e,t,r,l,p,g,x){if(null==g)e.removeAttribute(t,p,r);else{const I=null==x?Rr(g):x(g,l||"",p);e.setAttribute(t,p,I,r)}}(t[ri],x,g,e.value,r,l,p)}function ku(e,t,r,l,p,g){const x=g[t];if(null!==x)for(let I=0;I0&&(r[p-1][ys]=t),l{Is(e.lView)},consumerOnSignalRead(){this.lView[Et]=this}},xD={...R,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=us(e.lView);for(;t&&!Jw(t[$n]);)t=us(t);t&&hr(t)},consumerOnSignalRead(){this.lView[Et]=this}};function Jw(e){return 2!==e.type}function e1(e){if(null===e[ve])return;let t=!0;for(;t;){let r=!1;for(const l of e[ve])l.dirty&&(r=!0,null===l.zone||Zone.current===l.zone?l.run():l.zone.run(()=>l.run()));t=r&&!!(8192&e[Tr])}}const CD=100;function cv(e,t=!0,r=0){const p=e[co].rendererFactory;p.begin?.();try{!function DD(e,t){const r=pa();try{Zl(!0),Ab(e,t);let l=0;for(;Ir(e);){if(l===CD)throw new tt(103,!1);l++,Ab(e,1)}}finally{Zl(r)}}(e,r)}catch(x){throw t&&av(e,x),x}finally{p.end?.()}}function n1(e,t,r,l){const p=t[Tr];if(!(256&~p))return;Yn(t);let I=!0,B=null,ie=null;Jw(e)?(ie=function vD(e){return e[Et]??function yD(e){const t=qw.pop()??Object.create(wD);return t.lView=e,t}(e)}(t),B=Ee(ie)):null===function S(){return c}()?(I=!1,ie=function ED(e){const t=e[Et]??Object.create(xD);return t.lView=e,t}(t),B=Ee(ie)):t[Et]&&(we(t[Et]),t[Et]=null);try{an(t),function yd(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&v(e,t,r,2,l);const Se=!(3&~p);if(Se){const Ut=e.preOrderCheckHooks;null!==Ut&&jr(t,Ut,null)}else{const Ut=e.preOrderHooks;null!==Ut&&Hi(t,Ut,0,null),Yi(t,0)}if(function AD(e){for(let t=ac(e);null!==t;t=Hh(t)){if(!(t[Tr]&li.HasTransplantedViews))continue;const r=t[Di];for(let l=0;l-1&&(cf(t,l),Ms(r,l))}this._attachedToViewContainer=!1}uf(this._lView[$n],this._lView)}onDestroy(t){is(this._lView,t)}markForCheck(){ag(this._cdRefInjectingView||this._lView,4)}markForRefresh(){hr(this._cdRefInjectingView||this._lView)}detach(){this._lView[Tr]&=-129}reattach(){Gi(this._lView),this._lView[Tr]|=128}detectChanges(){this._lView[Tr]|=1024,cv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new tt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Va(this._lView),r=this._lView[Ci];null!==r&&!t&&yp(r,this._lView),j_(this._lView[$n],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new tt(902,!1);this._appRef=t;const r=Va(this._lView),l=this._lView[Ci];null!==l&&!r&&V_(l,this._lView),Gi(this._lView)}}let cg=(()=>class e{static __NG_ELEMENT_ID__=kD})();const TD=cg,MD=class extends TD{_declarationLView;_declarationTContainer;elementRef;constructor(t,r,l){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,l){const p=Tp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:l});return new lg(p)}};function kD(){return uv(Si(),Cn())}function uv(e,t){return 4&e.type?new MD(t,e,Cc(e,t)):null}class UD{resolveComponentFactory(t){throw Error(`No component factory found for ${Mr(t)}.`)}}class hv{static NULL=new UD}class vf{}class l1{}class $D{}class c1{}class kb{}let jD=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function VD(){const e=Cn(),r=K(Si().index,e);return(ii(r)?r:e)[ri]}()})(),HD=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:()=>null})}return e})();function eh(e){return!!fi(e)}function pv(e,t,r){let l=r?e.styles:null,p=r?e.classes:null,g=0;if(null!==t)for(let x=0;x0&&ev(e,r,g.join(" "))}}(Nt,ra,tn,l),void 0!==r&&function JD(e,t,r){const l=e.projection=[];for(let p=0;pr()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Nb extends l1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Rb(this.moduleType,t,[])}}class p1 extends vf{injector;componentFactoryResolver=new h1(this);instance=null;constructor(t){super();const r=new vs([...t.providers,{provide:vf,useValue:this},{provide:hv,useValue:this.componentFactoryResolver}],t.parent||_i(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Lb(e,t,r=null){return new p1({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let rA=(()=>{class e{_injector;cachedInjectors=new Map;constructor(r){this._injector=r}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const l=Ua(0,r.type),p=l.length>0?Lb([l],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,p)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=ai({token:e,providedIn:"environment",factory:()=>new e(_o(cs))})}return e})();function m1(e){return L(()=>{const t=y1(e),r={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===oc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?p=>p.get(rA).getOrCreateStandaloneInjector(r):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Sc.Emulated,styles:e.styles||Gn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&oi("NgStandalone"),b1(r);const l=e.dependencies;return r.directiveDefs=mv(l,!1),r.pipeDefs=mv(l,!0),r.id=function aA(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const p of r)t=Math.imul(31,t)+p.charCodeAt(0)|0;return t+=2147483648,"c"+t}(r),r})}function iA(e){return zr(e)||di(e)}function oA(e){return null!==e}function Pb(e){return L(()=>({type:e.type,bootstrap:e.bootstrap||Gn,declarations:e.declarations||Gn,imports:e.imports||Gn,exports:e.exports||Gn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function g1(e,t){if(null==e)return Pn;const r={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,x,I=Su.None;Array.isArray(p)?(I=p[0],g=p[1],x=p[2]??g):(g=p,x=p),t?(r[g]=I!==Su.None?[l,I]:l,t[g]=x):r[g]=l}return r}function _1(e){return L(()=>{const t=y1(e);return b1(t),t})}function v1(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function y1(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||Pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Gn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:g1(e.inputs,t),outputs:g1(e.outputs),debugInfo:null}}function b1(e){e.features?.forEach(t=>t(e))}function mv(e,t){if(!e)return null;const r=t?Fi:iA;return()=>("function"==typeof e?e():e).map(l=>r(l)).filter(oA)}let E1=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Fb(e){return"function"==typeof e&&void 0!==e[C]}const D1="ng";function NA(e,t){!function S1(e,t){if(typeof COMPILED>"u"||!COMPILED){const r=hn;r[D1]??={},r[D1][e]=t}}(e,t)}const T1=new dt(""),M1=new dt("");let Ub,LA=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(r,l,p){this._ngZone=r,this.registry=l,Ub||(function PA(e){Ub=e}(p),p.addToWindow(l)),this._watchAngularEvents(),r.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:()=>{os.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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(r)||(clearTimeout(l.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,l,p){let g=-1;l&&l>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(x=>x.timeoutId!==g),r()},l)),this._callbacks.push({doneCb:r,timeoutId:g,updateCb:p})}whenStable(r,l,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,l,p),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,l,p){return[]}static \u0275fac=function(l){return new(l||e)(_o(os),_o(k1),_o(M1))};static \u0275prov=ai({token:e,factory:e.\u0275fac})}return e})(),k1=(()=>{class e{_applications=new Map;registerApplication(r,l){this._applications.set(r,l)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,l=!0){return Ub?.findTestabilityInTree(this,r,l)??null}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function $b(e){return!!e&&"function"==typeof e.then}function I1(e){return!!e&&"function"==typeof e.subscribe}const jb=new dt("");let O1=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((r,l)=>{this.resolve=r,this.reject=l});appInits=ur(jb,{optional:!0})??[];injector=ur(Qo);constructor(){}runInitializers(){if(this.initialized)return;const r=[];for(const p of this.appInits){const g=$s(this.injector,p);if($b(g))r.push(g);else if(I1(g)){const x=new Promise((I,B)=>{g.subscribe({complete:I,error:B})});r.push(x)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{l()}).catch(p=>{this.reject(p)}),0===r.length&&l(),this.initialized=!0}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Vb=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new R1})}return e})();class R1{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){const r=t.zone;this.queues.has(r)||this.queues.set(r,new Set);const l=this.queues.get(r);l.has(t)||(this.queuedEffectCount++,l.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}const _g=new dt("");let dc=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=ur(Yu);afterRenderManager=ur(Bs);zonelessEnabled=ur(mu);rootEffectScheduler=ur(Vb);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new rt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=ur(wc).hasPendingTasks.pipe((0,en.T)(r=>!r));whenStable(){let r;return new Promise(l=>{r=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{r.unsubscribe()})}_injector=ur(cs);get injector(){return this._injector}bootstrap(r,l){const p=r instanceof c1;if(!this._injector.get(O1).done)throw!p&&Ro(r),new tt(405,!1);let x;x=p?r:this._injector.get(hv).resolveComponentFactory(r),this.componentTypes.push(x.componentType);const I=function FA(e){return e.isBoundToModule}(x)?void 0:this._injector.get(vf),ie=x.create(Qo.NULL,[],l||x.selector,I),Se=ie.location.nativeElement,Ve=ie.injector.get(T1,null);return Ve?.registerApplication(Se),ie.onDestroy(()=>{this.detachView(ie.hostView),vv(this.components,ie),Ve?.unregisterApplication(Se)}),this._loadComponent(ie),ie}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new tt(101,!1);const r=T(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,T(r),this.afterTick.next()}}synchronize(){let r=null;this._injector.destroyed||(r=this._injector.get(kb,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let l=0;for(;0!==this.dirtyFlags&&l++<10;)this.synchronizeOnce(r)}synchronizeOnce(r){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const l=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:p,notifyErrorHandler:g}of this.allViews)$A(p,g,l,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else r?.begin?.(),r?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:r})=>Ir(r))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(r){const l=r;this._views.push(l),l.attachToAppRef(this)}detachView(r){const l=r;vv(this._views,l),l.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const l=this._injector.get(_g,[]);[...this._bootstrapListeners,...l].forEach(p=>p(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>vv(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new tt(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vv(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function $A(e,t,r,l){(r||Ir(e))&&cv(e,t,r&&!l?0:1)}let eE=()=>null;function Ip(e,t){return eE(e,t)}let Cv=(()=>class e{static __NG_ELEMENT_ID__=AS})();function AS(){return rE(Si(),Cn())}const SS=Cv,tE=class extends SS{_lContainer;_hostTNode;_hostLView;constructor(t,r,l){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=l}get element(){return Cc(this._hostTNode,this._hostLView)}get injector(){return new Fs(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nc(this._hostTNode,this._hostLView);if(_h(t)){const r=ju(t,this._hostLView),l=$u(t);return new Fs(r[$n].data[l+8],r)}return new Fs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=nE(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Nr}createEmbeddedView(t,r,l){let p,g;"number"==typeof l?p=l:null!=l&&(p=l.index,g=l.injector);const x=Ip(this._lContainer,t.ssrId),I=t.createEmbeddedViewImpl(r||{},g,x);return this.insertImpl(I,p,_f(this._hostTNode,x)),I}createComponent(t,r,l,p,g){const x=t&&!function wl(e){return"function"==typeof e}(t);let I;if(x)I=r;else{const tn=r||{};I=tn.index,l=tn.injector,p=tn.projectableNodes,g=tn.environmentInjector||tn.ngModuleRef}const B=x?t:new mg(zr(t)),ie=l||this.parentInjector;if(!g&&null==B.ngModule){const Bn=(x?ie:this.parentInjector).get(cs,null);Bn&&(g=Bn)}const Se=zr(B.componentType??{}),Ve=Ip(this._lContainer,Se?.id??null),Ut=B.create(ie,p,Ve?.firstChild??null,g);return this.insertImpl(Ut.hostView,I,_f(this._hostTNode,Ve)),Ut}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,l){const p=t._lView;if(function St(e){return wi(e[Oi])}(p)){const I=this.indexOf(t);if(-1!==I)this.detach(I);else{const B=p[Oi],ie=new tE(B,B[Qi],B[Oi]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(r),x=this._lContainer;return Mp(x,p,g,l),t.attachToViewContainerRef(),Da(Jb(x),g,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=nE(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),l=cf(this._lContainer,r);l&&(Ms(Jb(this._lContainer),r),uf(l[$n],l))}detach(t){const r=this._adjustIndex(t,-1),l=cf(this._lContainer,r);return l&&null!=Ms(Jb(this._lContainer),r)?new lg(l):null}_adjustIndex(t,r=0){return t??this.length+r}};function nE(e){return e[8]}function Jb(e){return e[8]||(e[8]=[])}function rE(e,t){let r;const l=t[e.index];return wi(l)?r=l:(r=og(l,t,null,e),t[e.index]=r,na(t,r)),iE(r,t,e,l),new tE(r,e,t)}let iE=function sE(e,t,r,l){if(e[ci])return;let p;p=8&r.type?qi(l):function TS(e,t){const r=e[ri],l=r.createComment(""),p=rs(t,e);return hd(r,Zm(r,p),l,function sb(e,t){return e.nextSibling(t)}(r,p),!1),l}(t,r),e[ci]=p},e0=()=>!1;class t0{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new t0(this.queryList)}setDirty(){this.queryList.setDirty()}}class n0{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const l=null!==t.contentQueries?t.contentQueries[0]:r.length,p=[];for(let g=0;gt.trim())}(t):t}}class r0{queries;constructor(t=[]){this.queries=t}elementStart(t,r){for(let l=0;l0)l.push(x[I/2]);else{const ie=g[I+1],Se=t[-B];for(let Ve=Nr;Ve(X(t),t.value);return r[C]=t,r}(e),l=r[C];return t?.equal&&(l.equal=t.equal),r.set=p=>Ze(l,p),r.update=p=>function it(e,t){pe()||Je(),Ze(e,t(e.value))}(l,p),r.asReadonly=c0.bind(r),r}function c0(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function pE(e){return Fb(e)&&"function"==typeof e.set}function u0(e,t,r){let l;const p=bt(()=>{l._dirtyCounter();const g=function BS(e,t){const r=e._lView,l=e._queryIndex;if(void 0===r||void 0===l||4&r[Tr])return t?void 0:Gn;const p=a0(r,l),g=fE(r,l);return p.reset(g,Lh),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new tt(-951,!1);return g});return l=p[C],l._dirtyCounter=Op(0),l._flatValue=void 0,p}function yE(e,t){return function mE(e){return u0(!0,!1)}()}const $S=(yE.required=function US(e,t){return function gE(e){return u0(!0,!0)}()},yE);function d0(e){let t=function AE(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const l=[e];for(;t;){let p;if(Yo(e))p=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new tt(903,!1);p=t.\u0275dir}if(p){if(r){l.push(p);const x=e;x.inputs=Av(e.inputs),x.inputTransforms=Av(e.inputTransforms),x.declaredInputs=Av(e.declaredInputs),x.outputs=Av(e.outputs);const I=p.hostBindings;I&&JS(e,I);const B=p.viewQuery,ie=p.contentQueries;if(B&&ZS(e,B),ie&&qS(e,ie),YS(e,p),Hr(e.outputs,p.outputs),Yo(p)&&p.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(p.data.animation)}}const g=p.features;if(g)for(let x=0;x=0;l--){const p=e[l];p.hostVars=t+=p.hostVars,p.hostAttrs=tc(p.hostAttrs,r=tc(r,p.hostAttrs))}}(l)}function YS(e,t){for(const r in t.inputs){if(!t.inputs.hasOwnProperty(r)||e.inputs.hasOwnProperty(r))continue;const l=t.inputs[r];if(void 0!==l&&(e.inputs[r]=l,e.declaredInputs[r]=t.declaredInputs[r],null!==t.inputTransforms)){const p=Array.isArray(l)?l[0]:l;if(!t.inputTransforms.hasOwnProperty(p))continue;e.inputTransforms??={},e.inputTransforms[p]=t.inputTransforms[p]}}}function Av(e){return e===Pn?{}:e===Gn?[]:e}function ZS(e,t){const r=e.viewQuery;e.viewQuery=r?(l,p)=>{t(l,p),r(l,p)}:t}function qS(e,t){const r=e.contentQueries;e.contentQueries=r?(l,p,g)=>{t(l,p,g),r(l,p,g)}:t}function JS(e,t){const r=e.hostBindings;e.hostBindings=r?(l,p)=>{t(l,p),r(l,p)}:t}function SE(e){const t=r=>{const l=Array.isArray(e);null===r.hostDirectives?(r.findHostDirectiveDefs=TE,r.hostDirectives=l?e.map(h0):[e]):l?r.hostDirectives.unshift(...e.map(h0)):r.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function TE(e,t,r){if(null!==e.hostDirectives)for(const l of e.hostDirectives)if("function"==typeof l){const p=l();for(const g of p)ME(h0(g),t,r)}else ME(l,t,r)}function ME(e,t,r){const l=di(e.directive);(function rT(e,t){for(const r in t)t.hasOwnProperty(r)&&(e[t[r]]=e[r])})(l.declaredInputs,e.inputs),TE(l,t,r),r.set(l,e),t.push(l)}function h0(e){return"function"==typeof e?{directive:Ge(e),inputs:Pn,outputs:Pn}:{directive:Ge(e.directive),inputs:kE(e.inputs),outputs:kE(e.outputs)}}function kE(e){if(void 0===e||0===e.length)return Pn;const t={};for(let r=0;r>17&32767}function A0(e){return 2|e}function wf(e){return(131068&e)>>2}function S0(e,t){return-131069&e|t<<2}function T0(e){return 1|e}function qE(e,t,r,l){const p=e[r+1],g=null===t;let x=l?sh(p):wf(p),I=!1;for(;0!==x&&(!1===I||g);){const ie=e[x+1];nM(e[x],t)&&(I=!0,e[x+1]=l?T0(ie):A0(ie)),x=l?sh(ie):wf(ie)}I&&(e[r+1]=l?A0(p):T0(p))}function nM(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ot(e,t)>=0}const Pa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JE(e){return e.substring(Pa.key,Pa.keyEnd)}function rM(e){return e.substring(Pa.value,Pa.valueEnd)}function ex(e,t){const r=Pa.textEnd;return r===t?-1:(t=Pa.keyEnd=function sM(e,t,r){for(;t32;)t++;return t}(e,Pa.key=t,r),Xp(e,t,r))}function tx(e,t){const r=Pa.textEnd;let l=Pa.key=Xp(e,t,r);return r===l?-1:(l=Pa.keyEnd=function aM(e,t,r){let l;for(;t=65&&(-33&l)<=90||l>=48&&l<=57);)t++;return t}(e,l,r),l=rx(e,l,r),l=Pa.value=Xp(e,l,r),l=Pa.valueEnd=function lM(e,t,r){let l=-1,p=-1,g=-1,x=t,I=x;for(;x32&&(I=x),g=p,p=l,l=-33&B}return I}(e,l,r),rx(e,l,r))}function nx(e){Pa.key=0,Pa.keyEnd=0,Pa.value=0,Pa.valueEnd=0,Pa.textEnd=e.length}function Xp(e,t,r){for(;t=0;r=tx(t,r))lx(e,JE(t),rM(t))}function ox(e){qc(mM,Ou,e,!0)}function Ou(e,t){for(let r=function iM(e){return nx(e),ex(e,Xp(e,0,Pa.textEnd))}(t);r>=0;r=ex(t,r))qe(e,JE(t),!0)}function Zc(e,t,r,l){const p=Cn(),g=pi(),x=P(2);g.firstUpdatePass&&ax(g,e,x,l),t!==$i&&Ws(p,x,t)&&cx(g,g.data[Hn()],p,p[ri],e,p[x+1]=function _M(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Mr(Kc(e)))),e}(t,r),l,x)}function qc(e,t,r,l){const p=pi(),g=P(2);p.firstUpdatePass&&ax(p,null,g,l);const x=Cn();if(r!==$i&&Ws(x,g,r)){const I=p.data[Hn()];if(dx(I,l)&&!sx(p,g)){let B=l?I.classesWithoutHost:I.stylesWithoutHost;null!==B&&(r=Vr(B,r||"")),k0(p,I,x,r,l)}else!function gM(e,t,r,l,p,g,x,I){p===$i&&(p=Gn);let B=0,ie=0,Se=0=e.expandoStartIndex}function ax(e,t,r,l){const p=e.data;if(null===p[r+1]){const g=p[Hn()],x=sx(e,r);dx(g,l)&&null===t&&!x&&(t=!1),t=function uM(e,t,r,l){const p=It(e);let g=l?t.residualClasses:t.residualStyles;if(null===p)0===(l?t.classBindings:t.styleBindings)&&(r=Ag(r=R0(null,e,t,r,l),t.attrs,l),g=null);else{const x=t.directiveStylingLast;if(-1===x||e[x]!==p)if(r=R0(p,e,t,r,l),null===g){let B=function dM(e,t,r){const l=r?t.classBindings:t.styleBindings;if(0!==wf(l))return e[sh(l)]}(e,t,l);void 0!==B&&Array.isArray(B)&&(B=R0(null,e,t,B[1],l),B=Ag(B,t.attrs,l),function hM(e,t,r,l){e[sh(r?t.classBindings:t.styleBindings)]=l}(e,t,l,B))}else g=function fM(e,t,r){let l;const p=t.directiveEnd;for(let g=1+t.directiveStylingLast;g0)&&(ie=!0)):Se=r,p)if(0!==B){const Nt=sh(e[I+1]);e[l+1]=Iv(Nt,I),0!==Nt&&(e[Nt+1]=S0(e[Nt+1],l)),e[I+1]=function qT(e,t){return 131071&e|t<<17}(e[I+1],l)}else e[l+1]=Iv(I,0),0!==I&&(e[I+1]=S0(e[I+1],l)),I=l;else e[l+1]=Iv(B,0),0===I?I=l:e[B+1]=S0(e[B+1],l),B=l;ie&&(e[l+1]=A0(e[l+1])),qE(e,Se,l,!0),qE(e,Se,l,!1),function tM(e,t,r,l,p){const g=p?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&ot(g,t)>=0&&(r[l+1]=T0(r[l+1]))}(t,Se,e,l,g),x=Iv(I,B),g?t.classBindings=x:t.styleBindings=x}(p,g,t,r,x,l)}}function R0(e,t,r,l,p){let g=null;const x=r.directiveEnd;let I=r.directiveStylingLast;for(-1===I?I=r.directiveStart:I++;I0;){const B=e[p],ie=Array.isArray(B),Se=ie?B[1]:B,Ve=null===Se;let Nt=r[p+1];Nt===$i&&(Nt=Ve?Gn:void 0);let Ut=Ve?J(Nt,l):Se===l?Nt:void 0;if(ie&&!Ov(Ut)&&(Ut=J(B,l)),Ov(Ut)&&(I=Ut,x))return I;const tn=e[p+1];p=x?sh(tn):wf(tn)}if(null!==t){let B=g?t.residualClasses:t.residualStyles;null!=B&&(I=J(B,l))}return I}function Ov(e){return void 0!==e}function dx(e,t){return!!(e.flags&(t?8:16))}function hx(e,t,r){qc(qe,Ou,$p(Cn(),e,t,r),!0)}function fx(){return Cn()[vo][Ki]}class AM{destroy(t){}updateValue(t,r){}swap(t,r){const l=Math.min(t,r),p=Math.max(t,r),g=this.detach(p);if(p-l>1){const x=this.detach(l);this.attach(l,g),this.attach(p,x)}else this.attach(l,g)}move(t,r){this.attach(r,this.detach(t))}}function N0(e,t,r,l,p){return e===r&&Object.is(t,l)?1:Object.is(p(e,t),p(r,l))?-1:0}function L0(e,t,r,l){return!(void 0===t||!t.has(l)||(e.attach(r,t.get(l)),t.delete(l),0))}function px(e,t,r,l,p){if(L0(e,t,l,r(l,p)))e.updateValue(l,p);else{const g=e.create(l,p);e.attach(l,g)}}function mx(e,t,r,l){const p=new Set;for(let g=t;g<=r;g++)p.add(l(g,e.at(g)));return p}class gx{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let l=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(l);)l=p.get(l);p.set(l,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,l]of this.kvMap)if(t(l,r),void 0!==this._vMap){const p=this._vMap;for(;p.has(l);)l=p.get(l),t(l,r)}}}function _x(e,t){oi("NgControlFlow");const r=Cn(),l=O(),p=r[l]!==$i?r[l]:-1,g=-1!==p?Rv(r,Gt+p):void 0;if(Ws(r,l,e)){const I=T(null);try{if(void 0!==g&&Cb(g,0),-1!==e){const B=Gt+e,ie=Rv(r,B),Se=P0(r[$n],B),Ve=Ip(ie,Se.tView.ssrId);Mp(ie,Tp(r,Se,t,{dehydratedView:Ve}),0,_f(Se,Ve))}}finally{T(I)}}else if(void 0!==g){const I=Zw(g,0);void 0!==I&&(I[Ki]=t)}}class TM{lContainer;$implicit;$index;constructor(t,r,l){this.lContainer=t,this.$implicit=r,this.$index=l}get $count(){return this.lContainer.length-Nr}}function vx(e){return e}class kM{hasEmptyBlock;trackByFn;liveCollection;constructor(t,r,l){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=l}}function yx(e,t,r,l,p,g,x,I,B,ie,Se,Ve,Nt){oi("NgControlFlow");const Ut=Cn(),tn=pi(),Bn=void 0!==B,Zn=Cn(),dr=I?x.bind(Zn[vo][Ki]):x,Un=new kM(Bn,dr);Zn[Gt+e]=Un,Cg(Ut,tn,e+1,t,r,l,p,gn(tn.consts,g)),Bn&&Cg(Ut,tn,e+2,B,ie,Se,Ve,gn(tn.consts,Nt))}class IM extends AM{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,r,l){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=l}get length(){return this.lContainer.length-Nr}at(t){return this.getLView(t)[Ki].$implicit}attach(t,r){const l=r[so];this.needsIndexUpdate||=t!==this.length,Mp(this.lContainer,r,t,_f(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function OM(e,t){return cf(e,t)}(this.lContainer,t)}create(t,r){const l=Ip(this.lContainer,this.templateTNode.tView.ssrId),p=Tp(this.hostLView,this.templateTNode,new TM(this.lContainer,r,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){uf(t[$n],t),this.operationsCounter?.recordDestroy()}updateValue(t,r){this.getLView(t)[Ki].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(B)})}(B,e,g.trackByFn),B.updateIndexes(),g.hasEmptyBlock){const ie=O(),Se=0===B.length;if(Ws(l,ie,Se)){const Ve=r+2,Nt=Rv(l,Ve);if(Se){const Ut=P0(p,Ve),tn=Ip(Nt,Ut.tView.ssrId);Mp(Nt,Tp(l,Ut,void 0,{dehydratedView:tn}),0,_f(Ut,tn))}else Cb(Nt,0)}}}finally{T(t)}}function Rv(e,t){return e[t]}function P0(e,t){return G(e,t)}function Nv(e,t,r,l){const p=Cn(),g=pi(),x=Gt+e,I=p[ri],B=g.firstCreatePass?function NM(e,t,r,l,p,g){const x=t.consts,B=fd(t,e,2,l,gn(x,p));return _l(t,r,B,gn(x,g)),null!==B.attrs&&pv(B,B.attrs,!1),null!==B.mergedAttrs&&pv(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(x,g,p,t,r,l):g.data[x],ie=wx(g,p,B,I,t,e);p[x]=ie;const Se=ha(B);return Qs(B,!0),tv(I,ie,B),!function Np(e){return!(32&~e.flags)}(B)&&bo()&&Ep(g,p,ie,B),0===function _d(){return Wr.lFrame.elementDepthCount}()&&va(ie,p),function dh(){Wr.lFrame.elementDepthCount++}(),Se&&(d(g,p,B),m(g,B,p)),null!==l&&_(p,B),Nv}function Lv(){let e=Si();Oc()?fa():(e=e.parent,Qs(e,!1));const t=e;(function Yl(e){return Wr.skipHydrationRootTNode===e})(t)&&function Ja(){Wr.skipHydrationRootTNode=null}(),function hh(){Wr.lFrame.elementDepthCount--}();const r=pi();return r.firstCreatePass&&(vr(r,e),bs(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function vc(e){return!!(8&e.flags)}(t)&&k0(r,t,Cn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ec(e){return!!(16&e.flags)}(t)&&k0(r,t,Cn(),t.stylesWithoutHost,!1),Lv}function F0(e,t,r,l){return Nv(e,t,r,l),Lv(),F0}let wx=(e,t,r,l,p,g)=>(To(!0),vp(l,p,function Ji(){return Wr.lFrame.currentNamespace}()));function Pv(e,t,r){const l=Cn(),p=pi(),g=e+Gt,x=p.firstCreatePass?function FM(e,t,r,l,p){const g=t.consts,x=gn(g,l),I=fd(t,e,8,"ng-container",x);return null!==x&&pv(I,x,!0),_l(t,r,I,gn(g,p)),null!==t.queries&&t.queries.elementStart(t,I),I}(g,p,l,t,r):p.data[g];Qs(x,!0);const I=Ex(p,l,x,e);return l[g]=I,bo()&&Ep(p,l,I,x),va(I,l),ha(x)&&(d(p,l,x),m(p,x,l)),null!=r&&_(l,x),Pv}function Fv(){let e=Si();const t=pi();return Oc()?fa():(e=e.parent,Qs(e,!1)),t.firstCreatePass&&(vr(t,e),bs(e)&&t.queries.elementEnd(e)),Fv}function B0(e,t,r){return Pv(e,t,r),Fv(),B0}let Ex=(e,t,r,l)=>(To(!0),Ym(t[ri],""));function xx(){return Cn()}function U0(e,t,r){const l=Cn();return Ws(l,O(),t)&&ho(pi(),sr(),l,e,t,l[ri],r,!0),U0}function $0(e,t,r){const l=Cn();if(Ws(l,O(),t)){const g=pi(),x=sr();ho(g,x,l,e,t,Qw(It(g.data),x,l),r,!0)}return $0}const Ef=void 0;var jM=["en",[["a","p"],["AM","PM"],Ef],[["AM","PM"],Ef,Ef],[["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"]],Ef,[["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"]],Ef,[["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}",Ef,"{1} 'at' {0}",Ef],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $M(e){const r=Math.floor(Math.abs(e)),l=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===l?1:5}];let Yp={};function j0(e){const t=function VM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=Dx(t);if(r)return r;const l=t.split("-")[0];if(r=Dx(l),r)return r;if("en"===l)return jM;throw new tt(701,!1)}function Cx(e){return j0(e)[Qp.PluralCase]}function Dx(e){return e in Yp||(Yp[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),Yp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Bv="en-US";let Ax=Bv,Wx=(e,t,r)=>{};function W0(e,t,r,l){const p=Cn(),g=pi(),x=Si();return K0(g,p,p[ri],x,e,t,l),W0}function z0(e,t){const r=Si(),l=Cn(),p=pi();return K0(p,l,Qw(It(p.data),r,l),r,e,t),z0}function K0(e,t,r,l,p,g,x){const I=ha(l),ie=e.firstCreatePass&&Sp(e),Se=t[Ki],Ve=gf(t);let Nt=!0;if(3&l.type||x){const Bn=rs(l,t),Zn=x?x(Bn):Bn,dr=Ve.length,Un=x?ji=>x(qi(ji[l.index])):l.index;let xi=null;if(!x&&I&&(xi=function Ok(e,t,r,l){const p=e.cleanup;if(null!=p)for(let g=0;gB?I[B]:null}"string"==typeof x&&(g+=2)}return null}(e,t,p,l.index)),null!==xi)(xi.__ngLastListenerFn__||xi).__ngNextListenerFn__=g,xi.__ngLastListenerFn__=g,Nt=!1;else{g=Kx(l,t,Se,g),Wx(Bn,p,g);const ji=r.listen(Zn,p,g);Ve.push(g,ji),ie&&ie.push(p,Un,dr,dr+1)}}else g=Kx(l,t,Se,g);const Ut=l.outputs;let tn;if(Nt&&null!==Ut&&(tn=Ut[p])){const Bn=tn.length;if(Bn)for(let Zn=0;Zn-1?K(e.index,t):t,5);let I=zx(t,r,l,g),B=p.__ngNextListenerFn__;for(;B;)I=zx(t,r,B,g)&&I,B=B.__ngNextListenerFn__;return I}}function Gx(e=1){return function yr(e){return(Wr.lFrame.contextLView=function ui(e,t){for(;e>0;)t=t[Uo],e--;return t}(e,Wr.lFrame.contextLView))[Ki]}(e)}function Rk(e,t){let r=null;const l=function mb(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let p=0;pr._dirtyCounter.update(l=>l+1))}(t,dE(e,r,l,p))}function cC(e=1){un(zt()+e)}function uC(e){return F(function vd(){return Wr.lFrame.contextLView}(),Gt+e)}function bC(e,t=""){const r=Cn(),l=pi(),p=e+Gt,g=l.firstCreatePass?fd(l,p,1,t,null):l.data[p],x=wC(l,r,g,t,e);r[p]=x,bo()&&Ep(l,r,x,g),Qs(g,!1)}let wC=(e,t,r,l,p)=>(To(!0),function Xm(e,t){return e.createText(t)}(t[ri],l));function Q0(e){return Vv("",e,""),Q0}function Vv(e,t,r){const l=Cn(),p=$p(l,e,t,r);return p!==$i&&function md(e,t,r){const l=mc(t,e);!function U_(e,t,r){e.setValue(t,r)}(e[ri],l,r)}(l,Hn(),p),Vv}function Z0(e,t,r){pE(t)&&(t=t());const l=Cn();return Ws(l,O(),t)&&ho(pi(),sr(),l,e,t,l[ri],r,!1),Z0}function kC(e,t){const r=pE(e);return r&&e.set(t),r}function q0(e,t){const r=Cn(),l=pi(),p=Si();return K0(l,r,r[ri],p,e,t),q0}function J0(e,t,r,l,p){if(e=Ge(e),Array.isArray(e))for(let g=0;g>20;if(ts(e)||!e.multi){const Ut=new el(ie,p,Jd),tn=tw(B,t,p?Se:Se+Nt,Ve);-1===tn?(Lc(yh(I,x),g,B),ew(g,e,t.length),t.push(B),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),r.push(Ut),x.push(Ut)):(r[tn]=Ut,x[tn]=Ut)}else{const Ut=tw(B,t,Se+Nt,Ve),tn=tw(B,t,Se,Se+Nt),Zn=tn>=0&&r[tn];if(p&&!Zn||!p&&!(Ut>=0&&r[Ut])){Lc(yh(I,x),g,B);const dr=function qk(e,t,r,l,p){const g=new el(e,r,Jd);return g.multi=[],g.index=t,g.componentProviders=0,RC(g,p,l&&!r),g}(p?Zk:Qk,r.length,p,l,ie);!p&&Zn&&(r[tn].providerFactory=dr),ew(g,e,t.length,0),t.push(B),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),r.push(dr),x.push(dr)}else ew(g,e,Ut>-1?Ut:tn,RC(r[p?tn:Ut],ie,!p&&l));!p&&l&&Zn&&r[tn].componentProviders++}}}function ew(e,t,r,l){const p=ts(t),g=function Ml(e){return!!e.useClass}(t);if(p||g){const B=(g?Ge(t.useClass):t).prototype.ngOnDestroy;if(B){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!p&&t.multi){const Se=ie.indexOf(r);-1===Se?ie.push(r,[l,B]):ie[Se+1].push(l,B)}else ie.push(r,B)}}}function RC(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function tw(e,t,r,l){for(let p=r;p{r.providersResolver=(l,p)=>function Yk(e,t,r){const l=pi();if(l.firstCreatePass){const p=Yo(e);J0(r,l.data,l.blueprint,p,!0),J0(t,l.data,l.blueprint,p,!1)}}(l,p?p(e):e,t)}}function PC(e,t,r){const l=Zs()+e,p=Cn();return p[l]===$i?Iu(p,l,r?t.call(r):t()):xg(p,l)}function FC(e,t,r,l){return VC(Cn(),Zs(),e,t,r,l)}function BC(e,t,r,l,p){return HC(Cn(),Zs(),e,t,r,l,p)}function UC(e,t,r,l,p,g){return function WC(e,t,r,l,p,g,x,I){const B=t+r;return function Tv(e,t,r,l,p){const g=bf(e,t,r,l);return Ws(e,t+2,p)||g}(e,B,p,g,x)?Iu(e,B+3,I?l.call(I,p,g,x):l(p,g,x)):Og(e,B+3)}(Cn(),Zs(),e,t,r,l,p,g)}function $C(e,t,r,l,p,g,x){return function zC(e,t,r,l,p,g,x,I,B){const ie=t+r;return Tc(e,ie,p,g,x,I)?Iu(e,ie+4,B?l.call(B,p,g,x,I):l(p,g,x,I)):Og(e,ie+4)}(Cn(),Zs(),e,t,r,l,p,g,x)}function jC(e,t,r,l,p,g,x,I,B,ie,Se){const Ve=Zs()+e,Nt=Cn(),Ut=Tc(Nt,Ve,r,l,p,g);return Tc(Nt,Ve+4,x,I,B,ie)||Ut?Iu(Nt,Ve+8,Se?t.call(Se,r,l,p,g,x,I,B,ie):t(r,l,p,g,x,I,B,ie)):xg(Nt,Ve+8)}function Og(e,t){const r=e[t];return r===$i?void 0:r}function VC(e,t,r,l,p,g){const x=t+r;return Ws(e,x,p)?Iu(e,x+1,g?l.call(g,p):l(p)):Og(e,x+1)}function HC(e,t,r,l,p,g,x){const I=t+r;return bf(e,I,p,g)?Iu(e,I+2,x?l.call(x,p,g):l(p,g)):Og(e,I+2)}function GC(e,t){const r=pi();let l;const p=e+Gt;r.firstCreatePass?(l=function sI(e,t){if(t)for(let r=t.length-1;r>=0;r--){const l=t[r];if(e===l.name)return l}}(t,r.pipeRegistry),r.data[p]=l,l.onDestroy&&(r.destroyHooks??=[]).push(p,l.onDestroy)):l=r.data[p];const g=l.factory||(l.factory=So(l.type)),I=Oo(Jd);try{const B=Nl(!1),ie=g();return Nl(B),function Y0(e,t,r,l){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=l}(r,Cn(),p,ie),ie}finally{Oo(I)}}function XC(e,t,r){const l=e+Gt,p=Cn(),g=F(p,l);return Rg(p,l)?VC(p,Zs(),t,g.transform,r,g):g.transform(r)}function YC(e,t,r,l){const p=e+Gt,g=Cn(),x=F(g,p);return Rg(g,p)?HC(g,Zs(),t,x.transform,r,l,x):x.transform(r,l)}function Rg(e,t){return e[$n].data[t].pure}function QC(e,t){return uv(e,t)}class h2{full;major;minor;patch;constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}class PI{ngModuleFactory;componentFactories;constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let FI=(()=>{class e{compileModuleSync(r){return new Nb(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const l=this.compileModuleSync(r),g=Dl(fi(r).declarations).reduce((x,I)=>{const B=zr(I);return B&&x.push(new mg(B)),x},[]);return new PI(l,g)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$I=(()=>{class e{zone=ur(os);changeDetectionScheduler=ur(nc);applicationRef=ur(dc);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lw({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:r}){return e??=()=>new os({...cw(),scheduleInRootZone:r}),[{provide:os,useFactory:e},{provide:qn,multi:!0,useFactory:()=>{const l=ur($I,{optional:!0});return()=>l.initialize()}},{provide:qn,multi:!0,useFactory:()=>{const l=ur(VI);return()=>{l.initialize()}}},!0===t?{provide:Od,useValue:!0}:[],{provide:rc,useValue:r??Th}]}function cw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let VI=(()=>{class e{subscription=new Ht.yU;initialized=!1;zone=ur(os);pendingTasks=ur(wc);initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{os.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{os.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Lg=(()=>{class e{appRef=ur(dc);taskService=ur(wc);ngZone=ur(os);zonelessEnabled=ur(mu);disableScheduling=ur(Od,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ht.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Xu):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(ur(rc,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 Nh||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&5===r)return;let l=!1;switch(r){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,l=!0;break;case 13:this.appRef.dirtyFlags|=16,l=!0;break;case 12:l=!0;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(l))return;const p=this.useMicrotaskScheduler?dm:Rd;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(r){return!(this.disableScheduling&&!r||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Xu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(r),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,dm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dw=new dt("",{providedIn:"root",factory:()=>ur(dw,bi.Optional|bi.SkipSelf)||function HI(){return typeof $localize<"u"&&$localize.locale||Bv}()}),WI=new dt("",{providedIn:"root",factory:()=>"USD"}),zv=new dt("");function Kv(e){return!e.moduleRef}let ah=null;function JI(){return!1}let x2=(()=>class e{static __NG_ELEMENT_ID__=eO})();function eO(e){return function tO(e,t,r){if(Lo(e)&&!r){const l=K(e.index,t);return new lg(l,l)}return 175&e.type?new lg(t[vo],t):null}(Si(),Cn(),!(16&~e))}class S2{constructor(){}supports(t){return Sv(t)}create(t){return new sO(t)}}const oO=(e,t)=>t;class sO{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||oO}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,l=this._removalsHead,p=0,g=null;for(;r||l;){const x=!l||r&&r.currentIndex{x=this._trackByFn(p,I),null!==r&&Object.is(r.trackById,x)?(l&&(r=this._verifyReinsertion(r,I,x,p)),Object.is(r.item,I)||this._addIdentityChange(r,I)):(r=this._mismatch(r,I,x,p),l=!0),r=r._next,p++}),this.length=p;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,l,p){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,g,p)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(l,p))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,g,p)):t=this._addAfter(new aO(r,l),g,p),t}_verifyReinsertion(t,r,l,p){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==g?t=this._reinsertAfter(g,t._prev,p):t.currentIndex!=p&&(t.currentIndex=p,this._addToMoves(t,p)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const p=t._prevRemoved,g=t._nextRemoved;return null===p?this._removalsHead=g:p._nextRemoved=g,null===g?this._removalsTail=p:g._prevRemoved=p,this._insertAfter(t,r,l),this._addToMoves(t,l),t}_moveAfter(t,r,l){return this._unlink(t),this._insertAfter(t,r,l),this._addToMoves(t,l),t}_addAfter(t,r,l){return this._insertAfter(t,r,l),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,l){const p=null===r?this._itHead:r._next;return t._next=p,t._prev=r,null===p?this._itTail=t:p._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new T2),this._linkedRecords.put(t),t.currentIndex=l,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,l=t._next;return null===r?this._itHead=l:r._next=l,null===l?this._itTail=r:l._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new T2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class aO{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,r){this.item=t,this.trackById=r}}class lO{_head=null;_tail=null;add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===r||r<=l.currentIndex)&&Object.is(l.trackById,t))return l;return null}remove(t){const r=t._prevDup,l=t._nextDup;return null===r?this._head=l:r._nextDup=l,null===l?this._tail=r:l._prevDup=r,null===this._head}}class T2{map=new Map;put(t){const r=t.trackById;let l=this.map.get(r);l||(l=new lO,this.map.set(r,l)),l.add(t)}get(t,r){const p=this.map.get(t);return p?p.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function M2(e,t,r){const l=e.previousIndex;if(null===l)return l;let p=0;return r&&l{if(r&&r.key===p)this._maybeAddToChanges(r,l),this._appendAfter=r,r=r._next;else{const g=this._getOrCreateRecordForKey(p,l);r=this._insertBeforeOrAppend(r,g)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let l=r;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const l=t._prev;return r._next=t,r._prev=l,t._prev=r,l&&(l._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const p=this._records.get(t);this._maybeAddToChanges(p,r);const g=p._prev,x=p._next;return g&&(g._next=x),x&&(x._prev=g),p._next=null,p._prev=null,p}const l=new uO(t);return this._records.set(t,l),l.currentValue=r,this._addToAdditions(l),l}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(l=>r(t[l],l))}}class uO{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function I2(){return new _w([new S2])}let _w=(()=>{class e{factories;static \u0275prov=ai({token:e,providedIn:"root",factory:I2});constructor(r){this.factories=r}static create(r,l){if(null!=l){const p=l.factories.slice();r=r.concat(p)}return new e(r)}static extend(r){return{provide:e,useFactory:l=>e.create(r,l||I2()),deps:[[e,new Ts,new la]]}}find(r){const l=this.factories.find(p=>p.supports(r));if(null!=l)return l;throw new tt(901,!1)}}return e})();function O2(){return new vw([new k2])}let vw=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:O2});factories;constructor(r){this.factories=r}static create(r,l){if(l){const p=l.factories.slice();r=r.concat(p)}return new e(r)}static extend(r){return{provide:e,useFactory:l=>e.create(r,l||O2()),deps:[[e,new Ts,new la]]}}find(r){const l=this.factories.find(p=>p.supports(r));if(l)return l;throw new tt(901,!1)}}return e})();function CO(e){try{const{rootComponent:t,appProviders:r,platformProviders:l}=e,p=function qI(e=[]){if(ah)return ah;const t=function b2(e=[],t){return Qo.create({name:t,providers:[{provide:vl,useValue:"platform"},{provide:zv,useValue:new Set([()=>ah=null])},...e]})}(e);return ah=t,function N1(){!function _t(e){wn=e}(()=>{throw new tt(600,!1)})}(),function w2(e){const t=e.get(rd,null);$s(e,()=>{t?.forEach(r=>r())})}(t),t}(l),g=[lw({}),{provide:nc,useExisting:Lg},...r||[]];return function _2(e){const t=Kv(e)?e.r3Injector:e.moduleRef.injector,r=t.get(os);return r.run(()=>{Kv(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(xc,null);let p;if(r.runOutsideAngular(()=>{p=r.onError.subscribe({next:g=>{l.handleError(g)}})}),Kv(e)){const g=()=>t.destroy(),x=e.platformInjector.get(zv);x.add(g),t.onDestroy(()=>{p.unsubscribe(),x.delete(g)})}else{const g=()=>e.moduleRef.destroy(),x=e.platformInjector.get(zv);x.add(g),e.moduleRef.onDestroy(()=>{vv(e.allPlatformModules,e.moduleRef),p.unsubscribe(),x.delete(g)})}return function UA(e,t,r){try{const l=r();return $b(l)?l.catch(p=>{throw t.runOutsideAngular(()=>e.handleError(p)),p}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(l,r,()=>{const g=t.get(O1);return g.runInitializers(),g.donePromise.then(()=>{if(function KM(e){"string"==typeof e&&(Ax=e.toLowerCase().replace(/_/g,"-"))}(t.get(dw,Bv)||Bv),Kv(e)){const I=t.get(dc);return void 0!==e.rootComponent&&I.bootstrap(e.rootComponent),I}return function YI(e,t){const r=e.injector.get(dc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>r.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new tt(-403,!1);e.instance.ngDoBootstrap(r)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new p1({providers:g,parent:p,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:p,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function XO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function xw(e,t){oi("NgSignals");const r=bt(e);return t?.equal&&(r[C].equal=t.equal),r}function Jp(e){const t=T(null);try{return e()}finally{T(t)}}let sD=(()=>class e{view;node;constructor(r,l){this.view=r,this.node=l}static __NG_ELEMENT_ID__=eR})();function eR(){return new sD(Cn(),Si())}let nR=(()=>{class e extends R1{pendingTasks=ur(wc);taskId=null;schedule(r){super.schedule(r),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();class rR{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,r,l,p,g,x){this.scheduler=t,this.effectFn=r,this.zone=l,this.injector=g,this.watcher=function ht(e,t,r){const l=Object.create(Tn);r&&(l.consumerAllowSignalWrites=!0),l.fn=e,l.schedule=t;const p=B=>{l.cleanupFn=B};return l.ref={notify:()=>de(l),run:()=>{if(null===l.fn)return;if(function M(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Ae(l))return;l.hasRun=!0;const B=Ee(l);try{l.cleanupFn(),l.cleanupFn=Xt,l.fn(p)}finally{Le(l,B)}},cleanup:()=>l.cleanupFn(),destroy:()=>function x(B){(function g(B){return null===B.fn&&null===B.schedule})(B)||(we(B),B.cleanupFn(),B.fn=null,B.schedule=null,B.cleanupFn=Xt)}(l),[C]:l},l.ref}(I=>this.runEffect(I),()=>this.schedule(),x),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){this.injector.get(xc,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let Cw=!1;class sR{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function Dw(e,t){if(Cw)return function oR(e,t){oi("NgSignals"),!t?.injector&&Sa();const r=t?.injector??ur(Qo),l=!0!==t?.manualCleanup?r.get(ws):null,p=new rR(r.get(nR),e,typeof Zone>"u"?null:Zone.current,l,r,t?.allowSignalWrites??!1),g=r.get(x2,null,{optional:!0});return g&&8&g._lView[Tr]?(g._lView[te]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);oi("NgSignals"),!t?.injector&&Sa();const r=t?.injector??ur(Qo);let p,l=!0!==t?.manualCleanup?r.get(ws):null;const g=r.get(sD,null,{optional:!0}),x=r.get(nc);return null===g||t?.forceRoot?p=function uR(e,t,r){const l=Object.create(aR);return l.fn=e,l.scheduler=t,l.notifier=r,l.zone=typeof Zone<"u"?Zone.current:null,l.scheduler.schedule(l),l.notifier.notify(13),l}(e,r.get(Vb),x):(p=function cR(e,t,r){const l=Object.create(lR);return l.view=e,l.zone=typeof Zone<"u"?Zone.current:null,l.notifier=t,l.fn=r,e[ve]??=new Set,e[ve].add(l),l.consumerMarkedDirty(l),l}(g.view,x,e),l instanceof Fc&&l._lView===g.view&&(l=null)),p.injector=r,null!==l&&(p.onDestroyFn=l.onDestroy(()=>p.destroy())),new sR(p)}const aD={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:gu,run(){if(this.dirty=!1,this.hasRun&&!Ae(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=Ee(this),r=Zl(!1);try{this.maybeCleanup(),this.fn(e)}finally{Zl(r),Le(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},aR={...aD,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){we(this),this.onDestroyFn(),this.maybeCleanup()}},lR={...aD,consumerMarkedDirty(){this.view[Tr]|=8192,Is(this.view),this.notifier.notify(14)},destroy(){we(this),this.onDestroyFn(),this.maybeCleanup(),this.view[ve]?.delete(this)}};function vR(e,t){const r=zr(e),l=t.elementInjector||_i();return new mg(r).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function yR(e){const t=zr(e);if(!t)return null;const r=new mg(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},936:(o,s,n)=>{"use strict";n.d(s,{BC:()=>en,JD:()=>Ao,Q0:()=>sa,X1:()=>ua,YN:()=>Ua,cV:()=>Fn,cb:()=>Nn,cz:()=>De,hs:()=>Er,j4:()=>Ds,k0:()=>Ae,kq:()=>M,l_:()=>Rs,me:()=>_e,ok:()=>Ro,qT:()=>Li,tU:()=>jn,vO:()=>Wt,vS:()=>oa,xq:()=>Aa,ze:()=>Ho});var i=n(3107),a=n(4460),c=n(1787),y=n(2653),w=n(8447),C=n(7947);let T=(()=>{class ce{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Fe){this._renderer=Q,this._elementRef=Fe}setProperty(Q,Fe){this._renderer.setProperty(this._elementRef.nativeElement,Q,Fe)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ce})}return ce})(),S=(()=>{class ce extends T{static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,features:[i.Vt3]})}return ce})();const M=new i.nKC(""),X={provide:M,useExisting:(0,i.Rfq)(()=>_e),multi:!0},ne=new i.nKC("");let _e=(()=>{class ce extends T{_compositionMode;_composing=!1;constructor(Q,Fe,$t){super(Q,Fe),this._compositionMode=$t,null==this._compositionMode&&(this._compositionMode=!function Z(){const ce=(0,a.QT)()?(0,a.QT)().getUserAgent():"";return/android (\d+)/.test(ce.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(ne,8))};static \u0275dir=i.FsC({type:ce,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(Fe,$t){1&Fe&&i.bIt("input",function(Jr){return $t._handleInput(Jr.target.value)})("blur",function(){return $t.onTouched()})("compositionstart",function(){return $t._compositionStart()})("compositionend",function(Jr){return $t._compositionEnd(Jr.target.value)})},standalone:!1,features:[i.Jv_([X]),i.Vt3]})}return ce})();function pe(ce){return null==ce||("string"==typeof ce||Array.isArray(ce))&&0===ce.length}function de(ce){return null!=ce&&"number"==typeof ce.length}const De=new i.nKC(""),Ee=new i.nKC(""),Le=/^(?=.{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 Ae{static min(ue){return function we(ce){return ue=>{if(pe(ue.value)||pe(ce))return null;const Q=parseFloat(ue.value);return!isNaN(Q)&&Q{if(pe(ue.value)||pe(ce))return null;const Q=parseFloat(ue.value);return!isNaN(Q)&&Q>ce?{max:{max:ce,actual:ue.value}}:null}}(ue)}static required(ue){return ae(ue)}static requiredTrue(ue){return xe(ue)}static email(ue){return function Be(ce){return pe(ce.value)||Le.test(ce.value)?null:{email:!0}}(ue)}static minLength(ue){return function st(ce){return ue=>pe(ue.value)||!de(ue.value)?null:ue.value.length{if(pe(Fe.value))return null;const $t=Fe.value;return ue.test($t)?null:{pattern:{requiredPattern:Q,actualValue:$t}}}}(ue)}static nullValidator(ue){return null}static compose(ue){return _t(ue)}static composeAsync(ue){return Ue(ue)}}function ae(ce){return pe(ce.value)?{required:!0}:null}function xe(ce){return!0===ce.value?null:{required:!0}}function lt(ce){return ue=>de(ue.value)&&ue.value.length>ce?{maxlength:{requiredLength:ce,actualLength:ue.value.length}}:null}function at(ce){return null}function sn(ce){return null!=ce}function fn(ce){return(0,i.jNT)(ce)?(0,c.H)(ce):ce}function En(ce){let ue={};return ce.forEach(Q=>{ue=null!=Q?{...ue,...Q}:ue}),0===Object.keys(ue).length?null:ue}function Wn(ce,ue){return ue.map(Q=>Q(ce))}function Je(ce){return ce.map(ue=>function wn(ce){return!ce.validate}(ue)?ue:Q=>ue.validate(Q))}function _t(ce){if(!ce)return null;const ue=ce.filter(sn);return 0==ue.length?null:function(Q){return En(Wn(Q,ue))}}function ze(ce){return null!=ce?_t(Je(ce)):null}function Ue(ce){if(!ce)return null;const ue=ce.filter(sn);return 0==ue.length?null:function(Q){const Fe=Wn(Q,ue).map(fn);return(0,y.p)(Fe).pipe((0,C.T)(En))}}function Ft(ce){return null!=ce?Ue(Je(ce)):null}function Ke(ce,ue){return null===ce?[ue]:Array.isArray(ce)?[...ce,ue]:[ce,ue]}function Ze(ce){return ce._rawValidators}function it(ce){return ce._rawAsyncValidators}function Ot(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function Qt(ce,ue){return Array.isArray(ce)?ce.includes(ue):ce===ue}function Me(ce,ue){const Q=Ot(ue);return Ot(ce).forEach($t=>{Qt(Q,$t)||Q.push($t)}),Q}function ht(ce,ue){return Ot(ue).filter(Q=>!Qt(ce,Q))}class Xt{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(ue){this._rawValidators=ue||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(ue){this._rawAsyncValidators=ue||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(ue){this._onDestroyCallbacks.push(ue)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ue=>ue()),this._onDestroyCallbacks=[]}reset(ue=void 0){this.control&&this.control.reset(ue)}hasError(ue,Q){return!!this.control&&this.control.hasError(ue,Q)}getError(ue,Q){return this.control?this.control.getError(ue,Q):null}}class Tn extends Xt{name;get formDirective(){return null}get path(){return null}}class Wt extends Xt{_parent=null;name=null;valueAccessor=null}class Zt{_cd;constructor(ue){this._cd=ue}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 en=(()=>{class ce extends Zt{constructor(Q){super(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Wt,2))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,$t){2&Fe&&i.AVh("ng-untouched",$t.isUntouched)("ng-touched",$t.isTouched)("ng-pristine",$t.isPristine)("ng-dirty",$t.isDirty)("ng-valid",$t.isValid)("ng-invalid",$t.isInvalid)("ng-pending",$t.isPending)},standalone:!1,features:[i.Vt3]})}return ce})(),Nn=(()=>{class ce extends Zt{constructor(Q){super(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,10))};static \u0275dir=i.FsC({type:ce,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,$t){2&Fe&&i.AVh("ng-untouched",$t.isUntouched)("ng-touched",$t.isTouched)("ng-pristine",$t.isPristine)("ng-dirty",$t.isDirty)("ng-valid",$t.isValid)("ng-invalid",$t.isInvalid)("ng-pending",$t.isPending)("ng-submitted",$t.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ce})();const Ln="VALID",lr="INVALID",Dn="PENDING",Hr="DISABLED";class Mr{}class Vr extends Mr{value;source;constructor(ue,Q){super(),this.value=ue,this.source=Q}}class vt extends Mr{pristine;source;constructor(ue,Q){super(),this.pristine=ue,this.source=Q}}class Vt extends Mr{touched;source;constructor(ue,Q){super(),this.touched=ue,this.source=Q}}class Oe extends Mr{status;source;constructor(ue,Q){super(),this.status=ue,this.source=Q}}class Ge extends Mr{source;constructor(ue){super(),this.source=ue}}class je extends Mr{source;constructor(ue){super(),this.source=ue}}function Dt(ce){return(er(ce)?ce.validators:ce)||null}function Bt(ce,ue){return(er(ue)?ue.asyncValidators:ce)||null}function er(ce){return null!=ce&&!Array.isArray(ce)&&"object"==typeof ce}function xr(ce,ue,Q){const Fe=ce.controls;if(!(ue?Object.keys(Fe):Fe).length)throw new i.wOt(1e3,"");if(!Fe[Q])throw new i.wOt(1001,"")}function si(ce,ue,Q){ce._forEachChild((Fe,$t)=>{if(void 0===Q[$t])throw new i.wOt(1002,"")})}class hi{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(ue,Q){this._assignValidators(ue),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(ue){this._rawValidators=this._composedValidatorFn=ue}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ue){this._rawAsyncValidators=this._composedAsyncValidatorFn=ue}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(ue){(0,i.O8t)(()=>this.statusReactive.set(ue))}_status=(0,i.EWP)(()=>this.statusReactive());statusReactive=(0,i.vPA)(void 0);get valid(){return this.status===Ln}get invalid(){return this.status===lr}get pending(){return this.status==Dn}get disabled(){return this.status===Hr}get enabled(){return this.status!==Hr}errors;get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(ue){(0,i.O8t)(()=>this.pristineReactive.set(ue))}_pristine=(0,i.EWP)(()=>this.pristineReactive());pristineReactive=(0,i.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(ue){(0,i.O8t)(()=>this.touchedReactive.set(ue))}_touched=(0,i.EWP)(()=>this.touchedReactive());touchedReactive=(0,i.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ue){this._assignValidators(ue)}setAsyncValidators(ue){this._assignAsyncValidators(ue)}addValidators(ue){this.setValidators(Me(ue,this._rawValidators))}addAsyncValidators(ue){this.setAsyncValidators(Me(ue,this._rawAsyncValidators))}removeValidators(ue){this.setValidators(ht(ue,this._rawValidators))}removeAsyncValidators(ue){this.setAsyncValidators(ht(ue,this._rawAsyncValidators))}hasValidator(ue){return Qt(this._rawValidators,ue)}hasAsyncValidator(ue){return Qt(this._rawAsyncValidators,ue)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ue={}){const Q=!1===this.touched;this.touched=!0;const Fe=ue.sourceControl??this;this._parent&&!ue.onlySelf&&this._parent.markAsTouched({...ue,sourceControl:Fe}),Q&&!1!==ue.emitEvent&&this._events.next(new Vt(!0,Fe))}markAllAsTouched(ue={}){this.markAsTouched({onlySelf:!0,emitEvent:ue.emitEvent,sourceControl:this}),this._forEachChild(Q=>Q.markAllAsTouched(ue))}markAsUntouched(ue={}){const Q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Fe=ue.sourceControl??this;this._forEachChild($t=>{$t.markAsUntouched({onlySelf:!0,emitEvent:ue.emitEvent,sourceControl:Fe})}),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue,Fe),Q&&!1!==ue.emitEvent&&this._events.next(new Vt(!1,Fe))}markAsDirty(ue={}){const Q=!0===this.pristine;this.pristine=!1;const Fe=ue.sourceControl??this;this._parent&&!ue.onlySelf&&this._parent.markAsDirty({...ue,sourceControl:Fe}),Q&&!1!==ue.emitEvent&&this._events.next(new vt(!1,Fe))}markAsPristine(ue={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Fe=ue.sourceControl??this;this._forEachChild($t=>{$t.markAsPristine({onlySelf:!0,emitEvent:ue.emitEvent})}),this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue,Fe),Q&&!1!==ue.emitEvent&&this._events.next(new vt(!0,Fe))}markAsPending(ue={}){this.status=Dn;const Q=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Oe(this.status,Q)),this.statusChanges.emit(this.status)),this._parent&&!ue.onlySelf&&this._parent.markAsPending({...ue,sourceControl:Q})}disable(ue={}){const Q=this._parentMarkedDirty(ue.onlySelf);this.status=Hr,this.errors=null,this._forEachChild($t=>{$t.disable({...ue,onlySelf:!0})}),this._updateValue();const Fe=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Vr(this.value,Fe)),this._events.next(new Oe(this.status,Fe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ue,skipPristineCheck:Q},this),this._onDisabledChange.forEach($t=>$t(!0))}enable(ue={}){const Q=this._parentMarkedDirty(ue.onlySelf);this.status=Ln,this._forEachChild(Fe=>{Fe.enable({...ue,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent}),this._updateAncestors({...ue,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Fe=>Fe(!1))}_updateAncestors(ue,Q){this._parent&&!ue.onlySelf&&(this._parent.updateValueAndValidity(ue),ue.skipPristineCheck||this._parent._updatePristine({},Q),this._parent._updateTouched({},Q))}setParent(ue){this._parent=ue}getRawValue(){return this.value}updateValueAndValidity(ue={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Fe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ln||this.status===Dn)&&this._runAsyncValidator(Fe,ue.emitEvent)}const Q=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Vr(this.value,Q)),this._events.next(new Oe(this.status,Q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ue.onlySelf&&this._parent.updateValueAndValidity({...ue,sourceControl:Q})}_updateTreeValidity(ue={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(ue)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hr:Ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ue,Q){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Fe=fn(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe($t=>{this._hasOwnPendingAsyncValidator=null,this.setErrors($t,{emitEvent:Q,shouldHaveEmitted:ue})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const ue=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,ue}return!1}setErrors(ue,Q={}){this.errors=ue,this._updateControlsErrors(!1!==Q.emitEvent,this,Q.shouldHaveEmitted)}get(ue){let Q=ue;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Fe,$t)=>Fe&&Fe._find($t),this)}getError(ue,Q){const Fe=Q?this.get(Q):this;return Fe&&Fe.errors?Fe.errors[ue]:null}hasError(ue,Q){return!!this.getError(ue,Q)}get root(){let ue=this;for(;ue._parent;)ue=ue._parent;return ue}_updateControlsErrors(ue,Q,Fe){this.status=this._calculateStatus(),ue&&this.statusChanges.emit(this.status),(ue||Fe)&&this._events.next(new Oe(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ue,Q,Fe)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?Hr:this.errors?lr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(lr)?lr:Ln}_anyControlsHaveStatus(ue){return this._anyControls(Q=>Q.status===ue)}_anyControlsDirty(){return this._anyControls(ue=>ue.dirty)}_anyControlsTouched(){return this._anyControls(ue=>ue.touched)}_updatePristine(ue,Q){const Fe=!this._anyControlsDirty(),$t=this.pristine!==Fe;this.pristine=Fe,this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue,Q),$t&&this._events.next(new vt(this.pristine,Q))}_updateTouched(ue={},Q){this.touched=this._anyControlsTouched(),this._events.next(new Vt(this.touched,Q)),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue,Q)}_onDisabledChange=[];_registerOnCollectionChange(ue){this._onCollectionChange=ue}_setUpdateStrategy(ue){er(ue)&&null!=ue.updateOn&&(this._updateOn=ue.updateOn)}_parentMarkedDirty(ue){return!ue&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ue){return null}_assignValidators(ue){this._rawValidators=Array.isArray(ue)?ue.slice():ue,this._composedValidatorFn=function ct(ce){return Array.isArray(ce)?ze(ce):ce||null}(this._rawValidators)}_assignAsyncValidators(ue){this._rawAsyncValidators=Array.isArray(ue)?ue.slice():ue,this._composedAsyncValidatorFn=function xn(ce){return Array.isArray(ce)?Ft(ce):ce||null}(this._rawAsyncValidators)}}class Zi extends hi{constructor(ue,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this.controls=ue,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(ue,Q){return this.controls[ue]?this.controls[ue]:(this.controls[ue]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(ue,Q,Fe={}){this.registerControl(ue,Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}removeControl(ue,Q={}){this.controls[ue]&&this.controls[ue]._registerOnCollectionChange(()=>{}),delete this.controls[ue],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(ue,Q,Fe={}){this.controls[ue]&&this.controls[ue]._registerOnCollectionChange(()=>{}),delete this.controls[ue],Q&&this.registerControl(ue,Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}contains(ue){return this.controls.hasOwnProperty(ue)&&this.controls[ue].enabled}setValue(ue,Q={}){si(this,0,ue),Object.keys(ue).forEach(Fe=>{xr(this,!0,Fe),this.controls[Fe].setValue(ue[Fe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){null!=ue&&(Object.keys(ue).forEach(Fe=>{const $t=this.controls[Fe];$t&&$t.patchValue(ue[Fe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ue={},Q={}){this._forEachChild((Fe,$t)=>{Fe.reset(ue?ue[$t]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ue,Q,Fe)=>(ue[Fe]=Q.getRawValue(),ue))}_syncPendingControls(){let ue=this._reduceChildren(!1,(Q,Fe)=>!!Fe._syncPendingControls()||Q);return ue&&this.updateValueAndValidity({onlySelf:!0}),ue}_forEachChild(ue){Object.keys(this.controls).forEach(Q=>{const Fe=this.controls[Q];Fe&&ue(Fe,Q)})}_setUpControls(){this._forEachChild(ue=>{ue.setParent(this),ue._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ue){for(const[Q,Fe]of Object.entries(this.controls))if(this.contains(Q)&&ue(Fe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Fe,$t)=>((Fe.enabled||this.disabled)&&(Q[$t]=Fe.value),Q))}_reduceChildren(ue,Q){let Fe=ue;return this._forEachChild(($t,wr)=>{Fe=Q(Fe,$t,wr)}),Fe}_allControlsDisabled(){for(const ue of Object.keys(this.controls))if(this.controls[ue].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ue){return this.controls.hasOwnProperty(ue)?this.controls[ue]:null}}class Rt extends Zi{}const vn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function Co(ce,ue){return[...ue.path,ce]}function Ni(ce,ue,Q=fr){qo(ce,ue),ue.valueAccessor.writeValue(ce.value),(ce.disabled||"always"===Q)&&ue.valueAccessor.setDisabledState?.(ce.disabled),function Jo(ce,ue){ue.valueAccessor.registerOnChange(Q=>{ce._pendingValue=Q,ce._pendingChange=!0,ce._pendingDirty=!0,"change"===ce.updateOn&&ia(ce,ue)})}(ce,ue),function ao(ce,ue){const Q=(Fe,$t)=>{ue.valueAccessor.writeValue(Fe),$t&&ue.viewToModelUpdate(Fe)};ce.registerOnChange(Q),ue._registerOnDestroy(()=>{ce._unregisterOnChange(Q)})}(ce,ue),function Fo(ce,ue){ue.valueAccessor.registerOnTouched(()=>{ce._pendingTouched=!0,"blur"===ce.updateOn&&ce._pendingChange&&ia(ce,ue),"submit"!==ce.updateOn&&ce.markAsTouched()})}(ce,ue),function ai(ce,ue){if(ue.valueAccessor.setDisabledState){const Q=Fe=>{ue.valueAccessor.setDisabledState(Fe)};ce.registerOnDisabledChange(Q),ue._registerOnDestroy(()=>{ce._unregisterOnDisabledChange(Q)})}}(ce,ue)}function ds(ce,ue,Q=!0){const Fe=()=>{};ue.valueAccessor&&(ue.valueAccessor.registerOnChange(Fe),ue.valueAccessor.registerOnTouched(Fe)),fo(ce,ue),ce&&(ue._invokeOnDestroyCallbacks(),ce._registerOnCollectionChange(()=>{}))}function $o(ce,ue){ce.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(ue)})}function qo(ce,ue){const Q=Ze(ce);null!==ue.validator?ce.setValidators(Ke(Q,ue.validator)):"function"==typeof Q&&ce.setValidators([Q]);const Fe=it(ce);null!==ue.asyncValidator?ce.setAsyncValidators(Ke(Fe,ue.asyncValidator)):"function"==typeof Fe&&ce.setAsyncValidators([Fe]);const $t=()=>ce.updateValueAndValidity();$o(ue._rawValidators,$t),$o(ue._rawAsyncValidators,$t)}function fo(ce,ue){let Q=!1;if(null!==ce){if(null!==ue.validator){const $t=Ze(ce);if(Array.isArray($t)&&$t.length>0){const wr=$t.filter(Jr=>Jr!==ue.validator);wr.length!==$t.length&&(Q=!0,ce.setValidators(wr))}}if(null!==ue.asyncValidator){const $t=it(ce);if(Array.isArray($t)&&$t.length>0){const wr=$t.filter(Jr=>Jr!==ue.asyncValidator);wr.length!==$t.length&&(Q=!0,ce.setAsyncValidators(wr))}}}const Fe=()=>{};return $o(ue._rawValidators,Fe),$o(ue._rawAsyncValidators,Fe),Q}function ia(ce,ue){ce._pendingDirty&&ce.markAsDirty(),ce.setValue(ce._pendingValue,{emitModelToViewChange:!1}),ue.viewToModelUpdate(ce._pendingValue),ce._pendingChange=!1}function po(ce,ue){qo(ce,ue)}function Ye(ce,ue){if(!ce.hasOwnProperty("model"))return!1;const Q=ce.model;return!!Q.isFirstChange()||!Object.is(ue,Q.currentValue)}function gt(ce,ue){ce._syncPendingControls(),ue.forEach(Q=>{const Fe=Q.control;"submit"===Fe.updateOn&&Fe._pendingChange&&(Q.viewToModelUpdate(Fe._pendingValue),Fe._pendingChange=!1)})}function jt(ce,ue){if(!ue)return null;let Q,Fe,$t;return Array.isArray(ue),ue.forEach(wr=>{wr.constructor===_e?Q=wr:function Re(ce){return Object.getPrototypeOf(ce.constructor)===S}(wr)?Fe=wr:$t=wr}),$t||Fe||Q||null}const Sn={provide:Tn,useExisting:(0,i.Rfq)(()=>Fn)},An=Promise.resolve();let Fn=(()=>{class ce extends Tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Fe,$t){super(),this.callSetDisabledState=$t,this.form=new Zi({},ze(Q),Ft(Fe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Q.control=Fe.registerControl(Q.name,Q.control),Ni(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Fe&&Fe.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){An.then(()=>{const Fe=this._findContainer(Q.path),$t=new Zi({});po($t,Q),Fe.registerControl(Q.name,$t),$t.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Fe&&Fe.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Fe){An.then(()=>{this.form.get(Q.path).setValue(Fe)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),gt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("submit",function(Jr){return $t.onSubmit(Jr)})("reset",function(){return $t.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Sn]),i.Vt3]})}return ce})();function zn(ce,ue){const Q=ce.indexOf(ue);Q>-1&&ce.splice(Q,1)}function tr(ce){return"object"==typeof ce&&null!==ce&&2===Object.keys(ce).length&&"value"in ce&&"disabled"in ce}const cr=class extends hi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(ue=null,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this._applyFormState(ue),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),er(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=tr(ue)?ue.value:ue)}setValue(ue,Q={}){this.value=this._pendingValue=ue,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Fe=>Fe(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){this.setValue(ue,Q)}reset(ue=this.defaultValue,Q={}){this._applyFormState(ue),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(ue){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ue){this._onChange.push(ue)}_unregisterOnChange(ue){zn(this._onChange,ue)}registerOnDisabledChange(ue){this._onDisabledChange.push(ue)}_unregisterOnDisabledChange(ue){zn(this._onDisabledChange,ue)}_forEachChild(ue){}_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(ue){tr(ue)?(this.value=this._pendingValue=ue.value,ue.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ue}},Er=cr,es={provide:Wt,useExisting:(0,i.Rfq)(()=>oa)},zs=Promise.resolve();let oa=(()=>{class ce extends Wt{_changeDetectorRef;callSetDisabledState;control=new cr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Fe,$t,wr,Jr,ts){super(),this._changeDetectorRef=Jr,this.callSetDisabledState=ts,this._parent=Q,this._setValidators(Fe),this._setAsyncValidators($t),this.valueAccessor=jt(0,wr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Fe=Q.name.previousValue;this.formDirective.removeControl({name:Fe,path:this._getPath(Fe)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),Ye(Q,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(Q){this.viewModel=Q,this.update.emit(Q)}_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(){Ni(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(Q){zs.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Fe=Q.isDisabled.currentValue,$t=0!==Fe&&(0,i.L39)(Fe);zs.then(()=>{$t&&!this.control.disabled?this.control.disable():!$t&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?Co(Q,this._parent):[Q]}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,9),i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(i.gRc,8),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,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"],standalone:!1,features:[i.Jv_([es]),i.Vt3,i.OA$]})}return ce})(),Li=(()=>{class ce{static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275dir=i.FsC({type:ce,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ce})();const bi={provide:M,useExisting:(0,i.Rfq)(()=>sa),multi:!0};let sa=(()=>{class ce extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Fe=>{Q(""==Fe?null:parseFloat(Fe))}}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("input",function(Jr){return $t.onChange(Jr.target.value)})("blur",function(){return $t.onTouched()})},standalone:!1,features:[i.Jv_([bi]),i.Vt3]})}return ce})();const mo=new i.nKC(""),Go={provide:Wt,useExisting:(0,i.Rfq)(()=>Rs)};let Rs=(()=>{class ce extends Wt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Fe,$t,wr,Jr){super(),this._ngModelWarningConfig=wr,this.callSetDisabledState=Jr,this._setValidators(Q),this._setAsyncValidators(Fe),this.valueAccessor=jt(0,$t)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Fe=Q.form.previousValue;Fe&&ds(Fe,this,!1),Ni(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ye(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ds(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(mo,8),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Go]),i.Vt3,i.OA$]})}return ce})();const Xr={provide:Tn,useExisting:(0,i.Rfq)(()=>Ds)};let Ds=(()=>{class ce extends Tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Fe,$t){super(),this.callSetDisabledState=$t,this._setValidators(Q),this._setAsyncValidators(Fe)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Fe=this.form.get(Q.path);return Ni(Fe,Q,this.callSetDisabledState),Fe.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Fe}getControl(Q){return this.form.get(Q.path)}removeControl(Q){ds(Q.control||null,Q,!1),function kt(ce,ue){const Q=ce.indexOf(ue);Q>-1&&ce.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Fe){this.form.get(Q.path).setValue(Fe)}onSubmit(Q){return this._submittedReactive.set(!0),gt(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new Ge(this.control)),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this._submittedReactive.set(!1),this.form._events.next(new je(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Fe=Q.control,$t=this.form.get(Q.path);Fe!==$t&&(ds(Fe||null,Q),(ce=>ce instanceof cr)($t)&&(Ni($t,Q,this.callSetDisabledState),Q.control=$t))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Fe=this.form.get(Q.path);po(Fe,Q),Fe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Fe=this.form.get(Q.path);Fe&&function Ii(ce,ue){return fo(ce,ue)}(Fe,Q)&&Fe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qo(this.form,this),this._oldForm&&fo(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formGroup",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("submit",function(Jr){return $t.onSubmit(Jr)})("reset",function(){return $t.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Xr]),i.Vt3,i.OA$]})}return ce})();const _o={provide:Wt,useExisting:(0,i.Rfq)(()=>Ao)};let Ao=(()=>{class ce extends Wt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Fe,$t,wr,Jr){super(),this._ngModelWarningConfig=Jr,this._parent=Q,this._setValidators(Fe),this._setAsyncValidators($t),this.valueAccessor=jt(0,wr)}ngOnChanges(Q){this._added||this._setUpControl(),Ye(Q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}get path(){return Co(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 \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,13),i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(mo,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[i.Jv_([_o]),i.Vt3,i.OA$]})}return ce})();let Bo=(()=>{class ce{_validator=at;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Fe=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Fe),this._validator=this._enabled?this.createValidator(Fe):at,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275dir=i.FsC({type:ce,features:[i.OA$]})}return ce})();const Us={provide:De,useExisting:(0,i.Rfq)(()=>Qa),multi:!0},ca={provide:De,useExisting:(0,i.Rfq)(()=>Aa),multi:!0};let Qa=(()=>{class ce extends Bo{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>ae;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("required",$t._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Us]),i.Vt3]})}return ce})(),Aa=(()=>{class ce extends Qa{createValidator=Q=>xe;static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("required",$t._enabled?"":null)},standalone:!1,features:[i.Jv_([ca]),i.Vt3]})}return ce})();const Ct={provide:De,useExisting:(0,i.Rfq)(()=>jn),multi:!0};let jn=(()=>{class ce extends Bo{maxlength;inputName="maxlength";normalizeInput=Q=>function Ns(ce){return"number"==typeof ce?ce:parseInt(ce,10)}(Q);createValidator=Q=>lt(Q);static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("maxlength",$t._enabled?$t.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([Ct]),i.Vt3]})}return ce})(),kr=(()=>{class ce{static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({})}return ce})();class fi extends hi{constructor(ue,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this.controls=ue,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(ue){return this.controls[this._adjustIndex(ue)]}push(ue,Q={}){this.controls.push(ue),this._registerControl(ue),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(ue,Q,Fe={}){this.controls.splice(ue,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent})}removeAt(ue,Q={}){let Fe=this._adjustIndex(ue);Fe<0&&(Fe=0),this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),this.controls.splice(Fe,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ue,Q,Fe={}){let $t=this._adjustIndex(ue);$t<0&&($t=0),this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),this.controls.splice($t,1),Q&&(this.controls.splice($t,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ue,Q={}){si(this,0,ue),ue.forEach((Fe,$t)=>{xr(this,!1,$t),this.at($t).setValue(Fe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){null!=ue&&(ue.forEach((Fe,$t)=>{this.at($t)&&this.at($t).patchValue(Fe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ue=[],Q={}){this._forEachChild((Fe,$t)=>{Fe.reset(ue[$t],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(ue=>ue.getRawValue())}clear(ue={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ue.emitEvent}))}_adjustIndex(ue){return ue<0?ue+this.length:ue}_syncPendingControls(){let ue=this.controls.reduce((Q,Fe)=>!!Fe._syncPendingControls()||Q,!1);return ue&&this.updateValueAndValidity({onlySelf:!0}),ue}_forEachChild(ue){this.controls.forEach((Q,Fe)=>{ue(Q,Fe)})}_updateValue(){this.value=this.controls.filter(ue=>ue.enabled||this.disabled).map(ue=>ue.value)}_anyControls(ue){return this.controls.some(Q=>Q.enabled&&ue(Q))}_setUpControls(){this._forEachChild(ue=>this._registerControl(ue))}_allControlsDisabled(){for(const ue of this.controls)if(ue.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ue){ue.setParent(this),ue._registerOnCollectionChange(this._onCollectionChange)}_find(ue){return this.at(ue)??null}}function Fi(ce){return!!ce&&(void 0!==ce.asyncValidators||void 0!==ce.validators||void 0!==ce.updateOn)}let Ro=(()=>{class ce{useNonNullable=!1;get nonNullable(){const Q=new ce;return Q.useNonNullable=!0,Q}group(Q,Fe=null){const $t=this._reduceControls(Q);let wr={};return Fi(Fe)?wr=Fe:null!==Fe&&(wr.validators=Fe.validator,wr.asyncValidators=Fe.asyncValidator),new Zi($t,wr)}record(Q,Fe=null){const $t=this._reduceControls(Q);return new Rt($t,Fe)}control(Q,Fe,$t){let wr={};return this.useNonNullable?(Fi(Fe)?wr=Fe:(wr.validators=Fe,wr.asyncValidators=$t),new cr(Q,{...wr,nonNullable:!0})):new cr(Q,Fe,$t)}array(Q,Fe,$t){const wr=Q.map(Jr=>this._createControl(Jr));return new fi(wr,Fe,$t)}_reduceControls(Q){const Fe={};return Object.keys(Q).forEach($t=>{Fe[$t]=this._createControl(Q[$t])}),Fe}_createControl(Q){return Q instanceof cr||Q instanceof hi?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275prov=i.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),Ho=(()=>{class ce extends Ro{group(Q,Fe=null){return super.group(Q,Fe)}control(Q,Fe,$t){return super.control(Q,Fe,$t)}array(Q,Fe,$t){return super.array(Q,Fe,$t)}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275prov=i.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),Ua=(()=>{class ce{static withConfig(Q){return{ngModule:ce,providers:[{provide:vn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({imports:[kr]})}return ce})(),ua=(()=>{class ce{static withConfig(Q){return{ngModule:ce,providers:[{provide:mo,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:vn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({imports:[kr]})}return ce})()},9471:(o,s,n)=>{"use strict";n.d(s,{$z:()=>le,Hl:()=>Wn,iY:()=>fn,pQ:()=>En});var i=n(3107),a=n(8559),c=n(2147),y=n(2902),w=n(5467);const C=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],k="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",ne=["mat-icon-button",""],_e=["*"],de=new i.nKC("MAT_BUTTON_CONFIG"),Ee=[{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 Le=(()=>{class wn{_elementRef=(0,i.WQX)(i.aKT);_platform=(0,i.WQX)(c.OD);_ngZone=(0,i.WQX)(i.SKi);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_rippleLoader=(0,i.WQX)(y.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(_t){this._disableRipple=_t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(_t){this._disabled=_t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const _t=(0,i.WQX)(de,{optional:!0}),ze=this._elementRef.nativeElement,Ue=ze.classList;this.disabledInteractive=_t?.disabledInteractive??!1,this.color=_t?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ft,mdcClasses:Ke}of Ee)ze.hasAttribute(Ft)&&Ue.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(_t="program",ze){_t?this._focusMonitor.focusVia(this._elementRef.nativeElement,_t,ze):this._elementRef.nativeElement.focus(ze)}_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 \u0275fac=function(ze){return new(ze||wn)};static \u0275dir=i.FsC({type:wn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",i.L39],disabled:[2,"disabled","disabled",i.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",i.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",i.L39]},features:[i.GFd]})}return wn})(),we=(()=>{class wn extends Le{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=_t=>{this.disabled&&(_t.preventDefault(),_t.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275dir=i.FsC({type:wn,inputs:{tabIndex:[2,"tabIndex","tabIndex",_t=>null==_t?void 0:(0,i.Udg)(_t)]},features:[i.GFd,i.Vt3]})}return wn})(),le=(()=>{class wn extends Le{static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275cmp=i.VBU({type:wn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(T),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&ze&&i.AVh("mdc-button__ripple",!Ue._isFab)("mdc-fab__ripple",Ue._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, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-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-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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, 1px);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-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-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-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return wn})(),fn=(()=>{class wn extends Le{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||wn)};static \u0275cmp=i.VBU({type:wn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:ne,ngContentSelectors:_e,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.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, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.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}',k],encapsulation:2,changeDetection:0})}return wn})(),En=(()=>{class wn extends we{static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275cmp=i.VBU({type:wn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("tabindex",Ue.disabled&&!Ue.disabledInteractive?-1:Ue.tabIndex)("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:ne,ngContentSelectors:_e,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.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, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.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}',k],encapsulation:2,changeDetection:0})}return wn})(),Wn=(()=>{class wn{static \u0275fac=function(ze){return new(ze||wn)};static \u0275mod=i.$C({type:wn});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return wn})()},2902:(o,s,n)=>{"use strict";n.d(s,{Ah:()=>Ze,Ej:()=>Mr,Ju:()=>Be,MI:()=>Ne,MJ:()=>bt,N:()=>le,QC:()=>L,Sy:()=>On,TL:()=>Tt,X0:()=>xe,de:()=>at,es:()=>Ke,is:()=>z,jb:()=>mt,pZ:()=>Te,r6:()=>At,tO:()=>Vr,wT:()=>ft,yE:()=>ae});var i=n(3107),a=n(8559),c=n(2944),y=n(8447),w=n(2147),C=n(3022),T=n(5467),S=n(5919),M=n(4460);const X=["text"],Z=[[["mat-icon"]],"*"],ne=["mat-icon","*"];function _e(vt,Vt){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",1),2&vt){const Oe=i.XpG();i.Y8G("disabled",Oe.disabled)("state",Oe.selected?"checked":"unchecked")}}function pe(vt,Vt){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",3),2&vt){const Oe=i.XpG();i.Y8G("disabled",Oe.disabled)}}function de(vt,Vt){if(1&vt&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&vt){const Oe=i.XpG();i.R7$(),i.SpI("(",Oe.group.label,")")}}const De=["mat-internal-form-field",""],Ee=["*"],le=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let ae=(()=>{class vt{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return vt})();class xe{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(Vt,Oe,Ge,je,Dt){this._defaultMatcher=Vt,this.ngControl=Oe,this._parentFormGroup=Ge,this._parentForm=je,this._stateChanges=Dt}updateErrorState(){const Vt=this.errorState,Oe=this._parentFormGroup||this._parentForm,Ge=this.matcher||this._defaultMatcher,je=this.ngControl?this.ngControl.control:null,Dt=Ge?.isErrorState(je,Oe)??!1;Dt!==Vt&&(this.errorState=Dt,this._stateChanges.next())}}const Be=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),lt="Method not implemented";class bt{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime(Vt,Oe,Ge,je){throw new Error(lt)}getHours(Vt){throw new Error(lt)}getMinutes(Vt){throw new Error(lt)}getSeconds(Vt){throw new Error(lt)}parseTime(Vt,Oe){throw new Error(lt)}addSeconds(Vt,Oe){throw new Error(lt)}getValidDateOrNull(Vt){return this.isDateInstance(Vt)&&this.isValid(Vt)?Vt:null}deserialize(Vt){return null==Vt||this.isDateInstance(Vt)&&this.isValid(Vt)?Vt:this.invalid()}setLocale(Vt){this.locale=Vt,this._localeChanges.next()}compareDate(Vt,Oe){return this.getYear(Vt)-this.getYear(Oe)||this.getMonth(Vt)-this.getMonth(Oe)||this.getDate(Vt)-this.getDate(Oe)}compareTime(Vt,Oe){return this.getHours(Vt)-this.getHours(Oe)||this.getMinutes(Vt)-this.getMinutes(Oe)||this.getSeconds(Vt)-this.getSeconds(Oe)}sameDate(Vt,Oe){if(Vt&&Oe){let Ge=this.isValid(Vt),je=this.isValid(Oe);return Ge&&je?!this.compareDate(Vt,Oe):Ge==je}return Vt==Oe}sameTime(Vt,Oe){if(Vt&&Oe){const Ge=this.isValid(Vt),je=this.isValid(Oe);return Ge&&je?!this.compareTime(Vt,Oe):Ge==je}return Vt==Oe}clampDate(Vt,Oe,Ge){return Oe&&this.compareDate(Vt,Oe)<0?Oe:Ge&&this.compareDate(Vt,Ge)>0?Ge:Vt}}const at=new i.nKC("mat-date-formats");let Ke=(()=>{class vt{isErrorState(Oe,Ge){return!!(Oe&&Oe.invalid&&(Oe.touched||Ge&&Ge.submitted))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Ze=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(Ge,je){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return vt})();var ht=function(vt){return vt[vt.FADING_IN=0]="FADING_IN",vt[vt.VISIBLE=1]="VISIBLE",vt[vt.FADING_OUT=2]="FADING_OUT",vt[vt.HIDDEN=3]="HIDDEN",vt}(ht||{});class Xt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ht.HIDDEN;constructor(Vt,Oe,Ge,je=!1){this._renderer=Vt,this.element=Oe,this.config=Ge,this._animationForciblyDisabledThroughCss=je}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tn=(0,w.BQ)({passive:!0,capture:!0});class Wt{_events=new Map;addHandler(Vt,Oe,Ge,je){const Dt=this._events.get(Oe);if(Dt){const ct=Dt.get(Ge);ct?ct.add(je):Dt.set(Ge,new Set([je]))}else this._events.set(Oe,new Map([[Ge,new Set([je])]])),Vt.runOutsideAngular(()=>{document.addEventListener(Oe,this._delegateEventHandler,Tn)})}removeHandler(Vt,Oe,Ge){const je=this._events.get(Vt);if(!je)return;const Dt=je.get(Oe);Dt&&(Dt.delete(Ge),0===Dt.size&&je.delete(Oe),0===je.size&&(this._events.delete(Vt),document.removeEventListener(Vt,this._delegateEventHandler,Tn)))}_delegateEventHandler=Vt=>{const Oe=(0,w.Fb)(Vt);Oe&&this._events.get(Vt.type)?.forEach((Ge,je)=>{(je===Oe||je.contains(Oe))&&Ge.forEach(Dt=>Dt.handleEvent(Vt))})}}const Zt={enterDuration:225,exitDuration:150},Ht=(0,w.BQ)({passive:!0,capture:!0}),en=["mousedown","touchstart"],Nn=["mouseup","mouseleave","touchend","touchcancel"];let mn=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(Ge,je){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return vt})();class Mn{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Wt;constructor(Vt,Oe,Ge,je,Dt){this._target=Vt,this._ngZone=Oe,this._platform=je,je.isBrowser&&(this._containerElement=(0,C.i8)(Ge)),Dt&&Dt.get(T.l).load(mn)}fadeInRipple(Vt,Oe,Ge={}){const je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Dt={...Zt,...Ge.animation};Ge.centered&&(Vt=je.left+je.width/2,Oe=je.top+je.height/2);const ct=Ge.radius||function tt(vt,Vt,Oe){const Ge=Math.max(Math.abs(vt-Oe.left),Math.abs(vt-Oe.right)),je=Math.max(Math.abs(Vt-Oe.top),Math.abs(Vt-Oe.bottom));return Math.sqrt(Ge*Ge+je*je)}(Vt,Oe,je),Bt=Vt-je.left,xn=Oe-je.top,er=Dt.enterDuration,xr=document.createElement("div");xr.classList.add("mat-ripple-element"),xr.style.left=Bt-ct+"px",xr.style.top=xn-ct+"px",xr.style.height=2*ct+"px",xr.style.width=2*ct+"px",null!=Ge.color&&(xr.style.backgroundColor=Ge.color),xr.style.transitionDuration=`${er}ms`,this._containerElement.appendChild(xr);const si=window.getComputedStyle(xr),Zi=si.transitionDuration,nn="none"===si.transitionProperty||"0s"===Zi||"0s, 0s"===Zi||0===je.width&&0===je.height,Mt=new Xt(this,xr,Ge,nn);xr.style.transform="scale3d(1, 1, 1)",Mt.state=ht.FADING_IN,Ge.persistent||(this._mostRecentTransientRipple=Mt);let nt=null;return!nn&&(er||Dt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Rt=()=>{nt&&(nt.fallbackTimer=null),clearTimeout(vn),this._finishRippleTransition(Mt)},ln=()=>this._destroyRipple(Mt),vn=setTimeout(ln,er+100);xr.addEventListener("transitionend",Rt),xr.addEventListener("transitioncancel",ln),nt={onTransitionEnd:Rt,onTransitionCancel:ln,fallbackTimer:vn}}),this._activeRipples.set(Mt,nt),(nn||!er)&&this._finishRippleTransition(Mt),Mt}fadeOutRipple(Vt){if(Vt.state===ht.FADING_OUT||Vt.state===ht.HIDDEN)return;const Oe=Vt.element,Ge={...Zt,...Vt.config.animation};Oe.style.transitionDuration=`${Ge.exitDuration}ms`,Oe.style.opacity="0",Vt.state=ht.FADING_OUT,(Vt._animationForciblyDisabledThroughCss||!Ge.exitDuration)&&this._finishRippleTransition(Vt)}fadeOutAll(){this._getActiveRipples().forEach(Vt=>Vt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Vt=>{Vt.config.persistent||Vt.fadeOut()})}setupTriggerEvents(Vt){const Oe=(0,C.i8)(Vt);!this._platform.isBrowser||!Oe||Oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Oe,en.forEach(Ge=>{Mn._eventManager.addHandler(this._ngZone,Ge,Oe,this)}))}handleEvent(Vt){"mousedown"===Vt.type?this._onMousedown(Vt):"touchstart"===Vt.type?this._onTouchStart(Vt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Nn.forEach(Oe=>{this._triggerElement.addEventListener(Oe,this,Ht)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Vt){Vt.state===ht.FADING_IN?this._startFadeOutTransition(Vt):Vt.state===ht.FADING_OUT&&this._destroyRipple(Vt)}_startFadeOutTransition(Vt){const Oe=Vt===this._mostRecentTransientRipple,{persistent:Ge}=Vt.config;Vt.state=ht.VISIBLE,!Ge&&(!Oe||!this._isPointerDown)&&Vt.fadeOut()}_destroyRipple(Vt){const Oe=this._activeRipples.get(Vt)??null;this._activeRipples.delete(Vt),this._activeRipples.size||(this._containerRect=null),Vt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Vt.state=ht.HIDDEN,null!==Oe&&(Vt.element.removeEventListener("transitionend",Oe.onTransitionEnd),Vt.element.removeEventListener("transitioncancel",Oe.onTransitionCancel),null!==Oe.fallbackTimer&&clearTimeout(Oe.fallbackTimer)),Vt.element.remove()}_onMousedown(Vt){const Oe=(0,a._G)(Vt),Ge=this._lastTouchStartEvent&&Date.now(){!Vt.config.persistent&&(Vt.state===ht.VISIBLE||Vt.config.terminateOnPointerUp&&Vt.state===ht.FADING_IN)&&Vt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Vt=this._triggerElement;Vt&&(en.forEach(Oe=>Mn._eventManager.removeHandler(Oe,Vt,this)),this._pointerUpEventsRegistered&&(Nn.forEach(Oe=>Vt.removeEventListener(Oe,this,Ht)),this._pointerUpEventsRegistered=!1))}}const Kt=new i.nKC("mat-ripple-global-options");let At=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Oe){Oe&&this.fadeOutAllNonPersistent(),this._disabled=Oe,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Oe){this._trigger=Oe,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Oe=(0,i.WQX)(i.SKi),Ge=(0,i.WQX)(w.OD),je=(0,i.WQX)(Kt,{optional:!0}),Dt=(0,i.WQX)(i.zZn);this._globalOptions=je||{},this._rippleRenderer=new Mn(this,Oe,this._elementRef,Ge,Dt)}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(Oe,Ge=0,je){return"number"==typeof Oe?this._rippleRenderer.fadeInRipple(Oe,Ge,{...this.rippleConfig,...je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Oe})}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-ripple-unbounded",je.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"]})}return vt})(),Te=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae,ae]})}return vt})(),be=(()=>{class vt{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===je.state)("mat-pseudo-checkbox-checked","checked"===je.state)("mat-pseudo-checkbox-disabled",je.disabled)("mat-pseudo-checkbox-minimal","minimal"===je.appearance)("mat-pseudo-checkbox-full","full"===je.appearance)("_mat-animation-noopable","NoopAnimations"===je._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(Ge,je){},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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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 vt})(),He=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae]})}return vt})();const z=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),L=new i.nKC("MatOptgroup");class Ne{source;isUserInput;constructor(Vt,Oe=!1){this.source=Vt,this.isUserInput=Oe}}let ft=(()=>{class vt{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(z,{optional:!0});group=(0,i.WQX)(L,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Oe){this._disabled=Oe}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new i.bkB;_text;_stateChanges=new y.B;constructor(){(0,i.WQX)(T.l).load(Ze),(0,i.WQX)(T.l).load(T.Y),this._signalDisableRipple=!!this._parent&&(0,i.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Oe=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Oe&&this._emitSelectionChangeEvent())}deselect(Oe=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Oe&&this._emitSelectionChangeEvent())}focus(Oe,Ge){const je=this._getHostElement();"function"==typeof je.focus&&je.focus(Ge)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Oe){(Oe.keyCode===S.Fm||Oe.keyCode===S.t6)&&!(0,S.rp)(Oe)&&(this._selectViaInteraction(),Oe.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 Oe=this.viewValue;Oe!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Oe)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Oe=!1){this.onSelectionChange.emit(new Ne(this,Oe))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-option"]],viewQuery:function(Ge,je){if(1&Ge&&i.GBs(X,7),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._text=Dt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Ge,je){1&Ge&&i.bIt("click",function(){return je._selectViaInteraction()})("keydown",function(ct){return je._handleKeydown(ct)}),2&Ge&&(i.Mr5("id",je.id),i.BMQ("aria-selected",je.selected)("aria-disabled",je.disabled.toString()),i.AVh("mdc-list-item--selected",je.selected)("mat-mdc-option-multiple",je.multiple)("mat-mdc-option-active",je.active)("mdc-list-item--disabled",je.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:ne,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Ge,je){1&Ge&&(i.NAR(Z),i.DNE(0,_e,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,pe,1,1,"mat-pseudo-checkbox",3)(6,de,2,1,"span",4),i.nrm(7,"div",5)),2&Ge&&(i.vxM(je.multiple?0:-1),i.R7$(5),i.vxM(je.multiple||!je.selected||je.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(je.group&&je.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",je._getHostElement())("matRippleDisabled",je.disabled||je.disableRipple))},dependencies:[be,At],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-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));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-sys-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-sys-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-sys-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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::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-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return vt})();function mt(vt,Vt,Oe){if(Oe.length){let Ge=Vt.toArray(),je=Oe.toArray(),Dt=0;for(let ct=0;ctOe+Ge?Math.max(0,vt-Ge+Vt):Oe}let On=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[Te,ae,He]})}return vt})();const cn={capture:!0},hn=["focus","mousedown","mouseenter","touchstart"],Ln="mat-ripple-loader-uninitialized",lr="mat-ripple-loader-class-name",Dn="mat-ripple-loader-centered",Hr="mat-ripple-loader-disabled";let Mr=(()=>{class vt{_document=(0,i.WQX)(M.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Kt,{optional:!0});_platform=(0,i.WQX)(w.OD);_ngZone=(0,i.WQX)(i.SKi);_injector=(0,i.WQX)(i.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Oe of hn)this._document?.addEventListener(Oe,this._onInteraction,cn)})}ngOnDestroy(){const Oe=this._hosts.keys();for(const Ge of Oe)this.destroyRipple(Ge);for(const Ge of hn)this._document?.removeEventListener(Ge,this._onInteraction,cn)}configureRipple(Oe,Ge){Oe.setAttribute(Ln,this._globalRippleOptions?.namespace??""),(Ge.className||!Oe.hasAttribute(lr))&&Oe.setAttribute(lr,Ge.className||""),Ge.centered&&Oe.setAttribute(Dn,""),Ge.disabled&&Oe.setAttribute(Hr,"")}setDisabled(Oe,Ge){const je=this._hosts.get(Oe);je?(je.target.rippleDisabled=Ge,!Ge&&!je.hasSetUpEvents&&(je.hasSetUpEvents=!0,je.renderer.setupTriggerEvents(Oe))):Ge?Oe.setAttribute(Hr,""):Oe.removeAttribute(Hr)}_onInteraction=Oe=>{const Ge=(0,w.Fb)(Oe);if(Ge instanceof HTMLElement){const je=Ge.closest(`[${Ln}="${this._globalRippleOptions?.namespace??""}"]`);je&&this._createRipple(je)}};_createRipple(Oe){if(!this._document||this._hosts.has(Oe))return;Oe.querySelector(".mat-ripple")?.remove();const Ge=this._document.createElement("span");Ge.classList.add("mat-ripple",Oe.getAttribute(lr)),Oe.append(Ge);const je="NoopAnimations"===this._animationMode,Dt=this._globalRippleOptions,ct=je?0:Dt?.animation?.enterDuration??Zt.enterDuration,Bt=je?0:Dt?.animation?.exitDuration??Zt.exitDuration,xn={rippleDisabled:je||Dt?.disabled||Oe.hasAttribute(Hr),rippleConfig:{centered:Oe.hasAttribute(Dn),terminateOnPointerUp:Dt?.terminateOnPointerUp,animation:{enterDuration:ct,exitDuration:Bt}}},er=new Mn(xn,this._ngZone,Ge,this._platform,this._injector),xr=!xn.rippleDisabled;xr&&er.setupTriggerEvents(Oe),this._hosts.set(Oe,{target:xn,renderer:er,hasSetUpEvents:xr}),Oe.removeAttribute(Ln)}destroyRipple(Oe){const Ge=this._hosts.get(Oe);Ge&&(Ge.renderer._removeTriggerEvents(),this._hosts.delete(Oe))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Vr=(()=>{class vt{labelPosition;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-form-field--align-end","before"===je.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:De,ngContentSelectors:Ee,decls:1,vars:0,template:function(Ge,je){1&Ge&&(i.NAR(),i.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 vt})()},7544:(o,s,n)=>{"use strict";n.d(s,{Vh:()=>Me,bZ:()=>Zt,E7:()=>mn,tx:()=>rt,Yi:()=>Nn,hM:()=>Kt,CP:()=>Ot});var i=n(9666),a=n(3107),c=n(8559),y=n(2147),w=n(6192),C=n(4460),T=n(5919),S=n(8447),M=n(6381),k=n(3016),R=n(2944),X=n(593);function Z(be,He){}class ne{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let pe=(()=>{class be extends w.lb{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(c.GX);_config;_interactivityChecker=(0,a.WQX)(c.Z7);_ngZone=(0,a.WQX)(a.SKi);_overlayRef=(0,a.WQX)(i.yY);_focusMonitor=(0,a.WQX)(c.FN);_platform=(0,a.WQX)(y.OD);_document=(0,a.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,a.WQX)(a.gRc);_injector=(0,a.WQX)(a.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,a.WQX)(ne,{optional:!0})||new ne,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(z){this._ariaLabelledByQueue.push(z),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(z){const L=this._ariaLabelledByQueue.indexOf(z);L>-1&&(this._ariaLabelledByQueue.splice(L,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(z){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachComponentPortal(z);return this._contentAttached(),L}attachTemplatePortal(z){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachTemplatePortal(z);return this._contentAttached(),L}attachDomPortal=z=>{this._portalOutlet.hasAttached();const L=this._portalOutlet.attachDomPortal(z);return this._contentAttached(),L};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(z,L){this._interactivityChecker.isFocusable(z)||(z.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const V=()=>{z.removeEventListener("blur",V),z.removeEventListener("mousedown",V),z.removeAttribute("tabindex")};z.addEventListener("blur",V),z.addEventListener("mousedown",V)})),z.focus(L)}_focusByCssSelector(z,L){let V=this._elementRef.nativeElement.querySelector(z);V&&this._forceFocus(V,L)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const z=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||z.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 z=this._config.restoreFocus;let L=null;if("string"==typeof z?L=this._document.querySelector(z):"boolean"==typeof z?L=z?this._elementFocusedBeforeDialogWasOpened:null:z&&(L=z),this._config.restoreFocus&&L&&"function"==typeof L.focus){const V=(0,y.vc)(),Ne=this._elementRef.nativeElement;(!V||V===this._document.body||V===Ne||Ne.contains(V))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const z=this._elementRef.nativeElement,L=(0,y.vc)();return z===L||z.contains(L)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(L){return new(L||be)};static \u0275cmp=a.VBU({type:be,selectors:[["cdk-dialog-container"]],viewQuery:function(L,V){if(1&L&&a.GBs(w.I3,7),2&L){let Ne;a.mGM(Ne=a.lsd())&&(V._portalOutlet=Ne.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(L,V){2&L&&a.BMQ("id",V._config.id||null)("role",V._config.role)("aria-modal",V._config.ariaModal)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,V){1&L&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return be})();class de{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(He,z){this.overlayRef=He,this.config=z,this.disableClose=z.disableClose,this.backdropClick=He.backdropClick(),this.keydownEvents=He.keydownEvents(),this.outsidePointerEvents=He.outsidePointerEvents(),this.id=z.id,this.keydownEvents.subscribe(L=>{L.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(L)&&(L.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=He.detachments().subscribe(()=>{!1!==z.closeOnOverlayDetachments&&this.close()})}close(He,z){if(this.containerInstance){const L=this.closed;this.containerInstance._closeInteractionType=z?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),L.next(He),L.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(He="",z=""){return this.overlayRef.updateSize({width:He,height:z}),this}addPanelClass(He){return this.overlayRef.addPanelClass(He),this}removePanelClass(He){return this.overlayRef.removePanelClass(He),this}}const De=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const be=(0,a.WQX)(i.hJ);return()=>be.scrollStrategies.block()}}),Ee=new a.nKC("DialogData"),Le=new a.nKC("DefaultDialogConfig");let le=(()=>{class be{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Le,{optional:!0});_parentDialog=(0,a.WQX)(be,{optional:!0,skipSelf:!0});_overlayContainer=(0,a.WQX)(i.Sf);_idGenerator=(0,a.WQX)(c.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,a.WQX)(De);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,M.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,X.Z)(void 0)));constructor(){}open(z,L){(L={...this._defaultOptions||new ne,...L}).id=L.id||this._idGenerator.getId("cdk-dialog-"),L.id&&this.getDialogById(L.id);const Ne=this._getOverlayConfig(L),ft=this._overlay.create(Ne),mt=new de(ft,L),Tt=this._attachContainer(ft,mt,L);return mt.containerInstance=Tt,this._attachDialogContent(z,mt,Tt,L),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(mt),mt.closed.subscribe(()=>this._removeOpenDialog(mt,!0)),this.afterOpened.next(mt),mt}closeAll(){ae(this.openDialogs,z=>z.close())}getDialogById(z){return this.openDialogs.find(L=>L.id===z)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,z=>{!1===z.config.closeOnDestroy&&this._removeOpenDialog(z,!1)}),ae(this._openDialogsAtThisLevel,z=>z.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(z){const L=new i.rR({positionStrategy:z.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:z.scrollStrategy||this._scrollStrategy(),panelClass:z.panelClass,hasBackdrop:z.hasBackdrop,direction:z.direction,minWidth:z.minWidth,minHeight:z.minHeight,maxWidth:z.maxWidth,maxHeight:z.maxHeight,width:z.width,height:z.height,disposeOnNavigation:z.closeOnNavigation});return z.backdropClass&&(L.backdropClass=z.backdropClass),L}_attachContainer(z,L,V){const Ne=V.injector||V.viewContainerRef?.injector,ft=[{provide:ne,useValue:V},{provide:de,useValue:L},{provide:i.yY,useValue:z}];let mt;V.container?"function"==typeof V.container?mt=V.container:(mt=V.container.type,ft.push(...V.container.providers(V))):mt=pe;const Tt=new w.A8(mt,V.viewContainerRef,a.zZn.create({parent:Ne||this._injector,providers:ft}));return z.attach(Tt).instance}_attachDialogContent(z,L,V,Ne){if(z instanceof a.C4Q){const ft=this._createInjector(Ne,L,V,void 0);let mt={$implicit:Ne.data,dialogRef:L};Ne.templateContext&&(mt={...mt,..."function"==typeof Ne.templateContext?Ne.templateContext():Ne.templateContext}),V.attachTemplatePortal(new w.VA(z,null,mt,ft))}else{const ft=this._createInjector(Ne,L,V,this._injector),mt=V.attachComponentPortal(new w.A8(z,Ne.viewContainerRef,ft));L.componentRef=mt,L.componentInstance=mt.instance}}_createInjector(z,L,V,Ne){const ft=z.injector||z.viewContainerRef?.injector,mt=[{provide:Ee,useValue:z.data},{provide:de,useValue:L}];return z.providers&&("function"==typeof z.providers?mt.push(...z.providers(L,z,V)):mt.push(...z.providers)),z.direction&&(!ft||!ft.get(R.dS,null,{optional:!0}))&&mt.push({provide:R.dS,useValue:{value:z.direction,change:(0,k.of)()}}),a.zZn.create({parent:ft||Ne,providers:mt})}_removeOpenDialog(z,L){const V=this.openDialogs.indexOf(z);V>-1&&(this.openDialogs.splice(V,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ne,ft)=>{Ne?ft.setAttribute("aria-hidden",Ne):ft.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),L&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const z=this._overlayContainer.getContainerElement();if(z.parentElement){const L=z.parentElement.children;for(let V=L.length-1;V>-1;V--){const Ne=L[V];Ne!==z&&"SCRIPT"!==Ne.nodeName&&"STYLE"!==Ne.nodeName&&!Ne.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ne,Ne.getAttribute("aria-hidden")),Ne.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const z=this._parentDialog;return z?z._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(L){return new(L||be)};static \u0275prov=a.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})();function ae(be,He){let z=be.length;for(;z--;)He(be[z])}let xe=(()=>{class be{static \u0275fac=function(L){return new(L||be)};static \u0275mod=a.$C({type:be});static \u0275inj=a.G2t({providers:[le],imports:[i.z_,w.jc,c.Pd,w.jc]})}return be})();var Be=n(3022),st=n(7509),lt=n(1483),bt=n(7610),at=n(8108),sn=n(2902);function En(be,He){}n(1204);class Wn{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const wn="mdc-dialog--open",Je="mdc-dialog--opening",_t="mdc-dialog--closing";let Ft=(()=>{class be extends pe{_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_animationStateChanged=new a.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ze(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?Ze(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Je,wn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(wn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(wn),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(_t)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(z){this._actionSectionCount+=z,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Je,_t)}_waitForAnimationToComplete(z,L){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(L,z)}_requestAnimationFrame(z){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(z):z()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(z){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:z})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(z){const L=super.attachComponentPortal(z);return L.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),L}static \u0275fac=(()=>{let z;return function(V){return(z||(z=a.xGo(be)))(V||be)}})();static \u0275cmp=a.VBU({type:be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(L,V){2&L&&(a.Mr5("id",V._config.id),a.BMQ("aria-modal",V._config.ariaModal)("role",V._config.role)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!V._animationsEnabled)("mat-mdc-dialog-container-with-actions",V._actionSectionCount>0))},features:[a.Vt3],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(L,V){1&L&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,En,0,0,"ng-template",2),a.k0s()())},dependencies:[w.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, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.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, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-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, 6px 24px 13px)}.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-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-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-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-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 0)}.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, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: 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 be})();const Ke="--mat-dialog-transition-duration";function Ze(be){return null==be?null:"number"==typeof be?be:be.endsWith("ms")?(0,Be.OE)(be.substring(0,be.length-2)):be.endsWith("s")?1e3*(0,Be.OE)(be.substring(0,be.length-1)):"0"===be?0:null}var it=function(be){return be[be.OPEN=0]="OPEN",be[be.CLOSING=1]="CLOSING",be[be.CLOSED=2]="CLOSED",be}(it||{});class Ot{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=it.OPEN;_closeInteractionType;constructor(He,z,L){this._ref=He,this._containerInstance=L,this.disableClose=z.disableClose,this.id=He.id,He.addPanelClass("mat-mdc-dialog-panel"),L._animationStateChanged.pipe((0,lt.p)(V=>"opened"===V.state),(0,bt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,lt.p)(V=>"closed"===V.state),(0,bt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),He.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,lt.p)(V=>V.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(V)))).subscribe(V=>{this.disableClose||(V.preventDefault(),Qt(this,"keydown"===V.type?"keyboard":"mouse"))})}close(He){this._result=He,this._containerInstance._animationStateChanged.pipe((0,lt.p)(z=>"closing"===z.state),(0,bt.s)(1)).subscribe(z=>{this._beforeClosed.next(He),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),z.totalTime+100)}),this._state=it.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(He){let z=this._ref.config.positionStrategy;return He&&(He.left||He.right)?He.left?z.left(He.left):z.right(He.right):z.centerHorizontally(),He&&(He.top||He.bottom)?He.top?z.top(He.top):z.bottom(He.bottom):z.centerVertically(),this._ref.updatePosition(),this}updateSize(He="",z=""){return this._ref.updateSize(He,z),this}addPanelClass(He){return this._ref.addPanelClass(He),this}removePanelClass(He){return this._ref.removePanelClass(He),this}getState(){return this._state}_finishDialogClose(){this._state=it.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Qt(be,He,z){return be._closeInteractionType=He,be.close(z)}const Me=new a.nKC("MatMdcDialogData"),ht=new a.nKC("mat-mdc-dialog-default-options"),Xt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const be=(0,a.WQX)(i.hJ);return()=>be.scrollStrategies.block()}});let Zt=(()=>{class be{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(ht,{optional:!0});_scrollStrategy=(0,a.WQX)(Xt);_parentDialog=(0,a.WQX)(be,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;dialogConfigClass=Wn;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const z=this._parentDialog;return z?z._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,M.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,X.Z)(void 0)));constructor(){this._dialogRefConstructor=Ot,this._dialogContainerType=Ft,this._dialogDataToken=Me}open(z,L){let V;(L={...this._defaultOptions||new Wn,...L}).id=L.id||this._idGenerator.getId("mat-mdc-dialog-"),L.scrollStrategy=L.scrollStrategy||this._scrollStrategy();const Ne=this._dialog.open(z,{...L,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:L},{provide:ne,useValue:L}]},templateContext:()=>({dialogRef:V}),providers:(ft,mt,Tt)=>(V=new this._dialogRefConstructor(ft,L,Tt),V.updatePosition(L?.position),[{provide:this._dialogContainerType,useValue:Tt},{provide:this._dialogDataToken,useValue:mt.data},{provide:this._dialogRefConstructor,useValue:V}])});return V.componentRef=Ne.componentRef,V.componentInstance=Ne.componentInstance,this.openDialogs.push(V),this.afterOpened.next(V),V.afterClosed().subscribe(()=>{const ft=this.openDialogs.indexOf(V);ft>-1&&(this.openDialogs.splice(ft,1),this.openDialogs.length||this._getAfterAllClosed().next())}),V}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(z){return this.openDialogs.find(L=>L.id===z)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(z){let L=z.length;for(;L--;)z[L].close()}static \u0275fac=function(L){return new(L||be)};static \u0275prov=a.jDH({token:be,factory:be.\u0275fac,providedIn:"root"})}return be})(),rt=(()=>{class be{dialogRef=(0,a.WQX)(Ot,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Zt);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Mn(this._elementRef,this._dialog.openDialogs))}ngOnChanges(z){const L=z._matDialogClose||z._matDialogCloseResult;L&&(this.dialogResult=L.currentValue)}_onButtonClick(z){Qt(this.dialogRef,0===z.screenX&&0===z.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(L){return new(L||be)};static \u0275dir=a.FsC({type:be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,V){1&L&&a.bIt("click",function(ft){return V._onButtonClick(ft)}),2&L&&a.BMQ("aria-label",V.ariaLabel||null)("type",V.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return be})(),Ht=(()=>{class be{_dialogRef=(0,a.WQX)(Ot,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Zt);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Mn(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(L){return new(L||be)};static \u0275dir=a.FsC({type:be})}return be})(),Nn=(()=>{class be{static \u0275fac=function(L){return new(L||be)};static \u0275dir=a.FsC({type:be,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([at.uv])]})}return be})(),mn=(()=>{class be extends Ht{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let z;return function(V){return(z||(z=a.xGo(be)))(V||be)}})();static \u0275dir=a.FsC({type:be,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(L,V){2&L&&a.AVh("mat-mdc-dialog-actions-align-start","start"===V.align)("mat-mdc-dialog-actions-align-center","center"===V.align)("mat-mdc-dialog-actions-align-end","end"===V.align)},inputs:{align:"align"},features:[a.Vt3]})}return be})();function Mn(be,He){let z=be.nativeElement.parentElement;for(;z&&!z.classList.contains("mat-mdc-dialog-container");)z=z.parentElement;return z?He.find(L=>L.id===z.id):null}let Kt=(()=>{class be{static \u0275fac=function(L){return new(L||be)};static \u0275mod=a.$C({type:be});static \u0275inj=a.G2t({providers:[Zt],imports:[xe,i.z_,w.jc,sn.yE,sn.yE]})}return be})()},7702:(o,s,n)=>{"use strict";n.d(s,{q:()=>y,w:()=>w});var i=n(3107),a=n(3022),c=n(2902);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(M){return new(M||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(M,k){2&M&&(i.BMQ("aria-orientation",k.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(M,k){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.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 C})(),w=(()=>{class C{static \u0275fac=function(M){return new(M||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},6071:(o,s,n)=>{"use strict";n.d(s,{xb:()=>cn,U$:()=>hn,TL:()=>en,rl:()=>Mr,qT:()=>ft,RG:()=>Vr,MV:()=>Nn,nJ:()=>rt,JW:()=>Mn,yw:()=>Kt});var i=n(3107),a=n(8559),c=n(2944),y=n(3022),w=n(2147),C=n(4460),T=n(5710),S=n(8447),M=n(7509),k=n(593),R=n(7947),X=n(5351),Z=n(2483),_e=n(1483),pe=n(5424),de=n(1698),De=n(8249);class Le{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor(Vt){this._box=Vt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Oe=>this._resizeSubject.next(Oe)))}observe(Vt){return this._elementObservables.has(Vt)||this._elementObservables.set(Vt,new de.c(Oe=>{const Ge=this._resizeSubject.subscribe(Oe);return this._resizeObserver?.observe(Vt,{box:this._box}),()=>{this._resizeObserver?.unobserve(Vt),Ge.unsubscribe(),this._elementObservables.delete(Vt)}}).pipe((0,_e.p)(Oe=>Oe.some(Ge=>Ge.target===Vt)),(0,De.t)({bufferSize:1,refCount:!0}),(0,pe.Q)(this._destroyed))),this._elementObservables.get(Vt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Ae=(()=>{class vt{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Oe]of this._observers)Oe.destroy();this._observers.clear()}observe(Oe,Ge){const je=Ge?.box||"content-box";return this._observers.has(je)||this._observers.set(je,new Le(je)),this._observers.get(je).observe(Oe)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();var we=n(1204),le=n(7747),ae=n(2902);const xe=["notch"],Be=["matFormFieldNotchedOutline",""],st=["*"],lt=["textField"],bt=["iconPrefixContainer"],at=["textPrefixContainer"],sn=["iconSuffixContainer"],fn=["textSuffixContainer"],En=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Wn=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function wn(vt,Vt){1&vt&&i.nrm(0,"span",21)}function Je(vt,Vt){if(1&vt&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,wn,1,0,"span",21),i.k0s()),2&vt){const Oe=i.XpG(2);i.Y8G("floating",Oe._shouldLabelFloat())("monitorResize",Oe._hasOutline())("id",Oe._labelId),i.BMQ("for",Oe._control.disableAutomaticLabeling?null:Oe._control.id),i.R7$(2),i.vxM(!Oe.hideRequiredMarker&&Oe._control.required?2:-1)}}function _t(vt,Vt){if(1&vt&&i.DNE(0,Je,3,5,"label",20),2&vt){const Oe=i.XpG();i.vxM(Oe._hasFloatingLabel()?0:-1)}}function ze(vt,Vt){1&vt&&i.nrm(0,"div",7)}function Ue(vt,Vt){}function Ft(vt,Vt){if(1&vt&&i.DNE(0,Ue,0,0,"ng-template",13),2&vt){i.XpG(2);const Oe=i.sdS(1);i.Y8G("ngTemplateOutlet",Oe)}}function Ke(vt,Vt){if(1&vt&&(i.j41(0,"div",9),i.DNE(1,Ft,1,1,null,13),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Oe._shouldLabelFloat()),i.R7$(),i.vxM(Oe._forceDisplayInfixLabel()?-1:1)}}function Ze(vt,Vt){1&vt&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function it(vt,Vt){1&vt&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function Ot(vt,Vt){}function Qt(vt,Vt){if(1&vt&&i.DNE(0,Ot,0,0,"ng-template",13),2&vt){i.XpG();const Oe=i.sdS(1);i.Y8G("ngTemplateOutlet",Oe)}}function Me(vt,Vt){1&vt&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function ht(vt,Vt){1&vt&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Xt(vt,Vt){1&vt&&i.nrm(0,"div",16)}function Tn(vt,Vt){if(1&vt&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("@transitionMessages",Oe._subscriptAnimationState)}}function Wt(vt,Vt){if(1&vt&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&vt){const Oe=i.XpG(2);i.Y8G("id",Oe._hintLabelId),i.R7$(),i.JRh(Oe.hintLabel)}}function Zt(vt,Vt){if(1&vt&&(i.j41(0,"div",19),i.DNE(1,Wt,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("@transitionMessages",Oe._subscriptAnimationState),i.R7$(),i.vxM(Oe.hintLabel?1:-1)}}let rt=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-label"]]})}return vt})();const Ht=new i.nKC("MatError");let en=(()=>{class vt{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Ge,je){2&Ge&&i.Mr5("id",je.id)},inputs:{id:"id"},features:[i.Jv_([{provide:Ht,useExisting:vt}])]})}return vt})(),Nn=(()=>{class vt{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Ge,je){2&Ge&&(i.Mr5("id",je.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===je.align))},inputs:{align:"align",id:"id"}})}return vt})();const mn=new i.nKC("MatPrefix");let Mn=(()=>{class vt{set _isTextSelector(Oe){this._isText=!0}_isText=!1;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:mn,useExisting:vt}])]})}return vt})();const tt=new i.nKC("MatSuffix");let Kt=(()=>{class vt{set _isTextSelector(Oe){this._isText=!0}_isText=!1;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:tt,useExisting:vt}])]})}return vt})();const At=new i.nKC("FloatingLabelParent");let Te=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);get floating(){return this._floating}set floating(Oe){this._floating=Oe,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Oe){this._monitorResize=Oe,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,i.WQX)(Ae);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(At);_resizeSubscription=new T.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function be(vt){if(null!==vt.offsetParent)return vt.scrollWidth;const Oe=vt.cloneNode(!0);Oe.style.setProperty("position","absolute"),Oe.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Oe);const Ge=Oe.scrollWidth;return Oe.remove(),Ge}(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 \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-floating-label--float-above",je.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return vt})();const He="mdc-line-ripple--active",z="mdc-line-ripple--deactivating";let L=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Oe=this._elementRef.nativeElement.classList;Oe.remove(z),Oe.add(He)}deactivate(){this._elementRef.nativeElement.classList.add(z)}_handleTransitionEnd=Oe=>{const Ge=this._elementRef.nativeElement.classList,je=Ge.contains(z);"opacity"===Oe.propertyName&&je&&Ge.remove(He,z)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return vt})(),V=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Oe=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Oe?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Oe.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Oe.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Oe){this._notch.nativeElement.style.width=this.open&&Oe?`calc(${Oe}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Ge,je){if(1&Ge&&i.GBs(xe,5),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._notch=Dt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-notched-outline--notched",je.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Be,ngContentSelectors:st,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(Ge,je){1&Ge&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return vt})();const Ne={transitionMessages:(0,we.hZ)("transitionMessages",[(0,we.wk)("enter",(0,we.iF)({opacity:1,transform:"translateY(0%)"})),(0,we.kY)("void => enter",[(0,we.iF)({opacity:0,transform:"translateY(-5px)"}),(0,we.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ft=(()=>{class vt{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt})}return vt})();const cn=new i.nKC("MatFormField"),hn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Mr=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(hn,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,i.sbv)(rt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Oe){this._hideRequiredMarker=(0,y.he)(Oe)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Oe){Oe!==this._floatLabel&&(this._floatLabel=Oe,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Oe){const Ge=this._appearance;this._appearance=Oe||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Ge&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Oe){this._subscriptSizing=Oe||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Oe){this._hintLabel=Oe,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Oe){this._explicitFormFieldControl=Oe}_destroyed=new S.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,i.WQX)(i.zZn);constructor(){const Oe=this._defaults;Oe&&(Oe.appearance&&(this.appearance=Oe.appearance),this._hideRequiredMarker=!!Oe?.hideRequiredMarker,Oe.color&&(this.color=Oe.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._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,i.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Oe){const Ge=this._control,je="mat-mdc-form-field-type-";Oe&&this._elementRef.nativeElement.classList.remove(je+Oe.controlType),Ge.controlType&&this._elementRef.nativeElement.classList.add(je+Ge.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Ge.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=Ge.stateChanges.pipe((0,k.Z)([void 0,void 0]),(0,R.T)(()=>[Ge.errorState,Ge.userAriaDescribedBy]),function ne(){return(0,X.N)((vt,Vt)=>{let Oe,Ge=!1;vt.subscribe((0,Z._)(Vt,je=>{const Dt=Oe;Oe=je,Ge&&Vt.next([Dt,je]),Ge=!0}))})}(),(0,_e.p)(([[Dt,ct],[Bt,xn]])=>Dt!==Bt||ct!==xn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),Ge.ngControl&&Ge.ngControl.valueChanges&&(this._valueChanges=Ge.ngControl.valueChanges.pipe((0,pe.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Oe=>!Oe._isText),this._hasTextPrefix=!!this._prefixChildren.find(Oe=>Oe._isText),this._hasIconSuffix=!!this._suffixChildren.find(Oe=>!Oe._isText),this._hasTextSuffix=!!this._suffixChildren.find(Oe=>Oe._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,M.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,i.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,pe.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()}_hasFloatingLabel=(0,i.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Oe){const Ge=this._control?this._control.ngControl:null;return Ge&&Ge[Oe]}_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 Oe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Oe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ge=this._hintChildren?this._hintChildren.find(Dt=>"start"===Dt.align):null,je=this._hintChildren?this._hintChildren.find(Dt=>"end"===Dt.align):null;Ge?Oe.push(Ge.id):this._hintLabel&&Oe.push(this._hintLabelId),je&&Oe.push(je.id)}else this._errorChildren&&Oe.push(...this._errorChildren.map(Ge=>Ge.id));this._control.setDescribedByIds(Oe)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Oe=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Oe.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Ge=this._iconPrefixContainer?.nativeElement,je=this._textPrefixContainer?.nativeElement,Dt=this._iconSuffixContainer?.nativeElement,ct=this._textSuffixContainer?.nativeElement,Bt=Ge?.getBoundingClientRect().width??0,xn=je?.getBoundingClientRect().width??0,er=Dt?.getBoundingClientRect().width??0,xr=ct?.getBoundingClientRect().width??0;Oe.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Bt+xn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Bt+xn+er+xr}px)`)}_isAttachedToDom(){const Oe=this._elementRef.nativeElement;if(Oe.getRootNode){const Ge=Oe.getRootNode();return Ge&&Ge!==Oe}return document.documentElement.contains(Oe)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-form-field"]],contentQueries:function(Ge,je,Dt){if(1&Ge&&(i.C6U(Dt,je._labelChild,rt,5),i.wni(Dt,ft,5),i.wni(Dt,mn,5),i.wni(Dt,tt,5),i.wni(Dt,Ht,5),i.wni(Dt,Nn,5)),2&Ge){let ct;i.NyB(),i.mGM(ct=i.lsd())&&(je._formFieldControl=ct.first),i.mGM(ct=i.lsd())&&(je._prefixChildren=ct),i.mGM(ct=i.lsd())&&(je._suffixChildren=ct),i.mGM(ct=i.lsd())&&(je._errorChildren=ct),i.mGM(ct=i.lsd())&&(je._hintChildren=ct)}},viewQuery:function(Ge,je){if(1&Ge&&(i.GBs(lt,5),i.GBs(bt,5),i.GBs(at,5),i.GBs(sn,5),i.GBs(fn,5),i.GBs(Te,5),i.GBs(V,5),i.GBs(L,5)),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._textField=Dt.first),i.mGM(Dt=i.lsd())&&(je._iconPrefixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._textPrefixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._iconSuffixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._textSuffixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._floatingLabel=Dt.first),i.mGM(Dt=i.lsd())&&(je._notchedOutline=Dt.first),i.mGM(Dt=i.lsd())&&(je._lineRipple=Dt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-mdc-form-field-label-always-float",je._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",je._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",je._hasIconSuffix)("mat-form-field-invalid",je._control.errorState)("mat-form-field-disabled",je._control.disabled)("mat-form-field-autofilled",je._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===je._animationMode)("mat-form-field-appearance-fill","fill"==je.appearance)("mat-form-field-appearance-outline","outline"==je.appearance)("mat-form-field-hide-placeholder",je._hasFloatingLabel()&&!je._shouldLabelFloat())("mat-focused",je._control.focused)("mat-primary","accent"!==je.color&&"warn"!==je.color)("mat-accent","accent"===je.color)("mat-warn","warn"===je.color)("ng-untouched",je._shouldForward("untouched"))("ng-touched",je._shouldForward("touched"))("ng-pristine",je._shouldForward("pristine"))("ng-dirty",je._shouldForward("dirty"))("ng-valid",je._shouldForward("valid"))("ng-invalid",je._shouldForward("invalid"))("ng-pending",je._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:cn,useExisting:vt},{provide:At,useExisting:vt}])],ngContentSelectors:Wn,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(Ge,je){if(1&Ge){const Dt=i.RV6();i.NAR(En),i.DNE(0,_t,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Bt){return i.eBV(Dt),i.Njj(je._control.onContainerClick(Bt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,Ze,3,0,"div",10)(8,it,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,Qt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,Me,3,0,"div",14)(13,ht,3,0,"div",15),i.k0s(),i.DNE(14,Xt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,Tn,2,1,"div",18)(17,Zt,5,2,"div",19),i.k0s()}if(2&Ge){let Dt;i.R7$(2),i.AVh("mdc-text-field--filled",!je._hasOutline())("mdc-text-field--outlined",je._hasOutline())("mdc-text-field--no-label",!je._hasFloatingLabel())("mdc-text-field--disabled",je._control.disabled)("mdc-text-field--invalid",je._control.errorState),i.R7$(2),i.vxM(je._hasOutline()||je._control.disabled?-1:4),i.R7$(2),i.vxM(je._hasOutline()?6:-1),i.R7$(),i.vxM(je._hasIconPrefix?7:-1),i.R7$(),i.vxM(je._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!je._hasOutline()||je._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(je._hasTextSuffix?12:-1),i.R7$(),i.vxM(je._hasIconSuffix?13:-1),i.R7$(),i.vxM(je._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===je.subscriptSizing),i.R7$(),i.vxM("error"===(Dt=je._getDisplayedMessages())?16:"hint"===Dt?17:-1)}},dependencies:[Te,V,C.T3,L,Nn],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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.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-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .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-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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}@media(forced-colors: 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-sys-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-sys-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-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-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-sys-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-sys-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-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-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-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.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-sys-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-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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-sys-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-sys-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, 2px)}.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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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, 1px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, 2px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.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, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/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, 56px) / 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-sys-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-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-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-sys-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-sys-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, 0)}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, var(--mat-sys-neutral10))}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, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: 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-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.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)}[dir=rtl] .mat-mdc-form-field{text-align:right}.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-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-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-sys-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-sys-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-infix:has(textarea[cols]){width:auto}.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:[Ne.transitionMessages]},changeDetection:0})}return vt})(),Vr=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae.yE,le.w5,ae.yE]})}return vt})()},3904:(o,s,n)=>{"use strict";n.d(s,{An:()=>_t,m_:()=>ze,tp:()=>xe});var i=n(3107),a=n(2902),c=n(4460),y=n(3016),w=n(8915),C=n(2653),T=n(5710),S=n(2040),M=n(7947),k=n(7178),R=n(4447),X=n(6218),Z=n(7610),ne=n(7691),_e=n(6388);const pe=["*"];let de;function Ee(Ue){return function De(){if(void 0===de&&(de=null,typeof window<"u")){const Ue=window;void 0!==Ue.trustedTypes&&(de=Ue.trustedTypes.createPolicy("angular#components",{createHTML:Ft=>Ft}))}return de}()?.createHTML(Ue)||Ue}function Le(Ue){return Error(`Unable to find icon with the name "${Ue}"`)}function we(Ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ue}".`)}function le(Ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ue}".`)}class ae{url;svgText;options;svgElement;constructor(Ft,Ke,Ze){this.url=Ft,this.svgText=Ke,this.options=Ze}}let xe=(()=>{class Ue{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(Ke,Ze,it,Ot){this._httpClient=Ke,this._sanitizer=Ze,this._errorHandler=Ot,this._document=it}addSvgIcon(Ke,Ze,it){return this.addSvgIconInNamespace("",Ke,Ze,it)}addSvgIconLiteral(Ke,Ze,it){return this.addSvgIconLiteralInNamespace("",Ke,Ze,it)}addSvgIconInNamespace(Ke,Ze,it,Ot){return this._addSvgIconConfig(Ke,Ze,new ae(it,null,Ot))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,Ze,it,Ot){const Qt=this._sanitizer.sanitize(i.WPN.HTML,it);if(!Qt)throw le(it);const Me=Ee(Qt);return this._addSvgIconConfig(Ke,Ze,new ae("",Me,Ot))}addSvgIconSet(Ke,Ze){return this.addSvgIconSetInNamespace("",Ke,Ze)}addSvgIconSetLiteral(Ke,Ze){return this.addSvgIconSetLiteralInNamespace("",Ke,Ze)}addSvgIconSetInNamespace(Ke,Ze,it){return this._addSvgIconSetConfig(Ke,new ae(Ze,null,it))}addSvgIconSetLiteralInNamespace(Ke,Ze,it){const Ot=this._sanitizer.sanitize(i.WPN.HTML,Ze);if(!Ot)throw le(Ze);const Qt=Ee(Ot);return this._addSvgIconSetConfig(Ke,new ae("",Qt,it))}registerFontClassAlias(Ke,Ze=Ke){return this._fontCssClassesByAlias.set(Ke,Ze),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const Ze=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!Ze)throw we(Ke);const it=this._cachedIconsByUrl.get(Ze);return it?(0,y.of)(lt(it)):this._loadSvgIconFromConfig(new ae(Ke,null)).pipe((0,S.M)(Ot=>this._cachedIconsByUrl.set(Ze,Ot)),(0,M.T)(Ot=>lt(Ot)))}getNamedSvgIcon(Ke,Ze=""){const it=bt(Ze,Ke);let Ot=this._svgIconConfigs.get(it);if(Ot)return this._getSvgFromConfig(Ot);if(Ot=this._getIconConfigFromResolvers(Ze,Ke),Ot)return this._svgIconConfigs.set(it,Ot),this._getSvgFromConfig(Ot);const Qt=this._iconSetConfigs.get(Ze);return Qt?this._getSvgFromIconSetConfigs(Ke,Qt):(0,w.$)(Le(it))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(lt(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,M.T)(Ze=>lt(Ze)))}_getSvgFromIconSetConfigs(Ke,Ze){const it=this._extractIconWithNameFromAnySet(Ke,Ze);if(it)return(0,y.of)(it);const Ot=Ze.filter(Qt=>!Qt.svgText).map(Qt=>this._loadSvgIconSetFromConfig(Qt).pipe((0,k.W)(Me=>{const Xt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Qt.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(Xt)),(0,y.of)(null)})));return(0,C.p)(Ot).pipe((0,M.T)(()=>{const Qt=this._extractIconWithNameFromAnySet(Ke,Ze);if(!Qt)throw Le(Ke);return Qt}))}_extractIconWithNameFromAnySet(Ke,Ze){for(let it=Ze.length-1;it>=0;it--){const Ot=Ze[it];if(Ot.svgText&&Ot.svgText.toString().indexOf(Ke)>-1){const Qt=this._svgElementFromConfig(Ot),Me=this._extractSvgIconFromSet(Qt,Ke,Ot.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(Ze=>Ke.svgText=Ze),(0,M.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(Ze=>Ke.svgText=Ze))}_extractSvgIconFromSet(Ke,Ze,it){const Ot=Ke.querySelector(`[id="${Ze}"]`);if(!Ot)return null;const Qt=Ot.cloneNode(!0);if(Qt.removeAttribute("id"),"svg"===Qt.nodeName.toLowerCase())return this._setSvgAttributes(Qt,it);if("symbol"===Qt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Qt),it);const Me=this._svgElementFromString(Ee(""));return Me.appendChild(Qt),this._setSvgAttributes(Me,it)}_svgElementFromString(Ke){const Ze=this._document.createElement("DIV");Ze.innerHTML=Ke;const it=Ze.querySelector("svg");if(!it)throw Error(" tag not found");return it}_toSvgElement(Ke){const Ze=this._svgElementFromString(Ee("")),it=Ke.attributes;for(let Ot=0;OtEe(Xt)),(0,R.j)(()=>this._inProgressUrlFetches.delete(Qt)),(0,X.u)());return this._inProgressUrlFetches.set(Qt,ht),ht}_addSvgIconConfig(Ke,Ze,it){return this._svgIconConfigs.set(bt(Ke,Ze),it),this}_addSvgIconSetConfig(Ke,Ze){const it=this._iconSetConfigs.get(Ke);return it?it.push(Ze):this._iconSetConfigs.set(Ke,[Ze]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const Ze=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(Ze,Ke.options),Ke.svgElement=Ze}return Ke.svgElement}_getIconConfigFromResolvers(Ke,Ze){for(let it=0;itFt?Ft.pathname+Ft.search:""}}}),Wn=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],wn=Wn.map(Ue=>`[${Ue}]`).join(", "),Je=/^url\(['"]?#(.*?)['"]?\)$/;let _t=(()=>{class Ue{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(xe);_location=(0,i.WQX)(fn);_errorHandler=(0,i.WQX)(i.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(Ke){this._color=Ke}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(Ke){Ke!==this._svgIcon&&(Ke?this._updateSvgIcon(Ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ke)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(Ke){const Ze=this._cleanupFontValue(Ke);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const Ze=this._cleanupFontValue(Ke);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),Ze=(0,i.WQX)(sn,{optional:!0});Ze&&(Ze.color&&(this.color=this._defaultColor=Ze.color),Ze.fontSet&&(this.fontSet=Ze.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const Ze=Ke.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.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(Ke){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let Ze=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const it=Ke.childNodes[Ze];(1!==it.nodeType||"svg"===it.nodeName.toLowerCase())&&it.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(it=>it.length>0);this._previousFontSetClass.forEach(it=>Ke.classList.remove(it)),Ze.forEach(it=>Ke.classList.add(it)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ke.classList.remove(this._previousFontIconClass),this.fontIcon&&Ke.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ke){return"string"==typeof Ke?Ke.trim().split(" ")[0]:Ke}_prependPathToReferences(Ke){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((it,Ot)=>{it.forEach(Qt=>{Ot.setAttribute(Qt.name,`url('${Ke}#${Qt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const Ze=Ke.querySelectorAll(wn),it=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ot=0;Ot{const Me=Ze[Ot],ht=Me.getAttribute(Qt),Xt=ht?ht.match(Je):null;if(Xt){let Tn=it.get(Me);Tn||(Tn=[],it.set(Me,Tn)),Tn.push({name:Qt,value:Xt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[Ze,it]=this._splitIconName(Ke);Ze&&(this._svgNamespace=Ze),it&&(this._svgName=it),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(it,Ze).pipe((0,Z.s)(1)).subscribe(Ot=>this._setSvgElement(Ot),Ot=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${it}! ${Ot.message}`))})}}static \u0275fac=function(Ze){return new(Ze||Ue)};static \u0275cmp=i.VBU({type:Ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(Ze,it){2&Ze&&(i.BMQ("data-mat-icon-type",it._usingFontIcon()?"font":"svg")("data-mat-icon-name",it._svgName||it.fontIcon)("data-mat-icon-namespace",it._svgNamespace||it.fontSet)("fontIcon",it._usingFontIcon()?it.fontIcon:null),i.HbH(it.color?"mat-"+it.color:""),i.AVh("mat-icon-inline",it.inline)("mat-icon-no-color","primary"!==it.color&&"accent"!==it.color&&"warn"!==it.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:pe,decls:1,vars:0,template:function(Ze,it){1&Ze&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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 Ue})(),ze=(()=>{class Ue{static \u0275fac=function(Ze){return new(Ze||Ue)};static \u0275mod=i.$C({type:Ue});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Ue})()},6389:(o,s,n)=>{"use strict";n.d(s,{fS:()=>_e,fg:()=>ne});var i=n(3022),a=n(2147),c=n(708),y=n(3107),w=n(8559),C=n(936),T=n(2902),S=n(6071),M=n(8447);const R=new y.nKC("MAT_INPUT_VALUE_ACCESSOR"),X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z=new y.nKC("MAT_INPUT_CONFIG");let ne=(()=>{class pe{_elementRef=(0,y.WQX)(y.aKT);_platform=(0,y.WQX)(a.OD);ngControl=(0,y.WQX)(C.vO,{optional:!0,self:!0});_autofillMonitor=(0,y.WQX)(c.P8);_ngZone=(0,y.WQX)(y.SKi);_formField=(0,y.WQX)(S.xb,{optional:!0});_uid=(0,y.WQX)(w.g7).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=(0,y.WQX)(Z,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new M.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(De){this._disabled=(0,i.he)(De),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(De){this._id=De||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(C.k0.required)??!1}set required(De){this._required=(0,i.he)(De)}_required;get type(){return this._type}set type(De){this._type=De||"text",this._validateType(),!this._isTextarea&&(0,a.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(De){this._errorStateTracker.matcher=De}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(De){De!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(De):this._inputValueAccessor.value=De,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(De){this._readonly=(0,i.he)(De)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(De){this._errorStateTracker.errorState=De}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(De=>(0,a.MU)().has(De));constructor(){const De=(0,y.WQX)(C.cV,{optional:!0}),Ee=(0,y.WQX)(C.j4,{optional:!0}),Le=(0,y.WQX)(T.es),Ae=(0,y.WQX)(R,{optional:!0,self:!0}),we=this._elementRef.nativeElement,le=we.nodeName.toLowerCase();Ae?(0,y.Hps)(Ae.value)?this._signalBasedValueAccessor=Ae:this._inputValueAccessor=Ae:this._inputValueAccessor=we,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{we.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new T.X0(Le,this.ngControl,Ee,De,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===le,this._isTextarea="textarea"===le,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=we.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,y.QZP)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(De=>{this.autofilled=De.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(De){this._elementRef.nativeElement.focus(De)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(De){if(De!==this.focused){if(!this._isNativeSelect&&De&&this.disabled&&this.disabledInteractive){const Ee=this._elementRef.nativeElement;"number"===Ee.type?(Ee.type="text",Ee.setSelectionRange(0,0),Ee.type="number"):Ee.setSelectionRange(0,0)}this.focused=De,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const De=this._elementRef.nativeElement.value;this._previousNativeValue!==De&&(this._previousNativeValue=De,this.stateChanges.next())}_dirtyCheckPlaceholder(){const De=this._getPlaceholder();if(De!==this._previousPlaceholder){const Ee=this._elementRef.nativeElement;this._previousPlaceholder=De,De?Ee.setAttribute("placeholder",De):Ee.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){X.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let De=this._elementRef.nativeElement.validity;return De&&De.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const De=this._elementRef.nativeElement,Ee=De.options[0];return this.focused||De.multiple||!this.empty||!!(De.selectedIndex>-1&&Ee&&Ee.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(De){const Ee=this._elementRef.nativeElement,Le=Ee.getAttribute("aria-describedby");let Ae;if(Le){const we=this._formFieldDescribedBy||De;Ae=De.concat(Le.split(" ").filter(le=>le&&!we.includes(le)))}else Ae=De;this._formFieldDescribedBy=De,Ae.length?Ee.setAttribute("aria-describedby",Ae.join(" ")):Ee.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const De=this._elementRef.nativeElement;return this._isNativeSelect&&(De.multiple||De.size>1)}_iOSKeyupListener=De=>{const Ee=De.target;!Ee.value&&0===Ee.selectionStart&&0===Ee.selectionEnd&&(Ee.setSelectionRange(1,1),Ee.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_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)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Ee){return new(Ee||pe)};static \u0275dir=y.FsC({type:pe,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Ee,Le){1&Ee&&y.bIt("focus",function(){return Le._focusChanged(!0)})("blur",function(){return Le._focusChanged(!1)})("input",function(){return Le._onInput()}),2&Ee&&(y.Mr5("id",Le.id)("disabled",Le.disabled&&!Le.disabledInteractive)("required",Le.required),y.BMQ("name",Le.name||null)("readonly",Le._getReadonlyAttribute())("aria-disabled",Le.disabled&&Le.disabledInteractive?"true":null)("aria-invalid",Le.empty&&Le.required?null:Le.errorState)("aria-required",Le.required)("id",Le.id),y.AVh("mat-input-server",Le._isServer)("mat-mdc-form-field-textarea-control",Le._isInFormField&&Le._isTextarea)("mat-mdc-form-field-input-control",Le._isInFormField)("mat-mdc-input-disabled-interactive",Le.disabledInteractive)("mdc-text-field__input",Le._isInFormField)("mat-mdc-native-select-inline",Le._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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},exportAs:["matInput"],features:[y.Jv_([{provide:S.qT,useExisting:pe}]),y.GFd,y.OA$]})}return pe})(),_e=(()=>{class pe{static \u0275fac=function(Ee){return new(Ee||pe)};static \u0275mod=y.$C({type:pe});static \u0275inj=y.G2t({imports:[T.yE,S.RG,S.RG,c.EE,T.yE]})}return pe})()},7818:(o,s,n)=>{"use strict";n.d(s,{Cn:()=>Tn,Cp:()=>Xt,fb:()=>sn,kk:()=>Ze});var i=n(3107),a=n(8559),c=n(5919),y=n(8447),w=n(7509),C=n(5710),T=n(3016),S=n(4984),M=n(593),k=n(2867),R=n(5424),X=n(1483),Z=n(7610),ne=n(8136),_e=n(4460),pe=n(2902),de=n(5467),De=n(6192),Ee=n(1204),Le=n(2944),Ae=n(9666),we=n(2147),le=n(8108);const ae=["mat-menu-item",""],xe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Be=["mat-icon, [matMenuItemIcon]","*"];function st(Wt,Zt){1&Wt&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const lt=["*"];function bt(Wt,Zt){if(1&Wt){const rt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(rt);const en=i.XpG();return i.Njj(en.closed.emit("click"))})("@transformMenu.start",function(en){i.eBV(rt);const Nn=i.XpG();return i.Njj(Nn._onAnimationStart(en))})("@transformMenu.done",function(en){i.eBV(rt);const Nn=i.XpG();return i.Njj(Nn._onAnimationDone(en))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&Wt){const rt=i.XpG();i.HbH(rt._classList),i.Y8G("id",rt.panelId)("@transformMenu",rt._panelAnimationState),i.BMQ("aria-label",rt.ariaLabel||null)("aria-labelledby",rt.ariaLabelledby||null)("aria-describedby",rt.ariaDescribedby||null)}}const at=new i.nKC("MAT_MENU_PANEL");let sn=(()=>{class Wt{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(_e.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(at,{optional:!0});_changeDetectorRef=(0,i.WQX)(i.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new y.B;_focused=new y.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,i.WQX)(de.l).load(pe.Ah),this._parentMenu?.addItem?.(this)}focus(rt,Ht){this._focusMonitor&&rt?this._focusMonitor.focusVia(this._getHostElement(),rt,Ht):this._getHostElement().focus(Ht),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(rt){this.disabled&&(rt.preventDefault(),rt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const rt=this._elementRef.nativeElement.cloneNode(!0),Ht=rt.querySelectorAll("mat-icon, .material-icons");for(let en=0;en enter",(0,Ee.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ee.iF)({opacity:1,transform:"scale(1)"}))),(0,Ee.kY)("* => void",(0,Ee.i0)("100ms 25ms linear",(0,Ee.iF)({opacity:0})))]),fadeInItems:(0,Ee.hZ)("fadeInItems",[(0,Ee.wk)("showing",(0,Ee.iF)({opacity:1})),(0,Ee.kY)("void => *",[(0,Ee.iF)({opacity:0}),(0,Ee.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ke(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ze=(()=>{class Wt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new i.rOR;_classList={};_panelAnimationState="void";_animationDone=new y.B;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(rt){this._xPosition=rt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(rt){this._yPosition=rt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(rt){const Ht=this._previousPanelClass,en={...this._classList};Ht&&Ht.length&&Ht.split(" ").forEach(Nn=>{en[Nn]=!1}),this._previousPanelClass=rt,rt&&rt.length&&(rt.split(" ").forEach(Nn=>{en[Nn]=!0}),this._elementRef.nativeElement.className=""),this._classList=en}_previousPanelClass;get classList(){return this.panelClass}set classList(rt){this.panelClass=rt}closed=new i.bkB;close=this.closed;panelId=(0,i.WQX)(a.g7).getId("mat-menu-panel-");_injector=(0,i.WQX)(i.zZn);constructor(){const rt=(0,i.WQX)(Ft);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 a.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,M.Z)(this._directDescendantItems),(0,k.n)(rt=>(0,w.h)(...rt.map(Ht=>Ht._focused)))).subscribe(rt=>this._keyManager.updateActiveItem(rt)),this._directDescendantItems.changes.subscribe(rt=>{const Ht=this._keyManager;if("enter"===this._panelAnimationState&&Ht.activeItem?._hasFocus()){const en=rt.toArray(),Nn=Math.max(0,Math.min(en.length-1,Ht.activeItemIndex||0));en[Nn]&&!en[Nn].disabled?Ht.setActiveItem(Nn):Ht.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,M.Z)(this._directDescendantItems),(0,k.n)(Ht=>(0,w.h)(...Ht.map(en=>en._hovered))))}addItem(rt){}removeItem(rt){}_handleKeydown(rt){const Ht=rt.keyCode,en=this._keyManager;switch(Ht){case c._f:(0,c.rp)(rt)||(rt.preventDefault(),this.closed.emit("keydown"));break;case c.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ht===c.i7||Ht===c.n6)&&en.setFocusOrigin("keyboard"),void en.onKeydown(rt)}}focusFirstItem(rt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let Ht=null;if(this._directDescendantItems.length&&(Ht=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Ht||!Ht.contains(document.activeElement)){const en=this._keyManager;en.setFocusOrigin(rt).setFirstItemActive(),!en.activeItem&&Ht&&Ht.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(rt){}setPositionClasses(rt=this.xPosition,Ht=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===rt,"mat-menu-after":"after"===rt,"mat-menu-above":"above"===Ht,"mat-menu-below":"below"===Ht},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(rt){this._animationDone.next(rt),this._isAnimating=!1}_onAnimationStart(rt){this._isAnimating=!0,"enter"===rt.toState&&0===this._keyManager.activeItemIndex&&(rt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,M.Z)(this._allItems)).subscribe(rt=>{this._directDescendantItems.reset(rt.filter(Ht=>Ht._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275cmp=i.VBU({type:Wt,selectors:[["mat-menu"]],contentQueries:function(Ht,en,Nn){if(1&Ht&&(i.wni(Nn,wn,5),i.wni(Nn,sn,5),i.wni(Nn,sn,4)),2&Ht){let mn;i.mGM(mn=i.lsd())&&(en.lazyContent=mn.first),i.mGM(mn=i.lsd())&&(en._allItems=mn),i.mGM(mn=i.lsd())&&(en.items=mn)}},viewQuery:function(Ht,en){if(1&Ht&&i.GBs(i.C4Q,5),2&Ht){let Nn;i.mGM(Nn=i.lsd())&&(en.templateRef=Nn.first)}},hostVars:3,hostBindings:function(Ht,en){2&Ht&&i.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",i.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",rt=>null==rt?null:(0,i.L39)(rt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:at,useExisting:Wt}]),i.GFd],ngContentSelectors:lt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(Ht,en){1&Ht&&(i.NAR(),i.DNE(0,bt,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-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-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-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));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}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding: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;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-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-sys-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, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[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, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: 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:[_t.transformMenu,_t.fadeInItems]},changeDetection:0})}return Wt})();const it=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Wt=(0,i.WQX)(Ae.hJ);return()=>Wt.scrollStrategies.reposition()}}),Qt={provide:it,deps:[Ae.hJ],useFactory:function Ot(Wt){return()=>Wt.scrollStrategies.reposition()}},Me=(0,we.BQ)({passive:!0});let Xt=(()=>{class Wt{_overlay=(0,i.WQX)(Ae.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(sn,{optional:!0,self:!0});_dir=(0,i.WQX)(Le.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(it);_changeDetectorRef=(0,i.WQX)(i.gRc);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=C.yU.EMPTY;_hoverSubscription=C.yU.EMPTY;_menuCloseSubscription=C.yU.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=rt=>{(0,a.w6)(rt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(rt){this.menu=rt}get menu(){return this._menu}set menu(rt){rt!==this._menu&&(this._menu=rt,this._menuCloseSubscription.unsubscribe(),rt&&(this._menuCloseSubscription=rt.close.subscribe(Ht=>{this._destroyMenu(Ht),("click"===Ht||"tab"===Ht)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ht)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new i.bkB;onMenuOpen=this.menuOpened;menuClosed=new i.bkB;onMenuClose=this.menuClosed;constructor(){const rt=(0,i.WQX)(at,{optional:!0});this._parentMaterialMenu=rt instanceof Ze?rt:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,Me)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Me),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 rt=this.menu;if(this._menuOpen||!rt)return;const Ht=this._createOverlay(rt),en=Ht.getConfig(),Nn=en.positionStrategy;this._setPosition(rt,Nn),en.hasBackdrop=null==rt.hasBackdrop?!this.triggersSubmenu():rt.hasBackdrop,Ht.attach(this._getPortal(rt)),rt.lazyContent&&rt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(rt),rt instanceof Ze&&(rt._startAnimation(),rt._directDescendantItems.changes.pipe((0,R.Q)(rt.close)).subscribe(()=>{Nn.withLockedPosition(!1).reapplyLastPosition(),Nn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(rt,Ht){this._focusMonitor&&rt?this._focusMonitor.focusVia(this._element,rt,Ht):this._element.nativeElement.focus(Ht)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(rt){if(!this._overlayRef||!this.menuOpen)return;const Ht=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===rt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ht instanceof Ze?(Ht._resetAnimation(),Ht.lazyContent?Ht._animationDone.pipe((0,X.p)(en=>"void"===en.toState),(0,Z.s)(1),(0,R.Q)(Ht.lazyContent._attached)).subscribe({next:()=>Ht.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ht?.lazyContent?.detach())}_initMenu(rt){rt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,rt.direction=this.dir,rt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(rt){rt!==this._menuOpen&&(this._menuOpen=rt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(rt),this._changeDetectorRef.markForCheck())}_createOverlay(rt){if(!this._overlayRef){const Ht=this._getOverlayConfig(rt);this._subscribeToPositions(rt,Ht.positionStrategy),this._overlayRef=this._overlay.create(Ht),this._overlayRef.keydownEvents().subscribe(en=>{this.menu instanceof Ze&&this.menu._handleKeydown(en)})}return this._overlayRef}_getOverlayConfig(rt){return new Ae.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:rt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:rt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(rt,Ht){rt.setPositionClasses&&Ht.positionChanges.subscribe(en=>{this._ngZone.run(()=>{rt.setPositionClasses("start"===en.connectionPair.overlayX?"after":"before","top"===en.connectionPair.overlayY?"below":"above")})})}_setPosition(rt,Ht){let[en,Nn]="before"===rt.xPosition?["end","start"]:["start","end"],[mn,Mn]="above"===rt.yPosition?["bottom","top"]:["top","bottom"],[tt,Kt]=[mn,Mn],[At,Te]=[en,Nn],be=0;if(this.triggersSubmenu()){if(Te=en="before"===rt.xPosition?"start":"end",Nn=At="end"===en?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const He=this._parentMaterialMenu.items.first;this._parentInnerPadding=He?He._getHostElement().offsetTop:0}be="bottom"===mn?this._parentInnerPadding:-this._parentInnerPadding}}else rt.overlapTrigger||(tt="top"===mn?"bottom":"top",Kt="top"===Mn?"bottom":"top");Ht.withPositions([{originX:en,originY:tt,overlayX:At,overlayY:mn,offsetY:be},{originX:Nn,originY:tt,overlayX:Te,overlayY:mn,offsetY:be},{originX:en,originY:Kt,overlayX:At,overlayY:Mn,offsetY:-be},{originX:Nn,originY:Kt,overlayX:Te,overlayY:Mn,offsetY:-be}])}_menuClosingActions(){const rt=this._overlayRef.backdropClick(),Ht=this._overlayRef.detachments(),en=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Nn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,X.p)(mn=>mn!==this._menuItemInstance),(0,X.p)(()=>this._menuOpen)):(0,T.of)();return(0,w.h)(rt,en,Nn,Ht)}_handleMousedown(rt){(0,a._G)(rt)||(this._openedBy=0===rt.button?"mouse":void 0,this.triggersSubmenu()&&rt.preventDefault())}_handleKeydown(rt){const Ht=rt.keyCode;(Ht===c.Fm||Ht===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ht===c.LE&&"ltr"===this.dir||Ht===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(rt){this.triggersSubmenu()?(rt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,X.p)(rt=>rt===this._menuItemInstance&&!rt.disabled),(0,ne.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,ne.c)(0,S.$),(0,R.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(rt){return(!this._portal||this._portal.templateRef!==rt.templateRef)&&(this._portal=new De.VA(rt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275dir=i.FsC({type:Wt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Ht,en){1&Ht&&i.bIt("click",function(mn){return en._handleClick(mn)})("mousedown",function(mn){return en._handleMousedown(mn)})("keydown",function(mn){return en._handleKeydown(mn)}),2&Ht&&i.BMQ("aria-haspopup",en.menu?"menu":null)("aria-expanded",en.menuOpen)("aria-controls",en.menuOpen?en.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"]})}return Wt})(),Tn=(()=>{class Wt{static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275mod=i.$C({type:Wt});static \u0275inj=i.G2t({providers:[Qt],imports:[pe.pZ,pe.yE,Ae.z_,le.Gj,pe.yE]})}return Wt})()},2322:(o,s,n)=>{"use strict";n.d(s,{HM:()=>S,PO:()=>k});var i=n(3107),c=(n(4460),n(2902));function y(R,X){1&R&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class R{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=M(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=M(Z||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new i.bkB;get mode(){return this._mode}set mode(Z){this._mode=Z,this._changeDetectorRef.markForCheck()}_mode="determinate";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}_transitionendHandler=Z=>{0===this.animationEnd.observers.length||!Z.target||!Z.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(ne){return new(ne||R)};static \u0275cmp=i.VBU({type:R,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(ne,_e){2&ne&&(i.BMQ("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),i.HbH("mat-"+_e.color),i.AVh("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",i.Udg],bufferValue:[2,"bufferValue","bufferValue",i.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.GFd],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(ne,_e){1&ne&&(i.j41(0,"div",0),i.nrm(1,"div",1),i.DNE(2,y,1,0,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&ne&&(i.R7$(),i.xc7("flex-basis",_e._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===_e.mode?2:-1),i.R7$(),i.xc7("transform",_e._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, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: 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, 4px)}.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-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.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, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-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-sys-surface-variant))}@media(forced-colors: 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-sys-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, 4px) * -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 R})();function M(R,X=0,Z=100){return Math.max(X,Math.min(Z,R))}let k=(()=>{class R{static \u0275fac=function(ne){return new(ne||R)};static \u0275mod=i.$C({type:R});static \u0275inj=i.G2t({imports:[c.yE]})}return R})()},2675:(o,s,n)=>{"use strict";n.d(s,{VO:()=>Ht,Ve:()=>Nn,$2:()=>en});var i=n(9666),a=n(3107),c=n(2902),y=n(6071),w=n(8108),C=n(8559),T=n(2944),k=(n(1531),n(3016),n(8447));class De{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new k.B;constructor(Mn=!1,tt,Kt=!0,At){this._multiple=Mn,this._emitChanges=Kt,this.compareWith=At,tt&&tt.length&&(Mn?tt.forEach(Te=>this._markSelected(Te)):this._markSelected(tt[0]),this._selectedToEmit.length=0)}select(...Mn){this._verifyValueAssignment(Mn),Mn.forEach(Kt=>this._markSelected(Kt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}deselect(...Mn){this._verifyValueAssignment(Mn),Mn.forEach(Kt=>this._unmarkSelected(Kt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}setSelection(...Mn){this._verifyValueAssignment(Mn);const tt=this.selected,Kt=new Set(Mn);Mn.forEach(Te=>this._markSelected(Te)),tt.filter(Te=>!Kt.has(this._getConcreteValue(Te,Kt))).forEach(Te=>this._unmarkSelected(Te));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}toggle(Mn){return this.isSelected(Mn)?this.deselect(Mn):this.select(Mn)}clear(Mn=!0){this._unmarkAll();const tt=this._hasQueuedChanges();return Mn&&this._emitChangeEvent(),tt}isSelected(Mn){return this._selection.has(this._getConcreteValue(Mn))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Mn){this._multiple&&this.selected&&this._selected.sort(Mn)}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(Mn){Mn=this._getConcreteValue(Mn),this.isSelected(Mn)||(this._multiple||this._unmarkAll(),this.isSelected(Mn)||this._selection.add(Mn),this._emitChanges&&this._selectedToEmit.push(Mn))}_unmarkSelected(Mn){Mn=this._getConcreteValue(Mn),this.isSelected(Mn)&&(this._selection.delete(Mn),this._emitChanges&&this._deselectedToEmit.push(Mn))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Mn=>this._unmarkSelected(Mn))}_verifyValueAssignment(Mn){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Mn,tt){if(this.compareWith){tt=tt??this._selection;for(let Kt of tt)if(this.compareWith(Mn,Kt))return Kt;return Mn}return Mn}}var Ae=n(5919),we=n(936),le=n(6381),ae=n(7509),xe=n(593),Be=n(2867),st=n(1483),lt=n(7947),bt=n(6645),at=n(5424),sn=n(7610),fn=n(1204),En=n(4460);const Wn=["trigger"],wn=["panel"],Je=[[["mat-select-trigger"]],"*"],_t=["mat-select-trigger","*"];function ze(mn,Mn){if(1&mn&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&mn){const tt=a.XpG();a.R7$(),a.JRh(tt.placeholder)}}function Ue(mn,Mn){1&mn&&a.SdG(0)}function Ft(mn,Mn){if(1&mn&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&mn){const tt=a.XpG(2);a.R7$(),a.JRh(tt.triggerValue)}}function Ke(mn,Mn){if(1&mn&&(a.j41(0,"span",5),a.DNE(1,Ue,1,0)(2,Ft,2,1,"span",11),a.k0s()),2&mn){const tt=a.XpG();a.R7$(),a.vxM(tt.customTrigger?1:2)}}function Ze(mn,Mn){if(1&mn){const tt=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(At){a.eBV(tt);const Te=a.XpG();return a.Njj(Te._panelDoneAnimatingStream.next(At.toState))})("keydown",function(At){a.eBV(tt);const Te=a.XpG();return a.Njj(Te._handleKeydown(At))}),a.SdG(2,1),a.k0s()}if(2&mn){const tt=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",tt._getPanelTheme(),""),a.Y8G("ngClass",tt.panelClass)("@transformPanel","showing"),a.BMQ("id",tt.id+"-panel")("aria-multiselectable",tt.multiple)("aria-label",tt.ariaLabel||null)("aria-labelledby",tt._getPanelAriaLabelledby())}}const it={transformPanelWrap:(0,fn.hZ)("transformPanelWrap",[(0,fn.kY)("* => void",(0,fn.P)("@transformPanel",[(0,fn.MA)()],{optional:!0}))]),transformPanel:(0,fn.hZ)("transformPanel",[(0,fn.wk)("void",(0,fn.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,fn.kY)("void => showing",(0,fn.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,fn.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,fn.kY)("* => void",(0,fn.i0)("100ms linear",(0,fn.iF)({opacity:0})))])},ht=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const mn=(0,a.WQX)(i.hJ);return()=>mn.scrollStrategies.reposition()}}),Tn=new a.nKC("MAT_SELECT_CONFIG"),Wt={provide:ht,deps:[i.hJ],useFactory:function Xt(mn){return()=>mn.scrollStrategies.reposition()}},Zt=new a.nKC("MatSelectTrigger");class rt{source;value;constructor(Mn,tt){this.source=Mn,this.value=tt}}let Ht=(()=>{class mn{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(T.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(we.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(Tn,{optional:!0});options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(tt){const Kt=this.options.toArray()[tt];if(Kt){const At=this.panel.nativeElement,Te=(0,c.jb)(tt,this.options,this.optionGroups),be=Kt._getHostElement();At.scrollTop=0===tt&&1===Te?0:(0,c.TL)(be.offsetTop,be.offsetHeight,At.scrollTop,At.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(tt){return new rt(this,tt)}_scrollStrategyFactory=(0,a.WQX)(ht);_panelOpen=!1;_compareWith=(tt,Kt)=>tt===Kt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new k.B;_errorStateTracker;stateChanges=new k.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new k.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(tt){this._hideSingleSelectionIndicator=tt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(tt){this._placeholder=tt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(we.k0.required)??!1}set required(tt){this._required=tt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(tt){this._multiple=tt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(tt){this._compareWith=tt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(tt){this._assignValue(tt)&&this._onChange(tt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(tt){this._errorStateTracker.matcher=tt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(tt){this._id=tt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(tt){this._errorStateTracker.errorState=tt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new k.B;optionSelectionChanges=(0,le.v)(()=>{const tt=this.options;return tt?tt.changes.pipe((0,xe.Z)(tt),(0,Be.n)(()=>(0,ae.h)(...tt.map(Kt=>Kt.onSelectionChange)))):this._initialized.pipe((0,Be.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(tt=>tt),(0,lt.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(tt=>!tt),(0,lt.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const tt=(0,a.WQX)(c.es),Kt=(0,a.WQX)(we.cV,{optional:!0}),At=(0,a.WQX)(we.j4,{optional:!0}),Te=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new c.X0(tt,this.ngControl,At,Kt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Te?0:parseInt(Te)||0,this.id=this.id}ngOnInit(){this._selectionModel=new De(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,bt.F)(),(0,at.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,at.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,at.Q)(this._destroy)).subscribe(tt=>{tt.added.forEach(Kt=>Kt.select()),tt.removed.forEach(Kt=>Kt.deselect())}),this.options.changes.pipe((0,xe.Z)(null),(0,at.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const tt=this._getTriggerAriaLabelledby(),Kt=this.ngControl;if(tt!==this._triggerAriaLabelledBy){const At=this._elementRef.nativeElement;this._triggerAriaLabelledBy=tt,tt?At.setAttribute("aria-labelledby",tt):At.removeAttribute("aria-labelledby")}Kt&&(this._previousControl!==Kt.control&&(void 0!==this._previousControl&&null!==Kt.disabled&&Kt.disabled!==this.disabled&&(this.disabled=Kt.disabled),this._previousControl=Kt.control),this.updateErrorState())}ngOnChanges(tt){(tt.disabled||tt.userAriaDescribedBy)&&this.stateChanges.next(),tt.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())}_trackedModal=null;_applyModalPanelOwnership(){const tt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!tt)return;const Kt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Kt),(0,C.px)(tt,"aria-owns",Kt),this._trackedModal=tt}_clearFromModal(){this._trackedModal&&((0,C.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(tt){this._assignValue(tt)}registerOnChange(tt){this._onChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt,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 tt=this._selectionModel.selected.map(Kt=>Kt.viewValue);return this._isRtl()&&tt.reverse(),tt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(tt){this.disabled||(this.panelOpen?this._handleOpenKeydown(tt):this._handleClosedKeydown(tt))}_handleClosedKeydown(tt){const Kt=tt.keyCode,At=Kt===Ae.n6||Kt===Ae.i7||Kt===Ae.UQ||Kt===Ae.LE,Te=Kt===Ae.Fm||Kt===Ae.t6,be=this._keyManager;if(!be.isTyping()&&Te&&!(0,Ae.rp)(tt)||(this.multiple||tt.altKey)&&At)tt.preventDefault(),this.open();else if(!this.multiple){const He=this.selected;be.onKeydown(tt);const z=this.selected;z&&He!==z&&this._liveAnnouncer.announce(z.viewValue,1e4)}}_handleOpenKeydown(tt){const Kt=this._keyManager,At=tt.keyCode,Te=At===Ae.n6||At===Ae.i7,be=Kt.isTyping();if(Te&&tt.altKey)tt.preventDefault(),this.close();else if(be||At!==Ae.Fm&&At!==Ae.t6||!Kt.activeItem||(0,Ae.rp)(tt))if(!be&&this._multiple&&At===Ae.A&&tt.ctrlKey){tt.preventDefault();const He=this.options.some(z=>!z.disabled&&!z.selected);this.options.forEach(z=>{z.disabled||(He?z.select():z.deselect())})}else{const He=Kt.activeItemIndex;Kt.onKeydown(tt),this._multiple&&Te&&tt.shiftKey&&Kt.activeItem&&Kt.activeItemIndex!==He&&Kt.activeItem._selectViaInteraction()}else tt.preventDefault(),Kt.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,sn.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(tt){if(this.options.forEach(Kt=>Kt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&tt)Array.isArray(tt),tt.forEach(Kt=>this._selectOptionByValue(Kt)),this._sortValues();else{const Kt=this._selectOptionByValue(tt);Kt?this._keyManager.updateActiveItem(Kt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(tt){const Kt=this.options.find(At=>{if(this._selectionModel.isSelected(At))return!1;try{return null!=At.value&&this._compareWith(At.value,tt)}catch{return!1}});return Kt&&this._selectionModel.select(Kt),Kt}_assignValue(tt){return!!(tt!==this._value||this._multiple&&Array.isArray(tt))&&(this.options&&this._setSelectionByValue(tt),this._value=tt,!0)}_skipPredicate=tt=>!this.panelOpen&&tt.disabled;_getOverlayWidth(tt){return"auto"===this.panelWidth?(tt instanceof i.$Q?tt.elementRef:tt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const tt of this.options)tt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.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 tt=(0,ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,at.Q)(tt)).subscribe(Kt=>{this._onSelect(Kt.source,Kt.isUserInput),Kt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.h)(...this.options.map(Kt=>Kt._stateChanges)).pipe((0,at.Q)(tt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(tt,Kt){const At=this._selectionModel.isSelected(tt);null!=tt.value||this._multiple?(At!==tt.selected&&(tt.selected?this._selectionModel.select(tt):this._selectionModel.deselect(tt)),Kt&&this._keyManager.setActiveItem(tt),this.multiple&&(this._sortValues(),Kt&&this.focus())):(tt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(tt.value)),At!==this._selectionModel.isSelected(tt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const tt=this.options.toArray();this._selectionModel.sort((Kt,At)=>this.sortComparator?this.sortComparator(Kt,At,tt):tt.indexOf(Kt)-tt.indexOf(At)),this.stateChanges.next()}}_propagateChanges(tt){let Kt;Kt=this.multiple?this.selected.map(At=>At.value):this.selected?this.selected.value:tt,this._value=Kt,this.valueChange.emit(Kt),this._onChange(Kt),this.selectionChange.emit(this._getChangeEvent(Kt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let tt=-1;for(let Kt=0;Kt0}focus(tt){this._elementRef.nativeElement.focus(tt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(tt?tt+" ":"")+this.ariaLabelledby:tt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();let Kt=(tt?tt+" ":"")+this._valueId;return this.ariaLabelledby&&(Kt+=" "+this.ariaLabelledby),Kt}_panelDoneAnimating(tt){this.openedChange.emit(tt)}setDescribedByIds(tt){tt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",tt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275cmp=a.VBU({type:mn,selectors:[["mat-select"]],contentQueries:function(Kt,At,Te){if(1&Kt&&(a.wni(Te,Zt,5),a.wni(Te,c.wT,5),a.wni(Te,c.QC,5)),2&Kt){let be;a.mGM(be=a.lsd())&&(At.customTrigger=be.first),a.mGM(be=a.lsd())&&(At.options=be),a.mGM(be=a.lsd())&&(At.optionGroups=be)}},viewQuery:function(Kt,At){if(1&Kt&&(a.GBs(Wn,5),a.GBs(wn,5),a.GBs(i.WB,5)),2&Kt){let Te;a.mGM(Te=a.lsd())&&(At.trigger=Te.first),a.mGM(Te=a.lsd())&&(At.panel=Te.first),a.mGM(Te=a.lsd())&&(At._overlayDir=Te.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Kt,At){1&Kt&&a.bIt("keydown",function(be){return At._handleKeydown(be)})("focus",function(){return At._onFocus()})("blur",function(){return At._onBlur()}),2&Kt&&(a.BMQ("id",At.id)("tabindex",At.disabled?-1:At.tabIndex)("aria-controls",At.panelOpen?At.id+"-panel":null)("aria-expanded",At.panelOpen)("aria-label",At.ariaLabel||null)("aria-required",At.required.toString())("aria-disabled",At.disabled.toString())("aria-invalid",At.errorState)("aria-activedescendant",At._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",At.disabled)("mat-mdc-select-invalid",At.errorState)("mat-mdc-select-required",At.required)("mat-mdc-select-empty",At.empty)("mat-mdc-select-multiple",At.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",a.L39],disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",tt=>null==tt?0:(0,a.Udg)(tt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",a.L39],placeholder:"placeholder",required:[2,"required","required",a.L39],multiple:[2,"multiple","multiple",a.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",a.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",a.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Jv_([{provide:y.qT,useExisting:mn},{provide:c.is,useExisting:mn}]),a.GFd,a.OA$],ngContentSelectors:_t,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(Kt,At){if(1&Kt){const Te=a.RV6();a.NAR(Je),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Te),a.Njj(At.open())}),a.j41(3,"div",3),a.DNE(4,ze,2,1,"span",4)(5,Ke,3,1,"span",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.qSk(),a.j41(8,"svg",8),a.nrm(9,"path",9),a.k0s()()()(),a.DNE(10,Ze,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Te),a.Njj(At.close())})("attach",function(){return a.eBV(Te),a.Njj(At._onAttached())})("detach",function(){return a.eBV(Te),a.Njj(At.close())})}if(2&Kt){const Te=a.sdS(1);a.R7$(3),a.BMQ("id",At._valueId),a.R7$(),a.vxM(At.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",At._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",At._scrollStrategy)("cdkConnectedOverlayOrigin",At._preferredOverlayOrigin||Te)("cdkConnectedOverlayOpen",At.panelOpen)("cdkConnectedOverlayPositions",At._positions)("cdkConnectedOverlayWidth",At._overlayWidth)}},dependencies:[i.$Q,i.WB,En.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-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .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-sys-surface-container))}@media(forced-colors: 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-sys-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, translateY(-8px))}'],encapsulation:2,data:{animation:[it.transformPanel]},changeDetection:0})}return mn})(),en=(()=>{class mn{static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275dir=a.FsC({type:mn,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Zt,useExisting:mn}])]})}return mn})(),Nn=(()=>{class mn{static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275mod=a.$C({type:mn});static \u0275inj=a.G2t({providers:[Wt],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return mn})()},5785:(o,s,n)=>{"use strict";n.d(s,{$C:()=>Ue,$l:()=>_t,qe:()=>ze,vg:()=>it});var i=n(8108),a=n(3107),c=n(2902),y=n(8559),w=n(2944),C=n(3022),T=n(5919),S=n(2147),M=n(4460),k=n(8447),R=n(909),X=n(7509),Z=n(1483),ne=n(7947),_e=n(6590),pe=n(5424),de=n(7610),De=n(593),Ee=n(8627),Le=n(1204);const Ae=["*"],we=["content"],le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ae=["mat-drawer","mat-drawer-content","*"];function xe(Ot,Qt){if(1&Ot){const Me=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(Me);const Xt=a.XpG();return a.Njj(Xt._onBackdropClicked())}),a.k0s()}if(2&Ot){const Me=a.XpG();a.AVh("mat-drawer-shown",Me._isShowingBackdrop())}}function Be(Ot,Qt){1&Ot&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const fn={transformDrawer:(0,Le.hZ)("transform",[(0,Le.wk)("open, open-instant",(0,Le.iF)({transform:"none",visibility:"visible"})),(0,Le.wk)("void",(0,Le.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Le.kY)("void => open-instant",(0,Le.i0)("0ms")),(0,Le.kY)("void <=> open, open-instant => void",(0,Le.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wn=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Je(){return!1}}),wn=new a.nKC("MAT_DRAWER_CONTAINER");let _t=(()=>{class Ot extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Ue);constructor(){super((0,a.WQX)(a.aKT),(0,a.WQX)(i.R),(0,a.WQX)(a.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:Me,end:ht}=this._container;return null!=Me&&"over"!==Me.mode&&Me.opened||null!=ht&&"over"!==ht.mode&&ht.opened}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(ht,Xt){2&ht&&(a.xc7("margin-left",Xt._container._contentMargins.left,"px")("margin-right",Xt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Xt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:Ot}]),a.Vt3],ngContentSelectors:Ae,decls:1,vars:0,template:function(ht,Xt){1&ht&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return Ot})(),ze=(()=>{class Ot{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(y.GX);_focusMonitor=(0,a.WQX)(y.FN);_platform=(0,a.WQX)(S.OD);_ngZone=(0,a.WQX)(a.SKi);_interactivityChecker=(0,a.WQX)(y.Z7);_doc=(0,a.WQX)(M.qQ,{optional:!0});_container=(0,a.WQX)(wn,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Me),this._position=Me,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,C.he)(Me)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Me){("true"===Me||"false"===Me||null==Me)&&(Me=(0,C.he)(Me)),this._autoFocus=Me}_autoFocus;get opened(){return this._opened}set opened(Me){this.toggle((0,C.he)(Me))}_opened=!1;_openedVia;_animationStarted=new k.B;_animationEnd=new k.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(Me=>Me),(0,ne.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(Me=>Me.fromState!==Me.toState&&0===Me.toState.indexOf("open")),(0,_e.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(Me=>!Me),(0,ne.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(Me=>Me.fromState!==Me.toState&&"void"===Me.toState),(0,_e.u)(void 0));_destroyed=new k.B;onPositionChanged=new a.bkB;_content;_modeChanged=new k.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,pe.Q)(this._destroyed)).subscribe(Me=>{Me?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(Me=>Me.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(Me)),(0,pe.Q)(this._destroyed)).subscribe(Me=>this._ngZone.run(()=>{this.close(),Me.stopPropagation(),Me.preventDefault()}))}),this._animationEnd.subscribe(Me=>{const{fromState:ht,toState:Xt}=Me;(0===Xt.indexOf("open")&&"void"===ht||"void"===Xt&&0===ht.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Me,ht){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Xt=()=>{Me.removeEventListener("blur",Xt),Me.removeEventListener("mousedown",Xt),Me.removeAttribute("tabindex")};Me.addEventListener("blur",Xt),Me.addEventListener("mousedown",Xt)})),Me.focus(ht)}_focusByCssSelector(Me,ht){let Xt=this._elementRef.nativeElement.querySelector(Me);Xt&&this._forceFocus(Xt,ht)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,a.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof Me.focus&&Me.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(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Me=this._doc.activeElement;return!!Me&&this._elementRef.nativeElement.contains(Me)}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(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,ht){Me&&ht&&(this._openedVia=ht);const Xt=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),Xt}_setOpen(Me,ht,Xt){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",ht&&this._restoreFocus(Xt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Tn=>{this.openedChange.pipe((0,de.s)(1)).subscribe(Wt=>Tn(Wt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(Me){if(!this._platform.isBrowser)return;const ht=this._elementRef.nativeElement,Xt=ht.parentNode;"end"===Me?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Xt.insertBefore(this._anchor,ht)),Xt.appendChild(ht)):this._anchor&&this._anchor.parentNode.insertBefore(ht,this._anchor)}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer"]],viewQuery:function(ht,Xt){if(1&ht&&a.GBs(we,5),2&ht){let Tn;a.mGM(Tn=a.lsd())&&(Xt._content=Tn.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ht,Xt){1&ht&&a.Kam("@transform.start",function(Wt){return Xt._animationStarted.next(Wt)})("@transform.done",function(Wt){return Xt._animationEnd.next(Wt)}),2&ht&&(a.zvX("@transform",Xt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Xt.position)("mat-drawer-over","over"===Xt.mode)("mat-drawer-push","push"===Xt.mode)("mat-drawer-side","side"===Xt.mode)("mat-drawer-opened",Xt.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"],ngContentSelectors:Ae,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(ht,Xt){1&ht&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[fn.transformDrawer]},changeDetection:0})}return Ot})(),Ue=(()=>{class Ot{_dir=(0,a.WQX)(w.dS,{optional:!0});_element=(0,a.WQX)(a.aKT);_ngZone=(0,a.WQX)(a.SKi);_changeDetectorRef=(0,a.WQX)(a.gRc);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_allDrawers;_drawers=new a.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,C.he)(Me)}_autosize=(0,a.WQX)(Wn);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,C.he)(Me)}_backdropOverride;backdropClick=new a.bkB;_start;_end;_left;_right;_destroyed=new k.B;_doCheckSubject=new k.B;_contentMargins={left:null,right:null};_contentMarginChanges=new k.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const Me=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,pe.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Me.change().pipe((0,pe.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,De.Z)(this._allDrawers),(0,pe.Q)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(ht=>!ht._container||ht._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,De.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Ee.B)(10),(0,pe.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,ht=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const Xt=this._left._getWidth();Me+=Xt,ht-=Xt}if(this._right&&this._right.opened)if("side"==this._right.mode)ht+=this._right._getWidth();else if("push"==this._right.mode){const Xt=this._right._getWidth();ht+=Xt,Me-=Xt}Me=Me||null,ht=ht||null,(Me!==this._contentMargins.left||ht!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:ht},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,Z.p)(ht=>ht.fromState!==ht.toState),(0,pe.Q)(this._drawers.changes)).subscribe(ht=>{"open-instant"!==ht.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,pe.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){Me&&Me.onPositionChanged.pipe((0,pe.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,pe.Q)((0,X.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const ht=this._element.nativeElement.classList,Xt="mat-drawer-container-has-open";Me?ht.add(Xt):ht.remove(Xt)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._drawerHasBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(Me){return null!=Me&&Me.opened}_drawerHasBackdrop(Me){return null==this._backdropOverride?!!Me&&"side"!==Me.mode:this._backdropOverride}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer-container"]],contentQueries:function(ht,Xt,Tn){if(1&ht&&(a.wni(Tn,_t,5),a.wni(Tn,ze,5)),2&ht){let Wt;a.mGM(Wt=a.lsd())&&(Xt._content=Wt.first),a.mGM(Wt=a.lsd())&&(Xt._allDrawers=Wt)}},viewQuery:function(ht,Xt){if(1&ht&&a.GBs(_t,5),2&ht){let Tn;a.mGM(Tn=a.lsd())&&(Xt._userContent=Tn.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ht,Xt){2&ht&&a.AVh("mat-drawer-container-explicit-backdrop",Xt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:wn,useExisting:Ot}])],ngContentSelectors:ae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ht,Xt){1&ht&&(a.NAR(le),a.DNE(0,xe,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,Be,2,0,"mat-drawer-content")),2&ht&&(a.vxM(Xt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Xt._content?-1:3))},dependencies:[_t],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.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}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.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-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);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)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.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-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);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, transparent);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, transparent);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 Ot})(),it=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return Ot})()},7712:(o,s,n)=>{"use strict";n.d(s,{oV:()=>at,uc:()=>En});var i=n(5424),a=n(3022),c=n(5919),y=n(3107),w=n(4460),C=n(2147),T=n(8559),S=n(2944),M=n(9666),k=n(8108),R=n(6192),X=n(8447),ne=(n(1204),n(2902));const _e=["tooltip"],De=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const Wn=(0,y.WQX)(M.hJ);return()=>Wn.scrollStrategies.reposition({scrollThrottle:20})}}),Le={provide:De,deps:[M.hJ],useFactory:function Ee(Wn){return()=>Wn.scrollStrategies.reposition({scrollThrottle:20})}},we=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ae(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",xe=(0,C.BQ)({passive:!0});let at=(()=>{class Wn{_overlay=(0,y.WQX)(M.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(k.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(T.vr);_focusMonitor=(0,y.WQX)(T.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(we,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(De);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=sn;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Je){Je!==this._position&&(this._position=Je,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Je){this._positionAtOrigin=(0,a.he)(Je),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Je){const _t=(0,a.he)(Je);this._disabled!==_t&&(this._disabled=_t,_t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Je){this._showDelay=(0,a.OE)(Je)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Je){this._hideDelay=(0,a.OE)(Je),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Je){const _t=this._message;this._message=null!=Je?String(Je).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(_t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Je){this._tooltipClass=Je,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new X.B;constructor(){const Je=this._defaultOptions;Je&&(this._showDelay=Je.showDelay,this._hideDelay=Je.hideDelay,Je.position&&(this.position=Je.position),Je.positionAtOrigin&&(this.positionAtOrigin=Je.positionAtOrigin),Je.touchGestures&&(this.touchGestures=Je.touchGestures),Je.tooltipClass&&(this.tooltipClass=Je.tooltipClass)),this._dir.change.pipe((0,i.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,i.Q)(this._destroyed)).subscribe(Je=>{Je?"keyboard"===Je&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Je=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([_t,ze])=>{Je.removeEventListener(_t,ze,xe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Je,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Je)}show(Je=this.showDelay,_t){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(_t);this._detach(),this._portal=this._portal||new R.A8(this._tooltipComponent,this._viewContainerRef);const Ue=this._tooltipInstance=ze.attach(this._portal).instance;Ue._triggerElement=this._elementRef.nativeElement,Ue._mouseLeaveHideDelay=this._hideDelay,Ue.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ue.show(Je)}hide(Je=this.hideDelay){const _t=this._tooltipInstance;_t&&(_t.isVisible()?_t.hide(Je):(_t._cancelPendingAnimations(),this._detach()))}toggle(Je){this._isTooltipVisible()?this.hide():this.show(void 0,Je)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Je){if(this._overlayRef){const Ue=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Je)&&Ue._origin instanceof y.aKT)return this._overlayRef;this._detach()}const _t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Je||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(_t);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Ue=>{this._updateCurrentPositionClass(Ue.connectionPair),this._tooltipInstance&&Ue.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Ue=>{this._isTooltipVisible()&&Ue.keyCode===c._f&&!(0,c.rp)(Ue)&&(Ue.preventDefault(),Ue.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(Je){const _t=Je.getConfig().positionStrategy,ze=this._getOrigin(),Ue=this._getOverlayPosition();_t.withPositions([this._addOffset({...ze.main,...Ue.main}),this._addOffset({...ze.fallback,...Ue.fallback})])}_addOffset(Je){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Je.originY?Je.offsetY=-8:"bottom"===Je.originY?Je.offsetY=8:"start"===Je.originX?Je.offsetX=ze?-8:8:"end"===Je.originX&&(Je.offsetX=ze?8:-8),Je}_getOrigin(){const Je=!this._dir||"ltr"==this._dir.value,_t=this.position;let ze;"above"==_t||"below"==_t?ze={originX:"center",originY:"above"==_t?"top":"bottom"}:"before"==_t||"left"==_t&&Je||"right"==_t&&!Je?ze={originX:"start",originY:"center"}:("after"==_t||"right"==_t&&Je||"left"==_t&&!Je)&&(ze={originX:"end",originY:"center"});const{x:Ue,y:Ft}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Ue,originY:Ft}}}_getOverlayPosition(){const Je=!this._dir||"ltr"==this._dir.value,_t=this.position;let ze;"above"==_t?ze={overlayX:"center",overlayY:"bottom"}:"below"==_t?ze={overlayX:"center",overlayY:"top"}:"before"==_t||"left"==_t&&Je||"right"==_t&&!Je?ze={overlayX:"end",overlayY:"center"}:("after"==_t||"right"==_t&&Je||"left"==_t&&!Je)&&(ze={overlayX:"start",overlayY:"center"});const{x:Ue,y:Ft}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Ue,overlayY:Ft}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Je){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Je,this._tooltipInstance._markForCheck())}_invertPosition(Je,_t){return"above"===this.position||"below"===this.position?"top"===_t?_t="bottom":"bottom"===_t&&(_t="top"):"end"===Je?Je="start":"start"===Je&&(Je="end"),{x:Je,y:_t}}_updateCurrentPositionClass(Je){const{overlayY:_t,originX:ze,originY:Ue}=Je;let Ft;if(Ft="center"===_t?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===_t&&"top"===Ue?"above":"below",Ft!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const Ze=`${this._cssClassPrefix}-${ae}-`;Ke.removePanelClass(Ze+this._currentPosition),Ke.addPanelClass(Ze+Ft)}this._currentPosition=Ft}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Je=>{let _t;this._setupPointerExitEventsIfNeeded(),void 0!==Je.x&&void 0!==Je.y&&(_t=Je),this.show(void 0,_t)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Je=>{const _t=Je.targetTouches?.[0],ze=_t?{x:_t.clientX,y:_t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,ze)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Je=[];if(this._platformSupportsMouseEvents())Je.push(["mouseleave",_t=>{const ze=_t.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",_t=>this._wheelListener(_t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const _t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Je.push(["touchend",_t],["touchcancel",_t])}this._addListeners(Je),this._passiveListeners.push(...Je)}_addListeners(Je){Je.forEach(([_t,ze])=>{this._elementRef.nativeElement.addEventListener(_t,ze,xe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Je){if(this._isTooltipVisible()){const _t=this._document.elementFromPoint(Je.clientX,Je.clientY),ze=this._elementRef.nativeElement;_t!==ze&&!ze.contains(_t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Je=this.touchGestures;if("off"!==Je){const _t=this._elementRef.nativeElement,ze=_t.style;("on"===Je||"INPUT"!==_t.nodeName&&"TEXTAREA"!==_t.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Je||!_t.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Je){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Je,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(_t){return new(_t||Wn)};static \u0275dir=y.FsC({type:Wn,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(_t,ze){2&_t&&y.AVh("mat-mdc-tooltip-disabled",ze.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"]})}return Wn})(),sn=(()=>{class Wn{_changeDetectorRef=(0,y.WQX)(y.gRc);_elementRef=(0,y.WQX)(y.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new X.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const Je=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Je}show(Je){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Je)}hide(Je){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Je)}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:Je}){(!Je||!this._triggerElement.contains(Je))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Je=this._elementRef.nativeElement.getBoundingClientRect();return Je.height>24&&Je.width>=200}_handleAnimationEnd({animationName:Je}){(Je===this._showAnimation||Je===this._hideAnimation)&&this._finalizeAnimation(Je===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Je){Je?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Je){const _t=this._tooltip.nativeElement,ze=this._showAnimation,Ue=this._hideAnimation;if(_t.classList.remove(Je?Ue:ze),_t.classList.add(Je?ze:Ue),this._isVisible!==Je&&(this._isVisible=Je,this._changeDetectorRef.markForCheck()),Je&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ft=getComputedStyle(_t);("0s"===Ft.getPropertyValue("animation-duration")||"none"===Ft.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Je&&this._onShow(),this._animationsDisabled&&(_t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Je))}static \u0275fac=function(_t){return new(_t||Wn)};static \u0275cmp=y.VBU({type:Wn,selectors:[["mat-tooltip-component"]],viewQuery:function(_t,ze){if(1&_t&&y.GBs(_e,7),2&_t){let Ue;y.mGM(Ue=y.lsd())&&(ze._tooltip=Ue.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(_t,ze){1&_t&&y.bIt("mouseleave",function(Ft){return ze._handleMouseLeave(Ft)})},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(_t,ze){if(1&_t){const Ue=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Ue),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&_t&&(y.AVh("mdc-tooltip--multiline",ze._isMultiline),y.Y8G("ngClass",ze.tooltipClass),y.R7$(3),y.JRh(ze.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-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-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 Wn})(),En=(()=>{class Wn{static \u0275fac=function(_t){return new(_t||Wn)};static \u0275mod=y.$C({type:Wn});static \u0275inj=y.G2t({providers:[Le],imports:[T.Pd,M.z_,ne.yE,ne.yE,k.Gj]})}return Wn})()},6388:(o,s,n)=>{"use strict";n.d(s,{B7:()=>bt,B8:()=>Ze,hE:()=>Mn,up:()=>cn});var i=n(4460),a=n(3107);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(Dt,ct,Bt){return Dt.addEventListener(ct,Bt),()=>{Dt.removeEventListener(ct,Bt)}}dispatchEvent(Dt,ct){Dt.dispatchEvent(ct)}remove(Dt){Dt.remove()}createElement(Dt,ct){return(ct=ct||this.getDefaultDocument()).createElement(Dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Dt){return Dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Dt){return Dt instanceof DocumentFragment}getGlobalEventTarget(Dt,ct){return"window"===ct?window:"document"===ct?Dt:"body"===ct?Dt.body:null}getBaseHref(Dt){const ct=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==ct?null:function T(je){return new URL(je,document.baseURI).pathname}(ct)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(Dt){return(0,i._b)(document.cookie,Dt)}}let w=null,M=(()=>{class je{build(){return new XMLHttpRequest}static \u0275fac=function(Bt){return new(Bt||je)};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const k=new a.nKC("");let R=(()=>{class je{_zone;_plugins;_eventNameToPlugin=new Map;constructor(ct,Bt){this._zone=Bt,ct.forEach(xn=>{xn.manager=this}),this._plugins=ct.slice().reverse()}addEventListener(ct,Bt,xn){return this._findPluginFor(Bt).addEventListener(ct,Bt,xn)}getZone(){return this._zone}_findPluginFor(ct){let Bt=this._eventNameToPlugin.get(ct);if(Bt)return Bt;if(Bt=this._plugins.find(er=>er.supports(ct)),!Bt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(ct,Bt),Bt}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(k),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();class X{_doc;constructor(Dt){this._doc=Dt}manager}const Z="ng-app-id";function ne(je){for(const Dt of je)Dt.remove()}function _e(je,Dt){const ct=Dt.createElement("style");return ct.textContent=je,ct}function de(je,Dt){const ct=Dt.createElement("link");return ct.setAttribute("rel","stylesheet"),ct.setAttribute("href",je),ct}let De=(()=>{class je{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(ct,Bt,xn,er={}){this.doc=ct,this.appId=Bt,this.nonce=xn,this.isServer=(0,i.Vy)(er),function pe(je,Dt,ct){const Bt=je.head?.querySelectorAll(`style[${Z}="${Dt}"]`);if(Bt)for(const xn of Bt)xn.textContent&&(xn.removeAttribute(Z),ct.set(xn.textContent,{usage:0,elements:[xn]}))}(ct,Bt,this.inline),this.hosts.add(ct.head)}addStyles(ct,Bt){for(const xn of ct)this.addUsage(xn,this.inline,_e);Bt?.forEach(xn=>this.addUsage(xn,this.external,de))}removeStyles(ct,Bt){for(const xn of ct)this.removeUsage(xn,this.inline);Bt?.forEach(xn=>this.removeUsage(xn,this.external))}addUsage(ct,Bt,xn){const er=Bt.get(ct);er?er.usage++:Bt.set(ct,{usage:1,elements:[...this.hosts].map(xr=>this.addElement(xr,xn(ct,this.doc)))})}removeUsage(ct,Bt){const xn=Bt.get(ct);xn&&(xn.usage--,xn.usage<=0&&(ne(xn.elements),Bt.delete(ct)))}ngOnDestroy(){for(const[,{elements:ct}]of[...this.inline,...this.external])ne(ct);this.hosts.clear()}addHost(ct){this.hosts.add(ct);for(const[Bt,{elements:xn}]of this.inline)xn.push(this.addElement(ct,_e(Bt,this.doc)));for(const[Bt,{elements:xn}]of this.external)xn.push(this.addElement(ct,de(Bt,this.doc)))}removeHost(ct){this.hosts.delete(ct)}addElement(ct,Bt){return this.nonce&&Bt.setAttribute("nonce",this.nonce),this.isServer&&Bt.setAttribute(Z,this.appId),ct.appendChild(Bt)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const Ee={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"},Le=/%COMP%/g,xe=new a.nKC("",{providedIn:"root",factory:()=>!0});function lt(je,Dt){return Dt.map(ct=>ct.replace(Le,je))}let bt=(()=>{class je{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(ct,Bt,xn,er,xr,si,hi,Zi=null){this.eventManager=ct,this.sharedStylesHost=Bt,this.appId=xn,this.removeStylesOnCompDestroy=er,this.doc=xr,this.platformId=si,this.ngZone=hi,this.nonce=Zi,this.platformIsServer=(0,i.Vy)(si),this.defaultRenderer=new at(ct,xr,hi,this.platformIsServer)}createRenderer(ct,Bt){if(!ct||!Bt)return this.defaultRenderer;this.platformIsServer&&Bt.encapsulation===a.gXe.ShadowDom&&(Bt={...Bt,encapsulation:a.gXe.Emulated});const xn=this.getOrCreateRenderer(ct,Bt);return xn instanceof Je?xn.applyToHost(ct):xn instanceof wn&&xn.applyStyles(),xn}getOrCreateRenderer(ct,Bt){const xn=this.rendererByCompId;let er=xn.get(Bt.id);if(!er){const xr=this.doc,si=this.ngZone,hi=this.eventManager,Zi=this.sharedStylesHost,nn=this.removeStylesOnCompDestroy,Mt=this.platformIsServer;switch(Bt.encapsulation){case a.gXe.Emulated:er=new Je(hi,Zi,Bt,this.appId,nn,xr,si,Mt);break;case a.gXe.ShadowDom:return new Wn(hi,Zi,ct,Bt,xr,si,this.nonce,Mt);default:er=new wn(hi,Zi,Bt,nn,xr,si,Mt)}xn.set(Bt.id,er)}return er}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(R),a.KVO(De),a.KVO(a.sZ2),a.KVO(xe),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();class at{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(Dt,ct,Bt,xn){this.eventManager=Dt,this.doc=ct,this.ngZone=Bt,this.platformIsServer=xn}destroy(){}destroyNode=null;createElement(Dt,ct){return ct?this.doc.createElementNS(Ee[ct]||ct,Dt):this.doc.createElement(Dt)}createComment(Dt){return this.doc.createComment(Dt)}createText(Dt){return this.doc.createTextNode(Dt)}appendChild(Dt,ct){(En(Dt)?Dt.content:Dt).appendChild(ct)}insertBefore(Dt,ct,Bt){Dt&&(En(Dt)?Dt.content:Dt).insertBefore(ct,Bt)}removeChild(Dt,ct){ct.remove()}selectRootElement(Dt,ct){let Bt="string"==typeof Dt?this.doc.querySelector(Dt):Dt;if(!Bt)throw new a.wOt(-5104,!1);return ct||(Bt.textContent=""),Bt}parentNode(Dt){return Dt.parentNode}nextSibling(Dt){return Dt.nextSibling}setAttribute(Dt,ct,Bt,xn){if(xn){ct=xn+":"+ct;const er=Ee[xn];er?Dt.setAttributeNS(er,ct,Bt):Dt.setAttribute(ct,Bt)}else Dt.setAttribute(ct,Bt)}removeAttribute(Dt,ct,Bt){if(Bt){const xn=Ee[Bt];xn?Dt.removeAttributeNS(xn,ct):Dt.removeAttribute(`${Bt}:${ct}`)}else Dt.removeAttribute(ct)}addClass(Dt,ct){Dt.classList.add(ct)}removeClass(Dt,ct){Dt.classList.remove(ct)}setStyle(Dt,ct,Bt,xn){xn&(a.czy.DashCase|a.czy.Important)?Dt.style.setProperty(ct,Bt,xn&a.czy.Important?"important":""):Dt.style[ct]=Bt}removeStyle(Dt,ct,Bt){Bt&a.czy.DashCase?Dt.style.removeProperty(ct):Dt.style[ct]=""}setProperty(Dt,ct,Bt){null!=Dt&&(Dt[ct]=Bt)}setValue(Dt,ct){Dt.nodeValue=ct}listen(Dt,ct,Bt){if("string"==typeof Dt&&!(Dt=(0,i.QT)().getGlobalEventTarget(this.doc,Dt)))throw new Error(`Unsupported event target ${Dt} for event ${ct}`);return this.eventManager.addEventListener(Dt,ct,this.decoratePreventDefault(Bt))}decoratePreventDefault(Dt){return ct=>{if("__ngUnwrap__"===ct)return Dt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Dt(ct)):Dt(ct))&&ct.preventDefault()}}}function En(je){return"TEMPLATE"===je.tagName&&void 0!==je.content}class Wn extends at{sharedStylesHost;hostEl;shadowRoot;constructor(Dt,ct,Bt,xn,er,xr,si,hi){super(Dt,er,xr,hi),this.sharedStylesHost=ct,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Zi=lt(xn.id,xn.styles);for(const Mt of Zi){const nt=document.createElement("style");si&&nt.setAttribute("nonce",si),nt.textContent=Mt,this.shadowRoot.appendChild(nt)}const nn=xn.getExternalStyles?.();if(nn)for(const Mt of nn){const nt=de(Mt,er);si&&nt.setAttribute("nonce",si),this.shadowRoot.appendChild(nt)}}nodeOrShadowRoot(Dt){return Dt===this.hostEl?this.shadowRoot:Dt}appendChild(Dt,ct){return super.appendChild(this.nodeOrShadowRoot(Dt),ct)}insertBefore(Dt,ct,Bt){return super.insertBefore(this.nodeOrShadowRoot(Dt),ct,Bt)}removeChild(Dt,ct){return super.removeChild(null,ct)}parentNode(Dt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Dt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class wn extends at{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(Dt,ct,Bt,xn,er,xr,si,hi){super(Dt,er,xr,si),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=xn,this.styles=hi?lt(hi,Bt.styles):Bt.styles,this.styleUrls=Bt.getExternalStyles?.(hi)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Je extends wn{contentAttr;hostAttr;constructor(Dt,ct,Bt,xn,er,xr,si,hi){const Zi=xn+"-"+Bt.id;super(Dt,ct,Bt,er,xr,si,hi,Zi),this.contentAttr=function Be(je){return"_ngcontent-%COMP%".replace(Le,je)}(Zi),this.hostAttr=function st(je){return"_nghost-%COMP%".replace(Le,je)}(Zi)}applyToHost(Dt){this.applyStyles(),this.setAttribute(Dt,this.hostAttr,"")}createElement(Dt,ct){const Bt=super.createElement(Dt,ct);return super.setAttribute(Bt,this.contentAttr,""),Bt}}let _t=(()=>{class je extends X{constructor(ct){super(ct)}supports(ct){return!0}addEventListener(ct,Bt,xn){return ct.addEventListener(Bt,xn,!1),()=>this.removeEventListener(ct,Bt,xn)}removeEventListener(ct,Bt,xn){return ct.removeEventListener(Bt,xn)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const ze=["alt","control","meta","shift"],Ue={"\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"},Ft={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let Ke=(()=>{class je extends X{constructor(ct){super(ct)}supports(ct){return null!=je.parseEventName(ct)}addEventListener(ct,Bt,xn){const er=je.parseEventName(Bt),xr=je.eventCallback(er.fullKey,xn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(ct,er.domEventName,xr))}static parseEventName(ct){const Bt=ct.toLowerCase().split("."),xn=Bt.shift();if(0===Bt.length||"keydown"!==xn&&"keyup"!==xn)return null;const er=je._normalizeKey(Bt.pop());let xr="",si=Bt.indexOf("code");if(si>-1&&(Bt.splice(si,1),xr="code."),ze.forEach(Zi=>{const nn=Bt.indexOf(Zi);nn>-1&&(Bt.splice(nn,1),xr+=Zi+".")}),xr+=er,0!=Bt.length||0===er.length)return null;const hi={};return hi.domEventName=xn,hi.fullKey=xr,hi}static matchEventFullKeyCode(ct,Bt){let xn=Ue[ct.key]||ct.key,er="";return Bt.indexOf("code.")>-1&&(xn=ct.code,er="code."),!(null==xn||!xn)&&(xn=xn.toLowerCase()," "===xn?xn="space":"."===xn&&(xn="dot"),ze.forEach(xr=>{xr!==xn&&(0,Ft[xr])(ct)&&(er+=xr+".")}),er+=xn,er===Bt)}static eventCallback(ct,Bt,xn){return er=>{je.matchEventFullKeyCode(er,ct)&&xn.runGuarded(()=>Bt(er))}}static _normalizeKey(ct){return"esc"===ct?"escape":ct}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();function Ze(je,Dt){return(0,a.TL3)({rootComponent:je,...Ot(Dt)})}function Ot(je){return{appProviders:[...Ht,...je?.providers??[]],platformProviders:Tn}}const Tn=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function Me(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Xt(){return(0,a.TL$)(document),document},deps:[]}],Ht=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function ht(){return new a.zcH},deps:[]},{provide:k,useClass:_t,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:k,useClass:Ke,multi:!0,deps:[i.qQ]},bt,De,R,{provide:a._9s,useExisting:bt},{provide:i.N0,useClass:M,deps:[]},[]];let Mn=(()=>{class je{_doc;constructor(ct){this._doc=ct}getTitle(){return this._doc.title}setTitle(ct){this._doc.title=ct||""}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac,providedIn:"root"})}return je})(),cn=(()=>{class je{static \u0275fac=function(Bt){return new(Bt||je)};static \u0275prov=a.jDH({token:je,factory:function(Bt){let xn=null;return xn=Bt?new(Bt||je):a.KVO(hn),xn},providedIn:"root"})}return je})(),hn=(()=>{class je extends cn{_doc;constructor(ct){super(),this._doc=ct}sanitize(ct,Bt){if(null==Bt)return null;switch(ct){case a.WPN.NONE:return Bt;case a.WPN.HTML:return(0,a.ZF7)(Bt,"HTML")?(0,a.rcV)(Bt):(0,a.h9k)(this._doc,String(Bt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Bt,"Style")?(0,a.rcV)(Bt):Bt;case a.WPN.SCRIPT:if((0,a.ZF7)(Bt,"Script"))return(0,a.rcV)(Bt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Bt,"URL")?(0,a.rcV)(Bt):(0,a.$MX)(String(Bt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Bt,"ResourceURL"))return(0,a.rcV)(Bt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(ct){return(0,a.Kcf)(ct)}bypassSecurityTrustStyle(ct){return(0,a.cWb)(ct)}bypassSecurityTrustScript(ct){return(0,a.UyX)(ct)}bypassSecurityTrustUrl(ct){return(0,a.osQ)(ct)}bypassSecurityTrustResourceUrl(ct){return(0,a.e5t)(ct)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac,providedIn:"root"})}return je})()},8716:(o,s,n)=>{"use strict";n.d(s,{nX:()=>_o,wF:()=>Ye,Ix:()=>li,Wk:()=>bs,wQ:()=>Lo,iI:()=>Ha,n3:()=>la,lh:()=>iu,oH:()=>Hl});var i=n(3107),a=n(1531),c=n(1787),y=n(3016),w=n(1217),C=n(6627),T=n(8747),S=n(3569),M=n(6381),k=n(6742),R=n(8915),X=n(6564),Z=n(1642),ne=n(8447),_e=n(5710),pe=n(4460),de=n(7947),De=n(2867),Ee=n(7610),Le=n(593),Ae=n(1483),we=n(5823),le=n(1703),ae=n(1459),xe=n(2040),Be=n(7178),st=n(5351),lt=n(36),at=n(5670),sn=n(2483);function fn(N){return N<=0?()=>X.w:(0,st.N)((G,F)=>{let K=[];G.subscribe((0,sn._)(F,he=>{K.push(he),N{for(const he of K)F.next(he);F.complete()},void 0,()=>{K=null}))})}var En=n(5017),Wn=n(9220),Je=n(6590),_t=n(4447),ze=n(3589),Ue=n(5424),Ft=n(1890),Ke=n(6388);const Ze="primary",it=Symbol("RouteTitle");class Ot{params;constructor(G){this.params=G||{}}has(G){return Object.prototype.hasOwnProperty.call(this.params,G)}get(G){if(this.has(G)){const F=this.params[G];return Array.isArray(F)?F[0]:F}return null}getAll(G){if(this.has(G)){const F=this.params[G];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function Qt(N){return new Ot(N)}function Me(N,G,F){const K=F.path.split("/");if(K.length>N.length||"full"===F.pathMatch&&(G.hasChildren()||K.lengthK[We]===he)}return N===G}function Zt(N){return N.length>0?N[N.length-1]:null}function rt(N){return(0,a.A)(N)?N:(0,i.jNT)(N)?(0,c.H)(Promise.resolve(N)):(0,y.of)(N)}const Ht={exact:function Mn(N,G,F){if(!V(N.segments,G.segments)||!Te(N.segments,G.segments,F)||N.numberOfChildren!==G.numberOfChildren)return!1;for(const K in G.children)if(!N.children[K]||!Mn(N.children[K],G.children[K],F))return!1;return!0},subset:Kt},en={exact:function mn(N,G){return Xt(N,G)},subset:function tt(N,G){return Object.keys(G).length<=Object.keys(N).length&&Object.keys(G).every(F=>Wt(N[F],G[F]))},ignored:()=>!0};function Nn(N,G,F){return Ht[F.paths](N.root,G.root,F.matrixParams)&&en[F.queryParams](N.queryParams,G.queryParams)&&!("exact"===F.fragment&&N.fragment!==G.fragment)}function Kt(N,G,F){return At(N,G,G.segments,F)}function At(N,G,F,K){if(N.segments.length>F.length){const he=N.segments.slice(0,F.length);return!(!V(he,F)||G.hasChildren()||!Te(he,F,K))}if(N.segments.length===F.length){if(!V(N.segments,F)||!Te(N.segments,F,K))return!1;for(const he in G.children)if(!N.children[he]||!Kt(N.children[he],G.children[he],K))return!1;return!0}{const he=F.slice(0,N.segments.length),We=F.slice(N.segments.length);return!!(V(N.segments,he)&&Te(N.segments,he,K)&&N.children[Ze])&&At(N.children[Ze],G,We,K)}}function Te(N,G,F){return G.every((K,he)=>en[F](N[he].parameters,K.parameters))}class be{root;queryParams;fragment;_queryParamMap;constructor(G=new He([],{}),F={},K=null){this.root=G,this.queryParams=F,this.fragment=K}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return Tt.serialize(this)}}class He{segments;children;parent=null;constructor(G,F){this.segments=G,this.children=F,Object.values(F).forEach(K=>K.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return On(this)}}class z{path;parameters;_parameterMap;constructor(G,F){this.path=G,this.parameters=F}get parameterMap(){return this._parameterMap??=Qt(this.parameters),this._parameterMap}toString(){return Vr(this)}}function V(N,G){return N.length===G.length&&N.every((F,K)=>F.path===G[K].path)}let ft=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>new mt,providedIn:"root"})}return N})();class mt{parse(G){const F=new xr(G);return new be(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(G){const F=`/${cn(G.root,!0)}`,K=function Vt(N){const G=Object.entries(N).map(([F,K])=>Array.isArray(K)?K.map(he=>`${Ln(F)}=${Ln(he)}`).join("&"):`${Ln(F)}=${Ln(K)}`).filter(F=>F);return G.length?`?${G.join("&")}`:""}(G.queryParams);return`${F}${K}${"string"==typeof G.fragment?`#${function lr(N){return encodeURI(N)}(G.fragment)}`:""}`}}const Tt=new mt;function On(N){return N.segments.map(G=>Vr(G)).join("/")}function cn(N,G){if(!N.hasChildren())return On(N);if(G){const F=N.children[Ze]?cn(N.children[Ze],!1):"",K=[];return Object.entries(N.children).forEach(([he,We])=>{he!==Ze&&K.push(`${he}:${cn(We,!1)}`)}),K.length>0?`${F}(${K.join("//")})`:F}{const F=function Ne(N,G){let F=[];return Object.entries(N.children).forEach(([K,he])=>{K===Ze&&(F=F.concat(G(he,K)))}),Object.entries(N.children).forEach(([K,he])=>{K!==Ze&&(F=F.concat(G(he,K)))}),F}(N,(K,he)=>he===Ze?[cn(N.children[Ze],!1)]:[`${he}:${cn(K,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[Ze]?`${On(N)}/${F[0]}`:`${On(N)}/(${F.join("//")})`}}function hn(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(N){return hn(N).replace(/%3B/gi,";")}function Dn(N){return hn(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hr(N){return decodeURIComponent(N)}function Mr(N){return Hr(N.replace(/\+/g,"%20"))}function Vr(N){return`${Dn(N.path)}${function vt(N){return Object.entries(N).map(([G,F])=>`;${Dn(G)}=${Dn(F)}`).join("")}(N.parameters)}`}const Oe=/^[^\/()?;#]+/;function Ge(N){const G=N.match(Oe);return G?G[0]:""}const je=/^[^\/()?;=#]+/,ct=/^[^=?&#]+/,xn=/^[^&#]+/;class xr{url;remaining;constructor(G){this.url=G,this.remaining=G}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const G={};if(this.consumeOptional("?"))do{this.parseQueryParam(G)}while(this.consumeOptional("&"));return G}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const G=[];for(this.peekStartsWith("(")||G.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),G.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let K={};return this.peekStartsWith("(")&&(K=this.parseParens(!1)),(G.length>0||Object.keys(F).length>0)&&(K[Ze]=new He(G,F)),K}parseSegment(){const G=Ge(this.remaining);if(""===G&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(G),new z(Hr(G),this.parseMatrixParams())}parseMatrixParams(){const G={};for(;this.consumeOptional(";");)this.parseParam(G);return G}parseParam(G){const F=function Dt(N){const G=N.match(je);return G?G[0]:""}(this.remaining);if(!F)return;this.capture(F);let K="";if(this.consumeOptional("=")){const he=Ge(this.remaining);he&&(K=he,this.capture(K))}G[Hr(F)]=Hr(K)}parseQueryParam(G){const F=function Bt(N){const G=N.match(ct);return G?G[0]:""}(this.remaining);if(!F)return;this.capture(F);let K="";if(this.consumeOptional("=")){const St=function er(N){const G=N.match(xn);return G?G[0]:""}(this.remaining);St&&(K=St,this.capture(K))}const he=Mr(F),We=Mr(K);if(G.hasOwnProperty(he)){let St=G[he];Array.isArray(St)||(St=[St],G[he]=St),St.push(We)}else G[he]=We}parseParens(G){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const K=Ge(this.remaining),he=this.remaining[K.length];if("/"!==he&&")"!==he&&";"!==he)throw new i.wOt(4010,!1);let We;K.indexOf(":")>-1?(We=K.slice(0,K.indexOf(":")),this.capture(We),this.capture(":")):G&&(We=Ze);const St=this.parseChildren();F[We]=1===Object.keys(St).length?St[Ze]:new He([],St),this.consumeOptional("//")}return F}peekStartsWith(G){return this.remaining.startsWith(G)}consumeOptional(G){return!!this.peekStartsWith(G)&&(this.remaining=this.remaining.substring(G.length),!0)}capture(G){if(!this.consumeOptional(G))throw new i.wOt(4011,!1)}}function si(N){return N.segments.length>0?new He([],{[Ze]:N}):N}function hi(N){const G={};for(const[K,he]of Object.entries(N.children)){const We=hi(he);if(K===Ze&&0===We.segments.length&&We.hasChildren())for(const[St,gn]of Object.entries(We.children))G[St]=gn;else(We.segments.length>0||We.hasChildren())&&(G[K]=We)}return function Zi(N){if(1===N.numberOfChildren&&N.children[Ze]){const G=N.children[Ze];return new He(N.segments.concat(G.segments),G.children)}return N}(new He(N.segments,G))}function nn(N){return N instanceof be}function nt(N){let G;const he=si(function F(We){const St={};for(const an of We.children){const hr=F(an);St[an.outlet]=hr}const gn=new He(We.url,St);return We===N&&(G=gn),gn}(N.root));return G??he}function Rt(N,G,F,K){let he=N;for(;he.parent;)he=he.parent;if(0===G.length)return fr(he,he,he,F,K);const We=function ds(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new Ni(!0,0,N);let G=0,F=!1;const K=N.reduce((he,We,St)=>{if("object"==typeof We&&null!=We){if(We.outlets){const gn={};return Object.entries(We.outlets).forEach(([an,hr])=>{gn[an]="string"==typeof hr?hr.split("/"):hr}),[...he,{outlets:gn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===St?(We.split("/").forEach((gn,an)=>{0==an&&"."===gn||(0==an&&""===gn?F=!0:".."===gn?G++:""!=gn&&he.push(gn))}),he):[...he,We]},[]);return new Ni(F,G,K)}(G);if(We.toRoot())return fr(he,he,new He([],{}),F,K);const St=function ai(N,G,F){if(N.isAbsolute)return new $o(G,!0,0);if(!F)return new $o(G,!1,NaN);if(null===F.parent)return new $o(F,!0,0);const K=ln(N.commands[0])?0:1;return function qo(N,G,F){let K=N,he=G,We=F;for(;We>he;){if(We-=he,K=K.parent,!K)throw new i.wOt(4005,!1);he=K.segments.length}return new $o(K,!1,he-We)}(F,F.segments.length-1+K,N.numberOfDoubleDots)}(We,he,N),gn=St.processChildren?Fo(St.segmentGroup,St.index,We.commands):Jo(St.segmentGroup,St.index,We.commands);return fr(he,St.segmentGroup,gn,F,K)}function ln(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function vn(N){return"object"==typeof N&&null!=N&&N.outlets}function fr(N,G,F,K,he){let St,We={};K&&Object.entries(K).forEach(([an,hr])=>{We[an]=Array.isArray(hr)?hr.map(ui=>`${ui}`):`${hr}`}),St=N===G?F:Co(N,G,F);const gn=si(hi(St));return new be(gn,We,he)}function Co(N,G,F){const K={};return Object.entries(N.children).forEach(([he,We])=>{K[he]=We===G?F:Co(We,G,F)}),new He(N.segments,K)}class Ni{isAbsolute;numberOfDoubleDots;commands;constructor(G,F,K){if(this.isAbsolute=G,this.numberOfDoubleDots=F,this.commands=K,G&&K.length>0&&ln(K[0]))throw new i.wOt(4003,!1);const he=K.find(vn);if(he&&he!==Zt(K))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $o{segmentGroup;processChildren;index;constructor(G,F,K){this.segmentGroup=G,this.processChildren=F,this.index=K}}function Jo(N,G,F){if(N??=new He([],{}),0===N.segments.length&&N.hasChildren())return Fo(N,G,F);const K=function ia(N,G,F){let K=0,he=G;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=F.length)return We;const St=N.segments[he],gn=F[K];if(vn(gn))break;const an=`${gn}`,hr=K0&&void 0===an)break;if(an&&hr&&"object"==typeof hr&&void 0===hr.outlets){if(!Io(an,hr,St))return We;K+=2}else{if(!Io(an,{},St))return We;K++}he++}return{match:!0,pathIndex:he,commandIndex:K}}(N,G,F),he=F.slice(K.commandIndex);if(K.match&&K.pathIndexWe!==Ze)&&N.children[Ze]&&1===N.numberOfChildren&&0===N.children[Ze].segments.length){const We=Fo(N.children[Ze],G,F);return new He(N.segments,We.children)}return Object.entries(K).forEach(([We,St])=>{"string"==typeof St&&(St=[St]),null!==St&&(he[We]=Jo(N.children[We],G,St))}),Object.entries(N.children).forEach(([We,St])=>{void 0===K[We]&&(he[We]=St)}),new He(N.segments,he)}}function ao(N,G,F){const K=N.segments.slice(0,G);let he=0;for(;he{"string"==typeof K&&(K=[K]),null!==K&&(G[F]=ao(new He([],{}),0,K))}),G}function Ii(N){const G={};return Object.entries(N).forEach(([F,K])=>G[F]=`${K}`),G}function Io(N,G,F){return N==F.path&&Xt(G,F.parameters)}const et="imperative";var xt=function(N){return N[N.NavigationStart=0]="NavigationStart",N[N.NavigationEnd=1]="NavigationEnd",N[N.NavigationCancel=2]="NavigationCancel",N[N.NavigationError=3]="NavigationError",N[N.RoutesRecognized=4]="RoutesRecognized",N[N.ResolveStart=5]="ResolveStart",N[N.ResolveEnd=6]="ResolveEnd",N[N.GuardsCheckStart=7]="GuardsCheckStart",N[N.GuardsCheckEnd=8]="GuardsCheckEnd",N[N.RouteConfigLoadStart=9]="RouteConfigLoadStart",N[N.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",N[N.ChildActivationStart=11]="ChildActivationStart",N[N.ChildActivationEnd=12]="ChildActivationEnd",N[N.ActivationStart=13]="ActivationStart",N[N.ActivationEnd=14]="ActivationEnd",N[N.Scroll=15]="Scroll",N[N.NavigationSkipped=16]="NavigationSkipped",N}(xt||{});class dt{id;url;constructor(G,F){this.id=G,this.url=F}}class me extends dt{type=xt.NavigationStart;navigationTrigger;restoredState;constructor(G,F,K="imperative",he=null){super(G,F),this.navigationTrigger=K,this.restoredState=he}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ye extends dt{urlAfterRedirects;type=xt.NavigationEnd;constructor(G,F,K){super(G,F),this.urlAfterRedirects=K}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Re=function(N){return N[N.Redirect=0]="Redirect",N[N.SupersededByNewNavigation=1]="SupersededByNewNavigation",N[N.NoDataFromResolver=2]="NoDataFromResolver",N[N.GuardRejected=3]="GuardRejected",N}(Re||{}),gt=function(N){return N[N.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",N[N.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",N}(gt||{});class jt extends dt{reason;code;type=xt.NavigationCancel;constructor(G,F,K,he){super(G,F),this.reason=K,this.code=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class kt extends dt{reason;code;type=xt.NavigationSkipped;constructor(G,F,K,he){super(G,F),this.reason=K,this.code=he}}class pn extends dt{error;target;type=xt.NavigationError;constructor(G,F,K,he){super(G,F),this.error=K,this.target=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sn extends dt{urlAfterRedirects;state;type=xt.RoutesRecognized;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class An extends dt{urlAfterRedirects;state;type=xt.GuardsCheckStart;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fn extends dt{urlAfterRedirects;state;shouldActivate;type=xt.GuardsCheckEnd;constructor(G,F,K,he,We){super(G,F),this.urlAfterRedirects=K,this.state=he,this.shouldActivate=We}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class zn extends dt{urlAfterRedirects;state;type=xt.ResolveStart;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends dt{urlAfterRedirects;state;type=xt.ResolveEnd;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cr{route;type=xt.RouteConfigLoadStart;constructor(G){this.route=G}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Er{route;type=xt.RouteConfigLoadEnd;constructor(G){this.route=G}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Cr{snapshot;type=xt.ChildActivationStart;constructor(G){this.snapshot=G}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gi{snapshot;type=xt.ChildActivationEnd;constructor(G){this.snapshot=G}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ni{snapshot;type=xt.ActivationStart;constructor(G){this.snapshot=G}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mi{snapshot;type=xt.ActivationEnd;constructor(G){this.snapshot=G}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{routerEvent;position;anchor;type=xt.Scroll;constructor(G,F,K){this.routerEvent=G,this.position=F,this.anchor=K}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Qr{}class Pr{url;navigationBehaviorOptions;constructor(G,F){this.url=G,this.navigationBehaviorOptions=F}}function No(N){return N.outlet||Ze}function Ko(N){if(!N)return null;if(N.routeConfig?._injector)return N.routeConfig._injector;for(let G=N.parent;G;G=G.parent){const F=G.routeConfig;if(F?._loadedInjector)return F._loadedInjector;if(F?._injector)return F._injector}return null}class mo{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ko(this.route?.snapshot)??this.rootInjector}constructor(G){this.rootInjector=G,this.children=new Go(this.rootInjector)}}let Go=(()=>{class N{rootInjector;contexts=new Map;constructor(F){this.rootInjector=F}onChildOutletCreated(F,K){const he=this.getOrCreateContext(F);he.outlet=K,this.contexts.set(F,he)}onChildOutletDestroyed(F){const K=this.getContext(F);K&&(K.outlet=null,K.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let K=this.getContext(F);return K||(K=new mo(this.rootInjector),this.contexts.set(F,K)),K}getContext(F){return this.contexts.get(F)||null}static \u0275fac=function(K){return new(K||N)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();class Rs{_root;constructor(G){this._root=G}get root(){return this._root.value}parent(G){const F=this.pathFromRoot(G);return F.length>1?F[F.length-2]:null}children(G){const F=Xr(G,this._root);return F?F.children.map(K=>K.value):[]}firstChild(G){const F=Xr(G,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(G){const F=Ds(G,this._root);return F.length<2?[]:F[F.length-2].children.map(he=>he.value).filter(he=>he!==G)}pathFromRoot(G){return Ds(G,this._root).map(F=>F.value)}}function Xr(N,G){if(N===G.value)return G;for(const F of G.children){const K=Xr(N,F);if(K)return K}return null}function Ds(N,G){if(N===G.value)return[G];for(const F of G.children){const K=Ds(N,F);if(K.length)return K.unshift(G),K}return[]}class go{value;children;constructor(G,F){this.value=G,this.children=F}toString(){return`TreeNode(${this.value})`}}function io(N){const G={};return N&&N.children.forEach(F=>G[F.value.outlet]=F),G}class fs extends Rs{snapshot;constructor(G,F){super(G),this.snapshot=F,Gs(this,G)}toString(){return this.snapshot.toString()}}function Xo(N){const G=function Ya(N){const We=new ur([],{},{},"",{},Ze,N,null,{});return new As("",new go(We,[]))}(N),F=new w.t([new z("",{})]),K=new w.t({}),he=new w.t({}),We=new w.t({}),St=new w.t(""),gn=new _o(F,K,We,St,he,Ze,N,G.root);return gn.snapshot=G.root,new fs(new go(gn,[]),G)}class _o{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(G,F,K,he,We,St,gn,an){this.urlSubject=G,this.paramsSubject=F,this.queryParamsSubject=K,this.fragmentSubject=he,this.dataSubject=We,this.outlet=St,this.component=gn,this._futureSnapshot=an,this.title=this.dataSubject?.pipe((0,de.T)(hr=>hr[it]))??(0,y.of)(void 0),this.url=G,this.params=F,this.queryParams=K,this.fragment=he,this.data=We}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,de.T)(G=>Qt(G))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,de.T)(G=>Qt(G))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ao(N,G,F="emptyOnly"){let K;const{routeConfig:he}=N;return K=null===G||"always"!==F&&""!==he?.path&&(G.component||G.routeConfig?.loadComponent)?{params:{...N.params},data:{...N.data},resolve:{...N.data,...N._resolvedData??{}}}:{params:{...G.params,...N.params},data:{...G.data,...N.data},resolve:{...N.data,...G.data,...he?.data,...N._resolvedData}},he&&Vi(he)&&(K.resolve[it]=he.title),K}class ur{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[it]}constructor(G,F,K,he,We,St,gn,an,hr){this.url=G,this.params=F,this.queryParams=K,this.fragment=he,this.data=We,this.outlet=St,this.component=gn,this.routeConfig=an,this._resolve=hr}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??=Qt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(K=>K.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class As extends Rs{url;constructor(G,F){super(F),this.url=G,Gs(this,F)}toString(){return _s(this._root)}}function Gs(N,G){G.value._routerState=N,G.children.forEach(F=>Gs(N,F))}function _s(N){const G=N.children.length>0?` { ${N.children.map(_s).join(", ")} } `:"";return`${N.value}${G}`}function aa(N){if(N.snapshot){const G=N.snapshot,F=N._futureSnapshot;N.snapshot=F,Xt(G.queryParams,F.queryParams)||N.queryParamsSubject.next(F.queryParams),G.fragment!==F.fragment&&N.fragmentSubject.next(F.fragment),Xt(G.params,F.params)||N.paramsSubject.next(F.params),function ht(N,G){if(N.length!==G.length)return!1;for(let F=0;FXt(F.parameters,G[K].parameters))}(N.url,G.url);return F&&!(!N.parent!=!G.parent)&&(!N.parent||ls(N.parent,G.parent))}function Vi(N){return"string"==typeof N.title||null===N.title}const sl=new i.nKC("");let la=(()=>{class N{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ze;activateEvents=new i.bkB;deactivateEvents=new i.bkB;attachEvents=new i.bkB;detachEvents=new i.bkB;routerOutletData=(0,i.hFB)(void 0);parentContexts=(0,i.WQX)(Go);location=(0,i.WQX)(i.c1b);changeDetector=(0,i.WQX)(i.gRc);inputBinder=(0,i.WQX)(Ts,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(F){if(F.name){const{firstChange:K,previousValue:he}=F.name;if(K)return;this.isTrackedInParentContexts(he)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(he)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(F){return this.parentContexts.getContext(F)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const F=this.parentContexts.getContext(this.name);F?.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,K){this.activated=F,this._activatedRoute=K,this.location.insert(F.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,K){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=F;const he=this.location,St=F.snapshot.component,gn=this.parentContexts.getOrCreateContext(this.name).children,an=new Ss(F,gn,he.injector,this.routerOutletData);this.activated=he.createComponent(St,{index:he.length,injector:an,environmentInjector:K}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(K){return new(K||N)};static \u0275dir=i.FsC({type:N,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return N})();class Ss{route;childContexts;parent;outletData;__ngOutletInjector(G){return new Ss(this.route,this.childContexts,G,this.outletData)}constructor(G,F,K,he){this.route=G,this.childContexts=F,this.parent=K,this.outletData=he}get(G,F){return G===_o?this.route:G===Go?this.childContexts:G===sl?this.outletData:this.parent.get(G,F)}}const Ts=new i.nKC("");let Ns=(()=>{class N{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(F){this.unsubscribeFromRouteData(F),this.subscribeToRouteData(F)}unsubscribeFromRouteData(F){this.outletDataSubscriptions.get(F)?.unsubscribe(),this.outletDataSubscriptions.delete(F)}subscribeToRouteData(F){const{activatedRoute:K}=F,he=(0,C.z)([K.queryParams,K.params,K.data]).pipe((0,De.n)(([We,St,gn],an)=>(gn={...We,...St,...gn},0===an?(0,y.of)(gn):Promise.resolve(gn)))).subscribe(We=>{if(!F.isActivated||!F.activatedComponentRef||F.activatedRoute!==K||null===K.component)return void this.unsubscribeFromRouteData(F);const St=(0,i.HJs)(K.component);if(St)for(const{templateName:gn}of St.inputs)F.activatedComponentRef.setInput(gn,We[gn]);else this.unsubscribeFromRouteData(F)});this.outletDataSubscriptions.set(F,he)}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function Bo(N,G,F){if(F&&N.shouldReuseRoute(G.value,F.value.snapshot)){const K=F.value;K._futureSnapshot=G.value;const he=function lo(N,G,F){return G.children.map(K=>{for(const he of F.children)if(N.shouldReuseRoute(K.value,he.value.snapshot))return Bo(N,K,he);return Bo(N,K)})}(N,G,F);return new go(K,he)}{if(N.shouldAttach(G.value)){const We=N.retrieve(G.value);if(null!==We){const St=We.route;return St.value._futureSnapshot=G.value,St.children=G.children.map(gn=>Bo(N,gn)),St}}const K=function ps(N){return new _o(new w.t(N.url),new w.t(N.params),new w.t(N.queryParams),new w.t(N.fragment),new w.t(N.data),N.outlet,N.component,N)}(G.value),he=G.children.map(We=>Bo(N,We));return new go(K,he)}}class Da{redirectTo;navigationBehaviorOptions;constructor(G,F){this.redirectTo=G,this.navigationBehaviorOptions=F}}const Ms="ngNavigationCancelingError";function Us(N,G){const{redirectTo:F,navigationBehaviorOptions:K}=nn(G)?{redirectTo:G,navigationBehaviorOptions:void 0}:G,he=ca(!1,Re.Redirect);return he.url=F,he.navigationBehaviorOptions=K,he}function ca(N,G){const F=new Error(`NavigationCancelingError: ${N||""}`);return F[Ms]=!0,F.cancellationCode=G,F}function Aa(N){return!!N&&N[Ms]}class J{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(G,F,K,he,We){this.routeReuseStrategy=G,this.futureState=F,this.currState=K,this.forwardEvent=he,this.inputBindingEnabled=We}activate(G){const F=this.futureState._root,K=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,K,G),aa(this.futureState.root),this.activateChildRoutes(F,K,G)}deactivateChildRoutes(G,F,K){const he=io(F);G.children.forEach(We=>{const St=We.value.outlet;this.deactivateRoutes(We,he[St],K),delete he[St]}),Object.values(he).forEach(We=>{this.deactivateRouteAndItsChildren(We,K)})}deactivateRoutes(G,F,K){const he=G.value,We=F?F.value:null;if(he===We)if(he.component){const St=K.getContext(he.outlet);St&&this.deactivateChildRoutes(G,F,St.children)}else this.deactivateChildRoutes(G,F,K);else We&&this.deactivateRouteAndItsChildren(F,K)}deactivateRouteAndItsChildren(G,F){G.value.component&&this.routeReuseStrategy.shouldDetach(G.value.snapshot)?this.detachAndStoreRouteSubtree(G,F):this.deactivateRouteAndOutlet(G,F)}detachAndStoreRouteSubtree(G,F){const K=F.getContext(G.value.outlet),he=K&&G.value.component?K.children:F,We=io(G);for(const St of Object.values(We))this.deactivateRouteAndItsChildren(St,he);if(K&&K.outlet){const St=K.outlet.detach(),gn=K.children.onOutletDeactivated();this.routeReuseStrategy.store(G.value.snapshot,{componentRef:St,route:G,contexts:gn})}}deactivateRouteAndOutlet(G,F){const K=F.getContext(G.value.outlet),he=K&&G.value.component?K.children:F,We=io(G);for(const St of Object.values(We))this.deactivateRouteAndItsChildren(St,he);K&&(K.outlet&&(K.outlet.deactivate(),K.children.onOutletDeactivated()),K.attachRef=null,K.route=null)}activateChildRoutes(G,F,K){const he=io(F);G.children.forEach(We=>{this.activateRoutes(We,he[We.value.outlet],K),this.forwardEvent(new Mi(We.value.snapshot))}),G.children.length&&this.forwardEvent(new gi(G.value.snapshot))}activateRoutes(G,F,K){const he=G.value,We=F?F.value:null;if(aa(he),he===We)if(he.component){const St=K.getOrCreateContext(he.outlet);this.activateChildRoutes(G,F,St.children)}else this.activateChildRoutes(G,F,K);else if(he.component){const St=K.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const gn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),St.children.onOutletReAttached(gn.contexts),St.attachRef=gn.componentRef,St.route=gn.route.value,St.outlet&&St.outlet.attach(gn.componentRef,gn.route.value),aa(gn.route.value),this.activateChildRoutes(G,null,St.children)}else St.attachRef=null,St.route=he,St.outlet&&St.outlet.activateWith(he,St.injector),this.activateChildRoutes(G,null,St.children)}else this.activateChildRoutes(G,null,K)}}class ot{path;route;constructor(G){this.path=G,this.route=this.path[this.path.length-1]}}class Ct{component;route;constructor(G,F){this.component=G,this.route=F}}function jn(N,G,F){const K=N._root;return qn(K,G?G._root:null,F,[K.value])}function Gn(N,G){const F=Symbol(),K=G.get(N,F);return K===F?"function"!=typeof N||(0,i.LfX)(N)?G.get(N):N:K}function qn(N,G,F,K,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=io(G);return N.children.forEach(St=>{(function qr(N,G,F,K,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=N.value,St=G?G.value:null,gn=F?F.getContext(N.value.outlet):null;if(St&&We.routeConfig===St.routeConfig){const an=function zi(N,G,F){if("function"==typeof F)return F(N,G);switch(F){case"pathParamsChange":return!V(N.url,G.url);case"pathParamsOrQueryParamsChange":return!V(N.url,G.url)||!Xt(N.queryParams,G.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ls(N,G)||!Xt(N.queryParams,G.queryParams);default:return!ls(N,G)}}(St,We,We.routeConfig.runGuardsAndResolvers);an?he.canActivateChecks.push(new ot(K)):(We.data=St.data,We._resolvedData=St._resolvedData),qn(N,G,We.component?gn?gn.children:null:F,K,he),an&&gn&&gn.outlet&&gn.outlet.isActivated&&he.canDeactivateChecks.push(new Ct(gn.outlet.component,St))}else St&&kr(G,gn,he),he.canActivateChecks.push(new ot(K)),qn(N,null,We.component?gn?gn.children:null:F,K,he)})(St,We[St.value.outlet],F,K.concat([St.value]),he),delete We[St.value.outlet]}),Object.entries(We).forEach(([St,gn])=>kr(gn,F.getContext(St),he)),he}function kr(N,G,F){const K=io(N),he=N.value;Object.entries(K).forEach(([We,St])=>{kr(St,he.component?G?G.children.getContext(We):null:G,F)}),F.canDeactivateChecks.push(new Ct(he.component&&G&&G.outlet&&G.outlet.isActivated?G.outlet.component:null,he))}function fi(N){return"function"==typeof N}function Ba(N){return N instanceof T.G||"EmptyError"===N?.name}const Ua=Symbol("INITIAL_VALUE");function ua(){return(0,De.n)(N=>(0,C.z)(N.map(G=>G.pipe((0,Ee.s)(1),(0,Le.Z)(Ua)))).pipe((0,de.T)(G=>{for(const F of G)if(!0!==F){if(F===Ua)return Ua;if(!1===F||ce(F))return F}return!0}),(0,Ae.p)(G=>G!==Ua),(0,Ee.s)(1)))}function ce(N){return nn(N)||N instanceof Da}function $a(N){return(0,k.F)((0,xe.M)(G=>{if("boolean"!=typeof G)throw Us(0,G)}),(0,de.T)(G=>!0===G))}class al{segmentGroup;constructor(G){this.segmentGroup=G||null}}class _i extends Error{urlTree;constructor(G){super(),this.urlTree=G}}function cs(N){return(0,R.$)(new al(N))}class Ru{urlSerializer;urlTree;constructor(G,F){this.urlSerializer=G,this.urlTree=F}lineralizeSegments(G,F){let K=[],he=F.root;for(;;){if(K=K.concat(he.segments),0===he.numberOfChildren)return(0,y.of)(K);if(he.numberOfChildren>1||!he.children[Ze])return(0,R.$)(new i.wOt(4e3,!1));he=he.children[Ze]}}applyRedirectCommands(G,F,K,he,We){if("string"!=typeof F){const gn=F,{queryParams:an,fragment:hr,routeConfig:ui,url:Ir,outlet:Gi,params:Is,data:is,title:Oa}=he,us=(0,i.N4e)(We,()=>gn({params:Is,data:is,queryParams:an,fragment:hr,routeConfig:ui,url:Ir,outlet:Gi,title:Oa}));if(us instanceof be)throw new _i(us);F=us}const St=this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),G,K);if("/"===F[0])throw new _i(St);return St}applyRedirectCreateUrlTree(G,F,K,he){const We=this.createSegmentGroup(G,F.root,K,he);return new be(We,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(G,F){const K={};return Object.entries(G).forEach(([he,We])=>{if("string"==typeof We&&":"===We[0]){const gn=We.substring(1);K[he]=F[gn]}else K[he]=We}),K}createSegmentGroup(G,F,K,he){const We=this.createSegments(G,F.segments,K,he);let St={};return Object.entries(F.children).forEach(([gn,an])=>{St[gn]=this.createSegmentGroup(G,an,K,he)}),new He(We,St)}createSegments(G,F,K,he){return F.map(We=>":"===We.path[0]?this.findPosParam(G,We,he):this.findOrReturn(We,K))}findPosParam(G,F,K){const he=K[F.path.substring(1)];if(!he)throw new i.wOt(4001,!1);return he}findOrReturn(G,F){let K=0;for(const he of F){if(he.path===G.path)return F.splice(K),he;K++}return G}}const bl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ll(N,G,F,K,he){const We=yi(N,G,F);return We.matched?(K=function es(N,G){return N.providers&&!N._injector&&(N._injector=(0,i.Ol2)(N.providers,G,`Route: ${N.path}`)),N._injector??G}(G,K),function hc(N,G,F,K){const he=G.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(St=>{const gn=Gn(St,N);return rt(function Ho(N){return N&&fi(N.canMatch)}(gn)?gn.canMatch(G,F):(0,i.N4e)(N,()=>gn(G,F)))});return(0,y.of)(We).pipe(ua(),$a())}(K,G,F).pipe((0,de.T)(St=>!0===St?We:{...bl}))):(0,y.of)(We)}function yi(N,G,F){if("**"===G.path)return function kl(N){return{matched:!0,parameters:N.length>0?Zt(N).parameters:{},consumedSegments:N,remainingSegments:[],positionalParamSegments:{}}}(F);if(""===G.path)return"full"===G.pathMatch&&(N.hasChildren()||F.length>0)?{...bl}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const he=(G.matcher||Me)(F,N,G);if(!he)return{...bl};const We={};Object.entries(he.posParams??{}).forEach(([gn,an])=>{We[gn]=an.path});const St=he.consumed.length>0?{...We,...he.consumed[he.consumed.length-1].parameters}:We;return{matched:!0,consumedSegments:he.consumed,remainingSegments:F.slice(he.consumed.length),parameters:St,positionalParamSegments:he.posParams??{}}}function Jc(N,G,F,K){return F.length>0&&function $s(N,G,F){return F.some(K=>Sa(N,G,K)&&No(K)!==Ze)}(N,F,K)?{segmentGroup:new He(G,cl(K,new He(F,N.children))),slicedSegments:[]}:0===F.length&&function Il(N,G,F){return F.some(K=>Sa(N,G,K))}(N,F,K)?{segmentGroup:new He(N.segments,eu(N,F,K,N.children)),slicedSegments:F}:{segmentGroup:new He(N.segments,N.children),slicedSegments:F}}function eu(N,G,F,K){const he={};for(const We of F)if(Sa(N,G,We)&&!K[No(We)]){const St=new He([],{});he[No(We)]=St}return{...K,...he}}function cl(N,G){const F={};F[Ze]=G;for(const K of N)if(""===K.path&&No(K)!==Ze){const he=new He([],{});F[No(K)]=he}return F}function Sa(N,G,F){return(!(N.hasChildren()||G.length>0)||"full"!==F.pathMatch)&&""===F.path}class js{}class nu{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(G,F,K,he,We,St,gn){this.injector=G,this.configLoader=F,this.rootComponentType=K,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=St,this.urlSerializer=gn,this.applyRedirects=new Ru(this.urlSerializer,this.urlTree)}noMatchError(G){return new i.wOt(4002,`'${G.segmentGroup}'`)}recognize(){const G=Jc(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(G).pipe((0,de.T)(({children:F,rootSnapshot:K})=>{const he=new go(K,F),We=new As("",he),St=function Mt(N,G,F=null,K=null){return Rt(nt(N),G,F,K)}(K,[],this.urlTree.queryParams,this.urlTree.fragment);return St.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(St),{state:We,tree:St}}))}match(G){const F=new ur([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ze,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,G,Ze,F).pipe((0,de.T)(K=>({children:K,rootSnapshot:F})),(0,Be.W)(K=>{if(K instanceof _i)return this.urlTree=K.urlTree,this.match(K.urlTree.root);throw K instanceof al?this.noMatchError(K):K}))}processSegmentGroup(G,F,K,he,We){return 0===K.segments.length&&K.hasChildren()?this.processChildren(G,F,K,We):this.processSegment(G,F,K,K.segments,he,!0,We).pipe((0,de.T)(St=>St instanceof go?[St]:[]))}processChildren(G,F,K,he){const We=[];for(const St of Object.keys(K.children))"primary"===St?We.unshift(St):We.push(St);return(0,c.H)(We).pipe((0,ae.H)(St=>{const gn=K.children[St],an=function hs(N,G){const F=N.filter(K=>No(K)===G);return F.push(...N.filter(K=>No(K)!==G)),F}(F,St);return this.processSegmentGroup(G,an,gn,St,he)}),function bt(N,G){return(0,st.N)((0,lt.S)(N,G,arguments.length>=2,!0))}((St,gn)=>(St.push(...gn),St)),(0,at.U)(null),function wn(N,G){const F=arguments.length>=2;return K=>K.pipe(N?(0,Ae.p)((he,We)=>N(he,We,K)):Wn.D,fn(1),F?(0,at.U)(G):(0,En.v)(()=>new T.G))}(),(0,we.Z)(St=>{if(null===St)return cs(K);const gn=$l(St);return function Mc(N){N.sort((G,F)=>G.value.outlet===Ze?-1:F.value.outlet===Ze?1:G.value.outlet.localeCompare(F.value.outlet))}(gn),(0,y.of)(gn)}))}processSegment(G,F,K,he,We,St,gn){return(0,c.H)(F).pipe((0,ae.H)(an=>this.processSegmentAgainstRoute(an._injector??G,F,an,K,he,We,St,gn).pipe((0,Be.W)(hr=>{if(hr instanceof al)return(0,y.of)(null);throw hr}))),(0,le.$)(an=>!!an),(0,Be.W)(an=>{if(Ba(an))return function ks(N,G,F){return 0===G.length&&!N.children[F]}(K,he,We)?(0,y.of)(new js):cs(K);throw an}))}processSegmentAgainstRoute(G,F,K,he,We,St,gn,an){return No(K)===St||St!==Ze&&Sa(he,We,K)?void 0===K.redirectTo?this.matchSegmentAgainstRoute(G,he,K,We,St,an):this.allowRedirects&&gn?this.expandSegmentAgainstRouteUsingRedirect(G,he,F,K,We,St,an):cs(he):cs(he)}expandSegmentAgainstRouteUsingRedirect(G,F,K,he,We,St,gn){const{matched:an,parameters:hr,consumedSegments:ui,positionalParamSegments:Ir,remainingSegments:Gi}=yi(F,he,We);if(!an)return cs(F);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Is=new ur(We,hr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jl(he),No(he),he.component??he._loadedComponent??null,he,Vl(he)),is=Ao(Is,gn,this.paramsInheritanceStrategy);Is.params=Object.freeze(is.params),Is.data=Object.freeze(is.data);const Oa=this.applyRedirects.applyRedirectCommands(ui,he.redirectTo,Ir,Is,G);return this.applyRedirects.lineralizeSegments(he,Oa).pipe((0,we.Z)(us=>this.processSegment(G,K,F,us.concat(Gi),St,!1,gn)))}matchSegmentAgainstRoute(G,F,K,he,We,St){const gn=ll(F,K,he,G);return"**"===K.path&&(F.children={}),gn.pipe((0,De.n)(an=>an.matched?this.getChildConfig(G=K._injector??G,K,he).pipe((0,De.n)(({routes:hr})=>{const ui=K._loadedInjector??G,{parameters:Ir,consumedSegments:Gi,remainingSegments:Is}=an,is=new ur(Gi,Ir,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,jl(K),No(K),K.component??K._loadedComponent??null,K,Vl(K)),Oa=Ao(is,St,this.paramsInheritanceStrategy);is.params=Object.freeze(Oa.params),is.data=Object.freeze(Oa.data);const{segmentGroup:us,slicedSegments:Wr}=Jc(F,Gi,Is,hr);if(0===Wr.length&&us.hasChildren())return this.processChildren(ui,hr,us,is).pipe((0,de.T)(za=>new go(is,za)));if(0===hr.length&&0===Wr.length)return(0,y.of)(new go(is,[]));const Ys=No(K)===We;return this.processSegment(ui,hr,us,Wr,Ys?Ze:We,!0,is).pipe((0,de.T)(za=>new go(is,za instanceof go?[za]:[])))})):cs(F)))}getChildConfig(G,F,K){return F.children?(0,y.of)({routes:F.children,injector:G}):F.loadChildren?void 0!==F._loadedRoutes?(0,y.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function vl(N,G,F,K){const he=G.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(St=>{const gn=Gn(St,N);return rt(function di(N){return N&&fi(N.canLoad)}(gn)?gn.canLoad(G,F):(0,i.N4e)(N,()=>gn(G,F)))});return(0,y.of)(We).pipe(ua(),$a())}(G,F,K).pipe((0,we.Z)(he=>he?this.configLoader.loadChildren(G,F).pipe((0,xe.M)(We=>{F._loadedRoutes=We.routes,F._loadedInjector=We.injector})):function yl(){return(0,R.$)(ca(!1,Re.GuardRejected))}())):(0,y.of)({routes:[],injector:G})}}function wl(N){const G=N.value.routeConfig;return G&&""===G.path}function $l(N){const G=[],F=new Set;for(const K of N){if(!wl(K)){G.push(K);continue}const he=G.find(We=>K.value.routeConfig===We.value.routeConfig);void 0!==he?(he.children.push(...K.children),F.add(he)):G.push(K)}for(const K of F){const he=$l(K.children);G.push(new go(K.value,he))}return G.filter(K=>!F.has(K))}function jl(N){return N.data||{}}function Vl(N){return N.resolve||{}}function Vo(N){const G=N.children.map(F=>Vo(F)).flat();return[N,...G]}function Tr(N){return(0,De.n)(G=>{const F=N(G);return F?(0,c.H)(F).pipe((0,de.T)(()=>G)):(0,y.of)(G)})}let Oi=(()=>{class N{buildTitle(F){let K,he=F.root;for(;void 0!==he;)K=this.getResolvedTitleForRoute(he)??K,he=he.children.find(We=>We.outlet===Ze);return K}getResolvedTitleForRoute(F){return F.data[it]}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(ys),providedIn:"root"})}return N})(),ys=(()=>{class N extends Oi{title;constructor(F){super(),this.title=F}updateTitle(F){const K=this.buildTitle(F);void 0!==K&&this.title.setTitle(K)}static \u0275fac=function(K){return new(K||N)(i.KVO(Ke.hE))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Qi=new i.nKC("",{providedIn:"root",factory:()=>({})});let so=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275cmp=i.VBU({type:N,selectors:[["ng-component"]],decls:1,vars:0,template:function(K,he){1&K&&i.nrm(0,"router-outlet")},dependencies:[la],encapsulation:2})}return N})();function Bi(N){const G=N.children&&N.children.map(Bi),F=G?{...N,children:G}:{...N};return!F.component&&!F.loadComponent&&(G||F.loadChildren)&&F.outlet&&F.outlet!==Ze&&(F.component=so),F}const Ki=new i.nKC("");let no=(()=>{class N{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(i.Ql9);loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,y.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const K=rt(F.loadComponent()).pipe((0,de.T)(Xs),(0,xe.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=We}),(0,_t.j)(()=>{this.componentLoaders.delete(F)})),he=new Z.G(K,()=>new ne.B).pipe((0,ze.B)());return this.componentLoaders.set(F,he),he}loadChildren(F,K){if(this.childrenLoaders.get(K))return this.childrenLoaders.get(K);if(K._loadedRoutes)return(0,y.of)({routes:K._loadedRoutes,injector:K._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(K);const We=function co(N,G,F,K){return rt(N.loadChildren()).pipe((0,de.T)(Xs),(0,we.Z)(he=>he instanceof i.Co$||Array.isArray(he)?(0,y.of)(he):(0,c.H)(G.compileModuleAsync(he))),(0,de.T)(he=>{K&&K(N);let We,St,gn=!1;return Array.isArray(he)?(St=he,!0):(We=he.create(F).injector,St=We.get(Ki,[],{optional:!0,self:!0}).flat()),{routes:St.map(Bi),injector:We}}))}(K,this.compiler,F,this.onLoadEndListener).pipe((0,_t.j)(()=>{this.childrenLoaders.delete(K)})),St=new Z.G(We,()=>new ne.B).pipe((0,ze.B)());return this.childrenLoaders.set(K,St),St}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Xs(N){return function ri(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let Za=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Uo),providedIn:"root"})}return N})(),Uo=(()=>{class N{shouldProcessUrl(F){return!0}extract(F){return F}merge(F,K){return F}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const vo=new i.nKC(""),Ci=new i.nKC("");function Vs(N,G,F){const K=N.get(Ci),he=N.get(pe.qQ);return N.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||K.skipNextTransition)return K.skipNextTransition=!1,new Promise(hr=>setTimeout(hr));let We;const St=new Promise(hr=>{We=hr}),gn=he.startViewTransition(()=>(We(),function uo(N){return new Promise(G=>{(0,i.mal)({read:()=>setTimeout(G)},{injector:N})})}(N))),{onViewTransitionCreated:an}=K;return an&&(0,i.N4e)(N,()=>an({transition:gn,from:G,to:F})),St})}const Ui=new i.nKC("");let U=(()=>{class N{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new ne.B;transitionAbortSubject=new ne.B;configLoader=(0,i.WQX)(no);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(ft);rootContexts=(0,i.WQX)(Go);location=(0,i.WQX)(pe.aZ);inputBindingEnabled=null!==(0,i.WQX)(Ts,{optional:!0});titleStrategy=(0,i.WQX)(Oi);options=(0,i.WQX)(Qi,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(Za);createViewTransition=(0,i.WQX)(vo,{optional:!0});navigationErrorHandler=(0,i.WQX)(Ui,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,y.of)(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=he=>this.events.next(new Er(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new cr(he))}complete(){this.transitions?.complete()}handleNavigationRequest(F){const K=++this.navigationId;this.transitions?.next({...this.transitions.value,...F,id:K})}setupNavigations(F,K,he){return this.transitions=new w.t({id:0,currentUrlTree:K,currentRawUrl:K,extractedUrl:this.urlHandlingStrategy.extract(K),urlAfterRedirects:this.urlHandlingStrategy.extract(K),rawUrl:K,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:et,restoredState:null,currentSnapshot:he.snapshot,targetSnapshot:null,currentRouterState:he,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ae.p)(We=>0!==We.id),(0,de.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,De.n)(We=>{let St=!1,gn=!1;return(0,y.of)(We).pipe((0,De.n)(an=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",Re.SupersededByNewNavigation),X.w;this.currentTransition=We,this.currentNavigation={id:an.id,initialUrl:an.rawUrl,extractedUrl:an.extractedUrl,targetBrowserUrl:"string"==typeof an.extras.browserUrl?this.urlSerializer.parse(an.extras.browserUrl):an.extras.browserUrl,trigger:an.source,extras:an.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!F.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!hr&&"reload"!==(an.extras.onSameUrlNavigation??F.onSameUrlNavigation)){const Ir="";return this.events.next(new kt(an.id,this.urlSerializer.serialize(an.rawUrl),Ir,gt.IgnoredSameUrlNavigation)),an.resolve(!1),X.w}if(this.urlHandlingStrategy.shouldProcessUrl(an.rawUrl))return(0,y.of)(an).pipe((0,De.n)(Ir=>{const Gi=this.transitions?.getValue();return this.events.next(new me(Ir.id,this.urlSerializer.serialize(Ir.extractedUrl),Ir.source,Ir.restoredState)),Gi!==this.transitions?.getValue()?X.w:Promise.resolve(Ir)}),function da(N,G,F,K,he,We){return(0,we.Z)(St=>function tu(N,G,F,K,he,We,St="emptyOnly"){return new nu(N,G,F,K,he,St,We).recognize()}(N,G,F,K,St.extractedUrl,he,We).pipe((0,de.T)(({state:gn,tree:an})=>({...St,targetSnapshot:gn,urlAfterRedirects:an}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,F.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,xe.M)(Ir=>{We.targetSnapshot=Ir.targetSnapshot,We.urlAfterRedirects=Ir.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ir.urlAfterRedirects};const Gi=new Sn(Ir.id,this.urlSerializer.serialize(Ir.extractedUrl),this.urlSerializer.serialize(Ir.urlAfterRedirects),Ir.targetSnapshot);this.events.next(Gi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(an.currentRawUrl)){const{id:Ir,extractedUrl:Gi,source:Is,restoredState:is,extras:Oa}=an,us=new me(Ir,this.urlSerializer.serialize(Gi),Is,is);this.events.next(us);const Wr=Xo(this.rootComponentType).snapshot;return this.currentTransition=We={...an,targetSnapshot:Wr,urlAfterRedirects:Gi,extras:{...Oa,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Gi,(0,y.of)(We)}{const Ir="";return this.events.next(new kt(an.id,this.urlSerializer.serialize(an.extractedUrl),Ir,gt.IgnoredByUrlHandlingStrategy)),an.resolve(!1),X.w}}),(0,xe.M)(an=>{const hr=new An(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(hr)}),(0,de.T)(an=>(this.currentTransition=We={...an,guards:jn(an.targetSnapshot,an.currentSnapshot,this.rootContexts)},We)),function ue(N,G){return(0,we.Z)(F=>{const{targetSnapshot:K,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:St}}=F;return 0===St.length&&0===We.length?(0,y.of)({...F,guardsResult:!0}):function Q(N,G,F,K){return(0,c.H)(N).pipe((0,we.Z)(he=>function Ml(N,G,F,K,he){const We=G&&G.routeConfig?G.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const St=We.map(gn=>{const an=Ko(G)??he,hr=Gn(gn,an);return rt(function jo(N){return N&&fi(N.canDeactivate)}(hr)?hr.canDeactivate(N,G,F,K):(0,i.N4e)(an,()=>hr(N,G,F,K))).pipe((0,le.$)())});return(0,y.of)(St).pipe(ua())}(he.component,he.route,F,G,K)),(0,le.$)(he=>!0!==he,!0))}(St,K,he,N).pipe((0,we.Z)(gn=>gn&&function zr(N){return"boolean"==typeof N}(gn)?function Fe(N,G,F,K){return(0,c.H)(G).pipe((0,ae.H)(he=>(0,S.x)(function wr(N,G){return null!==N&&G&&G(new Cr(N)),(0,y.of)(!0)}(he.route.parent,K),function $t(N,G){return null!==N&&G&&G(new ni(N)),(0,y.of)(!0)}(he.route,K),function ts(N,G,F){const K=G[G.length-1],We=G.slice(0,G.length-1).reverse().map(St=>function Pn(N){const G=N.routeConfig?N.routeConfig.canActivateChild:null;return G&&0!==G.length?{node:N,guards:G}:null}(St)).filter(St=>null!==St).map(St=>(0,M.v)(()=>{const gn=St.guards.map(an=>{const hr=Ko(St.node)??F,ui=Gn(an,hr);return rt(function Ro(N){return N&&fi(N.canActivateChild)}(ui)?ui.canActivateChild(K,N):(0,i.N4e)(hr,()=>ui(K,N))).pipe((0,le.$)())});return(0,y.of)(gn).pipe(ua())}));return(0,y.of)(We).pipe(ua())}(N,he.path,F),function Jr(N,G,F){const K=G.routeConfig?G.routeConfig.canActivate:null;if(!K||0===K.length)return(0,y.of)(!0);const he=K.map(We=>(0,M.v)(()=>{const St=Ko(G)??F,gn=Gn(We,St);return rt(function Fi(N){return N&&fi(N.canActivate)}(gn)?gn.canActivate(G,N):(0,i.N4e)(St,()=>gn(G,N))).pipe((0,le.$)())}));return(0,y.of)(he).pipe(ua())}(N,he.route,F))),(0,le.$)(he=>!0!==he,!0))}(K,We,N,G):(0,y.of)(gn)),(0,de.T)(gn=>({...F,guardsResult:gn})))})}(this.environmentInjector,an=>this.events.next(an)),(0,xe.M)(an=>{if(We.guardsResult=an.guardsResult,an.guardsResult&&"boolean"!=typeof an.guardsResult)throw Us(0,an.guardsResult);const hr=new Fn(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot,!!an.guardsResult);this.events.next(hr)}),(0,Ae.p)(an=>!!an.guardsResult||(this.cancelNavigationTransition(an,"",Re.GuardRejected),!1)),Tr(an=>{if(an.guards.canActivateChecks.length)return(0,y.of)(an).pipe((0,xe.M)(hr=>{const ui=new zn(hr.id,this.urlSerializer.serialize(hr.extractedUrl),this.urlSerializer.serialize(hr.urlAfterRedirects),hr.targetSnapshot);this.events.next(ui)}),(0,De.n)(hr=>{let ui=!1;return(0,y.of)(hr).pipe(function ru(N,G){return(0,we.Z)(F=>{const{targetSnapshot:K,guards:{canActivateChecks:he}}=F;if(!he.length)return(0,y.of)(F);const We=new Set(he.map(an=>an.route)),St=new Set;for(const an of We)if(!St.has(an))for(const hr of Vo(an))St.add(hr);let gn=0;return(0,c.H)(St).pipe((0,ae.H)(an=>We.has(an)?function Wo(N,G,F,K){const he=N.routeConfig,We=N._resolve;return void 0!==he?.title&&!Vi(he)&&(We[it]=he.title),function oo(N,G,F,K){const he=Tn(N);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,we.Z)(St=>function $n(N,G,F,K){const he=Ko(G)??K,We=Gn(N,he);return rt(We.resolve?We.resolve(G,F):(0,i.N4e)(he,()=>We(G,F)))}(N[St],G,F,K).pipe((0,le.$)(),(0,xe.M)(gn=>{if(gn instanceof Da)throw Us(new mt,gn);We[St]=gn}))),fn(1),(0,Je.u)(We),(0,Be.W)(St=>Ba(St)?X.w:(0,R.$)(St)))}(We,N,G,K).pipe((0,de.T)(St=>(N._resolvedData=St,N.data=Ao(N,N.parent,F).resolve,null)))}(an,K,N,G):(an.data=Ao(an,an.parent,N).resolve,(0,y.of)(void 0))),(0,xe.M)(()=>gn++),fn(1),(0,we.Z)(an=>gn===St.size?(0,y.of)(F):X.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,xe.M)({next:()=>ui=!0,complete:()=>{ui||this.cancelNavigationTransition(hr,"",Re.NoDataFromResolver)}}))}),(0,xe.M)(hr=>{const ui=new tr(hr.id,this.urlSerializer.serialize(hr.extractedUrl),this.urlSerializer.serialize(hr.urlAfterRedirects),hr.targetSnapshot);this.events.next(ui)}))}),Tr(an=>{const hr=ui=>{const Ir=[];ui.routeConfig?.loadComponent&&!ui.routeConfig._loadedComponent&&Ir.push(this.configLoader.loadComponent(ui.routeConfig).pipe((0,xe.M)(Gi=>{ui.component=Gi}),(0,de.T)(()=>{})));for(const Gi of ui.children)Ir.push(...hr(Gi));return Ir};return(0,C.z)(hr(an.targetSnapshot.root)).pipe((0,at.U)(null),(0,Ee.s)(1))}),Tr(()=>this.afterPreactivation()),(0,De.n)(()=>{const{currentSnapshot:an,targetSnapshot:hr}=We,ui=this.createViewTransition?.(this.environmentInjector,an.root,hr.root);return ui?(0,c.H)(ui).pipe((0,de.T)(()=>We)):(0,y.of)(We)}),(0,de.T)(an=>{const hr=function So(N,G,F){const K=Bo(N,G._root,F?F._root:void 0);return new fs(K,G)}(F.routeReuseStrategy,an.targetSnapshot,an.currentRouterState);return this.currentTransition=We={...an,targetRouterState:hr},this.currentNavigation.targetRouterState=hr,We}),(0,xe.M)(()=>{this.events.next(new Qr)}),((N,G,F,K)=>(0,de.T)(he=>(new J(G,he.targetRouterState,he.currentRouterState,F,K).activate(N),he)))(this.rootContexts,F.routeReuseStrategy,an=>this.events.next(an),this.inputBindingEnabled),(0,Ee.s)(1),(0,xe.M)({next:an=>{St=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ye(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects))),this.titleStrategy?.updateTitle(an.targetRouterState.snapshot),an.resolve(!0)},complete:()=>{St=!0}}),(0,Ue.Q)(this.transitionAbortSubject.pipe((0,xe.M)(an=>{throw an}))),(0,_t.j)(()=>{!St&&!gn&&this.cancelNavigationTransition(We,"",Re.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Be.W)(an=>{if(gn=!0,Aa(an))this.events.next(new jt(We.id,this.urlSerializer.serialize(We.extractedUrl),an.message,an.cancellationCode)),function Qa(N){return Aa(N)&&nn(N.url)}(an)?this.events.next(new Pr(an.url,an.navigationBehaviorOptions)):We.resolve(!1);else{const hr=new pn(We.id,this.urlSerializer.serialize(We.extractedUrl),an,We.targetSnapshot??void 0);try{const ui=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(hr));if(!(ui instanceof Da))throw this.events.next(hr),an;{const{message:Ir,cancellationCode:Gi}=Us(0,ui);this.events.next(new jt(We.id,this.urlSerializer.serialize(We.extractedUrl),Ir,Gi)),this.events.next(new Pr(ui.redirectTo,ui.navigationBehaviorOptions))}}catch(ui){this.options.resolveNavigationPromiseOnError?We.resolve(!1):We.reject(ui)}}return X.w}))}))}cancelNavigationTransition(F,K,he){const We=new jt(F.id,this.urlSerializer.serialize(F.extractedUrl),K,he);this.events.next(We),F.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const F=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),K=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return F.toString()!==K?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Ie(N){return N!==et}let te=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Et),providedIn:"root"})}return N})();class ve{shouldDetach(G){return!1}store(G,F){}shouldAttach(G){return!1}retrieve(G){return null}shouldReuseRoute(G,F){return G.routeConfig===F.routeConfig}}let Et=(()=>{class N extends ve{static \u0275fac=(()=>{let F;return function(he){return(F||(F=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Gt=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Vn),providedIn:"root"})}return N})(),Vn=(()=>{class N extends Gt{location=(0,i.WQX)(pe.aZ);urlSerializer=(0,i.WQX)(ft);options=(0,i.WQX)(Qi,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(Za);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new be;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Xo(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(F){return this.location.subscribe(K=>{"popstate"===K.type&&F(K.url,K.state)})}handleRouterEvent(F,K){if(F instanceof me)this.stateMemento=this.createStateMemento();else if(F instanceof kt)this.rawUrlTree=K.initialUrl;else if(F instanceof Sn){if("eager"===this.urlUpdateStrategy&&!K.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(K.finalUrl,K.initialUrl);this.setBrowserUrl(K.targetBrowserUrl??he,K)}}else F instanceof Qr?(this.currentUrlTree=K.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(K.finalUrl,K.initialUrl),this.routerState=K.targetRouterState,"deferred"===this.urlUpdateStrategy&&!K.extras.skipLocationChange&&this.setBrowserUrl(K.targetBrowserUrl??this.rawUrlTree,K)):F instanceof jt&&(F.code===Re.GuardRejected||F.code===Re.NoDataFromResolver)?this.restoreHistory(K):F instanceof pn?this.restoreHistory(K,!0):F instanceof Ye&&(this.lastSuccessfulId=F.id,this.currentPageId=this.browserPageId)}setBrowserUrl(F,K){const he=F instanceof be?this.urlSerializer.serialize(F):F;if(this.location.isCurrentPathEqualTo(he)||K.extras.replaceUrl){const St={...K.extras.state,...this.generateNgRouterState(K.id,this.browserPageId)};this.location.replaceState(he,"",St)}else{const We={...K.extras.state,...this.generateNgRouterState(K.id,this.browserPageId+1)};this.location.go(he,"",We)}}restoreHistory(F,K=!1){if("computed"===this.canceledNavigationResolution){const We=this.currentPageId-this.browserPageId;0!==We?this.location.historyGo(We):this.currentUrlTree===F.finalUrl&&0===We&&(this.resetState(F),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(K&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(F,K){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:K}:{navigationId:F}}static \u0275fac=(()=>{let F;return function(he){return(F||(F=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var rr=function(N){return N[N.COMPLETE=0]="COMPLETE",N[N.FAILED=1]="FAILED",N[N.REDIRECTING=2]="REDIRECTING",N}(rr||{});function ci(N,G){N.events.pipe((0,Ae.p)(F=>F instanceof Ye||F instanceof jt||F instanceof pn||F instanceof kt),(0,de.T)(F=>F instanceof Ye||F instanceof kt?rr.COMPLETE:F instanceof jt&&(F.code===Re.Redirect||F.code===Re.SupersededByNewNavigation)?rr.REDIRECTING:rr.FAILED),(0,Ae.p)(F=>F!==rr.REDIRECTING),(0,Ee.s)(1)).subscribe(()=>{G()})}const Di={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let li=(()=>{class N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(Gt);options=(0,i.WQX)(Qi,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.TgB);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(U);urlSerializer=(0,i.WQX)(ft);location=(0,i.WQX)(pe.aZ);urlHandlingStrategy=(0,i.WQX)(Za);_events=new ne.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(te);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Ki,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(Ts,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:F=>{this.console.warn(F)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e.yU;subscribeToNavigationEvents(){const F=this.navigationTransitions.events.subscribe(K=>{try{const he=this.navigationTransitions.currentTransition,We=this.navigationTransitions.currentNavigation;if(null!==he&&null!==We)if(this.stateManager.handleRouterEvent(K,We),K instanceof jt&&K.code!==Re.Redirect&&K.code!==Re.SupersededByNewNavigation)this.navigated=!0;else if(K instanceof Ye)this.navigated=!0;else if(K instanceof Pr){const St=K.navigationBehaviorOptions,gn=this.urlHandlingStrategy.merge(K.url,he.currentRawUrl),an={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Ie(he.source),...St};this.scheduleNavigation(gn,et,null,an,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function wi(N){return!(N instanceof Qr||N instanceof Pr)})(K)&&this._events.next(K)}catch(he){this.navigationTransitions.transitionAbortSubject.next(he)}});this.eventsSubscription.add(F)}resetRootComponentType(F){this.routerState.root.component=F,this.navigationTransitions.rootComponentType=F}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),et,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((F,K)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(F,"popstate",K)},0)})}navigateToSyncWithBrowser(F,K,he){const We={replaceUrl:!0},St=he?.navigationId?he:null;if(he){const an={...he};delete an.navigationId,delete an.\u0275routerPageId,0!==Object.keys(an).length&&(We.state=an)}const gn=this.parseUrl(F);this.scheduleNavigation(gn,K,St,We)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(F){this.config=F.map(Bi),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(F,K={}){const{relativeTo:he,queryParams:We,fragment:St,queryParamsHandling:gn,preserveFragment:an}=K,hr=an?this.currentUrlTree.fragment:St;let Ir,ui=null;switch(gn??this.options.defaultQueryParamsHandling){case"merge":ui={...this.currentUrlTree.queryParams,...We};break;case"preserve":ui=this.currentUrlTree.queryParams;break;default:ui=We||null}null!==ui&&(ui=this.removeEmptyProps(ui));try{Ir=nt(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof F[0]||"/"!==F[0][0])&&(F=[]),Ir=this.currentUrlTree.root}return Rt(Ir,F,ui,hr??null)}navigateByUrl(F,K={skipLocationChange:!1}){const he=nn(F)?F:this.parseUrl(F),We=this.urlHandlingStrategy.merge(he,this.rawUrlTree);return this.scheduleNavigation(We,et,null,K)}navigate(F,K={skipLocationChange:!1}){return function ii(N){for(let G=0;G(null!=We&&(K[he]=We),K),{})}scheduleNavigation(F,K,he,We,St){if(this.disposed)return Promise.resolve(!1);let gn,an,hr;St?(gn=St.resolve,an=St.reject,hr=St.promise):hr=new Promise((Ir,Gi)=>{gn=Ir,an=Gi});const ui=this.pendingTasks.add();return ci(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ui))}),this.navigationTransitions.handleNavigationRequest({source:K,restoredState:he,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:F,extras:We,resolve:gn,reject:an,promise:hr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),hr.catch(Ir=>Promise.reject(Ir))}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),bs=(()=>{class N{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ne.B;constructor(F,K,he,We,St,gn){this.router=F,this.route=K,this.tabIndexAttribute=he,this.renderer=We,this.el=St,this.locationStrategy=gn;const an=St.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===an||"area"===an,this.isAnchorElement?this.subscription=F.events.subscribe(hr=>{hr instanceof Ye&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(F){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",F)}ngOnChanges(F){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(F){null==F?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=nn(F)||Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0"))}onClick(F,K,he,We,St){const gn=this.urlTree;return!!(null===gn||this.isAnchorElement&&(0!==F||K||he||We||St||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(gn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const F=this.urlTree;this.href=null!==F&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(F)):null;const K=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",K)}applyAttributeValue(F,K){const he=this.renderer,We=this.el.nativeElement;null!==K?he.setAttribute(We,F,K):he.removeAttribute(We,F)}get urlTree(){return null===this.routerLinkInput?null:nn(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 \u0275fac=function(K){return new(K||N)(i.rXU(li),i.rXU(_o),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(pe.hb))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(K,he){1&K&&i.bIt("click",function(St){return he.onClick(St.button,St.ctrlKey,St.shiftKey,St.altKey,St.metaKey)}),2&K&&i.BMQ("target",he.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[2,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},features:[i.GFd,i.OA$]})}return N})(),Lo=(()=>{class N{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(F,K,he,We,St){this.router=F,this.element=K,this.renderer=he,this.cdr=We,this.link=St,this.routerEventsSubscription=F.events.subscribe(gn=>{gn instanceof Ye&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,(0,y.of)(null)).pipe((0,Ft.U)()).subscribe(F=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const F=[...this.links.toArray(),this.link].filter(K=>!!K).map(K=>K.onChanges);this.linkInputChangesSubscription=(0,c.H)(F).pipe((0,Ft.U)()).subscribe(K=>{this._isActive!==this.isLinkActive(this.router)(K)&&this.update()})}set routerLinkActive(F){const K=Array.isArray(F)?F:F.split(" ");this.classes=K.filter(he=>!!he)}ngOnChanges(F){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const F=this.hasActiveLinks();this.classes.forEach(K=>{F?this.renderer.addClass(this.element.nativeElement,K):this.renderer.removeClass(this.element.nativeElement,K)}),F&&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!==F&&(this._isActive=F,this.cdr.markForCheck(),this.isActiveChange.emit(F))})}isLinkActive(F){const K=function ha(N){return!!N.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return he=>{const We=he.urlTree;return!!We&&F.isActive(We,K)}}hasActiveLinks(){const F=this.isLinkActive(this.router);return this.link&&F(this.link)||this.links.some(F)}static \u0275fac=function(K){return new(K||N)(i.rXU(li),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(bs,8))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLinkActive",""]],contentQueries:function(K,he,We){if(1&K&&i.wni(We,bs,5),2&K){let St;i.mGM(St=i.lsd())&&(he.links=St)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return N})();class Yo{}let Ta=(()=>{class N{router;injector;preloadingStrategy;loader;subscription;constructor(F,K,he,We,St){this.router=F,this.injector=he,this.preloadingStrategy=We,this.loader=St}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ae.p)(F=>F instanceof Ye),(0,ae.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,K){const he=[];for(const We of K){We.providers&&!We._injector&&(We._injector=(0,i.Ol2)(We.providers,F,`Route: ${We.path}`));const St=We._injector??F,gn=We._loadedInjector??St;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(St,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(gn,We.children??We._loadedRoutes))}return(0,c.H)(he).pipe((0,Ft.U)())}preloadConfig(F,K){return this.preloadingStrategy.preload(K,()=>{let he;he=K.loadChildren&&void 0===K.canLoad?this.loader.loadChildren(F,K):(0,y.of)(null);const We=he.pipe((0,we.Z)(St=>null===St?(0,y.of)(void 0):(K._loadedRoutes=St.routes,K._loadedInjector=St.injector,this.processRoutes(St.injector??F,St.routes))));if(K.loadComponent&&!K._loadedComponent){const St=this.loader.loadComponent(K);return(0,c.H)([We,St]).pipe((0,Ft.U)())}return We})}static \u0275fac=function(K){return new(K||N)(i.KVO(li),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Yo),i.KVO(no))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Ma=new i.nKC("");let qa=(()=>{class N{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(F,K,he,We,St={}){this.urlSerializer=F,this.transitions=K,this.viewportScroller=he,this.zone=We,this.options=St,St.scrollPositionRestoration||="disabled",St.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(F=>{F instanceof me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Ye?(this.lastId=F.id,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.urlAfterRedirects).fragment)):F instanceof kt&&F.code===gt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(F=>{F instanceof Rr&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,K){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Rr(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,K))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(K){i.QTQ()};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function iu(N,...G){return(0,i.EmA)([{provide:Ki,multi:!0,useValue:N},[],{provide:_o,useFactory:ka,deps:[li]},{provide:i.iLQ,multi:!0,useFactory:fc},G.map(F=>F.\u0275providers)])}function ka(N){return N.routerState.root}function Ia(N,G){return{\u0275kind:N,\u0275providers:G}}function Hl(N={}){return Ia(4,[{provide:Ma,useFactory:()=>{const F=(0,i.WQX)(pe.Xr),K=(0,i.WQX)(i.SKi),he=(0,i.WQX)(U),We=(0,i.WQX)(ft);return new qa(We,he,F,K,N)}}])}function fc(){const N=(0,i.WQX)(i.zZn);return G=>{const F=N.get(i.o8S);if(G!==F.components[0])return;const K=N.get(li),he=N.get(dl);1===N.get(yo)&&K.initialNavigation(),N.get(pc,null,i.$GK.Optional)?.setUpPreloading(),N.get(Ma,null,i.$GK.Optional)?.init(),K.resetRootComponentType(F.componentTypes[0]),he.closed||(he.next(),he.complete(),he.unsubscribe())}}const dl=new i.nKC("",{factory:()=>new ne.B}),yo=new i.nKC("",{providedIn:"root",factory:()=>1}),pc=new i.nKC("");function au(N){return Ia(0,[{provide:pc,useExisting:Ta},{provide:Yo,useExisting:N}])}function Ur(N){return Ia(9,[{provide:vo,useValue:Vs},{provide:Ci,useValue:{skipNextTransition:!!N?.skipInitialTransition,...N}}])}const Hs=new i.nKC("ROUTER_FORROOT_GUARD"),Wl=[pe.aZ,{provide:ft,useClass:mt},li,Go,{provide:_o,useFactory:ka,deps:[li]},no,[]];let Ha=(()=>{class N{constructor(F){}static forRoot(F,K){return{ngModule:N,providers:[Wl,[],{provide:Ki,multi:!0,useValue:F},{provide:Hs,useFactory:hl,deps:[[li,new i.Xx1,new i.kdw]]},K?.errorHandler?{provide:Ui,useValue:K.errorHandler}:[],{provide:Qi,useValue:K||{}},K?.useHash?{provide:pe.hb,useClass:pe.fw}:{provide:pe.hb,useClass:pe.Sm},{provide:Ma,useFactory:()=>{const N=(0,i.WQX)(pe.Xr),G=(0,i.WQX)(i.SKi),F=(0,i.WQX)(Qi),K=(0,i.WQX)(U),he=(0,i.WQX)(ft);return F.scrollOffset&&N.setOffset(F.scrollOffset),new qa(he,K,N,G,F)}},K?.preloadingStrategy?au(K.preloadingStrategy).\u0275providers:[],K?.initialNavigation?gd(K):[],K?.bindToComponentInputs?Ia(8,[Ns,{provide:Ts,useExisting:Ns}]).\u0275providers:[],K?.enableViewTransitions?Ur().\u0275providers:[],[{provide:lu,useFactory:fc},{provide:i.iLQ,multi:!0,useExisting:lu}]]}}static forChild(F){return{ngModule:N,providers:[{provide:Ki,multi:!0,useValue:F}]}}static \u0275fac=function(K){return new(K||N)(i.KVO(Hs,8))};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({})}return N})();function hl(N){return"guarded"}function gd(N){return["disabled"===N.initialNavigation?Ia(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const G=(0,i.WQX)(li);return()=>{G.setUpLocationChangeListener()}}},{provide:yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?Ia(2,[{provide:yo,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:G=>{const F=G.get(pe.hj,Promise.resolve());return()=>F.then(()=>new Promise(K=>{const he=G.get(li),We=G.get(dl);ci(he,()=>{K(!0)}),G.get(U).afterPreactivation=()=>(K(!0),We.closed?(0,y.of)(void 0):We),he.initialNavigation()}))}}]).\u0275providers:[]]}const lu=new i.nKC("")},8378:(o,s,n)=>{"use strict";n.d(s,{My:()=>Le,aT:()=>le});const Ee=Array.from({length:256},(Je,_t)=>_t.toString(16).padStart(2,"0"));function Le(Je){!function c(Je,..._t){if(!function a(Je){return Je instanceof Uint8Array||ArrayBuffer.isView(Je)&&"Uint8Array"===Je.constructor.name}(Je))throw new Error("Uint8Array expected");if(_t.length>0&&!_t.includes(Je.length))throw new Error("Uint8Array expected of length "+_t+", got length="+Je.length)}(Je);let _t="";for(let ze=0;ze=Ae._0&&Je<=Ae._9?Je-Ae._0:Je>=Ae.A&&Je<=Ae.F?Je-(Ae.A-10):Je>=Ae.a&&Je<=Ae.f?Je-(Ae.a-10):void 0}function le(Je){if("string"!=typeof Je)throw new Error("hex string expected, got "+typeof Je);const _t=Je.length,ze=_t/2;if(_t%2)throw new Error("hex string expected, got unpadded hex of length "+_t);const Ue=new Uint8Array(ze);for(let Ft=0,Ke=0;Ft{"use strict";function a(Wt){return Wt instanceof Uint8Array||null!=Wt&&"object"==typeof Wt&&"Uint8Array"===Wt.constructor.name}function c(...Wt){const Zt=Nn=>Nn,rt=(Nn,mn)=>Mn=>Nn(mn(Mn));return{encode:Wt.map(Nn=>Nn.encode).reduceRight(rt,Zt),decode:Wt.map(Nn=>Nn.decode).reduce(rt,Zt)}}function y(Wt){return{encode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"number"!=typeof Zt[0])throw new Error("alphabet.encode input should be an array of numbers");return Zt.map(rt=>{if(rt<0||rt>=Wt.length)throw new Error(`Digit index outside alphabet: ${rt} (alphabet: ${Wt.length})`);return Wt[rt]})},decode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"string"!=typeof Zt[0])throw new Error("alphabet.decode input should be array of strings");return Zt.map(rt=>{if("string"!=typeof rt)throw new Error(`alphabet.decode: not string element=${rt}`);const Ht=Wt.indexOf(rt);if(-1===Ht)throw new Error(`Unknown letter: "${rt}". Allowed: ${Wt}`);return Ht})}}}function w(Wt=""){if("string"!=typeof Wt)throw new Error("join separator should be string");return{encode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"string"!=typeof Zt[0])throw new Error("join.encode input should be array of strings");for(let rt of Zt)if("string"!=typeof rt)throw new Error(`join.encode: non-string input=${rt}`);return Zt.join(Wt)},decode:Zt=>{if("string"!=typeof Zt)throw new Error("join.decode input should be string");return Zt.split(Wt)}}}function C(Wt,Zt="="){if("string"!=typeof Zt)throw new Error("padding chr should be string");return{encode(rt){if(!Array.isArray(rt)||rt.length&&"string"!=typeof rt[0])throw new Error("padding.encode input should be array of strings");for(let Ht of rt)if("string"!=typeof Ht)throw new Error(`padding.encode: non-string input=${Ht}`);for(;rt.length*Wt%8;)rt.push(Zt);return rt},decode(rt){if(!Array.isArray(rt)||rt.length&&"string"!=typeof rt[0])throw new Error("padding.encode input should be array of strings");for(let en of rt)if("string"!=typeof en)throw new Error(`padding.decode: non-string input=${en}`);let Ht=rt.length;if(Ht*Wt%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ht>0&&rt[Ht-1]===Zt;Ht--)if(!((Ht-1)*Wt%8))throw new Error("Invalid padding: string has too much padding");return rt.slice(0,Ht)}}}function S(Wt,Zt,rt){if(Zt<2)throw new Error(`convertRadix: wrong from=${Zt}, base cannot be less than 2`);if(rt<2)throw new Error(`convertRadix: wrong to=${rt}, base cannot be less than 2`);if(!Array.isArray(Wt))throw new Error("convertRadix: data should be array");if(!Wt.length)return[];let Ht=0;const en=[],Nn=Array.from(Wt);for(Nn.forEach(mn=>{if(mn<0||mn>=Zt)throw new Error(`Wrong integer: ${mn}`)});;){let mn=0,Mn=!0;for(let tt=Ht;ttFt,K3:()=>le,Tq:()=>Wn});const M=(Wt,Zt)=>Zt?M(Zt,Wt%Zt):Wt,k=(Wt,Zt)=>Wt+(Zt-M(Wt,Zt));function R(Wt,Zt,rt,Ht){if(!Array.isArray(Wt))throw new Error("convertRadix2: data should be array");if(Zt<=0||Zt>32)throw new Error(`convertRadix2: wrong from=${Zt}`);if(rt<=0||rt>32)throw new Error(`convertRadix2: wrong to=${rt}`);if(k(Zt,rt)>32)throw new Error(`convertRadix2: carry overflow from=${Zt} to=${rt} carryBits=${k(Zt,rt)}`);let en=0,Nn=0;const mn=2**rt-1,Mn=[];for(const tt of Wt){if(tt>=2**Zt)throw new Error(`convertRadix2: invalid data word=${tt} from=${Zt}`);if(en=en<32)throw new Error(`convertRadix2: carry overflow pos=${Nn} from=${Zt}`);for(Nn+=Zt;Nn>=rt;Nn-=rt)Mn.push((en>>Nn-rt&mn)>>>0);en&=2**Nn-1}if(en=en<=Zt)throw new Error("Excess padding");if(!Ht&&en)throw new Error(`Non-zero padding: ${en}`);return Ht&&Nn>0&&Mn.push(en>>>0),Mn}function X(Wt){return{encode:Zt=>{if(!a(Zt))throw new Error("radix.encode input should be Uint8Array");return S(Array.from(Zt),256,Wt)},decode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"number"!=typeof Zt[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(S(Zt,Wt,256))}}}function Z(Wt,Zt=!1){if(Wt<=0||Wt>32)throw new Error("radix2: bits should be in (0..32]");if(k(8,Wt)>32||k(Wt,8)>32)throw new Error("radix2: carry overflow");return{encode:rt=>{if(!a(rt))throw new Error("radix2.encode input should be Uint8Array");return R(Array.from(rt),8,Wt,!Zt)},decode:rt=>{if(!Array.isArray(rt)||rt.length&&"number"!=typeof rt[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(R(rt,Wt,8,Zt))}}}function ne(Wt){if("function"!=typeof Wt)throw new Error("unsafeWrapper fn should be function");return function(...Zt){try{return Wt.apply(null,Zt)}catch{}}}function _e(Wt,Zt){if("function"!=typeof Zt)throw new Error("checksum fn should be function");return{encode(rt){if(!a(rt))throw new Error("checksum.encode: input should be Uint8Array");const Ht=Zt(rt).slice(0,Wt),en=new Uint8Array(rt.length+Wt);return en.set(rt),en.set(Ht,rt.length),en},decode(rt){if(!a(rt))throw new Error("checksum.decode: input should be Uint8Array");const Ht=rt.slice(0,-Wt),en=Zt(Ht).slice(0,Wt),Nn=rt.slice(-Wt);for(let mn=0;mnc(X(58),y("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),w("")))(),Wn=Wt=>c(_e(4,Zt=>Wt(Wt(Zt))),lt),wn=c(y("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),w("")),Je=[996825010,642813549,513874426,1027748829,705979059];function _t(Wt){const Zt=Wt>>25;let rt=(33554431&Wt)<<5;for(let Ht=0;Ht>Ht&1)&&(rt^=Je[Ht]);return rt}function ze(Wt,Zt,rt=1){const Ht=Wt.length;let en=1;for(let Nn=0;Nn126)throw new Error(`Invalid prefix (${Wt})`);en=_t(en)^mn>>5}en=_t(en);for(let Nn=0;NnHe)throw new TypeError(`Length ${z} exceeds limit ${He}`);const L=Te.toLowerCase(),V=ze(L,be,Zt);return`${L}1${wn.encode(be)}${V}`}function Mn(Te,be=90){if("string"!=typeof Te)throw new Error("bech32.decode input should be string, not "+typeof Te);if(Te.length<8||!1!==be&&Te.length>be)throw new TypeError(`Wrong string length: ${Te.length} (${Te}). Expected (8..${be})`);const He=Te.toLowerCase();if(Te!==He&&Te!==Te.toUpperCase())throw new Error("String must be lowercase or uppercase");const z=He.lastIndexOf("1");if(0===z||-1===z)throw new Error('Letter "1" must be present between prefix and data only');const L=He.slice(0,z),V=He.slice(z+1);if(V.length<6)throw new Error("Data must be at least 6 characters long");const Ne=wn.decode(V).slice(0,-6),ft=ze(L,Ne,Zt);if(!V.endsWith(ft))throw new Error(`Invalid checksum in ${Te}: expected "${ft}"`);return{prefix:L,words:Ne}}return{encode:mn,decode:Mn,encodeFromBytes:function At(Te,be){return mn(Te,en(be))},decodeToBytes:function Kt(Te){const{prefix:be,words:He}=Mn(Te,!1);return{prefix:be,words:He,bytes:Ht(He)}},decodeUnsafe:ne(Mn),fromWords:Ht,fromWordsUnsafe:Nn,toWords:en}}const Ft=Ue("bech32")},2769:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(3121),a=n(9311);const y=(0,i.A)(a.A,"Map")},1238:(o,s,n)=>{"use strict";n.d(s,{A:()=>ft});var c=n(2486);const w=function y(mt,Tt){for(var On=mt.length;On--;)if((0,c.A)(mt[On][0],Tt))return On;return-1};var T=Array.prototype.splice;function pe(mt){var Tt=-1,On=null==mt?0:mt.length;for(this.clear();++Tt-1},pe.prototype.set=function ne(mt,Tt){var On=this.__data__,cn=w(On,mt);return cn<0?(++this.size,On.push([mt,Tt])):On[cn][1]=Tt,this};const de=pe;var Be=n(2769);const bt=(0,n(3121).A)(Object,"create");var Je=Object.prototype.hasOwnProperty;var Ft=Object.prototype.hasOwnProperty;function Me(mt){var Tt=-1,On=null==mt?0:mt.length;for(this.clear();++Tt{"use strict";n.d(s,{A:()=>c});const c=n(9311).A.Symbol},6259:(o,s,n)=>{"use strict";n.d(s,{A:()=>R});var c=n(1656),y=n(9007),w=n(5303),C=n(3467),T=n(766),M=Object.prototype.hasOwnProperty;const R=function k(X,Z){var ne=(0,y.A)(X),_e=!ne&&(0,c.A)(X),pe=!ne&&!_e&&(0,w.A)(X),de=!ne&&!_e&&!pe&&(0,T.A)(X),De=ne||_e||pe||de,Ee=De?function i(X,Z){for(var ne=-1,_e=Array(X);++ne{"use strict";n.d(s,{A:()=>C});var i=n(8758),a=n(2486),y=Object.prototype.hasOwnProperty;const C=function w(T,S,M){var k=T[S];(!y.call(T,S)||!(0,a.A)(k,M)||void 0===M&&!(S in T))&&(0,i.A)(T,S,M)}},8758:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(4133);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5688:(o,s,n)=>{"use strict";n.d(s,{A:()=>pe});var i=n(4883),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var M=Object.prototype.toString;var ne=i.A?i.A.toStringTag:void 0;const pe=function _e(de){return null==de?void 0===de?"[object Undefined]":"[object Null]":ne&&ne in Object(de)?function C(de){var De=c.call(de,w),Ee=de[w];try{de[w]=void 0;var Le=!0}catch{}var Ae=y.call(de);return Le&&(De?de[w]=Ee:delete de[w]),Ae}(de):function k(de){return M.call(de)}(de)}},4975:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},3031:(o,s,n)=>{"use strict";n.d(s,{A:()=>w});const c=n(9311).A.Uint8Array,w=function y(C){var T=new C.constructor(C.byteLength);return new c(T).set(new c(C)),T}},4224:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(9311),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function T(M,k){if(k)return M.slice();var R=M.length,X=C?C(R):new M.constructor(R);return M.copy(X),X}},7383:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(3031);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},1369:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){var w=-1,C=c.length;for(y||(y=Array(C));++w{"use strict";n.d(s,{A:()=>y});var i=n(2065),a=n(8758);const y=function c(w,C,T,S){var M=!T;T||(T={});for(var k=-1,R=C.length;++k{"use strict";n.d(s,{A:()=>c});var i=n(3121);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},8618:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},3121:(o,s,n)=>{"use strict";n.d(s,{A:()=>we});var le,i=n(5656),c=n(9311).A["__core-js_shared__"],w=(le=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var S=n(7999),M=n(4435),R=/^\[object .+?Constructor\]$/,pe=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const De=function de(le){return!(!(0,S.A)(le)||function C(le){return!!w&&w in le}(le))&&((0,i.A)(le)?pe:R).test((0,M.A)(le))},we=function Ae(le,ae){var xe=function Ee(le,ae){return le?.[ae]}(le,ae);return De(xe)?xe:void 0}},5749:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});const c=(0,n(5717).A)(Object.getPrototypeOf,Object)},223:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(7999),a=Object.create;const y=function(){function M(){}return function(k){if(!(0,i.A)(k))return{};if(a)return a(k);M.prototype=k;var R=new M;return M.prototype=void 0,R}}();var w=n(5749),C=n(1561);const S=function T(M){return"function"!=typeof M.constructor||(0,C.A)(M)?{}:y((0,w.A)(M))}},3467:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var T=typeof w;return!!(C=C??9007199254740991)&&("number"==T||"symbol"!=T&&a.test(w))&&w>-1&&w%1==0&&w{"use strict";n.d(s,{A:()=>c});var i=Object.prototype;const c=function a(y){var w=y&&y.constructor;return y===("function"==typeof w&&w.prototype||i)}},8583:(o,s,n)=>{"use strict";n.d(s,{A:()=>T});var i=n(8618),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const T=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},5717:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},9311:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(8618),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},4435:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var a=Function.prototype.toString;const y=function c(w){if(null!=w){try{return a.call(w)}catch{}try{return w+""}catch{}}return""}},2486:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},6143:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){for(var y=-1,w=null==c?0:c.length,C={};++y{"use strict";n.d(s,{A:()=>k});var i=n(5688),a=n(2312);const w=function y(R){return(0,a.A)(R)&&"[object Arguments]"==(0,i.A)(R)};var C=Object.prototype,T=C.hasOwnProperty,S=C.propertyIsEnumerable;const k=w(function(){return arguments}())?w:function(R){return(0,a.A)(R)&&T.call(R,"callee")&&!S.call(R,"callee")}},9007:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=Array.isArray},2808:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(5656),a=n(4184);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},5303:(o,s,n)=>{"use strict";n.d(s,{A:()=>k});var i=n(9311),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,T=w&&w.exports===y?i.A.Buffer:void 0;const k=(T?T.isBuffer:void 0)||function a(){return!1}},5656:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(5688),a=n(7999);const S=function T(M){if(!(0,a.A)(M))return!1;var k=(0,i.A)(M);return"[object Function]"==k||"[object GeneratorFunction]"==k||"[object AsyncFunction]"==k||"[object Proxy]"==k}},4184:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});const c=function a(y){return"number"==typeof y&&y>-1&&y%1==0&&y<=9007199254740991}},7999:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){var y=typeof c;return null!=c&&("object"==y||"function"==y)}},2312:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},766:(o,s,n)=>{"use strict";n.d(s,{A:()=>wn});var i=n(5688),a=n(4184),c=n(2312),lt={};lt["[object Float32Array]"]=lt["[object Float64Array]"]=lt["[object Int8Array]"]=lt["[object Int16Array]"]=lt["[object Int32Array]"]=lt["[object Uint8Array]"]=lt["[object Uint8ClampedArray]"]=lt["[object Uint16Array]"]=lt["[object Uint32Array]"]=!0,lt["[object Arguments]"]=lt["[object Array]"]=lt["[object ArrayBuffer]"]=lt["[object Boolean]"]=lt["[object DataView]"]=lt["[object Date]"]=lt["[object Error]"]=lt["[object Function]"]=lt["[object Map]"]=lt["[object Number]"]=lt["[object Object]"]=lt["[object RegExp]"]=lt["[object Set]"]=lt["[object String]"]=lt["[object WeakMap]"]=!1;var sn=n(4975),fn=n(8583),En=fn.A&&fn.A.isTypedArray;const wn=En?(0,sn.A)(En):function bt(Je){return(0,c.A)(Je)&&(0,a.A)(Je.length)&&!!lt[(0,i.A)(Je)]}},3959:(o,s,n)=>{"use strict";n.d(s,{A:()=>X});var i=n(6259),a=n(7999),c=n(1561);var T=Object.prototype.hasOwnProperty;const M=function S(Z){if(!(0,a.A)(Z))return function y(Z){var ne=[];if(null!=Z)for(var _e in Object(Z))ne.push(_e);return ne}(Z);var ne=(0,c.A)(Z),_e=[];for(var pe in Z)"constructor"==pe&&(ne||!T.call(Z,pe))||_e.push(pe);return _e};var k=n(2808);const X=function R(Z){return(0,k.A)(Z)?(0,i.A)(Z,!0):M(Z)}},4819:(o,s,n)=>{"use strict";n.d(s,{A:()=>On});var i=n(1238),a=n(8758),c=n(2486);const w=function y(cn,hn,Ln){(void 0!==Ln&&!(0,c.A)(cn[hn],Ln)||void 0===Ln&&!(hn in cn))&&(0,a.A)(cn,hn,Ln)},M=function C(cn){return function(hn,Ln,lr){for(var Dn=-1,Hr=Object(hn),Mr=lr(hn),Vr=Mr.length;Vr--;){var vt=Mr[cn?Vr:++Dn];if(!1===Ln(Hr[vt],vt,Hr))break}return hn}}();var k=n(4224),R=n(7383),X=n(1369),Z=n(223),ne=n(1656),_e=n(9007),pe=n(2808),de=n(2312);var Le=n(5303),Ae=n(5656),we=n(7999),le=n(5688),ae=n(5749),lt=Function.prototype.toString,bt=Object.prototype.hasOwnProperty,at=lt.call(Object);var En=n(766);const wn=function Wn(cn,hn){if(("constructor"!==hn||"function"!=typeof cn[hn])&&"__proto__"!=hn)return cn[hn]};var Je=n(101),_t=n(3959);const Ke=function Ft(cn,hn,Ln,lr,Dn,Hr,Mr){var Vr=wn(cn,Ln),vt=wn(hn,Ln),Vt=Mr.get(vt);if(Vt)w(cn,Ln,Vt);else{var Oe=Hr?Hr(Vr,vt,Ln+"",cn,hn,Mr):void 0,Ge=void 0===Oe;if(Ge){var je=(0,_e.A)(vt),Dt=!je&&(0,Le.A)(vt),ct=!je&&!Dt&&(0,En.A)(vt);Oe=vt,je||Dt||ct?(0,_e.A)(Vr)?Oe=Vr:function De(cn){return(0,de.A)(cn)&&(0,pe.A)(cn)}(Vr)?Oe=(0,X.A)(Vr):Dt?(Ge=!1,Oe=(0,k.A)(vt,!0)):ct?(Ge=!1,Oe=(0,R.A)(vt,!0)):Oe=[]:function sn(cn){if(!(0,de.A)(cn)||"[object Object]"!=(0,le.A)(cn))return!1;var hn=(0,ae.A)(cn);if(null===hn)return!0;var Ln=bt.call(hn,"constructor")&&hn.constructor;return"function"==typeof Ln&&Ln instanceof Ln&<.call(Ln)==at}(vt)||(0,ne.A)(vt)?(Oe=Vr,(0,ne.A)(Vr)?Oe=function ze(cn){return(0,Je.A)(cn,(0,_t.A)(cn))}(Vr):(!(0,we.A)(Vr)||(0,Ae.A)(Vr))&&(Oe=(0,Z.A)(vt))):Ge=!1}Ge&&(Mr.set(vt,Oe),Dn(Oe,vt,lr,Hr,Mr),Mr.delete(vt)),w(cn,Ln,Oe)}},it=function Ze(cn,hn,Ln,lr,Dn){cn!==hn&&M(hn,function(Hr,Mr){if(Dn||(Dn=new i.A),(0,we.A)(Hr))Ke(cn,hn,Mr,Ln,Ze,lr,Dn);else{var Vr=lr?lr(wn(cn,Mr),Hr,Mr+"",cn,hn,Dn):void 0;void 0===Vr&&(Vr=Hr),w(cn,Mr,Vr)}},_t.A)},Qt=function Ot(cn){return cn};var Xt=Math.max;const rt=function Zt(cn){return function(){return cn}};var Ht=n(4133),tt=Date.now;const be=function Kt(cn){var hn=0,Ln=0;return function(){var lr=tt(),Dn=16-(lr-Ln);if(Ln=lr,Dn>0){if(++hn>=800)return arguments[0]}else hn=0;return cn.apply(void 0,arguments)}}(Ht.A?function(cn,hn){return(0,Ht.A)(cn,"toString",{configurable:!0,enumerable:!1,value:rt(hn),writable:!0})}:Qt),z=function He(cn,hn){return be(function Tn(cn,hn,Ln){return hn=Xt(void 0===hn?cn.length-1:hn,0),function(){for(var lr=arguments,Dn=-1,Hr=Xt(lr.length-hn,0),Mr=Array(Hr);++Dn1?Ln[Dn-1]:void 0,Mr=Dn>2?Ln[2]:void 0;for(Hr=cn.length>3&&"function"==typeof Hr?(Dn--,Hr):void 0,Mr&&function V(cn,hn,Ln){if(!(0,we.A)(Ln))return!1;var lr=typeof hn;return!!("number"==lr?(0,pe.A)(Ln)&&(0,L.A)(hn,Ln.length):"string"==lr&&hn in Ln)&&(0,c.A)(Ln[hn],cn)}(Ln[0],Ln[1],Mr)&&(Hr=Dn<3?void 0:Hr,Dn=1),hn=Object(hn);++lr{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3014),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5137),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9129),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var n in s)__defProp$1(o,n,{get:s[n],enumerable:!0})},hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>hostRefs.set(o,{$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map}),isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win=typeof window<"u"?window:{},doc=win.document||{head:{}},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,n,i)=>o.addEventListener(s,n,i),rel:(o,s,n,i)=>o.removeEventListener(s,n,i),ce:(o,s)=>new CustomEvent(o,s)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>n=>{o.push(n),queuePending||(queuePending=!0,s&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=o=>{for(let s=0;s{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=o=>promiseResolve().then(o),writeTask=queueTask(queueDomWrites,!0),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>null!=o,isComplexType=o=>"object"==(o=typeof o)||"function"===o;function queryNonceMetaTagContent(o){var s,n,i;return null!=(i=null==(n=null==(s=o.head)?void 0:s.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?i:void 0}var result_exports={};__export$1(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap$1,unwrapErr:()=>unwrapErr});var ok=o=>({isOk:!0,isErr:!1,value:o}),err=o=>({isOk:!1,isErr:!0,value:o});function map(o,s){if(o.isOk){const n=s(o.value);return n instanceof Promise?n.then(i=>ok(i)):ok(n)}if(o.isErr)return err(o.value);throw"should never get here"}var unwrap$1=o=>{if(o.isOk)return o.value;throw o.value},unwrapErr=o=>{if(o.isErr)return o.value;throw o.value},createTime=(o,s="")=>()=>{},h=(o,s,...n)=>{let i=null,a=null,c=null,y=!1,w=!1;const C=[],T=M=>{for(let k=0;kM[k]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const n={...o.vattrs};return o.vkey&&(n.key=o.vkey),o.vname&&(n.name=o.vname),h(o.vtag,n,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),parsePropertyValue=(o,s)=>null==o||isComplexType(o)?o:4&s?"false"!==o&&(""===o||!!o):2&s?parseFloat(o):1&s?String(o):o,getElement=o=>o,createEvent=(o,s,n)=>{const i=getElement(o);return{emit:a=>emitEvent(i,s,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:a})}},emitEvent=(o,s,n)=>{const i=plt.ce(s,n);return o.dispatchEvent(i),i},rootAppliedStyles=new WeakMap,registerStyle=(o,s,n)=>{let i=styles.get(o);supportsConstructableStylesheets&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=s:i.replaceSync(s)):i=s,styles.set(o,i)},addStyle=(o,s,n)=>{var i;const a=getScopeId(s,n),c=styles.get(a);if(o=11===o.nodeType?o:doc,c)if("string"==typeof c){let y,w=rootAppliedStyles.get(o=o.head||o);if(w||rootAppliedStyles.set(o,w=new Set),!w.has(a)){{y=doc.createElement("style"),y.innerHTML=c;const C=null!=(i=plt.$nonce$)?i:queryNonceMetaTagContent(doc);null!=C&&y.setAttribute("nonce",C),(!(1&s.$flags$)||1&s.$flags$&&"HEAD"!==o.nodeName)&&o.insertBefore(y,o.querySelector("link"))}4&s.$flags$&&(y.innerHTML+=SLOT_FB_CSS),w&&w.add(a)}}else o.adoptedStyleSheets.includes(c)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,c]);return a},attachStyles=o=>{const s=o.$cmpMeta$,n=o.$hostElement$,i=s.$flags$,a=createTime("attachStyles",s.$tagName$),c=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),s,o.$modeName$);10&i&&2&i&&(n["s-sc"]=c,n.classList.add(c+"-h"),2&i&&n.classList.add(c+"-s")),a()},getScopeId=(o,s)=>"sc-"+(s&&32&o.$flags$?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,n,i,a,c)=>{if(n!==i){let y=isMemberInElement(o,s),w=s.toLowerCase();if("class"===s){const C=o.classList,T=parseClassList(n),S=parseClassList(i);C.remove(...T.filter(M=>M&&!S.includes(M))),C.add(...S.filter(M=>M&&!T.includes(M)))}else if("style"===s){for(const C in n)i&&null!=i[C]||(C.includes("-")?o.style.removeProperty(C):o.style[C]="");for(const C in i)n&&i[C]===n[C]||(C.includes("-")?o.style.setProperty(C,i[C]):o.style[C]=i[C])}else if("key"!==s)if("ref"===s)i&&i(o);else if(o.__lookupSetter__(s)||"o"!==s[0]||"n"!==s[1]){const C=isComplexType(i);if((y||C&&null!==i)&&!a)try{if(o.tagName.includes("-"))o[s]=i;else{const S=i??"";"list"===s?y=!1:null!=n&&o[s]==S||(o[s]=S)}}catch{}let T=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,T=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(T?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,T?o.setAttributeNS(XLINK_NS,s,i):o.setAttribute(s,i))}else if(s="-"===s[2]?s.slice(3):isMemberInElement(win,w)?w.slice(2):w[2]+s.slice(3),n||i){const C=s.endsWith(CAPTURE_EVENT_SUFFIX);s=s.replace(CAPTURE_EVENT_REGEX,""),n&&plt.rel(o,s,n,C),i&&plt.ael(o,s,i,C)}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(o,s,n)=>{const i=11===s.$elm$.nodeType&&s.$elm$.host?s.$elm$.host:s.$elm$,a=o&&o.$attrs$||EMPTY_OBJ,c=s.$attrs$||EMPTY_OBJ;for(const y of sortedAttrNames(Object.keys(a)))y in c||setAccessor(i,y,a[y],void 0,n,s.$flags$);for(const y of sortedAttrNames(Object.keys(c)))setAccessor(i,y,a[y],c[y],n,s.$flags$)},scopeId,contentRef,hostTagName;function sortedAttrNames(o){return o.includes("ref")?[...o.filter(s=>"ref"!==s),"ref"]:o}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(o,s,n,i)=>{var a;const c=s.$children$[n];let y,w,C,T=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===c.$tag$&&(scopeId&&i.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)y=c.$elm$=doc.createTextNode(c.$text$);else if(1&c.$flags$)y=c.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===c.$tag$),y=c.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),isSvgMode&&"foreignObject"===c.$tag$&&(isSvgMode=!1),updateElement(null,c,isSvgMode),y.getRootNode().querySelector("body")&&BUILD.scoped&&isDef(scopeId)&&y["s-si"]!==scopeId&&y.classList.add(y["s-si"]=scopeId),updateElementScopeIds(y,i),c.$children$)for(T=0;T{plt.$flags$|=1;const n=Array.from(o.childNodes);if(o["s-sr"]&&BUILD.experimentalSlotFixes){let i=o;for(;i=i.nextSibling;)i&&i["s-sn"]===o["s-sn"]&&i["s-sh"]===hostTagName&&n.push(i)}for(let i=n.length-1;i>=0;i--){const a=n[i];a["s-hn"]!==hostTagName&&a["s-ol"]&&(insertBefore(parentReferenceNode(a),a,referenceNode(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(a,s)}plt.$flags$&=-2},addVnodes=(o,s,n,i,a,c)=>{let y,w=o["s-cr"]&&o["s-cr"].parentNode||o;for(w.shadowRoot&&w.tagName===hostTagName&&(w=w.shadowRoot);a<=c;++a)i[a]&&(y=createElm(null,n,a,o),y&&(i[a].$elm$=y,insertBefore(w,y,referenceNode(s))))},removeVnodes=(o,s,n)=>{for(let i=s;i<=n;++i){const a=o[i];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(o,s,n,i,a=!1)=>{let c,y,w=0,C=0,T=0,S=0,M=s.length-1,k=s[0],R=s[M],X=i.length-1,Z=i[0],ne=i[X];for(;w<=M&&C<=X;)if(null==k)k=s[++w];else if(null==R)R=s[--M];else if(null==Z)Z=i[++C];else if(null==ne)ne=i[--X];else if(isSameVnode(k,Z,a))patch(k,Z,a),k=s[++w],Z=i[++C];else if(isSameVnode(R,ne,a))patch(R,ne,a),R=s[--M],ne=i[--X];else if(isSameVnode(k,ne,a))"slot"!==k.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(k.$elm$.parentNode,!1),patch(k,ne,a),insertBefore(o,k.$elm$,R.$elm$.nextSibling),k=s[++w],ne=i[--X];else if(isSameVnode(R,Z,a))"slot"!==k.$tag$&&"slot"!==ne.$tag$||putBackInOriginalLocation(R.$elm$.parentNode,!1),patch(R,Z,a),insertBefore(o,R.$elm$,k.$elm$),R=s[--M],Z=i[++C];else{for(T=-1,S=w;S<=M;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){T=S;break}T>=0?(y=s[T],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],n,T,o):(patch(y,Z,a),s[T]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],n,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(k.$elm$),c,referenceNode(k.$elm$))}w>M?addVnodes(o,null==i[X+1]?null:i[X+1].$elm$,n,i,C,X):C>X&&removeVnodes(s,w,M)},isSameVnode=(o,s,n=!1)=>!(o.$tag$!==s.$tag$||("slot"===o.$tag$?"$nodeId$"in o&&n&&8!==o.$elm$.nodeType||o.$name$!==s.$name$:!n&&o.$key$!==s.$key$)),referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s,n=!1)=>{const i=s.$elm$=o.$elm$,a=o.$children$,c=s.$children$,y=s.$tag$,w=s.$text$;let C;null===w?(isSvgMode="svg"===y||"foreignObject"!==y&&isSvgMode,("slot"!==y||useNativeShadowDom)&&updateElement(o,s,isSvgMode),null!==a&&null!==c?updateChildren(i,a,s,c,n):null!==c?(null!==o.$text$&&(i.textContent=""),addVnodes(i,null,s,c,0,c.length-1)):!n&&BUILD.updatable&&null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===y&&(isSvgMode=!1)):(C=i["s-cr"])?C.parentNode.textContent=w:o.$text$!==w&&(i.data=w)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;for(const n of s)if(1===n.nodeType){if(n["s-sr"]){const i=n["s-sn"];n.hidden=!1;for(const a of s)if(a!==n)if(a["s-hn"]!==n["s-hn"]||""!==i){if(1===a.nodeType&&(i===a.getAttribute("slot")||i===a["s-sn"])||3===a.nodeType&&i===a["s-sn"]){n.hidden=!0;break}}else if(1===a.nodeType||3===a.nodeType&&""!==a.textContent.trim()){n.hidden=!0;break}}updateFallbackSlotVisibility(n)}},relocateNodes=[],markSlotContentForRelocation=o=>{let s,n,i;for(const a of o.childNodes){if(a["s-sr"]&&(s=a["s-cr"])&&s.parentNode){n=s.parentNode.childNodes;const c=a["s-sn"];for(i=n.length-1;i>=0;i--)if(s=n[i],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(s,c)){let y=relocateNodes.find(w=>w.$nodeToRelocate$===s);checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||c,y?(y.$nodeToRelocate$["s-sh"]=a["s-hn"],y.$slotRefNode$=a):(s["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:s})),s["s-sr"]&&relocateNodes.map(w=>{isNodeLocatedInSlot(w.$nodeToRelocate$,s["s-sn"])&&(y=relocateNodes.find(C=>C.$nodeToRelocate$===s),y&&!w.$slotRefNode$&&(w.$slotRefNode$=y.$slotRefNode$))})}else relocateNodes.some(y=>y.$nodeToRelocate$===s)||relocateNodes.push({$nodeToRelocate$:s})}1===a.nodeType&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(o,s)=>1===o.nodeType?null===o.getAttribute("slot")&&""===s||o.getAttribute("slot")===s:o["s-sn"]===s||""===s,nullifyVNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(nullifyVNodeRefs)},insertBefore=(o,s,n)=>{const i=o?.insertBefore(s,n);return updateElementScopeIds(s,o),i},findScopeIds=o=>{const s=[];return o&&s.push(...o["s-scs"]||[],o["s-si"],o["s-sc"],...findScopeIds(o.parentElement)),s},updateElementScopeIds=(o,s,n=!1)=>{var i;if(o&&s&&1===o.nodeType){const a=new Set(findScopeIds(s).filter(Boolean));if(a.size&&(null==(i=o.classList)||i.add(...o["s-scs"]=[...a]),o["s-ol"]||n))for(const c of Array.from(o.childNodes))updateElementScopeIds(c,o,!0)}},renderVdom=(o,s,n=!1)=>{var i,a,c,y,w;const C=o.$hostElement$,T=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),M=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,T.$attrsToReflect$&&(M.$attrs$=M.$attrs$||{},T.$attrsToReflect$.map(([k,R])=>M.$attrs$[R]=C[k])),n&&M.$attrs$)for(const k of Object.keys(M.$attrs$))C.hasAttribute(k)&&!["key","ref","style","class"].includes(k)&&(M.$attrs$[k]=C[k]);if(M.$tag$=null,M.$flags$|=4,o.$vnode$=M,M.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&T.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,M,n),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(M.$elm$);for(const k of relocateNodes){const R=k.$nodeToRelocate$;if(!R["s-ol"]){const X=doc.createTextNode("");X["s-nr"]=R,insertBefore(R.parentNode,R["s-ol"]=X,R)}}for(const k of relocateNodes){const R=k.$nodeToRelocate$,X=k.$slotRefNode$;if(X){const Z=X.parentNode;let ne=X.nextSibling;{let _e=null==(i=R["s-ol"])?void 0:i.previousSibling;for(;_e;){let pe=null!=(a=_e["s-nr"])?a:null;if(pe&&pe["s-sn"]===R["s-sn"]&&Z===pe.parentNode){for(pe=pe.nextSibling;pe===R||pe?.["s-sr"];)pe=pe?.nextSibling;if(!pe||!pe["s-nr"]){ne=pe;break}}_e=_e.previousSibling}}(!ne&&Z!==R.parentNode||R.nextSibling!==ne)&&R!==ne&&(!R["s-hn"]&&R["s-ol"]&&(R["s-hn"]=R["s-ol"].parentNode.nodeName),insertBefore(Z,R,ne),1===R.nodeType&&(R.hidden=null!=(c=R["s-ih"])&&c)),R&&"function"==typeof X["s-rf"]&&X["s-rf"](R)}else 1===R.nodeType&&(n&&(R["s-ih"]=null!=(y=R.hidden)&&y),R.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(M.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&T.$flags$)for(const k of M.$elm$.childNodes)k["s-hn"]===hostTagName||k["s-sh"]||(n&&null==k["s-ih"]&&(k["s-ih"]=null!=(w=k.hidden)&&w),k.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const n=o.$hostElement$,i=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),a=n;if(!a)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let c;return c=safeCall(a,s?"componentWillLoad":"componentWillUpdate"),c=enqueue(c,()=>safeCall(a,"componentWillRender")),i(),enqueue(c,()=>updateComponent(o,a,s))},enqueue=(o,s)=>isPromisey(o)?o.then(s).catch(n=>{console.error(n),s()}):s(),isPromisey=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,updateComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i){const a=s.$hostElement$,c=createTime("update",s.$cmpMeta$.$tagName$);i&&attachStyles(s);const y=createTime("render",s.$cmpMeta$.$tagName$);callRender(s,n,a,i),y(),c(),postUpdateComponent(s)});return function(n,i,a){return o.apply(this,arguments)}}(),renderingRef=null,callRender=(o,s,n,i)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s,i))}catch(a){consoleError(a,o.$hostElement$)}return renderingRef=null,null},getRenderingRef=()=>renderingRef,postUpdateComponent=o=>{const n=o.$hostElement$,i=createTime("postUpdate",o.$cmpMeta$.$tagName$),a=n;safeCall(a,"componentDidRender"),64&o.$flags$?(safeCall(a,"componentDidUpdate"),i()):(o.$flags$|=64,safeCall(a,"componentDidLoad"),i())},forceUpdate=o=>{{const s=getHostRef(o),n=s.$hostElement$.isConnected;return n&&2==(18&s.$flags$)&&scheduleUpdate(s,!1),n}},safeCall=(o,s,n)=>{if(o&&o[s])try{return o[s](n)}catch(i){consoleError(i)}},getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,n,i)=>{const a=getHostRef(o),c=o,y=a.$instanceValues$.get(s),w=a.$flags$,C=c;n=parsePropertyValue(n,i.$members$[s][0]);const T=Number.isNaN(y)&&Number.isNaN(n);if(n!==y&&!T){if(a.$instanceValues$.set(s,n),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(M=>{try{C[M](n,y,s)}catch(k){consoleError(k,c)}})}if(2==(18&w)){if(C.componentShouldUpdate&&!1===C.componentShouldUpdate(n,y,s))return;scheduleUpdate(a,!1)}}},proxyComponent=(o,s,n)=>{var i,a;const c=o.prototype;if(s.$members$||s.$watchers$||o.watchers){o.watchers&&!s.$watchers$&&(s.$watchers$=o.watchers);const y=Object.entries(null!=(i=s.$members$)?i:{});y.map(([w,[C]])=>{(31&C||32&C)&&Object.defineProperty(c,w,{get(){return getValue(this,w)},set(T){setValue(this,w,T,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,T,S){plt.jmp(()=>{var M;const k=w.get(C);if(this.hasOwnProperty(k))S=this[k],delete this[k];else{if(c.hasOwnProperty(k)&&"number"==typeof this[k]&&this[k]==S)return;if(null==k){const R=getHostRef(this),X=R?.$flags$;if(X&&!(8&X)&&128&X&&S!==T){const Z=this,ne=null==(M=s.$watchers$)?void 0:M[C];ne?.forEach(_e=>{null!=Z[_e]&&Z[_e].call(Z,S,T,C)})}return}}this[k]=(null!==S||"boolean"!=typeof this[k])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,T])=>15&T[0]).map(([C,T])=>{var S;const M=T[1]||C;return w.set(M,C),512&T[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,M])),M})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i,a){let c;if(!(32&n.$flags$)&&(n.$flags$|=32,c=s.constructor,customElements.whenDefined(s.localName).then(()=>n.$flags$|=128),c&&c.style)){let y;"string"==typeof c.style?y=c.style:"string"!=typeof c.style&&(n.$modeName$=computeMode(s),n.$modeName$&&(y=c.style[n.$modeName$]));const w=getScopeId(i,n.$modeName$);if(!styles.has(w)){const C=createTime("registerStyles",i.$tagName$);registerStyle(w,y,!!(1&i.$flags$)),C()}}scheduleUpdate(n,!0)});return function(n,i,a,c){return o.apply(this,arguments)}}(),fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(1&plt.$flags$)){const s=getHostRef(o),n=s.$cmpMeta$,i=createTime("connectedCallback",n.$tagName$);1&s.$flags$?(addHostEventListeners(o,s,n.$listeners$),s?.$lazyInstance$?fireConnectedCallback(s.$lazyInstance$):s?.$onReadyPromise$&&s.$onReadyPromise$.then(()=>fireConnectedCallback(s.$lazyInstance$))):(s.$flags$|=1,12&n.$flags$&&setContentReference(o),n.$members$&&Object.entries(n.$members$).map(([a,[c]])=>{if(31&c&&o.hasOwnProperty(a)){const y=o[a];delete o[a],o[a]=y}}),initializeComponent(o,s,n)),i()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,insertBefore(o,s,o.firstChild)},disconnectedCallback=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){if(!(1&plt.$flags$)){const n=getHostRef(s);n.$rmListeners$&&(n.$rmListeners$.map(i=>i()),n.$rmListeners$=void 0)}});return function(n){return o.apply(this,arguments)}}(),proxyCustomElement=(o,s)=>{const n={$flags$:s[0],$tagName$:s[1]};n.$members$=s[2],n.$listeners$=s[3],n.$watchers$=o.$watchers$,n.$attrsToReflect$=[];const i=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,n)},connectedCallback(){const c=getHostRef(this);addHostEventListeners(this,c,n.$listeners$),connectedCallback(this),i&&i.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open",delegatesFocus:!!(16&n.$flags$)})}}),o.is=n.$tagName$,proxyComponent(o,n)},Fragment=(o,s)=>s,addHostEventListeners=(o,s,n,i)=>{n&&n.map(([a,c,y])=>{const w=getHostListenerTarget(o,a),C=hostListenerProxy(s,y),T=hostListenerOpts(a);plt.ael(w,c,C,T),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,T))})},hostListenerProxy=(o,s)=>n=>{try{BUILD.lazyLoad||o.$hostElement$[s](n)}catch(i){consoleError(i)}},getHostListenerTarget=(o,s)=>4&s?doc:8&s?win:16&s?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:!!(1&o),capture:!!(2&o)}:!!(2&o),CURRENT_MODULE,METHOD_MODULE,o;o=CURRENT_MODULE||(CURRENT_MODULE={}),o.WELCOME="welcome",o.WELCOME_LOGIN="welcome-login",o.WELCOME_SIGNUP="welcome-signup",o.INFO="info",o.LOGIN_BUNKER_URL="login-bunker-url",o.LOGIN_READ_ONLY="login-read-only",o.CONFIRM_LOGOUT="confirm-logout",o.IMPORT_FLOW="import",o.IMPORT_OTP="import-otp",o.LOGIN="login",o.SIGNUP="signup",o.LOCAL_SIGNUP="local-signup",o.EXTENSION="extension",o.LOADING="loading",o.PREVIOUSLY_LOGGED="switch-account",o.LOGIN_OTP="otp",o.CONNECT="connect",o.CONNECTION_STRING="connection-string",o.IFRAME="iframe",function(o){o.LOGIN="login",o.SIGNUP="signup",o.LOGOUT="logout",o.CONFIRM="confirm"}(METHOD_MODULE||(METHOD_MODULE={}));const appendToMap=(o,s,n)=>{const i=o.get(s);i?i.includes(n)||i.push(n):o.set(s,[n])},debounce=(o,s)=>{let n;return(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=0,o(...i)},s)}},isConnected=o=>!("isConnected"in o)||o.isConnected,cleanupElements=debounce(o=>{for(let s of o.keys())o.set(s,o.get(s).filter(isConnected))},2e3),stencilSubscription=()=>{if("function"!=typeof getRenderingRef)return{};const o=new Map;return{dispose:()=>o.clear(),get:s=>{const n=getRenderingRef();n&&appendToMap(o,s,n)},set:s=>{const n=o.get(s);n&&o.set(s,n.filter(forceUpdate)),cleanupElements(o)},reset:()=>{o.forEach(s=>s.forEach(forceUpdate)),cleanupElements(o)}}},unwrap=o=>"function"==typeof o?o():o,createObservableMap=(o,s=(n,i)=>n!==i)=>{const n=unwrap(o);let i=new Map(Object.entries(n??{}));const a={dispose:[],get:[],set:[],reset:[]},c=()=>{var S;i=new Map(Object.entries(null!==(S=unwrap(o))&&void 0!==S?S:{})),a.reset.forEach(M=>M())},y=S=>(a.get.forEach(M=>M(S)),i.get(S)),w=(S,M)=>{const k=i.get(S);s(M,k,S)&&(i.set(S,M),a.set.forEach(R=>R(S,M,k)))},C=typeof Proxy>"u"?{}:new Proxy(n,{get:(S,M)=>y(M),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,M)=>i.has(M),set:(S,M,k)=>(w(M,k),!0)}),T=(S,M)=>(a[S].push(M),()=>{removeFromArray(a[S],M)});return{state:C,get:y,set:w,on:T,onChange:(S,M)=>{const k=T("set",(X,Z)=>{X===S&&M(Z)}),R=T("reset",()=>M(unwrap(o)[S]));return()=>{k(),R()}},use:(...S)=>{const M=S.reduce((k,R)=>(R.set&&k.push(T("set",R.set)),R.get&&k.push(T("get",R.get)),R.reset&&k.push(T("reset",R.reset)),R.dispose&&k.push(T("dispose",R.dispose)),k),[]);return()=>M.forEach(k=>k())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const M=i.get(S);a.set.forEach(k=>k(S,M,M))}}},removeFromArray=(o,s)=>{const n=o.indexOf(s);n>=0&&(o[n]=o[o.length-1],o.length--)},createStore=(o,s)=>{const n=createObservableMap(o,s);return n.use(stencilSubscription()),n},{state,onChange}=createStore({screen:CURRENT_MODULE.WELCOME,prevScreen:CURRENT_MODULE.WELCOME,path:[CURRENT_MODULE.WELCOME],error:"",isLoading:!1,isLoadingExtension:!1,isOTP:!1,authUrl:"",iframeUrl:"",localSignup:!1,nlSignin:{loginName:""},nlSignup:{signupName:"",domain:"",servers:[{name:"@nsec.app",value:"nsec.app"},{name:"@highlighter.com",value:"highlighter.com"}]},nlSigninBunkerUrl:{loginName:""},nlSigninReadOnly:{loginName:""},nlSigninOTP:{loginName:"",code:""},nlImport:null});onChange("screen",()=>{state.error="",state.nlSignin.loginName="",state.nlSignup.signupName="",state.nlSignup.domain=""});const baseCss="/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;color:#6b7280;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;print-color-adjust:exact;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.theme-default .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-default .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-description,.theme-default .nl-logo,.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-description,.theme-default .dark .nl-logo,.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.theme-default .nl-description a{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .dark .nl-description a{--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .nl-action-button{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-action-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.theme-default .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-divider{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .nl-divider:before{border-top-width:1px}.theme-default .nl-divider:after,.theme-default .nl-divider:before{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .dark .nl-divider{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.theme-default .dark .nl-divider:after,.theme-default .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .nl-footer{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-footer{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-default .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-default .nl-input{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-select-option{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.theme-default .nl-select-option.active-option{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity));color:rgb(30 58 138/var(--tw-text-opacity))}.theme-default .dark .nl-select-option{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-default .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-default .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-ocean .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(191 219 254/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-ocean .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(8 47 73/var(--tw-bg-opacity))}.theme-ocean .nl-description,.theme-ocean .nl-logo,.theme-ocean .nl-title{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-description,.theme-ocean .dark .nl-logo,.theme-ocean .dark .nl-title{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-action-button{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-action-button{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(224 242 254/var(--tw-bg-opacity));border-color:rgb(186 230 253/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.theme-ocean .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));border-color:rgb(8 47 73/var(--tw-border-opacity));color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-divider{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-divider:after,.theme-ocean .nl-divider:before{--tw-border-opacity:1;border-color:rgb(8 47 73/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .dark .nl-divider{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-divider:after,.theme-ocean .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .nl-footer{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-footer{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-ocean .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-ocean .nl-input{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select-list{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(3 105 161/var(--tw-bg-opacity))}.theme-ocean .nl-select-option{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.theme-ocean .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-option{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));color:rgb(125 211 252/var(--tw-text-opacity))}.theme-ocean .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-ocean .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-lemonade .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(187 247 208/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-lemonade .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(5 46 22/var(--tw-bg-opacity))}.theme-lemonade .nl-description,.theme-lemonade .nl-logo,.theme-lemonade .nl-title{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-description,.theme-lemonade .dark .nl-logo,.theme-lemonade .dark .nl-title{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-action-button{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-action-button{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(220 252 231/var(--tw-bg-opacity));border-color:rgb(187 247 208/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));border-color:rgb(5 46 22/var(--tw-border-opacity));color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-divider{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-divider:after,.theme-lemonade .nl-divider:before{--tw-border-opacity:1;border-color:rgb(5 46 22/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .dark .nl-divider{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-divider:after,.theme-lemonade .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .nl-footer{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-footer{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-lemonade .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-lemonade .nl-input{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select-list{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.theme-lemonade .nl-select-option{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.theme-lemonade .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-option{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));color:rgb(134 239 172/var(--tw-text-opacity))}.theme-lemonade .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-lemonade .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-purple .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(233 213 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-purple .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(59 7 100/var(--tw-bg-opacity))}.theme-purple .nl-description,.theme-purple .nl-logo,.theme-purple .nl-title{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-description,.theme-purple .dark .nl-logo,.theme-purple .dark .nl-title{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-action-button{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-action-button{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(243 232 255/var(--tw-bg-opacity));border-color:rgb(233 213 255/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));border-color:rgb(59 7 100/var(--tw-border-opacity));color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-divider{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-divider:after,.theme-purple .nl-divider:before{--tw-border-opacity:1;border-color:rgb(59 7 100/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .dark .nl-divider{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-divider:after,.theme-purple .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .nl-footer{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-footer{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-purple .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-purple .nl-input{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.theme-purple .nl-select-option{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.theme-purple .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-option{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));color:rgb(216 180 254/var(--tw-text-opacity))}.theme-purple .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-purple .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-purple .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-purple .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-crab .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(254 226 226/var(--tw-bg-opacity));border-color:rgb(254 202 202/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(69 10 10/var(--tw-text-opacity))}.theme-crab .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.theme-crab .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-color:rgb(69 10 10/var(--tw-border-opacity));color:rgb(254 202 202/var(--tw-text-opacity))}.theme-crab .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.show-slow{display:none;opacity:0;transition:.1s}.isOpen .show-slow{display:block;opacity:1;transition:.2s;transition-delay:.2s}:host{display:block}.animate-spin-loading{animation:spin2 1s linear infinite;background:var(--qa-dark-color)}@keyframes spin2{to{transform:rotate(1turn)}}.active{animation:blink .7s infinite alternate}@keyframes blink{0%{opacity:1}to{opacity:0}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.start-0{inset-inline-start:0}.top-0{top:0}.z-\\[80\\]{z-index:80}.z-\\[81\\]{z-index:81}.mx-auto{margin-left:auto;margin-right:auto}.flex{display:flex}.h-5{height:20px}.h-7{height:28px}.h-full{height:100%}.w-5{width:20px}.w-7{width:28px}.w-full{width:100%}.max-w-96{max-width:384px}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-transparent{border-color:transparent}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-4{padding:16px}.px-4{padding-left:16px;padding-right:16px}.py-3{padding-bottom:12px}.pt-3,.py-3{padding-top:12px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-semibold{font-weight:600}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark\\:focus\\:outline-none:focus:is(.dark *){outline:2px solid transparent;outline-offset:2px}.dark\\:focus\\:ring-1:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:focus\\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}}.inline-flex{display:inline-flex}.h-4{height:16px}.w-4{width:16px}.gap-x-2{column-gap:8px}.rounded-lg{border-radius:.5rem}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.font-medium{font-weight:500}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.mt-0{margin-top:0}.mt-3{margin-top:12px}.max-h-0{max-height:0}.max-h-\\[500px\\]{max-height:500px}.max-w-52{max-width:208px}.max-w-7{max-width:28px}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.gap-0\\.5{gap:2px}.gap-3{gap:12px}.gap-x-3\\.5{column-gap:14px}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.border-b-\\[1px\\]{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.p-2{padding:8px}.py-2{padding-bottom:8px;padding-top:8px}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-5{padding-bottom:20px}.pe-4{padding-inline-end:16px}.ps-4{padding-inline-start:16px}.pt-5{padding-top:20px}.text-3xl{font-size:30px;line-height:36px}.uppercase{text-transform:uppercase}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.decoration-dashed{text-decoration-style:dashed}.duration-300{transition-duration:.3s}.duration-\\[0\\.25s\\]{transition-duration:.25s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.ml-auto,.mx-auto{margin-left:auto}.mr-auto{margin-right:auto}.w-60{width:240px}.pt-2{padding-top:8px}.text-4xl{font-size:36px;line-height:40px}.text-lg{font-size:18px;line-height:28px}.mb-0\\.5{margin-bottom:2px}.mb-2{margin-bottom:8px}.mb-5{margin-bottom:20px}.ml-auto{margin-left:auto}.inline-block{display:inline-block}.w-72{width:288px}.max-w-72{max-width:288px}.border-\\[3px\\]{border-width:3px}.border-current{border-color:currentColor}.border-t-transparent{border-top-color:transparent}.pb-2{padding-bottom:8px}.text-2xl{font-size:24px;line-height:32px}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.h-12{height:48px}.w-12{width:48px}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.mb-10{margin-bottom:40px}.mt-10{margin-top:40px}.h-20{height:80px}.w-20{width:80px}.border-\\[4px\\]{border-width:4px}.w-auto{width:auto}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.px-1{padding-left:4px;padding-right:4px}.text-\\[10px\\]{font-size:10px}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.inset-y-0{bottom:0;top:0}.ps-11{padding-inline-start:44px}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.peer:disabled~.peer-disabled\\:pointer-events-none{pointer-events:none}.peer:disabled~.peer-disabled\\:opacity-50{opacity:.5}.dark\\:border-transparent:is(.dark *){border-color:transparent}.right-\\[-2px\\]{right:-2px}.right-\\[-3px\\]{right:-3px}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.h-1\\.5{height:6px}.h-3{height:12px}.h-6{height:24px}.w-1\\.5{width:6px}.w-3{width:12px}.max-w-6{max-width:24px}.border-2{border-width:2px}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.pb-3{padding-bottom:12px}.pt-0{padding-top:0}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.group:hover .group-hover\\:border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.mt-1{margin-top:4px}.hidden{display:none}.min-w-\\[15rem\\]{min-width:15rem}.overflow-hidden,.truncate{overflow:hidden}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-top-4:before{content:var(--tw-content);top:-16px}.before\\:start-0:before{content:var(--tw-content);inset-inline-start:0}.before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-full:before{content:var(--tw-content);width:100%}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-bottom-4:after{bottom:-16px;content:var(--tw-content)}.after\\:start-0:after{content:var(--tw-content);inset-inline-start:0}.after\\:h-4:after{content:var(--tw-content);height:16px}.after\\:w-full:after{content:var(--tw-content);width:100%}.end-0{inset-inline-end:0}.h-\\[20px\\]{height:20px}.w-\\[20px\\]{width:20px}.border-\\[2px\\]{border-width:2px}.pe-11{padding-inline-end:44px}.right-0{right:0}.right-2{right:8px}.top-2{top:8px}.top-52{top:208px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-auto{margin:auto}.ml-0{margin-left:0}.ml-\\[2px\\]{margin-left:2px}.mr-0{margin-right:0}.mr-2{margin-right:8px}.mr-3\\.5{margin-right:14px}.mt-2{margin-top:8px}.grid{display:grid}.h-0{height:0}.h-8{height:32px}.h-\\[46px\\]{height:46px}.h-auto{height:auto}.w-0{width:0}.w-16{width:64px}.w-52{width:208px}.w-6{width:24px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.min-w-40{min-width:160px}.max-w-40{max-width:160px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.place-items-center{place-items:center}.text-nowrap{text-wrap:nowrap}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.border-\\[0px\\]{border-width:0}.p-3{padding:12px}.px-2{padding-left:8px;padding-right:8px}.pl-\\[11px\\]{padding-left:11px}.text-xs{font-size:12px;line-height:16px}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.opacity-0{opacity:0}.transition-all{transition-duration:.15s;transition-property:all}.ease-in-out,.transition-all{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:right-2:hover{right:8px}.hover\\:rounded-r-lg:hover{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}",buttonBaseCss=baseCss,ButtonBaseStyle0=buttonBaseCss,ButtonBase=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}componentDidRender(){const o=this.element.querySelector("svg");o&&(o.classList.add("flex-shrink-0","w-4","h-4","block"),o.removeAttribute("style"))}render(){return h("div",{key:"1048576f0a9839c56cac030b1de7899b25b5f39e",class:`theme-${this.theme}`},h("div",{key:"ea29f74a1f7e4268802c6e4aaca5867dfd2e4c9b",class:"animate-spin-loading active"}),h("button",{key:"71f84d47b11aa3971818b686f8dddb74e0d36eb0",disabled:this.disabled,type:"button",class:"nl-button py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h("slot",{key:"91a91994e20dc10e3bbb2576e4214fa98533be8e",name:"icon-start"}),this.titleBtn))}get element(){return this}static get style(){return ButtonBaseStyle0}},[4,"button-base",{theme:[1025],darkMode:[1028,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$q(){typeof customElements>"u"||["button-base"].forEach(o=>{"button-base"===o&&(customElements.get(o)||customElements.define(o,ButtonBase))})}defineCustomElement$q();const nlConfirmLogoutCss=baseCss,NlConfirmLogoutStyle0=nlConfirmLogoutCss,NlConfirmLogout$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleBackUpModal=createEvent(this,"handleBackUpModal",7),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Delete keys?",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible."}handleLogout(){this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.nlCloseModal.emit()}handleCancel(){this.nlCloseModal.emit()}handleBackUp(){state.path=[CURRENT_MODULE.IMPORT_FLOW]}render(){return h("div",{key:"fe605f38f9d0a440fe53e21f19288c41e4762c22",class:"p-4 overflow-y-auto"},h("h1",{key:"84d14a59035515b2fd612d262400a038887a10d7",class:"nl-title font-bold text-center text-4xl"},this.titleModal),h("p",{key:"83ef73271c76309561be95e0207f8130d75a161c",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description),h("div",{key:"fce0f132846beb95dd9e41357f5ab87be7229a56",class:"mt-3 ml-auto mr-auto w-60 flex flex-col gap-2"},h("button-base",{key:"c4fc722a7c98d84e797963ed7fe928164411b701",onClick:()=>this.handleBackUp(),titleBtn:"Backup keys",theme:"lemonade"}),h("button-base",{key:"39df385a9a8dc3fcd74f4196d4191bc4a308a16d",onClick:()=>this.handleLogout(),theme:"crab",titleBtn:"Logout and delete keys"})))}static get style(){return NlConfirmLogoutStyle0}},[0,"nl-confirm-logout",{titleModal:[1,"title-modal"],description:[1]}]);function defineCustomElement$p(){typeof customElements>"u"||["nl-confirm-logout","button-base"].forEach(o=>{switch(o){case"nl-confirm-logout":customElements.get(o)||customElements.define(o,NlConfirmLogout$1);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$p();const nlConnectCss=baseCss,NlConnectStyle0=nlConnectCss,NlConnect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlNostrConnect=createEvent(this,"nlNostrConnect",7),this.nlNostrConnectDefault=createEvent(this,"nlNostrConnectDefault",7),this.titleWelcome="Connect to key store",this.authMethods=[],this.hasOTP=!1,this.connectionStringServices=[],this.isOpenAdvancedLogin=!1}handleChangeScreen(o){state.path=[...state.path,o]}handleOpenAdvanced(){this.isOpenAdvancedLogin=!this.isOpenAdvancedLogin}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}componentWillLoad(){}handleOpenLink(o,s){o.preventDefault(),this.nlNostrConnect.emit(s)}handleConnectionString(){this.nlNostrConnectDefault.emit(),this.handleChangeScreen(CURRENT_MODULE.CONNECTION_STRING)}render(){const o=(this.isOpenAdvancedLogin?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-blue-500";return h(Fragment,{key:"a85f0a26b61b7e321025b7dd96e459a6c43958a9"},h("div",{key:"7af7ae501bed1bf028465e65f3caa3824a3948ca",class:"p-4 overflow-y-auto"},h("h1",{key:"7795a15c6d525d1b7ad0e6da63ad1889a64d6459",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"cf5b947b22757334cbf92059dfc7ffaef0c95951",class:"p-4"},!!this.connectionStringServices.length&&h("div",{key:"c5de66ab74b14d69993dc20cf123777a3b8a016e",class:"max-w-96 mx-auto pt-5"},h("p",{key:"f7ac9e48789870264707bf39e3f1b2d73218aad5",class:"nl-description font-medium text-sm pb-1.5"},"Select key store:"),h("ul",{key:"07c1bd1bf9ffaa80f0868481ce22a8d5c73a345b",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.connectionStringServices.map(s=>h("li",null,h("a",{href:s.link,target:"_blank",onClick:n=>this.handleOpenLink(n,s),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-300 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s.img?h("img",{class:"w-full rounded-full",src:s.img,alt:s.name}):h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#9ca3af",class:"w-4 h-4 block"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},s.name)))))))),h("div",{key:"2a9094524ef58b138d04411484264a40ce42db7c",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"d833546cba5fd4a904a0123e6e760b602fda0ff7",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("div",{key:"700aa690c440f2685c9330feeb58986669b46f85",class:"max-w-52 mx-auto pb-5"},(this.allowAuthMethod("connect")||this.allowAuthMethod("readOnly"))&&h("div",{key:"058706b54702ac9ca3cd74a8096f521c211e5a16",class:"flex justify-center"},h("div",{key:"073f2567734817ba3cc8f34b32fa1a284d2b8ab1",onClick:()=>this.handleOpenAdvanced(),class:"text-blue-500 mt-3 decoration-dashed cursor-pointer inline-flex gap-2 items-center pb-1 border-dashed border-b-[1px] border-blue-500 text-sm font-light"},"Advanced",h("svg",{key:"d433319920bc751f771086bf726a3d5f1e31320e",class:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"4cc3a36807664b0402a26420c4979a68ba77df9c",d:"m6 9 6 6 6-6"})))),h("div",{key:"76dc95f39af78bd124e5f61309d96ee443d53f2f",class:(this.isOpenAdvancedLogin?"max-h-[500px] mt-3 duration-300":"max-h-0 mt-0 duration-[0.25s]")+" transition-max-height ease-in flex gap-3 flex-col overflow-hidden"},this.allowAuthMethod("connect")&&h("button-base",{key:"616d8de815233bc6264b51fa849fbf26d98758ed",titleBtn:"User name",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN)},h("svg",{key:"fa2f51ca2a111920d15a87106258c55a7b1961ff",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},h("path",{key:"288dee2f9c21bde4471a7eebbf94c231c1acad12","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"8298c3ad602e2bc279ab084a5e5ea311fdc193e9",titleBtn:"Connection string",onClick:()=>this.handleConnectionString()},h("svg",{key:"b7f83a4b7fae0ff0965c2493aa70b09e1b1ab3d8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d580fdbb1eee16439ffa4a46fa4f30cafbf0fd36","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),h("path",{key:"ab90c206914cb2d6cae80b7e36ce45653c65b9b3","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"c923265e7da4bb6815cf91c54a4b393c19f3d16d",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_BUNKER_URL),titleBtn:"Bunker URL"},h("svg",{key:"8c5bd04e91407a83d0021e4413ee58973b57aa54",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d115abfce6eee55572316a4cc2a808a176d17f46","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))))))}static get style(){return NlConnectStyle0}},[0,"nl-connect",{titleWelcome:[1,"title-welcome"],authMethods:[16],hasOTP:[4,"has-o-t-p"],connectionStringServices:[16],isOpenAdvancedLogin:[32]}]);function defineCustomElement$o(){typeof customElements>"u"||["nl-connect","button-base"].forEach(o=>{switch(o){case"nl-connect":customElements.get(o)||customElements.define(o,NlConnect);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$o();const nlIframeCss=baseCss,NlIframeStyle0=nlIframeCss,NlConfirmLogout=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Confirm",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible.",this.iframeUrl=""}handleCancel(){this.nlCloseModal.emit()}render(){return h("div",{key:"36ee9fd43bbb16768b7634783781ecffb1c9432a",class:"p-4 overflow-y-auto"},h("div",{key:"1634e1fd37bc44030f22bfdab9f7deec2806731b",class:"mt-3 flex flex-col gap-2"},this.iframeUrl&&h("iframe",{key:"2b1ab3032b152fb109f3531bb7600bb76aa1a562",src:this.iframeUrl,style:{width:"100%",height:"600px",border:"1px solid #ccc",borderRadius:"8px"}})))}static get style(){return NlIframeStyle0}},[0,"nl-iframe",{titleModal:[1,"title-modal"],description:[1],iframeUrl:[1,"iframe-url"]}]);function defineCustomElement$n(){typeof customElements>"u"||["nl-iframe"].forEach(o=>{"nl-iframe"===o&&(customElements.get(o)||customElements.define(o,NlConfirmLogout))})}defineCustomElement$n();const nlSelectCss=baseCss,NlSelectStyle0=nlSelectCss,NlSelect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.selectDomain=createEvent(this,"selectDomain",7),this.isOpen=!1,this.value=null,this.options=void 0,this.selected=void 0,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode,this.value=this.options[this.selected],this.selectDomain.emit(this.value.value)}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.value=o,this.isOpen=!1,this.selectDomain.emit(this.value.value)}render(){const o=(this.isOpen?"listClass":"hidden")+" min-w-[15rem] nl-select-list absolute left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500";return h("div",{key:"c86084c50712455e04682a4392e490bc0e20eb1d",class:`theme-${this.themeState}`},h("div",{key:"a90d9b4af52845a9971c39cec69c13493d511381",class:"relative",ref:n=>this.wrapperRef=n},h("button",{key:"1391137997bf8fcd0a5466cd9fa20c79b4ce27ba",ref:n=>this.buttonRef=n,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"224425ab92ba3599595924972e98a0fc9cb1a189",class:"truncate overflow-hidden"},this.value.name),h("svg",{key:"8eb2a2b552cb9ea36fb1abc61d804efb423afda6",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"feea1a7f54f4a111b7bf01e3945445311b97ab82",d:"m6 9 6 6 6-6"}))),h("ul",{key:"fca4982f04f4133d5c2a2f613a7e7d977dd5c241",ref:n=>this.ulRef=n,class:o},this.options.map(n=>h("li",{onClick:()=>this.handleChange(n),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},n.name)))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}}static get style(){return NlSelectStyle0}},[0,"nl-select",{options:[16],selected:[2],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],value:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}]);function defineCustomElement$m(){typeof customElements>"u"||["nl-select"].forEach(o=>{"nl-select"===o&&(customElements.get(o)||customElements.define(o,NlSelect))})}defineCustomElement$m();const nlImportFlowCss=baseCss,NlImportFlowStyle0=nlImportFlowCss,NlImportFlow$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.nlExportKeys=createEvent(this,"nlExportKeys",7),this.titleInfo="Back up your keys",this.titleImport="Choose a service",this.services=[],this.isContinued=!1,this.isKeyBackup=!1,this.isCopy=!1}handleDomainSelect(o){const s=this.services.find(n=>n.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}handleContinue(){this.isContinued=!0}handleContinueKeyBackup(){this.isKeyBackup=!0}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.12"),h("p",{key:"9d9dbd36ade753d30db448139dc057921f29697d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Learn more about Nostr"," ",h("a",{key:"1811ad4f1acda7f5235566ea6f2ce8e70c62c91c",target:"_blank",href:"https://nostr.how"},"here"),".",h("br",{key:"127a6127e71f43caa1c262c6ec8108a5a6f40774"}),"This is an"," ",h("a",{key:"0e18839f8577229533eb2d2ef00f8657e6396aa1",target:"_blank",href:"https://github.com/nostrband/nostr-login"},"open-source")," ","tool by"," ",h("a",{key:"9affd14ad9dedae3e5d269a1477343eae63cd46b",target:"_blank",href:"https://nostr.band"},"Nostr.Band"),"."))}static get style(){return NlInfoStyle0}},[0,"nl-info"]);function defineCustomElement$k(){typeof customElements>"u"||["nl-info"].forEach(o=>{"nl-info"===o&&(customElements.get(o)||customElements.define(o,NlInfo))})}defineCustomElement$k();const nlInfoExtensionCss=baseCss,NlInfoExtensionStyle0=nlInfoExtensionCss,NlInfoExtension=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"9335feb745c6d09a213a2e771c40262036341b54",class:"p-4 overflow-y-auto"},state.isLoadingExtension?h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Signing in..."),h("div",{class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error))):h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Install browser extension!"),h("p",{class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Try"," ",h("a",{href:"https://getalby.com",target:"_blank"},"Alby"),","," ",h("a",{href:"https://chromewebstore.google.com/detail/nos2x/kpgefcfmnafjgpblomihpgmejjdanjjp",target:"_blank"},"nos2x")," ","or"," ",h("a",{href:"https://apps.apple.com/us/app/nostore/id1666553677",target:"_blank"},"Nostore"))))}static get style(){return NlInfoExtensionStyle0}},[0,"nl-info-extension"]);function defineCustomElement$j(){typeof customElements>"u"||["nl-info-extension"].forEach(o=>{"nl-info-extension"===o&&(customElements.get(o)||customElements.define(o,NlInfoExtension))})}defineCustomElement$j();const nlLoadingCss=baseCss,NlLoadingStyle0=nlLoadingCss,NlLoading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.stopFetchHandler=createEvent(this,"stopFetchHandler",7),this.handleContinue=createEvent(this,"handleContinue",7),this.path=void 0}handleStop(o){o.preventDefault(),this.stopFetchHandler.emit()}handleContinueClick(o){o.preventDefault(),this.handleContinue.emit()}render(){let o="Connecting...",s="Establishing connection to your key storage.";this.path===CURRENT_MODULE.LOCAL_SIGNUP?(o="Creating...",s="Publishing your profile on Nostr."):state.authUrl&&(state.isLoading?(o="Confirming...",s="Please confirm the connection in your key storage app."):(o="Almost ready!",s="Continue to confirm the connection to your key storage."));const n=this.path!==CURRENT_MODULE.LOCAL_SIGNUP,i=!state.isLoading&&state.iframeUrl&&state.authUrl,a=`${state.iframeUrl}?connect=${encodeURIComponent(state.authUrl)}`;return h("div",{key:"516866bac0ab965ad91fa153040e38cc94ecfe43",class:"p-4 overflow-y-auto"},h("h1",{key:"51fffb5a84be838536699741d19eb072d4318517",class:"nl-title font-bold text-center text-4xl"},o),h("p",{key:"8c0825a89ca531b74d1fb11fa06632b9bddf11b4",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},s),!state.authUrl&&state.isLoading&&h("div",{key:"5b39a21b600a0524d7eff2885fa9b048b76daf8b",class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{key:"6ac53666049efdd495197b4c57536a3e09969cdb",slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{key:"1a7211d6d3d9f6e14ff02a3605c6c7b1d2dbff09",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"678cc1522ff896809fbc0309966497aafb308a36",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),a&&h("div",{key:"6b68b0afd47bb420e142d6cefbe5fb286a6871be",class:"mt-3 ml-auto mr-auto w-72 flex justify-center"},h("iframe",{key:"69526e3b7af7d255b00f2ba1aeb9f688261958eb",src:a,width:"180px",height:"80px",style:{display:i?"block":"none"}})),!i&&n&&h("div",{key:"ea17236efcb5ae4aebec89508337a12f682e35cd",class:"mt-3 ml-auto mr-auto w-72"},h("button-base",{key:"7c6a62128ece1a50a5e01df43f8948f95f42fab2",onClick:c=>{state.authUrl&&!state.isLoading?this.handleContinueClick(c):this.handleStop(c)},titleBtn:state.isLoading?"Cancel":"Continue"})))}static get style(){return NlLoadingStyle0}},[0,"nl-loading",{path:[1]}]);function defineCustomElement$i(){typeof customElements>"u"||["nl-loading","button-base"].forEach(o=>{switch(o){case"nl-loading":customElements.get(o)||customElements.define(o,NlLoading);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$i();const nlLocalSignupCss=baseCss,NlLocalSignupStyle0=nlLocalSignupCss,NlLocalSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLocalSignup=createEvent(this,"nlLocalSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create Nostr profile",this.description="Choose any username, you can always change it later.",this.isAvailable=!1}handleInputChange(o){state.nlSignup.signupName=o.target.value}handleCreateAccount(o){o.preventDefault(),this.nlLocalSignup.emit(`${state.nlSignup.signupName}`)}render(){return h(Fragment,{key:"1ef0db8a3af10d6bd50c0ee084968abcef035b31"},h("div",{key:"966dbcd09fc2da235a817cbcf01b75e64ba2a3df",class:"p-4 overflow-y-auto"},h("h1",{key:"121ad8a12bb0d30785e26261993c73af716da22a",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"6758bc49ee96973718cb301a96ce26949c446512",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"e8354901c534454753d055542226b56ae7a3ec67",class:"max-w-72 mx-auto"},h("div",{key:"2a84cdb7a830431318ddb3a32c10476ab7aa98c8",class:"relative mb-2"},h("input",{key:"50c84d948104ac51b647b941f1e086f4eecf03d9",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Enter username",value:state.nlSignup.signupName}),h("div",{key:"8c52f3d644a8a0cd278af7646e9dbb0998b56afe",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"8923dc1949a04c7a10398db3c1211d00ce7fe925",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"e3303cbea9146cb1a66e47d5ecf51da5a4a2e8b7","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"916d7e92cea31d802b74ce71dd202b7ae5f84ed8",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"9bb8ffd3c9a7c2d62f700af314305d6403e9b54d",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dcd3530cb7878ec853ea1985cecfda1e03ab8011",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlLocalSignupStyle0}},[0,"nl-local-signup",{titleSignup:[1,"title-signup"],description:[1],isAvailable:[32]}]);function defineCustomElement$h(){typeof customElements>"u"||["nl-local-signup","button-base"].forEach(o=>{switch(o){case"nl-local-signup":customElements.get(o)||customElements.define(o,NlLocalSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$h();const NlLoginStatus=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.info=void 0}render(){let o="",s="";if("extension"===this.info.authMethod)o="Extension",s="border-yellow-300 text-yellow-500 bg-yellow-100";else if("readOnly"===this.info.authMethod)o="Read only",s="border-gray-300 text-gray-400 bg-gray-100";else if("connect"===this.info.authMethod)o="Connect",s="border-teal-300 text-teal-600 bg-teal-100";else if("local"===this.info.authMethod)o="Temporary",s="border-red-300 text-red-600 bg-red-100";else{if("otp"!==this.info.authMethod)throw console.log("unknown auth method",this.info),new Error("Unknown auth method");o="Delegated",s="border-orange-300 text-orange-600 bg-orange-100"}return h("div",{key:"f7d43062e3d372b26fd7e9c462eabad823b762e1"},h("span",{key:"c79aafe47bf945f5c6bf26aa230debc4d950be71",class:`${s} rounded-xl border w-auto text-[10px] px-1 `},o))}},[0,"nl-login-status",{info:[16]}]);function defineCustomElement$g(){typeof customElements>"u"||["nl-login-status"].forEach(o=>{"nl-login-status"===o&&(customElements.get(o)||customElements.define(o,NlLoginStatus))})}defineCustomElement$g();const nlOtpMigrateCss=baseCss,NlOtpMigrateStyle0=nlOtpMigrateCss,NlImportFlow=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.titleInfo="Import keys to storage service",this.titleImport="Choose a service",this.textImport="You will be prompted to import keys to the chosen service, and this website will connect to your keys.",this.services=[]}handleDomainSelect(o){const s=this.services.find(n=>n.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}render(){const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,{key:"d27cbfa870975b4f9f0c6350ff6424e34b19dfad"},h("div",{key:"22618ac8a4e7cc53e111cfa47a7db3163ccc43ef",class:"p-4 overflow-y-auto"},h("h1",{key:"ebc3dc11334fa49479a1d071cf9a89bf204ca8ff",class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{key:"70795495de8e8f69488b2cebb2f8c5f1c2ace243",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.textImport)),h("div",{key:"a9f4df9d99623c686d22ed200bddb7657984a4f8",class:"max-w-72 mx-auto mb-5"},h("div",{key:"c9a0fedecd1e036f9a84a12aaf44ac6fd8bde10b",class:"mb-0.5"},h("nl-select",{key:"3db03a9a4fd78f544f670c6b1917af67ca818696",onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{key:"fc392301b3553c3fea01ab17341d8e0c829af408",class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{key:"e0dd51b7f1f9fe7ca367f309ea945cf5feffedf2",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4316dfbf51fb06b68f55d34bffe4450c29fc273c",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dfbd68892ba44c72d4c319725dc82cf3a1af7d96",disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlOtpMigrateStyle0}},[0,"nl-otp-migrate",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],textImport:[1,"text-import"],services:[16]}]);function defineCustomElement$f(){typeof customElements>"u"||["nl-otp-migrate","button-base","nl-select"].forEach(o=>{switch(o){case"nl-otp-migrate":customElements.get(o)||customElements.define(o,NlImportFlow);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$f();const nlPreviouslyLoggedCss=baseCss,NlPreviouslyLoggedStyle0=nlPreviouslyLoggedCss,NlPreviouslyLogged=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSwitchAccount=createEvent(this,"nlSwitchAccount",7),this.nlLoginRecentAccount=createEvent(this,"nlLoginRecentAccount",7),this.nlRemoveRecent=createEvent(this,"nlRemoveRecent",7),this.titlePage="Your profiles",this.description="Switch between active profiles or choose a recent one for fast login.",this.accounts=[],this.recents=[]}handleGoToWelcome(){state.path=[CURRENT_MODULE.WELCOME]}switchToWelcomeIfEmpty(){this.recents.length||this.accounts.length||(state.path=[CURRENT_MODULE.WELCOME])}watchAccounts(){this.switchToWelcomeIfEmpty()}watchRecents(){this.switchToWelcomeIfEmpty()}handleRemoveRecent(o){this.nlRemoveRecent.emit(o)}handleSwitch(o){this.nlSwitchAccount.emit(o)}handleLoginRecentAccount(o){this.nlLoginRecentAccount.emit(o)}render(){return h(Fragment,{key:"0b747732fe31ffb2d687859a8d5f5452de06cd82"},h("div",{key:"b696865acec55c2dc0f6f3ecf6360028f3911136",class:"p-4 pt-0 overflow-y-auto"},h("h1",{key:"156d95e32b1f14cdccfeabb2cb518bbba51b5da6",class:"nl-title font-bold text-center text-4xl"},this.titlePage),h("p",{key:"1d07d29dda5338c71c7831d4550c99af8717012d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3776d52ca658395479d7aaba1d96b707b144da5d",class:"p-4"},!!this.accounts.length&&h("div",{key:"77d80f7e11fd0ad09c5fa13c8b39939a9c011641",class:"max-w-96 mx-auto"},h("p",{key:"f32b9358755c561781e840383a2bc6b2bfe5c392",class:"nl-description font-medium text-sm pb-1.5"},"Active profiles"),h("ul",{key:"789082d6f3ad3d75ebe461cde35846d0ff37e912",class:"p-2 rounded-lg border border-blue-200 flex flex-col w-full gap-0.5"},this.accounts.map(o=>{const s=!!o?.picture,n=o.name||o.nip05||o.pubkey,i=!!n;return h("li",{onClick:()=>this.handleSwitch(o),class:"group hover:bg-gray-400 flex cursor-pointer gap-x-3.5 py-2 px-3 rounded-lg text-sm items-center justify-between"},h("div",{class:"flex items-center gap-x-3.5 w-full"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-2px] right-[-2px] bg-white border-2 border-white rounded-xl"},h("div",{class:"active h-1.5 w-1.5 bg-green-500 rounded-xl"})),h("div",{class:"group-hover:border-blue-400 uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?n[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},n),h("nl-login-status",{info:o}))))}))),!!this.recents.length&&h("div",{key:"e89d6cda8386575a0a87a2188a89e5d929b55e8d",class:"max-w-96 mx-auto pt-5"},h("p",{key:"811958459f3694f5e31c2f22c75611c49973b17b",class:"nl-description font-medium text-sm pb-1.5"},"Recent profiles"),h("ul",{key:"0c042b8bec46a9871551bf2965eb9f561b012f22",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.recents.map(o=>{const s=!!o?.picture,n=o.name||o.nip05||o.pubkey,i=!!n;return h("li",{onClick:()=>this.handleLoginRecentAccount(o),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-400 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-3px] right-[-3px] bg-white border border-white rounded-xl"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-3 h-3"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?n[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},n),h("nl-login-status",{info:o})),h("svg",{onClick:a=>{a.stopPropagation(),this.handleRemoveRecent(o)},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full max-w-6 h-6 text-red-500 hover:text-red-600 ml-auto"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})))})))),h("div",{key:"f70f67171d6727d25b9a38bdf48730146c46f4f2",class:"p-4 overflow-y-auto"},h("p",{key:"7289d6c89d90db640ecc63603657280dec8d3a82",class:"nl-footer font-light text-center text-sm max-w-96 mx-auto"},"You can also"," ",h("span",{key:"5c0d9e2954a37fc013d459a78b8a056b916cdd62",onClick:()=>this.handleGoToWelcome(),class:"cursor-pointer pb-3 text-blue-500"},"add another profile"))))}static get watchers(){return{accounts:["watchAccounts"],recents:["watchRecents"]}}static get style(){return NlPreviouslyLoggedStyle0}},[0,"nl-previously-logged",{titlePage:[1,"title-page"],description:[1],accounts:[16],recents:[16]},void 0,{accounts:["watchAccounts"],recents:["watchRecents"]}]);function defineCustomElement$e(){typeof customElements>"u"||["nl-previously-logged","nl-login-status"].forEach(o=>{switch(o){case"nl-previously-logged":customElements.get(o)||customElements.define(o,NlPreviouslyLogged);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$e();const nlSigninCss=baseCss,NlSigninStyle0=nlSigninCss,NlSignin=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect to key store",this.description="Please enter your user name.",this.isGood=!1}handleInputChange(o){state.nlSignin.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSignin.loginName)}render(){return h(Fragment,{key:"70d5c41620a53b3b84157044f33fdce851d9054d"},h("div",{key:"f8880d45479ef512694fe1300a3c99df8dc756f2",class:"p-4 overflow-y-auto"},h("h1",{key:"fb0379faf61fa39d283fd2d159932b0dba56ed60",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"389dcc582e456ba3241a202aa77026b5fe1f2f1c",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"0cbc1dd3dd3e8437d5f1be8c5612a48ebf589a73",class:"max-w-72 mx-auto"},h("div",{key:"6d8d1a649d6f9b4ec39e91cb50880ec55ae34469",class:"relative mb-2"},h("input",{key:"546c3c63fc1849275b86efdfb8fa5b016ae4282b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"name@domain.com",value:state.nlSignin.loginName}),h("div",{key:"c91b2fb461ca2ee751a0811381a771ed227d1c7b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"cd11d6e2e75a3e3e60696d825f494e49d587abc3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"dd3d6d8e13a01fdb449dadbb5daa79141ae74217","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"e2aff3f44b41a2365f9c561410c2d8733e93943d",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4f3b61256e93001cbf6cf8e0eea61e73265abd65",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"64e9997f3163465cc99eae8600e7b13251ffe484",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninStyle0}},[0,"nl-signin",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$d(){typeof customElements>"u"||["nl-signin","button-base"].forEach(o=>{switch(o){case"nl-signin":customElements.get(o)||customElements.define(o,NlSignin);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$d();const nlSigninBunkerUrlCss=baseCss,NlSigninBunkerUrlStyle0=nlSigninBunkerUrlCss,NlSigninBunkerUrl=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect with bunker url",this.description="Please enter a bunker url provided by key store.",this.isGood=!1}handleInputChange(o){state.nlSigninBunkerUrl.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSigninBunkerUrl.loginName)}render(){return h(Fragment,{key:"0ac12fea476faa724c8fa9ba34bebbd58c0b324d"},h("div",{key:"94fc0ef392c7d6abedc1bba2c833ff3e734fde23",class:"p-4 overflow-y-auto"},h("h1",{key:"c8426115b8d12e24e349813302360dc37ae935ca",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"804a1e0b2329e78f80470da090cb06fd3165116f",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3dad7e0005f66ad81c616983921455bf77b95c31",class:"max-w-72 mx-auto"},h("div",{key:"3e2f1825061c8f65c300676624d244240abb9590",class:"relative mb-2"},h("input",{key:"048e82df548ed4018684b92a93cd20c6ea60af95",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"bunker://...",value:state.nlSigninBunkerUrl.loginName}),h("div",{key:"29afff805cfc2d5e135ece3d5d791e6a1506294b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"3ca9eb00e319357c690fa7d0027dba1e61d7fb83",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"2914d12af813da649534f1aca80f3b80d1e53193","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})))),h("div",{key:"83617653feed00b5d45b4d8318369a16185ca690",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"3548cd177582a91b8c4b383311f04fd4b8b2002e",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"8ae258e580cae2a08955ff02b4d21601a3be3aee",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninBunkerUrlStyle0}},[0,"nl-signin-bunker-url",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$c(){typeof customElements>"u"||["nl-signin-bunker-url","button-base"].forEach(o=>{switch(o){case"nl-signin-bunker-url":customElements.get(o)||customElements.define(o,NlSigninBunkerUrl);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$c();var browser$1={},canPromise$1=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[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];utils$1$1.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},utils$1$1.getSymbolTotalCodewords=function(o){return CODEWORDS_COUNT[o]},utils$1$1.getBCHDigit=function(o){let s=0;for(;0!==o;)s++,o>>>=1;return s},utils$1$1.setToSJISFunction=function(o){if("function"!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=o},utils$1$1.isKanjiModeEnabled=function(){return void 0!==toSJISFunction},utils$1$1.toSJIS=function(o){return toSJISFunction(o)};var errorCorrectionLevel={},exports;function BitBuffer$1(){this.buffer=[],this.length=0}exports=errorCorrectionLevel,exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(o){return o&&void 0!==o.bit&&o.bit>=0&&o.bit<4},exports.from=function(o,s){if(exports.isValid(o))return o;try{return function(n){if("string"!=typeof n)throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+n)}}(o)}catch{return s}},BitBuffer$1.prototype={get:function(o){const s=Math.floor(o/8);return 1==(this.buffer[s]>>>7-o%8&1)},put:function(o,s){for(let n=0;n>>s-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),o&&(this.buffer[s]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}BitMatrix$1.prototype.set=function(o,s,n,i){const a=o*this.size+s;this.data[a]=n,i&&(this.reservedBit[a]=!0)},BitMatrix$1.prototype.get=function(o,s){return this.data[o*this.size+s]},BitMatrix$1.prototype.xor=function(o,s,n){this.data[o*this.size+s]^=n},BitMatrix$1.prototype.isReserved=function(o,s){return this.reservedBit[o*this.size+s]};var bitMatrix=BitMatrix$1,alignmentPattern={};!function(o){const s=utils$1$1.getSymbolSize;o.getRowColCoords=function(n){if(1===n)return[];const i=Math.floor(n/7)+2,a=s(n),c=145===a?26:2*Math.ceil((a-13)/(2*i-2)),y=[a-7];for(let w=1;w=0&&y<=7},o.from=function(y){return o.isValid(y)?parseInt(y,10):void 0},o.getPenaltyN1=function(y){const w=y.size;let C=0,T=0,S=0,M=null,k=null;for(let R=0;R=5&&(C+=T-5+3),M=Z,T=1),Z=y.get(X,R),Z===k?S++:(S>=5&&(C+=S-5+3),k=Z,S=1)}T>=5&&(C+=T-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let T=0;T=10&&(1488===T||93===T)&&C++,S=S<<1&2047|y.get(k,M),k>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let T=0;T=0;){const c=a[0];for(let w=0;w0){const a=new Uint8Array(this.degree);return a.set(n,i),a}return n};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={isValid:function(o){return!isNaN(o)&&o>=1&&o<=40}},regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+")(?:.|[\r\n]))+";regex$1.KANJI=new RegExp(kanji,"g"),regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex$1.BYTE=new RegExp(byte,"g"),regex$1.NUMERIC=new RegExp(numeric,"g"),regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(o){return TEST_KANJI.test(o)},regex$1.testNumeric=function(o){return TEST_NUMERIC.test(o)},regex$1.testAlphanumeric=function(o){return TEST_ALPHANUMERIC.test(o)},function(o){const s=versionCheck,n=regex$1;o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},o.getBestModeForData=function(i){return n.testNumeric(i)?o.NUMERIC:n.testAlphanumeric(i)?o.ALPHANUMERIC:n.testKanji(i)?o.KANJI:o.BYTE},o.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},o.isValid=function(i){return i&&i.bit&&i.ccBits},o.from=function(i,a){if(o.isValid(i))return i;try{return function(c){if("string"!=typeof c)throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+c)}}(i)}catch{return a}}}(mode),function(o){const s=utils$1$1,n=errorCorrectionCode,i=errorCorrectionLevel,a=mode,c=versionCheck,y=s.getBCHDigit(7973);function w(T,S){return a.getCharCountIndicator(T,S)+4}function C(T,S){let M=0;return T.forEach(function(k){const R=w(k.mode,S);M+=R+k.getBitsLength()}),M}o.from=function(T,S){return c.isValid(T)?parseInt(T,10):S},o.getCapacity=function(T,S,M){if(!c.isValid(T))throw new Error("Invalid QR Code version");void 0===M&&(M=a.BYTE);const k=8*(s.getSymbolTotalCodewords(T)-n.getTotalCodewordsCount(T,S));if(M===a.MIXED)return k;const R=k-w(M,T);switch(M){case a.NUMERIC:return Math.floor(R/10*3);case a.ALPHANUMERIC:return Math.floor(R/11*2);case a.KANJI:return Math.floor(R/13);default:return Math.floor(R/8)}},o.getBestVersionForData=function(T,S){let M;const k=i.from(S,i.M);if(Array.isArray(T)){if(T.length>1)return function(R,X){for(let Z=1;Z<=40;Z++)if(C(R,Z)<=o.getCapacity(Z,X,a.MIXED))return Z}(T,k);if(0===T.length)return 1;M=T[0]}else M=T;return function(R,X,Z){for(let ne=1;ne<=40;ne++)if(X<=o.getCapacity(ne,Z,R))return ne}(M.mode,M.getLength(),k)},o.getEncodedBits=function(T){if(!c.isValid(T)||T<7)throw new Error("Invalid QR Code version");let S=T<<12;for(;s.getBCHDigit(S)-y>=0;)S^=7973<=0;)i^=G15<0&&(n=this.data.substr(s),i=parseInt(n,10),o.put(i,3*a+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["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 AlphanumericData(o){this.mode=Mode$3.ALPHANUMERIC,this.data=o}AlphanumericData.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},AlphanumericData.prototype.getLength=function(){return this.data.length},AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function(o){let s;for(s=0;s+2<=this.data.length;s+=2){let n=45*ALPHA_NUM_CHARS.indexOf(this.data[s]);n+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),o.put(n,11)}this.data.length%2&&o.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(o){this.mode=Mode$2.BYTE,this.data="string"==typeof o?(new TextEncoder).encode(o):new Uint8Array(o)}ByteData.getBitsLength=function(o){return 8*o},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(o){for(let s=0,n=this.data.length;s=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),o.put(n,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(o){var s={single_source_shortest_paths:function(n,i,a){var c={},y={};y[i]=0;var w,C,T,S,M,k,X=s.PriorityQueue.make();for(X.push(i,0);!X.empty();)for(T in C=(w=X.pop()).value,S=w.cost,M=n[C]||{})M.hasOwnProperty(T)&&(k=S+M[T],(void 0===y[T]||y[T]>k)&&(y[T]=k,X.push(T,k),c[T]=C));if(void 0!==a&&void 0===y[a]){var Z=["Could not find a path from ",i," to ",a,"."].join("");throw new Error(Z)}return c},extract_shortest_path_from_predecessor_list:function(n,i){for(var a=[],c=i;c;)a.push(c),c=n[c];return a.reverse(),a},find_path:function(n,i,a){var c=s.single_source_shortest_paths(n,i,a);return s.extract_shortest_path_from_predecessor_list(c,a)},PriorityQueue:{make:function(n){var i,a=s.PriorityQueue,c={};for(i in n=n||{},a)a.hasOwnProperty(i)&&(c[i]=a[i]);return c.queue=[],c.sorter=n.sorter||a.default_sorter,c},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){this.queue.push({value:n,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};o.exports=s})(dijkstra),function(o){const s=mode,n=numericData,i=alphanumericData,a=byteData,c=kanjiData,y=regex$1,w=utils$1$1,C=dijkstra.exports;function T(X){return unescape(encodeURIComponent(X)).length}function S(X,Z,ne){const _e=[];let pe;for(;null!==(pe=X.exec(ne));)_e.push({data:pe[0],index:pe.index,mode:Z,length:pe[0].length});return _e}function M(X){const Z=S(y.NUMERIC,s.NUMERIC,X),ne=S(y.ALPHANUMERIC,s.ALPHANUMERIC,X);let _e,pe;return w.isKanjiModeEnabled()?(_e=S(y.BYTE,s.BYTE,X),pe=S(y.KANJI,s.KANJI,X)):(_e=S(y.BYTE_KANJI,s.BYTE,X),pe=[]),Z.concat(ne,_e,pe).sort(function(de,De){return de.index-De.index}).map(function(de){return{data:de.data,mode:de.mode,length:de.length}})}function k(X,Z){switch(Z){case s.NUMERIC:return n.getBitsLength(X);case s.ALPHANUMERIC:return i.getBitsLength(X);case s.KANJI:return c.getBitsLength(X);case s.BYTE:return a.getBitsLength(X)}}function R(X,Z){let ne;const _e=s.getBestModeForData(X);if(ne=s.from(Z,_e),ne!==s.BYTE&&ne.bit<_e.bit)throw new Error('"'+X+'" cannot be encoded with mode '+s.toString(ne)+".\n Suggested mode is: "+s.toString(_e));switch(ne!==s.KANJI||w.isKanjiModeEnabled()||(ne=s.BYTE),ne){case s.NUMERIC:return new n(X);case s.ALPHANUMERIC:return new i(X);case s.KANJI:return new c(X);case s.BYTE:return new a(X)}}o.fromArray=function(X){return X.reduce(function(Z,ne){return"string"==typeof ne?Z.push(R(ne,null)):ne.data&&Z.push(R(ne.data,ne.mode)),Z},[])},o.fromString=function(X,Z){const _e=function(De,Ee){const Le={},Ae={start:{}};let we=["start"];for(let le=0;le=0?Ee[Ee.length-1]:null;return Ae&&Ae.mode===Le.mode?(Ee[Ee.length-1].data+=Le.data,Ee):(Ee.push(Le),Ee)},[]))},o.rawSplit=function(X){return o.fromArray(M(X,w.isKanjiModeEnabled()))}}(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(o,s){const n=o.size,i=FinderPattern.getPositions(s);for(let a=0;a=0&&w<=6&&(0===C||6===C)||C>=0&&C<=6&&(0===w||6===w)||w>=2&&w<=4&&C>=2&&C<=4,!0)}}function setupTimingPattern(o){const s=o.size;for(let n=8;n>w&1),o.set(a,c,y,!0),o.set(c,a,y,!0)}function setupFormatInfo(o,s,n){const i=o.size,a=FormatInfo.getEncodedBits(s,n);let c,y;for(c=0;c<15;c++)y=1==(a>>c&1),o.set(c<6?c:c<8?c+1:i-15+c,8,y,!0),o.set(8,c<8?i-c-1:c<9?15-c-1+1:15-c-1,y,!0);o.set(i-8,8,1,!0)}function setupData(o,s){const n=o.size;let i=-1,a=n-1,c=7,y=0;for(let w=n-1;w>0;w-=2)for(6===w&&w--;;){for(let C=0;C<2;C++)if(!o.isReserved(a,w-C)){let T=!1;y>>c&1)),o.set(a,w-C,T),c--,-1===c&&(y++,c=7)}if(a+=i,a<0||n<=a){a-=i,i=-i;break}}}function createData(o,s,n){const i=new BitBuffer;n.forEach(function(y){i.put(y.mode.bit,4),i.put(y.getLength(),Mode.getCharCountIndicator(y.mode,o)),y.write(i)});const a=8*(Utils$1.getSymbolTotalCodewords(o)-ECCode.getTotalCodewordsCount(o,s));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let y=0;y=7&&setupVersionInfo(C,s),setupData(C,y),isNaN(i)&&(i=MaskPattern.getBestMask(C,setupFormatInfo.bind(null,C,n))),MaskPattern.applyMask(i,C),setupFormatInfo(C,n,i),{modules:C,version:s,errorCorrectionLevel:n,maskPattern:i,segments:a}}qrcode.create=function(o,s){if(void 0===o||""===o)throw new Error("No input text");let n,i,a=ECLevel.M;return void 0!==s&&(a=ECLevel.from(s.errorCorrectionLevel,ECLevel.M),n=Version.from(s.version),i=MaskPattern.from(s.maskPattern),s.toSJISFunc&&Utils$1.setToSJISFunction(s.toSJISFunc)),createSymbol(o,n,a,i)};var canvas={},utils$3={};(function(o){function s(n){if("number"==typeof n&&(n=n.toString()),"string"!=typeof n)throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+n);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map(function(c){return[c,c]}))),6===i.length&&i.push("F","F");const a=parseInt(i.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+i.slice(0,6).join("")}}o.getOptions=function(n){n||(n={}),n.color||(n.color={});const a=n.width&&n.width>=21?n.width:void 0;return{width:a,scale:a?4:n.scale||4,margin:null==n.margin||n.margin<0?4:n.margin,color:{dark:s(n.color.dark||"#000000ff"),light:s(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},o.getScale=function(n,i){return i.width&&i.width>=n+2*i.margin?i.width/(n+2*i.margin):i.scale},o.getImageWidth=function(n,i){const a=o.getScale(n,i);return Math.floor((n+2*i.margin)*a)},o.qrToImageData=function(n,i,a){const c=i.modules.size,y=i.modules.data,w=o.getScale(c,a),C=Math.floor((c+2*a.margin)*w),T=a.margin*w,S=[a.color.light,a.color.dark];for(let M=0;M=T&&k>=T&&M0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+n,.5+T+n):svgCmd("m",a,0),a=0,c=!1),C+1':"",C="',S=''+w+C+"\n";return"function"==typeof n&&n(null,S),S};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(o,s,n,i,a){const c=[].slice.call(arguments,1),y=c.length,w="function"==typeof c[y-1];if(!w&&!canPromise())throw new Error("Callback required as last argument");if(!w){if(y<1)throw new Error("Too few arguments provided");return 1===y?(n=s,s=i=void 0):2!==y||s.getContext||(i=n,n=s,s=void 0),new Promise(function(C,T){try{const S=QRCode.create(n,i);C(o(S,s,i))}catch(S){T(S)}})}if(y<2)throw new Error("Too few arguments provided");2===y?(a=n,n=s,s=i=void 0):3===y&&(s.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=s,s=void 0));try{const C=QRCode.create(n,i);a(null,o(C,s,i))}catch(C){a(C)}}browser$1.create=QRCode.create,browser$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render),browser$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL),browser$1.toString=renderCanvas.bind(null,function(o,s,n){return SvgRenderer.render(o,n)});const nlSigninConnectionStringCss=baseCss,NlSigninConnectionStringStyle0=nlSigninConnectionStringCss,NlSigninConnectionString=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleLogin="Connection string",this.description="Scan or copy the connection string with key store app",this.connectionString="",this.isCopy=!1}componentDidLoad(){this.generateQRCode()}generateQRCode(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),n=state.isOTP||s!==CURRENT_MODULE.INFO&&s!==CURRENT_MODULE.CONFIRM_LOGOUT&&s!==CURRENT_MODULE.IMPORT_FLOW&&s!==CURRENT_MODULE.WELCOME&&s!==CURRENT_MODULE.EXTENSION&&s!==CURRENT_MODULE.IFRAME&&s!==CURRENT_MODULE.PREVIOUSLY_LOGGED,i=s!==CURRENT_MODULE.IFRAME&&(!this.authMethods.length||!this.localSignup&&this.authMethods.includes("connect")||this.localSignup&&this.authMethods.includes("local"));return h("div",{class:`theme-${this.theme}`},h("div",{class:o},h("div",{onClick:()=>this.handleClose(),class:"absolute top-0 left-0 w-full h-full bg-gray-500 bg-opacity-75 z-[80]"}),h("div",{class:"nl-bg relative z-[81] w-full flex flex-col rounded-xl sm:max-w-lg sm:w-full sm:mx-auto"},h("div",{class:"flex justify-between items-center py-3 px-4"},h("div",{class:"flex gap-2 items-center"},h("svg",{class:"w-7 h-7",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("p",{class:"font-bold nl-logo text-base"},"Nostr ",h("span",{class:"font-light"},"Login"))),h("div",{class:"flex gap-1"},h("button",{onClick:()=>this.handleChangeDarkMode(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Change theme"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",this.darkMode?{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))),!state.isLoading&&h("button",{onClick:()=>state.path=[...state.path,CURRENT_MODULE.INFO],type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Info"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))))),state.path.length>1&&!state.isLoading&&h("div",{class:"p-4"},h("button",{onClick:()=>this.handleClickToBack(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600","data-hs-overlay":"#hs-vertically-centered-modal"},h("span",{class:"sr-only"},"Back"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})))),state.isLoading||state.authUrl?h("nl-loading",{path:s}):h(Fragment,null,(()=>{if(state.isOTP)return h("nl-signin-otp",null);switch(s){case CURRENT_MODULE.WELCOME:return h("nl-welcome",{titleWelcome:this.welcomeTitle||void 0,description:this.welcomeDescription||void 0});case CURRENT_MODULE.LOGIN:return h("nl-signin",null);case CURRENT_MODULE.SIGNUP:return h("nl-signup",{bunkers:this.bunkers});case CURRENT_MODULE.LOCAL_SIGNUP:return h("nl-local-signup",null);case CURRENT_MODULE.CONFIRM_LOGOUT:return h("nl-confirm-logout",null);case CURRENT_MODULE.IMPORT_FLOW:return h("nl-import-flow",{services:this.connectionStringServices});case CURRENT_MODULE.IMPORT_OTP:return h("nl-otp-migrate",{services:this.connectionStringServices});case CURRENT_MODULE.INFO:return h("nl-info",null);case CURRENT_MODULE.EXTENSION:return h("nl-info-extension",null);case CURRENT_MODULE.LOGIN_READ_ONLY:return h("nl-signin-read-only",null);case CURRENT_MODULE.LOGIN_BUNKER_URL:return h("nl-signin-bunker-url",null);case CURRENT_MODULE.LOGIN_OTP:return h("nl-signin-otp",null);case CURRENT_MODULE.WELCOME_LOGIN:return h("nl-welcome-signin",{hasOTP:this.hasOTP,authMethods:this.authMethods,hasExtension:this.hasExtension});case CURRENT_MODULE.WELCOME_SIGNUP:return h("nl-welcome-signup",null);case CURRENT_MODULE.CONNECTION_STRING:return h("nl-signin-connection-string",{connectionString:this.connectionString});case CURRENT_MODULE.CONNECT:return h("nl-connect",{connectionStringServices:this.connectionStringServices,authMethods:this.authMethods});case CURRENT_MODULE.PREVIOUSLY_LOGGED:return h("nl-previously-logged",{accounts:this.accounts,recents:this.recents});case CURRENT_MODULE.IFRAME:return h("nl-iframe",{iframeUrl:this.authUrl});default:return h("nl-welcome",null)}})(),n&&h(Fragment,null,s===CURRENT_MODULE.WELCOME_SIGNUP||s===CURRENT_MODULE.SIGNUP||s===CURRENT_MODULE.LOCAL_SIGNUP?h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you already have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(CURRENT_MODULE.WELCOME_LOGIN),class:"cursor-pointer text-blue-400"},"log in"),".")):i&&h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you don't have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(this.localSignup?CURRENT_MODULE.LOCAL_SIGNUP:CURRENT_MODULE.WELCOME_SIGNUP),class:"cursor-pointer text-blue-400"},"sign up"),".")))))))}static get watchers(){return{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}}static get style(){return NlAuthStyle0}},[1,"nl-auth",{theme:[1025],bunkers:[1],startScreen:[1,"start-screen"],authMethods:[16],hasExtension:[4,"has-extension"],hasOTP:[4,"has-o-t-p"],isLoading:[4,"is-loading"],isLoadingExtension:[4,"is-loading-extension"],isOTP:[4,"is-o-t-p"],authUrl:[1,"auth-url"],iframeUrl:[1,"iframe-url"],error:[1],localSignup:[4,"local-signup"],accounts:[1040],recents:[1040],darkMode:[1028,"dark-mode"],welcomeTitle:[1,"welcome-title"],welcomeDescription:[1,"welcome-description"],connectionString:[1,"connection-string"],connectionStringServices:[16]},void 0,{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}]);function defineCustomElement$4(){typeof customElements>"u"||["nl-auth","button-base","nl-confirm-logout","nl-connect","nl-iframe","nl-import-flow","nl-info","nl-info-extension","nl-loading","nl-local-signup","nl-login-status","nl-otp-migrate","nl-previously-logged","nl-select","nl-signin","nl-signin-bunker-url","nl-signin-connection-string","nl-signin-otp","nl-signin-read-only","nl-signup","nl-welcome","nl-welcome-signin","nl-welcome-signup"].forEach(o=>{switch(o){case"nl-auth":customElements.get(o)||customElements.define(o,NlAuth);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-confirm-logout":customElements.get(o)||defineCustomElement$p();break;case"nl-connect":customElements.get(o)||defineCustomElement$o();break;case"nl-iframe":customElements.get(o)||defineCustomElement$n();break;case"nl-import-flow":customElements.get(o)||defineCustomElement$l();break;case"nl-info":customElements.get(o)||defineCustomElement$k();break;case"nl-info-extension":customElements.get(o)||defineCustomElement$j();break;case"nl-loading":customElements.get(o)||defineCustomElement$i();break;case"nl-local-signup":customElements.get(o)||defineCustomElement$h();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g();break;case"nl-otp-migrate":customElements.get(o)||defineCustomElement$f();break;case"nl-previously-logged":customElements.get(o)||defineCustomElement$e();break;case"nl-select":customElements.get(o)||defineCustomElement$m();break;case"nl-signin":customElements.get(o)||defineCustomElement$d();break;case"nl-signin-bunker-url":customElements.get(o)||defineCustomElement$c();break;case"nl-signin-connection-string":customElements.get(o)||defineCustomElement$b();break;case"nl-signin-otp":customElements.get(o)||defineCustomElement$a();break;case"nl-signin-read-only":customElements.get(o)||defineCustomElement$9();break;case"nl-signup":customElements.get(o)||defineCustomElement$8();break;case"nl-welcome":customElements.get(o)||defineCustomElement$7();break;case"nl-welcome-signin":customElements.get(o)||defineCustomElement$6();break;case"nl-welcome-signup":customElements.get(o)||defineCustomElement$5()}})}defineCustomElement$4();const NlButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}render(){return h("button-base",{key:"9f7936090efc7263cce71d1ad89490d7f5445991",theme:this.theme,darkMode:this.darkMode,titleBtn:this.titleBtn,disabled:this.disabled})}},[1,"nl-button",{theme:[1],darkMode:[4,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$3(){typeof customElements>"u"||["nl-button","button-base"].forEach(o=>{switch(o){case"nl-button":customElements.get(o)||customElements.define(o,NlButton);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$3();const nlChangeAccountCss=baseCss,NlChangeAccountStyle0=nlChangeAccountCss,NLChangeAccount=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleSwitchAccount=createEvent(this,"handleSwitchAccount",7),this.isOpen=!1,this.options=[],this.accounts=[],this.currentAccount=null,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}watchAccountsHandler(o){this.options=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.handleSwitchAccount.emit(o)}handleOpenModal(){this.handleOpenWelcomeModal.emit()}render(){const o=(this.isOpen?"listClass flex flex-col gap-2":"hidden")+" w-full nl-select-list absolute z-10 left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500",n=this.options&&this.currentAccount?this.options.filter(i=>i.pubkey!==this.currentAccount.pubkey||i.authMethod!==this.currentAccount.authMethod):[];return h("div",{key:"4e15e39f7ac6a552bfc772396e3e9ef8eeca95cc",class:`theme-${this.themeState}`},h("div",{key:"eae10769ce35dc4cc072d2361c1ee1390c79c822",class:"relative",ref:i=>this.wrapperRef=i},h("button",{key:"e585a44168809f27b99201f7e13bd5db5e4f6569",ref:i=>this.buttonRef=i,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"006ed9a67b57227d4dab51f0b6bcb8290cd9d3ac",class:"text-gray-500"},"Switch profile"),h("svg",{key:"5f824a479165929698fab31b8837b89418587652",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"600914907723c9f8d01a15da357ccb825c1d1e6a",d:"m6 9 6 6 6-6"}))),h("ul",{key:"9b5b68724a3bce995e6b8b0a9d0eb653baedf79a",ref:i=>this.ulRef=i,class:o},this.options&&n.map(i=>{const c=i.name||i.nip05||i.pubkey;return h("li",{onClick:()=>this.handleChange(i),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{class:"uppercase font-bold w-full max-w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},i?.picture?h("img",{class:"w-full rounded-full",src:i.picture,alt:"Logo"}):c?c[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"truncate overflow-hidden"},c),h("nl-login-status",{info:i})))}),h("li",{key:"936f2b75ca2dfca3483650d5d62fc50182cfc8f2",class:"first:pt-0 pt-2 border-t-[1px] first:border-none border-gray-300"},h("div",{key:"be0b4f29e70d8e2bc9fd1cc04c0fb43ad3dd5cac",onClick:()=>this.handleOpenModal(),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{key:"bdd2a67e5763726666fcea91b0e7de67fe855994",class:"uppercase font-bold w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},h("svg",{key:"f3a258f3e510ccb83b95bf3abecf65c248c8b0f1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},h("path",{key:"dafaa898f3e042531a923a9a77b94511895c6102","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"}))),"Add profile")))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}}static get style(){return NlChangeAccountStyle0}},[0,"nl-change-account",{accounts:[16],currentAccount:[16],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],options:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}]);function defineCustomElement$2(){typeof customElements>"u"||["nl-change-account","nl-login-status"].forEach(o=>{switch(o){case"nl-change-account":customElements.get(o)||customElements.define(o,NLChangeAccount);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$2();const nlDialogCss=baseCss,NlDialogStyle0=nlDialogCss,NlDialog=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}componentDidLoad(){var o;null===(o=this.dialogElement)||void 0===o||o.showModal()}disconnectedCallback(){var o;null===(o=this.dialogElement)||void 0===o||o.close()}render(){return h("dialog",{key:"9c20328d937c160bcb9b9bf731d744721e84f189",ref:o=>this.dialogElement=o,class:"m-auto nl-banner-dialog"},h("slot",{key:"2e047d7c9e8904d590c588b73a5480cb1605ff86"}))}static get style(){return NlDialogStyle0}},[1,"nl-dialog"]);function defineCustomElement$1(){typeof customElements>"u"||["nl-dialog"].forEach(o=>{"nl-dialog"===o&&(customElements.get(o)||customElements.define(o,NlDialog))})}defineCustomElement$1();const nlBannerCss=baseCss,NlBannerStyle0=nlBannerCss,NlBanner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleNotifyConfirmBanner=createEvent(this,"handleNotifyConfirmBanner",7),this.handleNotifyConfirmBannerIframe=createEvent(this,"handleNotifyConfirmBannerIframe",7),this.handleLoginBanner=createEvent(this,"handleLoginBanner",7),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleConfirmLogout=createEvent(this,"handleConfirmLogout",7),this.handleImportModal=createEvent(this,"handleImportModal",7),this.theme="default",this.darkMode=!1,this.hiddenMode=!1,this.titleBanner="",this.isOpen=!1,this.isLoading=!1,this.notify=null,this.userInfo=null,this.accounts=[],this.isUserImgError=!1,this.domain="",this.mode="",this.url="",this.isOpenConfirm=!1}watchNotifyHandler(o){var s,n,i,a;this.isOpen=!0,this.isOpenConfirm=!0,this.domain=(null===(s=this.userInfo)||void 0===s?void 0:s.domain)||(null===(a=null===(i=null===(n=this.userInfo)||void 0===n?void 0:n.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[1])||"",this.mode=o.mode,this.url=o.url,this.mode||(this.isOpenConfirm=!1,this.isOpen=!1)}handleOpen(){this.userInfo?this.isOpen=!0:this.handleOpenWelcomeModal.emit()}handleClose(){this.isOpen=!1}handleLogin(){this.handleLoginBanner.emit(METHOD_MODULE.LOGIN),this.handleClose()}handleSignup(){this.handleLoginBanner.emit(METHOD_MODULE.SIGNUP),this.handleClose()}handleImport(){this.handleImportModal.emit(),this.handleClose()}handleLogout(){if(localStorage.getItem("backupKey"))return this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose(),void localStorage.removeItem("backupKey");"local"===this.userInfo.authMethod?this.handleConfirmLogout.emit():this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose()}handleConfirm(){switch(this.mode){case"authUrl":this.handleNotifyConfirmBanner.emit(this.url);break;case"iframeAuthUrl":this.handleNotifyConfirmBannerIframe.emit(this.url)}this.handleClose()}render(){var o,s,n,i,a,c;const y=!(null===(o=this.userInfo)||void 0===o||!o.picture),w=(null===(s=this.userInfo)||void 0===s?void 0:s.name)||(null===(a=null===(i=null===(n=this.userInfo)||void 0===n?void 0:n.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[0])||(null===(c=this.userInfo)||void 0===c?void 0:c.pubkey)||"",C=!!w,T=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),M=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),k=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?M:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:M):h("div",{class:"flex justify-center items-center"},h("svg",{class:"w-6 h-6",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),this.isOpen&&h("span",{class:"px-2"},h("b",null,"Nostr")," Login")),this.isOpen&&C&&h("div",{class:"show-slow truncate w-16 text-xs"},w),this.isOpen&&C&&h("nl-login-status",{info:this.userInfo}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:(this.isOpen?"z-20":"z-0")+" nl-action-button absolute right-2 top-2 z-0 show-slow grid place-items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))),h("div",{class:"p-3 show-slow"},this.isOpenConfirm?h("div",null,h("div",{class:"w-8 h-8 p-1/2 rounded-full border border-gray-200 bg-white mb-2 mt-2 show-slow m-auto"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#5a68ff",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("p",{class:"mb-2 text-center max-w-40 min-w-40 mx-auto"},"timeout"===this.mode?"Keys not responding, check your key storage app":`Confirmation required at ${this.domain}`),"timeout"===this.mode?h("a",{onClick:()=>this.handleClose(),href:`https://${this.domain}`,target:"_blank",class:"nl-button text-nowrap py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},"Go to ",this.domain):"rebind"===this.mode?h("iframe",{src:this.url,width:"180",height:"80"}):h("button-base",{onClick:()=>this.handleConfirm(),titleBtn:"Confirm"})):h("div",null,h("div",null,this.titleBanner&&h("p",{class:"mb-2 text-center show-slow max-w-40 min-w-40 mx-auto"},this.titleBanner),T&&h(Fragment,null,!S&&h("p",{class:"mb-2 text-center show-slow text-red-400 max-w-40 min-w-40 mx-auto"},"Your profile may be lost if you close this tab"),h("div",{class:"mb-2"},h("button-base",{onClick:()=>this.handleImport(),theme:"lemonade",titleBtn:"Back up profile"}))),h("div",{class:"mb-2"},h("nl-change-account",{currentAccount:this.userInfo,accounts:this.accounts})),this.userInfo?h("button-base",{onClick:()=>this.handleLogout(),titleBtn:"Log out"}):h("div",null,h("button-base",{onClick:()=>this.handleLogin(),titleBtn:"Log in"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{onClick:()=>this.handleSignup(),titleBtn:"Sign up"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))))),X=!!function Z(ne,_e){_e=_e||document.body;const pe=Array.from(_e.querySelectorAll(ne)),de=function(De){Z(ne,De).forEach(Ee=>{pe.includes(Ee)||pe.push(Ee)})};_e.shadowRoot&&de(_e.shadowRoot);for(const De of Array.from(_e.querySelectorAll("*")))De.shadowRoot&&de(De.shadowRoot);return pe}("dialog").find(Z=>Z.open&&!Z.classList.contains("nl-banner-dialog"));return console.log("nostr-login need dialog",X),h("div",{class:`theme-${this.theme} ${!this.isOpen&&this.hiddenMode?"hidden":""}`},h("div",{class:this.darkMode&&"dark"},this.isOpenConfirm&&X?h("nl-dialog",null,h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var n=0;n1)s?((n=this._tasks).push.apply(n,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++}function push_rebuild(o,s){var n,i=this.length;if(i>1)s?((n=this._tasks).push.apply(n,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++;this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function _fast_remove_single(o,s){-1!==s&&(0===s?o.shift():s===o.length-1?o.length=o.length-1:o.splice(s,1))}function removeLast_norebuild(o){0!==this.length&&(1===this.length?this._tasks===o&&(this.length=0):(_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length))}function removeLast_rebuild(o){if(0!==this.length){if(1===this.length)return this._tasks===o&&(this.length=0),this.firstEmitBuildStrategy?void(this.call=bake_collection_1.BAKED_EMPTY_FUNC):void this.rebuild();_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}}function insert_norebuild(o){for(var s,n=[],i=1;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$3(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(o.outputLen),number$3(o.blockLen)}function exists$3(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$3(o,s){bytes$3(o);const n=s.outputLen;if(o.lengtho instanceof Uint8Array,createView$2=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$2=(o,s)=>o<<32-s|o>>>s,isLE$3=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$3)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$4(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$3(o){if("string"==typeof o&&(o=utf8ToBytes$4(o)),!u8a$3(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$3(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$3(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));let Hash$2=class{clone(){return this._cloneInto()}};function wrapConstructor$2(o){const s=i=>o().update(toBytes$3(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes$2(o=32){if(crypto$3&&"function"==typeof crypto$3.getRandomValues)return crypto$3.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64$2(o,s,n,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,n,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(n>>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$2=class extends Hash$2{constructor(o,s,n,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$2(this.buffer)}update(o){assert$3.exists(this);const{view:s,buffer:n,blockLen:i}=this,a=(o=toBytes$3(o)).length;for(let c=0;ci-c&&(this.process(n,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&n,Maj$2=(o,s,n)=>o&s^o&n^s&n,SHA256_K$2=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]),IV$2=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$2=new Uint32Array(64);let SHA256$2=class extends SHA2$2{constructor(){super(64,32,8,!1),this.A=0|IV$2[0],this.B=0|IV$2[1],this.C=0|IV$2[2],this.D=0|IV$2[3],this.E=0|IV$2[4],this.F=0|IV$2[5],this.G=0|IV$2[6],this.H=0|IV$2[7]}get(){const{A:o,B:s,C:n,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,n,i,a,c,y,w]}set(o,s,n,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$2[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const M=SHA256_W$2[S-15],k=SHA256_W$2[S-2],R=rotr$2(M,7)^rotr$2(M,18)^M>>>3,X=rotr$2(k,17)^rotr$2(k,19)^k>>>10;SHA256_W$2[S]=X+SHA256_W$2[S-7]+R+SHA256_W$2[S-16]|0}let{A:n,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const M=T+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,k=(rotr$2(n,2)^rotr$2(n,13)^rotr$2(n,22))+Maj$2(n,i,a)|0;T=C,C=w,w=y,y=c+M|0,c=a,a=i,i=n,n=M+k|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(n,i,a,c,y,w,C,T)}roundClean(){SHA256_W$2.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{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 sha256$2=wrapConstructor$2(()=>new SHA256$2);wrapConstructor$2(()=>new SHA224$1);const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a$2=o=>o instanceof Uint8Array,hexes$2=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$2(o){if(!u8a$2(o))throw new Error("Uint8Array expected");let s="";for(let n=0;ni+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$2(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}function equalBytes$1(o,s){if(o.length!==s.length)return!1;for(let n=0;n_0n$4;o>>=_1n$4,s+=1);return s}function bitGet(o,s){return o>>BigInt(s)&_1n$4}const bitSet=(o,s,n)=>o|(n?_1n$4:_0n$4)<(_2n$2<new Uint8Array(o),u8fr=o=>Uint8Array.from(o);function createHmacDrbg(o,s,n){if("number"!=typeof o||o<2)throw new Error("hashLen must be a number");if("number"!=typeof s||s<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let i=u8n(o),a=u8n(o),c=0;const y=()=>{i.fill(1),a.fill(0),c=0},w=(...S)=>n(a,i,...S),C=(S=u8n())=>{a=w(u8fr([0]),S),i=w(),0!==S.length&&(a=w(u8fr([1]),S),i=w())},T=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const M=[];for(;S{let k;for(y(),C(S);!(k=M(T()));)C();return y(),k}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,n={}){const i=(a,c,y)=>{const w=validatorFns[c];if("function"!=typeof w)throw new Error(`Invalid validator "${c}", expected function`);const C=o[a];if(!(y&&void 0===C||w(C,o)))throw new Error(`Invalid param ${String(a)}=${C} (${typeof C}), expected ${c}`)};for(const[a,c]of Object.entries(s))i(a,c,!1);for(const[a,c]of Object.entries(n))i(a,c,!0);return o}var ut=Object.freeze({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$2,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$2,createHmacDrbg,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$2,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$3,validateObject});const _0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);function mod(o,s){const n=o%s;return n>=_0n$3?n:s+n}function pow(o,s,n){if(n<=_0n$3||s<_0n$3)throw new Error("Expected power/modulo > 0");if(n===_1n$3)return _0n$3;let i=_1n$3;for(;s>_0n$3;)s&_1n$3&&(i=i*o%n),o=o*o%n,s>>=_1n$3;return i}function pow2(o,s,n){let i=o;for(;s-- >_0n$3;)i*=i,i%=n;return i}function invert(o,s){if(o===_0n$3||s<=_0n$3)throw new Error(`invert: expected positive integers, got n=${o} mod=${s}`);let n=mod(o,s),i=s,a=_0n$3,c=_1n$3;for(;n!==_0n$3;){const y=i%n,w=a-c*(i/n);i=n,n=y,a=c,c=w}if(i!==_1n$3)throw new Error("invert: does not exist");return mod(a,s)}function tonelliShanks(o){const s=(o-_1n$3)/_2n$1;let n,i,a;for(n=o-_1n$3,i=0;n%_2n$1===_0n$3;n/=_2n$1,i++);for(a=_2n$1;a(n[i]="function",n),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}function FpPow(o,s,n){if(n<_0n$3)throw new Error("Expected power > 0");if(n===_0n$3)return o.ONE;if(n===_1n$3)return s;let i=o.ONE,a=s;for(;n>_0n$3;)n&_1n$3&&(i=o.mul(i,a)),a=o.sqr(a),n>>=_1n$3;return i}function FpInvertBatch(o,s){const n=new Array(s.length),i=s.reduce((c,y,w)=>o.is0(y)?c:(n[w]=c,o.mul(c,y)),o.ONE),a=o.inv(i);return s.reduceRight((c,y,w)=>o.is0(y)?c:(n[w]=o.mul(c,n[w]),o.mul(c,y)),a),n}function nLength(o,s){const n=void 0!==s?s:o.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Field(o,s,n=!1,i={}){if(o<=_0n$3)throw new Error(`Expected Fp ORDER > 0, got ${o}`);const{nBitLength:a,nByteLength:c}=nLength(o,s);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const y=FpSqrt(o),w=Object.freeze({ORDER:o,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:_0n$3,ONE:_1n$3,create:C=>mod(C,o),isValid:C=>{if("bigint"!=typeof C)throw new Error("Invalid field element: expected bigint, got "+typeof C);return _0n$3<=C&&CC===_0n$3,isOdd:C=>(C&_1n$3)===_1n$3,neg:C=>mod(-C,o),eql:(C,T)=>C===T,sqr:C=>mod(C*C,o),add:(C,T)=>mod(C+T,o),sub:(C,T)=>mod(C-T,o),mul:(C,T)=>mod(C*T,o),pow:(C,T)=>FpPow(w,C,T),div:(C,T)=>mod(C*invert(T,o),o),sqrN:C=>C*C,addN:(C,T)=>C+T,subN:(C,T)=>C-T,mulN:(C,T)=>C*T,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,T,S)=>S?T:C,toBytes:C=>n?numberToBytesLE(C,c):numberToBytesBE(C,c),fromBytes:C=>{if(C.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${C.length}`);return n?bytesToNumberLE(C):bytesToNumberBE(C)}});return Object.freeze(w)}function hashToPrivateScalar(o,s,n=!1){const i=(o=ensureBytes$1("privateHash",o)).length,a=nLength(s).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return mod(n?bytesToNumberLE(o):bytesToNumberBE(o),s-_1n$3)+_1n$3}const _0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(o,s){const n=(a,c)=>{const y=c.negate();return a?y:c},i=a=>({windows:Math.ceil(s/a)+1,windowSize:2**(a-1)});return{constTimeNegate:n,unsafeLadder(a,c){let y=o.ZERO,w=a;for(;c>_0n$2;)c&_1n$2&&(y=y.add(w)),w=w.double(),c>>=_1n$2;return y},precomputeWindow(a,c){const{windows:y,windowSize:w}=i(c),C=[];let T=a,S=T;for(let M=0;M>=R,ne>C&&(ne-=k,y+=_1n$2);const _e=Z,pe=Z+Math.abs(ne)-1,De=ne<0;0===ne?S=S.add(n(X%2!=0,c[_e])):T=T.add(n(De,c[pe]))}return{p:T,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let T=c.get(a);return T||(T=this.precomputeWindow(a,C),1!==C&&c.set(a,w(T))),this.wNAF(C,T,y)}}}function validateBasic(o){return validateField(o.Fp),validateObject(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}function validatePointOpts(o){const s=validateBasic(o);validateObject(s,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:i,a}=s;if(n){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...s})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(o=""){super(o)}},_parseInt(o){const{Err:s}=DER;if(o.length<2||2!==o[0])throw new s("Invalid signature integer tag");const n=o[1],i=o.subarray(2,n+2);if(!n||i.length!==n)throw new s("Invalid signature integer: wrong length");if(128&i[0])throw new s("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new s("Invalid signature integer: unnecessary leading zero");return{d:b2n(i),l:o.subarray(n+2)}},toSig(o){const{Err:s}=DER,n="string"==typeof o?h2b(o):o;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new s("Invalid signature tag");if(n[1]!==i-2)throw new s("Invalid signature: incorrect length");const{d:a,l:c}=DER._parseInt(n.subarray(2)),{d:y,l:w}=DER._parseInt(c);if(w.length)throw new s("Invalid signature: left bytes after parsing");return{r:a,s:y}},hexFromSig(o){const s=T=>8&Number.parseInt(T[0],16)?"00"+T:T,n=T=>{const S=T.toString(16);return 1&S.length?`0${S}`:S},i=s(n(o.s)),a=s(n(o.r)),c=i.length/2,y=a.length/2,w=n(c),C=n(y);return`30${n(y+c+4)}02${C}${a}02${w}${i}`}},_0n$1=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);function weierstrassPoints(o){const s=validatePointOpts(o),{Fp:n}=s,i=s.toBytes||((X,Z,ne)=>{const _e=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),n.toBytes(_e.x),n.toBytes(_e.y))}),a=s.fromBytes||(X=>{const Z=X.subarray(1);return{x:n.fromBytes(Z.subarray(0,n.BYTES)),y:n.fromBytes(Z.subarray(n.BYTES,2*n.BYTES))}});function c(X){const{a:Z,b:ne}=s,_e=n.sqr(X),pe=n.mul(_e,X);return n.add(n.add(pe,n.mul(X,Z)),ne)}if(!n.eql(n.sqr(s.Gy),c(s.Gx)))throw new Error("bad generator point: equation left != right");function y(X){return"bigint"==typeof X&&_0n$1n.eql(de,n.ZERO);return pe(ne)&&pe(_e)?M.ZERO:new M(ne,_e,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const ne=n.invertBatch(Z.map(_e=>_e.pz));return Z.map((_e,pe)=>_e.toAffine(ne[pe])).map(M.fromAffine)}static fromHex(Z){const ne=M.fromAffine(a(ensureBytes$1("pointHex",Z)));return ne.assertValidity(),ne}static fromPrivateKey(Z){return M.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,T.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:ne}=this.toAffine();if(!n.isValid(Z)||!n.isValid(ne))throw new Error("bad point: x or y not FE");const _e=n.sqr(ne),pe=c(Z);if(!n.eql(_e,pe))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(n.isOdd)return!n.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){S(Z);const{px:ne,py:_e,pz:pe}=this,{px:de,py:De,pz:Ee}=Z,Le=n.eql(n.mul(ne,Ee),n.mul(de,pe)),Ae=n.eql(n.mul(_e,Ee),n.mul(De,pe));return Le&&Ae}negate(){return new M(this.px,n.neg(this.py),this.pz)}double(){const{a:Z,b:ne}=s,_e=n.mul(ne,_3n),{px:pe,py:de,pz:De}=this;let Ee=n.ZERO,Le=n.ZERO,Ae=n.ZERO,we=n.mul(pe,pe),le=n.mul(de,de),ae=n.mul(De,De),xe=n.mul(pe,de);return xe=n.add(xe,xe),Ae=n.mul(pe,De),Ae=n.add(Ae,Ae),Ee=n.mul(Z,Ae),Le=n.mul(_e,ae),Le=n.add(Ee,Le),Ee=n.sub(le,Le),Le=n.add(le,Le),Le=n.mul(Ee,Le),Ee=n.mul(xe,Ee),Ae=n.mul(_e,Ae),ae=n.mul(Z,ae),xe=n.sub(we,ae),xe=n.mul(Z,xe),xe=n.add(xe,Ae),Ae=n.add(we,we),we=n.add(Ae,we),we=n.add(we,ae),we=n.mul(we,xe),Le=n.add(Le,we),ae=n.mul(de,De),ae=n.add(ae,ae),we=n.mul(ae,xe),Ee=n.sub(Ee,we),Ae=n.mul(ae,le),Ae=n.add(Ae,Ae),Ae=n.add(Ae,Ae),new M(Ee,Le,Ae)}add(Z){S(Z);const{px:ne,py:_e,pz:pe}=this,{px:de,py:De,pz:Ee}=Z;let Le=n.ZERO,Ae=n.ZERO,we=n.ZERO;const le=s.a,ae=n.mul(s.b,_3n);let xe=n.mul(ne,de),Be=n.mul(_e,De),st=n.mul(pe,Ee),lt=n.add(ne,_e),bt=n.add(de,De);lt=n.mul(lt,bt),bt=n.add(xe,Be),lt=n.sub(lt,bt),bt=n.add(ne,pe);let at=n.add(de,Ee);return bt=n.mul(bt,at),at=n.add(xe,st),bt=n.sub(bt,at),at=n.add(_e,pe),Le=n.add(De,Ee),at=n.mul(at,Le),Le=n.add(Be,st),at=n.sub(at,Le),we=n.mul(le,bt),Le=n.mul(ae,st),we=n.add(Le,we),Le=n.sub(Be,we),we=n.add(Be,we),Ae=n.mul(Le,we),Be=n.add(xe,xe),Be=n.add(Be,xe),st=n.mul(le,st),bt=n.mul(ae,bt),Be=n.add(Be,st),st=n.sub(xe,st),st=n.mul(le,st),bt=n.add(bt,st),xe=n.mul(Be,bt),Ae=n.add(Ae,xe),xe=n.mul(at,bt),Le=n.mul(lt,Le),Le=n.sub(Le,xe),xe=n.mul(lt,Be),we=n.mul(at,we),we=n.add(we,xe),new M(Le,Ae,we)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(M.ZERO)}wNAF(Z){return R.wNAFCached(this,T,Z,ne=>{const _e=n.invertBatch(ne.map(pe=>pe.pz));return ne.map((pe,de)=>pe.toAffine(_e[de])).map(M.fromAffine)})}multiplyUnsafe(Z){const ne=M.ZERO;if(Z===_0n$1)return ne;if(w(Z),Z===_1n$1)return this;const{endo:_e}=s;if(!_e)return R.unsafeLadder(this,Z);let{k1neg:pe,k1:de,k2neg:De,k2:Ee}=_e.splitScalar(Z),Le=ne,Ae=ne,we=this;for(;de>_0n$1||Ee>_0n$1;)de&_1n$1&&(Le=Le.add(we)),Ee&_1n$1&&(Ae=Ae.add(we)),we=we.double(),de>>=_1n$1,Ee>>=_1n$1;return pe&&(Le=Le.negate()),De&&(Ae=Ae.negate()),Ae=new M(n.mul(Ae.px,_e.beta),Ae.py,Ae.pz),Le.add(Ae)}multiply(Z){w(Z);let ne,_e,pe=Z;const{endo:de}=s;if(de){const{k1neg:De,k1:Ee,k2neg:Le,k2:Ae}=de.splitScalar(pe);let{p:we,f:le}=this.wNAF(Ee),{p:ae,f:xe}=this.wNAF(Ae);we=R.constTimeNegate(De,we),ae=R.constTimeNegate(Le,ae),ae=new M(n.mul(ae.px,de.beta),ae.py,ae.pz),ne=we.add(ae),_e=le.add(xe)}else{const{p:De,f:Ee}=this.wNAF(pe);ne=De,_e=Ee}return M.normalizeZ([ne,_e])[0]}multiplyAndAddUnsafe(Z,ne,_e){const pe=M.BASE,de=(Ee,Le)=>Le!==_0n$1&&Le!==_1n$1&&Ee.equals(pe)?Ee.multiply(Le):Ee.multiplyUnsafe(Le),De=de(this,ne).add(de(Z,_e));return De.is0()?void 0:De}toAffine(Z){const{px:ne,py:_e,pz:pe}=this,de=this.is0();null==Z&&(Z=de?n.ONE:n.inv(pe));const De=n.mul(ne,Z),Ee=n.mul(_e,Z),Le=n.mul(pe,Z);if(de)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Le,n.ONE))throw new Error("invZ was invalid");return{x:De,y:Ee}}isTorsionFree(){const{h:Z,isTorsionFree:ne}=s;if(Z===_1n$1)return!0;if(ne)return ne(M,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:ne}=s;return Z===_1n$1?this:ne?ne(M,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(M,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}M.BASE=new M(s.Gx,s.Gy,n.ONE),M.ZERO=new M(n.ZERO,n.ONE,n.ZERO);const k=s.nBitLength,R=wNAF(M,s.endo?Math.ceil(k/2):k);return{CURVE:s,ProjectivePoint:M,normPrivateKeyToScalar:C,weierstrassEquation:c,isWithinCurveOrder:y}}function validateOpts(o){const s=validateBasic(o);return validateObject(s,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...s})}function weierstrass(o){const s=validateOpts(o),{Fp:n,n:i}=s,a=n.BYTES+1,c=2*n.BYTES+1;function y(le){return mod(le,i)}function w(le){return invert(le,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:T,weierstrassEquation:S,isWithinCurveOrder:M}=weierstrassPoints({...s,toBytes(le,ae,xe){const Be=ae.toAffine(),st=n.toBytes(Be.x),lt=concatBytes$2;return xe?lt(Uint8Array.from([ae.hasEvenY()?2:3]),st):lt(Uint8Array.from([4]),st,n.toBytes(Be.y))},fromBytes(le){const ae=le.length,xe=le[0],Be=le.subarray(1);if(ae!==a||2!==xe&&3!==xe){if(ae===c&&4===xe)return{x:n.fromBytes(Be.subarray(0,n.BYTES)),y:n.fromBytes(Be.subarray(n.BYTES,2*n.BYTES))};throw new Error(`Point of length ${ae} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const lt=bytesToNumberBE(Be);if(!(_0n$1<(st=lt)&&stbytesToHex$2(numberToBytesBE(le,s.nByteLength));function R(le){return le>i>>_1n$1}const X=(le,ae,xe)=>bytesToNumberBE(le.slice(ae,xe));class Z{constructor(ae,xe,Be){this.r=ae,this.s=xe,this.recovery=Be,this.assertValidity()}static fromCompact(ae){const xe=s.nByteLength;return ae=ensureBytes$1("compactSignature",ae,2*xe),new Z(X(ae,0,xe),X(ae,xe,2*xe))}static fromDER(ae){const{r:xe,s:Be}=DER.toSig(ensureBytes$1("DER",ae));return new Z(xe,Be)}assertValidity(){if(!M(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!M(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ae){return new Z(this.r,this.s,ae)}recoverPublicKey(ae){const{r:xe,s:Be,recovery:st}=this,lt=de(ensureBytes$1("msgHash",ae));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const bt=2===st||3===st?xe+s.n:xe;if(bt>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const sn=C.fromHex((1&st?"03":"02")+k(bt)),fn=w(bt),En=y(-lt*fn),Wn=y(Be*fn),wn=C.BASE.multiplyAndAddUnsafe(sn,En,Wn);if(!wn)throw new Error("point at infinify");return wn.assertValidity(),wn}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return k(this.r)+k(this.s)}}const ne={isValidPrivateKey(le){try{return T(le),!0}catch{return!1}},normPrivateKeyToScalar:T,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(n.BYTES+8),i),s.nByteLength),precompute:(le=8,ae=C.BASE)=>(ae._setWindowSize(le),ae.multiply(BigInt(3)),ae)};function _e(le){const ae=le instanceof Uint8Array,xe="string"==typeof le,Be=(ae||xe)&&le.length;return ae?Be===a||Be===c:xe?Be===2*a||Be===2*c:le instanceof C}const pe=s.bits2int||function(le){const ae=bytesToNumberBE(le),xe=8*le.length-s.nBitLength;return xe>0?ae>>BigInt(xe):ae},de=s.bits2int_modN||function(le){return y(pe(le))},De=bitMask(s.nBitLength);function Ee(le){if("bigint"!=typeof le)throw new Error("bigint expected");if(!(_0n$1<=le&&leJe in xe))throw new Error("sign() legacy options not supported");const{hash:Be,randomBytes:st}=s;let{lowS:lt,prehash:bt,extraEntropy:at}=xe;null==lt&&(lt=!0),le=ensureBytes$1("msgHash",le),bt&&(le=ensureBytes$1("prehashed msgHash",Be(le)));const sn=de(le),fn=T(ae),En=[Ee(fn),Ee(sn)];if(null!=at){const Je=!0===at?st(n.BYTES):at;En.push(ensureBytes$1("extraEntropy",Je,n.BYTES))}const Wn=concatBytes$2(...En),wn=sn;return{seed:Wn,k2sig:function(Je){const _t=pe(Je);if(!M(_t))return;const ze=w(_t),Ue=C.BASE.multiply(_t).toAffine(),Ft=y(Ue.x);if(Ft===_0n$1)return;const Ke=y(ze*y(wn+Ft*fn));if(Ke===_0n$1)return;let Ze=(Ue.x===Ft?0:2)|Number(Ue.y&_1n$1),it=Ke;return lt&&R(Ke)&&(it=R(Ot=Ke)?y(-Ot):Ot,Ze^=1),new Z(Ft,it,Ze);var Ot}}}(le,ae,xe);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(Be,st)},verify:function(le,ae,xe,Be=we){const st=le;if(ae=ensureBytes$1("msgHash",ae),xe=ensureBytes$1("publicKey",xe),"strict"in Be)throw new Error("options.strict was renamed to lowS");const{lowS:lt,prehash:bt}=Be;let at,sn;try{if("string"==typeof st||st instanceof Uint8Array)try{at=Z.fromDER(st)}catch(Ue){if(!(Ue instanceof DER.Err))throw Ue;at=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Ue,s:Ft}=st;at=new Z(Ue,Ft)}}sn=C.fromHex(xe)}catch(Ue){if("PARSE"===Ue.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(lt&&at.hasHighS())return!1;bt&&(ae=s.hash(ae));const{r:fn,s:En}=at,Wn=de(ae),wn=w(En),Je=y(Wn*wn),_t=y(fn*wn),ze=C.BASE.multiplyAndAddUnsafe(sn,Je,_t)?.toAffine();return!!ze&&y(ze.x)===fn},ProjectivePoint:C,Signature:Z,utils:ne}}BigInt(4);let HMAC$2=class extends Hash$2{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,assert$3.hash(o);const n=toBytes$3(s);if(this.iHash=o.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,a=new Uint8Array(i);a.set(n.length>i?o.create().update(n).digest():n);for(let c=0;cnew HMAC$2(o,s).update(n).digest();function getHash(o){return{hash:o,hmac:(s,...n)=>hmac$2(o,s,concatBytes$3(...n)),randomBytes:randomBytes$2}}function createCurve(o,s){const n=i=>weierstrass({...o,...getHash(i)});return Object.freeze({...n(s),create:n})}hmac$2.create=(o,s)=>new HMAC$2(o,s);const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(o,s)=>(o+s/_2n)/s;function sqrtMod(o){const s=secp256k1P,n=BigInt(3),i=BigInt(6),a=BigInt(11),c=BigInt(22),y=BigInt(23),w=BigInt(44),C=BigInt(88),T=o*o*o%s,S=T*T*o%s,M=pow2(S,n,s)*S%s,k=pow2(M,n,s)*S%s,R=pow2(k,_2n,s)*T%s,X=pow2(R,a,s)*R%s,Z=pow2(X,c,s)*X%s,ne=pow2(Z,w,s)*Z%s,_e=pow2(ne,C,s)*ne%s,pe=pow2(_e,w,s)*Z%s,de=pow2(pe,n,s)*S%s,De=pow2(de,y,s)*X%s,Ee=pow2(De,i,s)*T%s,Le=pow2(Ee,_2n,s);if(!Fp.eql(Fp.sqr(Le),o))throw new Error("Cannot find square root");return Le}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:o=>{const s=secp256k1N,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=n,y=BigInt("0x100000000000000000000000000000000"),w=divNearest(c*o,s),C=divNearest(-i*o,s);let T=mod(o-w*n-C*a,s),S=mod(-w*i-C*c,s);const M=T>y,k=S>y;if(M&&(T=s-T),k&&(S=s-S),T>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:M,k1:T,k2neg:k,k2:S}}}},sha256$2),_0n=BigInt(0),fe=o=>"bigint"==typeof o&&_0n"bigint"==typeof o&&_0na.charCodeAt(0)));n=concatBytes$2(i,i),TAGGED_HASH_PREFIXES[o]=n}return sha256$2(concatBytes$2(n,...s))}const pointToBytes=o=>o.toRawBytes(!0).slice(1),numTo32b=o=>numberToBytesBE(o,32),modP=o=>mod(o,secp256k1P),modN=o=>mod(o,secp256k1N),Point$1=secp256k1.ProjectivePoint,GmulAdd=(o,s,n)=>Point$1.BASE.multiplyAndAddUnsafe(o,s,n);function schnorrGetExtPubKey(o){let s=secp256k1.utils.normPrivateKeyToScalar(o),n=Point$1.fromPrivateKey(s);return{scalar:n.hasEvenY()?s:modN(-s),bytes:pointToBytes(n)}}function lift_x(o){if(!fe(o))throw new Error("bad x: need 0 < x < p");const s=modP(o*o);let n=sqrtMod(modP(s*o+BigInt(7)));n%_2n!==_0n&&(n=modP(-n));const i=new Point$1(o,n,_1n);return i.assertValidity(),i}function challenge(...o){return modN(bytesToNumberBE(taggedHash("BIP0340/challenge",...o)))}function schnorrGetPublicKey(o){return schnorrGetExtPubKey(o).bytes}function schnorrSign(o,s,n=randomBytes$2(32)){const i=ensureBytes$1("message",o),{bytes:a,scalar:c}=schnorrGetExtPubKey(s),y=ensureBytes$1("auxRand",n,32),w=numTo32b(c^bytesToNumberBE(taggedHash("BIP0340/aux",y))),C=taggedHash("BIP0340/nonce",w,a,i),T=modN(bytesToNumberBE(C));if(T===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:M}=schnorrGetExtPubKey(T),k=challenge(S,a,i),R=new Uint8Array(64);if(R.set(S,0),R.set(numTo32b(modN(M+k*c)),32),!schnorrVerify(R,i,a))throw new Error("sign: Invalid signature produced");return R}function schnorrVerify(o,s,n){const i=ensureBytes$1("signature",o,64),a=ensureBytes$1("message",s),c=ensureBytes$1("publicKey",n,32);try{const y=lift_x(bytesToNumberBE(c)),w=bytesToNumberBE(i.subarray(0,32));if(!fe(w))return!1;const C=bytesToNumberBE(i.subarray(32,64));if(!ge(C))return!1;const T=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-T));return!(!S||!S.hasEvenY()||S.toAffine().x!==w)}catch{return!1}}const schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE,bytesToNumberBE,taggedHash,mod}},crypto$2="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$1=o=>o instanceof Uint8Array,createView$1=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$1=(o,s)=>o<<32-s|o>>>s,isLE$2=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$1=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$1(o){if(!u8a$1(o))throw new Error("Uint8Array expected");let s="";for(let n=0;ni+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$1(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}let Hash$1=class{clone(){return this._cloneInto()}};function wrapConstructor$1(o){const s=i=>o().update(toBytes$2(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes$1(o=32){if(crypto$2&&"function"==typeof crypto$2.getRandomValues)return crypto$2.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function number$2(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$2(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$2(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$2(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(o.outputLen),number$2(o.blockLen)}function exists$2(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$2(o,s){bytes$2(o);const n=s.outputLen;if(o.length>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$1=class extends Hash$1{constructor(o,s,n,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$1(this.buffer)}update(o){assert$2.exists(this);const{view:s,buffer:n,blockLen:i}=this,a=(o=toBytes$2(o)).length;for(let c=0;ci-c&&(this.process(n,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&n,Maj$1=(o,s,n)=>o&s^o&n^s&n,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$1=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=0|IV$1[0],this.B=0|IV$1[1],this.C=0|IV$1[2],this.D=0|IV$1[3],this.E=0|IV$1[4],this.F=0|IV$1[5],this.G=0|IV$1[6],this.H=0|IV$1[7]}get(){const{A:o,B:s,C:n,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,n,i,a,c,y,w]}set(o,s,n,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$1[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const M=SHA256_W$1[S-15],k=SHA256_W$1[S-2],R=rotr$1(M,7)^rotr$1(M,18)^M>>>3,X=rotr$1(k,17)^rotr$1(k,19)^k>>>10;SHA256_W$1[S]=X+SHA256_W$1[S-7]+R+SHA256_W$1[S-16]|0}let{A:n,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const M=T+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,k=(rotr$1(n,2)^rotr$1(n,13)^rotr$1(n,22))+Maj$1(n,i,a)|0;T=C,C=w,w=y,y=c+M|0,c=a,a=i,i=n,n=M+k|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(n,i,a,c,y,w,C,T)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class SHA224 extends SHA256$1{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 sha256$1=wrapConstructor$1(()=>new SHA256$1);function assertNumber(o){if(!Number.isSafeInteger(o))throw new Error(`Wrong integer: ${o}`)}function chain$1(...o){const s=(n,i)=>a=>n(i(a));return{encode:Array.from(o).reverse().reduce((n,i)=>n?s(n,i.encode):i.encode,void 0),decode:o.reduce((n,i)=>n?s(n,i.decode):i.decode,void 0)}}function alphabet$1(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(n=>{if(assertNumber(n),n<0||n>=o.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${o.length})`);return o[n]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const i=o.indexOf(n);if(-1===i)throw new Error(`Unknown letter: "${n}". Allowed: ${o}`);return i})}}}function join$1(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let n of s)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding$1(o,s="="){if(assertNumber(o),"string"!=typeof s)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let i of n)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;n.length*o%8;)n.push(s);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let a of n)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=n.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&n[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,i)}}}function normalize$1(o){if("function"!=typeof o)throw new Error("normalize fn should be function");return{encode:s=>s,decode:s=>o(s)}}function convertRadix$1(o,s,n){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(assertNumber(y),y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cnew SHA224);const gcd$1=(o,s)=>s?gcd$1(s,o%s):o,radix2carry$1=(o,s)=>o+(s-gcd$1(o,s));function convertRadix2$1(o,s,n,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(radix2carry$1(s,n)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${n} carryBits=${radix2carry$1(s,n)}`);let a=0,c=0;const y=2**n-1,w=[];for(const C of o){if(assertNumber(C),C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=n;c-=n)w.push((a>>c-n&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix$1(o){return assertNumber(o),{encode:s=>{if(!(s instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return convertRadix$1(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(convertRadix$1(s,o,256))}}}function radix2$1(o,s=!1){if(assertNumber(o),o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry$1(8,o)>32||radix2carry$1(o,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2$1(Array.from(n),8,o,!s)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(convertRadix2$1(n,o,8,s))}}}function unsafeWrapper$1(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}const base16=chain$1(radix2$1(4),alphabet$1("0123456789ABCDEF"),join$1("")),base32=chain$1(radix2$1(5),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),padding$1(5),join$1(""));chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHIJKLMNOPQRSTUV"),padding$1(5),join$1("")),chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),join$1(""),normalize$1(o=>o.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const base64$1=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding$1(6),join$1("")),base64url=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding$1(6),join$1("")),genBase58$1=o=>chain$1(radix$1(58),alphabet$1(o),join$1("")),base58$1=genBase58$1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");genBase58$1("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),genBase58$1("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(o){let s="";for(let n=0;n>25;let n=(33554431&o)<<5;for(let i=0;i>i&1)&&(n^=POLYMOD_GENERATORS$1[i]);return n}function bechChecksum$1(o,s,n=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod$1(a)^y>>5}a=bech32Polymod$1(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const M=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET$1.decode(k).slice(0,-6),X=bechChecksum$1(M,R,s);if(!k.endsWith(X))throw new Error(`Invalid checksum in ${w}: expected "${X}"`);return{prefix:M,words:R}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper$1(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32$1=genBech32$1("bech32");genBech32$1("bech32m");const utf8={encode:o=>(new TextDecoder).decode(o),decode:o=>(new TextEncoder).encode(o)},hex=chain$1(radix2$1(4),alphabet$1("0123456789abcdef"),join$1(""),normalize$1(o=>{if("string"!=typeof o||o.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof o} with length ${o.length}`);return o.toLowerCase()})),CODERS={utf8,hex,base16,base32,base64:base64$1,base64url,base58:base58$1,base58xmr};Object.keys(CODERS).join(", ");const wordlist="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");function number$1(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$1(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function isBytes$2(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function bytes$1(o,...s){if(!isBytes$2(o))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$1(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(o.outputLen),number$1(o.blockLen)}function exists$1(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$1(o,s){bytes$1(o);const n=s.outputLen;if(o.lengthnew DataView(o.buffer,o.byteOffset,o.byteLength),rotr=(o,s)=>o<<32-s|o>>>s,isLE$1=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$1)throw new Error("Non little-endian hardware is not supported");const hexes=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex(o){if(!isBytes$1(o))throw new Error("Uint8Array expected");let s="";for(let n=0;n=asciis._0&&o<=asciis._9?o-asciis._0:o>=asciis._A&&o<=asciis._F?o-(asciis._A-10):o>=asciis._a&&o<=asciis._f?o-(asciis._a-10):void 0}function hexToBytes(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length,n=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const i=new Uint8Array(n);for(let a=0,c=0;ao().update(toBytes$1(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes(o=32){if(crypto$1&&"function"==typeof crypto$1.getRandomValues)return crypto$1.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}let HMAC$1=class extends Hash{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,hash$1(o);const n=toBytes$1(s);if(this.iHash=o.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,a=new Uint8Array(i);a.set(n.length>i?o.create().update(n).digest():n);for(let c=0;cnew HMAC$1(o,s).update(n).digest();function pbkdf2Init(o,s,n,i){hash$1(o);const a=checkOpts$1({dkLen:32,asyncTick:10},i),{c,dkLen:y,asyncTick:w}=a;if(number$1(c),number$1(y),number$1(w),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const C=toBytes$1(s),T=toBytes$1(n),S=new Uint8Array(y),M=hmac$1.create(o,C),k=M._cloneInto().update(T);return{c,dkLen:y,asyncTick:w,DK:S,PRF:M,PRFSalt:k}}function pbkdf2Output(o,s,n,i,a){return o.destroy(),s.destroy(),i&&i.destroy(),a.fill(0),n}function pbkdf2(o,s,n,i){const{c:a,dkLen:c,DK:y,PRF:w,PRFSalt:C}=pbkdf2Init(o,s,n,i);let T;const S=new Uint8Array(4),M=createView(S),k=new Uint8Array(w.outputLen);for(let R=1,X=0;X>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}hmac$1.create=(o,s)=>new HMAC$1(o,s);class SHA2 extends Hash{constructor(s,n,i,a){super(),this.blockLen=s,this.outputLen=n,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=createView(this.buffer)}update(s){exists$1(this);const{view:n,buffer:i,blockLen:a}=this,c=(s=toBytes$1(s)).length;for(let y=0;ya-y&&(this.process(i,0),y=0);for(let M=y;MS.length)throw new Error("_sha2: outputLen bigger than state");for(let M=0;Mo&s^~o&n,Maj=(o,s,n)=>o&s^o&n^s&n,SHA256_K=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]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|IV[0],this.B=0|IV[1],this.C=0|IV[2],this.D=0|IV[3],this.E=0|IV[4],this.F=0|IV[5],this.G=0|IV[6],this.H=0|IV[7]}get(){const{A:s,B:n,C:i,D:a,E:c,F:y,G:w,H:C}=this;return[s,n,i,a,c,y,w,C]}set(s,n,i,a,c,y,w,C){this.A=0|s,this.B=0|n,this.C=0|i,this.D=0|a,this.E=0|c,this.F=0|y,this.G=0|w,this.H=0|C}process(s,n){for(let M=0;M<16;M++,n+=4)SHA256_W[M]=s.getUint32(n,!1);for(let M=16;M<64;M++){const k=SHA256_W[M-15],R=SHA256_W[M-2],X=rotr(k,7)^rotr(k,18)^k>>>3,Z=rotr(R,17)^rotr(R,19)^R>>>10;SHA256_W[M]=Z+SHA256_W[M-7]+X+SHA256_W[M-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:T,H:S}=this;for(let M=0;M<64;M++){const k=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,T)+SHA256_K[M]+SHA256_W[M]|0,R=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=T,T=C,C=w,w=y+k|0,y=c,c=a,a=i,i=k+R|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,T=T+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,T,S)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256=wrapConstructor(()=>new SHA256),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(o,s=!1){return s?{h:Number(o&U32_MASK64),l:Number(o>>_32n&U32_MASK64)}:{h:0|Number(o>>_32n&U32_MASK64),l:0|Number(o&U32_MASK64)}}function split(o,s=!1){let n=new Uint32Array(o.length),i=new Uint32Array(o.length);for(let a=0;aBigInt(o>>>0)<<_32n|BigInt(s>>>0),shrSH=(o,s,n)=>o>>>n,shrSL=(o,s,n)=>o<<32-n|s>>>n,rotrSH=(o,s,n)=>o>>>n|s<<32-n,rotrSL=(o,s,n)=>o<<32-n|s>>>n,rotrBH=(o,s,n)=>o<<64-n|s>>>n-32,rotrBL=(o,s,n)=>o>>>n-32|s<<64-n,rotr32H=(o,s)=>s,rotr32L=(o,s)=>o,rotlSH=(o,s,n)=>o<>>32-n,rotlSL=(o,s,n)=>s<>>32-n,rotlBH=(o,s,n)=>s<>>64-n,rotlBL=(o,s,n)=>o<>>64-n;function add(o,s,n,i){const a=(s>>>0)+(i>>>0);return{h:o+n+(a/2**32|0)|0,l:0|a}}const add3L=(o,s,n)=>(o>>>0)+(s>>>0)+(n>>>0),add3H=(o,s,n,i)=>s+n+i+(o/2**32|0)|0,add4L=(o,s,n,i)=>(o>>>0)+(s>>>0)+(n>>>0)+(i>>>0),add4H=(o,s,n,i,a)=>s+n+i+a+(o/2**32|0)|0,add5L=(o,s,n,i,a)=>(o>>>0)+(s>>>0)+(n>>>0)+(i>>>0)+(a>>>0),add5H=(o,s,n,i,a,c)=>s+n+i+a+c+(o/2**32|0)|0,u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.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(o=>BigInt(o))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends SHA2{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:s,Al:n,Bh:i,Bl:a,Ch:c,Cl:y,Dh:w,Dl:C,Eh:T,El:S,Fh:M,Fl:k,Gh:R,Gl:X,Hh:Z,Hl:ne}=this;return[s,n,i,a,c,y,w,C,T,S,M,k,R,X,Z,ne]}set(s,n,i,a,c,y,w,C,T,S,M,k,R,X,Z,ne){this.Ah=0|s,this.Al=0|n,this.Bh=0|i,this.Bl=0|a,this.Ch=0|c,this.Cl=0|y,this.Dh=0|w,this.Dl=0|C,this.Eh=0|T,this.El=0|S,this.Fh=0|M,this.Fl=0|k,this.Gh=0|R,this.Gl=0|X,this.Hh=0|Z,this.Hl=0|ne}process(s,n){for(let de=0;de<16;de++,n+=4)SHA512_W_H[de]=s.getUint32(n),SHA512_W_L[de]=s.getUint32(n+=4);for(let de=16;de<80;de++){const De=0|SHA512_W_H[de-15],Ee=0|SHA512_W_L[de-15],Le=u64.rotrSH(De,Ee,1)^u64.rotrSH(De,Ee,8)^u64.shrSH(De,Ee,7),Ae=u64.rotrSL(De,Ee,1)^u64.rotrSL(De,Ee,8)^u64.shrSL(De,Ee,7),we=0|SHA512_W_H[de-2],le=0|SHA512_W_L[de-2],ae=u64.rotrSH(we,le,19)^u64.rotrBH(we,le,61)^u64.shrSH(we,le,6),xe=u64.rotrSL(we,le,19)^u64.rotrBL(we,le,61)^u64.shrSL(we,le,6),Be=u64.add4L(Ae,xe,SHA512_W_L[de-7],SHA512_W_L[de-16]),st=u64.add4H(Be,Le,ae,SHA512_W_H[de-7],SHA512_W_H[de-16]);SHA512_W_H[de]=0|st,SHA512_W_L[de]=0|Be}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:T,Dl:S,Eh:M,El:k,Fh:R,Fl:X,Gh:Z,Gl:ne,Hh:_e,Hl:pe}=this;for(let de=0;de<80;de++){const De=u64.rotrSH(M,k,14)^u64.rotrSH(M,k,18)^u64.rotrBH(M,k,41),Ee=u64.rotrSL(M,k,14)^u64.rotrSL(M,k,18)^u64.rotrBL(M,k,41),Le=M&R^~M&Z,we=u64.add5L(pe,Ee,k&X^~k&ne,SHA512_Kl[de],SHA512_W_L[de]),le=u64.add5H(we,_e,De,Le,SHA512_Kh[de],SHA512_W_H[de]),ae=0|we,xe=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),Be=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,lt=a&y^a&C^y&C;_e=0|Z,pe=0|ne,Z=0|R,ne=0|X,R=0|M,X=0|k,({h:M,l:k}=u64.add(0|T,0|S,0|le,0|ae)),T=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const bt=u64.add3L(ae,Be,lt);i=u64.add3H(bt,le,xe,st),a=0|bt}({h:i,l:a}=u64.add(0|this.Ah,0|this.Al,0|i,0|a)),({h:c,l:y}=u64.add(0|this.Bh,0|this.Bl,0|c,0|y)),({h:w,l:C}=u64.add(0|this.Ch,0|this.Cl,0|w,0|C)),({h:T,l:S}=u64.add(0|this.Dh,0|this.Dl,0|T,0|S)),({h:M,l:k}=u64.add(0|this.Eh,0|this.El,0|M,0|k)),({h:R,l:X}=u64.add(0|this.Fh,0|this.Fl,0|R,0|X)),({h:Z,l:ne}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|ne)),({h:_e,l:pe}=u64.add(0|this.Hh,0|this.Hl,0|_e,0|pe)),this.set(i,a,c,y,w,C,T,S,M,k,R,X,Z,ne,_e,pe)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.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 sha512=wrapConstructor(()=>new SHA512);function isBytes(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function chain(...o){const s=i=>i,n=(i,a)=>c=>i(a(c));return{encode:o.map(i=>i.encode).reduceRight(n,s),decode:o.map(i=>i.decode).reduce(n,s)}}function alphabet(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(n=>{if(n<0||n>=o.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${o.length})`);return o[n]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const i=o.indexOf(n);if(-1===i)throw new Error(`Unknown letter: "${n}". Allowed: ${o}`);return i})}}}function join(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let n of s)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding(o,s="="){if("string"!=typeof s)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let i of n)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;n.length*o%8;)n.push(s);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let a of n)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=n.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&n[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,i)}}}function convertRadix(o,s,n){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cs?gcd(s,o%s):o,radix2carry=(o,s)=>o+(s-gcd(o,s));function convertRadix2(o,s,n,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(radix2carry(s,n)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${n} carryBits=${radix2carry(s,n)}`);let a=0,c=0;const y=2**n-1,w=[];for(const C of o){if(C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=n;c-=n)w.push((a>>c-n&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix(o){return{encode:s=>{if(!isBytes(s))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(s,o,256))}}}function radix2(o,s=!1){if(o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,o)>32||radix2carry(o,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!isBytes(n))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from(n),8,o,!s)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2(n,o,8,s))}}}function unsafeWrapper(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}function checksum(o,s){if("function"!=typeof s)throw new Error("checksum fn should be function");return{encode(n){if(!isBytes(n))throw new Error("checksum.encode: input should be Uint8Array");const i=s(n).slice(0,o),a=new Uint8Array(n.length+o);return a.set(n),a.set(i,n.length),a},decode(n){if(!isBytes(n))throw new Error("checksum.decode: input should be Uint8Array");const i=n.slice(0,-o),a=s(i).slice(0,o),c=n.slice(-o);for(let y=0;ychain(radix(58),alphabet(o),join("")),base58=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),createBase58check=o=>chain(checksum(4,s=>o(o(s))),base58),base58check$1=createBase58check,BECH_ALPHABET=chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(o){const s=o>>25;let n=(33554431&o)<<5;for(let i=0;i>i&1)&&(n^=POLYMOD_GENERATORS[i]);return n}function bechChecksum(o,s,n=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod(a)^y>>5}a=bech32Polymod(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const M=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET.decode(k).slice(0,-6),X=bechChecksum(M,R,s);if(!k.endsWith(X))throw new Error(`Invalid checksum in ${w}: expected "${X}"`);return{prefix:M,words:R}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);const M=w.toLowerCase(),k=bechChecksum(M,C,s);return`${M}1${BECH_ALPHABET.encode(C)}${k}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32=genBech32("bech32"),isJapanese=o=>"\u3042\u3044\u3053\u304f\u3057\u3093"===o[0];function nfkd(o){if("string"!=typeof o)throw new TypeError("Invalid mnemonic type: "+typeof o);return o.normalize("NFKD")}function normalize(o){const s=nfkd(o),n=s.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:s,words:n}}function assertEntropy(o){assert$1.bytes(o,16,20,24,28,32)}function generateMnemonic(o,s=128){if(assert$1.number(s),s%32!=0||s>256)throw new TypeError("Invalid entropy");return entropyToMnemonic(randomBytes(s/8),o)}const calcChecksum=o=>{const s=8-o.length/4;return new Uint8Array([sha256(o)[0]>>s<{if("string"!=typeof s)throw new Error(`Wordlist: non-string element: ${s}`)}),utils$1.chain(utils$1.checksum(1,calcChecksum),utils$1.radix2(11,!0),utils$1.alphabet(o))}function mnemonicToEntropy(o,s){const{words:n}=normalize(o),i=getCoder(s).decode(n);return assertEntropy(i),i}function entropyToMnemonic(o,s){return assertEntropy(o),getCoder(s).encode(o).join(isJapanese(s)?"\u3000":" ")}function validateMnemonic(o,s){try{mnemonicToEntropy(o,s)}catch{return!1}return!0}const salt=o=>nfkd(`mnemonic${o}`);function mnemonicToSeedSync(o,s=""){return pbkdf2(sha512,normalize(o).nfkd,salt(s),{c:2048,dkLen:64})}const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(o,s)=>s),Pi=Id.map(o=>(9*o+5)%16);let idxL=[Id],idxR=[Pi];for(let o=0;o<4;o++)for(let s of[idxL,idxR])s.push(s[o].map(n=>Rho[n]));const shifts=[[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(o=>new Uint8Array(o)),shiftsL=idxL.map((o,s)=>o.map(n=>shifts[s][n])),shiftsR=idxR.map((o,s)=>o.map(n=>shifts[s][n])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(o,s)=>o<>>32-s;function f(o,s,n,i){return 0===o?s^n^i:1===o?s&n|~s&i:2===o?(s|~n)^i:3===o?s&i|n&~i:s^(n|~i)}const BUF=new Uint32Array(16);class RIPEMD160 extends SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:s,h1:n,h2:i,h3:a,h4:c}=this;return[s,n,i,a,c]}set(s,n,i,a,c){this.h0=0|s,this.h1=0|n,this.h2=0|i,this.h3=0|a,this.h4=0|c}process(s,n){for(let R=0;R<16;R++,n+=4)BUF[R]=s.getUint32(n,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,T=0|this.h3,S=T,M=0|this.h4,k=M;for(let R=0;R<5;R++){const X=4-R,Z=Kl[R],ne=Kr[R],_e=idxL[R],pe=idxR[R],de=shiftsL[R],De=shiftsR[R];for(let Ee=0;Ee<16;Ee++){const Le=rotl$1(i+f(R,c,w,T)+BUF[_e[Ee]]+Z,de[Ee])+M|0;i=M,M=T,T=0|rotl$1(w,10),w=c,c=Le}for(let Ee=0;Ee<16;Ee++){const Le=rotl$1(a+f(X,y,C,S)+BUF[pe[Ee]]+ne,De[Ee])+k|0;a=k,k=S,S=0|rotl$1(C,10),C=y,y=Le}}this.set(this.h1+w+S|0,this.h2+T+k|0,this.h3+M+a|0,this.h4+i+y|0,this.h0+c+C|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ripemd160=wrapConstructor(()=>new RIPEMD160),Point=secp256k1.ProjectivePoint,base58check=base58check$1(sha256);function bytesToNumber(o){return BigInt(`0x${bytesToHex(o)}`)}function numberToBytes(o){return hexToBytes(o.toString(16).padStart(64,"0"))}const MASTER_SECRET=utf8ToBytes$1("Bitcoin seed"),BITCOIN_VERSIONS={private:76066276,public:76067358},HARDENED_OFFSET=2147483648,hash160=o=>ripemd160(sha256(o)),fromU32=o=>createView(o).getUint32(0,!1),toU32=o=>{if(!Number.isSafeInteger(o)||o<0||o>2**32-1)throw new Error(`Invalid number=${o}. Should be from 0 to 2 ** 32 - 1`);const s=new Uint8Array(4);return createView(s).setUint32(0,o,!1),s};class HDKey{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return fromU32(this.pubHash)}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 s=this.privateKey;if(!s)throw new Error("No private key");return base58check.encode(this.serialize(this.versions.private,concatBytes(new Uint8Array([0]),s)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return base58check.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(s,n=BITCOIN_VERSIONS){if(bytes$1(s),8*s.length<128||8*s.length>512)throw new Error(`HDKey: wrong seed length=${s.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const i=hmac$1(sha512,MASTER_SECRET,s);return new HDKey({versions:n,chainCode:i.slice(32),privateKey:i.slice(0,32)})}static fromExtendedKey(s,n=BITCOIN_VERSIONS){const i=base58check.decode(s),a=createView(i),c=a.getUint32(0,!1),y={versions:n,depth:i[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:i.slice(13,45)},w=i.slice(45),C=0===w[0];if(c!==n[C?"private":"public"])throw new Error("Version mismatch");return new HDKey(C?{...y,privateKey:w.slice(1)}:{...y,publicKey:w})}static fromJSON(s){return HDKey.fromExtendedKey(s.xpriv)}constructor(s){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!s||"object"!=typeof s)throw new Error("HDKey.constructor must not be called directly");if(this.versions=s.versions||BITCOIN_VERSIONS,this.depth=s.depth||0,this.chainCode=s.chainCode,this.index=s.index||0,this.parentFingerprint=s.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(s.publicKey&&s.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(s.privateKey){if(!secp256k1.utils.isValidPrivateKey(s.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof s.privateKey?s.privateKey:bytesToNumber(s.privateKey),this.privKeyBytes=numberToBytes(this.privKey),this.pubKey=secp256k1.getPublicKey(s.privateKey,!0)}else{if(!s.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Point.fromHex(s.publicKey).toRawBytes(!0)}this.pubHash=hash160(this.pubKey)}derive(s){if(!/^[mM]'?/.test(s))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(s))return this;const n=s.replace(/^[mM]'?\//,"").split("/");let i=this;for(const a of n){const c=/^(\d+)('?)$/.exec(a);if(!c||3!==c.length)throw new Error(`Invalid child index: ${a}`);let y=+c[1];if(!Number.isSafeInteger(y)||y>=HARDENED_OFFSET)throw new Error("Invalid index");"'"===c[2]&&(y+=HARDENED_OFFSET),i=i.deriveChild(y)}return i}deriveChild(s){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let n=toU32(s);if(s>=HARDENED_OFFSET){const w=this.privateKey;if(!w)throw new Error("Could not derive hardened child key");n=concatBytes(new Uint8Array([0]),w,n)}else n=concatBytes(this.pubKey,n);const i=hmac$1(sha512,this.chainCode,n),a=bytesToNumber(i.slice(0,32)),c=i.slice(32);if(!secp256k1.utils.isValidPrivateKey(a))throw new Error("Tweak bigger than curve order");const y={versions:this.versions,chainCode:c,depth:this.depth+1,parentFingerprint:this.fingerprint,index:s};try{if(this.privateKey){const w=mod(this.privKey+a,secp256k1.CURVE.n);if(!secp256k1.utils.isValidPrivateKey(w))throw new Error("The tweak was out of range or the resulted private key is invalid");y.privateKey=w}else{const w=Point.fromHex(this.pubKey).add(Point.fromPrivateKey(a));if(w.equals(Point.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");y.publicKey=w.toRawBytes(!0)}return new HDKey(y)}catch{return this.deriveChild(s+1)}}sign(s){if(!this.privateKey)throw new Error("No privateKey set!");return bytes$1(s,32),secp256k1.sign(s,this.privKey).toCompactRawBytes()}verify(s,n){if(bytes$1(s,32),bytes$1(n,64),!this.publicKey)throw new Error("No publicKey set!");let i;try{i=secp256k1.Signature.fromCompact(n)}catch{return!1}return secp256k1.verify(i,s,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(s,n){if(!this.chainCode)throw new Error("No chainCode set");return bytes$1(n,33),concatBytes(toU32(s),new Uint8Array([this.depth]),toU32(this.parentFingerprint),toU32(this.index),this.chainCode,n)}}const u8a=o=>o instanceof Uint8Array,u32=o=>new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)),isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes(o){if("string"==typeof o&&(o=utf8ToBytes(o)),!u8a(o))throw new Error("expected Uint8Array, got "+typeof o);return o}const isPlainObject=o=>"[object Object]"===Object.prototype.toString.call(o)&&o.constructor===Object;function checkOpts(o,s){if(void 0!==s&&("object"!=typeof s||!isPlainObject(s)))throw new Error("options must be object or undefined");return Object.assign(o,s)}function ensureBytes(o,s){if(!(o instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof s&&o.length!==s)throw new Error(`Uint8Array length ${s} expected`)}function equalBytes(o,s){if(o.length!==s.length)throw new Error("equalBytes: Different size of Uint8Arrays");let n=!0;for(let i=0;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("hash must be wrapped by utils.wrapConstructor");number(o.outputLen),number(o.blockLen)}function exists(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output(o,s){bytes(o);const n=s.outputLen;if(o.length255&o[s++]|(255&o[s++])<<8;class Poly1305{constructor(s){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,ensureBytes(s=toBytes(s),32);const n=u8to16(s,0),i=u8to16(s,2),a=u8to16(s,4),c=u8to16(s,6),y=u8to16(s,8),w=u8to16(s,10),C=u8to16(s,12),T=u8to16(s,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|i<<3),this.r[2]=7939&(i>>>10|a<<6),this.r[3]=8191&(a>>>7|c<<9),this.r[4]=255&(c>>>4|y<<12),this.r[5]=y>>>1&8190,this.r[6]=8191&(y>>>14|w<<2),this.r[7]=8065&(w>>>11|C<<5),this.r[8]=8191&(C>>>8|T<<8),this.r[9]=T>>>5&127;for(let S=0;S<8;S++)this.pad[S]=u8to16(s,16+2*S)}process(s,n,i=!1){const a=i?0:2048,{h:c,r:y}=this,w=y[0],C=y[1],T=y[2],S=y[3],M=y[4],k=y[5],R=y[6],X=y[7],Z=y[8],ne=y[9],_e=u8to16(s,n+0),pe=u8to16(s,n+2),de=u8to16(s,n+4),De=u8to16(s,n+6),Ee=u8to16(s,n+8),Le=u8to16(s,n+10),Ae=u8to16(s,n+12),we=u8to16(s,n+14);let le=c[0]+(8191&_e),ae=c[1]+(8191&(_e>>>13|pe<<3)),xe=c[2]+(8191&(pe>>>10|de<<6)),Be=c[3]+(8191&(de>>>7|De<<9)),st=c[4]+(8191&(De>>>4|Ee<<12)),lt=c[5]+(Ee>>>1&8191),bt=c[6]+(8191&(Ee>>>14|Le<<2)),at=c[7]+(8191&(Le>>>11|Ae<<5)),sn=c[8]+(8191&(Ae>>>8|we<<8)),fn=c[9]+(we>>>5|a),En=0,Wn=En+le*w+ae*(5*ne)+xe*(5*Z)+Be*(5*X)+st*(5*R);En=Wn>>>13,Wn&=8191,Wn+=lt*(5*k)+bt*(5*M)+at*(5*S)+sn*(5*T)+fn*(5*C),En+=Wn>>>13,Wn&=8191;let wn=En+le*C+ae*w+xe*(5*ne)+Be*(5*Z)+st*(5*X);En=wn>>>13,wn&=8191,wn+=lt*(5*R)+bt*(5*k)+at*(5*M)+sn*(5*S)+fn*(5*T),En+=wn>>>13,wn&=8191;let Je=En+le*T+ae*C+xe*w+Be*(5*ne)+st*(5*Z);En=Je>>>13,Je&=8191,Je+=lt*(5*X)+bt*(5*R)+at*(5*k)+sn*(5*M)+fn*(5*S),En+=Je>>>13,Je&=8191;let _t=En+le*S+ae*T+xe*C+Be*w+st*(5*ne);En=_t>>>13,_t&=8191,_t+=lt*(5*Z)+bt*(5*X)+at*(5*R)+sn*(5*k)+fn*(5*M),En+=_t>>>13,_t&=8191;let ze=En+le*M+ae*S+xe*T+Be*C+st*w;En=ze>>>13,ze&=8191,ze+=lt*(5*ne)+bt*(5*Z)+at*(5*X)+sn*(5*R)+fn*(5*k),En+=ze>>>13,ze&=8191;let Ue=En+le*k+ae*M+xe*S+Be*T+st*C;En=Ue>>>13,Ue&=8191,Ue+=lt*w+bt*(5*ne)+at*(5*Z)+sn*(5*X)+fn*(5*R),En+=Ue>>>13,Ue&=8191;let Ft=En+le*R+ae*k+xe*M+Be*S+st*T;En=Ft>>>13,Ft&=8191,Ft+=lt*C+bt*w+at*(5*ne)+sn*(5*Z)+fn*(5*X),En+=Ft>>>13,Ft&=8191;let Ke=En+le*X+ae*R+xe*k+Be*M+st*S;En=Ke>>>13,Ke&=8191,Ke+=lt*T+bt*C+at*w+sn*(5*ne)+fn*(5*Z),En+=Ke>>>13,Ke&=8191;let Ze=En+le*Z+ae*X+xe*R+Be*k+st*M;En=Ze>>>13,Ze&=8191,Ze+=lt*S+bt*T+at*C+sn*w+fn*(5*ne),En+=Ze>>>13,Ze&=8191;let it=En+le*ne+ae*Z+xe*X+Be*R+st*k;En=it>>>13,it&=8191,it+=lt*M+bt*S+at*T+sn*C+fn*w,En+=it>>>13,it&=8191,En=(En<<2)+En|0,En=En+Wn|0,Wn=8191&En,En>>>=13,wn+=En,c[0]=Wn,c[1]=wn,c[2]=Je,c[3]=_t,c[4]=ze,c[5]=Ue,c[6]=Ft,c[7]=Ke,c[8]=Ze,c[9]=it}finalize(){const{h:s,pad:n}=this,i=new Uint16Array(10);let a=s[1]>>>13;s[1]&=8191;for(let w=2;w<10;w++)s[w]+=a,a=s[w]>>>13,s[w]&=8191;s[0]+=5*a,a=s[0]>>>13,s[0]&=8191,s[1]+=a,a=s[1]>>>13,s[1]&=8191,s[2]+=a,i[0]=s[0]+5,a=i[0]>>>13,i[0]&=8191;for(let w=1;w<10;w++)i[w]=s[w]+a,a=i[w]>>>13,i[w]&=8191;i[9]-=8192;let c=(1^a)-1;for(let w=0;w<10;w++)i[w]&=c;c=~c;for(let w=0;w<10;w++)s[w]=s[w]&c|i[w];s[0]=65535&(s[0]|s[1]<<13),s[1]=65535&(s[1]>>>3|s[2]<<10),s[2]=65535&(s[2]>>>6|s[3]<<7),s[3]=65535&(s[3]>>>9|s[4]<<4),s[4]=65535&(s[4]>>>12|s[5]<<1|s[6]<<14),s[5]=65535&(s[6]>>>2|s[7]<<11),s[6]=65535&(s[7]>>>5|s[8]<<8),s[7]=65535&(s[8]>>>8|s[9]<<5);let y=s[0]+n[0];s[0]=65535&y;for(let w=1;w<8;w++)y=(s[w]+n[w]|0)+(y>>>16)|0,s[w]=65535&y}update(s){assert.exists(this);const{buffer:n,blockLen:i}=this,a=(s=toBytes(s)).length;for(let c=0;c>>0,s[c++]=i[y]>>>8;return s}digest(){const{buffer:s,outputLen:n}=this;this.digestInto(s);const i=s.slice(0,n);return this.destroy(),i}}function wrapConstructorWithKey(o){const s=(i,a)=>o(a).update(toBytes(i)).digest(),n=o(new Uint8Array(32));return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=i=>o(i),s}wrapConstructorWithKey(o=>new Poly1305(o));const sigma16=utf8ToBytes("expand 16-byte k"),sigma32=utf8ToBytes("expand 32-byte k"),sigma16_32=u32(sigma16),sigma32_32=u32(sigma32),isAligned32=o=>!(o.byteOffset%4),salsaBasic=o=>{const{core:s,rounds:n,counterRight:i,counterLen:a,allow128bitKeys:c,extendNonceFn:y,blockLen:w}=checkOpts({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},o);assert.number(a),assert.number(n),assert.number(w),assert.bool(i),assert.bool(c);const C=w/4;if(w%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(T,S,M,k,R=0)=>{if(assert.bytes(T),assert.bytes(S),assert.bytes(M),k||(k=new Uint8Array(M.length)),assert.bytes(k),assert.number(R),R<0||R>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(k.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const xe=Math.min(w,we-le);if(xe===w&&Ae&&Le){const Be=le/4;if(le%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let st=0;sto<>>32-s;function chachaCore(o,s,n,i,a,c=20){let y=o[0],w=o[1],C=o[2],T=o[3],S=s[0],M=s[1],k=s[2],R=s[3],X=s[4],Z=s[5],ne=s[6],_e=s[7],pe=a,de=n[0],De=n[1],Ee=n[2],Le=y,Ae=w,we=C,le=T,ae=S,xe=M,Be=k,st=R,lt=X,bt=Z,at=ne,sn=_e,fn=pe,En=de,Wn=De,wn=Ee;for(let _t=0;_ta?s.create().update(i).digest():i);for(let y=0;ynew HMAC(o,s).update(n).digest();function extract$1(o,s,n){return assert$2.hash(o),void 0===n&&(n=new Uint8Array(o.outputLen)),hmac(o,toBytes$2(n),toBytes$2(s))}hmac.create=(o,s)=>new HMAC(o,s);const HKDF_COUNTER$1=new Uint8Array([0]),EMPTY_BUFFER$1=new Uint8Array;function expand$1(o,s,n,i=32){if(assert$2.hash(o),assert$2.number(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===n&&(n=EMPTY_BUFFER$1);const c=new Uint8Array(a*o.outputLen),y=hmac.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Texpand$1(o,extract$1(o,s,n),i,a);var __defProp=Object.defineProperty,__export=(o,s)=>{for(var n in s)__defProp(o,n,{get:s[n],enumerable:!0})};function generatePrivateKey(){return bytesToHex$1(schnorr.utils.randomPrivateKey())}function getPublicKey(o){return bytesToHex$1(schnorr.getPublicKey(o))}var utils_exports={};__export(utils_exports,{MessageNode:()=>MessageNode,MessageQueue:()=>MessageQueue,insertEventIntoAscendingList:()=>insertEventIntoAscendingList,insertEventIntoDescendingList:()=>insertEventIntoDescendingList,normalizeURL:()=>normalizeURL,utf8Decoder:()=>utf8Decoder,utf8Encoder:()=>utf8Encoder});var utf8Decoder=new TextDecoder("utf-8"),utf8Encoder=new TextEncoder;function normalizeURL(o){let s=new URL(o);return s.pathname=s.pathname.replace(/\/+/g,"/"),s.pathname.endsWith("/")&&(s.pathname=s.pathname.slice(0,-1)),("80"===s.port&&"ws:"===s.protocol||"443"===s.port&&"wss:"===s.protocol)&&(s.port=""),s.searchParams.sort(),s.hash="",s.toString()}function insertEventIntoDescendingList(o,s){let n,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(n=Math.floor(i+(a-i)/2),o[n].created_at>s.created_at)i=n;else{if(!(o[n].created_ato[a].created_at)c=a+1;else if(s.created_at<=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(n=Math.floor(i+(a-i)/2),o[n].created_ats.created_at)){c=n;break}a=n}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}var MessageNode=class{_value;_next;get value(){return this._value}set value(o){this._value=o}get next(){return this._next}set next(o){this._next=o}constructor(o){this._value=o,this._next=null}},MessageQueue=class{_first;_last;get first(){return this._first}set first(o){this._first=o}get last(){return this._last}set last(o){this._last=o}_size;get size(){return this._size}set size(o){this._size=o}constructor(){this._first=null,this._last=null,this._size=0}enqueue(o){const s=new MessageNode(o);return 0!==this._size&&this._last?(this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let o=this._first;return this._first=o.next,o.next=null,this._size--,o.value}},verifiedSymbol=Symbol("verified");function getBlankEvent(o=255){return{kind:o,content:"",tags:[],created_at:0}}function finishEvent(o,s){const n=o;return n.pubkey=getPublicKey(s),n.id=getEventHash(n),n.sig=getSignature(n,s),n[verifiedSymbol]=!0,n}function serializeEvent(o){if(!validateEvent(o))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,o.pubkey,o.created_at,o.kind,o.tags,o.content])}function getEventHash(o){return bytesToHex$1(sha256$1(utf8Encoder.encode(serializeEvent(o))))}var isRecord=o=>o instanceof Object;function validateEvent(o){if(!isRecord(o)||"number"!=typeof o.kind||"string"!=typeof o.content||"number"!=typeof o.created_at||"string"!=typeof o.pubkey||!o.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(o.tags))return!1;for(let s=0;ss.id.startsWith(n))||o.kinds&&-1===o.kinds.indexOf(s.kind)||o.authors&&-1===o.authors.indexOf(s.pubkey)&&!o.authors.some(n=>s.pubkey.startsWith(n)))return!1;for(let n in o)if("#"===n[0]){let i=o[`#${n.slice(1)}`];if(i&&!s.tags.find(([a,c])=>a===n.slice(1)&&-1!==i.indexOf(c)))return!1}return!(o.since&&s.created_ato.until)}function matchFilters(o,s){for(let n=0;ngetHex64,getInt:()=>getInt,getSubscriptionId:()=>getSubscriptionId,matchEventId:()=>matchEventId,matchEventKind:()=>matchEventKind,matchEventPubkey:()=>matchEventPubkey});var newListeners=()=>({connect:[],disconnect:[],error:[],notice:[],auth:[]});function relayInit(o,s={}){let{listTimeout:n=3e3,getTimeout:i=3e3,countTimeout:a=3e3}=s;var c,y,w={},C=newListeners(),T={},S={};function M(){return 1===c?.readyState}function k(ne){return R.apply(this,arguments)}function R(){return(R=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(ne){let _e=JSON.stringify(ne);if(M()||(yield new Promise(pe=>setTimeout(pe,1e3)),M()))try{c.send(_e)}catch(pe){console.log(pe)}})).apply(this,arguments)}const X=(ne,{verb:_e="REQ",skipVerification:pe=!1,alreadyHaveEvent:de=null,id:De=Math.random().toString().slice(2)}={})=>{let Ee=De;w[Ee]={id:Ee,filters:ne,skipVerification:pe,alreadyHaveEvent:de},k([_e,Ee,...ne]);let Le={sub:(Ae,we={})=>X(Ae||ne,{skipVerification:we.skipVerification||pe,alreadyHaveEvent:we.alreadyHaveEvent||de,id:Ee}),unsub:()=>{delete w[Ee],delete T[Ee],k(["CLOSE",Ee])},on:(Ae,we)=>{T[Ee]=T[Ee]||{event:[],count:[],eose:[]},T[Ee][Ae].push(we)},off:(Ae,we)=>{let le=T[Ee],ae=le[Ae].indexOf(we);ae>=0&&le[Ae].splice(ae,1)},get events(){return eventsGenerator(Le)}};return Le};function Z(ne,_e){return new Promise((pe,de)=>{if(!ne.id)return void de(new Error(`event ${ne} has no id`));let De=ne.id;k([_e,ne]),S[De]={resolve:pe,reject:de}})}return{url:o,sub:X,on:(ne,_e)=>{C[ne].push(_e),"connect"===ne&&1===c?.readyState&&_e()},off:(ne,_e)=>{let pe=C[ne].indexOf(_e);-1!==pe&&C[ne].splice(pe,1)},list:(ne,_e)=>new Promise(pe=>{let de=X(ne,_e),De=[],Ee=setTimeout(()=>{de.unsub(),pe(De)},n);de.on("eose",()=>{de.unsub(),clearTimeout(Ee),pe(De)}),de.on("event",Le=>{De.push(Le)})}),get:(ne,_e)=>new Promise(pe=>{let de=X([ne],_e),De=setTimeout(()=>{de.unsub(),pe(null)},i);de.on("event",Ee=>{de.unsub(),clearTimeout(De),pe(Ee)})}),count:ne=>new Promise(_e=>{let pe=X(ne,{...X,verb:"COUNT"}),de=setTimeout(()=>{pe.unsub(),_e(null)},a);pe.on("count",De=>{pe.unsub(),clearTimeout(de),_e(De)})}),publish:ne=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"EVENT")})(),auth:ne=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(ne,"AUTH")})(),connect:(ne=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){M()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((_e,pe)=>{try{c=new WebSocket(o)}catch(Le){pe(Le)}c.onopen=()=>{C.connect.forEach(Le=>Le()),_e()},c.onerror=()=>{y=void 0,C.error.forEach(Le=>Le()),pe()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Le=>Le())});let de,De=new MessageQueue;function Ee(){if(0===De.size)return clearInterval(de),void(de=null);var Le=De.dequeue();if(!Le)return;let Ae=getSubscriptionId(Le);if(Ae){let we=w[Ae];if(we&&we.alreadyHaveEvent&&we.alreadyHaveEvent(getHex64(Le,"id"),o))return}try{let we=JSON.parse(Le);switch(we[0]){case"EVENT":{let Be=we[1],st=we[2];return void(validateEvent(st)&&w[Be]&&(w[Be].skipVerification||verifySignature(st))&&matchFilters(w[Be].filters,st)&&(T[Be]?.event||[]).forEach(lt=>lt(st)))}case"COUNT":let le=we[1],ae=we[2];return void(w[le]&&(T[le]?.count||[]).forEach(Be=>Be(ae)));case"EOSE":{let Be=we[1];return void(Be in T&&(T[Be].eose.forEach(st=>st()),T[Be].eose=[]))}case"OK":{let Be=we[1],st=we[2],lt=we[3]||"";if(Be in S){let{resolve:bt,reject:at}=S[Be];st?bt(null):at(new Error(lt))}return}case"NOTICE":let xe=we[1];return void C.notice.forEach(Be=>Be(xe));case"AUTH":{let Be=we[1];return void C.auth?.forEach(st=>st(Be))}}}catch{return}}c.onmessage=Le=>{De.enqueue(Le.data),de||(de=setInterval(Ee,0))}}))})())}),function(){return ne.apply(this,arguments)}),close(){C=newListeners(),T={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var ne}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const n=[],i=a=>{s?(s(a),s=void 0):n.push(a)};o.on("event",i);try{for(;;)n.length>0?yield n.shift():yield yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words:n}=bech32$1.decode(o,Bech32MaxSize),i=new Uint8Array(bech32$1.fromWords(n));switch(s){case"nprofile":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nevent":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(a[2]&&32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(a[3]&&4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[],author:a[2]?.[0]?bytesToHex$1(a[2][0]):void 0,kind:a[3]?.[0]?parseInt(bytesToHex$1(a[3][0]),16):void 0}}}case"naddr":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!a[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!a[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:utf8Decoder.decode(a[0][0]),pubkey:bytesToHex$1(a[2][0]),kind:parseInt(bytesToHex$1(a[3][0]),16),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nrelay":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:utf8Decoder.decode(a[0][0])}}case"nsec":case"npub":case"note":return{type:s,data:bytesToHex$1(i)};default:throw new Error(`unknown prefix ${s}`)}}function parseTLV(o){let s={},n=o;for(;n.length>0;){let i=n[0],a=n[1];if(!a)throw new Error(`malformed TLV ${i}`);let c=n.slice(2,2+a);if(n=n.slice(2+a),c.lengthutf8Encoder.encode(s))}))}function neventEncode(o){let s;return null!=o.kind&&(s=integerToUint8Array(o.kind)),encodeBech32("nevent",encodeTLV({0:[hexToBytes$1(o.id)],1:(o.relays||[]).map(n=>utf8Encoder.encode(n)),2:o.author?[hexToBytes$1(o.author)]:[],3:s?[new Uint8Array(s)]:[]}))}function naddrEncode(o){let s=new ArrayBuffer(4);return new DataView(s).setUint32(0,o.kind,!1),encodeBech32("naddr",encodeTLV({0:[utf8Encoder.encode(o.identifier)],1:(o.relays||[]).map(n=>utf8Encoder.encode(n)),2:[hexToBytes$1(o.pubkey)],3:[new Uint8Array(s)]}))}function nrelayEncode(o){return encodeBech32("nrelay",encodeTLV({0:[utf8Encoder.encode(o)]}))}function encodeTLV(o){let s=[];return Object.entries(o).forEach(([n,i])=>{i.forEach(a=>{let c=new Uint8Array(a.length+2);c.set([parseInt(n)],0),c.set([a.length],1),c.set(a,2),s.push(c)})}),concatBytes$1(...s)}var nip04_exports={};function encrypt$1(o,s,n){return _encrypt$.apply(this,arguments)}function _encrypt$(){return _encrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){const i=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s));let a=Uint8Array.from(randomBytes$1(16)),c=utf8Encoder.encode(n),y=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),w=yield crypto.subtle.encrypt({name:"AES-CBC",iv:a},y,c);return`${base64$1.encode(new Uint8Array(w))}?iv=${base64$1.encode(new Uint8Array(a.buffer))}`}),_encrypt$.apply(this,arguments)}function decrypt$1(o,s,n){return _decrypt$.apply(this,arguments)}function _decrypt$(){return _decrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){let[i,a]=n.split("?iv="),c=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s)),y=yield crypto.subtle.importKey("raw",c,{name:"AES-CBC"},!1,["decrypt"]),w=base64$1.decode(i),C=base64$1.decode(a),T=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(T)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[n,i="_",a]=s;try{const c=yield _fetch(`https://${a}/.well-known/nostr.json?name=${i}`),{names:y,relays:w}=parseNIP05Result$1(yield c.json()),C=y[i];return C?{pubkey:C,relays:w?.[C]}:null}catch{return null}}),_queryProfile.apply(this,arguments)}function parseNIP05Result$1(o){const s={names:{}};for(const[n,i]of Object.entries(o.names))"string"==typeof n&&"string"==typeof i&&(s.names[n]=i);if(o.relays){s.relays={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.relays[n]=i.filter(a=>"string"==typeof a))}return s}var nip06_exports={};function privateKeyFromSeedWords(o,s){let n=HDKey.fromMasterSeed(mnemonicToSeedSync(o,s)).derive("m/44'/1237'/0'/0/0").privateKey;if(!n)throw new Error("could not derive private key");return bytesToHex$1(n)}function generateSeedWords(){return generateMnemonic(wordlist)}function validateWords(o){return validateMnemonic(o,wordlist)}__export(nip06_exports,{generateSeedWords:()=>generateSeedWords,privateKeyFromSeedWords:()=>privateKeyFromSeedWords,validateWords:()=>validateWords});var nip10_exports={};function parse(o){const s={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(const i of o.tags)"e"===i[0]&&i[1]&&n.push(i),"p"===i[0]&&i[1]&&s.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});for(let i=0;iparse});var nip13_exports={};function getPow(o){let s=0;for(let n=0;n=s)break}return i}__export(nip13_exports,{getPow:()=>getPow,minePow:()=>minePow});var nip18_exports={};function finishRepostEvent(o,s,n,i){return finishEvent({kind:6,tags:[...o.tags??[],["e",s.id,n],["p",s.pubkey]],content:""===o.content?"":JSON.stringify(s),created_at:o.created_at},i)}function getRepostedEventPointer(o){if(6!==o.kind)return;let s,n;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===n);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===n&&(n=a))}return void 0!==s?{id:s[1],relays:[s[2],n?.[2]].filter(i=>"string"==typeof i),author:n?.[1]}:void 0}function getRepostedEvent(o,{skipVerification:s}={}){const n=getRepostedEventPointer(o);if(void 0===n||""===o.content)return;let i;try{i=JSON.parse(o.content)}catch{return}return i.id===n.id&&(s||verifySignature(i))?i:void 0}__export(nip18_exports,{finishRepostEvent:()=>finishRepostEvent,getRepostedEvent:()=>getRepostedEvent,getRepostedEventPointer:()=>getRepostedEventPointer});var nip21_exports={};__export(nip21_exports,{NOSTR_URI_REGEX:()=>NOSTR_URI_REGEX,parse:()=>parse2,test:()=>test});var NOSTR_URI_REGEX=new RegExp(`nostr:(${BECH32_REGEX.source})`);function test(o){return"string"==typeof o&&new RegExp(`^${NOSTR_URI_REGEX.source}$`).test(o)}function parse2(o){const s=o.match(new RegExp(`^${NOSTR_URI_REGEX.source}$`));if(!s)throw new Error(`Invalid Nostr URI: ${o}`);return{uri:s[0],value:s[1],decoded:decode(s[1])}}var nip25_exports={};function finishReactionEvent(o,s,n){const i=s.tags.filter(a=>a.length>=2&&("e"===a[0]||"p"===a[0]));return finishEvent({...o,kind:7,tags:[...o.tags??[],...i,["e",s.id],["p",s.pubkey]],content:o.content??"+"},n)}function getReactedEventPointer(o){if(7!==o.kind)return;let s,n;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===n);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===n&&(n=a))}return void 0!==s&&void 0!==n?{id:s[1],relays:[s[2],n[2]].filter(i=>void 0!==i),author:n[1]}:void 0}__export(nip25_exports,{finishReactionEvent:()=>finishReactionEvent,getReactedEventPointer:()=>getReactedEventPointer});var nip26_exports={};function createDelegation(o,s){let n=[];(s.kind||-1)>=0&&n.push(`kind=${s.kind}`),s.until&&n.push(`created_at<${s.until}`),s.since&&n.push(`created_at>${s.since}`);let i=n.join("&");if(""===i)throw new Error("refusing to create a delegation without any conditions");let a=sha256$1(utf8Encoder.encode(`nostr:delegation:${s.pubkey}:${i}`)),c=bytesToHex$1(schnorr.sign(a,o));return{from:getPublicKey(o),to:s.pubkey,cond:i,sig:c}}function getDelegator(o){let s=o.tags.find(w=>"delegation"===w[0]&&w.length>=4);if(!s)return null;let n=s[1],i=s[2],a=s[3],c=i.split("&");for(let w=0;w"===T&&o.created_at>parseInt(S)))return null}let y=sha256$1(utf8Encoder.encode(`nostr:delegation:${o.pubkey}:${i}`));return schnorr.verify(a,y,n)?n:null}__export(nip26_exports,{createDelegation:()=>createDelegation,getDelegator:()=>getDelegator});var nip27_exports={};__export(nip27_exports,{matchAll:()=>matchAll,regex:()=>regex,replaceAll:()=>replaceAll});var regex=()=>new RegExp(`\\b${NOSTR_URI_REGEX.source}\\b`,"g");function*matchAll(o){const s=o.matchAll(regex());for(const n of s)try{const[i,a]=n;yield{uri:i,value:a,decoded:decode(a),start:n.index,end:n.index+i.length}}catch{}}function replaceAll(o,s){return o.replaceAll(regex(),(n,i)=>s({uri:n,value:i,decoded:decode(i)}))}var nip28_exports={};__export(nip28_exports,{channelCreateEvent:()=>channelCreateEvent,channelHideMessageEvent:()=>channelHideMessageEvent,channelMessageEvent:()=>channelMessageEvent,channelMetadataEvent:()=>channelMetadataEvent,channelMuteUserEvent:()=>channelMuteUserEvent});var channelCreateEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:40,tags:[...o.tags??[]],content:n,created_at:o.created_at},s)},channelMetadataEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:41,tags:[["e",o.channel_create_event_id],...o.tags??[]],content:n,created_at:o.created_at},s)},channelMessageEvent=(o,s)=>{const n=[["e",o.channel_create_event_id,o.relay_url,"root"]];return o.reply_to_channel_message_event_id&&n.push(["e",o.reply_to_channel_message_event_id,o.relay_url,"reply"]),finishEvent({kind:42,tags:[...n,...o.tags??[]],content:o.content,created_at:o.created_at},s)},channelHideMessageEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:43,tags:[["e",o.channel_message_event_id],...o.tags??[]],content:n,created_at:o.created_at},s)},channelMuteUserEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:44,tags:[["p",o.pubkey_to_mute],...o.tags??[]],content:n,created_at:o.created_at},s)},nip39_exports={},_fetch2;__export(nip39_exports,{useFetchImplementation:()=>useFetchImplementation2,validateGithub:()=>validateGithub});try{_fetch2=fetch}catch{}function useFetchImplementation2(o){_fetch2=o}function validateGithub(o,s,n){return _validateGithub.apply(this,arguments)}function _validateGithub(){return _validateGithub=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){try{return(yield(yield _fetch2(`https://gist.github.com/${s}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${o}`}catch{return!1}}),_validateGithub.apply(this,arguments)}var nip42_exports={};__export(nip42_exports,{authenticate:()=>authenticate});var authenticate=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({challenge:s,relay:n,sign:i}){const a={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",n.url],["challenge",s]],content:""};return n.auth(yield i(a))});return function(n){return o.apply(this,arguments)}}(),nip44_exports={};__export(nip44_exports,{decrypt:()=>decrypt2,encrypt:()=>encrypt2,utils:()=>utils});var utils={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(o,s)=>secp256k1.getSharedSecret(o,"02"+s).subarray(1,33),getMessageKeys(o,s){const n=hkdf(sha256$1,o,s,"nip44-v2",76);return{encryption:n.subarray(0,32),nonce:n.subarray(32,44),auth:n.subarray(44,76)}},calcPadding(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<=utils.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const i=utils.v2.calcPadding(n),a=new Uint8Array(i-n),c=new Uint8Array(2);return new DataView(c.buffer).setUint16(0,n),concatBytes$1(c,s,a)},unpad(o){const s=new DataView(o.buffer).getUint16(0),n=o.subarray(2,2+s);if(0===s||n.length!==s||o.length!==2+utils.v2.calcPadding(s))throw new Error("invalid padding");return utf8Decoder.decode(n)}}};function encrypt2(o,s,n={}){const i=n.version??2;if(2!==i)throw new Error("unknown encryption version "+i);const a=n.salt??randomBytes$1(32);ensureBytes(a,32);const c=utils.v2.getMessageKeys(o,a),y=utils.v2.pad(s),w=chacha20(c.encryption,c.nonce,y),C=hmac(sha256$1,c.auth,w);return base64$1.encode(concatBytes$1(new Uint8Array([i]),a,w,C))}function decrypt2(o,s){const n=utils.v2;ensureBytes(o,32);const i=s.length;if(i=n.maxCiphertextSize)throw new Error("invalid ciphertext length: "+i);if("#"===s[0])throw new Error("unknown encryption version");let a;try{a=base64$1.decode(s)}catch(M){throw new Error("invalid base64: "+M.message)}const c=a.subarray(0,1)[0];if(2!==c)throw new Error("unknown encryption version "+c);const y=a.subarray(1,33),w=a.subarray(33,-32),C=a.subarray(-32),T=n.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,T.auth,w),C))throw new Error("invalid MAC");const S=chacha20(T.encryption,T.nonce,w);return n.unpad(S)}var nip47_exports={};function parseConnectionString(o){const{pathname:s,searchParams:n}=new URL(o),i=s,a=n.get("relay"),c=n.get("secret");if(!i||!a||!c)throw new Error("invalid connection string");return{pubkey:i,relay:a,secret:c}}function makeNwcRequestEvent(o){return _makeNwcRequestEvent.apply(this,arguments)}function _makeNwcRequestEvent(){return _makeNwcRequestEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({pubkey:o,secret:s,invoice:n}){const i={method:"pay_invoice",params:{invoice:n}},a=yield encrypt$1(s,o,JSON.stringify(i));return finishEvent({kind:23194,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o]]},s)}),_makeNwcRequestEvent.apply(this,arguments)}__export(nip47_exports,{makeNwcRequestEvent:()=>makeNwcRequestEvent,parseConnectionString:()=>parseConnectionString});var nip57_exports={},_fetch3;__export(nip57_exports,{getZapEndpoint:()=>getZapEndpoint,makeZapReceipt:()=>makeZapReceipt,makeZapRequest:()=>makeZapRequest,useFetchImplementation:()=>useFetchImplementation3,validateZapRequest:()=>validateZapRequest});try{_fetch3=fetch}catch{}function useFetchImplementation3(o){_fetch3=o}function getZapEndpoint(o){return _getZapEndpoint.apply(this,arguments)}function _getZapEndpoint(){return _getZapEndpoint=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){try{let s="",{lud06:n,lud16:i}=JSON.parse(o.content);if(n){let{words:y}=bech32$1.decode(n,1e3),w=bech32$1.fromWords(y);s=utf8Decoder.decode(w)}else{if(!i)return null;{let[y,w]=i.split("@");s=`https://${w}/.well-known/lnurlp/${y}`}}let a=yield _fetch3(s),c=yield a.json();if(c.allowsNostr&&c.nostrPubkey)return c.callback}catch{}return null}),_getZapEndpoint.apply(this,arguments)}function makeZapRequest({profile:o,event:s,amount:n,relays:i,comment:a=""}){if(!n)throw new Error("amount not given");if(!o)throw new Error("profile not given");let c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o],["amount",n.toString()],["relays",...i]]};return s&&c.tags.push(["e",s]),c}function validateZapRequest(o){let s;try{s=JSON.parse(o)}catch{return"Invalid zap request JSON."}if(!validateEvent(s))return"Zap request is not a valid Nostr event.";if(!verifySignature(s))return"Invalid signature on zap request.";let n=s.tags.find(([a,c])=>"p"===a&&c);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let i=s.tags.find(([a,c])=>"e"===a&&c);return i&&!i[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":s.tags.find(([a,c])=>"relays"===a&&c)?null:"Zap request doesn't have a 'relays' tag."}function makeZapReceipt({zapRequest:o,preimage:s,bolt11:n,paidAt:i}){let a=JSON.parse(o).tags.filter(([y])=>"e"===y||"p"===y||"a"===y),c={kind:9735,created_at:Math.round(i.getTime()/1e3),content:"",tags:[...a,["bolt11",n],["description",o]]};return s&&c.tags.push(["preimage",s]),c}var nip98_exports={};__export(nip98_exports,{getToken:()=>getToken,unpackEventFromToken:()=>unpackEventFromToken,validateEvent:()=>validateEvent2,validateToken:()=>validateToken});var _authorizationScheme="Nostr ";function getToken(o,s,n){return _getToken.apply(this,arguments)}function _getToken(){return _getToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n,i=!1){if(!o||!s)throw new Error("Missing loginUrl or httpMethod");const a=getBlankEvent(27235);a.tags=[["u",o],["method",s]],a.created_at=Math.round((new Date).getTime()/1e3);const c=yield n(a);return(i?_authorizationScheme:"")+base64$1.encode(utf8Encoder.encode(JSON.stringify(c)))}),_getToken.apply(this,arguments)}function validateToken(o,s,n){return _validateToken.apply(this,arguments)}function _validateToken(){return _validateToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){const i=yield unpackEventFromToken(o).catch(a=>{throw a});return yield validateEvent2(i,s,n).catch(a=>{throw a})}),_validateToken.apply(this,arguments)}function unpackEventFromToken(o){return _unpackEventFromToken.apply(this,arguments)}function _unpackEventFromToken(){return _unpackEventFromToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,n){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){if(!o)throw new Error("Invalid nostr event");if(!verifySignature(o))throw new Error("Invalid nostr event, signature invalid");if(27235!==o.kind)throw new Error("Invalid nostr event, kind invalid");if(!o.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-o.created_at>60)throw new Error("Invalid nostr event, expired");const i=o.tags.find(c=>"u"===c[0]);if(1!==i?.length&&i?.[1]!==s)throw new Error("Invalid nostr event, url tag invalid");const a=o.tags.find(c=>"method"===c[0]);if(1!==a?.length&&a?.[1].toLowerCase()!==n.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0}),_validateEvent.apply(this,arguments)}var browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var o=1e3,s=60*o,n=60*s,i=24*n,a=7*i;function y(w,C,T,S){var M=C>=1.5*T;return Math.round(w/T)+" "+S+(M?"s":"")}return ms=function(w,C){C=C||{};var S,M,T=typeof w;if("string"===T&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var M=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(M){var k=parseFloat(M[1]);switch((M[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return k*a;case"days":case"day":case"d":return k*i;case"hours":case"hour":case"hrs":case"hr":case"h":return k*n;case"minutes":case"minute":case"mins":case"min":case"m":return k*s;case"seconds":case"second":case"secs":case"sec":case"s":return k*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(w);if("number"===T&&isFinite(w))return C.long?(S=w,(M=Math.abs(S))>=i?y(S,M,i,"day"):M>=n?y(S,M,n,"hour"):M>=s?y(S,M,s,"minute"):M>=o?y(S,M,o,"second"):S+" ms"):function(S){var M=Math.abs(S);return M>=i?Math.round(S/i)+"d":M>=n?Math.round(S/n)+"h":M>=s?Math.round(S/s)+"m":M>=o?Math.round(S/o)+"s":S+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}function setup(o){function s(a){let c,y,w,C=null;function T(...S){if(!T.enabled)return;const M=T,k=Number(new Date);M.diff=k-(c||k),M.prev=c,M.curr=k,c=k,S[0]=s.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");let X=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(Z,ne)=>{if("%%"===Z)return"%";X++;const _e=s.formatters[ne];return"function"==typeof _e&&(Z=_e.call(M,S[X]),S.splice(X,1),X--),Z}),s.formatArgs.call(M,S),(M.log||s.log).apply(M,S)}return T.namespace=a,T.useColors=s.useColors(),T.color=s.selectColor(a),T.extend=n,T.destroy=s.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==C?C:(y!==s.namespaces&&(y=s.namespaces,w=s.enabled(a)),w),set:S=>{C=S}}),"function"==typeof s.init&&s.init(T),T}function n(a,c){const y=s(this.namespace+(void 0===c?":":c)+a);return y.log=this.log,y}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(i),...s.skips.map(i).map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){let c;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const y=("string"==typeof a?a:"").split(/[\s,]+/),w=y.length;for(c=0;c{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let y=0;y{"%%"!==w&&(c++,"%c"===w&&(y=c))}),i.splice(y,0,a)},s.save=function(i){try{i?s.storage.setItem("debug",i):s.storage.removeItem("debug")}catch{}},s.load=function(){let i;try{i=s.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i},s.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch{}}(),s.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),o.exports=common(s);const{formatters:n}=o.exports;n.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}(browser,browser.exports);var browserExports=browser.exports,debug3=getDefaultExportFromCjs(browserExports),dist={},LRUCache$1={},LRUCacheNode$1={};Object.defineProperty(LRUCacheNode$1,"__esModule",{value:!0}),LRUCacheNode$1.LRUCacheNode=void 0;class LRUCacheNode{constructor(s,n,i){const{entryExpirationTimeInMS:a=null,next:c=null,prev:y=null,onEntryEvicted:w,onEntryMarkedAsMostRecentlyUsed:C,clone:T,cloneFn:S}=i??{};if("number"==typeof a&&(a<=0||Number.isNaN(a)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.clone=null!=T&&T,this.cloneFn=S??this.defaultClone,this.key=s,this.internalValue=this.clone?this.cloneFn(n):n,this.created=Date.now(),this.entryExpirationTimeInMS=a,this.next=c,this.prev=y,this.onEntryEvicted=w,this.onEntryMarkedAsMostRecentlyUsed=C}get value(){return this.clone?this.cloneFn(this.internalValue):this.internalValue}get isExpired(){return"number"==typeof this.entryExpirationTimeInMS&&Date.now()-this.created>this.entryExpirationTimeInMS}invokeOnEvicted(){if(this.onEntryEvicted){const{key:s,value:n,isExpired:i}=this;this.onEntryEvicted({key:s,value:n,isExpired:i})}}invokeOnEntryMarkedAsMostRecentlyUsed(){if(this.onEntryMarkedAsMostRecentlyUsed){const{key:s,value:n}=this;this.onEntryMarkedAsMostRecentlyUsed({key:s,value:n})}}defaultClone(s){return"boolean"==typeof s||"string"==typeof s||"number"==typeof s?s:JSON.parse(JSON.stringify(s))}}LRUCacheNode$1.LRUCacheNode=LRUCacheNode,Object.defineProperty(LRUCache$1,"__esModule",{value:!0}),LRUCache$1.LRUCache=void 0;const LRUCacheNode_1=LRUCacheNode$1;class LRUCache{constructor(s){this.lookupTable=new Map,this.head=null,this.tail=null;const{maxSize:n=25,entryExpirationTimeInMS:i=null,onEntryEvicted:a,onEntryMarkedAsMostRecentlyUsed:c,cloneFn:y,clone:w}=s??{};if(Number.isNaN(n)||n<=0)throw new Error("maxSize must be greater than 0.");if("number"==typeof i&&(i<=0||Number.isNaN(i)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.maxSizeInternal=n,this.entryExpirationTimeInMS=i,this.onEntryEvicted=a,this.onEntryMarkedAsMostRecentlyUsed=c,this.clone=w,this.cloneFn=y}get size(){return this.cleanCache(),this.lookupTable.size}get remainingSize(){return this.maxSizeInternal-this.size}get newest(){return this.head?this.head.isExpired?(this.removeNodeFromListAndLookupTable(this.head),this.newest):this.mapNodeToEntry(this.head):null}get oldest(){return this.tail?this.tail.isExpired?(this.removeNodeFromListAndLookupTable(this.tail),this.oldest):this.mapNodeToEntry(this.tail):null}get maxSize(){return this.maxSizeInternal}set maxSize(s){if(Number.isNaN(s)||s<=0)throw new Error("maxSize must be greater than 0.");this.maxSizeInternal=s,this.enforceSizeLimit()}set(s,n,i){const a=this.lookupTable.get(s);a&&this.removeNodeFromListAndLookupTable(a);const c=new LRUCacheNode_1.LRUCacheNode(s,n,{entryExpirationTimeInMS:this.entryExpirationTimeInMS,onEntryEvicted:this.onEntryEvicted,onEntryMarkedAsMostRecentlyUsed:this.onEntryMarkedAsMostRecentlyUsed,clone:this.clone,cloneFn:this.cloneFn,...i});return this.setNodeAsHead(c),this.lookupTable.set(s,c),this.enforceSizeLimit(),this}get(s){const n=this.lookupTable.get(s);return n?n.isExpired?(this.removeNodeFromListAndLookupTable(n),null):(this.setNodeAsHead(n),n.value):null}peek(s){const n=this.lookupTable.get(s);return n?n.isExpired?(this.removeNodeFromListAndLookupTable(n),null):n.value:null}delete(s){const n=this.lookupTable.get(s);return!!n&&this.removeNodeFromListAndLookupTable(n)}has(s){const n=this.lookupTable.get(s);return!(!n||n.isExpired&&(this.removeNodeFromListAndLookupTable(n),1))}clear(){this.head=null,this.tail=null,this.lookupTable.clear()}find(s){let n=this.head;for(;n;){if(n.isExpired){const a=n.next;this.removeNodeFromListAndLookupTable(n),n=a;continue}const i=this.mapNodeToEntry(n);if(s(i))return this.setNodeAsHead(n),i;n=n.next}return null}forEach(s){let n=this.head,i=0;for(;n;)if(n.isExpired){const a=n.next;this.removeNodeFromListAndLookupTable(n),n=a}else s(n.value,n.key,i),n=n.next,i++}*values(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield s.value,s=s.next}*keys(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield s.key,s=s.next}*entries(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield this.mapNodeToEntry(s),s=s.next}*[Symbol.iterator](){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield this.mapNodeToEntry(s),s=s.next}enforceSizeLimit(){let s=this.tail;for(;null!==s&&this.size>this.maxSizeInternal;){const n=s.prev;this.removeNodeFromListAndLookupTable(s),s=n}}mapNodeToEntry({key:s,value:n}){return{key:s,value:n}}setNodeAsHead(s){this.removeNodeFromList(s),this.head?(s.next=this.head,this.head.prev=s,this.head=s):(this.head=s,this.tail=s),s.invokeOnEntryMarkedAsMostRecentlyUsed()}removeNodeFromList(s){null!==s.prev&&(s.prev.next=s.next),null!==s.next&&(s.next.prev=s.prev),this.head===s&&(this.head=s.next),this.tail===s&&(this.tail=s.prev),s.next=null,s.prev=null}removeNodeFromListAndLookupTable(s){return s.invokeOnEvicted(),this.removeNodeFromList(s),this.lookupTable.delete(s.key)}cleanCache(){if(!this.entryExpirationTimeInMS)return;const s=[];for(const n of this.lookupTable.values())n.isExpired&&s.push(n);s.forEach(n=>this.removeNodeFromListAndLookupTable(n))}}LRUCache$1.LRUCache=LRUCache,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),n(LRUCache$1,o)}(dist);var lib={};(function(o){function s(we){if(!Number.isSafeInteger(we))throw new Error(`Wrong integer: ${we}`)}function n(...we){const le=(ae,xe)=>Be=>ae(xe(Be));return{encode:Array.from(we).reverse().reduce((ae,xe)=>ae?le(ae,xe.encode):xe.encode,void 0),decode:we.reduce((ae,xe)=>ae?le(ae,xe.decode):xe.decode,void 0)}}function i(we){return{encode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("alphabet.encode input should be an array of numbers");return le.map(ae=>{if(s(ae),ae<0||ae>=we.length)throw new Error(`Digit index outside alphabet: ${ae} (alphabet: ${we.length})`);return we[ae]})},decode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("alphabet.decode input should be array of strings");return le.map(ae=>{if("string"!=typeof ae)throw new Error(`alphabet.decode: not string element=${ae}`);const xe=we.indexOf(ae);if(-1===xe)throw new Error(`Unknown letter: "${ae}". Allowed: ${we}`);return xe})}}}function a(we=""){if("string"!=typeof we)throw new Error("join separator should be string");return{encode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("join.encode input should be array of strings");for(let ae of le)if("string"!=typeof ae)throw new Error(`join.encode: non-string input=${ae}`);return le.join(we)},decode:le=>{if("string"!=typeof le)throw new Error("join.decode input should be string");return le.split(we)}}}function c(we,le="="){if(s(we),"string"!=typeof le)throw new Error("padding chr should be string");return{encode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let xe of ae)if("string"!=typeof xe)throw new Error(`padding.encode: non-string input=${xe}`);for(;ae.length*we%8;)ae.push(le);return ae},decode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let Be of ae)if("string"!=typeof Be)throw new Error(`padding.decode: non-string input=${Be}`);let xe=ae.length;if(xe*we%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;xe>0&&ae[xe-1]===le;xe--)if(!((xe-1)*we%8))throw new Error("Invalid padding: string has too much padding");return ae.slice(0,xe)}}}function y(we){if("function"!=typeof we)throw new Error("normalize fn should be function");return{encode:le=>le,decode:le=>we(le)}}function w(we,le,ae){if(le<2)throw new Error(`convertRadix: wrong from=${le}, base cannot be less than 2`);if(ae<2)throw new Error(`convertRadix: wrong to=${ae}, base cannot be less than 2`);if(!Array.isArray(we))throw new Error("convertRadix: data should be array");if(!we.length)return[];let xe=0;const Be=[],st=Array.from(we);for(st.forEach(lt=>{if(s(lt),lt<0||lt>=le)throw new Error(`Wrong integer: ${lt}`)});;){let lt=0,bt=!0;for(let at=xe;atle?C(le,we%le):we,T=(we,le)=>we+(le-C(we,le));function S(we,le,ae,xe){if(!Array.isArray(we))throw new Error("convertRadix2: data should be array");if(le<=0||le>32)throw new Error(`convertRadix2: wrong from=${le}`);if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong to=${ae}`);if(T(le,ae)>32)throw new Error(`convertRadix2: carry overflow from=${le} to=${ae} carryBits=${T(le,ae)}`);let Be=0,st=0;const lt=2**ae-1,bt=[];for(const at of we){if(s(at),at>=2**le)throw new Error(`convertRadix2: invalid data word=${at} from=${le}`);if(Be=Be<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${le}`);for(st+=le;st>=ae;st-=ae)bt.push((Be>>st-ae<)>>>0);Be&=2**st-1}if(Be=Be<=le)throw new Error("Excess padding");if(!xe&&Be)throw new Error(`Non-zero padding: ${Be}`);return xe&&st>0&&bt.push(Be>>>0),bt}function M(we){return s(we),{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(le),256,we)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(le,we,256))}}}function k(we,le=!1){if(s(we),we<=0||we>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,we)>32||T(we,8)>32)throw new Error("radix2: carry overflow");return{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(ae),8,we,!le)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(ae,we,8,le))}}}function R(we){if("function"!=typeof we)throw new Error("unsafeWrapper fn should be function");return function(...le){try{return we.apply(null,le)}catch{}}}function X(we,le){if(s(we),"function"!=typeof le)throw new Error("checksum fn should be function");return{encode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const xe=le(ae).slice(0,we),Be=new Uint8Array(ae.length+we);return Be.set(ae),Be.set(xe,ae.length),Be},decode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const xe=ae.slice(0,-we),Be=le(xe).slice(0,we),st=ae.slice(-we);for(let lt=0;ltwe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=n(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=n(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=we=>n(M(58),i(we),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const ne=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(we){let le="";for(let ae=0;aen(X(4,le=>we(we(le))),o.base58);const _e=n(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),pe=[996825010,642813549,513874426,1027748829,705979059];function de(we){const le=we>>25;let ae=(33554431&we)<<5;for(let xe=0;xe>xe&1)&&(ae^=pe[xe]);return ae}function De(we,le,ae=1){const xe=we.length;let Be=1;for(let st=0;st126)throw new Error(`Invalid prefix (${we})`);Be=de(Be)^lt>>5}Be=de(Be);for(let st=0;stat)throw new TypeError(`Wrong string length: ${bt.length} (${bt}). Expected (8..${at})`);const sn=bt.toLowerCase();if(bt!==sn&&bt!==bt.toUpperCase())throw new Error("String must be lowercase or uppercase");const fn=(bt=sn).lastIndexOf("1");if(0===fn||-1===fn)throw new Error('Letter "1" must be present between prefix and data only');const En=bt.slice(0,fn),Wn=bt.slice(fn+1);if(Wn.length<6)throw new Error("Data must be at least 6 characters long");const wn=_e.decode(Wn).slice(0,-6),Je=De(En,wn,le);if(!Wn.endsWith(Je))throw new Error(`Invalid checksum in ${bt}: expected "${Je}"`);return{prefix:En,words:wn}}return{encode:function(bt,at,sn=90){if("string"!=typeof bt)throw new Error("bech32.encode prefix should be string, not "+typeof bt);if(!Array.isArray(at)||at.length&&"number"!=typeof at[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof at);const fn=bt.length+7+at.length;if(!1!==sn&&fn>sn)throw new TypeError(`Length ${fn} exceeds limit ${sn}`);return`${bt=bt.toLowerCase()}1${_e.encode(at)}${De(bt,at,le)}`},decode:lt,decodeToBytes:function(bt){const{prefix:at,words:sn}=lt(bt,!1);return{prefix:at,words:sn,bytes:xe(sn)}},decodeUnsafe:R(lt),fromWords:xe,fromWordsUnsafe:st,toWords:Be}}o.bech32=Ee("bech32"),o.bech32m=Ee("bech32m"),o.utf8={encode:we=>(new TextDecoder).decode(we),decode:we=>(new TextEncoder).encode(we)},o.hex=n(k(4),i("0123456789abcdef"),a(""),y(we=>{if("string"!=typeof we||we.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof we} with length ${we.length}`);return we.toLowerCase()}));const Le={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Ae=`Invalid encoding type. Available types: ${Object.keys(Le).join(", ")}`;o.bytesToString=(we,le)=>{if("string"!=typeof we||!Le.hasOwnProperty(we))throw new TypeError(Ae);if(!(le instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Le[we].encode(le)},o.str=o.bytesToString,o.stringToBytes=(we,le)=>{if(!Le.hasOwnProperty(we))throw new TypeError(Ae);if("string"!=typeof le)throw new TypeError("stringToBytes() expects string");return Le[we].decode(le)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={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};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const n=s.relay.sub([o],{id:"auth-test"});n.on("eose",()=>{n.unsub(),s._status=1,s.ndkRelay.emit("ready"),s.debug("Authentication not required"),n.unsub()}),s.debug("Authentication request started")})()}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},n=()=>{o.updateConnectionStats.disconnected(),1===o._status&&(o._status=3,o.handleReconnection()),o.ndkRelay.emit("disconnect")},i=function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",n),o.relay.on("connect",s),o.relay.on("disconnect",n),o.relay.on("auth",i),yield o.relay.connect()}catch(a){throw o.debug("Failed to connect",a),o._status=3,a}})()}disconnect(){this._status=2,this.relay.close()}get status(){return this._status}isAvailable(){return 1===this._status}isFlapping(){const o=this._connectionStats.durations;if(o.length%3!=0)return!1;const s=o.reduce((i,a)=>i+a,0)/o.length,n=o.map(i=>Math.pow(i-s,2)).reduce((i,a)=>i+a,0)/o.length;return Math.sqrt(n)<1e3}handleNotice(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(n=>{this.debug("Reconnect failed",n),o<5?setTimeout(()=>{this.handleReconnection(o+1)},6e4):this.debug("Reconnect failed after 5 attempts")})},s)}updateConnectionStats={connected:()=>{this._connectionStats.success++,this._connectionStats.connectedAt=Date.now()},disconnected:()=>{this._connectionStats.connectedAt&&(this._connectionStats.durations.push(Date.now()-this._connectionStats.connectedAt),this._connectionStats.durations.length>100&&this._connectionStats.durations.shift()),this._connectionStats.connectedAt=void 0},attempt:()=>{this._connectionStats.attempts++}};get connectionStats(){return this._connectionStats}},NDKRelayPublisher=class{ndkRelay;constructor(o){this.ndkRelay=o}publish(o,s=2500){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,T)=>{try{n.publishEvent(o,s).then(S=>C(S)).catch(S=>T(S))}catch(S){T(S)}}),a=new Promise((C,T)=>{setTimeout(()=>T(new Error("Timeout")),s)}),c=()=>{i().then(C=>y(C)).catch(C=>w(C))};let y,w;return 1===n.ndkRelay.status?Promise.race([i(),a]):Promise.race([new Promise((C,T)=>{y=C,w=T,n.ndkRelay.once("connect",c)}),a]).finally(()=>{n.ndkRelay.removeListener("connect",c)})})()}publishEvent(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=yield o.toNostrEvent(),a=n.ndkRelay.connectivity.relay.publish(i);let c;const y=new Promise((C,T)=>{a.then(()=>{clearTimeout(c),n.ndkRelay.emit("published",o),C(!0)}).catch(S=>{clearTimeout(c),n.ndkRelay.debug("Publish failed",S,o.id),n.ndkRelay.emit("publish:failed",o,S),T(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,T)=>{c=setTimeout(()=>{n.ndkRelay.debug("Publish timed out",o.rawEvent()),n.ndkRelay.emit("publish:failed",o,"Timeout"),T(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const n of o){if(n.since||n.until)return null;const i=Object.keys(n||{}).sort().join("-");s.push(i)}return s.join("|")}function mergeFilters(o){const s={};return o.forEach(n=>{Object.entries(n).forEach(([i,a])=>{s[i]=Array.isArray(a)?void 0===s[i]?[...a]:Array.from(new Set([...s[i],...a])):a})}),s}var MAX_SUBID_LENGTH=20;function queryFullyFilled(o){return!(!filterIncludesIds(o.filter)||!resultHasAllRequestedIds(o))}function compareFilter(o,s){if(Object.keys(o).length!==Object.keys(s).length)return!1;for(const[n,i]of Object.entries(o)){const a=s[n];if(!a)return!1;if(Array.isArray(i)&&Array.isArray(a)){const c=i;for(const y of a)if(!c.includes(y))return!1}else if(a!==i)return!1}return!0}function filterIncludesIds(o){return!!o.ids}function resultHasAllRequestedIds(o){const s=o.filter.ids;return!!s&&s.length===o.eventFirstSeen.size}function generateSubId(o,s){const n=o.map(w=>w.subId).filter(Boolean),i=[],a=new Set,c=new Set;if(n.length>0)i.push(Array.from(new Set(n)).join(","));else{for(const w of s)for(const C of Object.keys(w))"kinds"===C?w.kinds?.forEach(T=>c.add(T)):a.add(C);c.size>0&&i.push("kinds:"+Array.from(c).join(",")),a.size>0&&i.push(Array.from(a).join(","))}let y=i.join("-");return y.length>MAX_SUBID_LENGTH&&(y=y.substring(0,MAX_SUBID_LENGTH)),1!==n.length&&(y+="-"+Math.floor(999*Math.random()).toString()),y}function filterFromId(o){let s;if(o.match(NIP33_A_REGEX)){const[n,i,a]=o.split(":"),c={authors:[i],kinds:[parseInt(n)]};return a&&(c["#d"]=[a]),c}try{switch(s=nip19_exports.decode(o),s.type){case"nevent":return{ids:[s.data.id]};case"note":return{ids:[s.data]};case"naddr":return{authors:[s.data.pubkey],"#d":[s.data.identifier],kinds:[s.data.kind]}}}catch{}return{ids:[o]}}function isNip33AValue(o){return null!==o.match(NIP33_A_REGEX)}var NIP33_A_REGEX=/^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/;function relaysFromBech32(o){try{const s=nip19_exports.decode(o);if(["naddr","nevent"].includes(s?.type)){const n=s.data;if(n?.relays)return n.relays.map(i=>new NDKRelay(i))}}catch{}return[]}var NDKGroupedSubscriptions=class extends lib$1.EventEmitter{subscriptions;req;debug;constructor(o,s){super(),this.subscriptions=o,this.debug=s||this.subscriptions[0].subscription.debug.extend("grouped");for(const n of o)this.handleSubscriptionClosure(n)}addSubscription(o){this.subscriptions.push(o),this.handleSubscriptionClosure(o)}eventReceived(o){for(const s of this.subscriptions)s.eventReceived(o)}eoseReceived(o){Array.from(this.subscriptions).forEach(function(){var s=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(n){n.subscription.eoseReceived(o)});return function(n){return s.apply(this,arguments)}}())}handleSubscriptionClosure(o){o.subscription.on("close",()=>{const s=this.subscriptions.findIndex(n=>n.subscription===o.subscription);this.subscriptions.splice(s,1),this.subscriptions.length<=0&&this.emit("close")})}map(o){return this.subscriptions.map(o)}[Symbol.iterator](){let o=0;const s=this.subscriptions;return{next:()=>omatchFilter(n,s))}};function findMatchingActiveSubscriptions(o,s){if(o.length!==s.length)return!1;for(let n=0;n{this.delayedItems.get(n)&&this.delayedItems.delete(n)}));let y=this.executionTimeoutsByGroupId.get(n);y&&"at-most"!==o.opts.groupableDelayType||(y=setTimeout(()=>{this.executeGroup(n,o)},o.opts.groupableDelay),this.executionTimeoutsByGroupId.set(n,y)),this.delayedTimers.has(n)?this.delayedTimers.get(n).push(y):this.delayedTimers.set(n,[y])}executeGroup(o,s){const n=this.delayedItems.get(o);this.delayedItems.delete(o);const i=this.delayedTimers.get(o);if(this.delayedTimers.delete(o),i)for(const a of i)clearTimeout(a);if(n){const a=n.subscriptions[0].filters.length,c=[];for(let y=0;yC.filters[y]);c.push(mergeFilters(w))}this.executeSubscriptions(o,n,c)}}executeSubscriptionsWhenConnected(o,s,n){const i=()=>{this.debug("new relay coming online for active subscription",{relay:this.ndkRelay.url,mergeFilters}),this.executeSubscriptionsConnected(o,s,n)};this.ndkRelay.once("ready",i),s.once("close",()=>{this.ndkRelay.removeListener("ready",i)})}executeSubscriptions(o,s,n){this.conn.isAvailable()?this.executeSubscriptionsConnected(o,s,n):this.executeSubscriptionsWhenConnected(o,s,n)}executeSubscriptionsConnected(o,s,n){const i=[];for(const{subscription:w}of s)i.push(w);const a=generateSubId(i,n);s.req=n;const c={id:a};(this.ndkRelay.trusted||i.every(w=>w.opts.skipVerification))&&(c.skipVerification=!0);const y=this.conn.relay.sub(n,c);return this.activeSubscriptions.set(y,s),o&&this.activeSubscriptionsByGroupId.set(o,{filters:n,sub:y}),y.on("event",w=>{const C=new NDKEvent(void 0,w);C.relay=this.ndkRelay,this.activeSubscriptions.get(y)?.eventReceived(C)}),y.on("eose",()=>{this.activeSubscriptions.get(y)?.eoseReceived(this.ndkRelay)}),s.once("close",()=>{y.unsub(),this.activeSubscriptions.delete(y),o&&this.activeSubscriptionsByGroupId.delete(o)}),this.executeSubscriptionsWhenConnected(o,s,n),y}executedFilters(){const o=new Map;for(const[,s]of this.activeSubscriptions)o.set(s.req,s.map(n=>n.subscription));return o}},NDKRelay=class extends lib$1.EventEmitter{url;scores;connectivity;subs;publisher;authPolicy;authRequired=!1;trusted=!1;complaining=!1;debug;constructor(o,s){super(),this.url=o,this.scores=new Map,this.debug=debug3(`ndk:relay:${o}`),this.connectivity=new NDKRelayConnectivity(this),this.subs=new NDKRelaySubscriptions(this),this.publisher=new NDKRelayPublisher(this),this.authPolicy=s}get status(){return this.connectivity.status}get connectionStats(){return this.connectivity.connectionStats}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class uD{relays;debug;ndk;constructor(s,n){this.relays=s,this.ndk=n,this.debug=n.debug.extend("relayset")}addRelay(s){this.relays.add(s)}static fromRelayUrls(s,n){const i=new Set;for(const a of s){const c=n.pool.relays.get(a);if(c)i.add(c);else{const y=new NDKRelay(a);n.pool.useTemporaryRelay(y),i.add(y)}}return new uD(new Set(i),n)}publish(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(T=>{C.publish(s,n).then(()=>{a.add(C),T()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),T()})}));if(yield Promise.all(w),0===a.size&&!y)throw new PublishError("No relay was able to receive the event",c);return a})()}size(){return this.relays.size}};function calculateRelaySetFromEvent(o,s){const n=new Set;return o.pool?.relays.forEach(i=>n.add(i)),new NDKRelaySet(n,o)}function getWriteRelaysFor(o,s){if(o.outboxTracker)return o.outboxTracker.data.get(s)?.writeRelays}function calculateRelaySetsFromFilter(o,s){const n=new Map,i=new Set;if(s.forEach(a=>{a.authors&&a.authors.forEach(c=>i.add(c))}),i.size>0){const a=new Map;for(const c of i){const y=getWriteRelaysFor(o,c);y&&y.size>0?(o.debug(`Adding ${y.size} relays for ${c}`),y.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})):o.explicitRelayUrls?.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})}for(const c of a.keys())n.set(c,[]);for(const c of s)if(c.authors)for(const[y,w]of a.entries()){const C=c.authors.filter(T=>w.includes(T));n.set(y,[...n.get(y),{...c,authors:C}])}else for(const y of a.keys())n.set(y,[...n.get(y),c])}else o.explicitRelayUrls?.forEach(a=>{n.set(a,s)});return n}function calculateRelaySetsFromFilters(o,s){return calculateRelaySetsFromFilter(o,s)}var DEFAULT_RELAYS=["wss://nos.lol","wss://relay.nostr.band","wss://relay.f7z.io","wss://relay.damus.io","wss://nostr.mom","wss://no.str.cr"],Zap=class extends lib$1.EventEmitter{ndk;zappedEvent;zappedUser;constructor(o){super(),this.ndk=o.ndk,this.zappedEvent=o.zappedEvent,this.zappedUser=o.zappedUser||this.ndk.getUser({hexpubkey:this.zappedEvent?.pubkey})}getZapEndpoint(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s,n,i,a;if(o.zappedUser&&(o.zappedUser.profile||(yield o.zappedUser.fetchProfile({groupable:!1})),s=(o.zappedUser.profile||{}).lud06,n=(o.zappedUser.profile||{}).lud16),n&&!n.startsWith("LNURL")){const[c,y]=n.split("@");i=`https://${y}/.well-known/lnurlp/${c}`}else if(s){const{words:c}=bech32.decode(s,1e3),y=bech32.fromWords(c);i=new TextDecoder("utf-8").decode(y)}if(!i)throw new Error("No zap endpoint found");try{const c=o.ndk.httpFetch||fetch,y=yield c(i);if(200!==y.status){const C=yield y.text();throw new Error(`Unable to fetch zap endpoint ${i}: ${C}`)}const w=yield y.json();return w?.allowsNostr&&(w?.nostrPubkey||w?.nostrPubKey)&&(a=w.callback),a}catch(c){throw new Error(`Unable to fetch zap endpoint ${i}: ${c}`)}})()}createZapRequest(o,s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,n,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let T;yield w.sign(a);try{T=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return T})()}getInvoice(o,s,n){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${n}?`+new URLSearchParams({amount:s.toString(),nostr:JSON.stringify(o.rawEvent())}))).json()).pr})()}generateZapRequest(o,s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const T=c.zappedEvent.referenceTags();w.tags.push(...T)}w.tags.push(["lnurl",y]);const C=new NDKEvent(c.ndk,w);return n&&(C.tags=C.tags.concat(n)),{event:C,zapEndpoint:y}})()}relays(){let o=[];return this.ndk?.pool?.relays&&(o=this.ndk.pool.urls()),o.length||(o=DEFAULT_RELAYS),o}};function mergeTags(o,s){const n=new Map,i=(a,c)=>a.every((y,w)=>y===c[w]);return o.concat(s).forEach(a=>{for(let[c,y]of n)if(i(y,a)||i(a,y))return void(a.length>=y.length&&n.set(c,a));n.set(a.join(","),a)}),Array.from(n.values())}function generateContentTags(o){return _generateContentTags.apply(this,arguments)}function _generateContentTags(){return _generateContentTags=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=[]){let n=[];const i=a=>{s.find(c=>c[0]===a[0]&&c[1]===a[1])||s.push(a)};return o=o.replace(/(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g,a=>{try{const c=a.split(/(@|nostr:)/)[2],{type:y,data:w}=nip19_exports.decode(c);let C;switch(y){case"npub":C=["p",w];break;case"nprofile":C=["p",w.pubkey];break;case"note":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"nevent":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:M,relays:k,author:R}=w;k&&0!==k.length||(k=[yield maybeGetEventRelayUrl(c)]),i(["e",M,k[0],"mention"]),R&&i(["p",R]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"naddr":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const M=[w.kind,w.pubkey,w.identifier].join(":");let k=w.relays??[];0===k.length&&(k=[yield maybeGetEventRelayUrl(c)]),i(["a",M,k[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return T.apply(this,arguments)}}()));break;default:return a}return C&&i(C),`nostr:${c}`}catch{return a}}),yield Promise.all(n),{content:o=o.replace(/#(\w+)/g,(a,c)=>{const y=["t",c];return s.find(w=>w[0]===y[0]&&w[1]===y[1])||s.push(y),a}),tags:s}}),_generateContentTags.apply(this,arguments)}function maybeGetEventRelayUrl(o){return _maybeGetEventRelayUrl.apply(this,arguments)}function _maybeGetEventRelayUrl(){return(_maybeGetEventRelayUrl=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const n=this.getMatchingTags("p");if(1!==n.length)throw new Error("No recipient could be determined and no explicit recipient was provided");o=this.ndk.getUser({hexpubkey:n[0][1]})}this.content=yield s?.encrypt(o,this.content)}),_encrypt.apply(this,arguments)}function decrypt(o,s){return _decrypt.apply(this,arguments)}function _decrypt(){return _decrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const n=new NDKEvent(this.ndk,{kind:getKind(this),content:""});return n.tag(this),16===n.kind&&n.tags.push(["k",`${this.kind}`]),s&&(yield n.sign(s)),o&&(yield n.publish()),n}),_repost.apply(this,arguments)}function getKind(o){return 1===o.kind?6:16}var NDKEvent=class ry extends lib$1.EventEmitter{ndk;created_at;content="";tags=[];kind;id="";sig;pubkey="";_author=void 0;relay;constructor(s,n){super(),this.ndk=s,this.created_at=n?.created_at,this.content=n?.content||"",this.tags=n?.tags||[],this.id=n?.id||"",this.sig=n?.sig,this.pubkey=n?.pubkey||"",this.kind=n?.kind}rawEvent(){return{created_at:this.created_at,content:this.content,tags:this.tags,kind:this.kind,pubkey:this.pubkey,id:this.id,sig:this.sig}}set author(s){this.pubkey=s.hexpubkey,this._author=void 0}get author(){if(this._author)return this._author;if(!this.ndk)throw new Error("No NDK instance found");const s=this.ndk.getUser({hexpubkey:this.pubkey});return this._author=s,s}tag(s,n){let i=[];if(s instanceof NDKUser){const a=["p",s.pubkey];n&&a.push(n),i.push(a)}else if(s instanceof ry){const a=s;i=a.referenceTags(n,a?.pubkey===this.pubkey);for(const y of a.getMatchingTags("p"))y[1]!==this.pubkey&&(this.tags.find(w=>"p"===w[0]&&w[1]===y[1])||this.tags.push(["p",y[1]]))}else i=[s];this.tags=mergeTags(this.tags,i)}toNostrEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s&&""===n.pubkey){const y=yield n.ndk?.signer?.user();n.pubkey=y?.hexpubkey||""}n.created_at||(n.created_at=Math.floor(Date.now()/1e3));const i=n.rawEvent(),{content:a,tags:c}=yield n.generateTags();i.content=a||"",i.tags=c;try{n.id=getEventHash(i)}catch{}return n.id&&(i.id=n.id),n.sig&&(i.sig=n.sig),i})()}isReplaceable=isReplaceable.bind(this);isEphemeral=isEphemeral.bind(this);isParamReplaceable=isParamReplaceable.bind(this);encode=encode.bind(this);encrypt=encrypt.bind(this);decrypt=decrypt.bind(this);getMatchingTags(s){return this.tags.filter(n=>n[0]===s)}tagValue(s){const n=this.getMatchingTags(s);if(0!==n.length)return n[0][1]}get alt(){return this.tagValue("alt")}set alt(s){this.removeTag("alt"),s&&this.tags.push(["alt",s])}removeTag(s){this.tags=this.tags.filter(n=>n[0]!==s)}sign(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s?n.author=yield s.user():(n.ndk?.assertSigner(),s=n.ndk.signer),yield n.generateTags(),n.isReplaceable()&&(n.created_at=Math.floor(Date.now()/1e3));const i=yield n.toNostrEvent();return n.sig=yield s.sign(i),n.sig})()}publish(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,n)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let n=[];const i=yield generateContentTags(s.content,s.tags),a=i.content;if(n=i.tags,s.kind&&s.isParamReplaceable()&&!s.getMatchingTags("d")[0]){const c=s.tagValue("title");let y=[...Array(c?6:16)].map(()=>Math.random().toString(36)[2]).join("");c&&c.length>0&&(y=c.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")+"-"+y),n.push(["d",y])}if((s.ndk?.clientName||s.ndk?.clientNip89)&&!s.tagValue("client")){const c=["client",s.ndk.clientName??""];s.ndk.clientNip89&&c.push(s.ndk.clientNip89),n.push(c)}return{content:a||"",tags:n}})()}muted(){const s=this.ndk?.mutedIds.get(this.pubkey);if(s&&"p"===s)return"author";const n=this.tagReference(),i=this.ndk?.mutedIds.get(n[1]);return i&&i===n[0]?"event":null}replaceableDTag(){if(this.kind&&this.kind>=3e4&&this.kind<=4e4){const s=this.getMatchingTags("d")[0];return s?s[1]:""}throw new Error("Event is not a parameterized replaceable event")}deduplicationKey(){return 0===this.kind||3===this.kind||this.kind&&this.kind>=1e4&&this.kind<2e4?`${this.kind}:${this.pubkey}`:this.tagId()}tagId(){return this.isParamReplaceable()?this.tagAddress():this.id}tagAddress(){if(!this.isParamReplaceable())throw new Error("This must only be called on replaceable events");const s=this.replaceableDTag();return`${this.kind}:${this.pubkey}:${s}`}tagReference(s){let n;return n=this.isParamReplaceable()?["a",this.tagAddress()]:["e",this.tagId()],n.push(this.relay?this.relay.url:""),s&&n.push(s),n}referenceTags(s,n){let i=[];return i=this.isParamReplaceable()?[["a",this.tagAddress()],["e",this.id]]:[["e",this.id]],this.relay?.url?i=i.map(a=>(a.push(this.relay?.url),a)):s&&(i=i.map(a=>(a.push(""),a))),s&&i.forEach(a=>a.push(s)),n||i.push(...this.author.referenceTags()),i}filter(){return this.isParamReplaceable()?{"#a":[this.tagId()]}:{"#e":[this.tagId()]}}zap(s,n,i,a,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,n,i,C,c)})()}delete(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("No NDK instance found");n.ndk.assertSigner();const i=new ry(n.ndk,{kind:5,content:s||""});return i.tag(n),yield i.publish(),i})()}repost=repost.bind(this);react(s,n=!0){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new ry(i.ndk,{kind:7,content:s});return a.tag(i),n?yield a.publish():yield a.sign(),a})()}get isValid(){return!0}},READ_MARKER="read",WRITE_MARKER="write",NDKRelayList=class dD extends NDKEvent{constructor(s,n){super(s,n),this.kind??=10002}static from(s){return new dD(s.ndk,s.rawEvent())}get readRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===READ_MARKER).map(s=>s[1])}set readRelayUrls(s){for(const n of s)this.tags.push(["r",n,READ_MARKER])}get writeRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===WRITE_MARKER).map(s=>s[1])}set writeRelayUrls(s){for(const n of s)this.tags.push(["r",n,WRITE_MARKER])}get bothRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]).map(s=>s[1])}set bothRelayUrls(s){for(const n of s)this.tags.push(["r",n])}get relays(){return this.getMatchingTags("r").map(s=>s[1])}},NDKSubscriptionCacheUsage=(o=>(o.ONLY_CACHE="ONLY_CACHE",o.CACHE_FIRST="CACHE_FIRST",o.PARALLEL="PARALLEL",o.ONLY_RELAY="ONLY_RELAY",o))(NDKSubscriptionCacheUsage||{}),defaultOpts={closeOnEose:!1,cacheUsage:"CACHE_FIRST",groupable:!0,groupableDelay:100,groupableDelayType:"at-most"},NDKSubscription=class extends lib$1.EventEmitter{subId;filters;opts;pool;skipVerification=!1;skipValidation=!1;relayFilters;relaySet;ndk;debug;eoseDebug;eventFirstSeen=new Map;eosesSeen=new Set;eventsPerRelay=new Map;lastEventReceivedAt;internalId;constructor(o,s,n,i,a){if(super(),this.ndk=o,this.pool=n?.pool||o.pool,this.opts={...defaultOpts,...n||{}},this.filters=s instanceof Array?s:[s],this.subId=a||n?.subId,this.internalId=Math.random().toString(36).substring(7),this.relaySet=i,this.debug=o.debug.extend(`subscription[${n?.subId??this.internalId}]`),this.eoseDebug=this.debug.extend("eose"),this.skipVerification=n?.skipVerification||!1,this.skipValidation=n?.skipValidation||!1,this.opts.closeOnEose||this.debug("Creating a permanent subscription",this.opts,JSON.stringify(this.filters)),"ONLY_CACHE"===this.opts.cacheUsage&&!this.opts.closeOnEose)throw new Error("Cannot use cache-only options with a persistent subscription")}get filter(){return this.filters[0]}isGroupable(){return this.opts?.groupable||!1}shouldQueryCache(){return"ONLY_RELAY"!==this.opts?.cacheUsage}shouldQueryRelays(){return"ONLY_CACHE"!==this.opts?.cacheUsage}shouldWaitForCache(){return this.opts.closeOnEose&&!!this.ndk.cacheAdapter?.locking&&"PARALLEL"!==this.opts.cacheUsage}start(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,n=!1){if(s&&(o.relay=s),s||(s=o.relay),this.skipValidation||o.isValid){if(!n&&s){let i=this.eventsPerRelay.get(s);if(i||(i=new Set,this.eventsPerRelay.set(s,i)),i.add(o.id),this.eventFirstSeen.has(o.id)){const a=Date.now()-(this.eventFirstSeen.get(o.id)||0);return s.scoreSlowerEvent(a),void this.emit("event:dup",o,s,a,this)}this.ndk.cacheAdapter&&this.ndk.cacheAdapter.setEvent(o,this.filters,s),this.eventFirstSeen.set(o.id,Date.now())}else this.eventFirstSeen.set(o.id,0);o.ndk||(o.ndk=this.ndk),this.emit("event",o,s,this),this.lastEventReceivedAt=Date.now()}else this.debug("Event failed validation",o)}eoseTimeout;eoseReceived(o){this.eosesSeen.add(o),this.eoseDebug(`received from ${o.url}`);let s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0;const n=this.eosesSeen.size===this.relayFilters?.size;if(queryFullyFilled(this))this.emit("eose"),this.eoseDebug("Query fully filled"),this.opts?.closeOnEose&&this.stop();else if(n)this.emit("eose"),this.eoseDebug("All EOSEs seen"),this.opts?.closeOnEose&&this.stop();else{let i=1e3;const a=this.eosesSeen.size/this.relayFilters.size;if(this.eosesSeen.size>=2&&a>=.5){i*=1-a,this.eoseTimeout&&clearTimeout(this.eoseTimeout);const c=()=>{s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0,void 0!==s&&s<20?this.eoseTimeout=setTimeout(c,i):(this.emit("eose"),this.opts?.closeOnEose&&this.stop())};this.eoseTimeout=setTimeout(c,i)}}}};function follows(o,s){return _follows.apply(this,arguments)}function _follows(){return _follows=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n=3){if(!this.ndk)throw new Error("NDK not set");const i=Array.from(yield this.ndk.fetchEvents({kinds:[n],authors:[this.pubkey]},o||{groupable:!1}))[0];if(i){const a=new Set;return i.tags.forEach(c=>{if("p"===c[0])try{a.add(c[1]),s&&this.ndk?.outboxTracker?.trackUsers([c[1]])}catch{}}),[...a].reduce((c,y)=>{const w=new NDKUser({pubkey:y});return w.ndk=this.ndk,c.add(w),c},new Set)}return new Set}),_follows.apply(this,arguments)}function profileFromEvent(o){const s={};let n;try{n=JSON.parse(o.content)}catch(i){throw new Error(`Failed to parse profile event: ${i}`)}return Object.keys(n).forEach(i=>{switch(i){case"name":s.name=n.name;break;case"display_name":s.displayName=n.display_name;break;case"image":case"picture":s.image=n.image||n.picture;break;case"banner":s.banner=n.banner;break;case"bio":s.bio=n.bio;break;case"nip05":s.nip05=n.nip05;break;case"lud06":s.lud06=n.lud06;break;case"lud16":s.lud16=n.lud16;break;case"about":s.about=n.about;break;case"zapService":s.zapService=n.zapService;break;case"website":s.website=n.website;break;default:s[i]=n[i]}}),s}function serializeProfile(o){const s={};for(const[n,i]of Object.entries(o))switch(n){case"username":case"name":s.name=i;break;case"displayName":s.display_name=i;break;case"image":case"picture":s.picture=i;break;case"bio":case"about":s.about=i;break;default:s[n]=i}return JSON.stringify(s)}var NDKList=class hD extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,n){super(s,n),this.kind??=30001}static from(s){return new hD(s.ndk,s.rawEvent())}get title(){const s=this.tagValue("title")||this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set title(s){if(this.removeTag("title"),this.removeTag("name"),!s)throw new Error("Title cannot be empty");this.tags.push(["title",s])}get name(){const s=this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set name(s){if(this.removeTag("name"),!s)throw new Error("Name cannot be empty");this.tags.push(["title",s])}get description(){return this.tagValue("description")}set description(s){s?this.tags.push(["description",s]):this.removeTag("description")}isEncryptedTagsCacheValid(){return!(!this._encryptedTags||this.encryptedTagsLength!==this.content.length)}encryptedTags(s=!0){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s&&n.isEncryptedTagsCacheValid())return n._encryptedTags;if(!n.ndk)throw new Error("NDK instance not set");if(!n.ndk.signer)throw new Error("NDK signer not set");const i=yield n.ndk.signer.user();try{if(n.content.length>0)try{const a=yield n.ndk.signer.decrypt(i,n.content),c=JSON.parse(a);return c&&c[0]?(n.encryptedTagsLength=n.content.length,n._encryptedTags=c):(n.encryptedTagsLength=n.content.length,n._encryptedTags=[])}catch{console.log(`error decrypting ${n.content}`)}}catch{}return[]})()}validateTag(s){return!0}get items(){return this.tags.filter(s=>!["d","L","l","title","name","description","summary","image","thumb","alt","expiration","subject"].includes(s[0]))}addItem(s,n=void 0,i=!1){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(n&&c[0].push(n),i){const y=yield a.ndk.signer.user(),w=yield a.encryptedTags();w.push(...c),a._encryptedTags=w,a.encryptedTagsLength=a.content.length,a.content=JSON.stringify(w),yield a.encrypt(y)}else a.tags.push(...c);a.created_at=Math.floor(Date.now()/1e3),a.emit("change")})()}removeItem(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(n){const a=yield i.ndk.signer.user(),c=yield i.encryptedTags();c.splice(s,1),i._encryptedTags=c,i.encryptedTagsLength=i.content.length,i.content=JSON.stringify(c),yield i.encrypt(a)}else i.tags.splice(s,1);return i.created_at=Math.floor(Date.now()/1e3),i.emit("change"),i})()}},lists_default=NDKList;function pin(o,s,n){return _pin.apply(this,arguments)}function _pin(){return _pin=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){if(!this.ndk)throw new Error("No NDK instance found");if(this.ndk.assertSigner(),!s){const i=yield this.ndk.fetchEvents({kinds:[10001],authors:[this.pubkey]},{cacheUsage:"ONLY_RELAY"});s=i.size>0?lists_default.from(Array.from(i)[0]):new NDKEvent(this.ndk,{kind:10001})}return s.tag(o),n&&(yield s.publish()),s}),_pin.apply(this,arguments)}var NIP05_REGEX=/^(?:([\w.+-]+)@)?([\w.-]+)$/;function getNip05For(o){return _getNip05For.apply(this,arguments)}function _getNip05For(){return _getNip05For=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=fetch,n={}){const i=o.match(NIP05_REGEX);if(!i)return null;const[a,c="_",y]=i;try{const w=yield s(`https://${y}/.well-known/nostr.json?name=${c}`,n),{names:C,relays:T,nip46:S}=parseNIP05Result(yield w.json()),M=C[c];return M?{pubkey:M,relays:T?.[M],nip46:S?.[M]}:null}catch{return null}}),_getNip05For.apply(this,arguments)}function parseNIP05Result(o){const s={names:{}};for(const[n,i]of Object.entries(o.names))"string"==typeof n&&"string"==typeof i&&(s.names[n]=i);if(o.relays){s.relays={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.relays[n]=i.filter(a=>"string"==typeof a))}if(o.nip46){s.nip46={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.nip46[n]=i.filter(a=>"string"==typeof a))}return s}var NDKUser=class Sw{ndk;profile;_npub;_pubkey;relayUrls=[];nip46Urls=[];constructor(s){s.npub&&(this._npub=s.npub),s.hexpubkey&&(this._pubkey=s.hexpubkey),s.pubkey&&(this._pubkey=s.pubkey),s.relayUrls&&(this.relayUrls=s.relayUrls),s.nip46Urls&&(this.nip46Urls=s.nip46Urls)}get npub(){if(!this._npub){if(!this._pubkey)throw new Error("hexpubkey not set");this._npub=nip19_exports.npubEncode(this.pubkey)}return this._npub}set npub(s){this._npub=s}get hexpubkey(){return this.pubkey}set hexpubkey(s){this._pubkey=s}get pubkey(){if(!this._pubkey){if(!this._npub)throw new Error("npub not set");this._pubkey=nip19_exports.decode(this.npub).data}return this._pubkey}set pubkey(s){this._pubkey=s}static fromNip05(s,n,i=!1){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n?.cacheAdapter&&n.cacheAdapter.loadNip05){const y=yield n.cacheAdapter.loadNip05(s);if(y){const w=new Sw({pubkey:y.pubkey,relayUrls:y.relays,nip46Urls:y.nip46});return w.ndk=n,w}}let a={};i&&(a.cache="no-cache");const c=yield getNip05For(s,n?.httpFetch,a);if(c&&n?.cacheAdapter&&n.cacheAdapter.saveNip05&&n?.cacheAdapter.saveNip05(s,c),c){const y=new Sw({pubkey:c.pubkey,relayUrls:c.relays,nip46Urls:c.nip46});return y.ndk=n,y}})()}fetchProfile(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("NDK not set");n.profile||(n.profile={});let i=null;if(n.ndk.cacheAdapter&&n.ndk.cacheAdapter.fetchProfile&&"ONLY_RELAY"!==s?.cacheUsage){const c=yield n.ndk.cacheAdapter.fetchProfile(n.pubkey);if(c)return n.profile=c,c}!s&&n.ndk.cacheAdapter&&n.ndk.cacheAdapter.locking&&(i=yield n.ndk.fetchEvents({kinds:[0],authors:[n.pubkey]},{cacheUsage:"ONLY_CACHE",closeOnEose:!0,groupable:!1}),s={cacheUsage:"ONLY_RELAY",closeOnEose:!0,groupable:!0,groupableDelay:250}),i&&0!==i.size||(i=yield n.ndk.fetchEvents({kinds:[0],authors:[n.pubkey]},s));const a=Array.from(i).sort((c,y)=>c.created_at-y.created_at);return 0===a.length?null:(n.profile=profileFromEvent(a[0]),n.profile&&n.ndk.cacheAdapter&&n.ndk.cacheAdapter.saveProfile&&n.ndk.cacheAdapter.saveProfile(n.pubkey,n.profile),n.profile)})()}follows=follows.bind(this);pin=pin.bind(this);relayList(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const n=s.ndk.outboxPool||s.ndk.pool,i=new Set;for(const y of n.relays.values())i.add(y);const a=new NDKRelaySet(i,s.ndk),c=yield s.ndk.fetchEvent({kinds:[10002],authors:[s.pubkey]},{closeOnEose:!0,pool:n,groupable:!0,subId:`relay-list-${s.pubkey.slice(0,6)}`},a);return c?NDKRelayList.from(c):yield s.relayListFromKind3()})()}relayListFromKind3(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const n=yield s.ndk.fetchEvent({kinds:[3],authors:[s.pubkey]});if(n)try{const i=JSON.parse(n.content),a=new NDKRelayList(s.ndk),c=new Set,y=new Set;for(const[w,C]of Object.entries(i))if(C){const T=C;T.write&&y.add(w),T.read&&c.add(w)}else c.add(w),y.add(w);return a.readRelayUrls=Array.from(c),a.writeRelayUrls=Array.from(y),a}catch{}})()}tagReference(){return["p",this.pubkey]}referenceTags(s){const n=[["p",this.pubkey]];return s&&n[0].push("",s),n}publish(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,n,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),n||(n=yield a.follows(void 0,void 0,i)),n.has(s))return!1;n.add(s);const c=new NDKEvent(a.ndk,{kind:i});for(const y of n)c.tag(y);return yield c.publish(),!0})()}validateNip05(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("No NDK instance found");const i=yield getNip05For(s);return null===i?null:i.pubkey===n.pubkey})()}zap(s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,n,i,w,a)})()}},NDKPrivateKeySigner=class fD{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new fD(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.privateKey)throw Error("Attempted to sign without a private key");return getSignature(s,n.privateKey)})()}encrypt(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,n)})()}decrypt(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,n)})()}},NDKNostrRpc=class extends lib$1.EventEmitter{ndk;signer;debug;constructor(o,s,n){super(),this.ndk=o,this.signer=s,this.debug=n.extend("rpc")}subscribe(o){var s=this;const n=this.ndk.subscribe(o,{closeOnEose:!1,groupable:!1});return n.on("event",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{n.on("eose",()=>i(n))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=s.ndk.getUser({hexpubkey:o.pubkey});n.ndk=s.ndk;const i=yield s.signer.decrypt(n,o.content),a=JSON.parse(i),{id:c,method:y,params:w,result:C,error:T}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:T,event:o}})()}sendResponse(o,s,n,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:n};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),yield T.publish()})()}sendRequest(o,s,n=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),T={id:y,method:s,params:n},S=new Promise(k=>{const R=X=>{"auth_url"===X.result?(c.once(`response-${y}`,R),c.emit("authUrl",X.error)):a&&a(X)};c.once(`response-${y}`,R)}),M=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(T),tags:[["p",o]],pubkey:w.pubkey});return M.content=yield c.signer.encrypt(C,M.content),yield M.sign(c.signer),c.debug(`sending ${s} request to`,o),yield M.publish(),S})()}},NDKNip46Signer=class extends lib$1.EventEmitter{ndk;remoteUser;remotePubkey;token;localSigner;nip05;rpc;debug;relayUrls=[];constructor(o,s,n){let i,a;if(super(),s.includes("#")){const c=s.split("#");i=new NDKUser({npub:c[0]}).pubkey,a=c[1]}else s.startsWith("npub")?i=new NDKUser({npub:s}).pubkey:s.match(/\./)?this.nip05=s:i=s;this.ndk=o,i&&(this.remotePubkey=i),this.token=a,this.debug=o.debug.extend("nip46:signer"),this.remoteUser=new NDKUser({pubkey:i}),this.localSigner=n||NDKPrivateKeySigner.generate(),this.rpc=new NDKNostrRpc(o,this.localSigner,this.debug),this.rpc.on("authUrl",(...c)=>{this.emit("authUrl",...c)}),this.localSigner.user().then(c=>{this.rpc.subscribe({kinds:[24133,24134],"#p":[c.pubkey]})})}user(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),n=o.ndk.getUser({pubkey:o.remotePubkey});if(o.nip05&&!o.remotePubkey&&NDKUser.fromNip05(o.nip05).then(i=>{i&&(o.remoteUser=i,o.remotePubkey=i.pubkey,o.relayUrls=i.nip46Urls)}),!o.remotePubkey)throw new Error("Remote pubkey not set");return new Promise((i,a)=>{setTimeout(()=>{const c=[s.pubkey];o.token&&c.push(o.token),o.rpc.sendRequest(o.remotePubkey,"connect",c,24133,y=>{"ack"===y.result?i(n):a(y.error)})},100)})})()}encrypt(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.debug("asking for encryption"),new Promise((i,a)=>{n.rpc.sendRequest(n.remotePubkey,"nip04_encrypt",[o.pubkey,s],24133,c=>{c.error?a(c.error):i(c.result)})})})()}decrypt(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.debug("asking for decryption"),new Promise((i,a)=>{n.rpc.sendRequest(n.remotePubkey,"nip04_decrypt",[o.pubkey,s],24133,c=>{if(c.error)a(c.error);else{const y=JSON.parse(c.result);i(y[0])}})})})()}sign(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((n,i)=>{s.rpc.sendRequest(s.remotePubkey,"sign_event",[JSON.stringify(o)],24133,a=>{if(s.debug("got a response",a),a.error)i(a.error);else{const c=JSON.parse(a.result);n(c.sig)}})})})()}createAccount(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),n&&a.push(n),new Promise((c,y)=>{i.rpc.sendRequest(i.remotePubkey,"create_account",a,24134,w=>{i.debug("got a response",w),w.error?y(w.error):c(w.result)})})})()}};function dedup(o,s){return o.created_at>s.created_at?o:s}var OutboxItem=class{type;relayUrlScores;readRelays;writeRelays;constructor(o){this.type=o,this.relayUrlScores=new Map,this.readRelays=new Set,this.writeRelays=new Set}},OutboxTracker=class extends lib$1.EventEmitter{data;ndk;debug;constructor(o){super(),this.ndk=o,this.debug=o.debug.extend("outbox-tracker"),this.data=new dist.LRUCache({maxSize:1e5,entryExpirationTimeInMS:5e3})}trackUsers(o){for(const s of o){const n=getKeyFromItem(s);if(this.data.has(n))continue;const i=this.track(s,"user"),a=s instanceof NDKUser?s:new NDKUser({hexpubkey:s});a.ndk=this.ndk,a.relayList().then(c=>{if(c){i.readRelays=new Set(c.readRelayUrls),i.writeRelays=new Set(c.writeRelayUrls);for(const y of i.readRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from read relays`),i.readRelays.delete(y));for(const y of i.writeRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from write relays`),i.writeRelays.delete(y));this.data.set(n,i),this.debug(`Adding ${i.readRelays.size} read relays and ${i.writeRelays.size} write relays for ${a.hexpubkey}`)}})}}track(o,s){const n=getKeyFromItem(o);s??=getTypeFromItem(o);let i=this.data.get(n);return i||(i=new OutboxItem(s)),this.data.set(n,i),i}};function getKeyFromItem(o){return o instanceof NDKUser?o.hexpubkey:o}function getTypeFromItem(o){return o instanceof NDKUser?"user":"kind"}var NDKPool=class extends lib$1.EventEmitter{relays=new Map;blacklistRelayUrls;debug;temporaryRelayTimers=new Map;flappingRelays=new Set;backoffTimes=new Map;constructor(o=[],s=[],n,i){super(),this.debug=i??n.debug.extend("pool");for(const a of o){const c=new NDKRelay(a);this.addRelay(c,!1)}this.blacklistRelayUrls=new Set(s)}useTemporaryRelay(o,s=6e5){const n=this.relays.has(o.url);n||this.addRelay(o);const i=this.temporaryRelayTimers.get(o.url);if(i&&clearTimeout(i),!n||i){const a=setTimeout(()=>{this.removeRelay(o.url)},s);this.temporaryRelayTimers.set(o.url,a)}}addRelay(o,s=!0){var n=this;const i=o.url;this.blacklistRelayUrls?.has(i)?this.debug(`Relay ${i} is blacklisted`):(o.on("notice",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c,y){return n.emit("notice",c,y)});return function(c,y){return a.apply(this,arguments)}}()),o.on("connect",()=>this.handleRelayConnect(i)),o.on("ready",()=>this.handleRelayReady(o)),o.on("disconnect",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.emit("relay:disconnect",o)})),o.on("flapping",()=>this.handleFlapping(o)),o.on("auth",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){return n.emit("relay:auth",o,c)});return function(c){return a.apply(this,arguments)}}()),this.relays.set(i,o),s&&o.connect().catch(a=>{this.debug(`Failed to connect to relay ${i}`,a)}))}removeRelay(o){const s=this.relays.get(o);if(s)return s.disconnect(),this.relays.delete(o),this.emit("relay:disconnect",s),!0;const n=this.temporaryRelayTimers.get(o);return n&&(clearTimeout(n),this.temporaryRelayTimers.delete(o)),!1}getRelay(o,s=!0){let n=this.relays.get(o);return n||(n=new NDKRelay(o),this.addRelay(n,s)),n}handleRelayConnect(o){this.debug(`Relay ${o} connected`),this.emit("relay:connect",this.relays.get(o)),this.stats().connected===this.relays.size&&this.emit("connect")}handleRelayReady(o){this.debug(`Relay ${o.url} ready`),this.emit("relay:ready",o)}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=[];s.debug(`Connecting to ${s.relays.size} relays${o?`, timeout ${o}...`:""}`);for(const i of s.relays.values())if(o){const a=new Promise((c,y)=>{setTimeout(()=>y(`Timed out after ${o}ms`),o)});n.push(Promise.race([i.connect(),a]).catch(c=>{s.debug(`Failed to connect to relay ${i.url}: ${c??"No reason specified"}`)}))}else n.push(i.connect());o&&setTimeout(()=>{const i=s.stats().connected===s.relays.size,a=s.stats().connected>0;!i&&a&&s.emit("connect")},o),yield Promise.all(n)})()}checkOnFlappingRelays(){if(this.flappingRelays.size/this.relays.size>=.8)for(const o of this.flappingRelays)this.backoffTimes.set(o,0)}handleFlapping(o){this.debug(`Relay ${o.url} is flapping`);let s=this.backoffTimes.get(o.url)||5e3;s*=2,this.backoffTimes.set(o.url,s),this.debug(`Backoff time for ${o.url} is ${s}ms`),setTimeout(()=>{this.debug(`Attempting to reconnect to ${o.url}`),o.connect(),this.checkOnFlappingRelays()},s),o.disconnect(),this.emit("flapping",o)}size(){return this.relays.size}stats(){const o={total:0,connected:0,disconnected:0,connecting:0};for(const s of this.relays.values())o.total++,1===s.status?o.connected++:3===s.status?o.disconnected++:0===s.status&&o.connecting++;return o}connectedRelays(){return Array.from(this.relays.values()).filter(o=>1===o.status)}urls(){return Array.from(this.relays.keys())}};function correctRelaySet(o,s){const n=s.connectedRelays();if(!Array.from(o.relays).some(i=>n.map(a=>a.url).includes(i.url)))for(const i of n)o.addRelay(i);if(0===n.length)for(const i of s.relays.values())o.addRelay(i);return o}var SPEC_PATH="/.well-known/nostr/nip96.json",Nip96=class{ndk;spec;url;nip98Required=!1;constructor(o,s){this.url=`https://${o}${SPEC_PATH}`,this.ndk=s}prepareUpload(o,s="POST"){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n.validateHttpFetch(),n.spec||(yield n.fetchSpec()),!n.spec)throw new Error("Failed to fetch NIP96 spec");let i={};return n.nip98Required&&(i={Authorization:yield n.generateNip98Header(n.spec.api_url,s,o)}),{url:n.spec.api_url,headers:i}})()}xhrUpload(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield n.prepareUpload(s,i);o.open(i,a,!0),c.Authorization&&o.setRequestHeader("Authorization",c.Authorization);const y=new FormData;return y.append("file",s),new Promise((w,C)=>{o.onload=function(){o.status>=200&&o.status<300?w(JSON.parse(o.responseText)):C(new Error(o.statusText))},o.onerror=function(){C(new Error("Network Error"))},o.send(y)})})()}upload(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n="POST",{url:i,headers:a}=yield s.prepareUpload(o,n),c=new FormData;c.append("file",o);const y=yield s.ndk.httpFetch(s.spec.api_url,{method:n,headers:a,body:c});if(200!==y.status)throw new Error(`Failed to upload file to ${i}`);const w=yield y.json();if("success"!==w.status)throw new Error(w.message);return w})()}validateHttpFetch(){if(!this.ndk)throw new Error("NDK is required to fetch NIP96 spec");if(!this.ndk.httpFetch)throw new Error("NDK must have an httpFetch method to fetch NIP96 spec")}fetchSpec(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const n=yield s.json();if(!n)throw new Error(`Failed to parse NIP96 spec from ${o.url}`);o.spec=n,o.nip98Required=o.spec.plans.free.is_nip98_required})()}generateNip98Header(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(n);a.tags.push(["payload",c])}return yield a.sign(),`Nostr ${btoa(JSON.stringify(a.rawEvent()))}`})()}calculateSha256(o){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.arrayBuffer(),n=yield crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")})()}},DEFAULT_OUTBOX_RELAYS=["wss://purplepag.es","wss://relay.snort.social"],DEFAULT_BLACKLISTED_RELAYS=["wss://brb.io"],NDK=class extends lib$1.EventEmitter{explicitRelayUrls;pool;outboxPool;_signer;_activeUser;cacheAdapter;debug;devWriteRelaySet;outboxTracker;mutedIds;clientName;clientNip89;relayAuthDefaultPolicy;httpFetch;autoConnectUserRelays=!0;autoFetchUserMutelist=!0;constructor(o={}){var s;super(),s=this,this.debug=o.debug||debug3("ndk"),this.explicitRelayUrls=o.explicitRelayUrls||[],this.pool=new NDKPool(o.explicitRelayUrls||[],o.blacklistRelayUrls,this),this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`),this.pool.on("relay:auth",function(){var n=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return n.apply(this,arguments)}}()),this.autoConnectUserRelays=o.autoConnectUserRelays??!0,this.autoFetchUserMutelist=o.autoFetchUserMutelist??!0,this.clientName=o.clientName,this.clientNip89=o.clientNip89,this.relayAuthDefaultPolicy=o.relayAuthDefaultPolicy,o.enableOutboxModel&&(this.outboxPool=new NDKPool(o.outboxRelayUrls||DEFAULT_OUTBOX_RELAYS,o.blacklistRelayUrls||DEFAULT_BLACKLISTED_RELAYS,this,this.debug.extend("outbox-pool")),this.outboxTracker=new OutboxTracker(this)),this.signer=o.signer,this.cacheAdapter=o.cacheAdapter,this.mutedIds=o.mutedIds||new Map,o.devWriteRelayUrls&&(this.devWriteRelaySet=NDKRelaySet.fromRelayUrls(o.devWriteRelayUrls,this));try{this.httpFetch=fetch}catch{}}addExplicitRelay(o,s,n=!0){let i;return i="string"==typeof o?new NDKRelay(o,s):o,this.pool.addRelay(i,n),this.explicitRelayUrls.push(i.url),i}toJSON(){return{relayCount:this.pool.relays.size}.toString()}get activeUser(){return this._activeUser}set activeUser(o){var s=this;const n=this._activeUser?.pubkey!==o?.pubkey;if(this._activeUser=o,o&&n){const i=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield T.relayList();if(S){s.debug("Connecting to user relays",{npub:T.npub,relays:S.relays});for(const M of S.relays){let k=s.pool.relays.get(M);k||(k=new NDKRelay(M),s.pool.addRelay(k))}}else s.debug("No relay list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield s.fetchEvents([{kinds:[1e4],authors:[T.pubkey]},{kinds:[3e4],authors:[T.pubkey],"#d":["mute"],limit:1}]);if(S)for(const M of S){const k=lists_default.from(M);for(const R of k.items)s.mutedIds.set(R[1],R[0])}else s.debug("No mute list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){for(const S of c)yield S(T)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const n=[s.pool.connect(o)];return s.outboxPool&&n.push(s.outboxPool.connect(o)),s.debug("Connecting to relays",{timeoutMs:o}),Promise.allSettled(n).then(()=>{})})()}getUser(o){const s=new NDKUser(o);return s.ndk=this,s}getUserFromNip05(o,s=!1){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return NDKUser.fromNip05(o,n,s)})()}subscribe(o,s,n,i=!0){const a=new NDKSubscription(this,o,s,n);if(n)for(const c of n.relays)this.pool.useTemporaryRelay(c);if(this.outboxPool&&a.hasAuthorsFilter()){const c=a.filters.filter(y=>y.authors&&y.authors?.length>0).map(y=>y.authors).flat();this.outboxTracker?.trackUsers(c)}return i&&a.start(),a}publish(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,n)})()}fetchEvent(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(n instanceof NDKRelay?c=new NDKRelaySet(new Set([n]),i):n instanceof NDKRelaySet&&(c=n),!n&&"string"==typeof o&&!isNip33AValue(o)){const y=relaysFromBech32(o);y.length>0&&(c=new NDKRelaySet(new Set(y),i),c=correctRelaySet(c,i.pool))}if(a="string"==typeof o?filterFromId(o):o,!a)throw new Error(`Invalid filter: ${JSON.stringify(o)}`);return new Promise(y=>{const w=i.subscribe(a,{...s||{},closeOnEose:!0},c,!1);w.on("event",C=>{C.ndk=i,y(C)}),w.on("eose",()=>{y(null)}),w.start()})})()}fetchEvents(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},n,!1),w=C=>{const T=C.deduplicationKey(),S=c.get(T);S&&(C=dedup(S,C)),C.ndk=i,c.set(T,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n){const i=new NDKUser({pubkey:s.pubkey});return i.ndk=n,yield i.fetchProfile()});return function(n,i){return o.apply(this,arguments)}}(),createProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i,a){const c={name:s.name},y=new NDKEvent(n,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(c),tags:[]});window.location.hostname&&y.tags.push(["client",window.location.hostname]);const w=new NDKEvent(n,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),C=(a||"").split(",").map(T=>T.trim()).filter(T=>T.startsWith("ws"));C.length||C.push(...DEFAULT_SIGNUP_RELAYS);for(const T of C)w.tags.push(["r",T]);yield y.sign(i),console.log("signed profile",y),yield w.sign(i),console.log("signed relays",w),yield y.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,n)),console.log("published profile",y),yield w.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,n)),console.log("published relays",w)});return function(n,i,a,c){return o.apply(this,arguments)}}(),bunkerUrlToInfo=(o,s="")=>{const n=new URL(o);return{pubkey:n.hostname||n.pathname.split("//")[1],sk:s||generatePrivateKey(),relays:n.searchParams.getAll("relay"),token:n.searchParams.get("secret")||"",authMethod:"connect"}},isBunkerUrl=o=>o.startsWith("bunker://"),getBunkerUrl=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n){if(!s)return"";if(isBunkerUrl(s))return s;if(s.includes("@")){const[i,a]=s.toLocaleLowerCase().split("@"),c=n.devOverrideBunkerOrigin||`https://${a}`,y=`${c}/.well-known/nostr.json?name=_`,w=`${c}/.well-known/nostr.json?name=${i}`,C=yield fetch(y),T=yield C.json(),M=T.nip46[T.names._],k=yield fetch(w),R=(yield k.json()).names[i];if(!M.length)throw new Error("Bunker relay not provided");return`bunker://${R}?relay=${M[0]}`}throw new Error("Invalid user name or bunker url")});return function(n,i){return o.apply(this,arguments)}}(),checkNip05=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){let n=!1,i="",a="";return yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),T=yield C.json();if(T.names[c])return void(a=T.names[c])}catch{}n=!0})(),{available:n,taken:""!=a,error:i,pubkey:a}});return function(n){return o.apply(this,arguments)}}(),upgradeInfo=o=>{"typeAuthMethod"in o&&delete o.typeAuthMethod,o.authMethod||(o.authMethod="extension"in o&&o.extension?"extension":"readOnly"in o&&o.readOnly?"readOnly":"connect"),o.nip05&&isBunkerUrl(o.nip05)&&(o.bunkerUrl=o.nip05,o.nip05="")},localStorageAddAccount=o=>{localStorageSetItem(LOCAL_STORE_KEY,JSON.stringify(o));const s=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],n=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(y=>upgradeInfo(y)),n.forEach(y=>upgradeInfo(y));const i=s,a=s.findIndex(y=>y.pubkey===o.pubkey&&y.authMethod===o.authMethod);-1!==a?i[a]=o:i.push(o);const c=n.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(c)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(i))},localStorageRemoveCurrentAccount=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);if(!o)return;upgradeInfo(o);const s={...o};delete s.sk,delete s.otpData;const n=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],i=localStorageGetItem(RECENT_ACCOUNTS)||[];n.forEach(y=>upgradeInfo(y)),i.forEach(y=>upgradeInfo(y));const a=i;if("connect"===s.authMethod&&s.bunkerUrl&&s.bunkerUrl.includes("secret="))console.log("nostr login bunker conn with a secret not saved to recent");else if("local"===s.authMethod)console.log("nostr login temporary local keys not save to recent");else{const y=i.findIndex(w=>w.pubkey===s.pubkey&&w.authMethod===s.authMethod);-1!==y?a[y]=s:a.push(s)}const c=n.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(a)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(c)),localStorageRemoveItem(LOCAL_STORE_KEY)},localStorageRemoveRecent=o=>{const s=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(i=>upgradeInfo(i));const n=s.filter(i=>i.pubkey!==o.pubkey||i.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(n))},localStorageGetRecents=()=>{const o=localStorageGetItem(RECENT_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetAccounts=()=>{const o=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetCurrent=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);return o&&upgradeInfo(o),o},getDarkMode=o=>{const s=localStorage.getItem("nl-dark-mode");return s?!!JSON.parse(s):void 0!==o.darkMode?o.darkMode:!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches)},getIcon=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,n,i){super(s,i,s.debug.extend("nip46:signer:rpc")),this._ndk=s,this._signer=i,this.pubkey=n}subscribe(s){var n=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.sub=yield n().call(i,s),i.sub})()}stop(){this.sub&&(this.sub.stop(),this.sub=void 0)}setUseNip44(s){this._useNip44=s}isNip04(s){const n=s.length;return!(n<28)&&"?"===s[n-28]&&"i"===s[n-27]&&"v"===s[n-26]&&"="===s[n-25]}parseEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=n._ndk.getUser({pubkey:s.pubkey});i.ndk=n._ndk;const a=n.isNip04(s.content)?n._signer.decrypt:n._signer.decryptNip44;console.log("client event nip04",n.isNip04(s.content));const c=yield a.call(n._signer,i,s.content),y=JSON.parse(c),{id:w,method:C,params:T,result:S,error:M}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:T,event:s}:{id:w,result:S,error:M,event:s}})()}parseNostrConnectReply(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===n)return a.pubkey;throw new Error(c.error)})()}listen(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=n.pubkey;console.log("nostr-login listening for conn to",i);const a=yield n.subscribe({kinds:[24133],"#p":[i]});return new Promise((c,y)=>{a.on("event",function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const T=yield n.parseEvent(C);if(!T.method){const S=T;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(T){console.log("error parsing event",T,C.rawEvent())}n.stop()});return function(C){return w.apply(this,arguments)}}())})})()}connect(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",n||""],24133,w=>{"ack"===w.result?a():c(w.error)})})})()}getId(){return Math.random().toString(36).substring(7)}sendRequest(s,n,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,n,i,a)).publish()})()}setResponseHandler(s,n){let i=!1;const a=Date.now();return new Promise(()=>{const c=y=>{"auth_url"===y.result?(this.once(`response-${s}`,c),i||(i=!0,this.emit("authUrl",y.error))):n&&this.requests.has(s)&&(this.requests.delete(s),console.log("nostr-login iframe processed request in",Date.now()-a,"ms"),n(y))};this.once(`response-${s}`,c)})}createRequestEvent(s,n,i,a=[],c=24133){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:n}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",n]],pubkey:w.pubkey}),M=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield M.call(y._signer,C,S.content),yield S.sign(y._signer),S})()}}class IframeNostrRpc extends NostrRpc{peerOrigin;iframePort;iframeRequests=new Map;constructor(s,n,i,a){super(s,n,i),this._ndk=s,this.peerOrigin=a}subscribe(s){var n=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,s,{closeOnEose:!0,cacheUsage:NDKSubscriptionCacheUsage.ONLY_CACHE}):n().call(i,s)})()}setWorkerIframePort(s){var n=this;if(!this.peerOrigin)throw new Error("Unexpected iframe port");this.iframePort=s,s.onmessage=function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=n.iframeRequests.get(c)||{};y&&w&&n.requests.has(y)&&n.emit(`iframeRestart-${w}`)}else try{const c=a.data;if(!validateEvent(c))throw new Error("Invalid event from iframe");if(!verifySignature(c))throw new Error("Invalid event signature from iframe");const y=new NDKEvent(n._ndk,c),w=yield n.parseEvent(y);w.method||(console.log("parsed response",w),n.emit(`response-${w.id}`,w))}catch(c){console.log("error parsing event",c,a.data)}});return function(a){return i.apply(this,arguments)}}()}sendRequest(s,n,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,n,i,a);y.setResponseHandler(w,c),y.iframePort?(y.iframeRequests.set(C.id,{id:w,pubkey:s}),console.log("iframe-nip46 sending request to",y.peerOrigin,C.rawEvent()),y.iframePort.postMessage(C.rawEvent())):yield C.publish()})()}}class ReadyListener{origin;messages;promise;constructor(s,n){var i=this;this.origin=n,this.messages=s,this.promise=new Promise(a=>{console.log(new Date,"started listener for",this.messages);const c=function(){var y=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(n).hostname,T=new URL(w.origin).hostname;(T===C||T.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const n=yield s.promise;return console.log(new Date,"finished waiting for",s.messages,n),n})()}}class BannerManager extends lib$1.EventEmitter{banner=null;iframeReady;params;constructor(s){super(),this.params=s}onAuthUrl(s,n){this.banner&&(this.banner.notify=s?{mode:n?"iframeAuthUrl":"authUrl",url:s}:{mode:""})}onIframeRestart(s){this.banner&&(this.iframeReady=new ReadyListener(["rebinderDone","rebinderError"],new URL(s).origin),this.banner.notify={mode:"rebind",url:s})}onUserInfo(s){this.banner&&(this.banner.userInfo=s)}onCallTimeout(){this.banner&&(this.banner.notify={mode:"timeout"})}onCallStart(){this.banner&&(this.banner.isLoading=!0)}onCallEnd(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var n=this;this.banner=document.createElement("nl-banner"),this.banner.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&this.banner.setAttribute("theme",s.theme),s.noBanner&&this.banner.setAttribute("hidden-mode","true"),this.banner.addEventListener("handleLoginBanner",i=>{this.emit("launch",i.detail)}),this.banner.addEventListener("handleConfirmLogout",()=>{this.emit("onConfirmLogout")}),this.banner.addEventListener("handleLogoutBanner",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.emit("logout")})),this.banner.addEventListener("handleImportModal",i=>{this.emit("import")}),this.banner.addEventListener("handleNotifyConfirmBanner",i=>{this.emit("onAuthUrlClick",i.detail)}),this.banner.addEventListener("handleNotifyConfirmBannerIframe",i=>{this.emit("onIframeAuthUrlClick",i.detail)}),this.banner.addEventListener("handleSwitchAccount",i=>{this.emit("onSwitchAccount",i.detail)}),this.banner.addEventListener("handleOpenWelcomeModal",()=>{this.emit("launch",this.params.optionsModal.startScreen),this.banner&&(this.banner.isOpen=!1)}),document.body.appendChild(this.banner)}}function extract(o,s,n){return hash$1(o),void 0===n&&(n=new Uint8Array(o.outputLen)),hmac$1(o,toBytes$1(n),toBytes$1(s))}const HKDF_COUNTER=new Uint8Array([0]),EMPTY_BUFFER=new Uint8Array;function expand(o,s,n,i=32){if(hash$1(o),number$1(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===n&&(n=EMPTY_BUFFER);const c=new Uint8Array(a*o.outputLen),y=hmac$1.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Tdecoder.decode(o),getConversationKey(o,s){const n=secp256k1.getSharedSecret(o,"02"+s).subarray(1,33);return extract(sha256,n,"nip44-v2")},getMessageKeys(o,s){const n=expand(sha256,o,s,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}},calcPaddedLen(o){if(!Number.isSafeInteger(o)||o<1)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<u.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,o,!1),s},pad(o){const s=u.utf8Encode(o),n=s.length;return concatBytes(u.writeU16BE(n),s,new Uint8Array(u.calcPaddedLen(n)-n))},unpad(o){const s=new DataView(o.buffer).getUint16(0),n=o.subarray(2,2+s);if(su.maxPlaintextSize||n.length!==s||o.length!==2+u.calcPaddedLen(s))throw new Error("invalid padding");return u.utf8Decode(n)},hmacAad(o,s,n){if(32!==n.length)throw new Error("AAD associated data must be 32 bytes");const i=concatBytes(n,s);return hmac$1(sha256,o,i)},decodePayload(o){if("string"!=typeof o)throw new Error("payload must be a valid string");const s=o.length;if(s<132||s>87472)throw new Error("invalid payload length: "+s);if("#"===o[0])throw new Error("unknown encryption version");let n;try{n=base64.decode(o)}catch(c){throw new Error("invalid base64: "+c.message)}const i=n.length;if(i<99||i>65603)throw new Error("invalid data length: "+i);const a=n[0];if(2!==a)throw new Error("unknown encryption version "+a);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}};function encryptNip44(o,s,n=randomBytes(32)){const{chacha_key:i,chacha_nonce:a,hmac_key:c}=u.getMessageKeys(s,n),y=u.pad(o),w=chacha20(i,a,y),C=u.hmacAad(c,w,n);return base64.encode(concatBytes(new Uint8Array([2]),n,w,C))}function decryptNip44(o,s){const{nonce:n,ciphertext:i,mac:a}=u.decodePayload(o),{chacha_key:c,chacha_nonce:y,hmac_key:w}=u.getMessageKeys(s,n);if(!equalBytes(u.hmacAad(w,i,n),a))throw new Error("invalid MAC");const C=chacha20(c,y,i);return u.unpad(C)}class Nip44{cache=new Map;createKey(s,n){return u.getConversationKey(s,n)}getKey(s,n,i){const a=getPublicKey(s)+n;let c=this.cache.get(a);if(c)return c;const y=this.createKey(s,n);return this.cache.set(a,y),y}encrypt(s,n,i){return encryptNip44(i,this.getKey(s,n))}decrypt(s,n,i){return decryptNip44(i,this.getKey(s,n))}}class PrivateKeySigner extends NDKPrivateKeySigner{nip44=new Nip44;constructor(s){super(s)}encryptNip44(s,n){return Promise.resolve(this.nip44.encrypt(this.privateKey,s.pubkey,n))}decryptNip44(s,n){return Promise.resolve(this.nip44.decrypt(this.privateKey,s.pubkey,n))}}const OUTBOX_RELAYS=["wss://user.kindpag.es","wss://purplepag.es","wss://relay.nos.social"],DEFAULT_NOSTRCONNECT_RELAY="wss://relay.nsec.app/",NOSTRCONNECT_APPS=[{name:"Nsec.app",domain:"nsec.app",canImport:!0,img:"https://nsec.app/assets/favicon.ico",link:"https://use.nsec.app/",relay:"wss://relay.nsec.app/"},{name:"Amber",img:"https://raw.githubusercontent.com/greenart7c3/Amber/master/app/src/main/res/mipmap-hdpi/ic_launcher.webp",link:"",relay:"wss://relay.nsec.app/"},{name:"Other key stores",img:"",link:"",relay:"wss://relay.nsec.app/"}];class AuthNostrService extends lib$1.EventEmitter{ndk;profileNdk;signer=null;localSigner=null;params;signerPromise;readyPromise;readyCallback;nip44Codec=new Nip44;nostrConnectKey="";nostrConnectSecret="";iframe;starterReady;nip04;nip44;constructor(s){super(),this.params=s,this.ndk=new NDK({enableOutboxModel:!1}),this.profileNdk=new NDK({enableOutboxModel:!0,explicitRelayUrls:OUTBOX_RELAYS}),this.profileNdk.connect(),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}isIframe(){return!!this.iframe}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:n="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain:n,relays:[s=s||DEFAULT_NOSTRCONNECT_RELAY],iframeUrl:a};console.log("nostrconnect info",w,i),i&&!a&&window.open(i,"_blank","width=400,height=700");const C=yield y.initSigner(w,{listen:!0});if(!C)throw new Error("Bad remote pubkey");return w.pubkey=C,w.bunkerUrl=`bunker://${C}?relay=${s}`,c||y.onAuth("login",w),w})()}createNostrConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.nostrConnectKey=generatePrivateKey(),n.nostrConnectSecret=Math.random().toString(36).substring(7);const i=getPublicKey(n.nostrConnectKey),a={name:document.location.host,url:document.location.href,icon:yield getIcon(),perms:n.params.optionsModal.perms};return`nostrconnect://${i}?metadata=${encodeURIComponent(JSON.stringify(a))}&secret=${n.nostrConnectSecret}${s?`&relay=${s}`:""}`})()}getNostrConnectServices(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=yield s.createNostrConnect(),i=NOSTRCONNECT_APPS.map(a=>({...a}));for(const a of i){let c=DEFAULT_NOSTRCONNECT_RELAY;if(a.link.startsWith("https://")){let w=a.domain||new URL(a.link).hostname;try{const C=yield(yield fetch(`https://${w}/.well-known/nostr.json`)).json(),S=C.nip46[C.names._];S&&S.length&&(c=S[0]),a.iframeUrl=C.nip46.iframe_url||""}catch(C){console.log("Bad app info",C,a)}}const y=n+"&relay="+c;a.link=a.iframeUrl?y:a.link.replace("",y)}return[n,i]})()}localSignup(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield n.setLocal(a,!0)})()}setLocal(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),n&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield n.nostrConnect(i,{domain:a,link:c,importConnect:!0,iframeUrl:y});yield n.logout(!0),n.localSigner=null,n.onAuth("login",w)})()}setReadOnly(s){this.onAuth("login",{pubkey:s,authMethod:"readOnly"})}setExtension(s){this.onAuth("login",{pubkey:s,authMethod:"extension"})}setOTP(s,n){this.onAuth("login",{pubkey:s,authMethod:"otp",otpData:n})}setConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.releaseSigner(),yield n.startAuth(),yield n.initSigner(s),n.onAuth("login",s),yield n.endAuth()})()}createAccount(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,n.params.optionsModal);console.log("create account bunker's url",c);const y=bunkerUrlToInfo(c),w=!!n.params.userInfo;yield n.initSigner(y,{eventToAddAccount:w});const C=[i,a,"",n.params.optionsModal.perms||""];console.log("signer",n.signer);const T=yield new Promise(S=>{n.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",T),"error"===T.result)throw new Error(T.error);return{bunkerUrl:`bunker://${T.result}?relay=${y.relays?.[0]}`,sk:y.sk}})()}releaseSigner(){this.signer=null,this.localSigner=null;for(const s of this.ndk.pool.relays.keys())this.ndk.pool.removeRelay(s)}logout(s=!1){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s||n.releaseSigner(),localStorageRemoveCurrentAccount(),n.onAuth("logout"),n.emit("updateAccounts")})()}setUserInfo(s){this.params.userInfo=s,this.emit("onUserInfo",s),s&&(localStorageAddAccount(s),this.emit("updateAccounts"))}exportKeys(){return this.params.userInfo?"local"!==this.params.userInfo.authMethod?"":nip19_exports.nsecEncode(this.params.userInfo.sk):""}onAuth(s,n=null){if("logout"!==s&&!n)throw new Error("No user info in onAuth");if(n&&this.params.userInfo&&(n.pubkey!==this.params.userInfo.pubkey||n.authMethod!==this.params.userInfo.authMethod)){const i=new CustomEvent("nlAuth",{detail:{type:"logout"}});console.log("nostr-login auth",i.detail),document.dispatchEvent(i)}this.setUserInfo(n),n&&fetchProfile(n,this.profileNdk).then(i=>{if(this.params.userInfo!==n)return;const a={...this.params.userInfo,picture:i?.image||i?.picture,name:i?.name||i?.displayName||i?.nip05||nip19_exports.npubEncode(n.pubkey)};this.setUserInfo(a)});try{const i=n?nip19_exports.npubEncode(n.pubkey):"",a={type:s};"logout"===s?(this.iframe&&this.iframe.remove(),this.iframe=void 0):(a.pubkey=n.pubkey,n.sk&&(a.localNsec=nip19_exports.nsecEncode(n.sk)),n.relays&&(a.relays=n.relays),n.otpData&&(a.otpData=n.otpData),a.method=n.authMethod||"connect");const c=new CustomEvent("nlAuth",{detail:a});console.log("nostr-login auth",a),document.dispatchEvent(c),this.params.optionsModal.onAuth&&this.params.optionsModal.onAuth(i,a)}catch(i){console.log("onAuth error",i)}}createIframe(s){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s)return;const n=new URL(s);let i;const a="__nostr-login-worker-iframe-"+n.hostname.replaceAll(".","-");i=document.querySelector(`#${a}`),console.log("iframe",a,i),i||(i=document.createElement("iframe"),i.setAttribute("width","0"),i.setAttribute("height","0"),i.setAttribute("border","0"),i.style.display="none",i.id=a,document.body.append(i)),i.setAttribute("src",s);const c=new ReadyListener(["workerReady","workerError"],n.origin);yield new Promise(w=>{i.addEventListener("load",w)});const y=yield c.wait();return console.log("nostr-login iframe ready",s,y),{iframe:i,port:y[1]}})()}startAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(n=>s.readyCallback=n)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe:n,port:i}=(yield s.createIframe(s.params.userInfo.iframeUrl))||{};if(s.iframe=n,!s.iframe||!i)return;s.signer.rpc.setWorkerIframePort(i)}s.readyCallback(),s.readyCallback=void 0})()}resetAuth(){this.readyCallback&&this.readyCallback(),this.readyCallback=void 0}listen(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("listen",s,n),!s.iframeUrl)return n.listen(i.nostrConnectSecret);const a=yield i.starterReady.wait();if("starterError"===a[0])throw new Error(a[1]);return i.signer.rpc.parseNostrConnectReply(a[1],i.nostrConnectSecret)})()}initSigner(s,{listen:n=!1,connect:i=!1,eventToAddAccount:a=!1}={}){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,T){try{if(s.relays&&!s.iframeUrl)for(const R of s.relays)c.ndk.addExplicitRelay(R,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),M=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,M);const k=new IframeNostrRpc(c.ndk,S,M,y);if(k.setUseNip44(!0),c.signer.rpc=k,k.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const R=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:R})})),n||k.on("authUrl",R=>{console.log("nostr login auth url",R),c.emit("onAuthUrl",{url:R,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),n){const R=yield c.listen(s,k);c.signer.remotePubkey=R,c.signer.remoteUser=new NDKUser({pubkey:R}),s.pubkey=R,C(R)}else i&&(yield k.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,T(S)}});return function(C,T){return w.apply(this,arguments)}}()),c.signerPromise})()}authNip46(s,{name:n,bunkerUrl:i,sk:a="",domain:c="",iframeUrl:y=""}){var w=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(n)?C.bunkerUrl=n:(C.nip05=n,C.domain=n.split("@")[1]),c&&(C.domain=c),y&&(C.iframeUrl=y),!C.pubkey||!C.sk||!C.relays?.[0])throw new Error(`Bad bunker url ${i}`);const T=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:T}),w.onAuth(s,C)}catch(C){throw console.log("nostr login auth failed",C),C}})()}signEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.localSigner?(s.pubkey=getPublicKey(n.localSigner.privateKey),s.id=getEventHash(s),s.sig=yield n.localSigner.sign(s)):(s.pubkey=n.signer?.remotePubkey,s.id=getEventHash(s),s.sig=yield n.signer?.sign(s)),console.log("signed",{event:s}),s})()}codec_call(s,n,i){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[n,i],24133,w=>{w.error?y(w.error):c(w.result)})})})()}encrypt04(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),n):i.signer.encrypt(new NDKUser({pubkey:s}),n)})()}decrypt04(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),n):i.codec_call("nip04_decrypt",s,n)})()}encrypt44(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,n):i.codec_call("nip44_encrypt",s,n)})()}decrypt44(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,n):i.codec_call("nip44_decrypt",s,n)})()}}class ModalManager extends lib$1.EventEmitter{modal=null;params;extensionService;authNostrService;launcherPromise;accounts=[];recents=[];opt;constructor(s,n,i){super(),this.params=s,this.extensionService=i,this.authNostrService=n}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.launcherPromise&&(yield n.waitReady()),n.opt=s;const i=document.createElement("dialog");n.modal=document.createElement("nl-auth"),n.modal.accounts=n.accounts,n.modal.recents=n.recents,n.modal.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&n.modal.setAttribute("theme",s.theme),s.startScreen&&n.modal.setAttribute("start-screen",s.startScreen),n.modal.setAttribute("bunkers",s.bunkers?s.bunkers:"nsec.app,highlighter.com"),void 0!==s.methods&&(n.modal.authMethods=s.methods),void 0!==s.localSignup&&(n.modal.localSignup=s.localSignup),s.title&&(n.modal.welcomeTitle=s.title),s.description&&(n.modal.welcomeDescription=s.description),n.modal.hasExtension=n.extensionService.hasExtension(),n.modal.hasOTP=!!s.otpRequestUrl&&!!s.otpReplyUrl,n.modal.isLoadingExtension=!1,n.modal.isLoading=!1,[n.modal.connectionString,n.modal.connectionStringServices]=yield n.authNostrService.getNostrConnectServices(),i.appendChild(n.modal),document.body.appendChild(i);let a="";return n.launcherPromise=new Promise((c,y)=>{i.addEventListener("close",()=>{y(new Error("Closed")),n.authNostrService.resetAuth(),n.modal&&(document.body.removeChild(n.modal.parentNode),n.modal=null)});const w=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){n.modal&&(n.modal.isLoading=!1),yield n.authNostrService.endAuth(),i.close(),n.modal=null,pe()});return function(de){return _e.apply(this,arguments)}}(),C=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe,de){n.modal&&(n.modal.isLoading=!0);try{de&&!de.start||(yield n.authNostrService.startAuth()),yield pe(),de&&!de.end||(yield w(c))}catch(De){console.log("error",De),n.modal&&(n.modal.isLoading=!1,n.modal.authUrl="",n.modal.iframeUrl="",n.modal.error=De.toString())}});return function(de,De){return _e.apply(this,arguments)}}(),T=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe,de){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const De=yield getBunkerUrl(pe,n.params.optionsModal);yield n.authNostrService.authNip46("login",{name:pe,bunkerUrl:De,domain:de})}))});return function(de,De){return _e.apply(this,arguments)}}(),S=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:de,sk:De}=yield n.authNostrService.createAccount(pe);yield n.authNostrService.authNip46("signup",{name:pe,bunkerUrl:de,sk:De})}))});return function(de){return _e.apply(this,arguments)}}(),M=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(n.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(pe){console.error("Failed to copy to clipboard: ",pe)}});return function(){return _e.apply(this,arguments)}}(),k=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:de}=pe,De=n.authNostrService.prepareImportUrl(pe.link);n.modal&&de&&(n.modal.authUrl=De,n.modal.iframeUrl=de,n.modal.isLoading=!1,console.log("nostrconnect authUrl",n.modal.authUrl,n.modal.iframeUrl)),yield n.authNostrService.importAndConnect(pe)}))});return function(de){return _e.apply(this,arguments)}}(),R=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:de,domain:De,link:Ee,iframeUrl:Le}=pe||{};console.log("nostrConnect",pe,de,De,Ee,Le),n.modal&&(Le&&(n.modal.authUrl=Ee,n.modal.iframeUrl=Le,n.modal.isLoading=!1,console.log("nostrconnect authUrl",n.modal.authUrl,n.modal.iframeUrl)),pe||(n.modal.isLoading=!1)),yield n.authNostrService.nostrConnect(de,{domain:De,link:Ee,iframeUrl:Le})}))});return function(de){return _e.apply(this,arguments)}}(),X=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!pe)throw new Error("Please enter some nickname");yield n.authNostrService.localSignup(pe)}))});return function(de){return _e.apply(this,arguments)}}();if(!n.modal)throw new Error("WTH?");n.modal.addEventListener("handleContinue",()=>{n.modal&&(n.modal.isLoading=!0,n.emit("onAuthUrlClick",n.modal.authUrl))}),n.modal.addEventListener("nlLogin",_e=>{T(_e.detail)}),n.modal.addEventListener("nlSignup",_e=>{S(_e.detail)}),n.modal.addEventListener("nlLocalSignup",_e=>{X(_e.detail)}),n.modal.addEventListener("nlImportAccount",_e=>{k(_e.detail)}),n.modal.addEventListener("nlExportKeys",_e=>{M()}),n.modal.addEventListener("handleLogoutBanner",()=>{n.emit("onLogoutBanner")}),n.modal.addEventListener("nlNostrConnect",_e=>{R(_e.detail)}),n.modal.addEventListener("nlNostrConnectDefault",()=>{R()}),n.modal.addEventListener("nlSwitchAccount",_e=>{n.emit("onSwitchAccount",_e.detail),setTimeout(()=>i.close(),300)}),n.modal.addEventListener("nlLoginRecentAccount",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const de=pe.detail;if("readOnly"===de.authMethod)n.authNostrService.setReadOnly(de.pubkey),i.close();else if("otp"===de.authMethod)try{n.modal.dispatchEvent(new CustomEvent("nlLoginOTPUser",{detail:de.nip05||de.pubkey}))}catch(De){console.error(De)}else if("extension"===de.authMethod)yield n.extensionService.trySetExtensionForPubkey(de.pubkey),i.close();else{const De=de.bunkerUrl||de.nip05;if(!De)throw new Error("Bad connect info");T(De,de.domain)}});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlRemoveRecent",_e=>{localStorageRemoveRecent(_e.detail),n.emit("updateAccounts")});const Z=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){let de="";if(pe.includes("@")){const{error:De,pubkey:Ee}=yield checkNip05(pe);if(!Ee)throw new Error(De);de=Ee}else if(pe.startsWith("npub")){const{type:De,data:Ee}=nip19_exports.decode(pe);if("npub"!==De)throw new Error("Bad npub");de=Ee}else 64===pe.trim().length&&(de=pe.trim(),nip19_exports.npubEncode(de));return de});return function(de){return _e.apply(this,arguments)}}();n.modal.addEventListener("nlLoginReadOnly",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const de=pe.detail,De=yield Z(de);n.authNostrService.setReadOnly(De)}))});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.modal&&(n.modal.isLoadingExtension=!0,yield n.extensionService.setExtension(),n.modal.isLoadingExtension=!1)}))})),n.modal.addEventListener("nlLoginOTPUser",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.modal)return;const de=pe.detail,De=yield Z(de),Ee=n.opt.otpRequestUrl+(n.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+De,Le=yield fetch(Ee);if(200!==Le.status)throw console.warn("nostr-login: bad otp reply",Le),new Error("Failed to send DM");n.modal.isOTP=!0,a=De,n.modal.isLoading=!1}),{start:!0})});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlLoginOTPCode",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.modal)return;const de=pe.detail,De=n.opt.otpReplyUrl+(n.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+de,Ee=yield fetch(De);if(200!==Ee.status)throw console.warn("nostr-login: bad otp reply",Ee),new Error("Invalid code");const Le=yield Ee.text();n.authNostrService.setOTP(a,Le),n.modal.isOTP=!1}),{end:!0})});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlCheckSignup",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const{available:de,taken:De,error:Ee}=yield checkNip05(pe.detail);n.modal&&(n.modal.error=String(Ee),!Ee&&De&&(n.modal.error="Already taken"),n.modal.signupNameIsAvailable=de)});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlCheckLogin",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const{available:de,taken:De,error:Ee}=yield checkNip05(pe.detail);n.modal&&(n.modal.error=String(Ee),de&&(n.modal.error="Name not found"),n.modal.loginIsGood=De)});return function(pe){return _e.apply(this,arguments)}}());const ne=()=>{n.modal&&(n.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};n.modal.addEventListener("stopFetchHandler",ne),n.modal.addEventListener("nlCloseModal",ne),n.modal.addEventListener("nlChangeDarkMode",_e=>{setDarkMode(_e.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:_e.detail}))}),n.on("onIframeAuthUrlCallEnd",()=>{i.close(),n.modal=null,c()}),i.showModal()}),n.launcherPromise})()}showIframeUrl(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield n.waitReady(),n.launch({startScreen:"iframe"}).catch(()=>console.log("closed auth iframe")),n.modal.authUrl=s})()}connectModals(s){var n=this;const i=function(){var c=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(y){yield n.launch(y)});return function(w){return c.apply(this,arguments)}}(),a=document.getElementsByTagName("nl-button");for(let c=0;c{this.checkExtension(s)&&clearTimeout(n)},100)}checkExtension(s){return!(this.nostrExtension||!window.nostr||window.nostr===s||(this.initExtension(s),0))}initExtension(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),n||setTimeout(()=>{window.nostr!==s&&i.nostrExtension!==window.nostr&&i.initExtension(s,!0)},300)})()}setExtensionReadPubkey(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){window.nostr=n.nostrExtension;const i=yield window.nostr.getPublicKey();s&&s!==i?n.emit("extensionLogout"):n.emit("extensionLogin",i)})()}trySetExtensionForPubkey(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n.nostrExtension)return n.setExtensionReadPubkey(s)})()}setExtension(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;n.callTimer||(n.callTimer=setTimeout(()=>n.emit("onCallTimeout"),CALL_TIMEOUT)),n.callCount||n.emit("onCallStart"),n.callCount++;try{a=yield s()}catch(c){i=c}if(n.callCount--,n.emit("onCallEnd"),n.callTimer&&clearTimeout(n.callTimer),n.callTimer=void 0,i)throw i;return a})()}}class NostrLoginInitializer{extensionService;params;authNostrService;nostr;processManager;popupManager;bannerManager;modalManager;constructor(){var s=this;this.params=new NostrParams,this.processManager=new ProcessManager,this.popupManager=new Popup,this.bannerManager=new BannerManager(this.params),this.authNostrService=new AuthNostrService(this.params),this.extensionService=new NostrExtensionService(this.params),this.modalManager=new ModalManager(this.params,this.authNostrService,this.extensionService);const n={waitReady:(i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(n),this.processManager.on("onCallTimeout",()=>{this.bannerManager.onCallTimeout()}),this.processManager.on("onCallEnd",()=>{this.bannerManager.onCallEnd(),this.modalManager.onCallEnd()}),this.processManager.on("onCallStart",()=>{this.bannerManager.onCallStart()}),this.authNostrService.on("onIframeUrl",i=>{this.modalManager.onIframeUrl(i)}),this.authNostrService.on("iframeRestart",({iframeUrl:i})=>{this.processManager.onIframeUrl(),this.bannerManager.onIframeRestart(i)}),this.authNostrService.on("onAuthUrl",({url:i,iframeUrl:a,eventToAddAccount:c})=>{this.processManager.onAuthUrl(),c?this.modalManager.onAuthUrl(i):this.params.userInfo?this.bannerManager.onAuthUrl(i,a):this.modalManager.onAuthUrl(i)}),this.authNostrService.on("updateAccounts",()=>{this.updateAccounts()}),this.authNostrService.on("onUserInfo",i=>{this.bannerManager.onUserInfo(i)}),this.modalManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onIframeAuthUrlClick",i=>{this.modalManager.showIframeUrl(i)}),this.modalManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),n.extensionService.unsetExtension(n.nostr),"readOnly"===s.authMethod)n.authNostrService.setReadOnly(s.pubkey);else if("otp"===s.authMethod)n.authNostrService.setOTP(s.pubkey,s.otpData||"");else if("local"===s.authMethod&&s.sk)n.authNostrService.setLocal(s);else if("extension"===s.authMethod)yield n.extensionService.trySetExtensionForPubkey(s.pubkey);else{if(!("connect"===s.authMethod&&s.sk&&s.relays&&s.relays[0]))throw new Error("Bad auth info");n.authNostrService.setConnect(s)}})()}updateAccounts(){const s=localStorageGetAccounts(),n=localStorageGetRecents();this.bannerManager.onUpdateAccounts(s),this.modalManager.onUpdateAccounts(s,n)}launch=s=>{const n=localStorageGetRecents(),i=localStorageGetAccounts(),a=s?{startScreen:s}:this.params.optionsModal;return s||!n?.length&&!i?.length||(a.startScreen="switch-account"),this.modalManager.launch(a).catch(()=>{})};init=(()=>{var n,s=this;return n=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return n.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},5492:(o,s,n)=>{"use strict";n.d(s,{lo:()=>xh,pC:()=>Ja,Bq:()=>cu,dq:()=>Yl,lG:()=>uu,sh:()=>Ah,Qe:()=>Cd});var i={};n.r(i),n.d(i,{OG:()=>V,My:()=>Wt,Ph:()=>en,lX:()=>Nn,Id:()=>At,fg:()=>mt,qj:()=>Kt,aT:()=>Ht,lq:()=>mn,z:()=>Mn,Q5:()=>On});var a=n(3014);function c(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function w(b,...E){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(E.length>0&&!E.includes(b.length))throw new Error(`Expected Uint8Array of length ${E}, not of length=${b.length}`)}function T(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")}const R="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,X=b=>b instanceof Uint8Array,_e=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),pe=(b,E)=>b<<32-E|b>>>E;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function xe(b){if("string"==typeof b&&(b=function ae(b){if("string"!=typeof b)throw new Error("utf8ToBytes expected string, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b)),!X(b))throw new Error("expected Uint8Array, got "+typeof b);return b}class st{clone(){return this._cloneInto()}}function at(b){const E=j=>b().update(xe(j)).digest(),A=b();return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=()=>b(),E}function En(b=32){if(R&&"function"==typeof R.getRandomValues)return R.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class wn extends st{constructor(E,A,j,Y){super(),this.blockLen=E,this.outputLen=A,this.padOffset=j,this.isLE=Y,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(E),this.view=_e(this.buffer)}update(E){T(this);const{view:A,buffer:j,blockLen:Y}=this,se=(E=xe(E)).length;for(let ke=0;keY-ke&&(this.process(j,0),ke=0);for(let Lt=ke;Lt>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)})(j,Y-8,BigInt(8*this.length),se),this.process(j,0);const Pe=_e(E),Qe=this.outputLen;if(Qe%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const wt=Qe/4,Pt=this.get();if(wt>Pt.length)throw new Error("_sha2: outputLen bigger than state");for(let Lt=0;Ltb&E^~b&A,_t=(b,E,A)=>b&E^b&A^E&A,ze=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]),Ue=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ft=new Uint32Array(64);class Ke extends wn{constructor(){super(64,32,8,!1),this.A=0|Ue[0],this.B=0|Ue[1],this.C=0|Ue[2],this.D=0|Ue[3],this.E=0|Ue[4],this.F=0|Ue[5],this.G=0|Ue[6],this.H=0|Ue[7]}get(){const{A:E,B:A,C:j,D:Y,E:se,F:ke,G:Pe,H:Qe}=this;return[E,A,j,Y,se,ke,Pe,Qe]}set(E,A,j,Y,se,ke,Pe,Qe){this.A=0|E,this.B=0|A,this.C=0|j,this.D=0|Y,this.E=0|se,this.F=0|ke,this.G=0|Pe,this.H=0|Qe}process(E,A){for(let Lt=0;Lt<16;Lt++,A+=4)Ft[Lt]=E.getUint32(A,!1);for(let Lt=16;Lt<64;Lt++){const on=Ft[Lt-15],_n=Ft[Lt-2],rn=pe(on,7)^pe(on,18)^on>>>3,Yt=pe(_n,17)^pe(_n,19)^_n>>>10;Ft[Lt]=Yt+Ft[Lt-7]+rn+Ft[Lt-16]|0}let{A:j,B:Y,C:se,D:ke,E:Pe,F:Qe,G:wt,H:Pt}=this;for(let Lt=0;Lt<64;Lt++){const _n=Pt+(pe(Pe,6)^pe(Pe,11)^pe(Pe,25))+Je(Pe,Qe,wt)+ze[Lt]+Ft[Lt]|0,Yt=(pe(j,2)^pe(j,13)^pe(j,22))+_t(j,Y,se)|0;Pt=wt,wt=Qe,Qe=Pe,Pe=ke+_n|0,ke=se,se=Y,Y=j,j=_n+Yt|0}j=j+this.A|0,Y=Y+this.B|0,se=se+this.C|0,ke=ke+this.D|0,Pe=Pe+this.E|0,Qe=Qe+this.F|0,wt=wt+this.G|0,Pt=Pt+this.H|0,this.set(j,Y,se,ke,Pe,Qe,wt,Pt)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const it=at(()=>new Ke),Me=(BigInt(0),BigInt(1)),ht=BigInt(2),Xt=b=>b instanceof Uint8Array,Tn=Array.from({length:256},(b,E)=>E.toString(16).padStart(2,"0"));function Wt(b){if(!Xt(b))throw new Error("Uint8Array expected");let E="";for(let A=0;Aj+Y.length,0));let A=0;return b.forEach(j=>{if(!Xt(j))throw new Error("Uint8Array expected");E.set(j,A),A+=j.length}),E}const V=b=>(ht<new Uint8Array(b),ft=b=>Uint8Array.from(b);function mt(b,E,A){if("number"!=typeof b||b<2)throw new Error("hashLen must be a number");if("number"!=typeof E||E<2)throw new Error("qByteLen must be a number");if("function"!=typeof A)throw new Error("hmacFn must be a function");let j=Ne(b),Y=Ne(b),se=0;const ke=()=>{j.fill(1),Y.fill(0),se=0},Pe=(...Lt)=>A(Y,j,...Lt),Qe=(Lt=Ne())=>{Y=Pe(ft([0]),Lt),j=Pe(),0!==Lt.length&&(Y=Pe(ft([1]),Lt),j=Pe())},wt=()=>{if(se++>=1e3)throw new Error("drbg: tried 1000 values");let Lt=0;const on=[];for(;Lt{let _n;for(ke(),Qe(Lt);!(_n=on(wt()));)Qe();return ke(),_n}}const Tt={bigint:b=>"bigint"==typeof b,function:b=>"function"==typeof b,boolean:b=>"boolean"==typeof b,string:b=>"string"==typeof b,stringOrUint8Array:b=>"string"==typeof b||b instanceof Uint8Array,isSafeInteger:b=>Number.isSafeInteger(b),array:b=>Array.isArray(b),field:(b,E)=>E.Fp.isValid(b),hash:b=>"function"==typeof b&&Number.isSafeInteger(b.outputLen)};function On(b,E,A={}){const j=(Y,se,ke)=>{const Pe=Tt[se];if("function"!=typeof Pe)throw new Error(`Invalid validator "${se}", expected function`);const Qe=b[Y];if(!(ke&&void 0===Qe||Pe(Qe,b)))throw new Error(`Invalid param ${String(Y)}=${Qe} (${typeof Qe}), expected ${se}`)};for(const[Y,se]of Object.entries(E))j(Y,se,!1);for(const[Y,se]of Object.entries(A))j(Y,se,!0);return b}const cn=BigInt(0),hn=BigInt(1),Ln=BigInt(2),lr=BigInt(3),Dn=BigInt(4),Hr=BigInt(5),Mr=BigInt(8);function Vt(b,E){const A=b%E;return A>=cn?A:E+A}function Oe(b,E,A){if(A<=cn||E 0");if(A===hn)return cn;let j=hn;for(;E>cn;)E&hn&&(j=j*b%A),b=b*b%A,E>>=hn;return j}function Ge(b,E,A){let j=b;for(;E-- >cn;)j*=j,j%=A;return j}function je(b,E){if(b===cn||E<=cn)throw new Error(`invert: expected positive integers, got n=${b} mod=${E}`);let A=Vt(b,E),j=E,Y=cn,se=hn,ke=hn,Pe=cn;for(;A!==cn;){const wt=j/A,Pt=j%A,Lt=Y-ke*wt,on=se-Pe*wt;j=A,A=Pt,Y=ke,se=Pe,ke=Lt,Pe=on}if(j!==hn)throw new Error("invert: does not exist");return Vt(Y,E)}BigInt(9),BigInt(16);const xn=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function nn(b,E){const A=void 0!==E?E:b.toString(2).length;return{nBitLength:A,nByteLength:Math.ceil(A/8)}}function vn(b){if("bigint"!=typeof b)throw new Error("field order must be bigint");const E=b.toString(2).length;return Math.ceil(E/8)}function fr(b){const E=vn(b);return E+Math.ceil(E/2)}class Ni extends st{constructor(E,A){super(),this.finished=!1,this.destroyed=!1,function C(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");c(b.outputLen),c(b.blockLen)}(E);const j=xe(A);if(this.iHash=E.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 Y=this.blockLen,se=new Uint8Array(Y);se.set(j.length>Y?E.create().update(j).digest():j);for(let ke=0;kenew Ni(b,E).update(A).digest();ds.create=(b,E)=>new Ni(b,E);const $o=BigInt(0),ai=BigInt(1);function fo(b){return function er(b){On(b,xn.reduce((j,Y)=>(j[Y]="function",j),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),On(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Fo,aT:ia}=i,ao={Err:class extends Error{constructor(E=""){super(E)}},_parseInt(b){const{Err:E}=ao;if(b.length<2||2!==b[0])throw new E("Invalid signature integer tag");const A=b[1],j=b.subarray(2,A+2);if(!A||j.length!==A)throw new E("Invalid signature integer: wrong length");if(128&j[0])throw new E("Invalid signature integer: negative");if(0===j[0]&&!(128&j[1]))throw new E("Invalid signature integer: unnecessary leading zero");return{d:Fo(j),l:b.subarray(A+2)}},toSig(b){const{Err:E}=ao,A="string"==typeof b?ia(b):b;if(!(A instanceof Uint8Array))throw new Error("ui8a expected");let j=A.length;if(j<2||48!=A[0])throw new E("Invalid signature tag");if(A[1]!==j-2)throw new E("Invalid signature: incorrect length");const{d:Y,l:se}=ao._parseInt(A.subarray(2)),{d:ke,l:Pe}=ao._parseInt(se);if(Pe.length)throw new E("Invalid signature: left bytes after parsing");return{r:Y,s:ke}},hexFromSig(b){const E=wt=>8&Number.parseInt(wt[0],16)?"00"+wt:wt,A=wt=>{const Pt=wt.toString(16);return 1&Pt.length?`0${Pt}`:Pt},j=E(A(b.s)),Y=E(A(b.r)),se=j.length/2,ke=Y.length/2,Pe=A(se),Qe=A(ke);return`30${A(ke+se+4)}02${Qe}${Y}02${Pe}${j}`}},po=BigInt(0),Ii=BigInt(1),et=(BigInt(2),BigInt(3));function Ye(b){const E=function me(b){const E=fo(b);return On(E,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...E})}(b),{Fp:A,n:j}=E,Y=A.BYTES+1,se=2*A.BYTES+1;function Pe(or){return Vt(or,j)}function Qe(or){return je(or,j)}const{ProjectivePoint:wt,normPrivateKeyToScalar:Pt,weierstrassEquation:Lt,isWithinCurveOrder:on}=function dt(b){const E=function Jo(b){const E=fo(b);On(E,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:A,Fp:j,a:Y}=E;if(A){if(!j.eql(Y,j.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof A||"bigint"!=typeof A.beta||"function"!=typeof A.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...E})}(b),{Fp:A}=E,j=E.toBytes||((rn,Yt,Jt)=>{const bn=Yt.toAffine();return At(Uint8Array.from([4]),A.toBytes(bn.x),A.toBytes(bn.y))}),Y=E.fromBytes||(rn=>{const Yt=rn.subarray(1);return{x:A.fromBytes(Yt.subarray(0,A.BYTES)),y:A.fromBytes(Yt.subarray(A.BYTES,2*A.BYTES))}});function se(rn){const{a:Yt,b:Jt}=E,bn=A.sqr(rn),In=A.mul(bn,rn);return A.add(A.add(In,A.mul(rn,Yt)),Jt)}if(!A.eql(A.sqr(E.Gy),se(E.Gx)))throw new Error("bad generator point: equation left != right");function ke(rn){return"bigint"==typeof rn&&poA.eql(Jn,A.ZERO);return In(Jt)&&In(bn)?Lt.ZERO:new Lt(Jt,bn,A.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Yt){const Jt=A.invertBatch(Yt.map(bn=>bn.pz));return Yt.map((bn,In)=>bn.toAffine(Jt[In])).map(Lt.fromAffine)}static fromHex(Yt){const Jt=Lt.fromAffine(Y(Kt("pointHex",Yt)));return Jt.assertValidity(),Jt}static fromPrivateKey(Yt){return Lt.BASE.multiply(Qe(Yt))}_setWindowSize(Yt){this._WINDOW_SIZE=Yt,wt.delete(this)}assertValidity(){if(this.is0()){if(E.allowInfinityPoint&&!A.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Yt,y:Jt}=this.toAffine();if(!A.isValid(Yt)||!A.isValid(Jt))throw new Error("bad point: x or y not FE");const bn=A.sqr(Jt),In=se(Yt);if(!A.eql(bn,In))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Yt}=this.toAffine();if(A.isOdd)return!A.isOdd(Yt);throw new Error("Field doesn't support isOdd")}equals(Yt){Pt(Yt);const{px:Jt,py:bn,pz:In}=this,{px:Jn,py:ar,pz:Lr}=Yt,gr=A.eql(A.mul(Jt,Lr),A.mul(Jn,In)),Sr=A.eql(A.mul(bn,Lr),A.mul(ar,In));return gr&&Sr}negate(){return new Lt(this.px,A.neg(this.py),this.pz)}double(){const{a:Yt,b:Jt}=E,bn=A.mul(Jt,et),{px:In,py:Jn,pz:ar}=this;let Lr=A.ZERO,gr=A.ZERO,Sr=A.ZERO,$r=A.mul(In,In),Ri=A.mul(Jn,Jn),Ei=A.mul(ar,ar),ei=A.mul(In,Jn);return ei=A.add(ei,ei),Sr=A.mul(In,ar),Sr=A.add(Sr,Sr),Lr=A.mul(Yt,Sr),gr=A.mul(bn,Ei),gr=A.add(Lr,gr),Lr=A.sub(Ri,gr),gr=A.add(Ri,gr),gr=A.mul(Lr,gr),Lr=A.mul(ei,Lr),Sr=A.mul(bn,Sr),Ei=A.mul(Yt,Ei),ei=A.sub($r,Ei),ei=A.mul(Yt,ei),ei=A.add(ei,Sr),Sr=A.add($r,$r),$r=A.add(Sr,$r),$r=A.add($r,Ei),$r=A.mul($r,ei),gr=A.add(gr,$r),Ei=A.mul(Jn,ar),Ei=A.add(Ei,Ei),$r=A.mul(Ei,ei),Lr=A.sub(Lr,$r),Sr=A.mul(Ei,Ri),Sr=A.add(Sr,Sr),Sr=A.add(Sr,Sr),new Lt(Lr,gr,Sr)}add(Yt){Pt(Yt);const{px:Jt,py:bn,pz:In}=this,{px:Jn,py:ar,pz:Lr}=Yt;let gr=A.ZERO,Sr=A.ZERO,$r=A.ZERO;const Ri=E.a,Ei=A.mul(E.b,et);let ei=A.mul(Jt,Jn),eo=A.mul(bn,ar),to=A.mul(In,Lr),wo=A.add(Jt,bn),or=A.add(Jn,ar);wo=A.mul(wo,or),or=A.add(ei,eo),wo=A.sub(wo,or),or=A.add(Jt,In);let pr=A.add(Jn,Lr);return or=A.mul(or,pr),pr=A.add(ei,to),or=A.sub(or,pr),pr=A.add(bn,In),gr=A.add(ar,Lr),pr=A.mul(pr,gr),gr=A.add(eo,to),pr=A.sub(pr,gr),$r=A.mul(Ri,or),gr=A.mul(Ei,to),$r=A.add(gr,$r),gr=A.sub(eo,$r),$r=A.add(eo,$r),Sr=A.mul(gr,$r),eo=A.add(ei,ei),eo=A.add(eo,ei),to=A.mul(Ri,to),or=A.mul(Ei,or),eo=A.add(eo,to),to=A.sub(ei,to),to=A.mul(Ri,to),or=A.add(or,to),ei=A.mul(eo,or),Sr=A.add(Sr,ei),ei=A.mul(pr,or),gr=A.mul(wo,gr),gr=A.sub(gr,ei),ei=A.mul(wo,eo),$r=A.mul(pr,$r),$r=A.add($r,ei),new Lt(gr,Sr,$r)}subtract(Yt){return this.add(Yt.negate())}is0(){return this.equals(Lt.ZERO)}wNAF(Yt){return _n.wNAFCached(this,wt,Yt,Jt=>{const bn=A.invertBatch(Jt.map(In=>In.pz));return Jt.map((In,Jn)=>In.toAffine(bn[Jn])).map(Lt.fromAffine)})}multiplyUnsafe(Yt){const Jt=Lt.ZERO;if(Yt===po)return Jt;if(Pe(Yt),Yt===Ii)return this;const{endo:bn}=E;if(!bn)return _n.unsafeLadder(this,Yt);let{k1neg:In,k1:Jn,k2neg:ar,k2:Lr}=bn.splitScalar(Yt),gr=Jt,Sr=Jt,$r=this;for(;Jn>po||Lr>po;)Jn&Ii&&(gr=gr.add($r)),Lr&Ii&&(Sr=Sr.add($r)),$r=$r.double(),Jn>>=Ii,Lr>>=Ii;return In&&(gr=gr.negate()),ar&&(Sr=Sr.negate()),Sr=new Lt(A.mul(Sr.px,bn.beta),Sr.py,Sr.pz),gr.add(Sr)}multiply(Yt){Pe(Yt);let bn,In,Jt=Yt;const{endo:Jn}=E;if(Jn){const{k1neg:ar,k1:Lr,k2neg:gr,k2:Sr}=Jn.splitScalar(Jt);let{p:$r,f:Ri}=this.wNAF(Lr),{p:Ei,f:ei}=this.wNAF(Sr);$r=_n.constTimeNegate(ar,$r),Ei=_n.constTimeNegate(gr,Ei),Ei=new Lt(A.mul(Ei.px,Jn.beta),Ei.py,Ei.pz),bn=$r.add(Ei),In=Ri.add(ei)}else{const{p:ar,f:Lr}=this.wNAF(Jt);bn=ar,In=Lr}return Lt.normalizeZ([bn,In])[0]}multiplyAndAddUnsafe(Yt,Jt,bn){const In=Lt.BASE,Jn=(Lr,gr)=>gr!==po&&gr!==Ii&&Lr.equals(In)?Lr.multiply(gr):Lr.multiplyUnsafe(gr),ar=Jn(this,Jt).add(Jn(Yt,bn));return ar.is0()?void 0:ar}toAffine(Yt){const{px:Jt,py:bn,pz:In}=this,Jn=this.is0();null==Yt&&(Yt=Jn?A.ONE:A.inv(In));const ar=A.mul(Jt,Yt),Lr=A.mul(bn,Yt),gr=A.mul(In,Yt);if(Jn)return{x:A.ZERO,y:A.ZERO};if(!A.eql(gr,A.ONE))throw new Error("invZ was invalid");return{x:ar,y:Lr}}isTorsionFree(){const{h:Yt,isTorsionFree:Jt}=E;if(Yt===Ii)return!0;if(Jt)return Jt(Lt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Yt,clearCofactor:Jt}=E;return Yt===Ii?this:Jt?Jt(Lt,this):this.multiplyUnsafe(E.h)}toRawBytes(Yt=!0){return this.assertValidity(),j(Lt,this,Yt)}toHex(Yt=!0){return Wt(this.toRawBytes(Yt))}}Lt.BASE=new Lt(E.Gx,E.Gy,A.ONE),Lt.ZERO=new Lt(A.ZERO,A.ONE,A.ZERO);const on=E.nBitLength,_n=function qo(b,E){const A=(Y,se)=>{const ke=se.negate();return Y?ke:se},j=Y=>({windows:Math.ceil(E/Y)+1,windowSize:2**(Y-1)});return{constTimeNegate:A,unsafeLadder(Y,se){let ke=b.ZERO,Pe=Y;for(;se>$o;)se&ai&&(ke=ke.add(Pe)),Pe=Pe.double(),se>>=ai;return ke},precomputeWindow(Y,se){const{windows:ke,windowSize:Pe}=j(se),Qe=[];let wt=Y,Pt=wt;for(let Lt=0;Lt>=_n,Jt>Qe&&(Jt-=on,ke+=ai);const bn=Yt,In=Yt+Math.abs(Jt)-1,ar=Jt<0;0===Jt?Pt=Pt.add(A(rn%2!=0,se[bn])):wt=wt.add(A(ar,se[In]))}return{p:wt,f:Pt}},wNAFCached(Y,se,ke,Pe){const Qe=Y._WINDOW_SIZE||1;let wt=se.get(Y);return wt||(wt=this.precomputeWindow(Y,Qe),1!==Qe&&se.set(Y,Pe(wt))),this.wNAF(Qe,wt,ke)}}}(Lt,E.endo?Math.ceil(on/2):on);return{CURVE:E,ProjectivePoint:Lt,normPrivateKeyToScalar:Qe,weierstrassEquation:se,isWithinCurveOrder:ke}}({...E,toBytes(or,pr,Yr){const mi=pr.toAffine(),br=A.toBytes(mi.x),oi=At;return Yr?oi(Uint8Array.from([pr.hasEvenY()?2:3]),br):oi(Uint8Array.from([4]),br,A.toBytes(mi.y))},fromBytes(or){const pr=or.length,Yr=or[0],mi=or.subarray(1);if(pr!==Y||2!==Yr&&3!==Yr){if(pr===se&&4===Yr)return{x:A.fromBytes(mi.subarray(0,A.BYTES)),y:A.fromBytes(mi.subarray(A.BYTES,2*A.BYTES))};throw new Error(`Point of length ${pr} was invalid. Expected ${Y} compressed bytes or ${se} uncompressed bytes`)}{const br=en(mi);if(!function ke(or){return poWt(mn(or,E.nByteLength));function rn(or){return or>j>>Ii}const Jt=(or,pr,Yr)=>en(or.slice(pr,Yr));class bn{constructor(pr,Yr,mi){this.r=pr,this.s=Yr,this.recovery=mi,this.assertValidity()}static fromCompact(pr){const Yr=E.nByteLength;return pr=Kt("compactSignature",pr,2*Yr),new bn(Jt(pr,0,Yr),Jt(pr,Yr,2*Yr))}static fromDER(pr){const{r:Yr,s:mi}=ao.toSig(Kt("DER",pr));return new bn(Yr,mi)}assertValidity(){if(!on(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!on(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(pr){return new bn(this.r,this.s,pr)}recoverPublicKey(pr){const{r:Yr,s:mi,recovery:br}=this,oi=Sr(Kt("msgHash",pr));if(null==br||![0,1,2,3].includes(br))throw new Error("recovery id invalid");const Eo=2===br||3===br?Yr+E.n:Yr;if(Eo>=A.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bs=wt.fromHex((1&br?"03":"02")+_n(Eo)),Na=Qe(Eo),nl=Pe(-oi*Na),ml=Pe(mi*Na),ya=wt.BASE.multiplyAndAddUnsafe(Bs,nl,ml);if(!ya)throw new Error("point at infinify");return ya.assertValidity(),ya}hasHighS(){return rn(this.s)}normalizeS(){return this.hasHighS()?new bn(this.r,Pe(-this.s),this.recovery):this}toDERRawBytes(){return Ht(this.toDERHex())}toDERHex(){return ao.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Ht(this.toCompactHex())}toCompactHex(){return _n(this.r)+_n(this.s)}}const In={isValidPrivateKey(or){try{return Pt(or),!0}catch{return!1}},normPrivateKeyToScalar:Pt,randomPrivateKey:()=>{const or=fr(E.n);return function Co(b,E,A=!1){const j=b.length,Y=vn(E),se=fr(E);if(j<16||j1024)throw new Error(`expected ${se}-1024 bytes of input, got ${j}`);const Pe=Vt(A?en(b):Nn(b),E-hn)+hn;return A?Mn(Pe,Y):mn(Pe,Y)}(E.randomBytes(or),E.n)},precompute:(or=8,pr=wt.BASE)=>(pr._setWindowSize(or),pr.multiply(BigInt(3)),pr)};function ar(or){const pr=or instanceof Uint8Array,Yr="string"==typeof or,mi=(pr||Yr)&&or.length;return pr?mi===Y||mi===se:Yr?mi===2*Y||mi===2*se:or instanceof wt}const gr=E.bits2int||function(or){const pr=en(or),Yr=8*or.length-E.nBitLength;return Yr>0?pr>>BigInt(Yr):pr},Sr=E.bits2int_modN||function(or){return Pe(gr(or))},$r=V(E.nBitLength);function Ri(or){if("bigint"!=typeof or)throw new Error("bigint expected");if(!(po<=or&&or<$r))throw new Error(`bigint expected < 2^${E.nBitLength}`);return mn(or,E.nByteLength)}const ei={lowS:E.lowS,prehash:!1},eo={lowS:E.lowS,prehash:!1};return wt.BASE._setWindowSize(8),{CURVE:E,getPublicKey:function Jn(or,pr=!0){return wt.fromPrivateKey(or).toRawBytes(pr)},getSharedSecret:function Lr(or,pr,Yr=!0){if(ar(or))throw new Error("first arg must be private key");if(!ar(pr))throw new Error("second arg must be public key");return wt.fromHex(pr).multiply(Pt(or)).toRawBytes(Yr)},sign:function to(or,pr,Yr=ei){const{seed:mi,k2sig:br}=function Ei(or,pr,Yr=ei){if(["recovered","canonical"].some(ba=>ba in Yr))throw new Error("sign() legacy options not supported");const{hash:mi,randomBytes:br}=E;let{lowS:oi,prehash:Eo,extraEntropy:Wi}=Yr;null==oi&&(oi=!0),or=Kt("msgHash",or),Eo&&(or=Kt("prehashed msgHash",mi(or)));const Bs=Sr(or),Na=Pt(pr),nl=[Ri(Na),Ri(Bs)];if(null!=Wi){const ba=!0===Wi?br(A.BYTES):Wi;nl.push(Kt("extraEntropy",ba))}const ml=At(...nl),ya=Bs;return{seed:ml,k2sig:function Ga(ba){const Vc=gr(ba);if(!on(Vc))return;const $d=Qe(Vc),Po=wt.BASE.multiply(Vc).toAffine(),lc=Pe(Po.x);if(lc===po)return;const wa=Pe($d*Pe(ya+lc*Na));if(wa===po)return;let Zo=(Po.x===lc?0:2)|Number(Po.y&Ii),Hc=wa;return oi&&rn(wa)&&(Hc=function Yt(or){return rn(or)?Pe(-or):or}(wa),Zo^=1),new bn(lc,Hc,Zo)}}}(or,pr,Yr);return mt(E.hash.outputLen,E.nByteLength,E.hmac)(mi,br)},verify:function wo(or,pr,Yr,mi=eo){const br=or;if(pr=Kt("msgHash",pr),Yr=Kt("publicKey",Yr),"strict"in mi)throw new Error("options.strict was renamed to lowS");const{lowS:oi,prehash:Eo}=mi;let Wi,Bs;try{if("string"==typeof br||br instanceof Uint8Array)try{Wi=bn.fromDER(br)}catch(Po){if(!(Po instanceof ao.Err))throw Po;Wi=bn.fromCompact(br)}else{if("object"!=typeof br||"bigint"!=typeof br.r||"bigint"!=typeof br.s)throw new Error("PARSE");{const{r:Po,s:lc}=br;Wi=new bn(Po,lc)}}Bs=wt.fromHex(Yr)}catch(Po){if("PARSE"===Po.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(oi&&Wi.hasHighS())return!1;Eo&&(pr=E.hash(pr));const{r:Na,s:nl}=Wi,ml=Sr(pr),ya=Qe(nl),Ga=Pe(ml*ya),ba=Pe(Na*ya),Vc=wt.BASE.multiplyAndAddUnsafe(Bs,Ga,ba)?.toAffine();return!!Vc&&Pe(Vc.x)===Na},ProjectivePoint:wt,Signature:bn,utils:In}}function jt(b){return{hash:b,hmac:(E,...A)=>ds(b,E,function Be(...b){const E=new Uint8Array(b.reduce((j,Y)=>j+Y.length,0));let A=0;return b.forEach(j=>{if(!X(j))throw new Error("Uint8Array expected");E.set(j,A),A+=j.length}),E}(...A)),randomBytes:En}}BigInt(4);const pn=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Sn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),An=BigInt(1),Fn=BigInt(2),zn=(b,E)=>(b+E/Fn)/E;function tr(b){const E=pn,A=BigInt(3),j=BigInt(6),Y=BigInt(11),se=BigInt(22),ke=BigInt(23),Pe=BigInt(44),Qe=BigInt(88),wt=b*b*b%E,Pt=wt*wt*b%E,Lt=Ge(Pt,A,E)*Pt%E,on=Ge(Lt,A,E)*Pt%E,_n=Ge(on,Fn,E)*wt%E,rn=Ge(_n,Y,E)*_n%E,Yt=Ge(rn,se,E)*rn%E,Jt=Ge(Yt,Pe,E)*Yt%E,bn=Ge(Jt,Qe,E)*Jt%E,In=Ge(bn,Pe,E)*Yt%E,Jn=Ge(In,A,E)*Pt%E,ar=Ge(Jn,ke,E)*rn%E,Lr=Ge(ar,j,E)*wt%E,gr=Ge(Lr,Fn,E);if(!cr.eql(cr.sqr(gr),b))throw new Error("Cannot find square root");return gr}const cr=function Mt(b,E,A=!1,j={}){if(b<=cn)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:Y,nByteLength:se}=nn(b,E);if(se>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ke=function ct(b){if(b%Dn===lr){const E=(b+hn)/Dn;return function(j,Y){const se=j.pow(Y,E);if(!j.eql(j.sqr(se),Y))throw new Error("Cannot find square root");return se}}if(b%Mr===Hr){const E=(b-Hr)/Mr;return function(j,Y){const se=j.mul(Y,Ln),ke=j.pow(se,E),Pe=j.mul(Y,ke),Qe=j.mul(j.mul(Pe,Ln),ke),wt=j.mul(Pe,j.sub(Qe,j.ONE));if(!j.eql(j.sqr(wt),Y))throw new Error("Cannot find square root");return wt}}return function Dt(b){const E=(b-hn)/Ln;let A,j,Y;for(A=b-hn,j=0;A%Ln===cn;A/=Ln,j++);for(Y=Ln;YVt(Qe,b),isValid:Qe=>{if("bigint"!=typeof Qe)throw new Error("Invalid field element: expected bigint, got "+typeof Qe);return cn<=Qe&&QeQe===cn,isOdd:Qe=>(Qe&hn)===hn,neg:Qe=>Vt(-Qe,b),eql:(Qe,wt)=>Qe===wt,sqr:Qe=>Vt(Qe*Qe,b),add:(Qe,wt)=>Vt(Qe+wt,b),sub:(Qe,wt)=>Vt(Qe-wt,b),mul:(Qe,wt)=>Vt(Qe*wt,b),pow:(Qe,wt)=>function xr(b,E,A){if(A 0");if(A===cn)return b.ONE;if(A===hn)return E;let j=b.ONE,Y=E;for(;A>cn;)A&hn&&(j=b.mul(j,Y)),Y=b.sqr(Y),A>>=hn;return j}(Pe,Qe,wt),div:(Qe,wt)=>Vt(Qe*je(wt,b),b),sqrN:Qe=>Qe*Qe,addN:(Qe,wt)=>Qe+wt,subN:(Qe,wt)=>Qe-wt,mulN:(Qe,wt)=>Qe*wt,inv:Qe=>je(Qe,b),sqrt:j.sqrt||(Qe=>ke(Pe,Qe)),invertBatch:Qe=>function si(b,E){const A=new Array(E.length),j=E.reduce((se,ke,Pe)=>b.is0(ke)?se:(A[Pe]=se,b.mul(se,ke)),b.ONE),Y=b.inv(j);return E.reduceRight((se,ke,Pe)=>b.is0(ke)?se:(A[Pe]=b.mul(se,A[Pe]),b.mul(se,ke)),Y),A}(Pe,Qe),cmov:(Qe,wt,Pt)=>Pt?wt:Qe,toBytes:Qe=>A?Mn(Qe,se):mn(Qe,se),fromBytes:Qe=>{if(Qe.length!==se)throw new Error(`Fp.fromBytes: expected ${se}, got ${Qe.length}`);return A?Nn(Qe):en(Qe)}});return Object.freeze(Pe)}(pn,void 0,void 0,{sqrt:tr}),Er=function kt(b,E){const A=j=>Ye({...b,...jt(j)});return Object.freeze({...A(E),create:A})}({a:BigInt(0),b:BigInt(7),Fp:cr,n:Sn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:b=>{const E=Sn,A=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),j=-An*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Y=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),se=A,ke=BigInt("0x100000000000000000000000000000000"),Pe=zn(se*b,E),Qe=zn(-j*b,E);let wt=Vt(b-Pe*A-Qe*Y,E),Pt=Vt(-Pe*j-Qe*se,E);const Lt=wt>ke,on=Pt>ke;if(Lt&&(wt=E-wt),on&&(Pt=E-Pt),wt>ke||Pt>ke)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:Lt,k1:wt,k2neg:on,k2:Pt}}}},it),Cr=BigInt(0),gi=b=>"bigint"==typeof b&&CrY.charCodeAt(0)));A=At(j,j),Mi[b]=A}return it(At(A,...E))}const Qr=b=>b.toRawBytes(!0).slice(1),Pr=b=>mn(b,32),Do=b=>Vt(b,pn),es=b=>Vt(b,Sn),zs=Er.ProjectivePoint;function Li(b){let E=Er.utils.normPrivateKeyToScalar(b),A=zs.fromPrivateKey(E);return{scalar:A.hasEvenY()?E:es(-E),bytes:Qr(A)}}function bi(b){if(!gi(b))throw new Error("bad x: need 0 < x < p");const E=Do(b*b);let j=tr(Do(E*b+BigInt(7)));j%Fn!==Cr&&(j=Do(-j));const Y=new zs(b,j,An);return Y.assertValidity(),Y}function sa(...b){return es(en(Rr("BIP0340/challenge",...b)))}function Cs(b,E,A){const j=Kt("signature",b,64),Y=Kt("message",E),se=Kt("publicKey",A,32);try{const ke=bi(en(se)),Pe=en(j.subarray(0,32));if(!gi(Pe))return!1;const Qe=en(j.subarray(32,64));if(!(b=>"bigint"==typeof b&&Crzs.BASE.multiplyAndAddUnsafe(b,E,A))(ke,Qe,es(-wt));return!(!Pt||!Pt.hasEvenY()||Pt.toAffine().x!==Pe)}catch{return!1}}const No={getPublicKey:function Ks(b){return Li(b).bytes},sign:function Oo(b,E,A=En(32)){const j=Kt("message",b),{bytes:Y,scalar:se}=Li(E),ke=Kt("auxRand",A,32),Pe=Pr(se^en(Rr("BIP0340/aux",ke))),Qe=Rr("BIP0340/nonce",Pe,Y,j),wt=es(en(Qe));if(wt===Cr)throw new Error("sign failed: k is zero");const{bytes:Pt,scalar:Lt}=Li(wt),on=sa(Pt,Y,j),_n=new Uint8Array(64);if(_n.set(Pt,0),_n.set(Pr(es(Lt+on*se)),32),!Cs(_n,j,Y))throw new Error("sign: Invalid signature produced");return _n},verify:Cs,utils:{randomPrivateKey:Er.utils.randomPrivateKey,lift_x:bi,pointToBytes:Qr,numberToBytesBE:mn,bytesToNumberBE:en,taggedHash:Rr,mod:Vt}};var Xr=n(4704);function Ds(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function io(b,...E){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(E.length>0&&!E.includes(b.length))throw new Error(`Expected Uint8Array of length ${E}, not of length=${b.length}`)}const Ao={number:Ds,bool:function go(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:io,hash:function fs(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Ds(b.outputLen),Ds(b.blockLen)},exists:function Xo(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")},output:function Ya(b,E){io(b);const A=E.outputLen;if(b.lengthY-ke&&(this.process(j,0),ke=0);for(let Lt=ke;Lt>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)})(j,Y-8,BigInt(8*this.length),se),this.process(j,0);const Pe=(0,Xr.O8)(E),Qe=this.outputLen;if(Qe%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const wt=Qe/4,Pt=this.get();if(wt>Pt.length)throw new Error("_sha2: outputLen bigger than state");for(let Lt=0;Ltb&E^~b&A,_s=(b,E,A)=>b&E^b&A^E&A,aa=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]),ls=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Vi=new Uint32Array(64);class sl extends As{constructor(){super(64,32,8,!1),this.A=0|ls[0],this.B=0|ls[1],this.C=0|ls[2],this.D=0|ls[3],this.E=0|ls[4],this.F=0|ls[5],this.G=0|ls[6],this.H=0|ls[7]}get(){const{A:E,B:A,C:j,D:Y,E:se,F:ke,G:Pe,H:Qe}=this;return[E,A,j,Y,se,ke,Pe,Qe]}set(E,A,j,Y,se,ke,Pe,Qe){this.A=0|E,this.B=0|A,this.C=0|j,this.D=0|Y,this.E=0|se,this.F=0|ke,this.G=0|Pe,this.H=0|Qe}process(E,A){for(let Lt=0;Lt<16;Lt++,A+=4)Vi[Lt]=E.getUint32(A,!1);for(let Lt=16;Lt<64;Lt++){const on=Vi[Lt-15],_n=Vi[Lt-2],rn=(0,Xr.Ow)(on,7)^(0,Xr.Ow)(on,18)^on>>>3,Yt=(0,Xr.Ow)(_n,17)^(0,Xr.Ow)(_n,19)^_n>>>10;Vi[Lt]=Yt+Vi[Lt-7]+rn+Vi[Lt-16]|0}let{A:j,B:Y,C:se,D:ke,E:Pe,F:Qe,G:wt,H:Pt}=this;for(let Lt=0;Lt<64;Lt++){const _n=Pt+((0,Xr.Ow)(Pe,6)^(0,Xr.Ow)(Pe,11)^(0,Xr.Ow)(Pe,25))+Gs(Pe,Qe,wt)+aa[Lt]+Vi[Lt]|0,Yt=((0,Xr.Ow)(j,2)^(0,Xr.Ow)(j,13)^(0,Xr.Ow)(j,22))+_s(j,Y,se)|0;Pt=wt,wt=Qe,Qe=Pe,Pe=ke+_n|0,ke=se,se=Y,Y=j,j=_n+Yt|0}j=j+this.A|0,Y=Y+this.B|0,se=se+this.C|0,ke=ke+this.D|0,Pe=Pe+this.E|0,Qe=Qe+this.F|0,wt=wt+this.G|0,Pt=Pt+this.H|0,this.set(j,Y,se,ke,Pe,Qe,wt,Pt)}roundClean(){Vi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class la extends sl{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 Ss=(0,Xr.ld)(()=>new sl);function Ns(b){if(!Number.isSafeInteger(b))throw new Error(`Wrong integer: ${b}`)}function So(...b){const E=(Y,se)=>ke=>Y(se(ke));return{encode:Array.from(b).reverse().reduce((Y,se)=>Y?E(Y,se.encode):se.encode,void 0),decode:b.reduce((Y,se)=>Y?E(Y,se.decode):se.decode,void 0)}}function Bo(b){return{encode:E=>{if(!Array.isArray(E)||E.length&&"number"!=typeof E[0])throw new Error("alphabet.encode input should be an array of numbers");return E.map(A=>{if(Ns(A),A<0||A>=b.length)throw new Error(`Digit index outside alphabet: ${A} (alphabet: ${b.length})`);return b[A]})},decode:E=>{if(!Array.isArray(E)||E.length&&"string"!=typeof E[0])throw new Error("alphabet.decode input should be array of strings");return E.map(A=>{if("string"!=typeof A)throw new Error(`alphabet.decode: not string element=${A}`);const j=b.indexOf(A);if(-1===j)throw new Error(`Unknown letter: "${A}". Allowed: ${b}`);return j})}}}function lo(b=""){if("string"!=typeof b)throw new Error("join separator should be string");return{encode:E=>{if(!Array.isArray(E)||E.length&&"string"!=typeof E[0])throw new Error("join.encode input should be array of strings");for(let A of E)if("string"!=typeof A)throw new Error(`join.encode: non-string input=${A}`);return E.join(b)},decode:E=>{if("string"!=typeof E)throw new Error("join.decode input should be string");return E.split(b)}}}function ps(b,E="="){if(Ns(b),"string"!=typeof E)throw new Error("padding chr should be string");return{encode(A){if(!Array.isArray(A)||A.length&&"string"!=typeof A[0])throw new Error("padding.encode input should be array of strings");for(let j of A)if("string"!=typeof j)throw new Error(`padding.encode: non-string input=${j}`);for(;A.length*b%8;)A.push(E);return A},decode(A){if(!Array.isArray(A)||A.length&&"string"!=typeof A[0])throw new Error("padding.encode input should be array of strings");for(let Y of A)if("string"!=typeof Y)throw new Error(`padding.decode: non-string input=${Y}`);let j=A.length;if(j*b%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;j>0&&A[j-1]===E;j--)if(!((j-1)*b%8))throw new Error("Invalid padding: string has too much padding");return A.slice(0,j)}}}function Da(b){if("function"!=typeof b)throw new Error("normalize fn should be function");return{encode:E=>E,decode:E=>b(E)}}function Ms(b,E,A){if(E<2)throw new Error(`convertRadix: wrong from=${E}, base cannot be less than 2`);if(A<2)throw new Error(`convertRadix: wrong to=${A}, base cannot be less than 2`);if(!Array.isArray(b))throw new Error("convertRadix: data should be array");if(!b.length)return[];let j=0;const Y=[],se=Array.from(b);for(se.forEach(ke=>{if(Ns(ke),ke<0||ke>=E)throw new Error(`Wrong integer: ${ke}`)});;){let ke=0,Pe=!0;for(let Qe=j;Qenew la);const Us=(b,E)=>E?Us(E,b%E):b,ca=(b,E)=>b+(E-Us(b,E));function Qa(b,E,A,j){if(!Array.isArray(b))throw new Error("convertRadix2: data should be array");if(E<=0||E>32)throw new Error(`convertRadix2: wrong from=${E}`);if(A<=0||A>32)throw new Error(`convertRadix2: wrong to=${A}`);if(ca(E,A)>32)throw new Error(`convertRadix2: carry overflow from=${E} to=${A} carryBits=${ca(E,A)}`);let Y=0,se=0;const ke=2**A-1,Pe=[];for(const Qe of b){if(Ns(Qe),Qe>=2**E)throw new Error(`convertRadix2: invalid data word=${Qe} from=${E}`);if(Y=Y<32)throw new Error(`convertRadix2: carry overflow pos=${se} from=${E}`);for(se+=E;se>=A;se-=A)Pe.push((Y>>se-A&ke)>>>0);Y&=2**se-1}if(Y=Y<=E)throw new Error("Excess padding");if(!j&&Y)throw new Error(`Non-zero padding: ${Y}`);return j&&se>0&&Pe.push(Y>>>0),Pe}function q(b,E=!1){if(Ns(b),b<=0||b>32)throw new Error("radix2: bits should be in (0..32]");if(ca(8,b)>32||ca(b,8)>32)throw new Error("radix2: carry overflow");return{encode:A=>{if(!(A instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Qa(Array.from(A),8,b,!E)},decode:A=>{if(!Array.isArray(A)||A.length&&"number"!=typeof A[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Qa(A,b,8,E))}}}function qe(b){if("function"!=typeof b)throw new Error("unsafeWrapper fn should be function");return function(...E){try{return b.apply(null,E)}catch{}}}So(q(4),Bo("0123456789ABCDEF"),lo("")),So(q(5),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),ps(5),lo(""));const qn=(So(q(5),Bo("0123456789ABCDEFGHIJKLMNOPQRSTUV"),ps(5),lo("")),So(q(5),Bo("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),lo(""),Da(b=>b.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),So(q(6),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ps(6),lo(""))),zi=(So(q(6),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),ps(6),lo("")),b=>So(function Aa(b){return Ns(b),{encode:E=>{if(!(E instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Ms(Array.from(E),256,b)},decode:E=>{if(!Array.isArray(E)||E.length&&"number"!=typeof E[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Ms(E,b,256))}}}(58),Bo(b),lo(""))),jo=(zi("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),zi("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),zi("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),So(Bo("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),lo(""))),Ho=[996825010,642813549,513874426,1027748829,705979059];function Ba(b){const E=b>>25;let A=(33554431&b)<<5;for(let j=0;j>j&1)&&(A^=Ho[j]);return A}function Ua(b,E,A=1){const j=b.length;let Y=1;for(let se=0;se126)throw new Error(`Invalid prefix (${b})`);Y=Ba(Y)^ke>>5}Y=Ba(Y);for(let se=0;seLt)throw new TypeError(`Wrong string length: ${Pt.length} (${Pt}). Expected (8..${Lt})`);const on=Pt.toLowerCase();if(Pt!==on&&Pt!==Pt.toUpperCase())throw new Error("String must be lowercase or uppercase");const _n=(Pt=on).lastIndexOf("1");if(0===_n||-1===_n)throw new Error('Letter "1" must be present between prefix and data only');const rn=Pt.slice(0,_n),Yt=Pt.slice(_n+1);if(Yt.length<6)throw new Error("Data must be at least 6 characters long");const Jt=jo.decode(Yt).slice(0,-6),bn=Ua(rn,Jt,E);if(!Yt.endsWith(bn))throw new Error(`Invalid checksum in ${Pt}: expected "${bn}"`);return{prefix:rn,words:Jt}}return{encode:function ke(Pt,Lt,on=90){if("string"!=typeof Pt)throw new Error("bech32.encode prefix should be string, not "+typeof Pt);if(!Array.isArray(Lt)||Lt.length&&"number"!=typeof Lt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Lt);const _n=Pt.length+7+Lt.length;if(!1!==on&&_n>on)throw new TypeError(`Length ${_n} exceeds limit ${on}`);return`${Pt=Pt.toLowerCase()}1${jo.encode(Lt)}${Ua(Pt,Lt,E)}`},decode:Pe,decodeToBytes:function wt(Pt){const{prefix:Lt,words:on}=Pe(Pt,!1);return{prefix:Lt,words:on,bytes:j(on)}},decodeUnsafe:qe(Pe),fromWords:j,fromWordsUnsafe:se,toWords:Y}}const ce=ua("bech32");function $a(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function hc(b){if("boolean"!=typeof b)throw new Error(`boolean expected, not ${b}`)}function al(b){return b instanceof Uint8Array||null!=b&&"object"==typeof b&&"Uint8Array"===b.constructor.name}function _i(b,...E){if(!al(b))throw new Error("Uint8Array expected");if(E.length>0&&!E.includes(b.length))throw new Error(`Uint8Array expected of length ${E}, not of length=${b.length}`)}function vs(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")}function ja(b,E){_i(b);const A=E.outputLen;if(b.length{if("string"!=typeof b||b.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof b} with length ${b.length}`);return b.toLowerCase()}));const yi=b=>new Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4)),kl=b=>new DataView(b.buffer,b.byteOffset,b.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function ul(b){if("string"==typeof b)b=function wl(b){if("string"!=typeof b)throw new Error("string expected, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b);else{if(!al(b))throw new Error("Uint8Array expected, got "+typeof b);b=b.slice()}return b}function da(b,E){if(b.length!==E.length)return!1;let A=0;for(let j=0;j(Object.assign(E,b),E);function Wo(b,E,A,j){if("function"==typeof b.setBigUint64)return b.setBigUint64(E,A,j);const Y=BigInt(32),se=BigInt(4294967295),ke=Number(A>>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)}const Tr=new Uint8Array(16),Oi=yi(Tr),Qi=(b,E,A,j)=>({s3:A<<31|j>>>1,s2:E<<31|A>>>1,s1:b<<31|E>>>1,s0:b>>>1^225<<24&-(1&j)}),so=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;class no{constructor(E,A){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,_i(E=ul(E),16);const j=kl(E);let Y=j.getUint32(0,!1),se=j.getUint32(4,!1),ke=j.getUint32(8,!1),Pe=j.getUint32(12,!1);const Qe=[];for(let rn=0;rn<128;rn++)Qe.push({s0:so(Y),s1:so(se),s2:so(ke),s3:so(Pe)}),({s0:Y,s1:se,s2:ke,s3:Pe}=Qi(Y,se,ke,Pe));const wt=(b=A||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(wt))throw new Error(`ghash: wrong window size=${wt}, should be 2, 4 or 8`);this.W=wt;const Lt=128/wt,on=this.windowSize=2**wt,_n=[];for(let rn=0;rn>>wt-ar-1&1))continue;const{s0:gr,s1:Sr,s2:$r,s3:Ri}=Qe[wt*rn+ar];Jt^=gr,bn^=Sr,In^=$r,Jn^=Ri}_n.push({s0:Jt,s1:bn,s2:In,s3:Jn})}this.t=_n}_updateBlock(E,A,j,Y){E^=this.s0,A^=this.s1,j^=this.s2,Y^=this.s3;const{W:se,t:ke,windowSize:Pe}=this;let Qe=0,wt=0,Pt=0,Lt=0;const on=(1<>>8*Yt&255;for(let bn=8/se-1;bn>=0;bn--){const In=Jt>>>se*bn&on,{s0:Jn,s1:ar,s2:Lr,s3:gr}=ke[_n*Pe+In];Qe^=Jn,wt^=ar,Pt^=Lr,Lt^=gr,_n+=1}}this.s0=Qe,this.s1=wt,this.s2=Pt,this.s3=Lt}update(E){E=ul(E),vs(this);const A=yi(E),j=Math.floor(E.length/16),Y=E.length%16;for(let se=0;se>>1|A,A=(1&Y)<<7}return b[0]^=225&-E,b}((E=ul(E)).slice());super(j,A),j.fill(0)}update(E){E=ul(E),vs(this);const A=yi(E),j=E.length%16,Y=Math.floor(E.length/16);for(let se=0;seb(Y,j.length).update(ul(j)).digest(),A=b(new Uint8Array(16),0);return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=(j,Y)=>b(j,Y),E}ri((b,E)=>new no(b,E)),ri((b,E)=>new co(b,E)),new Uint8Array(16);const Vs=283;function uo(b){return b<<1^Vs&-(b>>7)}function Ui(b,E){let A=0;for(;E>0;E>>=1)A^=b&-(1&E),b=uo(b);return A}const U=(()=>{let b=new Uint8Array(256);for(let A=0,j=1;A<256;A++,j^=uo(j))b[A]=j;const E=new Uint8Array(256);E[0]=99;for(let A=0;A<255;A++){let j=b[255-A];j|=j<<8,E[b[A]]=255&(j^j>>4^j>>5^j>>6^j>>7^99)}return E})(),Ie=U.map((b,E)=>U.indexOf(E)),te=b=>b<<24|b>>>8,ve=b=>b<<8|b>>>24;function Et(b,E){if(256!==b.length)throw new Error("Wrong sbox length");const A=new Uint32Array(256).map((wt,Pt)=>E(b[Pt])),j=A.map(ve),Y=j.map(ve),se=Y.map(ve),ke=new Uint32Array(65536),Pe=new Uint32Array(65536),Qe=new Uint16Array(65536);for(let wt=0;wt<256;wt++)for(let Pt=0;Pt<256;Pt++){const Lt=256*wt+Pt;ke[Lt]=A[wt]^j[Pt],Pe[Lt]=Y[wt]^se[Pt],Qe[Lt]=b[wt]<<8|b[Pt]}return{sbox:b,sbox2:Qe,T0:A,T1:j,T2:Y,T3:se,T01:ke,T23:Pe}}const Gt=Et(U,b=>Ui(b,3)<<24|b<<16|b<<8|Ui(b,2)),Vn=Et(Ie,b=>Ui(b,11)<<24|Ui(b,13)<<16|Ui(b,9)<<8|Ui(b,14)),rr=(()=>{const b=new Uint8Array(16);for(let E=0,A=1;E<16;E++,A=uo(A))b[E]=A;return b})();function ci(b){_i(b);const E=b.length;if(![16,24,32].includes(E))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${E}`);const{sbox2:A}=Gt,j=yi(b),Y=j.length,se=Pe=>Nr(A,Pe,Pe,Pe,Pe),ke=new Uint32Array(E+28);ke.set(j);for(let Pe=Y;Pe6&&Pe%Y==4&&(Qe=se(Qe)),ke[Pe]=ke[Pe-Y]^Qe}return ke}function Di(b,E,A,j,Y,se){return b[A<<8&65280|j>>>8&255]^E[Y>>>8&65280|se>>>24&255]}function Nr(b,E,A,j,Y){return b[255&E|65280&A]|b[j>>>16&255|Y>>>16&65280]<<16}function li(b,E,A,j,Y){const{sbox2:se,T01:ke,T23:Pe}=Gt;let Qe=0;E^=b[Qe++],A^=b[Qe++],j^=b[Qe++],Y^=b[Qe++];const wt=b.length/4-2;for(let rn=0;rn{const Pe=ci(E),{b:Qe,o:wt,out:Pt}=function Va(b,E,A){let j=b.length;const Y=j%16;if(!E&&0!==Y)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const se=yi(b);if(E){let Qe=16-Y;Qe||(Qe=16),j+=Qe}const ke=wi(j,A);return{b:se,o:yi(ke),out:ke}}(se,Y,ke),Lt=yi(A);let on=Lt[0],_n=Lt[1],rn=Lt[2],Yt=Lt[3],Jt=0;for(;Jt+4<=Qe.length;)on^=Qe[Jt+0],_n^=Qe[Jt+1],rn^=Qe[Jt+2],Yt^=Qe[Jt+3],({s0:on,s1:_n,s2:rn,s3:Yt}=li(Pe,on,_n,rn,Yt)),wt[Jt++]=on,wt[Jt++]=_n,wt[Jt++]=rn,wt[Jt++]=Yt;if(Y){const bn=function Ta(b){const E=new Uint8Array(16),A=yi(E);E.set(b);const j=16-b.length;for(let Y=16-j;Y<16;Y++)E[Y]=j;return A}(se.subarray(4*Jt));on^=bn[0],_n^=bn[1],rn^=bn[2],Yt^=bn[3],({s0:on,s1:_n,s2:rn,s3:Yt}=li(Pe,on,_n,rn,Yt)),wt[Jt++]=on,wt[Jt++]=_n,wt[Jt++]=rn,wt[Jt++]=Yt}return Pe.fill(0),Pt},decrypt:(se,ke)=>{!function Yo(b){if(_i(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(se);const Pe=function ki(b){const E=ci(b),A=E.slice(),j=E.length,{sbox2:Y}=Gt,{T0:se,T1:ke,T2:Pe,T3:Qe}=Vn;for(let wt=0;wt>>8&255]^Pe[Lt>>>16&255]^Qe[Lt>>>24]}return A}(E),Qe=yi(A),wt=wi(se.length,ke),Pt=yi(se),Lt=yi(wt);let on=Qe[0],_n=Qe[1],rn=Qe[2],Yt=Qe[3];for(let Jt=0;Jt+4<=Pt.length;){const bn=on,In=_n,Jn=rn,ar=Yt;on=Pt[Jt+0],_n=Pt[Jt+1],rn=Pt[Jt+2],Yt=Pt[Jt+3];const{s0:Lr,s1:gr,s2:Sr,s3:$r}=ii(Pe,on,_n,rn,Yt);Lt[Jt++]=Lr^bn,Lt[Jt++]=gr^In,Lt[Jt++]=Sr^Jn,Lt[Jt++]=$r^ar}return Pe.fill(0),function Ls(b,E){if(!E)return b;const A=b.length;if(!A)throw new Error("aes/pcks5: empty ciphertext not allowed");const j=b[A-1];if(j<=0||j>16)throw new Error(`aes/pcks5: wrong padding byte: ${j}`);const Y=b.subarray(0,-j);for(let se=0;se255&b[E++]|(255&b[E++])<<8;class zo{constructor(E){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,_i(E=ul(E),32);const A=yo(E,0),j=yo(E,2),Y=yo(E,4),se=yo(E,6),ke=yo(E,8),Pe=yo(E,10),Qe=yo(E,12),wt=yo(E,14);this.r[0]=8191&A,this.r[1]=8191&(A>>>13|j<<3),this.r[2]=7939&(j>>>10|Y<<6),this.r[3]=8191&(Y>>>7|se<<9),this.r[4]=255&(se>>>4|ke<<12),this.r[5]=ke>>>1&8190,this.r[6]=8191&(ke>>>14|Pe<<2),this.r[7]=8065&(Pe>>>11|Qe<<5),this.r[8]=8191&(Qe>>>8|wt<<8),this.r[9]=wt>>>5&127;for(let Pt=0;Pt<8;Pt++)this.pad[Pt]=yo(E,16+2*Pt)}process(E,A,j=!1){const Y=j?0:2048,{h:se,r:ke}=this,Pe=ke[0],Qe=ke[1],wt=ke[2],Pt=ke[3],Lt=ke[4],on=ke[5],_n=ke[6],rn=ke[7],Yt=ke[8],Jt=ke[9],bn=yo(E,A+0),In=yo(E,A+2),Jn=yo(E,A+4),ar=yo(E,A+6),Lr=yo(E,A+8),gr=yo(E,A+10),Sr=yo(E,A+12),$r=yo(E,A+14);let Ri=se[0]+(8191&bn),Ei=se[1]+(8191&(bn>>>13|In<<3)),ei=se[2]+(8191&(In>>>10|Jn<<6)),eo=se[3]+(8191&(Jn>>>7|ar<<9)),to=se[4]+(8191&(ar>>>4|Lr<<12)),wo=se[5]+(Lr>>>1&8191),or=se[6]+(8191&(Lr>>>14|gr<<2)),pr=se[7]+(8191&(gr>>>11|Sr<<5)),Yr=se[8]+(8191&(Sr>>>8|$r<<8)),mi=se[9]+($r>>>5|Y),br=0,oi=br+Ri*Pe+Ei*(5*Jt)+ei*(5*Yt)+eo*(5*rn)+to*(5*_n);br=oi>>>13,oi&=8191,oi+=wo*(5*on)+or*(5*Lt)+pr*(5*Pt)+Yr*(5*wt)+mi*(5*Qe),br+=oi>>>13,oi&=8191;let Eo=br+Ri*Qe+Ei*Pe+ei*(5*Jt)+eo*(5*Yt)+to*(5*rn);br=Eo>>>13,Eo&=8191,Eo+=wo*(5*_n)+or*(5*on)+pr*(5*Lt)+Yr*(5*Pt)+mi*(5*wt),br+=Eo>>>13,Eo&=8191;let Wi=br+Ri*wt+Ei*Qe+ei*Pe+eo*(5*Jt)+to*(5*Yt);br=Wi>>>13,Wi&=8191,Wi+=wo*(5*rn)+or*(5*_n)+pr*(5*on)+Yr*(5*Lt)+mi*(5*Pt),br+=Wi>>>13,Wi&=8191;let Bs=br+Ri*Pt+Ei*wt+ei*Qe+eo*Pe+to*(5*Jt);br=Bs>>>13,Bs&=8191,Bs+=wo*(5*Yt)+or*(5*rn)+pr*(5*_n)+Yr*(5*on)+mi*(5*Lt),br+=Bs>>>13,Bs&=8191;let Na=br+Ri*Lt+Ei*Pt+ei*wt+eo*Qe+to*Pe;br=Na>>>13,Na&=8191,Na+=wo*(5*Jt)+or*(5*Yt)+pr*(5*rn)+Yr*(5*_n)+mi*(5*on),br+=Na>>>13,Na&=8191;let nl=br+Ri*on+Ei*Lt+ei*Pt+eo*wt+to*Qe;br=nl>>>13,nl&=8191,nl+=wo*Pe+or*(5*Jt)+pr*(5*Yt)+Yr*(5*rn)+mi*(5*_n),br+=nl>>>13,nl&=8191;let ml=br+Ri*_n+Ei*on+ei*Lt+eo*Pt+to*wt;br=ml>>>13,ml&=8191,ml+=wo*Qe+or*Pe+pr*(5*Jt)+Yr*(5*Yt)+mi*(5*rn),br+=ml>>>13,ml&=8191;let ya=br+Ri*rn+Ei*_n+ei*on+eo*Lt+to*Pt;br=ya>>>13,ya&=8191,ya+=wo*wt+or*Qe+pr*Pe+Yr*(5*Jt)+mi*(5*Yt),br+=ya>>>13,ya&=8191;let Ga=br+Ri*Yt+Ei*rn+ei*_n+eo*on+to*Lt;br=Ga>>>13,Ga&=8191,Ga+=wo*Pt+or*wt+pr*Qe+Yr*Pe+mi*(5*Jt),br+=Ga>>>13,Ga&=8191;let ba=br+Ri*Jt+Ei*Yt+ei*rn+eo*_n+to*on;br=ba>>>13,ba&=8191,ba+=wo*Lt+or*Pt+pr*wt+Yr*Qe+mi*Pe,br+=ba>>>13,ba&=8191,br=(br<<2)+br|0,br=br+oi|0,oi=8191&br,br>>>=13,Eo+=br,se[0]=oi,se[1]=Eo,se[2]=Wi,se[3]=Bs,se[4]=Na,se[5]=nl,se[6]=ml,se[7]=ya,se[8]=Ga,se[9]=ba}finalize(){const{h:E,pad:A}=this,j=new Uint16Array(10);let Y=E[1]>>>13;E[1]&=8191;for(let Pe=2;Pe<10;Pe++)E[Pe]+=Y,Y=E[Pe]>>>13,E[Pe]&=8191;E[0]+=5*Y,Y=E[0]>>>13,E[0]&=8191,E[1]+=Y,Y=E[1]>>>13,E[1]&=8191,E[2]+=Y,j[0]=E[0]+5,Y=j[0]>>>13,j[0]&=8191;for(let Pe=1;Pe<10;Pe++)j[Pe]=E[Pe]+Y,Y=j[Pe]>>>13,j[Pe]&=8191;j[9]-=8192;let se=(1^Y)-1;for(let Pe=0;Pe<10;Pe++)j[Pe]&=se;se=~se;for(let Pe=0;Pe<10;Pe++)E[Pe]=E[Pe]&se|j[Pe];E[0]=65535&(E[0]|E[1]<<13),E[1]=65535&(E[1]>>>3|E[2]<<10),E[2]=65535&(E[2]>>>6|E[3]<<7),E[3]=65535&(E[3]>>>9|E[4]<<4),E[4]=65535&(E[4]>>>12|E[5]<<1|E[6]<<14),E[5]=65535&(E[6]>>>2|E[7]<<11),E[6]=65535&(E[7]>>>5|E[8]<<8),E[7]=65535&(E[8]>>>8|E[9]<<5);let ke=E[0]+A[0];E[0]=65535&ke;for(let Pe=1;Pe<8;Pe++)ke=(E[Pe]+A[Pe]|0)+(ke>>>16)|0,E[Pe]=65535&ke}update(E){vs(this);const{buffer:A,blockLen:j}=this,Y=(E=ul(E)).length;for(let se=0;se>>0,E[se++]=j[ke]>>>8;return E}digest(){const{buffer:E,outputLen:A}=this;this.digestInto(E);const j=E.slice(0,A);return this.destroy(),j}}const su=function El(b){const E=(j,Y)=>b(Y).update(ul(j)).digest(),A=b(new Uint8Array(32));return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=j=>b(j),E}(b=>new zo(b)),pc=b=>Uint8Array.from(b.split("").map(E=>E.charCodeAt(0))),au=pc("expand 16-byte k"),Lu=pc("expand 32-byte k"),lh=yi(au),Pu=yi(Lu);function Ur(b,E){return b<>>32-E}function kc(b){return b.byteOffset%4==0}Pu.slice();const Ha=2**32-1,Fr=new Uint32Array;function Gl(b,E){const{allowShortKeys:A,extendNonceFn:j,counterLength:Y,counterRight:se,rounds:ke}=function Vl(b,E){if(null==E||"object"!=typeof E)throw new Error("options must be defined");return Object.assign(b,E)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},E);if("function"!=typeof b)throw new Error("core must be a function");return $a(Y),$a(ke),hc(se),hc(A),(Pe,Qe,wt,Pt,Lt=0)=>{_i(Pe),_i(Qe),_i(wt);const on=wt.length;if(Pt||(Pt=new Uint8Array(on)),_i(Pt),$a(Lt),Lt<0||Lt>=Ha)throw new Error("arx: counter overflow");if(Pt.length=Ha)throw new Error("arx: counter overflow");const Yt=Math.min(64,Qe-rn);if(Lt&&64===Yt){const Jt=rn/4;if(rn%4!=0)throw new Error("arx: invalid block position");for(let In,bn=0;bn<16;bn++)In=Jt+bn,_n[In]=on[In]^Pt[bn];rn+=64}else{for(let bn,Jt=0;Jt0;)_n.pop().fill(0);return Pt}}function hl(b,E,A,j,Y,se=20){let ke=b[0],Pe=b[1],Qe=b[2],wt=b[3],Pt=E[0],Lt=E[1],on=E[2],_n=E[3],rn=E[4],Yt=E[5],Jt=E[6],bn=E[7],In=Y,Jn=A[0],ar=A[1],Lr=A[2],gr=ke,Sr=Pe,$r=Qe,Ri=wt,Ei=Pt,ei=Lt,eo=on,to=_n,wo=rn,or=Yt,pr=Jt,Yr=bn,mi=In,br=Jn,oi=ar,Eo=Lr;for(let Bs=0;Bs{b.update(E);const A=E.length%16;A&&b.update(qi.subarray(A))},mc=new Uint8Array(32);function rs(b,E,A,j,Y){const se=b(E,A,mc),ke=su.create(se);Y&&Ar(ke,Y),Ar(ke,j);const Pe=new Uint8Array(16),Qe=kl(Pe);Wo(Qe,0,BigInt(Y?Y.length:0),!0),Wo(Qe,8,BigInt(j.length),!0),ke.update(Pe);const wt=ke.digest();return se.fill(0),wt}const N=b=>(E,A,j)=>(_i(E,32),_i(A),{encrypt:(se,ke)=>{const Pe=se.length,Qe=Pe+16;ke?_i(ke,Qe):ke=new Uint8Array(Qe),b(E,A,se,ke,1);const wt=rs(b,E,A,ke.subarray(0,-16),j);return ke.set(wt,Pe),ke},decrypt:(se,ke)=>{const Pe=se.length,Qe=Pe-16;if(Pe<16)throw new Error("encrypted data must be at least 16 bytes");ke?_i(ke,Qe):ke=new Uint8Array(Qe);const wt=se.subarray(0,-16);if(!da(se.subarray(-16),rs(b,E,A,wt,j)))throw new Error("invalid tag");return b(E,A,wt,ke,1),ke}});N(Xl),N(Wa);class K extends Xr.Vw{constructor(E,A){super(),this.finished=!1,this.destroyed=!1,Ao.hash(E);const j=(0,Xr.ZJ)(A);if(this.iHash=E.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 Y=this.blockLen,se=new Uint8Array(Y);se.set(j.length>Y?E.create().update(j).digest():j);for(let ke=0;kenew K(b,E).update(A).digest();he.create=(b,E)=>new K(b,E);const St=new Uint8Array([0]),gn=new Uint8Array;var ui=Object.defineProperty,Ir=(b,E)=>{for(var A in E)ui(b,A,{get:E[A],enumerable:!0})},Gi=Symbol("verified"),Is=b=>b instanceof Object;function is(b){if(!Is(b)||"number"!=typeof b.kind||"string"!=typeof b.content||"number"!=typeof b.created_at||"string"!=typeof b.pubkey||!b.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(b.tags))return!1;for(let E=0;Ehh,QueueNode:()=>dh,binarySearch:()=>_d,insertEventIntoAscendingList:()=>tm,insertEventIntoDescendingList:()=>Fu,normalizeURL:()=>za,utf8Decoder:()=>Wr,utf8Encoder:()=>Ys});var Wr=new TextDecoder("utf-8"),Ys=new TextEncoder;function za(b){-1===b.indexOf("://")&&(b="wss://"+b);let E=new URL(b);return E.pathname=E.pathname.replace(/\/+/g,"/"),E.pathname.endsWith("/")&&(E.pathname=E.pathname.slice(0,-1)),("80"===E.port&&"ws:"===E.protocol||"443"===E.port&&"wss:"===E.protocol)&&(E.port=""),E.searchParams.sort(),E.hash="",E.toString()}function Fu(b,E){const[A,j]=_d(b,Y=>E.id===Y.id?0:E.created_at===Y.created_at?-1:Y.created_at-E.created_at);return j||b.splice(A,0,E),b}function tm(b,E){const[A,j]=_d(b,Y=>E.id===Y.id?0:E.created_at===Y.created_at?-1:E.created_at-Y.created_at);return j||b.splice(A,0,E),b}function _d(b,E){let A=0,j=b.length-1;for(;A<=j;){const Y=Math.floor((A+j)/2),se=E(b[Y]);if(0===se)return[Y,!0];se<0?j=Y-1:A=Y+1}return[A,!1]}var dh=class{value;next=null;prev=null;constructor(b){this.value=b}},hh=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const E=new dh(b);return this.last?this.last===this.first?(this.last=E,this.last.prev=this.first,this.first.next=E):(E.prev=this.last,this.last.next=E,this.last=E):(this.first=E,this.last=E),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const E=this.first;return this.first=null,this.last=null,E.value}const b=this.first;return this.first=b.next,b.value}};function Yl(b){let E=Ss(Ys.encode(function gc(b){if(!is(b))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content])}(b)));return(0,Xr.My)(E)}var Ql=new class{generateSecretKey(){return No.utils.randomPrivateKey()}getPublicKey(b){return(0,Xr.My)(No.getPublicKey(b))}finalizeEvent(b,E){const A=b;return A.pubkey=(0,Xr.My)(No.getPublicKey(E)),A.id=Yl(A),A.sig=(0,Xr.My)(No.sign(Yl(A),E)),A[Gi]=!0,A}verifyEvent(b){if("boolean"==typeof b[Gi])return b[Gi];const E=Yl(b);if(E!==b.id)return b[Gi]=!1,!1;try{const A=No.verify(b.sig,E,b.pubkey);return b[Gi]=A,A}catch{return b[Gi]=!1,!1}}},cu=Ql.generateSecretKey,uu=Ql.getPublicKey,Ja=Ql.finalizeEvent,Cn=Ql.verifyEvent;function Ic(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function du(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function Si(b){return 2e4<=b&&b<3e4}function Rl(b){return 3e4<=b&&b<4e4}function Ra(b){return Ic(b)?"regular":du(b)?"replaceable":Si(b)?"ephemeral":Rl(b)?"parameterized":"unknown"}function Qs(b,E){const A=E instanceof Array?E:[E];return is(b)&&A.includes(b.kind)||!1}Ir({},{Application:()=>bc,BadgeAward:()=>Zs,BadgeDefinition:()=>gh,BlockedRelaysList:()=>bo,BookmarkList:()=>ro,Bookmarksets:()=>vc,Calendar:()=>Nl,CalendarEventRSVP:()=>Df,ChannelCreation:()=>P,ChannelHideMessage:()=>Ce,ChannelMessage:()=>oe,ChannelMetadata:()=>$,ChannelMuteUser:()=>$e,ClassifiedListing:()=>rm,ClientAuth:()=>gs,CommunitiesList:()=>Ji,CommunityDefinition:()=>om,CommunityPostApproval:()=>ir,Contacts:()=>nm,CreateOrUpdateProduct:()=>yc,CreateOrUpdateStall:()=>fl,Curationsets:()=>ec,Date:()=>im,DirectMessageRelaysList:()=>jr,DraftClassifiedListing:()=>ju,DraftLong:()=>Bu,Emojisets:()=>Uu,EncryptedDirectMessage:()=>ph,EventDeletion:()=>mh,FileMetadata:()=>zt,FileServerPreference:()=>Hi,Followsets:()=>ql,GenericRepost:()=>O,Genericlists:()=>_c,GiftWrap:()=>It,HTTPAuth:()=>Cl,Handlerinformation:()=>Vu,Handlerrecommendation:()=>bd,Highlights:()=>sr,InterestsList:()=>ma,Interestsets:()=>Js,JobFeedback:()=>Qn,JobRequest:()=>Rn,JobResult:()=>Kn,Label:()=>Xn,LightningPubRPC:()=>Mo,LiveChatMessage:()=>un,LiveEvent:()=>_h,LongFormArticle:()=>tc,Metadata:()=>Oc,Mutelist:()=>Dr,NWCWalletInfo:()=>Yi,NWCWalletRequest:()=>qs,NWCWalletResponse:()=>Ps,NostrConnect:()=>el,OpenTimestamps:()=>pt,Pinlist:()=>Gr,PrivateDirectMessage:()=>yd,ProblemTracker:()=>kn,ProfileBadges:()=>Rc,PublicChatsList:()=>Xi,Reaction:()=>Zl,RecommendRelay:()=>vd,RelayList:()=>Br,Relaysets:()=>Jl,Report:()=>qt,Reporting:()=>Yn,Repost:()=>pa,Seal:()=>xl,SearchRelaysList:()=>To,ShortTextNote:()=>fa,Time:()=>vh,UserEmojiList:()=>vr,UserStatuses:()=>$u,Zap:()=>Or,ZapGoal:()=>yr,ZapRequest:()=>Hn,classifyKind:()=>Ra,isEphemeralKind:()=>Si,isKind:()=>Qs,isParameterizedReplaceableKind:()=>Rl,isRegularKind:()=>Ic,isReplaceableKind:()=>du});var Oc=0,fa=1,vd=2,nm=3,ph=4,mh=5,pa=6,Zl=7,Zs=8,xl=13,yd=14,O=16,P=40,$=41,oe=42,Ce=43,$e=44,pt=1040,It=1059,zt=1063,un=1311,kn=1971,qt=1984,Yn=1984,Xn=1985,ir=4550,Rn=5999,Kn=6999,Qn=7e3,yr=9041,Hn=9734,Or=9735,sr=9802,Dr=1e4,Gr=10001,Br=10002,ro=10003,Ji=10004,Xi=10005,bo=10006,To=10007,ma=10015,vr=10030,jr=10050,Hi=10096,Yi=13194,Mo=21e3,gs=22242,qs=23194,Ps=23195,el=24133,Cl=27235,ql=3e4,_c=30001,Jl=30002,vc=30003,ec=30004,Rc=30008,gh=30009,Js=30015,fl=30017,yc=30018,tc=30023,Bu=30024,Uu=30030,bc=30078,_h=30311,$u=30315,rm=30402,ju=30403,im=31922,vh=31923,Nl=31924,Df=31925,bd=31989,Vu=31990,om=34550;function Ll(b,E){if(b.ids&&-1===b.ids.indexOf(E.id)||b.kinds&&-1===b.kinds.indexOf(E.kind)||b.authors&&-1===b.authors.indexOf(E.pubkey))return!1;for(let A in b)if("#"===A[0]){let Y=b[`#${A.slice(1)}`];if(Y&&!E.tags.find(([se,ke])=>se===A.slice(1)&&-1!==Y.indexOf(ke)))return!1}return!(b.since&&E.created_atb.until)}function Nc(b,E){let A=E.length+3,j=b.indexOf(`"${E}":`)+A,Y=b.slice(j).indexOf('"')+j+1;return b.slice(Y,Y+64)}function Lc(b,E){let A=E.length,j=b.indexOf(`"${E}":`)+A+3,Y=b.slice(j),se=Math.min(Y.indexOf(","),Y.indexOf("}"));return parseInt(Y.slice(0,se),10)}function Ed(b){let E=b.slice(0,22).indexOf('"EVENT"');if(-1===E)return null;let A=b.slice(E+7+1).indexOf('"');if(-1===A)return null;let j=E+7+1+A,Y=b.slice(j+1,80).indexOf('"');return-1===Y?null:b.slice(j+1,j+1+Y)}function Hu(b,E){return E===Nc(b,"id")}function Sf(b,E){return E===Nc(b,"pubkey")}function bh(b,E){return E===Lc(b,"kind")}function wh(b,E){return{kind:gs,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",E]],content:""}}function hu(){return Pl.apply(this,arguments)}function Pl(){return(Pl=(0,a.A)(function*(){return new Promise(b=>{const E=new MessageChannel,A=()=>{E.port1.removeEventListener("message",A),b()};E.port1.addEventListener("message",A),E.port2.postMessage(0),E.port1.start()})})).apply(this,arguments)}Ir({},{getHex64:()=>Nc,getInt:()=>Lc,getSubscriptionId:()=>Ed,matchEventId:()=>Hu,matchEventKind:()=>bh,matchEventPubkey:()=>Sf}),Ir({},{makeAuthEvent:()=>wh});var Ug=b=>(b[Gi]=!0,!0),xd=class{url;_connected=!1;onclose=null;onnotice=b=>console.debug(`NOTICE from ${this.url}: ${b}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;publishTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new hh;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,E){this.url=za(b),this.verifyEvent=E.verifyEvent,this._WebSocket=E.websocketImplementation||WebSocket}static connect(b,E){return(0,a.A)(function*(){const A=new xd(b,E);return yield A.connect(),A})()}closeAllSubscriptions(b){for(let[E,A]of this.openSubs)A.close(b);this.openSubs.clear();for(let[E,A]of this.openEventPublishes)A.reject(new Error(b));this.openEventPublishes.clear();for(let[E,A]of this.openCountRequests)A.reject(new Error(b));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var b=this;return(0,a.A)(function*(){return b.connectionPromise||(b.challenge=void 0,b.connectionPromise=new Promise((E,A)=>{b.connectionTimeoutHandle=setTimeout(()=>{A("connection timed out"),b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection timed out")},b.connectionTimeout);try{b.ws=new b._WebSocket(b.url)}catch(j){return void A(j)}b.ws.onopen=()=>{clearTimeout(b.connectionTimeoutHandle),b._connected=!0,E()},b.ws.onerror=j=>{A(j.message||"websocket error"),b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection errored"))},b.ws.onclose=(0,a.A)(function*(){b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection closed"))}),b.ws.onmessage=b._onmessage.bind(b)})),b.connectionPromise})()}runQueue(){var b=this;return(0,a.A)(function*(){for(b.queueRunning=!0;!1!==b.handleNext();)yield hu();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const E=Ed(b);if(E){const A=this.openSubs.get(E);if(!A)return;const j=Nc(b,"id"),Y=A.alreadyHaveEvent?.(j);if(A.receivedEvent?.(this,j),Y)return}try{let A=JSON.parse(b);switch(A[0]){case"EVENT":{const j=this.openSubs.get(A[1]),Y=A[2];return void(this.verifyEvent(Y)&&function sm(b,E){for(let A=0;A{E.ws?.send(b)})})()}auth(b){var E=this;return(0,a.A)(function*(){if(!E.challenge)throw new Error("can't perform auth, no challenge was received");const A=yield b(wh(E.url,E.challenge)),j=new Promise((Y,se)=>{E.openEventPublishes.set(A.id,{resolve:Y,reject:se})});return E.send('["AUTH",'+JSON.stringify(A)+"]"),j})()}publish(b){var E=this;return(0,a.A)(function*(){const A=new Promise((j,Y)=>{E.openEventPublishes.set(b.id,{resolve:j,reject:Y})});return E.send('["EVENT",'+JSON.stringify(b)+"]"),setTimeout(()=>{const j=E.openEventPublishes.get(b.id);j&&(j.reject(new Error("publish timed out")),E.openEventPublishes.delete(b.id))},E.publishTimeout),A})()}count(b,E){var A=this;return(0,a.A)(function*(){A.serial++;const j=E?.id||"count:"+A.serial,Y=new Promise((se,ke)=>{A.openCountRequests.set(j,{resolve:se,reject:ke})});return A.send('["COUNT","'+j+'",'+JSON.stringify(b).substring(1)),Y})()}subscribe(b,E){const A=this.prepareSubscription(b,E);return A.fire(),A}prepareSubscription(b,E){this.serial++;const A=E.id||"sub:"+this.serial,j=new Eh(this,A,b,E);return this.openSubs.set(A,j),j}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(b){this.incomingMessageQueue.enqueue(b.data),this.queueRunning||this.runQueue()}},Eh=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(b,E,A,j){this.relay=b,this.filters=A,this.id=E,this.alreadyHaveEvent=j.alreadyHaveEvent,this.receivedEvent=j.receivedEvent,this.eoseTimeout=j.eoseTimeout||b.baseEoseTimeout,this.oneose=j.oneose,this.onclose=j.onclose,this.onevent=j.onevent||(Y=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,Y)})}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(b="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?.(b)}};try{WebSocket}catch{}var Mf,Fs=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(b){this.verifyEvent=b.verifyEvent,this._WebSocket=b.websocketImplementation}ensureRelay(b,E){var A=this;return(0,a.A)(function*(){b=za(b);let j=A.relays.get(b);return j||(j=new xd(b,{verifyEvent:A.trustedRelayURLs.has(b)?Ug:A.verifyEvent,websocketImplementation:A._WebSocket}),E?.connectionTimeout&&(j.connectionTimeout=E.connectionTimeout),A.relays.set(b,j)),yield j.connect(),j})()}close(b){b.map(za).forEach(E=>{this.relays.get(E)?.close()})}subscribeMany(b,E,A){return this.subscribeManyMap(Object.fromEntries(b.map(j=>[j,E])),A)}subscribeManyMap(b,E){var A=this;this.trackRelays&&(E.receivedEvent=(on,_n)=>{let rn=this.seenOn.get(_n);rn||(rn=new Set,this.seenOn.set(_n,rn)),rn.add(on)});const j=new Set,Y=[],se=Object.keys(b).length,ke=[];let Pe=on=>{ke[on]=!0,ke.filter(_n=>_n).length===se&&(E.oneose?.(),Pe=()=>{})};const Qe=[];let wt=(on,_n)=>{Pe(on),Qe[on]=_n,Qe.filter(rn=>rn).length===se&&(E.onclose?.(Qe),wt=()=>{})};const Pt=on=>{if(E.alreadyHaveEvent?.(on))return!0;const _n=j.has(on);return j.add(on),_n},Lt=Promise.all(Object.entries(b).map(function(){var on=(0,a.A)(function*(_n,rn,Yt){if(Yt.indexOf(_n)!==rn)return void wt(rn,"duplicate url");let In,[Jt,bn]=_n;Jt=za(Jt);try{In=yield A.ensureRelay(Jt,{connectionTimeout:E.maxWait?Math.max(.8*E.maxWait,E.maxWait-1e3):void 0})}catch(ar){return void wt(rn,ar?.message||String(ar))}let Jn=In.subscribe(bn,{...E,oneose:()=>Pe(rn),onclose:ar=>wt(rn,ar),alreadyHaveEvent:Pt,eoseTimeout:E.maxWait});Y.push(Jn)});return function(_n,rn,Yt){return on.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield Lt,Y.forEach(on=>{on.close()})})()}}subscribeManyEose(b,E,A){const j=this.subscribeMany(b,E,{...A,oneose(){j.close()}});return j}querySync(b,E,A){var j=this;return(0,a.A)(function*(){return new Promise(function(){var Y=(0,a.A)(function*(se){const ke=[];j.subscribeManyEose(b,[E],{...A,onevent(Pe){ke.push(Pe)},onclose(Pe){se(ke)}})});return function(se){return Y.apply(this,arguments)}}())})()}get(b,E,A){var j=this;return(0,a.A)(function*(){E.limit=1;const Y=yield j.querySync(b,E,A);return Y.sort((se,ke)=>ke.created_at-se.created_at),Y[0]||null})()}publish(b,E){var A=this;return b.map(za).map(function(){var j=(0,a.A)(function*(Y,se,ke){if(ke.indexOf(Y)!==se)return Promise.reject("duplicate url");let Pe=yield A.ensureRelay(Y);return Pe.publish(E).then(Qe=>{if(A.trackRelays){let wt=A.seenOn.get(E.id);wt||(wt=new Set,A.seenOn.set(E.id,wt)),wt.add(Pe)}return Qe})});return function(Y,se,ke){return j.apply(this,arguments)}}())}listConnectionStatus(){const b=new Map;return this.relays.forEach((E,A)=>b.set(A,E.connected)),b}destroy(){this.relays.forEach(b=>b.close()),this.relays=new Map}};try{Mf=WebSocket}catch{}var xh=class extends Fs{constructor(){super({verifyEvent:Cn,websocketImplementation:Mf})}},Cd={};Ir(Cd,{BECH32_REGEX:()=>zu,Bech32MaxSize:()=>Wu,NostrTypeGuard:()=>am,decode:()=>pu,encodeBytes:()=>Ka,naddrEncode:()=>Td,neventEncode:()=>Gu,noteEncode:()=>If,nprofileEncode:()=>Sd,npubEncode:()=>kf,nsecEncode:()=>Dd});var am={isNProfile:b=>/^nprofile1[a-z\d]+$/.test(b||""),isNEvent:b=>/^nevent1[a-z\d]+$/.test(b||""),isNAddr:b=>/^naddr1[a-z\d]+$/.test(b||""),isNSec:b=>/^nsec1[a-z\d]{58}$/.test(b||""),isNPub:b=>/^npub1[a-z\d]{58}$/.test(b||""),isNote:b=>/^note1[a-z\d]+$/.test(b||""),isNcryptsec:b=>/^ncryptsec1[a-z\d]+$/.test(b||"")},Wu=5e3,zu=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function pu(b){let{prefix:E,words:A}=ce.decode(b,Wu),j=new Uint8Array(ce.fromWords(A));switch(E){case"nprofile":{let Y=Ku(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==Y[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Xr.My)(Y[0][0]),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[]}}}case"nevent":{let Y=Ku(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==Y[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(Y[2]&&32!==Y[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(Y[3]&&4!==Y[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Xr.My)(Y[0][0]),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[],author:Y[2]?.[0]?(0,Xr.My)(Y[2][0]):void 0,kind:Y[3]?.[0]?parseInt((0,Xr.My)(Y[3][0]),16):void 0}}}case"naddr":{let Y=Ku(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!Y[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==Y[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!Y[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==Y[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Wr.decode(Y[0][0]),pubkey:(0,Xr.My)(Y[2][0]),kind:parseInt((0,Xr.My)(Y[3][0]),16),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[]}}}case"nsec":return{type:E,data:j};case"npub":case"note":return{type:E,data:(0,Xr.My)(j)};default:throw new Error(`unknown prefix ${E}`)}}function Ku(b){let E={},A=b;for(;A.length>0;){let j=A[0],Y=A[1],se=A.slice(2,2+Y);if(A=A.slice(2+Y),se.lengthYs.encode(A))}))}function Gu(b){let E;return void 0!==b.kind&&(E=function Ch(b){const E=new Uint8Array(4);return E[0]=b>>24&255,E[1]=b>>16&255,E[2]=b>>8&255,E[3]=255&b,E}(b.kind)),Ad("nevent",Dh({0:[(0,Xr.aT)(b.id)],1:(b.relays||[]).map(j=>Ys.encode(j)),2:b.author?[(0,Xr.aT)(b.author)]:[],3:E?[new Uint8Array(E)]:[]}))}function Td(b){let E=new ArrayBuffer(4);return new DataView(E).setUint32(0,b.kind,!1),Ad("naddr",Dh({0:[Ys.encode(b.identifier)],1:(b.relays||[]).map(j=>Ys.encode(j)),2:[(0,Xr.aT)(b.pubkey)],3:[new Uint8Array(E)]}))}function Dh(b){let E=[];return Object.entries(b).reverse().forEach(([A,j])=>{j.forEach(Y=>{let se=new Uint8Array(Y.length+2);se.set([parseInt(A)],0),se.set([Y.length],1),se.set(Y,2),E.push(se)})}),(0,Xr.Id)(...E)}var Ah={};function Sh(b,E,A){return Qo.apply(this,arguments)}function Qo(){return(Qo=(0,a.A)(function*(b,E,A){const j=b instanceof Uint8Array?(0,Xr.My)(b):b,se=Of(Er.getSharedSecret(j,"02"+E));let ke=Uint8Array.from((0,Xr.po)(16)),Pe=Ys.encode(A),Qe=qa(se,ke).encrypt(Pe);return`${qn.encode(new Uint8Array(Qe))}?iv=${qn.encode(new Uint8Array(ke.buffer))}`})).apply(this,arguments)}function um(b,E,A){return Md.apply(this,arguments)}function Md(){return(Md=(0,a.A)(function*(b,E,A){const j=b instanceof Uint8Array?(0,Xr.My)(b):b;let[Y,se]=A.split("?iv="),Pe=Of(Er.getSharedSecret(j,"02"+E)),Qe=qn.decode(se),wt=qn.decode(Y),Pt=qa(Pe,Qe).decrypt(wt);return Wr.decode(Pt)})).apply(this,arguments)}function Of(b){return b.slice(1,33)}Ir(Ah,{decrypt:()=>um,encrypt:()=>Sh}),Ir({},{NIP05_REGEX:()=>ws,isNip05:()=>Fc,isValid:()=>wc,queryProfile:()=>Od,searchDomain:()=>mu,useFetchImplementation:()=>nc});var kd,ws=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,Fc=b=>ws.test(b||"");try{kd=fetch}catch{}function nc(b){kd=b}function mu(b){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,a.A)(function*(b,E=""){try{const A=`https://${b}/.well-known/nostr.json?name=${E}`,j=yield kd(A,{redirect:"manual"});if(200!==j.status)throw Error("Wrong response code");return(yield j.json()).names}catch{return{}}})).apply(this,arguments)}function Od(b){return rc.apply(this,arguments)}function rc(){return(rc=(0,a.A)(function*(b){const E=b.match(ws);if(!E)return null;const[,A="_",j]=E;try{const Y=`https://${j}/.well-known/nostr.json?name=${A}`,se=yield kd(Y,{redirect:"manual"});if(200!==se.status)throw Error("Wrong response code");const ke=yield se.json(),Pe=ke.names[A];return Pe?{pubkey:Pe,relays:ke.relays?.[Pe]}:null}catch{return null}})).apply(this,arguments)}function wc(b,E){return Mh.apply(this,arguments)}function Mh(){return(Mh=(0,a.A)(function*(b,E){const A=yield Od(E);return!!A&&A.pubkey===b})).apply(this,arguments)}function ic(b){const E={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]};let A,j;for(let Y=b.tags.length-1;Y>=0;Y--){const se=b.tags[Y];if("e"===se[0]&&se[1]){const[ke,Pe,Qe,wt,Pt]=se,Lt={id:Pe,relays:Qe?[Qe]:[],author:Pt};if("root"===wt){E.root=Lt;continue}if("reply"===wt){E.reply=Lt;continue}if("mention"===wt){E.mentions.push(Lt);continue}A?j=Lt:A=Lt,E.mentions.push(Lt)}else{if("q"===se[0]&&se[1]){const[ke,Pe,Qe]=se;E.quotes.push({id:Pe,relays:Qe?[Qe]:[]})}"p"===se[0]&&se[1]&&E.profiles.push({pubkey:se[1],relays:se[2]?[se[2]]:[]})}}return E.root||(E.root=j||A||E.reply),E.reply||(E.reply=A||E.root),[E.reply,E.root].forEach(Y=>{if(!Y)return;let se=E.mentions.indexOf(Y);if(-1!==se&&E.mentions.splice(se,1),Y.author){let ke=E.profiles.find(Pe=>Pe.pubkey===Y.author);ke&&ke.relays&&(Y.relays||(Y.relays=[]),ke.relays.forEach(Pe=>{-1===Y.relays?.indexOf(Pe)&&Y.relays.push(Pe)}),ke.relays=Y.relays)}}),E.mentions.forEach(Y=>{if(Y.author){let se=E.profiles.find(ke=>ke.pubkey===Y.author);se&&se.relays&&(Y.relays||(Y.relays=[]),se.relays.forEach(ke=>{-1===Y.relays.indexOf(ke)&&Y.relays.push(ke)}),se.relays=Y.relays)}}),E}Ir({},{parse:()=>ic}),Ir({},{fetchRelayInformation:()=>iy,useFetchImplementation:()=>dm});try{fetch}catch{}function dm(b){}function iy(b){return Ec.apply(this,arguments)}function Ec(){return(Ec=(0,a.A)(function*(b){return yield(yield fetch(b.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function Ih(b){let E=0;for(let A=0;A<64;A+=8){const j=parseInt(b.substring(A,A+8),16);if(0!==j){E+=Math.clz32(j);break}E+=32}return E}function os(b,E){let A=0;const j=b,Y=["nonce",A.toString(),E.toString()];for(j.tags.push(Y);;){const se=Math.floor((new Date).getTime()/1e3);if(se!==j.created_at&&(A=0,j.created_at=se),Y[1]=(++A).toString(),j.id=Nf(j),Ih(j.id)>=E)break}return j}function Nf(b){return(0,Xr.My)(Ss(Ys.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function hm(b,E,A,j){return Ja({kind:pa,tags:[...b.tags??[],["e",E.id,A],["p",E.pubkey]],content:""===b.content?"":JSON.stringify(E),created_at:b.created_at},j)}function Lf(b){if(b.kind!==pa)return;let E,A;for(let j=b.tags.length-1;j>=0&&(void 0===E||void 0===A);j--){const Y=b.tags[j];Y.length>=2&&("e"===Y[0]&&void 0===E?E=Y:"p"===Y[0]&&void 0===A&&(A=Y))}return void 0!==E?{id:E[1],relays:[E[2],A?.[2]].filter(j=>"string"==typeof j),author:A?.[1]}:void 0}function Rh(b,{skipVerification:E}={}){const A=Lf(b);if(void 0===A||""===b.content)return;let j;try{j=JSON.parse(b.content)}catch{return}return j.id===A.id&&(E||Cn(j))?j:void 0}Ir({},{fastEventHash:()=>Nf,getPow:()=>Ih,minePow:()=>os}),Ir({},{finishRepostEvent:()=>hm,getRepostedEvent:()=>Rh,getRepostedEventPointer:()=>Lf}),Ir({},{NOSTR_URI_REGEX:()=>_u,parse:()=>fm,test:()=>Nh});var _u=new RegExp(`nostr:(${zu.source})`);function Nh(b){return"string"==typeof b&&new RegExp(`^${_u.source}$`).test(b)}function fm(b){const E=b.match(new RegExp(`^${_u.source}$`));if(!E)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:E[0],value:E[1],decoded:pu(E[1])}}function Ff(b,E,A){const j=E.tags.filter(Y=>Y.length>=2&&("e"===Y[0]||"p"===Y[0]));return Ja({...b,kind:Zl,tags:[...b.tags??[],...j,["e",E.id],["p",E.pubkey]],content:b.content??"+"},A)}function jg(b){if(b.kind!==Zl)return;let E,A;for(let j=b.tags.length-1;j>=0&&(void 0===E||void 0===A);j--){const Y=b.tags[j];Y.length>=2&&("e"===Y[0]&&void 0===E?E=Y:"p"===Y[0]&&void 0===A&&(A=Y))}return void 0!==E&&void 0!==A?{id:E[1],relays:[E[2],A[2]].filter(j=>void 0!==j),author:A[1]}:void 0}Ir({},{finishReactionEvent:()=>Ff,getReactedEventPointer:()=>jg}),Ir({},{matchAll:()=>vu,regex:()=>Yu,replaceAll:()=>Vg});var Yu=()=>new RegExp(`\\b${_u.source}\\b`,"g");function*vu(b){const E=b.matchAll(Yu());for(const A of E)try{const[j,Y]=A;yield{uri:j,value:Y,decoded:pu(Y),start:A.index,end:A.index+j.length}}catch{}}function Vg(b,E){return b.replaceAll(Yu(),(A,j)=>E({uri:A,value:j,decoded:pu(j)}))}Ir({},{channelCreateEvent:()=>Bf,channelHideMessageEvent:()=>bu,channelMessageEvent:()=>Hg,channelMetadataEvent:()=>yu,channelMuteUserEvent:()=>Cc});var Bf=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:P,tags:[...b.tags??[]],content:A,created_at:b.created_at},E)},yu=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:$,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:A,created_at:b.created_at},E)},Hg=(b,E)=>{const A=[["e",b.channel_create_event_id,b.relay_url,"root"]];return b.reply_to_channel_message_event_id&&A.push(["e",b.reply_to_channel_message_event_id,b.relay_url,"reply"]),Ja({kind:oe,tags:[...A,...b.tags??[]],content:b.content,created_at:b.created_at},E)},bu=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:Ce,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:A,created_at:b.created_at},E)},Cc=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:$e,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:A,created_at:b.created_at},E)};Ir({},{EMOJI_SHORTCODE_REGEX:()=>Lh,matchAll:()=>Uf,regex:()=>Nd,replaceAll:()=>Qu});var Zu,Lh=/:(\w+):/,Nd=()=>new RegExp(`\\B${Lh.source}\\B`,"g");function*Uf(b){const E=b.matchAll(Nd());for(const A of E)try{const[j,Y]=A;yield{shortcode:j,name:Y,start:A.index,end:A.index+j.length}}catch{}}function Qu(b,E){return b.replaceAll(Nd(),(A,j)=>E({shortcode:A,name:j}))}Ir({},{useFetchImplementation:()=>Ph,validateGithub:()=>qu});try{Zu=fetch}catch{}function Ph(b){Zu=b}function qu(b,E,A){return Bc.apply(this,arguments)}function Bc(){return(Bc=(0,a.A)(function*(b,E,A){try{return(yield(yield Zu(`https://gist.github.com/${E}/${A}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}Ir({},{decrypt:()=>Uh,encrypt:()=>ed,getConversationKey:()=>Eu,v2:()=>Uc});var oc=1,Ju=65535;function Eu(b,E){const A=Er.getSharedSecret(b,"02"+E).subarray(1,33);return function We(b,E,A){return Ao.hash(b),void 0===A&&(A=new Uint8Array(b.outputLen)),he(b,(0,Xr.ZJ)(A),(0,Xr.ZJ)(E))}(Ss,A,"nip44-v2")}function $f(b,E){const A=function an(b,E,A,j=32){if(Ao.hash(b),Ao.number(j),j>255*b.outputLen)throw new Error("Length should be <= 255*HashLen");const Y=Math.ceil(j/b.outputLen);void 0===A&&(A=gn);const se=new Uint8Array(Y*b.outputLen),ke=he.create(b,E),Pe=ke._cloneInto(),Qe=new Uint8Array(ke.outputLen);for(let wt=0;wtJu)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const E=new Uint8Array(2);return new DataView(E.buffer).setUint16(0,b,!1),E}(A),Y=new Uint8Array(Ld(A)-A);return(0,Xr.Id)(j,E,Y)}(b),Pe=Xl(j,Y,ke),Qe=Vf(se,Pe,A);return qn.encode((0,Xr.Id)(new Uint8Array([2]),A,Pe,Qe))}function Uh(b,E){const{nonce:A,ciphertext:j,mac:Y}=function ga(b){if("string"!=typeof b)throw new Error("payload must be a valid string");const E=b.length;if(E<132||E>87472)throw new Error("invalid payload length: "+E);if("#"===b[0])throw new Error("unknown encryption version");let A;try{A=qn.decode(b)}catch(se){throw new Error("invalid base64: "+se.message)}const j=A.length;if(j<99||j>65603)throw new Error("invalid data length: "+j);const Y=A[0];if(2!==Y)throw new Error("unknown encryption version "+Y);return{nonce:A.subarray(1,33),ciphertext:A.subarray(33,-32),mac:A.subarray(-32)}}(b),{chacha_key:se,chacha_nonce:ke,hmac_key:Pe}=$f(E,A);if(!da(Vf(Pe,j,A),Y))throw new Error("invalid MAC");return function jf(b){const E=new DataView(b.buffer).getUint16(0),A=b.subarray(2,2+E);if(EJu||A.length!==E||b.length!==2+Ld(E))throw new Error("invalid padding");return Wr.decode(A)}(Xl(se,ke,j))}var td,Uc={utils:{getConversationKey:Eu,calcPaddedLen:Ld},encrypt:ed,decrypt:Uh};function mm(b){const{pathname:E,searchParams:A}=new URL(b),j=E,Y=A.get("relay"),se=A.get("secret");if(!j||!Y||!se)throw new Error("invalid connection string");return{pubkey:j,relay:Y,secret:se}}function va(b,E,A){return sc.apply(this,arguments)}function sc(){return(sc=(0,a.A)(function*(b,E,A){const Y=yield Sh(E,b,JSON.stringify({method:"pay_invoice",params:{invoice:A}})),se={kind:qs,created_at:Math.round(Date.now()/1e3),content:Y,tags:[["p",b]]};return Ja(se,E)})).apply(this,arguments)}Ir({},{makeNwcRequestEvent:()=>va,parseConnectionString:()=>mm}),Ir({},{getZapEndpoint:()=>jh,makeZapReceipt:()=>Vh,makeZapRequest:()=>Wf,useFetchImplementation:()=>Hf,validateZapRequest:()=>zf});try{td=fetch}catch{}function Hf(b){td=b}function jh(b){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,a.A)(function*(b){try{let E="",{lud06:A,lud16:j}=JSON.parse(b.content);if(A){let{words:ke}=ce.decode(A,1e3),Pe=ce.fromWords(ke);E=Wr.decode(Pe)}else{if(!j)return null;{let[ke,Pe]=j.split("@");E=new URL(`/.well-known/lnurlp/${ke}`,`https://${Pe}`).toString()}}let se=yield(yield td(E)).json();if(se.allowsNostr&&se.nostrPubkey)return se.callback}catch{}return null})).apply(this,arguments)}function Wf({profile:b,event:E,amount:A,relays:j,comment:Y=""}){if(!A)throw new Error("amount not given");if(!b)throw new Error("profile not given");let se={kind:9734,created_at:Math.round(Date.now()/1e3),content:Y,tags:[["p",b],["amount",A.toString()],["relays",...j]]};return E&&se.tags.push(["e",E]),se}function zf(b){let E;try{E=JSON.parse(b)}catch{return"Invalid zap request JSON."}if(!is(E))return"Zap request is not a valid Nostr event.";if(!Cn(E))return"Invalid signature on zap request.";let A=E.tags.find(([se,ke])=>"p"===se&&ke);if(!A)return"Zap request doesn't have a 'p' tag.";if(!A[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let j=E.tags.find(([se,ke])=>"e"===se&&ke);return j&&!j[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":E.tags.find(([se,ke])=>"relays"===se&&ke)?null:"Zap request doesn't have a 'relays' tag."}function Vh({zapRequest:b,preimage:E,bolt11:A,paidAt:j}){let Y=JSON.parse(b),se=Y.tags.filter(([Pe])=>"e"===Pe||"p"===Pe||"a"===Pe),ke={kind:9735,created_at:Math.round(j.getTime()/1e3),content:"",tags:[...se,["P",Y.pubkey],["bolt11",A],["description",b]]};return E&&ke.tags.push(["preimage",E]),ke}Ir({},{createRumor:()=>Fd,createSeal:()=>Bd,createWrap:()=>Ud,unwrapEvent:()=>_m,unwrapManyEvents:()=>zh,wrapEvent:()=>xu,wrapManyEvents:()=>Wh});var Gf=()=>Math.round(Date.now()/1e3),Xf=()=>Math.round(Gf()-172800*Math.random()),ac=(b,E)=>Eu(b,E),Hh=(b,E,A)=>ed(JSON.stringify(b),ac(E,A)),nd=(b,E)=>JSON.parse(Uh(b.content,ac(E,b.pubkey)));function Fd(b,E){const A={created_at:Gf(),content:"",tags:[],...b,pubkey:uu(E)};return A.id=Yl(A),A}function Bd(b,E,A){return Ja({kind:xl,content:Hh(b,E,A),created_at:Xf(),tags:[]},E)}function Ud(b,E){const A=cu();return Ja({kind:It,content:Hh(b,A,E),created_at:Xf(),tags:[["p",E]]},A)}function xu(b,E,A){return Ud(Bd(Fd(b,E),E,A),A)}function Wh(b,E,A){if(!A||0===A.length)throw new Error("At least one recipient is required.");const j=uu(E),Y=[xu(b,E,j)];return A.forEach(se=>{Y.push(xu(b,E,se))}),Y}function _m(b,E){const A=nd(b,E);return nd(A,E)}function zh(b,E){let A=[];return b.forEach(j=>{A.push(_m(j,E))}),A.sort((j,Y)=>j.created_at-Y.created_at),A}Ir({},{getToken:()=>Qf,hashPayload:()=>tl,unpackEventFromToken:()=>Zf,validateEvent:()=>Qh,validateEventKind:()=>Xh,validateEventMethodTag:()=>ym,validateEventPayloadTag:()=>Cu,validateEventTimestamp:()=>qf,validateEventUrlTag:()=>Yh,validateToken:()=>$c});var Yf="Nostr ";function Qf(b,E,A){return Kh.apply(this,arguments)}function Kh(){return(Kh=(0,a.A)(function*(b,E,A,j=!1,Y){const se={kind:Cl,tags:[["u",b],["method",E]],created_at:Math.round((new Date).getTime()/1e3),content:""};Y&&se.tags.push(["payload",tl(Y)]);const ke=yield A(se);return(j?Yf:"")+qn.encode(Ys.encode(JSON.stringify(ke)))})).apply(this,arguments)}function $c(b,E,A){return jc.apply(this,arguments)}function jc(){return(jc=(0,a.A)(function*(b,E,A){const j=yield Zf(b).catch(se=>{throw se});return yield Qh(j,E,A).catch(se=>{throw se})})).apply(this,arguments)}function Zf(b){return Gh.apply(this,arguments)}function Gh(){return(Gh=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace(Yf,"");const E=Wr.decode(qn.decode(b));if(!E||0===E.length||!E.startsWith("{"))throw new Error("Invalid token");return JSON.parse(E)})).apply(this,arguments)}function qf(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function Xh(b){return b.kind===Cl}function Yh(b,E){const A=b.tags.find(j=>"u"===j[0]);return!!A&&A.length>0&&A[1]===E}function ym(b,E){const A=b.tags.find(j=>"method"===j[0]);return!!A&&A.length>0&&A[1].toLowerCase()===E.toLowerCase()}function tl(b){const E=Ss(Ys.encode(JSON.stringify(b)));return(0,Xr.My)(E)}function Cu(b,E){const A=b.tags.find(Y=>"payload"===Y[0]);if(!A)return!1;const j=tl(E);return A.length>0&&A[1]===j}function Qh(b,E,A,j){return rd.apply(this,arguments)}function rd(){return(rd=(0,a.A)(function*(b,E,A,j){if(!Cn(b))throw new Error("Invalid nostr event, signature invalid");if(!Xh(b))throw new Error("Invalid nostr event, kind invalid");if(!qf(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Yh(b,E))throw new Error("Invalid nostr event, url tag invalid");if(!ym(b,A))throw new Error("Invalid nostr event, method tag invalid");if(j&&"object"==typeof j&&Object.keys(j).length>0&&!Cu(b,j))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},3797:(o,s,n)=>{"use strict";n.d(s,{OS:()=>k,av:()=>R,qT:()=>de,rV:()=>ne}),Symbol("verified");var k=0,R=1,ne=4,de=7},4704:(o,s,n)=>{"use strict";n.d(s,{Vw:()=>de,My:()=>M,Id:()=>pe,O8:()=>w,aT:()=>k,po:()=>le,Ow:()=>C,ZJ:()=>_e,ld:()=>Le});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=ae=>ae instanceof Uint8Array,w=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),C=(ae,xe)=>ae<<32-xe|ae>>>xe;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const S=Array.from({length:256},(ae,xe)=>xe.toString(16).padStart(2,"0"));function M(ae){if(!a(ae))throw new Error("Uint8Array expected");let xe="";for(let Be=0;Best+lt.length,0));let Be=0;return ae.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");xe.set(st,Be),Be+=st.length}),xe}class de{clone(){return this._cloneInto()}}function Le(ae){const xe=st=>ae().update(_e(st)).digest(),Be=ae();return xe.outputLen=Be.outputLen,xe.blockLen=Be.blockLen,xe.create=()=>ae(),xe}function le(ae=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},2661:(o,s,n)=>{"use strict";function i(a,c){this.v=a,this.k=c}n.d(s,{A:()=>i})},3014:(o,s,n)=>{"use strict";function i(c,y,w,C,T,S,M){try{var k=c[S](M),R=k.value}catch(X){return void w(X)}k.done?y(R):Promise.resolve(R).then(C,T)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,T){var S=c.apply(y,w);function M(R){i(S,C,T,M,k,"next",R)}function k(R){i(S,C,T,M,k,"throw",R)}M(void 0)})}}n.d(s,{A:()=>a})},5137:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});var i=n(2661);function a(c){return new i.A(c,0)}},9129:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});var i=n(2661);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function T(M,k){try{var R=y[M](k),X=R.value,Z=X instanceof i.A;Promise.resolve(Z?X.v:X).then(function(ne){if(Z){var _e="return"===M?"return":"next";if(!X.k||ne.done)return T(_e,ne);ne=y[_e](ne).value}S(R.done?"return":"normal",ne)},function(ne){T("throw",ne)})}catch(ne){S("throw",ne)}}function S(M,k){switch(M){case"return":w.resolve({value:k,done:!0});break;case"throw":w.reject(k);break;default:w.resolve({value:k,done:!1})}(w=w.next)?T(w.key,w.arg):C=null}this._invoke=function(M,k){return new Promise(function(R,X){var Z={key:M,arg:k,resolve:R,reject:X,next:null};C?C=C.next=Z:(w=C=Z,T(M,k))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,n)=>{"use strict";function X(ze,Ue,Ft,Ke){return new(Ft||(Ft=Promise))(function(it,Ot){function Qt(Xt){try{ht(Ke.next(Xt))}catch(Tn){Ot(Tn)}}function Me(Xt){try{ht(Ke.throw(Xt))}catch(Tn){Ot(Tn)}}function ht(Xt){Xt.done?it(Xt.value):function Ze(it){return it instanceof Ft?it:new Ft(function(Ot){Ot(it)})}(Xt.value).then(Qt,Me)}ht((Ke=Ke.apply(ze,Ue||[])).next())})}function Ae(ze){return this instanceof Ae?(this.v=ze,this):new Ae(ze)}function we(ze,Ue,Ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Ke=Ft.apply(ze,Ue||[]),it=[];return Ze=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Qt("next"),Qt("throw"),Qt("return",function Ot(Zt){return function(rt){return Promise.resolve(rt).then(Zt,Tn)}}),Ze[Symbol.asyncIterator]=function(){return this},Ze;function Qt(Zt,rt){Ke[Zt]&&(Ze[Zt]=function(Ht){return new Promise(function(en,Nn){it.push([Zt,Ht,en,Nn])>1||Me(Zt,Ht)})},rt&&(Ze[Zt]=rt(Ze[Zt])))}function Me(Zt,rt){try{!function ht(Zt){Zt.value instanceof Ae?Promise.resolve(Zt.value.v).then(Xt,Tn):Wt(it[0][2],Zt)}(Ke[Zt](rt))}catch(Ht){Wt(it[0][3],Ht)}}function Xt(Zt){Me("next",Zt)}function Tn(Zt){Me("throw",Zt)}function Wt(Zt,rt){Zt(rt),it.shift(),it.length&&Me(it[0][0],it[0][1])}}function ae(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ft,Ue=ze[Symbol.asyncIterator];return Ue?Ue.call(ze):(ze=function pe(ze){var Ue="function"==typeof Symbol&&Symbol.iterator,Ft=Ue&&ze[Ue],Ke=0;if(Ft)return Ft.call(ze);if(ze&&"number"==typeof ze.length)return{next:function(){return ze&&Ke>=ze.length&&(ze=void 0),{value:ze&&ze[Ke++],done:!ze}}};throw new TypeError(Ue?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ft={},Ke("next"),Ke("throw"),Ke("return"),Ft[Symbol.asyncIterator]=function(){return this},Ft);function Ke(it){Ft[it]=ze[it]&&function(Ot){return new Promise(function(Qt,Me){!function Ze(it,Ot,Qt,Me){Promise.resolve(Me).then(function(ht){it({value:ht,done:Qt})},Ot)}(Qt,Me,(Ot=ze[it](Ot)).done,Ot.value)})}}}n.d(s,{AQ:()=>we,N3:()=>Ae,sH:()=>X,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=770)}]); \ No newline at end of file diff --git a/main.fd5d5c4f38f6d825.js b/main.fd5d5c4f38f6d825.js deleted file mode 100644 index 0d7caa9..0000000 --- a/main.fd5d5c4f38f6d825.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkangor=self.webpackChunkangor||[]).push([[792],{6146:(o,s,n)=>{"use strict";n.d(s,{F:()=>i.F});var i=n(799)},799:(o,s,n)=>{"use strict";n.d(s,{F:()=>st});let i=(()=>{class lt{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 lt})(),a=(()=>{class lt{static{this.complex="375ms"}static{this.entering="225ms"}static{this.exiting="195ms"}}return lt})();var c=n(1204);const ae=(lt,bt,at,sn,fn=`${a.entering} ${i.deceleration}`,En=`${a.exiting} ${i.acceleration}`)=>(0,c.hZ)(lt,[(0,c.wk)("void",(0,c.iF)(bt)),(0,c.wk)("*",(0,c.iF)(at)),(0,c.kY)("void => false, * => false",[]),(0,c.kY)("void => *",(0,c.i0)(sn||fn),{params:{timings:fn}}),(0,c.kY)("* => void",(0,c.i0)(sn||En),{params:{timings:En}})]),st=[(0,c.hZ)("expandCollapse",[(0,c.wk)("void, collapsed",(0,c.iF)({height:"0"})),(0,c.wk)("*, expanded",(0,c.iF)("*")),(0,c.kY)("void <=> false, collapsed <=> false, expanded <=> false",[]),(0,c.kY)("void <=> *, collapsed <=> expanded",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeIn",[(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInTop",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInBottom",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInLeft",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeInRight",[(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("fadeOut",[(0,c.wk)("*",(0,c.iF)({opacity:1})),(0,c.wk)("void",(0,c.iF)({opacity:0})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutTop",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutBottom",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutLeft",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("fadeOutRight",[(0,c.wk)("*",(0,c.iF)({opacity:1,transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({opacity:0,transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("shake",[(0,c.kY)("void => false",[]),(0,c.kY)("void => *, * => true",[(0,c.i0)("{{timings}}",(0,c.i7)([(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:0}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.1}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.2}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.3}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.4}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.5}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.6}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.7}),(0,c.iF)({transform:"translate3d(10px, 0, 0)",offset:.8}),(0,c.iF)({transform:"translate3d(-10px, 0, 0)",offset:.9}),(0,c.iF)({transform:"translate3d(0, 0, 0)",offset:1})]))],{params:{timings:"0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955)"}})]),(0,c.hZ)("slideInTop",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInBottom",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInLeft",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideInRight",[(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.kY)("void => false",[]),(0,c.kY)("void => *",(0,c.i0)("{{timings}}"),{params:{timings:`${a.entering} ${i.deceleration}`}})]),(0,c.hZ)("slideOutTop",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, -100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutBottom",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(0, 100%, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutLeft",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(-100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),(0,c.hZ)("slideOutRight",[(0,c.wk)("*",(0,c.iF)({transform:"translate3d(0, 0, 0)"})),(0,c.wk)("void",(0,c.iF)({transform:"translate3d(100%, 0, 0)"})),(0,c.kY)("false => void",[]),(0,c.kY)("* => void",(0,c.i0)("{{timings}}"),{params:{timings:`${a.exiting} ${i.acceleration}`}})]),ae("zoomIn",{opacity:0,transform:"scale(0.5)"},{opacity:1,transform:"scale(1)"},""),ae("zoomOut",{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.5)"},"")]},3871:(o,s,n)=>{"use strict";n.d(s,{$w:()=>tt,lX:()=>c,Tv:()=>Aa});var i=n(6146),a=n(3107);let c=(()=>{class q{constructor(){this._componentRegistry=new Map,this._navigationStore=new Map}registerComponent(J,ot){this._componentRegistry.set(J,ot)}deregisterComponent(J){this._componentRegistry.delete(J)}getComponent(J){return this._componentRegistry.get(J)}storeNavigation(J,ot){this._navigationStore.set(J,ot)}getNavigation(J){return this._navigationStore.get(J)??[]}deleteNavigation(J){this._navigationStore.has(J)||console.warn(`Navigation with the key '${J}' does not exist.`),this._navigationStore.delete(J)}getFlatNavigation(J,ot=[]){for(const Ct of J)"basic"===Ct.type?ot.push(Ct):Ct.children&&this.getFlatNavigation(Ct.children,ot);return ot}getItem(J,ot){for(const Ct of ot){if(Ct.id===J)return Ct;if(Ct.children){const jn=this.getItem(J,Ct.children);if(jn)return jn}}return null}getItemParent(J,ot,Ct){for(const jn of ot){if(jn.id===J)return Ct;if(jn.children){const Pn=this.getItemParent(J,jn.children,jn);if(Pn)return Pn}}return null}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275prov=a.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})();var y=n(3939),w=n(7838),C=n(8447),T=n(4460),S=n(3904),M=n(7818),k=n(7712),R=n(8716),X=n(5424);const Z=q=>({"angor-horizontal-navigation-item-active-forced":q}),re=q=>[q];function _e(q,qe){1&q&&a.eu8(0)}function pe(q,qe){if(1&q&&(a.j41(0,"div",2),a.DNE(1,_e,1,0,"ng-container",7),a.k0s()),2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,Pn.item.active))("routerLink",a.eq3(12,re,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function de(q,qe){1&q&&a.eu8(0)}function De(q,qe){if(1&q&&(a.j41(0,"a",3),a.DNE(1,de,1,0,"ng-container",7),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ee(q,qe){1&q&&a.eu8(0)}function Le(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",8),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ee,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ae(q,qe){1&q&&a.eu8(0)}function we(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",9),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ae,1,0,"ng-container",7),a.k0s()}if(2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Z,Pn.item.active))("routerLink",a.eq3(12,re,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-horizontal-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function le(q,qe){1&q&&a.eu8(0)}function ae(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",10),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,le,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function xe(q,qe){1&q&&a.eu8(0)}function Be(q,qe){if(1&q&&(a.j41(0,"div",4),a.DNE(1,xe,1,0,"ng-container",7),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Z,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function st(q,qe){1&q&&a.eu8(0)}function lt(q,qe){if(1&q&&(a.j41(0,"div",6),a.DNE(1,st,1,0,"ng-container",7),a.k0s()),2&q){a.XpG();const J=a.sdS(9);a.R7$(),a.Y8G("ngTemplateOutlet",J)}}function bt(q,qe){if(1&q&&a.nrm(0,"mat-icon",11),2&q){const J=a.XpG(2);a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function at(q,qe){if(1&q&&(a.j41(0,"div",15)(1,"span",14),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function sn(q,qe){if(1&q&&(a.j41(0,"div",16)(1,"div",17),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function fn(q,qe){if(1&q&&(a.DNE(0,bt,1,2,"mat-icon",11),a.j41(1,"div",12)(2,"div",13)(3,"span",14),a.EFF(4),a.k0s()(),a.DNE(5,at,3,2,"div",15),a.k0s(),a.DNE(6,sn,3,2,"div",16)),2&q){const J=a.XpG();a.vxM(J.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.title),a.R7$(),a.SpI(" ",J.item.title," "),a.R7$(),a.vxM(J.item.subtitle?5:-1),a.R7$(),a.vxM(J.item.badge?6:-1)}}let En=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-basic-item"]],inputs:{item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",1),a.DNE(1,pe,2,14,"div",2)(2,De,2,4,"a",3)(3,Le,2,5,"div",4)(4,we,2,14,"div",2)(5,ae,2,4,"a",5)(6,Be,2,5,"div",4)(7,lt,2,1,"div",6),a.k0s(),a.DNE(8,fn,7,5,"ng-template",null,0,a.C5r)),2&ot&&(a.AVh("angor-horizontal-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.vxM(!Ct.item.link||Ct.item.externalLink||Ct.item.function||Ct.item.disabled?-1:1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&!Ct.item.function&&!Ct.item.disabled?2:-1),a.R7$(),a.vxM(Ct.item.link||!Ct.item.function||Ct.item.disabled?-1:3),a.R7$(),a.vxM(Ct.item.link&&!Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?4:-1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?5:-1),a.R7$(),a.vxM(Ct.item.link||Ct.item.function||Ct.item.disabled?-1:6),a.R7$(),a.vxM(Ct.item.disabled?7:-1))},dependencies:[T.YU,R.Wk,R.wQ,k.uc,k.oV,T.T3,M.Cn,M.fb,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),Wn=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper","divider",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();const wn=["matMenu"],Je=(q,qe)=>({"angor-horizontal-navigation-menu-active":q,"angor-horizontal-navigation-menu-active-forced":qe}),_t=q=>({$implicit:q}),ze=(q,qe)=>({"angor-horizontal-navigation-item-disabled":q,"angor-horizontal-navigation-item-active-forced":qe});function Ue(q,qe){1&q&&a.eu8(0)}function Ft(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",6,2),a.bIt("onMenuOpen",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.triggerChangeDetection())})("onMenuClose",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.triggerChangeDetection())}),a.DNE(2,Ue,1,0,"ng-container",7),a.k0s()}if(2&q){const J=a.sdS(1),ot=a.XpG(),Ct=a.sdS(2),jn=a.sdS(6);a.Y8G("ngClass",a.l_i(4,Je,J.menuOpen,ot.item.active))("matMenuTriggerFor",Ct),a.R7$(2),a.Y8G("ngTemplateOutlet",jn)("ngTemplateOutletContext",a.eq3(7,_t,ot.item))}}function Ke(q,qe){if(1&q&&(a.j41(0,"div",8),a.nrm(1,"angor-horizontal-navigation-basic-item",11),a.k0s()),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("disabled",J.disabled),a.R7$(),a.Y8G("item",J)("name",ot.name)}}function Ze(q,qe){1&q&&a.eu8(0)}function it(q,qe){if(1&q&&(a.j41(0,"div",9),a.DNE(1,Ze,1,0,"ng-container",7),a.nrm(2,"angor-horizontal-navigation-branch-item",12,3),a.k0s()),2&q){const J=a.sdS(3),ot=a.XpG(2).$implicit,Ct=a.XpG(),jn=a.sdS(6);a.Y8G("disabled",ot.disabled)("matMenuTriggerFor",J.matMenu),a.R7$(),a.Y8G("ngTemplateOutlet",jn)("ngTemplateOutletContext",a.eq3(7,_t,ot)),a.R7$(),a.Y8G("child",!0)("item",ot)("name",Ct.name)}}function Ot(q,qe){if(1&q&&(a.j41(0,"div",10),a.nrm(1,"angor-horizontal-navigation-divider-item",11),a.k0s()),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.R7$(),a.Y8G("item",J)("name",ot.name)}}function Qt(q,qe){if(1&q&&a.DNE(0,Ke,2,3,"div",8)(1,it,4,9,"div",9)(2,Ot,2,2,"div",10),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("aside"===J.type||"collapsable"===J.type||"group"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1)}}function Me(q,qe){if(1&q&&a.DNE(0,Qt,3,3),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function ht(q,qe){if(1&q&&a.nrm(0,"mat-icon",15),2&q){const J=a.XpG().$implicit;a.Y8G("ngClass",null==J.classes?null:J.classes.icon)("svgIcon",J.icon)}}function Xt(q,qe){if(1&q&&(a.j41(0,"div",19)(1,"span",18),a.EFF(2),a.k0s()()),2&q){const J=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",null==J.classes?null:J.classes.subtitle),a.R7$(),a.SpI(" ",J.subtitle," ")}}function Tn(q,qe){if(1&q&&(a.j41(0,"div",20)(1,"div",21),a.EFF(2),a.k0s()()),2&q){const J=a.XpG().$implicit;a.R7$(),a.Y8G("ngClass",J.badge.classes),a.R7$(),a.SpI(" ",J.badge.title," ")}}function Wt(q,qe){if(1&q&&(a.j41(0,"div",13)(1,"div",14),a.DNE(2,ht,1,2,"mat-icon",15),a.j41(3,"div",16)(4,"div",17)(5,"span",18),a.EFF(6),a.k0s()(),a.DNE(7,Xt,3,2,"div",19),a.k0s(),a.DNE(8,Tn,3,2,"div",20),a.k0s()()),2&q){const J=qe.$implicit;a.AVh("angor-horizontal-navigation-item-has-subtitle",!!J.subtitle),a.Y8G("ngClass",null==J.classes?null:J.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.l_i(10,ze,J.disabled,J.active))("matTooltip",J.tooltip||""),a.R7$(),a.vxM(J.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==J.classes?null:J.classes.title),a.R7$(),a.SpI(" ",J.title," "),a.R7$(),a.vxM(J.subtitle?7:-1),a.R7$(),a.vxM(J.badge?8:-1)}}let Zt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this.child=!1,this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}triggerChangeDetection(){this._changeDetectorRef.markForCheck()}trackByFn(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-branch-item"]],viewQuery:function(ot,Ct){if(1&ot&&a.GBs(wn,7),2&ot){let jn;a.mGM(jn=a.lsd())&&(Ct.matMenu=jn.first)}},inputs:{child:"child",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.DNE(0,Ft,3,9,"div",4),a.j41(1,"mat-menu",5,0),a.Z7z(3,Me,1,1,null,null,Ct.trackByFn,!0),a.k0s(),a.DNE(5,Wt,9,13,"ng-template",null,1,a.C5r)),2&ot&&(a.vxM(Ct.child?-1:0),a.R7$(),a.Y8G("overlapTrigger",!1),a.R7$(2),a.Dyx(Ct.item.children))},dependencies:()=>[q,T.YU,M.Cn,M.kk,M.fb,M.Cp,T.T3,En,Wn,k.uc,k.oV,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),rt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorHorizontalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorHorizontalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-horizontal-navigation-item-wrapper",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();function Ht(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-basic-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function en(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-branch-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Nn(q,qe){if(1&q&&a.nrm(0,"angor-horizontal-navigation-spacer-item",1),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function mn(q,qe){if(1&q&&a.DNE(0,Ht,1,2,"angor-horizontal-navigation-basic-item",1)(1,en,1,2,"angor-horizontal-navigation-branch-item",1)(2,Nn,1,2,"angor-horizontal-navigation-spacer-item",1),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("aside"===J.type||"collapsable"===J.type||"group"===J.type?1:-1),a.R7$(),a.vxM("spacer"===J.type?2:-1)}}function Mn(q,qe){if(1&q&&a.DNE(0,mn,3,3),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}let tt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.name=this._angorUtilsService.randomId(),this.onRefreshed=new w.m(1),this._unsubscribeAll=new C.B}ngOnChanges(J){"navigation"in J&&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(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-horizontal-navigation"]],inputs:{name:"name",navigation:"navigation"},exportAs:["angorHorizontalNavigation"],features:[a.OA$],decls:3,vars:0,consts:[[1,"angor-horizontal-navigation-wrapper"],[1,"angor-horizontal-navigation-menu-item",3,"item","name"]],template:function(ot,Ct){1&ot&&(a.j41(0,"div",0),a.Z7z(1,Mn,1,1,null,null,Ct.trackByFn,!0),a.k0s()),2&ot&&(a.R7$(),a.Dyx(Ct.navigation))},dependencies:[En,Zt,rt],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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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, 1))!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:i.F},changeDetection:0})}}return q})();const Kt=q=>({"angor-vertical-navigation-item-active-forced":q}),At=q=>[q];function Te(q,qe){1&q&&a.eu8(0)}function ye(q,qe){if(1&q&&(a.j41(0,"a",2),a.DNE(1,Te,1,0,"ng-container",6),a.k0s()),2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,Pn.item.active))("routerLink",a.eq3(12,At,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function He(q,qe){1&q&&a.eu8(0)}function z(q,qe){if(1&q&&(a.j41(0,"a",3),a.DNE(1,He,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function L(q,qe){1&q&&a.eu8(0)}function V(q,qe){if(1&q){const J=a.RV6();a.j41(0,"div",7),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,L,1,0,"ng-container",6),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function Ne(q,qe){1&q&&a.eu8(0)}function ft(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",8),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,Ne,1,0,"ng-container",6),a.k0s()}if(2&q){let J,ot,Ct,jn;const Pn=a.XpG(),Gn=a.sdS(9);a.Y8G("ngClass",a.eq3(10,Kt,Pn.item.active))("routerLink",a.eq3(12,At,Pn.item.link))("fragment",null!==(J=Pn.item.fragment)&&void 0!==J?J:null)("preserveFragment",null!==(ot=Pn.item.preserveFragment)&&void 0!==ot&&ot)("queryParams",null!==(Ct=Pn.item.queryParams)&&void 0!==Ct?Ct:null)("queryParamsHandling",null!==(jn=Pn.item.queryParamsHandling)&&void 0!==jn?jn:null)("routerLinkActive","angor-vertical-navigation-item-active")("routerLinkActiveOptions",Pn.isActiveMatchOptions)("matTooltip",Pn.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",Gn)}}function mt(q,qe){1&q&&a.eu8(0)}function Tt(q,qe){if(1&q){const J=a.RV6();a.j41(0,"a",9),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG();return a.Njj(Ct.item.function(Ct.item))}),a.DNE(1,mt,1,0,"ng-container",6),a.k0s()}if(2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("href",J.item.link,a.B4B)("target",J.item.target||"_self")("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function On(q,qe){1&q&&a.eu8(0)}function cn(q,qe){if(1&q&&(a.j41(0,"div",4),a.DNE(1,On,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("ngClass",a.eq3(3,Kt,J.item.active))("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function hn(q,qe){1&q&&a.eu8(0)}function Ln(q,qe){if(1&q&&(a.j41(0,"div",5),a.DNE(1,hn,1,0,"ng-container",6),a.k0s()),2&q){const J=a.XpG(),ot=a.sdS(9);a.Y8G("matTooltip",J.item.tooltip||""),a.R7$(),a.Y8G("ngTemplateOutlet",ot)}}function lr(q,qe){if(1&q&&a.nrm(0,"mat-icon",10),2&q){const J=a.XpG(2);a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Dn(q,qe){if(1&q&&(a.j41(0,"div",14)(1,"span",13),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function Hr(q,qe){if(1&q&&(a.j41(0,"div",15)(1,"div",16),a.EFF(2),a.k0s()()),2&q){const J=a.XpG(2);a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function Mr(q,qe){if(1&q&&(a.DNE(0,lr,1,2,"mat-icon",10),a.j41(1,"div",11)(2,"div",12)(3,"span",13),a.EFF(4),a.k0s()(),a.DNE(5,Dn,3,2,"div",14),a.k0s(),a.DNE(6,Hr,3,2,"div",15)),2&q){const J=a.XpG();a.vxM(J.item.icon?0:-1),a.R7$(3),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.title),a.R7$(),a.SpI(" ",J.item.title," "),a.R7$(),a.vxM(J.item.subtitle?5:-1),a.R7$(),a.vxM(J.item.badge?6:-1)}}let Vr=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.Q),this.isActiveMatchOptions=this._angorUtilsService.subsetMatchOptions,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-basic-item"]],inputs:{item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",1),a.DNE(1,ye,2,14,"a",2)(2,z,2,4,"a",3)(3,V,2,5,"div",4)(4,ft,2,14,"a",2)(5,Tt,2,4,"a",3)(6,cn,2,5,"div",4)(7,Ln,2,2,"div",5),a.k0s(),a.DNE(8,Mr,7,5,"ng-template",null,0,a.C5r)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.vxM(!Ct.item.link||Ct.item.externalLink||Ct.item.function||Ct.item.disabled?-1:1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&!Ct.item.function&&!Ct.item.disabled?2:-1),a.R7$(),a.vxM(Ct.item.link||!Ct.item.function||Ct.item.disabled?-1:3),a.R7$(),a.vxM(Ct.item.link&&!Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?4:-1),a.R7$(),a.vxM(Ct.item.link&&Ct.item.externalLink&&Ct.item.function&&!Ct.item.disabled?5:-1),a.R7$(),a.vxM(Ct.item.link||Ct.item.function||Ct.item.disabled?-1:6),a.R7$(),a.vxM(Ct.item.disabled?7:-1))},dependencies:[T.YU,R.Wk,R.wQ,k.uc,k.oV,T.T3,S.m_,S.An],encapsulation:2,changeDetection:0})}}return q})(),vt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-divider-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper","divider",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})(),Vt=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-spacer-item"]],inputs:{item:"item",name:"name"},decls:1,vars:1,consts:[[1,"angor-vertical-navigation-item-wrapper",3,"ngClass"]],template:function(ot,Ct){1&ot&&a.nrm(0,"div",0),2&ot&&a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper)},dependencies:[T.YU],encapsulation:2,changeDetection:0})}}return q})();function Oe(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Ge(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function je(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",8),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function Dt(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function ct(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Bt(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function xn(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function er(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function xr(q,qe){if(1&q&&a.DNE(0,Dt,1,2,"angor-vertical-navigation-basic-item",9)(1,ct,1,3,"angor-vertical-navigation-collapsable-item",10)(2,Bt,1,2,"angor-vertical-navigation-divider-item",9)(3,xn,1,2,"angor-vertical-navigation-group-item",9)(4,er,1,2,"angor-vertical-navigation-spacer-item",9),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function si(q,qe){if(1&q&&a.DNE(0,xr,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}let hi=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._angorNavigationService=(0,a.WQX)(c),this._unsubscribeAll=new C.B}ngOnInit(){this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(J,ot){return ot.id||J}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-group-item"]],inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Oe,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Ge,3,2,"div",6),a.k0s(),a.DNE(8,je,3,2,"div",7),a.k0s()(),a.Z7z(9,si,1,1,null,null,Ct.trackByFn,!0)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(2),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.Dyx(Ct.item.children))},dependencies:()=>[q,T.YU,S.m_,S.An,Vr,qo,vt,Vt],encapsulation:2,changeDetection:0})}}return q})();var Zi=n(1483);const nn=q=>({"angor-vertical-navigation-item-disabled":q});function Mt(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function nt(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function Rt(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",10),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function ln(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function vn(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",12),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function fr(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Co(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Ni(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function ds(q,qe){if(1&q&&a.DNE(0,ln,1,2,"angor-vertical-navigation-basic-item",11)(1,vn,1,3,"angor-vertical-navigation-collapsable-item",12)(2,fr,1,2,"angor-vertical-navigation-divider-item",11)(3,Co,1,2,"angor-vertical-navigation-group-item",11)(4,Ni,1,2,"angor-vertical-navigation-spacer-item",11),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function $o(q,qe){if(1&q&&a.DNE(0,ds,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function ai(q,qe){if(1&q&&(a.j41(0,"div",9),a.Z7z(1,$o,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.Y8G("@expandCollapse",void 0),a.R7$(),a.Dyx(J.item.children)}}let qo=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.isCollapsed=!0,this.isExpanded=!1,this._unsubscribeAll=new C.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,X.Q)(this._unsubscribeAll)).subscribe(J=>{null!==J&&this._isChildrenOf(J,this.item)&&this.collapse()}),this.autoCollapse&&this._angorVerticalNavigationComponent.onCollapsableItemExpanded.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(J=>{null!==J&&(this._isChildrenOf(this.item,J)||this._hasActiveChild(this.item,this._router.url)||this.item!==J&&this.collapse())}),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(J=>{this._hasActiveChild(this.item,J.urlAfterRedirects)?this.expand():this.autoCollapse&&this.collapse()}),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.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(J,ot){return ot.id||J}_hasActiveChild(J,ot){const Ct=J.children;if(!Ct)return!1;for(const jn of Ct)if(jn.children&&this._hasActiveChild(jn,ot)||jn.link&&this._router.isActive(jn.link,jn.exactMatch||!1))return!0;return!1}_isChildrenOf(J,ot){const Ct=J.children;if(!Ct)return!1;if(Ct.indexOf(ot)>-1)return!0;for(const jn of Ct)if(jn.children&&this._isChildrenOf(jn,ot))return!0;return!1}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-collapsable-item"]],hostVars:2,hostBindings:function(ot,Ct){2&ot&&a.HbH(Ct.classList)},inputs:{autoCollapse:"autoCollapse",item:"item",name:"name"},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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.bIt("click",function(){return Ct.toggleCollapsable()}),a.DNE(2,Mt,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,nt,3,2,"div",6),a.k0s(),a.DNE(8,Rt,3,2,"div",7),a.nrm(9,"mat-icon",8),a.k0s()(),a.DNE(10,ai,3,1,"div",9)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.eq3(12,nn,Ct.item.disabled))("matTooltip",Ct.item.tooltip||""),a.R7$(),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.Y8G("svgIcon","heroicons_solid:chevron-right"),a.R7$(),a.vxM(Ct.isCollapsed?-1:10))},dependencies:()=>[q,T.YU,k.uc,k.oV,S.m_,S.An,Vr,vt,hi,Vt],encapsulation:2,data:{animation:i.F},changeDetection:0})}}return q})();const fo=(q,qe,J)=>({"angor-vertical-navigation-item-active":q,"angor-vertical-navigation-item-disabled":qe,"angor-vertical-navigation-item-active-forced":J});function Jo(q,qe){if(1&q&&a.nrm(0,"mat-icon",2),2&q){const J=a.XpG();a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.icon)("svgIcon",J.item.icon)}}function Fo(q,qe){if(1&q&&(a.j41(0,"div",6)(1,"span",5),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",null==J.item.classes?null:J.item.classes.subtitle),a.R7$(),a.SpI(" ",J.item.subtitle," ")}}function ia(q,qe){if(1&q&&(a.j41(0,"div",7)(1,"div",9),a.EFF(2),a.k0s()()),2&q){const J=a.XpG();a.R7$(),a.Y8G("ngClass",J.item.badge.classes),a.R7$(),a.SpI(" ",J.item.badge.title," ")}}function ao(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function po(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",11),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Ii(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function Io(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function et(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",10),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)}}function xt(q,qe){if(1&q&&a.DNE(0,ao,1,2,"angor-vertical-navigation-basic-item",10)(1,po,1,3,"angor-vertical-navigation-collapsable-item",11)(2,Ii,1,2,"angor-vertical-navigation-divider-item",10)(3,Io,1,2,"angor-vertical-navigation-group-item",10)(4,et,1,2,"angor-vertical-navigation-spacer-item",10),2&q){const J=a.XpG().$implicit;a.vxM("basic"===J.type?0:-1),a.R7$(),a.vxM("collapsable"===J.type?1:-1),a.R7$(),a.vxM("divider"===J.type?2:-1),a.R7$(),a.vxM("group"===J.type?3:-1),a.R7$(),a.vxM("spacer"===J.type?4:-1)}}function dt(q,qe){if(1&q&&a.DNE(0,xt,5,5),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function me(q,qe){if(1&q&&(a.j41(0,"div",8),a.Z7z(1,dt,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.R7$(),a.Dyx(J.item.children)}}let Ye=(()=>{class q{constructor(){this._changeDetectorRef=(0,a.WQX)(a.gRc),this._router=(0,a.WQX)(R.Ix),this._angorNavigationService=(0,a.WQX)(c),this.active=!1,this._unsubscribeAll=new C.B}ngOnChanges(J){"activeItemId"in J&&this._markIfActive(this._router.url)}ngOnInit(){this._markIfActive(this._router.url),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(J=>{this._markIfActive(J.urlAfterRedirects)}),this._angorVerticalNavigationComponent=this._angorNavigationService.getComponent(this.name),this._angorVerticalNavigationComponent.onRefreshed.pipe((0,X.Q)(this._unsubscribeAll)).subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}trackByFn(J,ot){return ot.id||J}_hasActiveChild(J,ot){const Ct=J.children;if(!Ct)return!1;for(const jn of Ct){if(jn.children&&this._hasActiveChild(jn,ot))return!0;if("basic"===jn.type&&jn.link&&this._router.isActive(jn.link,jn.exactMatch||!1))return!0}return!1}_markIfActive(J){this.active=this.activeItemId===this.item.id,this._hasActiveChild(this.item,J)&&(this.active=!0),this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation-aside-item"]],inputs:{activeItemId:"activeItemId",autoCollapse:"autoCollapse",item:"item",name:"name",skipChildren:"skipChildren"},features:[a.OA$],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(ot,Ct){1&ot&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,Jo,1,2,"mat-icon",2),a.j41(3,"div",3)(4,"div",4)(5,"span",5),a.EFF(6),a.k0s()(),a.DNE(7,Fo,3,2,"div",6),a.k0s(),a.DNE(8,ia,3,2,"div",7),a.k0s()(),a.DNE(9,me,3,0,"div",8)),2&ot&&(a.AVh("angor-vertical-navigation-item-has-subtitle",!!Ct.item.subtitle),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.wrapper),a.R7$(),a.Y8G("ngClass",a.sMw(11,fo,Ct.active,Ct.item.disabled,Ct.item.active))("matTooltip",Ct.item.tooltip||""),a.R7$(),a.vxM(Ct.item.icon?2:-1),a.R7$(3),a.Y8G("ngClass",null==Ct.item.classes?null:Ct.item.classes.title),a.R7$(),a.SpI(" ",Ct.item.title," "),a.R7$(),a.vxM(Ct.item.subtitle?7:-1),a.R7$(),a.vxM(Ct.item.badge?8:-1),a.R7$(),a.vxM(Ct.skipChildren?-1:9))},dependencies:[T.YU,k.uc,k.oV,S.m_,S.An,Vr,qo,vt,hi,Vt],encapsulation:2,changeDetection:0})}}return q})();class Re{constructor(qe,J,ot,Ct){this.x=qe,this.y=J,this.w=ot,this.h=Ct}}class gt{constructor(qe,J){this.x=qe,this.y=J}}var jt=n(3022),kt=n(2147),pn=n(4819);function Sn(q){return getComputedStyle(q)}function An(q,qe){for(var J in qe){var ot=qe[J];"number"==typeof ot&&(ot+="px"),q.style[J]=ot}return q}function Fn(q){var qe=document.createElement("div");return qe.className=q,qe}var zn=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function tr(q,qe){if(!zn)throw new Error("No element matching method supported");return zn.call(q,qe)}function cr(q){q.remove?q.remove():q.parentNode&&q.parentNode.removeChild(q)}function Er(q,qe){return Array.prototype.filter.call(q.children,function(J){return tr(J,qe)})}var Cr={main:"ps",rtl:"ps__rtl",element:{thumb:function(q){return"ps__thumb-"+q},rail:function(q){return"ps__rail-"+q},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(q){return"ps--active-"+q},scrolling:function(q){return"ps--scrolling-"+q}}},gi={x:null,y:null};function ni(q,qe){var J=q.element.classList,ot=Cr.state.scrolling(qe);J.contains(ot)?clearTimeout(gi[qe]):J.add(ot)}function Mi(q,qe){gi[qe]=setTimeout(function(){return q.isAlive&&q.element.classList.remove(Cr.state.scrolling(qe))},q.settings.scrollingThreshold)}var Qr=function(qe){this.element=qe,this.handlers={}},Pr={isEmpty:{configurable:!0}};Qr.prototype.bind=function(qe,J){typeof this.handlers[qe]>"u"&&(this.handlers[qe]=[]),this.handlers[qe].push(J),this.element.addEventListener(qe,J,!1)},Qr.prototype.unbind=function(qe,J){var ot=this;this.handlers[qe]=this.handlers[qe].filter(function(Ct){return!(!J||Ct===J)||(ot.element.removeEventListener(qe,Ct,!1),!1)})},Qr.prototype.unbindAll=function(){for(var qe in this.handlers)this.unbind(qe)},Pr.isEmpty.get=function(){var q=this;return Object.keys(this.handlers).every(function(qe){return 0===q.handlers[qe].length})},Object.defineProperties(Qr.prototype,Pr);var Do=function(){this.eventElements=[]};function es(q){if("function"==typeof window.CustomEvent)return new CustomEvent(q);var qe=document.createEvent("CustomEvent");return qe.initCustomEvent(q,!1,!1,void 0),qe}function zs(q,qe,J,ot,Ct){var jn;if(void 0===ot&&(ot=!0),void 0===Ct&&(Ct=!1),"top"===qe)jn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==qe)throw new Error("A proper axis should be provided");jn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function oa(q,qe,J,ot,Ct){var jn=J[0],Pn=J[1],Gn=J[2],qn=J[3],qr=J[4],zi=J[5];void 0===ot&&(ot=!0),void 0===Ct&&(Ct=!1);var kr=q.element;q.reach[qn]=null,kr[Gn]<1&&(q.reach[qn]="start"),kr[Gn]>q[jn]-q[Pn]-1&&(q.reach[qn]="end"),qe&&(kr.dispatchEvent(es("ps-scroll-"+qn)),qe<0?kr.dispatchEvent(es("ps-scroll-"+qr)):qe>0&&kr.dispatchEvent(es("ps-scroll-"+zi)),ot&&function Rr(q,qe){ni(q,qe),Mi(q,qe)}(q,qn)),q.reach[qn]&&(qe||Ct)&&kr.dispatchEvent(es("ps-"+qn+"-reach-"+q.reach[qn]))}(q,J,jn,ot,Ct)}function Li(q){return parseInt(q,10)||0}Do.prototype.eventElement=function(qe){var J=this.eventElements.filter(function(ot){return ot.element===qe})[0];return J||(J=new Qr(qe),this.eventElements.push(J)),J},Do.prototype.bind=function(qe,J,ot){this.eventElement(qe).bind(J,ot)},Do.prototype.unbind=function(qe,J,ot){var Ct=this.eventElement(qe);Ct.unbind(J,ot),Ct.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ct),1)},Do.prototype.unbindAll=function(){this.eventElements.forEach(function(qe){return qe.unbindAll()}),this.eventElements=[]},Do.prototype.once=function(qe,J,ot){var Ct=this.eventElement(qe),jn=function(Pn){Ct.unbind(J,jn),ot(Pn)};Ct.bind(J,jn)};var Ks={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 Oo(q){var qe=q.element,J=Math.floor(qe.scrollTop),ot=qe.getBoundingClientRect();q.containerWidth=Math.floor(ot.width),q.containerHeight=Math.floor(ot.height),q.contentWidth=qe.scrollWidth,q.contentHeight=qe.scrollHeight,qe.contains(q.scrollbarXRail)||(Er(qe,Cr.element.rail("x")).forEach(function(Ct){return cr(Ct)}),qe.appendChild(q.scrollbarXRail)),qe.contains(q.scrollbarYRail)||(Er(qe,Cr.element.rail("y")).forEach(function(Ct){return cr(Ct)}),qe.appendChild(q.scrollbarYRail)),!q.settings.suppressScrollX&&q.containerWidth+q.settings.scrollXMarginOffset=q.railXWidth-q.scrollbarXWidth&&(q.scrollbarXLeft=q.railXWidth-q.scrollbarXWidth),q.scrollbarYTop>=q.railYHeight-q.scrollbarYHeight&&(q.scrollbarYTop=q.railYHeight-q.scrollbarYHeight),function No(q,qe){var J={width:qe.railXWidth},ot=Math.floor(q.scrollTop);J.left=qe.isRtl?qe.negativeScrollAdjustment+q.scrollLeft+qe.containerWidth-qe.contentWidth:q.scrollLeft,qe.isScrollbarXUsingBottom?J.bottom=qe.scrollbarXBottom-ot:J.top=qe.scrollbarXTop+ot,An(qe.scrollbarXRail,J);var Ct={top:ot,height:qe.railYHeight};qe.isScrollbarYUsingRight?Ct.right=qe.isRtl?qe.contentWidth-(qe.negativeScrollAdjustment+q.scrollLeft)-qe.scrollbarYRight-qe.scrollbarYOuterWidth-9:qe.scrollbarYRight-q.scrollLeft:Ct.left=qe.isRtl?qe.negativeScrollAdjustment+q.scrollLeft+2*qe.containerWidth-qe.contentWidth-qe.scrollbarYLeft-qe.scrollbarYOuterWidth:qe.scrollbarYLeft+q.scrollLeft,An(qe.scrollbarYRail,Ct),An(qe.scrollbarX,{left:qe.scrollbarXLeft,width:qe.scrollbarXWidth-qe.railBorderXWidth}),An(qe.scrollbarY,{top:qe.scrollbarYTop,height:qe.scrollbarYHeight-qe.railBorderYWidth})}(qe,q),q.scrollbarXActive?qe.classList.add(Cr.state.active("x")):(qe.classList.remove(Cr.state.active("x")),q.scrollbarXWidth=0,q.scrollbarXLeft=0,qe.scrollLeft=!0===q.isRtl?q.contentWidth:0),q.scrollbarYActive?qe.classList.add(Cr.state.active("y")):(qe.classList.remove(Cr.state.active("y")),q.scrollbarYHeight=0,q.scrollbarYTop=0,qe.scrollTop=0)}function Cs(q,qe){return q.settings.minScrollbarLength&&(qe=Math.max(qe,q.settings.minScrollbarLength)),q.settings.maxScrollbarLength&&(qe=Math.min(qe,q.settings.maxScrollbarLength)),qe}var Ko=null;function Go(q,qe){var J=qe[0],ot=qe[1],Ct=qe[2],jn=qe[3],Pn=qe[4],Gn=qe[5],qn=qe[6],qr=qe[7],zi=qe[8],kr=q.element,fi=null,zr=null,di=null;function Fi(Ho){Ho.touches&&Ho.touches[0]&&(Ho[Ct]=Ho.touches[0]["page"+qr.toUpperCase()]),Ko===Pn&&(kr[qn]=fi+di*(Ho[Ct]-zr),ni(q,qr),Oo(q),Ho.stopPropagation(),Ho.preventDefault())}function Ro(){Mi(q,qr),q[zi].classList.remove(Cr.state.clicking),document.removeEventListener("mousemove",Fi),document.removeEventListener("mouseup",Ro),document.removeEventListener("touchmove",Fi),document.removeEventListener("touchend",Ro),Ko=null}function jo(Ho){null===Ko&&(Ko=Pn,fi=kr[qn],Ho.touches&&(Ho[Ct]=Ho.touches[0]["page"+qr.toUpperCase()]),zr=Ho[Ct],di=(q[ot]-q[J])/(q[jn]-q[Gn]),Ho.touches?(document.addEventListener("touchmove",Fi,{passive:!1}),document.addEventListener("touchend",Ro)):(document.addEventListener("mousemove",Fi),document.addEventListener("mouseup",Ro)),q[zi].classList.add(Cr.state.clicking)),Ho.stopPropagation(),Ho.cancelable&&Ho.preventDefault()}q[Pn].addEventListener("mousedown",jo),q[Pn].addEventListener("touchstart",jo)}var io={"click-rail":function hs(q){q.event.bind(q.scrollbarY,"mousedown",function(qe){return qe.stopPropagation()}),q.event.bind(q.scrollbarYRail,"mousedown",function(qe){var J=qe.pageY-window.pageYOffset-q.scrollbarYRail.getBoundingClientRect().top;q.element.scrollTop+=(J>q.scrollbarYTop?1:-1)*q.containerHeight,Oo(q),qe.stopPropagation()}),q.event.bind(q.scrollbarX,"mousedown",function(qe){return qe.stopPropagation()}),q.event.bind(q.scrollbarXRail,"mousedown",function(qe){var J=qe.pageX-window.pageXOffset-q.scrollbarXRail.getBoundingClientRect().left;q.element.scrollLeft+=(J>q.scrollbarXLeft?1:-1)*q.containerWidth,Oo(q),qe.stopPropagation()})},"drag-thumb":function mo(q){Go(q,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),Go(q,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])},keyboard:function Rs(q){var qe=q.element;q.event.bind(q.ownerDocument,"keydown",function(jn){if(!(jn.isDefaultPrevented&&jn.isDefaultPrevented()||jn.defaultPrevented)&&(tr(qe,":hover")||tr(q.scrollbarX,":focus")||tr(q.scrollbarY,":focus"))){var Pn=document.activeElement?document.activeElement:q.ownerDocument.activeElement;if(Pn){if("IFRAME"===Pn.tagName)Pn=Pn.contentDocument.activeElement;else for(;Pn.shadowRoot;)Pn=Pn.shadowRoot.activeElement;if(function bi(q){return tr(q,"input,[contenteditable]")||tr(q,"select,[contenteditable]")||tr(q,"textarea,[contenteditable]")||tr(q,"button,[contenteditable]")}(Pn))return}var Gn=0,qn=0;switch(jn.which){case 37:Gn=jn.metaKey?-q.contentWidth:jn.altKey?-q.containerWidth:-30;break;case 38:qn=jn.metaKey?q.contentHeight:jn.altKey?q.containerHeight:30;break;case 39:Gn=jn.metaKey?q.contentWidth:jn.altKey?q.containerWidth:30;break;case 40:qn=jn.metaKey?-q.contentHeight:jn.altKey?-q.containerHeight:-30;break;case 32:qn=jn.shiftKey?q.containerHeight:-q.containerHeight;break;case 33:qn=q.containerHeight;break;case 34:qn=-q.containerHeight;break;case 36:qn=q.contentHeight;break;case 35:qn=-q.contentHeight;break;default:return}q.settings.suppressScrollX&&0!==Gn||q.settings.suppressScrollY&&0!==qn||(qe.scrollTop-=qn,qe.scrollLeft+=Gn,Oo(q),function Ct(jn,Pn){var Gn=Math.floor(qe.scrollTop);if(0===jn){if(!q.scrollbarYActive)return!1;if(0===Gn&&Pn>0||Gn>=q.contentHeight-q.containerHeight&&Pn<0)return!q.settings.wheelPropagation}var qn=qe.scrollLeft;if(0===Pn){if(!q.scrollbarXActive)return!1;if(0===qn&&jn<0||qn>=q.contentWidth-q.containerWidth&&jn>0)return!q.settings.wheelPropagation}return!0}(Gn,qn)&&jn.preventDefault())}})},wheel:function Xr(q){var qe=q.element;function jn(Pn){var Gn=function ot(Pn){var Gn=Pn.deltaX,qn=-1*Pn.deltaY;return(typeof Gn>"u"||typeof qn>"u")&&(Gn=-1*Pn.wheelDeltaX/6,qn=Pn.wheelDeltaY/6),Pn.deltaMode&&1===Pn.deltaMode&&(Gn*=10,qn*=10),Gn!=Gn&&qn!=qn&&(Gn=0,qn=Pn.wheelDelta),Pn.shiftKey?[-qn,-Gn]:[Gn,qn]}(Pn),qn=Gn[0],qr=Gn[1];if(!function Ct(Pn,Gn,qn){if(!Ks.isWebKit&&qe.querySelector("select:focus"))return!0;if(!qe.contains(Pn))return!1;for(var qr=Pn;qr&&qr!==qe;){if(qr.classList.contains(Cr.element.consuming))return!0;var zi=Sn(qr);if(qn&&zi.overflowY.match(/(scroll|auto)/)){var kr=qr.scrollHeight-qr.clientHeight;if(kr>0&&(qr.scrollTop>0&&qn<0||qr.scrollTop0))return!0}if(Gn&&zi.overflowX.match(/(scroll|auto)/)){var fi=qr.scrollWidth-qr.clientWidth;if(fi>0&&(qr.scrollLeft>0&&Gn<0||qr.scrollLeft0))return!0}qr=qr.parentNode}return!1}(Pn.target,qn,qr)){var zi=!1;q.settings.useBothWheelAxes?q.scrollbarYActive&&!q.scrollbarXActive?(qr?qe.scrollTop-=qr*q.settings.wheelSpeed:qe.scrollTop+=qn*q.settings.wheelSpeed,zi=!0):q.scrollbarXActive&&!q.scrollbarYActive&&(qn?qe.scrollLeft+=qn*q.settings.wheelSpeed:qe.scrollLeft-=qr*q.settings.wheelSpeed,zi=!0):(qe.scrollTop-=qr*q.settings.wheelSpeed,qe.scrollLeft+=qn*q.settings.wheelSpeed),Oo(q),zi=zi||function J(Pn,Gn){var qn=Math.floor(qe.scrollTop),qr=0===qe.scrollTop,zi=qn+qe.offsetHeight===qe.scrollHeight,kr=0===qe.scrollLeft,fi=qe.scrollLeft+qe.offsetWidth===qe.scrollWidth;return!(Math.abs(Gn)>Math.abs(Pn)?qr||zi:kr||fi)||!q.settings.wheelPropagation}(qn,qr),zi&&!Pn.ctrlKey&&(Pn.stopPropagation(),Pn.preventDefault())}}typeof window.onwheel<"u"?q.event.bind(qe,"wheel",jn):typeof window.onmousewheel<"u"&&q.event.bind(qe,"mousewheel",jn)},touch:function Ds(q){if(Ks.supportsTouch||Ks.supportsIePointer){var qe=q.element,J={startOffset:{},startTime:0,speed:{},easingLoop:null};Ks.supportsTouch?(q.event.bind(qe,"touchstart",Gn),q.event.bind(qe,"touchmove",qr),q.event.bind(qe,"touchend",zi)):Ks.supportsIePointer&&(window.PointerEvent?(q.event.bind(qe,"pointerdown",Gn),q.event.bind(qe,"pointermove",qr),q.event.bind(qe,"pointerup",zi)):window.MSPointerEvent&&(q.event.bind(qe,"MSPointerDown",Gn),q.event.bind(qe,"MSPointerMove",qr),q.event.bind(qe,"MSPointerUp",zi)))}function Ct(kr,fi){qe.scrollTop-=fi,qe.scrollLeft-=kr,Oo(q)}function jn(kr){return kr.targetTouches?kr.targetTouches[0]:kr}function Pn(kr){return!(kr.target===q.scrollbarX||kr.target===q.scrollbarY||kr.pointerType&&"pen"===kr.pointerType&&0===kr.buttons||!(kr.targetTouches&&1===kr.targetTouches.length||kr.pointerType&&"mouse"!==kr.pointerType&&kr.pointerType!==kr.MSPOINTER_TYPE_MOUSE))}function Gn(kr){if(Pn(kr)){var fi=jn(kr);J.startOffset.pageX=fi.pageX,J.startOffset.pageY=fi.pageY,J.startTime=(new Date).getTime(),null!==J.easingLoop&&clearInterval(J.easingLoop)}}function qr(kr){if(Pn(kr)){var fi=jn(kr),zr={pageX:fi.pageX,pageY:fi.pageY},di=zr.pageX-J.startOffset.pageX,Fi=zr.pageY-J.startOffset.pageY;if(function qn(kr,fi,zr){if(!qe.contains(kr))return!1;for(var di=kr;di&&di!==qe;){if(di.classList.contains(Cr.element.consuming))return!0;var Fi=Sn(di);if(zr&&Fi.overflowY.match(/(scroll|auto)/)){var Ro=di.scrollHeight-di.clientHeight;if(Ro>0&&(di.scrollTop>0&&zr<0||di.scrollTop0))return!0}if(fi&&Fi.overflowX.match(/(scroll|auto)/)){var jo=di.scrollWidth-di.clientWidth;if(jo>0&&(di.scrollLeft>0&&fi<0||di.scrollLeft0))return!0}di=di.parentNode}return!1}(kr.target,di,Fi))return;Ct(di,Fi),J.startOffset=zr;var Ro=(new Date).getTime(),jo=Ro-J.startTime;jo>0&&(J.speed.x=di/jo,J.speed.y=Fi/jo,J.startTime=Ro),function ot(kr,fi){var zr=Math.floor(qe.scrollTop),di=qe.scrollLeft,Fi=Math.abs(kr),Ro=Math.abs(fi);if(Ro>Fi){if(fi<0&&zr===q.contentHeight-q.containerHeight||fi>0&&0===zr)return 0===window.scrollY&&fi>0&&Ks.isChrome}else if(Fi>Ro&&(kr<0&&di===q.contentWidth-q.containerWidth||kr>0&&0===di))return!0;return!0}(di,Fi)&&kr.cancelable&&kr.preventDefault()}}function zi(){q.settings.swipeEasing&&(clearInterval(J.easingLoop),J.easingLoop=setInterval(function(){q.isInitialized?clearInterval(J.easingLoop):J.speed.x||J.speed.y?Math.abs(J.speed.x)<.01&&Math.abs(J.speed.y)<.01?clearInterval(J.easingLoop):(Ct(30*J.speed.x,30*J.speed.y),J.speed.x*=.8,J.speed.y*=.8):clearInterval(J.easingLoop)},10))}}},fs=function(qe,J){var ot=this;if(void 0===J&&(J={}),"string"==typeof qe&&(qe=document.querySelector(qe)),!qe||!qe.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ct in this.element=qe,qe.classList.add(Cr.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},J)this.settings[Ct]=J[Ct];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var zi,qr,jn=function(){return qe.classList.add(Cr.state.focus)},Pn=function(){return qe.classList.remove(Cr.state.focus)};this.isRtl="rtl"===Sn(qe).direction,!0===this.isRtl&&qe.classList.add(Cr.rtl),this.isNegativeScroll=(qr=qe.scrollLeft,qe.scrollLeft=-1,zi=qe.scrollLeft<0,qe.scrollLeft=qr,zi),this.negativeScrollAdjustment=this.isNegativeScroll?qe.scrollWidth-qe.clientWidth:0,this.event=new Do,this.ownerDocument=qe.ownerDocument||document,this.scrollbarXRail=Fn(Cr.element.rail("x")),qe.appendChild(this.scrollbarXRail),this.scrollbarX=Fn(Cr.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",jn),this.event.bind(this.scrollbarX,"blur",Pn),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var Gn=Sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(Gn.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Li(Gn.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Li(Gn.borderLeftWidth)+Li(Gn.borderRightWidth),An(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Li(Gn.marginLeft)+Li(Gn.marginRight),An(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Fn(Cr.element.rail("y")),qe.appendChild(this.scrollbarYRail),this.scrollbarY=Fn(Cr.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",jn),this.event.bind(this.scrollbarY,"blur",Pn),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var qn=Sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(qn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Li(qn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function sa(q){var qe=Sn(q);return Li(qe.width)+Li(qe.paddingLeft)+Li(qe.paddingRight)+Li(qe.borderLeftWidth)+Li(qe.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Li(qn.borderTopWidth)+Li(qn.borderBottomWidth),An(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Li(qn.marginTop)+Li(qn.marginBottom),An(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:qe.scrollLeft<=0?"start":qe.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:qe.scrollTop<=0?"start":qe.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(qr){return io[qr](ot)}),this.lastScrollTop=Math.floor(qe.scrollTop),this.lastScrollLeft=qe.scrollLeft,this.event.bind(this.element,"scroll",function(qr){return ot.onScroll(qr)}),Oo(this)};fs.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,An(this.scrollbarXRail,{display:"block"}),An(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Li(Sn(this.scrollbarXRail).marginLeft)+Li(Sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=Li(Sn(this.scrollbarYRail).marginTop)+Li(Sn(this.scrollbarYRail).marginBottom),An(this.scrollbarXRail,{display:"none"}),An(this.scrollbarYRail,{display:"none"}),Oo(this),zs(this,"top",0,!1,!0),zs(this,"left",0,!1,!0),An(this.scrollbarXRail,{display:""}),An(this.scrollbarYRail,{display:""}))},fs.prototype.onScroll=function(qe){this.isAlive&&(Oo(this),zs(this,"top",this.element.scrollTop-this.lastScrollTop),zs(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},fs.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),cr(this.scrollbarX),cr(this.scrollbarY),cr(this.scrollbarXRail),cr(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},fs.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(qe){return!qe.match(/^ps([-_].+|)$/)}).join(" ")};const Xo=fs;var Ya=n(909),_o=n(8627);let Ao=(()=>{class q{constructor(){this._elementRef=(0,a.WQX)(a.aKT),this._platform=(0,a.WQX)(kt.OD),this.angorScrollbar=!0,this._ps=null,this._unsubscribeAll=new C.B}get elementRef(){return this._elementRef}get ps(){return this._ps}ngOnChanges(J){"angorScrollbar"in J&&(this.angorScrollbar=(0,jt.he)(J.angorScrollbar.currentValue),this.angorScrollbar?this._initScrollbar():this._destroyScrollbar()),"angorScrollbarOptions"in J&&(this._options=(0,pn.A)({},this._options,J.angorScrollbarOptions.currentValue),this._reinitializeScrollbar())}ngOnInit(){(0,Ya.R)(window,"resize").pipe((0,X.Q)(this._unsubscribeAll),(0,_o.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(J="scroll"){return new Re(this._elementRef.nativeElement[`${J}Left`],this._elementRef.nativeElement[`${J}Top`],this._elementRef.nativeElement[`${J}Width`],this._elementRef.nativeElement[`${J}Height`])}position(J=!1){return!J&&this._ps?new gt(this._ps.reach.x||0,this._ps.reach.y||0):new gt(this._elementRef.nativeElement.scrollLeft,this._elementRef.nativeElement.scrollTop)}scrollTo(J,ot,Ct){null==ot&&null==Ct?this.animateScrolling("scrollTop",J,Ct):(null!=J&&this.scrollToX(J,Ct),null!=ot&&this.scrollToY(ot,Ct))}scrollToX(J,ot){this.animateScrolling("scrollLeft",J,ot)}scrollToY(J,ot){this.animateScrolling("scrollTop",J,ot)}scrollToTop(J=0,ot){this.animateScrolling("scrollTop",J,ot)}scrollToBottom(J=0,ot){this.animateScrolling("scrollTop",this._elementRef.nativeElement.scrollHeight-this._elementRef.nativeElement.clientHeight-J,ot)}scrollToLeft(J=0,ot){this.animateScrolling("scrollLeft",J,ot)}scrollToRight(J=0,ot){this.animateScrolling("scrollLeft",this._elementRef.nativeElement.scrollWidth-this._elementRef.nativeElement.clientWidth-J,ot)}scrollToElement(J,ot=0,Ct=!1,jn){const Pn=this._elementRef.nativeElement.querySelector(J);if(!Pn)return;const Gn=Pn.getBoundingClientRect(),qn=this._elementRef.nativeElement.getBoundingClientRect();this._elementRef.nativeElement.classList.contains("ps--active-x")&&this._scrollToInAxis(Gn.left,qn.left,"scrollLeft",ot,Ct,jn),this._elementRef.nativeElement.classList.contains("ps--active-y")&&this._scrollToInAxis(Gn.top,qn.top,"scrollTop",ot,Ct,jn)}animateScrolling(J,ot,Ct){this._animation&&window.cancelAnimationFrame(this._animation),!Ct||typeof window>"u"?this._elementRef.nativeElement[J]=ot:ot!==this._elementRef.nativeElement[J]&&this._smoothScroll(J,ot,Ct)}_initScrollbar(){this._ps||this._platform.ANDROID||this._platform.IOS||!this._platform.isBrowser||(this._ps=new Xo(this._elementRef.nativeElement,{...this._options}))}_destroyScrollbar(){this._ps?.destroy(),this._ps=null}_reinitializeScrollbar(){setTimeout(()=>this._destroyScrollbar()),setTimeout(()=>this._initScrollbar())}_scrollToInAxis(J,ot,Ct,jn,Pn,Gn){Pn&&J<=ot-Math.abs(jn)||this.animateScrolling(Ct,J-ot+this._elementRef.nativeElement[Ct]+jn,Gn)}_smoothScroll(J,ot,Ct){let jn=0,Pn=this._elementRef.nativeElement[J];const Gn=(Pn-ot)/2;let qn=performance.now();const qr=zi=>{jn+=Math.PI/(Ct/(zi-qn));const kr=Math.round(ot+Gn+Gn*Math.cos(jn));this._elementRef.nativeElement[J]===Pn&&(jn>=Math.PI?this.animateScrolling(J,ot,0):(this._elementRef.nativeElement[J]=kr,Pn=this._elementRef.nativeElement[J],qn=zi,this._animation=window.requestAnimationFrame(qr)))};window.requestAnimationFrame(qr)}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275dir=a.FsC({type:q,selectors:[["","angorScrollbar",""]],inputs:{angorScrollbar:"angorScrollbar",angorScrollbarOptions:"angorScrollbarOptions"},exportAs:["angorScrollbar"],features:[a.OA$]})}}return q})();var ur=n(1204),As=n(9666),Gs=n(7509),_s=n(8136);const aa=["navigationContent"],ls=[[["","angorVerticalNavigationHeader",""]],[["","angorVerticalNavigationContentHeader",""]],[["","angorVerticalNavigationFooter",""]]],Vi=["[angorVerticalNavigationHeader]","[angorVerticalNavigationContentHeader]","[angorVerticalNavigationFooter]"],al=q=>({wheelPropagation:q,suppressScrollX:!0}),la=()=>({wheelPropagation:!1,suppressScrollX:!0});function Ss(q,qe){if(1&q){const J=a.RV6();a.j41(0,"angor-vertical-navigation-aside-item",10),a.bIt("click",function(){a.eBV(J);const Ct=a.XpG(2).$implicit,jn=a.XpG();return a.Njj(jn.toggleAside(Ct))}),a.k0s()}if(2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("activeItemId",ot.activeAsideItemId)("autoCollapse",ot.autoCollapse)("skipChildren",!0)}}function Ts(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-basic-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Ns(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-collapsable-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function So(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-divider-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function Bo(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-group-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function lo(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-spacer-item",8),2&q){const J=a.XpG(2).$implicit,ot=a.XpG();a.Y8G("item",J)("name",ot.name)}}function ps(q,qe){if(1&q&&a.DNE(0,Ss,1,5,"angor-vertical-navigation-aside-item",7)(1,Ts,1,2,"angor-vertical-navigation-basic-item",8)(2,Ns,1,3,"angor-vertical-navigation-collapsable-item",9)(3,So,1,2,"angor-vertical-navigation-divider-item",8)(4,Bo,1,3,"angor-vertical-navigation-group-item",9)(5,lo,1,2,"angor-vertical-navigation-spacer-item",8),2&q){const J=a.XpG().$implicit;a.vxM("aside"===J.type?0:-1),a.R7$(),a.vxM("basic"===J.type?1:-1),a.R7$(),a.vxM("collapsable"===J.type?2:-1),a.R7$(),a.vxM("divider"===J.type?3:-1),a.R7$(),a.vxM("group"===J.type?4:-1),a.R7$(),a.vxM("spacer"===J.type?5:-1)}}function Da(q,qe){if(1&q&&a.DNE(0,ps,6,6),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function Ms(q,qe){if(1&q&&a.nrm(0,"angor-vertical-navigation-aside-item",9),2&q){const J=a.XpG(2).$implicit,ot=a.XpG(2);a.Y8G("item",J)("name",ot.name)("autoCollapse",ot.autoCollapse)}}function Us(q,qe){if(1&q&&a.DNE(0,Ms,1,3,"angor-vertical-navigation-aside-item",9),2&q){const J=a.XpG().$implicit,ot=a.XpG(2);a.vxM("aside"===J.type&&J.id===ot.activeAsideItemId?0:-1)}}function ca(q,qe){if(1&q&&a.DNE(0,Us,1,1),2&q){const J=qe.$implicit;a.vxM(J.hidden&&!J.hidden(J)||!J.hidden?0:-1)}}function Qa(q,qe){if(1&q&&(a.j41(0,"div",6),a.Z7z(1,ca,1,1,null,null,a.BUC().trackByFn,!0),a.k0s()),2&q){const J=a.XpG();a.Y8G("angorScrollbarOptions",a.lJ4(5,la))("@fadeInLeft","left"===J.position)("@fadeInRight","right"===J.position)("@fadeOutLeft","left"===J.position)("@fadeOutRight","right"===J.position),a.R7$(),a.Dyx(J.navigation)}}let Aa=(()=>{class q{constructor(){this._animationBuilder=(0,a.WQX)(ur.S6),this._changeDetectorRef=(0,a.WQX)(a.gRc),this._document=(0,a.WQX)(T.qQ),this._elementRef=(0,a.WQX)(a.aKT),this._renderer2=(0,a.WQX)(a.sFG),this._router=(0,a.WQX)(R.Ix),this._scrollStrategyOptions=(0,a.WQX)(As.Tv),this._angorNavigationService=(0,a.WQX)(c),this._angorUtilsService=(0,a.WQX)(y.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 a.bkB,this.modeChanged=new a.bkB,this.openedChanged=new a.bkB,this.positionChanged=new a.bkB,this.activeAsideItemId=null,this.onCollapsableItemCollapsed=new w.m(1),this.onCollapsableItemExpanded=new w.m(1),this.onRefreshed=new w.m(1),this._animationsEnabled=!1,this._hovered=!1,this._scrollStrategy=this._scrollStrategyOptions.block(),this._unsubscribeAll=new C.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(J){this._angorScrollbarDirectives=J,0!==J.length&&(this._angorScrollbarDirectivesSubscription&&this._angorScrollbarDirectivesSubscription.unsubscribe(),this._angorScrollbarDirectivesSubscription=(0,Gs.h)(this.onCollapsableItemCollapsed,this.onCollapsableItemExpanded).pipe((0,X.Q)(this._unsubscribeAll),(0,_s.c)(250)).subscribe(()=>{J.forEach(ot=>{ot.update()})}))}_onMouseenter(){this._enableAnimations(),this._hovered=!0}_onMouseleave(){this._enableAnimations(),this._hovered=!1}ngOnChanges(J){if("appearance"in J&&this.appearanceChanged.next(J.appearance.currentValue),"inner"in J&&(this.inner=(0,jt.he)(J.inner.currentValue)),"mode"in J){const ot=J.mode.currentValue,Ct=J.mode.previousValue;this._disableAnimations(),"over"===Ct&&"side"===ot&&this._hideOverlay(),"side"===Ct&&"over"===ot&&(this.closeAside(),this.opened&&this._showOverlay()),this.modeChanged.next(ot),setTimeout(()=>{this._enableAnimations()},500)}"navigation"in J&&this._changeDetectorRef.markForCheck(),"opened"in J&&(this.opened=(0,jt.he)(J.opened.currentValue),this._toggleOpened(this.opened)),"position"in J&&this.positionChanged.next(J.position.currentValue),"transparentOverlay"in J&&(this.transparentOverlay=(0,jt.he)(J.transparentOverlay.currentValue))}ngOnInit(){""===this.name&&(this.name=this._angorUtilsService.randomId()),this._angorNavigationService.registerComponent(this.name,this),this._router.events.pipe((0,Zi.p)(J=>J instanceof R.wF),(0,X.Q)(this._unsubscribeAll)).subscribe(()=>{"over"===this.mode&&this.opened&&this.close(),"side"===this.mode&&this.activeAsideItemId&&this.closeAside()})}ngAfterViewInit(){this._mutationObserver=new MutationObserver(J=>{J.forEach(ot=>{const Ct=ot.target;if("class"===ot.attributeName)if(Ct.classList.contains("cdk-global-scrollblock")){const jn=parseInt(Ct.style.top,10);this._renderer2.setStyle(this._elementRef.nativeElement,"margin-top",`${Math.abs(jn)}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(J=>{J.isEnabled()&&J.scrollToElement(".angor-vertical-navigation-item-active",-120,!0)});else{const J=this._navigationContentEl.nativeElement.querySelector(".angor-vertical-navigation-item-active");J&&J.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(J){J.disabled||!J.id||(this.activeAsideItemId=J.id,this._showAsideOverlay(),this._changeDetectorRef.markForCheck())}closeAside(){this.activeAsideItemId=null,this._hideAsideOverlay(),this._changeDetectorRef.markForCheck()}toggleAside(J){this.activeAsideItemId===J.id?this.closeAside():this.openAside(J)}trackByFn(J,ot){return ot.id||J}_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,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.iF)({opacity:1}))]).create(this._overlay),this._player.play(),this._overlay.addEventListener("click",this._handleOverlayClick))}_hideOverlay(){this._overlay&&(this._player=this._animationBuilder.build([(0,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.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,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.iF)({opacity:1}))]).create(this._asideOverlay),this._player.play(),this._asideOverlay.addEventListener("click",this._handleAsideOverlayClick))}_hideAsideOverlay(){this._asideOverlay&&(this._player=this._animationBuilder.build([(0,ur.i0)("300ms cubic-bezier(0.25, 0.8, 0.25, 1)",(0,ur.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(J){this.opened=J,this._enableAnimations(),"over"===this.mode&&(this.opened?this._showOverlay():this._hideOverlay()),this.openedChanged.next(J)}static{this.\u0275fac=function(ot){return new(ot||q)}}static{this.\u0275cmp=a.VBU({type:q,selectors:[["angor-vertical-navigation"]],viewQuery:function(ot,Ct){if(1&ot&&(a.GBs(aa,5),a.GBs(Ao,5)),2&ot){let jn;a.mGM(jn=a.lsd())&&(Ct._navigationContentEl=jn.first),a.mGM(jn=a.lsd())&&(Ct.angorScrollbarDirectives=jn)}},hostVars:4,hostBindings:function(ot,Ct){1&ot&&a.bIt("mouseenter",function(){return Ct._onMouseenter()})("mouseleave",function(){return Ct._onMouseleave()}),2&ot&&(a.Aen(Ct.styleList),a.HbH(Ct.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"],features:[a.OA$],ngContentSelectors:Vi,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(ot,Ct){1&ot&&(a.NAR(ls),a.j41(0,"div",1)(1,"div",2),a.SdG(2),a.k0s(),a.j41(3,"div",3,0)(5,"div",4),a.SdG(6,1),a.k0s(),a.Z7z(7,Da,1,1,null,null,Ct.trackByFn,!0),a.k0s(),a.j41(9,"div",5),a.SdG(10,2),a.k0s()(),a.DNE(11,Qa,3,6,"div",6)),2&ot&&(a.R7$(3),a.Y8G("angorScrollbarOptions",a.eq3(2,al,Ct.inner)),a.R7$(4),a.Dyx(Ct.navigation),a.R7$(4),a.vxM(Ct.activeAsideItemId?11:-1))},dependencies:[Ao,Ye,Vr,qo,vt,hi,Vt],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, 1));--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, 1));--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, 1));--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, 1));--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, 1));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, 1))}: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:i.F},changeDetection:0})}}return q})()},7891:(o,s,n)=>{"use strict";n.d(s,{t:()=>a});const a=new(n(3107).nKC)("ANGOR_APP_CONFIG")},1109:(o,s,n)=>{"use strict";n.d(s,{P:()=>w});var i=n(7891),a=n(3107),c=n(4819),y=n(1217);let w=(()=>{class C{constructor(){this._defaultConfig=(0,a.WQX)(i.t),this._configSubject=new y.t(this._defaultConfig)}get config$(){return this._configSubject.asObservable()}set config(S){const M=(0,c.A)({},this._configSubject.getValue(),S);this._configSubject.next(M)}reset(){this._configSubject.next(this._defaultConfig)}static{this.\u0275fac=function(M){return new(M||C)}}static{this.\u0275prov=a.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}}return C})()},7153:(o,s,n)=>{"use strict";n.d(s,{m:()=>de});var i=n(4460),a=n(3107),c=n(9471),y=n(7544),w=n(3904);const C=(De,Ee,Le,Ae,we,le,ae,xe)=>({"bg-primary-100 text-primary-600 dark:bg-primary-600 dark:text-primary-50":De,"bg-accent-100 text-accent-600 dark:bg-accent-600 dark:text-accent-50":Ee,"bg-warn-100 text-warn-600 dark:bg-warn-600 dark:text-warn-50":Le,"bg-gray-100 text-gray-600 dark:bg-gray-600 dark:text-gray-50":Ae,"bg-blue-100 text-blue-600 dark:bg-blue-600 dark:text-blue-50":we,"bg-green-100 text-green-500 dark:bg-green-500 dark:text-green-50":le,"bg-amber-100 text-amber-500 dark:bg-amber-500 dark:text-amber-50":ae,"bg-red-100 text-red-600 dark:bg-red-600 dark:text-red-50":xe});function T(De,Ee){1&De&&(a.j41(0,"div",1)(1,"button",6),a.nrm(2,"mat-icon",7),a.k0s()()),2&De&&(a.R7$(),a.Y8G("matDialogClose",void 0),a.R7$(),a.Y8G("svgIcon","heroicons_outline:x-mark"))}function S(De,Ee){if(1&De&&(a.j41(0,"div",3),a.nrm(1,"mat-icon",8),a.k0s()),2&De){const Le=a.XpG();a.Y8G("ngClass",a.lV(2,C,"primary"===Le.data.icon.color,"accent"===Le.data.icon.color,"warn"===Le.data.icon.color,"basic"===Le.data.icon.color,"info"===Le.data.icon.color,"success"===Le.data.icon.color,"warning"===Le.data.icon.color,"error"===Le.data.icon.color)),a.R7$(),a.Y8G("svgIcon",Le.data.icon.name)}}function M(De,Ee){if(1&De&&a.nrm(0,"div",9),2&De){const Le=a.XpG(2);a.Y8G("innerHTML",Le.data.title,a.npT)}}function k(De,Ee){if(1&De&&a.nrm(0,"div",10),2&De){const Le=a.XpG(2);a.Y8G("innerHTML",Le.data.message,a.npT)}}function R(De,Ee){if(1&De&&(a.j41(0,"div",4),a.DNE(1,M,1,1,"div",9)(2,k,1,1,"div",10),a.k0s()),2&De){const Le=a.XpG();a.R7$(),a.vxM(Le.data.title?1:-1),a.R7$(),a.vxM(Le.data.message?2:-1)}}function X(De,Ee){if(1&De&&(a.j41(0,"button",11),a.EFF(1),a.k0s()),2&De){const Le=a.XpG(2);a.Y8G("matDialogClose","cancelled"),a.R7$(),a.SpI(" ",Le.data.actions.cancel.label," ")}}function Z(De,Ee){if(1&De&&(a.j41(0,"button",12),a.EFF(1),a.k0s()),2&De){const Le=a.XpG(2);a.Y8G("color",Le.data.actions.confirm.color)("matDialogClose","confirmed"),a.R7$(),a.SpI(" ",Le.data.actions.confirm.label," ")}}function re(De,Ee){if(1&De&&(a.j41(0,"div",5),a.DNE(1,X,2,2,"button",11)(2,Z,2,3,"button",12),a.k0s()),2&De){const Le=a.XpG();a.R7$(),a.vxM(Le.data.actions.cancel.show?1:-1),a.R7$(),a.vxM(Le.data.actions.confirm.show?2:-1)}}let _e=(()=>{class De{constructor(){this.data=(0,a.WQX)(y.Vh)}static{this.\u0275fac=function(Ae){return new(Ae||De)}}static{this.\u0275cmp=a.VBU({type:De,selectors:[["angor-confirmation-dialog"]],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(Ae,we){1&Ae&&(a.j41(0,"div",0),a.DNE(1,T,3,2,"div",1),a.j41(2,"div",2),a.DNE(3,S,2,11,"div",3)(4,R,3,2,"div",4),a.k0s(),a.DNE(5,re,3,2,"div",5),a.k0s()),2&Ae&&(a.R7$(),a.vxM(we.data.dismissible?1:-1),a.R7$(2),a.vxM(we.data.icon.show?3:-1),a.R7$(),a.vxM(we.data.title||we.data.message?4:-1),a.R7$(),a.vxM(we.data.actions.confirm.show||we.data.actions.cancel.show?5:-1))},dependencies:[c.Hl,c.$z,c.iY,y.hM,y.tx,w.m_,w.An,i.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 De})();var pe=n(4819);let de=(()=>{class De{constructor(){this._matDialog=(0,a.WQX)(y.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(Le={}){const Ae=(0,pe.A)({},this._defaultConfig,Le);return this._matDialog.open(_e,{autoFocus:!1,disableClose:!Ae.dismissible,data:Ae,panelClass:"angor-confirmation-dialog-panel"})}static{this.\u0275fac=function(Ae){return new(Ae||De)}}static{this.\u0275prov=a.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})()},2012:(o,s,n)=>{"use strict";n.d(s,{l:()=>S});var i=n(1109),a=n(6520),c=n(3107),y=n(6143),w=n(7838),C=n(7947),T=n(2867);let S=(()=>{class M{constructor(){this._breakpointObserver=(0,c.WQX)(a.QP),this._angorConfigService=(0,c.WQX)(i.P),this._onMediaChange=new w.m(1),this._angorConfigService.config$.pipe((0,C.T)(R=>(0,y.A)(Object.entries(R.screens).map(([X,Z])=>[X,`(min-width: ${Z})`]))),(0,T.n)(R=>this._breakpointObserver.observe(Object.values(R)).pipe((0,C.T)(X=>{const Z=[],re={},_e=Object.entries(X.breakpoints).filter(([pe,de])=>de)??[];for(const[pe]of _e){const de=Object.entries(R).find(([De,Ee])=>Ee===pe)[0];de&&(Z.push(de),re[de]=pe)}this._onMediaChange.next({matchingAliases:Z,matchingQueries:re})})))).subscribe()}get onMediaChange$(){return this._onMediaChange.asObservable()}onMediaQueryChange$(R){return this._breakpointObserver.observe(R)}static{this.\u0275fac=function(X){return new(X||M)}}static{this.\u0275prov=c.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}}return M})()},3939:(o,s,n)=>{"use strict";n.d(s,{Q:()=>a});var i=n(3107);let a=(()=>{class c{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 T="";for(let S=0;S<10;S++)T+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return T}static{this.\u0275fac=function(C){return new(C||c)}}static{this.\u0275prov=i.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})()},4482:(o,s,n)=>{"use strict";n.d(s,{v:()=>y});var i=n(3024),a=n(8447),c=n(3107);let y=(()=>{class w{constructor(){this.publicKeySubject=new a.B,this.previousPublicKey=null,this.initializeNostrLogin(),this.setupEventListeners()}initializeNostrLogin(){(0,i.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(T,S)=>{this.handleAuthSuccess(T,S)}})}setupEventListeners(){document.addEventListener("nlAuth",this.handleNlAuthEvent.bind(this)),document.addEventListener("nlLogout",this.handleNlLogoutEvent.bind(this)),document.addEventListener("nlDarkMode",this.handleNlDarkModeEvent.bind(this)),document.addEventListener("nlLaunch",this.handleNlLaunchEvent.bind(this))}handleNlLogoutEvent(){console.log("Logout event detected"),this.handleLogout()}handleNlAuthEvent(T){const{type:S,pubkey:M,options:k}=T.detail;switch(S){case"login":console.log("User logged in:",M),this.handleAuthSuccess(M,k);break;case"signup":console.log("User signed up:",M),this.handleSignupSuccess(M,k);break;case"logout":console.log("User logged out"),this.handleLogout();break;case"switch-account":console.log("User switched account:",M),this.handleAccountSwitch(M,k);break;default:console.warn("Unknown nlAuth event type:",S)}this.previousPublicKey&&this.previousPublicKey!==M&&(console.log("Account switched to:",M),this.handleAccountSwitch(M,k)),this.previousPublicKey=M}handleAuthSuccess(T,S){console.log("Authenticated successfully with public key:",T),this.publicKeySubject.next(T)}handleSignupSuccess(T,S){console.log("Signup successful with public key:",T),this.publicKeySubject.next(T)}handleAccountSwitch(T,S){console.log("Account switched to:",T),this.publicKeySubject.next(T),window.location.reload()}handleLogout(){console.log("Logged out"),this.publicKeySubject.next("")}handleNlDarkModeEvent(T){const S=T.detail;console.log("Dark mode changed to:",S?"enabled":"disabled"),this.updateDarkMode(S)}handleNlLaunchEvent(T){const S=T.detail||"welcome";console.log(`Launching Nostr login screen: ${S}`),this.launchScreen(S)}launchScreen(T){(0,i.ql)(T)}updateDarkMode(T){document.body.classList.toggle("dark-mode",T),console.log("Dark mode is now "+(T?"enabled":"disabled"))}getPublicKeyObservable(){return this.publicKeySubject.asObservable()}launchWelcomeScreen(){(0,i.ql)("welcome")}launchSignupScreen(){(0,i.ql)("welcome-signup")}launchLoginScreen(){(0,i.ql)("welcome-login")}switchAccount(){document.dispatchEvent(new CustomEvent("nlLaunch",{detail:"switch-account"}))}logout(){document.dispatchEvent(new Event("nlLogout"))}toggleDarkMode(T){document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:T}))}static{this.\u0275fac=function(S){return new(S||w)}}static{this.\u0275prov=c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}}return w})()},3125:(o,s,n)=>{"use strict";n.d(s,{b:()=>T});var i=n(3014),a=n(3107),c=n(5492),y=n(1217),w=n(8447),C=n(4460);let T=(()=>{class S{constructor(k,R){this.document=k,this.platformId=R,this.pool=new c.lo,this.relays=[],this.maxRetries=10,this.retryDelay=15e3,this.eventSubject=new y.t(null),this.relaysSubject=new y.t([]),this.destroy$=new w.B,this.initializeRelays(),this.setupVisibilityHandling()}initializeRelays(){this.relays=this.loadRelaysFromLocalStorage(),this.connectToRelays(),this.relaysSubject.next(this.relays)}loadRelaysFromLocalStorage(){const k=JSON.parse(localStorage.getItem("nostrRelays")||"[]");return k.length>0?k.map(X=>({...X,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://nos.lol",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 k=this.relays.map(R=>({url:R.url,accessType:R.accessType,connected:R.connected,retries:R.retries,retryTimeout:R.retryTimeout}));localStorage.setItem("nostrRelays",JSON.stringify(k)),this.relaysSubject.next(this.relays)}connectToRelay(k){k.connected||(k.ws=new WebSocket(k.url),k.ws.onopen=()=>{k.connected=!0,k.retries=0,clearTimeout(k.retryTimeout),this.saveRelaysToLocalStorage()},k.ws.onerror=()=>this.handleRelayError(k),k.ws.onclose=()=>{k.connected=!1,this.handleRelayError(k)},k.ws.onmessage=({data:R})=>{try{const X=JSON.parse("string"==typeof R?R:R.toString("utf-8"));this.eventSubject.next(X)}catch(X){console.warn("Error parsing WebSocket message:",X)}})}handleRelayError(k){k.retries>=this.maxRetries?console.warn(`Max retries reached for relay: ${k.url}. No further attempts will be made.`):(k.retries++,k.retryTimeout=setTimeout(()=>this.connectToRelay(k),this.retryDelay*k.retries))}connectToRelays(){this.relays.forEach(k=>!k.connected&&this.connectToRelay(k))}ensureConnectedRelays(){var k=this;return(0,i.A)(function*(){return k.connectToRelays(),new Promise(R=>{const X=setInterval(()=>{k.getConnectedRelays().length>0&&(clearInterval(X),R())},1e3)})})()}setupVisibilityHandling(){(0,C.UE)(this.platformId)&&(this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState&&this.connectToRelays()}),window.addEventListener("beforeunload",()=>{this.relays.forEach(k=>k.ws?.close())}))}getConnectedRelays(){return this.relays.filter(k=>k.connected).map(k=>k.url)}getRelays(){return this.relaysSubject.asObservable()}publishEventToWriteRelays(k){var R=this;return(0,i.A)(function*(){const X=R.relays.filter(Z=>["write","read-write"].includes(Z.accessType)&&Z.connected);if(!X.length)throw new Error("No connected write relays available");try{return yield Promise.any(X.map(Z=>R.pool.publish([Z.url],k))),R.eventSubject.next(k),k}catch(Z){throw console.error("Failed to publish event to relays:",Z),Z}})()}addRelay(k,R="read-write"){if(!this.relays.some(X=>X.url===k)){const X={url:k,connected:!1,retries:0,retryTimeout:null,accessType:R};this.relays.push(X),this.connectToRelay(X),this.saveRelaysToLocalStorage()}}removeRelay(k){const R=this.relays.find(X=>X.url===k);R&&(R.ws?.close(),clearTimeout(R.retryTimeout)),this.relays=this.relays.filter(X=>X.url!==k),this.saveRelaysToLocalStorage()}removeAllCustomRelays(){const k=["wss://relay.angor.io","wss://relay2.angor.io"];this.relays.forEach(R=>{k.includes(R.url)||(R.ws?.close(),clearTimeout(R.retryTimeout))}),this.relays=this.relays.filter(R=>k.includes(R.url)),this.saveRelaysToLocalStorage()}updateRelayAccessType(k,R){const X=this.relays.find(Z=>Z.url===k);X&&(X.accessType=R,this.saveRelaysToLocalStorage())}getPool(){return this.pool}getEventStream(){return this.eventSubject.asObservable()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.relays.forEach(k=>k.ws?.close())}static{this.\u0275fac=function(R){return new(R||S)(a.KVO(C.qQ,8),a.KVO(a.Agw))}}static{this.\u0275prov=a.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}}return S})()},8078:(o,s,n)=>{"use strict";n.d(s,{A:()=>vd});var i={};n.r(i),n.d(i,{OG:()=>Xs,My:()=>da,Ph:()=>oo,lX:()=>$n,Id:()=>so,fg:()=>vo,qj:()=>Qi,aT:()=>Wo,lq:()=>Tr,z:()=>Oi,Q5:()=>Vs});var a=n(3014),c=n(8378),y=n(2226),w=n(871),C=n(5492);function M(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function X(O,...P){if(!function R(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}function Z(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");M(O.outputLen),M(O.blockLen)}function re(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")}n(4704),"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");const Ae=O=>new DataView(O.buffer,O.byteOffset,O.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function En(O){if("string"==typeof O&&(O=function fn(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!function Le(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("expected Uint8Array, got "+typeof O);return O}class wn{clone(){return this._cloneInto()}}const Je={}.toString;function ze(O){const P=oe=>O().update(En(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}class Ze extends wn{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,Z(P);const oe=En($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return re(this),this.iHash.update(P),this}digestInto(P){re(this),X(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const it=(O,P,$)=>new Ze(O,P).update($).digest();it.create=(O,P)=>new Ze(O,P);class Wt extends wn{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=Ae(this.buffer)}update(P){re(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=En(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=Ae(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){re(this),function _e(O,P){X(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Ae(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qt>rt&Zt)}:{h:0|Number(O>>rt&Zt),l:0|Number(O&Zt)}}const Dn_split=function en(O,P=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ce=0;CeO>>>$,Dn_shrSL=(O,P,$)=>O<<32-$|P>>>$,Dn_rotrSH=(O,P,$)=>O>>>$|P<<32-$,Dn_rotrSL=(O,P,$)=>O<<32-$|P>>>$,Dn_rotrBH=(O,P,$)=>O<<64-$|P>>>$-32,Dn_rotrBL=(O,P,$)=>O>>>$-32|P<<64-$,Dn_add=function ft(O,P,$,oe){const Ce=(P>>>0)+(oe>>>0);return{h:O+$+(Ce/2**32|0)|0,l:0|Ce}},Dn_add3L=(O,P,$)=>(O>>>0)+(P>>>0)+($>>>0),Dn_add3H=(O,P,$,oe)=>P+$+oe+(O/2**32|0)|0,Dn_add4L=(O,P,$,oe)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0),Dn_add4H=(O,P,$,oe,Ce)=>P+$+oe+Ce+(O/2**32|0)|0,Dn_add5H=(O,P,$,oe,Ce,$e)=>P+$+oe+Ce+$e+(O/2**32|0)|0,Dn_add5L=(O,P,$,oe,Ce)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0)+(Ce>>>0),[Hr,Mr]=Dn_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(O=>BigInt(O))),Vr=new Uint32Array(80),vt=new Uint32Array(80);class Vt extends Wt{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:P,Al:$,Bh:oe,Bl:Ce,Ch:$e,Cl:pt,Dh:It,Dl:zt,Eh:un,El:kn,Fh:qt,Fl:Yn,Gh:Xn,Gl:ir,Hh:Rn,Hl:Kn}=this;return[P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn]}set(P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn){this.Ah=0|P,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ce,this.Ch=0|$e,this.Cl=0|pt,this.Dh=0|It,this.Dl=0|zt,this.Eh=0|un,this.El=0|kn,this.Fh=0|qt,this.Fl=0|Yn,this.Gh=0|Xn,this.Gl=0|ir,this.Hh=0|Rn,this.Hl=0|Kn}process(P,$){for(let Hn=0;Hn<16;Hn++,$+=4)Vr[Hn]=P.getUint32($),vt[Hn]=P.getUint32($+=4);for(let Hn=16;Hn<80;Hn++){const Or=0|Vr[Hn-15],sr=0|vt[Hn-15],Dr=Dn_rotrSH(Or,sr,1)^Dn_rotrSH(Or,sr,8)^Dn_shrSH(Or,sr,7),Gr=Dn_rotrSL(Or,sr,1)^Dn_rotrSL(Or,sr,8)^Dn_shrSL(Or,sr,7),Br=0|Vr[Hn-2],ro=0|vt[Hn-2],Ji=Dn_rotrSH(Br,ro,19)^Dn_rotrBH(Br,ro,61)^Dn_shrSH(Br,ro,6),Xi=Dn_rotrSL(Br,ro,19)^Dn_rotrBL(Br,ro,61)^Dn_shrSL(Br,ro,6),bo=Dn_add4L(Gr,Xi,vt[Hn-7],vt[Hn-16]),To=Dn_add4H(bo,Dr,Ji,Vr[Hn-7],Vr[Hn-16]);Vr[Hn]=0|To,vt[Hn]=0|bo}let{Ah:oe,Al:Ce,Bh:$e,Bl:pt,Ch:It,Cl:zt,Dh:un,Dl:kn,Eh:qt,El:Yn,Fh:Xn,Fl:ir,Gh:Rn,Gl:Kn,Hh:Qn,Hl:yr}=this;for(let Hn=0;Hn<80;Hn++){const Or=Dn_rotrSH(qt,Yn,14)^Dn_rotrSH(qt,Yn,18)^Dn_rotrBH(qt,Yn,41),sr=Dn_rotrSL(qt,Yn,14)^Dn_rotrSL(qt,Yn,18)^Dn_rotrBL(qt,Yn,41),Dr=qt&Xn^~qt&Rn,Br=Dn_add5L(yr,sr,Yn&ir^~Yn&Kn,Mr[Hn],vt[Hn]),ro=Dn_add5H(Br,Qn,Or,Dr,Hr[Hn],Vr[Hn]),Ji=0|Br,Xi=Dn_rotrSH(oe,Ce,28)^Dn_rotrBH(oe,Ce,34)^Dn_rotrBH(oe,Ce,39),bo=Dn_rotrSL(oe,Ce,28)^Dn_rotrBL(oe,Ce,34)^Dn_rotrBL(oe,Ce,39),To=oe&$e^oe&It^$e&It,ma=Ce&pt^Ce&zt^pt&zt;Qn=0|Rn,yr=0|Kn,Rn=0|Xn,Kn=0|ir,Xn=0|qt,ir=0|Yn,({h:qt,l:Yn}=Dn_add(0|un,0|kn,0|ro,0|Ji)),un=0|It,kn=0|zt,It=0|$e,zt=0|pt,$e=0|oe,pt=0|Ce;const vr=Dn_add3L(Ji,bo,ma);oe=Dn_add3H(vr,ro,Xi,To),Ce=0|vr}({h:oe,l:Ce}=Dn_add(0|this.Ah,0|this.Al,0|oe,0|Ce)),({h:$e,l:pt}=Dn_add(0|this.Bh,0|this.Bl,0|$e,0|pt)),({h:It,l:zt}=Dn_add(0|this.Ch,0|this.Cl,0|It,0|zt)),({h:un,l:kn}=Dn_add(0|this.Dh,0|this.Dl,0|un,0|kn)),({h:qt,l:Yn}=Dn_add(0|this.Eh,0|this.El,0|qt,0|Yn)),({h:Xn,l:ir}=Dn_add(0|this.Fh,0|this.Fl,0|Xn,0|ir)),({h:Rn,l:Kn}=Dn_add(0|this.Gh,0|this.Gl,0|Rn,0|Kn)),({h:Qn,l:yr}=Dn_add(0|this.Hh,0|this.Hl,0|Qn,0|yr)),this.set(oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn,Qn,yr)}roundClean(){Vr.fill(0),vt.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 Dt=ze(()=>new Vt);function xr(O){if("string"!=typeof O)throw new TypeError("Invalid mnemonic type: "+typeof O);return O.normalize("NFKD")}function Co(O,P=""){return function Me(O,P,$,oe){const{c:Ce,dkLen:$e,DK:pt,PRF:It,PRFSalt:zt}=function Ot(O,P,$,oe){Z(O);const Ce=function _t(O,P){if(void 0!==P&&"[object Object]"!==Je.call(P))throw new Error("Options should be object or undefined");return Object.assign(O,P)}({dkLen:32,asyncTick:10},oe),{c:$e,dkLen:pt,asyncTick:It}=Ce;if(M($e),M(pt),M(It),$e<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const zt=En(P),un=En($),kn=new Uint8Array(pt),qt=it.create(O,zt),Yn=qt._cloneInto().update(un);return{c:$e,dkLen:pt,asyncTick:It,DK:kn,PRF:qt,PRFSalt:Yn}}(O,P,$,oe);let un;const kn=new Uint8Array(4),qt=Ae(kn),Yn=new Uint8Array(It.outputLen);for(let Xn=1,ir=0;ir<$e;Xn++,ir+=It.outputLen){const Rn=pt.subarray(ir,ir+It.outputLen);qt.setInt32(0,Xn,!1),(un=zt._cloneInto(un)).update(kn).digestInto(Yn),Rn.set(Yn.subarray(0,Rn.length));for(let Kn=1;Knxr(`mnemonic${O}`))(P),{c:2048,dkLen:64})}function Ni(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function ai(O,...P){if(!function $o(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}(O))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}function fo(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")}function Ii(O){return O instanceof Uint8Array||null!=O&&"object"==typeof O&&"Uint8Array"===O.constructor.name}const Io=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),et=(O,P)=>O<<32-P|O>>>P;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const dt=Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0")),Ye={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function Re(O){return O>=Ye._0&&O<=Ye._9?O-Ye._0:O>=Ye._A&&O<=Ye._F?O-(Ye._A-10):O>=Ye._a&&O<=Ye._f?O-(Ye._a-10):void 0}function Sn(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}function An(O){if("string"==typeof O&&(O=Sn(O)),!Ii(O))throw new Error("expected Uint8Array, got "+typeof O);return O}function Fn(...O){let P=0;for(let oe=0;oeO().update(An(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}class Mi extends zn{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,function qo(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Ni(O.outputLen),Ni(O.blockLen)}(P);const oe=An($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return fo(this),this.iHash.update(P),this}digestInto(P){fo(this),ai(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Rr=(O,P,$)=>new Mi(O,P).update($).digest();Rr.create=(O,P)=>new Mi(O,P);class Pr extends zn{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=Io(this.buffer)}update(P){fo(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=An(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=Io(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){fo(this),function Jo(O,P){ai(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=Io(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtP);let oa=[es],Li=[es.map(O=>(9*O+5)%16)];for(let O=0;O<4;O++)for(let P of[oa,Li])P.push(P[O].map($=>Do[$]));const bi=[[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(O=>new Uint8Array(O)),sa=oa.map((O,P)=>O.map($=>bi[P][$])),Ks=Li.map((O,P)=>O.map($=>bi[P][$])),Oo=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Cs=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),No=(O,P)=>O<>>32-P;function hs(O,P,$,oe){return 0===O?P^$^oe:1===O?P&$|~P&oe:2===O?(P|~$)^oe:3===O?P&oe|$&~oe:P^($|~oe)}const Ko=new Uint32Array(16);class mo extends Pr{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:P,h1:$,h2:oe,h3:Ce,h4:$e}=this;return[P,$,oe,Ce,$e]}set(P,$,oe,Ce,$e){this.h0=0|P,this.h1=0|$,this.h2=0|oe,this.h3=0|Ce,this.h4=0|$e}process(P,$){for(let Xn=0;Xn<16;Xn++,$+=4)Ko[Xn]=P.getUint32($,!0);let oe=0|this.h0,Ce=oe,$e=0|this.h1,pt=$e,It=0|this.h2,zt=It,un=0|this.h3,kn=un,qt=0|this.h4,Yn=qt;for(let Xn=0;Xn<5;Xn++){const ir=4-Xn,Rn=Oo[Xn],Kn=Cs[Xn],Qn=oa[Xn],yr=Li[Xn],Hn=sa[Xn],Or=Ks[Xn];for(let sr=0;sr<16;sr++){const Dr=No(oe+hs(Xn,$e,It,un)+Ko[Qn[sr]]+Rn,Hn[sr])+qt|0;oe=qt,qt=un,un=0|No(It,10),It=$e,$e=Dr}for(let sr=0;sr<16;sr++){const Dr=No(Ce+hs(ir,pt,zt,kn)+Ko[yr[sr]]+Kn,Or[sr])+Yn|0;Ce=Yn,Yn=kn,kn=0|No(zt,10),zt=pt,pt=Dr}}this.set(this.h1+It+kn|0,this.h2+un+Yn|0,this.h3+qt+Ce|0,this.h4+oe+pt|0,this.h0+$e+zt|0)}roundClean(){Ko.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const Go=Er(()=>new mo),Rs=(O,P,$)=>O&P^~O&$,Xr=(O,P,$)=>O&P^O&$^P&$,Ds=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]),go=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),io=new Uint32Array(64);class fs extends Pr{constructor(){super(64,32,8,!1),this.A=0|go[0],this.B=0|go[1],this.C=0|go[2],this.D=0|go[3],this.E=0|go[4],this.F=0|go[5],this.G=0|go[6],this.H=0|go[7]}get(){const{A:P,B:$,C:oe,D:Ce,E:$e,F:pt,G:It,H:zt}=this;return[P,$,oe,Ce,$e,pt,It,zt]}set(P,$,oe,Ce,$e,pt,It,zt){this.A=0|P,this.B=0|$,this.C=0|oe,this.D=0|Ce,this.E=0|$e,this.F=0|pt,this.G=0|It,this.H=0|zt}process(P,$){for(let qt=0;qt<16;qt++,$+=4)io[qt]=P.getUint32($,!1);for(let qt=16;qt<64;qt++){const Yn=io[qt-15],Xn=io[qt-2],ir=et(Yn,7)^et(Yn,18)^Yn>>>3,Rn=et(Xn,17)^et(Xn,19)^Xn>>>10;io[qt]=Rn+io[qt-7]+ir+io[qt-16]|0}let{A:oe,B:Ce,C:$e,D:pt,E:It,F:zt,G:un,H:kn}=this;for(let qt=0;qt<64;qt++){const Xn=kn+(et(It,6)^et(It,11)^et(It,25))+Rs(It,zt,un)+Ds[qt]+io[qt]|0,Rn=(et(oe,2)^et(oe,13)^et(oe,22))+Xr(oe,Ce,$e)|0;kn=un,un=zt,zt=It,It=pt+Xn|0,pt=$e,$e=Ce,Ce=oe,oe=Xn+Rn|0}oe=oe+this.A|0,Ce=Ce+this.B|0,$e=$e+this.C|0,pt=pt+this.D|0,It=It+this.E|0,zt=zt+this.F|0,un=un+this.G|0,kn=kn+this.H|0,this.set(oe,Ce,$e,pt,It,zt,un,kn)}roundClean(){io.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Ya=Er(()=>new fs),Ao=BigInt(2**32-1),ur=BigInt(32);function As(O,P=!1){return P?{h:Number(O&Ao),l:Number(O>>ur&Ao)}:{h:0|Number(O>>ur&Ao),l:0|Number(O&Ao)}}const J_split=function Gs(O,P=!1){let $=new Uint32Array(O.length),oe=new Uint32Array(O.length);for(let Ce=0;CeO>>>$,J_shrSL=(O,P,$)=>O<<32-$|P>>>$,J_rotrSH=(O,P,$)=>O>>>$|P<<32-$,J_rotrSL=(O,P,$)=>O<<32-$|P>>>$,J_rotrBH=(O,P,$)=>O<<64-$|P>>>$-32,J_rotrBL=(O,P,$)=>O>>>$-32|P<<64-$,J_add=function Da(O,P,$,oe){const Ce=(P>>>0)+(oe>>>0);return{h:O+$+(Ce/2**32|0)|0,l:0|Ce}},J_add3L=(O,P,$)=>(O>>>0)+(P>>>0)+($>>>0),J_add3H=(O,P,$,oe)=>P+$+oe+(O/2**32|0)|0,J_add4L=(O,P,$,oe)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0),J_add4H=(O,P,$,oe,Ce)=>P+$+oe+Ce+(O/2**32|0)|0,J_add5H=(O,P,$,oe,Ce,$e)=>P+$+oe+Ce+$e+(O/2**32|0)|0,J_add5L=(O,P,$,oe,Ce)=>(O>>>0)+(P>>>0)+($>>>0)+(oe>>>0)+(Ce>>>0),[ot,Ct]=J_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(O=>BigInt(O))),jn=new Uint32Array(80),Pn=new Uint32Array(80);class Gn extends Pr{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:P,Al:$,Bh:oe,Bl:Ce,Ch:$e,Cl:pt,Dh:It,Dl:zt,Eh:un,El:kn,Fh:qt,Fl:Yn,Gh:Xn,Gl:ir,Hh:Rn,Hl:Kn}=this;return[P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn]}set(P,$,oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn){this.Ah=0|P,this.Al=0|$,this.Bh=0|oe,this.Bl=0|Ce,this.Ch=0|$e,this.Cl=0|pt,this.Dh=0|It,this.Dl=0|zt,this.Eh=0|un,this.El=0|kn,this.Fh=0|qt,this.Fl=0|Yn,this.Gh=0|Xn,this.Gl=0|ir,this.Hh=0|Rn,this.Hl=0|Kn}process(P,$){for(let Hn=0;Hn<16;Hn++,$+=4)jn[Hn]=P.getUint32($),Pn[Hn]=P.getUint32($+=4);for(let Hn=16;Hn<80;Hn++){const Or=0|jn[Hn-15],sr=0|Pn[Hn-15],Dr=J_rotrSH(Or,sr,1)^J_rotrSH(Or,sr,8)^J_shrSH(Or,sr,7),Gr=J_rotrSL(Or,sr,1)^J_rotrSL(Or,sr,8)^J_shrSL(Or,sr,7),Br=0|jn[Hn-2],ro=0|Pn[Hn-2],Ji=J_rotrSH(Br,ro,19)^J_rotrBH(Br,ro,61)^J_shrSH(Br,ro,6),Xi=J_rotrSL(Br,ro,19)^J_rotrBL(Br,ro,61)^J_shrSL(Br,ro,6),bo=J_add4L(Gr,Xi,Pn[Hn-7],Pn[Hn-16]),To=J_add4H(bo,Dr,Ji,jn[Hn-7],jn[Hn-16]);jn[Hn]=0|To,Pn[Hn]=0|bo}let{Ah:oe,Al:Ce,Bh:$e,Bl:pt,Ch:It,Cl:zt,Dh:un,Dl:kn,Eh:qt,El:Yn,Fh:Xn,Fl:ir,Gh:Rn,Gl:Kn,Hh:Qn,Hl:yr}=this;for(let Hn=0;Hn<80;Hn++){const Or=J_rotrSH(qt,Yn,14)^J_rotrSH(qt,Yn,18)^J_rotrBH(qt,Yn,41),sr=J_rotrSL(qt,Yn,14)^J_rotrSL(qt,Yn,18)^J_rotrBL(qt,Yn,41),Dr=qt&Xn^~qt&Rn,Br=J_add5L(yr,sr,Yn&ir^~Yn&Kn,Ct[Hn],Pn[Hn]),ro=J_add5H(Br,Qn,Or,Dr,ot[Hn],jn[Hn]),Ji=0|Br,Xi=J_rotrSH(oe,Ce,28)^J_rotrBH(oe,Ce,34)^J_rotrBH(oe,Ce,39),bo=J_rotrSL(oe,Ce,28)^J_rotrBL(oe,Ce,34)^J_rotrBL(oe,Ce,39),To=oe&$e^oe&It^$e&It,ma=Ce&pt^Ce&zt^pt&zt;Qn=0|Rn,yr=0|Kn,Rn=0|Xn,Kn=0|ir,Xn=0|qt,ir=0|Yn,({h:qt,l:Yn}=J_add(0|un,0|kn,0|ro,0|Ji)),un=0|It,kn=0|zt,It=0|$e,zt=0|pt,$e=0|oe,pt=0|Ce;const vr=J_add3L(Ji,bo,ma);oe=J_add3H(vr,ro,Xi,To),Ce=0|vr}({h:oe,l:Ce}=J_add(0|this.Ah,0|this.Al,0|oe,0|Ce)),({h:$e,l:pt}=J_add(0|this.Bh,0|this.Bl,0|$e,0|pt)),({h:It,l:zt}=J_add(0|this.Ch,0|this.Cl,0|It,0|zt)),({h:un,l:kn}=J_add(0|this.Dh,0|this.Dl,0|un,0|kn)),({h:qt,l:Yn}=J_add(0|this.Eh,0|this.El,0|qt,0|Yn)),({h:Xn,l:ir}=J_add(0|this.Fh,0|this.Fl,0|Xn,0|ir)),({h:Rn,l:Kn}=J_add(0|this.Gh,0|this.Gl,0|Rn,0|Kn)),({h:Qn,l:yr}=J_add(0|this.Hh,0|this.Hl,0|Qn,0|yr)),this.set(oe,Ce,$e,pt,It,zt,un,kn,qt,Yn,Xn,ir,Rn,Kn,Qn,yr)}roundClean(){jn.fill(0),Pn.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 kr=Er(()=>new Gn);function Fi(O){if(!Number.isSafeInteger(O)||O<0)throw new Error(`Wrong positive integer: ${O}`)}function jo(O,...P){if(!(O instanceof Uint8Array))throw new Error("Expected Uint8Array");if(P.length>0&&!P.includes(O.length))throw new Error(`Expected Uint8Array of length ${P}, not of length=${O.length}`)}const ce={number:Fi,bool:function Ro(O){if("boolean"!=typeof O)throw new Error(`Expected boolean, not ${O}`)},bytes:jo,hash:function Ho(O){if("function"!=typeof O||"function"!=typeof O.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Fi(O.outputLen),Fi(O.blockLen)},exists:function Ba(O,P=!0){if(O.destroyed)throw new Error("Hash instance has been destroyed");if(P&&O.finished)throw new Error("Hash#digest() has already been called")},output:function Ua(O,P){jo(O);const $=P.outputLen;if(O.length<$)throw new Error(`digestInto() expects output buffer of length at least ${$}`)}},ue="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,Q=O=>O instanceof Uint8Array,wr=O=>new DataView(O.buffer,O.byteOffset,O.byteLength),Jr=(O,P)=>O<<32-P|O>>>P;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function vs(O){if("string"==typeof O&&(O=function cs(O){if("string"!=typeof O)throw new Error("utf8ToBytes expected string, got "+typeof O);return new Uint8Array((new TextEncoder).encode(O))}(O)),!Q(O))throw new Error("expected Uint8Array, got "+typeof O);return O}Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0"));class bl{clone(){return this._cloneInto()}}function cl(O){const P=oe=>O().update(vs(oe)).digest(),$=O();return P.outputLen=$.outputLen,P.blockLen=$.blockLen,P.create=()=>O(),P}function eu(O=32){if(ue&&"function"==typeof ue.getRandomValues)return ue.getRandomValues(new Uint8Array(O));throw new Error("crypto.getRandomValues must be defined")}class ul extends bl{constructor(P,$,oe,Ce){super(),this.blockLen=P,this.outputLen=$,this.padOffset=oe,this.isLE=Ce,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(P),this.view=wr(this.buffer)}update(P){ce.exists(this);const{view:$,buffer:oe,blockLen:Ce}=this,$e=(P=vs(P)).length;for(let pt=0;pt<$e;){const It=Math.min(Ce-this.pos,$e-pt);if(It!==Ce)oe.set(P.subarray(pt,pt+It),this.pos),this.pos+=It,pt+=It,this.pos===Ce&&(this.process($,0),this.pos=0);else{const zt=wr(P);for(;Ce<=$e-pt;pt+=Ce)this.process(zt,pt)}}return this.length+=P.length,this.roundClean(),this}digestInto(P){ce.exists(this),ce.output(P,this),this.finished=!0;const{buffer:$,view:oe,blockLen:Ce,isLE:$e}=this;let{pos:pt}=this;$[pt++]=128,this.buffer.subarray(pt).fill(0),this.padOffset>Ce-pt&&(this.process(oe,0),pt=0);for(let qt=pt;qt>Ce&$e),It=Number($&$e),un=oe?0:4;O.setUint32(P+(oe?4:0),pt,oe),O.setUint32(P+un,It,oe)})(oe,Ce-8,BigInt(8*this.length),$e),this.process(oe,0);const It=wr(P),zt=this.outputLen;if(zt%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const un=zt/4,kn=this.get();if(un>kn.length)throw new Error("_sha2: outputLen bigger than state");for(let qt=0;qtO&P^~O&$,Ol=(O,P,$)=>O&P^O&$^P&$,Sa=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]),ks=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),js=new Uint32Array(64);class nu extends ul{constructor(){super(64,32,8,!1),this.A=0|ks[0],this.B=0|ks[1],this.C=0|ks[2],this.D=0|ks[3],this.E=0|ks[4],this.F=0|ks[5],this.G=0|ks[6],this.H=0|ks[7]}get(){const{A:P,B:$,C:oe,D:Ce,E:$e,F:pt,G:It,H:zt}=this;return[P,$,oe,Ce,$e,pt,It,zt]}set(P,$,oe,Ce,$e,pt,It,zt){this.A=0|P,this.B=0|$,this.C=0|oe,this.D=0|Ce,this.E=0|$e,this.F=0|pt,this.G=0|It,this.H=0|zt}process(P,$){for(let qt=0;qt<16;qt++,$+=4)js[qt]=P.getUint32($,!1);for(let qt=16;qt<64;qt++){const Yn=js[qt-15],Xn=js[qt-2],ir=Jr(Yn,7)^Jr(Yn,18)^Yn>>>3,Rn=Jr(Xn,17)^Jr(Xn,19)^Xn>>>10;js[qt]=Rn+js[qt-7]+ir+js[qt-16]|0}let{A:oe,B:Ce,C:$e,D:pt,E:It,F:zt,G:un,H:kn}=this;for(let qt=0;qt<64;qt++){const Xn=kn+(Jr(It,6)^Jr(It,11)^Jr(It,25))+$s(It,zt,un)+Sa[qt]+js[qt]|0,Rn=(Jr(oe,2)^Jr(oe,13)^Jr(oe,22))+Ol(oe,Ce,$e)|0;kn=un,un=zt,zt=It,It=pt+Xn|0,pt=$e,$e=Ce,Ce=oe,oe=Xn+Rn|0}oe=oe+this.A|0,Ce=Ce+this.B|0,$e=$e+this.C|0,pt=pt+this.D|0,It=It+this.E|0,zt=zt+this.F|0,un=un+this.G|0,kn=kn+this.H|0,this.set(oe,Ce,$e,pt,It,zt,un,kn)}roundClean(){js.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class ns extends nu{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 ru=cl(()=>new nu),jl=(cl(()=>new ns),BigInt(0),BigInt(1)),dl=BigInt(2),Vl=O=>O instanceof Uint8Array,Hl=Array.from({length:256},(O,P)=>P.toString(16).padStart(2,"0"));function da(O){if(!Vl(O))throw new Error("Uint8Array expected");let P="";for(let $=0;$oe+Ce.length,0));let $=0;return O.forEach(oe=>{if(!Vl(oe))throw new Error("Uint8Array expected");P.set(oe,$),$+=oe.length}),P}const Xs=O=>(dl<new Uint8Array(O),Uo=O=>Uint8Array.from(O);function vo(O,P,$){if("number"!=typeof O||O<2)throw new Error("hashLen must be a number");if("number"!=typeof P||P<2)throw new Error("qByteLen must be a number");if("function"!=typeof $)throw new Error("hmacFn must be a function");let oe=Za(O),Ce=Za(O),$e=0;const pt=()=>{oe.fill(1),Ce.fill(0),$e=0},It=(...qt)=>$(Ce,oe,...qt),zt=(qt=Za())=>{Ce=It(Uo([0]),qt),oe=It(),0!==qt.length&&(Ce=It(Uo([1]),qt),oe=It())},un=()=>{if($e++>=1e3)throw new Error("drbg: tried 1000 values");let qt=0;const Yn=[];for(;qt{let Xn;for(pt(),zt(qt);!(Xn=Yn(un()));)zt();return pt(),Xn}}const Ci={bigint:O=>"bigint"==typeof O,function:O=>"function"==typeof O,boolean:O=>"boolean"==typeof O,string:O=>"string"==typeof O,isSafeInteger:O=>Number.isSafeInteger(O),array:O=>Array.isArray(O),field:(O,P)=>P.Fp.isValid(O),hash:O=>"function"==typeof O&&Number.isSafeInteger(O.outputLen)};function Vs(O,P,$={}){const oe=(Ce,$e,pt)=>{const It=Ci[$e];if("function"!=typeof It)throw new Error(`Invalid validator "${$e}", expected function`);const zt=O[Ce];if(!(pt&&void 0===zt||It(zt,O)))throw new Error(`Invalid param ${String(Ce)}=${zt} (${typeof zt}), expected ${$e}`)};for(const[Ce,$e]of Object.entries(P))oe(Ce,$e,!1);for(const[Ce,$e]of Object.entries($))oe(Ce,$e,!0);return O}const uo=BigInt(0),Ui=BigInt(1),U=BigInt(2),Ie=BigInt(3),ne=BigInt(4),ve=BigInt(5),Et=BigInt(8);function rr(O,P){const $=O%P;return $>=uo?$:P+$}function ci(O,P,$){if($<=uo||P 0");if($===Ui)return uo;let oe=Ui;for(;P>uo;)P&Ui&&(oe=oe*O%$),O=O*O%$,P>>=Ui;return oe}function ki(O,P,$){let oe=O;for(;P-- >uo;)oe*=oe,oe%=$;return oe}function Di(O,P){if(O===uo||P<=uo)throw new Error(`invert: expected positive integers, got n=${O} mod=${P}`);let $=rr(O,P),oe=P,Ce=uo,$e=Ui,pt=Ui,It=uo;for(;$!==uo;){const un=oe/$,kn=oe%$,qt=Ce-pt*un,Yn=$e-It*un;oe=$,$=kn,Ce=pt,$e=It,pt=qt,It=Yn}if(oe!==Ui)throw new Error("invert: does not exist");return rr(Ce,P)}BigInt(9),BigInt(16);const wi=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Ls(O,P){const $=void 0!==P?P:O.toString(2).length;return{nBitLength:$,nByteLength:Math.ceil($/8)}}const ka=BigInt(0),Ia=BigInt(1);function su(O){return function bs(O){Vs(O,wi.reduce((oe,Ce)=>(oe[Ce]="function",oe),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(O.Fp),Vs(O,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Ls(O.n,O.nBitLength),...O,p:O.Fp.ORDER})}const{Ph:Wl,aT:pc}=i,hl={Err:class extends Error{constructor(P=""){super(P)}},_parseInt(O){const{Err:P}=hl;if(O.length<2||2!==O[0])throw new P("Invalid signature integer tag");const $=O[1],oe=O.subarray(2,$+2);if(!$||oe.length!==$)throw new P("Invalid signature integer: wrong length");if(128&oe[0])throw new P("Invalid signature integer: negative");if(0===oe[0]&&!(128&oe[1]))throw new P("Invalid signature integer: unnecessary leading zero");return{d:Wl(oe),l:O.subarray($+2)}},toSig(O){const{Err:P}=hl,$="string"==typeof O?pc(O):O;if(!($ instanceof Uint8Array))throw new Error("ui8a expected");let oe=$.length;if(oe<2||48!=$[0])throw new P("Invalid signature tag");if($[1]!==oe-2)throw new P("Invalid signature: incorrect length");const{d:Ce,l:$e}=hl._parseInt($.subarray(2)),{d:pt,l:It}=hl._parseInt($e);if(It.length)throw new P("Invalid signature: left bytes after parsing");return{r:Ce,s:pt}},hexFromSig(O){const P=un=>8&Number.parseInt(un[0],16)?"00"+un:un,$=un=>{const kn=un.toString(16);return 1&kn.length?`0${kn}`:kn},oe=P($(O.s)),Ce=P($(O.r)),$e=oe.length/2,pt=Ce.length/2,It=$($e),zt=$(pt);return`30${$(pt+$e+4)}02${zt}${Ce}02${It}${oe}`}},yo=BigInt(0),zo=BigInt(1),au=(BigInt(2),BigInt(3));function ah(O){const P=function Fu(O){const P=su(O);return Vs(P,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...P})}(O),{Fp:$,n:oe}=P,Ce=$.BYTES+1,$e=2*$.BYTES+1;function It(vr){return rr(vr,oe)}function zt(vr){return Di(vr,oe)}const{ProjectivePoint:un,normPrivateKeyToScalar:kn,weierstrassEquation:qt,isWithinCurveOrder:Yn}=function lu(O){const P=function Pu(O){const P=su(O);Vs(P,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:$,Fp:oe,a:Ce}=P;if($){if(!oe.eql(Ce,oe.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof $||"bigint"!=typeof $.beta||"function"!=typeof $.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...P})}(O),{Fp:$}=P,oe=P.toBytes||((ir,Rn,Kn)=>{const Qn=Rn.toAffine();return so(Uint8Array.from([4]),$.toBytes(Qn.x),$.toBytes(Qn.y))}),Ce=P.fromBytes||(ir=>{const Rn=ir.subarray(1);return{x:$.fromBytes(Rn.subarray(0,$.BYTES)),y:$.fromBytes(Rn.subarray($.BYTES,2*$.BYTES))}});function $e(ir){const{a:Rn,b:Kn}=P,Qn=$.sqr(ir),yr=$.mul(Qn,ir);return $.add($.add(yr,$.mul(ir,Rn)),Kn)}if(!$.eql($.sqr(P.Gy),$e(P.Gx)))throw new Error("bad generator point: equation left != right");function pt(ir){return"bigint"==typeof ir&&yo$.eql(Hn,$.ZERO);return yr(Kn)&&yr(Qn)?qt.ZERO:new qt(Kn,Qn,$.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Rn){const Kn=$.invertBatch(Rn.map(Qn=>Qn.pz));return Rn.map((Qn,yr)=>Qn.toAffine(Kn[yr])).map(qt.fromAffine)}static fromHex(Rn){const Kn=qt.fromAffine(Ce(Qi("pointHex",Rn)));return Kn.assertValidity(),Kn}static fromPrivateKey(Rn){return qt.BASE.multiply(zt(Rn))}_setWindowSize(Rn){this._WINDOW_SIZE=Rn,un.delete(this)}assertValidity(){if(this.is0()){if(P.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Rn,y:Kn}=this.toAffine();if(!$.isValid(Rn)||!$.isValid(Kn))throw new Error("bad point: x or y not FE");const Qn=$.sqr(Kn),yr=$e(Rn);if(!$.eql(Qn,yr))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Rn}=this.toAffine();if($.isOdd)return!$.isOdd(Rn);throw new Error("Field doesn't support isOdd")}equals(Rn){kn(Rn);const{px:Kn,py:Qn,pz:yr}=this,{px:Hn,py:Or,pz:sr}=Rn,Dr=$.eql($.mul(Kn,sr),$.mul(Hn,yr)),Gr=$.eql($.mul(Qn,sr),$.mul(Or,yr));return Dr&&Gr}negate(){return new qt(this.px,$.neg(this.py),this.pz)}double(){const{a:Rn,b:Kn}=P,Qn=$.mul(Kn,au),{px:yr,py:Hn,pz:Or}=this;let sr=$.ZERO,Dr=$.ZERO,Gr=$.ZERO,Br=$.mul(yr,yr),ro=$.mul(Hn,Hn),Ji=$.mul(Or,Or),Xi=$.mul(yr,Hn);return Xi=$.add(Xi,Xi),Gr=$.mul(yr,Or),Gr=$.add(Gr,Gr),sr=$.mul(Rn,Gr),Dr=$.mul(Qn,Ji),Dr=$.add(sr,Dr),sr=$.sub(ro,Dr),Dr=$.add(ro,Dr),Dr=$.mul(sr,Dr),sr=$.mul(Xi,sr),Gr=$.mul(Qn,Gr),Ji=$.mul(Rn,Ji),Xi=$.sub(Br,Ji),Xi=$.mul(Rn,Xi),Xi=$.add(Xi,Gr),Gr=$.add(Br,Br),Br=$.add(Gr,Br),Br=$.add(Br,Ji),Br=$.mul(Br,Xi),Dr=$.add(Dr,Br),Ji=$.mul(Hn,Or),Ji=$.add(Ji,Ji),Br=$.mul(Ji,Xi),sr=$.sub(sr,Br),Gr=$.mul(Ji,ro),Gr=$.add(Gr,Gr),Gr=$.add(Gr,Gr),new qt(sr,Dr,Gr)}add(Rn){kn(Rn);const{px:Kn,py:Qn,pz:yr}=this,{px:Hn,py:Or,pz:sr}=Rn;let Dr=$.ZERO,Gr=$.ZERO,Br=$.ZERO;const ro=P.a,Ji=$.mul(P.b,au);let Xi=$.mul(Kn,Hn),bo=$.mul(Qn,Or),To=$.mul(yr,sr),ma=$.add(Kn,Qn),vr=$.add(Hn,Or);ma=$.mul(ma,vr),vr=$.add(Xi,bo),ma=$.sub(ma,vr),vr=$.add(Kn,yr);let jr=$.add(Hn,sr);return vr=$.mul(vr,jr),jr=$.add(Xi,To),vr=$.sub(vr,jr),jr=$.add(Qn,yr),Dr=$.add(Or,sr),jr=$.mul(jr,Dr),Dr=$.add(bo,To),jr=$.sub(jr,Dr),Br=$.mul(ro,vr),Dr=$.mul(Ji,To),Br=$.add(Dr,Br),Dr=$.sub(bo,Br),Br=$.add(bo,Br),Gr=$.mul(Dr,Br),bo=$.add(Xi,Xi),bo=$.add(bo,Xi),To=$.mul(ro,To),vr=$.mul(Ji,vr),bo=$.add(bo,To),To=$.sub(Xi,To),To=$.mul(ro,To),vr=$.add(vr,To),Xi=$.mul(bo,vr),Gr=$.add(Gr,Xi),Xi=$.mul(jr,vr),Dr=$.mul(ma,Dr),Dr=$.sub(Dr,Xi),Xi=$.mul(ma,bo),Br=$.mul(jr,Br),Br=$.add(Br,Xi),new qt(Dr,Gr,Br)}subtract(Rn){return this.add(Rn.negate())}is0(){return this.equals(qt.ZERO)}wNAF(Rn){return Xn.wNAFCached(this,un,Rn,Kn=>{const Qn=$.invertBatch(Kn.map(yr=>yr.pz));return Kn.map((yr,Hn)=>yr.toAffine(Qn[Hn])).map(qt.fromAffine)})}multiplyUnsafe(Rn){const Kn=qt.ZERO;if(Rn===yo)return Kn;if(It(Rn),Rn===zo)return this;const{endo:Qn}=P;if(!Qn)return Xn.unsafeLadder(this,Rn);let{k1neg:yr,k1:Hn,k2neg:Or,k2:sr}=Qn.splitScalar(Rn),Dr=Kn,Gr=Kn,Br=this;for(;Hn>yo||sr>yo;)Hn&zo&&(Dr=Dr.add(Br)),sr&zo&&(Gr=Gr.add(Br)),Br=Br.double(),Hn>>=zo,sr>>=zo;return yr&&(Dr=Dr.negate()),Or&&(Gr=Gr.negate()),Gr=new qt($.mul(Gr.px,Qn.beta),Gr.py,Gr.pz),Dr.add(Gr)}multiply(Rn){It(Rn);let Qn,yr,Kn=Rn;const{endo:Hn}=P;if(Hn){const{k1neg:Or,k1:sr,k2neg:Dr,k2:Gr}=Hn.splitScalar(Kn);let{p:Br,f:ro}=this.wNAF(sr),{p:Ji,f:Xi}=this.wNAF(Gr);Br=Xn.constTimeNegate(Or,Br),Ji=Xn.constTimeNegate(Dr,Ji),Ji=new qt($.mul(Ji.px,Hn.beta),Ji.py,Ji.pz),Qn=Br.add(Ji),yr=ro.add(Xi)}else{const{p:Or,f:sr}=this.wNAF(Kn);Qn=Or,yr=sr}return qt.normalizeZ([Qn,yr])[0]}multiplyAndAddUnsafe(Rn,Kn,Qn){const yr=qt.BASE,Hn=(sr,Dr)=>Dr!==yo&&Dr!==zo&&sr.equals(yr)?sr.multiply(Dr):sr.multiplyUnsafe(Dr),Or=Hn(this,Kn).add(Hn(Rn,Qn));return Or.is0()?void 0:Or}toAffine(Rn){const{px:Kn,py:Qn,pz:yr}=this,Hn=this.is0();null==Rn&&(Rn=Hn?$.ONE:$.inv(yr));const Or=$.mul(Kn,Rn),sr=$.mul(Qn,Rn),Dr=$.mul(yr,Rn);if(Hn)return{x:$.ZERO,y:$.ZERO};if(!$.eql(Dr,$.ONE))throw new Error("invZ was invalid");return{x:Or,y:sr}}isTorsionFree(){const{h:Rn,isTorsionFree:Kn}=P;if(Rn===zo)return!0;if(Kn)return Kn(qt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Rn,clearCofactor:Kn}=P;return Rn===zo?this:Kn?Kn(qt,this):this.multiplyUnsafe(P.h)}toRawBytes(Rn=!0){return this.assertValidity(),oe(qt,this,Rn)}toHex(Rn=!0){return da(this.toRawBytes(Rn))}}qt.BASE=new qt(P.Gx,P.Gy,$.ONE),qt.ZERO=new qt($.ZERO,$.ONE,$.ZERO);const Yn=P.nBitLength,Xn=function Rl(O,P){const $=(Ce,$e)=>{const pt=$e.negate();return Ce?pt:$e},oe=Ce=>({windows:Math.ceil(P/Ce)+1,windowSize:2**(Ce-1)});return{constTimeNegate:$,unsafeLadder(Ce,$e){let pt=O.ZERO,It=Ce;for(;$e>ka;)$e&Ia&&(pt=pt.add(It)),It=It.double(),$e>>=Ia;return pt},precomputeWindow(Ce,$e){const{windows:pt,windowSize:It}=oe($e),zt=[];let un=Ce,kn=un;for(let qt=0;qt>=Xn,Kn>zt&&(Kn-=Yn,pt+=Ia);const Qn=Rn,yr=Rn+Math.abs(Kn)-1,Or=Kn<0;0===Kn?kn=kn.add($(ir%2!=0,$e[Qn])):un=un.add($(Or,$e[yr]))}return{p:un,f:kn}},wNAFCached(Ce,$e,pt,It){const zt=Ce._WINDOW_SIZE||1;let un=$e.get(Ce);return un||(un=this.precomputeWindow(Ce,zt),1!==zt&&$e.set(Ce,It(un))),this.wNAF(zt,un,pt)}}}(qt,P.endo?Math.ceil(Yn/2):Yn);return{CURVE:P,ProjectivePoint:qt,normPrivateKeyToScalar:zt,weierstrassEquation:$e,isWithinCurveOrder:pt}}({...P,toBytes(vr,jr,Hi){const Yi=jr.toAffine(),Mo=$.toBytes(Yi.x),gs=so;return Hi?gs(Uint8Array.from([jr.hasEvenY()?2:3]),Mo):gs(Uint8Array.from([4]),Mo,$.toBytes(Yi.y))},fromBytes(vr){const jr=vr.length,Hi=vr[0],Yi=vr.subarray(1);if(jr!==Ce||2!==Hi&&3!==Hi){if(jr===$e&&4===Hi)return{x:$.fromBytes(Yi.subarray(0,$.BYTES)),y:$.fromBytes(Yi.subarray($.BYTES,2*$.BYTES))};throw new Error(`Point of length ${jr} was invalid. Expected ${Ce} compressed bytes or ${$e} uncompressed bytes`)}{const Mo=oo(Yi);if(!function pt(vr){return yoda(Tr(vr,P.nByteLength));function ir(vr){return vr>oe>>zo}const Kn=(vr,jr,Hi)=>oo(vr.slice(jr,Hi));class Qn{constructor(jr,Hi,Yi){this.r=jr,this.s=Hi,this.recovery=Yi,this.assertValidity()}static fromCompact(jr){const Hi=P.nByteLength;return jr=Qi("compactSignature",jr,2*Hi),new Qn(Kn(jr,0,Hi),Kn(jr,Hi,2*Hi))}static fromDER(jr){const{r:Hi,s:Yi}=hl.toSig(Qi("DER",jr));return new Qn(Hi,Yi)}assertValidity(){if(!Yn(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!Yn(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(jr){return new Qn(this.r,this.s,jr)}recoverPublicKey(jr){const{r:Hi,s:Yi,recovery:Mo}=this,gs=Gr(Qi("msgHash",jr));if(null==Mo||![0,1,2,3].includes(Mo))throw new Error("recovery id invalid");const qs=2===Mo||3===Mo?Hi+P.n:Hi;if(qs>=$.ORDER)throw new Error("recovery id 2 or 3 invalid");const el=un.fromHex((1&Mo?"03":"02")+Xn(qs)),Dl=zt(qs),Jl=It(-gs*Dl),vc=It(Yi*Dl),ec=un.BASE.multiplyAndAddUnsafe(el,Jl,vc);if(!ec)throw new Error("point at infinify");return ec.assertValidity(),ec}hasHighS(){return ir(this.s)}normalizeS(){return this.hasHighS()?new Qn(this.r,It(-this.s),this.recovery):this}toDERRawBytes(){return Wo(this.toDERHex())}toDERHex(){return hl.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Wo(this.toCompactHex())}toCompactHex(){return Xn(this.r)+Xn(this.s)}}const yr={isValidPrivateKey(vr){try{return kn(vr),!0}catch{return!1}},normPrivateKeyToScalar:kn,randomPrivateKey:()=>{const jr=function ou(O,P,$=!1){const oe=(O=Qi("privateHash",O)).length,Ce=Ls(P).nByteLength+8;if(Ce<24||oe1024)throw new Error(`hashToPrivateScalar: expected ${Ce}-1024 bytes of input, got ${oe}`);return rr($?$n(O):oo(O),P-Ui)+Ui}(P.randomBytes($.BYTES+8),oe);return Tr(jr,P.nByteLength)},precompute:(vr=8,jr=un.BASE)=>(jr._setWindowSize(vr),jr.multiply(BigInt(3)),jr)};function Or(vr){const jr=vr instanceof Uint8Array,Hi="string"==typeof vr,Yi=(jr||Hi)&&vr.length;return jr?Yi===Ce||Yi===$e:Hi?Yi===2*Ce||Yi===2*$e:vr instanceof un}const Dr=P.bits2int||function(vr){const jr=oo(vr),Hi=8*vr.length-P.nBitLength;return Hi>0?jr>>BigInt(Hi):jr},Gr=P.bits2int_modN||function(vr){return It(Dr(vr))},Br=Xs(P.nBitLength);function ro(vr){if("bigint"!=typeof vr)throw new Error("bigint expected");if(!(yo<=vr&&vrtc in Hi))throw new Error("sign() legacy options not supported");const{hash:Yi,randomBytes:Mo}=P;let{lowS:gs,prehash:qs,extraEntropy:Ps}=Hi;null==gs&&(gs=!0),vr=Qi("msgHash",vr),qs&&(vr=Qi("prehashed msgHash",Yi(vr)));const el=Gr(vr),Dl=kn(jr),Jl=[ro(Dl),ro(el)];if(null!=Ps){const tc=!0===Ps?Mo($.BYTES):Ps;Jl.push(Qi("extraEntropy",tc,$.BYTES))}const vc=so(...Jl),ec=el;return{seed:vc,k2sig:function yc(tc){const Rc=Dr(tc);if(!Yn(Rc))return;const mh=zt(Rc),Js=un.BASE.multiply(Rc).toAffine(),pl=It(Js.x);if(pl===yo)return;const bc=It(mh*It(ec+pl*Dl));if(bc===yo)return;let nc=(Js.x===pl?0:2)|Number(Js.y&zo),$u=bc;return gs&&ir(bc)&&($u=function Rn(vr){return ir(vr)?It(-vr):vr}(bc),nc^=1),new Qn(pl,$u,nc)}}}(vr,jr,Hi);return vo(P.hash.outputLen,P.nByteLength,P.hmac)(Yi,Mo)},verify:function ma(vr,jr,Hi,Yi=bo){const Mo=vr;if(jr=Qi("msgHash",jr),Hi=Qi("publicKey",Hi),"strict"in Yi)throw new Error("options.strict was renamed to lowS");const{lowS:gs,prehash:qs}=Yi;let Ps,el;try{if("string"==typeof Mo||Mo instanceof Uint8Array)try{Ps=Qn.fromDER(Mo)}catch(Js){if(!(Js instanceof hl.Err))throw Js;Ps=Qn.fromCompact(Mo)}else{if("object"!=typeof Mo||"bigint"!=typeof Mo.r||"bigint"!=typeof Mo.s)throw new Error("PARSE");{const{r:Js,s:pl}=Mo;Ps=new Qn(Js,pl)}}el=un.fromHex(Hi)}catch(Js){if("PARSE"===Js.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(gs&&Ps.hasHighS())return!1;qs&&(jr=P.hash(jr));const{r:Dl,s:Jl}=Ps,vc=Gr(jr),ec=zt(Jl),yc=It(vc*ec),tc=It(Dl*ec),Rc=un.BASE.multiplyAndAddUnsafe(el,yc,tc)?.toAffine();return!!Rc&&It(Rc.x)===Dl},ProjectivePoint:un,Signature:Qn,utils:yr}}BigInt(4);class Yl extends bl{constructor(P,$){super(),this.finished=!1,this.destroyed=!1,ce.hash(P);const oe=vs($);if(this.iHash=P.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,$e=new Uint8Array(Ce);$e.set(oe.length>Ce?P.create().update(oe).digest():oe);for(let pt=0;pt<$e.length;pt++)$e[pt]^=54;this.iHash.update($e),this.oHash=P.create();for(let pt=0;pt<$e.length;pt++)$e[pt]^=106;this.oHash.update($e),$e.fill(0)}update(P){return ce.exists(this),this.iHash.update(P),this}digestInto(P){ce.exists(this),ce.bytes(P,this.outputLen),this.finished=!0,this.iHash.digestInto(P),this.oHash.update(P),this.oHash.digestInto(P),this.destroy()}digest(){const P=new Uint8Array(this.oHash.outputLen);return this.digestInto(P),P}_cloneInto(P){P||(P=Object.create(Object.getPrototypeOf(this),{}));const{oHash:$,iHash:oe,finished:Ce,destroyed:$e,blockLen:pt,outputLen:It}=this;return P.finished=Ce,P.destroyed=$e,P.blockLen=pt,P.outputLen=It,P.oHash=$._cloneInto(P.oHash),P.iHash=oe._cloneInto(P.iHash),P}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Wa=(O,P,$)=>new Yl(O,P).update($).digest();function lh(O){return{hash:O,hmac:(P,...$)=>Wa(O,P,function ja(...O){const P=new Uint8Array(O.reduce((oe,Ce)=>oe+Ce.length,0));let $=0;return O.forEach(oe=>{if(!Q(oe))throw new Error("Uint8Array expected");P.set(oe,$),$+=oe.length}),P}(...$)),randomBytes:eu}}Wa.create=(O,P)=>new Yl(O,P);const qi=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Ar=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),gc=BigInt(1),rs=BigInt(2),N=(O,P)=>(O+P/rs)/P;const F=function Ta(O,P,$=!1,oe={}){if(O<=uo)throw new Error(`Expected Fp ORDER > 0, got ${O}`);const{nBitLength:Ce,nByteLength:$e}=Ls(O,P);if($e>2048)throw new Error("Field lengths over 2048 bytes are not supported");const pt=function li(O){if(O%ne===Ie){const P=(O+Ui)/ne;return function(oe,Ce){const $e=oe.pow(Ce,P);if(!oe.eql(oe.sqr($e),Ce))throw new Error("Cannot find square root");return $e}}if(O%Et===ve){const P=(O-ve)/Et;return function(oe,Ce){const $e=oe.mul(Ce,U),pt=oe.pow($e,P),It=oe.mul(Ce,pt),zt=oe.mul(oe.mul(It,U),pt),un=oe.mul(It,oe.sub(zt,oe.ONE));if(!oe.eql(oe.sqr(un),Ce))throw new Error("Cannot find square root");return un}}return function Nr(O){const P=(O-Ui)/U;let $,oe,Ce;for($=O-Ui,oe=0;$%U===uo;$/=U,oe++);for(Ce=U;Cerr(zt,O),isValid:zt=>{if("bigint"!=typeof zt)throw new Error("Invalid field element: expected bigint, got "+typeof zt);return uo<=zt&&ztzt===uo,isOdd:zt=>(zt&Ui)===Ui,neg:zt=>rr(-zt,O),eql:(zt,un)=>zt===un,sqr:zt=>rr(zt*zt,O),add:(zt,un)=>rr(zt+un,O),sub:(zt,un)=>rr(zt-un,O),mul:(zt,un)=>rr(zt*un,O),pow:(zt,un)=>function Lo(O,P,$){if($ 0");if($===uo)return O.ONE;if($===Ui)return P;let oe=O.ONE,Ce=P;for(;$>uo;)$&Ui&&(oe=O.mul(oe,Ce)),Ce=O.sqr(Ce),$>>=Ui;return oe}(It,zt,un),div:(zt,un)=>rr(zt*Di(un,O),O),sqrN:zt=>zt*zt,addN:(zt,un)=>zt+un,subN:(zt,un)=>zt-un,mulN:(zt,un)=>zt*un,inv:zt=>Di(zt,O),sqrt:oe.sqrt||(zt=>pt(It,zt)),invertBatch:zt=>function ha(O,P){const $=new Array(P.length),oe=P.reduce(($e,pt,It)=>O.is0(pt)?$e:($[It]=$e,O.mul($e,pt)),O.ONE),Ce=O.inv(oe);return P.reduceRight(($e,pt,It)=>O.is0(pt)?$e:($[It]=O.mul($e,$[It]),O.mul($e,pt)),Ce),$}(It,zt),cmov:(zt,un,kn)=>kn?un:zt,toBytes:zt=>$?Oi(zt,$e):Tr(zt,$e),fromBytes:zt=>{if(zt.length!==$e)throw new Error(`Fp.fromBytes: expected ${$e}, got ${zt.length}`);return $?$n(zt):oo(zt)}});return Object.freeze(It)}(qi,void 0,void 0,{sqrt:function G(O){const P=qi,$=BigInt(3),oe=BigInt(6),Ce=BigInt(11),$e=BigInt(22),pt=BigInt(23),It=BigInt(44),zt=BigInt(88),un=O*O*O%P,kn=un*un*O%P,qt=ki(kn,$,P)*kn%P,Yn=ki(qt,$,P)*kn%P,Xn=ki(Yn,rs,P)*un%P,ir=ki(Xn,Ce,P)*Xn%P,Rn=ki(ir,$e,P)*ir%P,Kn=ki(Rn,It,P)*Rn%P,Qn=ki(Kn,zt,P)*Kn%P,yr=ki(Qn,It,P)*Rn%P,Hn=ki(yr,$,P)*kn%P,Or=ki(Hn,pt,P)*ir%P,sr=ki(Or,oe,P)*un%P,Dr=ki(sr,rs,P);if(!F.eql(F.sqr(Dr),O))throw new Error("Cannot find square root");return Dr}}),K=function ch(O,P){const $=oe=>ah({...O,...lh(oe)});return Object.freeze({...$(P),create:$})}({a:BigInt(0),b:BigInt(7),Fp:F,n:Ar,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:O=>{const P=Ar,$=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),oe=-gc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Ce=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$e=$,pt=BigInt("0x100000000000000000000000000000000"),It=N($e*O,P),zt=N(-oe*O,P);let un=rr(O-It*$-zt*Ce,P),kn=rr(-It*oe-zt*$e,P);const qt=un>pt,Yn=kn>pt;if(qt&&(un=P-un),Yn&&(kn=P-kn),un>pt||kn>pt)throw new Error("splitScalar: Endomorphism failed, k="+O);return{k1neg:qt,k1:un,k2neg:Yn,k2:kn}}}},ru);BigInt(0);var Ql=n(1998);const Zl=K.ProjectivePoint,uu=(0,Ql.Tq)(Ya);function du(O){return BigInt(`0x${function me(O){if(!Ii(O))throw new Error("Uint8Array expected");let P="";for(let $=0;${if(!Number.isSafeInteger(O)||O<0||O>2**32-1)throw new Error(`Invalid number=${O}. Should be from 0 to 2 ** 32 - 1`);const P=new Uint8Array(4);return Io(P).setUint32(0,O,!1),P};class Ra{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return Io(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 P=this.privateKey;if(!P)throw new Error("No private key");return uu.encode(this.serialize(this.versions.private,Fn(new Uint8Array([0]),P)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return uu.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(P,$=pi){if(ai(P),8*P.length<128||8*P.length>512)throw new Error(`HDKey: wrong seed length=${P.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const oe=Rr(kr,Cn,P);return new Ra({versions:$,chainCode:oe.slice(32),privateKey:oe.slice(0,32)})}static fromExtendedKey(P,$=pi){const oe=uu.decode(P),Ce=Io(oe),$e=Ce.getUint32(0,!1),pt={versions:$,depth:oe[4],parentFingerprint:Ce.getUint32(5,!1),index:Ce.getUint32(9,!1),chainCode:oe.slice(13,45)},It=oe.slice(45),zt=0===It[0];if($e!==$[zt?"private":"public"])throw new Error("Version mismatch");return new Ra(zt?{...pt,privateKey:It.slice(1)}:{...pt,publicKey:It})}static fromJSON(P){return Ra.fromExtendedKey(P.xpriv)}constructor(P){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!P||"object"!=typeof P)throw new Error("HDKey.constructor must not be called directly");if(this.versions=P.versions||pi,this.depth=P.depth||0,this.chainCode=P.chainCode,this.index=P.index||0,this.parentFingerprint=P.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(P.publicKey&&P.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(P.privateKey){if(!K.utils.isValidPrivateKey(P.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof P.privateKey?P.privateKey:du(P.privateKey),this.privKeyBytes=function Ja(O){return function gt(O){if("string"!=typeof O)throw new Error("hex string expected, got "+typeof O);const P=O.length,$=P/2;if(P%2)throw new Error("padded hex string expected, got unpadded hex of length "+P);const oe=new Uint8Array($);for(let Ce=0,$e=0;Ce<$;Ce++,$e+=2){const pt=Re(O.charCodeAt($e)),It=Re(O.charCodeAt($e+1));if(void 0===pt||void 0===It)throw new Error('hex string expected, got non-hex character "'+(O[$e]+O[$e+1])+'" at index '+$e);oe[Ce]=16*pt+It}return oe}(O.toString(16).padStart(64,"0"))}(this.privKey),this.pubKey=K.getPublicKey(P.privateKey,!0)}else{if(!P.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Zl.fromHex(P.publicKey).toRawBytes(!0)}this.pubHash=Go(Ya(this.pubKey))}derive(P){if(!/^[mM]'?/.test(P))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(P))return this;const $=P.replace(/^[mM]'?\//,"").split("/");let oe=this;for(const Ce of $){const $e=/^(\d+)('?)$/.exec(Ce);if(!$e||3!==$e.length)throw new Error(`Invalid child index: ${Ce}`);let pt=+$e[1];if(!Number.isSafeInteger(pt)||pt>=Ic)throw new Error("Invalid index");"'"===$e[2]&&(pt+=Ic),oe=oe.deriveChild(pt)}return oe}deriveChild(P){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let $=Nl(P);if(P>=Ic){const It=this.privateKey;if(!It)throw new Error("Could not derive hardened child key");$=Fn(new Uint8Array([0]),It,$)}else $=Fn(this.pubKey,$);const oe=Rr(kr,this.chainCode,$),Ce=du(oe.slice(0,32)),$e=oe.slice(32);if(!K.utils.isValidPrivateKey(Ce))throw new Error("Tweak bigger than curve order");const pt={versions:this.versions,chainCode:$e,depth:this.depth+1,parentFingerprint:this.fingerprint,index:P};try{if(this.privateKey){const It=rr(this.privKey+Ce,K.CURVE.n);if(!K.utils.isValidPrivateKey(It))throw new Error("The tweak was out of range or the resulted private key is invalid");pt.privateKey=It}else{const It=Zl.fromHex(this.pubKey).add(Zl.fromPrivateKey(Ce));if(It.equals(Zl.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");pt.publicKey=It.toRawBytes(!0)}return new Ra(pt)}catch{return this.deriveChild(P+1)}}sign(P){if(!this.privateKey)throw new Error("No privateKey set!");return ai(P,32),K.sign(P,this.privKey).toCompactRawBytes()}verify(P,$){if(ai(P,32),ai($,64),!this.publicKey)throw new Error("No publicKey set!");let oe;try{oe=K.Signature.fromCompact($)}catch{return!1}return K.verify(oe,P,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(P,$){if(!this.chainCode)throw new Error("No chainCode set");return ai($,33),Fn(Nl(P),new Uint8Array([this.depth]),Nl(this.parentFingerprint),Nl(this.index),this.chainCode,$)}}var pa=n(3107);let ql=(()=>{class O{constructor(){this.encoder=new TextEncoder,this.decoder=new TextDecoder}getPasswordKey($){var oe=this;return(0,a.A)(function*(){return window.crypto.subtle.importKey("raw",oe.encoder.encode($),"PBKDF2",!1,["deriveKey"])})()}deriveKey($,oe,Ce){return(0,a.A)(function*(){return window.crypto.subtle.deriveKey({name:"PBKDF2",salt:oe,iterations:25e4,hash:"SHA-256"},$,{name:"AES-GCM",length:256},!1,Ce)})()}encryptData($,oe){var Ce=this;return(0,a.A)(function*(){try{const $e=window.crypto.getRandomValues(new Uint8Array(16)),pt=window.crypto.getRandomValues(new Uint8Array(12)),It=yield Ce.getPasswordKey(oe),zt=yield Ce.deriveKey(It,$e,["encrypt"]),un=new Uint8Array(yield window.crypto.subtle.encrypt({name:"AES-GCM",iv:pt},zt,Ce.encoder.encode($))),kn=new Uint8Array($e.length+pt.length+un.length);return kn.set($e,0),kn.set(pt,$e.length),kn.set(un,$e.length+pt.length),Ql.K3.encode(kn)}catch($e){throw console.error("Encryption failed:",$e),new Error("Failed to encrypt data.")}})()}decryptData($,oe){var Ce=this;return(0,a.A)(function*(){try{const $e=Ql.K3.decode($),pt=$e.slice(0,16),It=$e.slice(16,28),zt=$e.slice(28),un=yield Ce.getPasswordKey(oe),kn=yield Ce.deriveKey(un,pt,["decrypt"]),qt=yield window.crypto.subtle.decrypt({name:"AES-GCM",iv:It},kn,zt);return Ce.decoder.decode(qt)}catch($e){throw console.error("Decryption failed:",$e),new Error("Failed to decrypt data.")}})()}static{this.\u0275fac=function(oe){return new(oe||O)}}static{this.\u0275prov=pa.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})();var Zs=n(7544),Cl=n(4482);let vd=(()=>{class O{constructor($,oe,Ce){this.securityService=$,this.dialog=oe,this._nostrLoginService=Ce,this.localStorageSecretKeyName="secretKey",this.localStoragePublicKeyName="publicKey",this.localStorageNpubName="npub",this.localStorageNsecName="nsec",this.storageKey="userPassword"}savePassword($,oe){const Ce=Date.now()+60*oe*1e3;sessionStorage.setItem(this.storageKey,JSON.stringify({password:$,expirationTime:Ce}))}getPassword(){const $=sessionStorage.getItem(this.storageKey);if(!$)return null;const{password:oe,expirationTime:Ce}=JSON.parse($);return Date.now()>Ce?(this.clearPassword(),null):oe}clearPassword(){sessionStorage.removeItem(this.storageKey)}changePassword($,oe,Ce){var $e=this;return(0,a.A)(function*(){try{const pt=yield $e.getSecretKey($);if(!pt)throw new Error("Incorrect current password.");yield $e.setSecretKey(pt,oe);const It=yield $e.getNsec($);return It&&(yield $e.setNsec(It,oe)),$e.clearPassword(),Ce&&$e.savePassword(oe,60),!0}catch(pt){return console.error("Failed to change password: ",pt),!1}})()}getUsername($){return $.startsWith("npub")&&($=C.Qe.decode($).data.toString()),`@${localStorage.getItem(`${$}`)||C.Qe.npubEncode($)}`}npub(){let $=this.getPublicKey();return C.Qe.npubEncode($)}requestPassword(){var $=this;return(0,a.A)(function*(){return $.dialog.open(y.b,{width:"300px",disableClose:!0}).afterClosed().toPromise()})()}nsec($){var oe=this;return(0,a.A)(function*(){if(oe.usingSecretKey()){let Ce=yield oe.getSecretKey($);const $e=Uint8Array.from(w.hp.from(Ce,"hex"));return C.Qe.nsecEncode($e)}return""})()}pubkey($){return C.Qe.decode($).data.toString()}setPublicKey($){const oe=C.Qe.npubEncode($);window.localStorage.setItem(this.localStoragePublicKeyName,$),window.localStorage.setItem(this.localStorageNpubName,oe)}getPublicKey(){const $=localStorage.getItem("__nostrlogin_nip46");if($)try{return JSON.parse($).pubkey||""}catch(oe){console.error("Error parsing nostr login data:",oe)}return localStorage.getItem(this.localStoragePublicKeyName)||""}setNpub($){localStorage.setItem(this.localStorageNpubName,$)}getNpub(){return window.localStorage.getItem(this.localStorageNpubName)||""}setSecretKey($,oe=""){var Ce=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ce.localStorageSecretKeyName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ce.securityService.encryptData($,oe);localStorage.setItem(Ce.localStorageSecretKeyName,$e),localStorage.setItem("usePassword","true")}})()}getSecretKey($=""){var oe=this;return(0,a.A)(function*(){const Ce=localStorage.getItem(oe.localStorageSecretKeyName),$e="true"===localStorage.getItem("usePassword");return Ce?$e?yield oe.securityService.decryptData(Ce,$):Ce:null})()}getDecryptedSecretKey(){var $=this;return(0,a.A)(function*(){try{if("true"!==localStorage.getItem("usePassword"))return $.getSecretKey();const Ce=$.getPassword();if(Ce)return yield $.getSecretKey(Ce);const $e=yield $.requestPassword();if($e?.password){const pt=yield $.getSecretKey($e.password);return 0!==$e.duration&&$.savePassword($e.password,$e.duration),pt}return console.error("Password not provided"),null}catch(oe){return console.error("Error decrypting private key:",oe),null}})()}setNsec($,oe=""){var Ce=this;return(0,a.A)(function*(){if(""===oe)localStorage.setItem(Ce.localStorageNsecName,$),localStorage.setItem("usePassword","false");else{const $e=yield Ce.securityService.encryptData($,oe);localStorage.setItem(Ce.localStorageNsecName,$e),localStorage.setItem("usePassword","true")}})()}getNsec($=""){var oe=this;return(0,a.A)(function*(){const Ce=localStorage.getItem(oe.localStorageNsecName),$e="true"===localStorage.getItem("usePassword");return Ce?$e?yield oe.securityService.decryptData(Ce,$):Ce:null})()}setPublicKeyFromExtension($){this.setPublicKey($)}handleLoginWithKey($,oe=""){let Ce,$e,pt,It;try{if($.startsWith(this.localStorageNsecName)){const un=C.Qe.decode($);if(un.type!==this.localStorageNsecName)throw new Error("Invalid nsec key.");Ce=w.hp.from(un.data).toString("hex")}else{if(!/^[0-9a-fA-F]{64}$/.test($))throw new Error("Invalid key format. Must be either nsec or hex.");Ce=$}const zt=new Uint8Array(w.hp.from(Ce,"hex"));return $e=(0,C.lG)(zt),It=C.Qe.npubEncode($e),pt=C.Qe.nsecEncode(zt),this.setSecretKey(Ce,oe),this.setNsec(It,oe),this.setPublicKey($e),this.setNpub(It),!0}catch(zt){return console.error("Error during key handling: ",zt),!1}}handleLoginWithMnemonic($,oe="",Ce=""){try{const pt=function Oc(O,P,$=0){let Ce=Ra.fromMasterSeed(Co(O,P)).derive(`m/44'/1237'/${$}'/0/0`).privateKey;if(!Ce)throw new Error("could not derive private key");return Ce}($,oe,0),It=(0,c.My)(pt),zt=(0,C.lG)(pt),un=C.Qe.npubEncode(zt),kn=C.Qe.nsecEncode(pt);return this.setSecretKey(It,Ce),this.setNsec(kn,Ce),this.setPublicKey(zt),this.setNpub(un),window.localStorage.setItem(this.localStorageNsecName,kn),!0}catch($e){return console.error("Error during login with mnemonic:",$e),!1}}logout(){window.localStorage.removeItem(this.localStorageSecretKeyName),window.localStorage.removeItem(this.localStoragePublicKeyName),window.localStorage.removeItem(this.localStorageNpubName),window.localStorage.removeItem(this.localStorageNsecName),this._nostrLoginService.logout()}usingNostrBrowserExtension(){return!this.usingSecretKey()&&!!globalThis.nostr}usingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}generateAndStoreKeys($=""){try{const oe=(0,C.Bq)(),Ce=w.hp.from(oe).toString("hex"),$e=(0,C.lG)(oe),pt=C.Qe.npubEncode($e),It=C.Qe.nsecEncode(oe);return this.setSecretKey(Ce,$),this.setNsec(It,$),this.setPublicKey($e),this.setNpub(pt),{secretKey:Ce,pubkey:$e,npub:pt,nsec:It}}catch(oe){return console.error("Error during key generation:",oe),null}}handleLoginWithExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(!oe.nostr)return!1;try{const Ce=yield oe.nostr.getPublicKey();if(!Ce)throw new Error("Public key not available from Nostr extension.");return $.setPublicKeyFromExtension(Ce),!0}catch(Ce){return console.error("Failed to connect to Nostr extension:",Ce),!1}})()}encryptMessage($,oe,Ce){return(0,a.A)(function*(){console.log(Ce);try{return yield C.sh.encrypt($,oe,Ce)}catch($e){throw console.error("Error encrypting message:",$e),$e}})()}encryptMessageWithExtension($,oe){return(0,a.A)(function*(){return yield globalThis.nostr.nip04.encrypt(oe,$)})()}decryptMessageWithExtension($,oe){return(0,a.A)(function*(){const Ce=globalThis;if(Ce.nostr&&"function"==typeof Ce.nostr.nip04?.decrypt)try{return yield Ce.nostr.nip04.decrypt($,oe)}catch($e){return console.error("Decryption failed:",$e),"*Failed to decrypt content: "+$e.message+"*"}return console.warn("Nostr extension or decrypt method is unavailable"),"Attempted Nostr Window decryption and failed."})()}decryptMessage($,oe,Ce){return(0,a.A)(function*(){try{if(!$||!oe||!Ce)throw new Error("Private key, public key, or encrypted message is missing or undefined.");const $e=yield C.sh.decrypt($,oe,Ce);if(!$e)throw new Error("Decryption returned an empty message.");return $e}catch($e){throw $e}})()}getUnsignedEvent($,oe,Ce){return{kind:$,pubkey:this.getPublicKey(),tags:oe,content:Ce,created_at:Math.floor(Date.now()/1e3)}}getSignedEvent($,oe){const Ce=(0,c.aT)(oe);return(0,C.pC)($,Ce)}getMuteList(){return(localStorage.getItem("muteList")||"").split(",")}setMuteListFromTags($){let oe=[];$.forEach(Ce=>{oe.push(Ce[1])}),this.setMuteList(oe)}setMuteList($){if(0===$.length)localStorage.setItem("muteList","");else{let oe=Array.from(new Set($));localStorage.setItem("muteList",oe.filter(Ce=>Ce).join(","))}}signEventWithExtension($){return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr)return yield oe.nostr.signEvent($);throw new Error("Tried to sign event with extension but failed")})()}signDMWithExtension($,oe){return(0,a.A)(function*(){const Ce=globalThis;if(Ce.nostr&&Ce.nostr.nip04?.encrypt)return yield Ce.nostr.nip04.encrypt($,oe);throw new Error("Failed to Sign with extension")})()}isUsingExtension(){var $=this;return(0,a.A)(function*(){const oe=globalThis;if(oe.nostr&&oe.nostr.getPublicKey)try{return!localStorage.getItem($.localStorageSecretKeyName)}catch(Ce){return console.error("Failed to check Nostr extension:",Ce),!1}return!1})()}isUsingSecretKey(){return!!localStorage.getItem(this.localStorageSecretKeyName)}getNpubFromPubkey($){try{return C.Qe.npubEncode($)}catch(oe){return console.error("Error converting hex to npub:",oe),""}}getNsecFromSeckey($){try{const oe=Uint8Array.from(w.hp.from($,"hex"));return C.Qe.nsecEncode(oe)}catch(oe){return console.error("Error converting hex to nsec:",oe),""}}getHexFromNpub($){try{const oe=C.Qe.decode($);if("npub"!==oe.type)throw new Error("Invalid npub format.");return oe.data.toString()}catch(oe){return console.error("Error converting npub to hex:",oe),""}}processKey($){try{if($.startsWith("npub")){const oe=this.getHexFromNpub($);if(!oe)throw new Error("Failed to convert npub to hex.");return oe}if(/^[0-9a-fA-F]{64}$/.test($))return $;throw new Error("Invalid key format. Must be either hex or npub.")}catch(oe){return console.error("Error processing key:",oe),""}}static{this.\u0275fac=function(oe){return new(oe||O)(pa.KVO(ql),pa.KVO(Zs.bZ),pa.KVO(Cl.v))}}static{this.\u0275prov=pa.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}}return O})()},6433:(o,s,n)=>{"use strict";n.d(s,{d:()=>C});var i=n(3014),a=n(3797),c=n(3107),y=n(5506),w=n(3149);let C=(()=>{class T{constructor(M,k){this.subscriptionService=M,this.storageService=k,this.isProfileLoaded=!1}loadUserProfile(M){var k=this;return(0,i.A)(function*(){k.isProfileLoaded||(yield k.subscribeToUserProfile(M),yield k.subscribeToUserChats(M),yield k.subscribeToUserPosts(M),yield k.subscribeToMyLikes(M),k.isProfileLoaded=!0)})()}subscribeToUserProfile(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("users"),X={kinds:[0],authors:[M],limit:1};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{const re=k.parseMetadataEvent(Z);k.storageService.saveProfile(M,re)})})()}subscribeToUserChats(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("chats"),X=[{kinds:[a.rV],authors:[M],limit:300},{kinds:[a.rV],"#p":[M],limit:300}];if(R){const Z=parseInt(R,10);X.forEach(re=>re.since=Z)}else k.storageService.removeAllChats();k.subscriptionService.addSubscriptions(X,Z=>{const re=k.parseChatEvent(Z);k.storageService.saveChatEvent(re)})})()}subscribeToUserPosts(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("posts"),X={kinds:[a.av],authors:[M]};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{k.isReply(Z)||k.storageService.savePost(Z)})})()}isReply(M){return M.tags.filter(R=>"e"===R[0]||"p"===R[0]).length>0}subscribeToMyLikes(M){var k=this;return(0,i.A)(function*(){const R=yield k.storageService.getLastUpdateDate("myLikes"),X={kinds:[a.qT],authors:[M]};R&&(X.since=parseInt(R,10)),k.subscriptionService.addSubscriptions([X],Z=>{k.storageService.saveLike(Z)})})()}parseMetadataEvent(M){try{return JSON.parse(M.content)}catch(k){return console.error("Error parsing metadata event:",k),null}}parseChatEvent(M){try{const k=M.content.split("?iv=");return{id:M.id,kind:M.kind,pubkey:M.pubkey,created_at:M.created_at,tags:M.tags,content:k[0],iv:k[1],IsRead:!1}}catch(k){return console.error("Error parsing chat event:",k),null}}static{this.\u0275fac=function(k){return new(k||T)(c.KVO(y.n),c.KVO(w.n))}}static{this.\u0275prov=c.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},3149:(o,s,n)=>{"use strict";n.d(s,{n:()=>C});var i=n(3014),a=n(230),c=n.n(a),y=n(1217),w=n(3107);let C=(()=>{class T{constructor(){this.profileSubject=new y.t(null),this.projectsSubject=new y.t([]),this.projectStatsSubject=new y.t({}),this.chatEventsSubject=new y.t([]),this.unreadChatCountSubject=new y.t(0),this.contactsSubject=new y.t({pubKey:"",contacts:[]}),this.postsSubject=new y.t(null),this.myLikesSubject=new y.t([]),this.notificationsSubject=new y.t([]),this.contactStatsSubject=new y.t({totalContacts:0,followersCount:0,followingCount:0}),this.investorsSubject=new y.t([]),this.projectDetailsSubject=new y.t([]),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.projectDetailsStore=this.createStore("projectDetails"),this.projectStatsStore=this.createStore("projectStatistics"),this.investorsStore=this.createStore("investors"),this.loadAllProjectsFromDB(),this.loadAllProjectDetailsFromDB(),this.loadAllProjectStatsFromDB(),this.loadAllInvestorsFromDB(),this.loadAllContactsFromDB(),this.loadAllChatEventsFromDB(),this.loadAllMyLikesFromDB(),this.loadAllNotificationsFromDB(),this.calculateAndStoreAllContactStats()}createStore(M){return c().createInstance({driver:c().INDEXEDDB,name:"angor-hub",version:1,storeName:M})}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()}get investors$(){return this.investorsSubject.asObservable()}get projectDetails$(){return this.projectDetailsSubject.asObservable()}saveInvestor(M){var k=this;return(0,i.A)(function*(){try{const R=`${M.projectIdentifier}-${M.investorPublicKey}`;yield k.investorsStore.setItem(R,M);const Z=[...k.investorsSubject.value.filter(re=>re.projectIdentifier!==M.projectIdentifier||re.investorPublicKey!==M.investorPublicKey),M];k.investorsSubject.next(Z),console.log("Investor saved successfully:",M)}catch(R){console.error("Error saving investor:",R)}})()}getInvestor(M,k){var R=this;return(0,i.A)(function*(){try{const X=`${M}-${k}`;return(yield R.investorsStore.getItem(X))||null}catch(X){return console.error("Error retrieving investor:",X),null}})()}getAllInvestors(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.investorsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all investors:",k),k}catch(k){return console.error("Error retrieving all investors:",k),[]}})()}saveProjectDetails(M){var k=this;return(0,i.A)(function*(){try{const R=M.projectIdentifier;yield k.projectDetailsStore.setItem(R,M);const Z=[...k.projectDetailsSubject.value.filter(re=>re.projectIdentifier!==M.projectIdentifier),M];k.projectDetailsSubject.next(Z),console.log("Project details saved successfully:",M)}catch(R){console.error("Error saving project details:",R)}})()}getProjectDetails(M){var k=this;return(0,i.A)(function*(){try{return(yield k.projectDetailsStore.getItem(M))||null}catch(R){return console.error("Error retrieving project details:",R),null}})()}getAllProjectDetails(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Retrieved all project details:",k),k}catch(k){return console.error("Error retrieving all project details:",k),[]}})()}saveContacts(M,k){var R=this;return(0,i.A)(function*(){try{const X=[];for(const Z of k){const re=`${M}:${Z.id}`;yield R.contactsStore.setItem(re,Z),X.push(Z)}R.contactsSubject.next({pubKey:M,contacts:X}),yield R.calculateAndStoreAllContactStats(),yield R.setUpdateHistory("contacts")}catch(X){console.error("Error saving contacts:",X)}})()}calculateAndStoreAllContactStats(){var M=this;return(0,i.A)(function*(){try{const k={};yield M.contactsStore.iterate((R,X)=>{const[Z]=X.split(":");k[Z]||(k[Z]={totalContacts:0,followersCount:0,followingCount:0}),k[Z].totalContacts++,R.isFollower?k[Z].followersCount++:k[Z].followingCount++});for(const R in k)M.contactStatsMap[R]||(M.contactStatsMap[R]=new y.t({pubKey:R,totalContacts:0,followersCount:0,followingCount:0})),M.contactStatsMap[R].next({pubKey:R,totalContacts:k[R].totalContacts,followersCount:k[R].followersCount,followingCount:k[R].followingCount})}catch(k){console.error("Error calculating and storing contact stats:",k)}})()}getContactStats$(M){return this.contactStatsMap[M]||(this.contactStatsMap[M]=new y.t({pubKey:M,totalContacts:0,followersCount:0,followingCount:0}),this.calculateAndStoreAllContactStats()),this.contactStatsMap[M].asObservable()}getAllContactsPaginated(M,k,R){var X=this;return(0,i.A)(function*(){try{const Z=[];yield X.contactsStore.iterate((de,De)=>{const[Ee]=De.split(":");Ee===M&&Z.push(de)});const re=Z.length,_e=(k-1)*R;return{contacts:Z.slice(_e,_e+R),totalCount:re}}catch(Z){return console.error("Error retrieving paginated contacts for pubKey:",Z),{contacts:[],totalCount:0}}})()}getAllContacts(M=""){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.contactsStore.iterate((X,Z)=>{const[re,_e]=Z.split(":");(""===M||re===M)&&R.push({pubKey:re,contact:X})}),R}catch(R){return console.error("Error retrieving contacts:",R),[]}})()}getContactStats(M){var k=this;return(0,i.A)(function*(){try{let R=0,X=0,Z=0;return yield k.contactsStore.iterate((re,_e)=>{const[pe,de]=_e.split(":");pe===M&&(R++,re.isFollower?X++:Z++)}),{totalContacts:R,followersCount:X,followingCount:Z}}catch(R){return console.error("Error retrieving contact stats for pubKey:",R),{totalContacts:0,followersCount:0,followingCount:0}}})()}removeAllContacts(M){var k=this;return(0,i.A)(function*(){try{const R=[];yield k.contactsStore.iterate((X,Z)=>{const[re]=Z.split(":");re===M&&R.push(Z)});for(const X of R)yield k.contactsStore.removeItem(X);yield k.contactsStore.clear(),k.contactStatsSubject.next({totalContacts:0,followersCount:0,followingCount:0}),k.contactsSubject.next({pubKey:M,contacts:[]}),yield k.setUpdateHistory("contacts")}catch(R){console.error("Error removing all contacts for pubKey:",R)}})()}saveProfile(M,k){var R=this;return(0,i.A)(function*(){try{if(!M||!k)return void console.error("Invalid pubKey or metadata:",M,k);k.pubKey=M,yield R.profileStore.setItem(M,k),R.profileSubject.next({pubKey:M,metadata:k}),yield R.setUpdateHistory("profiles")}catch(X){console.error("Error saving profile",X)}})()}getProfile(M){var k=this;return(0,i.A)(function*(){try{return(yield k.profileStore.getItem(M))||null}catch(R){return console.error("Error retrieving profile metadata:",R),null}})()}getAllProfiles(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.profileStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all Profile:",k),[]}})()}searchProfile(M){var k=this;return(0,i.A)(function*(){try{const R=[],X=M.toLowerCase();return yield k.profileStore.iterate((Z,re)=>{JSON.stringify(Z).toLowerCase().includes(X)&&R.push({pubKey:re,profile:Z})}),R}catch(R){return console.error("Error searching profiles by metadata:",R),[]}})()}getLastUpdateDate(M){var k=this;return(0,i.A)(function*(){try{return(yield k.updateHistoryStore.getItem(M))||null}catch(R){return console.error("Error retrieving last update date:",R),null}})()}saveProject(M){var k=this;return(0,i.A)(function*(){try{yield k.projectsStore.setItem(M.projectIdentifier,M);const R=yield k.getAllProjects();k.projectsSubject.next(R),yield k.setUpdateHistory("projects")}catch(R){console.error("Error saving project:",R)}})()}getProjectsByNostrPubKeys(M){var k=this;return(0,i.A)(function*(){if(!M||0===M.length)return[];const R=[],X=yield k.projectDetailsStore.keys();for(const Z of X){const re=yield k.projectDetailsStore.getItem(Z);re&&M.includes(re.nostrPubKey)&&R.push(re)}return R})()}getAllProjects(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.projectsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all projects:",k),[]}})()}getProjectStats(M){var k=this;return(0,i.A)(function*(){try{return(yield k.projectStatsStore.getItem(M))||null}catch(R){return console.error("Error retrieving project stats:",R),null}})()}saveProjectStats(M,k){var R=this;return(0,i.A)(function*(){try{yield R.projectStatsStore.setItem(M,k);const X=yield R.getAllProjectStats();R.projectStatsSubject.next(X),yield R.setUpdateHistory("projectStats")}catch(X){console.error("Error saving project stats:",X)}})()}getAllProjectStats(){var M=this;return(0,i.A)(function*(){try{const k={};return yield M.projectStatsStore.iterate((R,X)=>{k[X]=R}),k}catch(k){return console.error("Error retrieving all project stats:",k),{}}})()}savePost(M){var k=this;return(0,i.A)(function*(){try{yield k.postsStore.setItem(M.id,M),yield k.setUpdateHistory("posts"),k.postsSubject.next(M)}catch(R){console.error("Error saving event type 1 and sending it to clients:",R)}})()}getPostsByPubKey(M){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.postsStore.iterate(X=>{X.pubkey===M&&1===X.kind&&R.push(X)}),R.sort((X,Z)=>Z.createdAt-X.createdAt)}catch(R){return console.error("Error retrieving events for pubKey:",R),[]}})()}getPostById(M){var k=this;return(0,i.A)(function*(){try{let R=null;return yield k.postsStore.iterate(X=>{if(X.id===M&&1===X.kind)return R=X,R}),R}catch(R){return console.error("Error retrieving post by ID:",R),null}})()}getAllPostsWithPagination(M,k=10){var R=this;return(0,i.A)(function*(){try{const X=[],Z=(M-1)*k;return yield R.postsStore.iterate(re=>{1===re.kind&&X.push(re)}),X.sort((re,_e)=>_e.created_at-re.created_at).slice(Z,Z+k)}catch(X){return console.error("Error retrieving all posts with pagination:",X),[]}})()}getPostsByPubKeysWithPagination(M,k,R=10){var X=this;return(0,i.A)(function*(){try{const Z=[],re=(k-1)*R;return yield X.postsStore.iterate(_e=>{M.includes(_e.pubkey)&&1===_e.kind&&Z.push(_e)}),Z.sort((_e,pe)=>pe.created_at-_e.created_at).slice(re,re+R)}catch(Z){return console.error("Error retrieving events for pubKeys with pagination:",Z),[]}})()}saveLike(M){var k=this;return(0,i.A)(function*(){try{yield k.myLikesStore.setItem(M.id,M);const R=yield k.getAllMyLikes();k.myLikesSubject.next(R),yield k.setUpdateHistory("myLikes")}catch(R){console.error("Error saving like:",R)}})()}getAllMyLikes(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.myLikesStore.iterate(R=>{try{const X=R.tags.find(Z=>"e"===Z[0]);X&&k.push(X[1])}catch(X){console.warn("Error parsing like:",R,X)}}),k}catch(k){return console.error("Error retrieving all likes:",k),[]}})()}saveNotification(M){var k=this;return(0,i.A)(function*(){try{yield k.notificationsStore.setItem(M.id,M);const R=yield k.getAllNotifications();k.notificationsSubject.next(R),yield k.setUpdateHistory("notifications")}catch(R){console.error("Error saving notification:",R)}})()}getAllNotifications(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.notificationsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all notifications:",k),[]}})()}saveChatEvent(M){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.setItem(M.id,M),yield k.setUpdateHistory("chats");const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error saving chat event:",R)}})()}getAllChatEvents(){var M=this;return(0,i.A)(function*(){try{const k=[];return yield M.chatsStore.iterate(R=>{k.push(R)}),k}catch(k){return console.error("Error retrieving all chat events:",k),[]}})()}getChatEventsByPubKey(M){var k=this;return(0,i.A)(function*(){try{const R=[];return yield k.chatsStore.iterate(X=>{const Z=k.getReceiverPubKeyFromTags(X.tags);(X.pubkey===M||Z===M)&&R.push(X)}),R}catch(R){return console.error("Error retrieving chat events by pubkey:",R),[]}})()}updateChatEventReadStatus(M,k){var R=this;return(0,i.A)(function*(){try{const X=yield R.chatsStore.getItem(M);if(X){X.IsRead=k,yield R.chatsStore.setItem(M,X);const Z=yield R.getAllChatEvents();R.chatEventsSubject.next(Z),R.updateUnreadChatCount(Z)}}catch(X){console.error("Error updating chat event read status:",X)}})()}markAllChatEventsAsRead(M){var k=this;return(0,i.A)(function*(){try{yield k.chatsStore.iterate(function(){var X=(0,i.A)(function*(Z,re){const _e=k.getReceiverPubKeyFromTags(Z.tags);(Z.pubkey===M||_e===M)&&!Z.IsRead&&(Z.IsRead=!0,yield k.chatsStore.setItem(re,Z))});return function(Z,re){return X.apply(this,arguments)}}());const R=yield k.getAllChatEvents();k.chatEventsSubject.next(R),k.updateUnreadChatCount(R)}catch(R){console.error("Error marking all chat events as read:",R)}})()}getReceiverPubKeyFromTags(M){for(const k of M)if("p"===k[0]&&k[1])return k[1];return null}updateUnreadChatCount(M){const k=M.filter(R=>!R.IsRead).length;this.unreadChatCountSubject.next(k)}removeAllChats(){var M=this;return(0,i.A)(function*(){try{yield M.chatsStore.clear(),M.chatEventsSubject.next([]),M.unreadChatCountSubject.next(0),console.log("All chat events have been removed successfully.")}catch(k){console.error("Error removing all chat events:",k)}})()}setUpdateHistory(M){var k=this;return(0,i.A)(function*(){try{const R=Math.floor(Date.now()/1e3);yield k.updateHistoryStore.setItem(M,R)}catch(R){console.error("Error updating history:",R)}})()}loadAllProjectsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllProjects();M.projectsSubject.next(k)}catch(k){console.error("Error loading projects from DB:",k)}})()}loadAllProjectStatsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllProjectStats();M.projectStatsSubject.next(k)}catch(k){console.error("Error loading project stats from DB:",k)}})()}loadAllContactsFromDB(M=""){var k=this;return(0,i.A)(function*(){try{const R=yield k.getAllContacts(M);if(R.length>0){const X={};for(const Z of R)X[Z.pubKey]||(X[Z.pubKey]=[]),X[Z.pubKey].push(Z.contact);for(const Z in X)k.contactsSubject.next({pubKey:Z,contacts:X[Z]})}}catch(R){console.error("Error loading contacts from DB:",R)}})()}loadAllChatEventsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllChatEvents();M.chatEventsSubject.next(k)}catch(k){console.error("Error loading chat events from DB:",k)}})()}loadPostsFromDB(M,k=10,R=0){var X=this;return(0,i.A)(function*(){try{const Z=[];return yield X.postsStore.iterate(re=>{M.includes(re.pubkey)&&Z.push(re)}),Z.sort((re,_e)=>_e.created_at-re.created_at).slice(R,R+k)}catch(Z){return console.error("Error retrieving events from DB:",Z),[]}})()}loadPosts(M,k){var R=this;return(0,i.A)(function*(){const Z=10*(k-1),re=yield R.loadPostsFromDB(M,10,Z);re.length>0&&re.forEach(_e=>{R.postsSubject.next(_e)})})()}loadAllMyLikesFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllMyLikes();M.myLikesSubject.next(k)}catch(k){console.error("Error loading likes from DB:",k)}})()}loadAllNotificationsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=yield M.getAllNotifications();M.notificationsSubject.next(k)}catch(k){console.error("Error loading notifications from DB:",k)}})()}loadContactStatsFromDB(){var M=this;return(0,i.A)(function*(){try{let k=0,R=0,X=0;yield M.contactsStore.iterate((Z,re)=>{const[_e]=re.split(":");k++,Z.isFollower?R++:X++}),M.contactStatsSubject.next({totalContacts:k,followersCount:R,followingCount:X})}catch(k){console.error("Error loading contact stats from DB:",k)}})()}loadAllInvestorsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=[];yield M.investorsStore.iterate(R=>{k.push(R)}),console.log("Loaded Investors:",k),M.investorsSubject.next(k)}catch(k){console.error("Error loading investors from DB:",k)}})()}loadAllProjectDetailsFromDB(){var M=this;return(0,i.A)(function*(){try{const k=[];yield M.projectDetailsStore.iterate(R=>{k.push(R)}),console.log("Loaded Project Details:",k),M.projectDetailsSubject.next(k)}catch(k){console.error("Error loading project details from DB:",k)}})()}static{this.\u0275fac=function(k){return new(k||T)}}static{this.\u0275prov=w.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}}return T})()},5506:(o,s,n)=>{"use strict";n.d(s,{n:()=>pe});var a,i=n(1217),c=new Uint8Array(16);function y(){if(!a&&!(a=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 a(c)}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 S=[],M=0;M<256;++M)S.push((M+256).toString(16).substr(1));const R=function k(de){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Ee=(S[de[De+0]]+S[de[De+1]]+S[de[De+2]]+S[de[De+3]]+"-"+S[de[De+4]]+S[de[De+5]]+"-"+S[de[De+6]]+S[de[De+7]]+"-"+S[de[De+8]]+S[de[De+9]]+"-"+S[de[De+10]]+S[de[De+11]]+S[de[De+12]]+S[de[De+13]]+S[de[De+14]]+S[de[De+15]]).toLowerCase();if(!function C(de){return"string"==typeof de&&w.test(de)}(Ee))throw TypeError("Stringified UUID is invalid");return Ee},Z=function X(de,De,Ee){var Le=(de=de||{}).random||(de.rng||y)();if(Le[6]=15&Le[6]|64,Le[8]=63&Le[8]|128,De){Ee=Ee||0;for(var Ae=0;Ae<16;++Ae)De[Ee+Ae]=Le[Ae];return De}return R(Le)};var re=n(3107),_e=n(3125);let pe=(()=>{class de{constructor(Ee){this.relayService=Ee,this.subscriptions=new Map,this.activeRelays=[],this.pendingSubscriptions=new Map,this.subscriptionsSubject=new i.t(new Map),this.subscriptions$=this.subscriptionsSubject.asObservable(),this.subscriptionQueue=[],this.isProcessingQueue=!1,this.queueInterval=1e3,this.maxSubscriptionsPerBatch=5,this.debounceInterval=1e3,this.lastActionTimestamp=new Map,this.connectToAllRelays(),this.processSubscriptionQueue()}addSubscriptions(Ee,Le,Ae){const we=this.findExistingSubscription(Ee);if(we)return we.callbacks.push(Le),we.id;const le=Z();this.lastActionTimestamp.set(le,Date.now());const ae={filter:Ee,callbacks:[Le],id:le};return this.subscriptions.set(ae.id,ae),this.subscriptionsSubject.next(this.subscriptions),this.addToQueue(ae),ae.id}findExistingSubscription(Ee){return Array.from(this.subscriptions.values()).find(Le=>JSON.stringify(Le.filter)===JSON.stringify(Ee))}removeSubscriptionById(Ee){const Le=Date.now(),Ae=this.lastActionTimestamp.get(Ee);Ae&&Le-Ae{this.subscriptionQueue.length>0&&this.subscriptionQueue.splice(0,this.maxSubscriptionsPerBatch).forEach(Ae=>this.subscribeToRelays(Ae.filter,Ae))},this.queueInterval))}subscribeToRelays(Ee,Le){0!==this.activeRelays.length?this.relayService.ensureConnectedRelays().then(()=>{const Ae=this.relayService.getConnectedRelays();this.relayService.getPool().subscribeMany(Ae,Ee,{onevent:we=>{Le.callbacks.forEach(le=>le(we))},onclose:()=>console.log("Subscription closed")})}).catch(Ae=>{console.error("Error subscribing to relays:",Ae)}):this.pendingSubscriptions.set(Le.id,Le)}subscribeToAllRelays(){this.pendingSubscriptions.forEach(Ee=>{this.subscribeToRelays(Ee.filter,Ee)}),this.pendingSubscriptions.clear()}connectToAllRelays(){this.relayService.ensureConnectedRelays().then(()=>{this.activeRelays=this.relayService.getConnectedRelays(),this.subscribeToAllRelays()}).catch(Ee=>{console.error("Error connecting to relays:",Ee)})}clearAllSubscriptions(){this.subscriptions.clear(),this.pendingSubscriptions.clear(),this.subscriptionsSubject.next(new Map)}getSubscriptions(){return Array.from(this.subscriptions.values())}static{this.\u0275fac=function(Le){return new(Le||de)(re.KVO(_e.b))}}static{this.\u0275prov=re.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}}return de})()},2226:(o,s,n)=>{"use strict";n.d(s,{b:()=>Z});var i=n(4460),a=n(936),c=n(9471),y=n(2902),w=n(7544),C=n(6071),T=n(3904),S=n(6389),M=n(2675),k=n(5785),R=n(3107);function X(re,_e){1&re&&(R.j41(0,"mat-error"),R.EFF(1," Password is required "),R.k0s())}let Z=(()=>{class re{constructor(pe,de,De){this.fb=pe,this.dialogRef=de,this.data=De,this.passwordForm=this.fb.group({password:["",a.k0.required],duration:["0",a.k0.required]})}onCancel(){this.dialogRef.close()}onSubmit(){this.dialogRef.close(this.passwordForm.value)}static{this.\u0275fac=function(de){return new(de||re)(R.rXU(a.ok),R.rXU(w.CP),R.rXU(w.Vh))}}static{this.\u0275cmp=R.VBU({type:re,selectors:[["password-dialog"]],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(de,De){1&de&&(R.j41(0,"h1",0),R.EFF(1,"Enter Password"),R.k0s(),R.j41(2,"div",1)(3,"form",2)(4,"mat-form-field",3)(5,"mat-label"),R.EFF(6,"Password"),R.k0s(),R.j41(7,"mat-icon",4),R.EFF(8,"lock"),R.k0s(),R.nrm(9,"input",5),R.DNE(10,X,2,0,"mat-error",6),R.k0s(),R.j41(11,"mat-form-field",7)(12,"mat-label"),R.EFF(13,"Duration"),R.k0s(),R.j41(14,"mat-select",8)(15,"mat-option",9),R.EFF(16,"0 Minute"),R.k0s(),R.j41(17,"mat-option",10),R.EFF(18,"1 Minute"),R.k0s(),R.j41(19,"mat-option",11),R.EFF(20,"5 Minutes"),R.k0s(),R.j41(21,"mat-option",12),R.EFF(22,"10 Minutes"),R.k0s(),R.j41(23,"mat-option",13),R.EFF(24,"1 Hour"),R.k0s()()()()(),R.j41(25,"div",14)(26,"button",15),R.bIt("click",function(){return De.onCancel()}),R.EFF(27,"Cancel"),R.k0s(),R.j41(28,"button",16),R.bIt("click",function(){return De.onSubmit()}),R.EFF(29," Submit "),R.k0s()()),2&de&&(R.R7$(3),R.Y8G("formGroup",De.passwordForm),R.R7$(),R.Y8G("subscriptSizing","dynamic"),R.R7$(5),R.Y8G("formControlName","password"),R.R7$(),R.Y8G("ngIf",De.passwordForm.get("password").hasError("required")),R.R7$(18),R.Y8G("disabled",De.passwordForm.invalid))},dependencies:[k.vg,c.Hl,c.$z,T.m_,T.An,a.YN,a.qT,a.me,a.BC,a.cb,y.wT,C.nJ,C.rl,a.X1,a.j4,a.JD,i.MD,i.bT,M.Ve,C.TL,C.JW,M.VO,C.RG,S.fS,S.fg],styles:[".full-width[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}}return re})()},770:(o,s,n)=>{"use strict";var i=n(6388),a=n(8716),c=n(3107);let y=(()=>{class v{constructor(){}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["app-root"]],decls:1,vars:0,template:function(_,D){1&_&&c.nrm(0,"router-outlet")},dependencies:[a.n3],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;width:100%;height:100%}"]})}}return v})();var w=n(3014);const C=new c.nKC("ANGOR_MOCK_API_DEFAULT_DELAY");var T=n(8915),S=n(1698),M=n(7610),k=n(3016);class R{constructor(m,d){this.url=m,this.delay=d,this._replyCount=0,this._replied=0}get response(){if(this._replyCount>0&&this._replyCount<=this._replied)return(0,T.$)(()=>new Error("Execution limit has been reached!"));if(!this._reply)return(0,T.$)(()=>new Error("Response callback function does not exist!"));if(!this.request)return(0,T.$)(()=>new Error("Request does not exist!"));this._replied++;const m=this._reply({request:this.request,urlParams:this.urlParams});return m instanceof S.c?m.pipe((0,M.s)(1)):(0,k.of)(m).pipe((0,M.s)(1))}reply(m){this._reply=m}replyCount(m){this._replyCount=m}}var X=n(6143);let Z=(()=>{class v{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(d,_){const D={handler:void 0,urlParams:{}},W=_.split("/"),te=this._handlers[d.toLowerCase()];for(const[be,Xe]of te){const yt=be.split("/");if(W.length===yt.length&&yt.every((yn,_r)=>yn.startsWith(":")||yn===W[_r])){D.handler=Xe,D.urlParams=(0,X.A)(yt.map((yn,_r)=>yn.startsWith(":")?[yn.substring(1),W[_r]]:void 0).filter(Boolean));break}}return D}onGet(d,_){return this._registerHandler("get",d,_)}onPost(d,_){return this._registerHandler("post",d,_)}onPatch(d,_){return this._registerHandler("patch",d,_)}onDelete(d,_){return this._registerHandler("delete",d,_)}onPut(d,_){return this._registerHandler("put",d,_)}onHead(d,_){return this._registerHandler("head",d,_)}onJsonp(d,_){return this._registerHandler("jsonp",d,_)}onOptions(d,_){return this._registerHandler("options",d,_)}_registerHandler(d,_,D){const W=new R(_,D);return this._handlers[d].set(_,W),W}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var re=n(7691),_e=n(8136),pe=n(2867);const de=(v,m)=>{const d=(0,c.WQX)(C),_=(0,c.WQX)(Z),{handler:D,urlParams:W}=_.findHandler(v.method.toUpperCase(),v.url);return D?(D.request=v,D.urlParams=W,D.response.pipe((0,_e.c)(D.delay??d??0),(0,pe.n)(te=>{if(!te)return(0,T.$)(()=>new re.yz({error:"NOT FOUND",status:404,statusText:"NOT FOUND"}));const be={status:te[0],body:te[1]};return be.status>=200&&be.status<300?(0,k.of)(new re.cS({body:be.body,status:be.status,statusText:"OK"})):(0,T.$)(()=>new re.yz({error:be.body?.error,status:be.status,statusText:"ERROR"}))}))):m(v)};var De=n(7891),Ee=n(7153),Le=n(1217);let Ae=(()=>{class v{constructor(){this._auto$=new Le.t(!0),this._mode$=new Le.t("indeterminate"),this._progress$=new Le.t(0),this._show$=new Le.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(d){this._auto$.next(d)}setMode(d){this._mode$.next(d)}setProgress(d){d<0||d>100?console.error("Progress value must be between 0 and 100!"):this._progress$.next(d)}_setLoadingStatus(d,_){_?(!0===d?(this._urlMap.set(_,d),this._show$.next(!0)):!1===d&&this._urlMap.has(_)&&this._urlMap.delete(_),0===this._urlMap.size&&this._show$.next(!1)):console.error("The request URL must be provided!")}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var we=n(4447);const le=(v,m)=>{const d=(0,c.WQX)(Ae);let _=!1;return d.auto$.pipe((0,M.s)(1)).subscribe(D=>{_=D}),_?(d._setLoadingStatus(!0,v.url),m(v).pipe((0,we.j)(()=>{d._setLoadingStatus(!1,v.url)}))):m(v)};var ae=n(2012),xe=n(2147);let Be=(()=>{class v{constructor(){this._platform=(0,c.WQX)(xe.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(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var st=n(4460),lt=n(1483);let bt=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.qQ),this._router=(0,c.WQX)(a.Ix),this._router.events.pipe((0,lt.p)(d=>d instanceof a.wF),(0,M.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(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var at=n(3939),sn=n(2902),fn=n(7544),En=n(6071);class wn extends Error{}class Je extends wn{constructor(m){super(`Invalid DateTime: ${m.toMessage()}`)}}class _t extends wn{constructor(m){super(`Invalid Interval: ${m.toMessage()}`)}}class ze extends wn{constructor(m){super(`Invalid Duration: ${m.toMessage()}`)}}class Ue extends wn{}class Ft extends wn{constructor(m){super(`Invalid unit ${m}`)}}class Ke extends wn{}class Ze extends wn{constructor(){super("Zone is an abstract class")}}const it="numeric",Ot="short",Qt="long",Me={year:it,month:it,day:it},ht={year:it,month:Ot,day:it},Xt={year:it,month:Ot,day:it,weekday:Ot},Tn={year:it,month:Qt,day:it},Wt={year:it,month:Qt,day:it,weekday:Qt},Zt={hour:it,minute:it},rt={hour:it,minute:it,second:it},Ht={hour:it,minute:it,second:it,timeZoneName:Ot},en={hour:it,minute:it,second:it,timeZoneName:Qt},Nn={hour:it,minute:it,hourCycle:"h23"},mn={hour:it,minute:it,second:it,hourCycle:"h23"},Mn={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Ot},tt={hour:it,minute:it,second:it,hourCycle:"h23",timeZoneName:Qt},Kt={year:it,month:it,day:it,hour:it,minute:it},At={year:it,month:it,day:it,hour:it,minute:it,second:it},Te={year:it,month:Ot,day:it,hour:it,minute:it},ye={year:it,month:Ot,day:it,hour:it,minute:it,second:it},He={year:it,month:Ot,day:it,weekday:Ot,hour:it,minute:it},z={year:it,month:Qt,day:it,hour:it,minute:it,timeZoneName:Ot},L={year:it,month:Qt,day:it,hour:it,minute:it,second:it,timeZoneName:Ot},V={year:it,month:Qt,day:it,weekday:Qt,hour:it,minute:it,timeZoneName:Qt},Ne={year:it,month:Qt,day:it,weekday:Qt,hour:it,minute:it,second:it,timeZoneName:Qt};class ft{get type(){throw new Ze}get name(){throw new Ze}get ianaName(){return this.name}get isUniversal(){throw new Ze}offsetName(m,d){throw new Ze}formatOffset(m,d){throw new Ze}offset(m){throw new Ze}equals(m){throw new Ze}get isValid(){throw new Ze}}let mt=null;class Tt extends ft{static get instance(){return null===mt&&(mt=new Tt),mt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return ur(m,d,_)}formatOffset(m,d){return aa(this.offset(m),d)}offset(m){return-new Date(m).getTimezoneOffset()}equals(m){return"system"===m.type}get isValid(){return!0}}let On={};const hn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Dn={};class Hr extends ft{static create(m){return Dn[m]||(Dn[m]=new Hr(m)),Dn[m]}static resetCache(){Dn={},On={}}static isValidSpecifier(m){return this.isValidZone(m)}static isValidZone(m){if(!m)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:m}).format(),!0}catch{return!1}}constructor(m){super(),this.zoneName=m,this.valid=Hr.isValidZone(m)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(m,{format:d,locale:_}){return ur(m,d,_,this.name)}formatOffset(m,d){return aa(this.offset(m),d)}offset(m){const d=new Date(m);if(isNaN(d))return NaN;const _=function cn(v){return On[v]||(On[v]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:v,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),On[v]}(this.name);let[D,W,te,be,Xe,yt,dn]=_.formatToParts?function lr(v,m){const d=v.formatToParts(m),_=[];for(let D=0;D=0?mr:1e3+mr,(Xo({year:D,month:W,day:te,hour:24===Xe?0:Xe,minute:yt,second:dn,millisecond:0})-nr)/6e4}equals(m){return"iana"===m.type&&m.name===this.name}get isValid(){return this.valid}}let Mr={},vt={};function Vt(v,m={}){const d=JSON.stringify([v,m]);let _=vt[d];return _||(_=new Intl.DateTimeFormat(v,m),vt[d]=_),_}let Oe={},je={},ct=null,xn={};function nn(v,m,d,_){const D=v.listingMode();return"error"===D?null:"en"===D?d(m):_(m)}class nt{constructor(m,d,_){this.padTo=_.padTo||0,this.floor=_.floor||!1;const{padTo:D,floor:W,...te}=_;if(!d||Object.keys(te).length>0){const be={useGrouping:!1,..._};_.padTo>0&&(be.minimumIntegerDigits=_.padTo),this.inf=function Ge(v,m={}){const d=JSON.stringify([v,m]);let _=Oe[d];return _||(_=new Intl.NumberFormat(v,m),Oe[d]=_),_}(m,be)}}format(m){if(this.inf){const d=this.floor?Math.floor(m):m;return this.inf.format(d)}return mo(this.floor?Math.floor(m):Ds(m,3),this.padTo)}}class Rt{constructor(m,d,_){let D;if(this.opts=_,this.originalZone=void 0,this.opts.timeZone)this.dt=m;else if("fixed"===m.zone.type){const te=m.offset/60*-1,be=te>=0?`Etc/GMT+${te}`:`Etc/GMT${te}`;0!==m.offset&&Hr.create(be).valid?(D=be,this.dt=m):(D="UTC",this.dt=0===m.offset?m:m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone)}else"system"===m.zone.type?this.dt=m:"iana"===m.zone.type?(this.dt=m,D=m.zone.name):(D="UTC",this.dt=m.setZone("UTC").plus({minutes:m.offset}),this.originalZone=m.zone);const W={...this.opts};W.timeZone=W.timeZone||D,this.dtf=Vt(d,W)}format(){return this.originalZone?this.formatToParts().map(({value:m})=>m).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const m=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?m.map(d=>{if("timeZoneName"===d.type){const _=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...d,value:_}}return d}):m}resolvedOptions(){return this.dtf.resolvedOptions()}}class ln{constructor(m,d,_){this.opts={style:"long",..._},!d&&Li()&&(this.rtf=function Dt(v,m={}){const{base:d,..._}=m,D=JSON.stringify([v,_]);let W=je[D];return W||(W=new Intl.RelativeTimeFormat(v,m),je[D]=W),W}(m,_))}format(m,d){return this.rtf?this.rtf.format(m,d):function J(v,m,d="always",_=!1){const D={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."]},W=-1===["hours","minutes","seconds"].indexOf(v);if("auto"===d&&W){const yn="days"===v;switch(m){case 1:return yn?"tomorrow":`next ${D[v][0]}`;case-1:return yn?"yesterday":`last ${D[v][0]}`;case 0:return yn?"today":`this ${D[v][0]}`}}const te=Object.is(m,-0)||m<0,be=Math.abs(m),Xe=1===be,yt=D[v],dn=_?Xe?yt[1]:yt[2]||yt[1]:Xe?D[v][0]:v;return te?`${be} ${dn} ago`:`in ${be} ${dn}`}(d,m,this.opts.numeric,"long"!==this.opts.style)}formatToParts(m,d){return this.rtf?this.rtf.formatToParts(m,d):[]}}const vn={firstDay:1,minimalDays:4,weekend:[6,7]};class fr{static fromOpts(m){return fr.create(m.locale,m.numberingSystem,m.outputCalendar,m.weekSettings,m.defaultToEN)}static create(m,d,_,D,W=!1){const te=m||Re.defaultLocale,be=te||(W?"en-US":function Bt(){return ct||(ct=(new Intl.DateTimeFormat).resolvedOptions().locale,ct)}()),Xe=d||Re.defaultNumberingSystem,yt=_||Re.defaultOutputCalendar,dn=No(D)||Re.defaultWeekSettings;return new fr(be,Xe,yt,dn,te)}static resetCache(){ct=null,vt={},Oe={},je={}}static fromObject({locale:m,numberingSystem:d,outputCalendar:_,weekSettings:D}={}){return fr.create(m,d,_,D)}constructor(m,d,_,D,W){const[te,be,Xe]=function xr(v){const m=v.indexOf("-x-");-1!==m&&(v=v.substring(0,m));const d=v.indexOf("-u-");if(-1===d)return[v];{let _,D;try{_=Vt(v).resolvedOptions(),D=v}catch{const Xe=v.substring(0,d);_=Vt(Xe).resolvedOptions(),D=Xe}const{numberingSystem:W,calendar:te}=_;return[D,W,te]}}(m);this.locale=te,this.numberingSystem=d||be||null,this.outputCalendar=_||Xe||null,this.weekSettings=D,this.intl=function si(v,m,d){return(d||m)&&(v.includes("-u-")||(v+="-u"),d&&(v+=`-ca-${d}`),m&&(v+=`-nu-${m}`)),v}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=W,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function Mt(v){return(!v.numberingSystem||"latn"===v.numberingSystem)&&("latn"===v.numberingSystem||!v.locale||v.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(v.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(m){return m&&0!==Object.getOwnPropertyNames(m).length?fr.create(m.locale||this.specifiedLocale,m.numberingSystem||this.numberingSystem,m.outputCalendar||this.outputCalendar,No(m.weekSettings)||this.weekSettings,m.defaultToEN||!1):this}redefaultToEN(m={}){return this.clone({...m,defaultToEN:!0})}redefaultToSystem(m={}){return this.clone({...m,defaultToEN:!1})}months(m,d=!1){return nn(this,m,Ts,()=>{const _=d?{month:m,day:"numeric"}:{month:m},D=d?"format":"standalone";return this.monthsCache[D][m]||(this.monthsCache[D][m]=function hi(v){const m=[];for(let d=1;d<=12;d++){const _=Fr.utc(2009,d,1);m.push(v(_))}return m}(W=>this.extract(W,_,"month"))),this.monthsCache[D][m]})}weekdays(m,d=!1){return nn(this,m,lo,()=>{const _=d?{weekday:m,year:"numeric",month:"long",day:"numeric"}:{weekday:m},D=d?"format":"standalone";return this.weekdaysCache[D][m]||(this.weekdaysCache[D][m]=function Zi(v){const m=[];for(let d=1;d<=7;d++){const _=Fr.utc(2016,11,13+d);m.push(v(_))}return m}(W=>this.extract(W,_,"weekday"))),this.weekdaysCache[D][m]})}meridiems(){return nn(this,void 0,()=>ps,()=>{if(!this.meridiemCache){const m={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Fr.utc(2016,11,13,9),Fr.utc(2016,11,13,19)].map(d=>this.extract(d,m,"dayperiod"))}return this.meridiemCache})}eras(m){return nn(this,m,ca,()=>{const d={era:m};return this.eraCache[m]||(this.eraCache[m]=[Fr.utc(-40,1,1),Fr.utc(2017,1,1)].map(_=>this.extract(_,d,"era"))),this.eraCache[m]})}extract(m,d,_){const te=this.dtFormatter(m,d).formatToParts().find(be=>be.type.toLowerCase()===_);return te?te.value:null}numberFormatter(m={}){return new nt(this.intl,m.forceSimple||this.fastNumbers,m)}dtFormatter(m,d={}){return new Rt(m,this.intl,d)}relFormatter(m={}){return new ln(this.intl,this.isEnglish(),m)}listFormatter(m={}){return function Vr(v,m={}){const d=JSON.stringify([v,m]);let _=Mr[d];return _||(_=new Intl.ListFormat(v,m),Mr[d]=_),_}(this.intl,m)}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:bi()?function er(v){let m=xn[v];if(!m){const d=new Intl.Locale(v);m="getWeekInfo"in d?d.getWeekInfo():d.weekInfo,xn[v]=m}return m}(this.locale):vn}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(m){return this.locale===m.locale&&this.numberingSystem===m.numberingSystem&&this.outputCalendar===m.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let Co=null;class Ni extends ft{static get utcInstance(){return null===Co&&(Co=new Ni(0)),Co}static instance(m){return 0===m?Ni.utcInstance:new Ni(m)}static parseSpecifier(m){if(m){const d=m.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(d)return new Ni(As(d[1],d[2]))}return null}constructor(m){super(),this.fixed=m}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${aa(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${aa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(m,d){return aa(this.fixed,d)}get isUniversal(){return!0}offset(){return this.fixed}equals(m){return"fixed"===m.type&&m.fixed===this.fixed}get isValid(){return!0}}class ds extends ft{constructor(m){super(),this.zoneName=m}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 $o(v,m){if(Pr(v)||null===v)return m;if(v instanceof ft)return v;if(function zs(v){return"string"==typeof v}(v)){const _=v.toLowerCase();return"default"===_?m:"local"===_||"system"===_?Tt.instance:"utc"===_||"gmt"===_?Ni.utcInstance:Ni.parseSpecifier(_)||Hr.create(v)}return Do(v)?Ni.instance(v):"object"==typeof v&&"offset"in v&&"function"==typeof v.offset?v:new ds(v)}const ai={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"},qo={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]},fo=ai.hanidec.replace(/[\[|\]]/g,"").split("");let Fo={};function ao({numberingSystem:v},m=""){const d=v||"latn";return Fo[d]||(Fo[d]={}),Fo[d][m]||(Fo[d][m]=new RegExp(`${ai[d]}${m}`)),Fo[d][m]}let me,po=()=>Date.now(),Ii="system",Io=null,et=null,xt=null,dt=60,Ye=null;class Re{static get now(){return po}static set now(m){po=m}static set defaultZone(m){Ii=m}static get defaultZone(){return $o(Ii,Tt.instance)}static get defaultLocale(){return Io}static set defaultLocale(m){Io=m}static get defaultNumberingSystem(){return et}static set defaultNumberingSystem(m){et=m}static get defaultOutputCalendar(){return xt}static set defaultOutputCalendar(m){xt=m}static get defaultWeekSettings(){return Ye}static set defaultWeekSettings(m){Ye=No(m)}static get twoDigitCutoffYear(){return dt}static set twoDigitCutoffYear(m){dt=m%100}static get throwOnInvalid(){return me}static set throwOnInvalid(m){me=m}static resetCaches(){fr.resetCache(),Hr.resetCache(),Fr.resetCache(),function ia(){Fo={}}()}}class gt{constructor(m,d){this.reason=m,this.explanation=d}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const jt=[0,31,59,90,120,151,181,212,243,273,304,334],kt=[0,31,60,91,121,152,182,213,244,274,305,335];function pn(v,m){return new gt("unit out of range",`you specified ${m} (of type ${typeof m}) as a ${v}, which is invalid`)}function Sn(v,m,d){const _=new Date(Date.UTC(v,m-1,d));v<100&&v>=0&&_.setUTCFullYear(_.getUTCFullYear()-1900);const D=_.getUTCDay();return 0===D?7:D}function An(v,m,d){return d+(go(v)?kt:jt)[m-1]}function Fn(v,m){const d=go(v)?kt:jt,_=d.findIndex(W=>W_o(_,m,d)?(yt=_+1,Xe=1):yt=_,{weekYear:yt,weekNumber:Xe,weekday:be,...ls(v)}}function cr(v,m=4,d=1){const{weekYear:_,weekNumber:D,weekday:W}=v,te=zn(Sn(_,1,m),d),be=io(_);let yt,Xe=7*D+W-te-7+m;Xe<1?(yt=_-1,Xe+=io(yt)):Xe>be?(yt=_+1,Xe-=io(_)):yt=_;const{month:dn,day:yn}=Fn(yt,Xe);return{year:yt,month:dn,day:yn,...ls(v)}}function Er(v){const{year:m,month:d,day:_}=v;return{year:m,ordinal:An(m,d,_),...ls(v)}}function Cr(v){const{year:m,ordinal:d}=v,{month:_,day:D}=Fn(m,d);return{year:m,month:_,day:D,...ls(v)}}function gi(v,m){if(Pr(v.localWeekday)&&Pr(v.localWeekNumber)&&Pr(v.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!Pr(v.weekday)||!Pr(v.weekNumber)||!Pr(v.weekYear))throw new Ue("Cannot mix locale-based week fields with ISO-based week fields");return Pr(v.localWeekday)||(v.weekday=v.localWeekday),Pr(v.localWeekNumber)||(v.weekNumber=v.localWeekNumber),Pr(v.localWeekYear)||(v.weekYear=v.localWeekYear),delete v.localWeekday,delete v.localWeekNumber,delete v.localWeekYear,{minDaysInFirstWeek:m.getMinDaysInFirstWeek(),startOfWeek:m.getStartOfWeek()}}function Rr(v){const m=es(v.year),d=hs(v.month,1,12),_=hs(v.day,1,fs(v.year,v.month));return m?d?!_&&pn("day",v.day):pn("month",v.month):pn("year",v.year)}function Qr(v){const{hour:m,minute:d,second:_,millisecond:D}=v,W=hs(m,0,23)||24===m&&0===d&&0===_&&0===D,te=hs(d,0,59),be=hs(_,0,59),Xe=hs(D,0,999);return W?te?be?!Xe&&pn("millisecond",D):pn("second",_):pn("minute",d):pn("hour",m)}function Pr(v){return typeof v>"u"}function Do(v){return"number"==typeof v}function es(v){return"number"==typeof v&&v%1==0}function Li(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function bi(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Ks(v,m,d){if(0!==v.length)return v.reduce((_,D)=>{const W=[m(D),D];return _&&d(_[0],W[0])===_[0]?_:W},null)[1]}function Cs(v,m){return Object.prototype.hasOwnProperty.call(v,m)}function No(v){if(null==v)return null;if("object"!=typeof v)throw new Ke("Week settings must be an object");if(!hs(v.firstDay,1,7)||!hs(v.minimalDays,1,7)||!Array.isArray(v.weekend)||v.weekend.some(m=>!hs(m,1,7)))throw new Ke("Invalid week settings");return{firstDay:v.firstDay,minimalDays:v.minimalDays,weekend:Array.from(v.weekend)}}function hs(v,m,d){return es(v)&&v>=m&&v<=d}function mo(v,m=2){let _;return _=v<0?"-"+(""+-v).padStart(m,"0"):(""+v).padStart(m,"0"),_}function Go(v){if(!Pr(v)&&null!==v&&""!==v)return parseInt(v,10)}function Rs(v){if(!Pr(v)&&null!==v&&""!==v)return parseFloat(v)}function Xr(v){if(!Pr(v)&&null!==v&&""!==v){const m=1e3*parseFloat("0."+v);return Math.floor(m)}}function Ds(v,m,d=!1){const _=10**m;return(d?Math.trunc:Math.round)(v*_)/_}function go(v){return v%4==0&&(v%100!=0||v%400==0)}function io(v){return go(v)?366:365}function fs(v,m){const d=function Ko(v,m){return v-m*Math.floor(v/m)}(m-1,12)+1;return 2===d?go(v+(m-d)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][d-1]}function Xo(v){let m=Date.UTC(v.year,v.month-1,v.day,v.hour,v.minute,v.second,v.millisecond);return v.year<100&&v.year>=0&&(m=new Date(m),m.setUTCFullYear(v.year,v.month-1,v.day)),+m}function Ya(v,m,d){return-zn(Sn(v,1,m),d)+m-1}function _o(v,m=4,d=1){const _=Ya(v,m,d),D=Ya(v+1,m,d);return(io(v)-_+D)/7}function Ao(v){return v>99?v:v>Re.twoDigitCutoffYear?1900+v:2e3+v}function ur(v,m,d,_=null){const D=new Date(v),W={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};_&&(W.timeZone=_);const te={timeZoneName:m,...W},be=new Intl.DateTimeFormat(d,te).formatToParts(D).find(Xe=>"timezonename"===Xe.type.toLowerCase());return be?be.value:null}function As(v,m){let d=parseInt(v,10);Number.isNaN(d)&&(d=0);const _=parseInt(m,10)||0;return 60*d+(d<0||Object.is(d,-0)?-_:_)}function Gs(v){const m=Number(v);if("boolean"==typeof v||""===v||Number.isNaN(m))throw new Ke(`Invalid unit value ${v}`);return m}function _s(v,m){const d={};for(const _ in v)if(Cs(v,_)){const D=v[_];if(null==D)continue;d[m(_)]=Gs(D)}return d}function aa(v,m){const d=Math.trunc(Math.abs(v/60)),_=Math.trunc(Math.abs(v%60)),D=v>=0?"+":"-";switch(m){case"short":return`${D}${mo(d,2)}:${mo(_,2)}`;case"narrow":return`${D}${d}${_>0?`:${_}`:""}`;case"techie":return`${D}${mo(d,2)}${mo(_,2)}`;default:throw new RangeError(`Value format ${m} is out of range for property format`)}}function ls(v){return function Oo(v,m){return m.reduce((d,_)=>(d[_]=v[_],d),{})}(v,["hour","minute","second","millisecond"])}const al=["January","February","March","April","May","June","July","August","September","October","November","December"],la=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ss=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ts(v){switch(v){case"narrow":return[...Ss];case"short":return[...la];case"long":return[...al];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 Ns=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],So=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bo=["M","T","W","T","F","S","S"];function lo(v){switch(v){case"narrow":return[...Bo];case"short":return[...So];case"long":return[...Ns];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const ps=["AM","PM"],Da=["Before Christ","Anno Domini"],Ms=["BC","AD"],Us=["B","A"];function ca(v){switch(v){case"narrow":return[...Us];case"short":return[...Ms];case"long":return[...Da];default:return null}}function Ct(v,m){let d="";for(const _ of v)d+=_.literal?_.val:m(_.val);return d}const jn={D:Me,DD:ht,DDD:Tn,DDDD:Wt,t:Zt,tt:rt,ttt:Ht,tttt:en,T:Nn,TT:mn,TTT:Mn,TTTT:tt,f:Kt,ff:Te,fff:z,ffff:V,F:At,FF:ye,FFF:L,FFFF:Ne};class Pn{static create(m,d={}){return new Pn(m,d)}static parseFormat(m){let d=null,_="",D=!1;const W=[];for(let te=0;te0&&W.push({literal:D||/^\s+$/.test(_),val:_}),d=null,_="",D=!D):D||be===d?_+=be:(_.length>0&&W.push({literal:/^\s+$/.test(_),val:_}),_=be,d=be)}return _.length>0&&W.push({literal:D||/^\s+$/.test(_),val:_}),W}static macroTokenToFormatOpts(m){return jn[m]}constructor(m,d){this.opts=d,this.loc=m,this.systemLoc=null}formatWithSystemDefault(m,d){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(m,{...this.opts,...d}).format()}dtFormatter(m,d={}){return this.loc.dtFormatter(m,{...this.opts,...d})}formatDateTime(m,d){return this.dtFormatter(m,d).format()}formatDateTimeParts(m,d){return this.dtFormatter(m,d).formatToParts()}formatInterval(m,d){return this.dtFormatter(m.start,d).dtf.formatRange(m.start.toJSDate(),m.end.toJSDate())}resolvedOptions(m,d){return this.dtFormatter(m,d).resolvedOptions()}num(m,d=0){if(this.opts.forceSimple)return mo(m,d);const _={...this.opts};return d>0&&(_.padTo=d),this.loc.numberFormatter(_).format(m)}formatDateTimeFromString(m,d){const _="en"===this.loc.listingMode(),D=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,W=(nr,mr)=>this.loc.extract(m,nr,mr),te=nr=>m.isOffsetFixed&&0===m.offset&&nr.allowZ?"Z":m.isValid?m.zone.formatOffset(m.ts,nr.format):"",Xe=(nr,mr)=>_?function q(v,m){return Ts(m)[v.month-1]}(m,nr):W(mr?{month:nr}:{month:nr,day:"numeric"},"month"),yt=(nr,mr)=>_?function Aa(v,m){return lo(m)[v.weekday-1]}(m,nr):W(mr?{weekday:nr}:{weekday:nr,month:"long",day:"numeric"},"weekday"),dn=nr=>{const mr=Pn.macroTokenToFormatOpts(nr);return mr?this.formatWithSystemDefault(m,mr):nr},yn=nr=>_?function qe(v,m){return ca(m)[v.year<0?0:1]}(m,nr):W({era:nr},"era");return Ct(Pn.parseFormat(d),nr=>{switch(nr){case"S":return this.num(m.millisecond);case"u":case"SSS":return this.num(m.millisecond,3);case"s":return this.num(m.second);case"ss":return this.num(m.second,2);case"uu":return this.num(Math.floor(m.millisecond/10),2);case"uuu":return this.num(Math.floor(m.millisecond/100));case"m":return this.num(m.minute);case"mm":return this.num(m.minute,2);case"h":return this.num(m.hour%12==0?12:m.hour%12);case"hh":return this.num(m.hour%12==0?12:m.hour%12,2);case"H":return this.num(m.hour);case"HH":return this.num(m.hour,2);case"Z":return te({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return te({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return te({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return m.zone.offsetName(m.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return m.zone.offsetName(m.ts,{format:"long",locale:this.loc.locale});case"z":return m.zoneName;case"a":return _?function Qa(v){return ps[v.hour<12?0:1]}(m):W({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return D?W({day:"numeric"},"day"):this.num(m.day);case"dd":return D?W({day:"2-digit"},"day"):this.num(m.day,2);case"c":case"E":return this.num(m.weekday);case"ccc":return yt("short",!0);case"cccc":return yt("long",!0);case"ccccc":return yt("narrow",!0);case"EEE":return yt("short",!1);case"EEEE":return yt("long",!1);case"EEEEE":return yt("narrow",!1);case"L":return D?W({month:"numeric",day:"numeric"},"month"):this.num(m.month);case"LL":return D?W({month:"2-digit",day:"numeric"},"month"):this.num(m.month,2);case"LLL":return Xe("short",!0);case"LLLL":return Xe("long",!0);case"LLLLL":return Xe("narrow",!0);case"M":return D?W({month:"numeric"},"month"):this.num(m.month);case"MM":return D?W({month:"2-digit"},"month"):this.num(m.month,2);case"MMM":return Xe("short",!1);case"MMMM":return Xe("long",!1);case"MMMMM":return Xe("narrow",!1);case"y":return D?W({year:"numeric"},"year"):this.num(m.year);case"yy":return D?W({year:"2-digit"},"year"):this.num(m.year.toString().slice(-2),2);case"yyyy":return D?W({year:"numeric"},"year"):this.num(m.year,4);case"yyyyyy":return D?W({year:"numeric"},"year"):this.num(m.year,6);case"G":return yn("short");case"GG":return yn("long");case"GGGGG":return yn("narrow");case"kk":return this.num(m.weekYear.toString().slice(-2),2);case"kkkk":return this.num(m.weekYear,4);case"W":return this.num(m.weekNumber);case"WW":return this.num(m.weekNumber,2);case"n":return this.num(m.localWeekNumber);case"nn":return this.num(m.localWeekNumber,2);case"ii":return this.num(m.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(m.localWeekYear,4);case"o":return this.num(m.ordinal);case"ooo":return this.num(m.ordinal,3);case"q":return this.num(m.quarter);case"qq":return this.num(m.quarter,2);case"X":return this.num(Math.floor(m.ts/1e3));case"x":return this.num(m.ts);default:return dn(nr)}})}formatDurationFromString(m,d){const _=Xe=>{switch(Xe[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}},W=Pn.parseFormat(d),te=W.reduce((Xe,{literal:yt,val:dn})=>yt?Xe:Xe.concat(dn),[]);return Ct(W,(Xe=>yt=>{const dn=_(yt);return dn?this.num(Xe.get(dn),yt.length):yt})(m.shiftTo(...te.map(_).filter(Xe=>Xe))))}}const Gn=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function qn(...v){const m=v.reduce((d,_)=>d+_.source,"");return RegExp(`^${m}$`)}function qr(...v){return m=>v.reduce(([d,_,D],W)=>{const[te,be,Xe]=W(m,D);return[{...d,...te},be||_,Xe]},[{},null,1]).slice(0,2)}function zi(v,...m){if(null==v)return[null,null];for(const[d,_]of m){const D=d.exec(v);if(D)return _(D)}return[null,null]}function kr(...v){return(m,d)=>{const _={};let D;for(D=0;Dvoid 0!==nr&&(mr||nr&&dn)?-nr:nr;return[{years:_r(Rs(d)),months:_r(Rs(_)),weeks:_r(Rs(D)),days:_r(Rs(W)),hours:_r(Rs(te)),minutes:_r(Rs(be)),seconds:_r(Rs(Xe),"-0"===Xe),milliseconds:_r(Xr(yt),yn)}]}const fc={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ll(v,m,d,_,D,W,te){const be={year:2===m.length?Ao(Go(m)):Go(m),month:la.indexOf(d)+1,day:Go(_),hour:Go(D),minute:Go(W)};return te&&(be.second=Go(te)),v&&(be.weekday=v.length>3?Ns.indexOf(v)+1:So.indexOf(v)+1),be}const _i=/^(?:(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 cs(v){const[,m,d,_,D,W,te,be,Xe,yt,dn,yn]=v,_r=ll(m,D,_,d,W,te,be);let nr;return nr=Xe?fc[Xe]:yt?0:As(dn,yn),[_r,new Ni(nr)]}const ja=/^(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$/,bl=/^(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$/,Lu=/^(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 wl(v){const[,m,d,_,D,W,te,be]=v;return[ll(m,D,_,d,W,te,be),Ni.utcInstance]}function cl(v){const[,m,d,_,D,W,te,be]=v;return[ll(m,be,d,_,D,W,te),Ni.utcInstance]}const yi=qn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ro),Il=qn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ro),eu=qn(/(\d{4})-?(\d{3})/,Ro),tu=qn(Fi),ul=qr(function $t(v,m){return[{year:Fe(v,m),month:Fe(v,m+1,1),day:Fe(v,m+2,1)},null,m+3]},wr,Jr,ts),$s=qr(Ua,wr,Jr,ts),Ol=qr(ua,wr,Jr,ts),Sa=qr(wr,Jr,ts),ru=qr(wr),El=qn(/(\d{4})-(\d\d)-(\d\d)/,Q),jl=qn(ue),dl=qr(wr,Jr,ts),Hl="Invalid Duration",da={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}},iu={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},...da},Vo=365.2425,Wo=30.436875,oo={years:{quarters:4,months:12,weeks:Vo/7,days:Vo,hours:24*Vo,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:Vo/28,days:Vo/4,hours:24*Vo/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:Wo/7,days:Wo,hours:24*Wo,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...da},$n=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Tr=$n.slice(0).reverse();function Oi(v,m,d=!1){const _={values:d?m.values:{...v.values,...m.values||{}},loc:v.loc.clone(m.loc),conversionAccuracy:m.conversionAccuracy||v.conversionAccuracy,matrix:m.matrix||v.matrix};return new Bi(_)}function ys(v,m){let d=m.milliseconds??0;for(const _ of Tr.slice(1))m[_]&&(d+=m[_]*v[_].milliseconds);return d}function Qi(v,m){const d=ys(v,m)<0?-1:1;$n.reduceRight((_,D)=>{if(Pr(m[D]))return _;if(_){const te=v[D][_],be=Math.floor(m[_]*d/te);m[D]+=be*d,m[_]-=be*te*d}return D},null),$n.reduce((_,D)=>{if(Pr(m[D]))return _;if(_){const W=m[_]%1;m[_]-=W,m[D]+=W*v[_][D]}return D},null)}class Bi{constructor(m){const d="longterm"===m.conversionAccuracy||!1;let _=d?oo:iu;m.matrix&&(_=m.matrix),this.values=m.values,this.loc=m.loc||fr.create(),this.conversionAccuracy=d?"longterm":"casual",this.invalid=m.invalid||null,this.matrix=_,this.isLuxonDuration=!0}static fromMillis(m,d){return Bi.fromObject({milliseconds:m},d)}static fromObject(m,d={}){if(null==m||"object"!=typeof m)throw new Ke("Duration.fromObject: argument expected to be an object, got "+(null===m?"null":typeof m));return new Bi({values:_s(m,Bi.normalizeUnit),loc:fr.fromObject(d),conversionAccuracy:d.conversionAccuracy,matrix:d.matrix})}static fromDurationLike(m){if(Do(m))return Bi.fromMillis(m);if(Bi.isDuration(m))return m;if("object"==typeof m)return Bi.fromObject(m);throw new Ke(`Unknown duration argument ${m} of type ${typeof m}`)}static fromISO(m,d){const[_]=function ns(v){return zi(v,[yl,$a])}(m);return _?Bi.fromObject(_,d):Bi.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static fromISOTime(m,d){const[_]=function Mc(v){return zi(v,[kl,ru])}(m);return _?Bi.fromObject(_,d):Bi.invalid("unparsable",`the input "${m}" can't be parsed as ISO 8601`)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Duration is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new ze(_);return new Bi({invalid:_})}static normalizeUnit(m){const d={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"}[m&&m.toLowerCase()];if(!d)throw new Ft(m);return d}static isDuration(m){return m&&m.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(m,d={}){const _={...d,floor:!1!==d.round&&!1!==d.floor};return this.isValid?Pn.create(this.loc,_).formatDurationFromString(this,m):Hl}toHuman(m={}){if(!this.isValid)return Hl;const d=$n.map(_=>{const D=this.values[_];return Pr(D)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...m,unit:_.slice(0,-1)}).format(D)}).filter(_=>_);return this.loc.listFormatter({type:"conjunction",style:m.listStyle||"narrow",...m}).format(d)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let m="P";return 0!==this.years&&(m+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(m+=this.months+3*this.quarters+"M"),0!==this.weeks&&(m+=this.weeks+"W"),0!==this.days&&(m+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(m+="T"),0!==this.hours&&(m+=this.hours+"H"),0!==this.minutes&&(m+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(m+=Ds(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===m&&(m+="T0S"),m}toISOTime(m={}){if(!this.isValid)return null;const d=this.toMillis();return d<0||d>=864e5?null:(m={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...m,includeOffset:!1},Fr.fromMillis(d,{zone:"UTC"}).toISOTime(m))}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?ys(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(m){if(!this.isValid)return this;const d=Bi.fromDurationLike(m),_={};for(const D of $n)(Cs(d.values,D)||Cs(this.values,D))&&(_[D]=d.get(D)+this.get(D));return Oi(this,{values:_},!0)}minus(m){if(!this.isValid)return this;const d=Bi.fromDurationLike(m);return this.plus(d.negate())}mapUnits(m){if(!this.isValid)return this;const d={};for(const _ of Object.keys(this.values))d[_]=Gs(m(this.values[_],_));return Oi(this,{values:d},!0)}get(m){return this[Bi.normalizeUnit(m)]}set(m){return this.isValid?Oi(this,{values:{...this.values,..._s(m,Bi.normalizeUnit)}}):this}reconfigure({locale:m,numberingSystem:d,conversionAccuracy:_,matrix:D}={}){return Oi(this,{loc:this.loc.clone({locale:m,numberingSystem:d}),matrix:D,conversionAccuracy:_})}as(m){return this.isValid?this.shiftTo(m).get(m):NaN}normalize(){if(!this.isValid)return this;const m=this.toObject();return Qi(this.matrix,m),Oi(this,{values:m},!0)}rescale(){return this.isValid?Oi(this,{values:function so(v){const m={};for(const[d,_]of Object.entries(v))0!==_&&(m[d]=_);return m}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...m){if(!this.isValid)return this;if(0===m.length)return this;m=m.map(te=>Bi.normalizeUnit(te));const d={},_={},D=this.toObject();let W;for(const te of $n)if(m.indexOf(te)>=0){W=te;let be=0;for(const yt in _)be+=this.matrix[yt][te]*_[yt],_[yt]=0;Do(D[te])&&(be+=D[te]);const Xe=Math.trunc(be);d[te]=Xe,_[te]=(1e3*be-1e3*Xe)/1e3}else Do(D[te])&&(_[te]=D[te]);for(const te in _)0!==_[te]&&(d[W]+=te===W?_[te]:_[te]/this.matrix[W][te]);return Qi(this.matrix,d),Oi(this,{values:d},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const m={};for(const d of Object.keys(this.values))m[d]=0===this.values[d]?0:-this.values[d];return Oi(this,{values:m},!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(m){if(!this.isValid||!m.isValid||!this.loc.equals(m.loc))return!1;function d(_,D){return void 0===_||0===_?void 0===D||0===D:_===D}for(const _ of $n)if(!d(this.values[_],m.values[_]))return!1;return!0}}const Ki="Invalid Interval";class co{constructor(m){this.s=m.start,this.e=m.end,this.invalid=m.invalid||null,this.isLuxonInterval=!0}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the Interval is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new _t(_);return new co({invalid:_})}static fromDateTimes(m,d){const _=Gl(m),D=Gl(d),W=function no(v,m){return v&&v.isValid?m&&m.isValid?mm}isBefore(m){return!!this.isValid&&this.e<=m}contains(m){return!!this.isValid&&this.s<=m&&this.e>m}set({start:m,end:d}={}){return this.isValid?co.fromDateTimes(m||this.s,d||this.e):this}splitAt(...m){if(!this.isValid)return[];const d=m.map(Gl).filter(te=>this.contains(te)).sort((te,be)=>te.toMillis()-be.toMillis()),_=[];let{s:D}=this,W=0;for(;D+this.e?this.e:te;_.push(co.fromDateTimes(D,be)),D=be,W+=1}return _}splitBy(m){const d=Bi.fromDurationLike(m);if(!this.isValid||!d.isValid||0===d.as("milliseconds"))return[];let W,{s:_}=this,D=1;const te=[];for(;_Xe*D));W=+be>+this.e?this.e:be,te.push(co.fromDateTimes(_,W)),_=W,D+=1}return te}divideEqually(m){return this.isValid?this.splitBy(this.length()/m).slice(0,m):[]}overlaps(m){return this.e>m.s&&this.s=m.e}equals(m){return!(!this.isValid||!m.isValid)&&this.s.equals(m.s)&&this.e.equals(m.e)}intersection(m){if(!this.isValid)return this;const d=this.s>m.s?this.s:m.s,_=this.e=_?null:co.fromDateTimes(d,_)}union(m){return this.isValid?co.fromDateTimes(this.sm.e?this.e:m.e):this}static merge(m){const[d,_]=m.sort((D,W)=>D.s-W.s).reduce(([D,W],te)=>W?W.overlaps(te)||W.abutsStart(te)?[D,W.union(te)]:[D.concat([W]),te]:[D,te],[[],null]);return _&&d.push(_),d}static xor(m){let d=null,_=0;const D=[],W=m.map(Xe=>[{time:Xe.s,type:"s"},{time:Xe.e,type:"e"}]),be=Array.prototype.concat(...W).sort((Xe,yt)=>Xe.time-yt.time);for(const Xe of be)_+="s"===Xe.type?1:-1,1===_?d=Xe.time:(d&&+d!=+Xe.time&&D.push(co.fromDateTimes(d,Xe.time)),d=null);return co.merge(D)}difference(...m){return co.xor([this].concat(m)).map(d=>this.intersection(d)).filter(d=>d&&!d.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Ki}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(m=Me,d={}){return this.isValid?Pn.create(this.s.loc.clone(d),m).formatInterval(this):Ki}toISO(m){return this.isValid?`${this.s.toISO(m)}/${this.e.toISO(m)}`:Ki}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ki}toISOTime(m){return this.isValid?`${this.s.toISOTime(m)}/${this.e.toISOTime(m)}`:Ki}toFormat(m,{separator:d=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(m)}${d}${this.e.toFormat(m)}`:Ki}toDuration(m,d){return this.isValid?this.e.diff(this.s,m,d):Bi.invalid(this.invalidReason)}mapEndpoints(m){return co.fromDateTimes(m(this.s),m(this.e))}}class ri{static hasDST(m=Re.defaultZone){const d=Fr.now().setZone(m).set({month:12});return!m.isUniversal&&d.offset!==d.set({month:6}).offset}static isValidIANAZone(m){return Hr.isValidZone(m)}static normalizeZone(m){return $o(m,Re.defaultZone)}static getStartOfWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:m=null,locObj:d=null}={}){return(d||fr.create(m)).getWeekendDays().slice()}static months(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,_,W)).months(m)}static monthsFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null,outputCalendar:W="gregory"}={}){return(D||fr.create(d,_,W)).months(m,!0)}static weekdays(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||fr.create(d,_,null)).weekdays(m)}static weekdaysFormat(m="long",{locale:d=null,numberingSystem:_=null,locObj:D=null}={}){return(D||fr.create(d,_,null)).weekdays(m,!0)}static meridiems({locale:m=null}={}){return fr.create(m).meridiems()}static eras(m="short",{locale:d=null}={}){return fr.create(d,null,"gregory").eras(m)}static features(){return{relative:Li(),localeWeek:bi()}}}function Xs(v,m){const d=D=>D.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),_=d(m)-d(v);return Math.floor(Bi.fromMillis(_).as("days"))}function Ci(v,m=d=>d){return{regex:v,deser:([d])=>m(function Jo(v){let m=parseInt(v,10);if(isNaN(m)){m="";for(let d=0;d=W&&_<=te&&(m+=_-W)}}return parseInt(m,10)}return m}(d))}}const uo="[ \xa0]",Ui=new RegExp(uo,"g");function U(v){return v.replace(/\./g,"\\.?").replace(Ui,uo)}function Ie(v){return v.replace(/\./g,"").replace(Ui," ").toLowerCase()}function ne(v,m){return null===v?null:{regex:RegExp(v.map(U).join("|")),deser:([d])=>v.findIndex(_=>Ie(d)===Ie(_))+m}}function ve(v,m){return{regex:v,deser:([,d,_])=>As(d,_),groups:m}}function Et(v){return{regex:v,deser:([m])=>m}}function Gt(v){return v.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const rr={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 li=null;function bs(v,m){return Array.prototype.concat(...v.map(d=>function wi(v,m){if(v.literal)return v;const _=Va(Pn.macroTokenToFormatOpts(v.val),m);return null==_||_.includes(void 0)?v:_}(d,m)))}class Lo{constructor(m,d){if(this.locale=m,this.format=d,this.tokens=bs(Pn.parseFormat(d),m),this.units=this.tokens.map(_=>function Vn(v,m){const d=ao(m),_=ao(m,"{2}"),D=ao(m,"{3}"),W=ao(m,"{4}"),te=ao(m,"{6}"),be=ao(m,"{1,2}"),Xe=ao(m,"{1,3}"),yt=ao(m,"{1,6}"),dn=ao(m,"{1,9}"),yn=ao(m,"{2,4}"),_r=ao(m,"{4,6}"),nr=Ai=>({regex:RegExp(Gt(Ai.val)),deser:([ko])=>ko,literal:!0}),ti=(Ai=>{if(v.literal)return nr(Ai);switch(Ai.val){case"G":return ne(m.eras("short"),0);case"GG":return ne(m.eras("long"),0);case"y":return Ci(yt);case"yy":case"kk":return Ci(yn,Ao);case"yyyy":case"kkkk":return Ci(W);case"yyyyy":return Ci(_r);case"yyyyyy":return Ci(te);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Ci(be);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Ci(_);case"MMM":return ne(m.months("short",!0),1);case"MMMM":return ne(m.months("long",!0),1);case"LLL":return ne(m.months("short",!1),1);case"LLLL":return ne(m.months("long",!1),1);case"o":case"S":return Ci(Xe);case"ooo":case"SSS":return Ci(D);case"u":return Et(dn);case"uu":return Et(be);case"uuu":case"E":case"c":return Ci(d);case"a":return ne(m.meridiems(),0);case"EEE":return ne(m.weekdays("short",!1),1);case"EEEE":return ne(m.weekdays("long",!1),1);case"ccc":return ne(m.weekdays("short",!0),1);case"cccc":return ne(m.weekdays("long",!0),1);case"Z":case"ZZ":return ve(new RegExp(`([+-]${be.source})(?::(${_.source}))?`),2);case"ZZZ":return ve(new RegExp(`([+-]${be.source})(${_.source})?`),2);case"z":return Et(/[a-z_+-/]{1,256}?/i);case" ":return Et(/[^\S\n\r]/);default:return nr(Ai)}})(v)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return ti.token=v,ti}(_,m)),this.disqualifyingUnit=this.units.find(_=>_.invalidReason),!this.disqualifyingUnit){const[_,D]=function ki(v){return[`^${v.map(d=>d.regex).reduce((d,_)=>`${d}(${_.source})`,"")}$`,v]}(this.units);this.regex=RegExp(_,"i"),this.handlers=D}}explainFromTokens(m){if(this.isValid){const[d,_]=function Di(v,m,d){const _=v.match(m);if(_){const D={};let W=1;for(const te in d)if(Cs(d,te)){const be=d[te],Xe=be.groups?be.groups+1:1;!be.literal&&be.token&&(D[be.token.val[0]]=be.deser(_.slice(W,W+Xe))),W+=Xe}return[_,D]}return[_,{}]}(m,this.regex,this.handlers),[D,W,te]=_?function Nr(v){let _,d=null;return Pr(v.z)||(d=Hr.create(v.z)),Pr(v.Z)||(d||(d=new Ni(v.Z)),_=v.Z),Pr(v.q)||(v.M=3*(v.q-1)+1),Pr(v.h)||(v.h<12&&1===v.a?v.h+=12:12===v.h&&0===v.a&&(v.h=0)),0===v.G&&v.y&&(v.y=-v.y),Pr(v.u)||(v.S=Xr(v.u)),[Object.keys(v).reduce((W,te)=>{const be=(W=>{switch(W){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}})(te);return be&&(W[be]=v[te]),W},{}),d,_]}(_):[null,null,void 0];if(Cs(_,"a")&&Cs(_,"H"))throw new Ue("Can't include meridiem when specifying 24-hour format");return{input:m,tokens:this.tokens,regex:this.regex,rawMatches:d,matches:_,result:D,zone:W,specificOffset:te}}return{input:m,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function ha(v,m,d){return new Lo(v,d).explainFromTokens(m)}function Va(v,m){if(!v)return null;const _=Pn.create(m,v).dtFormatter(function ii(){return li||(li=Fr.fromMillis(1555555555555)),li}()),D=_.formatToParts(),W=_.resolvedOptions();return D.map(te=>function ci(v,m,d){const{type:_,value:D}=v;if("literal"===_){const Xe=/^\s+$/.test(D);return{literal:!Xe,val:Xe?" ":D}}let te=_;"hour"===_&&(te=null!=m.hour12?m.hour12?"hour12":"hour24":null!=m.hourCycle?"h11"===m.hourCycle||"h12"===m.hourCycle?"hour12":"hour24":d.hour12?"hour12":"hour24");let be=rr[te];if("object"==typeof be&&(be=be[m[_]]),be)return{literal:!1,val:be}}(te,v,W))}const Ls="Invalid DateTime",Ta=864e13;function Ma(v){return new gt("unsupported zone",`the zone "${v.name}" is not supported`)}function qa(v){return null===v.weekData&&(v.weekData=tr(v.c)),v.weekData}function ou(v){return null===v.localWeekData&&(v.localWeekData=tr(v.c,v.loc.getMinDaysInFirstWeek(),v.loc.getStartOfWeek())),v.localWeekData}function ka(v,m){const d={ts:v.ts,zone:v.zone,c:v.c,o:v.o,loc:v.loc,invalid:v.invalid};return new Fr({...d,...m,old:d})}function Ia(v,m,d){let _=v-60*m*1e3;const D=d.offset(_);if(m===D)return[_,m];_-=60*(D-m)*1e3;const W=d.offset(_);return D===W?[_,D]:[v-60*Math.min(D,W)*1e3,Math.max(D,W)]}function Rl(v,m){const d=new Date(v+=60*m*1e3);return{year:d.getUTCFullYear(),month:d.getUTCMonth()+1,day:d.getUTCDate(),hour:d.getUTCHours(),minute:d.getUTCMinutes(),second:d.getUTCSeconds(),millisecond:d.getUTCMilliseconds()}}function su(v,m,d){return Ia(Xo(v),m,d)}function Pu(v,m){const d=v.o,_=v.c.year+Math.trunc(m.years),D=v.c.month+Math.trunc(m.months)+3*Math.trunc(m.quarters),W={...v.c,year:_,month:D,day:Math.min(v.c.day,fs(_,D))+Math.trunc(m.days)+7*Math.trunc(m.weeks)},te=Bi.fromObject({years:m.years-Math.trunc(m.years),quarters:m.quarters-Math.trunc(m.quarters),months:m.months-Math.trunc(m.months),weeks:m.weeks-Math.trunc(m.weeks),days:m.days-Math.trunc(m.days),hours:m.hours,minutes:m.minutes,seconds:m.seconds,milliseconds:m.milliseconds}).as("milliseconds"),be=Xo(W);let[Xe,yt]=Ia(be,d,v.zone);return 0!==te&&(Xe+=te,yt=v.zone.offset(Xe)),{ts:Xe,o:yt}}function Wl(v,m,d,_,D,W){const{setZone:te,zone:be}=d;if(v&&0!==Object.keys(v).length||m){const Xe=m||be,yt=Fr.fromObject(v,{...d,zone:Xe,specificOffset:W});return te?yt:yt.setZone(be)}return Fr.invalid(new gt("unparsable",`the input "${D}" can't be parsed as ${_}`))}function pc(v,m,d=!0){return v.isValid?Pn.create(fr.create("en-US"),{allowZ:d,forceSimple:!0}).formatDateTimeFromString(v,m):null}function hl(v,m){const d=v.c.year>9999||v.c.year<0;let _="";return d&&v.c.year>=0&&(_+="+"),_+=mo(v.c.year,d?6:4),m?(_+="-",_+=mo(v.c.month),_+="-",_+=mo(v.c.day)):(_+=mo(v.c.month),_+=mo(v.c.day)),_}function yo(v,m,d,_,D,W){let te=mo(v.c.hour);return m?(te+=":",te+=mo(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(te+=":")):te+=mo(v.c.minute),(0!==v.c.millisecond||0!==v.c.second||!d)&&(te+=mo(v.c.second),(0!==v.c.millisecond||!_)&&(te+=".",te+=mo(v.c.millisecond,3))),D&&(v.isOffsetFixed&&0===v.offset&&!W?te+="Z":v.o<0?(te+="-",te+=mo(Math.trunc(-v.o/60)),te+=":",te+=mo(Math.trunc(-v.o%60))):(te+="+",te+=mo(Math.trunc(v.o/60)),te+=":",te+=mo(Math.trunc(v.o%60)))),W&&(te+="["+v.zone.ianaName+"]"),te}const zo={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},xl={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},au={ordinal:1,hour:0,minute:0,second:0,millisecond:0},mc=["year","month","day","hour","minute","second","millisecond"],lu=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Fu=["year","ordinal","hour","minute","second","millisecond"];function Bu(v){switch(v.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function ah(v){const m={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"}[v.toLowerCase()];if(!m)throw new Ft(v);return m}(v)}}function Ur(v,m){const d=$o(m.zone,Re.defaultZone);if(!d.isValid)return Fr.invalid(Ma(d));const _=fr.fromObject(m);let D,W;if(Pr(v.year))D=Re.now();else{for(const Xe of mc)Pr(v[Xe])&&(v[Xe]=zo[Xe]);const te=Rr(v)||Qr(v);if(te)return Fr.invalid(te);const be=function Ef(v){return Ha[v]||(void 0===zl&&(zl=Re.now()),Ha[v]=v.offset(zl)),Ha[v]}(d);[D,W]=su(v,be,d)}return new Fr({ts:D,zone:d,loc:_,o:W})}function kc(v,m,d){const _=!!Pr(d.round)||d.round,D=(te,be)=>(te=Ds(te,_||d.calendary?0:2,!0),m.loc.clone(d).relFormatter(d).format(te,be)),W=te=>d.calendary?m.hasSame(v,te)?0:m.startOf(te).diff(v.startOf(te),te).get(te):m.diff(v,te).get(te);if(d.unit)return D(W(d.unit),d.unit);for(const te of d.units){const be=W(te);if(Math.abs(be)>=1)return D(be,te)}return D(v>m?-0:0,d.units[d.units.length-1])}function Hs(v){let d,m={};return v.length>0&&"object"==typeof v[v.length-1]?(m=v[v.length-1],d=Array.from(v).slice(0,v.length-1)):d=Array.from(v),[m,d]}let zl,Ha={};class Fr{constructor(m){const d=m.zone||Re.defaultZone;let _=m.invalid||(Number.isNaN(m.ts)?new gt("invalid input"):null)||(d.isValid?null:Ma(d));this.ts=Pr(m.ts)?Re.now():m.ts;let D=null,W=null;if(!_)if(m.old&&m.old.ts===this.ts&&m.old.zone.equals(d))[D,W]=[m.old.c,m.old.o];else{const be=Do(m.o)&&!m.old?m.o:d.offset(this.ts);D=Rl(this.ts,be),_=Number.isNaN(D.year)?new gt("invalid input"):null,D=_?null:D,W=_?null:be}this._zone=d,this.loc=m.loc||fr.create(),this.invalid=_,this.weekData=null,this.localWeekData=null,this.c=D,this.o=W,this.isLuxonDateTime=!0}static now(){return new Fr({})}static local(){const[m,d]=Hs(arguments),[_,D,W,te,be,Xe,yt]=d;return Ur({year:_,month:D,day:W,hour:te,minute:be,second:Xe,millisecond:yt},m)}static utc(){const[m,d]=Hs(arguments),[_,D,W,te,be,Xe,yt]=d;return m.zone=Ni.utcInstance,Ur({year:_,month:D,day:W,hour:te,minute:be,second:Xe,millisecond:yt},m)}static fromJSDate(m,d={}){const _=function oa(v){return"[object Date]"===Object.prototype.toString.call(v)}(m)?m.valueOf():NaN;if(Number.isNaN(_))return Fr.invalid("invalid input");const D=$o(d.zone,Re.defaultZone);return D.isValid?new Fr({ts:_,zone:D,loc:fr.fromObject(d)}):Fr.invalid(Ma(D))}static fromMillis(m,d={}){if(Do(m))return m<-Ta||m>Ta?Fr.invalid("Timestamp out of range"):new Fr({ts:m,zone:$o(d.zone,Re.defaultZone),loc:fr.fromObject(d)});throw new Ke(`fromMillis requires a numerical input, but received a ${typeof m} with value ${m}`)}static fromSeconds(m,d={}){if(Do(m))return new Fr({ts:1e3*m,zone:$o(d.zone,Re.defaultZone),loc:fr.fromObject(d)});throw new Ke("fromSeconds requires a numerical input")}static fromObject(m,d={}){m=m||{};const _=$o(d.zone,Re.defaultZone);if(!_.isValid)return Fr.invalid(Ma(_));const D=fr.fromObject(d),W=_s(m,Bu),{minDaysInFirstWeek:te,startOfWeek:be}=gi(W,D),Xe=Re.now(),yt=Pr(d.specificOffset)?_.offset(Xe):d.specificOffset,dn=!Pr(W.ordinal),yn=!Pr(W.year),_r=!Pr(W.month)||!Pr(W.day),nr=yn||_r,mr=W.weekYear||W.weekNumber;if((nr||dn)&&mr)throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(_r&&dn)throw new Ue("Can't mix ordinal dates with month/day");const ti=mr||W.weekday&&!nr;let Ai,ko,ho=Rl(Xe,yt);ti?(Ai=lu,ko=xl,ho=tr(ho,te,be)):dn?(Ai=Fu,ko=au,ho=Er(ho)):(Ai=mc,ko=zo);let Ea=!1;for(const Bl of Ai)Pr(W[Bl])?W[Bl]=Ea?ko[Bl]:ho[Bl]:Ea=!0;const ea=ti?function ni(v,m=4,d=1){const _=es(v.weekYear),D=hs(v.weekNumber,1,_o(v.weekYear,m,d)),W=hs(v.weekday,1,7);return _?D?!W&&pn("weekday",v.weekday):pn("week",v.weekNumber):pn("weekYear",v.weekYear)}(W,te,be):dn?function Mi(v){const m=es(v.year),d=hs(v.ordinal,1,io(v.year));return m?!d&&pn("ordinal",v.ordinal):pn("year",v.year)}(W):Rr(W),Iu=ea||Qr(W);if(Iu)return Fr.invalid(Iu);const vl=ti?cr(W,te,be):dn?Cr(W):W,[xa,Xa]=su(vl,yt,_),Sl=new Fr({ts:xa,zone:_,o:Xa,loc:D});return W.weekday&&nr&&m.weekday!==Sl.weekday?Fr.invalid("mismatched weekday",`you can't specify both a weekday of ${W.weekday} and a date of ${Sl.toISO()}`):Sl.isValid?Sl:Fr.invalid(Sl.invalid)}static fromISO(m,d={}){const[_,D]=function ks(v){return zi(v,[yi,ul],[Il,$s],[eu,Ol],[tu,Sa])}(m);return Wl(_,D,d,"ISO 8601",m)}static fromRFC2822(m,d={}){const[_,D]=function js(v){return zi(function vs(v){return v.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(v),[_i,cs])}(m);return Wl(_,D,d,"RFC 2822",m)}static fromHTTP(m,d={}){const[_,D]=function nu(v){return zi(v,[ja,wl],[bl,wl],[Lu,cl])}(m);return Wl(_,D,d,"HTTP",d)}static fromFormat(m,d,_={}){if(Pr(m)||Pr(d))throw new Ke("fromFormat requires an input string and a format");const{locale:D=null,numberingSystem:W=null}=_,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),[be,Xe,yt,dn]=function Yo(v,m,d){const{result:_,zone:D,specificOffset:W,invalidReason:te}=ha(v,m,d);return[_,D,W,te]}(te,m,d);return dn?Fr.invalid(dn):Wl(be,Xe,_,`format ${d}`,m,yt)}static fromString(m,d,_={}){return Fr.fromFormat(m,d,_)}static fromSQL(m,d={}){const[_,D]=function Vl(v){return zi(v,[El,ul],[jl,dl])}(m);return Wl(_,D,d,"SQL",m)}static invalid(m,d=null){if(!m)throw new Ke("need to specify a reason the DateTime is invalid");const _=m instanceof gt?m:new gt(m,d);if(Re.throwOnInvalid)throw new Je(_);return new Fr({invalid:_})}static isDateTime(m){return m&&m.isLuxonDateTime||!1}static parseFormatForOpts(m,d={}){const _=Va(m,fr.fromObject(d));return _?_.map(D=>D?D.val:null).join(""):null}static expandFormat(m,d={}){return bs(Pn.parseFormat(m),fr.fromObject(d)).map(D=>D.val).join("")}static resetCache(){zl=void 0,Ha={}}get(m){return this[m]}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?qa(this).weekYear:NaN}get weekNumber(){return this.isValid?qa(this).weekNumber:NaN}get weekday(){return this.isValid?qa(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?ou(this).weekday:NaN}get localWeekNumber(){return this.isValid?ou(this).weekNumber:NaN}get localWeekYear(){return this.isValid?ou(this).weekYear:NaN}get ordinal(){return this.isValid?Er(this.c).ordinal:NaN}get monthShort(){return this.isValid?ri.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ri.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ri.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ri.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 m=864e5,d=6e4,_=Xo(this.c),D=this.zone.offset(_-m),W=this.zone.offset(_+m),te=this.zone.offset(_-D*d),be=this.zone.offset(_-W*d);if(te===be)return[this];const Xe=_-te*d,yt=_-be*d,dn=Rl(Xe,te),yn=Rl(yt,be);return dn.hour===yn.hour&&dn.minute===yn.minute&&dn.second===yn.second&&dn.millisecond===yn.millisecond?[ka(this,{ts:Xe}),ka(this,{ts:yt})]:[this]}get isInLeapYear(){return go(this.year)}get daysInMonth(){return fs(this.year,this.month)}get daysInYear(){return this.isValid?io(this.year):NaN}get weeksInWeekYear(){return this.isValid?_o(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?_o(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(m={}){const{locale:d,numberingSystem:_,calendar:D}=Pn.create(this.loc.clone(m),m).resolvedOptions(this);return{locale:d,numberingSystem:_,outputCalendar:D}}toUTC(m=0,d={}){return this.setZone(Ni.instance(m),d)}toLocal(){return this.setZone(Re.defaultZone)}setZone(m,{keepLocalTime:d=!1,keepCalendarTime:_=!1}={}){if((m=$o(m,Re.defaultZone)).equals(this.zone))return this;if(m.isValid){let D=this.ts;if(d||_){const W=m.offset(this.ts),te=this.toObject();[D]=su(te,W,m)}return ka(this,{ts:D,zone:m})}return Fr.invalid(Ma(m))}reconfigure({locale:m,numberingSystem:d,outputCalendar:_}={}){return ka(this,{loc:this.loc.clone({locale:m,numberingSystem:d,outputCalendar:_})})}setLocale(m){return this.reconfigure({locale:m})}set(m){if(!this.isValid)return this;const d=_s(m,Bu),{minDaysInFirstWeek:_,startOfWeek:D}=gi(d,this.loc),W=!Pr(d.weekYear)||!Pr(d.weekNumber)||!Pr(d.weekday),te=!Pr(d.ordinal),be=!Pr(d.year),Xe=!Pr(d.month)||!Pr(d.day);if((be||Xe||te)&&(d.weekYear||d.weekNumber))throw new Ue("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Xe&&te)throw new Ue("Can't mix ordinal dates with month/day");let yn;W?yn=cr({...tr(this.c,_,D),...d},_,D):Pr(d.ordinal)?(yn={...this.toObject(),...d},Pr(d.day)&&(yn.day=Math.min(fs(yn.year,yn.month),yn.day))):yn=Cr({...Er(this.c),...d});const[_r,nr]=su(yn,this.o,this.zone);return ka(this,{ts:_r,o:nr})}plus(m){return this.isValid?ka(this,Pu(this,Bi.fromDurationLike(m))):this}minus(m){return this.isValid?ka(this,Pu(this,Bi.fromDurationLike(m).negate())):this}startOf(m,{useLocaleWeeks:d=!1}={}){if(!this.isValid)return this;const _={},D=Bi.normalizeUnit(m);switch(D){case"years":_.month=1;case"quarters":case"months":_.day=1;case"weeks":case"days":_.hour=0;case"hours":_.minute=0;case"minutes":_.second=0;case"seconds":_.millisecond=0}if("weeks"===D)if(d){const W=this.loc.getStartOfWeek(),{weekday:te}=this;tethis.valueOf(),yt=function Uo(v,m,d,_){let[D,W,te,be]=function Za(v,m,d){const _=[["years",(Xe,yt)=>yt.year-Xe.year],["quarters",(Xe,yt)=>yt.quarter-Xe.quarter+4*(yt.year-Xe.year)],["months",(Xe,yt)=>yt.month-Xe.month+12*(yt.year-Xe.year)],["weeks",(Xe,yt)=>{const dn=Xs(Xe,yt);return(dn-dn%7)/7}],["days",Xs]],D={},W=v;let te,be;for(const[Xe,yt]of _)d.indexOf(Xe)>=0&&(te=Xe,D[Xe]=yt(v,m),be=W.plus(D),be>m?(D[Xe]--,(v=W.plus(D))>m&&(be=v,D[Xe]--,v=W.plus(D))):v=be);return[v,D,be,te]}(v,m,d);const Xe=m-D,yt=d.filter(yn=>["hours","minutes","seconds","milliseconds"].indexOf(yn)>=0);0===yt.length&&(te0?Bi.fromMillis(Xe,_).shiftTo(...yt).plus(dn):dn}(te?this:m,te?m:this,W,D);return te?yt.negate():yt}diffNow(m="milliseconds",d={}){return this.diff(Fr.now(),m,d)}until(m){return this.isValid?co.fromDateTimes(this,m):this}hasSame(m,d,_){if(!this.isValid)return!1;const D=m.valueOf(),W=this.setZone(m.zone,{keepLocalTime:!0});return W.startOf(d,_)<=D&&D<=W.endOf(d,_)}equals(m){return this.isValid&&m.isValid&&this.valueOf()===m.valueOf()&&this.zone.equals(m.zone)&&this.loc.equals(m.loc)}toRelative(m={}){if(!this.isValid)return null;const d=m.base||Fr.fromObject({},{zone:this.zone}),_=m.padding?thisd.valueOf(),Math.min)}static max(...m){if(!m.every(Fr.isDateTime))throw new Ke("max requires all arguments be DateTimes");return Ks(m,d=>d.valueOf(),Math.max)}static fromFormatExplain(m,d,_={}){const{locale:D=null,numberingSystem:W=null}=_;return ha(fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0}),m,d)}static fromStringExplain(m,d,_={}){return Fr.fromFormatExplain(m,d,_)}static buildFormatParser(m,d={}){const{locale:_=null,numberingSystem:D=null}=d,W=fr.fromOpts({locale:_,numberingSystem:D,defaultToEN:!0});return new Lo(W,m)}static fromFormatParser(m,d,_={}){if(Pr(m)||Pr(d))throw new Ke("fromFormatParser requires an input string and a format parser");const{locale:D=null,numberingSystem:W=null}=_,te=fr.fromOpts({locale:D,numberingSystem:W,defaultToEN:!0});if(!te.equals(d.locale))throw new Ke(`fromFormatParser called with a locale of ${te}, but the format parser was created for ${d.locale}`);const{result:be,zone:Xe,specificOffset:yt,invalidReason:dn}=d.explainFromTokens(m);return dn?Fr.invalid(dn):Wl(be,Xe,_,`format ${d.format}`,m,yt)}static get DATE_SHORT(){return Me}static get DATE_MED(){return ht}static get DATE_MED_WITH_WEEKDAY(){return Xt}static get DATE_FULL(){return Tn}static get DATE_HUGE(){return Wt}static get TIME_SIMPLE(){return Zt}static get TIME_WITH_SECONDS(){return rt}static get TIME_WITH_SHORT_OFFSET(){return Ht}static get TIME_WITH_LONG_OFFSET(){return en}static get TIME_24_SIMPLE(){return Nn}static get TIME_24_WITH_SECONDS(){return mn}static get TIME_24_WITH_SHORT_OFFSET(){return Mn}static get TIME_24_WITH_LONG_OFFSET(){return tt}static get DATETIME_SHORT(){return Kt}static get DATETIME_SHORT_WITH_SECONDS(){return At}static get DATETIME_MED(){return Te}static get DATETIME_MED_WITH_SECONDS(){return ye}static get DATETIME_MED_WITH_WEEKDAY(){return He}static get DATETIME_FULL(){return z}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return V}static get DATETIME_HUGE_WITH_SECONDS(){return Ne}}function Gl(v){if(Fr.isDateTime(v))return v;if(v&&v.valueOf&&Do(v.valueOf()))return Fr.fromJSDate(v);if(v&&"object"==typeof v)return Fr.fromObject(v);throw new Ke(`Unknown datetime argument: ${v}, of type ${typeof v}`)}const fl=new c.nKC("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function md(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}});let Yl=(()=>{class v extends sn.MJ{_useUTC;_firstDayOfWeek;_defaultOutputCalendar;constructor(){super();const d=(0,c.WQX)(sn.Ju,{optional:!0}),_=(0,c.WQX)(fl,{optional:!0});this._useUTC=!!_?.useUtc,this._firstDayOfWeek=_?.firstDayOfWeek||0,this._defaultOutputCalendar=_?.defaultOutputCalendar||"gregory",this.setLocale(d||Fr.local().locale)}getYear(d){return d.year}getMonth(d){return d.month-1}getDate(d){return d.day}getDayOfWeek(d){return d.weekday}getMonthNames(d){return ri.months(d,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){const d=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return function cu(v,m){const d=Array(v);for(let _=0;_d.format(Fr.utc(2017,1,_+1).toJSDate()))}getDayOfWeekNames(d){const _=ri.weekdays(d,{locale:this.locale});return _.unshift(_.pop()),_}getYearName(d){return d.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(d){return d.daysInMonth}clone(d){return Fr.fromObject(d.toObject(),this._getOptions())}createDate(d,_,D){const W=this._getOptions();if(_<0||_>11)throw Error(`Invalid month index "${_}". Month index has to be between 0 and 11.`);if(D<1)throw Error(`Invalid date "${D}". Date has to be greater than 0.`);const te=this._useUTC?Fr.utc(d,_+1,D,W):Fr.local(d,_+1,D,W);if(!this.isValid(te))throw Error(`Invalid date "${D}". Reason: "${te.invalidReason}".`);return te}today(){const d=this._getOptions();return this._useUTC?Fr.utc(d):Fr.local(d)}parse(d,_){const D=this._getOptions();if("string"==typeof d&&d.length>0){const W=Fr.fromISO(d,D);if(this.isValid(W))return W;const te=Array.isArray(_)?_:[_];if(!_.length)throw Error("Formats array must not be empty.");for(const be of te){const Xe=Fr.fromFormat(d,be,D);if(this.isValid(Xe))return Xe}return this.invalid()}return"number"==typeof d?Fr.fromMillis(d,D):d instanceof Date?Fr.fromJSDate(d,D):d instanceof Fr?Fr.fromMillis(d.toMillis(),D):null}format(d,_){if(!this.isValid(d))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?d.setLocale(this.locale).setZone("utc").toFormat(_):d.setLocale(this.locale).toFormat(_)}addCalendarYears(d,_){return d.reconfigure(this._getOptions()).plus({years:_})}addCalendarMonths(d,_){return d.reconfigure(this._getOptions()).plus({months:_})}addCalendarDays(d,_){return d.reconfigure(this._getOptions()).plus({days:_})}toIso8601(d){return d.toISO()}deserialize(d){const _=this._getOptions();let D;if(d instanceof Date&&(D=Fr.fromJSDate(d,_)),"string"==typeof d){if(!d)return null;D=Fr.fromISO(d,_)}return D&&this.isValid(D)?D:super.deserialize(d)}isDateInstance(d){return d instanceof Fr}isValid(d){return d.isValid}invalid(){return Fr.invalid("Invalid Luxon DateTime object.")}setTime(d,_,D,W){return this.clone(d).set({hour:_,minute:D,second:W,millisecond:0})}getHours(d){return d.hour}getMinutes(d){return d.minute}getSeconds(d){return d.second}parseTime(d,_){const D=this.parse(d,_);return(!D||!this.isValid(D))&&"string"==typeof d&&this.parse(d.replace(/[^0-9:(AM|PM)]/gi,""),_)||D}addSeconds(d,_){return d.reconfigure(this._getOptions()).plus({seconds:_})}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();var Ar=n(1204);function rs(v){return new c.wOt(3e3,!1)}function Si(v){switch(v.length){case 0:return new Ar.sf;case 1:return v[0];default:return new Ar.ui(v)}}function Nl(v,m,d=new Map,_=new Map){const D=[],W=[];let te=-1,be=null;if(m.forEach(Xe=>{const yt=Xe.get("offset"),dn=yt==te,yn=dn&&be||new Map;Xe.forEach((_r,nr)=>{let mr=nr,ti=_r;if("offset"!==nr)switch(mr=v.normalizePropertyName(mr,D),ti){case Ar.FX:ti=d.get(nr);break;case Ar.kp:ti=_.get(nr);break;default:ti=v.normalizeStyleValue(nr,mr,ti,D)}yn.set(mr,ti)}),dn||W.push(yn),be=yn,te=yt}),D.length)throw function uh(){return new c.wOt(3502,!1)}();return W}function Ra(v,m,d,_){switch(m){case"start":v.onStart(()=>_(d&&Qs(d,"start",v)));break;case"done":v.onDone(()=>_(d&&Qs(d,"done",v)));break;case"destroy":v.onDestroy(()=>_(d&&Qs(d,"destroy",v)))}}function Qs(v,m,d){const W=Oc(v.element,v.triggerName,v.fromState,v.toState,m||v.phaseName,d.totalTime??v.totalTime,!!d.disabled),te=v._data;return null!=te&&(W._data=te),W}function Oc(v,m,d,_,D="",W=0,te){return{element:v,triggerName:m,fromState:d,toState:_,phaseName:D,totalTime:W,disabled:!!te}}function fa(v,m,d){let _=v.get(m);return _||v.set(m,_=d),_}function _d(v){const m=v.indexOf(":");return[v.substring(1,m),v.slice(m+1)]}const em=typeof document>"u"?null:document.documentElement;function fh(v){const m=v.parentNode||v.host||null;return m===em?null:m}let pa=null,ql=!1;function O(v,m){for(;m;){if(m===v)return!0;m=fh(m)}return!1}function P(v,m,d){if(d)return Array.from(v.querySelectorAll(m));const _=v.querySelector(m);return _?[_]:[]}let oe=(()=>{class v{validateStyleProperty(d){return function Zs(v){pa||(pa=function vd(){return typeof document<"u"?document.body:null}()||{},ql=!!pa.style&&"WebkitAppearance"in pa.style);let m=!0;return pa.style&&!function ph(v){return"ebkit"==v.substring(1,6)}(v)&&(m=v in pa.style,!m&&ql&&(m="Webkit"+v.charAt(0).toUpperCase()+v.slice(1)in pa.style)),m}(d)}containsElement(d,_){return O(d,_)}getParentElement(d){return fh(d)}query(d,_,D){return P(d,_,D)}computeStyle(d,_,D){return D||""}animate(d,_,D,W,te,be=[],Xe){return new Ar.sf(D,W)}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();class Ce{static NOOP=new oe}class $e{}const It=1e3,kn="ng-enter",qt="ng-leave",Yn="ng-trigger",Xn=".ng-trigger",ir="ng-animating",Rn=".ng-animating";function Kn(v){if("number"==typeof v)return v;const m=v.match(/^(-?[\.\d]+)(m?s)/);return!m||m.length<2?0:Qn(parseFloat(m[1]),m[2])}function Qn(v,m){return"s"===m?v*It:v}function yr(v,m,d){return v.hasOwnProperty("duration")?v:function Hn(v,m,d){let D,W=0,te="";if("string"==typeof v){const be=v.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===be)return m.push(rs()),{duration:0,delay:0,easing:""};D=Qn(parseFloat(be[1]),be[2]);const Xe=be[3];null!=Xe&&(W=Qn(parseFloat(Xe),be[4]));const yt=be[5];yt&&(te=yt)}else D=v;if(!d){let be=!1,Xe=m.length;D<0&&(m.push(function N(){return new c.wOt(3100,!1)}()),be=!0),W<0&&(m.push(function G(){return new c.wOt(3101,!1)}()),be=!0),be&&m.splice(Xe,0,rs())}return{duration:D,delay:W,easing:te}}(v,m,d)}function Dr(v,m,d){m.forEach((_,D)=>{const W=ma(D);d&&!d.has(D)&&d.set(D,v.style[W]),v.style[W]=_})}function Gr(v,m){m.forEach((d,_)=>{const D=ma(_);v.style[D]=""})}function Br(v){return Array.isArray(v)?1==v.length?v[0]:(0,Ar.K2)(v):v}const Ji=new RegExp("{{\\s*(.+?)\\s*}}","g");function Xi(v){let m=[];if("string"==typeof v){let d;for(;d=Ji.exec(v);)m.push(d[1]);Ji.lastIndex=0}return m}function bo(v,m,d){const _=`${v}`,D=_.replace(Ji,(W,te)=>{let be=m[te];return null==be&&(d.push(function K(){return new c.wOt(3003,!1)}()),be=""),be.toString()});return D==_?v:D}const To=/-+([a-z0-9])/g;function ma(v){return v.replace(To,(...m)=>m[1].toUpperCase())}function Yi(v,m,d){switch(m.type){case Ar.If.Trigger:return v.visitTrigger(m,d);case Ar.If.State:return v.visitState(m,d);case Ar.If.Transition:return v.visitTransition(m,d);case Ar.If.Sequence:return v.visitSequence(m,d);case Ar.If.Group:return v.visitGroup(m,d);case Ar.If.Animate:return v.visitAnimate(m,d);case Ar.If.Keyframes:return v.visitKeyframes(m,d);case Ar.If.Style:return v.visitStyle(m,d);case Ar.If.Reference:return v.visitReference(m,d);case Ar.If.AnimateChild:return v.visitAnimateChild(m,d);case Ar.If.AnimateRef:return v.visitAnimateRef(m,d);case Ar.If.Query:return v.visitQuery(m,d);case Ar.If.Stagger:return v.visitStagger(m,d);default:throw function he(){return new c.wOt(3004,!1)}()}}function Mo(v,m){return window.getComputedStyle(v)[m]}const gs=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 qs extends $e{normalizePropertyName(m,d){return ma(m)}normalizeStyleValue(m,d,_,D){let W="";const te=_.toString().trim();if(gs.has(d)&&0!==_&&"0"!==_)if("number"==typeof _)W="px";else{const be=_.match(/^[+-]?[\d\.]+([a-z]*)$/);be&&0==be[1].length&&D.push(function We(){return new c.wOt(3005,!1)}())}return te+W}}const yc="*";const Js=new Set(["true","1"]),pl=new Set(["false","0"]);function bc(v,m){const d=Js.has(v)||pl.has(v),_=Js.has(m)||pl.has(m);return(D,W)=>{let te=v==yc||v==D,be=m==yc||m==W;return!te&&d&&"boolean"==typeof D&&(te=D?Js.has(v):pl.has(v)),!be&&_&&"boolean"==typeof W&&(be=W?Js.has(m):pl.has(m)),te&&be}}const $u=new RegExp("s*:selfs*,?","g");function ju(v,m,d,_){return new gh(v).build(m,d,_)}class gh{_driver;constructor(m){this._driver=m}build(m,d,_){const D=new Hu(d);return this._resetContextStyleTimingState(D),Yi(this,Br(m),D)}_resetContextStyleTimingState(m){m.currentQuerySelector="",m.collectedStyles=new Map,m.collectedStyles.set("",new Map),m.currentTime=0}visitTrigger(m,d){let _=d.queryCount=0,D=d.depCount=0;const W=[],te=[];return"@"==m.name.charAt(0)&&d.errors.push(function St(){return new c.wOt(3006,!1)}()),m.definitions.forEach(be=>{if(this._resetContextStyleTimingState(d),be.type==Ar.If.State){const Xe=be,yt=Xe.name;yt.toString().split(/\s*,\s*/).forEach(dn=>{Xe.name=dn,W.push(this.visitState(Xe,d))}),Xe.name=yt}else if(be.type==Ar.If.Transition){const Xe=this.visitTransition(be,d);_+=Xe.queryCount,D+=Xe.depCount,te.push(Xe)}else d.errors.push(function gn(){return new c.wOt(3007,!1)}())}),{type:Ar.If.Trigger,name:m.name,states:W,transitions:te,queryCount:_,depCount:D,options:null}}visitState(m,d){const _=this.visitStyle(m.styles,d),D=m.options&&m.options.params||null;if(_.containsDynamicStyles){const W=new Set,te=D||{};_.styles.forEach(be=>{be instanceof Map&&be.forEach(Xe=>{Xi(Xe).forEach(yt=>{te.hasOwnProperty(yt)||W.add(yt)})})}),W.size&&d.errors.push(function an(){return new c.wOt(3008,!1)}(0,W.values()))}return{type:Ar.If.State,name:m.name,style:_,options:D?{params:D}:null}}visitTransition(m,d){d.queryCount=0,d.depCount=0;const _=Yi(this,Br(m.animation),d),D=function tc(v,m){const d=[];return"string"==typeof v?v.split(/\s*,\s*/).forEach(_=>function Rc(v,m,d){if(":"==v[0]){const Xe=function mh(v,m){switch(v){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(d,_)=>parseFloat(_)>parseFloat(d);case":decrement":return(d,_)=>parseFloat(_) *"}}(v,d);if("function"==typeof Xe)return void m.push(Xe);v=Xe}const _=v.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==_||_.length<4)return d.push(function Ys(){return new c.wOt(3015,!1)}()),m;const D=_[1],W=_[2],te=_[3];m.push(bc(D,te)),"<"==W[0]&&(D!=yc||te!=yc)&&m.push(bc(te,D))}(_,d,m)):d.push(v),d}(m.expr,d.errors);return{type:Ar.If.Transition,matchers:D,animation:_,queryCount:d.queryCount,depCount:d.depCount,options:Ll(m.options)}}visitSequence(m,d){return{type:Ar.If.Sequence,steps:m.steps.map(_=>Yi(this,_,d)),options:Ll(m.options)}}visitGroup(m,d){const _=d.currentTime;let D=0;const W=m.steps.map(te=>{d.currentTime=_;const be=Yi(this,te,d);return D=Math.max(D,d.currentTime),be});return d.currentTime=D,{type:Ar.If.Group,steps:W,options:Ll(m.options)}}visitAnimate(m,d){const _=function _h(v,m){if(v.hasOwnProperty("duration"))return v;if("number"==typeof v)return xf(yr(v,m).duration,0,"");const d=v;if(d.split(/\s+/).some(W=>"{"==W.charAt(0)&&"{"==W.charAt(1))){const W=xf(0,0,"");return W.dynamic=!0,W.strValue=d,W}const D=yr(d,m);return xf(D.duration,D.delay,D.easing)}(m.timings,d.errors);d.currentAnimateTimings=_;let D,W=m.styles?m.styles:(0,Ar.iF)({});if(W.type==Ar.If.Keyframes)D=this.visitKeyframes(W,d);else{let te=m.styles,be=!1;if(!te){be=!0;const yt={};_.easing&&(yt.easing=_.easing),te=(0,Ar.iF)(yt)}d.currentTime+=_.duration+_.delay;const Xe=this.visitStyle(te,d);Xe.isEmptyStep=be,D=Xe}return d.currentAnimateTimings=null,{type:Ar.If.Animate,timings:_,style:D,options:null}}visitStyle(m,d){const _=this._makeStyleAst(m,d);return this._validateStyleAst(_,d),_}_makeStyleAst(m,d){const _=[],D=Array.isArray(m.styles)?m.styles:[m.styles];for(let be of D)"string"==typeof be?be===Ar.kp?_.push(be):d.errors.push(new c.wOt(3002,!1)):_.push(new Map(Object.entries(be)));let W=!1,te=null;return _.forEach(be=>{if(be instanceof Map&&(be.has("easing")&&(te=be.get("easing"),be.delete("easing")),!W))for(let Xe of be.values())if(Xe.toString().indexOf("{{")>=0){W=!0;break}}),{type:Ar.If.Style,styles:_,easing:te,offset:m.offset,containsDynamicStyles:W,options:null}}_validateStyleAst(m,d){const _=d.currentAnimateTimings;let D=d.currentTime,W=d.currentTime;_&&W>0&&(W-=_.duration+_.delay),m.styles.forEach(te=>{"string"!=typeof te&&te.forEach((be,Xe)=>{const yt=d.collectedStyles.get(d.currentQuerySelector),dn=yt.get(Xe);let yn=!0;dn&&(W!=D&&W>=dn.startTime&&D<=dn.endTime&&(d.errors.push(function Ir(){return new c.wOt(3010,!1)}()),yn=!1),W=dn.startTime),yn&&yt.set(Xe,{startTime:W,endTime:D}),d.options&&function ro(v,m,d){const _=m.params||{},D=Xi(v);D.length&&D.forEach(W=>{_.hasOwnProperty(W)||d.push(function F(){return new c.wOt(3001,!1)}())})}(be,d.options,d.errors)})})}visitKeyframes(m,d){const _={type:Ar.If.Keyframes,styles:[],options:null};if(!d.currentAnimateTimings)return d.errors.push(function Gi(){return new c.wOt(3011,!1)}()),_;let W=0;const te=[];let be=!1,Xe=!1,yt=0;const dn=m.steps.map(ko=>{const ho=this._makeStyleAst(ko,d);let Ea=null!=ho.offset?ho.offset:function nm(v){if("string"==typeof v)return null;let m=null;if(Array.isArray(v))v.forEach(d=>{if(d instanceof Map&&d.has("offset")){const _=d;m=parseFloat(_.get("offset")),_.delete("offset")}});else if(v instanceof Map&&v.has("offset")){const d=v;m=parseFloat(d.get("offset")),d.delete("offset")}return m}(ho.styles),ea=0;return null!=Ea&&(W++,ea=ho.offset=Ea),Xe=Xe||ea<0||ea>1,be=be||ea0&&W{const Ea=_r>0?ho==nr?1:_r*ho:te[ho],ea=Ea*Ai;d.currentTime=mr+ti.delay+ea,ti.duration=ea,this._validateStyleAst(ko,d),ko.offset=Ea,_.styles.push(ko)}),_}visitReference(m,d){return{type:Ar.If.Reference,animation:Yi(this,Br(m.animation),d),options:Ll(m.options)}}visitAnimateChild(m,d){return d.depCount++,{type:Ar.If.AnimateChild,options:Ll(m.options)}}visitAnimateRef(m,d){return{type:Ar.If.AnimateRef,animation:this.visitReference(m.animation,d),options:Ll(m.options)}}visitQuery(m,d){const _=d.currentQuerySelector,D=m.options||{};d.queryCount++,d.currentQuery=m;const[W,te]=function Vu(v){const m=!!v.split(/\s*,\s*/).find(d=>":self"==d);return m&&(v=v.replace($u,"")),v=v.replace(/@\*/g,Xn).replace(/@\w+/g,d=>Xn+"-"+d.slice(1)).replace(/:animating/g,Rn),[v,m]}(m.selector);d.currentQuerySelector=_.length?_+" "+W:W,fa(d.collectedStyles,d.currentQuerySelector,new Map);const be=Yi(this,Br(m.animation),d);return d.currentQuery=null,d.currentQuerySelector=_,{type:Ar.If.Query,selector:W,limit:D.limit||0,optional:!!D.optional,includeSelf:te,animation:be,originalSelector:m.selector,options:Ll(m.options)}}visitStagger(m,d){d.currentQuery||d.errors.push(function us(){return new c.wOt(3013,!1)}());const _="full"===m.timings?{duration:0,delay:0,easing:"full"}:yr(m.timings,d.errors,!0);return{type:Ar.If.Stagger,animation:Yi(this,Br(m.animation),d),timings:_,options:null}}}class Hu{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(m){this.errors=m}}function Ll(v){return v?(v={...v}).params&&(v.params=function tm(v){return v?{...v}:null}(v.params)):v={},v}function xf(v,m,d){return{duration:v,delay:m,easing:d}}function yd(v,m,d,_,D,W,te=null,be=!1){return{type:1,element:v,keyframes:m,preStyleProps:d,postStyleProps:_,duration:D,delay:W,totalTime:D+W,easing:te,subTimeline:be}}class Wu{_map=new Map;get(m){return this._map.get(m)||[]}append(m,d){let _=this._map.get(m);_||this._map.set(m,_=[]),_.push(...d)}has(m){return this._map.has(m)}clear(){this._map.clear()}}const im=new RegExp(":enter","g"),Cf=new RegExp(":leave","g");function bd(v,m,d,_,D,W=new Map,te=new Map,be,Xe,yt=[]){return(new Nc).buildKeyframes(v,m,d,_,D,W,te,be,Xe,yt)}class Nc{buildKeyframes(m,d,_,D,W,te,be,Xe,yt,dn=[]){yt=yt||new Wu;const yn=new wd(m,d,yt,D,W,dn,[]);yn.options=Xe;const _r=Xe.delay?Kn(Xe.delay):0;yn.currentTimeline.delayNextStep(_r),yn.currentTimeline.setStyles([te],null,yn.errors,Xe),Yi(this,_,yn);const nr=yn.timelines.filter(mr=>mr.containsAnimation());if(nr.length&&be.size){let mr;for(let ti=nr.length-1;ti>=0;ti--){const Ai=nr[ti];if(Ai.element===d){mr=Ai;break}}mr&&!mr.allowOnlyTimelineStyles()&&mr.setStyles([be],null,yn.errors,Xe)}return nr.length?nr.map(mr=>mr.buildKeyframes()):[yd(d,[],[],[],0,_r,"",!1)]}visitTrigger(m,d){}visitState(m,d){}visitTransition(m,d){}visitAnimateChild(m,d){const _=d.subInstructions.get(d.element);if(_){const D=d.createSubContext(m.options),W=d.currentTimeline.currentTime,te=this._visitSubInstructions(_,D,D.options);W!=te&&d.transformIntoNewTimeline(te)}d.previousNode=m}visitAnimateRef(m,d){const _=d.createSubContext(m.options);_.transformIntoNewTimeline(),this._applyAnimationRefDelays([m.options,m.animation.options],d,_),this.visitReference(m.animation,_),d.transformIntoNewTimeline(_.currentTimeline.currentTime),d.previousNode=m}_applyAnimationRefDelays(m,d,_){for(const D of m){const W=D?.delay;if(W){const te="number"==typeof W?W:Kn(bo(W,D?.params??{},d.errors));_.delayNextStep(te)}}}_visitSubInstructions(m,d,_){let W=d.currentTimeline.currentTime;const te=null!=_.duration?Kn(_.duration):null,be=null!=_.delay?Kn(_.delay):null;return 0!==te&&m.forEach(Xe=>{const yt=d.appendInstructionToTimeline(Xe,te,be);W=Math.max(W,yt.duration+yt.delay)}),W}visitReference(m,d){d.updateOptions(m.options,!0),Yi(this,m.animation,d),d.previousNode=m}visitSequence(m,d){const _=d.subContextCount;let D=d;const W=m.options;if(W&&(W.params||W.delay)&&(D=d.createSubContext(W),D.transformIntoNewTimeline(),null!=W.delay)){D.previousNode.type==Ar.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=Lc);const te=Kn(W.delay);D.delayNextStep(te)}m.steps.length&&(m.steps.forEach(te=>Yi(this,te,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>_&&D.transformIntoNewTimeline()),d.previousNode=m}visitGroup(m,d){const _=[];let D=d.currentTimeline.currentTime;const W=m.options&&m.options.delay?Kn(m.options.delay):0;m.steps.forEach(te=>{const be=d.createSubContext(m.options);W&&be.delayNextStep(W),Yi(this,te,be),D=Math.max(D,be.currentTimeline.currentTime),_.push(be.currentTimeline)}),_.forEach(te=>d.currentTimeline.mergeTimelineCollectedStyles(te)),d.transformIntoNewTimeline(D),d.previousNode=m}_visitTiming(m,d){if(m.dynamic){const _=m.strValue;return yr(d.params?bo(_,d.params,d.errors):_,d.errors)}return{duration:m.duration,delay:m.delay,easing:m.easing}}visitAnimate(m,d){const _=d.currentAnimateTimings=this._visitTiming(m.timings,d),D=d.currentTimeline;_.delay&&(d.incrementTime(_.delay),D.snapshotCurrentStyles());const W=m.style;W.type==Ar.If.Keyframes?this.visitKeyframes(W,d):(d.incrementTime(_.duration),this.visitStyle(W,d),D.applyStylesToKeyframe()),d.currentAnimateTimings=null,d.previousNode=m}visitStyle(m,d){const _=d.currentTimeline,D=d.currentAnimateTimings;!D&&_.hasCurrentStyleProperties()&&_.forwardFrame();const W=D&&D.easing||m.easing;m.isEmptyStep?_.applyEmptyStep(W):_.setStyles(m.styles,W,d.errors,d.options),d.previousNode=m}visitKeyframes(m,d){const _=d.currentAnimateTimings,D=d.currentTimeline.duration,W=_.duration,be=d.createSubContext().currentTimeline;be.easing=_.easing,m.styles.forEach(Xe=>{be.forwardTime((Xe.offset||0)*W),be.setStyles(Xe.styles,Xe.easing,d.errors,d.options),be.applyStylesToKeyframe()}),d.currentTimeline.mergeTimelineCollectedStyles(be),d.transformIntoNewTimeline(D+W),d.previousNode=m}visitQuery(m,d){const _=d.currentTimeline.currentTime,D=m.options||{},W=D.delay?Kn(D.delay):0;W&&(d.previousNode.type===Ar.If.Style||0==_&&d.currentTimeline.hasCurrentStyleProperties())&&(d.currentTimeline.snapshotCurrentStyles(),d.previousNode=Lc);let te=_;const be=d.invokeQuery(m.selector,m.originalSelector,m.limit,m.includeSelf,!!D.optional,d.errors);d.currentQueryTotal=be.length;let Xe=null;be.forEach((yt,dn)=>{d.currentQueryIndex=dn;const yn=d.createSubContext(m.options,yt);W&&yn.delayNextStep(W),yt===d.element&&(Xe=yn.currentTimeline),Yi(this,m.animation,yn),yn.currentTimeline.applyStylesToKeyframe(),te=Math.max(te,yn.currentTimeline.currentTime)}),d.currentQueryIndex=0,d.currentQueryTotal=0,d.transformIntoNewTimeline(te),Xe&&(d.currentTimeline.mergeTimelineCollectedStyles(Xe),d.currentTimeline.snapshotCurrentStyles()),d.previousNode=m}visitStagger(m,d){const _=d.parentContext,D=d.currentTimeline,W=m.timings,te=Math.abs(W.duration),be=te*(d.currentQueryTotal-1);let Xe=te*d.currentQueryIndex;switch(W.duration<0?"reverse":W.easing){case"reverse":Xe=be-Xe;break;case"full":Xe=_.currentStaggerTime}const dn=d.currentTimeline;Xe&&dn.delayNextStep(Xe);const yn=dn.currentTime;Yi(this,m.animation,d),d.previousNode=m,_.currentStaggerTime=D.currentTime-yn+(D.startTime-_.currentTimeline.startTime)}}const Lc={};class wd{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Lc;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(m,d,_,D,W,te,be,Xe){this._driver=m,this.element=d,this.subInstructions=_,this._enterClassName=D,this._leaveClassName=W,this.errors=te,this.timelines=be,this.currentTimeline=Xe||new zu(this._driver,d,0),be.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(m,d){if(!m)return;const _=m;let D=this.options;null!=_.duration&&(D.duration=Kn(_.duration)),null!=_.delay&&(D.delay=Kn(_.delay));const W=_.params;if(W){let te=D.params;te||(te=this.options.params={}),Object.keys(W).forEach(be=>{(!d||!te.hasOwnProperty(be))&&(te[be]=bo(W[be],te,this.errors))})}}_copyOptions(){const m={};if(this.options){const d=this.options.params;if(d){const _=m.params={};Object.keys(d).forEach(D=>{_[D]=d[D]})}}return m}createSubContext(m=null,d,_){const D=d||this.element,W=new wd(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,_||0));return W.previousNode=this.previousNode,W.currentAnimateTimings=this.currentAnimateTimings,W.options=this._copyOptions(),W.updateOptions(m),W.currentQueryIndex=this.currentQueryIndex,W.currentQueryTotal=this.currentQueryTotal,W.parentContext=this,this.subContextCount++,W}transformIntoNewTimeline(m){return this.previousNode=Lc,this.currentTimeline=this.currentTimeline.fork(this.element,m),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(m,d,_){const D={duration:d??m.duration,delay:this.currentTimeline.currentTime+(_??0)+m.delay,easing:""},W=new Df(this._driver,m.element,m.keyframes,m.preStyleProps,m.postStyleProps,D,m.stretchStartingKeyframe);return this.timelines.push(W),D}incrementTime(m){this.currentTimeline.forwardTime(this.currentTimeline.duration+m)}delayNextStep(m){m>0&&this.currentTimeline.delayNextStep(m)}invokeQuery(m,d,_,D,W,te){let be=[];if(D&&be.push(this.element),m.length>0){m=(m=m.replace(im,"."+this._enterClassName)).replace(Cf,"."+this._leaveClassName);let yt=this._driver.query(this.element,m,1!=_);0!==_&&(yt=_<0?yt.slice(yt.length+_,yt.length):yt.slice(0,_)),be.push(...yt)}return!W&&0==be.length&&te.push(function Wr(){return new c.wOt(3014,!1)}()),be}}class zu{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(m,d,_,D){this._driver=m,this.element=d,this.startTime=_,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(d),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(d,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(m){const d=1===this._keyframes.size&&this._pendingStyles.size;this.duration||d?(this.forwardTime(this.currentTime+m),d&&this.snapshotCurrentStyles()):this.startTime+=m}fork(m,d){return this.applyStylesToKeyframe(),new zu(this._driver,m,d||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(m){this.applyStylesToKeyframe(),this.duration=m,this._loadKeyframe()}_updateStyle(m,d){this._localTimelineStyles.set(m,d),this._globalTimelineStyles.set(m,d),this._styleSummary.set(m,{time:this.currentTime,value:d})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(m){m&&this._previousKeyframe.set("easing",m);for(let[d,_]of this._globalTimelineStyles)this._backFill.set(d,_||Ar.kp),this._currentKeyframe.set(d,Ar.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(m,d,_,D){d&&this._previousKeyframe.set("easing",d);const W=D&&D.params||{},te=function Af(v,m){const d=new Map;let _;return v.forEach(D=>{if("*"===D){_??=m.keys();for(let W of _)d.set(W,Ar.kp)}else for(let[W,te]of D)d.set(W,te)}),d}(m,this._globalTimelineStyles);for(let[be,Xe]of te){const yt=bo(Xe,W,_);this._pendingStyles.set(be,yt),this._localTimelineStyles.has(be)||this._backFill.set(be,this._globalTimelineStyles.get(be)??Ar.kp),this._updateStyle(be,yt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((m,d)=>{this._currentKeyframe.set(d,m)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((m,d)=>{this._currentKeyframe.has(d)||this._currentKeyframe.set(d,m)}))}snapshotCurrentStyles(){for(let[m,d]of this._localTimelineStyles)this._pendingStyles.set(m,d),this._updateStyle(m,d)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const m=[];for(let d in this._currentKeyframe)m.push(d);return m}mergeTimelineCollectedStyles(m){m._styleSummary.forEach((d,_)=>{const D=this._styleSummary.get(_);(!D||d.time>D.time)&&this._updateStyle(_,d.value)})}buildKeyframes(){this.applyStylesToKeyframe();const m=new Set,d=new Set,_=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((be,Xe)=>{const yt=new Map([...this._backFill,...be]);yt.forEach((dn,yn)=>{dn===Ar.FX?m.add(yn):dn===Ar.kp&&d.add(yn)}),_||yt.set("offset",Xe/this.duration),D.push(yt)});const W=[...m.values()],te=[...d.values()];if(_){const be=D[0],Xe=new Map(be);be.set("offset",0),Xe.set("offset",1),D=[be,Xe]}return yd(this.element,D,W,te,this.duration,this.startTime,this.easing,!1)}}class Df extends zu{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(m,d,_,D,W,te,be=!1){super(m,d,te.delay),this.keyframes=_,this.preStyleProps=D,this.postStyleProps=W,this._stretchStartingKeyframe=be,this.timings={duration:te.duration,delay:te.delay,easing:te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let m=this.keyframes,{delay:d,duration:_,easing:D}=this.timings;if(this._stretchStartingKeyframe&&d){const W=[],te=_+d,be=d/te,Xe=new Map(m[0]);Xe.set("offset",0),W.push(Xe);const yt=new Map(m[0]);yt.set("offset",yh(be)),W.push(yt);const dn=m.length-1;for(let yn=1;yn<=dn;yn++){let _r=new Map(m[yn]);const nr=_r.get("offset");_r.set("offset",yh((d+nr*_)/te)),W.push(_r)}_=te,d=0,D="",m=W}return yd(this.element,m,this.preStyleProps,this.postStyleProps,_,d,D,!0)}}function yh(v,m=3){const d=Math.pow(10,m-1);return Math.round(v*d)/d}function bh(v,m,d,_,D,W,te,be,Xe,yt,dn,yn,_r){return{type:0,element:v,triggerName:m,isRemovalTransition:D,fromState:d,fromStyles:W,toState:_,toStyles:te,timelines:be,queriedElements:Xe,preStyleProps:yt,postStyleProps:dn,totalTime:yn,errors:_r}}const fu={};class Fl{_triggerName;ast;_stateStyles;constructor(m,d,_){this._triggerName=m,this.ast=d,this._stateStyles=_}match(m,d,_,D){return function Ed(v,m,d,_,D){return v.some(W=>W(m,d,_,D))}(this.ast.matchers,m,d,_,D)}buildStyles(m,d,_){let D=this._stateStyles.get("*");return void 0!==m&&(D=this._stateStyles.get(m?.toString())||D),D?D.buildStyles(d,_):new Map}build(m,d,_,D,W,te,be,Xe,yt,dn){const yn=[],_r=this.ast.options&&this.ast.options.params||fu,mr=this.buildStyles(_,be&&be.params||fu,yn),ti=Xe&&Xe.params||fu,Ai=this.buildStyles(D,ti,yn),ko=new Set,ho=new Map,Ea=new Map,ea="void"===D,Iu={params:wh(ti,_r),delay:this.ast.options?.delay},vl=dn?[]:bd(m,d,this.ast.animation,W,te,mr,Ai,Iu,yt,yn);let xa=0;return vl.forEach(Xa=>{xa=Math.max(Xa.duration+Xa.delay,xa)}),yn.length?bh(d,this._triggerName,_,D,ea,mr,Ai,[],[],ho,Ea,xa,yn):(vl.forEach(Xa=>{const Sl=Xa.element,Bl=fa(ho,Sl,new Set);Xa.preStyleProps.forEach(fd=>Bl.add(fd));const ff=fa(Ea,Sl,new Set);Xa.postStyleProps.forEach(fd=>ff.add(fd)),Sl!==d&&ko.add(Sl)}),bh(d,this._triggerName,_,D,ea,mr,Ai,vl,[...ko.values()],ho,Ea,xa))}}function wh(v,m){const d={...m};return Object.entries(v).forEach(([_,D])=>{null!=D&&(d[_]=D)}),d}class Pc{styles;defaultParams;normalizer;constructor(m,d,_){this.styles=m,this.defaultParams=d,this.normalizer=_}buildStyles(m,d){const _=new Map,D=wh(m,this.defaultParams);return this.styles.styles.forEach(W=>{"string"!=typeof W&&W.forEach((te,be)=>{te&&(te=bo(te,D,d));const Xe=this.normalizer.normalizePropertyName(be,d);te=this.normalizer.normalizeStyleValue(be,Xe,te,d),_.set(be,te)})}),_}}class Fs{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(m,d,_){this.name=m,this.ast=d,this._normalizer=_,d.states.forEach(D=>{this.states.set(D.name,new Pc(D.style,D.options&&D.options.params||{},_))}),Eh(this.states,"true","1"),Eh(this.states,"false","0"),d.transitions.forEach(D=>{this.transitionFactories.push(new Fl(m,D,this.states))}),this.fallbackTransition=function Sf(v,m){return new Fl(v,{type:Ar.If.Transition,animation:{type:Ar.If.Sequence,steps:[],options:null},matchers:[(te,be)=>!0],options:null,queryCount:0,depCount:0},m)}(m,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(m,d,_,D){return this.transitionFactories.find(te=>te.match(m,d,_,D))||null}matchStyles(m,d,_){return this.fallbackTransition.buildStyles(m,d,_)}}function Eh(v,m,d){v.has(m)?v.has(d)||v.set(d,v.get(m)):v.has(d)&&v.set(m,v.get(d))}const xd=new Wu;class om{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(m,d,_){this.bodyNode=m,this._driver=d,this._normalizer=_}register(m,d){const _=[],W=ju(this._driver,d,_,[]);if(_.length)throw function dh(){return new c.wOt(3503,!1)}();this._animations.set(m,W)}_buildPlayer(m,d,_){const D=m.element,W=Nl(this._normalizer,m.keyframes,d,_);return this._driver.animate(D,W,m.duration,m.delay,m.easing,[],!0)}create(m,d,_={}){const D=[],W=this._animations.get(m);let te;const be=new Map;if(W?(te=bd(this._driver,d,W,kn,qt,new Map,new Map,_,xd,D),te.forEach(dn=>{const yn=fa(be,dn.element,new Map);dn.postStyleProps.forEach(_r=>yn.set(_r,null))})):(D.push(function hh(){return new c.wOt(3300,!1)}()),te=[]),D.length)throw function _c(){return new c.wOt(3504,!1)}();be.forEach((dn,yn)=>{dn.forEach((_r,nr)=>{dn.set(nr,this._driver.computeStyle(yn,nr,Ar.kp))})});const yt=Si(te.map(dn=>{const yn=be.get(dn.element);return this._buildPlayer(dn,new Map,yn)}));return this._playersById.set(m,yt),yt.onDestroy(()=>this.destroy(m)),this.players.push(yt),yt}destroy(m){const d=this._getPlayer(m);d.destroy(),this._playersById.delete(m);const _=this.players.indexOf(d);_>=0&&this.players.splice(_,1)}_getPlayer(m){const d=this._playersById.get(m);if(!d)throw function Ql(){return new c.wOt(3301,!1)}();return d}listen(m,d,_,D){const W=Oc(d,"","","");return Ra(this._getPlayer(m),_,W,D),()=>{}}command(m,d,_,D){if("register"==_)return void this.register(m,D[0]);if("create"==_)return void this.create(m,d,D[0]||{});const W=this._getPlayer(m);switch(_){case"play":W.play();break;case"pause":W.pause();break;case"reset":W.reset();break;case"restart":W.restart();break;case"finish":W.finish();break;case"init":W.init();break;case"setPosition":W.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(m)}}}const Ku="ng-animate-queued",xh="ng-animate-disabled",Tf=[],Mf={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Dd={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ka="__ng_removed";class Ad{namespaceId;value;options;get params(){return this.options.params}constructor(m,d=""){this.namespaceId=d;const _=m&&m.hasOwnProperty("value");if(this.value=function Ah(v){return v??null}(_?m.value:m),_){const{value:W,...te}=m;this.options=te}else this.options={};this.options.params||(this.options.params={})}absorbOptions(m){const d=m.params;if(d){const _=this.options.params;Object.keys(d).forEach(D=>{null==_[D]&&(_[D]=d[D])})}}}const Yu="void",Sd=new Ad(Yu);class Ch{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(m,d,_){this.id=m,this.hostElement=d,this._engine=_,this._hostClassName="ng-tns-"+m,ws(d,this._hostClassName)}listen(m,d,_,D){if(!this._triggers.has(d))throw function Zl(){return new c.wOt(3302,!1)}();if(null==_||0==_.length)throw function uu(){return new c.wOt(3303,!1)}();if(!function lm(v){return"start"==v||"done"==v}(_))throw function du(){return new c.wOt(3400,!1)}();const W=fa(this._elementListeners,m,[]),te={name:d,phase:_,callback:D};W.push(te);const be=fa(this._engine.statesByElement,m,new Map);return be.has(d)||(ws(m,Yn),ws(m,Yn+"-"+d),be.set(d,Sd)),()=>{this._engine.afterFlush(()=>{const Xe=W.indexOf(te);Xe>=0&&W.splice(Xe,1),this._triggers.has(d)||be.delete(d)})}}register(m,d){return!this._triggers.has(m)&&(this._triggers.set(m,d),!0)}_getTrigger(m){const d=this._triggers.get(m);if(!d)throw function Ja(){return new c.wOt(3401,!1)}();return d}trigger(m,d,_,D=!0){const W=this._getTrigger(d),te=new am(this.id,d,m);let be=this._engine.statesByElement.get(m);be||(ws(m,Yn),ws(m,Yn+"-"+d),this._engine.statesByElement.set(m,be=new Map));let Xe=be.get(d);const yt=new Ad(_,this.id);if(!(_&&_.hasOwnProperty("value"))&&Xe&&yt.absorbOptions(Xe.options),be.set(d,yt),Xe||(Xe=Sd),yt.value!==Yu&&Xe.value===yt.value){if(!function If(v,m){const d=Object.keys(v),_=Object.keys(m);if(d.length!=_.length)return!1;for(let D=0;D{Gr(m,Ai),Dr(m,ko)})}return}const _r=fa(this._engine.playersByElement,m,[]);_r.forEach(ti=>{ti.namespaceId==this.id&&ti.triggerName==d&&ti.queued&&ti.destroy()});let nr=W.matchTransition(Xe.value,yt.value,m,yt.params),mr=!1;if(!nr){if(!D)return;nr=W.fallbackTransition,mr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:d,transition:nr,fromState:Xe,toState:yt,player:te,isFallbackTransition:mr}),mr||(ws(m,Ku),te.onStart(()=>{Fc(m,Ku)})),te.onDone(()=>{let ti=this.players.indexOf(te);ti>=0&&this.players.splice(ti,1);const Ai=this._engine.playersByElement.get(m);if(Ai){let ko=Ai.indexOf(te);ko>=0&&Ai.splice(ko,1)}}),this.players.push(te),_r.push(te),te}deregister(m){this._triggers.delete(m),this._engine.statesByElement.forEach(d=>d.delete(m)),this._elementListeners.forEach((d,_)=>{this._elementListeners.set(_,d.filter(D=>D.name!=m))})}clearElementCache(m){this._engine.statesByElement.delete(m),this._elementListeners.delete(m);const d=this._engine.playersByElement.get(m);d&&(d.forEach(_=>_.destroy()),this._engine.playersByElement.delete(m))}_signalRemovalForInnerTriggers(m,d){const _=this._engine.driver.query(m,Xn,!0);_.forEach(D=>{if(D[Ka])return;const W=this._engine.fetchNamespacesByElement(D);W.size?W.forEach(te=>te.triggerLeaveAnimation(D,d,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>_.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(m,d,_,D){const W=this._engine.statesByElement.get(m),te=new Map;if(W){const be=[];if(W.forEach((Xe,yt)=>{if(te.set(yt,Xe.value),this._triggers.has(yt)){const dn=this.trigger(m,yt,Yu,D);dn&&be.push(dn)}}),be.length)return this._engine.markElementAsRemoved(this.id,m,!0,d,te),_&&Si(be).onDone(()=>this._engine.processLeaveNode(m)),!0}return!1}prepareLeaveAnimationListeners(m){const d=this._elementListeners.get(m),_=this._engine.statesByElement.get(m);if(d&&_){const D=new Set;d.forEach(W=>{const te=W.name;if(D.has(te))return;D.add(te);const Xe=this._triggers.get(te).fallbackTransition,yt=_.get(te)||Sd,dn=new Ad(Yu),yn=new am(this.id,te,m);this._engine.totalQueuedPlayers++,this._queue.push({element:m,triggerName:te,transition:Xe,fromState:yt,toState:dn,player:yn,isFallbackTransition:!0})})}}removeNode(m,d){const _=this._engine;if(m.childElementCount&&this._signalRemovalForInnerTriggers(m,d),this.triggerLeaveAnimation(m,d,!0))return;let D=!1;if(_.totalAnimations){const W=_.players.length?_.playersByQueriedElement.get(m):[];if(W&&W.length)D=!0;else{let te=m;for(;te=te.parentNode;)if(_.statesByElement.get(te)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(m),D)_.markElementAsRemoved(this.id,m,!1,d);else{const W=m[Ka];(!W||W===Mf)&&(_.afterFlush(()=>this.clearElementCache(m)),_.destroyInnerAnimations(m),_._onRemovalComplete(m,d))}}insertNode(m,d){ws(m,this._hostClassName)}drainQueuedTransitions(m){const d=[];return this._queue.forEach(_=>{const D=_.player;if(D.destroyed)return;const W=_.element,te=this._elementListeners.get(W);te&&te.forEach(be=>{if(be.name==_.triggerName){const Xe=Oc(W,_.triggerName,_.fromState.value,_.toState.value);Xe._data=m,Ra(_.player,be.phase,Xe,be.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):d.push(_)}),this._queue=[],d.sort((_,D)=>{const W=_.transition.ast.depCount,te=D.transition.ast.depCount;return 0==W||0==te?W-te:this._engine.driver.containsElement(_.element,D.element)?1:-1})}destroy(m){this.players.forEach(d=>d.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,m)}}class sm{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(m,d)=>{};_onRemovalComplete(m,d){this.onRemovalComplete(m,d)}constructor(m,d,_){this.bodyNode=m,this.driver=d,this._normalizer=_}get queuedPlayers(){const m=[];return this._namespaceList.forEach(d=>{d.players.forEach(_=>{_.queued&&m.push(_)})}),m}createNamespace(m,d){const _=new Ch(m,d,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,d)?this._balanceNamespaceList(_,d):(this.newHostElements.set(d,_),this.collectEnterElement(d)),this._namespaceLookup[m]=_}_balanceNamespaceList(m,d){const _=this._namespaceList,D=this.namespacesByHostElement;if(_.length-1>=0){let te=!1,be=this.driver.getParentElement(d);for(;be;){const Xe=D.get(be);if(Xe){const yt=_.indexOf(Xe);_.splice(yt+1,0,m),te=!0;break}be=this.driver.getParentElement(be)}te||_.unshift(m)}else _.push(m);return D.set(d,m),m}register(m,d){let _=this._namespaceLookup[m];return _||(_=this.createNamespace(m,d)),_}registerTrigger(m,d,_){let D=this._namespaceLookup[m];D&&D.register(d,_)&&this.totalAnimations++}destroy(m,d){m&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const _=this._fetchNamespace(m);this.namespacesByHostElement.delete(_.hostElement);const D=this._namespaceList.indexOf(_);D>=0&&this._namespaceList.splice(D,1),_.destroy(d),delete this._namespaceLookup[m]}))}_fetchNamespace(m){return this._namespaceLookup[m]}fetchNamespacesByElement(m){const d=new Set,_=this.statesByElement.get(m);if(_)for(let D of _.values())if(D.namespaceId){const W=this._fetchNamespace(D.namespaceId);W&&d.add(W)}return d}trigger(m,d,_,D){if(Qo(d)){const W=this._fetchNamespace(m);if(W)return W.trigger(d,_,D),!0}return!1}insertNode(m,d,_,D){if(!Qo(d))return;const W=d[Ka];if(W&&W.setForRemoval){W.setForRemoval=!1,W.setForMove=!0;const te=this.collectedLeaveElements.indexOf(d);te>=0&&this.collectedLeaveElements.splice(te,1)}if(m){const te=this._fetchNamespace(m);te&&te.insertNode(d,_)}D&&this.collectEnterElement(d)}collectEnterElement(m){this.collectedEnterElements.push(m)}markElementAsDisabled(m,d){d?this.disabledNodes.has(m)||(this.disabledNodes.add(m),ws(m,xh)):this.disabledNodes.has(m)&&(this.disabledNodes.delete(m),Fc(m,xh))}removeNode(m,d,_){if(Qo(d)){const D=m?this._fetchNamespace(m):null;D?D.removeNode(d,_):this.markElementAsRemoved(m,d,!1,_);const W=this.namespacesByHostElement.get(d);W&&W.id!==m&&W.removeNode(d,_)}else this._onRemovalComplete(d,_)}markElementAsRemoved(m,d,_,D,W){this.collectedLeaveElements.push(d),d[Ka]={namespaceId:m,setForRemoval:D,hasAnimation:_,removedBeforeQueried:!1,previousTriggersValues:W}}listen(m,d,_,D,W){return Qo(d)?this._fetchNamespace(m).listen(d,_,D,W):()=>{}}_buildInstruction(m,d,_,D,W){return m.transition.build(this.driver,m.element,m.fromState.value,m.toState.value,_,D,m.fromState.options,m.toState.options,d,W)}destroyInnerAnimations(m){let d=this.driver.query(m,Xn,!0);d.forEach(_=>this.destroyActiveAnimationsForElement(_)),0!=this.playersByQueriedElement.size&&(d=this.driver.query(m,Rn,!0),d.forEach(_=>this.finishActiveQueriedAnimationOnElement(_)))}destroyActiveAnimationsForElement(m){const d=this.playersByElement.get(m);d&&d.forEach(_=>{_.queued?_.markedForDestroy=!0:_.destroy()})}finishActiveQueriedAnimationOnElement(m){const d=this.playersByQueriedElement.get(m);d&&d.forEach(_=>_.finish())}whenRenderingDone(){return new Promise(m=>{if(this.players.length)return Si(this.players).onDone(()=>m());m()})}processLeaveNode(m){const d=m[Ka];if(d&&d.setForRemoval){if(m[Ka]=Mf,d.namespaceId){this.destroyInnerAnimations(m);const _=this._fetchNamespace(d.namespaceId);_&&_.clearElementCache(m)}this._onRemovalComplete(m,d.setForRemoval)}m.classList?.contains(xh)&&this.markElementAsDisabled(m,!1),this.driver.query(m,".ng-animate-disabled",!0).forEach(_=>{this.markElementAsDisabled(_,!1)})}flush(m=-1){let d=[];if(this.newHostElements.size&&(this.newHostElements.forEach((_,D)=>this._balanceNamespaceList(_,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let _=0;__()),this._flushFns=[],this._whenQuietFns.length){const _=this._whenQuietFns;this._whenQuietFns=[],d.length?Si(d).onDone(()=>{_.forEach(D=>D())}):_.forEach(D=>D())}}reportError(m){throw function Cn(){return new c.wOt(3402,!1)}()}_flushAnimations(m,d){const _=new Wu,D=[],W=new Map,te=[],be=new Map,Xe=new Map,yt=new Map,dn=new Set;this.disabledNodes.forEach(Zr=>{dn.add(Zr);const vi=this.driver.query(Zr,".ng-animate-queued",!0);for(let Ti=0;Ti{const Ti=kn+ti++;mr.set(vi,Ti),Zr.forEach(xo=>ws(xo,Ti))});const Ai=[],ko=new Set,ho=new Set;for(let Zr=0;Zrko.add(xo)):ho.add(vi))}const Ea=new Map,ea=Sh(_r,Array.from(ko));ea.forEach((Zr,vi)=>{const Ti=qt+ti++;Ea.set(vi,Ti),Zr.forEach(xo=>ws(xo,Ti))}),m.push(()=>{nr.forEach((Zr,vi)=>{const Ti=mr.get(vi);Zr.forEach(xo=>Fc(xo,Ti))}),ea.forEach((Zr,vi)=>{const Ti=Ea.get(vi);Zr.forEach(xo=>Fc(xo,Ti))}),Ai.forEach(Zr=>{this.processLeaveNode(Zr)})});const Iu=[],vl=[];for(let Zr=this._namespaceList.length-1;Zr>=0;Zr--)this._namespaceList[Zr].drainQueuedTransitions(d).forEach(Ti=>{const xo=Ti.player,Ca=Ti.element;if(Iu.push(xo),this.collectedEnterElements.length){const na=Ca[Ka];if(na&&na.setForMove){if(na.previousTriggersValues&&na.previousTriggersValues.has(Ti.triggerName)){const Qc=na.previousTriggersValues.get(Ti.triggerName),dc=this.statesByElement.get(Ti.element);if(dc&&dc.has(Ti.triggerName)){const pf=dc.get(Ti.triggerName);pf.value=Qc,dc.set(Ti.triggerName,pf)}}return void xo.destroy()}}const ta=!yn||!this.driver.containsElement(yn,Ca),ol=Ea.get(Ca),Ou=mr.get(Ca),xs=this._buildInstruction(Ti,_,Ou,ol,ta);if(xs.errors&&xs.errors.length)return void vl.push(xs);if(ta)return xo.onStart(()=>Gr(Ca,xs.fromStyles)),xo.onDestroy(()=>Dr(Ca,xs.toStyles)),void D.push(xo);if(Ti.isFallbackTransition)return xo.onStart(()=>Gr(Ca,xs.fromStyles)),xo.onDestroy(()=>Dr(Ca,xs.toStyles)),void D.push(xo);const rg=[];xs.timelines.forEach(na=>{na.stretchStartingKeyframe=!0,this.disabledNodes.has(na.element)||rg.push(na)}),xs.timelines=rg,_.append(Ca,xs.timelines),te.push({instruction:xs,player:xo,element:Ca}),xs.queriedElements.forEach(na=>fa(be,na,[]).push(xo)),xs.preStyleProps.forEach((na,Qc)=>{if(na.size){let dc=Xe.get(Qc);dc||Xe.set(Qc,dc=new Set),na.forEach((pf,Dp)=>dc.add(Dp))}}),xs.postStyleProps.forEach((na,Qc)=>{let dc=yt.get(Qc);dc||yt.set(Qc,dc=new Set),na.forEach((pf,Dp)=>dc.add(Dp))})});if(vl.length){const Zr=[];vl.forEach(vi=>{Zr.push(function Ic(){return new c.wOt(3505,!1)}())}),Iu.forEach(vi=>vi.destroy()),this.reportError(Zr)}const xa=new Map,Xa=new Map;te.forEach(Zr=>{const vi=Zr.element;_.has(vi)&&(Xa.set(vi,vi),this._beforeAnimationBuild(Zr.player.namespaceId,Zr.instruction,xa))}),D.forEach(Zr=>{const vi=Zr.element;this._getPreviousPlayers(vi,!1,Zr.namespaceId,Zr.triggerName,null).forEach(xo=>{fa(xa,vi,[]).push(xo),xo.destroy()})});const Sl=Ai.filter(Zr=>kd(Zr,Xe,yt)),Bl=new Map;kf(Bl,this.driver,ho,yt,Ar.kp).forEach(Zr=>{kd(Zr,Xe,yt)&&Sl.push(Zr)});const fd=new Map;nr.forEach((Zr,vi)=>{kf(fd,this.driver,new Set(Zr),Xe,Ar.FX)}),Sl.forEach(Zr=>{const vi=Bl.get(Zr),Ti=fd.get(Zr);Bl.set(Zr,new Map([...vi?.entries()??[],...Ti?.entries()??[]]))});const ng=[],Cp=[],sv={};te.forEach(Zr=>{const{element:vi,player:Ti,instruction:xo}=Zr;if(_.has(vi)){if(dn.has(vi))return Ti.onDestroy(()=>Dr(vi,xo.toStyles)),Ti.disabled=!0,Ti.overrideTotalTime(xo.totalTime),void D.push(Ti);let Ca=sv;if(Xa.size>1){let ol=vi;const Ou=[];for(;ol=ol.parentNode;){const xs=Xa.get(ol);if(xs){Ca=xs;break}Ou.push(ol)}Ou.forEach(xs=>Xa.set(xs,Ca))}const ta=this._buildAnimation(Ti.namespaceId,xo,xa,W,fd,Bl);if(Ti.setRealPlayer(ta),Ca===sv)ng.push(Ti);else{const ol=this.playersByElement.get(Ca);ol&&ol.length&&(Ti.parentPlayer=Si(ol)),D.push(Ti)}}else Gr(vi,xo.fromStyles),Ti.onDestroy(()=>Dr(vi,xo.toStyles)),Cp.push(Ti),dn.has(vi)&&D.push(Ti)}),Cp.forEach(Zr=>{const vi=W.get(Zr.element);if(vi&&vi.length){const Ti=Si(vi);Zr.setRealPlayer(Ti)}}),D.forEach(Zr=>{Zr.parentPlayer?Zr.syncPlayerEvents(Zr.parentPlayer):Zr.destroy()});for(let Zr=0;Zr!ta.destroyed);Ca.length?Md(this,vi,Ca):this.processLeaveNode(vi)}return Ai.length=0,ng.forEach(Zr=>{this.players.push(Zr),Zr.onDone(()=>{Zr.destroy();const vi=this.players.indexOf(Zr);this.players.splice(vi,1)}),Zr.play()}),ng}afterFlush(m){this._flushFns.push(m)}afterFlushAnimationsDone(m){this._whenQuietFns.push(m)}_getPreviousPlayers(m,d,_,D,W){let te=[];if(d){const be=this.playersByQueriedElement.get(m);be&&(te=be)}else{const be=this.playersByElement.get(m);if(be){const Xe=!W||W==Yu;be.forEach(yt=>{yt.queued||!Xe&&yt.triggerName!=D||te.push(yt)})}}return(_||D)&&(te=te.filter(be=>!(_&&_!=be.namespaceId||D&&D!=be.triggerName))),te}_beforeAnimationBuild(m,d,_){const W=d.element,te=d.isRemovalTransition?void 0:m,be=d.isRemovalTransition?void 0:d.triggerName;for(const Xe of d.timelines){const yt=Xe.element,dn=yt!==W,yn=fa(_,yt,[]);this._getPreviousPlayers(yt,dn,te,be,d.toState).forEach(nr=>{const mr=nr.getRealPlayer();mr.beforeDestroy&&mr.beforeDestroy(),nr.destroy(),yn.push(nr)})}Gr(W,d.fromStyles)}_buildAnimation(m,d,_,D,W,te){const be=d.triggerName,Xe=d.element,yt=[],dn=new Set,yn=new Set,_r=d.timelines.map(mr=>{const ti=mr.element;dn.add(ti);const Ai=ti[Ka];if(Ai&&Ai.removedBeforeQueried)return new Ar.sf(mr.duration,mr.delay);const ko=ti!==Xe,ho=function rc(v){const m=[];return gu(v,m),m}((_.get(ti)||Tf).map(xa=>xa.getRealPlayer())).filter(xa=>!!xa.element&&xa.element===ti),Ea=W.get(ti),ea=te.get(ti),Iu=Nl(this._normalizer,mr.keyframes,Ea,ea),vl=this._buildPlayer(mr,Iu,ho);if(mr.subTimeline&&D&&yn.add(ti),ko){const xa=new am(m,be,ti);xa.setRealPlayer(vl),yt.push(xa)}return vl});yt.forEach(mr=>{fa(this.playersByQueriedElement,mr.element,[]).push(mr),mr.onDone(()=>function Dh(v,m,d){let _=v.get(m);if(_){if(_.length){const D=_.indexOf(d);_.splice(D,1)}0==_.length&&v.delete(m)}return _}(this.playersByQueriedElement,mr.element,mr))}),dn.forEach(mr=>ws(mr,ir));const nr=Si(_r);return nr.onDestroy(()=>{dn.forEach(mr=>Fc(mr,ir)),Dr(Xe,d.toStyles)}),yn.forEach(mr=>{fa(D,mr,[]).push(nr)}),nr}_buildPlayer(m,d,_){return d.length>0?this.driver.animate(m.element,d,m.duration,m.delay,m.easing,_):new Ar.sf(m.duration,m.delay)}}class am{namespaceId;triggerName;element;_player=new Ar.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(m,d,_){this.namespaceId=m,this.triggerName=d,this.element=_}setRealPlayer(m){this._containsRealPlayer||(this._player=m,this._queuedCallbacks.forEach((d,_)=>{d.forEach(D=>Ra(m,_,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(m.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(m){this.totalTime=m}syncPlayerEvents(m){const d=this._player;d.triggerCallback&&m.onStart(()=>d.triggerCallback("start")),m.onDone(()=>this.finish()),m.onDestroy(()=>this.destroy())}_queueEvent(m,d){fa(this._queuedCallbacks,m,[]).push(d)}onDone(m){this.queued&&this._queueEvent("done",m),this._player.onDone(m)}onStart(m){this.queued&&this._queueEvent("start",m),this._player.onStart(m)}onDestroy(m){this.queued&&this._queueEvent("destroy",m),this._player.onDestroy(m)}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(m){this.queued||this._player.setPosition(m)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(m){const d=this._player;d.triggerCallback&&d.triggerCallback(m)}}function Qo(v){return v&&1===v.nodeType}function Td(v,m){const d=v.style.display;return v.style.display=m??"none",d}function kf(v,m,d,_,D){const W=[];d.forEach(Xe=>W.push(Td(Xe)));const te=[];_.forEach((Xe,yt)=>{const dn=new Map;Xe.forEach(yn=>{const _r=m.computeStyle(yt,yn,D);dn.set(yn,_r),(!_r||0==_r.length)&&(yt[Ka]=Dd,te.push(yt))}),v.set(yt,dn)});let be=0;return d.forEach(Xe=>Td(Xe,W[be++])),te}function Sh(v,m){const d=new Map;if(v.forEach(be=>d.set(be,[])),0==m.length)return d;const D=new Set(m),W=new Map;function te(be){if(!be)return 1;let Xe=W.get(be);if(Xe)return Xe;const yt=be.parentNode;return Xe=d.has(yt)?yt:D.has(yt)?1:te(yt),W.set(be,Xe),Xe}return m.forEach(be=>{const Xe=te(be);1!==Xe&&d.get(Xe).push(be)}),d}function ws(v,m){v.classList?.add(m)}function Fc(v,m){v.classList?.remove(m)}function Md(v,m,d){Si(d).onDone(()=>v.processLeaveNode(m))}function gu(v,m){for(let d=0;dD.add(W)):m.set(v,_),d.delete(v),!0}class ic{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(m,d)=>{};constructor(m,d,_){this._driver=d,this._normalizer=_,this._transitionEngine=new sm(m.body,d,_),this._timelineEngine=new om(m.body,d,_),this._transitionEngine.onRemovalComplete=(D,W)=>this.onRemovalComplete(D,W)}registerTrigger(m,d,_,D,W){const te=m+"-"+D;let be=this._triggerCache[te];if(!be){const Xe=[],dn=ju(this._driver,W,Xe,[]);if(Xe.length)throw function gd(){return new c.wOt(3404,!1)}();be=function pu(v,m,d){return new Fs(v,m,d)}(D,dn,this._normalizer),this._triggerCache[te]=be}this._transitionEngine.registerTrigger(d,D,be)}register(m,d){this._transitionEngine.register(m,d)}destroy(m,d){this._transitionEngine.destroy(m,d)}onInsert(m,d,_,D){this._transitionEngine.insertNode(m,d,_,D)}onRemove(m,d,_){this._transitionEngine.removeNode(m,d,_)}disableAnimations(m,d){this._transitionEngine.markElementAsDisabled(m,d)}process(m,d,_,D){if("@"==_.charAt(0)){const[W,te]=_d(_);this._timelineEngine.command(W,d,te,D)}else this._transitionEngine.trigger(m,d,_,D)}listen(m,d,_,D,W){if("@"==_.charAt(0)){const[te,be]=_d(_);return this._timelineEngine.listen(te,d,be,W)}return this._transitionEngine.listen(m,d,_,D,W)}flush(m=-1){this._transitionEngine.flush(m)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(m){this._transitionEngine.afterFlushAnimationsDone(m)}}let Th=(()=>{class v{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(d,_,D){this._element=d,this._startStyles=_,this._endStyles=D;let W=v.initialStylesByElement.get(d);W||v.initialStylesByElement.set(d,W=new Map),this._initialStyles=W}start(){this._state<1&&(this._startStyles&&Dr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dr(this._element,this._initialStyles),this._endStyles&&(Dr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(v.initialStylesByElement.delete(this._element),this._startStyles&&(Gr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gr(this._element,this._endStyles),this._endStyles=null),Dr(this._element,this._initialStyles),this._state=3)}}return v})();function Mh(v){let m=null;return v.forEach((d,_)=>{(function oc(v){return"display"===v||"position"===v})(_)&&(m=m||new Map,m.set(_,d))}),m}class _u{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(m,d,_,D){this.element=m,this.keyframes=d,this.options=_,this._specialStyles=D,this._duration=_.duration,this._delay=_.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(m=>m()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const m=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,m,this.options),this._finalKeyframe=m.length?m[m.length-1]:new Map;const d=()=>this._onFinish();this.domPlayer.addEventListener("finish",d),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",d)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(m){const d=[];return m.forEach(_=>{d.push(Object.fromEntries(_))}),d}_triggerWebAnimation(m,d,_){return m.animate(this._convertKeyframesToObject(d),_)}onStart(m){this._originalOnStartFns.push(m),this._onStartFns.push(m)}onDone(m){this._originalOnDoneFns.push(m),this._onDoneFns.push(m)}onDestroy(m){this._onDestroyFns.push(m)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(m=>m()),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(m=>m()),this._onDestroyFns=[])}setPosition(m){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=m*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const m=new Map;this.hasStarted()&&this._finalKeyframe.forEach((_,D)=>{"offset"!==D&&m.set(D,this._finished?_:Mo(this.element,D))}),this.currentSnapshot=m}triggerCallback(m){const d="start"===m?this._onStartFns:this._onDoneFns;d.forEach(_=>_()),d.length=0}}class Od{validateStyleProperty(m){return!0}validateAnimatableStyleProperty(m){return!0}containsElement(m,d){return O(m,d)}getParentElement(m){return fh(m)}query(m,d,_){return P(m,d,_)}computeStyle(m,d,_){return Mo(m,d)}animate(m,d,_,D,W,te=[]){const Xe={duration:_,delay:D,fill:0==D?"both":"forwards"};W&&(Xe.easing=W);const yt=new Map,dn=te.filter(nr=>nr instanceof _u);(function jr(v,m){return 0===v||0===m})(_,D)&&dn.forEach(nr=>{nr.currentSnapshot.forEach((mr,ti)=>yt.set(ti,mr))});let yn=function Or(v){return v.length?v[0]instanceof Map?v:v.map(m=>new Map(Object.entries(m))):[]}(d).map(nr=>new Map(nr));yn=function Hi(v,m,d){if(d.size&&m.length){let _=m[0],D=[];if(d.forEach((W,te)=>{_.has(te)||D.push(te),_.set(te,W)}),D.length)for(let W=1;Wte.set(be,Mo(v,be)))}}return m}(m,yn,yt);const _r=function Ec(v,m){let d=null,_=null;return Array.isArray(m)&&m.length?(d=Mh(m[0]),m.length>1&&(_=Mh(m[m.length-1]))):m instanceof Map&&(d=Mh(m)),d||_?new Th(v,d,_):null}(m,yn);return new _u(m,yn,Xe,_r)}}const Qu="@.disabled";class kh{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(m,d,_,D){this.namespaceId=m,this.delegate=d,this.engine=_,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(m){this.delegate.destroyNode?.(m)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(m,d){return this.delegate.createElement(m,d)}createComment(m){return this.delegate.createComment(m)}createText(m){return this.delegate.createText(m)}appendChild(m,d){this.delegate.appendChild(m,d),this.engine.onInsert(this.namespaceId,d,m,!1)}insertBefore(m,d,_,D=!0){this.delegate.insertBefore(m,d,_),this.engine.onInsert(this.namespaceId,d,m,D)}removeChild(m,d,_){this.parentNode(d)&&this.engine.onRemove(this.namespaceId,d,this.delegate)}selectRootElement(m,d){return this.delegate.selectRootElement(m,d)}parentNode(m){return this.delegate.parentNode(m)}nextSibling(m){return this.delegate.nextSibling(m)}setAttribute(m,d,_,D){this.delegate.setAttribute(m,d,_,D)}removeAttribute(m,d,_){this.delegate.removeAttribute(m,d,_)}addClass(m,d){this.delegate.addClass(m,d)}removeClass(m,d){this.delegate.removeClass(m,d)}setStyle(m,d,_,D){this.delegate.setStyle(m,d,_,D)}removeStyle(m,d,_){this.delegate.removeStyle(m,d,_)}setProperty(m,d,_){"@"==d.charAt(0)&&d==Qu?this.disableAnimations(m,!!_):this.delegate.setProperty(m,d,_)}setValue(m,d){this.delegate.setValue(m,d)}listen(m,d,_){return this.delegate.listen(m,d,_)}disableAnimations(m,d){this.engine.disableAnimations(m,d)}}class os extends kh{factory;constructor(m,d,_,D,W){super(d,_,D,W),this.factory=m,this.namespaceId=d}setProperty(m,d,_){"@"==d.charAt(0)?"."==d.charAt(1)&&d==Qu?this.disableAnimations(m,_=void 0===_||!!_):this.engine.process(this.namespaceId,m,d.slice(1),_):this.delegate.setProperty(m,d,_)}listen(m,d,_){if("@"==d.charAt(0)){const D=function Of(v){switch(v){case"body":return document.body;case"document":return document;case"window":return window;default:return v}}(m);let W=d.slice(1),te="";return"@"!=W.charAt(0)&&([W,te]=function Ih(v){const m=v.indexOf(".");return[v.substring(0,m),v.slice(m+1)]}(W)),this.engine.listen(this.namespaceId,D,W,te,be=>{this.factory.scheduleListenerCallback(be._data||-1,_,be)})}return this.delegate.listen(m,d,_)}}class um{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(m,d,_){this.delegate=m,this.engine=d,this._zone=_,d.onRemovalComplete=(D,W)=>{W?.removeChild(null,D)}}createRenderer(m,d){const D=this.delegate.createRenderer(m,d);if(!m||!d?.data?.animation){const yt=this._rendererCache;let dn=yt.get(D);return dn||(dn=new kh("",D,this.engine,()=>yt.delete(D)),yt.set(D,dn)),dn}const W=d.id,te=d.id+"-"+this._currentId;this._currentId++,this.engine.register(te,m);const be=yt=>{Array.isArray(yt)?yt.forEach(be):this.engine.registerTrigger(W,te,m,yt.name,yt)};return d.data.animation.forEach(be),new os(this,te,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(m,d,_){if(m>=0&&md(_));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(W=>{const[te,be]=W;te(be)}),this._animationCallbacksBuffer=[]})}),D.push([d,_])}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 vu=[{provide:$e,useFactory:function Oh(){return new qs}},{provide:ic,useClass:(()=>{class v extends ic{constructor(d,_,D){super(d,_,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(_){return new(_||v)(c.KVO(st.qQ),c.KVO(Ce),c.KVO($e))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})()},{provide:c._9s,useFactory:function Nf(v,m,d){return new um(v,m,d)},deps:[i.B7,ic,c.SKi]}],Rh=[{provide:Ce,useFactory:()=>new Od},{provide:c.bc$,useValue:"BrowserAnimations"},...vu];var Zu=n(6381),yu=n(909),$g=n(3569),ml=n(8447),Pf=n(850);const bu=new S.c(Pf.l);var wu=n(7509),Dc=n(1787),Os=n(7947),Nh=n(1642),Rd=n(1126),Ff=n(7225),qu=n(5351);const Ju={connector:()=>new ml.B};function Lh(v,m=Ju){const{connector:d}=m;return(0,qu.N)((_,D)=>{const W=d();(0,Ff.Tg)(v(function hm(v){return new S.c(m=>v.subscribe(m))}(W))).subscribe(D),D.add(_.subscribe(W))})}var Eu=n(2040);const sc="Service workers are disabled or not supported by this browser";class xu{serviceWorker;worker;registration;events;constructor(m){if(this.serviceWorker=m,m){const _=(0,yu.R)(m,"controllerchange").pipe((0,Os.T)(()=>m.controller)),D=(0,Zu.v)(()=>(0,k.of)(m.controller)),W=(0,$g.x)(D,_);this.worker=W.pipe((0,lt.p)(dn=>!!dn)),this.registration=this.worker.pipe((0,pe.n)(()=>m.getRegistration()));const yt=(0,yu.R)(m,"message").pipe((0,Os.T)(dn=>dn.data)).pipe((0,lt.p)(dn=>dn&&dn.type)).pipe(function Bc(v){return v?m=>Lh(v)(m):m=>function ed(v,m){const d=(0,Rd.T)(v)?v:()=>v;return(0,Rd.T)(m)?Lh(m,{connector:d}):_=>new Nh.G(_,d)}(new ml.B)(m)}());yt.connect(),this.events=yt}else this.worker=this.events=this.registration=function td(v){return(0,Zu.v)(()=>(0,T.$)(new Error(v)))}(sc)}postMessage(m,d){return this.worker.pipe((0,M.s)(1),(0,Eu.M)(_=>{_.postMessage({action:m,...d})})).toPromise().then(()=>{})}postMessageWithOperation(m,d,_){const D=this.waitForOperationCompleted(_),W=this.postMessage(m,d);return Promise.all([W,D]).then(([,te])=>te)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(m){let d;return d="string"==typeof m?_=>_.type===m:_=>m.includes(_.type),this.events.pipe((0,lt.p)(d))}nextEventOfType(m){return this.eventsOfType(m).pipe((0,M.s)(1))}waitForOperationCompleted(m){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,lt.p)(d=>d.nonce===m),(0,M.s)(1),(0,Os.T)(d=>{if(void 0!==d.result)return d.result;throw new Error(d.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let Bf=(()=>{class v{sw;messages;notificationClicks;subscription;get isEnabled(){return this.sw.isEnabled}pushManager=null;subscriptionChanges=new ml.B;constructor(d){if(this.sw=d,!d.isEnabled)return this.messages=bu,this.notificationClicks=bu,void(this.subscription=bu);this.messages=this.sw.eventsOfType("PUSH").pipe((0,Os.T)(D=>D.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,Os.T)(D=>D.data)),this.pushManager=this.sw.registration.pipe((0,Os.T)(D=>D.pushManager));const _=this.pushManager.pipe((0,pe.n)(D=>D.getSubscription()));this.subscription=(0,wu.h)(_,this.subscriptionChanges)}requestSubscription(d){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(sc));const _={userVisibleOnly:!0};let D=this.decodeBase64(d.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),W=new Uint8Array(new ArrayBuffer(D.length));for(let te=0;tete.subscribe(_)),(0,M.s)(1)).toPromise().then(te=>(this.subscriptionChanges.next(te),te))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,M.s)(1),(0,pe.n)(_=>{if(null===_)throw new Error("Not subscribed to push notifications.");return _.unsubscribe().then(D=>{if(!D)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(sc))}decodeBase64(d){return atob(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(xu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})(),Nd=(()=>{class v{sw;versionUpdates;unrecoverable;get isEnabled(){return this.sw.isEnabled}constructor(d){if(this.sw=d,!d.isEnabled)return this.versionUpdates=bu,void(this.unrecoverable=bu);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(sc));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:d},d)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(sc));const d=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:d},d)}static \u0275fac=function(_){return new(_||v)(c.KVO(xu))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Ph=new c.nKC("");function Fh(v,m,d,_){return()=>{if(!(0,st.UE)(_)||!("serviceWorker"in navigator)||!1===d.enabled)return;const D=v.get(c.SKi),W=v.get(c.o8S);let te;if(D.runOutsideAngular(()=>{const be=navigator.serviceWorker,Xe=()=>be.controller?.postMessage({action:"INITIALIZE"});be.addEventListener("controllerchange",Xe),W.onDestroy(()=>{be.removeEventListener("controllerchange",Xe)})}),"function"==typeof d.registrationStrategy)te=d.registrationStrategy();else{const[be,...Xe]=(d.registrationStrategy||"registerWhenStable:30000").split(":");switch(be){case"registerImmediately":te=(0,k.of)(null);break;case"registerWithDelay":te=Uf(+Xe[0]||0);break;case"registerWhenStable":const yt=(0,Dc.H)(v.get(c.o8S).whenStable());te=Xe[0]?(0,wu.h)(yt,Uf(+Xe[0])):yt;break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${d.registrationStrategy}`)}}D.runOutsideAngular(()=>te.pipe((0,M.s)(1)).subscribe(()=>navigator.serviceWorker.register(m,{scope:d.scope}).catch(be=>console.error("Service worker registration failed with:",be))))}}function Uf(v){return(0,k.of)(null).pipe((0,_e.c)(v))}function $f(v,m){return new xu((0,st.UE)(m)&&!1!==v.enabled?navigator.serviceWorker:void 0)}class ga{enabled;scope;registrationStrategy}var Uc=n(2653),Vg=n(5903),fm=n(7178),va=n(8249),ac=n(6627),Uh=n(6564);function rd(v){return v&&v.constructor&&"function"==typeof v.constructor.isBuffer&&v.constructor.isBuffer(v)}function jf(v){return v}function $h(v,m){const d=(m=m||{}).delimiter||".",_=m.maxDepth,D=m.transformKey||jf,W={};return function te(be,Xe,yt){yt=yt||1,Object.keys(be).forEach(function(dn){const yn=be[dn],_r=m.safe&&Array.isArray(yn),nr=Object.prototype.toString.call(yn),mr=rd(yn),ti="[object Object]"===nr||"[object Array]"===nr,Ai=Xe?Xe+d+D(dn):D(dn);if(!_r&&!mr&&ti&&Object.keys(yn).length&&(!m.maxDepth||yt<_))return te(yn,Ai,yt+1);W[Ai]=yn})}(v),W}function Ld(v,m){const d=(m=m||{}).delimiter||".",_=m.overwrite||!1,D=m.transformKey||jf,W={};if(rd(v)||"[object Object]"!==Object.prototype.toString.call(v))return v;function be(dn){const yn=Number(dn);return isNaN(yn)||-1!==dn.indexOf(".")||m.object?dn:yn}return v=Object.keys(v).reduce(function(dn,yn){const _r=Object.prototype.toString.call(v[yn]);return"[object Object]"!==_r&&"[object Array]"!==_r||function yt(dn){const yn=Object.prototype.toString.call(dn);return!dn||("[object Array]"===yn?!dn.length:"[object Object]"===yn?!Object.keys(dn).length:void 0)}(v[yn])?(dn[yn]=v[yn],dn):function Xe(dn,yn,_r){return Object.keys(_r).reduce(function(nr,mr){return nr[dn+d+mr]=_r[mr],nr},yn)}(yn,dn,$h(v[yn],m))},{}),Object.keys(v).forEach(function(dn){const yn=dn.split(d).map(D);let _r=be(yn.shift()),nr=be(yn[0]),mr=W;for(;void 0!==nr;){if("__proto__"===_r)return;const ti=Object.prototype.toString.call(mr[_r]),Ai="[object Object]"===ti||"[object Array]"===ti;if(!_&&!Ai&&typeof mr[_r]<"u")return;(_&&!Ai||!_&&null==mr[_r])&&(mr[_r]="number"!=typeof nr||m.object?{}:[]),mr=mr[_r],yn.length>0&&(_r=be(yn.shift()),nr=be(yn[0]))}mr[_r]=Ld(v[dn],m)}),W}class Vf{translations;constructor(m){this.translations=m}getTranslation(m){return(0,k.of)(this.translations.get(m)||{})}}const Hf=new c.nKC("TRANSLOCO_LOADER");function jh(v,m){return v&&(Object.prototype.hasOwnProperty.call(v,m)?v[m]:m.split(".").reduce((d,_)=>d?.[_],v))}function Wf(v){return v?Array.isArray(v)?v.length:id(v)?Object.keys(v).length:v?v.length:0:0}function lc(v){return"string"==typeof v}function id(v){return!!v&&"object"==typeof v&&!Array.isArray(v)}function Cu(v){return null==v}function Hh(v){return!1===Cu(v)}function Wh(v){return v&&"string"==typeof v.scope}function zh(v){return $h(v,{safe:!0})}const $c=new c.nKC("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>jc}),jc={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function Yf(v={}){return{...jc,...v,missingHandler:{...jc.missingHandler,...v.missingHandler},flatten:{...jc.flatten,...v.flatten}}}const Kh=new c.nKC("TRANSLOCO_TRANSPILER");let Qf=(()=>{class v{interpolationMatcher;constructor(d){this.interpolationMatcher=function Gh(v){const[m,d]=v.interpolation;return new RegExp(`${m}(.*?)${d}`,"g")}(d??jc)}transpile(d,_={},D,W){return lc(d)?d.replace(this.interpolationMatcher,(te,be)=>(be=be.trim(),Hh(_[be])?_[be]:Hh(D[be])?this.transpile(D[be],_,D,W):"")):(_&&(id(d)?d=this.handleObject(d,_,D,W):Array.isArray(d)&&(d=this.handleArray(d,_,D,W))),d)}handleObject(d,_={},D,W){let te=d;return Object.keys(_).forEach(be=>{const Xe=jh(te,be),yt=jh(_,be),dn=this.transpile(Xe,yt,D,W);te=function pm(v,m,d){v={...v};const _=m.split("."),D=_.length-1;return _.reduce((W,te,be)=>(W[te]=be===D?d:Array.isArray(W[te])?W[te].slice():{...W[te]},W&&W[te]),v),v}(te,be,dn)}),te}handleArray(d,_={},D,W){return d.map(te=>this.transpile(te,_,D,W))}static \u0275fac=function(_){return new(_||v)(c.KVO($c,8))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const tl=new c.nKC("TRANSLOCO_MISSING_HANDLER");let Du=(()=>{class v{handle(d,_){return _.missingHandler.logMissingKey&&!_.prodMode&&console.warn(`%c Missing translation for '${d}'`,"font-size: 12px; color: red"),d}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const Yh=new c.nKC("TRANSLOCO_INTERCEPTOR");let od=(()=>{class v{preSaveTranslation(d){return d}preSaveTranslationKey(d,_){return _}static \u0275fac=function(_){return new(_||v)};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();const b=new c.nKC("TRANSLOCO_FALLBACK_STRATEGY");let on,E=(()=>{class v{userConfig;constructor(d){this.userConfig=d}getNextLangs(){const d=this.userConfig.fallbackLang;if(!d)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(d)?d:[d]}static \u0275fac=function(_){return new(_||v)(c.KVO($c))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac})}return v})();function A(v){if(!v)return"";const m=v.split("/");return m.pop(),m.join("/")}function j(v){return v?v.split("/").pop():""}function wt(v){return{scope:A(v)||null,langName:j(v)}}function Pt(v){const{path:m,inlineLoader:d,mainLoader:_,data:D}=v;if(d){if(!1===function Kf(v){return"function"==typeof v}(d[m]))throw`You're using an inline loader but didn't provide a loader for ${m}`;return d[m]().then(te=>te.default?te.default:te)}return _.getTranslation(m,D)}let Yt=(()=>{class v{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 ml.B;events$=this.events.asObservable();config;constructor(d,_,D,W,te,be){this.loader=d,this.parser=_,this.missingHandler=D,this.interceptor=W,this.fallbackStrategy=be,this.loader||(this.loader=new Vf(this.translations)),on=this,this.config=JSON.parse(JSON.stringify(te)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new Le.t(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(Xe=>{"translationLoadSuccess"===Xe.type&&Xe.wasFailure&&this.setActiveLang(Xe.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(d){this.defaultLang=d}getActiveLang(){return this.lang.getValue()}setActiveLang(d){return this.parser.onLangChanged?.(d),this.lang.next(d),this.events.next({type:"langChanged",payload:wt(d)}),this}setAvailableLangs(d){this.availableLangs=d}getAvailableLangs(){return this.availableLangs}load(d,_={}){const D=this.cache.get(d);if(D)return D;let W;const te=this._isLangScoped(d);let be;te&&(be=A(d));const Xe={path:d,mainLoader:this.loader,inlineLoader:_.inlineLoader,data:te?{scope:be}:void 0};if(this.useFallbackTranslation(d)){const dn=te?`${be}/${this.firstFallbackLang}`:this.firstFallbackLang,yn=function Lt({mainLoader:v,path:m,data:d,fallbackPath:_,inlineLoader:D}){return(_?[m,_]:[m]).map(te=>{const be=Pt({path:te,mainLoader:v,inlineLoader:D,data:d});return(0,Dc.H)(be).pipe((0,Os.T)(Xe=>({translation:Xe,lang:te})))})}({...Xe,fallbackPath:dn});W=(0,Uc.p)(yn)}else{const dn=Pt(Xe);W=(0,Dc.H)(dn)}const yt=W.pipe((0,Vg.L)(this.config.failedRetries),(0,Eu.M)(dn=>{Array.isArray(dn)?dn.forEach(yn=>{this.handleSuccess(yn.lang,yn.translation),yn.lang!==d&&this.cache.set(yn.lang,(0,k.of)({}))}):this.handleSuccess(d,dn)}),(0,fm.W)(dn=>(this.config.prodMode||console.error(`Error while trying to load "${d}"`,dn),this.handleFailure(d,_))),(0,va.t)(1));return this.cache.set(d,yt),yt}translate(d,_={},D=this.getActiveLang()){if(!d)return d;const{scope:W,resolveLang:te}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(yt=>this.translate(W?`${W}.${yt}`:yt,_,te));d=W?`${W}.${d}`:d;const be=this.getTranslation(te),Xe=be[d];return Xe?this.parser.transpile(Xe,_,be,d):this._handleMissingKey(d,Xe,_)}selectTranslate(d,_,D,W=!1){let te;const be=(yt,dn)=>this.load(yt,dn).pipe((0,Os.T)(()=>W?this.translateObject(d,_,yt):this.translate(d,_,yt)));if(Cu(D))return this.langChanges$.pipe((0,pe.n)(yt=>be(yt)));if(function gm(v){return Array.isArray(v)&&v.every(Wh)}(D)||Wh(D)){const yt=Array.isArray(D)?D[0]:D;D=yt.scope,te=function Qe(v,m){return function Gf(v){return v&&id(v.loader)}(v)?function Pe(v,m){return Object.keys(v).reduce((d,_)=>(d[`${m}/${_}`]=v[_],d),{})}(v.loader,m):void 0}(yt,yt.scope)}if(this.isLang(D)||this.isScopeWithLang(D))return be(D);const Xe=D;return this.langChanges$.pipe((0,pe.n)(yt=>be(`${Xe}/${yt}`,{inlineLoader:te})))}isScopeWithLang(d){return this.isLang(j(d))}translateObject(d,_={},D=this.getActiveLang()){if(lc(d)||Array.isArray(d)){const{resolveLang:te,scope:be}=this.resolveLangAndScope(D);if(Array.isArray(d))return d.map(dn=>this.translateObject(be?`${be}.${dn}`:dn,_,te));const Xe=this.getTranslation(te),yt=function Xf(v){return Ld(v)}(this.getObjectByKey(Xe,d=be?`${be}.${d}`:d));return function zf(v){return 0===Wf(v)}(yt)?this.translate(d,_,D):this.parser.transpile(yt,_,Xe,d)}const W=[];for(const[te,be]of this.getEntries(d))W.push(this.translateObject(te,be,D));return W}selectTranslateObject(d,_,D){if(lc(d)||Array.isArray(d))return this.selectTranslate(d,_,D,!0);const[[W,te],...be]=this.getEntries(d);return this.selectTranslateObject(W,te,D).pipe((0,Os.T)(Xe=>{const yt=[Xe];for(const[dn,yn]of be)yt.push(this.translateObject(dn,yn,D));return yt}))}getTranslation(d){if(d){if(this.isLang(d))return this.translations.get(d)||{};{const{scope:_,resolveLang:D}=this.resolveLangAndScope(d),W=this.translations.get(D)||{};return this.getObjectByKey(W,_)}}return this.translations}selectTranslation(d){let _=this.langChanges$;if(d){const D=j(d)!==d;_=this.isLang(d)||D?(0,k.of)(d):this.langChanges$.pipe((0,Os.T)(W=>`${d}/${W}`))}return _.pipe((0,pe.n)(D=>this.load(D).pipe((0,Os.T)(()=>this.getTranslation(D)))))}setTranslation(d,_=this.getActiveLang(),D={}){const te={merge:!0,emitChange:!0,...D},be=A(_);let Xe=d;if(be){const nr=this.getMappedScope(be);Xe=zh({[nr]:d})}const yt=be?j(_):_,dn={...te.merge&&this.getTranslation(yt),...Xe},yn=this.config.flatten.aot?dn:zh(dn),_r=this.interceptor.preSaveTranslation(yn,yt);this.translations.set(yt,_r),te.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(d,_,D=this.getActiveLang(),W={}){const te=this.interceptor.preSaveTranslationKey(d,_,D);this.setTranslation({[d]:te},D,{...W,merge:!0})}setFallbackLangForMissingTranslation({fallbackLang:d}){const _=Array.isArray(d)?d[0]:d;d&&this.useFallbackTranslation(_)&&(this.firstFallbackLang=_)}_handleMissingKey(d,_,D){if(this.config.missingHandler.allowEmpty&&""===_)return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;const W=this.translate(d,D,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,W}return this.missingHandler.handle(d,this.getMissingHandlerData(),D)}_isLangScoped(d){return-1===this.getAvailableLangsIds().indexOf(d)}isLang(d){return-1!==this.getAvailableLangsIds().indexOf(d)}_loadDependencies(d,_){const D=j(d);return this._isLangScoped(d)&&!this.isLoadedTranslation(D)?(0,ac.z)([this.load(D),this.load(d,{inlineLoader:_})]):this.load(d,{inlineLoader:_})}_completeScopeWithLang(d){return this._isLangScoped(d)&&!this.isLang(j(d))?`${d}/${this.getActiveLang()}`:d}_setScopeAlias(d,_){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[d]=_}ngOnDestroy(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null),this.cache.clear()}isLoadedTranslation(d){return Wf(this.getTranslation(d))}getAvailableLangsIds(){return lc(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(_=>_.id)}getMissingHandlerData(){return{...this.config,activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang}}useFallbackTranslation(d){return this.config.missingHandler.useFallbackTranslation&&d!==this.firstFallbackLang}handleSuccess(d,_){this.setTranslation(_,d,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:wt(d)}),this.failedLangs.forEach(D=>this.cache.delete(D)),this.failedLangs.clear()}handleFailure(d,_){Cu(_.failedCounter)&&(_.failedCounter=0,_.fallbackLangs||(_.fallbackLangs=this.fallbackStrategy.getNextLangs(d)));const D=d.split("/"),te=_.fallbackLangs[_.failedCounter];if(this.failedLangs.add(d),this.cache.has(te))return this.handleSuccess(te,this.getTranslation(te)),Uh.w;if(!te||te===D[D.length-1]){let yt="Unable to load translation and all the fallback languages";throw D.length>1&&(yt+=", did you misspelled the scope name?"),new Error(yt)}let Xe=te;return D.length>1&&(D[D.length-1]=te,Xe=D.join("/")),_.failedCounter++,this.events.next({type:"translationLoadFailure",payload:wt(d)}),this.load(Xe,_)}getMappedScope(d){const{scopeMapping:_={}}=this.config;return _[d]||function Fd(v){return v.replace(/(?:^\w|[A-Z]|\b\w)/g,(m,d)=>0==d?m.toLowerCase():m.toUpperCase()).replace(/\s+|_|-|\//g,"")}(d)}resolveLangAndScope(d){let D,_=d;if(this._isLangScoped(d)){const W=j(d),te=this.isLang(W);_=te?W:this.getActiveLang(),D=this.getMappedScope(te?A(d):d)}return{scope:D,resolveLang:_}}getObjectByKey(d,_){const D={},W=`${_}.`;for(const te in d)te.startsWith(W)&&(D[te.replace(W,"")]=d[te]);return D}getEntries(d){return d instanceof Map?d.entries():Object.entries(d)}static \u0275fac=function(_){return new(_||v)(c.KVO(Hf,8),c.KVO(Kh),c.KVO(tl),c.KVO(Yh),c.KVO($c),c.KVO(b))};static \u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})();function pr(v){return(0,c.EmA)([{provide:Kh,useClass:v,deps:[$c]}])}function Yr(v){return(0,c.EmA)([{provide:b,useClass:v,deps:[$c]}])}function mi(v){return(0,c.EmA)([{provide:tl,useClass:v}])}function br(v){return(0,c.EmA)([{provide:Yh,useClass:v}])}new c.nKC("TRANSLOCO_LANG"),new c.nKC("TRANSLOCO_LOADING_TEMPLATE"),new c.nKC("TRANSLOCO_SCOPE"),new c.nKC("TRANSLOCO_TEST_LANGS - Available testing languages"),new c.nKC("TRANSLOCO_TEST_OPTIONS - Testing options");var Ga=n(7838);let ba=(()=>{class v{constructor(){this._httpClient=(0,c.WQX)(re.Qq),this._navigation=new Ga.m(1)}get navigation$(){return this._navigation.asObservable()}get(){return this._httpClient.get("api/navigation").pipe((0,Eu.M)(d=>{this._navigation.next(d)}))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})(),Vc=(()=>{class v{constructor(d){this._httpClient=d,this._chat=new Le.t(null),this._chats=new Le.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,Eu.M)(d=>{this._chats.next(d)}))}getChatById(d){return this._httpClient.get("api/apps/chat/chat",{params:{id:d}}).pipe((0,Os.T)(_=>(this._chat.next(_),_)),(0,pe.n)(_=>_?(0,k.of)(_):(0,T.$)("Could not found chat with id of "+d+"!")))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(re.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const cc=new class Po{constructor(m){this.version=m,this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}("0.0.12").full;var wa=n(5424),Zo=n(3022),Hc=n(2322);function $d(v,m){if(1&v&&c.nrm(0,"mat-progress-bar",0),2&v){const d=c.XpG();c.Y8G("mode",d.mode)("value",d.progress)}}let Wc=(()=>{class v{constructor(){this._angorLoadingService=(0,c.WQX)(Ae),this.autoMode=!0,this.progress=0,this.show=!1,this._unsubscribeAll=new ml.B}ngOnChanges(d){"autoMode"in d&&this._angorLoadingService.setAutoMode((0,Zo.he)(d.autoMode.currentValue))}ngOnInit(){this._angorLoadingService.mode$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.mode=d}),this._angorLoadingService.progress$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.progress=d}),this._angorLoadingService.show$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.show=d})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-loading-bar"]],inputs:{autoMode:"autoMode"},exportAs:["angorLoadingBar"],features:[c.OA$],decls:1,vars:1,consts:[[3,"mode","value"]],template:function(_,D){1&_&&c.DNE(0,$d,1,2,"mat-progress-bar",0),2&_&&c.vxM(D.show?0:-1)},dependencies:[Hc.PO,Hc.HM],styles:["angor-loading-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"],encapsulation:2})}}return v})();function Qh(v,m){1&v&&c.nrm(0,"router-outlet")}let Zf=(()=>{class v{constructor(){this._unsubscribeAll=new ml.B}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["empty-layout"]],decls:4,vars:1,consts:[[1,"flex","w-full","flex-auto","flex-col"],[1,"flex","flex-auto","flex-col"]],template:function(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"div",0)(2,"div",1),c.DNE(3,Qh,1,0,"router-outlet"),c.k0s()()),2&_&&(c.R7$(3),c.vxM(3))},dependencies:[Wc,a.n3],encapsulation:2})}}return v})();var _l=n(9471),rl=n(3904),zc=n(7712);function vm(v,m){1&v&&c.nrm(0,"mat-icon",3)}let Ac=(()=>{class v{constructor(){this._document=(0,c.WQX)(st.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(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["angor-fullscreen"]],inputs:{iconTpl:"iconTpl",tooltip:"tooltip"},exportAs:["angorFullscreen"],decls:4,vars:2,consts:[["defaultIconTpl",""],["mat-icon-button","",3,"click","matTooltip"],[3,"ngTemplateOutlet"],["svgIcon","heroicons_outline:arrows-pointing-out"]],template:function(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){return c.eBV(W),c.Njj(D.toggleFullscreen())}),c.eu8(1,2),c.k0s(),c.DNE(2,vm,1,0,"ng-template",null,0,c.C5r)}if(2&_){const W=c.sdS(3);c.Y8G("matTooltip",D.tooltip||"Toggle Fullscreen"),c.R7$(),c.Y8G("ngTemplateOutlet",D.iconTpl||W)}},dependencies:[_l.Hl,_l.iY,zc.uc,zc.oV,st.T3,rl.m_,rl.An],encapsulation:2,changeDetection:0})}}return v})();var Zh=n(3871),ym=n(6192),qh=n(3125);let qf=(()=>{class v{constructor(d){this.relayService=d,this.notificationSubject=new Le.t([]),this.notificationCount=new Le.t(0),this.lastNotificationTimestamp=null,this.initializeNotificationData()}initializeNotificationData(){this.notificationCount.next(this.loadCountFromLocalStorage()),this.lastNotificationTimestamp=this.loadTimestampFromLocalStorage()}loadCountFromLocalStorage(){const d=localStorage.getItem("notificationCount");return d?parseInt(d,10):0}loadTimestampFromLocalStorage(){const d=localStorage.getItem("lastNotificationTimestamp");return d?parseInt(d,10):null}saveNotificationData(d,_){localStorage.setItem("notificationCount",d.toString()),localStorage.setItem("lastNotificationTimestamp",_.toString())}getNotificationObservable(){return this.notificationSubject.asObservable()}getNotificationCount(){return this.notificationCount.asObservable()}loadFilterPreferences(){const d=localStorage.getItem("notificationSettings");return d?JSON.parse(d):[1,3,4,7,9735]}subscribeToNotifications(d){var _=this;return(0,w.A)(function*(){yield _.relayService.ensureConnectedRelays();const D=_.relayService.getPool(),W=_.relayService.getConnectedRelays();if(0===W.length)throw new Error("No connected relays");const te=_.loadTimestampFromLocalStorage(),be=_.loadFilterPreferences();0===be.length&&be.push(1,3,4,7,9735);const Xe={kinds:be,"#p":[d],limit:50,since:te||void 0};return new Promise(yt=>{D.subscribeMany(W,[Xe],{onevent:yn=>_.handleNotificationEvent(yn,d),oneose(){yt()}})})})()}handleNotificationEvent(d,_){if(this.isNotificationEvent(d,_)){const W=new Date(1e3*d.created_at);let te="",be="",Xe="";switch(d.kind){case 1:te="Mention",be="Mentioned you in an event.",Xe="heroicons_outline:at-symbol";break;case 4:te="Private Message",be="Sent a private message.",Xe="heroicons_outline:envelope-open";break;case 9735:te="Zap",be="Received a zap event.",Xe="feather:zap";break;case 3:te="New Follower",be="You have a new follower.",Xe="heroicons_outline:user-plus";break;case 7:te="New Like",be="You have a new Like.",Xe="heroicons_outline:hand-thumb-up";break;default:te="Notification",Xe="heroicons_outline:bell"}const yn=[{id:d.id,icon:Xe,title:te,description:be,time:W,kind:d.kind,read:!1},...this.notificationSubject.value].slice(0,50);this.notificationSubject.next(yn),this.incrementNotificationCount(d.created_at)}}incrementNotificationCount(d){const _=this.notificationCount.value+1;this.notificationCount.next(_),this.saveNotificationData(_,d)}markAllAsRead(){const d=this.notificationSubject.value.map(D=>({...D,read:!0}));this.notificationSubject.next(d),this.notificationCount.next(0);const _=Math.floor(Date.now()/1e3);this.saveNotificationData(0,_)}isNotificationEvent(d,_){return d.tags.some(D=>"p"===D[0]&&D[1]===_)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(qh.b))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Au=n(9666),jd=n(8078);const Jh=["notificationsOrigin"],La=["notificationsPanel"],ay=v=>({unread:v}),Es=(v,m)=>({"bg-gray-400 dark:bg-gray-500 sm:opacity-0 sm:group-hover:opacity-100":v,"bg-primary":m});function ly(v,m){if(1&v&&(c.j41(0,"span",4)(1,"span",6),c.EFF(2),c.k0s()()),2&v){const d=c.XpG();c.R7$(2),c.SpI(" ",d.unreadCount," ")}}function cy(v,m){1&v&&c.eu8(0)}function bm(v,m){if(1&v&&(c.j41(0,"a",23),c.DNE(1,cy,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("href",d.link,c.B4B),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function Hg(v,m){1&v&&c.eu8(0)}function Wg(v,m){if(1&v&&(c.j41(0,"a",24),c.DNE(1,Hg,1,0,"ng-container",25),c.k0s()),2&v){const d=c.XpG(2).$implicit,_=c.sdS(9);c.Y8G("routerLink",d.link),c.R7$(),c.Y8G("ngTemplateOutlet",_)}}function uy(v,m){if(1&v&&c.DNE(0,bm,2,2,"a",23)(1,Wg,2,2,"a",24),2&v){const d=c.XpG().$implicit;c.vxM(d.useRouter?-1:0),c.R7$(),c.vxM(d.useRouter?1:-1)}}function Tw(v,m){1&v&&c.eu8(0)}function zg(v,m){if(1&v&&(c.j41(0,"div",17),c.DNE(1,Tw,1,0,"ng-container",25),c.k0s()),2&v){c.XpG();const d=c.sdS(9);c.R7$(),c.Y8G("ngTemplateOutlet",d)}}function dy(v,m){if(1&v&&(c.j41(0,"div",26),c.nrm(1,"mat-icon",32),c.k0s()),2&v){const d=c.XpG(2).$implicit;c.R7$(),c.Y8G("svgIcon",d.icon)}}function Jf(v,m){if(1&v&&c.nrm(0,"img",27),2&v){const d=c.XpG(2).$implicit;c.Y8G("src",d.image,c.B4B)("alt","Notification image")}}function wm(v,m){if(1&v&&c.nrm(0,"div",29),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.title,c.npT)}}function Em(v,m){if(1&v&&c.nrm(0,"div",30),2&v){const d=c.XpG(2).$implicit;c.Y8G("innerHTML",d.description,c.npT)}}function Vd(v,m){if(1&v&&(c.DNE(0,dy,2,1,"div",26)(1,Jf,1,2,"img",27),c.j41(2,"div",28),c.DNE(3,wm,1,1,"div",29)(4,Em,1,1,"div",30),c.j41(5,"div",31),c.EFF(6),c.nI1(7,"date"),c.k0s()()),2&v){const d=c.XpG().$implicit;c.vxM(d.icon&&!d.image?0:-1),c.R7$(),c.vxM(d.image?1:-1),c.R7$(2),c.vxM(d.title?3:-1),c.R7$(),c.vxM(d.description?4:-1),c.R7$(2),c.SpI(" ",c.i5U(7,5,d.time,"MMM dd, h:mm a")," ")}}function ep(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",16),c.DNE(1,uy,2,2)(2,zg,2,1,"div",17),c.j41(3,"div",18)(4,"button",19),c.bIt("click",function(){const D=c.eBV(d).$implicit,W=c.XpG(2);return c.Njj(W.toggleRead(D))}),c.nrm(5,"span",20),c.k0s(),c.j41(6,"button",21),c.bIt("click",function(){const D=c.eBV(d).$implicit,W=c.XpG(2);return c.Njj(W.deleteNotification(D))}),c.nrm(7,"mat-icon",22),c.k0s()()(),c.DNE(8,Vd,8,8,"ng-template",null,2,c.C5r)}if(2&v){const d=m.$implicit;c.Y8G("ngClass",c.eq3(7,ay,!d.read)),c.R7$(),c.vxM(d.link?1:-1),c.R7$(),c.vxM(d.link?-1:2),c.R7$(2),c.Y8G("matTooltip",d.read?"Mark as unread":"Mark as read"),c.R7$(),c.Y8G("ngClass",c.l_i(9,Es,d.read,!d.read)),c.R7$(),c.Y8G("matTooltip","Remove"),c.R7$(),c.Y8G("svgIcon","heroicons_solid:x-mark")}}function tp(v,m){1&v&&(c.j41(0,"div",15)(1,"div",33),c.nrm(2,"mat-icon",34),c.k0s(),c.j41(3,"div",35),c.EFF(4," No notifications "),c.k0s(),c.j41(5,"div",36),c.EFF(6," When you have notifications, they will appear here. "),c.k0s()()),2&v&&(c.R7$(2),c.Y8G("svgIcon","heroicons_outline:bell"))}function Hd(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",7)(1,"div",8)(2,"div",9)(3,"button",3),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.closePanel())}),c.nrm(4,"mat-icon",10),c.k0s()(),c.j41(5,"div",11),c.EFF(6,"Notifications"),c.k0s(),c.j41(7,"div",12)(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.markAllAsRead())}),c.nrm(9,"mat-icon",10),c.k0s()()(),c.j41(10,"div",14),c.Z7z(11,ep,10,12,null,null,c.BUC().trackByFn,!0),c.DNE(13,tp,7,1,"div",15),c.k0s()()}if(2&v){const d=c.XpG();c.R7$(4),c.Y8G("svgIcon","heroicons_solid:x-mark"),c.R7$(4),c.Y8G("matTooltip","Mark all as read")("disabled",0===d.unreadCount),c.R7$(),c.Y8G("svgIcon","heroicons_solid:envelope-open"),c.R7$(2),c.Dyx(d.notifications),c.R7$(2),c.vxM(d.notifications&&d.notifications.length?-1:13)}}let np=(()=>{class v{constructor(d,_,D,W,te){this._notificationService=d,this._changeDetectorRef=_,this._overlay=D,this._viewContainerRef=W,this._signerService=te,this.notifications=[],this.unreadCount=0,this._unsubscribeAll=new ml.B}ngOnInit(){const d=this._signerService.getPublicKey();this._notificationService.subscribeToNotifications(d).then(()=>{this._notificationService.getNotificationObservable().pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(_=>{this.notifications=_,this._changeDetectorRef.markForCheck()}),this._notificationService.getNotificationCount().pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(_=>{this.unreadCount=_,this._changeDetectorRef.markForCheck()})})}deleteNotification(d){throw new Error("Method not implemented.")}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}openPanel(){!this._notificationsPanel||!this._notificationsOrigin||(this._overlayRef||this._createOverlay(),this._overlayRef.attach(new ym.VA(this._notificationsPanel,this._viewContainerRef)))}closePanel(){this._overlayRef&&this._overlayRef.detach()}markAllAsRead(){this._notificationService.markAllAsRead()}toggleRead(d){d.read=!d.read}trackByFn(d,_){return _.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(_){return new(_||v)(c.rXU(qf),c.rXU(c.gRc),c.rXU(Au.hJ),c.rXU(c.c1b),c.rXU(jd.A))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["notifications"]],viewQuery:function(_,D){if(1&_&&(c.GBs(Jh,5),c.GBs(La,5)),2&_){let W;c.mGM(W=c.lsd())&&(D._notificationsOrigin=W.first),c.mGM(W=c.lsd())&&(D._notificationsPanel=W.first)}},exportAs:["notifications"],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(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",3,0),c.bIt("click",function(){return c.eBV(W),c.Njj(D.openPanel())}),c.DNE(2,ly,3,1,"span",4),c.nrm(3,"mat-icon",5),c.k0s(),c.DNE(4,Hd,14,5,"ng-template",null,1,c.C5r)}2&_&&(c.R7$(2),c.vxM(D.unreadCount>0?2:-1),c.R7$(),c.Y8G("svgIcon","heroicons_outline:bell"))},dependencies:[_l.Hl,_l.iY,rl.m_,rl.An,zc.uc,zc.oV,st.YU,st.T3,a.Wk,st.vh],encapsulation:2,changeDetection:0})}}return v})();var xm=n(799),Su=n(936),Cm=n(8108),Kc=n(8559),Dm=n(5710),hy=n(2944),il=n(5919),Wd=n(6520),Mw=n(593);const Kg=["panel"],fy=["*"];function Gg(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",1,0),c.bIt("@panelAnimation.done",function(D){c.eBV(d);const W=c.XpG();return c.Njj(W._animationDone.next(D))}),c.SdG(2),c.k0s()}if(2&v){const d=m.id,_=c.XpG();c.HbH(_._classList),c.AVh("mat-mdc-autocomplete-visible",_.showPanel)("mat-mdc-autocomplete-hidden",!_.showPanel)("mat-primary","primary"===_._color)("mat-accent","accent"===_._color)("mat-warn","warn"===_._color),c.Y8G("id",_.id)("@panelAnimation",_.isOpen?"visible":"hidden"),c.BMQ("aria-label",_.ariaLabel||null)("aria-labelledby",_._getPanelAriaLabelledby(d))}}const kw=(0,Ar.hZ)("panelAnimation",[(0,Ar.wk)("void, hidden",(0,Ar.iF)({opacity:0,transform:"scaleY(0.8)"})),(0,Ar.kY)(":enter, hidden => visible",[(0,Ar.Os)([(0,Ar.i0)("0.03s linear",(0,Ar.iF)({opacity:1})),(0,Ar.i0)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Ar.iF)({transform:"scaleY(1)"}))])]),(0,Ar.kY)(":leave, visible => hidden",[(0,Ar.i0)("0.075s linear",(0,Ar.iF)({opacity:0}))])]);class Xg{source;option;constructor(m,d){this.source=m,this.option=d}}const Yg=new c.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Qg(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let Tu=(()=>{class v{_changeDetectorRef=(0,c.WQX)(c.gRc);_elementRef=(0,c.WQX)(c.aKT);_defaults=(0,c.WQX)(Yg);_activeOptionChanges=Dm.yU.EMPTY;_animationDone=new c.bkB;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(d){this._color=d,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new c.bkB;opened=new c.bkB;closed=new c.bkB;optionActivated=new c.bkB;set classList(d){this._classList=d,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(d){this._hideSingleSelectionIndicator=d,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const d of this.options)d._changeDetectorRef.markForCheck()}id=(0,c.WQX)(Kc.g7).getId("mat-autocomplete-");inertGroups;constructor(){const d=(0,c.WQX)(xe.OD);this.inertGroups=d?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Kc.Au(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(d=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[d]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe(),this._animationDone.complete()}_setScrollTop(d){this.panel&&(this.panel.nativeElement.scrollTop=d)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(d){const _=new Xg(this,d);this.optionSelected.emit(_)}_getPanelAriaLabelledby(d){return this.ariaLabel?null:this.ariaLabelledby?(d?d+" ":"")+this.ariaLabelledby:d}_skipPredicate(){return!1}static \u0275fac=function(_){return new(_||v)};static \u0275cmp=c.VBU({type:v,selectors:[["mat-autocomplete"]],contentQueries:function(_,D,W){if(1&_&&(c.wni(W,sn.wT,5),c.wni(W,sn.QC,5)),2&_){let te;c.mGM(te=c.lsd())&&(D.options=te),c.mGM(te=c.lsd())&&(D.optionGroups=te)}},viewQuery:function(_,D){if(1&_&&(c.GBs(c.C4Q,7),c.GBs(Kg,5)),2&_){let W;c.mGM(W=c.lsd())&&(D.template=W.first),c.mGM(W=c.lsd())&&(D.panel=W.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",c.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",c.L39],requireSelection:[2,"requireSelection","requireSelection",c.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",c.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",c.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[c.Jv_([{provide:sn.is,useExisting:v}]),c.GFd],ngContentSelectors:fy,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(_,D){1&_&&(c.NAR(),c.DNE(0,Gg,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-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: 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:[kw]},changeDetection:0})}return v})();const Ow={provide:Su.kq,useExisting:(0,c.Rfq)(()=>Jg),multi:!0},qg=new c.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const v=(0,c.WQX)(Au.hJ);return()=>v.scrollStrategies.reposition()}}),ef={provide:qg,deps:[Au.hJ],useFactory:function rp(v){return()=>v.scrollStrategies.reposition()}};let Jg=(()=>{class v{_element=(0,c.WQX)(c.aKT);_overlay=(0,c.WQX)(Au.hJ);_viewContainerRef=(0,c.WQX)(c.c1b);_zone=(0,c.WQX)(c.SKi);_changeDetectorRef=(0,c.WQX)(c.gRc);_dir=(0,c.WQX)(hy.dS,{optional:!0});_formField=(0,c.WQX)(En.xb,{optional:!0,host:!0});_document=(0,c.WQX)(st.qQ);_viewportRuler=(0,c.WQX)(Cm.Xj);_defaults=(0,c.WQX)(Yg,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_scrollStrategy=(0,c.WQX)(qg);_keydownSubscription;_outsideClickSubscription;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Dm.yU.EMPTY;_breakpointObserver=(0,c.WQX)(Wd.QP);_handsetLandscapeSubscription=Dm.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new ml.B;_windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;_initialized=new ml.B;_injector=(0,c.WQX)(c.zZn);constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete();const d=this._getWindow();typeof d<"u"&&this._zone.runOutsideAngular(()=>d.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(d){d.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const d=this._getWindow();typeof d<"u"&&d.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}_overlayAttached=!1;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,Kc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,wu.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,lt.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,lt.p)(()=>this._overlayAttached)):(0,k.of)()).pipe((0,Os.T)(d=>d instanceof sn.MI?d:null))}optionSelections=(0,Zu.v)(()=>{const d=this.autocomplete?this.autocomplete.options:null;return d?d.changes.pipe((0,Mw.Z)(d),(0,pe.n)(()=>(0,wu.h)(...d.map(_=>_.onSelectionChange)))):this._initialized.pipe((0,pe.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,wu.h)((0,yu.R)(this._document,"click"),(0,yu.R)(this._document,"auxclick"),(0,yu.R)(this._document,"touchend")).pipe((0,lt.p)(d=>{const _=(0,xe.Fb)(d),D=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,W=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&_!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!D||!D.contains(_))&&(!W||!W.contains(_))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(_)}))}writeValue(d){Promise.resolve(null).then(()=>this._assignOptionValue(d))}registerOnChange(d){this._onChange=d}registerOnTouched(d){this._onTouched=d}setDisabledState(d){this._element.nativeElement.disabled=d}_handleKeydown(d){const _=d.keyCode,D=(0,il.rp)(d);if(_===il._f&&!D&&d.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&_===il.Fm&&this.panelOpen&&!D)this.activeOption._selectViaInteraction(),this._resetActiveItem(),d.preventDefault();else if(this.autocomplete){const W=this.autocomplete._keyManager.activeItem,te=_===il.i7||_===il.n6;_===il.wn||te&&!D&&this.panelOpen?this.autocomplete._keyManager.onKeydown(d):te&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(te||this.autocomplete._keyManager.activeItem!==W)&&(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(d){let _=d.target,D=_.value;if("number"===_.type&&(D=""==D?null:parseFloat(D)),this._previousValue!==D){if(this._previousValue=D,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(D),D){if(this.panelOpen&&!this.autocomplete.requireSelection){const W=this.autocomplete.options?.find(te=>te.selected);W&&D!==this._getDisplayValue(W.value)&&W.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._document.activeElement===d.target){const W=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(W)}}}_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(d=!1){this._formField&&"auto"===this._formField.floatLabel&&(d?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const d=new S.c(D=>{(0,c.mal)(()=>{D.next()},{injector:this._injector})}),_=this.autocomplete.options.changes.pipe((0,Eu.M)(()=>this._positionStrategy.reapplyLastPosition()),(0,_e.c)(0));return(0,wu.h)(d,_).pipe((0,pe.n)(()=>this._zone.run(()=>{const D=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),D!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,M.s)(1)).subscribe(D=>this._setValueAndClose(D))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(d){const _=this.autocomplete;return _&&_.displayWith?_.displayWith(d):d}_assignOptionValue(d){const _=this._getDisplayValue(d);null==d&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(_??"")}_updateNativeInputValue(d){this._formField?this._formField._control.value=d:this._element.nativeElement.value=d,this._previousValue=d}_setValueAndClose(d){const _=this.autocomplete,D=d?d.source:this._pendingAutoselectedOption;D?(this._clearPreviousSelectedOption(D),this._assignOptionValue(D.value),this._onChange(D.value),_._emitSelectEvent(D),this._element.nativeElement.focus()):_.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),_._animationDone?_._animationDone.pipe((0,M.s)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(d,_){this.autocomplete?.options?.forEach(D=>{D!==d&&D.selected&&D.deselect(_)})}_openPanelInternal(d=this._element.nativeElement.value){this._attachOverlay(d),this._floatLabel(),this._trackedModal&&(0,Kc.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(d){let _=this._overlayRef;_?(this._positionStrategy.setOrigin(this._getConnectedElement()),_.updateSize({width:this._getPanelWidth()})):(this._portal=new ym.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),_=this._overlay.create(this._getOverlayConfig()),this._overlayRef=_,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&_&&_.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Wd.Rp.HandsetLandscape).subscribe(W=>{W.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),_&&!_.hasAttached()&&(_.attach(this._portal),this._valueOnAttach=d,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const D=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&D!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=d=>{(d.keyCode===il._f&&!(0,il.rp)(d)||d.keyCode===il.i7&&(0,il.rp)(d,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),d.stopPropagation(),d.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const d=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=d.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=d.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Au.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const d=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(d),this._positionStrategy=d,d}_setStrategyPositions(d){const _=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],D=this._aboveClass,W=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:D},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:D}];let te;te="above"===this.position?W:"below"===this.position?_:[..._,...W],d.withPositions(te)}_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 d=this.autocomplete;if(d.autoActiveFirstOption){let _=-1;for(let D=0;D .cdk-overlay-container [aria-modal="true"]');if(!d)return;const _=this.autocomplete.id;this._trackedModal&&(0,Kc.Ae)(this._trackedModal,"aria-owns",_),(0,Kc.px)(d,"aria-owns",_),this._trackedModal=d}_clearFromModal(){this._trackedModal&&((0,Kc.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(_){return new(_||v)};static \u0275dir=c.FsC({type:v,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(_,D){1&_&&c.bIt("focusin",function(){return D._handleFocus()})("blur",function(){return D._onTouched()})("input",function(te){return D._handleInput(te)})("keydown",function(te){return D._handleKeydown(te)})("click",function(){return D._handleClick()}),2&_&&c.BMQ("autocomplete",D.autocompleteAttribute)("role",D.autocompleteDisabled?null:"combobox")("aria-autocomplete",D.autocompleteDisabled?null:"list")("aria-activedescendant",D.panelOpen&&D.activeOption?D.activeOption.id:null)("aria-expanded",D.autocompleteDisabled?null:D.panelOpen.toString())("aria-controls",D.autocompleteDisabled||!D.panelOpen||null==D.autocomplete?null:D.autocomplete.id)("aria-haspopup",D.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",c.L39]},exportAs:["matAutocompleteTrigger"],features:[c.Jv_([Ow]),c.GFd,c.OA$]})}return v})(),e_=(()=>{class v{static \u0275fac=function(_){return new(_||v)};static \u0275mod=c.$C({type:v});static \u0275inj=c.G2t({providers:[ef],imports:[Au.z_,sn.Sy,sn.yE,Cm.Gj,sn.Sy,sn.yE]})}return v})();var py=n(6389),my=n(8627),ip=n(3149);const t_=["barSearchInput"],gy=["matAutocomplete"];function _y(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",5),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.open())}),c.nrm(1,"mat-icon",6),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"))}function tf(v,m){1&v&&(c.j41(0,"mat-option",14),c.EFF(1," No results found! "),c.k0s())}function n_(v,m){if(1&v){const d=c.RV6();c.j41(0,"img",22),c.bIt("error",function(D){c.eBV(d);const W=c.XpG(5);return c.Njj(W.handleImageError(D))}),c.k0s()}if(2&v){const d=c.XpG().$implicit;c.Mz_("alt","",d.name,"'s avatar"),c.Y8G("src",d.avatar,c.B4B)}}function Am(v,m){1&v&&(c.qex(0),c.nrm(1,"mat-icon",23),c.bVm()),2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:user-circle"))}function vy(v,m){if(1&v&&(c.j41(0,"div",24),c.EFF(1),c.k0s()),2&v){const d=c.XpG().$implicit;c.R7$(),c.SpI(" ",d.about," ")}}function Rw(v,m){if(1&v&&(c.qex(0),c.j41(1,"mat-option",15)(2,"div",16)(3,"div",17),c.DNE(4,n_,1,3,"img",18)(5,Am,2,1,"ng-container",2),c.k0s(),c.j41(6,"div",19)(7,"span",20),c.EFF(8),c.k0s(),c.DNE(9,vy,2,1,"div",21),c.k0s()()(),c.bVm()),2&v){const d=m.$implicit;c.R7$(),c.Y8G("routerLink",d.link)("value",d.name),c.R7$(3),c.Y8G("ngIf",d.avatar),c.R7$(),c.Y8G("ngIf",!d.avatar),c.R7$(3),c.JRh(d.name),c.R7$(),c.Y8G("ngIf",d.about)}}function Nw(v,m){if(1&v&&(c.qex(0),c.DNE(1,Rw,10,6,"ng-container",12),c.bVm()),2&v){const d=m.$implicit,_=c.XpG(3);c.R7$(),c.Y8G("ngForOf",d.results)("ngForTrackBy",_.trackByFn)}}function nf(v,m){if(1&v){const d=c.RV6();c.j41(0,"div",7),c.nrm(1,"mat-icon",8),c.j41(2,"input",9,0),c.bIt("keydown",function(D){c.eBV(d);const W=c.XpG(2);return c.Njj(W.onKeydown(D))}),c.k0s(),c.j41(4,"mat-autocomplete",10,1),c.DNE(6,tf,2,0,"mat-option",11)(7,Nw,2,2,"ng-container",12),c.k0s(),c.j41(8,"button",13),c.bIt("click",function(){c.eBV(d);const D=c.XpG(2);return c.Njj(D.close())}),c.nrm(9,"mat-icon",6),c.k0s()()}if(2&v){const d=c.sdS(5),_=c.XpG(2);c.Y8G("@slideInTop",void 0)("@slideOutTop",void 0),c.R7$(),c.Y8G("svgIcon","heroicons_outline:magnifying-glass"),c.R7$(),c.Y8G("formControl",_.searchControl)("matAutocomplete",d)("placeholder","Search..."),c.R7$(2),c.Y8G("autoSelectActiveOption",!0)("disableRipple",!0),c.R7$(2),c.Y8G("ngIf",_.resultSets&&!_.resultSets.length),c.R7$(),c.Y8G("ngForOf",_.resultSets)("ngForTrackBy",_.trackByFn),c.R7$(2),c.Y8G("svgIcon","heroicons_outline:x-mark")}}function yy(v,m){if(1&v&&(c.j41(0,"div"),c.DNE(1,_y,2,1,"button",3)(2,nf,10,12,"div",4),c.k0s()),2&v){const d=c.XpG();c.R7$(),c.Y8G("ngIf",!d.opened),c.R7$(),c.Y8G("ngIf",d.opened)}}let rf=(()=>{class v{constructor(d,_){this._storageService=d,this._sanitizer=_,this.appearance="basic",this.debounce=300,this.minLength=2,this.search=new c.bkB,this.opened=!1,this.searchControl=new Su.hs,this._unsubscribeAll=new ml.B}set barSearchInput(d){d&&setTimeout(()=>{d.nativeElement.focus()})}set matAutocomplete(d){this._matAutocomplete=d}ngOnChanges(d){"appearance"in d&&this.close()}ngOnInit(){var d=this;this.searchControl.valueChanges.pipe((0,my.B)(this.debounce),(0,wa.Q)(this._unsubscribeAll),(0,Os.T)(_=>((!_||_.length_&&_.length>=this.minLength)).subscribe(function(){var _=(0,w.A)(function*(D){const W=yield d._storageService.searchProfile(D);d.resultSets=W.map(te=>({label:"Project",results:[{name:te.profile.name||te.profile.displayName||te.pubKey,pubkey:te.pubKey,username:te.profile.username||"",website:te.profile.website||"",about:te.profile.about?te.profile.about.replace(/<\/?[^>]+(>|$)/g,""):"",avatar:te.profile.picture||null,banner:te.profile.banner||null,link:`/profile/${te.pubKey}`}]})),d.search.next(d.resultSets)});return function(D){return _.apply(this,arguments)}}())}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}onKeydown(d){"Escape"===d.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(d,_){return _.id||d}handleImageError(d){const _=d.target;_.onerror=null,_.src="images/avatars/avatar-placeholder.png"}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(ip.n),c.rXU(i.up))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["search"]],viewQuery:function(_,D){if(1&_&&(c.GBs(t_,5),c.GBs(gy,5)),2&_){let W;c.mGM(W=c.lsd())&&(D.barSearchInput=W.first),c.mGM(W=c.lsd())&&(D.matAutocomplete=W.first)}},inputs:{appearance:"appearance",debounce:"debounce",minLength:"minLength"},outputs:{search:"search"},exportAs:["angorSearch"],features:[c.Jv_([{provide:qg,useFactory:()=>{const d=(0,c.WQX)(Au.hJ);return()=>d.scrollStrategies.block()}}]),c.OA$],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(_,D){1&_&&c.DNE(0,yy,3,2,"div",2),2&_&&c.Y8G("ngIf","bar"===D.appearance)},dependencies:[_l.Hl,_l.iY,rl.m_,rl.An,Su.YN,Su.me,Su.BC,e_,Tu,sn.wT,Jg,Su.X1,Su.l_,sn.Sy,a.Wk,En.RG,py.fS,st.MD,st.Sq,st.bT],encapsulation:2,data:{animation:xm.F}})}}return v})();var op=n(1109),zd=n(7702),Sm=n(7818),Lw=n(4482);const r_=()=>["/settings"];function by(v,m){if(1&v&&c.nrm(0,"img",4),2&v){let d;const _=c.XpG();c.Y8G("src",_.getSafeUrl(null==(d=_.user())?null:d.picture),c.B4B)}}function i_(v,m){1&v&&c.nrm(0,"mat-icon",5),2&v&&c.Y8G("svgIcon","heroicons_outline:user-circle")}let sp=(()=>{class v{constructor(){this.user=(0,c.vPA)(null),this.config=(0,c.vPA)(null),this.userPubKey=(0,c.vPA)(""),this.signerService=(0,c.WQX)(jd.A),this.storageService=(0,c.WQX)(ip.n),this.angorConfigService=(0,c.WQX)(op.P),this.router=(0,c.WQX)(a.Ix),this.sanitizer=(0,c.WQX)(i.up),this.nostrLoginService=(0,c.WQX)(Lw.v),this.userPubKey.set(this.signerService.getPublicKey()),this.loadUserProfile(),(0,c.QZP)(()=>{this.config.set(this.angorConfigService.config),this.config()&&localStorage.setItem("angorConfig",JSON.stringify(this.config()))}),this.storageService.profile$.subscribe(d=>{d&&d.pubKey===this.userPubKey()&&this.user.set(d.metadata||{})})}loadUserProfile(){this.storageService.getProfile(this.userPubKey()).then(d=>{this.user.set(d||{})})}logout(){this.router.navigate(["/logout"])}Switch(){this.nostrLoginService.switchAccount()}profile(){this.router.navigate(["/profile"])}setScheme(d){this.angorConfigService.config={scheme:d}}setTheme(d){this.angorConfigService.config={theme:d}}getSafeUrl(d){return this.sanitizer.bypassSecurityTrustUrl(d)}switchAccount(){this.nostrLoginService.switchAccount()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["user"]],decls:49,vars:15,consts:[["userActions","matMenu"],["settingsMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor"],[1,"relative"],["alt","","onerror","this.onerror=null; this.src='/images/avatars/avatar-placeholder.png';",1,"h-7","w-7","rounded-full","object-cover",3,"src"],[3,"svgIcon"],[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"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink"]],template:function(_,D){if(1&_){const W=c.RV6();c.j41(0,"button",2)(1,"span",3),c.DNE(2,by,1,1,"img",4)(3,i_,1,1,"mat-icon",5),c.k0s()(),c.j41(4,"mat-menu",6,0)(6,"button",7)(7,"span",8)(8,"span"),c.EFF(9,"Logged in as"),c.k0s(),c.j41(10,"span",9),c.EFF(11),c.k0s()()(),c.nrm(12,"mat-divider",10),c.j41(13,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.Switch())}),c.nrm(14,"mat-icon",5),c.j41(15,"span"),c.EFF(16,"Switch account"),c.k0s()(),c.j41(17,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.profile())}),c.nrm(18,"mat-icon",5),c.j41(19,"span"),c.EFF(20,"Profile"),c.k0s()(),c.j41(21,"button",12),c.nrm(22,"mat-icon",5),c.j41(23,"span"),c.EFF(24,"Options"),c.k0s()(),c.nrm(25,"mat-divider",10),c.j41(26,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.logout())}),c.nrm(27,"mat-icon",5),c.j41(28,"span"),c.EFF(29,"logout"),c.k0s()()(),c.j41(30,"mat-menu",null,1)(32,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("auto"))}),c.nrm(33,"mat-icon",5),c.j41(34,"span"),c.EFF(35,"Auto Theme"),c.k0s()(),c.j41(36,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("light"))}),c.nrm(37,"mat-icon",5),c.j41(38,"span"),c.EFF(39,"Light Theme"),c.k0s()(),c.j41(40,"button",11),c.bIt("click",function(){return c.eBV(W),c.Njj(D.setScheme("dark"))}),c.nrm(41,"mat-icon",5),c.j41(42,"span"),c.EFF(43,"Dark Theme"),c.k0s()(),c.nrm(44,"mat-divider"),c.j41(45,"button",13),c.nrm(46,"mat-icon",5),c.j41(47,"span"),c.EFF(48,"Settings"),c.k0s()()()}if(2&_){let W,te;const be=c.sdS(5),Xe=c.sdS(31);c.Y8G("matMenuTriggerFor",be),c.R7$(2),c.vxM(null!=(W=D.user())&&W.picture?2:3),c.R7$(2),c.Y8G("xPosition","before"),c.R7$(7),c.JRh((null==(te=D.user())?null:te.display_name)||(null==D.user?null:D.user.name)||"Unknown User"),c.R7$(3),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(4),c.Y8G("svgIcon","heroicons_outline:user-circle"),c.R7$(3),c.Y8G("matMenuTriggerFor",Xe),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth"),c.R7$(5),c.Y8G("svgIcon","heroicons_outline:arrow-right-on-rectangle"),c.R7$(6),c.Y8G("svgIcon","heroicons_solid:bolt"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:sun"),c.R7$(4),c.Y8G("svgIcon","heroicons_solid:moon"),c.R7$(4),c.Y8G("routerLink",c.lJ4(14,r_)),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cog-8-tooth")}},dependencies:[_l.Hl,_l.iY,Sm.Cn,Sm.kk,Sm.fb,Sm.Cp,rl.m_,rl.An,zd.w,zd.q,st.MD,a.iI,a.Wk],encapsulation:2,changeDetection:0})}}return v})();var o_=n(6061),sd=n(9587);let wy=(()=>{class v{constructor(d,_){this.swUpdate=d,this.zone=_,this.newVersionAvailableSubject=new Le.t(!1),this.isNewVersionAvailable$=this.newVersionAvailableSubject.asObservable(),this.intervalSource=function s_(v=0,m=o_.E){return v<0&&(v=0),(0,sd.O)(v,v,m)}(9e5),this.checkForUpdateOnLoad(),this.checkForUpdateOnInterval()}applyUpdate(){this.swUpdate.activateUpdate().then(()=>document.location.reload()).catch(d=>console.error("Failed to apply updates:",d))}checkForUpdateOnInterval(){var d=this;this.unsubscribeInterval(),this.swUpdate.isEnabled&&this.zone.runOutsideAngular(()=>{this.intervalSubscription=this.intervalSource.subscribe((0,w.A)(function*(){try{(yield d.swUpdate.checkForUpdate())&&d.newVersionAvailableSubject.next(!0)}catch(_){console.error("Failed to check for updates:",_)}}))})}checkForUpdateOnLoad(){this.unsubscribeNewVersion(),this.swUpdate.isEnabled&&(this.newVersionSubscription=this.swUpdate.versionUpdates.subscribe(d=>{switch(d.type){case"VERSION_DETECTED":break;case"VERSION_READY":this.newVersionAvailableSubject.next(!0);break;case"VERSION_INSTALLATION_FAILED":console.error(`Failed to install app version '${d.version.hash}': ${d.error}`)}}))}unsubscribeInterval(){this.intervalSubscription&&this.intervalSubscription.unsubscribe()}unsubscribeNewVersion(){this.newVersionSubscription&&this.newVersionSubscription.unsubscribe()}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Nd),c.KVO(c.SKi))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();function Ey(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",1),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.applyUpdate())}),c.nrm(1,"mat-icon",2),c.k0s()}if(2&v){const d=c.XpG();c.Y8G("matTooltip",d.tooltip()),c.R7$(),c.Y8G("svgIcon","heroicons_outline:cloud-arrow-down")}}let a_=(()=>{class v{constructor(){this.tooltip=(0,c.vPA)("Update App"),this.isNewVersionAvailable=(0,c.vPA)(!1),this.updateService=(0,c.WQX)(wy),this.updateService.isNewVersionAvailable$.subscribe(d=>{this.isNewVersionAvailable.set(d)})}applyUpdate(){this.updateService.applyUpdate()}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["update"]],decls:1,vars:1,consts:[["mat-icon-button","",3,"matTooltip"],["mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(_,D){1&_&&c.DNE(0,Ey,2,2,"button",0),2&_&&c.vxM(D.isNewVersionAvailable()?0:-1)},dependencies:[st.MD,_l.Hl,_l.iY,rl.m_,rl.An,zc.uc,zc.oV],encapsulation:2,changeDetection:0})}}return v})();function xy(v,m){if(1&v&&(c.j41(0,"angor-vertical-navigation",0),c.qex(1,10),c.j41(2,"div",11),c.nrm(3,"img",12),c.k0s(),c.bVm(),c.k0s()),2&v){const d=c.XpG();c.Y8G("mode","over")("name","mainNavigation")("navigation",d.navigation.default)("opened",!1)}}function l_(v,m){if(1&v&&(c.j41(0,"div",13)(1,"div",14),c.nrm(2,"img",15)(3,"img",16),c.k0s(),c.nrm(4,"img",17),c.k0s(),c.nrm(5,"angor-horizontal-navigation",18)),2&v){const d=c.XpG();c.R7$(5),c.Y8G("name","mainNavigation")("navigation",d.navigation.horizontal)}}function Cy(v,m){if(1&v){const d=c.RV6();c.j41(0,"button",19),c.bIt("click",function(){c.eBV(d);const D=c.XpG();return c.Njj(D.toggleNavigation("mainNavigation"))}),c.nrm(1,"mat-icon",20),c.k0s()}2&v&&(c.R7$(),c.Y8G("svgIcon","heroicons_outline:bars-3"))}function Dy(v,m){1&v&&c.nrm(0,"router-outlet")}let Ay=(()=>{class v{constructor(d,_,D,W,te){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new ml.B,this.version=cc}ngOnInit(){this._navigationService.navigation$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ba),c.rXU(ae.l),c.rXU(Zh.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["modern-layout"]],decls:17,vars:6,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(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.DNE(1,xy,4,4,"angor-vertical-navigation",0),c.j41(2,"div",1)(3,"div",2),c.DNE(4,l_,6,2)(5,Cy,2,1,"button",3),c.j41(6,"div",4),c.nrm(7,"update")(8,"angor-fullscreen",5)(9,"search",6)(10,"notifications")(11,"user"),c.k0s()(),c.j41(12,"div",7),c.DNE(13,Dy,1,0,"router-outlet"),c.k0s(),c.j41(14,"div",8)(15,"span",9),c.EFF(16),c.k0s()()()),2&_&&(c.R7$(),c.vxM(D.isScreenSmall?1:-1),c.R7$(3),c.vxM(D.isScreenSmall?-1:4),c.R7$(),c.vxM(D.isScreenSmall?5:-1),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(13),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Wc,Zh.Tv,Zh.$w,_l.Hl,_l.iY,rl.m_,rl.An,Ac,rf,np,sp,a.n3,a_],encapsulation:2})}}return v})();function Sy(v,m){1&v&&c.nrm(0,"router-outlet")}let Ty=(()=>{class v{constructor(d,_,D,W,te){this._activatedRoute=d,this._router=_,this._navigationService=D,this._angorMediaWatcherService=W,this._angorNavigationService=te,this._unsubscribeAll=new ml.B,this.version=cc}ngOnInit(){this._navigationService.navigation$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.navigation=d}),this._angorMediaWatcherService.onMediaChange$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(({matchingAliases:d})=>{this.isScreenSmall=!d.includes("md")})}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}toggleNavigation(d){const _=this._angorNavigationService.getComponent(d);_&&_.toggle()}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(a.Ix),c.rXU(ba),c.rXU(ae.l),c.rXU(Zh.lX))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["classic-layout"]],decls:21,vars:8,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(_,D){1&_&&(c.nrm(0,"angor-loading-bar"),c.j41(1,"angor-vertical-navigation",0),c.qex(2,1),c.j41(3,"div",2),c.nrm(4,"img",3)(5,"img",4),c.k0s(),c.bVm(),c.k0s(),c.j41(6,"div",5)(7,"div",6)(8,"button",7),c.bIt("click",function(){return D.toggleNavigation("mainNavigation")}),c.nrm(9,"mat-icon",8),c.k0s(),c.j41(10,"div",9),c.nrm(11,"update")(12,"angor-fullscreen",10)(13,"search",11)(14,"notifications")(15,"user"),c.k0s()(),c.j41(16,"div",12),c.DNE(17,Sy,1,0,"router-outlet"),c.k0s(),c.j41(18,"div",13)(19,"span",14),c.EFF(20),c.k0s()()()),2&_&&(c.R7$(),c.Y8G("mode",D.isScreenSmall?"over":"side")("name","mainNavigation")("navigation",D.navigation.default)("opened",!D.isScreenSmall),c.R7$(8),c.Y8G("svgIcon","heroicons_outline:bars-3"),c.R7$(4),c.Y8G("appearance","bar"),c.R7$(4),c.vxM(17),c.R7$(3),c.SpI("Angor Hub - version ",D.version,""))},dependencies:[Wc,Zh.Tv,_l.Hl,_l.iY,rl.m_,rl.An,Ac,rf,np,sp,a.n3,a_],encapsulation:2})}}return v})();function Tm(v,m){1&v&&c.nrm(0,"empty-layout")}function My(v,m){1&v&&c.nrm(0,"modern-layout")}function ky(v,m){1&v&&c.nrm(0,"classic-layout")}let Sc=(()=>{class v{constructor(d,_,D,W,te,be,Xe){this._activatedRoute=d,this._document=_,this._renderer2=D,this._router=W,this._angorConfigService=te,this._angorMediaWatcherService=be,this._angorPlatformService=Xe,this._unsubscribeAll=new ml.B}ngOnInit(){(0,ac.z)([this._angorConfigService.config$,this._angorMediaWatcherService.onMediaQueryChange$(["(prefers-color-scheme: dark)","(prefers-color-scheme: light)"])]).pipe((0,wa.Q)(this._unsubscribeAll),(0,Os.T)(([d,_])=>{const D={scheme:d.scheme,theme:d.theme};return"auto"===d.scheme&&(D.scheme=_.breakpoints["(prefers-color-scheme: dark)"]?"dark":"light"),D})).subscribe(d=>{this.scheme=d.scheme,this.theme=d.theme,this._updateScheme(),this._updateTheme()}),this._angorConfigService.config$.pipe((0,wa.Q)(this._unsubscribeAll)).subscribe(d=>{this.config=d,this._updateLayout()}),this._router.events.pipe((0,lt.p)(d=>d instanceof a.wF),(0,wa.Q)(this._unsubscribeAll)).subscribe(()=>{this._updateLayout()}),this._renderer2.setAttribute(this._document.querySelector("[ng-version]"),"angor-version",cc),this._renderer2.addClass(this._document.body,this._angorPlatformService.osName)}ngOnDestroy(){this._unsubscribeAll.next(null),this._unsubscribeAll.complete()}_updateLayout(){let d=this._activatedRoute;for(;d.firstChild;)d=d.firstChild;this.layout=this.config.layout;const _=d.snapshot.queryParamMap.get("layout");_&&(this.layout=_,this.config&&(this.config.layout=_)),d.pathFromRoot.forEach(W=>{W.routeConfig&&W.routeConfig.data&&W.routeConfig.data.layout&&(this.layout=W.routeConfig.data.layout)})}_updateScheme(){this._document.body.classList.remove("light","dark"),this._document.body.classList.add(this.scheme)}_updateTheme(){this._document.body.classList.forEach(d=>{d.startsWith("theme-")&&this._document.body.classList.remove(d,d.split("-")[1])}),this._document.body.classList.add(this.theme)}static{this.\u0275fac=function(_){return new(_||v)(c.rXU(a.nX),c.rXU(st.qQ),c.rXU(c.sFG),c.rXU(a.Ix),c.rXU(op.P),c.rXU(ae.l),c.rXU(Be))}}static{this.\u0275cmp=c.VBU({type:v,selectors:[["layout"]],decls:3,vars:3,template:function(_,D){1&_&&c.DNE(0,Tm,1,0,"empty-layout")(1,My,1,0,"modern-layout")(2,ky,1,0,"classic-layout"),2&_&&(c.vxM("empty"===D.layout?0:-1),c.R7$(),c.vxM("modern"===D.layout?1:-1),c.R7$(),c.vxM("classic"===D.layout?2:-1))},dependencies:[Zf,Ay,Ty],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 v})();const ad=()=>{const v=(0,c.WQX)(jd.A),m=(0,c.WQX)(a.Ix);return""!==v.getPublicKey()||m.parseUrl("/login")},Mm=[{path:"",pathMatch:"full",redirectTo:"home"},{path:"project/:pubkey",pathMatch:"full",redirectTo:"explore"},{path:"login-redirect",pathMatch:"full",redirectTo:"explore"},{path:"",component:Sc,data:{layout:"empty"},children:[{path:"login",loadChildren:()=>Promise.all([n.e(87),n.e(232)]).then(n.bind(n,6232))},{path:"create",loadChildren:()=>Promise.all([n.e(87),n.e(664)]).then(n.bind(n,9664))}]},{path:"",canActivate:[ad],canActivateChild:[ad],component:Sc,data:{layout:"empty"},children:[{path:"logout",loadChildren:()=>n.e(957).then(n.bind(n,7957))}]},{path:"",canActivate:[ad],canActivateChild:[ad],component:Sc,resolve:{initialData:()=>{const v=(0,c.WQX)(ba);return(0,c.WQX)(Vc),(0,Uc.p)([v.get()])}},children:[{path:"home",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(863),n.e(836)]).then(n.bind(n,836))},{path:"explore",loadChildren:()=>Promise.all([n.e(318),n.e(371),n.e(76),n.e(45)]).then(n.bind(n,2045))},{path:"zap",loadChildren:()=>Promise.all([n.e(859),n.e(785)]).then(n.bind(n,8166))},{path:"bookmark",loadChildren:()=>Promise.all([n.e(318),n.e(371),n.e(76),n.e(767)]).then(n.bind(n,6767))},{path:"profile",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"profile/:pubkey",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"profile/:pubkey/:project",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(371),n.e(556),n.e(863),n.e(76),n.e(394)]).then(n.bind(n,5394))},{path:"post",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(556),n.e(863),n.e(544)]).then(n.bind(n,6544))},{path:"post/:id",loadChildren:()=>Promise.all([n.e(859),n.e(318),n.e(523),n.e(556),n.e(863),n.e(544)]).then(n.bind(n,6544))},{path:"settings",loadChildren:()=>Promise.all([n.e(859),n.e(371),n.e(76),n.e(824)]).then(n.bind(n,8824))},{path:"settings/:id",loadChildren:()=>Promise.all([n.e(859),n.e(371),n.e(76),n.e(824)]).then(n.bind(n,8824))},{path:"chat",loadChildren:()=>Promise.all([n.e(859),n.e(523),n.e(556),n.e(512)]).then(n.bind(n,1512))},{path:"404-not-found",pathMatch:"full",loadChildren:()=>n.e(256).then(n.bind(n,9256))},{path:"**",redirectTo:"404-not-found"}]}];let Kd=(()=>{class v{constructor(){const d=(0,c.WQX)(i.up),_=(0,c.WQX)(rl.tp);_.addSvgIconSet(d.bypassSecurityTrustResourceUrl("icons/material-twotone.svg")),_.addSvgIconSetInNamespace("mat_outline",d.bypassSecurityTrustResourceUrl("icons/material-outline.svg")),_.addSvgIconSetInNamespace("mat_solid",d.bypassSecurityTrustResourceUrl("icons/material-solid.svg")),_.addSvgIconSetInNamespace("feather",d.bypassSecurityTrustResourceUrl("icons/feather.svg")),_.addSvgIconSetInNamespace("heroicons_outline",d.bypassSecurityTrustResourceUrl("icons/heroicons-outline.svg")),_.addSvgIconSetInNamespace("heroicons_solid",d.bypassSecurityTrustResourceUrl("icons/heroicons-solid.svg")),_.addSvgIconSetInNamespace("heroicons_mini",d.bypassSecurityTrustResourceUrl("icons/heroicons-mini.svg"))}static{this.\u0275fac=function(_){return new(_||v)}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var Oy=n(8747),Pw=n(1540);let km=(()=>{class v{constructor(d){this.httpClient=d}getTranslation(d){return this.httpClient.get(`./i18n/${d}.json`)}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(re.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();const c_=[{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:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"0",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}],u_=[{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:"bookmark",title:"Bookmark",type:"basic",icon:"heroicons_outline:bookmark",link:"/bookmark"},{id:"chat",title:"Chat",type:"basic",icon:"heroicons_outline:chat-bubble-left-right",link:"/chat",badge:{title:"27",classes:"px-2 bg-[#086c81] text-white rounded-full"}},{id:"profile",title:"Profile",type:"basic",icon:"heroicons_outline:user",link:"/profile"},{id:"settings",title:"Settings",type:"basic",icon:"heroicons_outline:cog-6-tooth",link:"/settings"}];var d_=n(1238);var Ny=n(2065),lp=n(101),Ly=n(6259),Py=n(1561);const Fy=(0,n(5717).A)(Object.keys,Object);var Uy=Object.prototype.hasOwnProperty;var Vy=n(2808);const Im=function h_(v){return(0,Vy.A)(v)?(0,Ly.A)(v):function $y(v){if(!(0,Py.A)(v))return Fy(v);var m=[];for(var d in Object(v))Uy.call(v,d)&&"constructor"!=d&&m.push(d);return m}(v)};var Om=n(3959);var sf=n(4224),f_=n(1369);const zy=function Fw(){return[]};var Rm=Object.prototype.propertyIsEnumerable,up=Object.getOwnPropertySymbols;const g_=up?function(v){return null==v?[]:(v=Object(v),function p_(v,m){for(var d=-1,_=null==v?0:v.length,D=0,W=[];++d<_;){var te=v[d];m(te,d,v)&&(W[D++]=te)}return W}(up(v),function(m){return Rm.call(v,m)}))}:zy,v_=function Gy(v,m){for(var d=-1,_=m.length,D=v.length;++d<_;)v[D+d]=m[d];return v};var Xy=n(5749);const Nm=Object.getOwnPropertySymbols?function(v){for(var m=[];v;)v_(m,g_(v)),v=(0,Xy.A)(v);return m}:zy;var Lm=n(9007);const Pm=function dp(v,m,d){var _=m(v);return(0,Lm.A)(v)?_:v_(_,d(v))},qy=function Fm(v){return Pm(v,Im,g_)},b_=function cd(v){return Pm(v,Om.A,Nm)};var hp=n(3121),Xd=n(9311);const Um=(0,hp.A)(Xd.A,"DataView");var $m=n(2769);const jm=(0,hp.A)(Xd.A,"Promise"),E_=(0,hp.A)(Xd.A,"Set"),ud=(0,hp.A)(Xd.A,"WeakMap");var x_=n(5688),Yd=n(4435),C_="[object Map]",A_="[object Promise]",S_="[object Set]",T_="[object WeakMap]",M_="[object DataView]",eb=(0,Yd.A)(Um),tb=(0,Yd.A)($m.A),Vm=(0,Yd.A)(jm),jw=(0,Yd.A)(E_),Vw=(0,Yd.A)(ud),Yc=x_.A;(Um&&Yc(new Um(new ArrayBuffer(1)))!=M_||$m.A&&Yc(new $m.A)!=C_||jm&&Yc(jm.resolve())!=A_||E_&&Yc(new E_)!=S_||ud&&Yc(new ud)!=T_)&&(Yc=function(v){var m=(0,x_.A)(v),d="[object Object]"==m?v.constructor:void 0,_=d?(0,Yd.A)(d):"";if(_)switch(_){case eb:return M_;case tb:return C_;case Vm:return A_;case jw:return S_;case Vw:return T_}return m});const k_=Yc;var Ww=Object.prototype.hasOwnProperty;var I_=n(3031);var O_=/\w*$/;var L_=n(4883),P_=L_.A?L_.A.prototype:void 0,Hm=P_?P_.valueOf:void 0;var F_=n(7383);const ob=function V_(v,m,d){var _=v.constructor;switch(m){case"[object ArrayBuffer]":return(0,I_.A)(v);case"[object Boolean]":case"[object Date]":return new _(+v);case"[object DataView]":return function fp(v,m){var d=m?(0,I_.A)(v.buffer):v.buffer;return new v.constructor(d,v.byteOffset,v.byteLength)}(v,d);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,F_.A)(v,d);case"[object Map]":case"[object Set]":return new _;case"[object Number]":case"[object String]":return new _(v);case"[object RegExp]":return function R_(v){var m=new v.constructor(v.source,O_.exec(v));return m.lastIndex=v.lastIndex,m}(v);case"[object Symbol]":return function Qd(v){return Hm?Object(Hm.call(v)):{}}(v)}};var sb=n(223),H_=n(5303),_p=n(2312);var W_=n(4975),vp=n(8583),yp=vp.A&&vp.A.isMap;const dd=yp?(0,W_.A)(yp):function lf(v){return(0,_p.A)(v)&&"[object Map]"==k_(v)};var K_=n(7999);var Qm=vp.A&&vp.A.isSet;const Y_=Qm?(0,W_.A)(Qm):function Ym(v){return(0,_p.A)(v)&&"[object Set]"==k_(v)};var ku="[object Arguments]",wp="[object Function]",ev="[object Object]",ss={};ss[ku]=ss["[object Array]"]=ss["[object ArrayBuffer]"]=ss["[object DataView]"]=ss["[object Boolean]"]=ss["[object Date]"]=ss["[object Float32Array]"]=ss["[object Float64Array]"]=ss["[object Int8Array]"]=ss["[object Int16Array]"]=ss["[object Int32Array]"]=ss["[object Map]"]=ss["[object Number]"]=ss[ev]=ss["[object RegExp]"]=ss["[object Set]"]=ss["[object String]"]=ss["[object Symbol]"]=ss["[object Uint8Array]"]=ss["[object Uint8ClampedArray]"]=ss["[object Uint16Array]"]=ss["[object Uint32Array]"]=!0,ss["[object Error]"]=ss[wp]=ss["[object WeakMap]"]=!1;const yb=function uf(v,m,d,_,D,W){var te,be=1&m,Xe=2&m,yt=4&m;if(d&&(te=D?d(v,_,D,W):d(v)),void 0!==te)return te;if(!(0,K_.A)(v))return v;var dn=(0,Lm.A)(v);if(dn){if(te=function zw(v){var m=v.length,d=new v.constructor(m);return m&&"string"==typeof v[0]&&Ww.call(v,"index")&&(d.index=v.index,d.input=v.input),d}(v),!be)return(0,f_.A)(v,te)}else{var yn=k_(v),_r=yn==wp||"[object GeneratorFunction]"==yn;if((0,H_.A)(v))return(0,sf.A)(v,be);if(yn==ev||yn==ku||_r&&!D){if(te=Xe||_r?{}:(0,sb.A)(v),!be)return Xe?function Qy(v,m){return(0,lp.A)(v,Nm(v),m)}(v,function cp(v,m){return v&&(0,lp.A)(m,(0,Om.A)(m),v)}(te,v)):function __(v,m){return(0,lp.A)(v,g_(v),m)}(v,function Hy(v,m){return v&&(0,lp.A)(m,Im(m),v)}(te,v))}else{if(!ss[yn])return D?v:{};te=ob(v,yn,be)}}W||(W=new d_.A);var nr=W.get(v);if(nr)return nr;W.set(v,te),Y_(v)?v.forEach(function(Ai){te.add(uf(Ai,m,d,Ai,v,W))}):dd(v)&&v.forEach(function(Ai,ko){te.set(ko,uf(Ai,m,d,ko,v,W))});var ti=dn?void 0:(yt?Xe?b_:qy:Xe?Om.A:Im)(v);return function ld(v,m){for(var d=-1,_=null==v?0:v.length;++d<_&&!1!==m(v[d],d,v););}(ti||v,function(Ai,ko){ti&&(Ai=v[ko=Ai]),(0,Ny.A)(te,ko,uf(Ai,m,d,ko,v,W))}),te},xp=function $i(v){return yb(v,5)},qd=[(()=>{class v{constructor(d){this._angorMockApiService=d,this._defaultNavigation=c_,this._horizontalNavigation=u_,this.registerHandlers()}registerHandlers(){this._angorMockApiService.onGet("api/navigation").reply(()=>(this._horizontalNavigation.forEach(d=>{this._defaultNavigation.forEach(_=>{_.id===d.id&&(d.children=xp(_.children))})}),[200,{default:xp(this._defaultNavigation),horizontal:xp(this._horizontalNavigation)}]))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(Z))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})()];let ov=(()=>{class v{constructor(d){this.http=d,this.timestamp=null,this.ngswFilePath="/ngsw.json"}load(){var d=this;return(0,w.A)(function*(){try{const _=yield d.http.get(d.ngswFilePath).toPromise();_&&_.timestamp?(d.timestamp=_.timestamp,console.log("Timestamp successfully loaded:",d.timestamp)):console.error("Invalid data format in ngsw.json")}catch(_){console.error("Error loading ngsw.json:",_)}})()}getTimestamp(){return this.timestamp}loadHash(){return this.http.get(this.ngswFilePath).pipe((0,Os.T)(d=>d.timestamp||null),(0,fm.W)(d=>(console.error("Error fetching ngsw.json hash:",d),(0,T.$)(()=>new Error("Failed to load hash.")))))}static{this.\u0275fac=function(_){return new(_||v)(c.KVO(re.Qq))}}static{this.\u0275prov=c.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}}return v})();var eg=n(6433),xb=n(3024);const hf={providers:[function Lf(){return(0,c.ngT)("NgEagerAnimations"),[...Rh]}(),(0,re.$R)(),function nd(v,m={}){return(0,c.EmA)([Bf,Nd,{provide:Ph,useValue:v},{provide:ga,useValue:m},{provide:xu,useFactory:$f,deps:[ga,c.Agw]},{provide:c.hnV,useFactory:Fh,deps:[c.zZn,Ph,ga,c.Agw],multi:!0}])}("ngsw-worker.js",{enabled:!(0,c.naY)(),registrationStrategy:"registerWhenStable:30000"}),{provide:c.hnV,useFactory:function tg(v){return()=>v.load()},deps:[ov,jd.A,eg.d],multi:!0},{provide:c.hnV,useFactory:function df(v,m){return(0,w.A)(function*(){const d=v.getPublicKey();d&&(yield m.loadUserProfile(d))})},deps:[jd.A,eg.d],multi:!0},{provide:c.hnV,useFactory:function hd(){return()=>{(0,xb.Ts)({theme:"ocean",noBanner:!0,title:"Angor Hub",onAuth:(v,m)=>{}})}},multi:!0},(0,a.lh)(Mm,(0,a.oH)({scrollPositionRestoration:"enabled"})),{provide:sn.MJ,useClass:Yl},{provide:sn.de,useValue:{parse:{dateInput:"D"},display:{dateInput:"DDD",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}}},function ei(v){const m=[pr(Qf),mi(Du),br(od),Yr(E)];return v.config&&m.push(function eo(v){return(0,c.EmA)([{provide:$c,useValue:Yf(v)}])}(v.config)),v.loader&&m.push(function to(v){return(0,c.EmA)([{provide:Hf,useClass:v}])}(v.loader)),m}({config:{availableLangs:[{id:"en",label:"English"}],defaultLang:"en",fallbackLang:"en",reRenderOnLangChange:!0,prodMode:!0},loader:km}),{provide:c.hnV,useFactory:()=>{const v=(0,c.WQX)(Yt),m=v.getDefaultLang();return v.setActiveLang(m),()=>function ap(v,m){const d="object"==typeof m;return new Promise((_,D)=>{const W=new Pw.Ms({next:te=>{_(te),W.unsubscribe()},error:D,complete:()=>{d?_(m.defaultValue):D(new Oy.G)}});v.subscribe(W)})}(v.load(m))},multi:!0},[{provide:c.Z63,useValue:()=>(0,c.WQX)(Kd),multi:!0}],(v=>{const m=[{provide:sn.N,useValue:{doctype:!0,theme:!1,version:!0}},{provide:En.U$,useValue:{appearance:"fill"}},{provide:C,useValue:v?.mockApi?.delay??0},{provide:De.t,useValue:v?.angor??{}},(0,c.oKB)(fn.hM),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ee.m),multi:!0},(0,re.$R)((0,re.b$)([le])),{provide:c.Z63,useValue:()=>(0,c.WQX)(Ae),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(ae.l),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(Be),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(bt),multi:!0},{provide:c.Z63,useValue:()=>(0,c.WQX)(at.Q),multi:!0}];return v?.mockApi?.services&&m.push((0,re.$R)((0,re.b$)([de])),{provide:c.hnV,deps:[...v.mockApi.services],useFactory:()=>()=>null,multi:!0}),m})({mockApi:{delay:0,services:qd},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,i.B8)(y,hf).catch(v=>console.error(v))},9566:(o,s)=>{"use strict";s.byteLength=function T(Z){var re=C(Z),pe=re[1];return 3*(re[0]+pe)/4-pe},s.toByteArray=function M(Z){var re,Ae,_e=C(Z),pe=_e[0],de=_e[1],De=new a(function S(Z,re,_e){return 3*(re+_e)/4-_e}(0,pe,de)),Ee=0,Le=de>0?pe-4:pe;for(Ae=0;Ae>16&255,De[Ee++]=re>>8&255,De[Ee++]=255&re;return 2===de&&(re=i[Z.charCodeAt(Ae)]<<2|i[Z.charCodeAt(Ae+1)]>>4,De[Ee++]=255&re),1===de&&(re=i[Z.charCodeAt(Ae)]<<10|i[Z.charCodeAt(Ae+1)]<<4|i[Z.charCodeAt(Ae+2)]>>2,De[Ee++]=re>>8&255,De[Ee++]=255&re),De},s.fromByteArray=function X(Z){for(var re,_e=Z.length,pe=_e%3,de=[],Ee=0,Le=_e-pe;EeLe?Le:Ee+16383));return 1===pe?de.push(n[(re=Z[_e-1])>>2]+n[re<<4&63]+"=="):2===pe&&de.push(n[(re=(Z[_e-2]<<8)+Z[_e-1])>>10]+n[re>>4&63]+n[re<<2&63]+"="),de.join("")};for(var n=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0;y<64;++y)n[y]=c[y],i[c.charCodeAt(y)]=y;function C(Z){var re=Z.length;if(re%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _e=Z.indexOf("=");return-1===_e&&(_e=re),[_e,_e===re?0:4-_e%4]}function k(Z){return n[Z>>18&63]+n[Z>>12&63]+n[Z>>6&63]+n[63&Z]}function R(Z,re,_e){for(var de=[],De=re;De<_e;De+=3)de.push(k((Z[De]<<16&16711680)+(Z[De+1]<<8&65280)+(255&Z[De+2])));return de.join("")}i[45]=62,i[95]=63},871:(o,s,n)=>{"use strict";const a=n(9566),c=n(9859),y="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;s.hp=S,s.IS=50;const w=2147483647;function T(z){if(z>w)throw new RangeError('The value "'+z+'" is invalid for option "size"');const L=new Uint8Array(z);return Object.setPrototypeOf(L,S.prototype),L}function S(z,L,V){if("number"==typeof z){if("string"==typeof L)throw new TypeError('The "string" argument must be of type string. Received type number');return X(z)}return M(z,L,V)}function M(z,L,V){if("string"==typeof z)return function Z(z,L){if(("string"!=typeof L||""===L)&&(L="utf8"),!S.isEncoding(L))throw new TypeError("Unknown encoding: "+L);const V=0|Le(z,L);let Ne=T(V);const ft=Ne.write(z,L);return ft!==V&&(Ne=Ne.slice(0,ft)),Ne}(z,L);if(ArrayBuffer.isView(z))return function _e(z){if(Kt(z,Uint8Array)){const L=new Uint8Array(z);return pe(L.buffer,L.byteOffset,L.byteLength)}return re(z)}(z);if(null==z)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z);if(Kt(z,ArrayBuffer)||z&&Kt(z.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Kt(z,SharedArrayBuffer)||z&&Kt(z.buffer,SharedArrayBuffer)))return pe(z,L,V);if("number"==typeof z)throw new TypeError('The "value" argument must not be of type number. Received type number');const Ne=z.valueOf&&z.valueOf();if(null!=Ne&&Ne!==z)return S.from(Ne,L,V);const ft=function de(z){if(S.isBuffer(z)){const L=0|De(z.length),V=T(L);return 0===V.length||z.copy(V,0,0,L),V}return void 0!==z.length?"number"!=typeof z.length||At(z.length)?T(0):re(z):"Buffer"===z.type&&Array.isArray(z.data)?re(z.data):void 0}(z);if(ft)return ft;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof z[Symbol.toPrimitive])return S.from(z[Symbol.toPrimitive]("string"),L,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof z)}function k(z){if("number"!=typeof z)throw new TypeError('"size" argument must be of type number');if(z<0)throw new RangeError('The value "'+z+'" is invalid for option "size"')}function X(z){return k(z),T(z<0?0:0|De(z))}function re(z){const L=z.length<0?0:0|De(z.length),V=T(L);for(let Ne=0;Ne=w)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w.toString(16)+" bytes");return 0|z}function Le(z,L){if(S.isBuffer(z))return z.length;if(ArrayBuffer.isView(z)||Kt(z,ArrayBuffer))return z.byteLength;if("string"!=typeof z)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof z);const V=z.length,Ne=arguments.length>2&&!0===arguments[2];if(!Ne&&0===V)return 0;let ft=!1;for(;;)switch(L){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return en(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*V;case"hex":return V>>>1;case"base64":return Mn(z).length;default:if(ft)return Ne?-1:en(z).length;L=(""+L).toLowerCase(),ft=!0}}function Ae(z,L,V){let Ne=!1;if((void 0===L||L<0)&&(L=0),L>this.length||((void 0===V||V>this.length)&&(V=this.length),V<=0)||(V>>>=0)<=(L>>>=0))return"";for(z||(z="utf8");;)switch(z){case"hex":return Je(this,L,V);case"utf8":case"utf-8":return sn(this,L,V);case"ascii":return Wn(this,L,V);case"latin1":case"binary":return wn(this,L,V);case"base64":return at(this,L,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,L,V);default:if(Ne)throw new TypeError("Unknown encoding: "+z);z=(z+"").toLowerCase(),Ne=!0}}function we(z,L,V){const Ne=z[L];z[L]=z[V],z[V]=Ne}function le(z,L,V,Ne,ft){if(0===z.length)return-1;if("string"==typeof V?(Ne=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),At(V=+V)&&(V=ft?0:z.length-1),V<0&&(V=z.length+V),V>=z.length){if(ft)return-1;V=z.length-1}else if(V<0){if(!ft)return-1;V=0}if("string"==typeof L&&(L=S.from(L,Ne)),S.isBuffer(L))return 0===L.length?-1:ae(z,L,V,Ne,ft);if("number"==typeof L)return L&=255,"function"==typeof Uint8Array.prototype.indexOf?ft?Uint8Array.prototype.indexOf.call(z,L,V):Uint8Array.prototype.lastIndexOf.call(z,L,V):ae(z,[L],V,Ne,ft);throw new TypeError("val must be string, number or Buffer")}function ae(z,L,V,Ne,ft){let hn,mt=1,Tt=z.length,On=L.length;if(void 0!==Ne&&("ucs2"===(Ne=String(Ne).toLowerCase())||"ucs-2"===Ne||"utf16le"===Ne||"utf-16le"===Ne)){if(z.length<2||L.length<2)return-1;mt=2,Tt/=2,On/=2,V/=2}function cn(Ln,lr){return 1===mt?Ln[lr]:Ln.readUInt16BE(lr*mt)}if(ft){let Ln=-1;for(hn=V;hnTt&&(V=Tt-On),hn=V;hn>=0;hn--){let Ln=!0;for(let lr=0;lrft&&(Ne=ft):Ne=ft;const mt=L.length;let Tt;for(Ne>mt/2&&(Ne=mt/2),Tt=0;Tt>8,ft=V%256,mt.push(ft),mt.push(Ne);return mt}(L,z.length-V),z,V,Ne)}function at(z,L,V){return a.fromByteArray(0===L&&V===z.length?z:z.slice(L,V))}function sn(z,L,V){V=Math.min(z.length,V);const Ne=[];let ft=L;for(;ft239?4:mt>223?3:mt>191?2:1;if(ft+On<=V){let cn,hn,Ln,lr;switch(On){case 1:mt<128&&(Tt=mt);break;case 2:cn=z[ft+1],128==(192&cn)&&(lr=(31&mt)<<6|63&cn,lr>127&&(Tt=lr));break;case 3:cn=z[ft+1],hn=z[ft+2],128==(192&cn)&&128==(192&hn)&&(lr=(15&mt)<<12|(63&cn)<<6|63&hn,lr>2047&&(lr<55296||lr>57343)&&(Tt=lr));break;case 4:cn=z[ft+1],hn=z[ft+2],Ln=z[ft+3],128==(192&cn)&&128==(192&hn)&&128==(192&Ln)&&(lr=(15&mt)<<18|(63&cn)<<12|(63&hn)<<6|63&Ln,lr>65535&&lr<1114112&&(Tt=lr))}}null===Tt?(Tt=65533,On=1):Tt>65535&&(Tt-=65536,Ne.push(Tt>>>10&1023|55296),Tt=56320|1023&Tt),Ne.push(Tt),ft+=On}return function En(z){const L=z.length;if(L<=fn)return String.fromCharCode.apply(String,z);let V="",Ne=0;for(;Neft.length?(S.isBuffer(Tt)||(Tt=S.from(Tt)),Tt.copy(ft,mt)):Uint8Array.prototype.set.call(ft,Tt,mt);else{if(!S.isBuffer(Tt))throw new TypeError('"list" argument must be an Array of Buffers');Tt.copy(ft,mt)}mt+=Tt.length}return ft},S.byteLength=Le,S.prototype._isBuffer=!0,S.prototype.swap16=function(){const L=this.length;if(L%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let V=0;VV&&(L+=" ... "),""},y&&(S.prototype[y]=S.prototype.inspect),S.prototype.compare=function(L,V,Ne,ft,mt){if(Kt(L,Uint8Array)&&(L=S.from(L,L.offset,L.byteLength)),!S.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(void 0===V&&(V=0),void 0===Ne&&(Ne=L?L.length:0),void 0===ft&&(ft=0),void 0===mt&&(mt=this.length),V<0||Ne>L.length||ft<0||mt>this.length)throw new RangeError("out of range index");if(ft>=mt&&V>=Ne)return 0;if(ft>=mt)return-1;if(V>=Ne)return 1;if(this===L)return 0;let Tt=(mt>>>=0)-(ft>>>=0),On=(Ne>>>=0)-(V>>>=0);const cn=Math.min(Tt,On),hn=this.slice(ft,mt),Ln=L.slice(V,Ne);for(let lr=0;lr>>=0,isFinite(Ne)?(Ne>>>=0,void 0===ft&&(ft="utf8")):(ft=Ne,Ne=void 0)}const mt=this.length-V;if((void 0===Ne||Ne>mt)&&(Ne=mt),L.length>0&&(Ne<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ft||(ft="utf8");let Tt=!1;for(;;)switch(ft){case"hex":return xe(this,L,V,Ne);case"utf8":case"utf-8":return Be(this,L,V,Ne);case"ascii":case"latin1":case"binary":return st(this,L,V,Ne);case"base64":return lt(this,L,V,Ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,L,V,Ne);default:if(Tt)throw new TypeError("Unknown encoding: "+ft);ft=(""+ft).toLowerCase(),Tt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const fn=4096;function Wn(z,L,V){let Ne="";V=Math.min(z.length,V);for(let ft=L;ftNe)&&(V=Ne);let ft="";for(let mt=L;mtV)throw new RangeError("Trying to access beyond buffer length")}function Ue(z,L,V,Ne,ft,mt){if(!S.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(L>ft||Lz.length)throw new RangeError("Index out of range")}function Ft(z,L,V,Ne,ft){Tn(L,Ne,ft,z,V,7);let mt=Number(L&BigInt(4294967295));z[V++]=mt,mt>>=8,z[V++]=mt,mt>>=8,z[V++]=mt,mt>>=8,z[V++]=mt;let Tt=Number(L>>BigInt(32)&BigInt(4294967295));return z[V++]=Tt,Tt>>=8,z[V++]=Tt,Tt>>=8,z[V++]=Tt,Tt>>=8,z[V++]=Tt,V}function Ke(z,L,V,Ne,ft){Tn(L,Ne,ft,z,V,7);let mt=Number(L&BigInt(4294967295));z[V+7]=mt,mt>>=8,z[V+6]=mt,mt>>=8,z[V+5]=mt,mt>>=8,z[V+4]=mt;let Tt=Number(L>>BigInt(32)&BigInt(4294967295));return z[V+3]=Tt,Tt>>=8,z[V+2]=Tt,Tt>>=8,z[V+1]=Tt,Tt>>=8,z[V]=Tt,V+8}function Ze(z,L,V,Ne,ft,mt){if(V+Ne>z.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function it(z,L,V,Ne,ft){return L=+L,V>>>=0,ft||Ze(z,0,V,4),c.write(z,L,V,Ne,23,4),V+4}function Ot(z,L,V,Ne,ft){return L=+L,V>>>=0,ft||Ze(z,0,V,8),c.write(z,L,V,Ne,52,8),V+8}S.prototype.slice=function(L,V){const Ne=this.length;(L=~~L)<0?(L+=Ne)<0&&(L=0):L>Ne&&(L=Ne),(V=void 0===V?Ne:~~V)<0?(V+=Ne)<0&&(V=0):V>Ne&&(V=Ne),V>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L],mt=1,Tt=0;for(;++Tt>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L+--V],mt=1;for(;V>0&&(mt*=256);)ft+=this[L+--V]*mt;return ft},S.prototype.readUint8=S.prototype.readUInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),this[L]},S.prototype.readUint16LE=S.prototype.readUInt16LE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]|this[L+1]<<8},S.prototype.readUint16BE=S.prototype.readUInt16BE=function(L,V){return L>>>=0,V||ze(L,2,this.length),this[L]<<8|this[L+1]},S.prototype.readUint32LE=S.prototype.readUInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},S.prototype.readUint32BE=S.prototype.readUInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},S.prototype.readBigUInt64LE=ye(function(L){Wt(L>>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=V+256*this[++L]+65536*this[++L]+this[++L]*2**24,mt=this[++L]+256*this[++L]+65536*this[++L]+Ne*2**24;return BigInt(ft)+(BigInt(mt)<>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=V*2**24+65536*this[++L]+256*this[++L]+this[++L],mt=this[++L]*2**24+65536*this[++L]+256*this[++L]+Ne;return(BigInt(ft)<>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=this[L],mt=1,Tt=0;for(;++Tt=mt&&(ft-=Math.pow(2,8*V)),ft},S.prototype.readIntBE=function(L,V,Ne){L>>>=0,V>>>=0,Ne||ze(L,V,this.length);let ft=V,mt=1,Tt=this[L+--ft];for(;ft>0&&(mt*=256);)Tt+=this[L+--ft]*mt;return mt*=128,Tt>=mt&&(Tt-=Math.pow(2,8*V)),Tt},S.prototype.readInt8=function(L,V){return L>>>=0,V||ze(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},S.prototype.readInt16LE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Ne=this[L]|this[L+1]<<8;return 32768&Ne?4294901760|Ne:Ne},S.prototype.readInt16BE=function(L,V){L>>>=0,V||ze(L,2,this.length);const Ne=this[L+1]|this[L]<<8;return 32768&Ne?4294901760|Ne:Ne},S.prototype.readInt32LE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},S.prototype.readInt32BE=function(L,V){return L>>>=0,V||ze(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},S.prototype.readBigInt64LE=ye(function(L){Wt(L>>>=0,"offset");const V=this[L],Ne=this[L+7];return(void 0===V||void 0===Ne)&&Zt(L,this.length-8),(BigInt(this[L+4]+256*this[L+5]+65536*this[L+6]+(Ne<<24))<>>=0,"offset");const V=this[L],Ne=this[L+7];(void 0===V||void 0===Ne)&&Zt(L,this.length-8);const ft=(V<<24)+65536*this[++L]+256*this[++L]+this[++L];return(BigInt(ft)<>>=0,V||ze(L,4,this.length),c.read(this,L,!0,23,4)},S.prototype.readFloatBE=function(L,V){return L>>>=0,V||ze(L,4,this.length),c.read(this,L,!1,23,4)},S.prototype.readDoubleLE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!0,52,8)},S.prototype.readDoubleBE=function(L,V){return L>>>=0,V||ze(L,8,this.length),c.read(this,L,!1,52,8)},S.prototype.writeUintLE=S.prototype.writeUIntLE=function(L,V,Ne,ft){L=+L,V>>>=0,Ne>>>=0,ft||Ue(this,L,V,Ne,Math.pow(2,8*Ne)-1,0);let mt=1,Tt=0;for(this[V]=255&L;++Tt>>=0,Ne>>>=0,ft||Ue(this,L,V,Ne,Math.pow(2,8*Ne)-1,0);let mt=Ne-1,Tt=1;for(this[V+mt]=255&L;--mt>=0&&(Tt*=256);)this[V+mt]=L/Tt&255;return V+Ne},S.prototype.writeUint8=S.prototype.writeUInt8=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,1,255,0),this[V]=255&L,V+1},S.prototype.writeUint16LE=S.prototype.writeUInt16LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,65535,0),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeUint16BE=S.prototype.writeUInt16BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,65535,0),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeUint32LE=S.prototype.writeUInt32LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,4294967295,0),this[V+3]=L>>>24,this[V+2]=L>>>16,this[V+1]=L>>>8,this[V]=255&L,V+4},S.prototype.writeUint32BE=S.prototype.writeUInt32BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,4294967295,0),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigUInt64LE=ye(function(L,V=0){return Ft(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeBigUInt64BE=ye(function(L,V=0){return Ke(this,L,V,BigInt(0),BigInt("0xffffffffffffffff"))}),S.prototype.writeIntLE=function(L,V,Ne,ft){if(L=+L,V>>>=0,!ft){const cn=Math.pow(2,8*Ne-1);Ue(this,L,V,Ne,cn-1,-cn)}let mt=0,Tt=1,On=0;for(this[V]=255&L;++mt>>=0,!ft){const cn=Math.pow(2,8*Ne-1);Ue(this,L,V,Ne,cn-1,-cn)}let mt=Ne-1,Tt=1,On=0;for(this[V+mt]=255&L;--mt>=0&&(Tt*=256);)L<0&&0===On&&0!==this[V+mt+1]&&(On=1),this[V+mt]=(L/Tt|0)-On&255;return V+Ne},S.prototype.writeInt8=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,1,127,-128),L<0&&(L=255+L+1),this[V]=255&L,V+1},S.prototype.writeInt16LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,32767,-32768),this[V]=255&L,this[V+1]=L>>>8,V+2},S.prototype.writeInt16BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,2,32767,-32768),this[V]=L>>>8,this[V+1]=255&L,V+2},S.prototype.writeInt32LE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,2147483647,-2147483648),this[V]=255&L,this[V+1]=L>>>8,this[V+2]=L>>>16,this[V+3]=L>>>24,V+4},S.prototype.writeInt32BE=function(L,V,Ne){return L=+L,V>>>=0,Ne||Ue(this,L,V,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[V]=L>>>24,this[V+1]=L>>>16,this[V+2]=L>>>8,this[V+3]=255&L,V+4},S.prototype.writeBigInt64LE=ye(function(L,V=0){return Ft(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeBigInt64BE=ye(function(L,V=0){return Ke(this,L,V,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),S.prototype.writeFloatLE=function(L,V,Ne){return it(this,L,V,!0,Ne)},S.prototype.writeFloatBE=function(L,V,Ne){return it(this,L,V,!1,Ne)},S.prototype.writeDoubleLE=function(L,V,Ne){return Ot(this,L,V,!0,Ne)},S.prototype.writeDoubleBE=function(L,V,Ne){return Ot(this,L,V,!1,Ne)},S.prototype.copy=function(L,V,Ne,ft){if(!S.isBuffer(L))throw new TypeError("argument should be a Buffer");if(Ne||(Ne=0),!ft&&0!==ft&&(ft=this.length),V>=L.length&&(V=L.length),V||(V=0),ft>0&&ft=this.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("sourceEnd out of bounds");ft>this.length&&(ft=this.length),L.length-V>>=0,Ne=void 0===Ne?this.length:Ne>>>0,L||(L=0),"number"==typeof L)for(mt=V;mt=Ne+4;V-=3)L=`_${z.slice(V-3,V)}${L}`;return`${z.slice(0,V)}${L}`}function Tn(z,L,V,Ne,ft,mt){if(z>V||z3?0===L||L===BigInt(0)?`>= 0${Tt} and < 2${Tt} ** ${8*(mt+1)}${Tt}`:`>= -(2${Tt} ** ${8*(mt+1)-1}${Tt}) and < 2 ** ${8*(mt+1)-1}${Tt}`:`>= ${L}${Tt} and <= ${V}${Tt}`,new Qt.ERR_OUT_OF_RANGE("value",On,z)}!function Xt(z,L,V){Wt(L,"offset"),(void 0===z[L]||void 0===z[L+V])&&Zt(L,z.length-(V+1))}(Ne,ft,mt)}function Wt(z,L){if("number"!=typeof z)throw new Qt.ERR_INVALID_ARG_TYPE(L,"number",z)}function Zt(z,L,V){throw Math.floor(z)!==z?(Wt(z,V),new Qt.ERR_OUT_OF_RANGE(V||"offset","an integer",z)):L<0?new Qt.ERR_BUFFER_OUT_OF_BOUNDS:new Qt.ERR_OUT_OF_RANGE(V||"offset",`>= ${V?1:0} and <= ${L}`,z)}Me("ERR_BUFFER_OUT_OF_BOUNDS",function(z){return z?`${z} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Me("ERR_INVALID_ARG_TYPE",function(z,L){return`The "${z}" argument must be of type number. Received type ${typeof L}`},TypeError),Me("ERR_OUT_OF_RANGE",function(z,L,V){let Ne=`The value of "${z}" is out of range.`,ft=V;return Number.isInteger(V)&&Math.abs(V)>2**32?ft=ht(String(V)):"bigint"==typeof V&&(ft=String(V),(V>BigInt(2)**BigInt(32)||V<-(BigInt(2)**BigInt(32)))&&(ft=ht(ft)),ft+="n"),Ne+=` It must be ${L}. Received ${ft}`,Ne},RangeError);const rt=/[^+/0-9A-Za-z-_]/g;function en(z,L){let V;L=L||1/0;const Ne=z.length;let ft=null;const mt=[];for(let Tt=0;Tt55295&&V<57344){if(!ft){if(V>56319){(L-=3)>-1&&mt.push(239,191,189);continue}if(Tt+1===Ne){(L-=3)>-1&&mt.push(239,191,189);continue}ft=V;continue}if(V<56320){(L-=3)>-1&&mt.push(239,191,189),ft=V;continue}V=65536+(ft-55296<<10|V-56320)}else ft&&(L-=3)>-1&&mt.push(239,191,189);if(ft=null,V<128){if((L-=1)<0)break;mt.push(V)}else if(V<2048){if((L-=2)<0)break;mt.push(V>>6|192,63&V|128)}else if(V<65536){if((L-=3)<0)break;mt.push(V>>12|224,V>>6&63|128,63&V|128)}else{if(!(V<1114112))throw new Error("Invalid code point");if((L-=4)<0)break;mt.push(V>>18|240,V>>12&63|128,V>>6&63|128,63&V|128)}}return mt}function Mn(z){return a.toByteArray(function Ht(z){if((z=(z=z.split("=")[0]).trim().replace(rt,"")).length<2)return"";for(;z.length%4!=0;)z+="=";return z}(z))}function tt(z,L,V,Ne){let ft;for(ft=0;ft=L.length||ft>=z.length);++ft)L[ft+V]=z[ft];return ft}function Kt(z,L){return z instanceof L||null!=z&&null!=z.constructor&&null!=z.constructor.name&&z.constructor.name===L.name}function At(z){return z!=z}const Te=function(){const z="0123456789abcdef",L=new Array(256);for(let V=0;V<16;++V){const Ne=16*V;for(let ft=0;ft<16;++ft)L[Ne+ft]=z[V]+z[ft]}return L}();function ye(z){return typeof BigInt>"u"?He:z}function He(){throw new Error("BigInt not supported")}},9859:(o,s)=>{s.read=function(n,i,a,c,y){var w,C,T=8*y-c-1,S=(1<>1,k=-7,R=a?y-1:0,X=a?-1:1,Z=n[i+R];for(R+=X,w=Z&(1<<-k)-1,Z>>=-k,k+=T;k>0;w=256*w+n[i+R],R+=X,k-=8);for(C=w&(1<<-k)-1,w>>=-k,k+=c;k>0;C=256*C+n[i+R],R+=X,k-=8);if(0===w)w=1-M;else{if(w===S)return C?NaN:1/0*(Z?-1:1);C+=Math.pow(2,c),w-=M}return(Z?-1:1)*C*Math.pow(2,w-c)},s.write=function(n,i,a,c,y,w){var C,T,S,M=8*w-y-1,k=(1<>1,X=23===y?Math.pow(2,-24)-Math.pow(2,-77):0,Z=c?0:w-1,re=c?1:-1,_e=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(T=isNaN(i)?1:0,C=k):(C=Math.floor(Math.log(i)/Math.LN2),i*(S=Math.pow(2,-C))<1&&(C--,S*=2),(i+=C+R>=1?X/S:X*Math.pow(2,1-R))*S>=2&&(C++,S/=2),C+R>=k?(T=0,C=k):C+R>=1?(T=(i*S-1)*Math.pow(2,y),C+=R):(T=i*Math.pow(2,R-1)*Math.pow(2,y),C=0));y>=8;n[a+Z]=255&T,Z+=re,T/=256,y-=8);for(C=C<0;n[a+Z]=255&C,Z+=re,C/=256,M-=8);n[a+Z-re]|=128*_e}},230:o=>{o.exports=function a(c,y,w){function C(M,k){if(!y[M]){if(!c[M]){if(T)return T(M,!0);var X=new Error("Cannot find module '"+M+"'");throw X.code="MODULE_NOT_FOUND",X}var Z=y[M]={exports:{}};c[M][0].call(Z.exports,function(re){return C(c[M][1][re]||re)},Z,Z.exports,a,c,y,w)}return y[M].exports}for(var T=void 0,S=0;S"u"&&a(3);var R=Promise;function X(me,Ye){Ye&&me.then(function(Re){Ye(null,Re)},function(Re){Ye(Re)})}function Z(me,Ye,Re){"function"==typeof Ye&&me.then(Ye),"function"==typeof Re&&me.catch(Re)}function re(me){return"string"!=typeof me&&(console.warn(me+" used as a key, but it is not a string."),me=String(me)),me}function _e(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var pe="local-forage-detect-blob-support",de=void 0,De={},Ee=Object.prototype.toString,Le="readonly",Ae="readwrite";function we(me){for(var Ye=me.length,Re=new ArrayBuffer(Ye),gt=new Uint8Array(Re),jt=0;jt=43)}}).catch(function(){return!1})}(me).then(function(Ye){return de=Ye})}function xe(me){var Ye=De[me.name],Re={};Re.promise=new R(function(gt,jt){Re.resolve=gt,Re.reject=jt}),Ye.deferredOperations.push(Re),Ye.dbReady=Ye.dbReady?Ye.dbReady.then(function(){return Re.promise}):Re.promise}function Be(me){var Re=De[me.name].deferredOperations.pop();if(Re)return Re.resolve(),Re.promise}function st(me,Ye){var gt=De[me.name].deferredOperations.pop();if(gt)return gt.reject(Ye),gt.promise}function lt(me,Ye){return new R(function(Re,gt){if(De[me.name]=De[me.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},me.db){if(!Ye)return Re(me.db);xe(me),me.db.close()}var jt=[me.name];Ye&&jt.push(me.version);var kt=S.open.apply(S,jt);Ye&&(kt.onupgradeneeded=function(pn){var Sn=kt.result;try{Sn.createObjectStore(me.storeName),pn.oldVersion<=1&&Sn.createObjectStore(pe)}catch(An){if("ConstraintError"!==An.name)throw An;console.warn('The database "'+me.name+'" has been upgraded from version '+pn.oldVersion+" to version "+pn.newVersion+', but the storage "'+me.storeName+'" already exists.')}}),kt.onerror=function(pn){pn.preventDefault(),gt(kt.error)},kt.onsuccess=function(){var pn=kt.result;pn.onversionchange=function(Sn){Sn.target.close()},Re(pn),Be(me)}})}function bt(me){return lt(me,!1)}function at(me){return lt(me,!0)}function sn(me,Ye){if(!me.db)return!0;var Re=!me.db.objectStoreNames.contains(me.storeName),jt=me.version>me.db.version;if(me.versionme.version&&(me.version=kt)}return!0}return!1}function En(me){return k([we(atob(me.data))],{type:me.type})}function Wn(me){return me&&me.__local_forage_encoded_blob}function wn(me){var Ye=this,Re=Ye._initReady().then(function(){var gt=De[Ye._dbInfo.name];if(gt&>.dbReady)return gt.dbReady});return Z(Re,me,me),Re}function _t(me,Ye,Re,gt){void 0===gt&&(gt=1);try{var jt=me.db.transaction(me.storeName,Ye);Re(null,jt)}catch(kt){if(gt>0&&(!me.db||"InvalidStateError"===kt.name||"NotFoundError"===kt.name))return R.resolve().then(function(){if(!me.db||"NotFoundError"===kt.name&&!me.db.objectStoreNames.contains(me.storeName)&&me.version<=me.db.version)return me.db&&(me.version=me.db.version+1),at(me)}).then(function(){return function Je(me){xe(me);for(var Ye=De[me.name],Re=Ye.forages,gt=0;gt>4,zn[jt++]=(15&pn)<<4|Sn>>2,zn[jt++]=(3&Sn)<<6|63&An;return Fn}function Tt(me){var gt,Ye=new Uint8Array(me),Re="";for(gt=0;gt>2],Re+=Zt[(3&Ye[gt])<<4|Ye[gt+1]>>4],Re+=Zt[(15&Ye[gt+1])<<2|Ye[gt+2]>>6],Re+=Zt[63&Ye[gt+2]];return Ye.length%3==2?Re=Re.substring(0,Re.length-1)+"=":Ye.length%3==1&&(Re=Re.substring(0,Re.length-2)+"=="),Re}var hn={serialize:function On(me,Ye){var Re="";if(me&&(Re=ft.call(me)),me&&("[object ArrayBuffer]"===Re||me.buffer&&"[object ArrayBuffer]"===ft.call(me.buffer))){var gt,jt=en;me instanceof ArrayBuffer?(gt=me,jt+=mn):(gt=me.buffer,"[object Int8Array]"===Re?jt+="si08":"[object Uint8Array]"===Re?jt+="ui08":"[object Uint8ClampedArray]"===Re?jt+="uic8":"[object Int16Array]"===Re?jt+="si16":"[object Uint16Array]"===Re?jt+="ur16":"[object Int32Array]"===Re?jt+="si32":"[object Uint32Array]"===Re?jt+=z:"[object Float32Array]"===Re?jt+=L:"[object Float64Array]"===Re?jt+=V:Ye(new Error("Failed to get type for BinaryArray"))),Ye(jt+Tt(gt))}else if("[object Blob]"===Re){var kt=new FileReader;kt.onload=function(){var pn="~~local_forage_type~"+me.type+"~"+Tt(this.result);Ye(en+Mn+pn)},kt.readAsArrayBuffer(me)}else try{Ye(JSON.stringify(me))}catch(pn){console.error("Couldn't convert value into a JSON string: ",me),Ye(null,pn)}},deserialize:function cn(me){if(me.substring(0,9)!==en)return JSON.parse(me);var gt,Ye=me.substring(13),Re=me.substring(9,13);if(Re===Mn&&Ht.test(Ye)){var jt=Ye.match(Ht);gt=jt[1],Ye=Ye.substring(jt[0].length)}var kt=mt(Ye);switch(Re){case mn:return kt;case Mn:return k([kt],{type:gt});case"si08":return new Int8Array(kt);case"ui08":return new Uint8Array(kt);case"uic8":return new Uint8ClampedArray(kt);case"si16":return new Int16Array(kt);case"ur16":return new Uint16Array(kt);case"si32":return new Int32Array(kt);case z:return new Uint32Array(kt);case L:return new Float32Array(kt);case V:return new Float64Array(kt);default:throw new Error("Unkown type: "+Re)}},stringToBuffer:mt,bufferToString:Tt};function Ln(me,Ye,Re,gt){me.executeSql("CREATE TABLE IF NOT EXISTS "+Ye.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Re,gt)}function Dn(me,Ye,Re,gt,jt,kt){me.executeSql(Re,gt,jt,function(pn,Sn){Sn.code===Sn.SYNTAX_ERR?pn.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[Ye.storeName],function(An,Fn){Fn.rows.length?kt(An,Sn):Ln(An,Ye,function(){An.executeSql(Re,gt,jt,kt)},kt)},kt):kt(pn,Sn)},kt)}function Vr(me,Ye,Re,gt){var jt=this;me=re(me);var kt=new R(function(pn,Sn){jt.ready().then(function(){void 0===Ye&&(Ye=null);var An=Ye,Fn=jt._dbInfo;Fn.serializer.serialize(Ye,function(zn,tr){tr?Sn(tr):Fn.db.transaction(function(cr){Dn(cr,Fn,"INSERT OR REPLACE INTO "+Fn.storeName+" (key, value) VALUES (?, ?)",[me,zn],function(){pn(An)},function(Er,Cr){Sn(Cr)})},function(cr){if(cr.code===cr.QUOTA_ERR){if(gt>0)return void pn(Vr.apply(jt,[me,An,Re,gt-1]));Sn(cr)}})})}).catch(Sn)});return X(kt,Re),kt}var xn={_driver:"webSQLStorage",_initStorage:function lr(me){var Ye=this,Re={db:null};if(me)for(var gt in me)Re[gt]="string"!=typeof me[gt]?me[gt].toString():me[gt];var jt=new R(function(kt,pn){try{Re.db=openDatabase(Re.name,String(Re.version),Re.description,Re.size)}catch(Sn){return pn(Sn)}Re.db.transaction(function(Sn){Ln(Sn,Re,function(){Ye._dbInfo=Re,kt()},function(An,Fn){pn(Fn)})},pn)});return Re.serializer=hn,jt},_support:function Wt(){return"function"==typeof openDatabase}(),iterate:function Mr(me,Ye){var Re=this,gt=new R(function(jt,kt){Re.ready().then(function(){var pn=Re._dbInfo;pn.db.transaction(function(Sn){Dn(Sn,pn,"SELECT * FROM "+pn.storeName,[],function(An,Fn){for(var zn=Fn.rows,tr=zn.length,cr=0;cr '__WebKitDatabaseInfoTable__'",[],function(jt,kt){for(var pn=[],Sn=0;Sn0}var ds={_driver:"localStorageWrapper",_initStorage:function Zi(me){var Re={};if(me)for(var gt in me)Re[gt]=me[gt];return Re.keyPrefix=xr(me,this._defaultConfig),hi()?(this._dbInfo=Re,Re.serializer=hn,R.resolve()):R.reject()},_support:function er(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function nt(me,Ye){var Re=this,gt=Re.ready().then(function(){for(var jt=Re._dbInfo,kt=jt.keyPrefix,pn=kt.length,Sn=localStorage.length,An=1,Fn=0;Fn=0;jt--){var kt=localStorage.key(jt);0===kt.indexOf(gt)&&localStorage.removeItem(kt)}});return X(Re,me),Re},length:function vn(me){var Re=this.keys().then(function(gt){return gt.length});return X(Re,me),Re},key:function Rt(me,Ye){var Re=this,gt=Re.ready().then(function(){var kt,jt=Re._dbInfo;try{kt=localStorage.key(me)}catch{kt=null}return kt&&(kt=kt.substring(jt.keyPrefix.length)),kt});return X(gt,Ye),gt},keys:function ln(me){var Ye=this,Re=Ye.ready().then(function(){for(var gt=Ye._dbInfo,jt=localStorage.length,kt=[],pn=0;pn=0;pn--){var Sn=localStorage.key(pn);0===Sn.indexOf(kt)&&localStorage.removeItem(Sn)}}):R.reject("Invalid arguments"),Ye),jt}},$o=function(Ye,Re){return Ye===Re||"number"==typeof Ye&&"number"==typeof Re&&isNaN(Ye)&&isNaN(Re)},ai=function(Ye,Re){for(var gt=Ye.length,jt=0;jt"u"?"undefined":w(Re))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var gt in Re){if("storeName"===gt&&(Re[gt]=Re[gt].replace(/\W/g,"_")),"version"===gt&&"number"!=typeof Re[gt])return new Error("Database version must be a number.");this._config[gt]=Re[gt]}return!("driver"in Re)||!Re.driver||this.setDriver(this._config.driver)}return"string"==typeof Re?this._config[Re]:this._config},me.prototype.defineDriver=function(Re,gt,jt){var kt=new R(function(pn,Sn){try{var An=Re._driver,Fn=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Re._driver)return void Sn(Fn);for(var zn=po.concat("_initStorage"),tr=0,cr=zn.length;tr{"use strict";n.d(s,{t:()=>a});var i=n(8447);class a extends i.B{constructor(y){super(),this._value=y}get value(){return this.getValue()}_subscribe(y){const w=super._subscribe(y);return!w.closed&&y.next(this._value),w}getValue(){const{hasError:y,thrownError:w,_value:C}=this;if(y)throw w;return this._throwIfClosed(),C}next(y){super.next(this._value=y)}}},1698:(o,s,n)=>{"use strict";n.d(s,{c:()=>S});var i=n(1540),a=n(5710),c=n(2563),y=n(6742),w=n(3305),C=n(1126),T=n(4171);let S=(()=>{class X{constructor(re){re&&(this._subscribe=re)}lift(re){const _e=new X;return _e.source=this,_e.operator=re,_e}subscribe(re,_e,pe){const de=function R(X){return X&&X instanceof i.vU||function k(X){return X&&(0,C.T)(X.next)&&(0,C.T)(X.error)&&(0,C.T)(X.complete)}(X)&&(0,a.Uv)(X)}(re)?re:new i.Ms(re,_e,pe);return(0,T.Y)(()=>{const{operator:De,source:Ee}=this;de.add(De?De.call(de,Ee):Ee?this._subscribe(de):this._trySubscribe(de))}),de}_trySubscribe(re){try{return this._subscribe(re)}catch(_e){re.error(_e)}}forEach(re,_e){return new(_e=M(_e))((pe,de)=>{const De=new i.Ms({next:Ee=>{try{re(Ee)}catch(Le){de(Le),De.unsubscribe()}},error:de,complete:pe});this.subscribe(De)})}_subscribe(re){var _e;return null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(re)}[c.s](){return this}pipe(...re){return(0,y.m)(re)(this)}toPromise(re){return new(re=M(re))((_e,pe)=>{let de;this.subscribe(De=>de=De,De=>pe(De),()=>_e(de))})}}return X.create=Z=>new X(Z),X})();function M(X){var Z;return null!==(Z=X??w.$.Promise)&&void 0!==Z?Z:Promise}},7838:(o,s,n)=>{"use strict";n.d(s,{m:()=>c});var i=n(8447),a=n(6188);class c extends i.B{constructor(w=1/0,C=1/0,T=a.U){super(),this._bufferSize=w,this._windowTime=C,this._timestampProvider=T,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,C)}next(w){const{isStopped:C,_buffer:T,_infiniteTimeWindow:S,_timestampProvider:M,_windowTime:k}=this;C||(T.push(w),!S&&T.push(M.now()+k)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(w),{_infiniteTimeWindow:T,_buffer:S}=this,M=S.slice();for(let k=0;k{"use strict";n.d(s,{B:()=>T});var i=n(1698),a=n(5710);const y=(0,n(5644).L)(M=>function(){M(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=n(5891),C=n(4171);let T=(()=>{class M extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(R){const X=new S(this,this);return X.operator=R,X}_throwIfClosed(){if(this.closed)throw new y}next(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const X of this.currentObservers)X.next(R)}})}error(R){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=R;const{observers:X}=this;for(;X.length;)X.shift().error(R)}})}complete(){(0,C.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:R}=this;for(;R.length;)R.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var R;return(null===(R=this.observers)||void 0===R?void 0:R.length)>0}_trySubscribe(R){return this._throwIfClosed(),super._trySubscribe(R)}_subscribe(R){return this._throwIfClosed(),this._checkFinalizedStatuses(R),this._innerSubscribe(R)}_innerSubscribe(R){const{hasError:X,isStopped:Z,observers:re}=this;return X||Z?a.Kn:(this.currentObservers=null,re.push(R),new a.yU(()=>{this.currentObservers=null,(0,w.o)(re,R)}))}_checkFinalizedStatuses(R){const{hasError:X,thrownError:Z,isStopped:re}=this;X?R.error(Z):re&&R.complete()}asObservable(){const R=new i.c;return R.source=this,R}}return M.create=(k,R)=>new S(k,R),M})();class S extends T{constructor(k,R){super(),this.destination=k,this.source=R}next(k){var R,X;null===(X=null===(R=this.destination)||void 0===R?void 0:R.next)||void 0===X||X.call(R,k)}error(k){var R,X;null===(X=null===(R=this.destination)||void 0===R?void 0:R.error)||void 0===X||X.call(R,k)}complete(){var k,R;null===(R=null===(k=this.destination)||void 0===k?void 0:k.complete)||void 0===R||R.call(k)}_subscribe(k){var R,X;return null!==(X=null===(R=this.source)||void 0===R?void 0:R.subscribe(k))&&void 0!==X?X:a.Kn}}},1540:(o,s,n)=>{"use strict";n.d(s,{Ms:()=>pe,vU:()=>X});var i=n(1126),a=n(5710),c=n(3305),y=n(191),w=n(850);const C=M("C",void 0,void 0);function M(Ae,we,le){return{kind:Ae,value:we,error:le}}var k=n(3695),R=n(4171);class X extends a.yU{constructor(we){super(),this.isStopped=!1,we?(this.destination=we,(0,a.Uv)(we)&&we.add(this)):this.destination=Le}static create(we,le,ae){return new pe(we,le,ae)}next(we){this.isStopped?Ee(function S(Ae){return M("N",Ae,void 0)}(we),this):this._next(we)}error(we){this.isStopped?Ee(function T(Ae){return M("E",void 0,Ae)}(we),this):(this.isStopped=!0,this._error(we))}complete(){this.isStopped?Ee(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(we){this.destination.next(we)}_error(we){try{this.destination.error(we)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Z=Function.prototype.bind;function re(Ae,we){return Z.call(Ae,we)}class _e{constructor(we){this.partialObserver=we}next(we){const{partialObserver:le}=this;if(le.next)try{le.next(we)}catch(ae){de(ae)}}error(we){const{partialObserver:le}=this;if(le.error)try{le.error(we)}catch(ae){de(ae)}else de(we)}complete(){const{partialObserver:we}=this;if(we.complete)try{we.complete()}catch(le){de(le)}}}class pe extends X{constructor(we,le,ae){let xe;if(super(),(0,i.T)(we)||!we)xe={next:we??void 0,error:le??void 0,complete:ae??void 0};else{let Be;this&&c.$.useDeprecatedNextContext?(Be=Object.create(we),Be.unsubscribe=()=>this.unsubscribe(),xe={next:we.next&&re(we.next,Be),error:we.error&&re(we.error,Be),complete:we.complete&&re(we.complete,Be)}):xe=we}this.destination=new _e(xe)}}function de(Ae){c.$.useDeprecatedSynchronousErrorHandling?(0,R.l)(Ae):(0,y.m)(Ae)}function Ee(Ae,we){const{onStoppedNotification:le}=c.$;le&&k.f.setTimeout(()=>le(Ae,we))}const Le={closed:!0,next:w.l,error:function De(Ae){throw Ae},complete:w.l}},5710:(o,s,n)=>{"use strict";n.d(s,{Kn:()=>C,yU:()=>w,Uv:()=>T});var i=n(1126);const c=(0,n(5644).L)(M=>function(R){M(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((X,Z)=>`${Z+1}) ${X.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R});var y=n(5891);class w{constructor(k){this.initialTeardown=k,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let k;if(!this.closed){this.closed=!0;const{_parentage:R}=this;if(R)if(this._parentage=null,Array.isArray(R))for(const re of R)re.remove(this);else R.remove(this);const{initialTeardown:X}=this;if((0,i.T)(X))try{X()}catch(re){k=re instanceof c?re.errors:[re]}const{_finalizers:Z}=this;if(Z){this._finalizers=null;for(const re of Z)try{S(re)}catch(_e){k=k??[],_e instanceof c?k=[...k,..._e.errors]:k.push(_e)}}if(k)throw new c(k)}}add(k){var R;if(k&&k!==this)if(this.closed)S(k);else{if(k instanceof w){if(k.closed||k._hasParent(this))return;k._addParent(this)}(this._finalizers=null!==(R=this._finalizers)&&void 0!==R?R:[]).push(k)}}_hasParent(k){const{_parentage:R}=this;return R===k||Array.isArray(R)&&R.includes(k)}_addParent(k){const{_parentage:R}=this;this._parentage=Array.isArray(R)?(R.push(k),R):R?[R,k]:k}_removeParent(k){const{_parentage:R}=this;R===k?this._parentage=null:Array.isArray(R)&&(0,y.o)(R,k)}remove(k){const{_finalizers:R}=this;R&&(0,y.o)(R,k),k instanceof w&&k._removeParent(this)}}w.EMPTY=(()=>{const M=new w;return M.closed=!0,M})();const C=w.EMPTY;function T(M){return M instanceof w||M&&"closed"in M&&(0,i.T)(M.remove)&&(0,i.T)(M.add)&&(0,i.T)(M.unsubscribe)}function S(M){(0,i.T)(M)?M():M.unsubscribe()}},3305:(o,s,n)=>{"use strict";n.d(s,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},1642:(o,s,n)=>{"use strict";n.d(s,{G:()=>C});var i=n(1698),a=n(5710),c=n(3589),y=n(2483),w=n(5351);class C extends i.c{constructor(S,M){super(),this.source=S,this.subjectFactory=M,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new a.yU;const M=this.getSubject();S.add(this.source.subscribe((0,y._)(M,void 0,()=>{this._teardown(),M.complete()},k=>{this._teardown(),M.error(k)},()=>this._teardown()))),S.closed&&(this._connection=null,S=a.yU.EMPTY)}return S}refCount(){return(0,c.B)()(this)}}},6627:(o,s,n)=>{"use strict";n.d(s,{z:()=>k});var i=n(1698),a=n(3740),c=n(1787),y=n(9220),w=n(3759),C=n(4327),T=n(9321),S=n(2483),M=n(8266);function k(...Z){const re=(0,C.lI)(Z),_e=(0,C.ms)(Z),{args:pe,keys:de}=(0,a.D)(Z);if(0===pe.length)return(0,c.H)([],re);const De=new i.c(function R(Z,re,_e=y.D){return pe=>{X(re,()=>{const{length:de}=Z,De=new Array(de);let Ee=de,Le=de;for(let Ae=0;Ae{const we=(0,c.H)(Z[Ae],re);let le=!1;we.subscribe((0,S._)(pe,ae=>{De[Ae]=ae,le||(le=!0,Le--),Le||pe.next(_e(De.slice()))},()=>{--Ee||pe.complete()}))},pe)},pe)}}(pe,re,de?Ee=>(0,T.e)(de,Ee):y.D));return _e?De.pipe((0,w.I)(_e)):De}function X(Z,re,_e){Z?(0,M.N)(_e,Z,re):re()}},3569:(o,s,n)=>{"use strict";n.d(s,{x:()=>w});var i=n(1890),c=n(4327),y=n(1787);function w(...C){return function a(){return(0,i.U)(1)}()((0,y.H)(C,(0,c.lI)(C)))}},6381:(o,s,n)=>{"use strict";n.d(s,{v:()=>c});var i=n(1698),a=n(7225);function c(y){return new i.c(w=>{(0,a.Tg)(y()).subscribe(w)})}},6564:(o,s,n)=>{"use strict";n.d(s,{w:()=>a});const a=new(n(1698).c)(w=>w.complete())},2653:(o,s,n)=>{"use strict";n.d(s,{p:()=>S});var i=n(1698),a=n(3740),c=n(7225),y=n(4327),w=n(2483),C=n(3759),T=n(9321);function S(...M){const k=(0,y.ms)(M),{args:R,keys:X}=(0,a.D)(M),Z=new i.c(re=>{const{length:_e}=R;if(!_e)return void re.complete();const pe=new Array(_e);let de=_e,De=_e;for(let Ee=0;Ee<_e;Ee++){let Le=!1;(0,c.Tg)(R[Ee]).subscribe((0,w._)(re,Ae=>{Le||(Le=!0,De--),pe[Ee]=Ae},()=>de--,void 0,()=>{(!de||!Le)&&(De||re.next(X?(0,T.e)(X,pe):pe),re.complete())}))}});return k?Z.pipe((0,C.I)(k)):Z}},1787:(o,s,n)=>{"use strict";n.d(s,{H:()=>ae});var i=n(7225),a=n(8266),c=n(5351),y=n(2483);function w(xe,Be=0){return(0,c.N)((st,lt)=>{st.subscribe((0,y._)(lt,bt=>(0,a.N)(lt,xe,()=>lt.next(bt),Be),()=>(0,a.N)(lt,xe,()=>lt.complete(),Be),bt=>(0,a.N)(lt,xe,()=>lt.error(bt),Be)))})}function C(xe,Be=0){return(0,c.N)((st,lt)=>{lt.add(xe.schedule(()=>st.subscribe(lt),Be))})}var M=n(1698),R=n(6952),X=n(1126);function re(xe,Be){if(!xe)throw new Error("Iterable cannot be null");return new M.c(st=>{(0,a.N)(st,Be,()=>{const lt=xe[Symbol.asyncIterator]();(0,a.N)(st,Be,()=>{lt.next().then(bt=>{bt.done?st.complete():st.next(bt.value)})},0,!0)})})}var _e=n(6600),pe=n(6505),de=n(6786),De=n(4876),Ee=n(8394),Le=n(8810),Ae=n(3173);function ae(xe,Be){return Be?function le(xe,Be){if(null!=xe){if((0,_e.l)(xe))return function T(xe,Be){return(0,i.Tg)(xe).pipe(C(Be),w(Be))}(xe,Be);if((0,de.X)(xe))return function k(xe,Be){return new M.c(st=>{let lt=0;return Be.schedule(function(){lt===xe.length?st.complete():(st.next(xe[lt++]),st.closed||this.schedule())})})}(xe,Be);if((0,pe.y)(xe))return function S(xe,Be){return(0,i.Tg)(xe).pipe(C(Be),w(Be))}(xe,Be);if((0,Ee.T)(xe))return re(xe,Be);if((0,De.x)(xe))return function Z(xe,Be){return new M.c(st=>{let lt;return(0,a.N)(st,Be,()=>{lt=xe[R.l](),(0,a.N)(st,Be,()=>{let bt,at;try{({value:bt,done:at}=lt.next())}catch(sn){return void st.error(sn)}at?st.complete():st.next(bt)},0,!0)}),()=>(0,X.T)(lt?.return)&<.return()})}(xe,Be);if((0,Ae.U)(xe))return function we(xe,Be){return re((0,Ae.C)(xe),Be)}(xe,Be)}throw(0,Le.L)(xe)}(xe,Be):(0,i.Tg)(xe)}},909:(o,s,n)=>{"use strict";n.d(s,{R:()=>k});var i=n(7225),a=n(1698),c=n(5823),y=n(6786),w=n(1126),C=n(3759);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],M=["on","off"];function k(_e,pe,de,De){if((0,w.T)(de)&&(De=de,de=void 0),De)return k(_e,pe,de).pipe((0,C.I)(De));const[Ee,Le]=function re(_e){return(0,w.T)(_e.addEventListener)&&(0,w.T)(_e.removeEventListener)}(_e)?S.map(Ae=>we=>_e[Ae](pe,we,de)):function X(_e){return(0,w.T)(_e.addListener)&&(0,w.T)(_e.removeListener)}(_e)?T.map(R(_e,pe)):function Z(_e){return(0,w.T)(_e.on)&&(0,w.T)(_e.off)}(_e)?M.map(R(_e,pe)):[];if(!Ee&&(0,y.X)(_e))return(0,c.Z)(Ae=>k(Ae,pe,de))((0,i.Tg)(_e));if(!Ee)throw new TypeError("Invalid event target");return new a.c(Ae=>{const we=(...le)=>Ae.next(1Le(we)})}function R(_e,pe){return de=>De=>_e[de](pe,De)}},7225:(o,s,n)=>{"use strict";n.d(s,{Tg:()=>Z});var i=n(1635),a=n(6786),c=n(6505),y=n(1698),w=n(6600),C=n(8394),T=n(8810),S=n(4876),M=n(3173),k=n(1126),R=n(191),X=n(2563);function Z(Ae){if(Ae instanceof y.c)return Ae;if(null!=Ae){if((0,w.l)(Ae))return function re(Ae){return new y.c(we=>{const le=Ae[X.s]();if((0,k.T)(le.subscribe))return le.subscribe(we);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,a.X)(Ae))return function _e(Ae){return new y.c(we=>{for(let le=0;le{Ae.then(le=>{we.closed||(we.next(le),we.complete())},le=>we.error(le)).then(null,R.m)})}(Ae);if((0,C.T)(Ae))return De(Ae);if((0,S.x)(Ae))return function de(Ae){return new y.c(we=>{for(const le of Ae)if(we.next(le),we.closed)return;we.complete()})}(Ae);if((0,M.U)(Ae))return function Ee(Ae){return De((0,M.C)(Ae))}(Ae)}throw(0,T.L)(Ae)}function De(Ae){return new y.c(we=>{(function Le(Ae,we){var le,ae,xe,Be;return(0,i.sH)(this,void 0,void 0,function*(){try{for(le=(0,i.xN)(Ae);!(ae=yield le.next()).done;)if(we.next(ae.value),we.closed)return}catch(st){xe={error:st}}finally{try{ae&&!ae.done&&(Be=le.return)&&(yield Be.call(le))}finally{if(xe)throw xe.error}}we.complete()})})(Ae,we).catch(le=>we.error(le))})}},7509:(o,s,n)=>{"use strict";n.d(s,{h:()=>C});var i=n(1890),a=n(7225),c=n(6564),y=n(4327),w=n(1787);function C(...T){const S=(0,y.lI)(T),M=(0,y.R0)(T,1/0),k=T;return k.length?1===k.length?(0,a.Tg)(k[0]):(0,i.U)(M)((0,w.H)(k,S)):c.w}},3016:(o,s,n)=>{"use strict";n.d(s,{of:()=>c});var i=n(4327),a=n(1787);function c(...y){const w=(0,i.lI)(y);return(0,a.H)(y,w)}},8915:(o,s,n)=>{"use strict";n.d(s,{$:()=>c});var i=n(1698),a=n(1126);function c(y,w){const C=(0,a.T)(y)?y:()=>y,T=S=>S.error(C());return new i.c(w?S=>w.schedule(T,0,S):T)}},9587:(o,s,n)=>{"use strict";n.d(s,{O:()=>w});var i=n(1698),a=n(6061),c=n(9921);function w(C=0,T,S=a.b){let M=-1;return null!=T&&((0,c.m)(T)?S=T:M=T),new i.c(k=>{let R=function y(C){return C instanceof Date&&!isNaN(C)}(C)?+C-S.now():C;R<0&&(R=0);let X=0;return S.schedule(function(){k.closed||(k.next(X++),0<=M?this.schedule(void 0,M):k.complete())},R)})}},2483:(o,s,n)=>{"use strict";n.d(s,{_:()=>a});var i=n(1540);function a(y,w,C,T,S){return new c(y,w,C,T,S)}class c extends i.vU{constructor(w,C,T,S,M,k){super(w),this.onFinalize=M,this.shouldUnsubscribe=k,this._next=C?function(R){try{C(R)}catch(X){w.error(X)}}:super._next,this._error=S?function(R){try{S(R)}catch(X){w.error(X)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(R){w.error(R)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},5684:(o,s,n)=>{"use strict";n.d(s,{Z:()=>T});var i=n(6061),a=n(5351),c=n(7225),y=n(2483),C=n(9587);function T(S,M=i.E){return function w(S){return(0,a.N)((M,k)=>{let R=!1,X=null,Z=null,re=!1;const _e=()=>{if(Z?.unsubscribe(),Z=null,R){R=!1;const de=X;X=null,k.next(de)}re&&k.complete()},pe=()=>{Z=null,re&&k.complete()};M.subscribe((0,y._)(k,de=>{R=!0,X=de,Z||(0,c.Tg)(S(de)).subscribe(Z=(0,y._)(k,_e,pe))},()=>{re=!0,(!R||!Z||Z.closed)&&k.complete()}))})}(()=>(0,C.O)(S,M))}},7178:(o,s,n)=>{"use strict";n.d(s,{W:()=>y});var i=n(7225),a=n(2483),c=n(5351);function y(w){return(0,c.N)((C,T)=>{let k,S=null,M=!1;S=C.subscribe((0,a._)(T,void 0,void 0,R=>{k=(0,i.Tg)(w(R,y(w)(C))),S?(S.unsubscribe(),S=null,k.subscribe(T)):M=!0})),M&&(S.unsubscribe(),S=null,k.subscribe(T))})}},1459:(o,s,n)=>{"use strict";n.d(s,{H:()=>c});var i=n(5823),a=n(1126);function c(y,w){return(0,a.T)(w)?(0,i.Z)(y,w,1):(0,i.Z)(y,1)}},8627:(o,s,n)=>{"use strict";n.d(s,{B:()=>y});var i=n(6061),a=n(5351),c=n(2483);function y(w,C=i.E){return(0,a.N)((T,S)=>{let M=null,k=null,R=null;const X=()=>{if(M){M.unsubscribe(),M=null;const re=k;k=null,S.next(re)}};function Z(){const re=R+w,_e=C.now();if(_e{k=re,R=C.now(),M||(M=C.schedule(Z,w),S.add(M))},()=>{X(),S.complete()},void 0,()=>{k=M=null}))})}},5670:(o,s,n)=>{"use strict";n.d(s,{U:()=>c});var i=n(5351),a=n(2483);function c(y){return(0,i.N)((w,C)=>{let T=!1;w.subscribe((0,a._)(C,S=>{T=!0,C.next(S)},()=>{T||C.next(y),C.complete()}))})}},8136:(o,s,n)=>{"use strict";n.d(s,{c:()=>Z});var i=n(6061),a=n(3569),c=n(7610),y=n(5351),w=n(2483),C=n(850),S=n(6590),M=n(5823),k=n(7225);function R(re,_e){return _e?pe=>(0,a.x)(_e.pipe((0,c.s)(1),function T(){return(0,y.N)((re,_e)=>{re.subscribe((0,w._)(_e,C.l))})}()),pe.pipe(R(re))):(0,M.Z)((pe,de)=>(0,k.Tg)(re(pe,de)).pipe((0,c.s)(1),(0,S.u)(pe)))}var X=n(9587);function Z(re,_e=i.E){const pe=(0,X.O)(re,_e);return R(()=>pe)}},6645:(o,s,n)=>{"use strict";n.d(s,{F:()=>y});var i=n(9220),a=n(5351),c=n(2483);function y(C,T=i.D){return C=C??w,(0,a.N)((S,M)=>{let k,R=!0;S.subscribe((0,c._)(M,X=>{const Z=T(X);(R||!C(k,Z))&&(R=!1,k=Z,M.next(X))}))})}function w(C,T){return C===T}},1483:(o,s,n)=>{"use strict";n.d(s,{p:()=>c});var i=n(5351),a=n(2483);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>y.call(w,M,S++)&&T.next(M)))})}},4447:(o,s,n)=>{"use strict";n.d(s,{j:()=>a});var i=n(5351);function a(c){return(0,i.N)((y,w)=>{try{y.subscribe(w)}finally{w.add(c)}})}},1703:(o,s,n)=>{"use strict";n.d(s,{$:()=>T});var i=n(8747),a=n(1483),c=n(7610),y=n(5670),w=n(5017),C=n(9220);function T(S,M){const k=arguments.length>=2;return R=>R.pipe(S?(0,a.p)((X,Z)=>S(X,Z,R)):C.D,(0,c.s)(1),k?(0,y.U)(M):(0,w.v)(()=>new i.G))}},7947:(o,s,n)=>{"use strict";n.d(s,{T:()=>c});var i=n(5351),a=n(2483);function c(y,w){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>{T.next(y.call(w,M,S++))}))})}},6590:(o,s,n)=>{"use strict";n.d(s,{u:()=>a});var i=n(7947);function a(c){return(0,i.T)(()=>c)}},1890:(o,s,n)=>{"use strict";n.d(s,{U:()=>c});var i=n(5823),a=n(9220);function c(y=1/0){return(0,i.Z)(a.D,y)}},5823:(o,s,n)=>{"use strict";n.d(s,{Z:()=>S});var i=n(7947),a=n(7225),c=n(5351),y=n(8266),w=n(2483),T=n(1126);function S(M,k,R=1/0){return(0,T.T)(k)?S((X,Z)=>(0,i.T)((re,_e)=>k(X,re,Z,_e))((0,a.Tg)(M(X,Z))),R):("number"==typeof k&&(R=k),(0,c.N)((X,Z)=>function C(M,k,R,X,Z,re,_e,pe){const de=[];let De=0,Ee=0,Le=!1;const Ae=()=>{Le&&!de.length&&!De&&k.complete()},we=ae=>De{re&&k.next(ae),De++;let xe=!1;(0,a.Tg)(R(ae,Ee++)).subscribe((0,w._)(k,Be=>{Z?.(Be),re?we(Be):k.next(Be)},()=>{xe=!0},void 0,()=>{if(xe)try{for(De--;de.length&&Dele(Be)):le(Be)}Ae()}catch(Be){k.error(Be)}}))};return M.subscribe((0,w._)(k,we,()=>{Le=!0,Ae()})),()=>{pe?.()}}(X,Z,M,R)))}},3589:(o,s,n)=>{"use strict";n.d(s,{B:()=>c});var i=n(5351),a=n(2483);function c(){return(0,i.N)((y,w)=>{let C=null;y._refCount++;const T=(0,a._)(w,void 0,void 0,void 0,()=>{if(!y||y._refCount<=0||0<--y._refCount)return void(C=null);const S=y._connection,M=C;C=null,S&&(!M||S===M)&&S.unsubscribe(),w.unsubscribe()});y.subscribe(T),T.closed||(C=y.connect())})}},5903:(o,s,n)=>{"use strict";n.d(s,{L:()=>C});var i=n(5351),a=n(2483),c=n(9220),y=n(9587),w=n(7225);function C(T=1/0){let S;S=T&&"object"==typeof T?T:{count:T};const{count:M=1/0,delay:k,resetOnSuccess:R=!1}=S;return M<=0?c.D:(0,i.N)((X,Z)=>{let _e,re=0;const pe=()=>{let de=!1;_e=X.subscribe((0,a._)(Z,De=>{R&&(re=0),Z.next(De)},void 0,De=>{if(re++{_e?(_e.unsubscribe(),_e=null,pe()):de=!0};if(null!=k){const Le="number"==typeof k?(0,y.O)(k):(0,w.Tg)(k(De,re)),Ae=(0,a._)(Z,()=>{Ae.unsubscribe(),Ee()},()=>{Z.complete()});Le.subscribe(Ae)}else Ee()}else Z.error(De)})),de&&(_e.unsubscribe(),_e=null,pe())};pe()})}},36:(o,s,n)=>{"use strict";n.d(s,{S:()=>a});var i=n(2483);function a(c,y,w,C,T){return(S,M)=>{let k=w,R=y,X=0;S.subscribe((0,i._)(M,Z=>{const re=X++;R=k?c(R,Z,re):(k=!0,Z),C&&M.next(R)},T&&(()=>{k&&M.next(R),M.complete()})))}}},6218:(o,s,n)=>{"use strict";n.d(s,{u:()=>w});var i=n(7225),a=n(8447),c=n(1540),y=n(5351);function w(T={}){const{connector:S=()=>new a.B,resetOnError:M=!0,resetOnComplete:k=!0,resetOnRefCountZero:R=!0}=T;return X=>{let Z,re,_e,pe=0,de=!1,De=!1;const Ee=()=>{re?.unsubscribe(),re=void 0},Le=()=>{Ee(),Z=_e=void 0,de=De=!1},Ae=()=>{const we=Z;Le(),we?.unsubscribe()};return(0,y.N)((we,le)=>{pe++,!De&&!de&&Ee();const ae=_e=_e??S();le.add(()=>{pe--,0===pe&&!De&&!de&&(re=C(Ae,R))}),ae.subscribe(le),!Z&&pe>0&&(Z=new c.Ms({next:xe=>ae.next(xe),error:xe=>{De=!0,Ee(),re=C(Le,M,xe),ae.error(xe)},complete:()=>{de=!0,Ee(),re=C(Le,k),ae.complete()}}),(0,i.Tg)(we).subscribe(Z))})(X)}}function C(T,S,...M){if(!0===S)return void T();if(!1===S)return;const k=new c.Ms({next:()=>{k.unsubscribe(),T()}});return(0,i.Tg)(S(...M)).subscribe(k)}},8249:(o,s,n)=>{"use strict";n.d(s,{t:()=>c});var i=n(7838),a=n(6218);function c(y,w,C){let T,S=!1;return y&&"object"==typeof y?({bufferSize:T=1/0,windowTime:w=1/0,refCount:S=!1,scheduler:C}=y):T=y??1/0,(0,a.u)({connector:()=>new i.m(T,w,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:S})}},1866:(o,s,n)=>{"use strict";n.d(s,{i:()=>a});var i=n(1483);function a(c){return(0,i.p)((y,w)=>c<=w)}},593:(o,s,n)=>{"use strict";n.d(s,{Z:()=>y});var i=n(3569),a=n(4327),c=n(5351);function y(...w){const C=(0,a.lI)(w);return(0,c.N)((T,S)=>{(C?(0,i.x)(w,T,C):(0,i.x)(w,T)).subscribe(S)})}},2867:(o,s,n)=>{"use strict";n.d(s,{n:()=>y});var i=n(7225),a=n(5351),c=n(2483);function y(w,C){return(0,a.N)((T,S)=>{let M=null,k=0,R=!1;const X=()=>R&&!M&&S.complete();T.subscribe((0,c._)(S,Z=>{M?.unsubscribe();let re=0;const _e=k++;(0,i.Tg)(w(Z,_e)).subscribe(M=(0,c._)(S,pe=>S.next(C?C(Z,pe,_e,re++):pe),()=>{M=null,X()}))},()=>{R=!0,X()}))})}},7610:(o,s,n)=>{"use strict";n.d(s,{s:()=>y});var i=n(6564),a=n(5351),c=n(2483);function y(w){return w<=0?()=>i.w:(0,a.N)((C,T)=>{let S=0;C.subscribe((0,c._)(T,M=>{++S<=w&&(T.next(M),w<=S&&T.complete())}))})}},5424:(o,s,n)=>{"use strict";n.d(s,{Q:()=>w});var i=n(5351),a=n(2483),c=n(7225),y=n(850);function w(C){return(0,i.N)((T,S)=>{(0,c.Tg)(C).subscribe((0,a._)(S,()=>S.complete(),y.l)),!S.closed&&T.subscribe(S)})}},8445:(o,s,n)=>{"use strict";n.d(s,{v:()=>c});var i=n(5351),a=n(2483);function c(y,w=!1){return(0,i.N)((C,T)=>{let S=0;C.subscribe((0,a._)(T,M=>{const k=y(M,S++);(k||w)&&T.next(M),!k&&T.complete()}))})}},2040:(o,s,n)=>{"use strict";n.d(s,{M:()=>w});var i=n(1126),a=n(5351),c=n(2483),y=n(9220);function w(C,T,S){const M=(0,i.T)(C)||T||S?{next:C,error:T,complete:S}:C;return M?(0,a.N)((k,R)=>{var X;null===(X=M.subscribe)||void 0===X||X.call(M);let Z=!0;k.subscribe((0,c._)(R,re=>{var _e;null===(_e=M.next)||void 0===_e||_e.call(M,re),R.next(re)},()=>{var re;Z=!1,null===(re=M.complete)||void 0===re||re.call(M),R.complete()},re=>{var _e;Z=!1,null===(_e=M.error)||void 0===_e||_e.call(M,re),R.error(re)},()=>{var re,_e;Z&&(null===(re=M.unsubscribe)||void 0===re||re.call(M)),null===(_e=M.finalize)||void 0===_e||_e.call(M)}))}):y.D}},5017:(o,s,n)=>{"use strict";n.d(s,{v:()=>y});var i=n(8747),a=n(5351),c=n(2483);function y(C=w){return(0,a.N)((T,S)=>{let M=!1;T.subscribe((0,c._)(S,k=>{M=!0,S.next(k)},()=>M?S.complete():S.error(C())))})}function w(){return new i.G}},9899:(o,s,n)=>{"use strict";n.d(s,{R:()=>w});var i=n(5710);class a extends i.yU{constructor(T,S){super()}schedule(T,S=0){return this}}const c={setInterval(C,T,...S){const{delegate:M}=c;return M?.setInterval?M.setInterval(C,T,...S):setInterval(C,T,...S)},clearInterval(C){const{delegate:T}=c;return(T?.clearInterval||clearInterval)(C)},delegate:void 0};var y=n(5891);class w extends a{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var M;if(this.closed)return this;this.state=T;const k=this.id,R=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(R,k,S)),this.pending=!0,this.delay=S,this.id=null!==(M=this.id)&&void 0!==M?M:this.requestAsyncId(R,this.id,S),this}requestAsyncId(T,S,M=0){return c.setInterval(T.flush.bind(T,this),M)}recycleAsyncId(T,S,M=0){if(null!=M&&this.delay===M&&!1===this.pending)return S;null!=S&&c.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const M=this._execute(T,S);if(M)return M;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let k,M=!1;try{this.work(T)}catch(R){M=!0,k=R||new Error("Scheduled action threw falsy error")}if(M)return this.unsubscribe(),k}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:M}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,y.o)(M,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},8050:(o,s,n)=>{"use strict";n.d(s,{q:()=>c});var i=n(6188);class a{constructor(w,C=a.now){this.schedulerActionCtor=w,this.now=C}schedule(w,C=0,T){return new this.schedulerActionCtor(this,w).schedule(T,C)}}a.now=i.U.now;class c extends a{constructor(w,C=a.now){super(w,C),this.actions=[],this._active=!1}flush(w){const{actions:C}=this;if(this._active)return void C.push(w);let T;this._active=!0;do{if(T=w.execute(w.state,w.delay))break}while(w=C.shift());if(this._active=!1,T){for(;w=C.shift();)w.unsubscribe();throw T}}}},4984:(o,s,n)=>{"use strict";n.d(s,{$:()=>re});var i=n(9899);let c,a=1;const y={};function w(pe){return pe in y&&(delete y[pe],!0)}const C={setImmediate(pe){const de=a++;return y[de]=!0,c||(c=Promise.resolve()),c.then(()=>w(de)&&pe()),de},clearImmediate(pe){w(pe)}},{setImmediate:S,clearImmediate:M}=C,k={setImmediate(...pe){const{delegate:de}=k;return(de?.setImmediate||S)(...pe)},clearImmediate(pe){const{delegate:de}=k;return(de?.clearImmediate||M)(pe)},delegate:void 0};var X=n(8050);const re=new class Z extends X.q{flush(de){this._active=!0;const De=this._scheduled;this._scheduled=void 0;const{actions:Ee}=this;let Le;de=de||Ee.shift();do{if(Le=de.execute(de.state,de.delay))break}while((de=Ee[0])&&de.id===De&&Ee.shift());if(this._active=!1,Le){for(;(de=Ee[0])&&de.id===De&&Ee.shift();)de.unsubscribe();throw Le}}}(class R extends i.R{constructor(de,De){super(de,De),this.scheduler=de,this.work=De}requestAsyncId(de,De,Ee=0){return null!==Ee&&Ee>0?super.requestAsyncId(de,De,Ee):(de.actions.push(this),de._scheduled||(de._scheduled=k.setImmediate(de.flush.bind(de,void 0))))}recycleAsyncId(de,De,Ee=0){var Le;if(null!=Ee?Ee>0:this.delay>0)return super.recycleAsyncId(de,De,Ee);const{actions:Ae}=de;null!=De&&(null===(Le=Ae[Ae.length-1])||void 0===Le?void 0:Le.id)!==De&&(k.clearImmediate(De),de._scheduled===De&&(de._scheduled=void 0))}})},6061:(o,s,n)=>{"use strict";n.d(s,{E:()=>c,b:()=>y});var i=n(9899);const c=new(n(8050).q)(i.R),y=c},6188:(o,s,n)=>{"use strict";n.d(s,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3695:(o,s,n)=>{"use strict";n.d(s,{f:()=>i});const i={setTimeout(a,c,...y){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(a,c,...y):setTimeout(a,c,...y)},clearTimeout(a){const{delegate:c}=i;return(c?.clearTimeout||clearTimeout)(a)},delegate:void 0}},6952:(o,s,n)=>{"use strict";n.d(s,{l:()=>a});const a=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},2563:(o,s,n)=>{"use strict";n.d(s,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},8747:(o,s,n)=>{"use strict";n.d(s,{G:()=>a});const a=(0,n(5644).L)(c=>function(){c(this),this.name="EmptyError",this.message="no elements in sequence"})},4327:(o,s,n)=>{"use strict";n.d(s,{R0:()=>C,lI:()=>w,ms:()=>y});var i=n(1126),a=n(9921);function c(T){return T[T.length-1]}function y(T){return(0,i.T)(c(T))?T.pop():void 0}function w(T){return(0,a.m)(c(T))?T.pop():void 0}function C(T,S){return"number"==typeof c(T)?T.pop():S}},3740:(o,s,n)=>{"use strict";n.d(s,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:a,prototype:c,keys:y}=Object;function w(T){if(1===T.length){const S=T[0];if(i(S))return{args:S,keys:null};if(function C(T){return T&&"object"==typeof T&&a(T)===c}(S)){const M=y(S);return{args:M.map(k=>S[k]),keys:M}}}return{args:T,keys:null}}},5891:(o,s,n)=>{"use strict";function i(a,c){if(a){const y=a.indexOf(c);0<=y&&a.splice(y,1)}}n.d(s,{o:()=>i})},5644:(o,s,n)=>{"use strict";function i(a){const y=a(w=>{Error.call(w),w.stack=(new Error).stack});return y.prototype=Object.create(Error.prototype),y.prototype.constructor=y,y}n.d(s,{L:()=>i})},9321:(o,s,n)=>{"use strict";function i(a,c){return a.reduce((y,w,C)=>(y[w]=c[C],y),{})}n.d(s,{e:()=>i})},4171:(o,s,n)=>{"use strict";n.d(s,{Y:()=>c,l:()=>y});var i=n(3305);let a=null;function c(w){if(i.$.useDeprecatedSynchronousErrorHandling){const C=!a;if(C&&(a={errorThrown:!1,error:null}),w(),C){const{errorThrown:T,error:S}=a;if(a=null,T)throw S}}else w()}function y(w){i.$.useDeprecatedSynchronousErrorHandling&&a&&(a.errorThrown=!0,a.error=w)}},8266:(o,s,n)=>{"use strict";function i(a,c,y,w=0,C=!1){const T=c.schedule(function(){y(),C?a.add(this.schedule(null,w)):this.unsubscribe()},w);if(a.add(T),!C)return T}n.d(s,{N:()=>i})},9220:(o,s,n)=>{"use strict";function i(a){return a}n.d(s,{D:()=>i})},6786:(o,s,n)=>{"use strict";n.d(s,{X:()=>i});const i=a=>a&&"number"==typeof a.length&&"function"!=typeof a},8394:(o,s,n)=>{"use strict";n.d(s,{T:()=>a});var i=n(1126);function a(c){return Symbol.asyncIterator&&(0,i.T)(c?.[Symbol.asyncIterator])}},1126:(o,s,n)=>{"use strict";function i(a){return"function"==typeof a}n.d(s,{T:()=>i})},6600:(o,s,n)=>{"use strict";n.d(s,{l:()=>c});var i=n(2563),a=n(1126);function c(y){return(0,a.T)(y[i.s])}},4876:(o,s,n)=>{"use strict";n.d(s,{x:()=>c});var i=n(6952),a=n(1126);function c(y){return(0,a.T)(y?.[i.l])}},1531:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(1698),a=n(1126);function c(y){return!!y&&(y instanceof i.c||(0,a.T)(y.lift)&&(0,a.T)(y.subscribe))}},6505:(o,s,n)=>{"use strict";n.d(s,{y:()=>a});var i=n(1126);function a(c){return(0,i.T)(c?.then)}},3173:(o,s,n)=>{"use strict";n.d(s,{C:()=>c,U:()=>y});var i=n(1635),a=n(1126);function c(w){return(0,i.AQ)(this,arguments,function*(){const T=w.getReader();try{for(;;){const{value:S,done:M}=yield(0,i.N3)(T.read());if(M)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(S)}}finally{T.releaseLock()}})}function y(w){return(0,a.T)(w?.getReader)}},9921:(o,s,n)=>{"use strict";n.d(s,{m:()=>a});var i=n(1126);function a(c){return c&&(0,i.T)(c.schedule)}},5351:(o,s,n)=>{"use strict";n.d(s,{N:()=>c,S:()=>a});var i=n(1126);function a(y){return(0,i.T)(y?.lift)}function c(y){return w=>{if(a(w))return w.lift(function(C){try{return y(C,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},3759:(o,s,n)=>{"use strict";n.d(s,{I:()=>y});var i=n(7947);const{isArray:a}=Array;function y(w){return(0,i.T)(C=>function c(w,C){return a(C)?w(...C):w(C)}(w,C))}},850:(o,s,n)=>{"use strict";function i(){}n.d(s,{l:()=>i})},6742:(o,s,n)=>{"use strict";n.d(s,{F:()=>a,m:()=>c});var i=n(9220);function a(...y){return c(y)}function c(y){return 0===y.length?i.D:1===y.length?y[0]:function(C){return y.reduce((T,S)=>S(T),C)}}},191:(o,s,n)=>{"use strict";n.d(s,{m:()=>c});var i=n(3305),a=n(3695);function c(y){a.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw y;w(y)})}},8810:(o,s,n)=>{"use strict";function i(a){return new TypeError(`You provided ${null!==a&&"object"==typeof a?"an invalid object":`'${a}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}n.d(s,{L:()=>i})},1204:(o,s,n)=>{"use strict";n.d(s,{FX:()=>lt,If:()=>c,K2:()=>S,MA:()=>re,Os:()=>T,P:()=>pe,S6:()=>De,hZ:()=>w,i0:()=>C,i7:()=>R,iF:()=>M,kY:()=>X,kp:()=>y,sf:()=>Be,ui:()=>st,wk:()=>k});var i=n(4460),a=n(3107),c=function(bt){return bt[bt.State=0]="State",bt[bt.Transition=1]="Transition",bt[bt.Sequence=2]="Sequence",bt[bt.Group=3]="Group",bt[bt.Animate=4]="Animate",bt[bt.Keyframes=5]="Keyframes",bt[bt.Style=6]="Style",bt[bt.Trigger=7]="Trigger",bt[bt.Reference=8]="Reference",bt[bt.AnimateChild=9]="AnimateChild",bt[bt.AnimateRef=10]="AnimateRef",bt[bt.Query=11]="Query",bt[bt.Stagger=12]="Stagger",bt}(c||{});const y="*";function w(bt,at){return{type:c.Trigger,name:bt,definitions:at,options:{}}}function C(bt,at=null){return{type:c.Animate,styles:at,timings:bt}}function T(bt,at=null){return{type:c.Group,steps:bt,options:at}}function S(bt,at=null){return{type:c.Sequence,steps:bt,options:at}}function M(bt){return{type:c.Style,styles:bt,offset:null}}function k(bt,at,sn){return{type:c.State,name:bt,styles:at,options:sn}}function R(bt){return{type:c.Keyframes,steps:bt}}function X(bt,at,sn=null){return{type:c.Transition,expr:bt,animation:at,options:sn}}function re(bt=null){return{type:c.AnimateChild,options:bt}}function pe(bt,at,sn=null){return{type:c.Query,selector:bt,animation:at,options:sn}}let De=(()=>{class bt{static \u0275fac=function(fn){return new(fn||bt)};static \u0275prov=a.jDH({token:bt,factory:()=>(0,a.WQX)(Le),providedIn:"root"})}return bt})();class Ee{}let Le=(()=>{class bt extends De{animationModuleType=(0,a.WQX)(a.bc$,{optional:!0});_nextAnimationId=0;_renderer;constructor(sn,fn){if(super(),this._renderer=sn.createRenderer(fn.body,{id:"0",encapsulation:a.gXe.None,styles:[],data:{animation:[]}}),null===this.animationModuleType&&!function xe(bt){const at=bt.\u0275type;return 0===at||1===at}(this._renderer))throw new a.wOt(3600,!1)}build(sn){const fn=this._nextAnimationId;this._nextAnimationId++;const En=Array.isArray(sn)?S(sn):sn;return le(this._renderer,null,fn,"register",[En]),new Ae(fn,this._renderer)}static \u0275fac=function(fn){return new(fn||bt)(a.KVO(a._9s),a.KVO(i.qQ))};static \u0275prov=a.jDH({token:bt,factory:bt.\u0275fac,providedIn:"root"})}return bt})();class Ae extends Ee{_id;_renderer;constructor(at,sn){super(),this._id=at,this._renderer=sn}create(at,sn){return new we(this._id,at,sn||{},this._renderer)}}class we{id;element;_renderer;parentPlayer=null;_started=!1;constructor(at,sn,fn,En){this.id=at,this.element=sn,this._renderer=En,this._command("create",fn)}_listen(at,sn){return this._renderer.listen(this.element,`@@${this.id}:${at}`,sn)}_command(at,...sn){le(this._renderer,this.element,this.id,at,sn)}onDone(at){this._listen("done",at)}onStart(at){this._listen("start",at)}onDestroy(at){this._listen("destroy",at)}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(at){this._command("setPosition",at)}getPosition(){return function ae(bt){const at=bt.\u0275type;return 0===at?bt:1===at?bt.animationRenderer:null}(this._renderer)?.engine?.players[this.id]?.getPosition()??0}totalTime=0}function le(bt,at,sn,fn,En){bt.setProperty(at,`@@${sn}:${fn}`,En)}class Be{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(at=0,sn=0){this.totalTime=at+sn}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}onStart(at){this._originalOnStartFns.push(at),this._onStartFns.push(at)}onDone(at){this._originalOnDoneFns.push(at),this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(at=>at()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(at){this._position=this.totalTime?at*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(at){const sn="start"==at?this._onStartFns:this._onDoneFns;sn.forEach(fn=>fn()),sn.length=0}}class st{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(at){this.players=at;let sn=0,fn=0,En=0;const Wn=this.players.length;0==Wn?queueMicrotask(()=>this._onFinish()):this.players.forEach(wn=>{wn.onDone(()=>{++sn==Wn&&this._onFinish()}),wn.onDestroy(()=>{++fn==Wn&&this._onDestroy()}),wn.onStart(()=>{++En==Wn&&this._onStart()})}),this.totalTime=this.players.reduce((wn,Je)=>Math.max(wn,Je.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(at=>at()),this._onDoneFns=[])}init(){this.players.forEach(at=>at.init())}onStart(at){this._onStartFns.push(at)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(at=>at()),this._onStartFns=[])}onDone(at){this._onDoneFns.push(at)}onDestroy(at){this._onDestroyFns.push(at)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(at=>at.play())}pause(){this.players.forEach(at=>at.pause())}restart(){this.players.forEach(at=>at.restart())}finish(){this._onFinish(),this.players.forEach(at=>at.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(at=>at.destroy()),this._onDestroyFns.forEach(at=>at()),this._onDestroyFns=[])}reset(){this.players.forEach(at=>at.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(at){const sn=at*this.totalTime;this.players.forEach(fn=>{const En=fn.totalTime?Math.min(1,sn/fn.totalTime):1;fn.setPosition(En)})}getPosition(){const at=this.players.reduce((sn,fn)=>null===sn||fn.totalTime>sn.totalTime?fn:sn,null);return null!=at?at.getPosition():0}beforeDestroy(){this.players.forEach(at=>{at.beforeDestroy&&at.beforeDestroy()})}triggerCallback(at){const sn="start"==at?this._onStartFns:this._onDoneFns;sn.forEach(fn=>fn()),sn.length=0}}const lt="!"},8559:(o,s,n)=>{"use strict";n.d(s,{Pd:()=>si,Au:()=>_t,vr:()=>sn,Bu:()=>ze,FN:()=>je,GX:()=>Te,Q_:()=>xr,Z7:()=>ht,Ai:()=>Vr,g7:()=>Zi,px:()=>ae,_G:()=>ft,w6:()=>mt,Ae:()=>xe});var i=n(4460),a=n(3107),c=n(2147),y=n(5467),w=n(5919),C=n(8447),T=n(5710),M=(n(1531),n(3016)),k=n(1217),R=n(2040),X=n(8627),Z=n(1483),re=n(7947),pe=(n(7610),n(1866)),de=n(6645),De=n(5424),Le=n(7747),Ae=n(3022),we=n(6520);const le=" ";function ae(nn,Mt,nt){const Rt=Be(nn,Mt);nt=nt.trim(),!Rt.some(ln=>ln.trim()===nt)&&(Rt.push(nt),nn.setAttribute(Mt,Rt.join(le)))}function xe(nn,Mt,nt){const Rt=Be(nn,Mt);nt=nt.trim();const ln=Rt.filter(vn=>vn!==nt);ln.length?nn.setAttribute(Mt,ln.join(le)):nn.removeAttribute(Mt)}function Be(nn,Mt){return nn.getAttribute(Mt)?.match(/\S+/g)??[]}const lt="cdk-describedby-message",bt="cdk-describedby-host";let at=0,sn=(()=>{class nn{_platform=(0,a.WQX)(c.OD);_document=(0,a.WQX)(i.qQ);_messageRegistry=new Map;_messagesContainer=null;_id=""+at++;constructor(){(0,a.WQX)(y.l).load(y.Y),this._id=(0,a.WQX)(a.sZ2)+"-"+at++}describe(nt,Rt,ln){if(!this._canBeDescribed(nt,Rt))return;const vn=fn(Rt,ln);"string"!=typeof Rt?(En(Rt,this._id),this._messageRegistry.set(vn,{messageElement:Rt,referenceCount:0})):this._messageRegistry.has(vn)||this._createMessageElement(Rt,ln),this._isElementDescribedByMessage(nt,vn)||this._addMessageReference(nt,vn)}removeDescription(nt,Rt,ln){if(!Rt||!this._isElementNode(nt))return;const vn=fn(Rt,ln);if(this._isElementDescribedByMessage(nt,vn)&&this._removeMessageReference(nt,vn),"string"==typeof Rt){const fr=this._messageRegistry.get(vn);fr&&0===fr.referenceCount&&this._deleteMessageElement(vn)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const nt=this._document.querySelectorAll(`[${bt}="${this._id}"]`);for(let Rt=0;Rt0!=ln.indexOf(lt));nt.setAttribute("aria-describedby",Rt.join(" "))}_addMessageReference(nt,Rt){const ln=this._messageRegistry.get(Rt);ae(nt,"aria-describedby",ln.messageElement.id),nt.setAttribute(bt,this._id),ln.referenceCount++}_removeMessageReference(nt,Rt){const ln=this._messageRegistry.get(Rt);ln.referenceCount--,xe(nt,"aria-describedby",ln.messageElement.id),nt.removeAttribute(bt)}_isElementDescribedByMessage(nt,Rt){const ln=Be(nt,"aria-describedby"),vn=this._messageRegistry.get(Rt),fr=vn&&vn.messageElement.id;return!!fr&&-1!=ln.indexOf(fr)}_canBeDescribed(nt,Rt){if(!this._isElementNode(nt))return!1;if(Rt&&"object"==typeof Rt)return!0;const ln=null==Rt?"":`${Rt}`.trim(),vn=nt.getAttribute("aria-label");return!(!ln||vn&&vn.trim()===ln)}_isElementNode(nt){return nt.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function fn(nn,Mt){return"string"==typeof nn?`${Mt||""}/${nn}`:nn}function En(nn,Mt){nn.id||(nn.id=`${lt}-${Mt}-${at++}`)}class wn{_letterKeyStream=new C.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new C.B;selectedItem=this._selectedItem;constructor(Mt,nt){const Rt="number"==typeof nt?.debounceInterval?nt.debounceInterval:200;nt?.skipPredicate&&(this._skipPredicateFn=nt.skipPredicate),this.setItems(Mt),this._setupKeyHandler(Rt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Mt){this._selectedItemIndex=Mt}setItems(Mt){this._items=Mt}handleKey(Mt){const nt=Mt.keyCode;Mt.key&&1===Mt.key.length?this._letterKeyStream.next(Mt.key.toLocaleUpperCase()):(nt>=w.A&&nt<=w.Z||nt>=w.f2&&nt<=w.bn)&&this._letterKeyStream.next(String.fromCharCode(nt))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Mt){this._letterKeyStream.pipe((0,R.M)(nt=>this._pressedLetters.push(nt)),(0,X.B)(Mt),(0,Z.p)(()=>this._pressedLetters.length>0),(0,re.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(nt=>{for(let Rt=1;RtMt.disabled;constructor(Mt,nt){this._items=Mt,Mt instanceof a.rOR?this._itemChangesSubscription=Mt.changes.subscribe(Rt=>this._itemsChanged(Rt.toArray())):(0,a.Hps)(Mt)&&(this._effectRef=(0,a.QZP)(()=>this._itemsChanged(Mt()),{injector:nt}))}tabOut=new C.B;change=new C.B;skipPredicate(Mt){return this._skipPredicateFn=Mt,this}withWrap(Mt=!0){return this._wrap=Mt,this}withVerticalOrientation(Mt=!0){return this._vertical=Mt,this}withHorizontalOrientation(Mt){return this._horizontal=Mt,this}withAllowedModifierKeys(Mt){return this._allowedModifierKeys=Mt,this}withTypeAhead(Mt=200){this._typeaheadSubscription.unsubscribe();const nt=this._getItemsArray();return this._typeahead=new wn(nt,{debounceInterval:"number"==typeof Mt?Mt:void 0,skipPredicate:Rt=>this._skipPredicateFn(Rt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Rt=>{this.setActiveItem(Rt)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(Mt=!0){return this._homeAndEnd=Mt,this}withPageUpDown(Mt=!0,nt=10){return this._pageUpAndDown={enabled:Mt,delta:nt},this}setActiveItem(Mt){const nt=this._activeItem();this.updateActiveItem(Mt),this._activeItem()!==nt&&this.change.next(this._activeItemIndex)}onKeydown(Mt){const nt=Mt.keyCode,ln=["altKey","ctrlKey","metaKey","shiftKey"].every(vn=>!Mt[vn]||this._allowedModifierKeys.indexOf(vn)>-1);switch(nt){case w.wn:return void this.tabOut.next();case w.n6:if(this._vertical&&ln){this.setNextItemActive();break}return;case w.i7:if(this._vertical&&ln){this.setPreviousItemActive();break}return;case w.LE:if(this._horizontal&&ln){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.UQ:if(this._horizontal&&ln){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.yZ:if(this._homeAndEnd&&ln){this.setFirstItemActive();break}return;case w.Kp:if(this._homeAndEnd&&ln){this.setLastItemActive();break}return;case w.w_:if(this._pageUpAndDown.enabled&&ln){const vn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(vn>0?vn:0,1);break}return;case w.dB:if(this._pageUpAndDown.enabled&&ln){const vn=this._activeItemIndex+this._pageUpAndDown.delta,fr=this._getItemsArray().length;this._setActiveItemByIndex(vn-1&&Rt!==this._activeItemIndex&&(this._activeItemIndex=Rt,this._typeahead?.setCurrentSelectedItemIndex(Rt))}}}class _t extends Je{setActiveItem(Mt){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Mt),this.activeItem&&this.activeItem.setActiveStyles()}}class ze extends Je{_origin="program";setFocusOrigin(Mt){return this._origin=Mt,this}setActiveItem(Mt){super.setActiveItem(Mt),this.activeItem&&this.activeItem.focus(this._origin)}}let ht=(()=>{class nn{_platform=(0,a.WQX)(c.OD);constructor(){}isDisabled(nt){return nt.hasAttribute("disabled")}isVisible(nt){return function Tn(nn){return!!(nn.offsetWidth||nn.offsetHeight||"function"==typeof nn.getClientRects&&nn.getClientRects().length)}(nt)&&"visible"===getComputedStyle(nt).visibility}isTabbable(nt){if(!this._platform.isBrowser)return!1;const Rt=function Xt(nn){try{return nn.frameElement}catch{return null}}(function Kt(nn){return nn.ownerDocument&&nn.ownerDocument.defaultView||window}(nt));if(Rt&&(-1===mn(Rt)||!this.isVisible(Rt)))return!1;let ln=nt.nodeName.toLowerCase(),vn=mn(nt);return nt.hasAttribute("contenteditable")?-1!==vn:!("iframe"===ln||"object"===ln||this._platform.WEBKIT&&this._platform.IOS&&!function Mn(nn){let Mt=nn.nodeName.toLowerCase(),nt="input"===Mt&&nn.type;return"text"===nt||"password"===nt||"select"===Mt||"textarea"===Mt}(nt))&&("audio"===ln?!!nt.hasAttribute("controls")&&-1!==vn:"video"===ln?-1!==vn&&(null!==vn||this._platform.FIREFOX||nt.hasAttribute("controls")):nt.tabIndex>=0)}isFocusable(nt,Rt){return function tt(nn){return!function Zt(nn){return function Ht(nn){return"input"==nn.nodeName.toLowerCase()}(nn)&&"hidden"==nn.type}(nn)&&(function Wt(nn){let Mt=nn.nodeName.toLowerCase();return"input"===Mt||"select"===Mt||"button"===Mt||"textarea"===Mt}(nn)||function rt(nn){return function en(nn){return"a"==nn.nodeName.toLowerCase()}(nn)&&nn.hasAttribute("href")}(nn)||nn.hasAttribute("contenteditable")||Nn(nn))}(nt)&&!this.isDisabled(nt)&&(Rt?.ignoreVisibility||this.isVisible(nt))}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function Nn(nn){if(!nn.hasAttribute("tabindex")||void 0===nn.tabIndex)return!1;let Mt=nn.getAttribute("tabindex");return!(!Mt||isNaN(parseInt(Mt,10)))}function mn(nn){if(!Nn(nn))return null;const Mt=parseInt(nn.getAttribute("tabindex")||"",10);return isNaN(Mt)?-1:Mt}class At{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Mt){this._enabled=Mt,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Mt,this._startAnchor),this._toggleAnchorTabIndex(Mt,this._endAnchor))}_enabled=!0;constructor(Mt,nt,Rt,ln,vn=!1,fr){this._element=Mt,this._checker=nt,this._ngZone=Rt,this._document=ln,this._injector=fr,vn||this.attachAnchors()}destroy(){const Mt=this._startAnchor,nt=this._endAnchor;Mt&&(Mt.removeEventListener("focus",this.startAnchorListener),Mt.remove()),nt&&(nt.removeEventListener("focus",this.endAnchorListener),nt.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(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusInitialElement(Mt)))})}focusFirstTabbableElementWhenReady(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusFirstTabbableElement(Mt)))})}focusLastTabbableElementWhenReady(Mt){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusLastTabbableElement(Mt)))})}_getRegionBoundary(Mt){const nt=this._element.querySelectorAll(`[cdk-focus-region-${Mt}], [cdkFocusRegion${Mt}], [cdk-focus-${Mt}]`);return"start"==Mt?nt.length?nt[0]:this._getFirstTabbableElement(this._element):nt.length?nt[nt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Mt){const nt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(nt){if(!this._checker.isFocusable(nt)){const Rt=this._getFirstTabbableElement(nt);return Rt?.focus(Mt),!!Rt}return nt.focus(Mt),!0}return this.focusFirstTabbableElement(Mt)}focusFirstTabbableElement(Mt){const nt=this._getRegionBoundary("start");return nt&&nt.focus(Mt),!!nt}focusLastTabbableElement(Mt){const nt=this._getRegionBoundary("end");return nt&&nt.focus(Mt),!!nt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Mt){if(this._checker.isFocusable(Mt)&&this._checker.isTabbable(Mt))return Mt;const nt=Mt.children;for(let Rt=0;Rt=0;Rt--){const ln=nt[Rt].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(nt[Rt]):null;if(ln)return ln}return null}_createAnchor(){const Mt=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Mt),Mt.classList.add("cdk-visually-hidden"),Mt.classList.add("cdk-focus-trap-anchor"),Mt.setAttribute("aria-hidden","true"),Mt}_toggleAnchorTabIndex(Mt,nt){Mt?nt.setAttribute("tabindex","0"):nt.removeAttribute("tabindex")}toggleAnchors(Mt){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Mt,this._startAnchor),this._toggleAnchorTabIndex(Mt,this._endAnchor))}_executeOnStable(Mt){this._injector?(0,a.mal)(Mt,{injector:this._injector}):setTimeout(Mt)}}let Te=(()=>{class nn{_checker=(0,a.WQX)(ht);_ngZone=(0,a.WQX)(a.SKi);_document=(0,a.WQX)(i.qQ);_injector=(0,a.WQX)(a.zZn);constructor(){(0,a.WQX)(y.l).load(y.Y)}create(nt,Rt=!1){return new At(nt,this._checker,this._ngZone,this._document,Rt,this._injector)}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();function ft(nn){return 0===nn.buttons||0===nn.detail}function mt(nn){const Mt=nn.touches&&nn.touches[0]||nn.changedTouches&&nn.changedTouches[0];return!(!Mt||-1!==Mt.identifier||null!=Mt.radiusX&&1!==Mt.radiusX||null!=Mt.radiusY&&1!==Mt.radiusY)}const Tt=new a.nKC("cdk-input-modality-detector-options"),On={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},hn=(0,c.BQ)({passive:!0,capture:!0});let Ln=(()=>{class nn{_platform=(0,a.WQX)(c.OD);modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new k.t(null);_options;_lastTouchMs=0;_onKeydown=nt=>{this._options?.ignoreKeys?.some(Rt=>Rt===nt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,c.Fb)(nt))};_onMousedown=nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ft(nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,c.Fb)(nt))};_onTouchstart=nt=>{mt(nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,c.Fb)(nt))};constructor(){const nt=(0,a.WQX)(a.SKi),Rt=(0,a.WQX)(i.qQ),ln=(0,a.WQX)(Tt,{optional:!0});this._options={...On,...ln},this.modalityDetected=this._modality.pipe((0,pe.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,de.F)()),this._platform.isBrowser&&nt.runOutsideAngular(()=>{Rt.addEventListener("keydown",this._onKeydown,hn),Rt.addEventListener("mousedown",this._onMousedown,hn),Rt.addEventListener("touchstart",this._onTouchstart,hn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,hn),document.removeEventListener("mousedown",this._onMousedown,hn),document.removeEventListener("touchstart",this._onTouchstart,hn))}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})();const lr=new a.nKC("liveAnnouncerElement",{providedIn:"root",factory:function Dn(){return null}}),Hr=new a.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let Mr=0,Vr=(()=>{class nn{_ngZone=(0,a.WQX)(a.SKi);_defaultOptions=(0,a.WQX)(Hr,{optional:!0});_liveElement;_document=(0,a.WQX)(i.qQ);_previousTimeout;_currentPromise;_currentResolve;constructor(){const nt=(0,a.WQX)(lr,{optional:!0});this._liveElement=nt||this._createLiveElement()}announce(nt,...Rt){const ln=this._defaultOptions;let vn,fr;return 1===Rt.length&&"number"==typeof Rt[0]?fr=Rt[0]:[vn,fr]=Rt,this.clear(),clearTimeout(this._previousTimeout),vn||(vn=ln&&ln.politeness?ln.politeness:"polite"),null==fr&&ln&&(fr=ln.duration),this._liveElement.setAttribute("aria-live",vn),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Co=>this._currentResolve=Co)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=nt,"number"==typeof fr&&(this._previousTimeout=setTimeout(()=>this.clear(),fr)),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 nt="cdk-live-announcer-element",Rt=this._document.getElementsByClassName(nt),ln=this._document.createElement("div");for(let vn=0;vn .cdk-overlay-container [aria-modal="true"]');for(let ln=0;ln{class nn{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(c.OD);_inputModalityDetector=(0,a.WQX)(Ln);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)};_document=(0,a.WQX)(i.qQ,{optional:!0});_stopInputModalityDetector=new C.B;constructor(){const nt=(0,a.WQX)(Oe,{optional:!0});this._detectionMode=nt?.detectionMode||Vt.IMMEDIATE}_rootNodeFocusAndBlurListener=nt=>{for(let ln=(0,c.Fb)(nt);ln;ln=ln.parentElement)"focus"===nt.type?this._onFocus(nt,ln):this._onBlur(nt,ln)};monitor(nt,Rt=!1){const ln=(0,Ae.i8)(nt);if(!this._platform.isBrowser||1!==ln.nodeType)return(0,M.of)();const vn=(0,c.KT)(ln)||this._getDocument(),fr=this._elementInfo.get(ln);if(fr)return Rt&&(fr.checkChildren=!0),fr.subject;const Co={checkChildren:Rt,subject:new C.B,rootNode:vn};return this._elementInfo.set(ln,Co),this._registerGlobalListeners(Co),Co.subject}stopMonitoring(nt){const Rt=(0,Ae.i8)(nt),ln=this._elementInfo.get(Rt);ln&&(ln.subject.complete(),this._setClasses(Rt),this._elementInfo.delete(Rt),this._removeGlobalListeners(ln))}focusVia(nt,Rt,ln){const vn=(0,Ae.i8)(nt);vn===this._getDocument().activeElement?this._getClosestElementsInfo(vn).forEach(([Co,Ni])=>this._originChanged(Co,Rt,Ni)):(this._setOrigin(Rt),"function"==typeof vn.focus&&vn.focus(ln))}ngOnDestroy(){this._elementInfo.forEach((nt,Rt)=>this.stopMonitoring(Rt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(nt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(nt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:nt&&this._isLastInteractionFromInputLabel(nt)?"mouse":"program"}_shouldBeAttributedToTouch(nt){return this._detectionMode===Vt.EVENTUAL||!!nt?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(nt,Rt){nt.classList.toggle("cdk-focused",!!Rt),nt.classList.toggle("cdk-touch-focused","touch"===Rt),nt.classList.toggle("cdk-keyboard-focused","keyboard"===Rt),nt.classList.toggle("cdk-mouse-focused","mouse"===Rt),nt.classList.toggle("cdk-program-focused","program"===Rt)}_setOrigin(nt,Rt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=nt,this._originFromTouchInteraction="touch"===nt&&Rt,this._detectionMode===Vt.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(nt,Rt){const ln=this._elementInfo.get(Rt),vn=(0,c.Fb)(nt);!ln||!ln.checkChildren&&Rt!==vn||this._originChanged(Rt,this._getFocusOrigin(vn),ln)}_onBlur(nt,Rt){const ln=this._elementInfo.get(Rt);!ln||ln.checkChildren&&nt.relatedTarget instanceof Node&&Rt.contains(nt.relatedTarget)||(this._setClasses(Rt),this._emitOrigin(ln,null))}_emitOrigin(nt,Rt){nt.subject.observers.length&&this._ngZone.run(()=>nt.subject.next(Rt))}_registerGlobalListeners(nt){if(!this._platform.isBrowser)return;const Rt=nt.rootNode,ln=this._rootNodeFocusListenerCount.get(Rt)||0;ln||this._ngZone.runOutsideAngular(()=>{Rt.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),Rt.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ge)}),this._rootNodeFocusListenerCount.set(Rt,ln+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,De.Q)(this._stopInputModalityDetector)).subscribe(vn=>{this._setOrigin(vn,!0)}))}_removeGlobalListeners(nt){const Rt=nt.rootNode;if(this._rootNodeFocusListenerCount.has(Rt)){const ln=this._rootNodeFocusListenerCount.get(Rt);ln>1?this._rootNodeFocusListenerCount.set(Rt,ln-1):(Rt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ge),Rt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ge),this._rootNodeFocusListenerCount.delete(Rt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(nt,Rt,ln){this._setClasses(nt,Rt),this._emitOrigin(ln,Rt),this._lastFocusOrigin=Rt}_getClosestElementsInfo(nt){const Rt=[];return this._elementInfo.forEach((ln,vn)=>{(vn===nt||ln.checkChildren&&vn.contains(nt))&&Rt.push([vn,ln])}),Rt}_isLastInteractionFromInputLabel(nt){const{_mostRecentTarget:Rt,mostRecentModality:ln}=this._inputModalityDetector;if("mouse"!==ln||!Rt||Rt===nt||"INPUT"!==nt.nodeName&&"TEXTAREA"!==nt.nodeName||nt.disabled)return!1;const vn=nt.labels;if(vn)for(let fr=0;fr{class nn{_platform=(0,a.WQX)(c.OD);_hasCheckedHighContrastMode;_document=(0,a.WQX)(i.qQ);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,a.WQX)(we.QP).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return ct.NONE;const nt=this._document.createElement("div");nt.style.backgroundColor="rgb(1,2,3)",nt.style.position="absolute",this._document.body.appendChild(nt);const Rt=this._document.defaultView||window,ln=Rt&&Rt.getComputedStyle?Rt.getComputedStyle(nt):null,vn=(ln&&ln.backgroundColor||"").replace(/ /g,"");switch(nt.remove(),vn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return ct.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return ct.BLACK_ON_WHITE}return ct.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const nt=this._document.body.classList;nt.remove(er,Bt,xn),this._hasCheckedHighContrastMode=!0;const Rt=this.getHighContrastMode();Rt===ct.BLACK_ON_WHITE?nt.add(er,Bt):Rt===ct.WHITE_ON_BLACK&&nt.add(er,xn)}}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})(),si=(()=>{class nn{constructor(){(0,a.WQX)(xr)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275mod=a.$C({type:nn});static \u0275inj=a.G2t({imports:[Le.w5]})}return nn})();const hi={};let Zi=(()=>{class nn{_appId=(0,a.WQX)(a.sZ2);getId(nt){return"ng"!==this._appId&&(nt+=this._appId),hi.hasOwnProperty(nt)||(hi[nt]=0),`${nt}${hi[nt]++}`}static \u0275fac=function(Rt){return new(Rt||nn)};static \u0275prov=a.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})()},2944:(o,s,n)=>{"use strict";n.d(s,{dS:()=>T,jI:()=>M});var i=n(3107),a=n(4460);const c=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function y(){return(0,i.WQX)(a.qQ)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class k{value="ltr";change=new i.bkB;constructor(){const X=(0,i.WQX)(c,{optional:!0});X&&(this.value=function C(k){const R=k?.toLowerCase()||"";return"auto"===R&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===R?"rtl":"ltr"}((X.body?X.body.dir:null)||(X.documentElement?X.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(Z){return new(Z||k)};static \u0275prov=i.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),M=(()=>{class k{static \u0275fac=function(Z){return new(Z||k)};static \u0275mod=i.$C({type:k});static \u0275inj=i.G2t({})}return k})()},3022:(o,s,n)=>{"use strict";n.d(s,{FG:()=>w,OE:()=>c,a1:()=>C,he:()=>a,i8:()=>T});var i=n(3107);function a(M){return null!=M&&"false"!=`${M}`}function c(M,k=0){return function y(M){return!isNaN(parseFloat(M))&&!isNaN(Number(M))}(M)?Number(M):2===arguments.length?k:0}function w(M){return Array.isArray(M)?M:[M]}function C(M){return null==M?"":"string"==typeof M?M:`${M}px`}function T(M){return M instanceof i.aKT?M.nativeElement:M}},5919:(o,s,n)=>{"use strict";n.d(s,{A:()=>Ue,A$:()=>S,FX:()=>C,Fm:()=>w,Ge:()=>L,Kp:()=>_e,LE:()=>Ee,UQ:()=>de,W3:()=>T,Z:()=>z,_f:()=>R,bn:()=>Wn,dB:()=>re,eg:()=>Ye,f2:()=>xe,i7:()=>De,n6:()=>Le,rp:()=>Re,t6:()=>X,w_:()=>Z,wn:()=>c,yZ:()=>pe});const c=9,w=13,C=16,T=17,S=18,R=27,X=32,Z=33,re=34,_e=35,pe=36,de=37,De=38,Ee=39,Le=40,xe=48,Wn=57,Ue=65,z=90,L=91,Ye=224;function Re(gt,...jt){return jt.length?jt.some(kt=>gt[kt]):gt.altKey||gt.shiftKey||gt.ctrlKey||gt.metaKey}},6520:(o,s,n)=>{"use strict";n.d(s,{QP:()=>Le,Rp:()=>we});var i=n(3107),a=n(3022),c=n(8447),y=n(6627),w=n(3569),C=n(1698),T=n(7610),S=n(1866),M=n(8627),k=n(7947),R=n(593),X=n(5424),Z=n(2147);const _e=new Set;let pe,de=(()=>{class le{_platform=(0,i.WQX)(Z.OD);_nonce=(0,i.WQX)(i.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ee}matchMedia(xe){return(this._platform.WEBKIT||this._platform.BLINK)&&function De(le,ae){if(!_e.has(le))try{pe||(pe=document.createElement("style"),ae&&pe.setAttribute("nonce",ae),pe.setAttribute("type","text/css"),document.head.appendChild(pe)),pe.sheet&&(pe.sheet.insertRule(`@media ${le} {body{ }}`,0),_e.add(le))}catch(xe){console.error(xe)}}(xe,this._nonce),this._matchMedia(xe)}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Ee(le){return{matches:"all"===le||""===le,media:le,addListener:()=>{},removeListener:()=>{}}}let Le=(()=>{class le{_mediaMatcher=(0,i.WQX)(de);_zone=(0,i.WQX)(i.SKi);_queries=new Map;_destroySubject=new c.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(xe){return Ae((0,a.FG)(xe)).some(st=>this._registerQuery(st).mql.matches)}observe(xe){const st=Ae((0,a.FG)(xe)).map(bt=>this._registerQuery(bt).observable);let lt=(0,y.z)(st);return lt=(0,w.x)(lt.pipe((0,T.s)(1)),lt.pipe((0,S.i)(1),(0,M.B)(0))),lt.pipe((0,k.T)(bt=>{const at={matches:!1,breakpoints:{}};return bt.forEach(({matches:sn,query:fn})=>{at.matches=at.matches||sn,at.breakpoints[fn]=sn}),at}))}_registerQuery(xe){if(this._queries.has(xe))return this._queries.get(xe);const Be=this._mediaMatcher.matchMedia(xe),lt={observable:new C.c(bt=>{const at=sn=>this._zone.run(()=>bt.next(sn));return Be.addListener(at),()=>{Be.removeListener(at)}}).pipe((0,R.Z)(Be),(0,k.T)(({matches:bt})=>({query:xe,matches:bt})),(0,X.Q)(this._destroySubject)),mql:Be};return this._queries.set(xe,lt),lt}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();function Ae(le){return le.map(ae=>ae.split(",")).reduce((ae,xe)=>ae.concat(xe)).map(ae=>ae.trim())}const we={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)"}},7747:(o,s,n)=>{"use strict";n.d(s,{w5:()=>C});var i=n(3107);let c=(()=>{class T{create(M){return typeof MutationObserver>"u"?null:new MutationObserver(M)}static \u0275fac=function(k){return new(k||T)};static \u0275prov=i.jDH({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),C=(()=>{class T{static \u0275fac=function(k){return new(k||T)};static \u0275mod=i.$C({type:T});static \u0275inj=i.G2t({providers:[c]})}return T})()},9666:(o,s,n)=>{"use strict";n.d(s,{$Q:()=>en,Sf:()=>_t,Tv:()=>xe,WB:()=>Nn,hJ:()=>Zt,rR:()=>Be,yY:()=>ze,z_:()=>tt});var i=n(8108),a=n(4460),c=n(3107),y=n(3022),w=n(2147),C=n(1483),T=n(5424),S=n(8445),M=n(2944),k=n(6192),R=n(8559),X=n(5467),Z=n(8447),re=n(5710),_e=n(7509),pe=n(5919);const de=(0,w.CZ)();class De{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Te,ye){this._viewportRuler=Te,this._document=ye}attach(){}enable(){if(this._canBeEnabled()){const Te=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Te.style.left||"",this._previousHTMLStyles.top=Te.style.top||"",Te.style.left=(0,y.a1)(-this._previousScrollPosition.left),Te.style.top=(0,y.a1)(-this._previousScrollPosition.top),Te.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Te=this._document.documentElement,He=Te.style,z=this._document.body.style,L=He.scrollBehavior||"",V=z.scrollBehavior||"";this._isEnabled=!1,He.left=this._previousHTMLStyles.left,He.top=this._previousHTMLStyles.top,Te.classList.remove("cdk-global-scrollblock"),de&&(He.scrollBehavior=z.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),de&&(He.scrollBehavior=L,z.scrollBehavior=V)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ye=this._document.body,He=this._viewportRuler.getViewportSize();return ye.scrollHeight>He.height||ye.scrollWidth>He.width}}class Le{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Te,ye,He,z){this._scrollDispatcher=Te,this._ngZone=ye,this._viewportRuler=He,this._config=z}attach(Te){this._overlayRef=Te}enable(){if(this._scrollSubscription)return;const Te=this._scrollDispatcher.scrolled(0).pipe((0,C.p)(ye=>!ye||!this._overlayRef.overlayElement.contains(ye.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Te.subscribe(()=>{const ye=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ye-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Te.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class Ae{enable(){}disable(){}attach(){}}function we(At,Te){return Te.some(ye=>At.bottomye.bottom||At.rightye.right)}function le(At,Te){return Te.some(ye=>At.topye.bottom||At.leftye.right)}class ae{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Te,ye,He,z){this._scrollDispatcher=Te,this._viewportRuler=ye,this._ngZone=He,this._config=z}attach(Te){this._overlayRef=Te}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 ye=this._overlayRef.overlayElement.getBoundingClientRect(),{width:He,height:z}=this._viewportRuler.getViewportSize();we(ye,[{width:He,height:z,bottom:z,right:He,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 At{_scrollDispatcher=(0,c.WQX)(i.R);_viewportRuler=(0,c.WQX)(i.Xj);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);constructor(){}noop=()=>new Ae;close=ye=>new Le(this._scrollDispatcher,this._ngZone,this._viewportRuler,ye);block=()=>new De(this._viewportRuler,this._document);reposition=ye=>new ae(this._scrollDispatcher,this._viewportRuler,this._ngZone,ye);static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();class Be{positionStrategy;scrollStrategy=new Ae;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Te){if(Te){const ye=Object.keys(Te);for(const He of ye)void 0!==Te[He]&&(this[He]=Te[He])}}}class bt{connectionPair;scrollableViewProperties;constructor(Te,ye){this.connectionPair=Te,this.scrollableViewProperties=ye}}let fn=(()=>{class At{_attachedOverlays=[];_document=(0,c.WQX)(a.qQ);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(ye){this.remove(ye),this._attachedOverlays.push(ye)}remove(ye){const He=this._attachedOverlays.indexOf(ye);He>-1&&this._attachedOverlays.splice(He,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),En=(()=>{class At extends fn{_ngZone=(0,c.WQX)(c.SKi,{optional:!0});add(ye){super.add(ye),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)}_keydownListener=ye=>{const He=this._attachedOverlays;for(let z=He.length-1;z>-1;z--)if(He[z]._keydownEvents.observers.length>0){const L=He[z]._keydownEvents;this._ngZone?this._ngZone.run(()=>L.next(ye)):L.next(ye);break}};static \u0275fac=(()=>{let ye;return function(z){return(ye||(ye=c.xGo(At)))(z||At)}})();static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Wn=(()=>{class At extends fn{_platform=(0,c.WQX)(w.OD);_ngZone=(0,c.WQX)(c.SKi,{optional:!0});_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;add(ye){if(super.add(ye),!this._isAttached){const He=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(He)):this._addEventListeners(He),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=He.style.cursor,He.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ye=this._document.body;ye.removeEventListener("pointerdown",this._pointerDownListener,!0),ye.removeEventListener("click",this._clickListener,!0),ye.removeEventListener("auxclick",this._clickListener,!0),ye.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ye.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ye){ye.addEventListener("pointerdown",this._pointerDownListener,!0),ye.addEventListener("click",this._clickListener,!0),ye.addEventListener("auxclick",this._clickListener,!0),ye.addEventListener("contextmenu",this._clickListener,!0)}_pointerDownListener=ye=>{this._pointerDownEventTarget=(0,w.Fb)(ye)};_clickListener=ye=>{const He=(0,w.Fb)(ye),z="click"===ye.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:He;this._pointerDownEventTarget=null;const L=this._attachedOverlays.slice();for(let V=L.length-1;V>-1;V--){const Ne=L[V];if(Ne._outsidePointerEvents.observers.length<1||!Ne.hasAttached())continue;if(wn(Ne.overlayElement,He)||wn(Ne.overlayElement,z))break;const ft=Ne._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ft.next(ye)):ft.next(ye)}};static \u0275fac=(()=>{let ye;return function(z){return(ye||(ye=c.xGo(At)))(z||At)}})();static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();function wn(At,Te){const ye=typeof ShadowRoot<"u"&&ShadowRoot;let He=Te;for(;He;){if(He===At)return!0;He=ye&&He instanceof ShadowRoot?He.host:He.parentNode}return!1}let Je=(()=>{class At{static \u0275fac=function(He){return new(He||At)};static \u0275cmp=c.VBU({type:At,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(He,z){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}"],encapsulation:2,changeDetection:0})}return At})(),_t=(()=>{class At{_platform=(0,c.WQX)(w.OD);_containerElement;_document=(0,c.WQX)(a.qQ);_styleLoader=(0,c.WQX)(X.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ye="cdk-overlay-container";if(this._platform.isBrowser||(0,w.v8)()){const z=this._document.querySelectorAll(`.${ye}[platform="server"], .${ye}[platform="test"]`);for(let L=0;Lthis._backdropClick.next(Te);_backdropTransitionendHandler=Te=>{this._disposeBackdrop(Te.target)};_previousHostParent;_keydownEvents=new Z.B;_outsidePointerEvents=new Z.B;_renders=new Z.B;_afterRenderRef;_afterNextRenderRef;constructor(Te,ye,He,z,L,V,Ne,ft,mt,Tt=!1,On){this._portalOutlet=Te,this._host=ye,this._pane=He,this._config=z,this._ngZone=L,this._keyboardDispatcher=V,this._document=Ne,this._location=ft,this._outsideClickDispatcher=mt,this._animationsDisabled=Tt,this._injector=On,z.scrollStrategy&&(this._scrollStrategy=z.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=z.positionStrategy,this._afterRenderRef=(0,c.O8t)(()=>(0,c.Tzd)(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(Te){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ye=this._portalOutlet.attach(Te);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,c.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 ye?.onDestroy&&ye.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ye}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Te=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Te}dispose(){const Te=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,Te&&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(Te){Te!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Te,this.hasAttached()&&(Te.attach(this),this.updatePosition()))}updateSize(Te){this._config={...this._config,...Te},this._updateElementSize()}setDirection(Te){this._config={...this._config,direction:Te},this._updateElementDirection()}addPanelClass(Te){this._pane&&this._toggleClasses(this._pane,Te,!0)}removePanelClass(Te){this._pane&&this._toggleClasses(this._pane,Te,!1)}getDirection(){const Te=this._config.direction;return Te?"string"==typeof Te?Te:Te.value:"ltr"}updateScrollStrategy(Te){Te!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Te,this.hasAttached()&&(Te.attach(this),Te.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Te=this._pane.style;Te.width=(0,y.a1)(this._config.width),Te.height=(0,y.a1)(this._config.height),Te.minWidth=(0,y.a1)(this._config.minWidth),Te.minHeight=(0,y.a1)(this._config.minHeight),Te.maxWidth=(0,y.a1)(this._config.maxWidth),Te.maxHeight=(0,y.a1)(this._config.maxHeight)}_togglePointerEvents(Te){this._pane.style.pointerEvents=Te?"":"none"}_attachBackdrop(){const Te="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(Te)})}):this._backdropElement.classList.add(Te)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const Te=this._backdropElement;if(Te){if(this._animationsDisabled)return void this._disposeBackdrop(Te);Te.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{Te.addEventListener("transitionend",this._backdropTransitionendHandler)}),Te.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(Te)},500))}}_toggleClasses(Te,ye,He){const z=(0,y.FG)(ye||[]).filter(L=>!!L);z.length&&(He?Te.classList.add(...z):Te.classList.remove(...z))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{const Te=this._renders.pipe((0,T.Q)((0,_e.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()),Te.unsubscribe())})})}_disposeScrollStrategy(){const Te=this._scrollStrategy;Te&&(Te.disable(),Te.detach&&Te.detach())}_disposeBackdrop(Te){Te&&(Te.removeEventListener("click",this._backdropClickHandler),Te.removeEventListener("transitionend",this._backdropTransitionendHandler),Te.remove(),this._backdropElement===Te&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Ue="cdk-overlay-connected-position-bounding-box",Ft=/([A-Za-z%]+)$/;class Ke{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Z.B;_resizeSubscription=re.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Te,ye,He,z,L){this._viewportRuler=ye,this._document=He,this._platform=z,this._overlayContainer=L,this.setOrigin(Te)}attach(Te){this._validatePositions(),Te.hostElement.classList.add(Ue),this._overlayRef=Te,this._boundingBox=Te.hostElement,this._pane=Te.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 Te=this._originRect,ye=this._overlayRect,He=this._viewportRect,z=this._containerRect,L=[];let V;for(let Ne of this._preferredPositions){let ft=this._getOriginPoint(Te,z,Ne),mt=this._getOverlayPoint(ft,ye,Ne),Tt=this._getOverlayFit(mt,ye,He,Ne);if(Tt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Ne,ft);this._canFitWithFlexibleDimensions(Tt,mt,He)?L.push({position:Ne,origin:ft,overlayRect:ye,boundingBoxRect:this._calculateBoundingBoxRect(ft,Ne)}):(!V||V.overlayFit.visibleAreaft&&(ft=Tt,Ne=mt)}return this._isPushed=!1,void this._applyPosition(Ne.position,Ne.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(V.position,V.originPoint);this._applyPosition(V.position,V.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ze(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Ue),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Te=this._lastPosition;if(Te){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ye=this._getOriginPoint(this._originRect,this._containerRect,Te);this._applyPosition(Te,ye)}else this.apply()}withScrollableContainers(Te){return this._scrollables=Te,this}withPositions(Te){return this._preferredPositions=Te,-1===Te.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Te){return this._viewportMargin=Te,this}withFlexibleDimensions(Te=!0){return this._hasFlexibleDimensions=Te,this}withGrowAfterOpen(Te=!0){return this._growAfterOpen=Te,this}withPush(Te=!0){return this._canPush=Te,this}withLockedPosition(Te=!0){return this._positionLocked=Te,this}setOrigin(Te){return this._origin=Te,this}withDefaultOffsetX(Te){return this._offsetX=Te,this}withDefaultOffsetY(Te){return this._offsetY=Te,this}withTransformOriginOn(Te){return this._transformOriginSelector=Te,this}_getOriginPoint(Te,ye,He){let z,L;if("center"==He.originX)z=Te.left+Te.width/2;else{const V=this._isRtl()?Te.right:Te.left,Ne=this._isRtl()?Te.left:Te.right;z="start"==He.originX?V:Ne}return ye.left<0&&(z-=ye.left),L="center"==He.originY?Te.top+Te.height/2:"top"==He.originY?Te.top:Te.bottom,ye.top<0&&(L-=ye.top),{x:z,y:L}}_getOverlayPoint(Te,ye,He){let z,L;return z="center"==He.overlayX?-ye.width/2:"start"===He.overlayX?this._isRtl()?-ye.width:0:this._isRtl()?0:-ye.width,L="center"==He.overlayY?-ye.height/2:"top"==He.overlayY?0:-ye.height,{x:Te.x+z,y:Te.y+L}}_getOverlayFit(Te,ye,He,z){const L=Ot(ye);let{x:V,y:Ne}=Te,ft=this._getOffset(z,"x"),mt=this._getOffset(z,"y");ft&&(V+=ft),mt&&(Ne+=mt);let cn=0-Ne,hn=Ne+L.height-He.height,Ln=this._subtractOverflows(L.width,0-V,V+L.width-He.width),lr=this._subtractOverflows(L.height,cn,hn),Dn=Ln*lr;return{visibleArea:Dn,isCompletelyWithinViewport:L.width*L.height===Dn,fitsInViewportVertically:lr===L.height,fitsInViewportHorizontally:Ln==L.width}}_canFitWithFlexibleDimensions(Te,ye,He){if(this._hasFlexibleDimensions){const z=He.bottom-ye.y,L=He.right-ye.x,V=it(this._overlayRef.getConfig().minHeight),Ne=it(this._overlayRef.getConfig().minWidth);return(Te.fitsInViewportVertically||null!=V&&V<=z)&&(Te.fitsInViewportHorizontally||null!=Ne&&Ne<=L)}return!1}_pushOverlayOnScreen(Te,ye,He){if(this._previousPushAmount&&this._positionLocked)return{x:Te.x+this._previousPushAmount.x,y:Te.y+this._previousPushAmount.y};const z=Ot(ye),L=this._viewportRect,V=Math.max(Te.x+z.width-L.width,0),Ne=Math.max(Te.y+z.height-L.height,0),ft=Math.max(L.top-He.top-Te.y,0),mt=Math.max(L.left-He.left-Te.x,0);let Tt=0,On=0;return Tt=z.width<=L.width?mt||-V:Te.xLn&&!this._isInitialRender&&!this._growAfterOpen&&(V=Te.y-Ln/2)}if("end"===ye.overlayX&&!z||"start"===ye.overlayX&&z)cn=He.width-Te.x+2*this._viewportMargin,Tt=Te.x-this._viewportMargin;else if("start"===ye.overlayX&&!z||"end"===ye.overlayX&&z)On=Te.x,Tt=He.right-Te.x;else{const hn=Math.min(He.right-Te.x+He.left,Te.x),Ln=this._lastBoundingBoxSize.width;Tt=2*hn,On=Te.x-hn,Tt>Ln&&!this._isInitialRender&&!this._growAfterOpen&&(On=Te.x-Ln/2)}return{top:V,left:On,bottom:Ne,right:cn,width:Tt,height:L}}_setBoundingBoxStyles(Te,ye){const He=this._calculateBoundingBoxRect(Te,ye);!this._isInitialRender&&!this._growAfterOpen&&(He.height=Math.min(He.height,this._lastBoundingBoxSize.height),He.width=Math.min(He.width,this._lastBoundingBoxSize.width));const z={};if(this._hasExactPosition())z.top=z.left="0",z.bottom=z.right=z.maxHeight=z.maxWidth="",z.width=z.height="100%";else{const L=this._overlayRef.getConfig().maxHeight,V=this._overlayRef.getConfig().maxWidth;z.height=(0,y.a1)(He.height),z.top=(0,y.a1)(He.top),z.bottom=(0,y.a1)(He.bottom),z.width=(0,y.a1)(He.width),z.left=(0,y.a1)(He.left),z.right=(0,y.a1)(He.right),z.alignItems="center"===ye.overlayX?"center":"end"===ye.overlayX?"flex-end":"flex-start",z.justifyContent="center"===ye.overlayY?"center":"bottom"===ye.overlayY?"flex-end":"flex-start",L&&(z.maxHeight=(0,y.a1)(L)),V&&(z.maxWidth=(0,y.a1)(V))}this._lastBoundingBoxSize=He,Ze(this._boundingBox.style,z)}_resetBoundingBoxStyles(){Ze(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ze(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Te,ye){const He={},z=this._hasExactPosition(),L=this._hasFlexibleDimensions,V=this._overlayRef.getConfig();if(z){const Tt=this._viewportRuler.getViewportScrollPosition();Ze(He,this._getExactOverlayY(ye,Te,Tt)),Ze(He,this._getExactOverlayX(ye,Te,Tt))}else He.position="static";let Ne="",ft=this._getOffset(ye,"x"),mt=this._getOffset(ye,"y");ft&&(Ne+=`translateX(${ft}px) `),mt&&(Ne+=`translateY(${mt}px)`),He.transform=Ne.trim(),V.maxHeight&&(z?He.maxHeight=(0,y.a1)(V.maxHeight):L&&(He.maxHeight="")),V.maxWidth&&(z?He.maxWidth=(0,y.a1)(V.maxWidth):L&&(He.maxWidth="")),Ze(this._pane.style,He)}_getExactOverlayY(Te,ye,He){let z={top:"",bottom:""},L=this._getOverlayPoint(ye,this._overlayRect,Te);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,He)),"bottom"===Te.overlayY?z.bottom=this._document.documentElement.clientHeight-(L.y+this._overlayRect.height)+"px":z.top=(0,y.a1)(L.y),z}_getExactOverlayX(Te,ye,He){let V,z={left:"",right:""},L=this._getOverlayPoint(ye,this._overlayRect,Te);return this._isPushed&&(L=this._pushOverlayOnScreen(L,this._overlayRect,He)),V=this._isRtl()?"end"===Te.overlayX?"left":"right":"end"===Te.overlayX?"right":"left","right"===V?z.right=this._document.documentElement.clientWidth-(L.x+this._overlayRect.width)+"px":z.left=(0,y.a1)(L.x),z}_getScrollVisibility(){const Te=this._getOriginRect(),ye=this._pane.getBoundingClientRect(),He=this._scrollables.map(z=>z.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:le(Te,He),isOriginOutsideView:we(Te,He),isOverlayClipped:le(ye,He),isOverlayOutsideView:we(ye,He)}}_subtractOverflows(Te,...ye){return ye.reduce((He,z)=>He-Math.max(z,0),Te)}_getNarrowedViewportRect(){const Te=this._document.documentElement.clientWidth,ye=this._document.documentElement.clientHeight,He=this._viewportRuler.getViewportScrollPosition();return{top:He.top+this._viewportMargin,left:He.left+this._viewportMargin,right:He.left+Te-this._viewportMargin,bottom:He.top+ye-this._viewportMargin,width:Te-2*this._viewportMargin,height:ye-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Te,ye){return"x"===ye?null==Te.offsetX?this._offsetX:Te.offsetX:null==Te.offsetY?this._offsetY:Te.offsetY}_validatePositions(){}_addPanelClasses(Te){this._pane&&(0,y.FG)(Te).forEach(ye=>{""!==ye&&-1===this._appliedPanelClasses.indexOf(ye)&&(this._appliedPanelClasses.push(ye),this._pane.classList.add(ye))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Te=>{this._pane.classList.remove(Te)}),this._appliedPanelClasses=[])}_getOriginRect(){const Te=this._origin;if(Te instanceof c.aKT)return Te.nativeElement.getBoundingClientRect();if(Te instanceof Element)return Te.getBoundingClientRect();const ye=Te.width||0,He=Te.height||0;return{top:Te.y,bottom:Te.y+He,left:Te.x,right:Te.x+ye,height:He,width:ye}}}function Ze(At,Te){for(let ye in Te)Te.hasOwnProperty(ye)&&(At[ye]=Te[ye]);return At}function it(At){if("number"!=typeof At&&null!=At){const[Te,ye]=At.split(Ft);return ye&&"px"!==ye?null:parseFloat(Te)}return At||null}function Ot(At){return{top:Math.floor(At.top),right:Math.floor(At.right),bottom:Math.floor(At.bottom),left:Math.floor(At.left),width:Math.floor(At.width),height:Math.floor(At.height)}}const Xt="cdk-global-overlay-wrapper";class Tn{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Te){const ye=Te.getConfig();this._overlayRef=Te,this._width&&!ye.width&&Te.updateSize({width:this._width}),this._height&&!ye.height&&Te.updateSize({height:this._height}),Te.hostElement.classList.add(Xt),this._isDisposed=!1}top(Te=""){return this._bottomOffset="",this._topOffset=Te,this._alignItems="flex-start",this}left(Te=""){return this._xOffset=Te,this._xPosition="left",this}bottom(Te=""){return this._topOffset="",this._bottomOffset=Te,this._alignItems="flex-end",this}right(Te=""){return this._xOffset=Te,this._xPosition="right",this}start(Te=""){return this._xOffset=Te,this._xPosition="start",this}end(Te=""){return this._xOffset=Te,this._xPosition="end",this}width(Te=""){return this._overlayRef?this._overlayRef.updateSize({width:Te}):this._width=Te,this}height(Te=""){return this._overlayRef?this._overlayRef.updateSize({height:Te}):this._height=Te,this}centerHorizontally(Te=""){return this.left(Te),this._xPosition="center",this}centerVertically(Te=""){return this.top(Te),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement.style,He=this._overlayRef.getConfig(),{width:z,height:L,maxWidth:V,maxHeight:Ne}=He,ft=!("100%"!==z&&"100vw"!==z||V&&"100%"!==V&&"100vw"!==V),mt=!("100%"!==L&&"100vh"!==L||Ne&&"100%"!==Ne&&"100vh"!==Ne),Tt=this._xPosition,On=this._xOffset,cn="rtl"===this._overlayRef.getConfig().direction;let hn="",Ln="",lr="";ft?lr="flex-start":"center"===Tt?(lr="center",cn?Ln=On:hn=On):cn?"left"===Tt||"end"===Tt?(lr="flex-end",hn=On):("right"===Tt||"start"===Tt)&&(lr="flex-start",Ln=On):"left"===Tt||"start"===Tt?(lr="flex-start",hn=On):("right"===Tt||"end"===Tt)&&(lr="flex-end",Ln=On),Te.position=this._cssPosition,Te.marginLeft=ft?"0":hn,Te.marginTop=mt?"0":this._topOffset,Te.marginBottom=this._bottomOffset,Te.marginRight=ft?"0":Ln,ye.justifyContent=lr,ye.alignItems=mt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Te=this._overlayRef.overlayElement.style,ye=this._overlayRef.hostElement,He=ye.style;ye.classList.remove(Xt),He.justifyContent=He.alignItems=Te.marginTop=Te.marginBottom=Te.marginLeft=Te.marginRight=Te.position="",this._overlayRef=null,this._isDisposed=!0}}let Wt=(()=>{class At{_viewportRuler=(0,c.WQX)(i.Xj);_document=(0,c.WQX)(a.qQ);_platform=(0,c.WQX)(w.OD);_overlayContainer=(0,c.WQX)(_t);constructor(){}global(){return new Tn}flexibleConnectedTo(ye){return new Ke(ye,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Zt=(()=>{class At{scrollStrategies=(0,c.WQX)(xe);_overlayContainer=(0,c.WQX)(_t);_positionBuilder=(0,c.WQX)(Wt);_keyboardDispatcher=(0,c.WQX)(En);_injector=(0,c.WQX)(c.zZn);_ngZone=(0,c.WQX)(c.SKi);_document=(0,c.WQX)(a.qQ);_directionality=(0,c.WQX)(M.dS);_location=(0,c.WQX)(a.aZ);_outsideClickDispatcher=(0,c.WQX)(Wn);_animationsModuleType=(0,c.WQX)(c.bc$,{optional:!0});_idGenerator=(0,c.WQX)(R.g7);_appRef;_styleLoader=(0,c.WQX)(X.l);constructor(){}create(ye){this._styleLoader.load(Je);const He=this._createHostElement(),z=this._createPaneElement(He),L=this._createPortalOutlet(z),V=new Be(ye);return V.direction=V.direction||this._directionality.value,new ze(L,He,z,V,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType,this._injector.get(c.uvJ))}position(){return this._positionBuilder}_createPaneElement(ye){const He=this._document.createElement("div");return He.id=this._idGenerator.getId("cdk-overlay-"),He.classList.add("cdk-overlay-pane"),ye.appendChild(He),He}_createHostElement(){const ye=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ye),ye}_createPortalOutlet(ye){return this._appRef||(this._appRef=this._injector.get(c.o8S)),new k.aI(ye,null,this._appRef,this._injector,this._document)}static \u0275fac=function(He){return new(He||At)};static \u0275prov=c.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})();const rt=[{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"}],Ht=new c.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const At=(0,c.WQX)(Zt);return()=>At.scrollStrategies.reposition()}});let en=(()=>{class At{elementRef=(0,c.WQX)(c.aKT);constructor(){}static \u0275fac=function(He){return new(He||At)};static \u0275dir=c.FsC({type:At,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return At})(),Nn=(()=>{class At{_overlay=(0,c.WQX)(Zt);_dir=(0,c.WQX)(M.dS,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=re.yU.EMPTY;_attachSubscription=re.yU.EMPTY;_detachSubscription=re.yU.EMPTY;_positionSubscription=re.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,c.WQX)(Ht);_disposeOnNavigation=!1;_ngZone=(0,c.WQX)(c.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(ye){this._offsetX=ye,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ye){this._offsetY=ye,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(ye){this._disposeOnNavigation=ye}backdropClick=new c.bkB;positionChange=new c.bkB;attach=new c.bkB;detach=new c.bkB;overlayKeydown=new c.bkB;overlayOutsideClick=new c.bkB;constructor(){const ye=(0,c.WQX)(c.C4Q),He=(0,c.WQX)(c.c1b);this._templatePortal=new k.VA(ye,He),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(ye){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ye.origin&&this.open&&this._position.apply()),ye.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=rt);const ye=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ye.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ye.detachments().subscribe(()=>this.detach.emit()),ye.keydownEvents().subscribe(He=>{this.overlayKeydown.next(He),He.keyCode===pe._f&&!this.disableClose&&!(0,pe.rp)(He)&&(He.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(He=>{const z=this._getOriginElement(),L=(0,w.Fb)(He);(!z||z!==L&&!z.contains(L))&&this.overlayOutsideClick.next(He)})}_buildConfig(){const ye=this._position=this.positionStrategy||this._createPositionStrategy(),He=new Be({direction:this._dir||"ltr",positionStrategy:ye,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(He.width=this.width),(this.height||0===this.height)&&(He.height=this.height),(this.minWidth||0===this.minWidth)&&(He.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(He.minHeight=this.minHeight),this.backdropClass&&(He.backdropClass=this.backdropClass),this.panelClass&&(He.panelClass=this.panelClass),He}_updatePositionStrategy(ye){const He=this.positions.map(z=>({originX:z.originX,originY:z.originY,overlayX:z.overlayX,overlayY:z.overlayY,offsetX:z.offsetX||this.offsetX,offsetY:z.offsetY||this.offsetY,panelClass:z.panelClass||void 0}));return ye.setOrigin(this._getOrigin()).withPositions(He).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ye=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(ye),ye}_getOrigin(){return this.origin instanceof en?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof en?this.origin.elementRef.nativeElement:this.origin instanceof c.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(ye=>{this.backdropClick.emit(ye)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe((0,S.v)(()=>this.positionChange.observers.length>0)).subscribe(ye=>{this._ngZone.run(()=>this.positionChange.emit(ye)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static \u0275fac=function(He){return new(He||At)};static \u0275dir=c.FsC({type:At,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",c.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",c.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",c.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",c.L39],push:[2,"cdkConnectedOverlayPush","push",c.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",c.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[c.GFd,c.OA$]})}return At})();const Mn={provide:Ht,deps:[Zt],useFactory:function mn(At){return()=>At.scrollStrategies.reposition()}};let tt=(()=>{class At{static \u0275fac=function(He){return new(He||At)};static \u0275mod=c.$C({type:At});static \u0275inj=c.G2t({providers:[Zt,Mn],imports:[M.jI,k.jc,i.E9,i.E9]})}return At})()},2147:(o,s,n)=>{"use strict";n.d(s,{BD:()=>pe,BQ:()=>R,CZ:()=>_e,Fb:()=>Ae,KT:()=>Ee,MU:()=>S,OD:()=>y,r5:()=>X,v8:()=>we,vc:()=>Le});var i=n(3107),a=n(4460);let c;try{c=typeof Intl<"u"&&Intl.v8BreakIterator}catch{c=!1}let C,y=(()=>{class le{_platformId=(0,i.WQX)(i.Agw);isBrowser=this._platformId?(0,a.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!c)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(Be){return new(Be||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})();const T=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function S(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(T),C;let le=document.createElement("input");return C=new Set(T.filter(ae=>(le.setAttribute("type",ae),le.type===ae))),C}let M;function R(le){return function k(){if(null==M&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>M=!0}))}finally{M=M||!1}return M}()?le:!!le.capture}var X=function(le){return le[le.NORMAL=0]="NORMAL",le[le.NEGATED=1]="NEGATED",le[le.INVERTED=2]="INVERTED",le}(X||{});let Z,re,de;function _e(){if(null==re){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return re=!1,re;if("scrollBehavior"in document.documentElement.style)re=!0;else{const le=Element.prototype.scrollTo;re=!!le&&!/\{\s*\[native code\]\s*\}/.test(le.toString())}}return re}function pe(){if("object"!=typeof document||!document)return X.NORMAL;if(null==Z){const le=document.createElement("div"),ae=le.style;le.dir="rtl",ae.width="1px",ae.overflow="auto",ae.visibility="hidden",ae.pointerEvents="none",ae.position="absolute";const xe=document.createElement("div"),Be=xe.style;Be.width="2px",Be.height="1px",le.appendChild(xe),document.body.appendChild(le),Z=X.NORMAL,0===le.scrollLeft&&(le.scrollLeft=1,Z=0===le.scrollLeft?X.NEGATED:X.INVERTED),le.remove()}return Z}function Ee(le){if(function De(){if(null==de){const le=typeof document<"u"?document.head:null;de=!(!le||!le.createShadowRoot&&!le.attachShadow)}return de}()){const ae=le.getRootNode?le.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&ae instanceof ShadowRoot)return ae}return null}function Le(){let le=typeof document<"u"&&document?document.activeElement:null;for(;le&&le.shadowRoot;){const ae=le.shadowRoot.activeElement;if(ae===le)break;le=ae}return le}function Ae(le){return le.composedPath?le.composedPath()[0]:le.target}function we(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6192:(o,s,n)=>{"use strict";n.d(s,{A8:()=>k,I3:()=>Ee,VA:()=>R,aI:()=>_e,jc:()=>Ae,lb:()=>Z});var i=n(3107),a=n(4460);class M{_attachedHost;attach(ae){return this._attachedHost=ae,ae.attach(this)}detach(){let ae=this._attachedHost;null!=ae&&(this._attachedHost=null,ae.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ae){this._attachedHost=ae}}class k extends M{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(ae,xe,Be,st,lt){super(),this.component=ae,this.viewContainerRef=xe,this.injector=Be,this.projectableNodes=lt}}class R extends M{templateRef;viewContainerRef;context;injector;constructor(ae,xe,Be,st){super(),this.templateRef=ae,this.viewContainerRef=xe,this.context=Be,this.injector=st}get origin(){return this.templateRef.elementRef}attach(ae,xe=this.context){return this.context=xe,super.attach(ae)}detach(){return this.context=void 0,super.detach()}}class X extends M{element;constructor(ae){super(),this.element=ae instanceof i.aKT?ae.nativeElement:ae}}class Z{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ae){return ae instanceof k?(this._attachedPortal=ae,this.attachComponentPortal(ae)):ae instanceof R?(this._attachedPortal=ae,this.attachTemplatePortal(ae)):this.attachDomPortal&&ae instanceof X?(this._attachedPortal=ae,this.attachDomPortal(ae)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ae){this._disposeFn=ae}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class _e extends Z{outletElement;_appRef;_defaultInjector;_document;constructor(ae,xe,Be,st,lt){super(),this.outletElement=ae,this._appRef=Be,this._defaultInjector=st,this._document=lt}attachComponentPortal(ae){let xe;if(ae.viewContainerRef){const Be=ae.injector||ae.viewContainerRef.injector,st=Be.get(i.Vns,null,{optional:!0})||void 0;xe=ae.viewContainerRef.createComponent(ae.component,{index:ae.viewContainerRef.length,injector:Be,ngModuleRef:st,projectableNodes:ae.projectableNodes||void 0}),this.setDisposeFn(()=>xe.destroy())}else xe=(0,i.a0P)(ae.component,{elementInjector:ae.injector||this._defaultInjector||i.zZn.NULL,environmentInjector:this._appRef.injector,projectableNodes:ae.projectableNodes||void 0}),this._appRef.attachView(xe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(xe.hostView),xe.destroy()});return this.outletElement.appendChild(this._getComponentRootNode(xe)),this._attachedPortal=ae,xe}attachTemplatePortal(ae){let xe=ae.viewContainerRef,Be=xe.createEmbeddedView(ae.templateRef,ae.context,{injector:ae.injector});return Be.rootNodes.forEach(st=>this.outletElement.appendChild(st)),Be.detectChanges(),this.setDisposeFn(()=>{let st=xe.indexOf(Be);-1!==st&&xe.remove(st)}),this._attachedPortal=ae,Be}attachDomPortal=ae=>{const xe=ae.element,Be=this._document.createComment("dom-portal");xe.parentNode.insertBefore(Be,xe),this.outletElement.appendChild(xe),this._attachedPortal=ae,super.setDisposeFn(()=>{Be.parentNode&&Be.parentNode.replaceChild(xe,Be)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ae){return ae.hostView.rootNodes[0]}}let Ee=(()=>{class le extends Z{_moduleRef=(0,i.WQX)(i.Vns,{optional:!0});_document=(0,i.WQX)(a.qQ);_viewContainerRef=(0,i.WQX)(i.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(xe){this.hasAttached()&&!xe&&!this._isInitialized||(this.hasAttached()&&super.detach(),xe&&super.attach(xe),this._attachedPortal=xe||null)}attached=new i.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(xe){xe.setAttachedHost(this);const Be=null!=xe.viewContainerRef?xe.viewContainerRef:this._viewContainerRef,st=Be.createComponent(xe.component,{index:Be.length,injector:xe.injector||Be.injector,projectableNodes:xe.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return Be!==this._viewContainerRef&&this._getRootNode().appendChild(st.hostView.rootNodes[0]),super.setDisposeFn(()=>st.destroy()),this._attachedPortal=xe,this._attachedRef=st,this.attached.emit(st),st}attachTemplatePortal(xe){xe.setAttachedHost(this);const Be=this._viewContainerRef.createEmbeddedView(xe.templateRef,xe.context,{injector:xe.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=xe,this._attachedRef=Be,this.attached.emit(Be),Be}attachDomPortal=xe=>{const Be=xe.element,st=this._document.createComment("dom-portal");xe.setAttachedHost(this),Be.parentNode.insertBefore(st,Be),this._getRootNode().appendChild(Be),this._attachedPortal=xe,super.setDisposeFn(()=>{st.parentNode&&st.parentNode.replaceChild(Be,st)})};_getRootNode(){const xe=this._viewContainerRef.element.nativeElement;return xe.nodeType===xe.ELEMENT_NODE?xe:xe.parentNode}static \u0275fac=function(Be){return new(Be||le)};static \u0275dir=i.FsC({type:le,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.Vt3]})}return le})(),Ae=(()=>{class le{static \u0275fac=function(Be){return new(Be||le)};static \u0275mod=i.$C({type:le});static \u0275inj=i.G2t({})}return le})()},5467:(o,s,n)=>{"use strict";n.d(s,{Y:()=>y,l:()=>c});var i=n(3107);const a=new WeakMap;let c=(()=>{class w{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(T){const S=this._appRef=this._appRef||this._injector.get(i.o8S);let M=a.get(S);M||(M={loaders:new Set,refs:[]},a.set(S,M),S.onDestroy(()=>{a.get(S)?.refs.forEach(k=>k.destroy()),a.delete(S)})),M.loaders.has(T)||(M.loaders.add(T),M.refs.push((0,i.a0P)(T,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(S){return new(S||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})(),y=(()=>{class w{static \u0275fac=function(S){return new(S||w)};static \u0275cmp=i.VBU({type:w,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(S,M){},styles:[".cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}"],encapsulation:2,changeDetection:0})}return w})()},8108:(o,s,n)=>{"use strict";n.d(s,{uv:()=>at,Gj:()=>Ze,R:()=>bt,E9:()=>it,Xj:()=>fn});var i=n(3022),a=n(3107),c=n(8447),y=n(3016),w=n(1698),C=n(909),T=n(9899),S=n(5710);const M={schedule(Ot){let Qt=requestAnimationFrame,Me=cancelAnimationFrame;const{delegate:ht}=M;ht&&(Qt=ht.requestAnimationFrame,Me=ht.cancelAnimationFrame);const Xt=Qt(Tn=>{Me=void 0,Ot(Tn)});return new S.yU(()=>Me?.(Xt))},requestAnimationFrame(...Ot){const{delegate:Qt}=M;return(Qt?.requestAnimationFrame||requestAnimationFrame)(...Ot)},cancelAnimationFrame(...Ot){const{delegate:Qt}=M;return(Qt?.cancelAnimationFrame||cancelAnimationFrame)(...Ot)},delegate:void 0};var R=n(8050);new class X extends R.q{flush(Qt){this._active=!0;const Me=this._scheduled;this._scheduled=void 0;const{actions:ht}=this;let Xt;Qt=Qt||ht.shift();do{if(Xt=Qt.execute(Qt.state,Qt.delay))break}while((Qt=ht[0])&&Qt.id===Me&&ht.shift());if(this._active=!1,Xt){for(;(Qt=ht[0])&&Qt.id===Me&&ht.shift();)Qt.unsubscribe();throw Xt}}}(class k extends T.R{constructor(Qt,Me){super(Qt,Me),this.scheduler=Qt,this.work=Me}requestAsyncId(Qt,Me,ht=0){return null!==ht&&ht>0?super.requestAsyncId(Qt,Me,ht):(Qt.actions.push(this),Qt._scheduled||(Qt._scheduled=M.requestAnimationFrame(()=>Qt.flush(void 0))))}recycleAsyncId(Qt,Me,ht=0){var Xt;if(null!=ht?ht>0:this.delay>0)return super.recycleAsyncId(Qt,Me,ht);const{actions:Tn}=Qt;null!=Me&&(null===(Xt=Tn[Tn.length-1])||void 0===Xt?void 0:Xt.id)!==Me&&(M.cancelAnimationFrame(Me),Qt._scheduled=void 0)}});n(4984);var pe=n(5684),de=n(1483),De=n(5424),Ee=n(2147),Le=n(4460),Ae=n(2944);let bt=(()=>{class Ot{_ngZone=(0,a.WQX)(a.SKi);_platform=(0,a.WQX)(Ee.OD);_document=(0,a.WQX)(Le.qQ,{optional:!0});constructor(){}_scrolled=new c.B;_globalSubscription=null;_scrolledCount=0;scrollContainers=new Map;register(Me){this.scrollContainers.has(Me)||this.scrollContainers.set(Me,Me.elementScrolled().subscribe(()=>this._scrolled.next(Me)))}deregister(Me){const ht=this.scrollContainers.get(Me);ht&&(ht.unsubscribe(),this.scrollContainers.delete(Me))}scrolled(Me=20){return this._platform.isBrowser?new w.c(ht=>{this._globalSubscription||this._addGlobalListener();const Xt=Me>0?this._scrolled.pipe((0,pe.Z)(Me)).subscribe(ht):this._scrolled.subscribe(ht);return this._scrolledCount++,()=>{Xt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,y.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Me,ht)=>this.deregister(ht)),this._scrolled.complete()}ancestorScrolled(Me,ht){const Xt=this.getAncestorScrollContainers(Me);return this.scrolled(ht).pipe((0,de.p)(Tn=>!Tn||Xt.indexOf(Tn)>-1))}getAncestorScrollContainers(Me){const ht=[];return this.scrollContainers.forEach((Xt,Tn)=>{this._scrollableContainsElement(Tn,Me)&&ht.push(Tn)}),ht}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Me,ht){let Xt=(0,i.i8)(ht),Tn=Me.getElementRef().nativeElement;do{if(Xt==Tn)return!0}while(Xt=Xt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Me=this._getWindow();return(0,C.R)(Me.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275prov=a.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),at=(()=>{class Ot{elementRef=(0,a.WQX)(a.aKT);scrollDispatcher=(0,a.WQX)(bt);ngZone=(0,a.WQX)(a.SKi);dir=(0,a.WQX)(Ae.dS,{optional:!0});_destroyed=new c.B;_elementScrolled=new w.c(Me=>this.ngZone.runOutsideAngular(()=>(0,C.R)(this.elementRef.nativeElement,"scroll").pipe((0,De.Q)(this._destroyed)).subscribe(Me)));constructor(){}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(Me){const ht=this.elementRef.nativeElement,Xt=this.dir&&"rtl"==this.dir.value;null==Me.left&&(Me.left=Xt?Me.end:Me.start),null==Me.right&&(Me.right=Xt?Me.start:Me.end),null!=Me.bottom&&(Me.top=ht.scrollHeight-ht.clientHeight-Me.bottom),Xt&&(0,Ee.BD)()!=Ee.r5.NORMAL?(null!=Me.left&&(Me.right=ht.scrollWidth-ht.clientWidth-Me.left),(0,Ee.BD)()==Ee.r5.INVERTED?Me.left=Me.right:(0,Ee.BD)()==Ee.r5.NEGATED&&(Me.left=Me.right?-Me.right:Me.right)):null!=Me.right&&(Me.left=ht.scrollWidth-ht.clientWidth-Me.right),this._applyScrollToOptions(Me)}_applyScrollToOptions(Me){const ht=this.elementRef.nativeElement;(0,Ee.CZ)()?ht.scrollTo(Me):(null!=Me.top&&(ht.scrollTop=Me.top),null!=Me.left&&(ht.scrollLeft=Me.left))}measureScrollOffset(Me){const ht="left",Tn=this.elementRef.nativeElement;if("top"==Me)return Tn.scrollTop;if("bottom"==Me)return Tn.scrollHeight-Tn.clientHeight-Tn.scrollTop;const Wt=this.dir&&"rtl"==this.dir.value;return"start"==Me?Me=Wt?"right":ht:"end"==Me&&(Me=Wt?ht:"right"),Wt&&(0,Ee.BD)()==Ee.r5.INVERTED?Me==ht?Tn.scrollWidth-Tn.clientWidth-Tn.scrollLeft:Tn.scrollLeft:Wt&&(0,Ee.BD)()==Ee.r5.NEGATED?Me==ht?Tn.scrollLeft+Tn.scrollWidth-Tn.clientWidth:-Tn.scrollLeft:Me==ht?Tn.scrollLeft:Tn.scrollWidth-Tn.clientWidth-Tn.scrollLeft}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275dir=a.FsC({type:Ot,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return Ot})(),fn=(()=>{class Ot{_platform=(0,a.WQX)(Ee.OD);_viewportSize;_change=new c.B;_changeListener=Me=>{this._change.next(Me)};_document=(0,a.WQX)(Le.qQ,{optional:!0});constructor(){(0,a.WQX)(a.SKi).runOutsideAngular(()=>{if(this._platform.isBrowser){const ht=this._getWindow();ht.addEventListener("resize",this._changeListener),ht.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Me=this._getWindow();Me.removeEventListener("resize",this._changeListener),Me.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Me={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Me}getViewportRect(){const Me=this.getViewportScrollPosition(),{width:ht,height:Xt}=this.getViewportSize();return{top:Me.top,left:Me.left,bottom:Me.top+Xt,right:Me.left+ht,height:Xt,width:ht}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Me=this._document,ht=this._getWindow(),Xt=Me.documentElement,Tn=Xt.getBoundingClientRect();return{top:-Tn.top||Me.body.scrollTop||ht.scrollY||Xt.scrollTop||0,left:-Tn.left||Me.body.scrollLeft||ht.scrollX||Xt.scrollLeft||0}}change(Me=20){return Me>0?this._change.pipe((0,pe.Z)(Me)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Me=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Me.innerWidth,height:Me.innerHeight}:{width:0,height:0}}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275prov=a.jDH({token:Ot,factory:Ot.\u0275fac,providedIn:"root"})}return Ot})(),Ze=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({})}return Ot})(),it=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({imports:[Ae.jI,Ze,Ae.jI,Ze]})}return Ot})()},708:(o,s,n)=>{"use strict";n.d(s,{EE:()=>pe,P8:()=>Z,xb:()=>_e});var i=n(2147),a=n(3107),c=n(5467),y=n(3022),w=n(6564),C=n(8447),T=n(909),S=n(4460),M=n(5684),k=n(5424);let R=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275cmp=a.VBU({type:de,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Le,Ae){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}"],encapsulation:2,changeDetection:0})}return de})();const X=(0,i.BQ)({passive:!0});let Z=(()=>{class de{_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_styleLoader=(0,a.WQX)(c.l);_monitoredElements=new Map;constructor(){}monitor(Ee){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(R);const Le=(0,y.i8)(Ee),Ae=this._monitoredElements.get(Le);if(Ae)return Ae.subject;const we=new C.B,le="cdk-text-field-autofilled",ae=xe=>{"cdk-text-field-autofill-start"!==xe.animationName||Le.classList.contains(le)?"cdk-text-field-autofill-end"===xe.animationName&&Le.classList.contains(le)&&(Le.classList.remove(le),this._ngZone.run(()=>we.next({target:xe.target,isAutofilled:!1}))):(Le.classList.add(le),this._ngZone.run(()=>we.next({target:xe.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Le.addEventListener("animationstart",ae,X),Le.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Le,{subject:we,unlisten:()=>{Le.removeEventListener("animationstart",ae,X)}}),we}stopMonitoring(Ee){const Le=(0,y.i8)(Ee),Ae=this._monitoredElements.get(Le);Ae&&(Ae.unlisten(),Ae.subject.complete(),Le.classList.remove("cdk-text-field-autofill-monitored"),Le.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Le))}ngOnDestroy(){this._monitoredElements.forEach((Ee,Le)=>this.stopMonitoring(Le))}static \u0275fac=function(Le){return new(Le||de)};static \u0275prov=a.jDH({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),_e=(()=>{class de{_elementRef=(0,a.WQX)(a.aKT);_platform=(0,a.WQX)(i.OD);_ngZone=(0,a.WQX)(a.SKi);_previousValue;_initialHeight;_destroyed=new C.B;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(Ee){this._minRows=(0,y.OE)(Ee),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(Ee){this._maxRows=(0,y.OE)(Ee),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(Ee){this._enabled!==Ee&&((this._enabled=Ee)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(Ee){this._cachedPlaceholderHeight=void 0,Ee?this._textareaElement.setAttribute("placeholder",Ee):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=(0,a.WQX)(S.qQ,{optional:!0});_hasFocus;_isViewInited=!1;constructor(){(0,a.WQX)(c.l).load(R),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const Ee=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;Ee&&(this._textareaElement.style.minHeight=Ee)}_setMaxHeight(){const Ee=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;Ee&&(this._textareaElement.style.maxHeight=Ee)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const Ee=this._getWindow();(0,T.R)(Ee,"resize").pipe((0,M.Z)(16),(0,k.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 Ee=this._textareaElement.cloneNode(!1);Ee.rows=1,Ee.style.position="absolute",Ee.style.visibility="hidden",Ee.style.border="none",Ee.style.padding="0",Ee.style.height="",Ee.style.minHeight="",Ee.style.maxHeight="",Ee.style.overflow="hidden",this._textareaElement.parentNode.appendChild(Ee),this._cachedLineHeight=Ee.clientHeight,Ee.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const Ee=this._textareaElement,Le=Ee.style.marginBottom||"",Ae=this._platform.FIREFOX,we=Ae&&this._hasFocus,le=Ae?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";we&&(Ee.style.marginBottom=`${Ee.clientHeight}px`),Ee.classList.add(le);const ae=Ee.scrollHeight-4;return Ee.classList.remove(le),we&&(Ee.style.marginBottom=Le),ae}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const Ee=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=Ee}_handleFocusEvent=Ee=>{this._hasFocus="focus"===Ee.type};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(Ee=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Le=this._elementRef.nativeElement,Ae=Le.value;if(!Ee&&this._minRows===this._previousMinRows&&Ae===this._previousValue)return;const we=this._measureScrollHeight(),le=Math.max(we,this._cachedPlaceholderHeight||0);Le.style.height=`${le}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(Le)):setTimeout(()=>this._scrollToCaretPosition(Le))}),this._previousValue=Ae,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(Ee){const{selectionStart:Le,selectionEnd:Ae}=Ee;!this._destroyed.isStopped&&this._hasFocus&&Ee.setSelectionRange(Le,Ae)}static \u0275fac=function(Le){return new(Le||de)};static \u0275dir=a.FsC({type:de,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(Le,Ae){1&Le&&a.bIt("input",function(){return Ae._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",a.L39],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"],features:[a.GFd]})}return de})(),pe=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275mod=a.$C({type:de});static \u0275inj=a.G2t({})}return de})()},4460:(o,s,n)=>{"use strict";n.d(s,{AJ:()=>ur,B3:()=>Cr,Jj:()=>es,MD:()=>Ao,N0:()=>Ss,PV:()=>Li,QT:()=>y,Sm:()=>de,Sq:()=>me,T3:()=>gi,UE:()=>Gs,VF:()=>C,Vy:()=>_s,Xr:()=>ls,YU:()=>Io,ZD:()=>w,_b:()=>ao,aZ:()=>Ee,bT:()=>gt,fw:()=>De,hb:()=>_e,hj:()=>k,jo:()=>hs,qQ:()=>S,vh:()=>Cs});var i=n(3107),a=n(8447);let c=null;function y(){return c}function w(U){c??=U}class C{}const S=new i.nKC("");let M=(()=>{class U{historyGo(ne){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(R),providedIn:"platform"})}return U})();const k=new i.nKC("");let R=(()=>{class U extends M{_location;_history;_doc=(0,i.WQX)(S);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return y().getBaseHref(this._doc)}onPopState(ne){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("popstate",ne,!1),()=>ve.removeEventListener("popstate",ne)}onHashChange(ne){const ve=y().getGlobalEventTarget(this._doc,"window");return ve.addEventListener("hashchange",ne,!1),()=>ve.removeEventListener("hashchange",ne)}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(ne){this._location.pathname=ne}pushState(ne,ve,Et){this._history.pushState(ne,ve,Et)}replaceState(ne,ve,Et){this._history.replaceState(ne,ve,Et)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ne=0){this._history.go(ne)}getState(){return this._history.state}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>new U,providedIn:"platform"})}return U})();function X(U,Ie){if(0==U.length)return Ie;if(0==Ie.length)return U;let ne=0;return U.endsWith("/")&&ne++,Ie.startsWith("/")&&ne++,2==ne?U+Ie.substring(1):1==ne?U+Ie:U+"/"+Ie}function Z(U){const Ie=U.match(/#|\?|$/),ne=Ie&&Ie.index||U.length;return U.slice(0,ne-("/"===U[ne-1]?1:0))+U.slice(ne)}function re(U){return U&&"?"!==U[0]?"?"+U:U}let _e=(()=>{class U{historyGo(ne){throw new Error("")}static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:()=>(0,i.WQX)(de),providedIn:"root"})}return U})();const pe=new i.nKC("");let de=(()=>{class U extends _e{_platformLocation;_baseHref;_removeListenerFns=[];constructor(ne,ve){super(),this._platformLocation=ne,this._baseHref=ve??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(S).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ne){this._removeListenerFns.push(this._platformLocation.onPopState(ne),this._platformLocation.onHashChange(ne))}getBaseHref(){return this._baseHref}prepareExternalUrl(ne){return X(this._baseHref,ne)}path(ne=!1){const ve=this._platformLocation.pathname+re(this._platformLocation.search),Et=this._platformLocation.hash;return Et&&ne?`${ve}${Et}`:ve}pushState(ne,ve,Et,Gt){const Vn=this.prepareExternalUrl(Et+re(Gt));this._platformLocation.pushState(ne,ve,Vn)}replaceState(ne,ve,Et,Gt){const Vn=this.prepareExternalUrl(Et+re(Gt));this._platformLocation.replaceState(ne,ve,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ne=0){this._platformLocation.historyGo?.(ne)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(M),i.KVO(pe,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac,providedIn:"root"})}return U})(),De=(()=>{class U extends _e{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(ne,ve){super(),this._platformLocation=ne,null!=ve&&(this._baseHref=ve)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ne){this._removeListenerFns.push(this._platformLocation.onPopState(ne),this._platformLocation.onHashChange(ne))}getBaseHref(){return this._baseHref}path(ne=!1){const ve=this._platformLocation.hash??"#";return ve.length>0?ve.substring(1):ve}prepareExternalUrl(ne){const ve=X(this._baseHref,ne);return ve.length>0?"#"+ve:ve}pushState(ne,ve,Et,Gt){let Vn=this.prepareExternalUrl(Et+re(Gt));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.pushState(ne,ve,Vn)}replaceState(ne,ve,Et,Gt){let Vn=this.prepareExternalUrl(Et+re(Gt));0==Vn.length&&(Vn=this._platformLocation.pathname),this._platformLocation.replaceState(ne,ve,Vn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ne=0){this._platformLocation.historyGo?.(ne)}static \u0275fac=function(ve){return new(ve||U)(i.KVO(M),i.KVO(pe,8))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})(),Ee=(()=>{class U{_subject=new a.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(ne){this._locationStrategy=ne;const ve=this._locationStrategy.getBaseHref();this._basePath=function le(U){if(new RegExp("^(https?:)?//").test(U)){const[,ne]=U.split(/\/\/[^\/]+/);return ne}return U}(Z(we(ve))),this._locationStrategy.onPopState(Et=>{this._subject.next({url:this.path(!0),pop:!0,state:Et.state,type:Et.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ne=!1){return this.normalize(this._locationStrategy.path(ne))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ne,ve=""){return this.path()==this.normalize(ne+re(ve))}normalize(ne){return U.stripTrailingSlash(function Ae(U,Ie){if(!U||!Ie.startsWith(U))return Ie;const ne=Ie.substring(U.length);return""===ne||["/",";","?","#"].includes(ne[0])?ne:Ie}(this._basePath,we(ne)))}prepareExternalUrl(ne){return ne&&"/"!==ne[0]&&(ne="/"+ne),this._locationStrategy.prepareExternalUrl(ne)}go(ne,ve="",Et=null){this._locationStrategy.pushState(Et,"",ne,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(ne+re(ve)),Et)}replaceState(ne,ve="",Et=null){this._locationStrategy.replaceState(Et,"",ne,ve),this._notifyUrlChangeListeners(this.prepareExternalUrl(ne+re(ve)),Et)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ne=0){this._locationStrategy.historyGo?.(ne)}onUrlChange(ne){return this._urlChangeListeners.push(ne),this._urlChangeSubscription??=this.subscribe(ve=>{this._notifyUrlChangeListeners(ve.url,ve.state)}),()=>{const ve=this._urlChangeListeners.indexOf(ne);this._urlChangeListeners.splice(ve,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ne="",ve){this._urlChangeListeners.forEach(Et=>Et(ne,ve))}subscribe(ne,ve,Et){return this._subject.subscribe({next:ne,error:ve??void 0,complete:Et??void 0})}static normalizeQueryParams=re;static joinWithSlash=X;static stripTrailingSlash=Z;static \u0275fac=function(ve){return new(ve||U)(i.KVO(_e))};static \u0275prov=i.jDH({token:U,factory:()=>function Le(){return new Ee((0,i.KVO)(_e))}(),providedIn:"root"})}return U})();function we(U){return U.replace(/\/index.html$/,"")}var Be=function(U){return U[U.Zero=0]="Zero",U[U.One=1]="One",U[U.Two=2]="Two",U[U.Few=3]="Few",U[U.Many=4]="Many",U[U.Other=5]="Other",U}(Be||{}),st=function(U){return U[U.Format=0]="Format",U[U.Standalone=1]="Standalone",U}(st||{}),lt=function(U){return U[U.Narrow=0]="Narrow",U[U.Abbreviated=1]="Abbreviated",U[U.Wide=2]="Wide",U[U.Short=3]="Short",U}(lt||{}),bt=function(U){return U[U.Short=0]="Short",U[U.Medium=1]="Medium",U[U.Long=2]="Long",U[U.Full=3]="Full",U}(bt||{});const at={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 Ue(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.DateFormat],Ie)}function Ft(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.TimeFormat],Ie)}function Ke(U,Ie){return Ht((0,i.H5H)(U)[i.KH2.DateTimeFormat],Ie)}function Ze(U,Ie){const ne=(0,i.H5H)(U),ve=ne[i.KH2.NumberSymbols][Ie];if(typeof ve>"u"){if(Ie===at.CurrencyDecimal)return ne[i.KH2.NumberSymbols][at.Decimal];if(Ie===at.CurrencyGroup)return ne[i.KH2.NumberSymbols][at.Group]}return ve}const Xt=i.mq5;function Tn(U){if(!U[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${U[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ht(U,Ie){for(let ne=Ie;ne>-1;ne--)if(typeof U[ne]<"u")return U[ne];throw new Error("Locale data API: locale data undefined")}function en(U){const[Ie,ne]=U.split(":");return{hours:+Ie,minutes:+ne}}const tt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kt={},At=/((?:[^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 Te=function(U){return U[U.Short=0]="Short",U[U.ShortGMT=1]="ShortGMT",U[U.Long=2]="Long",U[U.Extended=3]="Extended",U}(Te||{}),ye=function(U){return U[U.FullYear=0]="FullYear",U[U.Month=1]="Month",U[U.Date=2]="Date",U[U.Hours=3]="Hours",U[U.Minutes=4]="Minutes",U[U.Seconds=5]="Seconds",U[U.FractionalSeconds=6]="FractionalSeconds",U[U.Day=7]="Day",U}(ye||{}),He=function(U){return U[U.DayPeriods=0]="DayPeriods",U[U.Days=1]="Days",U[U.Months=2]="Months",U[U.Eras=3]="Eras",U}(He||{});function z(U,Ie,ne,ve){let Et=function ct(U){if(xn(U))return U;if("number"==typeof U&&!isNaN(U))return new Date(U);if("string"==typeof U){if(U=U.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(U)){const[Et,Gt=1,Vn=1]=U.split("-").map(rr=>+rr);return L(Et,Gt-1,Vn)}const ne=parseFloat(U);if(!isNaN(U-ne))return new Date(ne);let ve;if(ve=U.match(tt))return function Bt(U){const Ie=new Date(0);let ne=0,ve=0;const Et=U[8]?Ie.setUTCFullYear:Ie.setFullYear,Gt=U[8]?Ie.setUTCHours:Ie.setHours;U[9]&&(ne=Number(U[9]+U[10]),ve=Number(U[9]+U[11])),Et.call(Ie,Number(U[1]),Number(U[2])-1,Number(U[3]));const Vn=Number(U[4]||0)-ne,rr=Number(U[5]||0)-ve,ci=Number(U[6]||0),ki=Math.floor(1e3*parseFloat("0."+(U[7]||0)));return Gt.call(Ie,Vn,rr,ci,ki),Ie}(ve)}const Ie=new Date(U);if(!xn(Ie))throw new Error(`Unable to convert "${U}" into a date`);return Ie}(U);Ie=V(ne,Ie)||Ie;let rr,Vn=[];for(;Ie;){if(rr=At.exec(Ie),!rr){Vn.push(Ie);break}{Vn=Vn.concat(rr.slice(1));const Di=Vn.pop();if(!Di)break;Ie=Di}}let ci=Et.getTimezoneOffset();ve&&(ci=Ge(ve,ci),Et=function Dt(U,Ie,ne){const ve=ne?-1:1,Et=U.getTimezoneOffset();return function je(U,Ie){return(U=new Date(U.getTime())).setMinutes(U.getMinutes()+Ie),U}(U,ve*(Ge(Ie,Et)-Et))}(Et,ve,!0));let ki="";return Vn.forEach(Di=>{const Nr=function Oe(U){if(Vt[U])return Vt[U];let Ie;switch(U){case"G":case"GG":case"GGG":Ie=cn(He.Eras,lt.Abbreviated);break;case"GGGG":Ie=cn(He.Eras,lt.Wide);break;case"GGGGG":Ie=cn(He.Eras,lt.Narrow);break;case"y":Ie=Tt(ye.FullYear,1,0,!1,!0);break;case"yy":Ie=Tt(ye.FullYear,2,0,!0,!0);break;case"yyy":Ie=Tt(ye.FullYear,3,0,!1,!0);break;case"yyyy":Ie=Tt(ye.FullYear,4,0,!1,!0);break;case"Y":Ie=vt(1);break;case"YY":Ie=vt(2,!0);break;case"YYY":Ie=vt(3);break;case"YYYY":Ie=vt(4);break;case"M":case"L":Ie=Tt(ye.Month,1,1);break;case"MM":case"LL":Ie=Tt(ye.Month,2,1);break;case"MMM":Ie=cn(He.Months,lt.Abbreviated);break;case"MMMM":Ie=cn(He.Months,lt.Wide);break;case"MMMMM":Ie=cn(He.Months,lt.Narrow);break;case"LLL":Ie=cn(He.Months,lt.Abbreviated,st.Standalone);break;case"LLLL":Ie=cn(He.Months,lt.Wide,st.Standalone);break;case"LLLLL":Ie=cn(He.Months,lt.Narrow,st.Standalone);break;case"w":Ie=Vr(1);break;case"ww":Ie=Vr(2);break;case"W":Ie=Vr(1,!0);break;case"d":Ie=Tt(ye.Date,1);break;case"dd":Ie=Tt(ye.Date,2);break;case"c":case"cc":Ie=Tt(ye.Day,1);break;case"ccc":Ie=cn(He.Days,lt.Abbreviated,st.Standalone);break;case"cccc":Ie=cn(He.Days,lt.Wide,st.Standalone);break;case"ccccc":Ie=cn(He.Days,lt.Narrow,st.Standalone);break;case"cccccc":Ie=cn(He.Days,lt.Short,st.Standalone);break;case"E":case"EE":case"EEE":Ie=cn(He.Days,lt.Abbreviated);break;case"EEEE":Ie=cn(He.Days,lt.Wide);break;case"EEEEE":Ie=cn(He.Days,lt.Narrow);break;case"EEEEEE":Ie=cn(He.Days,lt.Short);break;case"a":case"aa":case"aaa":Ie=cn(He.DayPeriods,lt.Abbreviated);break;case"aaaa":Ie=cn(He.DayPeriods,lt.Wide);break;case"aaaaa":Ie=cn(He.DayPeriods,lt.Narrow);break;case"b":case"bb":case"bbb":Ie=cn(He.DayPeriods,lt.Abbreviated,st.Standalone,!0);break;case"bbbb":Ie=cn(He.DayPeriods,lt.Wide,st.Standalone,!0);break;case"bbbbb":Ie=cn(He.DayPeriods,lt.Narrow,st.Standalone,!0);break;case"B":case"BB":case"BBB":Ie=cn(He.DayPeriods,lt.Abbreviated,st.Format,!0);break;case"BBBB":Ie=cn(He.DayPeriods,lt.Wide,st.Format,!0);break;case"BBBBB":Ie=cn(He.DayPeriods,lt.Narrow,st.Format,!0);break;case"h":Ie=Tt(ye.Hours,1,-12);break;case"hh":Ie=Tt(ye.Hours,2,-12);break;case"H":Ie=Tt(ye.Hours,1);break;case"HH":Ie=Tt(ye.Hours,2);break;case"m":Ie=Tt(ye.Minutes,1);break;case"mm":Ie=Tt(ye.Minutes,2);break;case"s":Ie=Tt(ye.Seconds,1);break;case"ss":Ie=Tt(ye.Seconds,2);break;case"S":Ie=Tt(ye.FractionalSeconds,1);break;case"SS":Ie=Tt(ye.FractionalSeconds,2);break;case"SSS":Ie=Tt(ye.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ie=Ln(Te.Short);break;case"ZZZZZ":Ie=Ln(Te.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ie=Ln(Te.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ie=Ln(Te.Long);break;default:return null}return Vt[U]=Ie,Ie}(Di);ki+=Nr?Nr(Et,ne,ci):"''"===Di?"'":Di.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ki}function L(U,Ie,ne){const ve=new Date(0);return ve.setFullYear(U,Ie,ne),ve.setHours(0,0,0),ve}function V(U,Ie){const ne=function fn(U){return(0,i.H5H)(U)[i.KH2.LocaleId]}(U);if(Kt[ne]??={},Kt[ne][Ie])return Kt[ne][Ie];let ve="";switch(Ie){case"shortDate":ve=Ue(U,bt.Short);break;case"mediumDate":ve=Ue(U,bt.Medium);break;case"longDate":ve=Ue(U,bt.Long);break;case"fullDate":ve=Ue(U,bt.Full);break;case"shortTime":ve=Ft(U,bt.Short);break;case"mediumTime":ve=Ft(U,bt.Medium);break;case"longTime":ve=Ft(U,bt.Long);break;case"fullTime":ve=Ft(U,bt.Full);break;case"short":const Et=V(U,"shortTime"),Gt=V(U,"shortDate");ve=Ne(Ke(U,bt.Short),[Et,Gt]);break;case"medium":const Vn=V(U,"mediumTime"),rr=V(U,"mediumDate");ve=Ne(Ke(U,bt.Medium),[Vn,rr]);break;case"long":const ci=V(U,"longTime"),ki=V(U,"longDate");ve=Ne(Ke(U,bt.Long),[ci,ki]);break;case"full":const Di=V(U,"fullTime"),Nr=V(U,"fullDate");ve=Ne(Ke(U,bt.Full),[Di,Nr])}return ve&&(Kt[ne][Ie]=ve),ve}function Ne(U,Ie){return Ie&&(U=U.replace(/\{([^}]+)}/g,function(ne,ve){return null!=Ie&&ve in Ie?Ie[ve]:ne})),U}function ft(U,Ie,ne="-",ve,Et){let Gt="";(U<0||Et&&U<=0)&&(Et?U=1-U:(U=-U,Gt=ne));let Vn=String(U);for(;Vn.length0||rr>-ne)&&(rr+=ne),U===ye.Hours)0===rr&&-12===ne&&(rr=12);else if(U===ye.FractionalSeconds)return function mt(U,Ie){return ft(U,3).substring(0,Ie)}(rr,Ie);const ci=Ze(Vn,at.MinusSign);return ft(rr,Ie,ci,ve,Et)}}function cn(U,Ie,ne=st.Format,ve=!1){return function(Et,Gt){return function hn(U,Ie,ne,ve,Et,Gt){switch(ne){case He.Months:return function wn(U,Ie,ne){const ve=(0,i.H5H)(U),Gt=Ht([ve[i.KH2.MonthsFormat],ve[i.KH2.MonthsStandalone]],Ie);return Ht(Gt,ne)}(Ie,Et,ve)[U.getMonth()];case He.Days:return function Wn(U,Ie,ne){const ve=(0,i.H5H)(U),Gt=Ht([ve[i.KH2.DaysFormat],ve[i.KH2.DaysStandalone]],Ie);return Ht(Gt,ne)}(Ie,Et,ve)[U.getDay()];case He.DayPeriods:const Vn=U.getHours(),rr=U.getMinutes();if(Gt){const ki=function Wt(U){const Ie=(0,i.H5H)(U);return Tn(Ie),(Ie[i.KH2.ExtraData][2]||[]).map(ve=>"string"==typeof ve?en(ve):[en(ve[0]),en(ve[1])])}(Ie),Di=function Zt(U,Ie,ne){const ve=(0,i.H5H)(U);Tn(ve);const Gt=Ht([ve[i.KH2.ExtraData][0],ve[i.KH2.ExtraData][1]],Ie)||[];return Ht(Gt,ne)||[]}(Ie,Et,ve),Nr=ki.findIndex(li=>{if(Array.isArray(li)){const[ii,wi]=li,bs=Vn>=ii.hours&&rr>=ii.minutes,Lo=Vn0?Math.floor(Et/60):Math.ceil(Et/60);switch(U){case Te.Short:return(Et>=0?"+":"")+ft(Vn,2,Gt)+ft(Math.abs(Et%60),2,Gt);case Te.ShortGMT:return"GMT"+(Et>=0?"+":"")+ft(Vn,1,Gt);case Te.Long:return"GMT"+(Et>=0?"+":"")+ft(Vn,2,Gt)+":"+ft(Math.abs(Et%60),2,Gt);case Te.Extended:return 0===ve?"Z":(Et>=0?"+":"")+ft(Vn,2,Gt)+":"+ft(Math.abs(Et%60),2,Gt);default:throw new Error(`Unknown zone width "${U}"`)}}}const lr=0,Dn=4;function Mr(U){const Ie=U.getDay(),ne=0===Ie?-3:Dn-Ie;return L(U.getFullYear(),U.getMonth(),U.getDate()+ne)}function Vr(U,Ie=!1){return function(ne,ve){let Et;if(Ie){const Gt=new Date(ne.getFullYear(),ne.getMonth(),1).getDay()-1,Vn=ne.getDate();Et=1+Math.floor((Vn+Gt)/7)}else{const Gt=Mr(ne),Vn=function Hr(U){const Ie=L(U,lr,1).getDay();return L(U,0,1+(Ie<=Dn?Dn:Dn+7)-Ie)}(Gt.getFullYear()),rr=Gt.getTime()-Vn.getTime();Et=1+Math.round(rr/6048e5)}return ft(Et,U,Ze(ve,at.MinusSign))}}function vt(U,Ie=!1){return function(ne,ve){return ft(Mr(ne).getFullYear(),U,Ze(ve,at.MinusSign),Ie)}}const Vt={};function Ge(U,Ie){U=U.replace(/:/g,"");const ne=Date.parse("Jan 01, 1970 00:00:00 "+U)/6e4;return isNaN(ne)?Ie:ne}function xn(U){return U instanceof Date&&!isNaN(U.valueOf())}let fo=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275prov=i.jDH({token:U,factory:function(ve){let Et=null;return ve?Et=new ve:(Gt=i.KVO(i.xe9),Et=new Fo(Gt)),Et;var Gt},providedIn:"root"})}return U})();let Fo=(()=>{class U extends fo{locale;constructor(ne){super(),this.locale=ne}getPluralCategory(ne,ve){switch(Xt(ve||this.locale)(ne)){case Be.Zero:return"zero";case Be.One:return"one";case Be.Two:return"two";case Be.Few:return"few";case Be.Many:return"many";default:return"other"}}static \u0275fac=function(ve){return new(ve||U)(i.KVO(i.xe9))};static \u0275prov=i.jDH({token:U,factory:U.\u0275fac})}return U})();function ao(U,Ie){Ie=encodeURIComponent(Ie);for(const ne of U.split(";")){const ve=ne.indexOf("="),[Et,Gt]=-1==ve?[ne,""]:[ne.slice(0,ve),ne.slice(ve+1)];if(Et.trim()===Ie)return decodeURIComponent(Gt)}return null}const po=/\s+/,Ii=[];let Io=(()=>{class U{_ngEl;_renderer;initialClasses=Ii;rawClass;stateMap=new Map;constructor(ne,ve){this._ngEl=ne,this._renderer=ve}set klass(ne){this.initialClasses=null!=ne?ne.trim().split(po):Ii}set ngClass(ne){this.rawClass="string"==typeof ne?ne.trim().split(po):ne}ngDoCheck(){for(const ve of this.initialClasses)this._updateState(ve,!0);const ne=this.rawClass;if(Array.isArray(ne)||ne instanceof Set)for(const ve of ne)this._updateState(ve,!0);else if(null!=ne)for(const ve of Object.keys(ne))this._updateState(ve,!!ne[ve]);this._applyStateDiff()}_updateState(ne,ve){const Et=this.stateMap.get(ne);void 0!==Et?(Et.enabled!==ve&&(Et.changed=!0,Et.enabled=ve),Et.touched=!0):this.stateMap.set(ne,{enabled:ve,changed:!0,touched:!0})}_applyStateDiff(){for(const ne of this.stateMap){const ve=ne[0],Et=ne[1];Et.changed?(this._toggleClass(ve,Et.enabled),Et.changed=!1):Et.touched||(Et.enabled&&this._toggleClass(ve,!1),this.stateMap.delete(ve)),Et.touched=!1}}_toggleClass(ne,ve){(ne=ne.trim()).length>0&&ne.split(po).forEach(Et=>{ve?this._renderer.addClass(this._ngEl.nativeElement,Et):this._renderer.removeClass(this._ngEl.nativeElement,Et)})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return U})();class dt{$implicit;ngForOf;index;count;constructor(Ie,ne,ve,Et){this.$implicit=Ie,this.ngForOf=ne,this.index=ve,this.count=Et}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 me=(()=>{class U{_viewContainer;_template;_differs;set ngForOf(ne){this._ngForOf=ne,this._ngForOfDirty=!0}set ngForTrackBy(ne){this._trackByFn=ne}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(ne,ve,Et){this._viewContainer=ne,this._template=ve,this._differs=Et}set ngForTemplate(ne){ne&&(this._template=ne)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ne=this._ngForOf;!this._differ&&ne&&(this._differ=this._differs.find(ne).create(this.ngForTrackBy))}if(this._differ){const ne=this._differ.diff(this._ngForOf);ne&&this._applyChanges(ne)}}_applyChanges(ne){const ve=this._viewContainer;ne.forEachOperation((Et,Gt,Vn)=>{if(null==Et.previousIndex)ve.createEmbeddedView(this._template,new dt(Et.item,this._ngForOf,-1,-1),null===Vn?void 0:Vn);else if(null==Vn)ve.remove(null===Gt?void 0:Gt);else if(null!==Gt){const rr=ve.get(Gt);ve.move(rr,Vn),Ye(rr,Et)}});for(let Et=0,Gt=ve.length;Et{Ye(ve.get(Et.currentIndex),Et)})}static ngTemplateContextGuard(ne,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static \u0275dir=i.FsC({type:U,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return U})();function Ye(U,Ie){U.context.$implicit=Ie.item}let gt=(()=>{class U{_viewContainer;_context=new jt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(ne,ve){this._viewContainer=ne,this._thenTemplateRef=ve}set ngIf(ne){this._context.$implicit=this._context.ngIf=ne,this._updateView()}set ngIfThen(ne){kt("ngIfThen",ne),this._thenTemplateRef=ne,this._thenViewRef=null,this._updateView()}set ngIfElse(ne){kt("ngIfElse",ne),this._elseTemplateRef=ne,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(ne,ve){return!0}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b),i.rXU(i.C4Q))};static \u0275dir=i.FsC({type:U,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return U})();class jt{$implicit=null;ngIf=null}function kt(U,Ie){if(Ie&&!Ie.createEmbeddedView)throw new Error(`${U} must be a TemplateRef, but received '${(0,i.Tbb)(Ie)}'.`)}let Cr=(()=>{class U{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(ne,ve,Et){this._ngEl=ne,this._differs=ve,this._renderer=Et}set ngStyle(ne){this._ngStyle=ne,!this._differ&&ne&&(this._differ=this._differs.find(ne).create())}ngDoCheck(){if(this._differ){const ne=this._differ.diff(this._ngStyle);ne&&this._applyChanges(ne)}}_setStyle(ne,ve){const[Et,Gt]=ne.split("."),Vn=-1===Et.indexOf("-")?void 0:i.czy.DashCase;null!=ve?this._renderer.setStyle(this._ngEl.nativeElement,Et,Gt?`${ve}${Gt}`:ve,Vn):this._renderer.removeStyle(this._ngEl.nativeElement,Et,Vn)}_applyChanges(ne){ne.forEachRemovedItem(ve=>this._setStyle(ve.key,null)),ne.forEachAddedItem(ve=>this._setStyle(ve.key,ve.currentValue)),ne.forEachChangedItem(ve=>this._setStyle(ve.key,ve.currentValue))}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:U,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return U})(),gi=(()=>{class U{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(ne){this._viewContainerRef=ne}ngOnChanges(ne){if(this._shouldRecreateView(ne)){const ve=this._viewContainerRef;if(this._viewRef&&ve.remove(ve.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Et=this._createContextForwardProxy();this._viewRef=ve.createEmbeddedView(this.ngTemplateOutlet,Et,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ne){return!!ne.ngTemplateOutlet||!!ne.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ne,ve,Et)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,ve,Et),get:(ne,ve,Et)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,ve,Et)}})}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:U,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return U})();function Mi(U,Ie){return new i.wOt(2100,!1)}class Rr{createSubscription(Ie,ne){return(0,i.O8t)(()=>Ie.subscribe({next:ne,error:ve=>{throw ve}}))}dispose(Ie){(0,i.O8t)(()=>Ie.unsubscribe())}}class Qr{createSubscription(Ie,ne){return Ie.then(ne,ve=>{throw ve})}dispose(Ie){}}const Pr=new Qr,Do=new Rr;let es=(()=>{class U{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(ne){this._ref=ne}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ne){if(!this._obj){if(ne)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ne)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ne!==this._obj?(this._dispose(),this.transform(ne)):this._latestValue}_subscribe(ne){this._obj=ne,this._strategy=this._selectStrategy(ne),this._subscription=this._strategy.createSubscription(ne,ve=>this._updateLatestValue(ne,ve))}_selectStrategy(ne){if((0,i.jNT)(ne))return Pr;if((0,i.zjR)(ne))return Do;throw Mi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ne,ve){ne===this._obj&&(this._latestValue=ve,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"async",type:U,pure:!1})}return U})();const oa=/(?:[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 Li=(()=>{class U{transform(ne){if(null==ne)return null;if("string"!=typeof ne)throw Mi();return ne.replace(oa,ve=>ve[0].toUpperCase()+ve.slice(1).toLowerCase())}static \u0275fac=function(ve){return new(ve||U)};static \u0275pipe=i.EJ8({name:"titlecase",type:U,pure:!0})}return U})();const Ks=new i.nKC(""),Oo=new i.nKC("");let Cs=(()=>{class U{locale;defaultTimezone;defaultOptions;constructor(ne,ve,Et){this.locale=ne,this.defaultTimezone=ve,this.defaultOptions=Et}transform(ne,ve,Et,Gt){if(null==ne||""===ne||ne!=ne)return null;try{return z(ne,ve??this.defaultOptions?.dateFormat??"mediumDate",Gt||this.locale,Et??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Vn){throw Mi()}}static \u0275fac=function(ve){return new(ve||U)(i.rXU(i.xe9,16),i.rXU(Ks,24),i.rXU(Oo,24))};static \u0275pipe=i.EJ8({name:"date",type:U,pure:!0})}return U})();const No=/#/g;let hs=(()=>{class U{_localization;constructor(ne){this._localization=ne}transform(ne,ve,Et){if(null==ne)return"";if("object"!=typeof ve||null===ve)throw Mi();return ve[function Jo(U,Ie,ne,ve){let Et=`=${U}`;if(Ie.indexOf(Et)>-1||(Et=ne.getPluralCategory(U,ve),Ie.indexOf(Et)>-1))return Et;if(Ie.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${U}"`)}(ne,Object.keys(ve),this._localization,Et)].replace(No,ne.toString())}static \u0275fac=function(ve){return new(ve||U)(i.rXU(fo,16))};static \u0275pipe=i.EJ8({name:"i18nPlural",type:U,pure:!0})}return U})(),Ao=(()=>{class U{static \u0275fac=function(ve){return new(ve||U)};static \u0275mod=i.$C({type:U});static \u0275inj=i.G2t({})}return U})();const ur="browser",As="server";function Gs(U){return U===ur}function _s(U){return U===As}let ls=(()=>{class U{static \u0275prov=(0,i.jDH)({token:U,providedIn:"root",factory:()=>Gs((0,i.WQX)(i.Agw))?new Vi((0,i.WQX)(S),window):new la})}return U})();class Vi{document;window;offset=()=>[0,0];constructor(Ie,ne){this.document=Ie,this.window=ne}setOffset(Ie){this.offset=Array.isArray(Ie)?()=>Ie:Ie}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Ie){this.window.scrollTo(Ie[0],Ie[1])}scrollToAnchor(Ie){const ne=function al(U,Ie){const ne=U.getElementById(Ie)||U.getElementsByName(Ie)[0];if(ne)return ne;if("function"==typeof U.createTreeWalker&&U.body&&"function"==typeof U.body.attachShadow){const ve=U.createTreeWalker(U.body,NodeFilter.SHOW_ELEMENT);let Et=ve.currentNode;for(;Et;){const Gt=Et.shadowRoot;if(Gt){const Vn=Gt.getElementById(Ie)||Gt.querySelector(`[name="${Ie}"]`);if(Vn)return Vn}Et=ve.nextNode()}}return null}(this.document,Ie);ne&&(this.scrollToElement(ne),ne.focus())}setHistoryScrollRestoration(Ie){this.window.history.scrollRestoration=Ie}scrollToElement(Ie){const ne=Ie.getBoundingClientRect(),ve=ne.left+this.window.pageXOffset,Et=ne.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(ve-Gt[0],Et-Gt[1])}}class la{setOffset(Ie){}getScrollPosition(){return[0,0]}scrollToPosition(Ie){}scrollToAnchor(Ie){}setHistoryScrollRestoration(Ie){}}class Ss{}},7691:(o,s,n)=>{"use strict";n.d(s,{$R:()=>je,Nl:()=>we,Qq:()=>Ft,b$:()=>Dt,cS:()=>Wn,yz:()=>wn});var i=n(3014),a=n(3107),c=n(3016),y=n(1698),w=n(1787),C=n(1459),T=n(1483),S=n(7947),M=n(4447),k=n(2867),R=n(4460);class X{}class Z{}class re{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(xt){xt?"string"==typeof xt?this.lazyInit=()=>{this.headers=new Map,xt.split("\n").forEach(dt=>{const me=dt.indexOf(":");if(me>0){const Ye=dt.slice(0,me),Re=dt.slice(me+1).trim();this.addHeaderEntry(Ye,Re)}})}:typeof Headers<"u"&&xt instanceof Headers?(this.headers=new Map,xt.forEach((dt,me)=>{this.addHeaderEntry(me,dt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(xt).forEach(([dt,me])=>{this.setHeaderEntries(dt,me)})}:this.headers=new Map}has(xt){return this.init(),this.headers.has(xt.toLowerCase())}get(xt){this.init();const dt=this.headers.get(xt.toLowerCase());return dt&&dt.length>0?dt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(xt){return this.init(),this.headers.get(xt.toLowerCase())||null}append(xt,dt){return this.clone({name:xt,value:dt,op:"a"})}set(xt,dt){return this.clone({name:xt,value:dt,op:"s"})}delete(xt,dt){return this.clone({name:xt,value:dt,op:"d"})}maybeSetNormalizedName(xt,dt){this.normalizedNames.has(dt)||this.normalizedNames.set(dt,xt)}init(){this.lazyInit&&(this.lazyInit instanceof re?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(xt=>this.applyUpdate(xt)),this.lazyUpdate=null))}copyFrom(xt){xt.init(),Array.from(xt.headers.keys()).forEach(dt=>{this.headers.set(dt,xt.headers.get(dt)),this.normalizedNames.set(dt,xt.normalizedNames.get(dt))})}clone(xt){const dt=new re;return dt.lazyInit=this.lazyInit&&this.lazyInit instanceof re?this.lazyInit:this,dt.lazyUpdate=(this.lazyUpdate||[]).concat([xt]),dt}applyUpdate(xt){const dt=xt.name.toLowerCase();switch(xt.op){case"a":case"s":let me=xt.value;if("string"==typeof me&&(me=[me]),0===me.length)return;this.maybeSetNormalizedName(xt.name,dt);const Ye=("a"===xt.op?this.headers.get(dt):void 0)||[];Ye.push(...me),this.headers.set(dt,Ye);break;case"d":const Re=xt.value;if(Re){let gt=this.headers.get(dt);if(!gt)return;gt=gt.filter(jt=>-1===Re.indexOf(jt)),0===gt.length?(this.headers.delete(dt),this.normalizedNames.delete(dt)):this.headers.set(dt,gt)}else this.headers.delete(dt),this.normalizedNames.delete(dt)}}addHeaderEntry(xt,dt){const me=xt.toLowerCase();this.maybeSetNormalizedName(xt,me),this.headers.has(me)?this.headers.get(me).push(dt):this.headers.set(me,[dt])}setHeaderEntries(xt,dt){const me=(Array.isArray(dt)?dt:[dt]).map(Re=>Re.toString()),Ye=xt.toLowerCase();this.headers.set(Ye,me),this.maybeSetNormalizedName(xt,Ye)}forEach(xt){this.init(),Array.from(this.normalizedNames.keys()).forEach(dt=>xt(this.normalizedNames.get(dt),this.headers.get(dt)))}}class pe{encodeKey(xt){return Le(xt)}encodeValue(xt){return Le(xt)}decodeKey(xt){return decodeURIComponent(xt)}decodeValue(xt){return decodeURIComponent(xt)}}const De=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Le(et){return encodeURIComponent(et).replace(De,(xt,dt)=>Ee[dt]??xt)}function Ae(et){return`${et}`}class we{map;encoder;updates=null;cloneFrom=null;constructor(xt={}){if(this.encoder=xt.encoder||new pe,xt.fromString){if(xt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function de(et,xt){const dt=new Map;return et.length>0&&et.replace(/^\?/,"").split("&").forEach(Ye=>{const Re=Ye.indexOf("="),[gt,jt]=-1==Re?[xt.decodeKey(Ye),""]:[xt.decodeKey(Ye.slice(0,Re)),xt.decodeValue(Ye.slice(Re+1))],kt=dt.get(gt)||[];kt.push(jt),dt.set(gt,kt)}),dt}(xt.fromString,this.encoder)}else xt.fromObject?(this.map=new Map,Object.keys(xt.fromObject).forEach(dt=>{const me=xt.fromObject[dt],Ye=Array.isArray(me)?me.map(Ae):[Ae(me)];this.map.set(dt,Ye)})):this.map=null}has(xt){return this.init(),this.map.has(xt)}get(xt){this.init();const dt=this.map.get(xt);return dt?dt[0]:null}getAll(xt){return this.init(),this.map.get(xt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(xt,dt){return this.clone({param:xt,value:dt,op:"a"})}appendAll(xt){const dt=[];return Object.keys(xt).forEach(me=>{const Ye=xt[me];Array.isArray(Ye)?Ye.forEach(Re=>{dt.push({param:me,value:Re,op:"a"})}):dt.push({param:me,value:Ye,op:"a"})}),this.clone(dt)}set(xt,dt){return this.clone({param:xt,value:dt,op:"s"})}delete(xt,dt){return this.clone({param:xt,value:dt,op:"d"})}toString(){return this.init(),this.keys().map(xt=>{const dt=this.encoder.encodeKey(xt);return this.map.get(xt).map(me=>dt+"="+this.encoder.encodeValue(me)).join("&")}).filter(xt=>""!==xt).join("&")}clone(xt){const dt=new we({encoder:this.encoder});return dt.cloneFrom=this.cloneFrom||this,dt.updates=(this.updates||[]).concat(xt),dt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(xt=>this.map.set(xt,this.cloneFrom.map.get(xt))),this.updates.forEach(xt=>{switch(xt.op){case"a":case"s":const dt=("a"===xt.op?this.map.get(xt.param):void 0)||[];dt.push(Ae(xt.value)),this.map.set(xt.param,dt);break;case"d":if(void 0===xt.value){this.map.delete(xt.param);break}{let me=this.map.get(xt.param)||[];const Ye=me.indexOf(Ae(xt.value));-1!==Ye&&me.splice(Ye,1),me.length>0?this.map.set(xt.param,me):this.map.delete(xt.param)}}}),this.cloneFrom=this.updates=null)}}class ae{map=new Map;set(xt,dt){return this.map.set(xt,dt),this}get(xt){return this.map.has(xt)||this.map.set(xt,xt.defaultValue()),this.map.get(xt)}delete(xt){return this.map.delete(xt),this}has(xt){return this.map.has(xt)}keys(){return this.map.keys()}}function Be(et){return typeof ArrayBuffer<"u"&&et instanceof ArrayBuffer}function st(et){return typeof Blob<"u"&&et instanceof Blob}function lt(et){return typeof FormData<"u"&&et instanceof FormData}class at{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(xt,dt,me,Ye){let Re;if(this.url=dt,this.method=xt.toUpperCase(),function xe(et){switch(et){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ye?(this.body=void 0!==me?me:null,Re=Ye):Re=me,Re&&(this.reportProgress=!!Re.reportProgress,this.withCredentials=!!Re.withCredentials,Re.responseType&&(this.responseType=Re.responseType),Re.headers&&(this.headers=Re.headers),Re.context&&(this.context=Re.context),Re.params&&(this.params=Re.params),this.transferCache=Re.transferCache),this.headers??=new re,this.context??=new ae,this.params){const gt=this.params.toString();if(0===gt.length)this.urlWithParams=dt;else{const jt=dt.indexOf("?");this.urlWithParams=dt+(-1===jt?"?":jtFn.set(zn,xt.setHeaders[zn]),pn)),xt.setParams&&(Sn=Object.keys(xt.setParams).reduce((Fn,zn)=>Fn.set(zn,xt.setParams[zn]),Sn)),new at(dt,me,gt,{params:Sn,headers:pn,context:An,reportProgress:kt,responseType:Ye,withCredentials:jt,transferCache:Re})}}var sn=function(et){return et[et.Sent=0]="Sent",et[et.UploadProgress=1]="UploadProgress",et[et.ResponseHeader=2]="ResponseHeader",et[et.DownloadProgress=3]="DownloadProgress",et[et.Response=4]="Response",et[et.User=5]="User",et}(sn||{});class fn{headers;status;statusText;url;ok;type;constructor(xt,dt=200,me="OK"){this.headers=xt.headers||new re,this.status=void 0!==xt.status?xt.status:dt,this.statusText=xt.statusText||me,this.url=xt.url||null,this.ok=this.status>=200&&this.status<300}}class En extends fn{constructor(xt={}){super(xt)}type=sn.ResponseHeader;clone(xt={}){return new En({headers:xt.headers||this.headers,status:void 0!==xt.status?xt.status:this.status,statusText:xt.statusText||this.statusText,url:xt.url||this.url||void 0})}}class Wn extends fn{body;constructor(xt={}){super(xt),this.body=void 0!==xt.body?xt.body:null}type=sn.Response;clone(xt={}){return new Wn({body:void 0!==xt.body?xt.body:this.body,headers:xt.headers||this.headers,status:void 0!==xt.status?xt.status:this.status,statusText:xt.statusText||this.statusText,url:xt.url||this.url||void 0})}}class wn extends fn{name="HttpErrorResponse";message;error;ok=!1;constructor(xt){super(xt,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${xt.url||"(unknown url)"}`:`Http failure response for ${xt.url||"(unknown url)"}: ${xt.status} ${xt.statusText}`,this.error=xt.error||null}}function Ue(et,xt){return{body:xt,headers:et.headers,context:et.context,observe:et.observe,params:et.params,reportProgress:et.reportProgress,responseType:et.responseType,withCredentials:et.withCredentials,transferCache:et.transferCache}}let Ft=(()=>{class et{handler;constructor(dt){this.handler=dt}request(dt,me,Ye={}){let Re;if(dt instanceof at)Re=dt;else{let kt,pn;kt=Ye.headers instanceof re?Ye.headers:new re(Ye.headers),Ye.params&&(pn=Ye.params instanceof we?Ye.params:new we({fromObject:Ye.params})),Re=new at(dt,me,void 0!==Ye.body?Ye.body:null,{headers:kt,context:Ye.context,params:pn,reportProgress:Ye.reportProgress,responseType:Ye.responseType||"json",withCredentials:Ye.withCredentials,transferCache:Ye.transferCache})}const gt=(0,c.of)(Re).pipe((0,C.H)(kt=>this.handler.handle(kt)));if(dt instanceof at||"events"===Ye.observe)return gt;const jt=gt.pipe((0,T.p)(kt=>kt instanceof Wn));switch(Ye.observe||"body"){case"body":switch(Re.responseType){case"arraybuffer":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return jt.pipe((0,S.T)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return jt.pipe((0,S.T)(kt=>kt.body))}case"response":return jt;default:throw new Error(`Unreachable: unhandled observe type ${Ye.observe}}`)}}delete(dt,me={}){return this.request("DELETE",dt,me)}get(dt,me={}){return this.request("GET",dt,me)}head(dt,me={}){return this.request("HEAD",dt,me)}jsonp(dt,me){return this.request("JSONP",dt,{params:(new we).append(me,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(dt,me={}){return this.request("OPTIONS",dt,me)}patch(dt,me,Ye={}){return this.request("PATCH",dt,Ue(Ye,me))}post(dt,me,Ye={}){return this.request("POST",dt,Ue(Ye,me))}put(dt,me,Ye={}){return this.request("PUT",dt,Ue(Ye,me))}static \u0275fac=function(me){return new(me||et)(a.KVO(X))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Ke=/^\)\]\}',?\n/;function it(et){if(et.url)return et.url;const xt="X-Request-URL".toLocaleLowerCase();return et.headers.get(xt)}let Ot=(()=>{class et{fetchImpl=(0,a.WQX)(Qt,{optional:!0})?.fetch??((...dt)=>globalThis.fetch(...dt));ngZone=(0,a.WQX)(a.SKi);handle(dt){return new y.c(me=>{const Ye=new AbortController;return this.doRequest(dt,Ye.signal,me).then(Me,Re=>me.error(new wn({error:Re}))),()=>Ye.abort()})}doRequest(dt,me,Ye){var Re=this;return(0,i.A)(function*(){const gt=Re.createRequestInit(dt);let jt;try{const tr=Re.ngZone.runOutsideAngular(()=>Re.fetchImpl(dt.urlWithParams,{signal:me,...gt}));(function ht(et){et.then(Me,Me)})(tr),Ye.next({type:sn.Sent}),jt=yield tr}catch(tr){return void Ye.error(new wn({error:tr,status:tr.status??0,statusText:tr.statusText,url:dt.urlWithParams,headers:tr.headers}))}const kt=new re(jt.headers),pn=jt.statusText,Sn=it(jt)??dt.urlWithParams;let An=jt.status,Fn=null;if(dt.reportProgress&&Ye.next(new En({headers:kt,status:An,statusText:pn,url:Sn})),jt.body){const tr=jt.headers.get("content-length"),cr=[],Er=jt.body.getReader();let gi,ni,Cr=0;const Mi=typeof Zone<"u"&&Zone.current;yield Re.ngZone.runOutsideAngular((0,i.A)(function*(){for(;;){const{done:Qr,value:Pr}=yield Er.read();if(Qr)break;if(cr.push(Pr),Cr+=Pr.length,dt.reportProgress){ni="text"===dt.responseType?(ni??"")+(gi??=new TextDecoder).decode(Pr,{stream:!0}):void 0;const Do=()=>Ye.next({type:sn.DownloadProgress,total:tr?+tr:void 0,loaded:Cr,partialText:ni});Mi?Mi.run(Do):Do()}}}));const Rr=Re.concatChunks(cr,Cr);try{const Qr=jt.headers.get("Content-Type")??"";Fn=Re.parseBody(dt,Rr,Qr)}catch(Qr){return void Ye.error(new wn({error:Qr,headers:new re(jt.headers),status:jt.status,statusText:jt.statusText,url:it(jt)??dt.urlWithParams}))}}0===An&&(An=Fn?200:0),An>=200&&An<300?(Ye.next(new Wn({body:Fn,headers:kt,status:An,statusText:pn,url:Sn})),Ye.complete()):Ye.error(new wn({error:Fn,headers:kt,status:An,statusText:pn,url:Sn}))})()}parseBody(dt,me,Ye){switch(dt.responseType){case"json":const Re=(new TextDecoder).decode(me).replace(Ke,"");return""===Re?null:JSON.parse(Re);case"text":return(new TextDecoder).decode(me);case"blob":return new Blob([me],{type:Ye});case"arraybuffer":return me.buffer}}createRequestInit(dt){const me={},Ye=dt.withCredentials?"include":void 0;if(dt.headers.forEach((Re,gt)=>me[Re]=gt.join(",")),dt.headers.has("Accept")||(me.Accept="application/json, text/plain, */*"),!dt.headers.has("Content-Type")){const Re=dt.detectContentTypeHeader();null!==Re&&(me["Content-Type"]=Re)}return{body:dt.serializeBody(),method:dt.method,headers:me,credentials:Ye}}concatChunks(dt,me){const Ye=new Uint8Array(me);let Re=0;for(const gt of dt)Ye.set(gt,Re),Re+=gt.length;return Ye}static \u0275fac=function(me){return new(me||et)};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();class Qt{}function Me(){}function Xt(et,xt){return xt(et)}const rt=new a.nKC(""),Ht=new a.nKC(""),en=new a.nKC("",{providedIn:"root",factory:()=>!0});let tt=(()=>{class et extends X{backend;injector;chain=null;pendingTasks=(0,a.WQX)(a.TgB);contributeToStability=(0,a.WQX)(en);constructor(dt,me){super(),this.backend=dt,this.injector=me}handle(dt){if(null===this.chain){const me=Array.from(new Set([...this.injector.get(rt),...this.injector.get(Ht,[])]));this.chain=me.reduceRight((Ye,Re)=>function Wt(et,xt,dt){return(me,Ye)=>(0,a.N4e)(dt,()=>xt(me,Re=>et(Re,Ye)))}(Ye,Re,this.injector),Xt)}if(this.contributeToStability){const me=this.pendingTasks.add();return this.chain(dt,Ye=>this.backend.handle(Ye)).pipe((0,M.j)(()=>this.pendingTasks.remove(me)))}return this.chain(dt,me=>this.backend.handle(me))}static \u0275fac=function(me){return new(me||et)(a.KVO(Z),a.KVO(a.uvJ))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const Tt=/^\)\]\}',?\n/;let cn=(()=>{class et{xhrFactory;constructor(dt){this.xhrFactory=dt}handle(dt){if("JSONP"===dt.method)throw new a.wOt(-2800,!1);const me=this.xhrFactory;return(me.\u0275loadImpl?(0,w.H)(me.\u0275loadImpl()):(0,c.of)(null)).pipe((0,k.n)(()=>new y.c(Re=>{const gt=me.build();if(gt.open(dt.method,dt.urlWithParams),dt.withCredentials&&(gt.withCredentials=!0),dt.headers.forEach((cr,Er)=>gt.setRequestHeader(cr,Er.join(","))),dt.headers.has("Accept")||gt.setRequestHeader("Accept","application/json, text/plain, */*"),!dt.headers.has("Content-Type")){const cr=dt.detectContentTypeHeader();null!==cr&>.setRequestHeader("Content-Type",cr)}if(dt.responseType){const cr=dt.responseType.toLowerCase();gt.responseType="json"!==cr?cr:"text"}const jt=dt.serializeBody();let kt=null;const pn=()=>{if(null!==kt)return kt;const cr=gt.statusText||"OK",Er=new re(gt.getAllResponseHeaders()),Cr=function On(et){return"responseURL"in et&&et.responseURL?et.responseURL:/^X-Request-URL:/m.test(et.getAllResponseHeaders())?et.getResponseHeader("X-Request-URL"):null}(gt)||dt.url;return kt=new En({headers:Er,status:gt.status,statusText:cr,url:Cr}),kt},Sn=()=>{let{headers:cr,status:Er,statusText:Cr,url:gi}=pn(),ni=null;204!==Er&&(ni=typeof gt.response>"u"?gt.responseText:gt.response),0===Er&&(Er=ni?200:0);let Mi=Er>=200&&Er<300;if("json"===dt.responseType&&"string"==typeof ni){const Rr=ni;ni=ni.replace(Tt,"");try{ni=""!==ni?JSON.parse(ni):null}catch(Qr){ni=Rr,Mi&&(Mi=!1,ni={error:Qr,text:ni})}}Mi?(Re.next(new Wn({body:ni,headers:cr,status:Er,statusText:Cr,url:gi||void 0})),Re.complete()):Re.error(new wn({error:ni,headers:cr,status:Er,statusText:Cr,url:gi||void 0}))},An=cr=>{const{url:Er}=pn(),Cr=new wn({error:cr,status:gt.status||0,statusText:gt.statusText||"Unknown Error",url:Er||void 0});Re.error(Cr)};let Fn=!1;const zn=cr=>{Fn||(Re.next(pn()),Fn=!0);let Er={type:sn.DownloadProgress,loaded:cr.loaded};cr.lengthComputable&&(Er.total=cr.total),"text"===dt.responseType&>.responseText&&(Er.partialText=gt.responseText),Re.next(Er)},tr=cr=>{let Er={type:sn.UploadProgress,loaded:cr.loaded};cr.lengthComputable&&(Er.total=cr.total),Re.next(Er)};return gt.addEventListener("load",Sn),gt.addEventListener("error",An),gt.addEventListener("timeout",An),gt.addEventListener("abort",An),dt.reportProgress&&(gt.addEventListener("progress",zn),null!==jt&>.upload&>.upload.addEventListener("progress",tr)),gt.send(jt),Re.next({type:sn.Sent}),()=>{gt.removeEventListener("error",An),gt.removeEventListener("abort",An),gt.removeEventListener("load",Sn),gt.removeEventListener("timeout",An),dt.reportProgress&&(gt.removeEventListener("progress",zn),null!==jt&>.upload&>.upload.removeEventListener("progress",tr)),gt.readyState!==gt.DONE&>.abort()}})))}static \u0275fac=function(me){return new(me||et)(a.KVO(R.N0))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();const hn=new a.nKC(""),lr=new a.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Hr=new a.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Mr{}let Vr=(()=>{class et{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(dt,me,Ye){this.doc=dt,this.platform=me,this.cookieName=Ye}getToken(){if("server"===this.platform)return null;const dt=this.doc.cookie||"";return dt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,R._b)(dt,this.cookieName),this.lastCookieString=dt),this.lastToken}static \u0275fac=function(me){return new(me||et)(a.KVO(R.qQ),a.KVO(a.Agw),a.KVO(lr))};static \u0275prov=a.jDH({token:et,factory:et.\u0275fac})}return et})();function vt(et,xt){const dt=et.url.toLowerCase();if(!(0,a.WQX)(hn)||"GET"===et.method||"HEAD"===et.method||dt.startsWith("http://")||dt.startsWith("https://"))return xt(et);const me=(0,a.WQX)(Mr).getToken(),Ye=(0,a.WQX)(Hr);return null!=me&&!et.headers.has(Ye)&&(et=et.clone({headers:et.headers.set(Ye,me)})),xt(et)}var Oe=function(et){return et[et.Interceptors=0]="Interceptors",et[et.LegacyInterceptors=1]="LegacyInterceptors",et[et.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",et[et.NoXsrfProtection=3]="NoXsrfProtection",et[et.JsonpSupport=4]="JsonpSupport",et[et.RequestsMadeViaParent=5]="RequestsMadeViaParent",et[et.Fetch=6]="Fetch",et}(Oe||{});function je(...et){const xt=[Ft,cn,tt,{provide:X,useExisting:tt},{provide:Z,useFactory:()=>(0,a.WQX)(Ot,{optional:!0})??(0,a.WQX)(cn)},{provide:rt,useValue:vt,multi:!0},{provide:hn,useValue:!0},{provide:Mr,useClass:Vr}];for(const dt of et)xt.push(...dt.\u0275providers);return(0,a.EmA)(xt)}function Dt(et){return function Ge(et,xt){return{\u0275kind:et,\u0275providers:xt}}(Oe.Interceptors,et.map(xt=>({provide:rt,useValue:xt,multi:!0})))}},3107:(o,s,n)=>{"use strict";function a(e,t){return Object.is(e,t)}n.d(s,{bc$:()=>A,iLQ:()=>mg,sZ2:()=>Du,hnV:()=>Vb,wjH:()=>Wi,o8S:()=>hc,BIS:()=>j,gRc:()=>C2,Ql9:()=>FI,Ocv:()=>WI,Z63:()=>qn,aKT:()=>Os,uvJ:()=>cs,zcH:()=>Cc,bkB:()=>oc,ES_:()=>lm,$GK:()=>bi,nKC:()=>dt,zZn:()=>Qo,_q3:()=>_w,MKu:()=>vw,xe9:()=>dw,Co$:()=>c1,Vns:()=>gf,SKi:()=>os,Xx1:()=>la,Agw:()=>b,PLl:()=>od,rOR:()=>Ff,sFG:()=>jD,_9s:()=>Ib,czy:()=>mp,WPN:()=>cd,kdw:()=>Ts,C4Q:()=>ag,NYb:()=>LA,giA:()=>I1,RxE:()=>f2,c1b:()=>Dv,gXe:()=>Sc,mal:()=>Ga,Tzd:()=>ya,L39:()=>GO,EWP:()=>xw,sbv:()=>$S,a0P:()=>vR,Ol2:()=>Pb,w6W:()=>tA,QZP:()=>Dw,Rfq:()=>Oe,oKB:()=>Ba,WQX:()=>ur,hFB:()=>jg,naY:()=>JI,Hps:()=>Bb,QuC:()=>Ro,EmA:()=>jo,Udg:()=>XO,HJs:()=>yR,N4e:()=>$s,vPA:()=>kp,O8t:()=>Zp,H3F:()=>x1,H8p:()=>yl,KH2:()=>Xp,TgB:()=>Ec,wOt:()=>tt,WHO:()=>M1,e01:()=>k1,lNU:()=>Mn,h9k:()=>Pm,$MX:()=>cp,ZF7:()=>Gd,Kcf:()=>By,e5t:()=>Vy,UyX:()=>$y,cWb:()=>Uy,osQ:()=>jy,H5H:()=>V0,Zy3:()=>Kt,mq5:()=>Dx,JZv:()=>hn,TL3:()=>CO,LfX:()=>Fo,plB:()=>Jd,jNT:()=>jb,zjR:()=>O1,ngT:()=>oi,hVU:()=>NA,TL$:()=>_m,Tbb:()=>Mr,rcV:()=>Gc,nM4:()=>TE,Vt3:()=>h0,GFd:()=>RE,OA$:()=>zl,Jv_:()=>LC,R7$:()=>xp,BMQ:()=>A0,HbH:()=>sx,ZvI:()=>fx,AVh:()=>R0,BUC:()=>px,vxM:()=>vx,wni:()=>oC,C6U:()=>cC,VBU:()=>g1,FsC:()=>v1,jDH:()=>ai,G2t:()=>fo,$C:()=>Fb,EJ8:()=>y1,rXU:()=>qd,nrm:()=>B0,eu8:()=>U0,bVm:()=>Bv,qex:()=>Fv,k0s:()=>Pv,j41:()=>Lv,RV6:()=>Cx,xGo:()=>Eh,Mr5:()=>$0,KVO:()=>_o,kS0:()=>Gu,QTQ:()=>ov,bIt:()=>z0,lsd:()=>lC,joV:()=>Br,qSk:()=>Dr,XpG:()=>Xx,nI1:()=>XC,bMT:()=>YC,i5U:()=>QC,SdG:()=>Qx,NAR:()=>Yx,Y8G:()=>k0,FS9:()=>X0,Mz_:()=>Hv,lJ4:()=>FC,eq3:()=>BC,l_i:()=>UC,sMw:()=>$C,ziG:()=>jC,lV:()=>VC,NyB:()=>uC,mGM:()=>aC,sdS:()=>dC,Dyx:()=>wx,Z7z:()=>bx,Vm6:()=>yx,Njj:()=>hu,eBV:()=>Ic,npT:()=>b_,f$h:()=>Bm,B4B:()=>Xd,n$t:()=>w_,Aen:()=>Zc,xc7:()=>O0,Kam:()=>K0,zvX:()=>j0,DNE:()=>m0,C5r:()=>ZC,EFF:()=>wC,JRh:()=>Q0,SpI:()=>Wv,DH7:()=>IC,mxI:()=>q0,R50:()=>Z0,GBs:()=>sC}),n(3014);let c=null,y=!1,w=1;const C=Symbol("SIGNAL");function T(e){const t=c;return c=e,t}const R={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 X(e){if(y)throw new Error("");if(null===c)return;c.consumerOnSignalRead(e);const t=c.nextProducerIndex++;Be(c),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ae(e){Be(e);for(let t=0;t0}function Be(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function st(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function lt(e){return void 0!==e.producerNode}function bt(e){const t=Object.create(En);t.computation=e;const r=()=>{if(re(t),X(t),t.value===fn)throw t.error;return t.value};return r[C]=t,r}const at=Symbol("UNSET"),sn=Symbol("COMPUTING"),fn=Symbol("ERRORED"),En={...R,value:at,dirty:!0,error:null,equal:a,producerMustRecompute:e=>e.value===at||e.value===sn,producerRecomputeValue(e){if(e.value===sn)throw new Error("Detected cycle in computations.");const t=e.value;e.value=sn;const r=Ee(e);let l;try{l=e.computation()}catch(p){l=fn,e.error=p}finally{Le(e,r)}t!==at&&t!==fn&&l!==fn&&e.equal(t,l)?e.value=t:(e.value=l,e.version++)}};let wn=function Wn(){throw new Error};function Je(){wn()}let ze=null;function Ze(e,t){pe()||Je(),e.equal(e.value,t)||(e.value=t,function Me(e){e.version++,function Z(){w++}(),_e(e),ze?.()}(e))}const Qt={...R,equal:a,value:void 0};const Xt=()=>{},Tn={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Xt};var Zt=n(1217),rt=n(8447),Ht=n(5710),en=n(7947);n(1703);const Mn="https://g.co/ng/security#xss";class tt extends Error{code;constructor(t,r){super(Kt(t,r)),this.code=t}}function Kt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const At=Symbol("InputSignalNode#UNSET"),Te={...Qt,transformFn:void 0,applyValueToInputSignal(e,t){Ze(e,t)}};function z(e,t){const r=Object.create(Te);function l(){if(X(r),r.value===At)throw new tt(-950,!1);return r.value}return r.value=e,r.transformFn=t?.transform,l[C]=r,l}function L(e){return{toString:e}.toString()}const Ne="__parameters__";function On(e,t,r){return L(()=>{const l=function Tt(e){return function(...r){if(e){const l=e(...r);for(const p in l)this[p]=l[p]}}}(t);function p(...g){if(this instanceof p)return l.apply(this,g),this;const x=new p(...g);return I.annotation=x,I;function I(B,ie,Se){const Ve=B.hasOwnProperty(Ne)?B[Ne]:Object.defineProperty(B,Ne,{value:[]})[Ne];for(;Ve.length<=Se;)Ve.push(null);return(Ve[Se]=Ve[Se]||[]).push(x),B}}return r&&(p.prototype=Object.create(r.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}const hn=globalThis;function Dn(e){for(let t in e)if(e[t]===Dn)return t;throw Error("Could not find renamed property on target object.")}function Hr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function Mr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Mr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Vr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Vt=Dn({__forward_ref__:Dn});function Oe(e){return e.__forward_ref__=Oe,e.toString=function(){return Mr(this())},e}function Ge(e){return je(e)?e():e}function je(e){return"function"==typeof e&&e.hasOwnProperty(Vt)&&e.__forward_ref__===Oe}function ai(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function fo(e){return{providers:e.providers||[],imports:e.imports||[]}}function Jo(e){return ia(e,Ii)||ia(e,et)}function Fo(e){return null!==Jo(e)}function ia(e,t){return e.hasOwnProperty(t)?e[t]:null}function po(e){return e&&(e.hasOwnProperty(Io)||e.hasOwnProperty(xt))?e[Io]:null}const Ii=Dn({\u0275prov:Dn}),Io=Dn({\u0275inj:Dn}),et=Dn({ngInjectableDef:Dn}),xt=Dn({ngInjectorDef:Dn});class dt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,r){this._desc=t,this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=ai({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function zn(e){return e&&!!e.\u0275providers}const tr=Dn({\u0275cmp:Dn}),cr=Dn({\u0275dir:Dn}),Er=Dn({\u0275pipe:Dn}),Cr=Dn({\u0275mod:Dn}),gi=Dn({\u0275fac:Dn}),ni=Dn({__NG_ELEMENT_ID__:Dn}),Mi=Dn({__NG_ENV_ID__:Dn});function Rr(e){return"string"==typeof e?e:null==e?"":String(e)}function Li(e,t){throw new tt(-201,!1)}var bi=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}(bi||{});let sa;function Ks(){return sa}function Oo(e){const t=sa;return sa=e,t}function Cs(e,t,r){const l=Jo(e);return l&&"root"==l.providedIn?void 0===l.value?l.value=l.factory():l.value:r&bi.Optional?null:void 0!==t?t:void Li()}const Ko={},mo="__NG_DI_FLAG__",Go="ngTempTokenPath",Xr=/\n/gm,go="__source";let io;function Xo(e){const t=io;return io=e,t}function Ya(e,t=bi.Default){if(void 0===io)throw new tt(-203,!1);return null===io?Cs(e,void 0,t):io.get(e,t&bi.Optional?null:void 0,t)}function _o(e,t=bi.Default){return(Ks()||Ya)(Ge(e),t)}function ur(e,t=bi.Default){return _o(e,As(t))}function As(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Gs(e){const t=[];for(let r=0;rArray.isArray(r)?ps(r,t):t(r))}function Da(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ms(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function qe(e,t,r){let l=ot(e,t);return l>=0?e[1|l]=r:(l=~l,function Aa(e,t,r,l){let p=e.length;if(p==t)e.push(r,l);else if(1===p)e.push(l,e[0]),e[0]=r;else{for(p--,e.push(e[p-1],e[p]);p>t;)e[p]=e[p-2],p--;e[t]=r,e[t+1]=l}}(e,l,t,r)),l}function J(e,t){const r=ot(e,t);if(r>=0)return e[1|r]}function ot(e,t){return function jn(e,t,r){let l=0,p=e.length>>r;for(;p!==l;){const g=l+(p-l>>1),x=e[g<t?p=g:l=g+1}return~(p<{r.push(x)};return ps(t,x=>{const I=x;ce(I,g,[],l)&&(p||=[],p.push(I))}),void 0!==p&&ua(p,g),r}function ua(e,t){for(let r=0;r{t(g,l)})}}function ce(e,t,r,l){if(!(e=Ge(e)))return!1;let p=null,g=po(e);const x=!g&&zr(e);if(g||x){if(x&&!x.standalone)return!1;p=e}else{const B=e.ngModule;if(g=po(B),!g)return!1;p=B}const I=l.has(p);if(x){if(I)return!1;if(l.add(p),x.dependencies){const B="function"==typeof x.dependencies?x.dependencies():x.dependencies;for(const ie of B)ce(ie,t,r,l)}}else{if(!g)return!1;{if(null!=g.imports&&!I){let ie;l.add(p);try{ps(g.imports,Se=>{ce(Se,t,r,l)&&(ie||=[],ie.push(Se))})}finally{}void 0!==ie&&ua(ie,t)}if(!I){const ie=So(p)||(()=>new p);t({provide:p,useFactory:ie,deps:Gn},p),t({provide:zi,useValue:p,multi:!0},p),t({provide:qn,useValue:()=>_o(p),multi:!0},p)}const B=g.providers;if(null!=B&&!I){const ie=e;Q(B,Se=>{t(Se,ie)})}}}return p!==e&&void 0!==e.providers}function Q(e,t){for(let r of e)zn(r)&&(r=r.\u0275providers),Array.isArray(r)?Q(r,t):t(r)}const Fe=Dn({provide:String,useValue:Dn});function $t(e){return null!==e&&"object"==typeof e&&Fe in e}function ts(e){return"function"==typeof e}const yl=new dt(""),$a={},fc={};let ll;function _i(){return void 0===ll&&(ll=new kr),ll}class cs{}class vs extends cs{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,r,l,p){super(),this.parent=r,this.source=l,this.scopes=p,ul(t,x=>this.processProvider(x)),this.records.set(qr,yi(void 0,this)),p.has("environment")&&this.records.set(cs,yi(void 0,this));const g=this.records.get(yl);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(zi,Gn,bi.Self))}destroy(){cl(this),this._destroyed=!0;const t=T(null);try{for(const l of this._ngOnDestroyHooks)l.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const l of r)l()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return cl(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){cl(this);const r=Xo(this),l=Oo(void 0);try{return t()}finally{Xo(r),Oo(l)}}get(t,r=Ko,l=bi.Default){if(cl(this),t.hasOwnProperty(Mi))return t[Mi](this);l=As(l);const g=Xo(this),x=Oo(void 0);try{if(!(l&bi.SkipSelf)){let B=this.records.get(t);if(void 0===B){const ie=function tu(e){return"function"==typeof e||"object"==typeof e&&e instanceof dt}(t)&&Jo(t);B=ie&&this.injectableDefInScope(ie)?yi(ja(t),$a):null,this.records.set(t,B)}if(null!=B)return this.hydrate(t,B)}return(l&bi.Self?_i():this.parent).get(t,r=l&bi.Optional&&r===Ko?null:r)}catch(I){if("NullInjectorError"===I.name){if((I[Go]=I[Go]||[]).unshift(Mr(t)),g)throw I;return function ls(e,t,r,l){const p=e[Go];throw t[go]&&p.unshift(t[go]),e.message=function Vi(e,t,r,l=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let p=Mr(t);if(Array.isArray(t))p=t.map(Mr).join(" -> ");else if("object"==typeof t){let g=[];for(let x in t)if(t.hasOwnProperty(x)){let I=t[x];g.push(x+":"+("string"==typeof I?JSON.stringify(I):Mr(I)))}p=`{${g.join(", ")}}`}return`${r}${l?"("+l+")":""}[${p}]: ${e.replace(Xr,"\n ")}`}("\n"+e.message,p,r,l),e.ngTokenPath=p,e[Go]=null,e}(I,t,"R3InjectorError",this.source)}throw I}finally{Oo(x),Xo(g)}}resolveInjectorInitializers(){const t=T(null),r=Xo(this),l=Oo(void 0);try{const g=this.get(qn,Gn,bi.Self);for(const x of g)x()}finally{Xo(r),Oo(l),T(t)}}toString(){const t=[],r=this.records;for(const l of r.keys())t.push(Mr(l));return`R3Injector[${t.join(", ")}]`}processProvider(t){let r=ts(t=Ge(t))?t:Ge(t&&t.provide);const l=function Lu(e){return $t(e)?yi(void 0,e.useValue):yi(wl(e),$a)}(t);if(!ts(t)&&!0===t.multi){let p=this.records.get(r);p||(p=yi(void 0,$a,!0),p.factory=()=>Gs(p.multi),this.records.set(r,p)),r=t,p.multi.push(t)}this.records.set(r,l)}hydrate(t,r){const l=T(null);try{return r.value===$a&&(r.value=fc,r.value=r.factory()),"object"==typeof r.value&&r.value&&function eu(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{T(l)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=Ge(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function ja(e){const t=Jo(e),r=null!==t?t.factory:So(e);if(null!==r)return r;if(e instanceof dt)throw new tt(204,!1);if(e instanceof Function)return function bl(e){if(e.length>0)throw new tt(204,!1);const r=function ao(e){return e&&(e[Ii]||e[et])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new tt(204,!1)}function wl(e,t,r){let l;if(ts(e)){const p=Ge(e);return So(p)||ja(p)}if($t(e))l=()=>Ge(e.useValue);else if(function Jr(e){return!(!e||!e.useFactory)}(e))l=()=>e.useFactory(...Gs(e.deps||[]));else if(function wr(e){return!(!e||!e.useExisting)}(e))l=()=>_o(Ge(e.useExisting));else{const p=Ge(e&&(e.useClass||e.provide));if(!function Il(e){return!!e.deps}(e))return So(p)||ja(p);l=()=>new p(...Gs(e.deps))}return l}function cl(e){if(e.destroyed)throw new tt(205,!1)}function yi(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function ul(e,t){for(const r of e)Array.isArray(r)?ul(r,t):r&&zn(r)?ul(r.\u0275providers,t):t(r)}function $s(e,t){e instanceof vs&&cl(e);const l=Xo(e),p=Oo(void 0);try{return t()}finally{Xo(l),Oo(p)}}function Ol(){return void 0!==Ks()||null!=function fs(){return io}()}function Sa(e){if(!Ol())throw new tt(-203,!1)}const oo=0,$n=1,Tr=2,Oi=3,ys=4,Qi=5,so=6,Bi=7,Ki=8,no=9,co=10,ri=11,Xs=12,Za=13,Uo=14,vo=15,Ci=16,Vs=17,uo=18,Ui=19,U=20,Ie=21,ne=22,ve=23,Et=24,Gt=25,Vn=1,ci=7,Di=9,Nr=10;var li=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(li||{});function ii(e){return Array.isArray(e)&&"object"==typeof e[Vn]}function wi(e){return Array.isArray(e)&&!0===e[Vn]}function bs(e){return!!(4&e.flags)}function Lo(e){return e.componentOffset>-1}function ha(e){return!(1&~e.flags)}function Yo(e){return!!e.template}function Va(e){return!!(512&e[Tr])}class kc{previousValue;currentValue;firstChange;constructor(t,r,l){this.previousValue=t,this.currentValue=r,this.firstChange=l}isFirstChange(){return this.firstChange}}function Hs(e,t,r,l){null!==t?t.applyValueToInputSignal(t,l):e[r]=l}const zl=(()=>{const e=()=>Ha;return e.ngInherit=!0,e})();function Ha(e){return e.type.prototype.ngOnChanges&&(e.setInput=Gl),Fr}function Fr(){const e=fl(this),t=e?.current;if(t){const r=e.previous;if(r===Pn)e.previous=t;else for(let l in t)r[l]=t[l];e.current=null,this.ngOnChanges(t)}}function Gl(e,t,r,l,p){const g=this.declaredInputs[l],x=fl(e)||function md(e,t){return e[Xl]=t}(e,{previous:Pn,current:null}),I=x.current||(x.current={}),B=x.previous,ie=B[g];I[g]=new kc(ie&&ie.currentValue,r,B===Pn),Hs(e,t,p,r)}const Xl="__ngSimpleChanges__";function fl(e){return e[Xl]||null}const Wa=function(e,t,r){},lh="svg";function qi(e){for(;Array.isArray(e);)e=e[oo];return e}function gc(e,t){return qi(t[e])}function rs(e,t){return qi(t[e.index])}function G(e,t){return e.data[t]}function F(e,t){return e[t]}function K(e,t){const r=t[e];return ii(r)?r:r[oo]}function We(e){return!(128&~e[Tr])}function gn(e,t){return null==t?null:e[t]}function an(e){e[Vs]=0}function hr(e){1024&e[Tr]||(e[Tr]|=1024,We(e)&&Is(e))}function Ir(e){return!!(9216&e[Tr]||e[Et]?.dirty)}function Gi(e){e[co].changeDetectionScheduler?.notify(9),64&e[Tr]&&(e[Tr]|=1024),Ir(e)&&Is(e)}function Is(e){e[co].changeDetectionScheduler?.notify(0);let t=us(e);for(;null!==t&&!(8192&t[Tr])&&(t[Tr]|=8192,We(t));)t=us(t)}function is(e,t){if(!(256&~e[Tr]))throw new tt(911,!1);null===e[Ie]&&(e[Ie]=[]),e[Ie].push(t)}function us(e){const t=e[Oi];return wi(t)?t[Oi]:t}const Wr={lFrame:ir(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Uu=!1;function hh(){return Wr.bindingsEnabled}function _c(){return null!==Wr.skipHydrationRootTNode}function Cn(){return Wr.lFrame.lView}function pi(){return Wr.lFrame.tView}function Ic(e){return Wr.lFrame.contextLView=e,e[Ki]}function hu(e){return Wr.lFrame.contextLView=null,e}function Si(){let e=Nl();for(;null!==e&&64===e.type;)e=e.parent;return e}function Nl(){return Wr.lFrame.currentTNode}function Qs(e,t){const r=Wr.lFrame;r.currentTNode=e,r.isParent=t}function Oc(){return Wr.lFrame.isParent}function fa(){Wr.lFrame.isParent=!1}function pa(){return Uu}function ql(e){const t=Uu;return Uu=e,t}function Zs(){const e=Wr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function O(){return Wr.lFrame.bindingIndex++}function P(e){const t=Wr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function Ce(e,t){const r=Wr.lFrame;r.bindingIndex=r.bindingRootIndex=e,pt(t)}function pt(e){Wr.lFrame.currentDirectiveIndex=e}function It(e){const t=Wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function zt(){return Wr.lFrame.currentQueryIndex}function un(e){Wr.lFrame.currentQueryIndex=e}function kn(e){const t=e[$n];return 2===t.type?t.declTNode:1===t.type?e[Qi]:null}function qt(e,t,r){if(r&bi.SkipSelf){let p=t,g=e;for(;!(p=p.parent,null!==p||r&bi.Host||(p=kn(g),null===p||(g=g[Uo],10&p.type))););if(null===p)return!1;t=p,e=g}const l=Wr.lFrame=Xn();return l.currentTNode=t,l.lView=e,!0}function Yn(e){const t=Xn(),r=e[$n];Wr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Xn(){const e=Wr.lFrame,t=null===e?null:e.child;return null===t?ir(e):t}function ir(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 Rn(){const e=Wr.lFrame;return Wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Kn=Rn;function Qn(){const e=Rn();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 Hn(){return Wr.lFrame.selectedIndex}function Or(e){Wr.lFrame.selectedIndex=e}function sr(){const e=Wr.lFrame;return G(e.tView,e.selectedIndex)}function Dr(){Wr.lFrame.currentNamespace=lh}function Br(){!function ro(){Wr.lFrame.currentNamespace=null}()}let Xi=!0;function bo(){return Xi}function To(e){Xi=e}function vr(e,t){for(let r=t.directiveStart,l=t.directiveEnd;r=l)break}else t[B]<0&&(e[Vs]+=65536),(I>14>16&&(3&e[Tr])===t&&(e[Tr]+=16384,gs(I,g)):gs(I,g)}const Ps=-1;class el{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,r,l){this.factory=t,this.canSeeViewProviders=r,this.injectImpl=l}}function Js(e,t,r){let l=0;for(;lt){x=g-1;break}}}for(;g>16}(e),l=t;for(;r>0;)l=l[Uo],r--;return l}let _h=!0;function Ll(e){const t=_h;return _h=e,t}const yd=255,Wu=5;let rm=0;const Pl={};function vh(e,t){const r=bd(e,t);if(-1!==r)return r;const l=t[$n];l.firstCreatePass&&(e.injectorIndex=t.length,Cf(l.data,e),Cf(t,null),Cf(l.blueprint,null));const p=Nc(e,t),g=e.injectorIndex;if(gh(p)){const x=Vu(p),I=Hu(p,t),B=I[$n].data;for(let ie=0;ie<8;ie++)t[g+ie]=I[x+ie]|B[x+ie]}return t[g+8]=p,g}function Cf(e,t){e.push(0,0,0,0,0,0,0,0,t)}function bd(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,l=null,p=t;for(;null!==p;){if(l=Ku(p),null===l)return Ps;if(r++,p=p[Uo],-1!==l.injectorIndex)return l.injectorIndex|r<<16}return Ps}function Lc(e,t,r){!function im(e,t,r){let l;"string"==typeof r?l=r.charCodeAt(0)||0:r.hasOwnProperty(ni)&&(l=r[ni]),null==l&&(l=r[ni]=rm++);const p=l&yd;t.data[e+(p>>Wu)]|=1<=0?t&yd:Sf:t}(r);if("function"==typeof g){if(!qt(t,e,l))return l&bi.Host?zu(p,0,l):Df(t,r,l,p);try{let x;if(x=g(l),null!=x||l&bi.Optional)return x;Li()}finally{Kn()}}else if("number"==typeof g){let x=null,I=bd(e,t),B=Ps,ie=l&bi.Host?t[vo][Qi]:null;for((-1===I||l&bi.SkipSelf)&&(B=-1===I?Nc(e,t):t[I+8],B!==Ps&&wh(l,!1)?(x=t[$n],I=Vu(B),t=Hu(B,t)):I=-1);-1!==I;){const Se=t[$n];if(Ed(g,I,Se.data)){const Ve=bh(I,t,r,x,l,ie);if(Ve!==Pl)return Ve}B=t[I+8],B!==Ps&&wh(l,t[$n].data[I+8]===ie)&&Ed(g,I,t)?(x=Se,I=Vu(B),t=Hu(B,t)):I=-1}}return p}function bh(e,t,r,l,p,g){const x=t[$n],I=x.data[e+8],Se=fu(I,x,r,null==l?Lo(I)&&_h:l!=x&&!!(3&I.type),p&bi.Host&&g===I);return null!==Se?Fl(t,x,Se,I):Pl}function fu(e,t,r,l,p){const g=e.providerIndexes,x=t.data,I=1048575&g,B=e.directiveStart,Se=g>>20,Nt=p?I+Se:e.directiveEnd;for(let Ut=l?I:I+Se;Ut=B&&tn.type===r)return Ut}if(p){const Ut=x[B];if(Ut&&Yo(Ut)&&Ut.type===r)return B}return null}function Fl(e,t,r,l){let p=e[r];const g=t.data;if(function Dl(e){return e instanceof el}(p)){const x=p;x.resolving&&function es(e,t){throw t&&t.join(" > "),new tt(-200,e)}(function Qr(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Rr(e)}(g[r]));const I=Ll(x.canSeeViewProviders);x.resolving=!0;const ie=x.injectImpl?Oo(x.injectImpl):null;qt(e,l,bi.Default);try{p=e[r]=x.factory(void 0,g,e,l),t.firstCreatePass&&r>=l.directiveStart&&function ma(e,t,r){const{ngOnChanges:l,ngOnInit:p,ngDoCheck:g}=t.type.prototype;if(l){const x=Ha(t);(r.preOrderHooks??=[]).push(e,x),(r.preOrderCheckHooks??=[]).push(e,x)}p&&(r.preOrderHooks??=[]).push(0-e,p),g&&((r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g))}(r,g[r],t)}finally{null!==ie&&Oo(ie),Ll(I),x.resolving=!1,Kn()}}return p}function Ed(e,t,r){return!!(r[t+(e>>Wu)]&1<{const t=e.prototype.constructor,r=t[gi]||xd(t),l=Object.prototype;let p=Object.getPrototypeOf(e.prototype).constructor;for(;p&&p!==l;){const g=p[gi]||xd(p);if(g&&g!==r)return g;p=Object.getPrototypeOf(p)}return g=>new g})}function xd(e){return je(e)?()=>{const t=xd(Ge(e));return t&&t()}:So(e)}function Ku(e){const t=e[$n],r=t.type;return 2===r?t.declTNode:1===r?e[Qi]:null}function Gu(e){return function wd(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const l=r.length;let p=0;for(;p_o(qr)});static __NG_ELEMENT_ID__=-1}class lm{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Gu(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}new dt("").__NG_ELEMENT_ID__=e=>{const t=Si();if(null===t)throw new tt(204,!1);if(2&t.type)return t.value;if(e&bi.Optional)return null;throw new tt(204,!1)};const Sh=!1;let ws=(()=>class e{static __NG_ELEMENT_ID__=Md;static __NG_ENV_ID__=r=>r})();class Fc extends ws{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return is(this._lView,t),()=>function Oa(e,t){if(null===e[Ie])return;const r=e[Ie].indexOf(t);-1!==r&&e[Ie].splice(r,1)}(this._lView,t)}}function Md(){return new Fc(Cn())}class rc{}const gu=new dt("",{providedIn:"root",factory:()=>!1}),kd=new dt(""),ic=new dt("");let Ec=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Zt.t(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}has(r){return this.pendingTasks.has(r)}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();const oc=class Mh extends rt.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Ol()&&(this.destroyRef=ur(ws,{optional:!0})??void 0,this.pendingTasks=ur(Ec,{optional:!0})??void 0)}emit(t){const r=T(null);try{super.next(t)}finally{T(r)}}subscribe(t,r,l){let p=t,g=r||(()=>null),x=l;if(t&&"object"==typeof t){const B=t;p=B.next?.bind(B),g=B.error?.bind(B),x=B.complete?.bind(B)}this.__isAsync&&(g=this.wrapInTimeout(g),p&&(p=this.wrapInTimeout(p)),x&&(x=this.wrapInTimeout(x)));const I=super.subscribe({next:p,error:g,complete:x});return t instanceof Ht.yU&&t.add(I),I}wrapInTimeout(t){return r=>{const l=this.pendingTasks?.add();setTimeout(()=>{t(r),void 0!==l&&this.pendingTasks?.remove(l)})}}};function _u(...e){}function Od(e){let t,r;function l(){e=_u;try{void 0!==r&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(r),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),l()}),"function"==typeof requestAnimationFrame&&(r=requestAnimationFrame(()=>{e(),l()})),()=>l()}function cm(e){return queueMicrotask(()=>e()),()=>{e=_u}}const xc="isAngularZone",Qu=xc+"_ID";let kh=0;class os{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new oc(!1);onMicrotaskEmpty=new oc(!1);onStable=new oc(!1);onError=new oc(!1);constructor(t){const{enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:l=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:g=Sh}=t;if(typeof Zone>"u")throw new tt(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!p&&l,x.shouldCoalesceRunChangeDetection=p,x.callbackScheduled=!1,x.scheduleInRootZone=g,function Rf(e){const t=()=>{!function um(e){function t(){Od(()=>{e.callbackScheduled=!1,Oh(e),e.isCheckStableRunning=!0,Ih(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Oh(e))}(e)},r=kh++;e._inner=e._inner.fork({name:"angular",properties:{[xc]:!0,[Qu]:r,[Qu+r]:!0},onInvokeTask:(l,p,g,x,I,B)=>{if(function dm(e){return Lf(e,"__ignore_ng_zone__")}(B))return l.invokeTask(g,x,I,B);try{return Nf(e),l.invokeTask(g,x,I,B)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||e.shouldCoalesceRunChangeDetection)&&t(),vu(e)}},onInvoke:(l,p,g,x,I,B,ie)=>{try{return Nf(e),l.invoke(g,x,I,B,ie)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function Bg(e){return Lf(e,"__scheduler_tick__")}(B)&&t(),vu(e)}},onHasTask:(l,p,g,x)=>{l.hasTask(g,x),p===g&&("microTask"==x.change?(e._hasPendingMicrotasks=x.microTask,Oh(e),Ih(e)):"macroTask"==x.change&&(e.hasPendingMacrotasks=x.macroTask))},onHandleError:(l,p,g,x)=>(l.handleError(g,x),e.runOutsideAngular(()=>e.onError.emit(x)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(xc)}static assertInAngularZone(){if(!os.isInAngularZone())throw new tt(909,!1)}static assertNotInAngularZone(){if(os.isInAngularZone())throw new tt(909,!1)}run(t,r,l){return this._inner.run(t,r,l)}runTask(t,r,l,p){const g=this._inner,x=g.scheduleEventTask("NgZoneEvent: "+p,t,Of,_u,_u);try{return g.runTask(x,r,l)}finally{g.cancelTask(x)}}runGuarded(t,r,l){return this._inner.runGuarded(t,r,l)}runOutsideAngular(t){return this._outer.run(t)}}const Of={};function Ih(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 Oh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Nf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function vu(e){e._nesting--,Ih(e)}class Rh{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new oc;onMicrotaskEmpty=new oc;onStable=new oc;onError=new oc;run(t,r,l){return t.apply(r,l)}runGuarded(t,r,l){return t.apply(r,l)}runOutsideAngular(t){return t()}runTask(t,r,l,p){return t.apply(r,l)}}function Lf(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Cc{_console=console;handleError(t){this._console.error("ERROR",t)}}const Zu=new dt("",{providedIn:"root",factory:()=>{const e=ur(os),t=ur(Cc);return r=>e.runOutsideAngular(()=>t.handleError(r))}});function Pf(e,t){return z(e,t)}const jg=(Pf.required=function bu(e){return z(At,e)},Pf);function wu(){return Dc(Si(),Cn())}function Dc(e,t){return new Os(rs(e,t))}let Os=(()=>class e{nativeElement;constructor(r){this.nativeElement=r}static __NG_ELEMENT_ID__=wu})();function Nh(e){return e instanceof Os?e.nativeElement:e}function Rd(){return this._results[Symbol.iterator]()}class Ff{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new rt.B}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const l=function lo(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Bo(e,t,r){if(e.length!==t.length)return!1;for(let l=0;lYh}),Yh="ng",od=new dt(""),b=new dt("",{providedIn:"platform",factory:()=>"unknown"}),A=new dt(""),j=new dt("",{providedIn:"root",factory:()=>tl().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),to=new dt("",{providedIn:"root",factory:()=>!1}),br=new Set;function oi(e){br.has(e)||(br.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Wi=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Wi||{});let Bs=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();const Na=[Wi.EarlyRead,Wi.Write,Wi.MixedReadWrite,Wi.Read];let nl=(()=>{class e{ngZone=ur(os);scheduler=ur(rc);errorHandler=ur(Cc,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;execute(){this.executing=!0;for(const r of Na)for(const l of this.sequences)if(!l.erroredOrDestroyed&&l.hooks[r])try{l.pipelinedValue=this.ngZone.runOutsideAngular(()=>l.hooks[r](l.pipelinedValue))}catch(p){l.erroredOrDestroyed=!0,this.errorHandler?.handleError(p)}this.executing=!1;for(const r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(const r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(r){this.executing?this.deferredRegistrations.add(r):(this.sequences.add(r),this.scheduler.notify(7))}unregister(r){this.executing&&this.sequences.has(r)?(r.erroredOrDestroyed=!0,r.pipelinedValue=void 0,r.once=!0):(this.sequences.delete(r),this.deferredRegistrations.delete(r))}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();class gl{impl;hooks;once;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,r,l,p){this.impl=t,this.hooks=r,this.once=l,this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}}function ya(e,t){!t?.injector&&Sa();const r=t?.injector??ur(Qo);return typeof ngServerMode<"u"&&ngServerMode?Ud:(oi("NgAfterRender"),Vc(e,r,t,!1))}function Ga(e,t){!t?.injector&&Sa();const r=t?.injector??ur(Qo);return typeof ngServerMode<"u"&&ngServerMode?Ud:(oi("NgAfterNextRender"),Vc(e,r,t,!0))}function Vc(e,t,r,l){const p=t.get(Bs);p.impl??=t.get(nl);const g=r?.phase??Wi.MixedReadWrite,x=!0!==r?.manualCleanup?t.get(ws):null,I=new gl(p.impl,function ba(e,t){if(e instanceof Function){const r=[void 0,void 0,void 0,void 0];return r[t]=e,r}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,g),l,x);return p.impl.register(I),I}const Ud={destroy(){}};let e_=()=>null;function ip(e,t,r=!1){return e_(e,t,r)}var Sc=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Sc||{});let ad,ap;function Kd(e){return function Mm(){if(void 0===ad&&(ad=null,hn.trustedTypes))try{ad=hn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ad}()?.createHTML(e)||e}function km(){if(void 0===ap&&(ap=null,hn.trustedTypes))try{ap=hn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ap}function c_(e){return km()?.createHTML(e)||e}function d_(e){return km()?.createScriptURL(e)||e}class ld{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Mn})`}}class Ry extends ld{getTypeName(){return"HTML"}}class Ny extends ld{getTypeName(){return"Style"}}class lp extends ld{getTypeName(){return"Script"}}class Ly extends ld{getTypeName(){return"URL"}}class Py extends ld{getTypeName(){return"ResourceURL"}}function Gc(e){return e instanceof ld?e.changingThisBreaksApplicationSecurity:e}function Gd(e,t){const r=function Fy(e){return e instanceof ld&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Mn})`)}return r===t}function By(e){return new Ry(e)}function Uy(e){return new Ny(e)}function $y(e){return new lp(e)}function jy(e){return new Ly(e)}function Vy(e){return new Py(e)}class Im{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Kd(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.firstChild?.remove(),r)}catch{return null}}}class Hy{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Kd(t),r}}const Om=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cp(e){return(e=String(e)).match(Om)?e:"unsafe:"+e}function Xc(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function sf(...e){const t={};for(const r of e)for(const l in r)r.hasOwnProperty(l)&&(t[l]=!0);return t}const f_=Xc("area,br,col,hr,img,wbr"),p_=Xc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),m_=Xc("rp,rt"),Rm=sf(f_,sf(p_,Xc("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")),sf(m_,Xc("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")),sf(m_,p_)),up=Xc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),__=sf(up,Xc("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"),Xc("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")),Ky=Xc("script,style,template");class Gy{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let r=t.firstChild,l=!0,p=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?l=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,l&&r.firstChild)p.push(r),r=Yy(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let g=Xy(r);if(g){r=g;break}r=p.pop()}return this.buf.join("")}startElement(t){const r=y_(t).toLowerCase();if(!Rm.hasOwnProperty(r))return this.sanitizedSomething=!0,!Ky.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const l=t.attributes;for(let p=0;p"),!0}endElement(t){const r=y_(t).toLowerCase();Rm.hasOwnProperty(r)&&!f_.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Lm(t))}}function Xy(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Nm(t);return t}function Yy(e){const t=e.firstChild;if(t&&function v_(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Nm(t);return t}function y_(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Nm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Qy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zy=/([^\#-~ |!])/g;function Lm(e){return e.replace(/&/g,"&").replace(Qy,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Zy,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let dp;function Pm(e,t){let r=null;try{dp=dp||function h_(e){const t=new Hy(e);return function Wy(){try{return!!(new window.DOMParser).parseFromString(Kd(""),"text/html")}catch{return!1}}()?new Im(t):t}(e);let l=t?String(t):"";r=dp.getInertBodyElement(l);let p=5,g=l;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,l=g,g=r.innerHTML,r=dp.getInertBodyElement(l)}while(l!==g);return Kd((new Gy).sanitizeChildren(Fm(r)||r))}finally{if(r){const l=Fm(r)||r;for(;l.firstChild;)l.firstChild.remove()}}}function Fm(e){return"content"in e&&function qy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var cd=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}(cd||{});function b_(e){const t=ud();return t?c_(t.sanitize(cd.HTML,e)||""):Gd(e,"HTML")?c_(Gc(e)):Pm(tl(),Rr(e))}function Xd(e){const t=ud();return t?t.sanitize(cd.URL,e)||"":Gd(e,"URL")?Gc(e):cp(Rr(e))}function Bm(e){const t=ud();if(t)return d_(t.sanitize(cd.RESOURCE_URL,e)||"");if(Gd(e,"ResourceURL"))return d_(Gc(e));throw new tt(904,!1)}function w_(e,t,r){return function jm(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bm:Xd}(t,r)(e)}function ud(){const e=Cn();return e&&e[co].sanitizer}const x_=/^>|^->||--!>|)/g,C_="\u200b$1\u200b";function Al(e){return e instanceof Function?e():e}var Mu=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Mu||{}),mp=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(mp||{});let Wm;function zm(e,t){return Wm(e,t)}function Zd(e,t,r,l,p){if(null!=l){let g,x=!1;wi(l)?g=l:ii(l)&&(x=!0,l=l[oo]);const I=qi(l);0===e&&null!==r?null==p?K_(t,r,I):dd(t,r,I,p||null,!0):1===e&&null!==r?dd(t,r,I,p||null,!0):2===e?function cf(e,t,r){e.removeChild(null,t,r)}(t,I,x):3===e&&t.destroyNode(I),null!=g&&function ev(e,t,r,l,p){const g=r[ci];g!==qi(r)&&Zd(t,e,l,g,p);for(let I=Nr;It.replace(Yd,C_))}(t))}function gp(e,t,r){return e.createElement(t,r)}function V_(e,t){t[co].changeDetectionScheduler?.notify(10),Ep(e,t,t[ri],2,null,null)}function H_(e,t){const r=e[Di],l=t[Oi];(ii(l)||t[vo]!==l[Oi][vo])&&(e[Tr]|=li.HasTransplantedViews),null===r?e[Di]=[t]:r.push(t)}function _p(e,t){const r=e[Di],l=r.indexOf(t);r.splice(l,1)}function af(e,t){if(e.length<=Nr)return;const r=Nr+t,l=e[r];if(l){const p=l[Ci];null!==p&&p!==e&&_p(p,l),t>0&&(e[r-1][ys]=l[ys]);const g=Ms(e,Nr+t);!function j_(e,t){V_(e,t),t[oo]=null,t[Qi]=null}(l[$n],l);const x=g[uo];null!==x&&x.detachView(g[$n]),l[Oi]=null,l[ys]=null,l[Tr]&=-129}return l}function lf(e,t){if(!(256&t[Tr])){const r=t[ri];r.destroyNode&&Ep(e,t,r,3,null,null),function ob(e){let t=e[Xs];if(!t)return Xm(e[$n],e);for(;t;){let r=null;if(ii(t))r=t[Xs];else{const l=t[Nr];l&&(r=l)}if(!r){for(;t&&!t[ys]&&t!==e;)ii(t)&&Xm(t[$n],t),t=t[Oi];null===t&&(t=e),ii(t)&&Xm(t[$n],t),r=t&&t[ys]}t=r}}(t)}}function Xm(e,t){if(256&t[Tr])return;const r=T(null);try{t[Tr]&=-129,t[Tr]|=256,t[Et]&&we(t[Et]),function vp(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let l=0;l=0?l[I]():l[-I].unsubscribe(),x+=2}else r[x].call(l[r[x+1]]);null!==l&&(t[Bi]=null);const p=t[Ie];if(null!==p){t[Ie]=null;for(let x=0;x-1){const{encapsulation:g}=e.data[l.directiveStart+p];if(g===Sc.None||g===Sc.Emulated)return null}return rs(l,r)}}(e,t.parent,r)}function dd(e,t,r,l,p){e.insertBefore(t,r,l,p)}function K_(e,t,r){e.appendChild(t,r)}function G_(e,t,r,l,p){null!==l?dd(e,t,r,l,p):K_(e,t,r)}function Ym(e,t){return e.parentNode(t)}function Qm(e,t,r){return Y_(e,t,r)}let Zm,Y_=function X_(e,t,r){return 40&e.type?rs(e,r):null};function bp(e,t,r,l){const p=yp(e,l,t),g=t[ri],I=Qm(l.parent||t[Qi],l,t);if(null!=p)if(Array.isArray(r))for(let B=0;B-1){let g;for(;++pg?"":p[Se+1].toLowerCase(),2&l&&ie!==Ve){if(uc(l))return!1;x=!0}}}}else{if(!x&&!uc(l)&&!uc(B))return!1;if(x&&uc(B))continue;x=!1,l=B|1&l}}return uc(l)||x}function uc(e){return!(1&e)}function mb(e,t,r,l){if(null===t)return-1;let p=0;if(l||!r){let g=!1;for(;p-1)for(r++;r0?'="'+I+'"':"")+"]"}else 8&l?p+="."+x:4&l&&(p+=" "+x);else""!==p&&!uc(x)&&(t+=uf(g,p),p=""),l=x,g=g||!uc(l);r++}return""!==p&&(t+=uf(g,p)),t}const $i={};function xp(e=1){Eb(pi(),Cn(),Hn()+e,!1)}function Eb(e,t,r,l){if(!l)if(3&~t[Tr]){const g=e.preOrderHooks;null!==g&&Hi(t,g,0,r)}else{const g=e.preOrderCheckHooks;null!==g&&jr(t,g,r)}Or(r)}function qd(e,t=bi.Default){const r=Cn();return null===r?_o(e,t):yh(Si(),r,Ge(e),t)}function ov(){throw new Error("invalid")}function eg(e,t,r,l,p,g){const x=T(null);try{let I=null;p&Mu.SignalBased&&(I=t[l][C]),null!==I&&void 0!==I.transformFn&&(g=I.transformFn(g)),p&Mu.HasDecoratorInputTransform&&(g=e.inputTransforms[l].call(t,g)),null!==e.setInput?e.setInput(t,I,g,r,l):Hs(t,I,l,g)}finally{T(x)}}function df(e,t,r,l,p,g,x,I,B,ie,Se){const Ve=t.blueprint.slice();return Ve[oo]=p,Ve[Tr]=1228|l,(null!==ie||e&&2048&e[Tr])&&(Ve[Tr]|=2048),an(Ve),Ve[Oi]=Ve[Uo]=e,Ve[Ki]=r,Ve[co]=x||e&&e[co],Ve[ri]=I||e&&e[ri],Ve[no]=B||e&&e[no]||null,Ve[Qi]=g,Ve[Ui]=function Bf(){return xu++}(),Ve[so]=Se,Ve[U]=ie,Ve[vo]=2==t.type?e[vo]:Ve,Ve}function hd(e,t,r,l,p){let g=e.data[t];if(null===g)g=function tg(e,t,r,l,p){const g=Nl(),x=Oc(),B=e.data[t]=function nr(e,t,r,l,p,g){let x=t?t.injectorIndex:-1,I=0;return _c()&&(I|=128),{type:r,index:l,insertBeforeIndex:null,injectorIndex:x,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:I,providerIndexes:0,value:p,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,x?g:g&&g.parent,r,t,l,p);return null===e.firstChild&&(e.firstChild=B),null!==g&&(x?null==g.child&&null!==B.parent&&(g.child=B):null===g.next&&(g.next=B,B.prev=g)),B}(e,t,r,l,p),function $(){return Wr.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=r,g.value=l,g.attrs=p;const x=function Ra(){const e=Wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();g.injectorIndex=null===x?-1:x.injectorIndex}return Qs(g,!0),g}function hf(e,t,r,l){if(0===r)return-1;const p=t.length;for(let g=0;gGt&&Eb(e,t,Gt,!1),Wa(x?2:0,p),r(l,p)}finally{Or(g),Wa(x?3:1,p)}}function m(e,t,r){if(bs(t)){const l=T(null);try{const g=t.directiveEnd;for(let x=t.directiveStart;xnull;function mr(e,t,r,l,p){for(let g in t){if(!t.hasOwnProperty(g))continue;const x=t[g];if(void 0===x)continue;l??={};let I,B=Mu.None;Array.isArray(x)?(I=x[0],B=x[1]):I=x;let ie=g;if(null!==p){if(!p.hasOwnProperty(g))continue;ie=p[g]}0===e?ti(l,r,ie,I,B):ti(l,r,ie,I)}return l}function ti(e,t,r,l,p){let g;e.hasOwnProperty(r)?(g=e[r]).push(t,l):g=e[r]=[t,l],void 0!==p&&g.push(p)}function ho(e,t,r,l,p,g,x,I){const B=rs(t,r);let Se,ie=t.inputs;!I&&null!=ie&&(Se=ie[l])?(Cb(e,r,Se,l,p),Lo(t)&&function Ea(e,t){const r=K(t,e);16&r[Tr]||(r[Tr]|=64)}(r,t.index)):3&t.type&&(l=function ko(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(l),p=null!=x?x(p,t.value||"",l):p,g.setProperty(B,l,p))}function vl(e,t,r,l){if(hh()){const p=null===l?null:{"":-1},g=function ng(e,t){const r=e.directiveRegistry;let l=null,p=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(x)!=I&&x.push(I),x.push(r,l,g)}}(e,t,l,hf(e,r,p.hostVars,$i),p)}function xo(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ta(e,t,r,l,p,g){const x=rs(e,t);!function ol(e,t,r,l,p,g,x){if(null==g)e.removeAttribute(t,p,r);else{const I=null==x?Rr(g):x(g,l||"",p);e.setAttribute(t,p,I,r)}}(t[ri],x,g,e.value,r,l,p)}function Ou(e,t,r,l,p,g){const x=g[t];if(null!==x)for(let I=0;I0&&(r[p-1][ys]=t),l{Is(e.lView)},consumerOnSignalRead(){this.lView[Et]=this}},xD={...R,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=us(e.lView);for(;t&&!e1(t[$n]);)t=us(t);t&&hr(t)},consumerOnSignalRead(){this.lView[Et]=this}};function e1(e){return 2!==e.type}function t1(e){if(null===e[ve])return;let t=!0;for(;t;){let r=!1;for(const l of e[ve])l.dirty&&(r=!0,null===l.zone||Zone.current===l.zone?l.run():l.zone.run(()=>l.run()));t=r&&!!(8192&e[Tr])}}const CD=100;function uv(e,t=!0,r=0){const p=e[co].rendererFactory;p.begin?.();try{!function DD(e,t){const r=pa();try{ql(!0),Sb(e,t);let l=0;for(;Ir(e);){if(l===CD)throw new tt(103,!1);l++,Sb(e,1)}}finally{ql(r)}}(e,r)}catch(x){throw t&&lv(e,x),x}finally{p.end?.()}}function r1(e,t,r,l){const p=t[Tr];if(!(256&~p))return;Yn(t);let I=!0,B=null,ie=null;e1(e)?(ie=function vD(e){return e[Et]??function yD(e){const t=Jw.pop()??Object.create(wD);return t.lView=e,t}(e)}(t),B=Ee(ie)):null===function S(){return c}()?(I=!1,ie=function ED(e){const t=e[Et]??Object.create(xD);return t.lView=e,t}(t),B=Ee(ie)):t[Et]&&(we(t[Et]),t[Et]=null);try{an(t),function vd(e){return Wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&v(e,t,r,2,l);const Se=!(3&~p);if(Se){const Ut=e.preOrderCheckHooks;null!==Ut&&jr(t,Ut,null)}else{const Ut=e.preOrderHooks;null!==Ut&&Hi(t,Ut,0,null),Yi(t,0)}if(function AD(e){for(let t=lc(e);null!==t;t=Vh(t)){if(!(t[Tr]&li.HasTransplantedViews))continue;const r=t[Di];for(let l=0;l-1&&(af(t,l),Ms(r,l))}this._attachedToViewContainer=!1}lf(this._lView[$n],this._lView)}onDestroy(t){is(this._lView,t)}markForCheck(){og(this._cdRefInjectingView||this._lView,4)}markForRefresh(){hr(this._cdRefInjectingView||this._lView)}detach(){this._lView[Tr]&=-129}reattach(){Gi(this._lView),this._lView[Tr]|=128}detectChanges(){this._lView[Tr]|=1024,uv(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new tt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Va(this._lView),r=this._lView[Ci];null!==r&&!t&&_p(r,this._lView),V_(this._lView[$n],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new tt(902,!1);this._appRef=t;const r=Va(this._lView),l=this._lView[Ci];null!==l&&!r&&H_(l,this._lView),Gi(this._lView)}}let ag=(()=>class e{static __NG_ELEMENT_ID__=kD})();const TD=ag,MD=class extends TD{_declarationLView;_declarationTContainer;elementRef;constructor(t,r,l){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=l}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,l){const p=Ap(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:l});return new sg(p)}};function kD(){return dv(Si(),Cn())}function dv(e,t){return 4&e.type?new MD(t,e,Dc(e,t)):null}class UD{resolveComponentFactory(t){throw Error(`No component factory found for ${Mr(t)}.`)}}class fv{static NULL=new UD}class gf{}class c1{}class $D{}class u1{}class Ib{}let jD=(()=>class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>function VD(){const e=Cn(),r=K(Si().index,e);return(ii(r)?r:e)[ri]}()})(),HD=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:()=>null})}return e})();function Jd(e){return!!fi(e)}function mv(e,t,r){let l=r?e.styles:null,p=r?e.classes:null,g=0;if(null!==t)for(let x=0;x0&&tv(e,r,g.join(" "))}}(Nt,ra,tn,l),void 0!==r&&function JD(e,t,r){const l=e.projection=[];for(let p=0;pr()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Lb extends c1{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Nb(this.moduleType,t,[])}}class m1 extends gf{injector;componentFactoryResolver=new f1(this);instance=null;constructor(t){super();const r=new vs([...t.providers,{provide:gf,useValue:this},{provide:fv,useValue:this.componentFactoryResolver}],t.parent||_i(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Pb(e,t,r=null){return new m1({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let rA=(()=>{class e{_injector;cachedInjectors=new Map;constructor(r){this._injector=r}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const l=Ua(0,r.type),p=l.length>0?Pb([l],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,p)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=ai({token:e,providedIn:"environment",factory:()=>new e(_o(cs))})}return e})();function g1(e){return L(()=>{const t=b1(e),r={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===sc.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?p=>p.get(rA).getOrCreateStandaloneInjector(r):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Sc.Emulated,styles:e.styles||Gn,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&oi("NgStandalone"),w1(r);const l=e.dependencies;return r.directiveDefs=gv(l,!1),r.pipeDefs=gv(l,!0),r.id=function aA(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const p of r)t=Math.imul(31,t)+p.charCodeAt(0)|0;return t+=2147483648,"c"+t}(r),r})}function iA(e){return zr(e)||di(e)}function oA(e){return null!==e}function Fb(e){return L(()=>({type:e.type,bootstrap:e.bootstrap||Gn,declarations:e.declarations||Gn,imports:e.imports||Gn,exports:e.exports||Gn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function _1(e,t){if(null==e)return Pn;const r={};for(const l in e)if(e.hasOwnProperty(l)){const p=e[l];let g,x,I=Mu.None;Array.isArray(p)?(I=p[0],g=p[1],x=p[2]??g):(g=p,x=p),t?(r[g]=I!==Mu.None?[l,I]:l,t[g]=x):r[g]=l}return r}function v1(e){return L(()=>{const t=b1(e);return w1(t),t})}function y1(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function b1(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||Pn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||Gn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:_1(e.inputs,t),outputs:_1(e.outputs),debugInfo:null}}function w1(e){e.features?.forEach(t=>t(e))}function gv(e,t){if(!e)return null;const r=t?Fi:iA;return()=>("function"==typeof e?e():e).map(l=>r(l)).filter(oA)}let x1=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Bb(e){return"function"==typeof e&&void 0!==e[C]}const A1="ng";function NA(e,t){!function T1(e,t){if(typeof COMPILED>"u"||!COMPILED){const r=hn;r[A1]??={},r[A1][e]=t}}(e,t)}const M1=new dt(""),k1=new dt("");let $b,LA=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(r,l,p){this._ngZone=r,this.registry=l,$b||(function PA(e){$b=e}(p),p.addToWindow(l)),this._watchAngularEvents(),r.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:()=>{os.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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(l=>!l.updateCb||!l.updateCb(r)||(clearTimeout(l.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,l,p){let g=-1;l&&l>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(x=>x.timeoutId!==g),r()},l)),this._callbacks.push({doneCb:r,timeoutId:g,updateCb:p})}whenStable(r,l,p){if(p&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,l,p),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,l,p){return[]}static \u0275fac=function(l){return new(l||e)(_o(os),_o(I1),_o(k1))};static \u0275prov=ai({token:e,factory:e.\u0275fac})}return e})(),I1=(()=>{class e{_applications=new Map;registerApplication(r,l){this._applications.set(r,l)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,l=!0){return $b?.findTestabilityInTree(this,r,l)??null}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function jb(e){return!!e&&"function"==typeof e.then}function O1(e){return!!e&&"function"==typeof e.subscribe}const Vb=new dt("");let R1=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((r,l)=>{this.resolve=r,this.reject=l});appInits=ur(Vb,{optional:!0})??[];injector=ur(Qo);constructor(){}runInitializers(){if(this.initialized)return;const r=[];for(const p of this.appInits){const g=$s(this.injector,p);if(jb(g))r.push(g);else if(O1(g)){const x=new Promise((I,B)=>{g.subscribe({complete:I,error:B})});r.push(x)}}const l=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{l()}).catch(p=>{this.reject(p)}),0===r.length&&l(),this.initialized=!0}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hb=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new N1})}return e})();class N1{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}enqueue(t){const r=t.zone;this.queues.has(r)||this.queues.set(r,new Set);const l=this.queues.get(r);l.has(t)||(this.queuedEffectCount++,l.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}const mg=new dt("");let hc=(()=>{class e{_bootstrapListeners=[];_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=ur(Zu);afterRenderManager=ur(Bs);zonelessEnabled=ur(gu);rootEffectScheduler=ur(Hb);dirtyFlags=0;deferredDirtyFlags=0;externalTestViews=new Set;afterTick=new rt.B;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=ur(Ec).hasPendingTasks.pipe((0,en.T)(r=>!r));whenStable(){let r;return new Promise(l=>{r=this.isStable.subscribe({next:p=>{p&&l()}})}).finally(()=>{r.unsubscribe()})}_injector=ur(cs);get injector(){return this._injector}bootstrap(r,l){const p=r instanceof u1;if(!this._injector.get(R1).done)throw!p&&Ro(r),new tt(405,!1);let x;x=p?r:this._injector.get(fv).resolveComponentFactory(r),this.componentTypes.push(x.componentType);const I=function FA(e){return e.isBoundToModule}(x)?void 0:this._injector.get(gf),ie=x.create(Qo.NULL,[],l||x.selector,I),Se=ie.location.nativeElement,Ve=ie.injector.get(M1,null);return Ve?.registerApplication(Se),ie.onDestroy(()=>{this.detachView(ie.hostView),yv(this.components,ie),Ve?.unregisterApplication(Se)}),this._loadComponent(ie),ie}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new tt(101,!1);const r=T(null);try{this._runningTick=!0,this.synchronize()}catch(l){this.internalErrorHandler(l)}finally{this._runningTick=!1,T(r),this.afterTick.next()}}synchronize(){let r=null;this._injector.destroyed||(r=this._injector.get(Ib,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let l=0;for(;0!==this.dirtyFlags&&l++<10;)this.synchronizeOnce(r)}synchronizeOnce(r){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const l=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:p,notifyErrorHandler:g}of this.allViews)$A(p,g,l,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else r?.begin?.(),r?.end?.();8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:r})=>Ir(r))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(r){const l=r;this._views.push(l),l.attachToAppRef(this)}detachView(r){const l=r;yv(this._views,l),l.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const l=this._injector.get(mg,[]);[...this._bootstrapListeners,...l].forEach(p=>p(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>yv(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new tt(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function yv(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function $A(e,t,r,l){(r||Ir(e))&&uv(e,t,r&&!l?0:1)}let tE=()=>null;function Mp(e,t){return tE(e,t)}let Dv=(()=>class e{static __NG_ELEMENT_ID__=AS})();function AS(){return iE(Si(),Cn())}const SS=Dv,nE=class extends SS{_lContainer;_hostTNode;_hostLView;constructor(t,r,l){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=l}get element(){return Dc(this._hostTNode,this._hostLView)}get injector(){return new Fs(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nc(this._hostTNode,this._hostLView);if(gh(t)){const r=Hu(t,this._hostLView),l=Vu(t);return new Fs(r[$n].data[l+8],r)}return new Fs(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=rE(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Nr}createEmbeddedView(t,r,l){let p,g;"number"==typeof l?p=l:null!=l&&(p=l.index,g=l.injector);const x=Mp(this._lContainer,t.ssrId),I=t.createEmbeddedViewImpl(r||{},g,x);return this.insertImpl(I,p,mf(this._hostTNode,x)),I}createComponent(t,r,l,p,g){const x=t&&!function El(e){return"function"==typeof e}(t);let I;if(x)I=r;else{const tn=r||{};I=tn.index,l=tn.injector,p=tn.projectableNodes,g=tn.environmentInjector||tn.ngModuleRef}const B=x?t:new fg(zr(t)),ie=l||this.parentInjector;if(!g&&null==B.ngModule){const Bn=(x?ie:this.parentInjector).get(cs,null);Bn&&(g=Bn)}const Se=zr(B.componentType??{}),Ve=Mp(this._lContainer,Se?.id??null),Ut=B.create(ie,p,Ve?.firstChild??null,g);return this.insertImpl(Ut.hostView,I,mf(this._hostTNode,Ve)),Ut}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,l){const p=t._lView;if(function St(e){return wi(e[Oi])}(p)){const I=this.indexOf(t);if(-1!==I)this.detach(I);else{const B=p[Oi],ie=new nE(B,B[Qi],B[Oi]);ie.detach(ie.indexOf(t))}}const g=this._adjustIndex(r),x=this._lContainer;return Sp(x,p,g,l),t.attachToViewContainerRef(),Da(e0(x),g,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=rE(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),l=af(this._lContainer,r);l&&(Ms(e0(this._lContainer),r),lf(l[$n],l))}detach(t){const r=this._adjustIndex(t,-1),l=af(this._lContainer,r);return l&&null!=Ms(e0(this._lContainer),r)?new sg(l):null}_adjustIndex(t,r=0){return t??this.length+r}};function rE(e){return e[8]}function e0(e){return e[8]||(e[8]=[])}function iE(e,t){let r;const l=t[e.index];return wi(l)?r=l:(r=rg(l,t,null,e),t[e.index]=r,na(t,r)),oE(r,t,e,l),new nE(r,e,t)}let oE=function aE(e,t,r,l){if(e[ci])return;let p;p=8&r.type?qi(l):function TS(e,t){const r=e[ri],l=r.createComment(""),p=rs(t,e);return dd(r,Ym(r,p),l,function ab(e,t){return e.nextSibling(t)}(r,p),!1),l}(t,r),e[ci]=p},t0=()=>!1;class n0{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new n0(this.queryList)}setDirty(){this.queryList.setDirty()}}class r0{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const l=null!==t.contentQueries?t.contentQueries[0]:r.length,p=[];for(let g=0;gt.trim())}(t):t}}class o0{queries;constructor(t=[]){this.queries=t}elementStart(t,r){for(let l=0;l0)l.push(x[I/2]);else{const ie=g[I+1],Se=t[-B];for(let Ve=Nr;Ve(X(t),t.value);return r[C]=t,r}(e),l=r[C];return t?.equal&&(l.equal=t.equal),r.set=p=>Ze(l,p),r.update=p=>function it(e,t){pe()||Je(),Ze(e,t(e.value))}(l,p),r.asReadonly=u0.bind(r),r}function u0(){const e=this[C];if(void 0===e.readonlyFn){const t=()=>this();t[C]=e,e.readonlyFn=t}return e.readonlyFn}function mE(e){return Bb(e)&&"function"==typeof e.set}function d0(e,t,r){let l;const p=bt(()=>{l._dirtyCounter();const g=function BS(e,t){const r=e._lView,l=e._queryIndex;if(void 0===r||void 0===l||4&r[Tr])return t?void 0:Gn;const p=l0(r,l),g=pE(r,l);return p.reset(g,Nh),t?p.first:p._changesDetected||void 0===e._flatValue?e._flatValue=p.toArray():e._flatValue}(l,e);if(t&&void 0===g)throw new tt(-951,!1);return g});return l=p[C],l._dirtyCounter=kp(0),l._flatValue=void 0,p}function bE(e,t){return function gE(e){return d0(!0,!1)}()}const $S=(bE.required=function US(e,t){return function _E(e){return d0(!0,!0)}()},bE);function h0(e){let t=function SE(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const l=[e];for(;t;){let p;if(Yo(e))p=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new tt(903,!1);p=t.\u0275dir}if(p){if(r){l.push(p);const x=e;x.inputs=Sv(e.inputs),x.inputTransforms=Sv(e.inputTransforms),x.declaredInputs=Sv(e.declaredInputs),x.outputs=Sv(e.outputs);const I=p.hostBindings;I&&JS(e,I);const B=p.viewQuery,ie=p.contentQueries;if(B&&ZS(e,B),ie&&qS(e,ie),YS(e,p),Hr(e.outputs,p.outputs),Yo(p)&&p.data.animation){const Se=e.data;Se.animation=(Se.animation||[]).concat(p.data.animation)}}const g=p.features;if(g)for(let x=0;x=0;l--){const p=e[l];p.hostVars=t+=p.hostVars,p.hostAttrs=nc(p.hostAttrs,r=nc(r,p.hostAttrs))}}(l)}function YS(e,t){for(const r in t.inputs){if(!t.inputs.hasOwnProperty(r)||e.inputs.hasOwnProperty(r))continue;const l=t.inputs[r];if(void 0!==l&&(e.inputs[r]=l,e.declaredInputs[r]=t.declaredInputs[r],null!==t.inputTransforms)){const p=Array.isArray(l)?l[0]:l;if(!t.inputTransforms.hasOwnProperty(p))continue;e.inputTransforms??={},e.inputTransforms[p]=t.inputTransforms[p]}}}function Sv(e){return e===Pn?{}:e===Gn?[]:e}function ZS(e,t){const r=e.viewQuery;e.viewQuery=r?(l,p)=>{t(l,p),r(l,p)}:t}function qS(e,t){const r=e.contentQueries;e.contentQueries=r?(l,p,g)=>{t(l,p,g),r(l,p,g)}:t}function JS(e,t){const r=e.hostBindings;e.hostBindings=r?(l,p)=>{t(l,p),r(l,p)}:t}function TE(e){const t=r=>{const l=Array.isArray(e);null===r.hostDirectives?(r.findHostDirectiveDefs=ME,r.hostDirectives=l?e.map(f0):[e]):l?r.hostDirectives.unshift(...e.map(f0)):r.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function ME(e,t,r){if(null!==e.hostDirectives)for(const l of e.hostDirectives)if("function"==typeof l){const p=l();for(const g of p)kE(f0(g),t,r)}else kE(l,t,r)}function kE(e,t,r){const l=di(e.directive);(function rT(e,t){for(const r in t)t.hasOwnProperty(r)&&(e[t[r]]=e[r])})(l.declaredInputs,e.inputs),ME(l,t,r),r.set(l,e),t.push(l)}function f0(e){return"function"==typeof e?{directive:Ge(e),inputs:Pn,outputs:Pn}:{directive:Ge(e.directive),inputs:IE(e.inputs),outputs:IE(e.outputs)}}function IE(e){if(void 0===e||0===e.length)return Pn;const t={};for(let r=0;r>17&32767}function S0(e){return 2|e}function yf(e){return(131068&e)>>2}function T0(e,t){return-131069&e|t<<2}function M0(e){return 1|e}function JE(e,t,r,l){const p=e[r+1],g=null===t;let x=l?oh(p):yf(p),I=!1;for(;0!==x&&(!1===I||g);){const ie=e[x+1];nM(e[x],t)&&(I=!0,e[x+1]=l?M0(ie):S0(ie)),x=l?oh(ie):yf(ie)}I&&(e[r+1]=l?S0(p):M0(p))}function nM(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ot(e,t)>=0}const Pa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ex(e){return e.substring(Pa.key,Pa.keyEnd)}function rM(e){return e.substring(Pa.value,Pa.valueEnd)}function tx(e,t){const r=Pa.textEnd;return r===t?-1:(t=Pa.keyEnd=function sM(e,t,r){for(;t32;)t++;return t}(e,Pa.key=t,r),Kp(e,t,r))}function nx(e,t){const r=Pa.textEnd;let l=Pa.key=Kp(e,t,r);return r===l?-1:(l=Pa.keyEnd=function aM(e,t,r){let l;for(;t=65&&(-33&l)<=90||l>=48&&l<=57);)t++;return t}(e,l,r),l=ix(e,l,r),l=Pa.value=Kp(e,l,r),l=Pa.valueEnd=function lM(e,t,r){let l=-1,p=-1,g=-1,x=t,I=x;for(;x32&&(I=x),g=p,p=l,l=-33&B}return I}(e,l,r),ix(e,l,r))}function rx(e){Pa.key=0,Pa.keyEnd=0,Pa.value=0,Pa.valueEnd=0,Pa.textEnd=e.length}function Kp(e,t,r){for(;t=0;r=nx(t,r))cx(e,ex(t),rM(t))}function sx(e){Jc(mM,Nu,e,!0)}function Nu(e,t){for(let r=function iM(e){return rx(e),tx(e,Kp(e,0,Pa.textEnd))}(t);r>=0;r=tx(t,r))qe(e,ex(t),!0)}function qc(e,t,r,l){const p=Cn(),g=pi(),x=P(2);g.firstUpdatePass&&lx(g,e,x,l),t!==$i&&Ws(p,x,t)&&ux(g,g.data[Hn()],p,p[ri],e,p[x+1]=function _M(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Mr(Gc(e)))),e}(t,r),l,x)}function Jc(e,t,r,l){const p=pi(),g=P(2);p.firstUpdatePass&&lx(p,null,g,l);const x=Cn();if(r!==$i&&Ws(x,g,r)){const I=p.data[Hn()];if(hx(I,l)&&!ax(p,g)){let B=l?I.classesWithoutHost:I.stylesWithoutHost;null!==B&&(r=Vr(B,r||"")),I0(p,I,x,r,l)}else!function gM(e,t,r,l,p,g,x,I){p===$i&&(p=Gn);let B=0,ie=0,Se=0=e.expandoStartIndex}function lx(e,t,r,l){const p=e.data;if(null===p[r+1]){const g=p[Hn()],x=ax(e,r);hx(g,l)&&null===t&&!x&&(t=!1),t=function uM(e,t,r,l){const p=It(e);let g=l?t.residualClasses:t.residualStyles;if(null===p)0===(l?t.classBindings:t.styleBindings)&&(r=Cg(r=N0(null,e,t,r,l),t.attrs,l),g=null);else{const x=t.directiveStylingLast;if(-1===x||e[x]!==p)if(r=N0(p,e,t,r,l),null===g){let B=function dM(e,t,r){const l=r?t.classBindings:t.styleBindings;if(0!==yf(l))return e[oh(l)]}(e,t,l);void 0!==B&&Array.isArray(B)&&(B=N0(null,e,t,B[1],l),B=Cg(B,t.attrs,l),function hM(e,t,r,l){e[oh(r?t.classBindings:t.styleBindings)]=l}(e,t,l,B))}else g=function fM(e,t,r){let l;const p=t.directiveEnd;for(let g=1+t.directiveStylingLast;g0)&&(ie=!0)):Se=r,p)if(0!==B){const Nt=oh(e[I+1]);e[l+1]=Ov(Nt,I),0!==Nt&&(e[Nt+1]=T0(e[Nt+1],l)),e[I+1]=function qT(e,t){return 131071&e|t<<17}(e[I+1],l)}else e[l+1]=Ov(I,0),0!==I&&(e[I+1]=T0(e[I+1],l)),I=l;else e[l+1]=Ov(B,0),0===I?I=l:e[B+1]=T0(e[B+1],l),B=l;ie&&(e[l+1]=S0(e[l+1])),JE(e,Se,l,!0),JE(e,Se,l,!1),function tM(e,t,r,l,p){const g=p?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&ot(g,t)>=0&&(r[l+1]=M0(r[l+1]))}(t,Se,e,l,g),x=Ov(I,B),g?t.classBindings=x:t.styleBindings=x}(p,g,t,r,x,l)}}function N0(e,t,r,l,p){let g=null;const x=r.directiveEnd;let I=r.directiveStylingLast;for(-1===I?I=r.directiveStart:I++;I0;){const B=e[p],ie=Array.isArray(B),Se=ie?B[1]:B,Ve=null===Se;let Nt=r[p+1];Nt===$i&&(Nt=Ve?Gn:void 0);let Ut=Ve?J(Nt,l):Se===l?Nt:void 0;if(ie&&!Rv(Ut)&&(Ut=J(B,l)),Rv(Ut)&&(I=Ut,x))return I;const tn=e[p+1];p=x?oh(tn):yf(tn)}if(null!==t){let B=g?t.residualClasses:t.residualStyles;null!=B&&(I=J(B,l))}return I}function Rv(e){return void 0!==e}function hx(e,t){return!!(e.flags&(t?8:16))}function fx(e,t,r){Jc(qe,Nu,Bp(Cn(),e,t,r),!0)}function px(){return Cn()[vo][Ki]}class AM{destroy(t){}updateValue(t,r){}swap(t,r){const l=Math.min(t,r),p=Math.max(t,r),g=this.detach(p);if(p-l>1){const x=this.detach(l);this.attach(l,g),this.attach(p,x)}else this.attach(l,g)}move(t,r){this.attach(r,this.detach(t))}}function L0(e,t,r,l,p){return e===r&&Object.is(t,l)?1:Object.is(p(e,t),p(r,l))?-1:0}function P0(e,t,r,l){return!(void 0===t||!t.has(l)||(e.attach(r,t.get(l)),t.delete(l),0))}function mx(e,t,r,l,p){if(P0(e,t,l,r(l,p)))e.updateValue(l,p);else{const g=e.create(l,p);e.attach(l,g)}}function gx(e,t,r,l){const p=new Set;for(let g=t;g<=r;g++)p.add(l(g,e.at(g)));return p}class _x{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let l=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(l);)l=p.get(l);p.set(l,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,l]of this.kvMap)if(t(l,r),void 0!==this._vMap){const p=this._vMap;for(;p.has(l);)l=p.get(l),t(l,r)}}}function vx(e,t){oi("NgControlFlow");const r=Cn(),l=O(),p=r[l]!==$i?r[l]:-1,g=-1!==p?Nv(r,Gt+p):void 0;if(Ws(r,l,e)){const I=T(null);try{if(void 0!==g&&Db(g,0),-1!==e){const B=Gt+e,ie=Nv(r,B),Se=F0(r[$n],B),Ve=Mp(ie,Se.tView.ssrId);Sp(ie,Ap(r,Se,t,{dehydratedView:Ve}),0,mf(Se,Ve))}}finally{T(I)}}else if(void 0!==g){const I=qw(g,0);void 0!==I&&(I[Ki]=t)}}class TM{lContainer;$implicit;$index;constructor(t,r,l){this.lContainer=t,this.$implicit=r,this.$index=l}get $count(){return this.lContainer.length-Nr}}function yx(e){return e}class kM{hasEmptyBlock;trackByFn;liveCollection;constructor(t,r,l){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=l}}function bx(e,t,r,l,p,g,x,I,B,ie,Se,Ve,Nt){oi("NgControlFlow");const Ut=Cn(),tn=pi(),Bn=void 0!==B,Zn=Cn(),dr=I?x.bind(Zn[vo][Ki]):x,Un=new kM(Bn,dr);Zn[Gt+e]=Un,Eg(Ut,tn,e+1,t,r,l,p,gn(tn.consts,g)),Bn&&Eg(Ut,tn,e+2,B,ie,Se,Ve,gn(tn.consts,Nt))}class IM extends AM{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,r,l){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=l}get length(){return this.lContainer.length-Nr}at(t){return this.getLView(t)[Ki].$implicit}attach(t,r){const l=r[so];this.needsIndexUpdate||=t!==this.length,Sp(this.lContainer,r,t,mf(this.templateTNode,l))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function OM(e,t){return af(e,t)}(this.lContainer,t)}create(t,r){const l=Mp(this.lContainer,this.templateTNode.tView.ssrId),p=Ap(this.hostLView,this.templateTNode,new TM(this.lContainer,r,t),{dehydratedView:l});return this.operationsCounter?.recordCreate(),p}destroy(t){lf(t[$n],t),this.operationsCounter?.recordDestroy()}updateValue(t,r){this.getLView(t)[Ki].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(B)})}(B,e,g.trackByFn),B.updateIndexes(),g.hasEmptyBlock){const ie=O(),Se=0===B.length;if(Ws(l,ie,Se)){const Ve=r+2,Nt=Nv(l,Ve);if(Se){const Ut=F0(p,Ve),tn=Mp(Nt,Ut.tView.ssrId);Sp(Nt,Ap(l,Ut,void 0,{dehydratedView:tn}),0,mf(Ut,tn))}else Db(Nt,0)}}}finally{T(t)}}function Nv(e,t){return e[t]}function F0(e,t){return G(e,t)}function Lv(e,t,r,l){const p=Cn(),g=pi(),x=Gt+e,I=p[ri],B=g.firstCreatePass?function NM(e,t,r,l,p,g){const x=t.consts,B=hd(t,e,2,l,gn(x,p));return vl(t,r,B,gn(x,g)),null!==B.attrs&&mv(B,B.attrs,!1),null!==B.mergedAttrs&&mv(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(x,g,p,t,r,l):g.data[x],ie=Ex(g,p,B,I,t,e);p[x]=ie;const Se=ha(B);return Qs(B,!0),nv(I,ie,B),!function Op(e){return!(32&~e.flags)}(B)&&bo()&&bp(g,p,ie,B),0===function gd(){return Wr.lFrame.elementDepthCount}()&&va(ie,p),function uh(){Wr.lFrame.elementDepthCount++}(),Se&&(d(g,p,B),m(g,B,p)),null!==l&&_(p,B),Lv}function Pv(){let e=Si();Oc()?fa():(e=e.parent,Qs(e,!1));const t=e;(function Ql(e){return Wr.skipHydrationRootTNode===e})(t)&&function Ja(){Wr.skipHydrationRootTNode=null}(),function dh(){Wr.lFrame.elementDepthCount--}();const r=pi();return r.firstCreatePass&&(vr(r,e),bs(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function yc(e){return!!(8&e.flags)}(t)&&I0(r,t,Cn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function tc(e){return!!(16&e.flags)}(t)&&I0(r,t,Cn(),t.stylesWithoutHost,!1),Pv}function B0(e,t,r,l){return Lv(e,t,r,l),Pv(),B0}let Ex=(e,t,r,l,p,g)=>(To(!0),gp(l,p,function Ji(){return Wr.lFrame.currentNamespace}()));function Fv(e,t,r){const l=Cn(),p=pi(),g=e+Gt,x=p.firstCreatePass?function FM(e,t,r,l,p){const g=t.consts,x=gn(g,l),I=hd(t,e,8,"ng-container",x);return null!==x&&mv(I,x,!0),vl(t,r,I,gn(g,p)),null!==t.queries&&t.queries.elementStart(t,I),I}(g,p,l,t,r):p.data[g];Qs(x,!0);const I=xx(p,l,x,e);return l[g]=I,bo()&&bp(p,l,I,x),va(I,l),ha(x)&&(d(p,l,x),m(p,x,l)),null!=r&&_(l,x),Fv}function Bv(){let e=Si();const t=pi();return Oc()?fa():(e=e.parent,Qs(e,!1)),t.firstCreatePass&&(vr(t,e),bs(e)&&t.queries.elementEnd(e)),Bv}function U0(e,t,r){return Fv(e,t,r),Bv(),U0}let xx=(e,t,r,l)=>(To(!0),Gm(t[ri],""));function Cx(){return Cn()}function $0(e,t,r){const l=Cn();return Ws(l,O(),t)&&ho(pi(),sr(),l,e,t,l[ri],r,!0),$0}function j0(e,t,r){const l=Cn();if(Ws(l,O(),t)){const g=pi(),x=sr();ho(g,x,l,e,t,Zw(It(g.data),x,l),r,!0)}return j0}const bf=void 0;var jM=["en",[["a","p"],["AM","PM"],bf],[["AM","PM"],bf,bf],[["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"]],bf,[["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"]],bf,[["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}",bf,"{1} 'at' {0}",bf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $M(e){const r=Math.floor(Math.abs(e)),l=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===l?1:5}];let Gp={};function V0(e){const t=function VM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=Ax(t);if(r)return r;const l=t.split("-")[0];if(r=Ax(l),r)return r;if("en"===l)return jM;throw new tt(701,!1)}function Dx(e){return V0(e)[Xp.PluralCase]}function Ax(e){return e in Gp||(Gp[e]=hn.ng&&hn.ng.common&&hn.ng.common.locales&&hn.ng.common.locales[e]),Gp[e]}var Xp=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}(Xp||{});const Uv="en-US";let Sx=Uv,zx=(e,t,r)=>{};function z0(e,t,r,l){const p=Cn(),g=pi(),x=Si();return G0(g,p,p[ri],x,e,t,l),z0}function K0(e,t){const r=Si(),l=Cn(),p=pi();return G0(p,l,Zw(It(p.data),r,l),r,e,t),K0}function G0(e,t,r,l,p,g,x){const I=ha(l),ie=e.firstCreatePass&&Dp(e),Se=t[Ki],Ve=pf(t);let Nt=!0;if(3&l.type||x){const Bn=rs(l,t),Zn=x?x(Bn):Bn,dr=Ve.length,Un=x?ji=>x(qi(ji[l.index])):l.index;let xi=null;if(!x&&I&&(xi=function Ok(e,t,r,l){const p=e.cleanup;if(null!=p)for(let g=0;gB?I[B]:null}"string"==typeof x&&(g+=2)}return null}(e,t,p,l.index)),null!==xi)(xi.__ngLastListenerFn__||xi).__ngNextListenerFn__=g,xi.__ngLastListenerFn__=g,Nt=!1;else{g=Gx(l,t,Se,g),zx(Bn,p,g);const ji=r.listen(Zn,p,g);Ve.push(g,ji),ie&&ie.push(p,Un,dr,dr+1)}}else g=Gx(l,t,Se,g);const Ut=l.outputs;let tn;if(Nt&&null!==Ut&&(tn=Ut[p])){const Bn=tn.length;if(Bn)for(let Zn=0;Zn-1?K(e.index,t):t,5);let I=Kx(t,r,l,g),B=p.__ngNextListenerFn__;for(;B;)I=Kx(t,r,B,g)&&I,B=B.__ngNextListenerFn__;return I}}function Xx(e=1){return function yr(e){return(Wr.lFrame.contextLView=function ui(e,t){for(;e>0;)t=t[Uo],e--;return t}(e,Wr.lFrame.contextLView))[Ki]}(e)}function Rk(e,t){let r=null;const l=function gb(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let p=0;pr._dirtyCounter.update(l=>l+1))}(t,hE(e,r,l,p))}function uC(e=1){un(zt()+e)}function dC(e){return F(function _d(){return Wr.lFrame.contextLView}(),Gt+e)}function wC(e,t=""){const r=Cn(),l=pi(),p=e+Gt,g=l.firstCreatePass?hd(l,p,1,t,null):l.data[p],x=EC(l,r,g,t,e);r[p]=x,bo()&&bp(l,r,x,g),Qs(g,!1)}let EC=(e,t,r,l,p)=>(To(!0),function Km(e,t){return e.createText(t)}(t[ri],l));function Q0(e){return Wv("",e,""),Q0}function Wv(e,t,r){const l=Cn(),p=Bp(l,e,t,r);return p!==$i&&function pd(e,t,r){const l=gc(t,e);!function $_(e,t,r){e.setValue(t,r)}(e[ri],l,r)}(l,Hn(),p),Wv}function Z0(e,t,r){mE(t)&&(t=t());const l=Cn();return Ws(l,O(),t)&&ho(pi(),sr(),l,e,t,l[ri],r,!1),Z0}function IC(e,t){const r=mE(e);return r&&e.set(t),r}function q0(e,t){const r=Cn(),l=pi(),p=Si();return G0(l,r,r[ri],p,e,t),q0}function J0(e,t,r,l,p){if(e=Ge(e),Array.isArray(e))for(let g=0;g>20;if(ts(e)||!e.multi){const Ut=new el(ie,p,qd),tn=tw(B,t,p?Se:Se+Nt,Ve);-1===tn?(Lc(vh(I,x),g,B),ew(g,e,t.length),t.push(B),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),r.push(Ut),x.push(Ut)):(r[tn]=Ut,x[tn]=Ut)}else{const Ut=tw(B,t,Se+Nt,Ve),tn=tw(B,t,Se,Se+Nt),Zn=tn>=0&&r[tn];if(p&&!Zn||!p&&!(Ut>=0&&r[Ut])){Lc(vh(I,x),g,B);const dr=function qk(e,t,r,l,p){const g=new el(e,r,qd);return g.multi=[],g.index=t,g.componentProviders=0,NC(g,p,l&&!r),g}(p?Zk:Qk,r.length,p,l,ie);!p&&Zn&&(r[tn].providerFactory=dr),ew(g,e,t.length,0),t.push(B),I.directiveStart++,I.directiveEnd++,p&&(I.providerIndexes+=1048576),r.push(dr),x.push(dr)}else ew(g,e,Ut>-1?Ut:tn,NC(r[p?tn:Ut],ie,!p&&l));!p&&l&&Zn&&r[tn].componentProviders++}}}function ew(e,t,r,l){const p=ts(t),g=function kl(e){return!!e.useClass}(t);if(p||g){const B=(g?Ge(t.useClass):t).prototype.ngOnDestroy;if(B){const ie=e.destroyHooks||(e.destroyHooks=[]);if(!p&&t.multi){const Se=ie.indexOf(r);-1===Se?ie.push(r,[l,B]):ie[Se+1].push(l,B)}else ie.push(r,B)}}}function NC(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function tw(e,t,r,l){for(let p=r;p{r.providersResolver=(l,p)=>function Yk(e,t,r){const l=pi();if(l.firstCreatePass){const p=Yo(e);J0(r,l.data,l.blueprint,p,!0),J0(t,l.data,l.blueprint,p,!1)}}(l,p?p(e):e,t)}}function FC(e,t,r){const l=Zs()+e,p=Cn();return p[l]===$i?Ru(p,l,r?t.call(r):t()):wg(p,l)}function BC(e,t,r,l){return HC(Cn(),Zs(),e,t,r,l)}function UC(e,t,r,l,p){return WC(Cn(),Zs(),e,t,r,l,p)}function $C(e,t,r,l,p,g){return function zC(e,t,r,l,p,g,x,I){const B=t+r;return function Mv(e,t,r,l,p){const g=vf(e,t,r,l);return Ws(e,t+2,p)||g}(e,B,p,g,x)?Ru(e,B+3,I?l.call(I,p,g,x):l(p,g,x)):kg(e,B+3)}(Cn(),Zs(),e,t,r,l,p,g)}function jC(e,t,r,l,p,g,x){return function KC(e,t,r,l,p,g,x,I,B){const ie=t+r;return Tc(e,ie,p,g,x,I)?Ru(e,ie+4,B?l.call(B,p,g,x,I):l(p,g,x,I)):kg(e,ie+4)}(Cn(),Zs(),e,t,r,l,p,g,x)}function VC(e,t,r,l,p,g,x,I,B,ie,Se){const Ve=Zs()+e,Nt=Cn(),Ut=Tc(Nt,Ve,r,l,p,g);return Tc(Nt,Ve+4,x,I,B,ie)||Ut?Ru(Nt,Ve+8,Se?t.call(Se,r,l,p,g,x,I,B,ie):t(r,l,p,g,x,I,B,ie)):wg(Nt,Ve+8)}function kg(e,t){const r=e[t];return r===$i?void 0:r}function HC(e,t,r,l,p,g){const x=t+r;return Ws(e,x,p)?Ru(e,x+1,g?l.call(g,p):l(p)):kg(e,x+1)}function WC(e,t,r,l,p,g,x){const I=t+r;return vf(e,I,p,g)?Ru(e,I+2,x?l.call(x,p,g):l(p,g)):kg(e,I+2)}function XC(e,t){const r=pi();let l;const p=e+Gt;r.firstCreatePass?(l=function sI(e,t){if(t)for(let r=t.length-1;r>=0;r--){const l=t[r];if(e===l.name)return l}}(t,r.pipeRegistry),r.data[p]=l,l.onDestroy&&(r.destroyHooks??=[]).push(p,l.onDestroy)):l=r.data[p];const g=l.factory||(l.factory=So(l.type)),I=Oo(qd);try{const B=Ll(!1),ie=g();return Ll(B),function Y0(e,t,r,l){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=l}(r,Cn(),p,ie),ie}finally{Oo(I)}}function YC(e,t,r){const l=e+Gt,p=Cn(),g=F(p,l);return Ig(p,l)?HC(p,Zs(),t,g.transform,r,g):g.transform(r)}function QC(e,t,r,l){const p=e+Gt,g=Cn(),x=F(g,p);return Ig(g,p)?WC(g,Zs(),t,x.transform,r,l,x):x.transform(r,l)}function Ig(e,t){return e[$n].data[t].pure}function ZC(e,t){return dv(e,t)}class f2{full;major;minor;patch;constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}class PI{ngModuleFactory;componentFactories;constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let FI=(()=>{class e{compileModuleSync(r){return new Lb(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const l=this.compileModuleSync(r),g=Al(fi(r).declarations).reduce((x,I)=>{const B=zr(I);return B&&x.push(new fg(B)),x},[]);return new PI(l,g)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$I=(()=>{class e{zone=ur(os);changeDetectionScheduler=ur(rc);applicationRef=ur(hc);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function lw({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:r}){return e??=()=>new os({...cw(),scheduleInRootZone:r}),[{provide:os,useFactory:e},{provide:qn,multi:!0,useFactory:()=>{const l=ur($I,{optional:!0});return()=>l.initialize()}},{provide:qn,multi:!0,useFactory:()=>{const l=ur(VI);return()=>{l.initialize()}}},!0===t?{provide:kd,useValue:!0}:[],{provide:ic,useValue:r??Sh}]}function cw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}let VI=(()=>{class e{subscription=new Ht.yU;initialized=!1;zone=ur(os);pendingTasks=ur(Ec);initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{os.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{os.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Rg=(()=>{class e{appRef=ur(hc);taskService=ur(Ec);ngZone=ur(os);zonelessEnabled=ur(gu);disableScheduling=ur(kd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Ht.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Qu):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(ur(ic,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){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 Rh||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&5===r)return;let l=!1;switch(r){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,l=!0;break;case 13:this.appRef.dirtyFlags|=16,l=!0;break;case 12:l=!0;break;default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick(l))return;const p=this.useMicrotaskScheduler?cm:Od;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(r){return!(this.disableScheduling&&!r||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Qu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(l){throw this.taskService.remove(r),l}finally{this.cleanup()}this.useMicrotaskScheduler=!0,cm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}static \u0275fac=function(l){return new(l||e)};static \u0275prov=ai({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const dw=new dt("",{providedIn:"root",factory:()=>ur(dw,bi.Optional|bi.SkipSelf)||function HI(){return typeof $localize<"u"&&$localize.locale||Uv}()}),WI=new dt("",{providedIn:"root",factory:()=>"USD"}),Gv=new dt("");function Xv(e){return!e.moduleRef}let sh=null;function JI(){return!1}let C2=(()=>class e{static __NG_ELEMENT_ID__=eO})();function eO(e){return function tO(e,t,r){if(Lo(e)&&!r){const l=K(e.index,t);return new sg(l,l)}return 175&e.type?new sg(t[vo],t):null}(Si(),Cn(),!(16&~e))}class T2{constructor(){}supports(t){return Tv(t)}create(t){return new sO(t)}}const oO=(e,t)=>t;class sO{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||oO}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,l=this._removalsHead,p=0,g=null;for(;r||l;){const x=!l||r&&r.currentIndex{x=this._trackByFn(p,I),null!==r&&Object.is(r.trackById,x)?(l&&(r=this._verifyReinsertion(r,I,x,p)),Object.is(r.item,I)||this._addIdentityChange(r,I)):(r=this._mismatch(r,I,x,p),l=!0),r=r._next,p++}),this.length=p;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,l,p){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,g,p)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(l,p))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,g,p)):t=this._addAfter(new aO(r,l),g,p),t}_verifyReinsertion(t,r,l,p){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(l,null);return null!==g?t=this._reinsertAfter(g,t._prev,p):t.currentIndex!=p&&(t.currentIndex=p,this._addToMoves(t,p)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,l){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const p=t._prevRemoved,g=t._nextRemoved;return null===p?this._removalsHead=g:p._nextRemoved=g,null===g?this._removalsTail=p:g._prevRemoved=p,this._insertAfter(t,r,l),this._addToMoves(t,l),t}_moveAfter(t,r,l){return this._unlink(t),this._insertAfter(t,r,l),this._addToMoves(t,l),t}_addAfter(t,r,l){return this._insertAfter(t,r,l),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,l){const p=null===r?this._itHead:r._next;return t._next=p,t._prev=r,null===p?this._itTail=t:p._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new M2),this._linkedRecords.put(t),t.currentIndex=l,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,l=t._next;return null===r?this._itHead=l:r._next=l,null===l?this._itTail=r:l._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new M2),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class aO{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,r){this.item=t,this.trackById=r}}class lO{_head=null;_tail=null;add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let l;for(l=this._head;null!==l;l=l._nextDup)if((null===r||r<=l.currentIndex)&&Object.is(l.trackById,t))return l;return null}remove(t){const r=t._prevDup,l=t._nextDup;return null===r?this._head=l:r._nextDup=l,null===l?this._tail=r:l._prevDup=r,null===this._head}}class M2{map=new Map;put(t){const r=t.trackById;let l=this.map.get(r);l||(l=new lO,this.map.set(r,l)),l.add(t)}get(t,r){const p=this.map.get(t);return p?p.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function k2(e,t,r){const l=e.previousIndex;if(null===l)return l;let p=0;return r&&l{if(r&&r.key===p)this._maybeAddToChanges(r,l),this._appendAfter=r,r=r._next;else{const g=this._getOrCreateRecordForKey(p,l);r=this._insertBeforeOrAppend(r,g)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let l=r;null!==l;l=l._nextRemoved)l===this._mapHead&&(this._mapHead=null),this._records.delete(l.key),l._nextRemoved=l._next,l.previousValue=l.currentValue,l.currentValue=null,l._prev=null,l._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const l=t._prev;return r._next=t,r._prev=l,t._prev=r,l&&(l._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const p=this._records.get(t);this._maybeAddToChanges(p,r);const g=p._prev,x=p._next;return g&&(g._next=x),x&&(x._prev=g),p._next=null,p._prev=null,p}const l=new uO(t);return this._records.set(t,l),l.currentValue=r,this._addToAdditions(l),l}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(l=>r(t[l],l))}}class uO{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}}function O2(){return new _w([new T2])}let _w=(()=>{class e{factories;static \u0275prov=ai({token:e,providedIn:"root",factory:O2});constructor(r){this.factories=r}static create(r,l){if(null!=l){const p=l.factories.slice();r=r.concat(p)}return new e(r)}static extend(r){return{provide:e,useFactory:l=>e.create(r,l||O2()),deps:[[e,new Ts,new la]]}}find(r){const l=this.factories.find(p=>p.supports(r));if(null!=l)return l;throw new tt(901,!1)}}return e})();function R2(){return new vw([new I2])}let vw=(()=>{class e{static \u0275prov=ai({token:e,providedIn:"root",factory:R2});factories;constructor(r){this.factories=r}static create(r,l){if(l){const p=l.factories.slice();r=r.concat(p)}return new e(r)}static extend(r){return{provide:e,useFactory:l=>e.create(r,l||R2()),deps:[[e,new Ts,new la]]}}find(r){const l=this.factories.find(p=>p.supports(r));if(l)return l;throw new tt(901,!1)}}return e})();function CO(e){try{const{rootComponent:t,appProviders:r,platformProviders:l}=e,p=function qI(e=[]){if(sh)return sh;const t=function w2(e=[],t){return Qo.create({name:t,providers:[{provide:yl,useValue:"platform"},{provide:Gv,useValue:new Set([()=>sh=null])},...e]})}(e);return sh=t,function L1(){!function _t(e){wn=e}(()=>{throw new tt(600,!1)})}(),function E2(e){const t=e.get(od,null);$s(e,()=>{t?.forEach(r=>r())})}(t),t}(l),g=[lw({}),{provide:rc,useExisting:Rg},...r||[]];return function v2(e){const t=Xv(e)?e.r3Injector:e.moduleRef.injector,r=t.get(os);return r.run(()=>{Xv(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const l=t.get(Cc,null);let p;if(r.runOutsideAngular(()=>{p=r.onError.subscribe({next:g=>{l.handleError(g)}})}),Xv(e)){const g=()=>t.destroy(),x=e.platformInjector.get(Gv);x.add(g),t.onDestroy(()=>{p.unsubscribe(),x.delete(g)})}else{const g=()=>e.moduleRef.destroy(),x=e.platformInjector.get(Gv);x.add(g),e.moduleRef.onDestroy(()=>{yv(e.allPlatformModules,e.moduleRef),p.unsubscribe(),x.delete(g)})}return function UA(e,t,r){try{const l=r();return jb(l)?l.catch(p=>{throw t.runOutsideAngular(()=>e.handleError(p)),p}):l}catch(l){throw t.runOutsideAngular(()=>e.handleError(l)),l}}(l,r,()=>{const g=t.get(R1);return g.runInitializers(),g.donePromise.then(()=>{if(function KM(e){"string"==typeof e&&(Sx=e.toLowerCase().replace(/_/g,"-"))}(t.get(dw,Uv)||Uv),Xv(e)){const I=t.get(hc);return void 0!==e.rootComponent&&I.bootstrap(e.rootComponent),I}return function YI(e,t){const r=e.injector.get(hc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(l=>r.bootstrap(l));else{if(!e.instance.ngDoBootstrap)throw new tt(-403,!1);e.instance.ngDoBootstrap(r)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({r3Injector:new m1({providers:g,parent:p,debugName:"",runEnvironmentInitializers:!1}).injector,platformInjector:p,rootComponent:t})}catch(t){return Promise.reject(t)}}function GO(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function XO(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function xw(e,t){oi("NgSignals");const r=bt(e);return t?.equal&&(r[C].equal=t.equal),r}function Zp(e){const t=T(null);try{return e()}finally{T(t)}}let aD=(()=>class e{view;node;constructor(r,l){this.view=r,this.node=l}static __NG_ELEMENT_ID__=eR})();function eR(){return new aD(Cn(),Si())}let nR=(()=>{class e extends N1{pendingTasks=ur(Ec);taskId=null;schedule(r){super.schedule(r),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=ai({token:e,providedIn:"root",factory:()=>new e})}return e})();class rR{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;constructor(t,r,l,p,g,x){this.scheduler=t,this.effectFn=r,this.zone=l,this.injector=g,this.watcher=function ht(e,t,r){const l=Object.create(Tn);r&&(l.consumerAllowSignalWrites=!0),l.fn=e,l.schedule=t;const p=B=>{l.cleanupFn=B};return l.ref={notify:()=>de(l),run:()=>{if(null===l.fn)return;if(function M(){return y}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(l.dirty=!1,l.hasRun&&!Ae(l))return;l.hasRun=!0;const B=Ee(l);try{l.cleanupFn(),l.cleanupFn=Xt,l.fn(p)}finally{Le(l,B)}},cleanup:()=>l.cleanupFn(),destroy:()=>function x(B){(function g(B){return null===B.fn&&null===B.schedule})(B)||(we(B),B.cleanupFn(),B.fn=null,B.schedule=null,B.cleanupFn=Xt)}(l),[C]:l},l.ref}(I=>this.runEffect(I),()=>this.schedule(),x),this.unregisterOnDestroy=p?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){this.injector.get(Cc,null,{optional:!0})?.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}}let Cw=!1;class sR{[C];constructor(t){this[C]=t}destroy(){this[C].destroy()}}function Dw(e,t){if(Cw)return function oR(e,t){oi("NgSignals"),!t?.injector&&Sa();const r=t?.injector??ur(Qo),l=!0!==t?.manualCleanup?r.get(ws):null,p=new rR(r.get(nR),e,typeof Zone>"u"?null:Zone.current,l,r,t?.allowSignalWrites??!1),g=r.get(C2,null,{optional:!0});return g&&8&g._lView[Tr]?(g._lView[ne]??=[]).push(p.watcher.notify):p.watcher.notify(),p}(e,t);oi("NgSignals"),!t?.injector&&Sa();const r=t?.injector??ur(Qo);let p,l=!0!==t?.manualCleanup?r.get(ws):null;const g=r.get(aD,null,{optional:!0}),x=r.get(rc);return null===g||t?.forceRoot?p=function uR(e,t,r){const l=Object.create(aR);return l.fn=e,l.scheduler=t,l.notifier=r,l.zone=typeof Zone<"u"?Zone.current:null,l.scheduler.schedule(l),l.notifier.notify(13),l}(e,r.get(Hb),x):(p=function cR(e,t,r){const l=Object.create(lR);return l.view=e,l.zone=typeof Zone<"u"?Zone.current:null,l.notifier=t,l.fn=r,e[ve]??=new Set,e[ve].add(l),l.consumerMarkedDirty(l),l}(g.view,x,e),l instanceof Fc&&l._lView===g.view&&(l=null)),p.injector=r,null!==l&&(p.onDestroyFn=l.onDestroy(()=>p.destroy())),new sR(p)}const lD={...R,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,onDestroyFn:_u,run(){if(this.dirty=!1,this.hasRun&&!Ae(this))return;this.hasRun=!0;const e=l=>(this.cleanupFns??=[]).push(l),t=Ee(this),r=ql(!1);try{this.maybeCleanup(),this.fn(e)}finally{ql(r),Le(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}},aR={...lD,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){we(this),this.onDestroyFn(),this.maybeCleanup()}},lR={...lD,consumerMarkedDirty(){this.view[Tr]|=8192,Is(this.view),this.notifier.notify(14)},destroy(){we(this),this.onDestroyFn(),this.maybeCleanup(),this.view[ve]?.delete(this)}};function vR(e,t){const r=zr(e),l=t.elementInjector||_i();return new fg(r).create(l,t.projectableNodes,t.hostElement,t.environmentInjector)}function yR(e){const t=zr(e);if(!t)return null;const r=new fg(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},936:(o,s,n)=>{"use strict";n.d(s,{BC:()=>en,JD:()=>Ao,Q0:()=>sa,X1:()=>ua,YN:()=>Ua,cV:()=>Fn,cb:()=>Nn,cz:()=>De,hs:()=>Er,j4:()=>Ds,k0:()=>Ae,kq:()=>M,l_:()=>Rs,me:()=>_e,ok:()=>Ro,qT:()=>Li,tU:()=>jn,vO:()=>Wt,vS:()=>oa,xq:()=>Aa,ze:()=>Ho});var i=n(3107),a=n(4460),c=n(1787),y=n(2653),w=n(8447),C=n(7947);let T=(()=>{class ce{_renderer;_elementRef;onChange=Q=>{};onTouched=()=>{};constructor(Q,Fe){this._renderer=Q,this._elementRef=Fe}setProperty(Q,Fe){this._renderer.setProperty(this._elementRef.nativeElement,Q,Fe)}registerOnTouched(Q){this.onTouched=Q}registerOnChange(Q){this.onChange=Q}setDisabledState(Q){this.setProperty("disabled",Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(i.sFG),i.rXU(i.aKT))};static \u0275dir=i.FsC({type:ce})}return ce})(),S=(()=>{class ce extends T{static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,features:[i.Vt3]})}return ce})();const M=new i.nKC(""),X={provide:M,useExisting:(0,i.Rfq)(()=>_e),multi:!0},re=new i.nKC("");let _e=(()=>{class ce extends T{_compositionMode;_composing=!1;constructor(Q,Fe,$t){super(Q,Fe),this._compositionMode=$t,null==this._compositionMode&&(this._compositionMode=!function Z(){const ce=(0,a.QT)()?(0,a.QT)().getUserAgent():"";return/android (\d+)/.test(ce.toLowerCase())}())}writeValue(Q){this.setProperty("value",Q??"")}_handleInput(Q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Q)}_compositionStart(){this._composing=!0}_compositionEnd(Q){this._composing=!1,this._compositionMode&&this.onChange(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(re,8))};static \u0275dir=i.FsC({type:ce,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(Fe,$t){1&Fe&&i.bIt("input",function(Jr){return $t._handleInput(Jr.target.value)})("blur",function(){return $t.onTouched()})("compositionstart",function(){return $t._compositionStart()})("compositionend",function(Jr){return $t._compositionEnd(Jr.target.value)})},standalone:!1,features:[i.Jv_([X]),i.Vt3]})}return ce})();function pe(ce){return null==ce||("string"==typeof ce||Array.isArray(ce))&&0===ce.length}function de(ce){return null!=ce&&"number"==typeof ce.length}const De=new i.nKC(""),Ee=new i.nKC(""),Le=/^(?=.{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 Ae{static min(ue){return function we(ce){return ue=>{if(pe(ue.value)||pe(ce))return null;const Q=parseFloat(ue.value);return!isNaN(Q)&&Q{if(pe(ue.value)||pe(ce))return null;const Q=parseFloat(ue.value);return!isNaN(Q)&&Q>ce?{max:{max:ce,actual:ue.value}}:null}}(ue)}static required(ue){return ae(ue)}static requiredTrue(ue){return xe(ue)}static email(ue){return function Be(ce){return pe(ce.value)||Le.test(ce.value)?null:{email:!0}}(ue)}static minLength(ue){return function st(ce){return ue=>pe(ue.value)||!de(ue.value)?null:ue.value.length{if(pe(Fe.value))return null;const $t=Fe.value;return ue.test($t)?null:{pattern:{requiredPattern:Q,actualValue:$t}}}}(ue)}static nullValidator(ue){return null}static compose(ue){return _t(ue)}static composeAsync(ue){return Ue(ue)}}function ae(ce){return pe(ce.value)?{required:!0}:null}function xe(ce){return!0===ce.value?null:{required:!0}}function lt(ce){return ue=>de(ue.value)&&ue.value.length>ce?{maxlength:{requiredLength:ce,actualLength:ue.value.length}}:null}function at(ce){return null}function sn(ce){return null!=ce}function fn(ce){return(0,i.jNT)(ce)?(0,c.H)(ce):ce}function En(ce){let ue={};return ce.forEach(Q=>{ue=null!=Q?{...ue,...Q}:ue}),0===Object.keys(ue).length?null:ue}function Wn(ce,ue){return ue.map(Q=>Q(ce))}function Je(ce){return ce.map(ue=>function wn(ce){return!ce.validate}(ue)?ue:Q=>ue.validate(Q))}function _t(ce){if(!ce)return null;const ue=ce.filter(sn);return 0==ue.length?null:function(Q){return En(Wn(Q,ue))}}function ze(ce){return null!=ce?_t(Je(ce)):null}function Ue(ce){if(!ce)return null;const ue=ce.filter(sn);return 0==ue.length?null:function(Q){const Fe=Wn(Q,ue).map(fn);return(0,y.p)(Fe).pipe((0,C.T)(En))}}function Ft(ce){return null!=ce?Ue(Je(ce)):null}function Ke(ce,ue){return null===ce?[ue]:Array.isArray(ce)?[...ce,ue]:[ce,ue]}function Ze(ce){return ce._rawValidators}function it(ce){return ce._rawAsyncValidators}function Ot(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function Qt(ce,ue){return Array.isArray(ce)?ce.includes(ue):ce===ue}function Me(ce,ue){const Q=Ot(ue);return Ot(ce).forEach($t=>{Qt(Q,$t)||Q.push($t)}),Q}function ht(ce,ue){return Ot(ue).filter(Q=>!Qt(ce,Q))}class Xt{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(ue){this._rawValidators=ue||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(ue){this._rawAsyncValidators=ue||[],this._composedAsyncValidatorFn=Ft(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(ue){this._onDestroyCallbacks.push(ue)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ue=>ue()),this._onDestroyCallbacks=[]}reset(ue=void 0){this.control&&this.control.reset(ue)}hasError(ue,Q){return!!this.control&&this.control.hasError(ue,Q)}getError(ue,Q){return this.control?this.control.getError(ue,Q):null}}class Tn extends Xt{name;get formDirective(){return null}get path(){return null}}class Wt extends Xt{_parent=null;name=null;valueAccessor=null}class Zt{_cd;constructor(ue){this._cd=ue}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 en=(()=>{class ce extends Zt{constructor(Q){super(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Wt,2))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,$t){2&Fe&&i.AVh("ng-untouched",$t.isUntouched)("ng-touched",$t.isTouched)("ng-pristine",$t.isPristine)("ng-dirty",$t.isDirty)("ng-valid",$t.isValid)("ng-invalid",$t.isInvalid)("ng-pending",$t.isPending)},standalone:!1,features:[i.Vt3]})}return ce})(),Nn=(()=>{class ce extends Zt{constructor(Q){super(Q)}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,10))};static \u0275dir=i.FsC({type:ce,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,$t){2&Fe&&i.AVh("ng-untouched",$t.isUntouched)("ng-touched",$t.isTouched)("ng-pristine",$t.isPristine)("ng-dirty",$t.isDirty)("ng-valid",$t.isValid)("ng-invalid",$t.isInvalid)("ng-pending",$t.isPending)("ng-submitted",$t.isSubmitted)},standalone:!1,features:[i.Vt3]})}return ce})();const Ln="VALID",lr="INVALID",Dn="PENDING",Hr="DISABLED";class Mr{}class Vr extends Mr{value;source;constructor(ue,Q){super(),this.value=ue,this.source=Q}}class vt extends Mr{pristine;source;constructor(ue,Q){super(),this.pristine=ue,this.source=Q}}class Vt extends Mr{touched;source;constructor(ue,Q){super(),this.touched=ue,this.source=Q}}class Oe extends Mr{status;source;constructor(ue,Q){super(),this.status=ue,this.source=Q}}class Ge extends Mr{source;constructor(ue){super(),this.source=ue}}class je extends Mr{source;constructor(ue){super(),this.source=ue}}function Dt(ce){return(er(ce)?ce.validators:ce)||null}function Bt(ce,ue){return(er(ue)?ue.asyncValidators:ce)||null}function er(ce){return null!=ce&&!Array.isArray(ce)&&"object"==typeof ce}function xr(ce,ue,Q){const Fe=ce.controls;if(!(ue?Object.keys(Fe):Fe).length)throw new i.wOt(1e3,"");if(!Fe[Q])throw new i.wOt(1001,"")}function si(ce,ue,Q){ce._forEachChild((Fe,$t)=>{if(void 0===Q[$t])throw new i.wOt(1002,"")})}class hi{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(ue,Q){this._assignValidators(ue),this._assignAsyncValidators(Q)}get validator(){return this._composedValidatorFn}set validator(ue){this._rawValidators=this._composedValidatorFn=ue}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ue){this._rawAsyncValidators=this._composedAsyncValidatorFn=ue}get parent(){return this._parent}get status(){return(0,i.O8t)(this.statusReactive)}set status(ue){(0,i.O8t)(()=>this.statusReactive.set(ue))}_status=(0,i.EWP)(()=>this.statusReactive());statusReactive=(0,i.vPA)(void 0);get valid(){return this.status===Ln}get invalid(){return this.status===lr}get pending(){return this.status==Dn}get disabled(){return this.status===Hr}get enabled(){return this.status!==Hr}errors;get pristine(){return(0,i.O8t)(this.pristineReactive)}set pristine(ue){(0,i.O8t)(()=>this.pristineReactive.set(ue))}_pristine=(0,i.EWP)(()=>this.pristineReactive());pristineReactive=(0,i.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,i.O8t)(this.touchedReactive)}set touched(ue){(0,i.O8t)(()=>this.touchedReactive.set(ue))}_touched=(0,i.EWP)(()=>this.touchedReactive());touchedReactive=(0,i.vPA)(!1);get untouched(){return!this.touched}_events=new w.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ue){this._assignValidators(ue)}setAsyncValidators(ue){this._assignAsyncValidators(ue)}addValidators(ue){this.setValidators(Me(ue,this._rawValidators))}addAsyncValidators(ue){this.setAsyncValidators(Me(ue,this._rawAsyncValidators))}removeValidators(ue){this.setValidators(ht(ue,this._rawValidators))}removeAsyncValidators(ue){this.setAsyncValidators(ht(ue,this._rawAsyncValidators))}hasValidator(ue){return Qt(this._rawValidators,ue)}hasAsyncValidator(ue){return Qt(this._rawAsyncValidators,ue)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ue={}){const Q=!1===this.touched;this.touched=!0;const Fe=ue.sourceControl??this;this._parent&&!ue.onlySelf&&this._parent.markAsTouched({...ue,sourceControl:Fe}),Q&&!1!==ue.emitEvent&&this._events.next(new Vt(!0,Fe))}markAllAsTouched(ue={}){this.markAsTouched({onlySelf:!0,emitEvent:ue.emitEvent,sourceControl:this}),this._forEachChild(Q=>Q.markAllAsTouched(ue))}markAsUntouched(ue={}){const Q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Fe=ue.sourceControl??this;this._forEachChild($t=>{$t.markAsUntouched({onlySelf:!0,emitEvent:ue.emitEvent,sourceControl:Fe})}),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue,Fe),Q&&!1!==ue.emitEvent&&this._events.next(new Vt(!1,Fe))}markAsDirty(ue={}){const Q=!0===this.pristine;this.pristine=!1;const Fe=ue.sourceControl??this;this._parent&&!ue.onlySelf&&this._parent.markAsDirty({...ue,sourceControl:Fe}),Q&&!1!==ue.emitEvent&&this._events.next(new vt(!1,Fe))}markAsPristine(ue={}){const Q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Fe=ue.sourceControl??this;this._forEachChild($t=>{$t.markAsPristine({onlySelf:!0,emitEvent:ue.emitEvent})}),this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue,Fe),Q&&!1!==ue.emitEvent&&this._events.next(new vt(!0,Fe))}markAsPending(ue={}){this.status=Dn;const Q=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Oe(this.status,Q)),this.statusChanges.emit(this.status)),this._parent&&!ue.onlySelf&&this._parent.markAsPending({...ue,sourceControl:Q})}disable(ue={}){const Q=this._parentMarkedDirty(ue.onlySelf);this.status=Hr,this.errors=null,this._forEachChild($t=>{$t.disable({...ue,onlySelf:!0})}),this._updateValue();const Fe=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Vr(this.value,Fe)),this._events.next(new Oe(this.status,Fe)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ue,skipPristineCheck:Q},this),this._onDisabledChange.forEach($t=>$t(!0))}enable(ue={}){const Q=this._parentMarkedDirty(ue.onlySelf);this.status=Ln,this._forEachChild(Fe=>{Fe.enable({...ue,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent}),this._updateAncestors({...ue,skipPristineCheck:Q},this),this._onDisabledChange.forEach(Fe=>Fe(!1))}_updateAncestors(ue,Q){this._parent&&!ue.onlySelf&&(this._parent.updateValueAndValidity(ue),ue.skipPristineCheck||this._parent._updatePristine({},Q),this._parent._updateTouched({},Q))}setParent(ue){this._parent=ue}getRawValue(){return this.value}updateValueAndValidity(ue={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Fe=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ln||this.status===Dn)&&this._runAsyncValidator(Fe,ue.emitEvent)}const Q=ue.sourceControl??this;!1!==ue.emitEvent&&(this._events.next(new Vr(this.value,Q)),this._events.next(new Oe(this.status,Q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ue.onlySelf&&this._parent.updateValueAndValidity({...ue,sourceControl:Q})}_updateTreeValidity(ue={emitEvent:!0}){this._forEachChild(Q=>Q._updateTreeValidity(ue)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hr:Ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ue,Q){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Q};const Fe=fn(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe($t=>{this._hasOwnPendingAsyncValidator=null,this.setErrors($t,{emitEvent:Q,shouldHaveEmitted:ue})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const ue=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,ue}return!1}setErrors(ue,Q={}){this.errors=ue,this._updateControlsErrors(!1!==Q.emitEvent,this,Q.shouldHaveEmitted)}get(ue){let Q=ue;return null==Q||(Array.isArray(Q)||(Q=Q.split(".")),0===Q.length)?null:Q.reduce((Fe,$t)=>Fe&&Fe._find($t),this)}getError(ue,Q){const Fe=Q?this.get(Q):this;return Fe&&Fe.errors?Fe.errors[ue]:null}hasError(ue,Q){return!!this.getError(ue,Q)}get root(){let ue=this;for(;ue._parent;)ue=ue._parent;return ue}_updateControlsErrors(ue,Q,Fe){this.status=this._calculateStatus(),ue&&this.statusChanges.emit(this.status),(ue||Fe)&&this._events.next(new Oe(this.status,Q)),this._parent&&this._parent._updateControlsErrors(ue,Q,Fe)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?Hr:this.errors?lr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(lr)?lr:Ln}_anyControlsHaveStatus(ue){return this._anyControls(Q=>Q.status===ue)}_anyControlsDirty(){return this._anyControls(ue=>ue.dirty)}_anyControlsTouched(){return this._anyControls(ue=>ue.touched)}_updatePristine(ue,Q){const Fe=!this._anyControlsDirty(),$t=this.pristine!==Fe;this.pristine=Fe,this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue,Q),$t&&this._events.next(new vt(this.pristine,Q))}_updateTouched(ue={},Q){this.touched=this._anyControlsTouched(),this._events.next(new Vt(this.touched,Q)),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue,Q)}_onDisabledChange=[];_registerOnCollectionChange(ue){this._onCollectionChange=ue}_setUpdateStrategy(ue){er(ue)&&null!=ue.updateOn&&(this._updateOn=ue.updateOn)}_parentMarkedDirty(ue){return!ue&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ue){return null}_assignValidators(ue){this._rawValidators=Array.isArray(ue)?ue.slice():ue,this._composedValidatorFn=function ct(ce){return Array.isArray(ce)?ze(ce):ce||null}(this._rawValidators)}_assignAsyncValidators(ue){this._rawAsyncValidators=Array.isArray(ue)?ue.slice():ue,this._composedAsyncValidatorFn=function xn(ce){return Array.isArray(ce)?Ft(ce):ce||null}(this._rawAsyncValidators)}}class Zi extends hi{constructor(ue,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this.controls=ue,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(ue,Q){return this.controls[ue]?this.controls[ue]:(this.controls[ue]=Q,Q.setParent(this),Q._registerOnCollectionChange(this._onCollectionChange),Q)}addControl(ue,Q,Fe={}){this.registerControl(ue,Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}removeControl(ue,Q={}){this.controls[ue]&&this.controls[ue]._registerOnCollectionChange(()=>{}),delete this.controls[ue],this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}setControl(ue,Q,Fe={}){this.controls[ue]&&this.controls[ue]._registerOnCollectionChange(()=>{}),delete this.controls[ue],Q&&this.registerControl(ue,Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}contains(ue){return this.controls.hasOwnProperty(ue)&&this.controls[ue].enabled}setValue(ue,Q={}){si(this,0,ue),Object.keys(ue).forEach(Fe=>{xr(this,!0,Fe),this.controls[Fe].setValue(ue[Fe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){null!=ue&&(Object.keys(ue).forEach(Fe=>{const $t=this.controls[Fe];$t&&$t.patchValue(ue[Fe],{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ue={},Q={}){this._forEachChild((Fe,$t)=>{Fe.reset(ue?ue[$t]:null,{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this._reduceChildren({},(ue,Q,Fe)=>(ue[Fe]=Q.getRawValue(),ue))}_syncPendingControls(){let ue=this._reduceChildren(!1,(Q,Fe)=>!!Fe._syncPendingControls()||Q);return ue&&this.updateValueAndValidity({onlySelf:!0}),ue}_forEachChild(ue){Object.keys(this.controls).forEach(Q=>{const Fe=this.controls[Q];Fe&&ue(Fe,Q)})}_setUpControls(){this._forEachChild(ue=>{ue.setParent(this),ue._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(ue){for(const[Q,Fe]of Object.entries(this.controls))if(this.contains(Q)&&ue(Fe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Q,Fe,$t)=>((Fe.enabled||this.disabled)&&(Q[$t]=Fe.value),Q))}_reduceChildren(ue,Q){let Fe=ue;return this._forEachChild(($t,wr)=>{Fe=Q(Fe,$t,wr)}),Fe}_allControlsDisabled(){for(const ue of Object.keys(this.controls))if(this.controls[ue].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(ue){return this.controls.hasOwnProperty(ue)?this.controls[ue]:null}}class Rt extends Zi{}const vn=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function Co(ce,ue){return[...ue.path,ce]}function Ni(ce,ue,Q=fr){qo(ce,ue),ue.valueAccessor.writeValue(ce.value),(ce.disabled||"always"===Q)&&ue.valueAccessor.setDisabledState?.(ce.disabled),function Jo(ce,ue){ue.valueAccessor.registerOnChange(Q=>{ce._pendingValue=Q,ce._pendingChange=!0,ce._pendingDirty=!0,"change"===ce.updateOn&&ia(ce,ue)})}(ce,ue),function ao(ce,ue){const Q=(Fe,$t)=>{ue.valueAccessor.writeValue(Fe),$t&&ue.viewToModelUpdate(Fe)};ce.registerOnChange(Q),ue._registerOnDestroy(()=>{ce._unregisterOnChange(Q)})}(ce,ue),function Fo(ce,ue){ue.valueAccessor.registerOnTouched(()=>{ce._pendingTouched=!0,"blur"===ce.updateOn&&ce._pendingChange&&ia(ce,ue),"submit"!==ce.updateOn&&ce.markAsTouched()})}(ce,ue),function ai(ce,ue){if(ue.valueAccessor.setDisabledState){const Q=Fe=>{ue.valueAccessor.setDisabledState(Fe)};ce.registerOnDisabledChange(Q),ue._registerOnDestroy(()=>{ce._unregisterOnDisabledChange(Q)})}}(ce,ue)}function ds(ce,ue,Q=!0){const Fe=()=>{};ue.valueAccessor&&(ue.valueAccessor.registerOnChange(Fe),ue.valueAccessor.registerOnTouched(Fe)),fo(ce,ue),ce&&(ue._invokeOnDestroyCallbacks(),ce._registerOnCollectionChange(()=>{}))}function $o(ce,ue){ce.forEach(Q=>{Q.registerOnValidatorChange&&Q.registerOnValidatorChange(ue)})}function qo(ce,ue){const Q=Ze(ce);null!==ue.validator?ce.setValidators(Ke(Q,ue.validator)):"function"==typeof Q&&ce.setValidators([Q]);const Fe=it(ce);null!==ue.asyncValidator?ce.setAsyncValidators(Ke(Fe,ue.asyncValidator)):"function"==typeof Fe&&ce.setAsyncValidators([Fe]);const $t=()=>ce.updateValueAndValidity();$o(ue._rawValidators,$t),$o(ue._rawAsyncValidators,$t)}function fo(ce,ue){let Q=!1;if(null!==ce){if(null!==ue.validator){const $t=Ze(ce);if(Array.isArray($t)&&$t.length>0){const wr=$t.filter(Jr=>Jr!==ue.validator);wr.length!==$t.length&&(Q=!0,ce.setValidators(wr))}}if(null!==ue.asyncValidator){const $t=it(ce);if(Array.isArray($t)&&$t.length>0){const wr=$t.filter(Jr=>Jr!==ue.asyncValidator);wr.length!==$t.length&&(Q=!0,ce.setAsyncValidators(wr))}}}const Fe=()=>{};return $o(ue._rawValidators,Fe),$o(ue._rawAsyncValidators,Fe),Q}function ia(ce,ue){ce._pendingDirty&&ce.markAsDirty(),ce.setValue(ce._pendingValue,{emitModelToViewChange:!1}),ue.viewToModelUpdate(ce._pendingValue),ce._pendingChange=!1}function po(ce,ue){qo(ce,ue)}function Ye(ce,ue){if(!ce.hasOwnProperty("model"))return!1;const Q=ce.model;return!!Q.isFirstChange()||!Object.is(ue,Q.currentValue)}function gt(ce,ue){ce._syncPendingControls(),ue.forEach(Q=>{const Fe=Q.control;"submit"===Fe.updateOn&&Fe._pendingChange&&(Q.viewToModelUpdate(Fe._pendingValue),Fe._pendingChange=!1)})}function jt(ce,ue){if(!ue)return null;let Q,Fe,$t;return Array.isArray(ue),ue.forEach(wr=>{wr.constructor===_e?Q=wr:function Re(ce){return Object.getPrototypeOf(ce.constructor)===S}(wr)?Fe=wr:$t=wr}),$t||Fe||Q||null}const Sn={provide:Tn,useExisting:(0,i.Rfq)(()=>Fn)},An=Promise.resolve();let Fn=(()=>{class ce extends Tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this.submittedReactive)}_submitted=(0,i.EWP)(()=>this.submittedReactive());submittedReactive=(0,i.vPA)(!1);_directives=new Set;form;ngSubmit=new i.bkB;options;constructor(Q,Fe,$t){super(),this.callSetDisabledState=$t,this.form=new Zi({},ze(Q),Ft(Fe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Q.control=Fe.registerControl(Q.name,Q.control),Ni(Q.control,Q,this.callSetDisabledState),Q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Q)})}getControl(Q){return this.form.get(Q.path)}removeControl(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Fe&&Fe.removeControl(Q.name),this._directives.delete(Q)})}addFormGroup(Q){An.then(()=>{const Fe=this._findContainer(Q.path),$t=new Zi({});po($t,Q),Fe.registerControl(Q.name,$t),$t.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Q){An.then(()=>{const Fe=this._findContainer(Q.path);Fe&&Fe.removeControl(Q.name)})}getFormGroup(Q){return this.form.get(Q.path)}updateModel(Q,Fe){An.then(()=>{this.form.get(Q.path).setValue(Fe)})}setValue(Q){this.control.setValue(Q)}onSubmit(Q){return this.submittedReactive.set(!0),gt(this.form,this._directives),this.ngSubmit.emit(Q),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Q){return Q.pop(),Q.length?this.form.get(Q):this.form}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("submit",function(Jr){return $t.onSubmit(Jr)})("reset",function(){return $t.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Sn]),i.Vt3]})}return ce})();function zn(ce,ue){const Q=ce.indexOf(ue);Q>-1&&ce.splice(Q,1)}function tr(ce){return"object"==typeof ce&&null!==ce&&2===Object.keys(ce).length&&"value"in ce&&"disabled"in ce}const cr=class extends hi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(ue=null,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this._applyFormState(ue),this._setUpdateStrategy(Q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),er(Q)&&(Q.nonNullable||Q.initialValueIsDefault)&&(this.defaultValue=tr(ue)?ue.value:ue)}setValue(ue,Q={}){this.value=this._pendingValue=ue,this._onChange.length&&!1!==Q.emitModelToViewChange&&this._onChange.forEach(Fe=>Fe(this.value,!1!==Q.emitViewToModelChange)),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){this.setValue(ue,Q)}reset(ue=this.defaultValue,Q={}){this._applyFormState(ue),this.markAsPristine(Q),this.markAsUntouched(Q),this.setValue(this.value,Q),this._pendingChange=!1}_updateValue(){}_anyControls(ue){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ue){this._onChange.push(ue)}_unregisterOnChange(ue){zn(this._onChange,ue)}registerOnDisabledChange(ue){this._onDisabledChange.push(ue)}_unregisterOnDisabledChange(ue){zn(this._onDisabledChange,ue)}_forEachChild(ue){}_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(ue){tr(ue)?(this.value=this._pendingValue=ue.value,ue.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ue}},Er=cr,es={provide:Wt,useExisting:(0,i.Rfq)(()=>oa)},zs=Promise.resolve();let oa=(()=>{class ce extends Wt{_changeDetectorRef;callSetDisabledState;control=new cr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new i.bkB;constructor(Q,Fe,$t,wr,Jr,ts){super(),this._changeDetectorRef=Jr,this.callSetDisabledState=ts,this._parent=Q,this._setValidators(Fe),this._setAsyncValidators($t),this.valueAccessor=jt(0,wr)}ngOnChanges(Q){if(this._checkForErrors(),!this._registered||"name"in Q){if(this._registered&&(this._checkName(),this.formDirective)){const Fe=Q.name.previousValue;this.formDirective.removeControl({name:Fe,path:this._getPath(Fe)})}this._setUpControl()}"isDisabled"in Q&&this._updateDisabled(Q),Ye(Q,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(Q){this.viewModel=Q,this.update.emit(Q)}_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(){Ni(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(Q){zs.then(()=>{this.control.setValue(Q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Q){const Fe=Q.isDisabled.currentValue,$t=0!==Fe&&(0,i.L39)(Fe);zs.then(()=>{$t&&!this.control.disabled?this.control.disable():!$t&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Q){return this._parent?Co(Q,this._parent):[Q]}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,9),i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(i.gRc,8),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,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"],standalone:!1,features:[i.Jv_([es]),i.Vt3,i.OA$]})}return ce})(),Li=(()=>{class ce{static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275dir=i.FsC({type:ce,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ce})();const bi={provide:M,useExisting:(0,i.Rfq)(()=>sa),multi:!0};let sa=(()=>{class ce extends S{writeValue(Q){this.setProperty("value",Q??"")}registerOnChange(Q){this.onChange=Fe=>{Q(""==Fe?null:parseFloat(Fe))}}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("input",function(Jr){return $t.onChange(Jr.target.value)})("blur",function(){return $t.onTouched()})},standalone:!1,features:[i.Jv_([bi]),i.Vt3]})}return ce})();const mo=new i.nKC(""),Go={provide:Wt,useExisting:(0,i.Rfq)(()=>Rs)};let Rs=(()=>{class ce extends Wt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Fe,$t,wr,Jr){super(),this._ngModelWarningConfig=wr,this.callSetDisabledState=Jr,this._setValidators(Q),this._setAsyncValidators(Fe),this.valueAccessor=jt(0,$t)}ngOnChanges(Q){if(this._isControlChanged(Q)){const Fe=Q.form.previousValue;Fe&&ds(Fe,this,!1),Ni(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ye(Q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ds(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}_isControlChanged(Q){return Q.hasOwnProperty("form")}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(mo,8),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Go]),i.Vt3,i.OA$]})}return ce})();const Xr={provide:Tn,useExisting:(0,i.Rfq)(()=>Ds)};let Ds=(()=>{class ce extends Tn{callSetDisabledState;get submitted(){return(0,i.O8t)(this._submittedReactive)}set submitted(Q){this._submittedReactive.set(Q)}_submitted=(0,i.EWP)(()=>this._submittedReactive());_submittedReactive=(0,i.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new i.bkB;constructor(Q,Fe,$t){super(),this.callSetDisabledState=$t,this._setValidators(Q),this._setAsyncValidators(Fe)}ngOnChanges(Q){this._checkFormPresent(),Q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fo(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Q){const Fe=this.form.get(Q.path);return Ni(Fe,Q,this.callSetDisabledState),Fe.updateValueAndValidity({emitEvent:!1}),this.directives.push(Q),Fe}getControl(Q){return this.form.get(Q.path)}removeControl(Q){ds(Q.control||null,Q,!1),function kt(ce,ue){const Q=ce.indexOf(ue);Q>-1&&ce.splice(Q,1)}(this.directives,Q)}addFormGroup(Q){this._setUpFormContainer(Q)}removeFormGroup(Q){this._cleanUpFormContainer(Q)}getFormGroup(Q){return this.form.get(Q.path)}addFormArray(Q){this._setUpFormContainer(Q)}removeFormArray(Q){this._cleanUpFormContainer(Q)}getFormArray(Q){return this.form.get(Q.path)}updateModel(Q,Fe){this.form.get(Q.path).setValue(Fe)}onSubmit(Q){return this._submittedReactive.set(!0),gt(this.form,this.directives),this.ngSubmit.emit(Q),this.form._events.next(new Ge(this.control)),"dialog"===Q?.target?.method}onReset(){this.resetForm()}resetForm(Q=void 0){this.form.reset(Q),this._submittedReactive.set(!1),this.form._events.next(new je(this.form))}_updateDomValue(){this.directives.forEach(Q=>{const Fe=Q.control,$t=this.form.get(Q.path);Fe!==$t&&(ds(Fe||null,Q),(ce=>ce instanceof cr)($t)&&(Ni($t,Q,this.callSetDisabledState),Q.control=$t))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Q){const Fe=this.form.get(Q.path);po(Fe,Q),Fe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Q){if(this.form){const Fe=this.form.get(Q.path);Fe&&function Ii(ce,ue){return fo(ce,ue)}(Fe,Q)&&Fe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qo(this.form,this),this._oldForm&&fo(this._oldForm,this)}_checkFormPresent(){}static \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(De,10),i.rXU(Ee,10),i.rXU(vn,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formGroup",""]],hostBindings:function(Fe,$t){1&Fe&&i.bIt("submit",function(Jr){return $t.onSubmit(Jr)})("reset",function(){return $t.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[i.Jv_([Xr]),i.Vt3,i.OA$]})}return ce})();const _o={provide:Wt,useExisting:(0,i.Rfq)(()=>Ao)};let Ao=(()=>{class ce extends Wt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Q){}model;update=new i.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Q,Fe,$t,wr,Jr){super(),this._ngModelWarningConfig=Jr,this._parent=Q,this._setValidators(Fe),this._setAsyncValidators($t),this.valueAccessor=jt(0,wr)}ngOnChanges(Q){this._added||this._setUpControl(),Ye(Q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Q){this.viewModel=Q,this.update.emit(Q)}get path(){return Co(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 \u0275fac=function(Fe){return new(Fe||ce)(i.rXU(Tn,13),i.rXU(De,10),i.rXU(Ee,10),i.rXU(M,10),i.rXU(mo,8))};static \u0275dir=i.FsC({type:ce,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[i.Jv_([_o]),i.Vt3,i.OA$]})}return ce})();let Bo=(()=>{class ce{_validator=at;_onChange;_enabled;ngOnChanges(Q){if(this.inputName in Q){const Fe=this.normalizeInput(Q[this.inputName].currentValue);this._enabled=this.enabled(Fe),this._validator=this._enabled?this.createValidator(Fe):at,this._onChange&&this._onChange()}}validate(Q){return this._validator(Q)}registerOnValidatorChange(Q){this._onChange=Q}enabled(Q){return null!=Q}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275dir=i.FsC({type:ce,features:[i.OA$]})}return ce})();const Us={provide:De,useExisting:(0,i.Rfq)(()=>Qa),multi:!0},ca={provide:De,useExisting:(0,i.Rfq)(()=>Aa),multi:!0};let Qa=(()=>{class ce extends Bo{required;inputName="required";normalizeInput=i.L39;createValidator=Q=>ae;enabled(Q){return Q}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("required",$t._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[i.Jv_([Us]),i.Vt3]})}return ce})(),Aa=(()=>{class ce extends Qa{createValidator=Q=>xe;static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("required",$t._enabled?"":null)},standalone:!1,features:[i.Jv_([ca]),i.Vt3]})}return ce})();const Ct={provide:De,useExisting:(0,i.Rfq)(()=>jn),multi:!0};let jn=(()=>{class ce extends Bo{maxlength;inputName="maxlength";normalizeInput=Q=>function Ns(ce){return"number"==typeof ce?ce:parseInt(ce,10)}(Q);createValidator=Q=>lt(Q);static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275dir=i.FsC({type:ce,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Fe,$t){2&Fe&&i.BMQ("maxlength",$t._enabled?$t.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[i.Jv_([Ct]),i.Vt3]})}return ce})(),kr=(()=>{class ce{static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({})}return ce})();class fi extends hi{constructor(ue,Q,Fe){super(Dt(Q),Bt(Fe,Q)),this.controls=ue,this._initObservables(),this._setUpdateStrategy(Q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(ue){return this.controls[this._adjustIndex(ue)]}push(ue,Q={}){this.controls.push(ue),this._registerControl(ue),this.updateValueAndValidity({emitEvent:Q.emitEvent}),this._onCollectionChange()}insert(ue,Q,Fe={}){this.controls.splice(ue,0,Q),this._registerControl(Q),this.updateValueAndValidity({emitEvent:Fe.emitEvent})}removeAt(ue,Q={}){let Fe=this._adjustIndex(ue);Fe<0&&(Fe=0),this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),this.controls.splice(Fe,1),this.updateValueAndValidity({emitEvent:Q.emitEvent})}setControl(ue,Q,Fe={}){let $t=this._adjustIndex(ue);$t<0&&($t=0),this.controls[$t]&&this.controls[$t]._registerOnCollectionChange(()=>{}),this.controls.splice($t,1),Q&&(this.controls.splice($t,0,Q),this._registerControl(Q)),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(ue,Q={}){si(this,0,ue),ue.forEach((Fe,$t)=>{xr(this,!1,$t),this.at($t).setValue(Fe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q)}patchValue(ue,Q={}){null!=ue&&(ue.forEach((Fe,$t)=>{this.at($t)&&this.at($t).patchValue(Fe,{onlySelf:!0,emitEvent:Q.emitEvent})}),this.updateValueAndValidity(Q))}reset(ue=[],Q={}){this._forEachChild((Fe,$t)=>{Fe.reset(ue[$t],{onlySelf:!0,emitEvent:Q.emitEvent})}),this._updatePristine(Q,this),this._updateTouched(Q,this),this.updateValueAndValidity(Q)}getRawValue(){return this.controls.map(ue=>ue.getRawValue())}clear(ue={}){this.controls.length<1||(this._forEachChild(Q=>Q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:ue.emitEvent}))}_adjustIndex(ue){return ue<0?ue+this.length:ue}_syncPendingControls(){let ue=this.controls.reduce((Q,Fe)=>!!Fe._syncPendingControls()||Q,!1);return ue&&this.updateValueAndValidity({onlySelf:!0}),ue}_forEachChild(ue){this.controls.forEach((Q,Fe)=>{ue(Q,Fe)})}_updateValue(){this.value=this.controls.filter(ue=>ue.enabled||this.disabled).map(ue=>ue.value)}_anyControls(ue){return this.controls.some(Q=>Q.enabled&&ue(Q))}_setUpControls(){this._forEachChild(ue=>this._registerControl(ue))}_allControlsDisabled(){for(const ue of this.controls)if(ue.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(ue){ue.setParent(this),ue._registerOnCollectionChange(this._onCollectionChange)}_find(ue){return this.at(ue)??null}}function Fi(ce){return!!ce&&(void 0!==ce.asyncValidators||void 0!==ce.validators||void 0!==ce.updateOn)}let Ro=(()=>{class ce{useNonNullable=!1;get nonNullable(){const Q=new ce;return Q.useNonNullable=!0,Q}group(Q,Fe=null){const $t=this._reduceControls(Q);let wr={};return Fi(Fe)?wr=Fe:null!==Fe&&(wr.validators=Fe.validator,wr.asyncValidators=Fe.asyncValidator),new Zi($t,wr)}record(Q,Fe=null){const $t=this._reduceControls(Q);return new Rt($t,Fe)}control(Q,Fe,$t){let wr={};return this.useNonNullable?(Fi(Fe)?wr=Fe:(wr.validators=Fe,wr.asyncValidators=$t),new cr(Q,{...wr,nonNullable:!0})):new cr(Q,Fe,$t)}array(Q,Fe,$t){const wr=Q.map(Jr=>this._createControl(Jr));return new fi(wr,Fe,$t)}_reduceControls(Q){const Fe={};return Object.keys(Q).forEach($t=>{Fe[$t]=this._createControl(Q[$t])}),Fe}_createControl(Q){return Q instanceof cr||Q instanceof hi?Q:Array.isArray(Q)?this.control(Q[0],Q.length>1?Q[1]:null,Q.length>2?Q[2]:null):this.control(Q)}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275prov=i.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),Ho=(()=>{class ce extends Ro{group(Q,Fe=null){return super.group(Q,Fe)}control(Q,Fe,$t){return super.control(Q,Fe,$t)}array(Q,Fe,$t){return super.array(Q,Fe,$t)}static \u0275fac=(()=>{let Q;return function($t){return(Q||(Q=i.xGo(ce)))($t||ce)}})();static \u0275prov=i.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),Ua=(()=>{class ce{static withConfig(Q){return{ngModule:ce,providers:[{provide:vn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({imports:[kr]})}return ce})(),ua=(()=>{class ce{static withConfig(Q){return{ngModule:ce,providers:[{provide:mo,useValue:Q.warnOnNgModelWithFormControl??"always"},{provide:vn,useValue:Q.callSetDisabledState??fr}]}}static \u0275fac=function(Fe){return new(Fe||ce)};static \u0275mod=i.$C({type:ce});static \u0275inj=i.G2t({imports:[kr]})}return ce})()},9471:(o,s,n)=>{"use strict";n.d(s,{$z:()=>le,Hl:()=>Wn,iY:()=>fn,pQ:()=>En});var i=n(3107),a=n(8559),c=n(2147),y=n(2902),w=n(5467);const C=["mat-button",""],T=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],S=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],k="@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}",re=["mat-icon-button",""],_e=["*"],de=new i.nKC("MAT_BUTTON_CONFIG"),Ee=[{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 Le=(()=>{class wn{_elementRef=(0,i.WQX)(i.aKT);_platform=(0,i.WQX)(c.OD);_ngZone=(0,i.WQX)(i.SKi);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_rippleLoader=(0,i.WQX)(y.Ej);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(_t){this._disableRipple=_t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(_t){this._disabled=_t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){(0,i.WQX)(w.l).load(y.Ah);const _t=(0,i.WQX)(de,{optional:!0}),ze=this._elementRef.nativeElement,Ue=ze.classList;this.disabledInteractive=_t?.disabledInteractive??!1,this.color=_t?.color??null,this._rippleLoader?.configureRipple(ze,{className:"mat-mdc-button-ripple"});for(const{attribute:Ft,mdcClasses:Ke}of Ee)ze.hasAttribute(Ft)&&Ue.add(...Ke)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(_t="program",ze){_t?this._focusMonitor.focusVia(this._elementRef.nativeElement,_t,ze):this._elementRef.nativeElement.focus(ze)}_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 \u0275fac=function(ze){return new(ze||wn)};static \u0275dir=i.FsC({type:wn,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",i.L39],disabled:[2,"disabled","disabled",i.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",i.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",i.L39]},features:[i.GFd]})}return wn})(),we=(()=>{class wn extends Le{tabIndex;ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}_haltDisabledEvents=_t=>{this.disabled&&(_t.preventDefault(),_t.stopImmediatePropagation())};_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this.disabled||null}static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275dir=i.FsC({type:wn,inputs:{tabIndex:[2,"tabIndex","tabIndex",_t=>null==_t?void 0:(0,i.Udg)(_t)]},features:[i.GFd,i.Vt3]})}return wn})(),le=(()=>{class wn extends Le{static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275cmp=i.VBU({type:wn,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:C,ngContentSelectors:S,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(T),i.nrm(0,"span",0),i.SdG(1),i.j41(2,"span",1),i.SdG(3,1),i.k0s(),i.SdG(4,2),i.nrm(5,"span",2)(6,"span",3)),2&ze&&i.AVh("mdc-button__ripple",!Ue._isFab)("mdc-fab__ripple",Ue._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, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);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, -4px);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, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-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-sys-on-surface-variant))}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);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, -8px);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, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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, 1px);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-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-focus-indicator::before,.mat-mdc-raised-button:focus .mat-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-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-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0})}return wn})(),fn=(()=>{class wn extends Le{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(ze){return new(ze||wn)};static \u0275cmp=i.VBU({type:wn,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.Vt3],attrs:re,ngContentSelectors:_e,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.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, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.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}',k],encapsulation:2,changeDetection:0})}return wn})(),En=(()=>{class wn extends we{static \u0275fac=(()=>{let _t;return function(Ue){return(_t||(_t=i.xGo(wn)))(Ue||wn)}})();static \u0275cmp=i.VBU({type:wn,selectors:[["a","mat-icon-button",""]],hostVars:15,hostBindings:function(ze,Ue){2&ze&&(i.BMQ("disabled",Ue._getDisabledAttribute())("tabindex",Ue.disabled&&!Ue.disabledInteractive?-1:Ue.tabIndex)("aria-disabled",Ue._getAriaDisabled()),i.HbH(Ue.color?"mat-"+Ue.color:""),i.AVh("mat-mdc-button-disabled",Ue.disabled)("mat-mdc-button-disabled-interactive",Ue.disabledInteractive)("_mat-animation-noopable","NoopAnimations"===Ue._animationMode)("mat-unthemed",!Ue.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:re,ngContentSelectors:_e,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(ze,Ue){1&ze&&(i.NAR(),i.nrm(0,"span",0),i.SdG(1),i.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, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.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-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.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}',k],encapsulation:2,changeDetection:0})}return wn})(),Wn=(()=>{class wn{static \u0275fac=function(ze){return new(ze||wn)};static \u0275mod=i.$C({type:wn});static \u0275inj=i.G2t({imports:[y.yE,y.pZ,y.yE]})}return wn})()},2902:(o,s,n)=>{"use strict";n.d(s,{Ah:()=>Ze,Ej:()=>Mr,Ju:()=>Be,MI:()=>Ne,MJ:()=>bt,N:()=>le,QC:()=>L,Sy:()=>On,TL:()=>Tt,X0:()=>xe,de:()=>at,es:()=>Ke,is:()=>z,jb:()=>mt,pZ:()=>Te,r6:()=>At,tO:()=>Vr,wT:()=>ft,yE:()=>ae});var i=n(3107),a=n(8559),c=n(2944),y=n(8447),w=n(2147),C=n(3022),T=n(5467),S=n(5919),M=n(4460);const X=["text"],Z=[[["mat-icon"]],"*"],re=["mat-icon","*"];function _e(vt,Vt){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",1),2&vt){const Oe=i.XpG();i.Y8G("disabled",Oe.disabled)("state",Oe.selected?"checked":"unchecked")}}function pe(vt,Vt){if(1&vt&&i.nrm(0,"mat-pseudo-checkbox",3),2&vt){const Oe=i.XpG();i.Y8G("disabled",Oe.disabled)}}function de(vt,Vt){if(1&vt&&(i.j41(0,"span",4),i.EFF(1),i.k0s()),2&vt){const Oe=i.XpG();i.R7$(),i.SpI("(",Oe.group.label,")")}}const De=["mat-internal-form-field",""],Ee=["*"],le=new i.nKC("mat-sanity-checks",{providedIn:"root",factory:()=>!0});let ae=(()=>{class vt{constructor(){(0,i.WQX)(a.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[c.jI,c.jI]})}return vt})();class xe{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(Vt,Oe,Ge,je,Dt){this._defaultMatcher=Vt,this.ngControl=Oe,this._parentFormGroup=Ge,this._parentForm=je,this._stateChanges=Dt}updateErrorState(){const Vt=this.errorState,Oe=this._parentFormGroup||this._parentForm,Ge=this.matcher||this._defaultMatcher,je=this.ngControl?this.ngControl.control:null,Dt=Ge?.isErrorState(je,Oe)??!1;Dt!==Vt&&(this.errorState=Dt,this._stateChanges.next())}}const Be=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function st(){return(0,i.WQX)(i.xe9)}}),lt="Method not implemented";class bt{locale;_localeChanges=new y.B;localeChanges=this._localeChanges;setTime(Vt,Oe,Ge,je){throw new Error(lt)}getHours(Vt){throw new Error(lt)}getMinutes(Vt){throw new Error(lt)}getSeconds(Vt){throw new Error(lt)}parseTime(Vt,Oe){throw new Error(lt)}addSeconds(Vt,Oe){throw new Error(lt)}getValidDateOrNull(Vt){return this.isDateInstance(Vt)&&this.isValid(Vt)?Vt:null}deserialize(Vt){return null==Vt||this.isDateInstance(Vt)&&this.isValid(Vt)?Vt:this.invalid()}setLocale(Vt){this.locale=Vt,this._localeChanges.next()}compareDate(Vt,Oe){return this.getYear(Vt)-this.getYear(Oe)||this.getMonth(Vt)-this.getMonth(Oe)||this.getDate(Vt)-this.getDate(Oe)}compareTime(Vt,Oe){return this.getHours(Vt)-this.getHours(Oe)||this.getMinutes(Vt)-this.getMinutes(Oe)||this.getSeconds(Vt)-this.getSeconds(Oe)}sameDate(Vt,Oe){if(Vt&&Oe){let Ge=this.isValid(Vt),je=this.isValid(Oe);return Ge&&je?!this.compareDate(Vt,Oe):Ge==je}return Vt==Oe}sameTime(Vt,Oe){if(Vt&&Oe){const Ge=this.isValid(Vt),je=this.isValid(Oe);return Ge&&je?!this.compareTime(Vt,Oe):Ge==je}return Vt==Oe}clampDate(Vt,Oe,Ge){return Oe&&this.compareDate(Vt,Oe)<0?Oe:Ge&&this.compareDate(Vt,Ge)>0?Ge:Vt}}const at=new i.nKC("mat-date-formats");let Ke=(()=>{class vt{isErrorState(Oe,Ge){return!!(Oe&&Oe.invalid&&(Oe.touched||Ge&&Ge.submitted))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Ze=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(Ge,je){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})}return vt})();var ht=function(vt){return vt[vt.FADING_IN=0]="FADING_IN",vt[vt.VISIBLE=1]="VISIBLE",vt[vt.FADING_OUT=2]="FADING_OUT",vt[vt.HIDDEN=3]="HIDDEN",vt}(ht||{});class Xt{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ht.HIDDEN;constructor(Vt,Oe,Ge,je=!1){this._renderer=Vt,this.element=Oe,this.config=Ge,this._animationForciblyDisabledThroughCss=je}fadeOut(){this._renderer.fadeOutRipple(this)}}const Tn=(0,w.BQ)({passive:!0,capture:!0});class Wt{_events=new Map;addHandler(Vt,Oe,Ge,je){const Dt=this._events.get(Oe);if(Dt){const ct=Dt.get(Ge);ct?ct.add(je):Dt.set(Ge,new Set([je]))}else this._events.set(Oe,new Map([[Ge,new Set([je])]])),Vt.runOutsideAngular(()=>{document.addEventListener(Oe,this._delegateEventHandler,Tn)})}removeHandler(Vt,Oe,Ge){const je=this._events.get(Vt);if(!je)return;const Dt=je.get(Oe);Dt&&(Dt.delete(Ge),0===Dt.size&&je.delete(Oe),0===je.size&&(this._events.delete(Vt),document.removeEventListener(Vt,this._delegateEventHandler,Tn)))}_delegateEventHandler=Vt=>{const Oe=(0,w.Fb)(Vt);Oe&&this._events.get(Vt.type)?.forEach((Ge,je)=>{(je===Oe||je.contains(Oe))&&Ge.forEach(Dt=>Dt.handleEvent(Vt))})}}const Zt={enterDuration:225,exitDuration:150},Ht=(0,w.BQ)({passive:!0,capture:!0}),en=["mousedown","touchstart"],Nn=["mouseup","mouseleave","touchend","touchcancel"];let mn=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(Ge,je){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})}return vt})();class Mn{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Wt;constructor(Vt,Oe,Ge,je,Dt){this._target=Vt,this._ngZone=Oe,this._platform=je,je.isBrowser&&(this._containerElement=(0,C.i8)(Ge)),Dt&&Dt.get(T.l).load(mn)}fadeInRipple(Vt,Oe,Ge={}){const je=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Dt={...Zt,...Ge.animation};Ge.centered&&(Vt=je.left+je.width/2,Oe=je.top+je.height/2);const ct=Ge.radius||function tt(vt,Vt,Oe){const Ge=Math.max(Math.abs(vt-Oe.left),Math.abs(vt-Oe.right)),je=Math.max(Math.abs(Vt-Oe.top),Math.abs(Vt-Oe.bottom));return Math.sqrt(Ge*Ge+je*je)}(Vt,Oe,je),Bt=Vt-je.left,xn=Oe-je.top,er=Dt.enterDuration,xr=document.createElement("div");xr.classList.add("mat-ripple-element"),xr.style.left=Bt-ct+"px",xr.style.top=xn-ct+"px",xr.style.height=2*ct+"px",xr.style.width=2*ct+"px",null!=Ge.color&&(xr.style.backgroundColor=Ge.color),xr.style.transitionDuration=`${er}ms`,this._containerElement.appendChild(xr);const si=window.getComputedStyle(xr),Zi=si.transitionDuration,nn="none"===si.transitionProperty||"0s"===Zi||"0s, 0s"===Zi||0===je.width&&0===je.height,Mt=new Xt(this,xr,Ge,nn);xr.style.transform="scale3d(1, 1, 1)",Mt.state=ht.FADING_IN,Ge.persistent||(this._mostRecentTransientRipple=Mt);let nt=null;return!nn&&(er||Dt.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Rt=()=>{nt&&(nt.fallbackTimer=null),clearTimeout(vn),this._finishRippleTransition(Mt)},ln=()=>this._destroyRipple(Mt),vn=setTimeout(ln,er+100);xr.addEventListener("transitionend",Rt),xr.addEventListener("transitioncancel",ln),nt={onTransitionEnd:Rt,onTransitionCancel:ln,fallbackTimer:vn}}),this._activeRipples.set(Mt,nt),(nn||!er)&&this._finishRippleTransition(Mt),Mt}fadeOutRipple(Vt){if(Vt.state===ht.FADING_OUT||Vt.state===ht.HIDDEN)return;const Oe=Vt.element,Ge={...Zt,...Vt.config.animation};Oe.style.transitionDuration=`${Ge.exitDuration}ms`,Oe.style.opacity="0",Vt.state=ht.FADING_OUT,(Vt._animationForciblyDisabledThroughCss||!Ge.exitDuration)&&this._finishRippleTransition(Vt)}fadeOutAll(){this._getActiveRipples().forEach(Vt=>Vt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Vt=>{Vt.config.persistent||Vt.fadeOut()})}setupTriggerEvents(Vt){const Oe=(0,C.i8)(Vt);!this._platform.isBrowser||!Oe||Oe===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Oe,en.forEach(Ge=>{Mn._eventManager.addHandler(this._ngZone,Ge,Oe,this)}))}handleEvent(Vt){"mousedown"===Vt.type?this._onMousedown(Vt):"touchstart"===Vt.type?this._onTouchStart(Vt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Nn.forEach(Oe=>{this._triggerElement.addEventListener(Oe,this,Ht)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Vt){Vt.state===ht.FADING_IN?this._startFadeOutTransition(Vt):Vt.state===ht.FADING_OUT&&this._destroyRipple(Vt)}_startFadeOutTransition(Vt){const Oe=Vt===this._mostRecentTransientRipple,{persistent:Ge}=Vt.config;Vt.state=ht.VISIBLE,!Ge&&(!Oe||!this._isPointerDown)&&Vt.fadeOut()}_destroyRipple(Vt){const Oe=this._activeRipples.get(Vt)??null;this._activeRipples.delete(Vt),this._activeRipples.size||(this._containerRect=null),Vt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Vt.state=ht.HIDDEN,null!==Oe&&(Vt.element.removeEventListener("transitionend",Oe.onTransitionEnd),Vt.element.removeEventListener("transitioncancel",Oe.onTransitionCancel),null!==Oe.fallbackTimer&&clearTimeout(Oe.fallbackTimer)),Vt.element.remove()}_onMousedown(Vt){const Oe=(0,a._G)(Vt),Ge=this._lastTouchStartEvent&&Date.now(){!Vt.config.persistent&&(Vt.state===ht.VISIBLE||Vt.config.terminateOnPointerUp&&Vt.state===ht.FADING_IN)&&Vt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const Vt=this._triggerElement;Vt&&(en.forEach(Oe=>Mn._eventManager.removeHandler(Oe,Vt,this)),this._pointerUpEventsRegistered&&(Nn.forEach(Oe=>Vt.removeEventListener(Oe,this,Ht)),this._pointerUpEventsRegistered=!1))}}const Kt=new i.nKC("mat-ripple-global-options");let At=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Oe){Oe&&this.fadeOutAllNonPersistent(),this._disabled=Oe,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Oe){this._trigger=Oe,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Oe=(0,i.WQX)(i.SKi),Ge=(0,i.WQX)(w.OD),je=(0,i.WQX)(Kt,{optional:!0}),Dt=(0,i.WQX)(i.zZn);this._globalOptions=je||{},this._rippleRenderer=new Mn(this,Oe,this._elementRef,Ge,Dt)}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(Oe,Ge=0,je){return"number"==typeof Oe?this._rippleRenderer.fadeInRipple(Oe,Ge,{...this.rippleConfig,...je}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Oe})}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-ripple-unbounded",je.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"]})}return vt})(),Te=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae,ae]})}return vt})(),ye=(()=>{class vt{_animationMode=(0,i.WQX)(i.bc$,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===je.state)("mat-pseudo-checkbox-checked","checked"===je.state)("mat-pseudo-checkbox-disabled",je.disabled)("mat-pseudo-checkbox-minimal","minimal"===je.appearance)("mat-pseudo-checkbox-full","full"===je.appearance)("_mat-animation-noopable","NoopAnimations"===je._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(Ge,je){},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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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 vt})(),He=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae]})}return vt})();const z=new i.nKC("MAT_OPTION_PARENT_COMPONENT"),L=new i.nKC("MatOptgroup");class Ne{source;isUserInput;constructor(Vt,Oe=!1){this.source=Vt,this.isUserInput=Oe}}let ft=(()=>{class vt{_element=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_parent=(0,i.WQX)(z,{optional:!0});group=(0,i.WQX)(L,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,i.WQX)(a.g7).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Oe){this._disabled=Oe}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new i.bkB;_text;_stateChanges=new y.B;constructor(){(0,i.WQX)(T.l).load(Ze),(0,i.WQX)(T.l).load(T.Y),this._signalDisableRipple=!!this._parent&&(0,i.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Oe=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Oe&&this._emitSelectionChangeEvent())}deselect(Oe=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Oe&&this._emitSelectionChangeEvent())}focus(Oe,Ge){const je=this._getHostElement();"function"==typeof je.focus&&je.focus(Ge)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Oe){(Oe.keyCode===S.Fm||Oe.keyCode===S.t6)&&!(0,S.rp)(Oe)&&(this._selectViaInteraction(),Oe.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 Oe=this.viewValue;Oe!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Oe)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Oe=!1){this.onSelectionChange.emit(new Ne(this,Oe))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-option"]],viewQuery:function(Ge,je){if(1&Ge&&i.GBs(X,7),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._text=Dt.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(Ge,je){1&Ge&&i.bIt("click",function(){return je._selectViaInteraction()})("keydown",function(ct){return je._handleKeydown(ct)}),2&Ge&&(i.Mr5("id",je.id),i.BMQ("aria-selected",je.selected)("aria-disabled",je.disabled.toString()),i.AVh("mdc-list-item--selected",je.selected)("mat-mdc-option-multiple",je.multiple)("mat-mdc-option-active",je.active)("mdc-list-item--disabled",je.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",i.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[i.GFd],ngContentSelectors:re,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-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(Ge,je){1&Ge&&(i.NAR(Z),i.DNE(0,_e,1,2,"mat-pseudo-checkbox",1),i.SdG(1),i.j41(2,"span",2,0),i.SdG(4,1),i.k0s(),i.DNE(5,pe,1,1,"mat-pseudo-checkbox",3)(6,de,2,1,"span",4),i.nrm(7,"div",5)),2&Ge&&(i.vxM(je.multiple?0:-1),i.R7$(5),i.vxM(je.multiple||!je.selected||je.hideSingleSelectionIndicator?-1:5),i.R7$(),i.vxM(je.group&&je.group._inert?6:-1),i.R7$(),i.Y8G("matRippleTrigger",je._getHostElement())("matRippleDisabled",je.disabled||je.disableRipple))},dependencies:[ye,At],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-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));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-sys-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-sys-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-sys-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}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::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-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return vt})();function mt(vt,Vt,Oe){if(Oe.length){let Ge=Vt.toArray(),je=Oe.toArray(),Dt=0;for(let ct=0;ctOe+Ge?Math.max(0,vt-Ge+Vt):Oe}let On=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[Te,ae,He]})}return vt})();const cn={capture:!0},hn=["focus","mousedown","mouseenter","touchstart"],Ln="mat-ripple-loader-uninitialized",lr="mat-ripple-loader-class-name",Dn="mat-ripple-loader-centered",Hr="mat-ripple-loader-disabled";let Mr=(()=>{class vt{_document=(0,i.WQX)(M.qQ,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_globalRippleOptions=(0,i.WQX)(Kt,{optional:!0});_platform=(0,i.WQX)(w.OD);_ngZone=(0,i.WQX)(i.SKi);_injector=(0,i.WQX)(i.zZn);_hosts=new Map;constructor(){this._ngZone.runOutsideAngular(()=>{for(const Oe of hn)this._document?.addEventListener(Oe,this._onInteraction,cn)})}ngOnDestroy(){const Oe=this._hosts.keys();for(const Ge of Oe)this.destroyRipple(Ge);for(const Ge of hn)this._document?.removeEventListener(Ge,this._onInteraction,cn)}configureRipple(Oe,Ge){Oe.setAttribute(Ln,this._globalRippleOptions?.namespace??""),(Ge.className||!Oe.hasAttribute(lr))&&Oe.setAttribute(lr,Ge.className||""),Ge.centered&&Oe.setAttribute(Dn,""),Ge.disabled&&Oe.setAttribute(Hr,"")}setDisabled(Oe,Ge){const je=this._hosts.get(Oe);je?(je.target.rippleDisabled=Ge,!Ge&&!je.hasSetUpEvents&&(je.hasSetUpEvents=!0,je.renderer.setupTriggerEvents(Oe))):Ge?Oe.setAttribute(Hr,""):Oe.removeAttribute(Hr)}_onInteraction=Oe=>{const Ge=(0,w.Fb)(Oe);if(Ge instanceof HTMLElement){const je=Ge.closest(`[${Ln}="${this._globalRippleOptions?.namespace??""}"]`);je&&this._createRipple(je)}};_createRipple(Oe){if(!this._document||this._hosts.has(Oe))return;Oe.querySelector(".mat-ripple")?.remove();const Ge=this._document.createElement("span");Ge.classList.add("mat-ripple",Oe.getAttribute(lr)),Oe.append(Ge);const je="NoopAnimations"===this._animationMode,Dt=this._globalRippleOptions,ct=je?0:Dt?.animation?.enterDuration??Zt.enterDuration,Bt=je?0:Dt?.animation?.exitDuration??Zt.exitDuration,xn={rippleDisabled:je||Dt?.disabled||Oe.hasAttribute(Hr),rippleConfig:{centered:Oe.hasAttribute(Dn),terminateOnPointerUp:Dt?.terminateOnPointerUp,animation:{enterDuration:ct,exitDuration:Bt}}},er=new Mn(xn,this._ngZone,Ge,this._platform,this._injector),xr=!xn.rippleDisabled;xr&&er.setupTriggerEvents(Oe),this._hosts.set(Oe,{target:xn,renderer:er,hasSetUpEvents:xr}),Oe.removeAttribute(Ln)}destroyRipple(Oe){const Ge=this._hosts.get(Oe);Ge&&(Ge.renderer._removeTriggerEvents(),this._hosts.delete(Oe))}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})(),Vr=(()=>{class vt{labelPosition;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-form-field--align-end","before"===je.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:De,ngContentSelectors:Ee,decls:1,vars:0,template:function(Ge,je){1&Ge&&(i.NAR(),i.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 vt})()},7544:(o,s,n)=>{"use strict";n.d(s,{Vh:()=>Me,bZ:()=>Zt,E7:()=>mn,tx:()=>rt,Yi:()=>Nn,hM:()=>Kt,CP:()=>Ot});var i=n(9666),a=n(3107),c=n(8559),y=n(2147),w=n(6192),C=n(4460),T=n(5919),S=n(8447),M=n(6381),k=n(3016),R=n(2944),X=n(593);function Z(ye,He){}class re{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext}let pe=(()=>{class ye extends w.lb{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(c.GX);_config;_interactivityChecker=(0,a.WQX)(c.Z7);_ngZone=(0,a.WQX)(a.SKi);_overlayRef=(0,a.WQX)(i.yY);_focusMonitor=(0,a.WQX)(c.FN);_platform=(0,a.WQX)(y.OD);_document=(0,a.WQX)(C.qQ,{optional:!0});_portalOutlet;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_changeDetectorRef=(0,a.WQX)(a.gRc);_injector=(0,a.WQX)(a.zZn);_isDestroyed=!1;constructor(){super(),this._config=(0,a.WQX)(re,{optional:!0})||new re,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(z){this._ariaLabelledByQueue.push(z),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(z){const L=this._ariaLabelledByQueue.indexOf(z);L>-1&&(this._ariaLabelledByQueue.splice(L,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(z){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachComponentPortal(z);return this._contentAttached(),L}attachTemplatePortal(z){this._portalOutlet.hasAttached();const L=this._portalOutlet.attachTemplatePortal(z);return this._contentAttached(),L}attachDomPortal=z=>{this._portalOutlet.hasAttached();const L=this._portalOutlet.attachDomPortal(z);return this._contentAttached(),L};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(z,L){this._interactivityChecker.isFocusable(z)||(z.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const V=()=>{z.removeEventListener("blur",V),z.removeEventListener("mousedown",V),z.removeAttribute("tabindex")};z.addEventListener("blur",V),z.addEventListener("mousedown",V)})),z.focus(L)}_focusByCssSelector(z,L){let V=this._elementRef.nativeElement.querySelector(z);V&&this._forceFocus(V,L)}_trapFocus(){this._isDestroyed||(0,a.mal)(()=>{const z=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||z.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 z=this._config.restoreFocus;let L=null;if("string"==typeof z?L=this._document.querySelector(z):"boolean"==typeof z?L=z?this._elementFocusedBeforeDialogWasOpened:null:z&&(L=z),this._config.restoreFocus&&L&&"function"==typeof L.focus){const V=(0,y.vc)(),Ne=this._elementRef.nativeElement;(!V||V===this._document.body||V===Ne||Ne.contains(V))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const z=this._elementRef.nativeElement,L=(0,y.vc)();return z===L||z.contains(L)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,y.vc)()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(L){return new(L||ye)};static \u0275cmp=a.VBU({type:ye,selectors:[["cdk-dialog-container"]],viewQuery:function(L,V){if(1&L&&a.GBs(w.I3,7),2&L){let Ne;a.mGM(Ne=a.lsd())&&(V._portalOutlet=Ne.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(L,V){2&L&&a.BMQ("id",V._config.id||null)("role",V._config.role)("aria-modal",V._config.ariaModal)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null)},features:[a.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,V){1&L&&a.DNE(0,Z,0,0,"ng-template",0)},dependencies:[w.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return ye})();class de{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(He,z){this.overlayRef=He,this.config=z,this.disableClose=z.disableClose,this.backdropClick=He.backdropClick(),this.keydownEvents=He.keydownEvents(),this.outsidePointerEvents=He.outsidePointerEvents(),this.id=z.id,this.keydownEvents.subscribe(L=>{L.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(L)&&(L.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=He.detachments().subscribe(()=>{!1!==z.closeOnOverlayDetachments&&this.close()})}close(He,z){if(this.containerInstance){const L=this.closed;this.containerInstance._closeInteractionType=z?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),L.next(He),L.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(He="",z=""){return this.overlayRef.updateSize({width:He,height:z}),this}addPanelClass(He){return this.overlayRef.addPanelClass(He),this}removePanelClass(He){return this.overlayRef.removePanelClass(He),this}}const De=new a.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const ye=(0,a.WQX)(i.hJ);return()=>ye.scrollStrategies.block()}}),Ee=new a.nKC("DialogData"),Le=new a.nKC("DefaultDialogConfig");let le=(()=>{class ye{_overlay=(0,a.WQX)(i.hJ);_injector=(0,a.WQX)(a.zZn);_defaultOptions=(0,a.WQX)(Le,{optional:!0});_parentDialog=(0,a.WQX)(ye,{optional:!0,skipSelf:!0});_overlayContainer=(0,a.WQX)(i.Sf);_idGenerator=(0,a.WQX)(c.g7);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,a.WQX)(De);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,M.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,X.Z)(void 0)));constructor(){}open(z,L){(L={...this._defaultOptions||new re,...L}).id=L.id||this._idGenerator.getId("cdk-dialog-"),L.id&&this.getDialogById(L.id);const Ne=this._getOverlayConfig(L),ft=this._overlay.create(Ne),mt=new de(ft,L),Tt=this._attachContainer(ft,mt,L);return mt.containerInstance=Tt,this._attachDialogContent(z,mt,Tt,L),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(mt),mt.closed.subscribe(()=>this._removeOpenDialog(mt,!0)),this.afterOpened.next(mt),mt}closeAll(){ae(this.openDialogs,z=>z.close())}getDialogById(z){return this.openDialogs.find(L=>L.id===z)}ngOnDestroy(){ae(this._openDialogsAtThisLevel,z=>{!1===z.config.closeOnDestroy&&this._removeOpenDialog(z,!1)}),ae(this._openDialogsAtThisLevel,z=>z.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(z){const L=new i.rR({positionStrategy:z.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:z.scrollStrategy||this._scrollStrategy(),panelClass:z.panelClass,hasBackdrop:z.hasBackdrop,direction:z.direction,minWidth:z.minWidth,minHeight:z.minHeight,maxWidth:z.maxWidth,maxHeight:z.maxHeight,width:z.width,height:z.height,disposeOnNavigation:z.closeOnNavigation});return z.backdropClass&&(L.backdropClass=z.backdropClass),L}_attachContainer(z,L,V){const Ne=V.injector||V.viewContainerRef?.injector,ft=[{provide:re,useValue:V},{provide:de,useValue:L},{provide:i.yY,useValue:z}];let mt;V.container?"function"==typeof V.container?mt=V.container:(mt=V.container.type,ft.push(...V.container.providers(V))):mt=pe;const Tt=new w.A8(mt,V.viewContainerRef,a.zZn.create({parent:Ne||this._injector,providers:ft}));return z.attach(Tt).instance}_attachDialogContent(z,L,V,Ne){if(z instanceof a.C4Q){const ft=this._createInjector(Ne,L,V,void 0);let mt={$implicit:Ne.data,dialogRef:L};Ne.templateContext&&(mt={...mt,..."function"==typeof Ne.templateContext?Ne.templateContext():Ne.templateContext}),V.attachTemplatePortal(new w.VA(z,null,mt,ft))}else{const ft=this._createInjector(Ne,L,V,this._injector),mt=V.attachComponentPortal(new w.A8(z,Ne.viewContainerRef,ft));L.componentRef=mt,L.componentInstance=mt.instance}}_createInjector(z,L,V,Ne){const ft=z.injector||z.viewContainerRef?.injector,mt=[{provide:Ee,useValue:z.data},{provide:de,useValue:L}];return z.providers&&("function"==typeof z.providers?mt.push(...z.providers(L,z,V)):mt.push(...z.providers)),z.direction&&(!ft||!ft.get(R.dS,null,{optional:!0}))&&mt.push({provide:R.dS,useValue:{value:z.direction,change:(0,k.of)()}}),a.zZn.create({parent:ft||Ne,providers:mt})}_removeOpenDialog(z,L){const V=this.openDialogs.indexOf(z);V>-1&&(this.openDialogs.splice(V,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ne,ft)=>{Ne?ft.setAttribute("aria-hidden",Ne):ft.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),L&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const z=this._overlayContainer.getContainerElement();if(z.parentElement){const L=z.parentElement.children;for(let V=L.length-1;V>-1;V--){const Ne=L[V];Ne!==z&&"SCRIPT"!==Ne.nodeName&&"STYLE"!==Ne.nodeName&&!Ne.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ne,Ne.getAttribute("aria-hidden")),Ne.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const z=this._parentDialog;return z?z._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(L){return new(L||ye)};static \u0275prov=a.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();function ae(ye,He){let z=ye.length;for(;z--;)He(ye[z])}let xe=(()=>{class ye{static \u0275fac=function(L){return new(L||ye)};static \u0275mod=a.$C({type:ye});static \u0275inj=a.G2t({providers:[le],imports:[i.z_,w.jc,c.Pd,w.jc]})}return ye})();var Be=n(3022),st=n(7509),lt=n(1483),bt=n(7610),at=n(8108),sn=n(2902);function En(ye,He){}n(1204);class Wn{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!0;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration}const wn="mdc-dialog--open",Je="mdc-dialog--opening",_t="mdc-dialog--closing";let Ft=(()=>{class ye extends pe{_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_animationStateChanged=new a.bkB;_animationsEnabled="NoopAnimations"!==this._animationMode;_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Ze(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?Ze(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Je,wn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(wn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(wn),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(_t)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(z){this._actionSectionCount+=z,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Je,_t)}_waitForAnimationToComplete(z,L){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(L,z)}_requestAnimationFrame(z){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(z):z()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(z){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:z})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(z){const L=super.attachComponentPortal(z);return L.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),L}static \u0275fac=(()=>{let z;return function(V){return(z||(z=a.xGo(ye)))(V||ye)}})();static \u0275cmp=a.VBU({type:ye,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(L,V){2&L&&(a.Mr5("id",V._config.id),a.BMQ("aria-modal",V._config.ariaModal)("role",V._config.role)("aria-labelledby",V._config.ariaLabel?null:V._ariaLabelledByQueue[0])("aria-label",V._config.ariaLabel)("aria-describedby",V._config.ariaDescribedBy||null),a.AVh("_mat-animation-noopable",!V._animationsEnabled)("mat-mdc-dialog-container-with-actions",V._actionSectionCount>0))},features:[a.Vt3],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(L,V){1&L&&(a.j41(0,"div",0)(1,"div",1),a.DNE(2,En,0,0,"ng-template",2),a.k0s()())},dependencies:[w.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, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.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, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-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, 6px 24px 13px)}.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-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-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-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-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 0)}.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, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: 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 ye})();const Ke="--mat-dialog-transition-duration";function Ze(ye){return null==ye?null:"number"==typeof ye?ye:ye.endsWith("ms")?(0,Be.OE)(ye.substring(0,ye.length-2)):ye.endsWith("s")?1e3*(0,Be.OE)(ye.substring(0,ye.length-1)):"0"===ye?0:null}var it=function(ye){return ye[ye.OPEN=0]="OPEN",ye[ye.CLOSING=1]="CLOSING",ye[ye.CLOSED=2]="CLOSED",ye}(it||{});class Ot{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S.B;_beforeClosed=new S.B;_result;_closeFallbackTimeout;_state=it.OPEN;_closeInteractionType;constructor(He,z,L){this._ref=He,this._containerInstance=L,this.disableClose=z.disableClose,this.id=He.id,He.addPanelClass("mat-mdc-dialog-panel"),L._animationStateChanged.pipe((0,lt.p)(V=>"opened"===V.state),(0,bt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,lt.p)(V=>"closed"===V.state),(0,bt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),He.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,st.h)(this.backdropClick(),this.keydownEvents().pipe((0,lt.p)(V=>V.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(V)))).subscribe(V=>{this.disableClose||(V.preventDefault(),Qt(this,"keydown"===V.type?"keyboard":"mouse"))})}close(He){this._result=He,this._containerInstance._animationStateChanged.pipe((0,lt.p)(z=>"closing"===z.state),(0,bt.s)(1)).subscribe(z=>{this._beforeClosed.next(He),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),z.totalTime+100)}),this._state=it.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(He){let z=this._ref.config.positionStrategy;return He&&(He.left||He.right)?He.left?z.left(He.left):z.right(He.right):z.centerHorizontally(),He&&(He.top||He.bottom)?He.top?z.top(He.top):z.bottom(He.bottom):z.centerVertically(),this._ref.updatePosition(),this}updateSize(He="",z=""){return this._ref.updateSize(He,z),this}addPanelClass(He){return this._ref.addPanelClass(He),this}removePanelClass(He){return this._ref.removePanelClass(He),this}getState(){return this._state}_finishDialogClose(){this._state=it.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Qt(ye,He,z){return ye._closeInteractionType=He,ye.close(z)}const Me=new a.nKC("MatMdcDialogData"),ht=new a.nKC("mat-mdc-dialog-default-options"),Xt=new a.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const ye=(0,a.WQX)(i.hJ);return()=>ye.scrollStrategies.block()}});let Zt=(()=>{class ye{_overlay=(0,a.WQX)(i.hJ);_defaultOptions=(0,a.WQX)(ht,{optional:!0});_scrollStrategy=(0,a.WQX)(Xt);_parentDialog=(0,a.WQX)(ye,{optional:!0,skipSelf:!0});_idGenerator=(0,a.WQX)(c.g7);_dialog=(0,a.WQX)(le);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S.B;_afterOpenedAtThisLevel=new S.B;dialogConfigClass=Wn;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const z=this._parentDialog;return z?z._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,M.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,X.Z)(void 0)));constructor(){this._dialogRefConstructor=Ot,this._dialogContainerType=Ft,this._dialogDataToken=Me}open(z,L){let V;(L={...this._defaultOptions||new Wn,...L}).id=L.id||this._idGenerator.getId("mat-mdc-dialog-"),L.scrollStrategy=L.scrollStrategy||this._scrollStrategy();const Ne=this._dialog.open(z,{...L,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:L},{provide:re,useValue:L}]},templateContext:()=>({dialogRef:V}),providers:(ft,mt,Tt)=>(V=new this._dialogRefConstructor(ft,L,Tt),V.updatePosition(L?.position),[{provide:this._dialogContainerType,useValue:Tt},{provide:this._dialogDataToken,useValue:mt.data},{provide:this._dialogRefConstructor,useValue:V}])});return V.componentRef=Ne.componentRef,V.componentInstance=Ne.componentInstance,this.openDialogs.push(V),this.afterOpened.next(V),V.afterClosed().subscribe(()=>{const ft=this.openDialogs.indexOf(V);ft>-1&&(this.openDialogs.splice(ft,1),this.openDialogs.length||this._getAfterAllClosed().next())}),V}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(z){return this.openDialogs.find(L=>L.id===z)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(z){let L=z.length;for(;L--;)z[L].close()}static \u0275fac=function(L){return new(L||ye)};static \u0275prov=a.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})(),rt=(()=>{class ye{dialogRef=(0,a.WQX)(Ot,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Zt);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=Mn(this._elementRef,this._dialog.openDialogs))}ngOnChanges(z){const L=z._matDialogClose||z._matDialogCloseResult;L&&(this.dialogResult=L.currentValue)}_onButtonClick(z){Qt(this.dialogRef,0===z.screenX&&0===z.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(L){return new(L||ye)};static \u0275dir=a.FsC({type:ye,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,V){1&L&&a.bIt("click",function(ft){return V._onButtonClick(ft)}),2&L&&a.BMQ("aria-label",V.ariaLabel||null)("type",V.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[a.OA$]})}return ye})(),Ht=(()=>{class ye{_dialogRef=(0,a.WQX)(Ot,{optional:!0});_elementRef=(0,a.WQX)(a.aKT);_dialog=(0,a.WQX)(Zt);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Mn(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(L){return new(L||ye)};static \u0275dir=a.FsC({type:ye})}return ye})(),Nn=(()=>{class ye{static \u0275fac=function(L){return new(L||ye)};static \u0275dir=a.FsC({type:ye,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[a.nM4([at.uv])]})}return ye})(),mn=(()=>{class ye extends Ht{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let z;return function(V){return(z||(z=a.xGo(ye)))(V||ye)}})();static \u0275dir=a.FsC({type:ye,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(L,V){2&L&&a.AVh("mat-mdc-dialog-actions-align-start","start"===V.align)("mat-mdc-dialog-actions-align-center","center"===V.align)("mat-mdc-dialog-actions-align-end","end"===V.align)},inputs:{align:"align"},features:[a.Vt3]})}return ye})();function Mn(ye,He){let z=ye.nativeElement.parentElement;for(;z&&!z.classList.contains("mat-mdc-dialog-container");)z=z.parentElement;return z?He.find(L=>L.id===z.id):null}let Kt=(()=>{class ye{static \u0275fac=function(L){return new(L||ye)};static \u0275mod=a.$C({type:ye});static \u0275inj=a.G2t({providers:[Zt],imports:[xe,i.z_,w.jc,sn.yE,sn.yE]})}return ye})()},7702:(o,s,n)=>{"use strict";n.d(s,{q:()=>y,w:()=>w});var i=n(3107),a=n(3022),c=n(2902);let y=(()=>{class C{get vertical(){return this._vertical}set vertical(S){this._vertical=(0,a.he)(S)}_vertical=!1;get inset(){return this._inset}set inset(S){this._inset=(0,a.he)(S)}_inset=!1;static \u0275fac=function(M){return new(M||C)};static \u0275cmp=i.VBU({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(M,k){2&M&&(i.BMQ("aria-orientation",k.vertical?"vertical":"horizontal"),i.AVh("mat-divider-vertical",k.vertical)("mat-divider-horizontal",!k.vertical)("mat-divider-inset",k.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(M,k){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline));border-right-width:var(--mat-divider-width, 1px)}.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 C})(),w=(()=>{class C{static \u0275fac=function(M){return new(M||C)};static \u0275mod=i.$C({type:C});static \u0275inj=i.G2t({imports:[c.yE,c.yE]})}return C})()},6071:(o,s,n)=>{"use strict";n.d(s,{xb:()=>cn,U$:()=>hn,TL:()=>en,rl:()=>Mr,qT:()=>ft,RG:()=>Vr,MV:()=>Nn,nJ:()=>rt,JW:()=>Mn,yw:()=>Kt});var i=n(3107),a=n(8559),c=n(2944),y=n(3022),w=n(2147),C=n(4460),T=n(5710),S=n(8447),M=n(7509),k=n(593),R=n(7947),X=n(5351),Z=n(2483),_e=n(1483),pe=n(5424),de=n(1698),De=n(8249);class Le{_box;_destroyed=new S.B;_resizeSubject=new S.B;_resizeObserver;_elementObservables=new Map;constructor(Vt){this._box=Vt,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(Oe=>this._resizeSubject.next(Oe)))}observe(Vt){return this._elementObservables.has(Vt)||this._elementObservables.set(Vt,new de.c(Oe=>{const Ge=this._resizeSubject.subscribe(Oe);return this._resizeObserver?.observe(Vt,{box:this._box}),()=>{this._resizeObserver?.unobserve(Vt),Ge.unsubscribe(),this._elementObservables.delete(Vt)}}).pipe((0,_e.p)(Oe=>Oe.some(Ge=>Ge.target===Vt)),(0,De.t)({bufferSize:1,refCount:!0}),(0,pe.Q)(this._destroyed))),this._elementObservables.get(Vt)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let Ae=(()=>{class vt{_observers=new Map;_ngZone=(0,i.WQX)(i.SKi);constructor(){}ngOnDestroy(){for(const[,Oe]of this._observers)Oe.destroy();this._observers.clear()}observe(Oe,Ge){const je=Ge?.box||"content-box";return this._observers.has(je)||this._observers.set(je,new Le(je)),this._observers.get(je).observe(Oe)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275prov=i.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})}return vt})();var we=n(1204),le=n(7747),ae=n(2902);const xe=["notch"],Be=["matFormFieldNotchedOutline",""],st=["*"],lt=["textField"],bt=["iconPrefixContainer"],at=["textPrefixContainer"],sn=["iconSuffixContainer"],fn=["textSuffixContainer"],En=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Wn=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function wn(vt,Vt){1&vt&&i.nrm(0,"span",21)}function Je(vt,Vt){if(1&vt&&(i.j41(0,"label",20),i.SdG(1,1),i.DNE(2,wn,1,0,"span",21),i.k0s()),2&vt){const Oe=i.XpG(2);i.Y8G("floating",Oe._shouldLabelFloat())("monitorResize",Oe._hasOutline())("id",Oe._labelId),i.BMQ("for",Oe._control.disableAutomaticLabeling?null:Oe._control.id),i.R7$(2),i.vxM(!Oe.hideRequiredMarker&&Oe._control.required?2:-1)}}function _t(vt,Vt){if(1&vt&&i.DNE(0,Je,3,5,"label",20),2&vt){const Oe=i.XpG();i.vxM(Oe._hasFloatingLabel()?0:-1)}}function ze(vt,Vt){1&vt&&i.nrm(0,"div",7)}function Ue(vt,Vt){}function Ft(vt,Vt){if(1&vt&&i.DNE(0,Ue,0,0,"ng-template",13),2&vt){i.XpG(2);const Oe=i.sdS(1);i.Y8G("ngTemplateOutlet",Oe)}}function Ke(vt,Vt){if(1&vt&&(i.j41(0,"div",9),i.DNE(1,Ft,1,1,null,13),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("matFormFieldNotchedOutlineOpen",Oe._shouldLabelFloat()),i.R7$(),i.vxM(Oe._forceDisplayInfixLabel()?-1:1)}}function Ze(vt,Vt){1&vt&&(i.j41(0,"div",10,2),i.SdG(2,2),i.k0s())}function it(vt,Vt){1&vt&&(i.j41(0,"div",11,3),i.SdG(2,3),i.k0s())}function Ot(vt,Vt){}function Qt(vt,Vt){if(1&vt&&i.DNE(0,Ot,0,0,"ng-template",13),2&vt){i.XpG();const Oe=i.sdS(1);i.Y8G("ngTemplateOutlet",Oe)}}function Me(vt,Vt){1&vt&&(i.j41(0,"div",14,4),i.SdG(2,4),i.k0s())}function ht(vt,Vt){1&vt&&(i.j41(0,"div",15,5),i.SdG(2,5),i.k0s())}function Xt(vt,Vt){1&vt&&i.nrm(0,"div",16)}function Tn(vt,Vt){if(1&vt&&(i.j41(0,"div",18),i.SdG(1,6),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("@transitionMessages",Oe._subscriptAnimationState)}}function Wt(vt,Vt){if(1&vt&&(i.j41(0,"mat-hint",22),i.EFF(1),i.k0s()),2&vt){const Oe=i.XpG(2);i.Y8G("id",Oe._hintLabelId),i.R7$(),i.JRh(Oe.hintLabel)}}function Zt(vt,Vt){if(1&vt&&(i.j41(0,"div",19),i.DNE(1,Wt,2,2,"mat-hint",22),i.SdG(2,7),i.nrm(3,"div",23),i.SdG(4,8),i.k0s()),2&vt){const Oe=i.XpG();i.Y8G("@transitionMessages",Oe._subscriptAnimationState),i.R7$(),i.vxM(Oe.hintLabel?1:-1)}}let rt=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-label"]]})}return vt})();const Ht=new i.nKC("MatError");let en=(()=>{class vt{id=(0,i.WQX)(a.g7).getId("mat-mdc-error-");constructor(){(0,i.WQX)(new i.ES_("aria-live"),{optional:!0})||(0,i.WQX)(i.aKT).nativeElement.setAttribute("aria-live","polite")}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-error"],["","matError",""]],hostAttrs:["aria-atomic","true",1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(Ge,je){2&Ge&&i.Mr5("id",je.id)},inputs:{id:"id"},features:[i.Jv_([{provide:Ht,useExisting:vt}])]})}return vt})(),Nn=(()=>{class vt{align="start";id=(0,i.WQX)(a.g7).getId("mat-mdc-hint-");static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(Ge,je){2&Ge&&(i.Mr5("id",je.id),i.BMQ("align",null),i.AVh("mat-mdc-form-field-hint-end","end"===je.align))},inputs:{align:"align",id:"id"}})}return vt})();const mn=new i.nKC("MatPrefix");let Mn=(()=>{class vt{set _isTextSelector(Oe){this._isText=!0}_isText=!1;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[i.Jv_([{provide:mn,useExisting:vt}])]})}return vt})();const tt=new i.nKC("MatSuffix");let Kt=(()=>{class vt{set _isTextSelector(Oe){this._isText=!0}_isText=!1;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[i.Jv_([{provide:tt,useExisting:vt}])]})}return vt})();const At=new i.nKC("FloatingLabelParent");let Te=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);get floating(){return this._floating}set floating(Oe){this._floating=Oe,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Oe){this._monitorResize=Oe,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,i.WQX)(Ae);_ngZone=(0,i.WQX)(i.SKi);_parent=(0,i.WQX)(At);_resizeSubscription=new T.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function ye(vt){if(null!==vt.offsetParent)return vt.scrollWidth;const Oe=vt.cloneNode(!0);Oe.style.setProperty("position","absolute"),Oe.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Oe);const Ge=Oe.scrollWidth;return Oe.remove(),Ge}(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 \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-floating-label--float-above",je.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return vt})();const He="mdc-line-ripple--active",z="mdc-line-ripple--deactivating";let L=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);constructor(){(0,i.WQX)(i.SKi).runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const Oe=this._elementRef.nativeElement.classList;Oe.remove(z),Oe.add(He)}deactivate(){this._elementRef.nativeElement.classList.add(z)}_handleTransitionEnd=Oe=>{const Ge=this._elementRef.nativeElement.classList,je=Ge.contains(z);"opacity"===Oe.propertyName&&je&&Ge.remove(He,z)};ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return vt})(),V=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);open=!1;_notch;constructor(){}ngAfterViewInit(){const Oe=this._elementRef.nativeElement.querySelector(".mdc-floating-label");Oe?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(Oe.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>Oe.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Oe){this._notch.nativeElement.style.width=this.open&&Oe?`calc(${Oe}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(Ge,je){if(1&Ge&&i.GBs(xe,5),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._notch=Dt.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(Ge,je){2&Ge&&i.AVh("mdc-notched-outline--notched",je.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Be,ngContentSelectors:st,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(Ge,je){1&Ge&&(i.NAR(),i.nrm(0,"div",1),i.j41(1,"div",2,0),i.SdG(3),i.k0s(),i.nrm(4,"div",3))},encapsulation:2,changeDetection:0})}return vt})();const Ne={transitionMessages:(0,we.hZ)("transitionMessages",[(0,we.wk)("enter",(0,we.iF)({opacity:1,transform:"translateY(0%)"})),(0,we.kY)("void => enter",[(0,we.iF)({opacity:0,transform:"translateY(-5px)"}),(0,we.i0)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ft=(()=>{class vt{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275dir=i.FsC({type:vt})}return vt})();const cn=new i.nKC("MatFormField"),hn=new i.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Mr=(()=>{class vt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_dir=(0,i.WQX)(c.dS);_platform=(0,i.WQX)(w.OD);_idGenerator=(0,i.WQX)(a.g7);_defaults=(0,i.WQX)(hn,{optional:!0});_animationMode=(0,i.WQX)(i.bc$,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,i.sbv)(rt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Oe){this._hideRequiredMarker=(0,y.he)(Oe)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Oe){Oe!==this._floatLabel&&(this._floatLabel=Oe,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(Oe){const Ge=this._appearance;this._appearance=Oe||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==Ge&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance="fill";get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Oe){this._subscriptSizing=Oe||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Oe){this._hintLabel=Oe,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_subscriptAnimationState="";get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Oe){this._explicitFormFieldControl=Oe}_destroyed=new S.B;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_stateChanges;_valueChanges;_describedByChanges;_injector=(0,i.WQX)(i.zZn);constructor(){const Oe=this._defaults;Oe&&(Oe.appearance&&(this.appearance=Oe.appearance),this._hideRequiredMarker=!!Oe?.hideRequiredMarker,Oe.color&&(this.color=Oe.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._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,i.EWP)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Oe){const Ge=this._control,je="mat-mdc-form-field-type-";Oe&&this._elementRef.nativeElement.classList.remove(je+Oe.controlType),Ge.controlType&&this._elementRef.nativeElement.classList.add(je+Ge.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=Ge.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=Ge.stateChanges.pipe((0,k.Z)([void 0,void 0]),(0,R.T)(()=>[Ge.errorState,Ge.userAriaDescribedBy]),function re(){return(0,X.N)((vt,Vt)=>{let Oe,Ge=!1;vt.subscribe((0,Z._)(Vt,je=>{const Dt=Oe;Oe=je,Ge&&Vt.next([Dt,je]),Ge=!0}))})}(),(0,_e.p)(([[Dt,ct],[Bt,xn]])=>Dt!==Bt||ct!==xn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),Ge.ngControl&&Ge.ngControl.valueChanges&&(this._valueChanges=Ge.ngControl.valueChanges.pipe((0,pe.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Oe=>!Oe._isText),this._hasTextPrefix=!!this._prefixChildren.find(Oe=>Oe._isText),this._hasIconSuffix=!!this._suffixChildren.find(Oe=>!Oe._isText),this._hasTextSuffix=!!this._suffixChildren.find(Oe=>Oe._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,M.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,i.Tzd)(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe((0,pe.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()}_hasFloatingLabel=(0,i.EWP)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Oe){const Ge=this._control?this._control.ngControl:null;return Ge&&Ge[Oe]}_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 Oe=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Oe.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const Ge=this._hintChildren?this._hintChildren.find(Dt=>"start"===Dt.align):null,je=this._hintChildren?this._hintChildren.find(Dt=>"end"===Dt.align):null;Ge?Oe.push(Ge.id):this._hintLabel&&Oe.push(this._hintLabelId),je&&Oe.push(je.id)}else this._errorChildren&&Oe.push(...this._errorChildren.map(Ge=>Ge.id));this._control.setDescribedByIds(Oe)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;const Oe=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(Oe.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdate=!0);const Ge=this._iconPrefixContainer?.nativeElement,je=this._textPrefixContainer?.nativeElement,Dt=this._iconSuffixContainer?.nativeElement,ct=this._textSuffixContainer?.nativeElement,Bt=Ge?.getBoundingClientRect().width??0,xn=je?.getBoundingClientRect().width??0,er=Dt?.getBoundingClientRect().width??0,xr=ct?.getBoundingClientRect().width??0;Oe.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${Bt+xn}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`,this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Bt+xn+er+xr}px)`)}_isAttachedToDom(){const Oe=this._elementRef.nativeElement;if(Oe.getRootNode){const Ge=Oe.getRootNode();return Ge&&Ge!==Oe}return document.documentElement.contains(Oe)}static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275cmp=i.VBU({type:vt,selectors:[["mat-form-field"]],contentQueries:function(Ge,je,Dt){if(1&Ge&&(i.C6U(Dt,je._labelChild,rt,5),i.wni(Dt,ft,5),i.wni(Dt,mn,5),i.wni(Dt,tt,5),i.wni(Dt,Ht,5),i.wni(Dt,Nn,5)),2&Ge){let ct;i.NyB(),i.mGM(ct=i.lsd())&&(je._formFieldControl=ct.first),i.mGM(ct=i.lsd())&&(je._prefixChildren=ct),i.mGM(ct=i.lsd())&&(je._suffixChildren=ct),i.mGM(ct=i.lsd())&&(je._errorChildren=ct),i.mGM(ct=i.lsd())&&(je._hintChildren=ct)}},viewQuery:function(Ge,je){if(1&Ge&&(i.GBs(lt,5),i.GBs(bt,5),i.GBs(at,5),i.GBs(sn,5),i.GBs(fn,5),i.GBs(Te,5),i.GBs(V,5),i.GBs(L,5)),2&Ge){let Dt;i.mGM(Dt=i.lsd())&&(je._textField=Dt.first),i.mGM(Dt=i.lsd())&&(je._iconPrefixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._textPrefixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._iconSuffixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._textSuffixContainer=Dt.first),i.mGM(Dt=i.lsd())&&(je._floatingLabel=Dt.first),i.mGM(Dt=i.lsd())&&(je._notchedOutline=Dt.first),i.mGM(Dt=i.lsd())&&(je._lineRipple=Dt.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(Ge,je){2&Ge&&i.AVh("mat-mdc-form-field-label-always-float",je._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",je._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",je._hasIconSuffix)("mat-form-field-invalid",je._control.errorState)("mat-form-field-disabled",je._control.disabled)("mat-form-field-autofilled",je._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===je._animationMode)("mat-form-field-appearance-fill","fill"==je.appearance)("mat-form-field-appearance-outline","outline"==je.appearance)("mat-form-field-hide-placeholder",je._hasFloatingLabel()&&!je._shouldLabelFloat())("mat-focused",je._control.focused)("mat-primary","accent"!==je.color&&"warn"!==je.color)("mat-accent","accent"===je.color)("mat-warn","warn"===je.color)("ng-untouched",je._shouldForward("untouched"))("ng-touched",je._shouldForward("touched"))("ng-pristine",je._shouldForward("pristine"))("ng-dirty",je._shouldForward("dirty"))("ng-valid",je._shouldForward("valid"))("ng-invalid",je._shouldForward("invalid"))("ng-pending",je._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[i.Jv_([{provide:cn,useExisting:vt},{provide:At,useExisting:vt}])],ngContentSelectors:Wn,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(Ge,je){if(1&Ge){const Dt=i.RV6();i.NAR(En),i.DNE(0,_t,1,1,"ng-template",null,0,i.C5r),i.j41(2,"div",6,1),i.bIt("click",function(Bt){return i.eBV(Dt),i.Njj(je._control.onContainerClick(Bt))}),i.DNE(4,ze,1,0,"div",7),i.j41(5,"div",8),i.DNE(6,Ke,2,2,"div",9)(7,Ze,3,0,"div",10)(8,it,3,0,"div",11),i.j41(9,"div",12),i.DNE(10,Qt,1,1,null,13),i.SdG(11),i.k0s(),i.DNE(12,Me,3,0,"div",14)(13,ht,3,0,"div",15),i.k0s(),i.DNE(14,Xt,1,0,"div",16),i.k0s(),i.j41(15,"div",17),i.DNE(16,Tn,2,1,"div",18)(17,Zt,5,2,"div",19),i.k0s()}if(2&Ge){let Dt;i.R7$(2),i.AVh("mdc-text-field--filled",!je._hasOutline())("mdc-text-field--outlined",je._hasOutline())("mdc-text-field--no-label",!je._hasFloatingLabel())("mdc-text-field--disabled",je._control.disabled)("mdc-text-field--invalid",je._control.errorState),i.R7$(2),i.vxM(je._hasOutline()||je._control.disabled?-1:4),i.R7$(2),i.vxM(je._hasOutline()?6:-1),i.R7$(),i.vxM(je._hasIconPrefix?7:-1),i.R7$(),i.vxM(je._hasTextPrefix?8:-1),i.R7$(2),i.vxM(!je._hasOutline()||je._forceDisplayInfixLabel()?10:-1),i.R7$(2),i.vxM(je._hasTextSuffix?12:-1),i.R7$(),i.vxM(je._hasIconSuffix?13:-1),i.R7$(),i.vxM(je._hasOutline()?-1:14),i.R7$(),i.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===je.subscriptSizing),i.R7$(),i.vxM("error"===(Dt=je._getDisplayedMessages())?16:"hint"===Dt?17:-1)}},dependencies:[Te,V,C.T3,L,Nn],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--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.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-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-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-sys-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-sys-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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .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-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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}@media(forced-colors: 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-sys-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-sys-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-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-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-sys-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-sys-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-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-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-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.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-sys-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-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.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-sys-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-sys-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-sys-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, 2px)}.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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-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-sys-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, 1px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-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-sys-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, 2px)}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.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, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/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, 56px) / 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-sys-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-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-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-sys-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-sys-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, 0)}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, var(--mat-sys-neutral10))}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, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.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-sys-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-sys-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, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: 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-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.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)}[dir=rtl] .mat-mdc-form-field{text-align:right}.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-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-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-sys-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-sys-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-infix:has(textarea[cols]){width:auto}.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:[Ne.transitionMessages]},changeDetection:0})}return vt})(),Vr=(()=>{class vt{static \u0275fac=function(Ge){return new(Ge||vt)};static \u0275mod=i.$C({type:vt});static \u0275inj=i.G2t({imports:[ae.yE,le.w5,ae.yE]})}return vt})()},3904:(o,s,n)=>{"use strict";n.d(s,{An:()=>_t,m_:()=>ze,tp:()=>xe});var i=n(3107),a=n(2902),c=n(4460),y=n(3016),w=n(8915),C=n(2653),T=n(5710),S=n(2040),M=n(7947),k=n(7178),R=n(4447),X=n(6218),Z=n(7610),re=n(7691),_e=n(6388);const pe=["*"];let de;function Ee(Ue){return function De(){if(void 0===de&&(de=null,typeof window<"u")){const Ue=window;void 0!==Ue.trustedTypes&&(de=Ue.trustedTypes.createPolicy("angular#components",{createHTML:Ft=>Ft}))}return de}()?.createHTML(Ue)||Ue}function Le(Ue){return Error(`Unable to find icon with the name "${Ue}"`)}function we(Ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ue}".`)}function le(Ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ue}".`)}class ae{url;svgText;options;svgElement;constructor(Ft,Ke,Ze){this.url=Ft,this.svgText=Ke,this.options=Ze}}let xe=(()=>{class Ue{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(Ke,Ze,it,Ot){this._httpClient=Ke,this._sanitizer=Ze,this._errorHandler=Ot,this._document=it}addSvgIcon(Ke,Ze,it){return this.addSvgIconInNamespace("",Ke,Ze,it)}addSvgIconLiteral(Ke,Ze,it){return this.addSvgIconLiteralInNamespace("",Ke,Ze,it)}addSvgIconInNamespace(Ke,Ze,it,Ot){return this._addSvgIconConfig(Ke,Ze,new ae(it,null,Ot))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,Ze,it,Ot){const Qt=this._sanitizer.sanitize(i.WPN.HTML,it);if(!Qt)throw le(it);const Me=Ee(Qt);return this._addSvgIconConfig(Ke,Ze,new ae("",Me,Ot))}addSvgIconSet(Ke,Ze){return this.addSvgIconSetInNamespace("",Ke,Ze)}addSvgIconSetLiteral(Ke,Ze){return this.addSvgIconSetLiteralInNamespace("",Ke,Ze)}addSvgIconSetInNamespace(Ke,Ze,it){return this._addSvgIconSetConfig(Ke,new ae(Ze,null,it))}addSvgIconSetLiteralInNamespace(Ke,Ze,it){const Ot=this._sanitizer.sanitize(i.WPN.HTML,Ze);if(!Ot)throw le(Ze);const Qt=Ee(Ot);return this._addSvgIconSetConfig(Ke,new ae("",Qt,it))}registerFontClassAlias(Ke,Ze=Ke){return this._fontCssClassesByAlias.set(Ke,Ze),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(...Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const Ze=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Ke);if(!Ze)throw we(Ke);const it=this._cachedIconsByUrl.get(Ze);return it?(0,y.of)(lt(it)):this._loadSvgIconFromConfig(new ae(Ke,null)).pipe((0,S.M)(Ot=>this._cachedIconsByUrl.set(Ze,Ot)),(0,M.T)(Ot=>lt(Ot)))}getNamedSvgIcon(Ke,Ze=""){const it=bt(Ze,Ke);let Ot=this._svgIconConfigs.get(it);if(Ot)return this._getSvgFromConfig(Ot);if(Ot=this._getIconConfigFromResolvers(Ze,Ke),Ot)return this._svgIconConfigs.set(it,Ot),this._getSvgFromConfig(Ot);const Qt=this._iconSetConfigs.get(Ze);return Qt?this._getSvgFromIconSetConfigs(Ke,Qt):(0,w.$)(Le(it))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,y.of)(lt(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,M.T)(Ze=>lt(Ze)))}_getSvgFromIconSetConfigs(Ke,Ze){const it=this._extractIconWithNameFromAnySet(Ke,Ze);if(it)return(0,y.of)(it);const Ot=Ze.filter(Qt=>!Qt.svgText).map(Qt=>this._loadSvgIconSetFromConfig(Qt).pipe((0,k.W)(Me=>{const Xt=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,Qt.url)} failed: ${Me.message}`;return this._errorHandler.handleError(new Error(Xt)),(0,y.of)(null)})));return(0,C.p)(Ot).pipe((0,M.T)(()=>{const Qt=this._extractIconWithNameFromAnySet(Ke,Ze);if(!Qt)throw Le(Ke);return Qt}))}_extractIconWithNameFromAnySet(Ke,Ze){for(let it=Ze.length-1;it>=0;it--){const Ot=Ze[it];if(Ot.svgText&&Ot.svgText.toString().indexOf(Ke)>-1){const Qt=this._svgElementFromConfig(Ot),Me=this._extractSvgIconFromSet(Qt,Ke,Ot.options);if(Me)return Me}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,S.M)(Ze=>Ke.svgText=Ze),(0,M.T)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,y.of)(null):this._fetchIcon(Ke).pipe((0,S.M)(Ze=>Ke.svgText=Ze))}_extractSvgIconFromSet(Ke,Ze,it){const Ot=Ke.querySelector(`[id="${Ze}"]`);if(!Ot)return null;const Qt=Ot.cloneNode(!0);if(Qt.removeAttribute("id"),"svg"===Qt.nodeName.toLowerCase())return this._setSvgAttributes(Qt,it);if("symbol"===Qt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Qt),it);const Me=this._svgElementFromString(Ee(""));return Me.appendChild(Qt),this._setSvgAttributes(Me,it)}_svgElementFromString(Ke){const Ze=this._document.createElement("DIV");Ze.innerHTML=Ke;const it=Ze.querySelector("svg");if(!it)throw Error(" tag not found");return it}_toSvgElement(Ke){const Ze=this._svgElementFromString(Ee("")),it=Ke.attributes;for(let Ot=0;OtEe(Xt)),(0,R.j)(()=>this._inProgressUrlFetches.delete(Qt)),(0,X.u)());return this._inProgressUrlFetches.set(Qt,ht),ht}_addSvgIconConfig(Ke,Ze,it){return this._svgIconConfigs.set(bt(Ke,Ze),it),this}_addSvgIconSetConfig(Ke,Ze){const it=this._iconSetConfigs.get(Ke);return it?it.push(Ze):this._iconSetConfigs.set(Ke,[Ze]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const Ze=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(Ze,Ke.options),Ke.svgElement=Ze}return Ke.svgElement}_getIconConfigFromResolvers(Ke,Ze){for(let it=0;itFt?Ft.pathname+Ft.search:""}}}),Wn=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],wn=Wn.map(Ue=>`[${Ue}]`).join(", "),Je=/^url\(['"]?#(.*?)['"]?\)$/;let _t=(()=>{class Ue{_elementRef=(0,i.WQX)(i.aKT);_iconRegistry=(0,i.WQX)(xe);_location=(0,i.WQX)(fn);_errorHandler=(0,i.WQX)(i.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(Ke){this._color=Ke}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(Ke){Ke!==this._svgIcon&&(Ke?this._updateSvgIcon(Ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ke)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(Ke){const Ze=this._cleanupFontValue(Ke);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(Ke){const Ze=this._cleanupFontValue(Ke);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const Ke=(0,i.WQX)(new i.ES_("aria-hidden"),{optional:!0}),Ze=(0,i.WQX)(sn,{optional:!0});Ze&&(Ze.color&&(this.color=this._defaultColor=Ze.color),Ze.fontSet&&(this.fontSet=Ze.fontSet)),Ke||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(Ke){if(!Ke)return["",""];const Ze=Ke.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.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(Ke){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(Ke),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(Ke)}_clearSvgElement(){const Ke=this._elementRef.nativeElement;let Ze=Ke.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const it=Ke.childNodes[Ze];(1!==it.nodeType||"svg"===it.nodeName.toLowerCase())&&it.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ke=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(it=>it.length>0);this._previousFontSetClass.forEach(it=>Ke.classList.remove(it)),Ze.forEach(it=>Ke.classList.add(it)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ke.classList.remove(this._previousFontIconClass),this.fontIcon&&Ke.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ke){return"string"==typeof Ke?Ke.trim().split(" ")[0]:Ke}_prependPathToReferences(Ke){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((it,Ot)=>{it.forEach(Qt=>{Ot.setAttribute(Qt.name,`url('${Ke}#${Qt.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const Ze=Ke.querySelectorAll(wn),it=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ot=0;Ot{const Me=Ze[Ot],ht=Me.getAttribute(Qt),Xt=ht?ht.match(Je):null;if(Xt){let Tn=it.get(Me);Tn||(Tn=[],it.set(Me,Tn)),Tn.push({name:Qt,value:Xt[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[Ze,it]=this._splitIconName(Ke);Ze&&(this._svgNamespace=Ze),it&&(this._svgName=it),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(it,Ze).pipe((0,Z.s)(1)).subscribe(Ot=>this._setSvgElement(Ot),Ot=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${it}! ${Ot.message}`))})}}static \u0275fac=function(Ze){return new(Ze||Ue)};static \u0275cmp=i.VBU({type:Ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(Ze,it){2&Ze&&(i.BMQ("data-mat-icon-type",it._usingFontIcon()?"font":"svg")("data-mat-icon-name",it._svgName||it.fontIcon)("data-mat-icon-namespace",it._svgNamespace||it.fontSet)("fontIcon",it._usingFontIcon()?it.fontIcon:null),i.HbH(it.color?"mat-"+it.color:""),i.AVh("mat-icon-inline",it.inline)("mat-icon-no-color","primary"!==it.color&&"accent"!==it.color&&"warn"!==it.color))},inputs:{color:"color",inline:[2,"inline","inline",i.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.GFd],ngContentSelectors:pe,decls:1,vars:0,template:function(Ze,it){1&Ze&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.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 Ue})(),ze=(()=>{class Ue{static \u0275fac=function(Ze){return new(Ze||Ue)};static \u0275mod=i.$C({type:Ue});static \u0275inj=i.G2t({imports:[a.yE,a.yE]})}return Ue})()},6389:(o,s,n)=>{"use strict";n.d(s,{fS:()=>_e,fg:()=>re});var i=n(3022),a=n(2147),c=n(708),y=n(3107),w=n(8559),C=n(936),T=n(2902),S=n(6071),M=n(8447);const R=new y.nKC("MAT_INPUT_VALUE_ACCESSOR"),X=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Z=new y.nKC("MAT_INPUT_CONFIG");let re=(()=>{class pe{_elementRef=(0,y.WQX)(y.aKT);_platform=(0,y.WQX)(a.OD);ngControl=(0,y.WQX)(C.vO,{optional:!0,self:!0});_autofillMonitor=(0,y.WQX)(c.P8);_ngZone=(0,y.WQX)(y.SKi);_formField=(0,y.WQX)(S.xb,{optional:!0});_uid=(0,y.WQX)(w.g7).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_webkitBlinkWheelListenerAttached=!1;_config=(0,y.WQX)(Z,{optional:!0});_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new M.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(De){this._disabled=(0,i.he)(De),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(De){this._id=De||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(C.k0.required)??!1}set required(De){this._required=(0,i.he)(De)}_required;get type(){return this._type}set type(De){this._type=De||"text",this._validateType(),!this._isTextarea&&(0,a.MU)().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(De){this._errorStateTracker.matcher=De}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(De){De!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(De):this._inputValueAccessor.value=De,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(De){this._readonly=(0,i.he)(De)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(De){this._errorStateTracker.errorState=De}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(De=>(0,a.MU)().has(De));constructor(){const De=(0,y.WQX)(C.cV,{optional:!0}),Ee=(0,y.WQX)(C.j4,{optional:!0}),Le=(0,y.WQX)(T.es),Ae=(0,y.WQX)(R,{optional:!0,self:!0}),we=this._elementRef.nativeElement,le=we.nodeName.toLowerCase();Ae?(0,y.Hps)(Ae.value)?this._signalBasedValueAccessor=Ae:this._inputValueAccessor=Ae:this._inputValueAccessor=we,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{we.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new T.X0(Le,this.ngControl,Ee,De,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===le,this._isTextarea="textarea"===le,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=we.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,y.QZP)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(De=>{this.autofilled=De.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(De){this._elementRef.nativeElement.focus(De)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(De){if(De!==this.focused){if(!this._isNativeSelect&&De&&this.disabled&&this.disabledInteractive){const Ee=this._elementRef.nativeElement;"number"===Ee.type?(Ee.type="text",Ee.setSelectionRange(0,0),Ee.type="number"):Ee.setSelectionRange(0,0)}this.focused=De,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const De=this._elementRef.nativeElement.value;this._previousNativeValue!==De&&(this._previousNativeValue=De,this.stateChanges.next())}_dirtyCheckPlaceholder(){const De=this._getPlaceholder();if(De!==this._previousPlaceholder){const Ee=this._elementRef.nativeElement;this._previousPlaceholder=De,De?Ee.setAttribute("placeholder",De):Ee.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){X.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let De=this._elementRef.nativeElement.validity;return De&&De.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const De=this._elementRef.nativeElement,Ee=De.options[0];return this.focused||De.multiple||!this.empty||!!(De.selectedIndex>-1&&Ee&&Ee.label)}return this.focused&&!this.disabled||!this.empty}setDescribedByIds(De){const Ee=this._elementRef.nativeElement,Le=Ee.getAttribute("aria-describedby");let Ae;if(Le){const we=this._formFieldDescribedBy||De;Ae=De.concat(Le.split(" ").filter(le=>le&&!we.includes(le)))}else Ae=De;this._formFieldDescribedBy=De,Ae.length?Ee.setAttribute("aria-describedby",Ae.join(" ")):Ee.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const De=this._elementRef.nativeElement;return this._isNativeSelect&&(De.multiple||De.size>1)}_iOSKeyupListener=De=>{const Ee=De.target;!Ee.value&&0===Ee.selectionStart&&0===Ee.selectionEnd&&(Ee.setSelectionRange(1,1),Ee.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_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)}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Ee){return new(Ee||pe)};static \u0275dir=y.FsC({type:pe,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Ee,Le){1&Ee&&y.bIt("focus",function(){return Le._focusChanged(!0)})("blur",function(){return Le._focusChanged(!1)})("input",function(){return Le._onInput()}),2&Ee&&(y.Mr5("id",Le.id)("disabled",Le.disabled&&!Le.disabledInteractive)("required",Le.required),y.BMQ("name",Le.name||null)("readonly",Le._getReadonlyAttribute())("aria-disabled",Le.disabled&&Le.disabledInteractive?"true":null)("aria-invalid",Le.empty&&Le.required?null:Le.errorState)("aria-required",Le.required)("id",Le.id),y.AVh("mat-input-server",Le._isServer)("mat-mdc-form-field-textarea-control",Le._isInFormField&&Le._isTextarea)("mat-mdc-form-field-input-control",Le._isInFormField)("mat-mdc-input-disabled-interactive",Le.disabledInteractive)("mdc-text-field__input",Le._isInFormField)("mat-mdc-native-select-inline",Le._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",disabledInteractive:[2,"disabledInteractive","disabledInteractive",y.L39]},exportAs:["matInput"],features:[y.Jv_([{provide:S.qT,useExisting:pe}]),y.GFd,y.OA$]})}return pe})(),_e=(()=>{class pe{static \u0275fac=function(Ee){return new(Ee||pe)};static \u0275mod=y.$C({type:pe});static \u0275inj=y.G2t({imports:[T.yE,S.RG,S.RG,c.EE,T.yE]})}return pe})()},7818:(o,s,n)=>{"use strict";n.d(s,{Cn:()=>Tn,Cp:()=>Xt,fb:()=>sn,kk:()=>Ze});var i=n(3107),a=n(8559),c=n(5919),y=n(8447),w=n(7509),C=n(5710),T=n(3016),S=n(4984),M=n(593),k=n(2867),R=n(5424),X=n(1483),Z=n(7610),re=n(8136),_e=n(4460),pe=n(2902),de=n(5467),De=n(6192),Ee=n(1204),Le=n(2944),Ae=n(9666),we=n(2147),le=n(8108);const ae=["mat-menu-item",""],xe=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Be=["mat-icon, [matMenuItemIcon]","*"];function st(Wt,Zt){1&Wt&&(i.qSk(),i.j41(0,"svg",2),i.nrm(1,"polygon",3),i.k0s())}const lt=["*"];function bt(Wt,Zt){if(1&Wt){const rt=i.RV6();i.j41(0,"div",0),i.bIt("click",function(){i.eBV(rt);const en=i.XpG();return i.Njj(en.closed.emit("click"))})("@transformMenu.start",function(en){i.eBV(rt);const Nn=i.XpG();return i.Njj(Nn._onAnimationStart(en))})("@transformMenu.done",function(en){i.eBV(rt);const Nn=i.XpG();return i.Njj(Nn._onAnimationDone(en))}),i.j41(1,"div",1),i.SdG(2),i.k0s()()}if(2&Wt){const rt=i.XpG();i.HbH(rt._classList),i.Y8G("id",rt.panelId)("@transformMenu",rt._panelAnimationState),i.BMQ("aria-label",rt.ariaLabel||null)("aria-labelledby",rt.ariaLabelledby||null)("aria-describedby",rt.ariaDescribedby||null)}}const at=new i.nKC("MAT_MENU_PANEL");let sn=(()=>{class Wt{_elementRef=(0,i.WQX)(i.aKT);_document=(0,i.WQX)(_e.qQ);_focusMonitor=(0,i.WQX)(a.FN);_parentMenu=(0,i.WQX)(at,{optional:!0});_changeDetectorRef=(0,i.WQX)(i.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new y.B;_focused=new y.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,i.WQX)(de.l).load(pe.Ah),this._parentMenu?.addItem?.(this)}focus(rt,Ht){this._focusMonitor&&rt?this._focusMonitor.focusVia(this._getHostElement(),rt,Ht):this._getHostElement().focus(Ht),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(rt){this.disabled&&(rt.preventDefault(),rt.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const rt=this._elementRef.nativeElement.cloneNode(!0),Ht=rt.querySelectorAll("mat-icon, .material-icons");for(let en=0;en enter",(0,Ee.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ee.iF)({opacity:1,transform:"scale(1)"}))),(0,Ee.kY)("* => void",(0,Ee.i0)("100ms 25ms linear",(0,Ee.iF)({opacity:0})))]),fadeInItems:(0,Ee.hZ)("fadeInItems",[(0,Ee.wk)("showing",(0,Ee.iF)({opacity:1})),(0,Ee.kY)("void => *",[(0,Ee.iF)({opacity:0}),(0,Ee.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ft=new i.nKC("mat-menu-default-options",{providedIn:"root",factory:function Ke(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ze=(()=>{class Wt{_elementRef=(0,i.WQX)(i.aKT);_changeDetectorRef=(0,i.WQX)(i.gRc);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_allItems;_directDescendantItems=new i.rOR;_classList={};_panelAnimationState="void";_animationDone=new y.B;_isAnimating;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(rt){this._xPosition=rt,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(rt){this._yPosition=rt,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(rt){const Ht=this._previousPanelClass,en={...this._classList};Ht&&Ht.length&&Ht.split(" ").forEach(Nn=>{en[Nn]=!1}),this._previousPanelClass=rt,rt&&rt.length&&(rt.split(" ").forEach(Nn=>{en[Nn]=!0}),this._elementRef.nativeElement.className=""),this._classList=en}_previousPanelClass;get classList(){return this.panelClass}set classList(rt){this.panelClass=rt}closed=new i.bkB;close=this.closed;panelId=(0,i.WQX)(a.g7).getId("mat-menu-panel-");_injector=(0,i.WQX)(i.zZn);constructor(){const rt=(0,i.WQX)(Ft);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 a.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,M.Z)(this._directDescendantItems),(0,k.n)(rt=>(0,w.h)(...rt.map(Ht=>Ht._focused)))).subscribe(rt=>this._keyManager.updateActiveItem(rt)),this._directDescendantItems.changes.subscribe(rt=>{const Ht=this._keyManager;if("enter"===this._panelAnimationState&&Ht.activeItem?._hasFocus()){const en=rt.toArray(),Nn=Math.max(0,Math.min(en.length-1,Ht.activeItemIndex||0));en[Nn]&&!en[Nn].disabled?Ht.setActiveItem(Nn):Ht.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy()}_hovered(){return this._directDescendantItems.changes.pipe((0,M.Z)(this._directDescendantItems),(0,k.n)(Ht=>(0,w.h)(...Ht.map(en=>en._hovered))))}addItem(rt){}removeItem(rt){}_handleKeydown(rt){const Ht=rt.keyCode,en=this._keyManager;switch(Ht){case c._f:(0,c.rp)(rt)||(rt.preventDefault(),this.closed.emit("keydown"));break;case c.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case c.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ht===c.i7||Ht===c.n6)&&en.setFocusOrigin("keyboard"),void en.onKeydown(rt)}}focusFirstItem(rt="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,i.mal)(()=>{let Ht=null;if(this._directDescendantItems.length&&(Ht=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Ht||!Ht.contains(document.activeElement)){const en=this._keyManager;en.setFocusOrigin(rt).setFirstItemActive(),!en.activeItem&&Ht&&Ht.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(rt){}setPositionClasses(rt=this.xPosition,Ht=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===rt,"mat-menu-after":"after"===rt,"mat-menu-above":"above"===Ht,"mat-menu-below":"below"===Ht},this._changeDetectorRef.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(rt){this._animationDone.next(rt),this._isAnimating=!1}_onAnimationStart(rt){this._isAnimating=!0,"enter"===rt.toState&&0===this._keyManager.activeItemIndex&&(rt.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,M.Z)(this._allItems)).subscribe(rt=>{this._directDescendantItems.reset(rt.filter(Ht=>Ht._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275cmp=i.VBU({type:Wt,selectors:[["mat-menu"]],contentQueries:function(Ht,en,Nn){if(1&Ht&&(i.wni(Nn,wn,5),i.wni(Nn,sn,5),i.wni(Nn,sn,4)),2&Ht){let mn;i.mGM(mn=i.lsd())&&(en.lazyContent=mn.first),i.mGM(mn=i.lsd())&&(en._allItems=mn),i.mGM(mn=i.lsd())&&(en.items=mn)}},viewQuery:function(Ht,en){if(1&Ht&&i.GBs(i.C4Q,5),2&Ht){let Nn;i.mGM(Nn=i.lsd())&&(en.templateRef=Nn.first)}},hostVars:3,hostBindings:function(Ht,en){2&Ht&&i.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",i.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",rt=>null==rt?null:(0,i.L39)(rt)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i.Jv_([{provide:at,useExisting:Wt}]),i.GFd],ngContentSelectors:lt,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","id"],[1,"mat-mdc-menu-content"]],template:function(Ht,en){1&Ht&&(i.NAR(),i.DNE(0,bt,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-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-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-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));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}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding: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;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-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-sys-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, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[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, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.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, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: 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:[_t.transformMenu,_t.fadeInItems]},changeDetection:0})}return Wt})();const it=new i.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Wt=(0,i.WQX)(Ae.hJ);return()=>Wt.scrollStrategies.reposition()}}),Qt={provide:it,deps:[Ae.hJ],useFactory:function Ot(Wt){return()=>Wt.scrollStrategies.reposition()}},Me=(0,we.BQ)({passive:!0});let Xt=(()=>{class Wt{_overlay=(0,i.WQX)(Ae.hJ);_element=(0,i.WQX)(i.aKT);_viewContainerRef=(0,i.WQX)(i.c1b);_menuItemInstance=(0,i.WQX)(sn,{optional:!0,self:!0});_dir=(0,i.WQX)(Le.dS,{optional:!0});_focusMonitor=(0,i.WQX)(a.FN);_ngZone=(0,i.WQX)(i.SKi);_scrollStrategy=(0,i.WQX)(it);_changeDetectorRef=(0,i.WQX)(i.gRc);_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=C.yU.EMPTY;_hoverSubscription=C.yU.EMPTY;_menuCloseSubscription=C.yU.EMPTY;_parentMaterialMenu;_parentInnerPadding;_handleTouchStart=rt=>{(0,a.w6)(rt)||(this._openedBy="touch")};_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(rt){this.menu=rt}get menu(){return this._menu}set menu(rt){rt!==this._menu&&(this._menu=rt,this._menuCloseSubscription.unsubscribe(),rt&&(this._menuCloseSubscription=rt.close.subscribe(Ht=>{this._destroyMenu(Ht),("click"===Ht||"tab"===Ht)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ht)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new i.bkB;onMenuOpen=this.menuOpened;menuClosed=new i.bkB;onMenuClose=this.menuClosed;constructor(){const rt=(0,i.WQX)(at,{optional:!0});this._parentMaterialMenu=rt instanceof Ze?rt:void 0,this._element.nativeElement.addEventListener("touchstart",this._handleTouchStart,Me)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Me),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 rt=this.menu;if(this._menuOpen||!rt)return;const Ht=this._createOverlay(rt),en=Ht.getConfig(),Nn=en.positionStrategy;this._setPosition(rt,Nn),en.hasBackdrop=null==rt.hasBackdrop?!this.triggersSubmenu():rt.hasBackdrop,Ht.attach(this._getPortal(rt)),rt.lazyContent&&rt.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(rt),rt instanceof Ze&&(rt._startAnimation(),rt._directDescendantItems.changes.pipe((0,R.Q)(rt.close)).subscribe(()=>{Nn.withLockedPosition(!1).reapplyLastPosition(),Nn.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(rt,Ht){this._focusMonitor&&rt?this._focusMonitor.focusVia(this._element,rt,Ht):this._element.nativeElement.focus(Ht)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(rt){if(!this._overlayRef||!this.menuOpen)return;const Ht=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===rt||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ht instanceof Ze?(Ht._resetAnimation(),Ht.lazyContent?Ht._animationDone.pipe((0,X.p)(en=>"void"===en.toState),(0,Z.s)(1),(0,R.Q)(Ht.lazyContent._attached)).subscribe({next:()=>Ht.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ht?.lazyContent?.detach())}_initMenu(rt){rt.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,rt.direction=this.dir,rt.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setIsMenuOpen(rt){rt!==this._menuOpen&&(this._menuOpen=rt,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(rt),this._changeDetectorRef.markForCheck())}_createOverlay(rt){if(!this._overlayRef){const Ht=this._getOverlayConfig(rt);this._subscribeToPositions(rt,Ht.positionStrategy),this._overlayRef=this._overlay.create(Ht),this._overlayRef.keydownEvents().subscribe(en=>{this.menu instanceof Ze&&this.menu._handleKeydown(en)})}return this._overlayRef}_getOverlayConfig(rt){return new Ae.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:rt.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:rt.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(rt,Ht){rt.setPositionClasses&&Ht.positionChanges.subscribe(en=>{this._ngZone.run(()=>{rt.setPositionClasses("start"===en.connectionPair.overlayX?"after":"before","top"===en.connectionPair.overlayY?"below":"above")})})}_setPosition(rt,Ht){let[en,Nn]="before"===rt.xPosition?["end","start"]:["start","end"],[mn,Mn]="above"===rt.yPosition?["bottom","top"]:["top","bottom"],[tt,Kt]=[mn,Mn],[At,Te]=[en,Nn],ye=0;if(this.triggersSubmenu()){if(Te=en="before"===rt.xPosition?"start":"end",Nn=At="end"===en?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const He=this._parentMaterialMenu.items.first;this._parentInnerPadding=He?He._getHostElement().offsetTop:0}ye="bottom"===mn?this._parentInnerPadding:-this._parentInnerPadding}}else rt.overlapTrigger||(tt="top"===mn?"bottom":"top",Kt="top"===Mn?"bottom":"top");Ht.withPositions([{originX:en,originY:tt,overlayX:At,overlayY:mn,offsetY:ye},{originX:Nn,originY:tt,overlayX:Te,overlayY:mn,offsetY:ye},{originX:en,originY:Kt,overlayX:At,overlayY:Mn,offsetY:-ye},{originX:Nn,originY:Kt,overlayX:Te,overlayY:Mn,offsetY:-ye}])}_menuClosingActions(){const rt=this._overlayRef.backdropClick(),Ht=this._overlayRef.detachments(),en=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,T.of)(),Nn=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,X.p)(mn=>mn!==this._menuItemInstance),(0,X.p)(()=>this._menuOpen)):(0,T.of)();return(0,w.h)(rt,en,Nn,Ht)}_handleMousedown(rt){(0,a._G)(rt)||(this._openedBy=0===rt.button?"mouse":void 0,this.triggersSubmenu()&&rt.preventDefault())}_handleKeydown(rt){const Ht=rt.keyCode;(Ht===c.Fm||Ht===c.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ht===c.LE&&"ltr"===this.dir||Ht===c.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(rt){this.triggersSubmenu()?(rt.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,X.p)(rt=>rt===this._menuItemInstance&&!rt.disabled),(0,re.c)(0,S.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ze&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Z.s)(1),(0,re.c)(0,S.$),(0,R.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(rt){return(!this._portal||this._portal.templateRef!==rt.templateRef)&&(this._portal=new De.VA(rt.templateRef,this._viewContainerRef)),this._portal}static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275dir=i.FsC({type:Wt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Ht,en){1&Ht&&i.bIt("click",function(mn){return en._handleClick(mn)})("mousedown",function(mn){return en._handleMousedown(mn)})("keydown",function(mn){return en._handleKeydown(mn)}),2&Ht&&i.BMQ("aria-haspopup",en.menu?"menu":null)("aria-expanded",en.menuOpen)("aria-controls",en.menuOpen?en.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"]})}return Wt})(),Tn=(()=>{class Wt{static \u0275fac=function(Ht){return new(Ht||Wt)};static \u0275mod=i.$C({type:Wt});static \u0275inj=i.G2t({providers:[Qt],imports:[pe.pZ,pe.yE,Ae.z_,le.Gj,pe.yE]})}return Wt})()},2322:(o,s,n)=>{"use strict";n.d(s,{HM:()=>S,PO:()=>k});var i=n(3107),c=(n(4460),n(2902));function y(R,X){1&R&&i.nrm(0,"div",2)}const w=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let S=(()=>{class R{_elementRef=(0,i.WQX)(i.aKT);_ngZone=(0,i.WQX)(i.SKi);_changeDetectorRef=(0,i.WQX)(i.gRc);_animationMode=(0,i.WQX)(i.bc$,{optional:!0});constructor(){const Z=(0,i.WQX)(w,{optional:!0});this._isNoopAnimation="NoopAnimations"===this._animationMode,Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation=!1;get color(){return this._color||this._defaultColor}set color(Z){this._color=Z}_color;_defaultColor="primary";get value(){return this._value}set value(Z){this._value=M(Z||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(Z){this._bufferValue=M(Z||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new i.bkB;get mode(){return this._mode}set mode(Z){this._mode=Z,this._changeDetectorRef.markForCheck()}_mode="determinate";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}_transitionendHandler=Z=>{0===this.animationEnd.observers.length||!Z.target||!Z.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(re){return new(re||R)};static \u0275cmp=i.VBU({type:R,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(re,_e){2&re&&(i.BMQ("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),i.HbH("mat-"+_e.color),i.AVh("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",i.Udg],bufferValue:[2,"bufferValue","bufferValue",i.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[i.GFd],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(re,_e){1&re&&(i.j41(0,"div",0),i.nrm(1,"div",1),i.DNE(2,y,1,0,"div",2),i.k0s(),i.j41(3,"div",3),i.nrm(4,"span",4),i.k0s(),i.j41(5,"div",5),i.nrm(6,"span",4),i.k0s()),2&re&&(i.R7$(),i.xc7("flex-basis",_e._getBufferBarFlexBasis()),i.R7$(),i.vxM("buffer"===_e.mode?2:-1),i.R7$(),i.xc7("transform",_e._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, 4px),var(--mdc-linear-progress-active-indicator-height, 4px))}@media(forced-colors: 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, 4px)}.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-sys-primary));border-top-width:var(--mdc-linear-progress-active-indicator-height, 4px)}.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, 4px);border-radius:var(--mdc-linear-progress-track-shape, var(--mat-sys-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-sys-surface-variant))}@media(forced-colors: 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-sys-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, 4px) * -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 R})();function M(R,X=0,Z=100){return Math.max(X,Math.min(Z,R))}let k=(()=>{class R{static \u0275fac=function(re){return new(re||R)};static \u0275mod=i.$C({type:R});static \u0275inj=i.G2t({imports:[c.yE]})}return R})()},2675:(o,s,n)=>{"use strict";n.d(s,{VO:()=>Ht,Ve:()=>Nn,$2:()=>en});var i=n(9666),a=n(3107),c=n(2902),y=n(6071),w=n(8108),C=n(8559),T=n(2944),k=(n(1531),n(3016),n(8447));class De{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new k.B;constructor(Mn=!1,tt,Kt=!0,At){this._multiple=Mn,this._emitChanges=Kt,this.compareWith=At,tt&&tt.length&&(Mn?tt.forEach(Te=>this._markSelected(Te)):this._markSelected(tt[0]),this._selectedToEmit.length=0)}select(...Mn){this._verifyValueAssignment(Mn),Mn.forEach(Kt=>this._markSelected(Kt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}deselect(...Mn){this._verifyValueAssignment(Mn),Mn.forEach(Kt=>this._unmarkSelected(Kt));const tt=this._hasQueuedChanges();return this._emitChangeEvent(),tt}setSelection(...Mn){this._verifyValueAssignment(Mn);const tt=this.selected,Kt=new Set(Mn);Mn.forEach(Te=>this._markSelected(Te)),tt.filter(Te=>!Kt.has(this._getConcreteValue(Te,Kt))).forEach(Te=>this._unmarkSelected(Te));const At=this._hasQueuedChanges();return this._emitChangeEvent(),At}toggle(Mn){return this.isSelected(Mn)?this.deselect(Mn):this.select(Mn)}clear(Mn=!0){this._unmarkAll();const tt=this._hasQueuedChanges();return Mn&&this._emitChangeEvent(),tt}isSelected(Mn){return this._selection.has(this._getConcreteValue(Mn))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(Mn){this._multiple&&this.selected&&this._selected.sort(Mn)}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(Mn){Mn=this._getConcreteValue(Mn),this.isSelected(Mn)||(this._multiple||this._unmarkAll(),this.isSelected(Mn)||this._selection.add(Mn),this._emitChanges&&this._selectedToEmit.push(Mn))}_unmarkSelected(Mn){Mn=this._getConcreteValue(Mn),this.isSelected(Mn)&&(this._selection.delete(Mn),this._emitChanges&&this._deselectedToEmit.push(Mn))}_unmarkAll(){this.isEmpty()||this._selection.forEach(Mn=>this._unmarkSelected(Mn))}_verifyValueAssignment(Mn){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(Mn,tt){if(this.compareWith){tt=tt??this._selection;for(let Kt of tt)if(this.compareWith(Mn,Kt))return Kt;return Mn}return Mn}}var Ae=n(5919),we=n(936),le=n(6381),ae=n(7509),xe=n(593),Be=n(2867),st=n(1483),lt=n(7947),bt=n(6645),at=n(5424),sn=n(7610),fn=n(1204),En=n(4460);const Wn=["trigger"],wn=["panel"],Je=[[["mat-select-trigger"]],"*"],_t=["mat-select-trigger","*"];function ze(mn,Mn){if(1&mn&&(a.j41(0,"span",4),a.EFF(1),a.k0s()),2&mn){const tt=a.XpG();a.R7$(),a.JRh(tt.placeholder)}}function Ue(mn,Mn){1&mn&&a.SdG(0)}function Ft(mn,Mn){if(1&mn&&(a.j41(0,"span",11),a.EFF(1),a.k0s()),2&mn){const tt=a.XpG(2);a.R7$(),a.JRh(tt.triggerValue)}}function Ke(mn,Mn){if(1&mn&&(a.j41(0,"span",5),a.DNE(1,Ue,1,0)(2,Ft,2,1,"span",11),a.k0s()),2&mn){const tt=a.XpG();a.R7$(),a.vxM(tt.customTrigger?1:2)}}function Ze(mn,Mn){if(1&mn){const tt=a.RV6();a.j41(0,"div",12,1),a.bIt("@transformPanel.done",function(At){a.eBV(tt);const Te=a.XpG();return a.Njj(Te._panelDoneAnimatingStream.next(At.toState))})("keydown",function(At){a.eBV(tt);const Te=a.XpG();return a.Njj(Te._handleKeydown(At))}),a.SdG(2,1),a.k0s()}if(2&mn){const tt=a.XpG();a.ZvI("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",tt._getPanelTheme(),""),a.Y8G("ngClass",tt.panelClass)("@transformPanel","showing"),a.BMQ("id",tt.id+"-panel")("aria-multiselectable",tt.multiple)("aria-label",tt.ariaLabel||null)("aria-labelledby",tt._getPanelAriaLabelledby())}}const it={transformPanelWrap:(0,fn.hZ)("transformPanelWrap",[(0,fn.kY)("* => void",(0,fn.P)("@transformPanel",[(0,fn.MA)()],{optional:!0}))]),transformPanel:(0,fn.hZ)("transformPanel",[(0,fn.wk)("void",(0,fn.iF)({opacity:0,transform:"scale(1, 0.8)"})),(0,fn.kY)("void => showing",(0,fn.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,fn.iF)({opacity:1,transform:"scale(1, 1)"}))),(0,fn.kY)("* => void",(0,fn.i0)("100ms linear",(0,fn.iF)({opacity:0})))])},ht=new a.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const mn=(0,a.WQX)(i.hJ);return()=>mn.scrollStrategies.reposition()}}),Tn=new a.nKC("MAT_SELECT_CONFIG"),Wt={provide:ht,deps:[i.hJ],useFactory:function Xt(mn){return()=>mn.scrollStrategies.reposition()}},Zt=new a.nKC("MatSelectTrigger");class rt{source;value;constructor(Mn,tt){this.source=Mn,this.value=tt}}let Ht=(()=>{class mn{_viewportRuler=(0,a.WQX)(w.Xj);_changeDetectorRef=(0,a.WQX)(a.gRc);_elementRef=(0,a.WQX)(a.aKT);_dir=(0,a.WQX)(T.dS,{optional:!0});_idGenerator=(0,a.WQX)(C.g7);_parentFormField=(0,a.WQX)(y.xb,{optional:!0});ngControl=(0,a.WQX)(we.vO,{self:!0,optional:!0});_liveAnnouncer=(0,a.WQX)(C.Ai);_defaultOptions=(0,a.WQX)(Tn,{optional:!0});options;optionGroups;customTrigger;_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"}];_scrollOptionIntoView(tt){const Kt=this.options.toArray()[tt];if(Kt){const At=this.panel.nativeElement,Te=(0,c.jb)(tt,this.options,this.optionGroups),ye=Kt._getHostElement();At.scrollTop=0===tt&&1===Te?0:(0,c.TL)(ye.offsetTop,ye.offsetHeight,At.scrollTop,At.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(tt){return new rt(this,tt)}_scrollStrategyFactory=(0,a.WQX)(ht);_panelOpen=!1;_compareWith=(tt,Kt)=>tt===Kt;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new k.B;_errorStateTracker;stateChanges=new k.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_panelDoneAnimatingStream=new k.B;_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(tt){this._hideSingleSelectionIndicator=tt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(tt){this._placeholder=tt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(we.k0.required)??!1}set required(tt){this._required=tt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(tt){this._multiple=tt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(tt){this._compareWith=tt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(tt){this._assignValue(tt)&&this._onChange(tt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(tt){this._errorStateTracker.matcher=tt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(tt){this._id=tt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(tt){this._errorStateTracker.errorState=tt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";_initialized=new k.B;optionSelectionChanges=(0,le.v)(()=>{const tt=this.options;return tt?tt.changes.pipe((0,xe.Z)(tt),(0,Be.n)(()=>(0,ae.h)(...tt.map(Kt=>Kt.onSelectionChange)))):this._initialized.pipe((0,Be.n)(()=>this.optionSelectionChanges))});openedChange=new a.bkB;_openedStream=this.openedChange.pipe((0,st.p)(tt=>tt),(0,lt.T)(()=>{}));_closedStream=this.openedChange.pipe((0,st.p)(tt=>!tt),(0,lt.T)(()=>{}));selectionChange=new a.bkB;valueChange=new a.bkB;constructor(){const tt=(0,a.WQX)(c.es),Kt=(0,a.WQX)(we.cV,{optional:!0}),At=(0,a.WQX)(we.j4,{optional:!0}),Te=(0,a.WQX)(new a.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new c.X0(tt,this.ngControl,At,Kt,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Te?0:parseInt(Te)||0,this.id=this.id}ngOnInit(){this._selectionModel=new De(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,bt.F)(),(0,at.Q)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen)),this._viewportRuler.change().pipe((0,at.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,at.Q)(this._destroy)).subscribe(tt=>{tt.added.forEach(Kt=>Kt.select()),tt.removed.forEach(Kt=>Kt.deselect())}),this.options.changes.pipe((0,xe.Z)(null),(0,at.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const tt=this._getTriggerAriaLabelledby(),Kt=this.ngControl;if(tt!==this._triggerAriaLabelledBy){const At=this._elementRef.nativeElement;this._triggerAriaLabelledBy=tt,tt?At.setAttribute("aria-labelledby",tt):At.removeAttribute("aria-labelledby")}Kt&&(this._previousControl!==Kt.control&&(void 0!==this._previousControl&&null!==Kt.disabled&&Kt.disabled!==this.disabled&&(this.disabled=Kt.disabled),this._previousControl=Kt.control),this.updateErrorState())}ngOnChanges(tt){(tt.disabled||tt.userAriaDescribedBy)&&this.stateChanges.next(),tt.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())}_trackedModal=null;_applyModalPanelOwnership(){const tt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!tt)return;const Kt=`${this.id}-panel`;this._trackedModal&&(0,C.Ae)(this._trackedModal,"aria-owns",Kt),(0,C.px)(tt,"aria-owns",Kt),this._trackedModal=tt}_clearFromModal(){this._trackedModal&&((0,C.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(tt){this._assignValue(tt)}registerOnChange(tt){this._onChange=tt}registerOnTouched(tt){this._onTouched=tt}setDisabledState(tt){this.disabled=tt,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 tt=this._selectionModel.selected.map(Kt=>Kt.viewValue);return this._isRtl()&&tt.reverse(),tt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(tt){this.disabled||(this.panelOpen?this._handleOpenKeydown(tt):this._handleClosedKeydown(tt))}_handleClosedKeydown(tt){const Kt=tt.keyCode,At=Kt===Ae.n6||Kt===Ae.i7||Kt===Ae.UQ||Kt===Ae.LE,Te=Kt===Ae.Fm||Kt===Ae.t6,ye=this._keyManager;if(!ye.isTyping()&&Te&&!(0,Ae.rp)(tt)||(this.multiple||tt.altKey)&&At)tt.preventDefault(),this.open();else if(!this.multiple){const He=this.selected;ye.onKeydown(tt);const z=this.selected;z&&He!==z&&this._liveAnnouncer.announce(z.viewValue,1e4)}}_handleOpenKeydown(tt){const Kt=this._keyManager,At=tt.keyCode,Te=At===Ae.n6||At===Ae.i7,ye=Kt.isTyping();if(Te&&tt.altKey)tt.preventDefault(),this.close();else if(ye||At!==Ae.Fm&&At!==Ae.t6||!Kt.activeItem||(0,Ae.rp)(tt))if(!ye&&this._multiple&&At===Ae.A&&tt.ctrlKey){tt.preventDefault();const He=this.options.some(z=>!z.disabled&&!z.selected);this.options.forEach(z=>{z.disabled||(He?z.select():z.deselect())})}else{const He=Kt.activeItemIndex;Kt.onKeydown(tt),this._multiple&&Te&&tt.shiftKey&&Kt.activeItem&&Kt.activeItemIndex!==He&&Kt.activeItem._selectViaInteraction()}else tt.preventDefault(),Kt.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,sn.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(tt){if(this.options.forEach(Kt=>Kt.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&tt)Array.isArray(tt),tt.forEach(Kt=>this._selectOptionByValue(Kt)),this._sortValues();else{const Kt=this._selectOptionByValue(tt);Kt?this._keyManager.updateActiveItem(Kt):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(tt){const Kt=this.options.find(At=>{if(this._selectionModel.isSelected(At))return!1;try{return null!=At.value&&this._compareWith(At.value,tt)}catch{return!1}});return Kt&&this._selectionModel.select(Kt),Kt}_assignValue(tt){return!!(tt!==this._value||this._multiple&&Array.isArray(tt))&&(this.options&&this._setSelectionByValue(tt),this._value=tt,!0)}_skipPredicate=tt=>!this.panelOpen&&tt.disabled;_getOverlayWidth(tt){return"auto"===this.panelWidth?(tt instanceof i.$Q?tt.elementRef:tt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const tt of this.options)tt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new C.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 tt=(0,ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,at.Q)(tt)).subscribe(Kt=>{this._onSelect(Kt.source,Kt.isUserInput),Kt.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ae.h)(...this.options.map(Kt=>Kt._stateChanges)).pipe((0,at.Q)(tt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(tt,Kt){const At=this._selectionModel.isSelected(tt);null!=tt.value||this._multiple?(At!==tt.selected&&(tt.selected?this._selectionModel.select(tt):this._selectionModel.deselect(tt)),Kt&&this._keyManager.setActiveItem(tt),this.multiple&&(this._sortValues(),Kt&&this.focus())):(tt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(tt.value)),At!==this._selectionModel.isSelected(tt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const tt=this.options.toArray();this._selectionModel.sort((Kt,At)=>this.sortComparator?this.sortComparator(Kt,At,tt):tt.indexOf(Kt)-tt.indexOf(At)),this.stateChanges.next()}}_propagateChanges(tt){let Kt;Kt=this.multiple?this.selected.map(At=>At.value):this.selected?this.selected.value:tt,this._value=Kt,this.valueChange.emit(Kt),this._onChange(Kt),this.selectionChange.emit(this._getChangeEvent(Kt)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let tt=-1;for(let Kt=0;Kt0}focus(tt){this._elementRef.nativeElement.focus(tt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(tt?tt+" ":"")+this.ariaLabelledby:tt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const tt=this._parentFormField?.getLabelId();let Kt=(tt?tt+" ":"")+this._valueId;return this.ariaLabelledby&&(Kt+=" "+this.ariaLabelledby),Kt}_panelDoneAnimating(tt){this.openedChange.emit(tt)}setDescribedByIds(tt){tt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",tt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275cmp=a.VBU({type:mn,selectors:[["mat-select"]],contentQueries:function(Kt,At,Te){if(1&Kt&&(a.wni(Te,Zt,5),a.wni(Te,c.wT,5),a.wni(Te,c.QC,5)),2&Kt){let ye;a.mGM(ye=a.lsd())&&(At.customTrigger=ye.first),a.mGM(ye=a.lsd())&&(At.options=ye),a.mGM(ye=a.lsd())&&(At.optionGroups=ye)}},viewQuery:function(Kt,At){if(1&Kt&&(a.GBs(Wn,5),a.GBs(wn,5),a.GBs(i.WB,5)),2&Kt){let Te;a.mGM(Te=a.lsd())&&(At.trigger=Te.first),a.mGM(Te=a.lsd())&&(At.panel=Te.first),a.mGM(Te=a.lsd())&&(At._overlayDir=Te.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(Kt,At){1&Kt&&a.bIt("keydown",function(ye){return At._handleKeydown(ye)})("focus",function(){return At._onFocus()})("blur",function(){return At._onBlur()}),2&Kt&&(a.BMQ("id",At.id)("tabindex",At.disabled?-1:At.tabIndex)("aria-controls",At.panelOpen?At.id+"-panel":null)("aria-expanded",At.panelOpen)("aria-label",At.ariaLabel||null)("aria-required",At.required.toString())("aria-disabled",At.disabled.toString())("aria-invalid",At.errorState)("aria-activedescendant",At._getAriaActiveDescendant()),a.AVh("mat-mdc-select-disabled",At.disabled)("mat-mdc-select-invalid",At.errorState)("mat-mdc-select-required",At.required)("mat-mdc-select-empty",At.empty)("mat-mdc-select-multiple",At.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",a.L39],disableRipple:[2,"disableRipple","disableRipple",a.L39],tabIndex:[2,"tabIndex","tabIndex",tt=>null==tt?0:(0,a.Udg)(tt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",a.L39],placeholder:"placeholder",required:[2,"required","required",a.L39],multiple:[2,"multiple","multiple",a.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",a.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",a.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[a.Jv_([{provide:y.qT,useExisting:mn},{provide:c.is,useExisting:mn}]),a.GFd,a.OA$],ngContentSelectors:_t,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(Kt,At){if(1&Kt){const Te=a.RV6();a.NAR(Je),a.j41(0,"div",2,0),a.bIt("click",function(){return a.eBV(Te),a.Njj(At.open())}),a.j41(3,"div",3),a.DNE(4,ze,2,1,"span",4)(5,Ke,3,1,"span",5),a.k0s(),a.j41(6,"div",6)(7,"div",7),a.qSk(),a.j41(8,"svg",8),a.nrm(9,"path",9),a.k0s()()()(),a.DNE(10,Ze,3,9,"ng-template",10),a.bIt("backdropClick",function(){return a.eBV(Te),a.Njj(At.close())})("attach",function(){return a.eBV(Te),a.Njj(At._onAttached())})("detach",function(){return a.eBV(Te),a.Njj(At.close())})}if(2&Kt){const Te=a.sdS(1);a.R7$(3),a.BMQ("id",At._valueId),a.R7$(),a.vxM(At.empty?4:5),a.R7$(6),a.Y8G("cdkConnectedOverlayPanelClass",At._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",At._scrollStrategy)("cdkConnectedOverlayOrigin",At._preferredOverlayOrigin||Te)("cdkConnectedOverlayOpen",At.panelOpen)("cdkConnectedOverlayPositions",At._positions)("cdkConnectedOverlayWidth",At._overlayWidth)}},dependencies:[i.$Q,i.WB,En.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-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .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-sys-surface-container))}@media(forced-colors: 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-sys-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, translateY(-8px))}'],encapsulation:2,data:{animation:[it.transformPanel]},changeDetection:0})}return mn})(),en=(()=>{class mn{static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275dir=a.FsC({type:mn,selectors:[["mat-select-trigger"]],features:[a.Jv_([{provide:Zt,useExisting:mn}])]})}return mn})(),Nn=(()=>{class mn{static \u0275fac=function(Kt){return new(Kt||mn)};static \u0275mod=a.$C({type:mn});static \u0275inj=a.G2t({providers:[Wt],imports:[i.z_,c.Sy,c.yE,w.Gj,y.RG,c.Sy,c.yE]})}return mn})()},5785:(o,s,n)=>{"use strict";n.d(s,{$C:()=>Ue,$l:()=>_t,qe:()=>ze,vg:()=>it});var i=n(8108),a=n(3107),c=n(2902),y=n(8559),w=n(2944),C=n(3022),T=n(5919),S=n(2147),M=n(4460),k=n(8447),R=n(909),X=n(7509),Z=n(1483),re=n(7947),_e=n(6590),pe=n(5424),de=n(7610),De=n(593),Ee=n(8627),Le=n(1204);const Ae=["*"],we=["content"],le=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ae=["mat-drawer","mat-drawer-content","*"];function xe(Ot,Qt){if(1&Ot){const Me=a.RV6();a.j41(0,"div",1),a.bIt("click",function(){a.eBV(Me);const Xt=a.XpG();return a.Njj(Xt._onBackdropClicked())}),a.k0s()}if(2&Ot){const Me=a.XpG();a.AVh("mat-drawer-shown",Me._isShowingBackdrop())}}function Be(Ot,Qt){1&Ot&&(a.j41(0,"mat-drawer-content"),a.SdG(1,2),a.k0s())}const fn={transformDrawer:(0,Le.hZ)("transform",[(0,Le.wk)("open, open-instant",(0,Le.iF)({transform:"none",visibility:"visible"})),(0,Le.wk)("void",(0,Le.iF)({"box-shadow":"none",visibility:"hidden"})),(0,Le.kY)("void => open-instant",(0,Le.i0)("0ms")),(0,Le.kY)("void <=> open, open-instant => void",(0,Le.i0)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Wn=new a.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Je(){return!1}}),wn=new a.nKC("MAT_DRAWER_CONTAINER");let _t=(()=>{class Ot extends i.uv{_platform=(0,a.WQX)(S.OD);_changeDetectorRef=(0,a.WQX)(a.gRc);_container=(0,a.WQX)(Ue);constructor(){super((0,a.WQX)(a.aKT),(0,a.WQX)(i.R),(0,a.WQX)(a.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:Me,end:ht}=this._container;return null!=Me&&"over"!==Me.mode&&Me.opened||null!=ht&&"over"!==ht.mode&&ht.opened}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(ht,Xt){2&ht&&(a.xc7("margin-left",Xt._container._contentMargins.left,"px")("margin-right",Xt._container._contentMargins.right,"px"),a.AVh("mat-drawer-content-hidden",Xt._shouldBeHidden()))},features:[a.Jv_([{provide:i.uv,useExisting:Ot}]),a.Vt3],ngContentSelectors:Ae,decls:1,vars:0,template:function(ht,Xt){1&ht&&(a.NAR(),a.SdG(0))},encapsulation:2,changeDetection:0})}return Ot})(),ze=(()=>{class Ot{_elementRef=(0,a.WQX)(a.aKT);_focusTrapFactory=(0,a.WQX)(y.GX);_focusMonitor=(0,a.WQX)(y.FN);_platform=(0,a.WQX)(S.OD);_ngZone=(0,a.WQX)(a.SKi);_interactivityChecker=(0,a.WQX)(y.Z7);_doc=(0,a.WQX)(M.qQ,{optional:!0});_container=(0,a.WQX)(wn,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_enableAnimations=!1;_isAttached;_anchor;get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Me),this._position=Me,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,C.he)(Me)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(Me){("true"===Me||"false"===Me||null==Me)&&(Me=(0,C.he)(Me)),this._autoFocus=Me}_autoFocus;get opened(){return this._opened}set opened(Me){this.toggle((0,C.he)(Me))}_opened=!1;_openedVia;_animationStarted=new k.B;_animationEnd=new k.B;_animationState="void";openedChange=new a.bkB(!0);_openedStream=this.openedChange.pipe((0,Z.p)(Me=>Me),(0,re.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Z.p)(Me=>Me.fromState!==Me.toState&&0===Me.toState.indexOf("open")),(0,_e.u)(void 0));_closedStream=this.openedChange.pipe((0,Z.p)(Me=>!Me),(0,re.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Z.p)(Me=>Me.fromState!==Me.toState&&"void"===Me.toState),(0,_e.u)(void 0));_destroyed=new k.B;onPositionChanged=new a.bkB;_content;_modeChanged=new k.B;_injector=(0,a.WQX)(a.zZn);_changeDetectorRef=(0,a.WQX)(a.gRc);constructor(){this.openedChange.pipe((0,pe.Q)(this._destroyed)).subscribe(Me=>{Me?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,Z.p)(Me=>Me.keyCode===T._f&&!this.disableClose&&!(0,T.rp)(Me)),(0,pe.Q)(this._destroyed)).subscribe(Me=>this._ngZone.run(()=>{this.close(),Me.stopPropagation(),Me.preventDefault()}))}),this._animationEnd.subscribe(Me=>{const{fromState:ht,toState:Xt}=Me;(0===Xt.indexOf("open")&&"void"===ht||"void"===Xt&&0===ht.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(Me,ht){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Xt=()=>{Me.removeEventListener("blur",Xt),Me.removeEventListener("mousedown",Xt),Me.removeAttribute("tabindex")};Me.addEventListener("blur",Xt),Me.addEventListener("mousedown",Xt)})),Me.focus(ht)}_focusByCssSelector(Me,ht){let Xt=this._elementRef.nativeElement.querySelector(Me);Xt&&this._forceFocus(Xt,ht)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,a.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof Me.focus&&Me.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(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Me=this._doc.activeElement;return!!Me&&this._elementRef.nativeElement.contains(Me)}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(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,ht){Me&&ht&&(this._openedVia=ht);const Xt=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),Xt}_setOpen(Me,ht,Xt){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",ht&&this._restoreFocus(Xt)),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Tn=>{this.openedChange.pipe((0,de.s)(1)).subscribe(Wt=>Tn(Wt?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(Me){if(!this._platform.isBrowser)return;const ht=this._elementRef.nativeElement,Xt=ht.parentNode;"end"===Me?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Xt.insertBefore(this._anchor,ht)),Xt.appendChild(ht)):this._anchor&&this._anchor.parentNode.insertBefore(ht,this._anchor)}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer"]],viewQuery:function(ht,Xt){if(1&ht&&a.GBs(we,5),2&ht){let Tn;a.mGM(Tn=a.lsd())&&(Xt._content=Tn.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(ht,Xt){1&ht&&a.Kam("@transform.start",function(Wt){return Xt._animationStarted.next(Wt)})("@transform.done",function(Wt){return Xt._animationEnd.next(Wt)}),2&ht&&(a.zvX("@transform",Xt._animationState),a.BMQ("align",null),a.AVh("mat-drawer-end","end"===Xt.position)("mat-drawer-over","over"===Xt.mode)("mat-drawer-push","push"===Xt.mode)("mat-drawer-side","side"===Xt.mode)("mat-drawer-opened",Xt.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"],ngContentSelectors:Ae,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(ht,Xt){1&ht&&(a.NAR(),a.j41(0,"div",1,0),a.SdG(2),a.k0s())},dependencies:[i.uv],encapsulation:2,data:{animation:[fn.transformDrawer]},changeDetection:0})}return Ot})(),Ue=(()=>{class Ot{_dir=(0,a.WQX)(w.dS,{optional:!0});_element=(0,a.WQX)(a.aKT);_ngZone=(0,a.WQX)(a.SKi);_changeDetectorRef=(0,a.WQX)(a.gRc);_animationMode=(0,a.WQX)(a.bc$,{optional:!0});_allDrawers;_drawers=new a.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,C.he)(Me)}_autosize=(0,a.WQX)(Wn);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,C.he)(Me)}_backdropOverride;backdropClick=new a.bkB;_start;_end;_left;_right;_destroyed=new k.B;_doCheckSubject=new k.B;_contentMargins={left:null,right:null};_contentMarginChanges=new k.B;get scrollable(){return this._userContent||this._content}_injector=(0,a.WQX)(a.zZn);constructor(){const Me=(0,a.WQX)(i.Xj);this._dir?.change.pipe((0,pe.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Me.change().pipe((0,pe.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())}ngAfterContentInit(){this._allDrawers.changes.pipe((0,De.Z)(this._allDrawers),(0,pe.Q)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(ht=>!ht._container||ht._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,De.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Ee.B)(10),(0,pe.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,ht=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const Xt=this._left._getWidth();Me+=Xt,ht-=Xt}if(this._right&&this._right.opened)if("side"==this._right.mode)ht+=this._right._getWidth();else if("push"==this._right.mode){const Xt=this._right._getWidth();ht+=Xt,Me-=Xt}Me=Me||null,ht=ht||null,(Me!==this._contentMargins.left||ht!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:ht},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,Z.p)(ht=>ht.fromState!==ht.toState),(0,pe.Q)(this._drawers.changes)).subscribe(ht=>{"open-instant"!==ht.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,pe.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){Me&&Me.onPositionChanged.pipe((0,pe.Q)(this._drawers.changes)).subscribe(()=>{(0,a.mal)(()=>{this._validateDrawers()},{injector:this._injector,phase:a.wjH.Read})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,pe.Q)((0,X.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const ht=this._element.nativeElement.classList,Xt="mat-drawer-container-has-open";Me?ht.add(Xt):ht.remove(Xt)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),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(Me=>Me&&!Me.disableClose&&this._drawerHasBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(Me){return null!=Me&&Me.opened}_drawerHasBackdrop(Me){return null==this._backdropOverride?!!Me&&"side"!==Me.mode:this._backdropOverride}static \u0275fac=function(ht){return new(ht||Ot)};static \u0275cmp=a.VBU({type:Ot,selectors:[["mat-drawer-container"]],contentQueries:function(ht,Xt,Tn){if(1&ht&&(a.wni(Tn,_t,5),a.wni(Tn,ze,5)),2&ht){let Wt;a.mGM(Wt=a.lsd())&&(Xt._content=Wt.first),a.mGM(Wt=a.lsd())&&(Xt._allDrawers=Wt)}},viewQuery:function(ht,Xt){if(1&ht&&a.GBs(_t,5),2&ht){let Tn;a.mGM(Tn=a.lsd())&&(Xt._userContent=Tn.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(ht,Xt){2&ht&&a.AVh("mat-drawer-container-explicit-backdrop",Xt._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Jv_([{provide:wn,useExisting:Ot}])],ngContentSelectors:ae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(ht,Xt){1&ht&&(a.NAR(le),a.DNE(0,xe,1,2,"div",0),a.SdG(1),a.SdG(2,1),a.DNE(3,Be,2,0,"mat-drawer-content")),2&ht&&(a.vxM(Xt.hasBackdrop?0:-1),a.R7$(3),a.vxM(Xt._content?-1:3))},dependencies:[_t],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-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, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.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}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.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-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);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)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.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-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-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, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);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, transparent);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, transparent);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 Ot})(),it=(()=>{class Ot{static \u0275fac=function(ht){return new(ht||Ot)};static \u0275mod=a.$C({type:Ot});static \u0275inj=a.G2t({imports:[c.yE,i.Gj,i.Gj,c.yE]})}return Ot})()},7712:(o,s,n)=>{"use strict";n.d(s,{oV:()=>at,uc:()=>En});var i=n(5424),a=n(3022),c=n(5919),y=n(3107),w=n(4460),C=n(2147),T=n(8559),S=n(2944),M=n(9666),k=n(8108),R=n(6192),X=n(8447),re=(n(1204),n(2902));const _e=["tooltip"],De=new y.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const Wn=(0,y.WQX)(M.hJ);return()=>Wn.scrollStrategies.reposition({scrollThrottle:20})}}),Le={provide:De,deps:[M.hJ],useFactory:function Ee(Wn){return()=>Wn.scrollStrategies.reposition({scrollThrottle:20})}},we=new y.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ae(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),ae="tooltip-panel",xe=(0,C.BQ)({passive:!0});let at=(()=>{class Wn{_overlay=(0,y.WQX)(M.hJ);_elementRef=(0,y.WQX)(y.aKT);_scrollDispatcher=(0,y.WQX)(k.R);_viewContainerRef=(0,y.WQX)(y.c1b);_ngZone=(0,y.WQX)(y.SKi);_platform=(0,y.WQX)(C.OD);_ariaDescriber=(0,y.WQX)(T.vr);_focusMonitor=(0,y.WQX)(T.FN);_dir=(0,y.WQX)(S.dS);_injector=(0,y.WQX)(y.zZn);_defaultOptions=(0,y.WQX)(we,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_scrollStrategy=(0,y.WQX)(De);_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=sn;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;get position(){return this._position}set position(Je){Je!==this._position&&(this._position=Je,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(Je){this._positionAtOrigin=(0,a.he)(Je),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(Je){const _t=(0,a.he)(Je);this._disabled!==_t&&(this._disabled=_t,_t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(Je){this._showDelay=(0,a.OE)(Je)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(Je){this._hideDelay=(0,a.OE)(Je),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(Je){const _t=this._message;this._message=null!=Je?String(Je).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(_t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(Je){this._tooltipClass=Je,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_document=(0,y.WQX)(w.qQ);_touchstartTimeout=null;_destroyed=new X.B;constructor(){const Je=this._defaultOptions;Je&&(this._showDelay=Je.showDelay,this._hideDelay=Je.hideDelay,Je.position&&(this.position=Je.position),Je.positionAtOrigin&&(this.positionAtOrigin=Je.positionAtOrigin),Je.touchGestures&&(this.touchGestures=Je.touchGestures),Je.tooltipClass&&(this.tooltipClass=Je.tooltipClass)),this._dir.change.pipe((0,i.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,i.Q)(this._destroyed)).subscribe(Je=>{Je?"keyboard"===Je&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Je=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([_t,ze])=>{Je.removeEventListener(_t,ze,xe)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Je,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Je)}show(Je=this.showDelay,_t){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ze=this._createOverlay(_t);this._detach(),this._portal=this._portal||new R.A8(this._tooltipComponent,this._viewContainerRef);const Ue=this._tooltipInstance=ze.attach(this._portal).instance;Ue._triggerElement=this._elementRef.nativeElement,Ue._mouseLeaveHideDelay=this._hideDelay,Ue.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Ue.show(Je)}hide(Je=this.hideDelay){const _t=this._tooltipInstance;_t&&(_t.isVisible()?_t.hide(Je):(_t._cancelPendingAnimations(),this._detach()))}toggle(Je){this._isTooltipVisible()?this.hide():this.show(void 0,Je)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(Je){if(this._overlayRef){const Ue=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!Je)&&Ue._origin instanceof y.aKT)return this._overlayRef;this._detach()}const _t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&Je||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(_t);return ze.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(Ue=>{this._updateCurrentPositionClass(Ue.connectionPair),this._tooltipInstance&&Ue.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${ae}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(Ue=>{this._isTooltipVisible()&&Ue.keyCode===c._f&&!(0,c.rp)(Ue)&&(Ue.preventDefault(),Ue.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(Je){const _t=Je.getConfig().positionStrategy,ze=this._getOrigin(),Ue=this._getOverlayPosition();_t.withPositions([this._addOffset({...ze.main,...Ue.main}),this._addOffset({...ze.fallback,...Ue.fallback})])}_addOffset(Je){const ze=!this._dir||"ltr"==this._dir.value;return"top"===Je.originY?Je.offsetY=-8:"bottom"===Je.originY?Je.offsetY=8:"start"===Je.originX?Je.offsetX=ze?-8:8:"end"===Je.originX&&(Je.offsetX=ze?8:-8),Je}_getOrigin(){const Je=!this._dir||"ltr"==this._dir.value,_t=this.position;let ze;"above"==_t||"below"==_t?ze={originX:"center",originY:"above"==_t?"top":"bottom"}:"before"==_t||"left"==_t&&Je||"right"==_t&&!Je?ze={originX:"start",originY:"center"}:("after"==_t||"right"==_t&&Je||"left"==_t&&!Je)&&(ze={originX:"end",originY:"center"});const{x:Ue,y:Ft}=this._invertPosition(ze.originX,ze.originY);return{main:ze,fallback:{originX:Ue,originY:Ft}}}_getOverlayPosition(){const Je=!this._dir||"ltr"==this._dir.value,_t=this.position;let ze;"above"==_t?ze={overlayX:"center",overlayY:"bottom"}:"below"==_t?ze={overlayX:"center",overlayY:"top"}:"before"==_t||"left"==_t&&Je||"right"==_t&&!Je?ze={overlayX:"end",overlayY:"center"}:("after"==_t||"right"==_t&&Je||"left"==_t&&!Je)&&(ze={overlayX:"start",overlayY:"center"});const{x:Ue,y:Ft}=this._invertPosition(ze.overlayX,ze.overlayY);return{main:ze,fallback:{overlayX:Ue,overlayY:Ft}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,y.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(Je){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Je,this._tooltipInstance._markForCheck())}_invertPosition(Je,_t){return"above"===this.position||"below"===this.position?"top"===_t?_t="bottom":"bottom"===_t&&(_t="top"):"end"===Je?Je="start":"start"===Je&&(Je="end"),{x:Je,y:_t}}_updateCurrentPositionClass(Je){const{overlayY:_t,originX:ze,originY:Ue}=Je;let Ft;if(Ft="center"===_t?this._dir&&"rtl"===this._dir.value?"end"===ze?"left":"right":"start"===ze?"left":"right":"bottom"===_t&&"top"===Ue?"above":"below",Ft!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const Ze=`${this._cssClassPrefix}-${ae}-`;Ke.removePanelClass(Ze+this._currentPosition),Ke.addPanelClass(Ze+Ft)}this._currentPosition=Ft}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",Je=>{let _t;this._setupPointerExitEventsIfNeeded(),void 0!==Je.x&&void 0!==Je.y&&(_t=Je),this.show(void 0,_t)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",Je=>{const _t=Je.targetTouches?.[0],ze=_t?{x:_t.clientX,y:_t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,ze)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Je=[];if(this._platformSupportsMouseEvents())Je.push(["mouseleave",_t=>{const ze=_t.relatedTarget;(!ze||!this._overlayRef?.overlayElement.contains(ze))&&this.hide()}],["wheel",_t=>this._wheelListener(_t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const _t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};Je.push(["touchend",_t],["touchcancel",_t])}this._addListeners(Je),this._passiveListeners.push(...Je)}_addListeners(Je){Je.forEach(([_t,ze])=>{this._elementRef.nativeElement.addEventListener(_t,ze,xe)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Je){if(this._isTooltipVisible()){const _t=this._document.elementFromPoint(Je.clientX,Je.clientY),ze=this._elementRef.nativeElement;_t!==ze&&!ze.contains(_t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Je=this.touchGestures;if("off"!==Je){const _t=this._elementRef.nativeElement,ze=_t.style;("on"===Je||"INPUT"!==_t.nodeName&&"TEXTAREA"!==_t.nodeName)&&(ze.userSelect=ze.msUserSelect=ze.webkitUserSelect=ze.MozUserSelect="none"),("on"===Je||!_t.draggable)&&(ze.webkitUserDrag="none"),ze.touchAction="none",ze.webkitTapHighlightColor="transparent"}}_syncAriaDescription(Je){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,Je,"tooltip"),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}static \u0275fac=function(_t){return new(_t||Wn)};static \u0275dir=y.FsC({type:Wn,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(_t,ze){2&_t&&y.AVh("mat-mdc-tooltip-disabled",ze.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"]})}return Wn})(),sn=(()=>{class Wn{_changeDetectorRef=(0,y.WQX)(y.gRc);_elementRef=(0,y.WQX)(y.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new X.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){const Je=(0,y.WQX)(y.bc$,{optional:!0});this._animationsDisabled="NoopAnimations"===Je}show(Je){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Je)}hide(Je){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Je)}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:Je}){(!Je||!this._triggerElement.contains(Je))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const Je=this._elementRef.nativeElement.getBoundingClientRect();return Je.height>24&&Je.width>=200}_handleAnimationEnd({animationName:Je}){(Je===this._showAnimation||Je===this._hideAnimation)&&this._finalizeAnimation(Je===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(Je){Je?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Je){const _t=this._tooltip.nativeElement,ze=this._showAnimation,Ue=this._hideAnimation;if(_t.classList.remove(Je?Ue:ze),_t.classList.add(Je?ze:Ue),this._isVisible!==Je&&(this._isVisible=Je,this._changeDetectorRef.markForCheck()),Je&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Ft=getComputedStyle(_t);("0s"===Ft.getPropertyValue("animation-duration")||"none"===Ft.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Je&&this._onShow(),this._animationsDisabled&&(_t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Je))}static \u0275fac=function(_t){return new(_t||Wn)};static \u0275cmp=y.VBU({type:Wn,selectors:[["mat-tooltip-component"]],viewQuery:function(_t,ze){if(1&_t&&y.GBs(_e,7),2&_t){let Ue;y.mGM(Ue=y.lsd())&&(ze._tooltip=Ue.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(_t,ze){1&_t&&y.bIt("mouseleave",function(Ft){return ze._handleMouseLeave(Ft)})},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(_t,ze){if(1&_t){const Ue=y.RV6();y.j41(0,"div",1,0),y.bIt("animationend",function(Ke){return y.eBV(Ue),y.Njj(ze._handleAnimationEnd(Ke))}),y.j41(2,"div",2),y.EFF(3),y.k0s()()}2&_t&&(y.AVh("mdc-tooltip--multiline",ze._isMultiline),y.Y8G("ngClass",ze.tooltipClass),y.R7$(3),y.JRh(ze.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-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-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 Wn})(),En=(()=>{class Wn{static \u0275fac=function(_t){return new(_t||Wn)};static \u0275mod=y.$C({type:Wn});static \u0275inj=y.G2t({providers:[Le],imports:[T.Pd,M.z_,re.yE,re.yE,k.Gj]})}return Wn})()},6388:(o,s,n)=>{"use strict";n.d(s,{B7:()=>bt,B8:()=>Ze,hE:()=>Mn,up:()=>cn});var i=n(4460),a=n(3107);class c extends i.VF{supportsDOMEvents=!0}class y extends c{static makeCurrent(){(0,i.ZD)(new y)}onAndCancel(Dt,ct,Bt){return Dt.addEventListener(ct,Bt),()=>{Dt.removeEventListener(ct,Bt)}}dispatchEvent(Dt,ct){Dt.dispatchEvent(ct)}remove(Dt){Dt.remove()}createElement(Dt,ct){return(ct=ct||this.getDefaultDocument()).createElement(Dt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Dt){return Dt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Dt){return Dt instanceof DocumentFragment}getGlobalEventTarget(Dt,ct){return"window"===ct?window:"document"===ct?Dt:"body"===ct?Dt.body:null}getBaseHref(Dt){const ct=function C(){return w=w||document.querySelector("base"),w?w.getAttribute("href"):null}();return null==ct?null:function T(je){return new URL(je,document.baseURI).pathname}(ct)}resetBaseElement(){w=null}getUserAgent(){return window.navigator.userAgent}getCookie(Dt){return(0,i._b)(document.cookie,Dt)}}let w=null,M=(()=>{class je{build(){return new XMLHttpRequest}static \u0275fac=function(Bt){return new(Bt||je)};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const k=new a.nKC("");let R=(()=>{class je{_zone;_plugins;_eventNameToPlugin=new Map;constructor(ct,Bt){this._zone=Bt,ct.forEach(xn=>{xn.manager=this}),this._plugins=ct.slice().reverse()}addEventListener(ct,Bt,xn){return this._findPluginFor(Bt).addEventListener(ct,Bt,xn)}getZone(){return this._zone}_findPluginFor(ct){let Bt=this._eventNameToPlugin.get(ct);if(Bt)return Bt;if(Bt=this._plugins.find(er=>er.supports(ct)),!Bt)throw new a.wOt(5101,!1);return this._eventNameToPlugin.set(ct,Bt),Bt}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(k),a.KVO(a.SKi))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();class X{_doc;constructor(Dt){this._doc=Dt}manager}const Z="ng-app-id";function re(je){for(const Dt of je)Dt.remove()}function _e(je,Dt){const ct=Dt.createElement("style");return ct.textContent=je,ct}function de(je,Dt){const ct=Dt.createElement("link");return ct.setAttribute("rel","stylesheet"),ct.setAttribute("href",je),ct}let De=(()=>{class je{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(ct,Bt,xn,er={}){this.doc=ct,this.appId=Bt,this.nonce=xn,this.isServer=(0,i.Vy)(er),function pe(je,Dt,ct){const Bt=je.head?.querySelectorAll(`style[${Z}="${Dt}"]`);if(Bt)for(const xn of Bt)xn.textContent&&(xn.removeAttribute(Z),ct.set(xn.textContent,{usage:0,elements:[xn]}))}(ct,Bt,this.inline),this.hosts.add(ct.head)}addStyles(ct,Bt){for(const xn of ct)this.addUsage(xn,this.inline,_e);Bt?.forEach(xn=>this.addUsage(xn,this.external,de))}removeStyles(ct,Bt){for(const xn of ct)this.removeUsage(xn,this.inline);Bt?.forEach(xn=>this.removeUsage(xn,this.external))}addUsage(ct,Bt,xn){const er=Bt.get(ct);er?er.usage++:Bt.set(ct,{usage:1,elements:[...this.hosts].map(xr=>this.addElement(xr,xn(ct,this.doc)))})}removeUsage(ct,Bt){const xn=Bt.get(ct);xn&&(xn.usage--,xn.usage<=0&&(re(xn.elements),Bt.delete(ct)))}ngOnDestroy(){for(const[,{elements:ct}]of[...this.inline,...this.external])re(ct);this.hosts.clear()}addHost(ct){this.hosts.add(ct);for(const[Bt,{elements:xn}]of this.inline)xn.push(this.addElement(ct,_e(Bt,this.doc)));for(const[Bt,{elements:xn}]of this.external)xn.push(this.addElement(ct,de(Bt,this.doc)))}removeHost(ct){this.hosts.delete(ct)}addElement(ct,Bt){return this.nonce&&Bt.setAttribute("nonce",this.nonce),this.isServer&&Bt.setAttribute(Z,this.appId),ct.appendChild(Bt)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ),a.KVO(a.sZ2),a.KVO(a.BIS,8),a.KVO(a.Agw))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const Ee={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"},Le=/%COMP%/g,xe=new a.nKC("",{providedIn:"root",factory:()=>!0});function lt(je,Dt){return Dt.map(ct=>ct.replace(Le,je))}let bt=(()=>{class je{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(ct,Bt,xn,er,xr,si,hi,Zi=null){this.eventManager=ct,this.sharedStylesHost=Bt,this.appId=xn,this.removeStylesOnCompDestroy=er,this.doc=xr,this.platformId=si,this.ngZone=hi,this.nonce=Zi,this.platformIsServer=(0,i.Vy)(si),this.defaultRenderer=new at(ct,xr,hi,this.platformIsServer)}createRenderer(ct,Bt){if(!ct||!Bt)return this.defaultRenderer;this.platformIsServer&&Bt.encapsulation===a.gXe.ShadowDom&&(Bt={...Bt,encapsulation:a.gXe.Emulated});const xn=this.getOrCreateRenderer(ct,Bt);return xn instanceof Je?xn.applyToHost(ct):xn instanceof wn&&xn.applyStyles(),xn}getOrCreateRenderer(ct,Bt){const xn=this.rendererByCompId;let er=xn.get(Bt.id);if(!er){const xr=this.doc,si=this.ngZone,hi=this.eventManager,Zi=this.sharedStylesHost,nn=this.removeStylesOnCompDestroy,Mt=this.platformIsServer;switch(Bt.encapsulation){case a.gXe.Emulated:er=new Je(hi,Zi,Bt,this.appId,nn,xr,si,Mt);break;case a.gXe.ShadowDom:return new Wn(hi,Zi,ct,Bt,xr,si,this.nonce,Mt);default:er=new wn(hi,Zi,Bt,nn,xr,si,Mt)}xn.set(Bt.id,er)}return er}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(R),a.KVO(De),a.KVO(a.sZ2),a.KVO(xe),a.KVO(i.qQ),a.KVO(a.Agw),a.KVO(a.SKi),a.KVO(a.BIS))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();class at{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(Dt,ct,Bt,xn){this.eventManager=Dt,this.doc=ct,this.ngZone=Bt,this.platformIsServer=xn}destroy(){}destroyNode=null;createElement(Dt,ct){return ct?this.doc.createElementNS(Ee[ct]||ct,Dt):this.doc.createElement(Dt)}createComment(Dt){return this.doc.createComment(Dt)}createText(Dt){return this.doc.createTextNode(Dt)}appendChild(Dt,ct){(En(Dt)?Dt.content:Dt).appendChild(ct)}insertBefore(Dt,ct,Bt){Dt&&(En(Dt)?Dt.content:Dt).insertBefore(ct,Bt)}removeChild(Dt,ct){ct.remove()}selectRootElement(Dt,ct){let Bt="string"==typeof Dt?this.doc.querySelector(Dt):Dt;if(!Bt)throw new a.wOt(-5104,!1);return ct||(Bt.textContent=""),Bt}parentNode(Dt){return Dt.parentNode}nextSibling(Dt){return Dt.nextSibling}setAttribute(Dt,ct,Bt,xn){if(xn){ct=xn+":"+ct;const er=Ee[xn];er?Dt.setAttributeNS(er,ct,Bt):Dt.setAttribute(ct,Bt)}else Dt.setAttribute(ct,Bt)}removeAttribute(Dt,ct,Bt){if(Bt){const xn=Ee[Bt];xn?Dt.removeAttributeNS(xn,ct):Dt.removeAttribute(`${Bt}:${ct}`)}else Dt.removeAttribute(ct)}addClass(Dt,ct){Dt.classList.add(ct)}removeClass(Dt,ct){Dt.classList.remove(ct)}setStyle(Dt,ct,Bt,xn){xn&(a.czy.DashCase|a.czy.Important)?Dt.style.setProperty(ct,Bt,xn&a.czy.Important?"important":""):Dt.style[ct]=Bt}removeStyle(Dt,ct,Bt){Bt&a.czy.DashCase?Dt.style.removeProperty(ct):Dt.style[ct]=""}setProperty(Dt,ct,Bt){null!=Dt&&(Dt[ct]=Bt)}setValue(Dt,ct){Dt.nodeValue=ct}listen(Dt,ct,Bt){if("string"==typeof Dt&&!(Dt=(0,i.QT)().getGlobalEventTarget(this.doc,Dt)))throw new Error(`Unsupported event target ${Dt} for event ${ct}`);return this.eventManager.addEventListener(Dt,ct,this.decoratePreventDefault(Bt))}decoratePreventDefault(Dt){return ct=>{if("__ngUnwrap__"===ct)return Dt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Dt(ct)):Dt(ct))&&ct.preventDefault()}}}function En(je){return"TEMPLATE"===je.tagName&&void 0!==je.content}class Wn extends at{sharedStylesHost;hostEl;shadowRoot;constructor(Dt,ct,Bt,xn,er,xr,si,hi){super(Dt,er,xr,hi),this.sharedStylesHost=ct,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Zi=lt(xn.id,xn.styles);for(const Mt of Zi){const nt=document.createElement("style");si&&nt.setAttribute("nonce",si),nt.textContent=Mt,this.shadowRoot.appendChild(nt)}const nn=xn.getExternalStyles?.();if(nn)for(const Mt of nn){const nt=de(Mt,er);si&&nt.setAttribute("nonce",si),this.shadowRoot.appendChild(nt)}}nodeOrShadowRoot(Dt){return Dt===this.hostEl?this.shadowRoot:Dt}appendChild(Dt,ct){return super.appendChild(this.nodeOrShadowRoot(Dt),ct)}insertBefore(Dt,ct,Bt){return super.insertBefore(this.nodeOrShadowRoot(Dt),ct,Bt)}removeChild(Dt,ct){return super.removeChild(null,ct)}parentNode(Dt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Dt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class wn extends at{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(Dt,ct,Bt,xn,er,xr,si,hi){super(Dt,er,xr,si),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=xn,this.styles=hi?lt(hi,Bt.styles):Bt.styles,this.styleUrls=Bt.getExternalStyles?.(hi)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Je extends wn{contentAttr;hostAttr;constructor(Dt,ct,Bt,xn,er,xr,si,hi){const Zi=xn+"-"+Bt.id;super(Dt,ct,Bt,er,xr,si,hi,Zi),this.contentAttr=function Be(je){return"_ngcontent-%COMP%".replace(Le,je)}(Zi),this.hostAttr=function st(je){return"_nghost-%COMP%".replace(Le,je)}(Zi)}applyToHost(Dt){this.applyStyles(),this.setAttribute(Dt,this.hostAttr,"")}createElement(Dt,ct){const Bt=super.createElement(Dt,ct);return super.setAttribute(Bt,this.contentAttr,""),Bt}}let _t=(()=>{class je extends X{constructor(ct){super(ct)}supports(ct){return!0}addEventListener(ct,Bt,xn){return ct.addEventListener(Bt,xn,!1),()=>this.removeEventListener(ct,Bt,xn)}removeEventListener(ct,Bt,xn){return ct.removeEventListener(Bt,xn)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();const ze=["alt","control","meta","shift"],Ue={"\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"},Ft={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let Ke=(()=>{class je extends X{constructor(ct){super(ct)}supports(ct){return null!=je.parseEventName(ct)}addEventListener(ct,Bt,xn){const er=je.parseEventName(Bt),xr=je.eventCallback(er.fullKey,xn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.QT)().onAndCancel(ct,er.domEventName,xr))}static parseEventName(ct){const Bt=ct.toLowerCase().split("."),xn=Bt.shift();if(0===Bt.length||"keydown"!==xn&&"keyup"!==xn)return null;const er=je._normalizeKey(Bt.pop());let xr="",si=Bt.indexOf("code");if(si>-1&&(Bt.splice(si,1),xr="code."),ze.forEach(Zi=>{const nn=Bt.indexOf(Zi);nn>-1&&(Bt.splice(nn,1),xr+=Zi+".")}),xr+=er,0!=Bt.length||0===er.length)return null;const hi={};return hi.domEventName=xn,hi.fullKey=xr,hi}static matchEventFullKeyCode(ct,Bt){let xn=Ue[ct.key]||ct.key,er="";return Bt.indexOf("code.")>-1&&(xn=ct.code,er="code."),!(null==xn||!xn)&&(xn=xn.toLowerCase()," "===xn?xn="space":"."===xn&&(xn="dot"),ze.forEach(xr=>{xr!==xn&&(0,Ft[xr])(ct)&&(er+=xr+".")}),er+=xn,er===Bt)}static eventCallback(ct,Bt,xn){return er=>{je.matchEventFullKeyCode(er,ct)&&xn.runGuarded(()=>Bt(er))}}static _normalizeKey(ct){return"esc"===ct?"escape":ct}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac})}return je})();function Ze(je,Dt){return(0,a.TL3)({rootComponent:je,...Ot(Dt)})}function Ot(je){return{appProviders:[...Ht,...je?.providers??[]],platformProviders:Tn}}const Tn=[{provide:a.Agw,useValue:i.AJ},{provide:a.PLl,useValue:function Me(){y.makeCurrent()},multi:!0},{provide:i.qQ,useFactory:function Xt(){return(0,a.TL$)(document),document},deps:[]}],Ht=[{provide:a.H8p,useValue:"root"},{provide:a.zcH,useFactory:function ht(){return new a.zcH},deps:[]},{provide:k,useClass:_t,multi:!0,deps:[i.qQ,a.SKi,a.Agw]},{provide:k,useClass:Ke,multi:!0,deps:[i.qQ]},bt,De,R,{provide:a._9s,useExisting:bt},{provide:i.N0,useClass:M,deps:[]},[]];let Mn=(()=>{class je{_doc;constructor(ct){this._doc=ct}getTitle(){return this._doc.title}setTitle(ct){this._doc.title=ct||""}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac,providedIn:"root"})}return je})(),cn=(()=>{class je{static \u0275fac=function(Bt){return new(Bt||je)};static \u0275prov=a.jDH({token:je,factory:function(Bt){let xn=null;return xn=Bt?new(Bt||je):a.KVO(hn),xn},providedIn:"root"})}return je})(),hn=(()=>{class je extends cn{_doc;constructor(ct){super(),this._doc=ct}sanitize(ct,Bt){if(null==Bt)return null;switch(ct){case a.WPN.NONE:return Bt;case a.WPN.HTML:return(0,a.ZF7)(Bt,"HTML")?(0,a.rcV)(Bt):(0,a.h9k)(this._doc,String(Bt)).toString();case a.WPN.STYLE:return(0,a.ZF7)(Bt,"Style")?(0,a.rcV)(Bt):Bt;case a.WPN.SCRIPT:if((0,a.ZF7)(Bt,"Script"))return(0,a.rcV)(Bt);throw new a.wOt(5200,!1);case a.WPN.URL:return(0,a.ZF7)(Bt,"URL")?(0,a.rcV)(Bt):(0,a.$MX)(String(Bt));case a.WPN.RESOURCE_URL:if((0,a.ZF7)(Bt,"ResourceURL"))return(0,a.rcV)(Bt);throw new a.wOt(5201,!1);default:throw new a.wOt(5202,!1)}}bypassSecurityTrustHtml(ct){return(0,a.Kcf)(ct)}bypassSecurityTrustStyle(ct){return(0,a.cWb)(ct)}bypassSecurityTrustScript(ct){return(0,a.UyX)(ct)}bypassSecurityTrustUrl(ct){return(0,a.osQ)(ct)}bypassSecurityTrustResourceUrl(ct){return(0,a.e5t)(ct)}static \u0275fac=function(Bt){return new(Bt||je)(a.KVO(i.qQ))};static \u0275prov=a.jDH({token:je,factory:je.\u0275fac,providedIn:"root"})}return je})()},8716:(o,s,n)=>{"use strict";n.d(s,{nX:()=>_o,wF:()=>Ye,Ix:()=>li,Wk:()=>bs,wQ:()=>Lo,iI:()=>Ha,n3:()=>la,lh:()=>ou,oH:()=>Wl});var i=n(3107),a=n(1531),c=n(1787),y=n(3016),w=n(1217),C=n(6627),T=n(8747),S=n(3569),M=n(6381),k=n(6742),R=n(8915),X=n(6564),Z=n(1642),re=n(8447),_e=n(5710),pe=n(4460),de=n(7947),De=n(2867),Ee=n(7610),Le=n(593),Ae=n(1483),we=n(5823),le=n(1703),ae=n(1459),xe=n(2040),Be=n(7178),st=n(5351),lt=n(36),at=n(5670),sn=n(2483);function fn(N){return N<=0?()=>X.w:(0,st.N)((G,F)=>{let K=[];G.subscribe((0,sn._)(F,he=>{K.push(he),N{for(const he of K)F.next(he);F.complete()},void 0,()=>{K=null}))})}var En=n(5017),Wn=n(9220),Je=n(6590),_t=n(4447),ze=n(3589),Ue=n(5424),Ft=n(1890),Ke=n(6388);const Ze="primary",it=Symbol("RouteTitle");class Ot{params;constructor(G){this.params=G||{}}has(G){return Object.prototype.hasOwnProperty.call(this.params,G)}get(G){if(this.has(G)){const F=this.params[G];return Array.isArray(F)?F[0]:F}return null}getAll(G){if(this.has(G)){const F=this.params[G];return Array.isArray(F)?F:[F]}return[]}get keys(){return Object.keys(this.params)}}function Qt(N){return new Ot(N)}function Me(N,G,F){const K=F.path.split("/");if(K.length>N.length||"full"===F.pathMatch&&(G.hasChildren()||K.lengthK[We]===he)}return N===G}function Zt(N){return N.length>0?N[N.length-1]:null}function rt(N){return(0,a.A)(N)?N:(0,i.jNT)(N)?(0,c.H)(Promise.resolve(N)):(0,y.of)(N)}const Ht={exact:function Mn(N,G,F){if(!V(N.segments,G.segments)||!Te(N.segments,G.segments,F)||N.numberOfChildren!==G.numberOfChildren)return!1;for(const K in G.children)if(!N.children[K]||!Mn(N.children[K],G.children[K],F))return!1;return!0},subset:Kt},en={exact:function mn(N,G){return Xt(N,G)},subset:function tt(N,G){return Object.keys(G).length<=Object.keys(N).length&&Object.keys(G).every(F=>Wt(N[F],G[F]))},ignored:()=>!0};function Nn(N,G,F){return Ht[F.paths](N.root,G.root,F.matrixParams)&&en[F.queryParams](N.queryParams,G.queryParams)&&!("exact"===F.fragment&&N.fragment!==G.fragment)}function Kt(N,G,F){return At(N,G,G.segments,F)}function At(N,G,F,K){if(N.segments.length>F.length){const he=N.segments.slice(0,F.length);return!(!V(he,F)||G.hasChildren()||!Te(he,F,K))}if(N.segments.length===F.length){if(!V(N.segments,F)||!Te(N.segments,F,K))return!1;for(const he in G.children)if(!N.children[he]||!Kt(N.children[he],G.children[he],K))return!1;return!0}{const he=F.slice(0,N.segments.length),We=F.slice(N.segments.length);return!!(V(N.segments,he)&&Te(N.segments,he,K)&&N.children[Ze])&&At(N.children[Ze],G,We,K)}}function Te(N,G,F){return G.every((K,he)=>en[F](N[he].parameters,K.parameters))}class ye{root;queryParams;fragment;_queryParamMap;constructor(G=new He([],{}),F={},K=null){this.root=G,this.queryParams=F,this.fragment=K}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return Tt.serialize(this)}}class He{segments;children;parent=null;constructor(G,F){this.segments=G,this.children=F,Object.values(F).forEach(K=>K.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return On(this)}}class z{path;parameters;_parameterMap;constructor(G,F){this.path=G,this.parameters=F}get parameterMap(){return this._parameterMap??=Qt(this.parameters),this._parameterMap}toString(){return Vr(this)}}function V(N,G){return N.length===G.length&&N.every((F,K)=>F.path===G[K].path)}let ft=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>new mt,providedIn:"root"})}return N})();class mt{parse(G){const F=new xr(G);return new ye(F.parseRootSegment(),F.parseQueryParams(),F.parseFragment())}serialize(G){const F=`/${cn(G.root,!0)}`,K=function Vt(N){const G=Object.entries(N).map(([F,K])=>Array.isArray(K)?K.map(he=>`${Ln(F)}=${Ln(he)}`).join("&"):`${Ln(F)}=${Ln(K)}`).filter(F=>F);return G.length?`?${G.join("&")}`:""}(G.queryParams);return`${F}${K}${"string"==typeof G.fragment?`#${function lr(N){return encodeURI(N)}(G.fragment)}`:""}`}}const Tt=new mt;function On(N){return N.segments.map(G=>Vr(G)).join("/")}function cn(N,G){if(!N.hasChildren())return On(N);if(G){const F=N.children[Ze]?cn(N.children[Ze],!1):"",K=[];return Object.entries(N.children).forEach(([he,We])=>{he!==Ze&&K.push(`${he}:${cn(We,!1)}`)}),K.length>0?`${F}(${K.join("//")})`:F}{const F=function Ne(N,G){let F=[];return Object.entries(N.children).forEach(([K,he])=>{K===Ze&&(F=F.concat(G(he,K)))}),Object.entries(N.children).forEach(([K,he])=>{K!==Ze&&(F=F.concat(G(he,K)))}),F}(N,(K,he)=>he===Ze?[cn(N.children[Ze],!1)]:[`${he}:${cn(K,!1)}`]);return 1===Object.keys(N.children).length&&null!=N.children[Ze]?`${On(N)}/${F[0]}`:`${On(N)}/(${F.join("//")})`}}function hn(N){return encodeURIComponent(N).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ln(N){return hn(N).replace(/%3B/gi,";")}function Dn(N){return hn(N).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hr(N){return decodeURIComponent(N)}function Mr(N){return Hr(N.replace(/\+/g,"%20"))}function Vr(N){return`${Dn(N.path)}${function vt(N){return Object.entries(N).map(([G,F])=>`;${Dn(G)}=${Dn(F)}`).join("")}(N.parameters)}`}const Oe=/^[^\/()?;#]+/;function Ge(N){const G=N.match(Oe);return G?G[0]:""}const je=/^[^\/()?;=#]+/,ct=/^[^=?&#]+/,xn=/^[^&#]+/;class xr{url;remaining;constructor(G){this.url=G,this.remaining=G}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){const G={};if(this.consumeOptional("?"))do{this.parseQueryParam(G)}while(this.consumeOptional("&"));return G}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const G=[];for(this.peekStartsWith("(")||G.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),G.push(this.parseSegment());let F={};this.peekStartsWith("/(")&&(this.capture("/"),F=this.parseParens(!0));let K={};return this.peekStartsWith("(")&&(K=this.parseParens(!1)),(G.length>0||Object.keys(F).length>0)&&(K[Ze]=new He(G,F)),K}parseSegment(){const G=Ge(this.remaining);if(""===G&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(G),new z(Hr(G),this.parseMatrixParams())}parseMatrixParams(){const G={};for(;this.consumeOptional(";");)this.parseParam(G);return G}parseParam(G){const F=function Dt(N){const G=N.match(je);return G?G[0]:""}(this.remaining);if(!F)return;this.capture(F);let K="";if(this.consumeOptional("=")){const he=Ge(this.remaining);he&&(K=he,this.capture(K))}G[Hr(F)]=Hr(K)}parseQueryParam(G){const F=function Bt(N){const G=N.match(ct);return G?G[0]:""}(this.remaining);if(!F)return;this.capture(F);let K="";if(this.consumeOptional("=")){const St=function er(N){const G=N.match(xn);return G?G[0]:""}(this.remaining);St&&(K=St,this.capture(K))}const he=Mr(F),We=Mr(K);if(G.hasOwnProperty(he)){let St=G[he];Array.isArray(St)||(St=[St],G[he]=St),St.push(We)}else G[he]=We}parseParens(G){const F={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const K=Ge(this.remaining),he=this.remaining[K.length];if("/"!==he&&")"!==he&&";"!==he)throw new i.wOt(4010,!1);let We;K.indexOf(":")>-1?(We=K.slice(0,K.indexOf(":")),this.capture(We),this.capture(":")):G&&(We=Ze);const St=this.parseChildren();F[We]=1===Object.keys(St).length?St[Ze]:new He([],St),this.consumeOptional("//")}return F}peekStartsWith(G){return this.remaining.startsWith(G)}consumeOptional(G){return!!this.peekStartsWith(G)&&(this.remaining=this.remaining.substring(G.length),!0)}capture(G){if(!this.consumeOptional(G))throw new i.wOt(4011,!1)}}function si(N){return N.segments.length>0?new He([],{[Ze]:N}):N}function hi(N){const G={};for(const[K,he]of Object.entries(N.children)){const We=hi(he);if(K===Ze&&0===We.segments.length&&We.hasChildren())for(const[St,gn]of Object.entries(We.children))G[St]=gn;else(We.segments.length>0||We.hasChildren())&&(G[K]=We)}return function Zi(N){if(1===N.numberOfChildren&&N.children[Ze]){const G=N.children[Ze];return new He(N.segments.concat(G.segments),G.children)}return N}(new He(N.segments,G))}function nn(N){return N instanceof ye}function nt(N){let G;const he=si(function F(We){const St={};for(const an of We.children){const hr=F(an);St[an.outlet]=hr}const gn=new He(We.url,St);return We===N&&(G=gn),gn}(N.root));return G??he}function Rt(N,G,F,K){let he=N;for(;he.parent;)he=he.parent;if(0===G.length)return fr(he,he,he,F,K);const We=function ds(N){if("string"==typeof N[0]&&1===N.length&&"/"===N[0])return new Ni(!0,0,N);let G=0,F=!1;const K=N.reduce((he,We,St)=>{if("object"==typeof We&&null!=We){if(We.outlets){const gn={};return Object.entries(We.outlets).forEach(([an,hr])=>{gn[an]="string"==typeof hr?hr.split("/"):hr}),[...he,{outlets:gn}]}if(We.segmentPath)return[...he,We.segmentPath]}return"string"!=typeof We?[...he,We]:0===St?(We.split("/").forEach((gn,an)=>{0==an&&"."===gn||(0==an&&""===gn?F=!0:".."===gn?G++:""!=gn&&he.push(gn))}),he):[...he,We]},[]);return new Ni(F,G,K)}(G);if(We.toRoot())return fr(he,he,new He([],{}),F,K);const St=function ai(N,G,F){if(N.isAbsolute)return new $o(G,!0,0);if(!F)return new $o(G,!1,NaN);if(null===F.parent)return new $o(F,!0,0);const K=ln(N.commands[0])?0:1;return function qo(N,G,F){let K=N,he=G,We=F;for(;We>he;){if(We-=he,K=K.parent,!K)throw new i.wOt(4005,!1);he=K.segments.length}return new $o(K,!1,he-We)}(F,F.segments.length-1+K,N.numberOfDoubleDots)}(We,he,N),gn=St.processChildren?Fo(St.segmentGroup,St.index,We.commands):Jo(St.segmentGroup,St.index,We.commands);return fr(he,St.segmentGroup,gn,F,K)}function ln(N){return"object"==typeof N&&null!=N&&!N.outlets&&!N.segmentPath}function vn(N){return"object"==typeof N&&null!=N&&N.outlets}function fr(N,G,F,K,he){let St,We={};K&&Object.entries(K).forEach(([an,hr])=>{We[an]=Array.isArray(hr)?hr.map(ui=>`${ui}`):`${hr}`}),St=N===G?F:Co(N,G,F);const gn=si(hi(St));return new ye(gn,We,he)}function Co(N,G,F){const K={};return Object.entries(N.children).forEach(([he,We])=>{K[he]=We===G?F:Co(We,G,F)}),new He(N.segments,K)}class Ni{isAbsolute;numberOfDoubleDots;commands;constructor(G,F,K){if(this.isAbsolute=G,this.numberOfDoubleDots=F,this.commands=K,G&&K.length>0&&ln(K[0]))throw new i.wOt(4003,!1);const he=K.find(vn);if(he&&he!==Zt(K))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class $o{segmentGroup;processChildren;index;constructor(G,F,K){this.segmentGroup=G,this.processChildren=F,this.index=K}}function Jo(N,G,F){if(N??=new He([],{}),0===N.segments.length&&N.hasChildren())return Fo(N,G,F);const K=function ia(N,G,F){let K=0,he=G;const We={match:!1,pathIndex:0,commandIndex:0};for(;he=F.length)return We;const St=N.segments[he],gn=F[K];if(vn(gn))break;const an=`${gn}`,hr=K0&&void 0===an)break;if(an&&hr&&"object"==typeof hr&&void 0===hr.outlets){if(!Io(an,hr,St))return We;K+=2}else{if(!Io(an,{},St))return We;K++}he++}return{match:!0,pathIndex:he,commandIndex:K}}(N,G,F),he=F.slice(K.commandIndex);if(K.match&&K.pathIndexWe!==Ze)&&N.children[Ze]&&1===N.numberOfChildren&&0===N.children[Ze].segments.length){const We=Fo(N.children[Ze],G,F);return new He(N.segments,We.children)}return Object.entries(K).forEach(([We,St])=>{"string"==typeof St&&(St=[St]),null!==St&&(he[We]=Jo(N.children[We],G,St))}),Object.entries(N.children).forEach(([We,St])=>{void 0===K[We]&&(he[We]=St)}),new He(N.segments,he)}}function ao(N,G,F){const K=N.segments.slice(0,G);let he=0;for(;he{"string"==typeof K&&(K=[K]),null!==K&&(G[F]=ao(new He([],{}),0,K))}),G}function Ii(N){const G={};return Object.entries(N).forEach(([F,K])=>G[F]=`${K}`),G}function Io(N,G,F){return N==F.path&&Xt(G,F.parameters)}const et="imperative";var xt=function(N){return N[N.NavigationStart=0]="NavigationStart",N[N.NavigationEnd=1]="NavigationEnd",N[N.NavigationCancel=2]="NavigationCancel",N[N.NavigationError=3]="NavigationError",N[N.RoutesRecognized=4]="RoutesRecognized",N[N.ResolveStart=5]="ResolveStart",N[N.ResolveEnd=6]="ResolveEnd",N[N.GuardsCheckStart=7]="GuardsCheckStart",N[N.GuardsCheckEnd=8]="GuardsCheckEnd",N[N.RouteConfigLoadStart=9]="RouteConfigLoadStart",N[N.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",N[N.ChildActivationStart=11]="ChildActivationStart",N[N.ChildActivationEnd=12]="ChildActivationEnd",N[N.ActivationStart=13]="ActivationStart",N[N.ActivationEnd=14]="ActivationEnd",N[N.Scroll=15]="Scroll",N[N.NavigationSkipped=16]="NavigationSkipped",N}(xt||{});class dt{id;url;constructor(G,F){this.id=G,this.url=F}}class me extends dt{type=xt.NavigationStart;navigationTrigger;restoredState;constructor(G,F,K="imperative",he=null){super(G,F),this.navigationTrigger=K,this.restoredState=he}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ye extends dt{urlAfterRedirects;type=xt.NavigationEnd;constructor(G,F,K){super(G,F),this.urlAfterRedirects=K}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Re=function(N){return N[N.Redirect=0]="Redirect",N[N.SupersededByNewNavigation=1]="SupersededByNewNavigation",N[N.NoDataFromResolver=2]="NoDataFromResolver",N[N.GuardRejected=3]="GuardRejected",N}(Re||{}),gt=function(N){return N[N.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",N[N.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",N}(gt||{});class jt extends dt{reason;code;type=xt.NavigationCancel;constructor(G,F,K,he){super(G,F),this.reason=K,this.code=he}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class kt extends dt{reason;code;type=xt.NavigationSkipped;constructor(G,F,K,he){super(G,F),this.reason=K,this.code=he}}class pn extends dt{error;target;type=xt.NavigationError;constructor(G,F,K,he){super(G,F),this.error=K,this.target=he}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Sn extends dt{urlAfterRedirects;state;type=xt.RoutesRecognized;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class An extends dt{urlAfterRedirects;state;type=xt.GuardsCheckStart;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fn extends dt{urlAfterRedirects;state;shouldActivate;type=xt.GuardsCheckEnd;constructor(G,F,K,he,We){super(G,F),this.urlAfterRedirects=K,this.state=he,this.shouldActivate=We}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class zn extends dt{urlAfterRedirects;state;type=xt.ResolveStart;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tr extends dt{urlAfterRedirects;state;type=xt.ResolveEnd;constructor(G,F,K,he){super(G,F),this.urlAfterRedirects=K,this.state=he}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cr{route;type=xt.RouteConfigLoadStart;constructor(G){this.route=G}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Er{route;type=xt.RouteConfigLoadEnd;constructor(G){this.route=G}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Cr{snapshot;type=xt.ChildActivationStart;constructor(G){this.snapshot=G}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gi{snapshot;type=xt.ChildActivationEnd;constructor(G){this.snapshot=G}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ni{snapshot;type=xt.ActivationStart;constructor(G){this.snapshot=G}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mi{snapshot;type=xt.ActivationEnd;constructor(G){this.snapshot=G}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rr{routerEvent;position;anchor;type=xt.Scroll;constructor(G,F,K){this.routerEvent=G,this.position=F,this.anchor=K}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Qr{}class Pr{url;navigationBehaviorOptions;constructor(G,F){this.url=G,this.navigationBehaviorOptions=F}}function No(N){return N.outlet||Ze}function Ko(N){if(!N)return null;if(N.routeConfig?._injector)return N.routeConfig._injector;for(let G=N.parent;G;G=G.parent){const F=G.routeConfig;if(F?._loadedInjector)return F._loadedInjector;if(F?._injector)return F._injector}return null}class mo{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ko(this.route?.snapshot)??this.rootInjector}constructor(G){this.rootInjector=G,this.children=new Go(this.rootInjector)}}let Go=(()=>{class N{rootInjector;contexts=new Map;constructor(F){this.rootInjector=F}onChildOutletCreated(F,K){const he=this.getOrCreateContext(F);he.outlet=K,this.contexts.set(F,he)}onChildOutletDestroyed(F){const K=this.getContext(F);K&&(K.outlet=null,K.attachRef=null)}onOutletDeactivated(){const F=this.contexts;return this.contexts=new Map,F}onOutletReAttached(F){this.contexts=F}getOrCreateContext(F){let K=this.getContext(F);return K||(K=new mo(this.rootInjector),this.contexts.set(F,K)),K}getContext(F){return this.contexts.get(F)||null}static \u0275fac=function(K){return new(K||N)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();class Rs{_root;constructor(G){this._root=G}get root(){return this._root.value}parent(G){const F=this.pathFromRoot(G);return F.length>1?F[F.length-2]:null}children(G){const F=Xr(G,this._root);return F?F.children.map(K=>K.value):[]}firstChild(G){const F=Xr(G,this._root);return F&&F.children.length>0?F.children[0].value:null}siblings(G){const F=Ds(G,this._root);return F.length<2?[]:F[F.length-2].children.map(he=>he.value).filter(he=>he!==G)}pathFromRoot(G){return Ds(G,this._root).map(F=>F.value)}}function Xr(N,G){if(N===G.value)return G;for(const F of G.children){const K=Xr(N,F);if(K)return K}return null}function Ds(N,G){if(N===G.value)return[G];for(const F of G.children){const K=Ds(N,F);if(K.length)return K.unshift(G),K}return[]}class go{value;children;constructor(G,F){this.value=G,this.children=F}toString(){return`TreeNode(${this.value})`}}function io(N){const G={};return N&&N.children.forEach(F=>G[F.value.outlet]=F),G}class fs extends Rs{snapshot;constructor(G,F){super(G),this.snapshot=F,Gs(this,G)}toString(){return this.snapshot.toString()}}function Xo(N){const G=function Ya(N){const We=new ur([],{},{},"",{},Ze,N,null,{});return new As("",new go(We,[]))}(N),F=new w.t([new z("",{})]),K=new w.t({}),he=new w.t({}),We=new w.t({}),St=new w.t(""),gn=new _o(F,K,We,St,he,Ze,N,G.root);return gn.snapshot=G.root,new fs(new go(gn,[]),G)}class _o{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(G,F,K,he,We,St,gn,an){this.urlSubject=G,this.paramsSubject=F,this.queryParamsSubject=K,this.fragmentSubject=he,this.dataSubject=We,this.outlet=St,this.component=gn,this._futureSnapshot=an,this.title=this.dataSubject?.pipe((0,de.T)(hr=>hr[it]))??(0,y.of)(void 0),this.url=G,this.params=F,this.queryParams=K,this.fragment=he,this.data=We}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,de.T)(G=>Qt(G))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,de.T)(G=>Qt(G))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ao(N,G,F="emptyOnly"){let K;const{routeConfig:he}=N;return K=null===G||"always"!==F&&""!==he?.path&&(G.component||G.routeConfig?.loadComponent)?{params:{...N.params},data:{...N.data},resolve:{...N.data,...N._resolvedData??{}}}:{params:{...G.params,...N.params},data:{...G.data,...N.data},resolve:{...N.data,...G.data,...he?.data,...N._resolvedData}},he&&Vi(he)&&(K.resolve[it]=he.title),K}class ur{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[it]}constructor(G,F,K,he,We,St,gn,an,hr){this.url=G,this.params=F,this.queryParams=K,this.fragment=he,this.data=We,this.outlet=St,this.component=gn,this.routeConfig=an,this._resolve=hr}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??=Qt(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Qt(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(K=>K.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class As extends Rs{url;constructor(G,F){super(F),this.url=G,Gs(this,F)}toString(){return _s(this._root)}}function Gs(N,G){G.value._routerState=N,G.children.forEach(F=>Gs(N,F))}function _s(N){const G=N.children.length>0?` { ${N.children.map(_s).join(", ")} } `:"";return`${N.value}${G}`}function aa(N){if(N.snapshot){const G=N.snapshot,F=N._futureSnapshot;N.snapshot=F,Xt(G.queryParams,F.queryParams)||N.queryParamsSubject.next(F.queryParams),G.fragment!==F.fragment&&N.fragmentSubject.next(F.fragment),Xt(G.params,F.params)||N.paramsSubject.next(F.params),function ht(N,G){if(N.length!==G.length)return!1;for(let F=0;FXt(F.parameters,G[K].parameters))}(N.url,G.url);return F&&!(!N.parent!=!G.parent)&&(!N.parent||ls(N.parent,G.parent))}function Vi(N){return"string"==typeof N.title||null===N.title}const al=new i.nKC("");let la=(()=>{class N{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Ze;activateEvents=new i.bkB;deactivateEvents=new i.bkB;attachEvents=new i.bkB;detachEvents=new i.bkB;routerOutletData=(0,i.hFB)(void 0);parentContexts=(0,i.WQX)(Go);location=(0,i.WQX)(i.c1b);changeDetector=(0,i.WQX)(i.gRc);inputBinder=(0,i.WQX)(Ts,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(F){if(F.name){const{firstChange:K,previousValue:he}=F.name;if(K)return;this.isTrackedInParentContexts(he)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(he)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(F){return this.parentContexts.getContext(F)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const F=this.parentContexts.getContext(this.name);F?.route&&(F.attachRef?this.attach(F.attachRef,F.route):this.activateWith(F.route,F.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const F=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(F.instance),F}attach(F,K){this.activated=F,this._activatedRoute=K,this.location.insert(F.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(F.instance)}deactivate(){if(this.activated){const F=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(F)}}activateWith(F,K){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=F;const he=this.location,St=F.snapshot.component,gn=this.parentContexts.getOrCreateContext(this.name).children,an=new Ss(F,gn,he.injector,this.routerOutletData);this.activated=he.createComponent(St,{index:he.length,injector:an,environmentInjector:K}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(K){return new(K||N)};static \u0275dir=i.FsC({type:N,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[i.OA$]})}return N})();class Ss{route;childContexts;parent;outletData;__ngOutletInjector(G){return new Ss(this.route,this.childContexts,G,this.outletData)}constructor(G,F,K,he){this.route=G,this.childContexts=F,this.parent=K,this.outletData=he}get(G,F){return G===_o?this.route:G===Go?this.childContexts:G===al?this.outletData:this.parent.get(G,F)}}const Ts=new i.nKC("");let Ns=(()=>{class N{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(F){this.unsubscribeFromRouteData(F),this.subscribeToRouteData(F)}unsubscribeFromRouteData(F){this.outletDataSubscriptions.get(F)?.unsubscribe(),this.outletDataSubscriptions.delete(F)}subscribeToRouteData(F){const{activatedRoute:K}=F,he=(0,C.z)([K.queryParams,K.params,K.data]).pipe((0,De.n)(([We,St,gn],an)=>(gn={...We,...St,...gn},0===an?(0,y.of)(gn):Promise.resolve(gn)))).subscribe(We=>{if(!F.isActivated||!F.activatedComponentRef||F.activatedRoute!==K||null===K.component)return void this.unsubscribeFromRouteData(F);const St=(0,i.HJs)(K.component);if(St)for(const{templateName:gn}of St.inputs)F.activatedComponentRef.setInput(gn,We[gn]);else this.unsubscribeFromRouteData(F)});this.outletDataSubscriptions.set(F,he)}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function Bo(N,G,F){if(F&&N.shouldReuseRoute(G.value,F.value.snapshot)){const K=F.value;K._futureSnapshot=G.value;const he=function lo(N,G,F){return G.children.map(K=>{for(const he of F.children)if(N.shouldReuseRoute(K.value,he.value.snapshot))return Bo(N,K,he);return Bo(N,K)})}(N,G,F);return new go(K,he)}{if(N.shouldAttach(G.value)){const We=N.retrieve(G.value);if(null!==We){const St=We.route;return St.value._futureSnapshot=G.value,St.children=G.children.map(gn=>Bo(N,gn)),St}}const K=function ps(N){return new _o(new w.t(N.url),new w.t(N.params),new w.t(N.queryParams),new w.t(N.fragment),new w.t(N.data),N.outlet,N.component,N)}(G.value),he=G.children.map(We=>Bo(N,We));return new go(K,he)}}class Da{redirectTo;navigationBehaviorOptions;constructor(G,F){this.redirectTo=G,this.navigationBehaviorOptions=F}}const Ms="ngNavigationCancelingError";function Us(N,G){const{redirectTo:F,navigationBehaviorOptions:K}=nn(G)?{redirectTo:G,navigationBehaviorOptions:void 0}:G,he=ca(!1,Re.Redirect);return he.url=F,he.navigationBehaviorOptions=K,he}function ca(N,G){const F=new Error(`NavigationCancelingError: ${N||""}`);return F[Ms]=!0,F.cancellationCode=G,F}function Aa(N){return!!N&&N[Ms]}class J{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(G,F,K,he,We){this.routeReuseStrategy=G,this.futureState=F,this.currState=K,this.forwardEvent=he,this.inputBindingEnabled=We}activate(G){const F=this.futureState._root,K=this.currState?this.currState._root:null;this.deactivateChildRoutes(F,K,G),aa(this.futureState.root),this.activateChildRoutes(F,K,G)}deactivateChildRoutes(G,F,K){const he=io(F);G.children.forEach(We=>{const St=We.value.outlet;this.deactivateRoutes(We,he[St],K),delete he[St]}),Object.values(he).forEach(We=>{this.deactivateRouteAndItsChildren(We,K)})}deactivateRoutes(G,F,K){const he=G.value,We=F?F.value:null;if(he===We)if(he.component){const St=K.getContext(he.outlet);St&&this.deactivateChildRoutes(G,F,St.children)}else this.deactivateChildRoutes(G,F,K);else We&&this.deactivateRouteAndItsChildren(F,K)}deactivateRouteAndItsChildren(G,F){G.value.component&&this.routeReuseStrategy.shouldDetach(G.value.snapshot)?this.detachAndStoreRouteSubtree(G,F):this.deactivateRouteAndOutlet(G,F)}detachAndStoreRouteSubtree(G,F){const K=F.getContext(G.value.outlet),he=K&&G.value.component?K.children:F,We=io(G);for(const St of Object.values(We))this.deactivateRouteAndItsChildren(St,he);if(K&&K.outlet){const St=K.outlet.detach(),gn=K.children.onOutletDeactivated();this.routeReuseStrategy.store(G.value.snapshot,{componentRef:St,route:G,contexts:gn})}}deactivateRouteAndOutlet(G,F){const K=F.getContext(G.value.outlet),he=K&&G.value.component?K.children:F,We=io(G);for(const St of Object.values(We))this.deactivateRouteAndItsChildren(St,he);K&&(K.outlet&&(K.outlet.deactivate(),K.children.onOutletDeactivated()),K.attachRef=null,K.route=null)}activateChildRoutes(G,F,K){const he=io(F);G.children.forEach(We=>{this.activateRoutes(We,he[We.value.outlet],K),this.forwardEvent(new Mi(We.value.snapshot))}),G.children.length&&this.forwardEvent(new gi(G.value.snapshot))}activateRoutes(G,F,K){const he=G.value,We=F?F.value:null;if(aa(he),he===We)if(he.component){const St=K.getOrCreateContext(he.outlet);this.activateChildRoutes(G,F,St.children)}else this.activateChildRoutes(G,F,K);else if(he.component){const St=K.getOrCreateContext(he.outlet);if(this.routeReuseStrategy.shouldAttach(he.snapshot)){const gn=this.routeReuseStrategy.retrieve(he.snapshot);this.routeReuseStrategy.store(he.snapshot,null),St.children.onOutletReAttached(gn.contexts),St.attachRef=gn.componentRef,St.route=gn.route.value,St.outlet&&St.outlet.attach(gn.componentRef,gn.route.value),aa(gn.route.value),this.activateChildRoutes(G,null,St.children)}else St.attachRef=null,St.route=he,St.outlet&&St.outlet.activateWith(he,St.injector),this.activateChildRoutes(G,null,St.children)}else this.activateChildRoutes(G,null,K)}}class ot{path;route;constructor(G){this.path=G,this.route=this.path[this.path.length-1]}}class Ct{component;route;constructor(G,F){this.component=G,this.route=F}}function jn(N,G,F){const K=N._root;return qn(K,G?G._root:null,F,[K.value])}function Gn(N,G){const F=Symbol(),K=G.get(N,F);return K===F?"function"!=typeof N||(0,i.LfX)(N)?G.get(N):N:K}function qn(N,G,F,K,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=io(G);return N.children.forEach(St=>{(function qr(N,G,F,K,he={canDeactivateChecks:[],canActivateChecks:[]}){const We=N.value,St=G?G.value:null,gn=F?F.getContext(N.value.outlet):null;if(St&&We.routeConfig===St.routeConfig){const an=function zi(N,G,F){if("function"==typeof F)return F(N,G);switch(F){case"pathParamsChange":return!V(N.url,G.url);case"pathParamsOrQueryParamsChange":return!V(N.url,G.url)||!Xt(N.queryParams,G.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ls(N,G)||!Xt(N.queryParams,G.queryParams);default:return!ls(N,G)}}(St,We,We.routeConfig.runGuardsAndResolvers);an?he.canActivateChecks.push(new ot(K)):(We.data=St.data,We._resolvedData=St._resolvedData),qn(N,G,We.component?gn?gn.children:null:F,K,he),an&&gn&&gn.outlet&&gn.outlet.isActivated&&he.canDeactivateChecks.push(new Ct(gn.outlet.component,St))}else St&&kr(G,gn,he),he.canActivateChecks.push(new ot(K)),qn(N,null,We.component?gn?gn.children:null:F,K,he)})(St,We[St.value.outlet],F,K.concat([St.value]),he),delete We[St.value.outlet]}),Object.entries(We).forEach(([St,gn])=>kr(gn,F.getContext(St),he)),he}function kr(N,G,F){const K=io(N),he=N.value;Object.entries(K).forEach(([We,St])=>{kr(St,he.component?G?G.children.getContext(We):null:G,F)}),F.canDeactivateChecks.push(new Ct(he.component&&G&&G.outlet&&G.outlet.isActivated?G.outlet.component:null,he))}function fi(N){return"function"==typeof N}function Ba(N){return N instanceof T.G||"EmptyError"===N?.name}const Ua=Symbol("INITIAL_VALUE");function ua(){return(0,De.n)(N=>(0,C.z)(N.map(G=>G.pipe((0,Ee.s)(1),(0,Le.Z)(Ua)))).pipe((0,de.T)(G=>{for(const F of G)if(!0!==F){if(F===Ua)return Ua;if(!1===F||ce(F))return F}return!0}),(0,Ae.p)(G=>G!==Ua),(0,Ee.s)(1)))}function ce(N){return nn(N)||N instanceof Da}function $a(N){return(0,k.F)((0,xe.M)(G=>{if("boolean"!=typeof G)throw Us(0,G)}),(0,de.T)(G=>!0===G))}class ll{segmentGroup;constructor(G){this.segmentGroup=G||null}}class _i extends Error{urlTree;constructor(G){super(),this.urlTree=G}}function cs(N){return(0,R.$)(new ll(N))}class Lu{urlSerializer;urlTree;constructor(G,F){this.urlSerializer=G,this.urlTree=F}lineralizeSegments(G,F){let K=[],he=F.root;for(;;){if(K=K.concat(he.segments),0===he.numberOfChildren)return(0,y.of)(K);if(he.numberOfChildren>1||!he.children[Ze])return(0,R.$)(new i.wOt(4e3,!1));he=he.children[Ze]}}applyRedirectCommands(G,F,K,he,We){if("string"!=typeof F){const gn=F,{queryParams:an,fragment:hr,routeConfig:ui,url:Ir,outlet:Gi,params:Is,data:is,title:Oa}=he,us=(0,i.N4e)(We,()=>gn({params:Is,data:is,queryParams:an,fragment:hr,routeConfig:ui,url:Ir,outlet:Gi,title:Oa}));if(us instanceof ye)throw new _i(us);F=us}const St=this.applyRedirectCreateUrlTree(F,this.urlSerializer.parse(F),G,K);if("/"===F[0])throw new _i(St);return St}applyRedirectCreateUrlTree(G,F,K,he){const We=this.createSegmentGroup(G,F.root,K,he);return new ye(We,this.createQueryParams(F.queryParams,this.urlTree.queryParams),F.fragment)}createQueryParams(G,F){const K={};return Object.entries(G).forEach(([he,We])=>{if("string"==typeof We&&":"===We[0]){const gn=We.substring(1);K[he]=F[gn]}else K[he]=We}),K}createSegmentGroup(G,F,K,he){const We=this.createSegments(G,F.segments,K,he);let St={};return Object.entries(F.children).forEach(([gn,an])=>{St[gn]=this.createSegmentGroup(G,an,K,he)}),new He(We,St)}createSegments(G,F,K,he){return F.map(We=>":"===We.path[0]?this.findPosParam(G,We,he):this.findOrReturn(We,K))}findPosParam(G,F,K){const he=K[F.path.substring(1)];if(!he)throw new i.wOt(4001,!1);return he}findOrReturn(G,F){let K=0;for(const he of F){if(he.path===G.path)return F.splice(K),he;K++}return G}}const wl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function cl(N,G,F,K,he){const We=yi(N,G,F);return We.matched?(K=function es(N,G){return N.providers&&!N._injector&&(N._injector=(0,i.Ol2)(N.providers,G,`Route: ${N.path}`)),N._injector??G}(G,K),function fc(N,G,F,K){const he=G.canMatch;if(!he||0===he.length)return(0,y.of)(!0);const We=he.map(St=>{const gn=Gn(St,N);return rt(function Ho(N){return N&&fi(N.canMatch)}(gn)?gn.canMatch(G,F):(0,i.N4e)(N,()=>gn(G,F)))});return(0,y.of)(We).pipe(ua(),$a())}(K,G,F).pipe((0,de.T)(St=>!0===St?We:{...wl}))):(0,y.of)(We)}function yi(N,G,F){if("**"===G.path)return function Il(N){return{matched:!0,parameters:N.length>0?Zt(N).parameters:{},consumedSegments:N,remainingSegments:[],positionalParamSegments:{}}}(F);if(""===G.path)return"full"===G.pathMatch&&(N.hasChildren()||F.length>0)?{...wl}:{matched:!0,consumedSegments:[],remainingSegments:F,parameters:{},positionalParamSegments:{}};const he=(G.matcher||Me)(F,N,G);if(!he)return{...wl};const We={};Object.entries(he.posParams??{}).forEach(([gn,an])=>{We[gn]=an.path});const St=he.consumed.length>0?{...We,...he.consumed[he.consumed.length-1].parameters}:We;return{matched:!0,consumedSegments:he.consumed,remainingSegments:F.slice(he.consumed.length),parameters:St,positionalParamSegments:he.posParams??{}}}function eu(N,G,F,K){return F.length>0&&function $s(N,G,F){return F.some(K=>Sa(N,G,K)&&No(K)!==Ze)}(N,F,K)?{segmentGroup:new He(G,ul(K,new He(F,N.children))),slicedSegments:[]}:0===F.length&&function Ol(N,G,F){return F.some(K=>Sa(N,G,K))}(N,F,K)?{segmentGroup:new He(N.segments,tu(N,F,K,N.children)),slicedSegments:F}:{segmentGroup:new He(N.segments,N.children),slicedSegments:F}}function tu(N,G,F,K){const he={};for(const We of F)if(Sa(N,G,We)&&!K[No(We)]){const St=new He([],{});he[No(We)]=St}return{...K,...he}}function ul(N,G){const F={};F[Ze]=G;for(const K of N)if(""===K.path&&No(K)!==Ze){const he=new He([],{});F[No(K)]=he}return F}function Sa(N,G,F){return(!(N.hasChildren()||G.length>0)||"full"!==F.pathMatch)&&""===F.path}class js{}class ru{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(G,F,K,he,We,St,gn){this.injector=G,this.configLoader=F,this.rootComponentType=K,this.config=he,this.urlTree=We,this.paramsInheritanceStrategy=St,this.urlSerializer=gn,this.applyRedirects=new Lu(this.urlSerializer,this.urlTree)}noMatchError(G){return new i.wOt(4002,`'${G.segmentGroup}'`)}recognize(){const G=eu(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(G).pipe((0,de.T)(({children:F,rootSnapshot:K})=>{const he=new go(K,F),We=new As("",he),St=function Mt(N,G,F=null,K=null){return Rt(nt(N),G,F,K)}(K,[],this.urlTree.queryParams,this.urlTree.fragment);return St.queryParams=this.urlTree.queryParams,We.url=this.urlSerializer.serialize(St),{state:We,tree:St}}))}match(G){const F=new ur([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),Ze,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,G,Ze,F).pipe((0,de.T)(K=>({children:K,rootSnapshot:F})),(0,Be.W)(K=>{if(K instanceof _i)return this.urlTree=K.urlTree,this.match(K.urlTree.root);throw K instanceof ll?this.noMatchError(K):K}))}processSegmentGroup(G,F,K,he,We){return 0===K.segments.length&&K.hasChildren()?this.processChildren(G,F,K,We):this.processSegment(G,F,K,K.segments,he,!0,We).pipe((0,de.T)(St=>St instanceof go?[St]:[]))}processChildren(G,F,K,he){const We=[];for(const St of Object.keys(K.children))"primary"===St?We.unshift(St):We.push(St);return(0,c.H)(We).pipe((0,ae.H)(St=>{const gn=K.children[St],an=function hs(N,G){const F=N.filter(K=>No(K)===G);return F.push(...N.filter(K=>No(K)!==G)),F}(F,St);return this.processSegmentGroup(G,an,gn,St,he)}),function bt(N,G){return(0,st.N)((0,lt.S)(N,G,arguments.length>=2,!0))}((St,gn)=>(St.push(...gn),St)),(0,at.U)(null),function wn(N,G){const F=arguments.length>=2;return K=>K.pipe(N?(0,Ae.p)((he,We)=>N(he,We,K)):Wn.D,fn(1),F?(0,at.U)(G):(0,En.v)(()=>new T.G))}(),(0,we.Z)(St=>{if(null===St)return cs(K);const gn=jl(St);return function Mc(N){N.sort((G,F)=>G.value.outlet===Ze?-1:F.value.outlet===Ze?1:G.value.outlet.localeCompare(F.value.outlet))}(gn),(0,y.of)(gn)}))}processSegment(G,F,K,he,We,St,gn){return(0,c.H)(F).pipe((0,ae.H)(an=>this.processSegmentAgainstRoute(an._injector??G,F,an,K,he,We,St,gn).pipe((0,Be.W)(hr=>{if(hr instanceof ll)return(0,y.of)(null);throw hr}))),(0,le.$)(an=>!!an),(0,Be.W)(an=>{if(Ba(an))return function ks(N,G,F){return 0===G.length&&!N.children[F]}(K,he,We)?(0,y.of)(new js):cs(K);throw an}))}processSegmentAgainstRoute(G,F,K,he,We,St,gn,an){return No(K)===St||St!==Ze&&Sa(he,We,K)?void 0===K.redirectTo?this.matchSegmentAgainstRoute(G,he,K,We,St,an):this.allowRedirects&&gn?this.expandSegmentAgainstRouteUsingRedirect(G,he,F,K,We,St,an):cs(he):cs(he)}expandSegmentAgainstRouteUsingRedirect(G,F,K,he,We,St,gn){const{matched:an,parameters:hr,consumedSegments:ui,positionalParamSegments:Ir,remainingSegments:Gi}=yi(F,he,We);if(!an)return cs(F);"string"==typeof he.redirectTo&&"/"===he.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Is=new ur(We,hr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vl(he),No(he),he.component??he._loadedComponent??null,he,Hl(he)),is=Ao(Is,gn,this.paramsInheritanceStrategy);Is.params=Object.freeze(is.params),Is.data=Object.freeze(is.data);const Oa=this.applyRedirects.applyRedirectCommands(ui,he.redirectTo,Ir,Is,G);return this.applyRedirects.lineralizeSegments(he,Oa).pipe((0,we.Z)(us=>this.processSegment(G,K,F,us.concat(Gi),St,!1,gn)))}matchSegmentAgainstRoute(G,F,K,he,We,St){const gn=cl(F,K,he,G);return"**"===K.path&&(F.children={}),gn.pipe((0,De.n)(an=>an.matched?this.getChildConfig(G=K._injector??G,K,he).pipe((0,De.n)(({routes:hr})=>{const ui=K._loadedInjector??G,{parameters:Ir,consumedSegments:Gi,remainingSegments:Is}=an,is=new ur(Gi,Ir,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Vl(K),No(K),K.component??K._loadedComponent??null,K,Hl(K)),Oa=Ao(is,St,this.paramsInheritanceStrategy);is.params=Object.freeze(Oa.params),is.data=Object.freeze(Oa.data);const{segmentGroup:us,slicedSegments:Wr}=eu(F,Gi,Is,hr);if(0===Wr.length&&us.hasChildren())return this.processChildren(ui,hr,us,is).pipe((0,de.T)(za=>new go(is,za)));if(0===hr.length&&0===Wr.length)return(0,y.of)(new go(is,[]));const Ys=No(K)===We;return this.processSegment(ui,hr,us,Wr,Ys?Ze:We,!0,is).pipe((0,de.T)(za=>new go(is,za instanceof go?[za]:[])))})):cs(F)))}getChildConfig(G,F,K){return F.children?(0,y.of)({routes:F.children,injector:G}):F.loadChildren?void 0!==F._loadedRoutes?(0,y.of)({routes:F._loadedRoutes,injector:F._loadedInjector}):function yl(N,G,F,K){const he=G.canLoad;if(void 0===he||0===he.length)return(0,y.of)(!0);const We=he.map(St=>{const gn=Gn(St,N);return rt(function di(N){return N&&fi(N.canLoad)}(gn)?gn.canLoad(G,F):(0,i.N4e)(N,()=>gn(G,F)))});return(0,y.of)(We).pipe(ua(),$a())}(G,F,K).pipe((0,we.Z)(he=>he?this.configLoader.loadChildren(G,F).pipe((0,xe.M)(We=>{F._loadedRoutes=We.routes,F._loadedInjector=We.injector})):function bl(){return(0,R.$)(ca(!1,Re.GuardRejected))}())):(0,y.of)({routes:[],injector:G})}}function El(N){const G=N.value.routeConfig;return G&&""===G.path}function jl(N){const G=[],F=new Set;for(const K of N){if(!El(K)){G.push(K);continue}const he=G.find(We=>K.value.routeConfig===We.value.routeConfig);void 0!==he?(he.children.push(...K.children),F.add(he)):G.push(K)}for(const K of F){const he=jl(K.children);G.push(new go(K.value,he))}return G.filter(K=>!F.has(K))}function Vl(N){return N.data||{}}function Hl(N){return N.resolve||{}}function Vo(N){const G=N.children.map(F=>Vo(F)).flat();return[N,...G]}function Tr(N){return(0,De.n)(G=>{const F=N(G);return F?(0,c.H)(F).pipe((0,de.T)(()=>G)):(0,y.of)(G)})}let Oi=(()=>{class N{buildTitle(F){let K,he=F.root;for(;void 0!==he;)K=this.getResolvedTitleForRoute(he)??K,he=he.children.find(We=>We.outlet===Ze);return K}getResolvedTitleForRoute(F){return F.data[it]}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(ys),providedIn:"root"})}return N})(),ys=(()=>{class N extends Oi{title;constructor(F){super(),this.title=F}updateTitle(F){const K=this.buildTitle(F);void 0!==K&&this.title.setTitle(K)}static \u0275fac=function(K){return new(K||N)(i.KVO(Ke.hE))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Qi=new i.nKC("",{providedIn:"root",factory:()=>({})});let so=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275cmp=i.VBU({type:N,selectors:[["ng-component"]],decls:1,vars:0,template:function(K,he){1&K&&i.nrm(0,"router-outlet")},dependencies:[la],encapsulation:2})}return N})();function Bi(N){const G=N.children&&N.children.map(Bi),F=G?{...N,children:G}:{...N};return!F.component&&!F.loadComponent&&(G||F.loadChildren)&&F.outlet&&F.outlet!==Ze&&(F.component=so),F}const Ki=new i.nKC("");let no=(()=>{class N{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(i.Ql9);loadComponent(F){if(this.componentLoaders.get(F))return this.componentLoaders.get(F);if(F._loadedComponent)return(0,y.of)(F._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(F);const K=rt(F.loadComponent()).pipe((0,de.T)(Xs),(0,xe.M)(We=>{this.onLoadEndListener&&this.onLoadEndListener(F),F._loadedComponent=We}),(0,_t.j)(()=>{this.componentLoaders.delete(F)})),he=new Z.G(K,()=>new re.B).pipe((0,ze.B)());return this.componentLoaders.set(F,he),he}loadChildren(F,K){if(this.childrenLoaders.get(K))return this.childrenLoaders.get(K);if(K._loadedRoutes)return(0,y.of)({routes:K._loadedRoutes,injector:K._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(K);const We=function co(N,G,F,K){return rt(N.loadChildren()).pipe((0,de.T)(Xs),(0,we.Z)(he=>he instanceof i.Co$||Array.isArray(he)?(0,y.of)(he):(0,c.H)(G.compileModuleAsync(he))),(0,de.T)(he=>{K&&K(N);let We,St,gn=!1;return Array.isArray(he)?(St=he,!0):(We=he.create(F).injector,St=We.get(Ki,[],{optional:!0,self:!0}).flat()),{routes:St.map(Bi),injector:We}}))}(K,this.compiler,F,this.onLoadEndListener).pipe((0,_t.j)(()=>{this.childrenLoaders.delete(K)})),St=new Z.G(We,()=>new re.B).pipe((0,ze.B)());return this.childrenLoaders.set(K,St),St}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Xs(N){return function ri(N){return N&&"object"==typeof N&&"default"in N}(N)?N.default:N}let Za=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Uo),providedIn:"root"})}return N})(),Uo=(()=>{class N{shouldProcessUrl(F){return!0}extract(F){return F}merge(F,K){return F}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const vo=new i.nKC(""),Ci=new i.nKC("");function Vs(N,G,F){const K=N.get(Ci),he=N.get(pe.qQ);return N.get(i.SKi).runOutsideAngular(()=>{if(!he.startViewTransition||K.skipNextTransition)return K.skipNextTransition=!1,new Promise(hr=>setTimeout(hr));let We;const St=new Promise(hr=>{We=hr}),gn=he.startViewTransition(()=>(We(),function uo(N){return new Promise(G=>{(0,i.mal)({read:()=>setTimeout(G)},{injector:N})})}(N))),{onViewTransitionCreated:an}=K;return an&&(0,i.N4e)(N,()=>an({transition:gn,from:G,to:F})),St})}const Ui=new i.nKC("");let U=(()=>{class N{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new re.B;transitionAbortSubject=new re.B;configLoader=(0,i.WQX)(no);environmentInjector=(0,i.WQX)(i.uvJ);urlSerializer=(0,i.WQX)(ft);rootContexts=(0,i.WQX)(Go);location=(0,i.WQX)(pe.aZ);inputBindingEnabled=null!==(0,i.WQX)(Ts,{optional:!0});titleStrategy=(0,i.WQX)(Oi);options=(0,i.WQX)(Qi,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(Za);createViewTransition=(0,i.WQX)(vo,{optional:!0});navigationErrorHandler=(0,i.WQX)(Ui,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,y.of)(void 0);rootComponentType=null;constructor(){this.configLoader.onLoadEndListener=he=>this.events.next(new Er(he)),this.configLoader.onLoadStartListener=he=>this.events.next(new cr(he))}complete(){this.transitions?.complete()}handleNavigationRequest(F){const K=++this.navigationId;this.transitions?.next({...this.transitions.value,...F,id:K})}setupNavigations(F,K,he){return this.transitions=new w.t({id:0,currentUrlTree:K,currentRawUrl:K,extractedUrl:this.urlHandlingStrategy.extract(K),urlAfterRedirects:this.urlHandlingStrategy.extract(K),rawUrl:K,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:et,restoredState:null,currentSnapshot:he.snapshot,targetSnapshot:null,currentRouterState:he,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ae.p)(We=>0!==We.id),(0,de.T)(We=>({...We,extractedUrl:this.urlHandlingStrategy.extract(We.rawUrl)})),(0,De.n)(We=>{let St=!1,gn=!1;return(0,y.of)(We).pipe((0,De.n)(an=>{if(this.navigationId>We.id)return this.cancelNavigationTransition(We,"",Re.SupersededByNewNavigation),X.w;this.currentTransition=We,this.currentNavigation={id:an.id,initialUrl:an.rawUrl,extractedUrl:an.extractedUrl,targetBrowserUrl:"string"==typeof an.extras.browserUrl?this.urlSerializer.parse(an.extras.browserUrl):an.extras.browserUrl,trigger:an.source,extras:an.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!F.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!hr&&"reload"!==(an.extras.onSameUrlNavigation??F.onSameUrlNavigation)){const Ir="";return this.events.next(new kt(an.id,this.urlSerializer.serialize(an.rawUrl),Ir,gt.IgnoredSameUrlNavigation)),an.resolve(!1),X.w}if(this.urlHandlingStrategy.shouldProcessUrl(an.rawUrl))return(0,y.of)(an).pipe((0,De.n)(Ir=>{const Gi=this.transitions?.getValue();return this.events.next(new me(Ir.id,this.urlSerializer.serialize(Ir.extractedUrl),Ir.source,Ir.restoredState)),Gi!==this.transitions?.getValue()?X.w:Promise.resolve(Ir)}),function da(N,G,F,K,he,We){return(0,we.Z)(St=>function nu(N,G,F,K,he,We,St="emptyOnly"){return new ru(N,G,F,K,he,St,We).recognize()}(N,G,F,K,St.extractedUrl,he,We).pipe((0,de.T)(({state:gn,tree:an})=>({...St,targetSnapshot:gn,urlAfterRedirects:an}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,F.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,xe.M)(Ir=>{We.targetSnapshot=Ir.targetSnapshot,We.urlAfterRedirects=Ir.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ir.urlAfterRedirects};const Gi=new Sn(Ir.id,this.urlSerializer.serialize(Ir.extractedUrl),this.urlSerializer.serialize(Ir.urlAfterRedirects),Ir.targetSnapshot);this.events.next(Gi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(an.currentRawUrl)){const{id:Ir,extractedUrl:Gi,source:Is,restoredState:is,extras:Oa}=an,us=new me(Ir,this.urlSerializer.serialize(Gi),Is,is);this.events.next(us);const Wr=Xo(this.rootComponentType).snapshot;return this.currentTransition=We={...an,targetSnapshot:Wr,urlAfterRedirects:Gi,extras:{...Oa,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Gi,(0,y.of)(We)}{const Ir="";return this.events.next(new kt(an.id,this.urlSerializer.serialize(an.extractedUrl),Ir,gt.IgnoredByUrlHandlingStrategy)),an.resolve(!1),X.w}}),(0,xe.M)(an=>{const hr=new An(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot);this.events.next(hr)}),(0,de.T)(an=>(this.currentTransition=We={...an,guards:jn(an.targetSnapshot,an.currentSnapshot,this.rootContexts)},We)),function ue(N,G){return(0,we.Z)(F=>{const{targetSnapshot:K,currentSnapshot:he,guards:{canActivateChecks:We,canDeactivateChecks:St}}=F;return 0===St.length&&0===We.length?(0,y.of)({...F,guardsResult:!0}):function Q(N,G,F,K){return(0,c.H)(N).pipe((0,we.Z)(he=>function kl(N,G,F,K,he){const We=G&&G.routeConfig?G.routeConfig.canDeactivate:null;if(!We||0===We.length)return(0,y.of)(!0);const St=We.map(gn=>{const an=Ko(G)??he,hr=Gn(gn,an);return rt(function jo(N){return N&&fi(N.canDeactivate)}(hr)?hr.canDeactivate(N,G,F,K):(0,i.N4e)(an,()=>hr(N,G,F,K))).pipe((0,le.$)())});return(0,y.of)(St).pipe(ua())}(he.component,he.route,F,G,K)),(0,le.$)(he=>!0!==he,!0))}(St,K,he,N).pipe((0,we.Z)(gn=>gn&&function zr(N){return"boolean"==typeof N}(gn)?function Fe(N,G,F,K){return(0,c.H)(G).pipe((0,ae.H)(he=>(0,S.x)(function wr(N,G){return null!==N&&G&&G(new Cr(N)),(0,y.of)(!0)}(he.route.parent,K),function $t(N,G){return null!==N&&G&&G(new ni(N)),(0,y.of)(!0)}(he.route,K),function ts(N,G,F){const K=G[G.length-1],We=G.slice(0,G.length-1).reverse().map(St=>function Pn(N){const G=N.routeConfig?N.routeConfig.canActivateChild:null;return G&&0!==G.length?{node:N,guards:G}:null}(St)).filter(St=>null!==St).map(St=>(0,M.v)(()=>{const gn=St.guards.map(an=>{const hr=Ko(St.node)??F,ui=Gn(an,hr);return rt(function Ro(N){return N&&fi(N.canActivateChild)}(ui)?ui.canActivateChild(K,N):(0,i.N4e)(hr,()=>ui(K,N))).pipe((0,le.$)())});return(0,y.of)(gn).pipe(ua())}));return(0,y.of)(We).pipe(ua())}(N,he.path,F),function Jr(N,G,F){const K=G.routeConfig?G.routeConfig.canActivate:null;if(!K||0===K.length)return(0,y.of)(!0);const he=K.map(We=>(0,M.v)(()=>{const St=Ko(G)??F,gn=Gn(We,St);return rt(function Fi(N){return N&&fi(N.canActivate)}(gn)?gn.canActivate(G,N):(0,i.N4e)(St,()=>gn(G,N))).pipe((0,le.$)())}));return(0,y.of)(he).pipe(ua())}(N,he.route,F))),(0,le.$)(he=>!0!==he,!0))}(K,We,N,G):(0,y.of)(gn)),(0,de.T)(gn=>({...F,guardsResult:gn})))})}(this.environmentInjector,an=>this.events.next(an)),(0,xe.M)(an=>{if(We.guardsResult=an.guardsResult,an.guardsResult&&"boolean"!=typeof an.guardsResult)throw Us(0,an.guardsResult);const hr=new Fn(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects),an.targetSnapshot,!!an.guardsResult);this.events.next(hr)}),(0,Ae.p)(an=>!!an.guardsResult||(this.cancelNavigationTransition(an,"",Re.GuardRejected),!1)),Tr(an=>{if(an.guards.canActivateChecks.length)return(0,y.of)(an).pipe((0,xe.M)(hr=>{const ui=new zn(hr.id,this.urlSerializer.serialize(hr.extractedUrl),this.urlSerializer.serialize(hr.urlAfterRedirects),hr.targetSnapshot);this.events.next(ui)}),(0,De.n)(hr=>{let ui=!1;return(0,y.of)(hr).pipe(function iu(N,G){return(0,we.Z)(F=>{const{targetSnapshot:K,guards:{canActivateChecks:he}}=F;if(!he.length)return(0,y.of)(F);const We=new Set(he.map(an=>an.route)),St=new Set;for(const an of We)if(!St.has(an))for(const hr of Vo(an))St.add(hr);let gn=0;return(0,c.H)(St).pipe((0,ae.H)(an=>We.has(an)?function Wo(N,G,F,K){const he=N.routeConfig,We=N._resolve;return void 0!==he?.title&&!Vi(he)&&(We[it]=he.title),function oo(N,G,F,K){const he=Tn(N);if(0===he.length)return(0,y.of)({});const We={};return(0,c.H)(he).pipe((0,we.Z)(St=>function $n(N,G,F,K){const he=Ko(G)??K,We=Gn(N,he);return rt(We.resolve?We.resolve(G,F):(0,i.N4e)(he,()=>We(G,F)))}(N[St],G,F,K).pipe((0,le.$)(),(0,xe.M)(gn=>{if(gn instanceof Da)throw Us(new mt,gn);We[St]=gn}))),fn(1),(0,Je.u)(We),(0,Be.W)(St=>Ba(St)?X.w:(0,R.$)(St)))}(We,N,G,K).pipe((0,de.T)(St=>(N._resolvedData=St,N.data=Ao(N,N.parent,F).resolve,null)))}(an,K,N,G):(an.data=Ao(an,an.parent,N).resolve,(0,y.of)(void 0))),(0,xe.M)(()=>gn++),fn(1),(0,we.Z)(an=>gn===St.size?(0,y.of)(F):X.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,xe.M)({next:()=>ui=!0,complete:()=>{ui||this.cancelNavigationTransition(hr,"",Re.NoDataFromResolver)}}))}),(0,xe.M)(hr=>{const ui=new tr(hr.id,this.urlSerializer.serialize(hr.extractedUrl),this.urlSerializer.serialize(hr.urlAfterRedirects),hr.targetSnapshot);this.events.next(ui)}))}),Tr(an=>{const hr=ui=>{const Ir=[];ui.routeConfig?.loadComponent&&!ui.routeConfig._loadedComponent&&Ir.push(this.configLoader.loadComponent(ui.routeConfig).pipe((0,xe.M)(Gi=>{ui.component=Gi}),(0,de.T)(()=>{})));for(const Gi of ui.children)Ir.push(...hr(Gi));return Ir};return(0,C.z)(hr(an.targetSnapshot.root)).pipe((0,at.U)(null),(0,Ee.s)(1))}),Tr(()=>this.afterPreactivation()),(0,De.n)(()=>{const{currentSnapshot:an,targetSnapshot:hr}=We,ui=this.createViewTransition?.(this.environmentInjector,an.root,hr.root);return ui?(0,c.H)(ui).pipe((0,de.T)(()=>We)):(0,y.of)(We)}),(0,de.T)(an=>{const hr=function So(N,G,F){const K=Bo(N,G._root,F?F._root:void 0);return new fs(K,G)}(F.routeReuseStrategy,an.targetSnapshot,an.currentRouterState);return this.currentTransition=We={...an,targetRouterState:hr},this.currentNavigation.targetRouterState=hr,We}),(0,xe.M)(()=>{this.events.next(new Qr)}),((N,G,F,K)=>(0,de.T)(he=>(new J(G,he.targetRouterState,he.currentRouterState,F,K).activate(N),he)))(this.rootContexts,F.routeReuseStrategy,an=>this.events.next(an),this.inputBindingEnabled),(0,Ee.s)(1),(0,xe.M)({next:an=>{St=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ye(an.id,this.urlSerializer.serialize(an.extractedUrl),this.urlSerializer.serialize(an.urlAfterRedirects))),this.titleStrategy?.updateTitle(an.targetRouterState.snapshot),an.resolve(!0)},complete:()=>{St=!0}}),(0,Ue.Q)(this.transitionAbortSubject.pipe((0,xe.M)(an=>{throw an}))),(0,_t.j)(()=>{!St&&!gn&&this.cancelNavigationTransition(We,"",Re.SupersededByNewNavigation),this.currentTransition?.id===We.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,Be.W)(an=>{if(gn=!0,Aa(an))this.events.next(new jt(We.id,this.urlSerializer.serialize(We.extractedUrl),an.message,an.cancellationCode)),function Qa(N){return Aa(N)&&nn(N.url)}(an)?this.events.next(new Pr(an.url,an.navigationBehaviorOptions)):We.resolve(!1);else{const hr=new pn(We.id,this.urlSerializer.serialize(We.extractedUrl),an,We.targetSnapshot??void 0);try{const ui=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(hr));if(!(ui instanceof Da))throw this.events.next(hr),an;{const{message:Ir,cancellationCode:Gi}=Us(0,ui);this.events.next(new jt(We.id,this.urlSerializer.serialize(We.extractedUrl),Ir,Gi)),this.events.next(new Pr(ui.redirectTo,ui.navigationBehaviorOptions))}}catch(ui){this.options.resolveNavigationPromiseOnError?We.resolve(!1):We.reject(ui)}}return X.w}))}))}cancelNavigationTransition(F,K,he){const We=new jt(F.id,this.urlSerializer.serialize(F.extractedUrl),K,he);this.events.next(We),F.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const F=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),K=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return F.toString()!==K?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();function Ie(N){return N!==et}let ne=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Et),providedIn:"root"})}return N})();class ve{shouldDetach(G){return!1}store(G,F){}shouldAttach(G){return!1}retrieve(G){return null}shouldReuseRoute(G,F){return G.routeConfig===F.routeConfig}}let Et=(()=>{class N extends ve{static \u0275fac=(()=>{let F;return function(he){return(F||(F=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),Gt=(()=>{class N{static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:()=>(0,i.WQX)(Vn),providedIn:"root"})}return N})(),Vn=(()=>{class N extends Gt{location=(0,i.WQX)(pe.aZ);urlSerializer=(0,i.WQX)(ft);options=(0,i.WQX)(Qi,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=(0,i.WQX)(Za);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ye;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=Xo(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(F){return this.location.subscribe(K=>{"popstate"===K.type&&F(K.url,K.state)})}handleRouterEvent(F,K){if(F instanceof me)this.stateMemento=this.createStateMemento();else if(F instanceof kt)this.rawUrlTree=K.initialUrl;else if(F instanceof Sn){if("eager"===this.urlUpdateStrategy&&!K.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(K.finalUrl,K.initialUrl);this.setBrowserUrl(K.targetBrowserUrl??he,K)}}else F instanceof Qr?(this.currentUrlTree=K.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(K.finalUrl,K.initialUrl),this.routerState=K.targetRouterState,"deferred"===this.urlUpdateStrategy&&!K.extras.skipLocationChange&&this.setBrowserUrl(K.targetBrowserUrl??this.rawUrlTree,K)):F instanceof jt&&(F.code===Re.GuardRejected||F.code===Re.NoDataFromResolver)?this.restoreHistory(K):F instanceof pn?this.restoreHistory(K,!0):F instanceof Ye&&(this.lastSuccessfulId=F.id,this.currentPageId=this.browserPageId)}setBrowserUrl(F,K){const he=F instanceof ye?this.urlSerializer.serialize(F):F;if(this.location.isCurrentPathEqualTo(he)||K.extras.replaceUrl){const St={...K.extras.state,...this.generateNgRouterState(K.id,this.browserPageId)};this.location.replaceState(he,"",St)}else{const We={...K.extras.state,...this.generateNgRouterState(K.id,this.browserPageId+1)};this.location.go(he,"",We)}}restoreHistory(F,K=!1){if("computed"===this.canceledNavigationResolution){const We=this.currentPageId-this.browserPageId;0!==We?this.location.historyGo(We):this.currentUrlTree===F.finalUrl&&0===We&&(this.resetState(F),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(K&&this.resetState(F),this.resetUrlToCurrentUrlTree())}resetState(F){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,F.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(F,K){return"computed"===this.canceledNavigationResolution?{navigationId:F,\u0275routerPageId:K}:{navigationId:F}}static \u0275fac=(()=>{let F;return function(he){return(F||(F=i.xGo(N)))(he||N)}})();static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();var rr=function(N){return N[N.COMPLETE=0]="COMPLETE",N[N.FAILED=1]="FAILED",N[N.REDIRECTING=2]="REDIRECTING",N}(rr||{});function ci(N,G){N.events.pipe((0,Ae.p)(F=>F instanceof Ye||F instanceof jt||F instanceof pn||F instanceof kt),(0,de.T)(F=>F instanceof Ye||F instanceof kt?rr.COMPLETE:F instanceof jt&&(F.code===Re.Redirect||F.code===Re.SupersededByNewNavigation)?rr.REDIRECTING:rr.FAILED),(0,Ae.p)(F=>F!==rr.REDIRECTING),(0,Ee.s)(1)).subscribe(()=>{G()})}const Di={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Nr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let li=(()=>{class N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(i.H3F);stateManager=(0,i.WQX)(Gt);options=(0,i.WQX)(Qi,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.TgB);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(U);urlSerializer=(0,i.WQX)(ft);location=(0,i.WQX)(pe.aZ);urlHandlingStrategy=(0,i.WQX)(Za);_events=new re.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(ne);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(Ki,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(Ts,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:F=>{this.console.warn(F)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e.yU;subscribeToNavigationEvents(){const F=this.navigationTransitions.events.subscribe(K=>{try{const he=this.navigationTransitions.currentTransition,We=this.navigationTransitions.currentNavigation;if(null!==he&&null!==We)if(this.stateManager.handleRouterEvent(K,We),K instanceof jt&&K.code!==Re.Redirect&&K.code!==Re.SupersededByNewNavigation)this.navigated=!0;else if(K instanceof Ye)this.navigated=!0;else if(K instanceof Pr){const St=K.navigationBehaviorOptions,gn=this.urlHandlingStrategy.merge(K.url,he.currentRawUrl),an={browserUrl:he.extras.browserUrl,info:he.extras.info,skipLocationChange:he.extras.skipLocationChange,replaceUrl:he.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Ie(he.source),...St};this.scheduleNavigation(gn,et,null,an,{resolve:he.resolve,reject:he.reject,promise:he.promise})}(function wi(N){return!(N instanceof Qr||N instanceof Pr)})(K)&&this._events.next(K)}catch(he){this.navigationTransitions.transitionAbortSubject.next(he)}});this.eventsSubscription.add(F)}resetRootComponentType(F){this.routerState.root.component=F,this.navigationTransitions.rootComponentType=F}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),et,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((F,K)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(F,"popstate",K)},0)})}navigateToSyncWithBrowser(F,K,he){const We={replaceUrl:!0},St=he?.navigationId?he:null;if(he){const an={...he};delete an.navigationId,delete an.\u0275routerPageId,0!==Object.keys(an).length&&(We.state=an)}const gn=this.parseUrl(F);this.scheduleNavigation(gn,K,St,We)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(F){this.config=F.map(Bi),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(F,K={}){const{relativeTo:he,queryParams:We,fragment:St,queryParamsHandling:gn,preserveFragment:an}=K,hr=an?this.currentUrlTree.fragment:St;let Ir,ui=null;switch(gn??this.options.defaultQueryParamsHandling){case"merge":ui={...this.currentUrlTree.queryParams,...We};break;case"preserve":ui=this.currentUrlTree.queryParams;break;default:ui=We||null}null!==ui&&(ui=this.removeEmptyProps(ui));try{Ir=nt(he?he.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof F[0]||"/"!==F[0][0])&&(F=[]),Ir=this.currentUrlTree.root}return Rt(Ir,F,ui,hr??null)}navigateByUrl(F,K={skipLocationChange:!1}){const he=nn(F)?F:this.parseUrl(F),We=this.urlHandlingStrategy.merge(he,this.rawUrlTree);return this.scheduleNavigation(We,et,null,K)}navigate(F,K={skipLocationChange:!1}){return function ii(N){for(let G=0;G(null!=We&&(K[he]=We),K),{})}scheduleNavigation(F,K,he,We,St){if(this.disposed)return Promise.resolve(!1);let gn,an,hr;St?(gn=St.resolve,an=St.reject,hr=St.promise):hr=new Promise((Ir,Gi)=>{gn=Ir,an=Gi});const ui=this.pendingTasks.add();return ci(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ui))}),this.navigationTransitions.handleNavigationRequest({source:K,restoredState:he,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:F,extras:We,resolve:gn,reject:an,promise:hr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),hr.catch(Ir=>Promise.reject(Ir))}static \u0275fac=function(K){return new(K||N)};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})(),bs=(()=>{class N{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new re.B;constructor(F,K,he,We,St,gn){this.router=F,this.route=K,this.tabIndexAttribute=he,this.renderer=We,this.el=St,this.locationStrategy=gn;const an=St.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===an||"area"===an,this.isAnchorElement?this.subscription=F.events.subscribe(hr=>{hr instanceof Ye&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(F){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",F)}ngOnChanges(F){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(F){null==F?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=nn(F)||Array.isArray(F)?F:[F],this.setTabIndexIfNotOnNativeEl("0"))}onClick(F,K,he,We,St){const gn=this.urlTree;return!!(null===gn||this.isAnchorElement&&(0!==F||K||he||We||St||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(gn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const F=this.urlTree;this.href=null!==F&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(F)):null;const K=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",K)}applyAttributeValue(F,K){const he=this.renderer,We=this.el.nativeElement;null!==K?he.setAttribute(We,F,K):he.removeAttribute(We,F)}get urlTree(){return null===this.routerLinkInput?null:nn(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 \u0275fac=function(K){return new(K||N)(i.rXU(li),i.rXU(_o),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(pe.hb))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(K,he){1&K&&i.bIt("click",function(St){return he.onClick(St.button,St.ctrlKey,St.shiftKey,St.altKey,St.metaKey)}),2&K&&i.BMQ("target",he.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[2,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},features:[i.GFd,i.OA$]})}return N})(),Lo=(()=>{class N{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new i.bkB;constructor(F,K,he,We,St){this.router=F,this.element=K,this.renderer=he,this.cdr=We,this.link=St,this.routerEventsSubscription=F.events.subscribe(gn=>{gn instanceof Ye&&this.update()})}ngAfterContentInit(){(0,y.of)(this.links.changes,(0,y.of)(null)).pipe((0,Ft.U)()).subscribe(F=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const F=[...this.links.toArray(),this.link].filter(K=>!!K).map(K=>K.onChanges);this.linkInputChangesSubscription=(0,c.H)(F).pipe((0,Ft.U)()).subscribe(K=>{this._isActive!==this.isLinkActive(this.router)(K)&&this.update()})}set routerLinkActive(F){const K=Array.isArray(F)?F:F.split(" ");this.classes=K.filter(he=>!!he)}ngOnChanges(F){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const F=this.hasActiveLinks();this.classes.forEach(K=>{F?this.renderer.addClass(this.element.nativeElement,K):this.renderer.removeClass(this.element.nativeElement,K)}),F&&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!==F&&(this._isActive=F,this.cdr.markForCheck(),this.isActiveChange.emit(F))})}isLinkActive(F){const K=function ha(N){return!!N.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return he=>{const We=he.urlTree;return!!We&&F.isActive(We,K)}}hasActiveLinks(){const F=this.isLinkActive(this.router);return this.link&&F(this.link)||this.links.some(F)}static \u0275fac=function(K){return new(K||N)(i.rXU(li),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(bs,8))};static \u0275dir=i.FsC({type:N,selectors:[["","routerLinkActive",""]],contentQueries:function(K,he,We){if(1&K&&i.wni(We,bs,5),2&K){let St;i.mGM(St=i.lsd())&&(he.links=St)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[i.OA$]})}return N})();class Yo{}let Ta=(()=>{class N{router;injector;preloadingStrategy;loader;subscription;constructor(F,K,he,We,St){this.router=F,this.injector=he,this.preloadingStrategy=We,this.loader=St}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ae.p)(F=>F instanceof Ye),(0,ae.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(F,K){const he=[];for(const We of K){We.providers&&!We._injector&&(We._injector=(0,i.Ol2)(We.providers,F,`Route: ${We.path}`));const St=We._injector??F,gn=We._loadedInjector??St;(We.loadChildren&&!We._loadedRoutes&&void 0===We.canLoad||We.loadComponent&&!We._loadedComponent)&&he.push(this.preloadConfig(St,We)),(We.children||We._loadedRoutes)&&he.push(this.processRoutes(gn,We.children??We._loadedRoutes))}return(0,c.H)(he).pipe((0,Ft.U)())}preloadConfig(F,K){return this.preloadingStrategy.preload(K,()=>{let he;he=K.loadChildren&&void 0===K.canLoad?this.loader.loadChildren(F,K):(0,y.of)(null);const We=he.pipe((0,we.Z)(St=>null===St?(0,y.of)(void 0):(K._loadedRoutes=St.routes,K._loadedInjector=St.injector,this.processRoutes(St.injector??F,St.routes))));if(K.loadComponent&&!K._loadedComponent){const St=this.loader.loadComponent(K);return(0,c.H)([We,St]).pipe((0,Ft.U)())}return We})}static \u0275fac=function(K){return new(K||N)(i.KVO(li),i.KVO(i.Ql9),i.KVO(i.uvJ),i.KVO(Yo),i.KVO(no))};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}return N})();const Ma=new i.nKC("");let qa=(()=>{class N{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(F,K,he,We,St={}){this.urlSerializer=F,this.transitions=K,this.viewportScroller=he,this.zone=We,this.options=St,St.scrollPositionRestoration||="disabled",St.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(F=>{F instanceof me?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=F.navigationTrigger,this.restoredId=F.restoredState?F.restoredState.navigationId:0):F instanceof Ye?(this.lastId=F.id,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.urlAfterRedirects).fragment)):F instanceof kt&&F.code===gt.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(F,this.urlSerializer.parse(F.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(F=>{F instanceof Rr&&(F.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(F.position):F.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(F.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(F,K){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Rr(F,"popstate"===this.lastSource?this.store[this.restoredId]:null,K))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(K){i.QTQ()};static \u0275prov=i.jDH({token:N,factory:N.\u0275fac})}return N})();function ou(N,...G){return(0,i.EmA)([{provide:Ki,multi:!0,useValue:N},[],{provide:_o,useFactory:ka,deps:[li]},{provide:i.iLQ,multi:!0,useFactory:pc},G.map(F=>F.\u0275providers)])}function ka(N){return N.routerState.root}function Ia(N,G){return{\u0275kind:N,\u0275providers:G}}function Wl(N={}){return Ia(4,[{provide:Ma,useFactory:()=>{const F=(0,i.WQX)(pe.Xr),K=(0,i.WQX)(i.SKi),he=(0,i.WQX)(U),We=(0,i.WQX)(ft);return new qa(We,he,F,K,N)}}])}function pc(){const N=(0,i.WQX)(i.zZn);return G=>{const F=N.get(i.o8S);if(G!==F.components[0])return;const K=N.get(li),he=N.get(hl);1===N.get(yo)&&K.initialNavigation(),N.get(mc,null,i.$GK.Optional)?.setUpPreloading(),N.get(Ma,null,i.$GK.Optional)?.init(),K.resetRootComponentType(F.componentTypes[0]),he.closed||(he.next(),he.complete(),he.unsubscribe())}}const hl=new i.nKC("",{factory:()=>new re.B}),yo=new i.nKC("",{providedIn:"root",factory:()=>1}),mc=new i.nKC("");function lu(N){return Ia(0,[{provide:mc,useExisting:Ta},{provide:Yo,useExisting:N}])}function Ur(N){return Ia(9,[{provide:vo,useValue:Vs},{provide:Ci,useValue:{skipNextTransition:!!N?.skipInitialTransition,...N}}])}const Hs=new i.nKC("ROUTER_FORROOT_GUARD"),zl=[pe.aZ,{provide:ft,useClass:mt},li,Go,{provide:_o,useFactory:ka,deps:[li]},no,[]];let Ha=(()=>{class N{constructor(F){}static forRoot(F,K){return{ngModule:N,providers:[zl,[],{provide:Ki,multi:!0,useValue:F},{provide:Hs,useFactory:fl,deps:[[li,new i.Xx1,new i.kdw]]},K?.errorHandler?{provide:Ui,useValue:K.errorHandler}:[],{provide:Qi,useValue:K||{}},K?.useHash?{provide:pe.hb,useClass:pe.fw}:{provide:pe.hb,useClass:pe.Sm},{provide:Ma,useFactory:()=>{const N=(0,i.WQX)(pe.Xr),G=(0,i.WQX)(i.SKi),F=(0,i.WQX)(Qi),K=(0,i.WQX)(U),he=(0,i.WQX)(ft);return F.scrollOffset&&N.setOffset(F.scrollOffset),new qa(he,K,N,G,F)}},K?.preloadingStrategy?lu(K.preloadingStrategy).\u0275providers:[],K?.initialNavigation?md(K):[],K?.bindToComponentInputs?Ia(8,[Ns,{provide:Ts,useExisting:Ns}]).\u0275providers:[],K?.enableViewTransitions?Ur().\u0275providers:[],[{provide:cu,useFactory:pc},{provide:i.iLQ,multi:!0,useExisting:cu}]]}}static forChild(F){return{ngModule:N,providers:[{provide:Ki,multi:!0,useValue:F}]}}static \u0275fac=function(K){return new(K||N)(i.KVO(Hs,8))};static \u0275mod=i.$C({type:N});static \u0275inj=i.G2t({})}return N})();function fl(N){return"guarded"}function md(N){return["disabled"===N.initialNavigation?Ia(3,[{provide:i.hnV,multi:!0,useFactory:()=>{const G=(0,i.WQX)(li);return()=>{G.setUpLocationChangeListener()}}},{provide:yo,useValue:2}]).\u0275providers:[],"enabledBlocking"===N.initialNavigation?Ia(2,[{provide:yo,useValue:0},{provide:i.hnV,multi:!0,deps:[i.zZn],useFactory:G=>{const F=G.get(pe.hj,Promise.resolve());return()=>F.then(()=>new Promise(K=>{const he=G.get(li),We=G.get(hl);ci(he,()=>{K(!0)}),G.get(U).afterPreactivation=()=>(K(!0),We.closed?(0,y.of)(void 0):We),he.initialNavigation()}))}}]).\u0275providers:[]]}const cu=new i.nKC("")},8378:(o,s,n)=>{"use strict";n.d(s,{My:()=>Le,aT:()=>le});const Ee=Array.from({length:256},(Je,_t)=>_t.toString(16).padStart(2,"0"));function Le(Je){!function c(Je,..._t){if(!function a(Je){return Je instanceof Uint8Array||ArrayBuffer.isView(Je)&&"Uint8Array"===Je.constructor.name}(Je))throw new Error("Uint8Array expected");if(_t.length>0&&!_t.includes(Je.length))throw new Error("Uint8Array expected of length "+_t+", got length="+Je.length)}(Je);let _t="";for(let ze=0;ze=Ae._0&&Je<=Ae._9?Je-Ae._0:Je>=Ae.A&&Je<=Ae.F?Je-(Ae.A-10):Je>=Ae.a&&Je<=Ae.f?Je-(Ae.a-10):void 0}function le(Je){if("string"!=typeof Je)throw new Error("hex string expected, got "+typeof Je);const _t=Je.length,ze=_t/2;if(_t%2)throw new Error("hex string expected, got unpadded hex of length "+_t);const Ue=new Uint8Array(ze);for(let Ft=0,Ke=0;Ft{"use strict";function a(Wt){return Wt instanceof Uint8Array||null!=Wt&&"object"==typeof Wt&&"Uint8Array"===Wt.constructor.name}function c(...Wt){const Zt=Nn=>Nn,rt=(Nn,mn)=>Mn=>Nn(mn(Mn));return{encode:Wt.map(Nn=>Nn.encode).reduceRight(rt,Zt),decode:Wt.map(Nn=>Nn.decode).reduce(rt,Zt)}}function y(Wt){return{encode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"number"!=typeof Zt[0])throw new Error("alphabet.encode input should be an array of numbers");return Zt.map(rt=>{if(rt<0||rt>=Wt.length)throw new Error(`Digit index outside alphabet: ${rt} (alphabet: ${Wt.length})`);return Wt[rt]})},decode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"string"!=typeof Zt[0])throw new Error("alphabet.decode input should be array of strings");return Zt.map(rt=>{if("string"!=typeof rt)throw new Error(`alphabet.decode: not string element=${rt}`);const Ht=Wt.indexOf(rt);if(-1===Ht)throw new Error(`Unknown letter: "${rt}". Allowed: ${Wt}`);return Ht})}}}function w(Wt=""){if("string"!=typeof Wt)throw new Error("join separator should be string");return{encode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"string"!=typeof Zt[0])throw new Error("join.encode input should be array of strings");for(let rt of Zt)if("string"!=typeof rt)throw new Error(`join.encode: non-string input=${rt}`);return Zt.join(Wt)},decode:Zt=>{if("string"!=typeof Zt)throw new Error("join.decode input should be string");return Zt.split(Wt)}}}function C(Wt,Zt="="){if("string"!=typeof Zt)throw new Error("padding chr should be string");return{encode(rt){if(!Array.isArray(rt)||rt.length&&"string"!=typeof rt[0])throw new Error("padding.encode input should be array of strings");for(let Ht of rt)if("string"!=typeof Ht)throw new Error(`padding.encode: non-string input=${Ht}`);for(;rt.length*Wt%8;)rt.push(Zt);return rt},decode(rt){if(!Array.isArray(rt)||rt.length&&"string"!=typeof rt[0])throw new Error("padding.encode input should be array of strings");for(let en of rt)if("string"!=typeof en)throw new Error(`padding.decode: non-string input=${en}`);let Ht=rt.length;if(Ht*Wt%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;Ht>0&&rt[Ht-1]===Zt;Ht--)if(!((Ht-1)*Wt%8))throw new Error("Invalid padding: string has too much padding");return rt.slice(0,Ht)}}}function S(Wt,Zt,rt){if(Zt<2)throw new Error(`convertRadix: wrong from=${Zt}, base cannot be less than 2`);if(rt<2)throw new Error(`convertRadix: wrong to=${rt}, base cannot be less than 2`);if(!Array.isArray(Wt))throw new Error("convertRadix: data should be array");if(!Wt.length)return[];let Ht=0;const en=[],Nn=Array.from(Wt);for(Nn.forEach(mn=>{if(mn<0||mn>=Zt)throw new Error(`Wrong integer: ${mn}`)});;){let mn=0,Mn=!0;for(let tt=Ht;ttFt,K3:()=>le,Tq:()=>Wn});const M=(Wt,Zt)=>Zt?M(Zt,Wt%Zt):Wt,k=(Wt,Zt)=>Wt+(Zt-M(Wt,Zt));function R(Wt,Zt,rt,Ht){if(!Array.isArray(Wt))throw new Error("convertRadix2: data should be array");if(Zt<=0||Zt>32)throw new Error(`convertRadix2: wrong from=${Zt}`);if(rt<=0||rt>32)throw new Error(`convertRadix2: wrong to=${rt}`);if(k(Zt,rt)>32)throw new Error(`convertRadix2: carry overflow from=${Zt} to=${rt} carryBits=${k(Zt,rt)}`);let en=0,Nn=0;const mn=2**rt-1,Mn=[];for(const tt of Wt){if(tt>=2**Zt)throw new Error(`convertRadix2: invalid data word=${tt} from=${Zt}`);if(en=en<32)throw new Error(`convertRadix2: carry overflow pos=${Nn} from=${Zt}`);for(Nn+=Zt;Nn>=rt;Nn-=rt)Mn.push((en>>Nn-rt&mn)>>>0);en&=2**Nn-1}if(en=en<=Zt)throw new Error("Excess padding");if(!Ht&&en)throw new Error(`Non-zero padding: ${en}`);return Ht&&Nn>0&&Mn.push(en>>>0),Mn}function X(Wt){return{encode:Zt=>{if(!a(Zt))throw new Error("radix.encode input should be Uint8Array");return S(Array.from(Zt),256,Wt)},decode:Zt=>{if(!Array.isArray(Zt)||Zt.length&&"number"!=typeof Zt[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(S(Zt,Wt,256))}}}function Z(Wt,Zt=!1){if(Wt<=0||Wt>32)throw new Error("radix2: bits should be in (0..32]");if(k(8,Wt)>32||k(Wt,8)>32)throw new Error("radix2: carry overflow");return{encode:rt=>{if(!a(rt))throw new Error("radix2.encode input should be Uint8Array");return R(Array.from(rt),8,Wt,!Zt)},decode:rt=>{if(!Array.isArray(rt)||rt.length&&"number"!=typeof rt[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(R(rt,Wt,8,Zt))}}}function re(Wt){if("function"!=typeof Wt)throw new Error("unsafeWrapper fn should be function");return function(...Zt){try{return Wt.apply(null,Zt)}catch{}}}function _e(Wt,Zt){if("function"!=typeof Zt)throw new Error("checksum fn should be function");return{encode(rt){if(!a(rt))throw new Error("checksum.encode: input should be Uint8Array");const Ht=Zt(rt).slice(0,Wt),en=new Uint8Array(rt.length+Wt);return en.set(rt),en.set(Ht,rt.length),en},decode(rt){if(!a(rt))throw new Error("checksum.decode: input should be Uint8Array");const Ht=rt.slice(0,-Wt),en=Zt(Ht).slice(0,Wt),Nn=rt.slice(-Wt);for(let mn=0;mnc(X(58),y("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),w("")))(),Wn=Wt=>c(_e(4,Zt=>Wt(Wt(Zt))),lt),wn=c(y("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),w("")),Je=[996825010,642813549,513874426,1027748829,705979059];function _t(Wt){const Zt=Wt>>25;let rt=(33554431&Wt)<<5;for(let Ht=0;Ht>Ht&1)&&(rt^=Je[Ht]);return rt}function ze(Wt,Zt,rt=1){const Ht=Wt.length;let en=1;for(let Nn=0;Nn126)throw new Error(`Invalid prefix (${Wt})`);en=_t(en)^mn>>5}en=_t(en);for(let Nn=0;NnHe)throw new TypeError(`Length ${z} exceeds limit ${He}`);const L=Te.toLowerCase(),V=ze(L,ye,Zt);return`${L}1${wn.encode(ye)}${V}`}function Mn(Te,ye=90){if("string"!=typeof Te)throw new Error("bech32.decode input should be string, not "+typeof Te);if(Te.length<8||!1!==ye&&Te.length>ye)throw new TypeError(`Wrong string length: ${Te.length} (${Te}). Expected (8..${ye})`);const He=Te.toLowerCase();if(Te!==He&&Te!==Te.toUpperCase())throw new Error("String must be lowercase or uppercase");const z=He.lastIndexOf("1");if(0===z||-1===z)throw new Error('Letter "1" must be present between prefix and data only');const L=He.slice(0,z),V=He.slice(z+1);if(V.length<6)throw new Error("Data must be at least 6 characters long");const Ne=wn.decode(V).slice(0,-6),ft=ze(L,Ne,Zt);if(!V.endsWith(ft))throw new Error(`Invalid checksum in ${Te}: expected "${ft}"`);return{prefix:L,words:Ne}}return{encode:mn,decode:Mn,encodeFromBytes:function At(Te,ye){return mn(Te,en(ye))},decodeToBytes:function Kt(Te){const{prefix:ye,words:He}=Mn(Te,!1);return{prefix:ye,words:He,bytes:Ht(He)}},decodeUnsafe:re(Mn),fromWords:Ht,fromWordsUnsafe:Nn,toWords:en}}const Ft=Ue("bech32")},2769:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(3121),a=n(9311);const y=(0,i.A)(a.A,"Map")},1238:(o,s,n)=>{"use strict";n.d(s,{A:()=>ft});var c=n(2486);const w=function y(mt,Tt){for(var On=mt.length;On--;)if((0,c.A)(mt[On][0],Tt))return On;return-1};var T=Array.prototype.splice;function pe(mt){var Tt=-1,On=null==mt?0:mt.length;for(this.clear();++Tt-1},pe.prototype.set=function re(mt,Tt){var On=this.__data__,cn=w(On,mt);return cn<0?(++this.size,On.push([mt,Tt])):On[cn][1]=Tt,this};const de=pe;var Be=n(2769);const bt=(0,n(3121).A)(Object,"create");var Je=Object.prototype.hasOwnProperty;var Ft=Object.prototype.hasOwnProperty;function Me(mt){var Tt=-1,On=null==mt?0:mt.length;for(this.clear();++Tt{"use strict";n.d(s,{A:()=>c});const c=n(9311).A.Symbol},6259:(o,s,n)=>{"use strict";n.d(s,{A:()=>R});var c=n(1656),y=n(9007),w=n(5303),C=n(3467),T=n(766),M=Object.prototype.hasOwnProperty;const R=function k(X,Z){var re=(0,y.A)(X),_e=!re&&(0,c.A)(X),pe=!re&&!_e&&(0,w.A)(X),de=!re&&!_e&&!pe&&(0,T.A)(X),De=re||_e||pe||de,Ee=De?function i(X,Z){for(var re=-1,_e=Array(X);++re{"use strict";n.d(s,{A:()=>C});var i=n(8758),a=n(2486),y=Object.prototype.hasOwnProperty;const C=function w(T,S,M){var k=T[S];(!y.call(T,S)||!(0,a.A)(k,M)||void 0===M&&!(S in T))&&(0,i.A)(T,S,M)}},8758:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(4133);const c=function a(y,w,C){"__proto__"==w&&i.A?(0,i.A)(y,w,{configurable:!0,enumerable:!0,value:C,writable:!0}):y[w]=C}},5688:(o,s,n)=>{"use strict";n.d(s,{A:()=>pe});var i=n(4883),a=Object.prototype,c=a.hasOwnProperty,y=a.toString,w=i.A?i.A.toStringTag:void 0;var M=Object.prototype.toString;var re=i.A?i.A.toStringTag:void 0;const pe=function _e(de){return null==de?void 0===de?"[object Undefined]":"[object Null]":re&&re in Object(de)?function C(de){var De=c.call(de,w),Ee=de[w];try{de[w]=void 0;var Le=!0}catch{}var Ae=y.call(de);return Le&&(De?de[w]=Ee:delete de[w]),Ae}(de):function k(de){return M.call(de)}(de)}},4975:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){return function(y){return c(y)}}},3031:(o,s,n)=>{"use strict";n.d(s,{A:()=>w});const c=n(9311).A.Uint8Array,w=function y(C){var T=new C.constructor(C.byteLength);return new c(T).set(new c(C)),T}},4224:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(9311),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a?i.A.Buffer:void 0,C=w?w.allocUnsafe:void 0;const S=function T(M,k){if(k)return M.slice();var R=M.length,X=C?C(R):new M.constructor(R);return M.copy(X),X}},7383:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});var i=n(3031);const c=function a(y,w){var C=w?(0,i.A)(y.buffer):y.buffer;return new y.constructor(C,y.byteOffset,y.length)}},1369:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){var w=-1,C=c.length;for(y||(y=Array(C));++w{"use strict";n.d(s,{A:()=>y});var i=n(2065),a=n(8758);const y=function c(w,C,T,S){var M=!T;T||(T={});for(var k=-1,R=C.length;++k{"use strict";n.d(s,{A:()=>c});var i=n(3121);const c=function(){try{var y=(0,i.A)(Object,"defineProperty");return y({},"",{}),y}catch{}}()},8618:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a="object"==typeof global&&global&&global.Object===Object&&global},3121:(o,s,n)=>{"use strict";n.d(s,{A:()=>we});var le,i=n(5656),c=n(9311).A["__core-js_shared__"],w=(le=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var S=n(7999),M=n(4435),R=/^\[object .+?Constructor\]$/,pe=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const De=function de(le){return!(!(0,S.A)(le)||function C(le){return!!w&&w in le}(le))&&((0,i.A)(le)?pe:R).test((0,M.A)(le))},we=function Ae(le,ae){var xe=function Ee(le,ae){return le?.[ae]}(le,ae);return De(xe)?xe:void 0}},5749:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});const c=(0,n(5717).A)(Object.getPrototypeOf,Object)},223:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(7999),a=Object.create;const y=function(){function M(){}return function(k){if(!(0,i.A)(k))return{};if(a)return a(k);M.prototype=k;var R=new M;return M.prototype=void 0,R}}();var w=n(5749),C=n(1561);const S=function T(M){return"function"!=typeof M.constructor||(0,C.A)(M)?{}:y((0,w.A)(M))}},3467:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var a=/^(?:0|[1-9]\d*)$/;const y=function c(w,C){var T=typeof w;return!!(C=C??9007199254740991)&&("number"==T||"symbol"!=T&&a.test(w))&&w>-1&&w%1==0&&w{"use strict";n.d(s,{A:()=>c});var i=Object.prototype;const c=function a(y){var w=y&&y.constructor;return y===("function"==typeof w&&w.prototype||i)}},8583:(o,s,n)=>{"use strict";n.d(s,{A:()=>T});var i=n(8618),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=a&&"object"==typeof module&&module&&!module.nodeType&&module,w=c&&c.exports===a&&i.A.process;const T=function(){try{return c&&c.require&&c.require("util").types||w&&w.binding&&w.binding("util")}catch{}}()},5717:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){return function(w){return c(y(w))}}},9311:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(8618),a="object"==typeof self&&self&&self.Object===Object&&self;const y=i.A||a||Function("return this")()},4435:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var a=Function.prototype.toString;const y=function c(w){if(null!=w){try{return a.call(w)}catch{}try{return w+""}catch{}}return""}},2486:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c,y){return c===y||c!=c&&y!=y}},6143:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){for(var y=-1,w=null==c?0:c.length,C={};++y{"use strict";n.d(s,{A:()=>k});var i=n(5688),a=n(2312);const w=function y(R){return(0,a.A)(R)&&"[object Arguments]"==(0,i.A)(R)};var C=Object.prototype,T=C.hasOwnProperty,S=C.propertyIsEnumerable;const k=w(function(){return arguments}())?w:function(R){return(0,a.A)(R)&&T.call(R,"callee")&&!S.call(R,"callee")}},9007:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=Array.isArray},2808:(o,s,n)=>{"use strict";n.d(s,{A:()=>y});var i=n(5656),a=n(4184);const y=function c(w){return null!=w&&(0,a.A)(w.length)&&!(0,i.A)(w)}},5303:(o,s,n)=>{"use strict";n.d(s,{A:()=>k});var i=n(9311),y="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=y&&"object"==typeof module&&module&&!module.nodeType&&module,T=w&&w.exports===y?i.A.Buffer:void 0;const k=(T?T.isBuffer:void 0)||function a(){return!1}},5656:(o,s,n)=>{"use strict";n.d(s,{A:()=>S});var i=n(5688),a=n(7999);const S=function T(M){if(!(0,a.A)(M))return!1;var k=(0,i.A)(M);return"[object Function]"==k||"[object GeneratorFunction]"==k||"[object AsyncFunction]"==k||"[object Proxy]"==k}},4184:(o,s,n)=>{"use strict";n.d(s,{A:()=>c});const c=function a(y){return"number"==typeof y&&y>-1&&y%1==0&&y<=9007199254740991}},7999:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){var y=typeof c;return null!=c&&("object"==y||"function"==y)}},2312:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});const a=function i(c){return null!=c&&"object"==typeof c}},766:(o,s,n)=>{"use strict";n.d(s,{A:()=>wn});var i=n(5688),a=n(4184),c=n(2312),lt={};lt["[object Float32Array]"]=lt["[object Float64Array]"]=lt["[object Int8Array]"]=lt["[object Int16Array]"]=lt["[object Int32Array]"]=lt["[object Uint8Array]"]=lt["[object Uint8ClampedArray]"]=lt["[object Uint16Array]"]=lt["[object Uint32Array]"]=!0,lt["[object Arguments]"]=lt["[object Array]"]=lt["[object ArrayBuffer]"]=lt["[object Boolean]"]=lt["[object DataView]"]=lt["[object Date]"]=lt["[object Error]"]=lt["[object Function]"]=lt["[object Map]"]=lt["[object Number]"]=lt["[object Object]"]=lt["[object RegExp]"]=lt["[object Set]"]=lt["[object String]"]=lt["[object WeakMap]"]=!1;var sn=n(4975),fn=n(8583),En=fn.A&&fn.A.isTypedArray;const wn=En?(0,sn.A)(En):function bt(Je){return(0,c.A)(Je)&&(0,a.A)(Je.length)&&!!lt[(0,i.A)(Je)]}},3959:(o,s,n)=>{"use strict";n.d(s,{A:()=>X});var i=n(6259),a=n(7999),c=n(1561);var T=Object.prototype.hasOwnProperty;const M=function S(Z){if(!(0,a.A)(Z))return function y(Z){var re=[];if(null!=Z)for(var _e in Object(Z))re.push(_e);return re}(Z);var re=(0,c.A)(Z),_e=[];for(var pe in Z)"constructor"==pe&&(re||!T.call(Z,pe))||_e.push(pe);return _e};var k=n(2808);const X=function R(Z){return(0,k.A)(Z)?(0,i.A)(Z,!0):M(Z)}},4819:(o,s,n)=>{"use strict";n.d(s,{A:()=>On});var i=n(1238),a=n(8758),c=n(2486);const w=function y(cn,hn,Ln){(void 0!==Ln&&!(0,c.A)(cn[hn],Ln)||void 0===Ln&&!(hn in cn))&&(0,a.A)(cn,hn,Ln)},M=function C(cn){return function(hn,Ln,lr){for(var Dn=-1,Hr=Object(hn),Mr=lr(hn),Vr=Mr.length;Vr--;){var vt=Mr[cn?Vr:++Dn];if(!1===Ln(Hr[vt],vt,Hr))break}return hn}}();var k=n(4224),R=n(7383),X=n(1369),Z=n(223),re=n(1656),_e=n(9007),pe=n(2808),de=n(2312);var Le=n(5303),Ae=n(5656),we=n(7999),le=n(5688),ae=n(5749),lt=Function.prototype.toString,bt=Object.prototype.hasOwnProperty,at=lt.call(Object);var En=n(766);const wn=function Wn(cn,hn){if(("constructor"!==hn||"function"!=typeof cn[hn])&&"__proto__"!=hn)return cn[hn]};var Je=n(101),_t=n(3959);const Ke=function Ft(cn,hn,Ln,lr,Dn,Hr,Mr){var Vr=wn(cn,Ln),vt=wn(hn,Ln),Vt=Mr.get(vt);if(Vt)w(cn,Ln,Vt);else{var Oe=Hr?Hr(Vr,vt,Ln+"",cn,hn,Mr):void 0,Ge=void 0===Oe;if(Ge){var je=(0,_e.A)(vt),Dt=!je&&(0,Le.A)(vt),ct=!je&&!Dt&&(0,En.A)(vt);Oe=vt,je||Dt||ct?(0,_e.A)(Vr)?Oe=Vr:function De(cn){return(0,de.A)(cn)&&(0,pe.A)(cn)}(Vr)?Oe=(0,X.A)(Vr):Dt?(Ge=!1,Oe=(0,k.A)(vt,!0)):ct?(Ge=!1,Oe=(0,R.A)(vt,!0)):Oe=[]:function sn(cn){if(!(0,de.A)(cn)||"[object Object]"!=(0,le.A)(cn))return!1;var hn=(0,ae.A)(cn);if(null===hn)return!0;var Ln=bt.call(hn,"constructor")&&hn.constructor;return"function"==typeof Ln&&Ln instanceof Ln&<.call(Ln)==at}(vt)||(0,re.A)(vt)?(Oe=Vr,(0,re.A)(Vr)?Oe=function ze(cn){return(0,Je.A)(cn,(0,_t.A)(cn))}(Vr):(!(0,we.A)(Vr)||(0,Ae.A)(Vr))&&(Oe=(0,Z.A)(vt))):Ge=!1}Ge&&(Mr.set(vt,Oe),Dn(Oe,vt,lr,Hr,Mr),Mr.delete(vt)),w(cn,Ln,Oe)}},it=function Ze(cn,hn,Ln,lr,Dn){cn!==hn&&M(hn,function(Hr,Mr){if(Dn||(Dn=new i.A),(0,we.A)(Hr))Ke(cn,hn,Mr,Ln,Ze,lr,Dn);else{var Vr=lr?lr(wn(cn,Mr),Hr,Mr+"",cn,hn,Dn):void 0;void 0===Vr&&(Vr=Hr),w(cn,Mr,Vr)}},_t.A)},Qt=function Ot(cn){return cn};var Xt=Math.max;const rt=function Zt(cn){return function(){return cn}};var Ht=n(4133),tt=Date.now;const ye=function Kt(cn){var hn=0,Ln=0;return function(){var lr=tt(),Dn=16-(lr-Ln);if(Ln=lr,Dn>0){if(++hn>=800)return arguments[0]}else hn=0;return cn.apply(void 0,arguments)}}(Ht.A?function(cn,hn){return(0,Ht.A)(cn,"toString",{configurable:!0,enumerable:!1,value:rt(hn),writable:!0})}:Qt),z=function He(cn,hn){return ye(function Tn(cn,hn,Ln){return hn=Xt(void 0===hn?cn.length-1:hn,0),function(){for(var lr=arguments,Dn=-1,Hr=Xt(lr.length-hn,0),Mr=Array(Hr);++Dn1?Ln[Dn-1]:void 0,Mr=Dn>2?Ln[2]:void 0;for(Hr=cn.length>3&&"function"==typeof Hr?(Dn--,Hr):void 0,Mr&&function V(cn,hn,Ln){if(!(0,we.A)(Ln))return!1;var lr=typeof hn;return!!("number"==lr?(0,pe.A)(Ln)&&(0,L.A)(hn,Ln.length):"string"==lr&&hn in Ln)&&(0,c.A)(Ln[hn],cn)}(Ln[0],Ln[1],Mr)&&(Hr=Dn<3?void 0:Hr,Dn=1),hn=Object(hn);++lr{"use strict";__webpack_require__.d(__webpack_exports__,{Ts:()=>init,ql:()=>launch});var _home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3014),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5137),_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9129),BUILD={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},__defProp$1=Object.defineProperty,__export$1=(o,s)=>{for(var n in s)__defProp$1(o,n,{get:s[n],enumerable:!0})},hostRefs=new WeakMap,getHostRef=o=>hostRefs.get(o),registerHost=(o,s)=>hostRefs.set(o,{$flags$:0,$hostElement$:o,$cmpMeta$:s,$instanceValues$:new Map}),isMemberInElement=(o,s)=>s in o,consoleError=(o,s)=>(0,console.error)(o,s),styles=new Map,modeResolutionChain=[],SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}",XLINK_NS="http://www.w3.org/1999/xlink",win=typeof window<"u"?window:{},doc=win.document||{head:{}},H=win.HTMLElement||class{},plt={$flags$:0,$resourcesUrl$:"",jmp:o=>o(),raf:o=>requestAnimationFrame(o),ael:(o,s,n,i)=>o.addEventListener(s,n,i),rel:(o,s,n,i)=>o.removeEventListener(s,n,i),ce:(o,s)=>new CustomEvent(o,s)},supportsListenerOptions=(()=>{let o=!1;try{doc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){o=!0}}))}catch{}return o})(),promiseResolve=o=>Promise.resolve(o),supportsConstructableStylesheets=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),queuePending=!1,queueDomReads=[],queueDomWrites=[],queueTask=(o,s)=>n=>{o.push(n),queuePending||(queuePending=!0,s&&4&plt.$flags$?nextTick(flush):plt.raf(flush))},consume=o=>{for(let s=0;s{consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=o=>promiseResolve().then(o),writeTask=queueTask(queueDomWrites,!0),EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=o=>null!=o,isComplexType=o=>"object"==(o=typeof o)||"function"===o;function queryNonceMetaTagContent(o){var s,n,i;return null!=(i=null==(n=null==(s=o.head)?void 0:s.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?i:void 0}var result_exports={};__export$1(result_exports,{err:()=>err,map:()=>map,ok:()=>ok,unwrap:()=>unwrap$1,unwrapErr:()=>unwrapErr});var ok=o=>({isOk:!0,isErr:!1,value:o}),err=o=>({isOk:!1,isErr:!0,value:o});function map(o,s){if(o.isOk){const n=s(o.value);return n instanceof Promise?n.then(i=>ok(i)):ok(n)}if(o.isErr)return err(o.value);throw"should never get here"}var unwrap$1=o=>{if(o.isOk)return o.value;throw o.value},unwrapErr=o=>{if(o.isErr)return o.value;throw o.value},createTime=(o,s="")=>()=>{},h=(o,s,...n)=>{let i=null,a=null,c=null,y=!1,w=!1;const C=[],T=M=>{for(let k=0;kM[k]).join(" "))}}if("function"==typeof o)return o(null===s?{}:s,C,vdomFnUtils);const S=newVNode(o,null);return S.$attrs$=s,C.length>0&&(S.$children$=C),S.$key$=a,S.$name$=c,S},newVNode=(o,s)=>({$flags$:0,$tag$:o,$text$:s,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Host={},isHost=o=>o&&o.$tag$===Host,vdomFnUtils={forEach:(o,s)=>o.map(convertToPublic).forEach(s),map:(o,s)=>o.map(convertToPublic).map(s).map(convertToPrivate)},convertToPublic=o=>({vattrs:o.$attrs$,vchildren:o.$children$,vkey:o.$key$,vname:o.$name$,vtag:o.$tag$,vtext:o.$text$}),convertToPrivate=o=>{if("function"==typeof o.vtag){const n={...o.vattrs};return o.vkey&&(n.key=o.vkey),o.vname&&(n.name=o.vname),h(o.vtag,n,...o.vchildren||[])}const s=newVNode(o.vtag,o.vtext);return s.$attrs$=o.vattrs,s.$children$=o.vchildren,s.$key$=o.vkey,s.$name$=o.vname,s},computeMode=o=>modeResolutionChain.map(s=>s(o)).find(s=>!!s),parsePropertyValue=(o,s)=>null==o||isComplexType(o)?o:4&s?"false"!==o&&(""===o||!!o):2&s?parseFloat(o):1&s?String(o):o,getElement=o=>o,createEvent=(o,s,n)=>{const i=getElement(o);return{emit:a=>emitEvent(i,s,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:a})}},emitEvent=(o,s,n)=>{const i=plt.ce(s,n);return o.dispatchEvent(i),i},rootAppliedStyles=new WeakMap,registerStyle=(o,s,n)=>{let i=styles.get(o);supportsConstructableStylesheets&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=s:i.replaceSync(s)):i=s,styles.set(o,i)},addStyle=(o,s,n)=>{var i;const a=getScopeId(s,n),c=styles.get(a);if(o=11===o.nodeType?o:doc,c)if("string"==typeof c){let y,w=rootAppliedStyles.get(o=o.head||o);if(w||rootAppliedStyles.set(o,w=new Set),!w.has(a)){{y=doc.createElement("style"),y.innerHTML=c;const C=null!=(i=plt.$nonce$)?i:queryNonceMetaTagContent(doc);null!=C&&y.setAttribute("nonce",C),(!(1&s.$flags$)||1&s.$flags$&&"HEAD"!==o.nodeName)&&o.insertBefore(y,o.querySelector("link"))}4&s.$flags$&&(y.innerHTML+=SLOT_FB_CSS),w&&w.add(a)}}else o.adoptedStyleSheets.includes(c)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,c]);return a},attachStyles=o=>{const s=o.$cmpMeta$,n=o.$hostElement$,i=s.$flags$,a=createTime("attachStyles",s.$tagName$),c=addStyle(n.shadowRoot?n.shadowRoot:n.getRootNode(),s,o.$modeName$);10&i&&2&i&&(n["s-sc"]=c,n.classList.add(c+"-h"),2&i&&n.classList.add(c+"-s")),a()},getScopeId=(o,s)=>"sc-"+(s&&32&o.$flags$?o.$tagName$+"-"+s:o.$tagName$),setAccessor=(o,s,n,i,a,c)=>{if(n!==i){let y=isMemberInElement(o,s),w=s.toLowerCase();if("class"===s){const C=o.classList,T=parseClassList(n),S=parseClassList(i);C.remove(...T.filter(M=>M&&!S.includes(M))),C.add(...S.filter(M=>M&&!T.includes(M)))}else if("style"===s){for(const C in n)i&&null!=i[C]||(C.includes("-")?o.style.removeProperty(C):o.style[C]="");for(const C in i)n&&i[C]===n[C]||(C.includes("-")?o.style.setProperty(C,i[C]):o.style[C]=i[C])}else if("key"!==s)if("ref"===s)i&&i(o);else if(o.__lookupSetter__(s)||"o"!==s[0]||"n"!==s[1]){const C=isComplexType(i);if((y||C&&null!==i)&&!a)try{if(o.tagName.includes("-"))o[s]=i;else{const S=i??"";"list"===s?y=!1:null!=n&&o[s]==S||(o[s]=S)}}catch{}let T=!1;w!==(w=w.replace(/^xlink\:?/,""))&&(s=w,T=!0),null==i||!1===i?!1===i&&""!==o.getAttribute(s)||(T?o.removeAttributeNS(XLINK_NS,s):o.removeAttribute(s)):(!y||4&c||a)&&!C&&(i=!0===i?"":i,T?o.setAttributeNS(XLINK_NS,s,i):o.setAttribute(s,i))}else if(s="-"===s[2]?s.slice(3):isMemberInElement(win,w)?w.slice(2):w[2]+s.slice(3),n||i){const C=s.endsWith(CAPTURE_EVENT_SUFFIX);s=s.replace(CAPTURE_EVENT_REGEX,""),n&&plt.rel(o,s,n,C),i&&plt.ael(o,s,i,C)}}},parseClassListRegex=/\s/,parseClassList=o=>o?o.split(parseClassListRegex):[],CAPTURE_EVENT_SUFFIX="Capture",CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$"),updateElement=(o,s,n)=>{const i=11===s.$elm$.nodeType&&s.$elm$.host?s.$elm$.host:s.$elm$,a=o&&o.$attrs$||EMPTY_OBJ,c=s.$attrs$||EMPTY_OBJ;for(const y of sortedAttrNames(Object.keys(a)))y in c||setAccessor(i,y,a[y],void 0,n,s.$flags$);for(const y of sortedAttrNames(Object.keys(c)))setAccessor(i,y,a[y],c[y],n,s.$flags$)},scopeId,contentRef,hostTagName;function sortedAttrNames(o){return o.includes("ref")?[...o.filter(s=>"ref"!==s),"ref"]:o}var useNativeShadowDom=!1,checkSlotFallbackVisibility=!1,checkSlotRelocate=!1,isSvgMode=!1,createElm=(o,s,n,i)=>{var a;const c=s.$children$[n];let y,w,C,T=0;if(useNativeShadowDom||(checkSlotRelocate=!0,"slot"===c.$tag$&&(scopeId&&i.classList.add(scopeId+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)y=c.$elm$=doc.createTextNode(c.$text$);else if(1&c.$flags$)y=c.$elm$=doc.createTextNode("");else{if(isSvgMode||(isSvgMode="svg"===c.$tag$),y=c.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,!useNativeShadowDom&&BUILD.slotRelocation&&2&c.$flags$?"slot-fb":c.$tag$),isSvgMode&&"foreignObject"===c.$tag$&&(isSvgMode=!1),updateElement(null,c,isSvgMode),y.getRootNode().querySelector("body")&&BUILD.scoped&&isDef(scopeId)&&y["s-si"]!==scopeId&&y.classList.add(y["s-si"]=scopeId),updateElementScopeIds(y,i),c.$children$)for(T=0;T{plt.$flags$|=1;const n=Array.from(o.childNodes);if(o["s-sr"]&&BUILD.experimentalSlotFixes){let i=o;for(;i=i.nextSibling;)i&&i["s-sn"]===o["s-sn"]&&i["s-sh"]===hostTagName&&n.push(i)}for(let i=n.length-1;i>=0;i--){const a=n[i];a["s-hn"]!==hostTagName&&a["s-ol"]&&(insertBefore(parentReferenceNode(a),a,referenceNode(a)),a["s-ol"].remove(),a["s-ol"]=void 0,a["s-sh"]=void 0,checkSlotRelocate=!0),s&&putBackInOriginalLocation(a,s)}plt.$flags$&=-2},addVnodes=(o,s,n,i,a,c)=>{let y,w=o["s-cr"]&&o["s-cr"].parentNode||o;for(w.shadowRoot&&w.tagName===hostTagName&&(w=w.shadowRoot);a<=c;++a)i[a]&&(y=createElm(null,n,a,o),y&&(i[a].$elm$=y,insertBefore(w,y,referenceNode(s))))},removeVnodes=(o,s,n)=>{for(let i=s;i<=n;++i){const a=o[i];if(a){const c=a.$elm$;nullifyVNodeRefs(a),c&&(checkSlotFallbackVisibility=!0,c["s-ol"]?c["s-ol"].remove():putBackInOriginalLocation(c,!0),c.remove())}}},updateChildren=(o,s,n,i,a=!1)=>{let c,y,w=0,C=0,T=0,S=0,M=s.length-1,k=s[0],R=s[M],X=i.length-1,Z=i[0],re=i[X];for(;w<=M&&C<=X;)if(null==k)k=s[++w];else if(null==R)R=s[--M];else if(null==Z)Z=i[++C];else if(null==re)re=i[--X];else if(isSameVnode(k,Z,a))patch(k,Z,a),k=s[++w],Z=i[++C];else if(isSameVnode(R,re,a))patch(R,re,a),R=s[--M],re=i[--X];else if(isSameVnode(k,re,a))"slot"!==k.$tag$&&"slot"!==re.$tag$||putBackInOriginalLocation(k.$elm$.parentNode,!1),patch(k,re,a),insertBefore(o,k.$elm$,R.$elm$.nextSibling),k=s[++w],re=i[--X];else if(isSameVnode(R,Z,a))"slot"!==k.$tag$&&"slot"!==re.$tag$||putBackInOriginalLocation(R.$elm$.parentNode,!1),patch(R,Z,a),insertBefore(o,R.$elm$,k.$elm$),R=s[--M],Z=i[++C];else{for(T=-1,S=w;S<=M;++S)if(s[S]&&null!==s[S].$key$&&s[S].$key$===Z.$key$){T=S;break}T>=0?(y=s[T],y.$tag$!==Z.$tag$?c=createElm(s&&s[C],n,T,o):(patch(y,Z,a),s[T]=void 0,c=y.$elm$),Z=i[++C]):(c=createElm(s&&s[C],n,C,o),Z=i[++C]),c&&insertBefore(parentReferenceNode(k.$elm$),c,referenceNode(k.$elm$))}w>M?addVnodes(o,null==i[X+1]?null:i[X+1].$elm$,n,i,C,X):C>X&&removeVnodes(s,w,M)},isSameVnode=(o,s,n=!1)=>!(o.$tag$!==s.$tag$||("slot"===o.$tag$?"$nodeId$"in o&&n&&8!==o.$elm$.nodeType||o.$name$!==s.$name$:!n&&o.$key$!==s.$key$)),referenceNode=o=>o&&o["s-ol"]||o,parentReferenceNode=o=>(o["s-ol"]?o["s-ol"]:o).parentNode,patch=(o,s,n=!1)=>{const i=s.$elm$=o.$elm$,a=o.$children$,c=s.$children$,y=s.$tag$,w=s.$text$;let C;null===w?(isSvgMode="svg"===y||"foreignObject"!==y&&isSvgMode,("slot"!==y||useNativeShadowDom)&&updateElement(o,s,isSvgMode),null!==a&&null!==c?updateChildren(i,a,s,c,n):null!==c?(null!==o.$text$&&(i.textContent=""),addVnodes(i,null,s,c,0,c.length-1)):!n&&BUILD.updatable&&null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===y&&(isSvgMode=!1)):(C=i["s-cr"])?C.parentNode.textContent=w:o.$text$!==w&&(i.data=w)},updateFallbackSlotVisibility=o=>{const s=o.childNodes;for(const n of s)if(1===n.nodeType){if(n["s-sr"]){const i=n["s-sn"];n.hidden=!1;for(const a of s)if(a!==n)if(a["s-hn"]!==n["s-hn"]||""!==i){if(1===a.nodeType&&(i===a.getAttribute("slot")||i===a["s-sn"])||3===a.nodeType&&i===a["s-sn"]){n.hidden=!0;break}}else if(1===a.nodeType||3===a.nodeType&&""!==a.textContent.trim()){n.hidden=!0;break}}updateFallbackSlotVisibility(n)}},relocateNodes=[],markSlotContentForRelocation=o=>{let s,n,i;for(const a of o.childNodes){if(a["s-sr"]&&(s=a["s-cr"])&&s.parentNode){n=s.parentNode.childNodes;const c=a["s-sn"];for(i=n.length-1;i>=0;i--)if(s=n[i],!s["s-cn"]&&!s["s-nr"]&&s["s-hn"]!==a["s-hn"]&&!BUILD.experimentalSlotFixes)if(isNodeLocatedInSlot(s,c)){let y=relocateNodes.find(w=>w.$nodeToRelocate$===s);checkSlotFallbackVisibility=!0,s["s-sn"]=s["s-sn"]||c,y?(y.$nodeToRelocate$["s-sh"]=a["s-hn"],y.$slotRefNode$=a):(s["s-sh"]=a["s-hn"],relocateNodes.push({$slotRefNode$:a,$nodeToRelocate$:s})),s["s-sr"]&&relocateNodes.map(w=>{isNodeLocatedInSlot(w.$nodeToRelocate$,s["s-sn"])&&(y=relocateNodes.find(C=>C.$nodeToRelocate$===s),y&&!w.$slotRefNode$&&(w.$slotRefNode$=y.$slotRefNode$))})}else relocateNodes.some(y=>y.$nodeToRelocate$===s)||relocateNodes.push({$nodeToRelocate$:s})}1===a.nodeType&&markSlotContentForRelocation(a)}},isNodeLocatedInSlot=(o,s)=>1===o.nodeType?null===o.getAttribute("slot")&&""===s||o.getAttribute("slot")===s:o["s-sn"]===s||""===s,nullifyVNodeRefs=o=>{o.$attrs$&&o.$attrs$.ref&&o.$attrs$.ref(null),o.$children$&&o.$children$.map(nullifyVNodeRefs)},insertBefore=(o,s,n)=>{const i=o?.insertBefore(s,n);return updateElementScopeIds(s,o),i},findScopeIds=o=>{const s=[];return o&&s.push(...o["s-scs"]||[],o["s-si"],o["s-sc"],...findScopeIds(o.parentElement)),s},updateElementScopeIds=(o,s,n=!1)=>{var i;if(o&&s&&1===o.nodeType){const a=new Set(findScopeIds(s).filter(Boolean));if(a.size&&(null==(i=o.classList)||i.add(...o["s-scs"]=[...a]),o["s-ol"]||n))for(const c of Array.from(o.childNodes))updateElementScopeIds(c,o,!0)}},renderVdom=(o,s,n=!1)=>{var i,a,c,y,w;const C=o.$hostElement$,T=o.$cmpMeta$,S=o.$vnode$||newVNode(null,null),M=isHost(s)?s:h(null,null,s);if(hostTagName=C.tagName,T.$attrsToReflect$&&(M.$attrs$=M.$attrs$||{},T.$attrsToReflect$.map(([k,R])=>M.$attrs$[R]=C[k])),n&&M.$attrs$)for(const k of Object.keys(M.$attrs$))C.hasAttribute(k)&&!["key","ref","style","class"].includes(k)&&(M.$attrs$[k]=C[k]);if(M.$tag$=null,M.$flags$|=4,o.$vnode$=M,M.$elm$=S.$elm$=C.shadowRoot||C,scopeId=C["s-sc"],useNativeShadowDom=!!(1&T.$flags$),contentRef=C["s-cr"],checkSlotFallbackVisibility=!1,patch(S,M,n),plt.$flags$|=1,checkSlotRelocate){markSlotContentForRelocation(M.$elm$);for(const k of relocateNodes){const R=k.$nodeToRelocate$;if(!R["s-ol"]){const X=doc.createTextNode("");X["s-nr"]=R,insertBefore(R.parentNode,R["s-ol"]=X,R)}}for(const k of relocateNodes){const R=k.$nodeToRelocate$,X=k.$slotRefNode$;if(X){const Z=X.parentNode;let re=X.nextSibling;{let _e=null==(i=R["s-ol"])?void 0:i.previousSibling;for(;_e;){let pe=null!=(a=_e["s-nr"])?a:null;if(pe&&pe["s-sn"]===R["s-sn"]&&Z===pe.parentNode){for(pe=pe.nextSibling;pe===R||pe?.["s-sr"];)pe=pe?.nextSibling;if(!pe||!pe["s-nr"]){re=pe;break}}_e=_e.previousSibling}}(!re&&Z!==R.parentNode||R.nextSibling!==re)&&R!==re&&(!R["s-hn"]&&R["s-ol"]&&(R["s-hn"]=R["s-ol"].parentNode.nodeName),insertBefore(Z,R,re),1===R.nodeType&&(R.hidden=null!=(c=R["s-ih"])&&c)),R&&"function"==typeof X["s-rf"]&&X["s-rf"](R)}else 1===R.nodeType&&(n&&(R["s-ih"]=null!=(y=R.hidden)&&y),R.hidden=!0)}}if(checkSlotFallbackVisibility&&updateFallbackSlotVisibility(M.$elm$),plt.$flags$&=-2,relocateNodes.length=0,BUILD.experimentalScopedSlotChanges&&2&T.$flags$)for(const k of M.$elm$.childNodes)k["s-hn"]===hostTagName||k["s-sh"]||(n&&null==k["s-ih"]&&(k["s-ih"]=null!=(w=k.hidden)&&w),k.hidden=!0);contentRef=void 0},attachToAncestor=(o,s)=>{},scheduleUpdate=(o,s)=>(o.$flags$|=16,attachToAncestor(o,o.$ancestorComponent$),writeTask(()=>dispatchHooks(o,s))),dispatchHooks=(o,s)=>{const n=o.$hostElement$,i=createTime("scheduleUpdate",o.$cmpMeta$.$tagName$),a=n;if(!a)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let c;return c=safeCall(a,s?"componentWillLoad":"componentWillUpdate"),c=enqueue(c,()=>safeCall(a,"componentWillRender")),i(),enqueue(c,()=>updateComponent(o,a,s))},enqueue=(o,s)=>isPromisey(o)?o.then(s).catch(n=>{console.error(n),s()}):s(),isPromisey=o=>o instanceof Promise||o&&o.then&&"function"==typeof o.then,updateComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i){const a=s.$hostElement$,c=createTime("update",s.$cmpMeta$.$tagName$);i&&attachStyles(s);const y=createTime("render",s.$cmpMeta$.$tagName$);callRender(s,n,a,i),y(),c(),postUpdateComponent(s)});return function(n,i,a){return o.apply(this,arguments)}}(),renderingRef=null,callRender=(o,s,n,i)=>{try{renderingRef=s,s=s.render&&s.render(),o.$flags$&=-17,o.$flags$|=2,(BUILD.hasRenderFn||BUILD.reflect)&&(BUILD.vdomRender||BUILD.reflect)&&(BUILD.hydrateServerSide||renderVdom(o,s,i))}catch(a){consoleError(a,o.$hostElement$)}return renderingRef=null,null},getRenderingRef=()=>renderingRef,postUpdateComponent=o=>{const n=o.$hostElement$,i=createTime("postUpdate",o.$cmpMeta$.$tagName$),a=n;safeCall(a,"componentDidRender"),64&o.$flags$?(safeCall(a,"componentDidUpdate"),i()):(o.$flags$|=64,safeCall(a,"componentDidLoad"),i())},forceUpdate=o=>{{const s=getHostRef(o),n=s.$hostElement$.isConnected;return n&&2==(18&s.$flags$)&&scheduleUpdate(s,!1),n}},safeCall=(o,s,n)=>{if(o&&o[s])try{return o[s](n)}catch(i){consoleError(i)}},getValue=(o,s)=>getHostRef(o).$instanceValues$.get(s),setValue=(o,s,n,i)=>{const a=getHostRef(o),c=o,y=a.$instanceValues$.get(s),w=a.$flags$,C=c;n=parsePropertyValue(n,i.$members$[s][0]);const T=Number.isNaN(y)&&Number.isNaN(n);if(n!==y&&!T){if(a.$instanceValues$.set(s,n),i.$watchers$&&128&w){const S=i.$watchers$[s];S&&S.map(M=>{try{C[M](n,y,s)}catch(k){consoleError(k,c)}})}if(2==(18&w)){if(C.componentShouldUpdate&&!1===C.componentShouldUpdate(n,y,s))return;scheduleUpdate(a,!1)}}},proxyComponent=(o,s,n)=>{var i,a;const c=o.prototype;if(s.$members$||s.$watchers$||o.watchers){o.watchers&&!s.$watchers$&&(s.$watchers$=o.watchers);const y=Object.entries(null!=(i=s.$members$)?i:{});y.map(([w,[C]])=>{(31&C||32&C)&&Object.defineProperty(c,w,{get(){return getValue(this,w)},set(T){setValue(this,w,T,s)},configurable:!0,enumerable:!0})});{const w=new Map;c.attributeChangedCallback=function(C,T,S){plt.jmp(()=>{var M;const k=w.get(C);if(this.hasOwnProperty(k))S=this[k],delete this[k];else{if(c.hasOwnProperty(k)&&"number"==typeof this[k]&&this[k]==S)return;if(null==k){const R=getHostRef(this),X=R?.$flags$;if(X&&!(8&X)&&128&X&&S!==T){const Z=this,re=null==(M=s.$watchers$)?void 0:M[C];re?.forEach(_e=>{null!=Z[_e]&&Z[_e].call(Z,S,T,C)})}return}}this[k]=(null!==S||"boolean"!=typeof this[k])&&S})},o.observedAttributes=Array.from(new Set([...Object.keys(null!=(a=s.$watchers$)?a:{}),...y.filter(([C,T])=>15&T[0]).map(([C,T])=>{var S;const M=T[1]||C;return w.set(M,C),512&T[0]&&(null==(S=s.$attrsToReflect$)||S.push([C,M])),M})]))}}return o},initializeComponent=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i,a){let c;if(!(32&n.$flags$)&&(n.$flags$|=32,c=s.constructor,customElements.whenDefined(s.localName).then(()=>n.$flags$|=128),c&&c.style)){let y;"string"==typeof c.style?y=c.style:"string"!=typeof c.style&&(n.$modeName$=computeMode(s),n.$modeName$&&(y=c.style[n.$modeName$]));const w=getScopeId(i,n.$modeName$);if(!styles.has(w)){const C=createTime("registerStyles",i.$tagName$);registerStyle(w,y,!!(1&i.$flags$)),C()}}scheduleUpdate(n,!0)});return function(n,i,a,c){return o.apply(this,arguments)}}(),fireConnectedCallback=o=>{},connectedCallback=o=>{if(!(1&plt.$flags$)){const s=getHostRef(o),n=s.$cmpMeta$,i=createTime("connectedCallback",n.$tagName$);1&s.$flags$?(addHostEventListeners(o,s,n.$listeners$),s?.$lazyInstance$?fireConnectedCallback(s.$lazyInstance$):s?.$onReadyPromise$&&s.$onReadyPromise$.then(()=>fireConnectedCallback(s.$lazyInstance$))):(s.$flags$|=1,12&n.$flags$&&setContentReference(o),n.$members$&&Object.entries(n.$members$).map(([a,[c]])=>{if(31&c&&o.hasOwnProperty(a)){const y=o[a];delete o[a],o[a]=y}}),initializeComponent(o,s,n)),i()}},setContentReference=o=>{const s=o["s-cr"]=doc.createComment("");s["s-cn"]=!0,insertBefore(o,s,o.firstChild)},disconnectedCallback=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){if(!(1&plt.$flags$)){const n=getHostRef(s);n.$rmListeners$&&(n.$rmListeners$.map(i=>i()),n.$rmListeners$=void 0)}});return function(n){return o.apply(this,arguments)}}(),proxyCustomElement=(o,s)=>{const n={$flags$:s[0],$tagName$:s[1]};n.$members$=s[2],n.$listeners$=s[3],n.$watchers$=o.$watchers$,n.$attrsToReflect$=[];const i=o.prototype.connectedCallback,a=o.prototype.disconnectedCallback;return Object.assign(o.prototype,{__registerHost(){registerHost(this,n)},connectedCallback(){const c=getHostRef(this);addHostEventListeners(this,c,n.$listeners$),connectedCallback(this),i&&i.call(this)},disconnectedCallback(){disconnectedCallback(this),a&&a.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${n.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else this.attachShadow({mode:"open",delegatesFocus:!!(16&n.$flags$)})}}),o.is=n.$tagName$,proxyComponent(o,n)},Fragment=(o,s)=>s,addHostEventListeners=(o,s,n,i)=>{n&&n.map(([a,c,y])=>{const w=getHostListenerTarget(o,a),C=hostListenerProxy(s,y),T=hostListenerOpts(a);plt.ael(w,c,C,T),(s.$rmListeners$=s.$rmListeners$||[]).push(()=>plt.rel(w,c,C,T))})},hostListenerProxy=(o,s)=>n=>{try{BUILD.lazyLoad||o.$hostElement$[s](n)}catch(i){consoleError(i)}},getHostListenerTarget=(o,s)=>4&s?doc:8&s?win:16&s?doc.body:o,hostListenerOpts=o=>supportsListenerOptions?{passive:!!(1&o),capture:!!(2&o)}:!!(2&o),CURRENT_MODULE,METHOD_MODULE,o;o=CURRENT_MODULE||(CURRENT_MODULE={}),o.WELCOME="welcome",o.WELCOME_LOGIN="welcome-login",o.WELCOME_SIGNUP="welcome-signup",o.INFO="info",o.LOGIN_BUNKER_URL="login-bunker-url",o.LOGIN_READ_ONLY="login-read-only",o.CONFIRM_LOGOUT="confirm-logout",o.IMPORT_FLOW="import",o.IMPORT_OTP="import-otp",o.LOGIN="login",o.SIGNUP="signup",o.LOCAL_SIGNUP="local-signup",o.EXTENSION="extension",o.LOADING="loading",o.PREVIOUSLY_LOGGED="switch-account",o.LOGIN_OTP="otp",o.CONNECT="connect",o.CONNECTION_STRING="connection-string",o.IFRAME="iframe",function(o){o.LOGIN="login",o.SIGNUP="signup",o.LOGOUT="logout",o.CONFIRM="confirm"}(METHOD_MODULE||(METHOD_MODULE={}));const appendToMap=(o,s,n)=>{const i=o.get(s);i?i.includes(n)||i.push(n):o.set(s,[n])},debounce=(o,s)=>{let n;return(...i)=>{n&&clearTimeout(n),n=setTimeout(()=>{n=0,o(...i)},s)}},isConnected=o=>!("isConnected"in o)||o.isConnected,cleanupElements=debounce(o=>{for(let s of o.keys())o.set(s,o.get(s).filter(isConnected))},2e3),stencilSubscription=()=>{if("function"!=typeof getRenderingRef)return{};const o=new Map;return{dispose:()=>o.clear(),get:s=>{const n=getRenderingRef();n&&appendToMap(o,s,n)},set:s=>{const n=o.get(s);n&&o.set(s,n.filter(forceUpdate)),cleanupElements(o)},reset:()=>{o.forEach(s=>s.forEach(forceUpdate)),cleanupElements(o)}}},unwrap=o=>"function"==typeof o?o():o,createObservableMap=(o,s=(n,i)=>n!==i)=>{const n=unwrap(o);let i=new Map(Object.entries(n??{}));const a={dispose:[],get:[],set:[],reset:[]},c=()=>{var S;i=new Map(Object.entries(null!==(S=unwrap(o))&&void 0!==S?S:{})),a.reset.forEach(M=>M())},y=S=>(a.get.forEach(M=>M(S)),i.get(S)),w=(S,M)=>{const k=i.get(S);s(M,k,S)&&(i.set(S,M),a.set.forEach(R=>R(S,M,k)))},C=typeof Proxy>"u"?{}:new Proxy(n,{get:(S,M)=>y(M),ownKeys:S=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(S,M)=>i.has(M),set:(S,M,k)=>(w(M,k),!0)}),T=(S,M)=>(a[S].push(M),()=>{removeFromArray(a[S],M)});return{state:C,get:y,set:w,on:T,onChange:(S,M)=>{const k=T("set",(X,Z)=>{X===S&&M(Z)}),R=T("reset",()=>M(unwrap(o)[S]));return()=>{k(),R()}},use:(...S)=>{const M=S.reduce((k,R)=>(R.set&&k.push(T("set",R.set)),R.get&&k.push(T("get",R.get)),R.reset&&k.push(T("reset",R.reset)),R.dispose&&k.push(T("dispose",R.dispose)),k),[]);return()=>M.forEach(k=>k())},dispose:()=>{a.dispose.forEach(S=>S()),c()},reset:c,forceUpdate:S=>{const M=i.get(S);a.set.forEach(k=>k(S,M,M))}}},removeFromArray=(o,s)=>{const n=o.indexOf(s);n>=0&&(o[n]=o[o.length-1],o.length--)},createStore=(o,s)=>{const n=createObservableMap(o,s);return n.use(stencilSubscription()),n},{state,onChange}=createStore({screen:CURRENT_MODULE.WELCOME,prevScreen:CURRENT_MODULE.WELCOME,path:[CURRENT_MODULE.WELCOME],error:"",isLoading:!1,isLoadingExtension:!1,isOTP:!1,authUrl:"",iframeUrl:"",localSignup:!1,nlSignin:{loginName:""},nlSignup:{signupName:"",domain:"",servers:[{name:"@nsec.app",value:"nsec.app"},{name:"@highlighter.com",value:"highlighter.com"}]},nlSigninBunkerUrl:{loginName:""},nlSigninReadOnly:{loginName:""},nlSigninOTP:{loginName:"",code:""},nlImport:null});onChange("screen",()=>{state.error="",state.nlSignin.loginName="",state.nlSignup.signupName="",state.nlSignup.domain=""});const baseCss="/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com*/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;color:#6b7280;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,input:where(:not([type])):focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;print-color-adjust:exact;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.block{display:block}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.theme-default .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-default .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-description,.theme-default .nl-logo,.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-description,.theme-default .dark .nl-logo,.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.theme-default .nl-description a{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .dark .nl-description a{--tw-text-opacity:1;color:rgb(191 219 254/var(--tw-text-opacity));text-decoration-line:underline}.theme-default .nl-action-button{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-action-button{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-default .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-title{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-title{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.theme-default .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.theme-default .nl-divider{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .nl-divider:before{border-top-width:1px}.theme-default .nl-divider:after,.theme-default .nl-divider:before{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .dark .nl-divider{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.theme-default .dark .nl-divider:after,.theme-default .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity));content:var(--tw-content)}.theme-default .nl-footer{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-footer{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.theme-default .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-default .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-default .nl-input{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-default .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity));color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}.theme-default .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.theme-default .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.theme-default .nl-select-option{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.theme-default .nl-select-option.active-option{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity));color:rgb(30 58 138/var(--tw-text-opacity))}.theme-default .dark .nl-select-option{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.theme-default .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-default .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-default .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-default .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(229 231 235/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(31 41 55/var(--tw-text-opacity))}.theme-default .dark .nl-banner{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity));border-color:rgb(55 65 81/var(--tw-border-opacity));color:rgb(209 213 219/var(--tw-text-opacity))}.theme-ocean .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(191 219 254/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-ocean .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(8 47 73/var(--tw-bg-opacity))}.theme-ocean .nl-description,.theme-ocean .nl-logo,.theme-ocean .nl-title{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-description,.theme-ocean .dark .nl-logo,.theme-ocean .dark .nl-title{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-action-button{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-action-button{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-ocean .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(224 242 254/var(--tw-bg-opacity));border-color:rgb(186 230 253/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity))}.theme-ocean .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));border-color:rgb(8 47 73/var(--tw-border-opacity));color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity))}.theme-ocean .nl-divider{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .nl-divider:after,.theme-ocean .nl-divider:before{--tw-border-opacity:1;border-color:rgb(8 47 73/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .dark .nl-divider{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .dark .nl-divider:after,.theme-ocean .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity));content:var(--tw-content)}.theme-ocean .nl-footer{--tw-text-opacity:1;color:rgb(8 47 73/var(--tw-text-opacity))}.theme-ocean .dark .nl-footer{--tw-text-opacity:1;color:rgb(186 230 253/var(--tw-text-opacity))}.theme-ocean .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-ocean .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-ocean .nl-input{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(14 165 233/var(--tw-ring-opacity));border-color:rgb(14 165 233/var(--tw-border-opacity))}.theme-ocean .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(12 74 110/var(--tw-bg-opacity));color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(2 132 199/var(--tw-ring-opacity))}.theme-ocean .nl-select-list{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(3 105 161/var(--tw-bg-opacity))}.theme-ocean .nl-select-option{--tw-text-opacity:1;color:rgb(7 89 133/var(--tw-text-opacity))}.theme-ocean .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(186 230 253/var(--tw-bg-opacity))}.theme-ocean .dark .nl-select-option{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity))}.theme-ocean .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(7 89 133/var(--tw-bg-opacity));color:rgb(125 211 252/var(--tw-text-opacity))}.theme-ocean .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-ocean .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-ocean .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-lemonade .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(187 247 208/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-lemonade .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(5 46 22/var(--tw-bg-opacity))}.theme-lemonade .nl-description,.theme-lemonade .nl-logo,.theme-lemonade .nl-title{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-description,.theme-lemonade .dark .nl-logo,.theme-lemonade .dark .nl-title{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-action-button{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-action-button{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-lemonade .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(220 252 231/var(--tw-bg-opacity));border-color:rgb(187 247 208/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));border-color:rgb(5 46 22/var(--tw-border-opacity));color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity))}.theme-lemonade .nl-divider{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .nl-divider:after,.theme-lemonade .nl-divider:before{--tw-border-opacity:1;border-color:rgb(5 46 22/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .dark .nl-divider{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .dark .nl-divider:after,.theme-lemonade .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity));content:var(--tw-content)}.theme-lemonade .nl-footer{--tw-text-opacity:1;color:rgb(5 46 22/var(--tw-text-opacity))}.theme-lemonade .dark .nl-footer{--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.theme-lemonade .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-lemonade .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-lemonade .nl-input{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(34 197 94/var(--tw-ring-opacity));border-color:rgb(34 197 94/var(--tw-border-opacity))}.theme-lemonade .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 83 45/var(--tw-bg-opacity));color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.theme-lemonade .nl-select-list{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity))}.theme-lemonade .nl-select-option{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.theme-lemonade .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity))}.theme-lemonade .dark .nl-select-option{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity))}.theme-lemonade .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(22 101 52/var(--tw-bg-opacity));color:rgb(134 239 172/var(--tw-text-opacity))}.theme-lemonade .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-lemonade .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-lemonade .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-purple .nl-bg{--tw-bg-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(233 213 255/var(--tw-bg-opacity));box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-purple .dark .nl-bg{--tw-bg-opacity:1;--tw-shadow-color:rgba(51,65,85,.7);--tw-shadow:var(--tw-shadow-colored);background-color:rgb(59 7 100/var(--tw-bg-opacity))}.theme-purple .nl-description,.theme-purple .nl-logo,.theme-purple .nl-title{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-description,.theme-purple .dark .nl-logo,.theme-purple .dark .nl-title{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-action-button{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-action-button{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}.theme-purple .dark .nl-action-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(243 232 255/var(--tw-bg-opacity));border-color:rgb(233 213 255/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(250 245 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));border-color:rgb(59 7 100/var(--tw-border-opacity));color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity))}.theme-purple .nl-divider{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .nl-divider:after,.theme-purple .nl-divider:before{--tw-border-opacity:1;border-color:rgb(59 7 100/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .dark .nl-divider{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .dark .nl-divider:after,.theme-purple .dark .nl-divider:before{--tw-border-opacity:1;border-color:rgb(233 213 255/var(--tw-border-opacity));content:var(--tw-content)}.theme-purple .nl-footer{--tw-text-opacity:1;color:rgb(59 7 100/var(--tw-text-opacity))}.theme-purple .dark .nl-footer{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.theme-purple .nl-error{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity))}.theme-purple .dark .nl-error{--tw-text-opacity:1;color:rgb(254 202 202/var(--tw-text-opacity))}.theme-purple .nl-input{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-input:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-input{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-input:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .nl-select:focus{--tw-border-opacity:1;--tw-ring-opacity:1;--tw-ring-color:rgb(168 85 247/var(--tw-ring-opacity));border-color:rgb(168 85 247/var(--tw-border-opacity))}.theme-purple .dark .nl-select{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(88 28 135/var(--tw-bg-opacity));color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(147 51 234/var(--tw-ring-opacity))}.theme-purple .nl-select-list{--tw-bg-opacity:1;background-color:rgb(243 232 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-list{--tw-bg-opacity:1;background-color:rgb(126 34 206/var(--tw-bg-opacity))}.theme-purple .nl-select-option{--tw-text-opacity:1;color:rgb(107 33 168/var(--tw-text-opacity))}.theme-purple .nl-select-option:hover{--tw-bg-opacity:1;background-color:rgb(233 213 255/var(--tw-bg-opacity))}.theme-purple .dark .nl-select-option{--tw-text-opacity:1;color:rgb(192 132 252/var(--tw-text-opacity))}.theme-purple .dark .nl-select-option:hover{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(107 33 168/var(--tw-bg-opacity));color:rgb(216 180 254/var(--tw-text-opacity))}.theme-purple .nl-text-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.theme-purple .dark .nl-text-error{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.theme-purple .nl-text-success{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.theme-purple .dark .nl-text-success{--tw-text-opacity:1;color:rgb(45 212 191/var(--tw-text-opacity))}.theme-crab .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);background-color:rgb(254 226 226/var(--tw-bg-opacity));border-color:rgb(254 202 202/var(--tw-border-opacity));border-width:1px;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);color:rgb(69 10 10/var(--tw-text-opacity))}.theme-crab .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.theme-crab .dark .nl-button{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(153 27 27/var(--tw-bg-opacity));border-color:rgb(69 10 10/var(--tw-border-opacity));color:rgb(254 202 202/var(--tw-text-opacity))}.theme-crab .dark .nl-button:hover{--tw-bg-opacity:1;background-color:rgb(127 29 29/var(--tw-bg-opacity))}.show-slow{display:none;opacity:0;transition:.1s}.isOpen .show-slow{display:block;opacity:1;transition:.2s;transition-delay:.2s}:host{display:block}.animate-spin-loading{animation:spin2 1s linear infinite;background:var(--qa-dark-color)}@keyframes spin2{to{transform:rotate(1turn)}}.active{animation:blink .7s infinite alternate}@keyframes blink{0%{opacity:1}to{opacity:0}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.start-0{inset-inline-start:0}.top-0{top:0}.z-\\[80\\]{z-index:80}.z-\\[81\\]{z-index:81}.mx-auto{margin-left:auto;margin-right:auto}.flex{display:flex}.h-5{height:20px}.h-7{height:28px}.h-full{height:100%}.w-5{width:20px}.w-7{width:28px}.w-full{width:100%}.max-w-96{max-width:384px}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-transparent{border-color:transparent}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity:0.75}.p-4{padding:16px}.px-4{padding-left:16px;padding-right:16px}.py-3{padding-bottom:12px}.pt-3,.py-3{padding-top:12px}.text-center{text-align:center}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-semibold{font-weight:600}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.dark\\:focus\\:outline-none:focus:is(.dark *){outline:2px solid transparent;outline-offset:2px}.dark\\:focus\\:ring-1:focus:is(.dark *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:focus\\:ring-gray-600:focus:is(.dark *){--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity))}@media (min-width:640px){.sm\\:mx-auto{margin-left:auto;margin-right:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}}.inline-flex{display:inline-flex}.h-4{height:16px}.w-4{width:16px}.gap-x-2{column-gap:8px}.rounded-lg{border-radius:.5rem}.px-3{padding-left:12px;padding-right:12px}.py-2\\.5{padding-bottom:10px;padding-top:10px}.font-medium{font-weight:500}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:opacity-50:disabled{opacity:.5}.mt-0{margin-top:0}.mt-3{margin-top:12px}.max-h-0{max-height:0}.max-h-\\[500px\\]{max-height:500px}.max-w-52{max-width:208px}.max-w-7{max-width:28px}.rotate-0{--tw-rotate:0deg}.rotate-0,.rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.gap-0\\.5{gap:2px}.gap-3{gap:12px}.gap-x-3\\.5{column-gap:14px}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.border-b-\\[1px\\]{border-bottom-width:1px}.border-dashed{border-style:dashed}.border-blue-500{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity))}.p-2{padding:8px}.py-2{padding-bottom:8px;padding-top:8px}.pb-1{padding-bottom:4px}.pb-1\\.5{padding-bottom:6px}.pb-5{padding-bottom:20px}.pe-4{padding-inline-end:16px}.ps-4{padding-inline-start:16px}.pt-5{padding-top:20px}.text-3xl{font-size:30px;line-height:36px}.uppercase{text-transform:uppercase}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.decoration-dashed{text-decoration-style:dashed}.duration-300{transition-duration:.3s}.duration-\\[0\\.25s\\]{transition-duration:.25s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.ml-auto,.mx-auto{margin-left:auto}.mr-auto{margin-right:auto}.w-60{width:240px}.pt-2{padding-top:8px}.text-4xl{font-size:36px;line-height:40px}.text-lg{font-size:18px;line-height:28px}.mb-0\\.5{margin-bottom:2px}.mb-2{margin-bottom:8px}.mb-5{margin-bottom:20px}.ml-auto{margin-left:auto}.inline-block{display:inline-block}.w-72{width:288px}.max-w-72{max-width:288px}.border-\\[3px\\]{border-width:3px}.border-current{border-color:currentColor}.border-t-transparent{border-top-color:transparent}.pb-2{padding-bottom:8px}.text-2xl{font-size:24px;line-height:32px}.text-slate-900{--tw-text-opacity:1;color:rgb(15 23 42/var(--tw-text-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.h-12{height:48px}.w-12{width:48px}.text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity))}.dark\\:text-green-200:is(.dark *){--tw-text-opacity:1;color:rgb(187 247 208/var(--tw-text-opacity))}.mb-10{margin-bottom:40px}.mt-10{margin-top:40px}.h-20{height:80px}.w-20{width:80px}.border-\\[4px\\]{border-width:4px}.w-auto{width:auto}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-orange-300{--tw-border-opacity:1;border-color:rgb(253 186 116/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-teal-300{--tw-border-opacity:1;border-color:rgb(94 234 212/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 237 213/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-teal-100{--tw-bg-opacity:1;background-color:rgb(204 251 241/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.px-1{padding-left:4px;padding-right:4px}.text-\\[10px\\]{font-size:10px}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-orange-600{--tw-text-opacity:1;color:rgb(234 88 12/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-teal-600{--tw-text-opacity:1;color:rgb(13 148 136/var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity))}.pointer-events-none{pointer-events:none}.inset-y-0{bottom:0;top:0}.ps-11{padding-inline-start:44px}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.peer:disabled~.peer-disabled\\:pointer-events-none{pointer-events:none}.peer:disabled~.peer-disabled\\:opacity-50{opacity:.5}.dark\\:border-transparent:is(.dark *){border-color:transparent}.right-\\[-2px\\]{right:-2px}.right-\\[-3px\\]{right:-3px}.top-\\[-2px\\]{top:-2px}.top-\\[-3px\\]{top:-3px}.h-1\\.5{height:6px}.h-3{height:12px}.h-6{height:24px}.w-1\\.5{width:6px}.w-3{width:12px}.max-w-6{max-width:24px}.border-2{border-width:2px}.border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.pb-3{padding-bottom:12px}.pt-0{padding-top:0}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.hover\\:bg-gray-400:hover{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity))}.hover\\:text-red-600:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.group:hover .group-hover\\:border-blue-400{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity))}.mt-1{margin-top:4px}.hidden{display:none}.min-w-\\[15rem\\]{min-width:15rem}.overflow-hidden,.truncate{overflow:hidden}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-top-4:before{content:var(--tw-content);top:-16px}.before\\:start-0:before{content:var(--tw-content);inset-inline-start:0}.before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-full:before{content:var(--tw-content);width:100%}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-bottom-4:after{bottom:-16px;content:var(--tw-content)}.after\\:start-0:after{content:var(--tw-content);inset-inline-start:0}.after\\:h-4:after{content:var(--tw-content);height:16px}.after\\:w-full:after{content:var(--tw-content);width:100%}.end-0{inset-inline-end:0}.h-\\[20px\\]{height:20px}.w-\\[20px\\]{width:20px}.border-\\[2px\\]{border-width:2px}.pe-11{padding-inline-end:44px}.right-0{right:0}.right-2{right:8px}.top-2{top:8px}.top-52{top:208px}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-auto{margin:auto}.ml-0{margin-left:0}.ml-\\[2px\\]{margin-left:2px}.mr-0{margin-right:0}.mr-2{margin-right:8px}.mr-3\\.5{margin-right:14px}.mt-2{margin-top:8px}.grid{display:grid}.h-0{height:0}.h-8{height:32px}.h-\\[46px\\]{height:46px}.h-auto{height:auto}.w-0{width:0}.w-16{width:64px}.w-52{width:208px}.w-6{width:24px}.w-8{width:32px}.w-\\[48px\\]{width:48px}.min-w-40{min-width:160px}.max-w-40{max-width:160px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.place-items-center{place-items:center}.text-nowrap{text-wrap:nowrap}.rounded-r-lg{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.border-\\[0px\\]{border-width:0}.p-3{padding:12px}.px-2{padding-left:8px;padding-right:8px}.pl-\\[11px\\]{padding-left:11px}.text-xs{font-size:12px;line-height:16px}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.opacity-0{opacity:0}.transition-all{transition-duration:.15s;transition-property:all}.ease-in-out,.transition-all{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:right-2:hover{right:8px}.hover\\:rounded-r-lg:hover{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}",buttonBaseCss=baseCss,ButtonBaseStyle0=buttonBaseCss,ButtonBase=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}componentDidRender(){const o=this.element.querySelector("svg");o&&(o.classList.add("flex-shrink-0","w-4","h-4","block"),o.removeAttribute("style"))}render(){return h("div",{key:"1048576f0a9839c56cac030b1de7899b25b5f39e",class:`theme-${this.theme}`},h("div",{key:"ea29f74a1f7e4268802c6e4aaca5867dfd2e4c9b",class:"animate-spin-loading active"}),h("button",{key:"71f84d47b11aa3971818b686f8dddb74e0d36eb0",disabled:this.disabled,type:"button",class:"nl-button py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},h("slot",{key:"91a91994e20dc10e3bbb2576e4214fa98533be8e",name:"icon-start"}),this.titleBtn))}get element(){return this}static get style(){return ButtonBaseStyle0}},[4,"button-base",{theme:[1025],darkMode:[1028,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$q(){typeof customElements>"u"||["button-base"].forEach(o=>{"button-base"===o&&(customElements.get(o)||customElements.define(o,ButtonBase))})}defineCustomElement$q();const nlConfirmLogoutCss=baseCss,NlConfirmLogoutStyle0=nlConfirmLogoutCss,NlConfirmLogout$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleBackUpModal=createEvent(this,"handleBackUpModal",7),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Delete keys?",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible."}handleLogout(){this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.nlCloseModal.emit()}handleCancel(){this.nlCloseModal.emit()}handleBackUp(){state.path=[CURRENT_MODULE.IMPORT_FLOW]}render(){return h("div",{key:"fe605f38f9d0a440fe53e21f19288c41e4762c22",class:"p-4 overflow-y-auto"},h("h1",{key:"84d14a59035515b2fd612d262400a038887a10d7",class:"nl-title font-bold text-center text-4xl"},this.titleModal),h("p",{key:"83ef73271c76309561be95e0207f8130d75a161c",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description),h("div",{key:"fce0f132846beb95dd9e41357f5ab87be7229a56",class:"mt-3 ml-auto mr-auto w-60 flex flex-col gap-2"},h("button-base",{key:"c4fc722a7c98d84e797963ed7fe928164411b701",onClick:()=>this.handleBackUp(),titleBtn:"Backup keys",theme:"lemonade"}),h("button-base",{key:"39df385a9a8dc3fcd74f4196d4191bc4a308a16d",onClick:()=>this.handleLogout(),theme:"crab",titleBtn:"Logout and delete keys"})))}static get style(){return NlConfirmLogoutStyle0}},[0,"nl-confirm-logout",{titleModal:[1,"title-modal"],description:[1]}]);function defineCustomElement$p(){typeof customElements>"u"||["nl-confirm-logout","button-base"].forEach(o=>{switch(o){case"nl-confirm-logout":customElements.get(o)||customElements.define(o,NlConfirmLogout$1);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$p();const nlConnectCss=baseCss,NlConnectStyle0=nlConnectCss,NlConnect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlNostrConnect=createEvent(this,"nlNostrConnect",7),this.nlNostrConnectDefault=createEvent(this,"nlNostrConnectDefault",7),this.titleWelcome="Connect to key store",this.authMethods=[],this.hasOTP=!1,this.connectionStringServices=[],this.isOpenAdvancedLogin=!1}handleChangeScreen(o){state.path=[...state.path,o]}handleOpenAdvanced(){this.isOpenAdvancedLogin=!this.isOpenAdvancedLogin}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}componentWillLoad(){}handleOpenLink(o,s){o.preventDefault(),this.nlNostrConnect.emit(s)}handleConnectionString(){this.nlNostrConnectDefault.emit(),this.handleChangeScreen(CURRENT_MODULE.CONNECTION_STRING)}render(){const o=(this.isOpenAdvancedLogin?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-blue-500";return h(Fragment,{key:"a85f0a26b61b7e321025b7dd96e459a6c43958a9"},h("div",{key:"7af7ae501bed1bf028465e65f3caa3824a3948ca",class:"p-4 overflow-y-auto"},h("h1",{key:"7795a15c6d525d1b7ad0e6da63ad1889a64d6459",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"cf5b947b22757334cbf92059dfc7ffaef0c95951",class:"p-4"},!!this.connectionStringServices.length&&h("div",{key:"c5de66ab74b14d69993dc20cf123777a3b8a016e",class:"max-w-96 mx-auto pt-5"},h("p",{key:"f7ac9e48789870264707bf39e3f1b2d73218aad5",class:"nl-description font-medium text-sm pb-1.5"},"Select key store:"),h("ul",{key:"07c1bd1bf9ffaa80f0868481ce22a8d5c73a345b",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.connectionStringServices.map(s=>h("li",null,h("a",{href:s.link,target:"_blank",onClick:n=>this.handleOpenLink(n,s),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-300 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s.img?h("img",{class:"w-full rounded-full",src:s.img,alt:s.name}):h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#9ca3af",class:"w-4 h-4 block"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},s.name)))))))),h("div",{key:"2a9094524ef58b138d04411484264a40ce42db7c",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"d833546cba5fd4a904a0123e6e760b602fda0ff7",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("div",{key:"700aa690c440f2685c9330feeb58986669b46f85",class:"max-w-52 mx-auto pb-5"},(this.allowAuthMethod("connect")||this.allowAuthMethod("readOnly"))&&h("div",{key:"058706b54702ac9ca3cd74a8096f521c211e5a16",class:"flex justify-center"},h("div",{key:"073f2567734817ba3cc8f34b32fa1a284d2b8ab1",onClick:()=>this.handleOpenAdvanced(),class:"text-blue-500 mt-3 decoration-dashed cursor-pointer inline-flex gap-2 items-center pb-1 border-dashed border-b-[1px] border-blue-500 text-sm font-light"},"Advanced",h("svg",{key:"d433319920bc751f771086bf726a3d5f1e31320e",class:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"4cc3a36807664b0402a26420c4979a68ba77df9c",d:"m6 9 6 6 6-6"})))),h("div",{key:"76dc95f39af78bd124e5f61309d96ee443d53f2f",class:(this.isOpenAdvancedLogin?"max-h-[500px] mt-3 duration-300":"max-h-0 mt-0 duration-[0.25s]")+" transition-max-height ease-in flex gap-3 flex-col overflow-hidden"},this.allowAuthMethod("connect")&&h("button-base",{key:"616d8de815233bc6264b51fa849fbf26d98758ed",titleBtn:"User name",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN)},h("svg",{key:"fa2f51ca2a111920d15a87106258c55a7b1961ff",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},h("path",{key:"288dee2f9c21bde4471a7eebbf94c231c1acad12","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"8298c3ad602e2bc279ab084a5e5ea311fdc193e9",titleBtn:"Connection string",onClick:()=>this.handleConnectionString()},h("svg",{key:"b7f83a4b7fae0ff0965c2493aa70b09e1b1ab3d8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d580fdbb1eee16439ffa4a46fa4f30cafbf0fd36","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"}),h("path",{key:"ab90c206914cb2d6cae80b7e36ce45653c65b9b3","stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"}))),this.allowAuthMethod("connect")&&h("button-base",{key:"c923265e7da4bb6815cf91c54a4b393c19f3d16d",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_BUNKER_URL),titleBtn:"Bunker URL"},h("svg",{key:"8c5bd04e91407a83d0021e4413ee58973b57aa54",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"d115abfce6eee55572316a4cc2a808a176d17f46","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))))))}static get style(){return NlConnectStyle0}},[0,"nl-connect",{titleWelcome:[1,"title-welcome"],authMethods:[16],hasOTP:[4,"has-o-t-p"],connectionStringServices:[16],isOpenAdvancedLogin:[32]}]);function defineCustomElement$o(){typeof customElements>"u"||["nl-connect","button-base"].forEach(o=>{switch(o){case"nl-connect":customElements.get(o)||customElements.define(o,NlConnect);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$o();const nlIframeCss=baseCss,NlIframeStyle0=nlIframeCss,NlConfirmLogout=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.titleModal="Confirm",this.description="Your profile keys are stored in this browser tab and will be deleted if you log out, and your profile will be inaccessible.",this.iframeUrl=""}handleCancel(){this.nlCloseModal.emit()}render(){return h("div",{key:"36ee9fd43bbb16768b7634783781ecffb1c9432a",class:"p-4 overflow-y-auto"},h("div",{key:"1634e1fd37bc44030f22bfdab9f7deec2806731b",class:"mt-3 flex flex-col gap-2"},this.iframeUrl&&h("iframe",{key:"2b1ab3032b152fb109f3531bb7600bb76aa1a562",src:this.iframeUrl,style:{width:"100%",height:"600px",border:"1px solid #ccc",borderRadius:"8px"}})))}static get style(){return NlIframeStyle0}},[0,"nl-iframe",{titleModal:[1,"title-modal"],description:[1],iframeUrl:[1,"iframe-url"]}]);function defineCustomElement$n(){typeof customElements>"u"||["nl-iframe"].forEach(o=>{"nl-iframe"===o&&(customElements.get(o)||customElements.define(o,NlConfirmLogout))})}defineCustomElement$n();const nlSelectCss=baseCss,NlSelectStyle0=nlSelectCss,NlSelect=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.selectDomain=createEvent(this,"selectDomain",7),this.isOpen=!1,this.value=null,this.options=void 0,this.selected=void 0,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode,this.value=this.options[this.selected],this.selectDomain.emit(this.value.value)}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.value=o,this.isOpen=!1,this.selectDomain.emit(this.value.value)}render(){const o=(this.isOpen?"listClass":"hidden")+" min-w-[15rem] nl-select-list absolute left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500";return h("div",{key:"c86084c50712455e04682a4392e490bc0e20eb1d",class:`theme-${this.themeState}`},h("div",{key:"a90d9b4af52845a9971c39cec69c13493d511381",class:"relative",ref:n=>this.wrapperRef=n},h("button",{key:"1391137997bf8fcd0a5466cd9fa20c79b4ce27ba",ref:n=>this.buttonRef=n,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"224425ab92ba3599595924972e98a0fc9cb1a189",class:"truncate overflow-hidden"},this.value.name),h("svg",{key:"8eb2a2b552cb9ea36fb1abc61d804efb423afda6",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"feea1a7f54f4a111b7bf01e3945445311b97ab82",d:"m6 9 6 6 6-6"}))),h("ul",{key:"fca4982f04f4133d5c2a2f613a7e7d977dd5c241",ref:n=>this.ulRef=n,class:o},this.options.map(n=>h("li",{onClick:()=>this.handleChange(n),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},n.name)))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}}static get style(){return NlSelectStyle0}},[0,"nl-select",{options:[16],selected:[2],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],value:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"]}]);function defineCustomElement$m(){typeof customElements>"u"||["nl-select"].forEach(o=>{"nl-select"===o&&(customElements.get(o)||customElements.define(o,NlSelect))})}defineCustomElement$m();const nlImportFlowCss=baseCss,NlImportFlowStyle0=nlImportFlowCss,NlImportFlow$1=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.nlExportKeys=createEvent(this,"nlExportKeys",7),this.titleInfo="Back up your keys",this.titleImport="Choose a service",this.services=[],this.isContinued=!1,this.isKeyBackup=!1,this.isCopy=!1}handleDomainSelect(o){const s=this.services.find(n=>n.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}handleContinue(){this.isContinued=!0}handleContinueKeyBackup(){this.isKeyBackup=!0}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.nlExportKeys.emit(),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)})()}render(){if(!this.isContinued&&!this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleInfo),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Nostr profiles are controlled by cryptographic keys.",h("br",null),h("br",null),"Your keys are currently only stored in this browser tab, and may be lost if you close it.",h("br",null),h("br",null),"You should backup your keys.",h("br",null),h("br",null),"We recommend to import your keys into a key store service, to protect them and to use with other apps."),h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.handleContinue(),titleBtn:"Import to key store"})),h("div",{class:"ml-auto mr-auto w-72"},h("button-base",{onClick:()=>this.handleContinueKeyBackup(),titleBtn:"Export keys"})));if(this.isKeyBackup)return h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},"Key export"),h("p",{class:"nl-description font-light text-sm pt-2 pb-2 max-w-96 mx-auto"},"Copy your keys and store them in a safe place, like a password manager.",h("br",null),h("br",null),"You can sign into other Nostr apps by pasting your keys into them.",h("br",null),h("br",null),"Your keys must be kept secret, never share them with anyone."),h("div",{class:"max-w-72 mx-auto"},h("div",{class:"ml-auto mr-auto mb-2 w-72"},h("button-base",{onClick:()=>this.copyToClipboard(),titleBtn:this.isCopy?"Copied!":"Copy to clipboard"}))));const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,null,h("div",{class:"p-4 overflow-y-auto"},h("h1",{class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},"Your Nostr keys will be imported into the service you choose. You will manage your keys on their website.")),h("div",{class:"max-w-72 mx-auto mb-5"},h("div",{class:"mb-0.5"},h("nl-select",{onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlImportFlowStyle0}},[0,"nl-import-flow",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],services:[16],isContinued:[32],isKeyBackup:[32],isCopy:[32]}]);function defineCustomElement$l(){typeof customElements>"u"||["nl-import-flow","button-base","nl-select"].forEach(o=>{switch(o){case"nl-import-flow":customElements.get(o)||customElements.define(o,NlImportFlow$1);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$l();const nlInfoCss=baseCss,NlInfoStyle0=nlInfoCss,NlInfo=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"7463f42c27643903a9d6fb0160fbabe833679fcb",class:"p-4 overflow-y-auto"},h("svg",{key:"86c5f04f87b21553f3512d289425996b46eb6c57",class:"w-12 h-12 mx-auto mb-2",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{key:"6be61e0b2ff3d3f13e617e9b1df073fbe3b5678b",width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{key:"0c0aff7d5143022fe857de141cdae31397c3c2f4",d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("h1",{key:"3a89ee5051e2d74945347dec6055749cec126f27",class:"nl-title font-bold text-center text-4xl"},"Nostr ",h("span",{key:"96a49c22dffa4a30639f387a949d7695604c6a1f",class:"font-light"},"Login")),h("p",{key:"a6dded720da9db673173a1ff02bc5544e6a66d38",class:"text-green-800 dark:text-green-200 font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Version: 1.6.12"),h("p",{key:"9d9dbd36ade753d30db448139dc057921f29697d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Learn more about Nostr"," ",h("a",{key:"1811ad4f1acda7f5235566ea6f2ce8e70c62c91c",target:"_blank",href:"https://nostr.how"},"here"),".",h("br",{key:"127a6127e71f43caa1c262c6ec8108a5a6f40774"}),"This is an"," ",h("a",{key:"0e18839f8577229533eb2d2ef00f8657e6396aa1",target:"_blank",href:"https://github.com/nostrband/nostr-login"},"open-source")," ","tool by"," ",h("a",{key:"9affd14ad9dedae3e5d269a1477343eae63cd46b",target:"_blank",href:"https://nostr.band"},"Nostr.Band"),"."))}static get style(){return NlInfoStyle0}},[0,"nl-info"]);function defineCustomElement$k(){typeof customElements>"u"||["nl-info"].forEach(o=>{"nl-info"===o&&(customElements.get(o)||customElements.define(o,NlInfo))})}defineCustomElement$k();const nlInfoExtensionCss=baseCss,NlInfoExtensionStyle0=nlInfoExtensionCss,NlInfoExtension=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost()}render(){return h("div",{key:"9335feb745c6d09a213a2e771c40262036341b54",class:"p-4 overflow-y-auto"},state.isLoadingExtension?h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Signing in..."),h("div",{class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{class:"ps-4 pe-4 overflow-y-auto"},h("p",{class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error))):h("div",null,h("h1",{class:"nl-title font-bold text-center text-4xl"},"Install browser extension!"),h("p",{class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Try"," ",h("a",{href:"https://getalby.com",target:"_blank"},"Alby"),","," ",h("a",{href:"https://chromewebstore.google.com/detail/nos2x/kpgefcfmnafjgpblomihpgmejjdanjjp",target:"_blank"},"nos2x")," ","or"," ",h("a",{href:"https://apps.apple.com/us/app/nostore/id1666553677",target:"_blank"},"Nostore"))))}static get style(){return NlInfoExtensionStyle0}},[0,"nl-info-extension"]);function defineCustomElement$j(){typeof customElements>"u"||["nl-info-extension"].forEach(o=>{"nl-info-extension"===o&&(customElements.get(o)||customElements.define(o,NlInfoExtension))})}defineCustomElement$j();const nlLoadingCss=baseCss,NlLoadingStyle0=nlLoadingCss,NlLoading=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.stopFetchHandler=createEvent(this,"stopFetchHandler",7),this.handleContinue=createEvent(this,"handleContinue",7),this.path=void 0}handleStop(o){o.preventDefault(),this.stopFetchHandler.emit()}handleContinueClick(o){o.preventDefault(),this.handleContinue.emit()}render(){let o="Connecting...",s="Establishing connection to your key storage.";this.path===CURRENT_MODULE.LOCAL_SIGNUP?(o="Creating...",s="Publishing your profile on Nostr."):state.authUrl&&(state.isLoading?(o="Confirming...",s="Please confirm the connection in your key storage app."):(o="Almost ready!",s="Continue to confirm the connection to your key storage."));const n=this.path!==CURRENT_MODULE.LOCAL_SIGNUP,i=!state.isLoading&&state.iframeUrl&&state.authUrl,a=`${state.iframeUrl}?connect=${encodeURIComponent(state.authUrl)}`;return h("div",{key:"516866bac0ab965ad91fa153040e38cc94ecfe43",class:"p-4 overflow-y-auto"},h("h1",{key:"51fffb5a84be838536699741d19eb072d4318517",class:"nl-title font-bold text-center text-4xl"},o),h("p",{key:"8c0825a89ca531b74d1fb11fa06632b9bddf11b4",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},s),!state.authUrl&&state.isLoading&&h("div",{key:"5b39a21b600a0524d7eff2885fa9b048b76daf8b",class:"mt-10 mb-10 ml-auto mr-auto w-20"},h("span",{key:"6ac53666049efdd495197b4c57536a3e09969cdb",slot:"icon-start",class:"animate-spin-loading ml-auto mr-auto inline-block w-20 h-20 border-[4px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"})),h("div",{key:"1a7211d6d3d9f6e14ff02a3605c6c7b1d2dbff09",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"678cc1522ff896809fbc0309966497aafb308a36",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),a&&h("div",{key:"6b68b0afd47bb420e142d6cefbe5fb286a6871be",class:"mt-3 ml-auto mr-auto w-72 flex justify-center"},h("iframe",{key:"69526e3b7af7d255b00f2ba1aeb9f688261958eb",src:a,width:"180px",height:"80px",style:{display:i?"block":"none"}})),!i&&n&&h("div",{key:"ea17236efcb5ae4aebec89508337a12f682e35cd",class:"mt-3 ml-auto mr-auto w-72"},h("button-base",{key:"7c6a62128ece1a50a5e01df43f8948f95f42fab2",onClick:c=>{state.authUrl&&!state.isLoading?this.handleContinueClick(c):this.handleStop(c)},titleBtn:state.isLoading?"Cancel":"Continue"})))}static get style(){return NlLoadingStyle0}},[0,"nl-loading",{path:[1]}]);function defineCustomElement$i(){typeof customElements>"u"||["nl-loading","button-base"].forEach(o=>{switch(o){case"nl-loading":customElements.get(o)||customElements.define(o,NlLoading);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$i();const nlLocalSignupCss=baseCss,NlLocalSignupStyle0=nlLocalSignupCss,NlLocalSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLocalSignup=createEvent(this,"nlLocalSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create Nostr profile",this.description="Choose any username, you can always change it later.",this.isAvailable=!1}handleInputChange(o){state.nlSignup.signupName=o.target.value}handleCreateAccount(o){o.preventDefault(),this.nlLocalSignup.emit(`${state.nlSignup.signupName}`)}render(){return h(Fragment,{key:"1ef0db8a3af10d6bd50c0ee084968abcef035b31"},h("div",{key:"966dbcd09fc2da235a817cbcf01b75e64ba2a3df",class:"p-4 overflow-y-auto"},h("h1",{key:"121ad8a12bb0d30785e26261993c73af716da22a",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"6758bc49ee96973718cb301a96ce26949c446512",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"e8354901c534454753d055542226b56ae7a3ec67",class:"max-w-72 mx-auto"},h("div",{key:"2a84cdb7a830431318ddb3a32c10476ab7aa98c8",class:"relative mb-2"},h("input",{key:"50c84d948104ac51b647b941f1e086f4eecf03d9",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Enter username",value:state.nlSignup.signupName}),h("div",{key:"8c52f3d644a8a0cd278af7646e9dbb0998b56afe",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"8923dc1949a04c7a10398db3c1211d00ce7fe925",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"e3303cbea9146cb1a66e47d5ecf51da5a4a2e8b7","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"916d7e92cea31d802b74ce71dd202b7ae5f84ed8",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"9bb8ffd3c9a7c2d62f700af314305d6403e9b54d",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dcd3530cb7878ec853ea1985cecfda1e03ab8011",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlLocalSignupStyle0}},[0,"nl-local-signup",{titleSignup:[1,"title-signup"],description:[1],isAvailable:[32]}]);function defineCustomElement$h(){typeof customElements>"u"||["nl-local-signup","button-base"].forEach(o=>{switch(o){case"nl-local-signup":customElements.get(o)||customElements.define(o,NlLocalSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$h();const NlLoginStatus=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.info=void 0}render(){let o="",s="";if("extension"===this.info.authMethod)o="Extension",s="border-yellow-300 text-yellow-500 bg-yellow-100";else if("readOnly"===this.info.authMethod)o="Read only",s="border-gray-300 text-gray-400 bg-gray-100";else if("connect"===this.info.authMethod)o="Connect",s="border-teal-300 text-teal-600 bg-teal-100";else if("local"===this.info.authMethod)o="Temporary",s="border-red-300 text-red-600 bg-red-100";else{if("otp"!==this.info.authMethod)throw console.log("unknown auth method",this.info),new Error("Unknown auth method");o="Delegated",s="border-orange-300 text-orange-600 bg-orange-100"}return h("div",{key:"f7d43062e3d372b26fd7e9c462eabad823b762e1"},h("span",{key:"c79aafe47bf945f5c6bf26aa230debc4d950be71",class:`${s} rounded-xl border w-auto text-[10px] px-1 `},o))}},[0,"nl-login-status",{info:[16]}]);function defineCustomElement$g(){typeof customElements>"u"||["nl-login-status"].forEach(o=>{"nl-login-status"===o&&(customElements.get(o)||customElements.define(o,NlLoginStatus))})}defineCustomElement$g();const nlOtpMigrateCss=baseCss,NlOtpMigrateStyle0=nlOtpMigrateCss,NlImportFlow=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlImportAccount=createEvent(this,"nlImportAccount",7),this.titleInfo="Import keys to storage service",this.titleImport="Choose a service",this.textImport="You will be prompted to import keys to the chosen service, and this website will connect to your keys.",this.services=[]}handleDomainSelect(o){const s=this.services.find(n=>n.domain===o.detail);state.nlImport=s}handleCreateAccount(o){o.preventDefault(),this.nlImportAccount.emit(state.nlImport)}render(){const o=this.services.filter(s=>s.canImport).map(s=>({name:s.domain,value:s.domain}));return h(Fragment,{key:"d27cbfa870975b4f9f0c6350ff6424e34b19dfad"},h("div",{key:"22618ac8a4e7cc53e111cfa47a7db3163ccc43ef",class:"p-4 overflow-y-auto"},h("h1",{key:"ebc3dc11334fa49479a1d071cf9a89bf204ca8ff",class:"nl-title font-bold text-center text-2xl"},this.titleImport),h("p",{key:"70795495de8e8f69488b2cebb2f8c5f1c2ace243",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.textImport)),h("div",{key:"a9f4df9d99623c686d22ed200bddb7657984a4f8",class:"max-w-72 mx-auto mb-5"},h("div",{key:"c9a0fedecd1e036f9a84a12aaf44ac6fd8bde10b",class:"mb-0.5"},h("nl-select",{key:"3db03a9a4fd78f544f670c6b1917af67ca818696",onSelectDomain:s=>this.handleDomainSelect(s),selected:0,options:o})),h("p",{key:"fc392301b3553c3fea01ab17341d8e0c829af408",class:"nl-title font-light text-sm mb-2"},"Default provider is a fine choice to start with."),h("div",{key:"e0dd51b7f1f9fe7ca367f309ea945cf5feffedf2",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4316dfbf51fb06b68f55d34bffe4450c29fc273c",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"dfbd68892ba44c72d4c319725dc82cf3a1af7d96",disabled:state.isLoading,onClick:s=>this.handleCreateAccount(s),titleBtn:"Start importing"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlOtpMigrateStyle0}},[0,"nl-otp-migrate",{titleInfo:[1025,"title-info"],titleImport:[1,"title-import"],textImport:[1,"text-import"],services:[16]}]);function defineCustomElement$f(){typeof customElements>"u"||["nl-otp-migrate","button-base","nl-select"].forEach(o=>{switch(o){case"nl-otp-migrate":customElements.get(o)||customElements.define(o,NlImportFlow);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$f();const nlPreviouslyLoggedCss=baseCss,NlPreviouslyLoggedStyle0=nlPreviouslyLoggedCss,NlPreviouslyLogged=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSwitchAccount=createEvent(this,"nlSwitchAccount",7),this.nlLoginRecentAccount=createEvent(this,"nlLoginRecentAccount",7),this.nlRemoveRecent=createEvent(this,"nlRemoveRecent",7),this.titlePage="Your profiles",this.description="Switch between active profiles or choose a recent one for fast login.",this.accounts=[],this.recents=[]}handleGoToWelcome(){state.path=[CURRENT_MODULE.WELCOME]}switchToWelcomeIfEmpty(){this.recents.length||this.accounts.length||(state.path=[CURRENT_MODULE.WELCOME])}watchAccounts(){this.switchToWelcomeIfEmpty()}watchRecents(){this.switchToWelcomeIfEmpty()}handleRemoveRecent(o){this.nlRemoveRecent.emit(o)}handleSwitch(o){this.nlSwitchAccount.emit(o)}handleLoginRecentAccount(o){this.nlLoginRecentAccount.emit(o)}render(){return h(Fragment,{key:"0b747732fe31ffb2d687859a8d5f5452de06cd82"},h("div",{key:"b696865acec55c2dc0f6f3ecf6360028f3911136",class:"p-4 pt-0 overflow-y-auto"},h("h1",{key:"156d95e32b1f14cdccfeabb2cb518bbba51b5da6",class:"nl-title font-bold text-center text-4xl"},this.titlePage),h("p",{key:"1d07d29dda5338c71c7831d4550c99af8717012d",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3776d52ca658395479d7aaba1d96b707b144da5d",class:"p-4"},!!this.accounts.length&&h("div",{key:"77d80f7e11fd0ad09c5fa13c8b39939a9c011641",class:"max-w-96 mx-auto"},h("p",{key:"f32b9358755c561781e840383a2bc6b2bfe5c392",class:"nl-description font-medium text-sm pb-1.5"},"Active profiles"),h("ul",{key:"789082d6f3ad3d75ebe461cde35846d0ff37e912",class:"p-2 rounded-lg border border-blue-200 flex flex-col w-full gap-0.5"},this.accounts.map(o=>{const s=!!o?.picture,n=o.name||o.nip05||o.pubkey,i=!!n;return h("li",{onClick:()=>this.handleSwitch(o),class:"group hover:bg-gray-400 flex cursor-pointer gap-x-3.5 py-2 px-3 rounded-lg text-sm items-center justify-between"},h("div",{class:"flex items-center gap-x-3.5 w-full"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-2px] right-[-2px] bg-white border-2 border-white rounded-xl"},h("div",{class:"active h-1.5 w-1.5 bg-green-500 rounded-xl"})),h("div",{class:"group-hover:border-blue-400 uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?n[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},n),h("nl-login-status",{info:o}))))}))),!!this.recents.length&&h("div",{key:"e89d6cda8386575a0a87a2188a89e5d929b55e8d",class:"max-w-96 mx-auto pt-5"},h("p",{key:"811958459f3694f5e31c2f22c75611c49973b17b",class:"nl-description font-medium text-sm pb-1.5"},"Recent profiles"),h("ul",{key:"0c042b8bec46a9871551bf2965eb9f561b012f22",class:"p-2 rounded-lg border border-gray-200 flex flex-col w-full gap-0.5"},this.recents.map(o=>{const s=!!o?.picture,n=o.name||o.nip05||o.pubkey,i=!!n;return h("li",{onClick:()=>this.handleLoginRecentAccount(o),class:"flex items-center gap-x-3.5 w-full hover:bg-gray-400 flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm justify-between"},h("div",{class:"w-full max-w-7 h-7 flex relative"},h("div",{class:"absolute top-[-3px] right-[-3px] bg-white border border-white rounded-xl"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-3 h-3"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),h("div",{class:"uppercase font-bold w-full h-full rounded-full border border-gray-400 flex justify-center items-center"},s?h("img",{class:"w-full rounded-full",src:o.picture,alt:"Logo"}):i?n[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"nl-title truncate overflow-hidden"},n),h("nl-login-status",{info:o})),h("svg",{onClick:a=>{a.stopPropagation(),this.handleRemoveRecent(o)},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full max-w-6 h-6 text-red-500 hover:text-red-600 ml-auto"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})))})))),h("div",{key:"f70f67171d6727d25b9a38bdf48730146c46f4f2",class:"p-4 overflow-y-auto"},h("p",{key:"7289d6c89d90db640ecc63603657280dec8d3a82",class:"nl-footer font-light text-center text-sm max-w-96 mx-auto"},"You can also"," ",h("span",{key:"5c0d9e2954a37fc013d459a78b8a056b916cdd62",onClick:()=>this.handleGoToWelcome(),class:"cursor-pointer pb-3 text-blue-500"},"add another profile"))))}static get watchers(){return{accounts:["watchAccounts"],recents:["watchRecents"]}}static get style(){return NlPreviouslyLoggedStyle0}},[0,"nl-previously-logged",{titlePage:[1,"title-page"],description:[1],accounts:[16],recents:[16]},void 0,{accounts:["watchAccounts"],recents:["watchRecents"]}]);function defineCustomElement$e(){typeof customElements>"u"||["nl-previously-logged","nl-login-status"].forEach(o=>{switch(o){case"nl-previously-logged":customElements.get(o)||customElements.define(o,NlPreviouslyLogged);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$e();const nlSigninCss=baseCss,NlSigninStyle0=nlSigninCss,NlSignin=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect to key store",this.description="Please enter your user name.",this.isGood=!1}handleInputChange(o){state.nlSignin.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSignin.loginName)}render(){return h(Fragment,{key:"70d5c41620a53b3b84157044f33fdce851d9054d"},h("div",{key:"f8880d45479ef512694fe1300a3c99df8dc756f2",class:"p-4 overflow-y-auto"},h("h1",{key:"fb0379faf61fa39d283fd2d159932b0dba56ed60",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"389dcc582e456ba3241a202aa77026b5fe1f2f1c",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"0cbc1dd3dd3e8437d5f1be8c5612a48ebf589a73",class:"max-w-72 mx-auto"},h("div",{key:"6d8d1a649d6f9b4ec39e91cb50880ec55ae34469",class:"relative mb-2"},h("input",{key:"546c3c63fc1849275b86efdfb8fa5b016ae4282b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"name@domain.com",value:state.nlSignin.loginName}),h("div",{key:"c91b2fb461ca2ee751a0811381a771ed227d1c7b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"cd11d6e2e75a3e3e60696d825f494e49d587abc3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"dd3d6d8e13a01fdb449dadbb5daa79141ae74217","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"e2aff3f44b41a2365f9c561410c2d8733e93943d",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"4f3b61256e93001cbf6cf8e0eea61e73265abd65",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"64e9997f3163465cc99eae8600e7b13251ffe484",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninStyle0}},[0,"nl-signin",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$d(){typeof customElements>"u"||["nl-signin","button-base"].forEach(o=>{switch(o){case"nl-signin":customElements.get(o)||customElements.define(o,NlSignin);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$d();const nlSigninBunkerUrlCss=baseCss,NlSigninBunkerUrlStyle0=nlSigninBunkerUrlCss,NlSigninBunkerUrl=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLogin=createEvent(this,"nlLogin",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Connect with bunker url",this.description="Please enter a bunker url provided by key store.",this.isGood=!1}handleInputChange(o){state.nlSigninBunkerUrl.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLogin.emit(state.nlSigninBunkerUrl.loginName)}render(){return h(Fragment,{key:"0ac12fea476faa724c8fa9ba34bebbd58c0b324d"},h("div",{key:"94fc0ef392c7d6abedc1bba2c833ff3e734fde23",class:"p-4 overflow-y-auto"},h("h1",{key:"c8426115b8d12e24e349813302360dc37ae935ca",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"804a1e0b2329e78f80470da090cb06fd3165116f",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"3dad7e0005f66ad81c616983921455bf77b95c31",class:"max-w-72 mx-auto"},h("div",{key:"3e2f1825061c8f65c300676624d244240abb9590",class:"relative mb-2"},h("input",{key:"048e82df548ed4018684b92a93cd20c6ea60af95",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"bunker://...",value:state.nlSigninBunkerUrl.loginName}),h("div",{key:"29afff805cfc2d5e135ece3d5d791e6a1506294b",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"3ca9eb00e319357c690fa7d0027dba1e61d7fb83",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"2914d12af813da649534f1aca80f3b80d1e53193","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})))),h("div",{key:"83617653feed00b5d45b4d8318369a16185ca690",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"3548cd177582a91b8c4b383311f04fd4b8b2002e",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"8ae258e580cae2a08955ff02b4d21601a3be3aee",titleBtn:"Connect",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"})))))}static get style(){return NlSigninBunkerUrlStyle0}},[0,"nl-signin-bunker-url",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$c(){typeof customElements>"u"||["nl-signin-bunker-url","button-base"].forEach(o=>{switch(o){case"nl-signin-bunker-url":customElements.get(o)||customElements.define(o,NlSigninBunkerUrl);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$c();var browser$1={},canPromise$1=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},qrcode={},utils$1$1={};let toSJISFunction;const CODEWORDS_COUNT=[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];utils$1$1.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return 4*o+17},utils$1$1.getSymbolTotalCodewords=function(o){return CODEWORDS_COUNT[o]},utils$1$1.getBCHDigit=function(o){let s=0;for(;0!==o;)s++,o>>>=1;return s},utils$1$1.setToSJISFunction=function(o){if("function"!=typeof o)throw new Error('"toSJISFunc" is not a valid function.');toSJISFunction=o},utils$1$1.isKanjiModeEnabled=function(){return void 0!==toSJISFunction},utils$1$1.toSJIS=function(o){return toSJISFunction(o)};var errorCorrectionLevel={},exports;function BitBuffer$1(){this.buffer=[],this.length=0}exports=errorCorrectionLevel,exports.L={bit:1},exports.M={bit:0},exports.Q={bit:3},exports.H={bit:2},exports.isValid=function(o){return o&&void 0!==o.bit&&o.bit>=0&&o.bit<4},exports.from=function(o,s){if(exports.isValid(o))return o;try{return function(n){if("string"!=typeof n)throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return exports.L;case"m":case"medium":return exports.M;case"q":case"quartile":return exports.Q;case"h":case"high":return exports.H;default:throw new Error("Unknown EC Level: "+n)}}(o)}catch{return s}},BitBuffer$1.prototype={get:function(o){const s=Math.floor(o/8);return 1==(this.buffer[s]>>>7-o%8&1)},put:function(o,s){for(let n=0;n>>s-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(o){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),o&&(this.buffer[s]|=128>>>this.length%8),this.length++}};var bitBuffer=BitBuffer$1;function BitMatrix$1(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}BitMatrix$1.prototype.set=function(o,s,n,i){const a=o*this.size+s;this.data[a]=n,i&&(this.reservedBit[a]=!0)},BitMatrix$1.prototype.get=function(o,s){return this.data[o*this.size+s]},BitMatrix$1.prototype.xor=function(o,s,n){this.data[o*this.size+s]^=n},BitMatrix$1.prototype.isReserved=function(o,s){return this.reservedBit[o*this.size+s]};var bitMatrix=BitMatrix$1,alignmentPattern={};!function(o){const s=utils$1$1.getSymbolSize;o.getRowColCoords=function(n){if(1===n)return[];const i=Math.floor(n/7)+2,a=s(n),c=145===a?26:2*Math.ceil((a-13)/(2*i-2)),y=[a-7];for(let w=1;w=0&&y<=7},o.from=function(y){return o.isValid(y)?parseInt(y,10):void 0},o.getPenaltyN1=function(y){const w=y.size;let C=0,T=0,S=0,M=null,k=null;for(let R=0;R=5&&(C+=T-5+3),M=Z,T=1),Z=y.get(X,R),Z===k?S++:(S>=5&&(C+=S-5+3),k=Z,S=1)}T>=5&&(C+=T-5+3),S>=5&&(C+=S-5+3)}return C},o.getPenaltyN2=function(y){const w=y.size;let C=0;for(let T=0;T=10&&(1488===T||93===T)&&C++,S=S<<1&2047|y.get(k,M),k>=10&&(1488===S||93===S)&&C++}return 40*C},o.getPenaltyN4=function(y){let w=0;const C=y.data.length;for(let T=0;T=0;){const c=a[0];for(let w=0;w0){const a=new Uint8Array(this.degree);return a.set(n,i),a}return n};var reedSolomonEncoder=ReedSolomonEncoder$1,version={},mode={},versionCheck={isValid:function(o){return!isNaN(o)&&o>=1&&o<=40}},regex$1={};const numeric="[0-9]+",alphanumeric="[A-Z $%*+\\-./:]+";let kanji="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";kanji=kanji.replace(/u/g,"\\u");const byte="(?:(?![A-Z0-9 $%*+\\-./:]|"+kanji+")(?:.|[\r\n]))+";regex$1.KANJI=new RegExp(kanji,"g"),regex$1.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),regex$1.BYTE=new RegExp(byte,"g"),regex$1.NUMERIC=new RegExp(numeric,"g"),regex$1.ALPHANUMERIC=new RegExp(alphanumeric,"g");const TEST_KANJI=new RegExp("^"+kanji+"$"),TEST_NUMERIC=new RegExp("^"+numeric+"$"),TEST_ALPHANUMERIC=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");regex$1.testKanji=function(o){return TEST_KANJI.test(o)},regex$1.testNumeric=function(o){return TEST_NUMERIC.test(o)},regex$1.testAlphanumeric=function(o){return TEST_ALPHANUMERIC.test(o)},function(o){const s=versionCheck,n=regex$1;o.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(i,a){if(!i.ccBits)throw new Error("Invalid mode: "+i);if(!s.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?i.ccBits[0]:a<27?i.ccBits[1]:i.ccBits[2]},o.getBestModeForData=function(i){return n.testNumeric(i)?o.NUMERIC:n.testAlphanumeric(i)?o.ALPHANUMERIC:n.testKanji(i)?o.KANJI:o.BYTE},o.toString=function(i){if(i&&i.id)return i.id;throw new Error("Invalid mode")},o.isValid=function(i){return i&&i.bit&&i.ccBits},o.from=function(i,a){if(o.isValid(i))return i;try{return function(c){if("string"!=typeof c)throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+c)}}(i)}catch{return a}}}(mode),function(o){const s=utils$1$1,n=errorCorrectionCode,i=errorCorrectionLevel,a=mode,c=versionCheck,y=s.getBCHDigit(7973);function w(T,S){return a.getCharCountIndicator(T,S)+4}function C(T,S){let M=0;return T.forEach(function(k){const R=w(k.mode,S);M+=R+k.getBitsLength()}),M}o.from=function(T,S){return c.isValid(T)?parseInt(T,10):S},o.getCapacity=function(T,S,M){if(!c.isValid(T))throw new Error("Invalid QR Code version");void 0===M&&(M=a.BYTE);const k=8*(s.getSymbolTotalCodewords(T)-n.getTotalCodewordsCount(T,S));if(M===a.MIXED)return k;const R=k-w(M,T);switch(M){case a.NUMERIC:return Math.floor(R/10*3);case a.ALPHANUMERIC:return Math.floor(R/11*2);case a.KANJI:return Math.floor(R/13);default:return Math.floor(R/8)}},o.getBestVersionForData=function(T,S){let M;const k=i.from(S,i.M);if(Array.isArray(T)){if(T.length>1)return function(R,X){for(let Z=1;Z<=40;Z++)if(C(R,Z)<=o.getCapacity(Z,X,a.MIXED))return Z}(T,k);if(0===T.length)return 1;M=T[0]}else M=T;return function(R,X,Z){for(let re=1;re<=40;re++)if(X<=o.getCapacity(re,Z,R))return re}(M.mode,M.getLength(),k)},o.getEncodedBits=function(T){if(!c.isValid(T)||T<7)throw new Error("Invalid QR Code version");let S=T<<12;for(;s.getBCHDigit(S)-y>=0;)S^=7973<=0;)i^=G15<0&&(n=this.data.substr(s),i=parseInt(n,10),o.put(i,3*a+1))};var numericData=NumericData;const Mode$3=mode,ALPHA_NUM_CHARS=["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 AlphanumericData(o){this.mode=Mode$3.ALPHANUMERIC,this.data=o}AlphanumericData.getBitsLength=function(o){return 11*Math.floor(o/2)+o%2*6},AlphanumericData.prototype.getLength=function(){return this.data.length},AlphanumericData.prototype.getBitsLength=function(){return AlphanumericData.getBitsLength(this.data.length)},AlphanumericData.prototype.write=function(o){let s;for(s=0;s+2<=this.data.length;s+=2){let n=45*ALPHA_NUM_CHARS.indexOf(this.data[s]);n+=ALPHA_NUM_CHARS.indexOf(this.data[s+1]),o.put(n,11)}this.data.length%2&&o.put(ALPHA_NUM_CHARS.indexOf(this.data[s]),6)};var alphanumericData=AlphanumericData;const Mode$2=mode;function ByteData(o){this.mode=Mode$2.BYTE,this.data="string"==typeof o?(new TextEncoder).encode(o):new Uint8Array(o)}ByteData.getBitsLength=function(o){return 8*o},ByteData.prototype.getLength=function(){return this.data.length},ByteData.prototype.getBitsLength=function(){return ByteData.getBitsLength(this.data.length)},ByteData.prototype.write=function(o){for(let s=0,n=this.data.length;s=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[s]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),o.put(n,13)}};var kanjiData=KanjiData,dijkstra={exports:{}};(function(o){var s={single_source_shortest_paths:function(n,i,a){var c={},y={};y[i]=0;var w,C,T,S,M,k,X=s.PriorityQueue.make();for(X.push(i,0);!X.empty();)for(T in C=(w=X.pop()).value,S=w.cost,M=n[C]||{})M.hasOwnProperty(T)&&(k=S+M[T],(void 0===y[T]||y[T]>k)&&(y[T]=k,X.push(T,k),c[T]=C));if(void 0!==a&&void 0===y[a]){var Z=["Could not find a path from ",i," to ",a,"."].join("");throw new Error(Z)}return c},extract_shortest_path_from_predecessor_list:function(n,i){for(var a=[],c=i;c;)a.push(c),c=n[c];return a.reverse(),a},find_path:function(n,i,a){var c=s.single_source_shortest_paths(n,i,a);return s.extract_shortest_path_from_predecessor_list(c,a)},PriorityQueue:{make:function(n){var i,a=s.PriorityQueue,c={};for(i in n=n||{},a)a.hasOwnProperty(i)&&(c[i]=a[i]);return c.queue=[],c.sorter=n.sorter||a.default_sorter,c},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){this.queue.push({value:n,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};o.exports=s})(dijkstra),function(o){const s=mode,n=numericData,i=alphanumericData,a=byteData,c=kanjiData,y=regex$1,w=utils$1$1,C=dijkstra.exports;function T(X){return unescape(encodeURIComponent(X)).length}function S(X,Z,re){const _e=[];let pe;for(;null!==(pe=X.exec(re));)_e.push({data:pe[0],index:pe.index,mode:Z,length:pe[0].length});return _e}function M(X){const Z=S(y.NUMERIC,s.NUMERIC,X),re=S(y.ALPHANUMERIC,s.ALPHANUMERIC,X);let _e,pe;return w.isKanjiModeEnabled()?(_e=S(y.BYTE,s.BYTE,X),pe=S(y.KANJI,s.KANJI,X)):(_e=S(y.BYTE_KANJI,s.BYTE,X),pe=[]),Z.concat(re,_e,pe).sort(function(de,De){return de.index-De.index}).map(function(de){return{data:de.data,mode:de.mode,length:de.length}})}function k(X,Z){switch(Z){case s.NUMERIC:return n.getBitsLength(X);case s.ALPHANUMERIC:return i.getBitsLength(X);case s.KANJI:return c.getBitsLength(X);case s.BYTE:return a.getBitsLength(X)}}function R(X,Z){let re;const _e=s.getBestModeForData(X);if(re=s.from(Z,_e),re!==s.BYTE&&re.bit<_e.bit)throw new Error('"'+X+'" cannot be encoded with mode '+s.toString(re)+".\n Suggested mode is: "+s.toString(_e));switch(re!==s.KANJI||w.isKanjiModeEnabled()||(re=s.BYTE),re){case s.NUMERIC:return new n(X);case s.ALPHANUMERIC:return new i(X);case s.KANJI:return new c(X);case s.BYTE:return new a(X)}}o.fromArray=function(X){return X.reduce(function(Z,re){return"string"==typeof re?Z.push(R(re,null)):re.data&&Z.push(R(re.data,re.mode)),Z},[])},o.fromString=function(X,Z){const _e=function(De,Ee){const Le={},Ae={start:{}};let we=["start"];for(let le=0;le=0?Ee[Ee.length-1]:null;return Ae&&Ae.mode===Le.mode?(Ee[Ee.length-1].data+=Le.data,Ee):(Ee.push(Le),Ee)},[]))},o.rawSplit=function(X){return o.fromArray(M(X,w.isKanjiModeEnabled()))}}(segments);const Utils$1=utils$1$1,ECLevel=errorCorrectionLevel,BitBuffer=bitBuffer,BitMatrix=bitMatrix,AlignmentPattern=alignmentPattern,FinderPattern=finderPattern,MaskPattern=maskPattern,ECCode=errorCorrectionCode,ReedSolomonEncoder=reedSolomonEncoder,Version=version,FormatInfo=formatInfo,Mode=mode,Segments=segments;function setupFinderPattern(o,s){const n=o.size,i=FinderPattern.getPositions(s);for(let a=0;a=0&&w<=6&&(0===C||6===C)||C>=0&&C<=6&&(0===w||6===w)||w>=2&&w<=4&&C>=2&&C<=4,!0)}}function setupTimingPattern(o){const s=o.size;for(let n=8;n>w&1),o.set(a,c,y,!0),o.set(c,a,y,!0)}function setupFormatInfo(o,s,n){const i=o.size,a=FormatInfo.getEncodedBits(s,n);let c,y;for(c=0;c<15;c++)y=1==(a>>c&1),o.set(c<6?c:c<8?c+1:i-15+c,8,y,!0),o.set(8,c<8?i-c-1:c<9?15-c-1+1:15-c-1,y,!0);o.set(i-8,8,1,!0)}function setupData(o,s){const n=o.size;let i=-1,a=n-1,c=7,y=0;for(let w=n-1;w>0;w-=2)for(6===w&&w--;;){for(let C=0;C<2;C++)if(!o.isReserved(a,w-C)){let T=!1;y>>c&1)),o.set(a,w-C,T),c--,-1===c&&(y++,c=7)}if(a+=i,a<0||n<=a){a-=i,i=-i;break}}}function createData(o,s,n){const i=new BitBuffer;n.forEach(function(y){i.put(y.mode.bit,4),i.put(y.getLength(),Mode.getCharCountIndicator(y.mode,o)),y.write(i)});const a=8*(Utils$1.getSymbolTotalCodewords(o)-ECCode.getTotalCodewordsCount(o,s));for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(a-i.getLengthInBits())/8;for(let y=0;y=7&&setupVersionInfo(C,s),setupData(C,y),isNaN(i)&&(i=MaskPattern.getBestMask(C,setupFormatInfo.bind(null,C,n))),MaskPattern.applyMask(i,C),setupFormatInfo(C,n,i),{modules:C,version:s,errorCorrectionLevel:n,maskPattern:i,segments:a}}qrcode.create=function(o,s){if(void 0===o||""===o)throw new Error("No input text");let n,i,a=ECLevel.M;return void 0!==s&&(a=ECLevel.from(s.errorCorrectionLevel,ECLevel.M),n=Version.from(s.version),i=MaskPattern.from(s.maskPattern),s.toSJISFunc&&Utils$1.setToSJISFunction(s.toSJISFunc)),createSymbol(o,n,a,i)};var canvas={},utils$3={};(function(o){function s(n){if("number"==typeof n&&(n=n.toString()),"string"!=typeof n)throw new Error("Color should be defined as hex string");let i=n.slice().replace("#","").split("");if(i.length<3||5===i.length||i.length>8)throw new Error("Invalid hex color: "+n);3!==i.length&&4!==i.length||(i=Array.prototype.concat.apply([],i.map(function(c){return[c,c]}))),6===i.length&&i.push("F","F");const a=parseInt(i.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:255&a,hex:"#"+i.slice(0,6).join("")}}o.getOptions=function(n){n||(n={}),n.color||(n.color={});const a=n.width&&n.width>=21?n.width:void 0;return{width:a,scale:a?4:n.scale||4,margin:null==n.margin||n.margin<0?4:n.margin,color:{dark:s(n.color.dark||"#000000ff"),light:s(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},o.getScale=function(n,i){return i.width&&i.width>=n+2*i.margin?i.width/(n+2*i.margin):i.scale},o.getImageWidth=function(n,i){const a=o.getScale(n,i);return Math.floor((n+2*i.margin)*a)},o.qrToImageData=function(n,i,a){const c=i.modules.size,y=i.modules.data,w=o.getScale(c,a),C=Math.floor((c+2*a.margin)*w),T=a.margin*w,S=[a.color.light,a.color.dark];for(let M=0;M=T&&k>=T&&M0&&C>0&&o[w-1]||(i+=c?svgCmd("M",C+n,.5+T+n):svgCmd("m",a,0),a=0,c=!1),C+1':"",C="',S=''+w+C+"\n";return"function"==typeof n&&n(null,S),S};const canPromise=canPromise$1,QRCode=qrcode,CanvasRenderer=canvas,SvgRenderer=svgTag;function renderCanvas(o,s,n,i,a){const c=[].slice.call(arguments,1),y=c.length,w="function"==typeof c[y-1];if(!w&&!canPromise())throw new Error("Callback required as last argument");if(!w){if(y<1)throw new Error("Too few arguments provided");return 1===y?(n=s,s=i=void 0):2!==y||s.getContext||(i=n,n=s,s=void 0),new Promise(function(C,T){try{const S=QRCode.create(n,i);C(o(S,s,i))}catch(S){T(S)}})}if(y<2)throw new Error("Too few arguments provided");2===y?(a=n,n=s,s=i=void 0):3===y&&(s.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=s,s=void 0));try{const C=QRCode.create(n,i);a(null,o(C,s,i))}catch(C){a(C)}}browser$1.create=QRCode.create,browser$1.toCanvas=renderCanvas.bind(null,CanvasRenderer.render),browser$1.toDataURL=renderCanvas.bind(null,CanvasRenderer.renderToDataURL),browser$1.toString=renderCanvas.bind(null,function(o,s,n){return SvgRenderer.render(o,n)});const nlSigninConnectionStringCss=baseCss,NlSigninConnectionStringStyle0=nlSigninConnectionStringCss,NlSigninConnectionString=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleLogin="Connection string",this.description="Scan or copy the connection string with key store app",this.connectionString="",this.isCopy=!1}componentDidLoad(){this.generateQRCode()}generateQRCode(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.connectionString&&o.canvasElement)try{yield browser$1.toCanvas(o.canvasElement,o.connectionString)}catch(s){console.error("Error generating QR Code:",s)}})()}copyToClipboard(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(o.connectionString),o.isCopy=!0,setTimeout(()=>{o.isCopy=!1},1500)}catch(s){console.error("Failed to copy connectionString: ",s)}})()}render(){return h(Fragment,{key:"4dfdad6e2e948203e0dfe7aa8608d95cd3495c41"},h("div",{key:"852159a0231473f13c6452e307b90f02e7efd445",class:"p-4 overflow-y-auto"},h("h1",{key:"07859d4b83c5fb6ac12732f1708db3ba3b700380",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"200d00f3785f4a684c798225f0061d9ef4ed2fa1",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("canvas",{key:"e27335a378a7853fd73cdf0b701a9922f9e87a98",class:"mx-auto mb-2",ref:o=>this.canvasElement=o}),h("div",{key:"5e93edcf3b13f1d02b6feca2a192ef275891032a",class:"px-4"},h("div",{key:"96643d192fc3e3c652027fc7b9da2c8186205b1f",class:"max-w-72 mx-auto"},h("div",{key:"24faf8ea390198fc185f94d77d0ac3faa3c03e9f",class:"relative mb-2"},h("input",{key:"45f531795476a136897925509955fa9fdaf66503",type:"text",class:"nl-input peer py-3 px-4 pe-11 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:this.connectionString,disabled:!0}),h("div",{key:"3f3bb777777890fb68152c94d16cd83abde57cac",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"c99e6d36b5f3e85a03b2922a3984803601ce4747",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"1d72c6d727215e897c88b923f1eb65a83bc9eda9","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"5c40e5fd22377e528bdc3fe77db8975dfe015286","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.isCopy?h("div",{class:"absolute inset-y-0 end-0 flex items-center p-2 rounded-lg"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#00cc00",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))):h("div",{class:"absolute inset-y-0 end-0 flex items-center cursor-pointer p-2 rounded-lg",onClick:()=>this.copyToClipboard()},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"})))),h("div",{key:"26403008de1debe9660fbacda25b6c5eb1ce81c8",class:"mt-10 justify-center items-center flex gap-2"},h("span",{key:"2cc09432eb515db009f4ca5909b8ba943c90bbd6",slot:"icon-start",class:"animate-spin-loading inline-block w-[20px] h-[20px] border-[2px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),h("span",{key:"b2d8a70b65950ec00d9544c4ba50a51bffc48335",class:"nl-footer"},"Waiting for connection")))))}static get style(){return NlSigninConnectionStringStyle0}},[0,"nl-signin-connection-string",{titleLogin:[1,"title-login"],description:[1],connectionString:[1,"connection-string"],isCopy:[32]}]);function defineCustomElement$b(){typeof customElements>"u"||["nl-signin-connection-string"].forEach(o=>{"nl-signin-connection-string"===o&&(customElements.get(o)||customElements.define(o,NlSigninConnectionString))})}defineCustomElement$b();const nlSigninOtpCss=baseCss,NlSigninOtpStyle0=nlSigninOtpCss,NlSigninOtp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginOTPUser=createEvent(this,"nlLoginOTPUser",7),this.nlLoginOTPCode=createEvent(this,"nlLoginOTPCode",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in with DM",this.description="Please enter your user name or npub, and we will send you a direct message with a one-time code.",this.titleLoginOTP="Enter the code",this.descriptionOTP="Please enter the one-time code we sent to you as a direct message on Nostr.",this.isGood=!1}handleInputChange(o){state.isOTP?state.nlSigninOTP.code=o.target.value:(state.nlSigninOTP.loginName=o.target.value,this.nlCheckLogin.emit(state.nlSigninOTP.loginName))}handleLogin(o){o.preventDefault(),state.isOTP?this.nlLoginOTPCode.emit(state.nlSigninOTP.code):this.nlLoginOTPUser.emit(state.nlSigninOTP.loginName)}render(){return h(Fragment,{key:"a93b9af1f6a2a881d75e9aa1e547a63678ad4dc5"},h("div",{key:"ae6c700a09e753e0148b5ddfd27f20c2a0850d3d",class:"p-4 overflow-y-auto"},h("h1",{key:"e0998107834bf9e90b6372580ccb31bb0d726904",class:"nl-title font-bold text-center text-2xl"},state.isOTP?this.titleLoginOTP:this.titleLogin),h("p",{key:"29e894bbfcdfb326ae807055c57fbb32b1b4bfa9",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},state.isOTP?this.descriptionOTP:this.description)),h("div",{key:"911cee576416be96c64d38fc362cdb656293e198",class:"max-w-72 mx-auto"},h("div",{key:"f72d607dd7beb554c248c7c4128de6d33a8f246f",class:"relative mb-2"},h("input",{key:"24e6a78d257e84d4f5c71b4aee31c453a504cd93",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:state.isOTP?"code from direct message":"npub or name@domain",value:state.isOTP?state.nlSigninOTP.code:state.nlSigninOTP.loginName}),h("div",{key:"438171f72c2c64d1754a2d5fda95a7b5d3816894",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"b31663307181bb1d58884a3ecce192728b164b70",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"8b80421658eea7b0b49708c994a9d94b965895f1","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6d184bdf20d124a312e1817e27111de1fd0b8eb1","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"ab8948cbd67e068fc2f113fcc5e61137d799e636",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"719399b9f40ae23ba11ae22e4223314c815c821f",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"b2ce8bbaceeddc82ea079dba280dc04600d7f725",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"7764fb6ecf8452c06047dc7832e274ebccdd6379",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninOtpStyle0}},[0,"nl-signin-otp",{titleLogin:[1,"title-login"],description:[1],titleLoginOTP:[1,"title-login-o-t-p"],descriptionOTP:[1,"description-o-t-p"],isGood:[32]}]);function defineCustomElement$a(){typeof customElements>"u"||["nl-signin-otp","button-base"].forEach(o=>{switch(o){case"nl-signin-otp":customElements.get(o)||customElements.define(o,NlSigninOtp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$a();const nlSigninReadOnlyCss=baseCss,NlSigninReadOnlyStyle0=nlSigninReadOnlyCss,NlSigninReadOnly=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginReadOnly=createEvent(this,"nlLoginReadOnly",7),this.nlCheckLogin=createEvent(this,"nlCheckLogin",7),this.titleLogin="Log in to read only",this.description="Please enter the user name or npub of any Nostr user.",this.isGood=!1}handleInputChange(o){state.nlSigninReadOnly.loginName=o.target.value,this.nlCheckLogin.emit(o.target.value)}handleLogin(o){o.preventDefault(),this.nlLoginReadOnly.emit(state.nlSigninReadOnly.loginName)}render(){return h(Fragment,{key:"5ff970ee20c505cab00b3c9263dd9a6ebd6b62a8"},h("div",{key:"036a6b49de93c20ed4af3c47c7ecc10c81818f86",class:"p-4 overflow-y-auto"},h("h1",{key:"97951254c835d38f95832882225fdc2b50bf578a",class:"nl-title font-bold text-center text-2xl"},this.titleLogin),h("p",{key:"e811a52ee24540b018f95ebffd1406330005a5f2",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"ae07b4fbe663e17733b6bd1efaa1c974276c8fd6",class:"max-w-72 mx-auto"},h("div",{key:"0a935603a2742e049bd5b2ca3c1b13f07d63ac2b",class:"relative mb-2"},h("input",{key:"1221b6501de2c739fc1470f82142b623afe4749b",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"npub or name@domain",value:state.nlSigninReadOnly.loginName}),h("div",{key:"820f77d6c814aea1794463b6216df338c6f0863d",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"9922ba1b7b536ddc8d560d76087fd735e1aa000c",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:this.isGood?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"250dae1273e5346920bb6d5cad3644c678a9eae8","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"e94192cf4f271cf3477ebe2f186597a5c5a7b474","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})))),h("div",{key:"8d548af75b9c39dfe0bf2eeae805e58d2cb324c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"7cc88f5116a24e1b309e320c63c34f5cc8c5b656",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"156e8a30228a8d34009c5cb020588c82f039eac5",titleBtn:"Log in",disabled:state.isLoading,onClick:o=>this.handleLogin(o)},state.isLoading&&h("span",{key:"14082758440bf5ec897629c92faf949f80895be8",slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}))))}static get style(){return NlSigninReadOnlyStyle0}},[0,"nl-signin-read-only",{titleLogin:[1,"title-login"],description:[1],isGood:[32]}]);function defineCustomElement$9(){typeof customElements>"u"||["nl-signin-read-only","button-base"].forEach(o=>{switch(o){case"nl-signin-read-only":customElements.get(o)||customElements.define(o,NlSigninReadOnly);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$9();const nlSignupCss=baseCss,NlSignupStyle0=nlSignupCss,NlSignup=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlSignup=createEvent(this,"nlSignup",7),this.nlCheckSignup=createEvent(this,"nlCheckSignup",7),this.fetchHandler=createEvent(this,"fetchHandler",7),this.titleSignup="Create keys with key store",this.description="Choose some username and a key store service.",this.bunkers="nsec.app,highlighter.com",this.isAvailable=!1}formatServers(o){return o.split(",").map(s=>({name:"@"+s,value:s}))}handleInputChange(o){state.nlSignup.signupName=o.target.value,this.nlCheckSignup.emit(`${o.target.value}@${state.nlSignup.domain}`)}handleDomainSelect(o){state.nlSignup.domain=o.detail,this.nlCheckSignup.emit(`${state.nlSignup.signupName}@${o.detail}`)}handleCreateAccount(o){o.preventDefault(),this.nlSignup.emit(`${state.nlSignup.signupName}@${state.nlSignup.domain}`)}watchBunkersHandler(o){state.nlSignup.servers=this.formatServers(o)}componentWillLoad(){state.nlSignup.servers=this.formatServers(this.bunkers)}render(){return h(Fragment,{key:"f7b56fee1ec9c6dd3632bed5d46c661b090a32cd"},h("div",{key:"a7fd1b6249688b0974a0c56a0573f36eb1f1d7a4",class:"p-4 overflow-y-auto"},h("h1",{key:"01d5a745026ea0a293fd248880f00d335355f5bf",class:"nl-title font-bold text-center text-2xl"},this.titleSignup),h("p",{key:"1fe9362df4c08bee7966a3d7f06aca0c8c9f9e38",class:"nl-description font-light text-center text-sm pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"15eadc1d7189a9a99efad1c42a430fb316d3ae1a",class:"max-w-72 mx-auto"},h("div",{key:"011c9eb5d2d16cd6b784f0d879fd4f504c522905",class:"relative mb-2"},h("input",{key:"123e130805b229fe68c64765c434a36840cc137e",onInput:o=>this.handleInputChange(o),type:"text",class:"nl-input peer py-3 px-4 ps-11 block w-full border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent",placeholder:"Name",value:state.nlSignup.signupName}),h("div",{key:"ee00cfd158acb362567e909a6f90d2651a4acd05",class:"absolute inset-y-0 start-0 flex items-center pointer-events-none ps-4 peer-disabled:opacity-50 peer-disabled:pointer-events-none"},h("svg",{key:"bc8a81c9a62cb215efb0cdff30980ee447371ec5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:this.isAvailable?"#00cc00":"currentColor",class:"flex-shrink-0 w-4 h-4 text-gray-500"},h("path",{key:"fb78fc743ec535bb92d30e2b43927d499f6299ca","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"})))),h("div",{key:"f541cd6ed4d04a52afb093053c6fea85d0926ce1",class:"mb-2"},h("nl-select",{key:"dbce850d0c1d2e1cfdf4ce250978ce508abc173a",onSelectDomain:o=>this.handleDomainSelect(o),selected:0,options:state.nlSignup.servers})),h("div",{key:"a68612eabd83e3f7e61b533fd247f1768554b0c1",class:"ps-4 pe-4 overflow-y-auto"},h("p",{key:"25c8a89289071d5fca16b5e8918026c41afb3a77",class:"nl-error font-light text-center text-sm max-w-96 mx-auto"},state.error)),h("button-base",{key:"6cbf8ff97e9ebf1bd830e86337219ee386f978ea",disabled:state.isLoading,onClick:o=>this.handleCreateAccount(o),titleBtn:"Create profile"},state.isLoading?h("span",{slot:"icon-start",class:"animate-spin-loading inline-block w-4 h-4 border-[3px] border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}):h("svg",{slot:"icon-start",style:{display:"none"},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get watchers(){return{bunkers:["watchBunkersHandler"]}}static get style(){return NlSignupStyle0}},[0,"nl-signup",{titleSignup:[1,"title-signup"],description:[1],bunkers:[1],isAvailable:[32]},void 0,{bunkers:["watchBunkersHandler"]}]);function defineCustomElement$8(){typeof customElements>"u"||["nl-signup","button-base","nl-select"].forEach(o=>{switch(o){case"nl-signup":customElements.get(o)||customElements.define(o,NlSignup);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-select":customElements.get(o)||defineCustomElement$m()}})}defineCustomElement$8();const nlWelcomeCss=baseCss,NlWelcomeStyle0=nlWelcomeCss,NlWelcome=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Welcome to Nostr!",this.description="This website is part of the Nostr network. Log in with your Nostr profile or sign up to join."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"d3fb00029cb12cc8b00f26eaed6bd76e90402363"},h("div",{key:"e41a79654adb620ee433848c965fd872cdfcc58c",class:"p-4 overflow-y-auto"},h("h1",{key:"28e5c6ec6a4e4982a386daff93446db4efcd0737",class:"nl-title font-bold text-center text-4xl"},this.titleWelcome),h("p",{key:"d0afbc9587aafe4d93c547b34f5f55c268b42e48",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"d5570f014a56f326348b8077429c198b55b66683",class:"max-w-52 mx-auto pb-5"},h("div",{key:"3f4095a715c960544264eae1dc809c3bc68de2a8",class:"flex gap-3 flex-col mb-2"},h("button-base",{key:"a154d028e883fb9d9ea1823a5df0d2500bfdb726",titleBtn:"Log in",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_LOGIN)},h("svg",{key:"2b256c1a23f88a3232e59fa3d56c344eae398690",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"bf629d871a100f59c2b465d50f58081290b4300a","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"})))),h("button-base",{key:"6fdf8ff44483ec67cff96015ebc7d1832a676fa3",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.WELCOME_SIGNUP),titleBtn:"Sign up"},h("svg",{key:"6714790ee5ccb91a6bda3424e515ea273f2163f9",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"e31e8d7667a33a8713387f8eb73252a4016b5de4","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))}static get style(){return NlWelcomeStyle0}},[0,"nl-welcome",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$7(){typeof customElements>"u"||["nl-welcome","button-base"].forEach(o=>{switch(o){case"nl-welcome":customElements.get(o)||customElements.define(o,NlWelcome);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$7();const nlWelcomeSigninCss=baseCss,NlWelcomeSigninStyle0=nlWelcomeSigninCss,NlWelcomeSignIn=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.nlLoginExtension=createEvent(this,"nlLoginExtension",7),this.titleWelcome="Log in",this.hasExtension=!1,this.authMethods=[],this.hasOTP=!1}handleChangeScreen(o){state.path=[...state.path,o],o===CURRENT_MODULE.EXTENSION&&this.nlLoginExtension.emit()}allowAuthMethod(o){return!this.authMethods.length||this.authMethods.includes(o)}renderSignInWithExtension(){return h("button-base",{onClick:()=>this.handleChangeScreen(CURRENT_MODULE.EXTENSION),titleBtn:"With extension"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})))}render(){return h(Fragment,{key:"49598c3d31f3a4c2fc9d3579283163c43f19b6c7"},h("div",{key:"6b3c16634c1dc4be65c425edb65f5070990fee91",class:"p-4 overflow-y-auto"},h("h1",{key:"1f60d1f489afaa42c47e28563fadc0fa7b46a3df",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome)),h("div",{key:"01507d2b6d0bba54527e12d664ddefd7244a9697",class:"max-w-52 mx-auto pb-5"},h("div",{key:"82deccfff688e1cbb67191c90a3ca6f22f285744",class:"flex gap-3 flex-col"},this.allowAuthMethod("connect")&&h("button-base",{key:"177bbcf244409242ab1c7c03cfb60300e848fed2",titleBtn:"Connect",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.CONNECT)},h("svg",{key:"1fa2c695562eb093430389253dd7f94733d63976",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"16323646bde098c55c787cc90b66b4952c803542","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))),this.allowAuthMethod("readOnly")&&h("button-base",{key:"9b6d546d7f34ca197baa13ec0f280890ff0d8c7f",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_READ_ONLY),titleBtn:"Read only"},h("svg",{key:"2ab8c1763d88e7c5678cafc3c15817d60a7bb6c0",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"faa5a61e8d35daf7fbb64fc5783c23b8881d8100","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),h("path",{key:"6083db853e798c9764b11ed4701dab048d4f30f2","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),this.hasOTP&&this.allowAuthMethod("otp")&&h("button-base",{key:"f45b1afed2d9b10a2d77eaa59b1aa168eabb191d",titleBtn:"One-time code",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOGIN_OTP)},h("svg",{key:"84fbe5952fecd429f8074c65675d2111eb2d7fe8",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"83dc6eaa4e128065dfd7e97f0950cd00f0be6d54","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))),this.hasExtension&&this.allowAuthMethod("extension")&&this.renderSignInWithExtension(),!this.allowAuthMethod("connect")&&!this.hasExtension&&h("p",{key:"f94e3302a807855f45855302482542e6f79f8ec8",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"No Nostr extension!"),!this.allowAuthMethod("connect")&&this.hasExtension&&!this.allowAuthMethod("extension")&&h("p",{key:"552762dfd2b9d24c7279c1f500ccd94500e35be1",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},"Use advanced options."))))}static get style(){return NlWelcomeSigninStyle0}},[0,"nl-welcome-signin",{titleWelcome:[1,"title-welcome"],hasExtension:[4,"has-extension"],authMethods:[16],hasOTP:[4,"has-o-t-p"]}]);function defineCustomElement$6(){typeof customElements>"u"||["nl-welcome-signin","button-base"].forEach(o=>{switch(o){case"nl-welcome-signin":customElements.get(o)||customElements.define(o,NlWelcomeSignIn);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$6();const nlWelcomeSignupCss=baseCss,NlWelcomeSignupStyle0=nlWelcomeSignupCss,NlWelcomeSignUp=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.titleWelcome="Sign up",this.description="Nostr profiles are based on cryptographic keys. You can create keys right here, or with a key storage app."}handleChangeScreen(o){state.path=[...state.path,o]}render(){return h(Fragment,{key:"95a13ee24b5203b1f1fe9f355524abba9dc55dcb"},h("div",{key:"23209055b5ab42ed4e147f0d7e38ec320437f783",class:"p-4 overflow-y-auto"},h("h1",{key:"8f06a983aa9ca0caa01dd35d4907552696ffc996",class:"nl-title font-bold text-center text-3xl"},this.titleWelcome),h("p",{key:"14d88998c67951b047b79dd0d9358ae2b7a19895",class:"nl-description font-light text-center text-lg pt-2 max-w-96 mx-auto"},this.description)),h("div",{key:"62344241204e1c08e2d497b0bbc28b9aff3d7640",class:"max-w-52 mx-auto pb-5"},h("div",{key:"641c269ff23d94330acf465e62d294ce42b05212",class:"flex gap-3 flex-col"},h("button-base",{key:"aaa7f28f647f05506e93756df2895cef952b2912",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.LOCAL_SIGNUP),titleBtn:"Create keys"},h("svg",{key:"2e8c77cdd122a51638f9a2e606d9ff33581b84c7",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"b6d0e6199dcc11a7ac9f4ba47c86219e325fa987","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{key:"3c239d1df872ac71424478fd3f6857c5a9148ef6",onClick:()=>this.handleChangeScreen(CURRENT_MODULE.SIGNUP),titleBtn:"With key store"},h("svg",{key:"4600c4e8bb4e62d9a0303ae1abc464c6d6fc7899",style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},h("path",{key:"c36bef296a15f3bb43c984ed083a8defeb530ab4","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"}))))))}static get style(){return NlWelcomeSignupStyle0}},[0,"nl-welcome-signup",{titleWelcome:[1,"title-welcome"],description:[1]}]);function defineCustomElement$5(){typeof customElements>"u"||["nl-welcome-signup","button-base"].forEach(o=>{switch(o){case"nl-welcome-signup":customElements.get(o)||customElements.define(o,NlWelcomeSignUp);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$5();const nlAuthCss=baseCss,NlAuthStyle0=nlAuthCss,NlAuth=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.nlCloseModal=createEvent(this,"nlCloseModal",7),this.nlChangeDarkMode=createEvent(this,"nlChangeDarkMode",7),this.theme="default",this.bunkers="",this.startScreen=CURRENT_MODULE.WELCOME,this.authMethods=[],this.hasExtension=!1,this.hasOTP=!1,this.isLoading=!1,this.isLoadingExtension=!1,this.isOTP=!1,this.authUrl="",this.iframeUrl="",this.error="",this.localSignup=!1,this.accounts=[],this.recents=[],this.darkMode=!1,this.welcomeTitle="",this.welcomeDescription="",this.connectionString="",this.connectionStringServices=[]}watchLocalSignupHandler(o){state.localSignup=o}watchLoadingHandler(o){state.isLoading=o}watchLoadingExtensionHandler(o){state.isLoadingExtension=o}watchOTPHandler(o){state.isOTP=o}watchAuthUrlHandler(o){state.authUrl=o}watchIframeUrlHandler(o){state.iframeUrl=o}watchErrorHandler(o){state.error=o}handleClose(){this.nlCloseModal.emit()}handleChangeDarkMode(){this.nlChangeDarkMode.emit(!this.darkMode)}componentWillLoad(){state.path=[this.startScreen],state.localSignup=this.localSignup,state.error="",state.iframeUrl="",state.authUrl="",state.isLoading=!1,state.isLoadingExtension=!1,state.isOTP=!1,console.log("path",state.path)}handleClickToBack(){state.path.pop(),state.path=[...state.path],state.isLoading=!1,state.isLoadingExtension=!1,state.authUrl="",state.isOTP=!1}switchSignSignUpStrategy(o){state.path=CURRENT_MODULE.LOCAL_SIGNUP!==o?[CURRENT_MODULE.WELCOME,o]:[CURRENT_MODULE.WELCOME,CURRENT_MODULE.WELCOME_SIGNUP,o]}render(){const o="w-full h-full fixed top-0 start-0 z-[80] overflow-x-hidden overflow-y-auto flex items-center "+(this.darkMode?"dark":""),s=state.path.at(-1),n=state.isOTP||s!==CURRENT_MODULE.INFO&&s!==CURRENT_MODULE.CONFIRM_LOGOUT&&s!==CURRENT_MODULE.IMPORT_FLOW&&s!==CURRENT_MODULE.WELCOME&&s!==CURRENT_MODULE.EXTENSION&&s!==CURRENT_MODULE.IFRAME&&s!==CURRENT_MODULE.PREVIOUSLY_LOGGED,i=s!==CURRENT_MODULE.IFRAME&&(!this.authMethods.length||!this.localSignup&&this.authMethods.includes("connect")||this.localSignup&&this.authMethods.includes("local"));return h("div",{class:`theme-${this.theme}`},h("div",{class:o},h("div",{onClick:()=>this.handleClose(),class:"absolute top-0 left-0 w-full h-full bg-gray-500 bg-opacity-75 z-[80]"}),h("div",{class:"nl-bg relative z-[81] w-full flex flex-col rounded-xl sm:max-w-lg sm:w-full sm:mx-auto"},h("div",{class:"flex justify-between items-center py-3 px-4"},h("div",{class:"flex gap-2 items-center"},h("svg",{class:"w-7 h-7",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),h("p",{class:"font-bold nl-logo text-base"},"Nostr ",h("span",{class:"font-light"},"Login"))),h("div",{class:"flex gap-1"},h("button",{onClick:()=>this.handleChangeDarkMode(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Change theme"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",this.darkMode?{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))),!state.isLoading&&h("button",{onClick:()=>state.path=[...state.path,CURRENT_MODULE.INFO],type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Info"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))))),state.path.length>1&&!state.isLoading&&h("div",{class:"p-4"},h("button",{onClick:()=>this.handleClickToBack(),type:"button",class:"nl-action-button flex justify-center items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600","data-hs-overlay":"#hs-vertically-centered-modal"},h("span",{class:"sr-only"},"Back"),h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-5 h-5"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})))),state.isLoading||state.authUrl?h("nl-loading",{path:s}):h(Fragment,null,(()=>{if(state.isOTP)return h("nl-signin-otp",null);switch(s){case CURRENT_MODULE.WELCOME:return h("nl-welcome",{titleWelcome:this.welcomeTitle||void 0,description:this.welcomeDescription||void 0});case CURRENT_MODULE.LOGIN:return h("nl-signin",null);case CURRENT_MODULE.SIGNUP:return h("nl-signup",{bunkers:this.bunkers});case CURRENT_MODULE.LOCAL_SIGNUP:return h("nl-local-signup",null);case CURRENT_MODULE.CONFIRM_LOGOUT:return h("nl-confirm-logout",null);case CURRENT_MODULE.IMPORT_FLOW:return h("nl-import-flow",{services:this.connectionStringServices});case CURRENT_MODULE.IMPORT_OTP:return h("nl-otp-migrate",{services:this.connectionStringServices});case CURRENT_MODULE.INFO:return h("nl-info",null);case CURRENT_MODULE.EXTENSION:return h("nl-info-extension",null);case CURRENT_MODULE.LOGIN_READ_ONLY:return h("nl-signin-read-only",null);case CURRENT_MODULE.LOGIN_BUNKER_URL:return h("nl-signin-bunker-url",null);case CURRENT_MODULE.LOGIN_OTP:return h("nl-signin-otp",null);case CURRENT_MODULE.WELCOME_LOGIN:return h("nl-welcome-signin",{hasOTP:this.hasOTP,authMethods:this.authMethods,hasExtension:this.hasExtension});case CURRENT_MODULE.WELCOME_SIGNUP:return h("nl-welcome-signup",null);case CURRENT_MODULE.CONNECTION_STRING:return h("nl-signin-connection-string",{connectionString:this.connectionString});case CURRENT_MODULE.CONNECT:return h("nl-connect",{connectionStringServices:this.connectionStringServices,authMethods:this.authMethods});case CURRENT_MODULE.PREVIOUSLY_LOGGED:return h("nl-previously-logged",{accounts:this.accounts,recents:this.recents});case CURRENT_MODULE.IFRAME:return h("nl-iframe",{iframeUrl:this.authUrl});default:return h("nl-welcome",null)}})(),n&&h(Fragment,null,s===CURRENT_MODULE.WELCOME_SIGNUP||s===CURRENT_MODULE.SIGNUP||s===CURRENT_MODULE.LOCAL_SIGNUP?h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you already have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(CURRENT_MODULE.WELCOME_LOGIN),class:"cursor-pointer text-blue-400"},"log in"),".")):i&&h("div",{class:"p-4 overflow-y-auto"},h("p",{class:"nl-footer font-light text-center text-sm pt-3 max-w-96 mx-auto"},"If you don't have a profile please"," ",h("span",{onClick:()=>this.switchSignSignUpStrategy(this.localSignup?CURRENT_MODULE.LOCAL_SIGNUP:CURRENT_MODULE.WELCOME_SIGNUP),class:"cursor-pointer text-blue-400"},"sign up"),".")))))))}static get watchers(){return{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}}static get style(){return NlAuthStyle0}},[1,"nl-auth",{theme:[1025],bunkers:[1],startScreen:[1,"start-screen"],authMethods:[16],hasExtension:[4,"has-extension"],hasOTP:[4,"has-o-t-p"],isLoading:[4,"is-loading"],isLoadingExtension:[4,"is-loading-extension"],isOTP:[4,"is-o-t-p"],authUrl:[1,"auth-url"],iframeUrl:[1,"iframe-url"],error:[1],localSignup:[4,"local-signup"],accounts:[1040],recents:[1040],darkMode:[1028,"dark-mode"],welcomeTitle:[1,"welcome-title"],welcomeDescription:[1,"welcome-description"],connectionString:[1,"connection-string"],connectionStringServices:[16]},void 0,{localSignup:["watchLocalSignupHandler"],isLoading:["watchLoadingHandler"],isLoadingExtension:["watchLoadingExtensionHandler"],isOTP:["watchOTPHandler"],authUrl:["watchAuthUrlHandler"],iframeUrl:["watchIframeUrlHandler"],error:["watchErrorHandler"]}]);function defineCustomElement$4(){typeof customElements>"u"||["nl-auth","button-base","nl-confirm-logout","nl-connect","nl-iframe","nl-import-flow","nl-info","nl-info-extension","nl-loading","nl-local-signup","nl-login-status","nl-otp-migrate","nl-previously-logged","nl-select","nl-signin","nl-signin-bunker-url","nl-signin-connection-string","nl-signin-otp","nl-signin-read-only","nl-signup","nl-welcome","nl-welcome-signin","nl-welcome-signup"].forEach(o=>{switch(o){case"nl-auth":customElements.get(o)||customElements.define(o,NlAuth);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-confirm-logout":customElements.get(o)||defineCustomElement$p();break;case"nl-connect":customElements.get(o)||defineCustomElement$o();break;case"nl-iframe":customElements.get(o)||defineCustomElement$n();break;case"nl-import-flow":customElements.get(o)||defineCustomElement$l();break;case"nl-info":customElements.get(o)||defineCustomElement$k();break;case"nl-info-extension":customElements.get(o)||defineCustomElement$j();break;case"nl-loading":customElements.get(o)||defineCustomElement$i();break;case"nl-local-signup":customElements.get(o)||defineCustomElement$h();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g();break;case"nl-otp-migrate":customElements.get(o)||defineCustomElement$f();break;case"nl-previously-logged":customElements.get(o)||defineCustomElement$e();break;case"nl-select":customElements.get(o)||defineCustomElement$m();break;case"nl-signin":customElements.get(o)||defineCustomElement$d();break;case"nl-signin-bunker-url":customElements.get(o)||defineCustomElement$c();break;case"nl-signin-connection-string":customElements.get(o)||defineCustomElement$b();break;case"nl-signin-otp":customElements.get(o)||defineCustomElement$a();break;case"nl-signin-read-only":customElements.get(o)||defineCustomElement$9();break;case"nl-signup":customElements.get(o)||defineCustomElement$8();break;case"nl-welcome":customElements.get(o)||defineCustomElement$7();break;case"nl-welcome-signin":customElements.get(o)||defineCustomElement$6();break;case"nl-welcome-signup":customElements.get(o)||defineCustomElement$5()}})}defineCustomElement$4();const NlButton=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.theme="default",this.darkMode=!1,this.titleBtn="Open modal",this.disabled=!1}render(){return h("button-base",{key:"9f7936090efc7263cce71d1ad89490d7f5445991",theme:this.theme,darkMode:this.darkMode,titleBtn:this.titleBtn,disabled:this.disabled})}},[1,"nl-button",{theme:[1],darkMode:[4,"dark-mode"],titleBtn:[1,"title-btn"],disabled:[4]}]);function defineCustomElement$3(){typeof customElements>"u"||["nl-button","button-base"].forEach(o=>{switch(o){case"nl-button":customElements.get(o)||customElements.define(o,NlButton);break;case"button-base":customElements.get(o)||defineCustomElement$q()}})}defineCustomElement$3();const nlChangeAccountCss=baseCss,NlChangeAccountStyle0=nlChangeAccountCss,NLChangeAccount=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleSwitchAccount=createEvent(this,"handleSwitchAccount",7),this.isOpen=!1,this.options=[],this.accounts=[],this.currentAccount=null,this.mode=!1,this.darkMode=!1,this.themeState="default",this.theme="default"}handleWindowClick(){this.wrapperRef.querySelector(".listClass")&&(this.isOpen=!1)}toggleDropdown(){this.isOpen=!this.isOpen,this.calculateDropdownPosition()}watchPropHandler(o){this.themeState=o}watchModeHandler(o){this.mode=o}watchAccountsHandler(o){this.options=o}connectedCallback(){this.themeState=this.theme,this.mode=this.darkMode}calculateDropdownPosition(){if(this.isOpen&&this.buttonRef){const o=this.buttonRef.getBoundingClientRect();this.ulRef.style.top=`${o.height}px`}}handleChange(o){this.handleSwitchAccount.emit(o)}handleOpenModal(){this.handleOpenWelcomeModal.emit()}render(){const o=(this.isOpen?"listClass flex flex-col gap-2":"hidden")+" w-full nl-select-list absolute z-10 left-0 shadow-md rounded-lg p-2 mt-1 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full",s=(this.isOpen?"rotate-180":"rotate-0")+" duration-300 flex-shrink-0 w-4 h-4 text-gray-500",n=this.options&&this.currentAccount?this.options.filter(i=>i.pubkey!==this.currentAccount.pubkey||i.authMethod!==this.currentAccount.authMethod):[];return h("div",{key:"4e15e39f7ac6a552bfc772396e3e9ef8eeca95cc",class:`theme-${this.themeState}`},h("div",{key:"eae10769ce35dc4cc072d2361c1ee1390c79c822",class:"relative",ref:i=>this.wrapperRef=i},h("button",{key:"e585a44168809f27b99201f7e13bd5db5e4f6569",ref:i=>this.buttonRef=i,onClick:()=>this.toggleDropdown(),type:"button",class:"nl-select peer py-3 px-4 flex items-center w-full justify-between border-transparent rounded-lg text-sm disabled:opacity-50 disabled:pointer-events-none dark:border-transparent"},h("span",{key:"006ed9a67b57227d4dab51f0b6bcb8290cd9d3ac",class:"text-gray-500"},"Switch profile"),h("svg",{key:"5f824a479165929698fab31b8837b89418587652",class:s,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{key:"600914907723c9f8d01a15da357ccb825c1d1e6a",d:"m6 9 6 6 6-6"}))),h("ul",{key:"9b5b68724a3bce995e6b8b0a9d0eb653baedf79a",ref:i=>this.ulRef=i,class:o},this.options&&n.map(i=>{const c=i.name||i.nip05||i.pubkey;return h("li",{onClick:()=>this.handleChange(i),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{class:"uppercase font-bold w-full max-w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},i?.picture?h("img",{class:"w-full rounded-full",src:i.picture,alt:"Logo"}):c?c[0]:h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))),h("div",{class:"overflow-hidden flex flex-col w-full"},h("div",{class:"truncate overflow-hidden"},c),h("nl-login-status",{info:i})))}),h("li",{key:"936f2b75ca2dfca3483650d5d62fc50182cfc8f2",class:"first:pt-0 pt-2 border-t-[1px] first:border-none border-gray-300"},h("div",{key:"be0b4f29e70d8e2bc9fd1cc04c0fb43ad3dd5cac",onClick:()=>this.handleOpenModal(),class:"nl-select-option flex cursor-pointer items-center gap-x-3.5 py-2 px-3 rounded-lg text-sm"},h("div",{key:"bdd2a67e5763726666fcea91b0e7de67fe855994",class:"uppercase font-bold w-6 h-6 rounded-full border border-gray-400 flex justify-center items-center"},h("svg",{key:"f3a258f3e510ccb83b95bf3abecf65c248c8b0f1",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},h("path",{key:"dafaa898f3e042531a923a9a77b94511895c6102","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"}))),"Add profile")))))}get element(){return this}static get watchers(){return{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}}static get style(){return NlChangeAccountStyle0}},[0,"nl-change-account",{accounts:[16],currentAccount:[16],darkMode:[4,"dark-mode"],theme:[1],isOpen:[32],options:[32],mode:[32],themeState:[32]},[[8,"click","handleWindowClick"]],{theme:["watchPropHandler"],darkMode:["watchModeHandler"],accounts:["watchAccountsHandler"]}]);function defineCustomElement$2(){typeof customElements>"u"||["nl-change-account","nl-login-status"].forEach(o=>{switch(o){case"nl-change-account":customElements.get(o)||customElements.define(o,NLChangeAccount);break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement$2();const nlDialogCss=baseCss,NlDialogStyle0=nlDialogCss,NlDialog=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow()}componentDidLoad(){var o;null===(o=this.dialogElement)||void 0===o||o.showModal()}disconnectedCallback(){var o;null===(o=this.dialogElement)||void 0===o||o.close()}render(){return h("dialog",{key:"9c20328d937c160bcb9b9bf731d744721e84f189",ref:o=>this.dialogElement=o,class:"m-auto nl-banner-dialog"},h("slot",{key:"2e047d7c9e8904d590c588b73a5480cb1605ff86"}))}static get style(){return NlDialogStyle0}},[1,"nl-dialog"]);function defineCustomElement$1(){typeof customElements>"u"||["nl-dialog"].forEach(o=>{"nl-dialog"===o&&(customElements.get(o)||customElements.define(o,NlDialog))})}defineCustomElement$1();const nlBannerCss=baseCss,NlBannerStyle0=nlBannerCss,NlBanner=proxyCustomElement(class extends H{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.handleNotifyConfirmBanner=createEvent(this,"handleNotifyConfirmBanner",7),this.handleNotifyConfirmBannerIframe=createEvent(this,"handleNotifyConfirmBannerIframe",7),this.handleLoginBanner=createEvent(this,"handleLoginBanner",7),this.handleLogoutBanner=createEvent(this,"handleLogoutBanner",7),this.handleOpenWelcomeModal=createEvent(this,"handleOpenWelcomeModal",7),this.handleConfirmLogout=createEvent(this,"handleConfirmLogout",7),this.handleImportModal=createEvent(this,"handleImportModal",7),this.theme="default",this.darkMode=!1,this.hiddenMode=!1,this.titleBanner="",this.isOpen=!1,this.isLoading=!1,this.notify=null,this.userInfo=null,this.accounts=[],this.isUserImgError=!1,this.domain="",this.mode="",this.url="",this.isOpenConfirm=!1}watchNotifyHandler(o){var s,n,i,a;this.isOpen=!0,this.isOpenConfirm=!0,this.domain=(null===(s=this.userInfo)||void 0===s?void 0:s.domain)||(null===(a=null===(i=null===(n=this.userInfo)||void 0===n?void 0:n.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[1])||"",this.mode=o.mode,this.url=o.url,this.mode||(this.isOpenConfirm=!1,this.isOpen=!1)}handleOpen(){this.userInfo?this.isOpen=!0:this.handleOpenWelcomeModal.emit()}handleClose(){this.isOpen=!1}handleLogin(){this.handleLoginBanner.emit(METHOD_MODULE.LOGIN),this.handleClose()}handleSignup(){this.handleLoginBanner.emit(METHOD_MODULE.SIGNUP),this.handleClose()}handleImport(){this.handleImportModal.emit(),this.handleClose()}handleLogout(){if(localStorage.getItem("backupKey"))return this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose(),void localStorage.removeItem("backupKey");"local"===this.userInfo.authMethod?this.handleConfirmLogout.emit():this.handleLogoutBanner.emit(METHOD_MODULE.LOGOUT),this.handleClose()}handleConfirm(){switch(this.mode){case"authUrl":this.handleNotifyConfirmBanner.emit(this.url);break;case"iframeAuthUrl":this.handleNotifyConfirmBannerIframe.emit(this.url)}this.handleClose()}render(){var o,s,n,i,a,c;const y=!(null===(o=this.userInfo)||void 0===o||!o.picture),w=(null===(s=this.userInfo)||void 0===s?void 0:s.name)||(null===(a=null===(i=null===(n=this.userInfo)||void 0===n?void 0:n.nip05)||void 0===i?void 0:i.split("@"))||void 0===a?void 0:a[0])||(null===(c=this.userInfo)||void 0===c?void 0:c.pubkey)||"",C=!!w,T=this.userInfo&&"local"===this.userInfo.authMethod,S=localStorage.getItem("backupKey"),M=h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})),k=h(Fragment,null,h("div",{class:"block w-[48px] h-[46px] relative z-10"},h("div",{onClick:()=>this.handleOpen(),class:"flex w-52 h-[46px] items-center pl-[11px]"},h("span",{class:(this.isLoading?"w-5 h-5 border-[2px] mr-3.5 ml-[2px] opacity-1":"w-0 h-0 border-[0px] mr-0 opacity-0 ml-0")+" animate-spin transition-all duration-300 ease-in-out inline-block border-current border-t-transparent text-slate-900 dark:text-gray-300 rounded-full",role:"status","aria-label":"loading"}),this.userInfo?h("div",{class:"uppercase font-bold w-6 h-6 mr-2 rounded-full border border-gray-200 flex justify-center items-center"},y?this.isUserImgError?M:h("img",{class:"w-full rounded-full",src:this.userInfo.picture,alt:"Logo",onError:()=>this.isUserImgError=!0}):C?w[0]:M):h("div",{class:"flex justify-center items-center"},h("svg",{class:"w-6 h-6",width:"225",height:"224",viewBox:"0 0 225 224",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("rect",{width:"224.047",height:"224",rx:"64",fill:"#6951FA"}),h("path",{d:"M162.441 135.941V88.0593C170.359 85.1674 176 77.5348 176 68.6696C176 57.2919 166.708 48 155.33 48C143.953 48 134.661 57.2444 134.661 68.6696C134.661 77.5822 140.302 85.1674 148.219 88.0593V135.941C147.698 136.13 147.176 136.367 146.655 136.604L87.3956 77.3452C88.6282 74.6904 89.2919 71.7511 89.2919 68.6696C89.2919 57.2444 80.0474 48 68.6696 48C57.2919 48 48 57.2444 48 68.6696C48 77.5822 53.6415 85.1674 61.5585 88.0593V135.941C53.6415 138.833 48 146.465 48 155.33C48 166.708 57.2444 176 68.6696 176C80.0948 176 89.3393 166.708 89.3393 155.33C89.3393 146.418 83.6978 138.833 75.7807 135.941V88.0593C76.3022 87.8696 76.8237 87.6326 77.3452 87.3956L136.604 146.655C135.372 149.31 134.708 152.249 134.708 155.33C134.708 166.708 143.953 176 155.378 176C166.803 176 176.047 166.708 176.047 155.33C176.047 146.418 170.406 138.833 162.489 135.941H162.441Z",fill:"white"})),this.isOpen&&h("span",{class:"px-2"},h("b",null,"Nostr")," Login")),this.isOpen&&C&&h("div",{class:"show-slow truncate w-16 text-xs"},w),this.isOpen&&C&&h("nl-login-status",{info:this.userInfo}))),h("button",{onClick:()=>this.handleClose(),type:"button",class:(this.isOpen?"z-20":"z-0")+" nl-action-button absolute right-2 top-2 z-0 show-slow grid place-items-center w-7 h-7 text-sm font-semibold rounded-full border border-transparent"},h("span",{class:"sr-only"},"Close"),h("svg",{class:"flex-shrink-0 w-5 h-5",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},h("path",{d:"M18 6 6 18"}),h("path",{d:"m6 6 12 12"}))),h("div",{class:"p-3 show-slow"},this.isOpenConfirm?h("div",null,h("div",{class:"w-8 h-8 p-1/2 rounded-full border border-gray-200 bg-white mb-2 mt-2 show-slow m-auto"},h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#5a68ff",class:"w-full"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))),h("p",{class:"mb-2 text-center max-w-40 min-w-40 mx-auto"},"timeout"===this.mode?"Keys not responding, check your key storage app":`Confirmation required at ${this.domain}`),"timeout"===this.mode?h("a",{onClick:()=>this.handleClose(),href:`https://${this.domain}`,target:"_blank",class:"nl-button text-nowrap py-2.5 px-3 w-full inline-flex justify-center items-center gap-x-2 text-sm font-medium rounded-lg disabled:opacity-50 disabled:pointer-events-none dark:focus:outline-none dark:focus:ring-1 dark:focus:ring-gray-600"},"Go to ",this.domain):"rebind"===this.mode?h("iframe",{src:this.url,width:"180",height:"80"}):h("button-base",{onClick:()=>this.handleConfirm(),titleBtn:"Confirm"})):h("div",null,h("div",null,this.titleBanner&&h("p",{class:"mb-2 text-center show-slow max-w-40 min-w-40 mx-auto"},this.titleBanner),T&&h(Fragment,null,!S&&h("p",{class:"mb-2 text-center show-slow text-red-400 max-w-40 min-w-40 mx-auto"},"Your profile may be lost if you close this tab"),h("div",{class:"mb-2"},h("button-base",{onClick:()=>this.handleImport(),theme:"lemonade",titleBtn:"Back up profile"}))),h("div",{class:"mb-2"},h("nl-change-account",{currentAccount:this.userInfo,accounts:this.accounts})),this.userInfo?h("button-base",{onClick:()=>this.handleLogout(),titleBtn:"Log out"}):h("div",null,h("button-base",{onClick:()=>this.handleLogin(),titleBtn:"Log in"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))),h("button-base",{onClick:()=>this.handleSignup(),titleBtn:"Sign up"},h("svg",{style:{display:"none"},slot:"icon-start",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"flex-shrink-0 w-4 h-4"},h("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z"})))))))),X=!!function Z(re,_e){_e=_e||document.body;const pe=Array.from(_e.querySelectorAll(re)),de=function(De){Z(re,De).forEach(Ee=>{pe.includes(Ee)||pe.push(Ee)})};_e.shadowRoot&&de(_e.shadowRoot);for(const De of Array.from(_e.querySelectorAll("*")))De.shadowRoot&&de(De.shadowRoot);return pe}("dialog").find(Z=>Z.open&&!Z.classList.contains("nl-banner-dialog"));return console.log("nostr-login need dialog",X),h("div",{class:`theme-${this.theme} ${!this.isOpen&&this.hiddenMode?"hidden":""}`},h("div",{class:this.darkMode&&"dark"},this.isOpenConfirm&&X?h("nl-dialog",null,h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)):h("div",{class:`nl-banner ${this.isOpen?"w-52 h-auto right-2 rounded-r-lg isOpen":"rounded-r-none hover:rounded-r-lg cursor-pointer"} z-50 w-12 h-12 fixed top-52 right-0 inline-block gap-x-2 text-sm font-medium rounded-lg hover:right-2 transition-all duration-300 ease-in-out`},k)))}static get watchers(){return{notify:["watchNotifyHandler"]}}static get style(){return NlBannerStyle0}},[1,"nl-banner",{theme:[1025],darkMode:[1028,"dark-mode"],hiddenMode:[1028,"hidden-mode"],titleBanner:[1,"title-banner"],isOpen:[1028,"is-open"],isLoading:[4,"is-loading"],notify:[16],userInfo:[16],accounts:[1040],isUserImgError:[32],domain:[32],mode:[32],url:[32],isOpenConfirm:[32]},void 0,{notify:["watchNotifyHandler"]}]);function defineCustomElement(){typeof customElements>"u"||["nl-banner","button-base","nl-change-account","nl-dialog","nl-login-status"].forEach(o=>{switch(o){case"nl-banner":customElements.get(o)||customElements.define(o,NlBanner);break;case"button-base":customElements.get(o)||defineCustomElement$q();break;case"nl-change-account":customElements.get(o)||defineCustomElement$2();break;case"nl-dialog":customElements.get(o)||defineCustomElement$1();break;case"nl-login-status":customElements.get(o)||defineCustomElement$g()}})}defineCustomElement();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var lib$1={},types={};Object.defineProperty(types,"__esModule",{value:!0});var ee={},taskCollection$1={},taskCollection={},bakeCollection={};(function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.bakeCollectionVariadic=exports.bakeCollectionAwait=exports.bakeCollection=exports.BAKED_EMPTY_FUNC=void 0,exports.BAKED_EMPTY_FUNC=function(){};var FORLOOP_FALLBACK=1500;function generateArgsDefCode(o){var s="";if(0===o)return s;for(var n=0;n1)s?((n=this._tasks).push.apply(n,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++}function push_rebuild(o,s){var n,i=this.length;if(i>1)s?((n=this._tasks).push.apply(n,arguments),this.length+=arguments.length):(this._tasks.push(o),this.length++);else if(s){var a;1===i?((a=Array(1+arguments.length)).push(a),a.push.apply(a,arguments),this._tasks=a):((a=Array(arguments.length)).push.apply(a,arguments),this._tasks=a),this.length+=arguments.length}else this._tasks=1===i?[this._tasks,o]:o,this.length++;this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}function _fast_remove_single(o,s){-1!==s&&(0===s?o.shift():s===o.length-1?o.length=o.length-1:o.splice(s,1))}function removeLast_norebuild(o){0!==this.length&&(1===this.length?this._tasks===o&&(this.length=0):(_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length))}function removeLast_rebuild(o){if(0!==this.length){if(1===this.length)return this._tasks===o&&(this.length=0),this.firstEmitBuildStrategy?void(this.call=bake_collection_1.BAKED_EMPTY_FUNC):void this.rebuild();_fast_remove_single(this._tasks,this._tasks.lastIndexOf(o)),1===this._tasks.length?(this._tasks=this._tasks[0],this.length=1):this.length=this._tasks.length,this.firstEmitBuildStrategy?this.call=rebuild_on_first_call:this.rebuild()}}function insert_norebuild(o){for(var s,n=[],i=1;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$3(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$3(o.outputLen),number$3(o.blockLen)}function exists$3(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$3(o,s){bytes$3(o);const n=s.outputLen;if(o.lengtho instanceof Uint8Array,createView$2=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$2=(o,s)=>o<<32-s|o>>>s,isLE$3=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$3)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes$4(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes$3(o){if("string"==typeof o&&(o=utf8ToBytes$4(o)),!u8a$3(o))throw new Error("expected Uint8Array, got "+typeof o);return o}function concatBytes$3(...o){const s=new Uint8Array(o.reduce((i,a)=>i+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$3(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));let Hash$2=class{clone(){return this._cloneInto()}};function wrapConstructor$2(o){const s=i=>o().update(toBytes$3(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes$2(o=32){if(crypto$3&&"function"==typeof crypto$3.getRandomValues)return crypto$3.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function setBigUint64$2(o,s,n,i){if("function"==typeof o.setBigUint64)return o.setBigUint64(s,n,i);const a=BigInt(32),c=BigInt(4294967295),y=Number(n>>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$2=class extends Hash$2{constructor(o,s,n,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$2(this.buffer)}update(o){assert$3.exists(this);const{view:s,buffer:n,blockLen:i}=this,a=(o=toBytes$3(o)).length;for(let c=0;ci-c&&(this.process(n,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&n,Maj$2=(o,s,n)=>o&s^o&n^s&n,SHA256_K$2=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]),IV$2=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$2=new Uint32Array(64);let SHA256$2=class extends SHA2$2{constructor(){super(64,32,8,!1),this.A=0|IV$2[0],this.B=0|IV$2[1],this.C=0|IV$2[2],this.D=0|IV$2[3],this.E=0|IV$2[4],this.F=0|IV$2[5],this.G=0|IV$2[6],this.H=0|IV$2[7]}get(){const{A:o,B:s,C:n,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,n,i,a,c,y,w]}set(o,s,n,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$2[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const M=SHA256_W$2[S-15],k=SHA256_W$2[S-2],R=rotr$2(M,7)^rotr$2(M,18)^M>>>3,X=rotr$2(k,17)^rotr$2(k,19)^k>>>10;SHA256_W$2[S]=X+SHA256_W$2[S-7]+R+SHA256_W$2[S-16]|0}let{A:n,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const M=T+(rotr$2(y,6)^rotr$2(y,11)^rotr$2(y,25))+Chi$2(y,w,C)+SHA256_K$2[S]+SHA256_W$2[S]|0,k=(rotr$2(n,2)^rotr$2(n,13)^rotr$2(n,22))+Maj$2(n,i,a)|0;T=C,C=w,w=y,y=c+M|0,c=a,a=i,i=n,n=M+k|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(n,i,a,c,y,w,C,T)}roundClean(){SHA256_W$2.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}},SHA224$1=class extends SHA256$2{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 sha256$2=wrapConstructor$2(()=>new SHA256$2);wrapConstructor$2(()=>new SHA224$1);const _0n$4=BigInt(0),_1n$4=BigInt(1),_2n$2=BigInt(2),u8a$2=o=>o instanceof Uint8Array,hexes$2=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$2(o){if(!u8a$2(o))throw new Error("Uint8Array expected");let s="";for(let n=0;ni+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$2(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}function equalBytes$1(o,s){if(o.length!==s.length)return!1;for(let n=0;n_0n$4;o>>=_1n$4,s+=1);return s}function bitGet(o,s){return o>>BigInt(s)&_1n$4}const bitSet=(o,s,n)=>o|(n?_1n$4:_0n$4)<(_2n$2<new Uint8Array(o),u8fr=o=>Uint8Array.from(o);function createHmacDrbg(o,s,n){if("number"!=typeof o||o<2)throw new Error("hashLen must be a number");if("number"!=typeof s||s<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let i=u8n(o),a=u8n(o),c=0;const y=()=>{i.fill(1),a.fill(0),c=0},w=(...S)=>n(a,i,...S),C=(S=u8n())=>{a=w(u8fr([0]),S),i=w(),0!==S.length&&(a=w(u8fr([1]),S),i=w())},T=()=>{if(c++>=1e3)throw new Error("drbg: tried 1000 values");let S=0;const M=[];for(;S{let k;for(y(),C(S);!(k=M(T()));)C();return y(),k}}const validatorFns={bigint:o=>"bigint"==typeof o,function:o=>"function"==typeof o,boolean:o=>"boolean"==typeof o,string:o=>"string"==typeof o,isSafeInteger:o=>Number.isSafeInteger(o),array:o=>Array.isArray(o),field:(o,s)=>s.Fp.isValid(o),hash:o=>"function"==typeof o&&Number.isSafeInteger(o.outputLen)};function validateObject(o,s,n={}){const i=(a,c,y)=>{const w=validatorFns[c];if("function"!=typeof w)throw new Error(`Invalid validator "${c}", expected function`);const C=o[a];if(!(y&&void 0===C||w(C,o)))throw new Error(`Invalid param ${String(a)}=${C} (${typeof C}), expected ${c}`)};for(const[a,c]of Object.entries(s))i(a,c,!1);for(const[a,c]of Object.entries(n))i(a,c,!0);return o}var ut=Object.freeze({__proto__:null,bitGet,bitLen,bitMask,bitSet,bytesToHex:bytesToHex$2,bytesToNumberBE,bytesToNumberLE,concatBytes:concatBytes$2,createHmacDrbg,ensureBytes:ensureBytes$1,equalBytes:equalBytes$1,hexToBytes:hexToBytes$2,hexToNumber,numberToBytesBE,numberToBytesLE,numberToHexUnpadded,numberToVarBytesBE,utf8ToBytes:utf8ToBytes$3,validateObject});const _0n$3=BigInt(0),_1n$3=BigInt(1),_2n$1=BigInt(2),_3n$1=BigInt(3),_4n=BigInt(4),_5n=BigInt(5),_8n=BigInt(8);function mod(o,s){const n=o%s;return n>=_0n$3?n:s+n}function pow(o,s,n){if(n<=_0n$3||s<_0n$3)throw new Error("Expected power/modulo > 0");if(n===_1n$3)return _0n$3;let i=_1n$3;for(;s>_0n$3;)s&_1n$3&&(i=i*o%n),o=o*o%n,s>>=_1n$3;return i}function pow2(o,s,n){let i=o;for(;s-- >_0n$3;)i*=i,i%=n;return i}function invert(o,s){if(o===_0n$3||s<=_0n$3)throw new Error(`invert: expected positive integers, got n=${o} mod=${s}`);let n=mod(o,s),i=s,a=_0n$3,c=_1n$3;for(;n!==_0n$3;){const y=i%n,w=a-c*(i/n);i=n,n=y,a=c,c=w}if(i!==_1n$3)throw new Error("invert: does not exist");return mod(a,s)}function tonelliShanks(o){const s=(o-_1n$3)/_2n$1;let n,i,a;for(n=o-_1n$3,i=0;n%_2n$1===_0n$3;n/=_2n$1,i++);for(a=_2n$1;a(n[i]="function",n),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}function FpPow(o,s,n){if(n<_0n$3)throw new Error("Expected power > 0");if(n===_0n$3)return o.ONE;if(n===_1n$3)return s;let i=o.ONE,a=s;for(;n>_0n$3;)n&_1n$3&&(i=o.mul(i,a)),a=o.sqr(a),n>>=_1n$3;return i}function FpInvertBatch(o,s){const n=new Array(s.length),i=s.reduce((c,y,w)=>o.is0(y)?c:(n[w]=c,o.mul(c,y)),o.ONE),a=o.inv(i);return s.reduceRight((c,y,w)=>o.is0(y)?c:(n[w]=o.mul(c,n[w]),o.mul(c,y)),a),n}function nLength(o,s){const n=void 0!==s?s:o.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function Field(o,s,n=!1,i={}){if(o<=_0n$3)throw new Error(`Expected Fp ORDER > 0, got ${o}`);const{nBitLength:a,nByteLength:c}=nLength(o,s);if(c>2048)throw new Error("Field lengths over 2048 bytes are not supported");const y=FpSqrt(o),w=Object.freeze({ORDER:o,BITS:a,BYTES:c,MASK:bitMask(a),ZERO:_0n$3,ONE:_1n$3,create:C=>mod(C,o),isValid:C=>{if("bigint"!=typeof C)throw new Error("Invalid field element: expected bigint, got "+typeof C);return _0n$3<=C&&CC===_0n$3,isOdd:C=>(C&_1n$3)===_1n$3,neg:C=>mod(-C,o),eql:(C,T)=>C===T,sqr:C=>mod(C*C,o),add:(C,T)=>mod(C+T,o),sub:(C,T)=>mod(C-T,o),mul:(C,T)=>mod(C*T,o),pow:(C,T)=>FpPow(w,C,T),div:(C,T)=>mod(C*invert(T,o),o),sqrN:C=>C*C,addN:(C,T)=>C+T,subN:(C,T)=>C-T,mulN:(C,T)=>C*T,inv:C=>invert(C,o),sqrt:i.sqrt||(C=>y(w,C)),invertBatch:C=>FpInvertBatch(w,C),cmov:(C,T,S)=>S?T:C,toBytes:C=>n?numberToBytesLE(C,c):numberToBytesBE(C,c),fromBytes:C=>{if(C.length!==c)throw new Error(`Fp.fromBytes: expected ${c}, got ${C.length}`);return n?bytesToNumberLE(C):bytesToNumberBE(C)}});return Object.freeze(w)}function hashToPrivateScalar(o,s,n=!1){const i=(o=ensureBytes$1("privateHash",o)).length,a=nLength(s).nByteLength+8;if(a<24||i1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${i}`);return mod(n?bytesToNumberLE(o):bytesToNumberBE(o),s-_1n$3)+_1n$3}const _0n$2=BigInt(0),_1n$2=BigInt(1);function wNAF(o,s){const n=(a,c)=>{const y=c.negate();return a?y:c},i=a=>({windows:Math.ceil(s/a)+1,windowSize:2**(a-1)});return{constTimeNegate:n,unsafeLadder(a,c){let y=o.ZERO,w=a;for(;c>_0n$2;)c&_1n$2&&(y=y.add(w)),w=w.double(),c>>=_1n$2;return y},precomputeWindow(a,c){const{windows:y,windowSize:w}=i(c),C=[];let T=a,S=T;for(let M=0;M>=R,re>C&&(re-=k,y+=_1n$2);const _e=Z,pe=Z+Math.abs(re)-1,De=re<0;0===re?S=S.add(n(X%2!=0,c[_e])):T=T.add(n(De,c[pe]))}return{p:T,f:S}},wNAFCached(a,c,y,w){const C=a._WINDOW_SIZE||1;let T=c.get(a);return T||(T=this.precomputeWindow(a,C),1!==C&&c.set(a,w(T))),this.wNAF(C,T,y)}}}function validateBasic(o){return validateField(o.Fp),validateObject(o,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nLength(o.n,o.nBitLength),...o,p:o.Fp.ORDER})}function validatePointOpts(o){const s=validateBasic(o);validateObject(s,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:i,a}=s;if(n){if(!i.eql(a,i.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...s})}const{bytesToNumberBE:b2n,hexToBytes:h2b}=ut,DER={Err:class extends Error{constructor(o=""){super(o)}},_parseInt(o){const{Err:s}=DER;if(o.length<2||2!==o[0])throw new s("Invalid signature integer tag");const n=o[1],i=o.subarray(2,n+2);if(!n||i.length!==n)throw new s("Invalid signature integer: wrong length");if(128&i[0])throw new s("Invalid signature integer: negative");if(0===i[0]&&!(128&i[1]))throw new s("Invalid signature integer: unnecessary leading zero");return{d:b2n(i),l:o.subarray(n+2)}},toSig(o){const{Err:s}=DER,n="string"==typeof o?h2b(o):o;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let i=n.length;if(i<2||48!=n[0])throw new s("Invalid signature tag");if(n[1]!==i-2)throw new s("Invalid signature: incorrect length");const{d:a,l:c}=DER._parseInt(n.subarray(2)),{d:y,l:w}=DER._parseInt(c);if(w.length)throw new s("Invalid signature: left bytes after parsing");return{r:a,s:y}},hexFromSig(o){const s=T=>8&Number.parseInt(T[0],16)?"00"+T:T,n=T=>{const S=T.toString(16);return 1&S.length?`0${S}`:S},i=s(n(o.s)),a=s(n(o.r)),c=i.length/2,y=a.length/2,w=n(c),C=n(y);return`30${n(y+c+4)}02${C}${a}02${w}${i}`}},_0n$1=BigInt(0),_1n$1=BigInt(1);BigInt(2);const _3n=BigInt(3);function weierstrassPoints(o){const s=validatePointOpts(o),{Fp:n}=s,i=s.toBytes||((X,Z,re)=>{const _e=Z.toAffine();return concatBytes$2(Uint8Array.from([4]),n.toBytes(_e.x),n.toBytes(_e.y))}),a=s.fromBytes||(X=>{const Z=X.subarray(1);return{x:n.fromBytes(Z.subarray(0,n.BYTES)),y:n.fromBytes(Z.subarray(n.BYTES,2*n.BYTES))}});function c(X){const{a:Z,b:re}=s,_e=n.sqr(X),pe=n.mul(_e,X);return n.add(n.add(pe,n.mul(X,Z)),re)}if(!n.eql(n.sqr(s.Gy),c(s.Gx)))throw new Error("bad generator point: equation left != right");function y(X){return"bigint"==typeof X&&_0n$1n.eql(de,n.ZERO);return pe(re)&&pe(_e)?M.ZERO:new M(re,_e,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Z){const re=n.invertBatch(Z.map(_e=>_e.pz));return Z.map((_e,pe)=>_e.toAffine(re[pe])).map(M.fromAffine)}static fromHex(Z){const re=M.fromAffine(a(ensureBytes$1("pointHex",Z)));return re.assertValidity(),re}static fromPrivateKey(Z){return M.BASE.multiply(C(Z))}_setWindowSize(Z){this._WINDOW_SIZE=Z,T.delete(this)}assertValidity(){if(this.is0()){if(s.allowInfinityPoint)return;throw new Error("bad point: ZERO")}const{x:Z,y:re}=this.toAffine();if(!n.isValid(Z)||!n.isValid(re))throw new Error("bad point: x or y not FE");const _e=n.sqr(re),pe=c(Z);if(!n.eql(_e,pe))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Z}=this.toAffine();if(n.isOdd)return!n.isOdd(Z);throw new Error("Field doesn't support isOdd")}equals(Z){S(Z);const{px:re,py:_e,pz:pe}=this,{px:de,py:De,pz:Ee}=Z,Le=n.eql(n.mul(re,Ee),n.mul(de,pe)),Ae=n.eql(n.mul(_e,Ee),n.mul(De,pe));return Le&&Ae}negate(){return new M(this.px,n.neg(this.py),this.pz)}double(){const{a:Z,b:re}=s,_e=n.mul(re,_3n),{px:pe,py:de,pz:De}=this;let Ee=n.ZERO,Le=n.ZERO,Ae=n.ZERO,we=n.mul(pe,pe),le=n.mul(de,de),ae=n.mul(De,De),xe=n.mul(pe,de);return xe=n.add(xe,xe),Ae=n.mul(pe,De),Ae=n.add(Ae,Ae),Ee=n.mul(Z,Ae),Le=n.mul(_e,ae),Le=n.add(Ee,Le),Ee=n.sub(le,Le),Le=n.add(le,Le),Le=n.mul(Ee,Le),Ee=n.mul(xe,Ee),Ae=n.mul(_e,Ae),ae=n.mul(Z,ae),xe=n.sub(we,ae),xe=n.mul(Z,xe),xe=n.add(xe,Ae),Ae=n.add(we,we),we=n.add(Ae,we),we=n.add(we,ae),we=n.mul(we,xe),Le=n.add(Le,we),ae=n.mul(de,De),ae=n.add(ae,ae),we=n.mul(ae,xe),Ee=n.sub(Ee,we),Ae=n.mul(ae,le),Ae=n.add(Ae,Ae),Ae=n.add(Ae,Ae),new M(Ee,Le,Ae)}add(Z){S(Z);const{px:re,py:_e,pz:pe}=this,{px:de,py:De,pz:Ee}=Z;let Le=n.ZERO,Ae=n.ZERO,we=n.ZERO;const le=s.a,ae=n.mul(s.b,_3n);let xe=n.mul(re,de),Be=n.mul(_e,De),st=n.mul(pe,Ee),lt=n.add(re,_e),bt=n.add(de,De);lt=n.mul(lt,bt),bt=n.add(xe,Be),lt=n.sub(lt,bt),bt=n.add(re,pe);let at=n.add(de,Ee);return bt=n.mul(bt,at),at=n.add(xe,st),bt=n.sub(bt,at),at=n.add(_e,pe),Le=n.add(De,Ee),at=n.mul(at,Le),Le=n.add(Be,st),at=n.sub(at,Le),we=n.mul(le,bt),Le=n.mul(ae,st),we=n.add(Le,we),Le=n.sub(Be,we),we=n.add(Be,we),Ae=n.mul(Le,we),Be=n.add(xe,xe),Be=n.add(Be,xe),st=n.mul(le,st),bt=n.mul(ae,bt),Be=n.add(Be,st),st=n.sub(xe,st),st=n.mul(le,st),bt=n.add(bt,st),xe=n.mul(Be,bt),Ae=n.add(Ae,xe),xe=n.mul(at,bt),Le=n.mul(lt,Le),Le=n.sub(Le,xe),xe=n.mul(lt,Be),we=n.mul(at,we),we=n.add(we,xe),new M(Le,Ae,we)}subtract(Z){return this.add(Z.negate())}is0(){return this.equals(M.ZERO)}wNAF(Z){return R.wNAFCached(this,T,Z,re=>{const _e=n.invertBatch(re.map(pe=>pe.pz));return re.map((pe,de)=>pe.toAffine(_e[de])).map(M.fromAffine)})}multiplyUnsafe(Z){const re=M.ZERO;if(Z===_0n$1)return re;if(w(Z),Z===_1n$1)return this;const{endo:_e}=s;if(!_e)return R.unsafeLadder(this,Z);let{k1neg:pe,k1:de,k2neg:De,k2:Ee}=_e.splitScalar(Z),Le=re,Ae=re,we=this;for(;de>_0n$1||Ee>_0n$1;)de&_1n$1&&(Le=Le.add(we)),Ee&_1n$1&&(Ae=Ae.add(we)),we=we.double(),de>>=_1n$1,Ee>>=_1n$1;return pe&&(Le=Le.negate()),De&&(Ae=Ae.negate()),Ae=new M(n.mul(Ae.px,_e.beta),Ae.py,Ae.pz),Le.add(Ae)}multiply(Z){w(Z);let re,_e,pe=Z;const{endo:de}=s;if(de){const{k1neg:De,k1:Ee,k2neg:Le,k2:Ae}=de.splitScalar(pe);let{p:we,f:le}=this.wNAF(Ee),{p:ae,f:xe}=this.wNAF(Ae);we=R.constTimeNegate(De,we),ae=R.constTimeNegate(Le,ae),ae=new M(n.mul(ae.px,de.beta),ae.py,ae.pz),re=we.add(ae),_e=le.add(xe)}else{const{p:De,f:Ee}=this.wNAF(pe);re=De,_e=Ee}return M.normalizeZ([re,_e])[0]}multiplyAndAddUnsafe(Z,re,_e){const pe=M.BASE,de=(Ee,Le)=>Le!==_0n$1&&Le!==_1n$1&&Ee.equals(pe)?Ee.multiply(Le):Ee.multiplyUnsafe(Le),De=de(this,re).add(de(Z,_e));return De.is0()?void 0:De}toAffine(Z){const{px:re,py:_e,pz:pe}=this,de=this.is0();null==Z&&(Z=de?n.ONE:n.inv(pe));const De=n.mul(re,Z),Ee=n.mul(_e,Z),Le=n.mul(pe,Z);if(de)return{x:n.ZERO,y:n.ZERO};if(!n.eql(Le,n.ONE))throw new Error("invZ was invalid");return{x:De,y:Ee}}isTorsionFree(){const{h:Z,isTorsionFree:re}=s;if(Z===_1n$1)return!0;if(re)return re(M,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Z,clearCofactor:re}=s;return Z===_1n$1?this:re?re(M,this):this.multiplyUnsafe(s.h)}toRawBytes(Z=!0){return this.assertValidity(),i(M,this,Z)}toHex(Z=!0){return bytesToHex$2(this.toRawBytes(Z))}}M.BASE=new M(s.Gx,s.Gy,n.ONE),M.ZERO=new M(n.ZERO,n.ONE,n.ZERO);const k=s.nBitLength,R=wNAF(M,s.endo?Math.ceil(k/2):k);return{CURVE:s,ProjectivePoint:M,normPrivateKeyToScalar:C,weierstrassEquation:c,isWithinCurveOrder:y}}function validateOpts(o){const s=validateBasic(o);return validateObject(s,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...s})}function weierstrass(o){const s=validateOpts(o),{Fp:n,n:i}=s,a=n.BYTES+1,c=2*n.BYTES+1;function y(le){return mod(le,i)}function w(le){return invert(le,i)}const{ProjectivePoint:C,normPrivateKeyToScalar:T,weierstrassEquation:S,isWithinCurveOrder:M}=weierstrassPoints({...s,toBytes(le,ae,xe){const Be=ae.toAffine(),st=n.toBytes(Be.x),lt=concatBytes$2;return xe?lt(Uint8Array.from([ae.hasEvenY()?2:3]),st):lt(Uint8Array.from([4]),st,n.toBytes(Be.y))},fromBytes(le){const ae=le.length,xe=le[0],Be=le.subarray(1);if(ae!==a||2!==xe&&3!==xe){if(ae===c&&4===xe)return{x:n.fromBytes(Be.subarray(0,n.BYTES)),y:n.fromBytes(Be.subarray(n.BYTES,2*n.BYTES))};throw new Error(`Point of length ${ae} was invalid. Expected ${a} compressed bytes or ${c} uncompressed bytes`)}{const lt=bytesToNumberBE(Be);if(!(_0n$1<(st=lt)&&stbytesToHex$2(numberToBytesBE(le,s.nByteLength));function R(le){return le>i>>_1n$1}const X=(le,ae,xe)=>bytesToNumberBE(le.slice(ae,xe));class Z{constructor(ae,xe,Be){this.r=ae,this.s=xe,this.recovery=Be,this.assertValidity()}static fromCompact(ae){const xe=s.nByteLength;return ae=ensureBytes$1("compactSignature",ae,2*xe),new Z(X(ae,0,xe),X(ae,xe,2*xe))}static fromDER(ae){const{r:xe,s:Be}=DER.toSig(ensureBytes$1("DER",ae));return new Z(xe,Be)}assertValidity(){if(!M(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!M(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ae){return new Z(this.r,this.s,ae)}recoverPublicKey(ae){const{r:xe,s:Be,recovery:st}=this,lt=de(ensureBytes$1("msgHash",ae));if(null==st||![0,1,2,3].includes(st))throw new Error("recovery id invalid");const bt=2===st||3===st?xe+s.n:xe;if(bt>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const sn=C.fromHex((1&st?"03":"02")+k(bt)),fn=w(bt),En=y(-lt*fn),Wn=y(Be*fn),wn=C.BASE.multiplyAndAddUnsafe(sn,En,Wn);if(!wn)throw new Error("point at infinify");return wn.assertValidity(),wn}hasHighS(){return R(this.s)}normalizeS(){return this.hasHighS()?new Z(this.r,y(-this.s),this.recovery):this}toDERRawBytes(){return hexToBytes$2(this.toDERHex())}toDERHex(){return DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hexToBytes$2(this.toCompactHex())}toCompactHex(){return k(this.r)+k(this.s)}}const re={isValidPrivateKey(le){try{return T(le),!0}catch{return!1}},normPrivateKeyToScalar:T,randomPrivateKey:()=>numberToBytesBE(hashToPrivateScalar(s.randomBytes(n.BYTES+8),i),s.nByteLength),precompute:(le=8,ae=C.BASE)=>(ae._setWindowSize(le),ae.multiply(BigInt(3)),ae)};function _e(le){const ae=le instanceof Uint8Array,xe="string"==typeof le,Be=(ae||xe)&&le.length;return ae?Be===a||Be===c:xe?Be===2*a||Be===2*c:le instanceof C}const pe=s.bits2int||function(le){const ae=bytesToNumberBE(le),xe=8*le.length-s.nBitLength;return xe>0?ae>>BigInt(xe):ae},de=s.bits2int_modN||function(le){return y(pe(le))},De=bitMask(s.nBitLength);function Ee(le){if("bigint"!=typeof le)throw new Error("bigint expected");if(!(_0n$1<=le&&leJe in xe))throw new Error("sign() legacy options not supported");const{hash:Be,randomBytes:st}=s;let{lowS:lt,prehash:bt,extraEntropy:at}=xe;null==lt&&(lt=!0),le=ensureBytes$1("msgHash",le),bt&&(le=ensureBytes$1("prehashed msgHash",Be(le)));const sn=de(le),fn=T(ae),En=[Ee(fn),Ee(sn)];if(null!=at){const Je=!0===at?st(n.BYTES):at;En.push(ensureBytes$1("extraEntropy",Je,n.BYTES))}const Wn=concatBytes$2(...En),wn=sn;return{seed:Wn,k2sig:function(Je){const _t=pe(Je);if(!M(_t))return;const ze=w(_t),Ue=C.BASE.multiply(_t).toAffine(),Ft=y(Ue.x);if(Ft===_0n$1)return;const Ke=y(ze*y(wn+Ft*fn));if(Ke===_0n$1)return;let Ze=(Ue.x===Ft?0:2)|Number(Ue.y&_1n$1),it=Ke;return lt&&R(Ke)&&(it=R(Ot=Ke)?y(-Ot):Ot,Ze^=1),new Z(Ft,it,Ze);var Ot}}}(le,ae,xe);return createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(Be,st)},verify:function(le,ae,xe,Be=we){const st=le;if(ae=ensureBytes$1("msgHash",ae),xe=ensureBytes$1("publicKey",xe),"strict"in Be)throw new Error("options.strict was renamed to lowS");const{lowS:lt,prehash:bt}=Be;let at,sn;try{if("string"==typeof st||st instanceof Uint8Array)try{at=Z.fromDER(st)}catch(Ue){if(!(Ue instanceof DER.Err))throw Ue;at=Z.fromCompact(st)}else{if("object"!=typeof st||"bigint"!=typeof st.r||"bigint"!=typeof st.s)throw new Error("PARSE");{const{r:Ue,s:Ft}=st;at=new Z(Ue,Ft)}}sn=C.fromHex(xe)}catch(Ue){if("PARSE"===Ue.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(lt&&at.hasHighS())return!1;bt&&(ae=s.hash(ae));const{r:fn,s:En}=at,Wn=de(ae),wn=w(En),Je=y(Wn*wn),_t=y(fn*wn),ze=C.BASE.multiplyAndAddUnsafe(sn,Je,_t)?.toAffine();return!!ze&&y(ze.x)===fn},ProjectivePoint:C,Signature:Z,utils:re}}BigInt(4);let HMAC$2=class extends Hash$2{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,assert$3.hash(o);const n=toBytes$3(s);if(this.iHash=o.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,a=new Uint8Array(i);a.set(n.length>i?o.create().update(n).digest():n);for(let c=0;cnew HMAC$2(o,s).update(n).digest();function getHash(o){return{hash:o,hmac:(s,...n)=>hmac$2(o,s,concatBytes$3(...n)),randomBytes:randomBytes$2}}function createCurve(o,s){const n=i=>weierstrass({...o,...getHash(i)});return Object.freeze({...n(s),create:n})}hmac$2.create=(o,s)=>new HMAC$2(o,s);const secp256k1P=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),secp256k1N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),_1n=BigInt(1),_2n=BigInt(2),divNearest=(o,s)=>(o+s/_2n)/s;function sqrtMod(o){const s=secp256k1P,n=BigInt(3),i=BigInt(6),a=BigInt(11),c=BigInt(22),y=BigInt(23),w=BigInt(44),C=BigInt(88),T=o*o*o%s,S=T*T*o%s,M=pow2(S,n,s)*S%s,k=pow2(M,n,s)*S%s,R=pow2(k,_2n,s)*T%s,X=pow2(R,a,s)*R%s,Z=pow2(X,c,s)*X%s,re=pow2(Z,w,s)*Z%s,_e=pow2(re,C,s)*re%s,pe=pow2(_e,w,s)*Z%s,de=pow2(pe,n,s)*S%s,De=pow2(de,y,s)*X%s,Ee=pow2(De,i,s)*T%s,Le=pow2(Ee,_2n,s);if(!Fp.eql(Fp.sqr(Le),o))throw new Error("Cannot find square root");return Le}const Fp=Field(secp256k1P,void 0,void 0,{sqrt:sqrtMod}),secp256k1=createCurve({a:BigInt(0),b:BigInt(7),Fp,n:secp256k1N,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:o=>{const s=secp256k1N,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),i=-_1n*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),c=n,y=BigInt("0x100000000000000000000000000000000"),w=divNearest(c*o,s),C=divNearest(-i*o,s);let T=mod(o-w*n-C*a,s),S=mod(-w*i-C*c,s);const M=T>y,k=S>y;if(M&&(T=s-T),k&&(S=s-S),T>y||S>y)throw new Error("splitScalar: Endomorphism failed, k="+o);return{k1neg:M,k1:T,k2neg:k,k2:S}}}},sha256$2),_0n=BigInt(0),fe=o=>"bigint"==typeof o&&_0n"bigint"==typeof o&&_0na.charCodeAt(0)));n=concatBytes$2(i,i),TAGGED_HASH_PREFIXES[o]=n}return sha256$2(concatBytes$2(n,...s))}const pointToBytes=o=>o.toRawBytes(!0).slice(1),numTo32b=o=>numberToBytesBE(o,32),modP=o=>mod(o,secp256k1P),modN=o=>mod(o,secp256k1N),Point$1=secp256k1.ProjectivePoint,GmulAdd=(o,s,n)=>Point$1.BASE.multiplyAndAddUnsafe(o,s,n);function schnorrGetExtPubKey(o){let s=secp256k1.utils.normPrivateKeyToScalar(o),n=Point$1.fromPrivateKey(s);return{scalar:n.hasEvenY()?s:modN(-s),bytes:pointToBytes(n)}}function lift_x(o){if(!fe(o))throw new Error("bad x: need 0 < x < p");const s=modP(o*o);let n=sqrtMod(modP(s*o+BigInt(7)));n%_2n!==_0n&&(n=modP(-n));const i=new Point$1(o,n,_1n);return i.assertValidity(),i}function challenge(...o){return modN(bytesToNumberBE(taggedHash("BIP0340/challenge",...o)))}function schnorrGetPublicKey(o){return schnorrGetExtPubKey(o).bytes}function schnorrSign(o,s,n=randomBytes$2(32)){const i=ensureBytes$1("message",o),{bytes:a,scalar:c}=schnorrGetExtPubKey(s),y=ensureBytes$1("auxRand",n,32),w=numTo32b(c^bytesToNumberBE(taggedHash("BIP0340/aux",y))),C=taggedHash("BIP0340/nonce",w,a,i),T=modN(bytesToNumberBE(C));if(T===_0n)throw new Error("sign failed: k is zero");const{bytes:S,scalar:M}=schnorrGetExtPubKey(T),k=challenge(S,a,i),R=new Uint8Array(64);if(R.set(S,0),R.set(numTo32b(modN(M+k*c)),32),!schnorrVerify(R,i,a))throw new Error("sign: Invalid signature produced");return R}function schnorrVerify(o,s,n){const i=ensureBytes$1("signature",o,64),a=ensureBytes$1("message",s),c=ensureBytes$1("publicKey",n,32);try{const y=lift_x(bytesToNumberBE(c)),w=bytesToNumberBE(i.subarray(0,32));if(!fe(w))return!1;const C=bytesToNumberBE(i.subarray(32,64));if(!ge(C))return!1;const T=challenge(numTo32b(w),pointToBytes(y),a),S=GmulAdd(y,C,modN(-T));return!(!S||!S.hasEvenY()||S.toAffine().x!==w)}catch{return!1}}const schnorr={getPublicKey:schnorrGetPublicKey,sign:schnorrSign,verify:schnorrVerify,utils:{randomPrivateKey:secp256k1.utils.randomPrivateKey,lift_x,pointToBytes,numberToBytesBE,bytesToNumberBE,taggedHash,mod}},crypto$2="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,u8a$1=o=>o instanceof Uint8Array,createView$1=o=>new DataView(o.buffer,o.byteOffset,o.byteLength),rotr$1=(o,s)=>o<<32-s|o>>>s,isLE$2=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$2)throw new Error("Non little-endian hardware is not supported");const hexes$1=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex$1(o){if(!u8a$1(o))throw new Error("Uint8Array expected");let s="";for(let n=0;ni+a.length,0));let n=0;return o.forEach(i=>{if(!u8a$1(i))throw new Error("Uint8Array expected");s.set(i,n),n+=i.length}),s}let Hash$1=class{clone(){return this._cloneInto()}};function wrapConstructor$1(o){const s=i=>o().update(toBytes$2(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes$1(o=32){if(crypto$2&&"function"==typeof crypto$2.getRandomValues)return crypto$2.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}function number$2(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$2(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function bytes$2(o,...s){if(!(o instanceof Uint8Array))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$2(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$2(o.outputLen),number$2(o.blockLen)}function exists$2(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$2(o,s){bytes$2(o);const n=s.outputLen;if(o.length>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}let SHA2$1=class extends Hash$1{constructor(o,s,n,i){super(),this.blockLen=o,this.outputLen=s,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(o),this.view=createView$1(this.buffer)}update(o){assert$2.exists(this);const{view:s,buffer:n,blockLen:i}=this,a=(o=toBytes$2(o)).length;for(let c=0;ci-c&&(this.process(n,0),c=0);for(let S=c;ST.length)throw new Error("_sha2: outputLen bigger than state");for(let S=0;So&s^~o&n,Maj$1=(o,s,n)=>o&s^o&n^s&n,SHA256_K$1=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]),IV$1=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W$1=new Uint32Array(64);let SHA256$1=class extends SHA2$1{constructor(){super(64,32,8,!1),this.A=0|IV$1[0],this.B=0|IV$1[1],this.C=0|IV$1[2],this.D=0|IV$1[3],this.E=0|IV$1[4],this.F=0|IV$1[5],this.G=0|IV$1[6],this.H=0|IV$1[7]}get(){const{A:o,B:s,C:n,D:i,E:a,F:c,G:y,H:w}=this;return[o,s,n,i,a,c,y,w]}set(o,s,n,i,a,c,y,w){this.A=0|o,this.B=0|s,this.C=0|n,this.D=0|i,this.E=0|a,this.F=0|c,this.G=0|y,this.H=0|w}process(o,s){for(let S=0;S<16;S++,s+=4)SHA256_W$1[S]=o.getUint32(s,!1);for(let S=16;S<64;S++){const M=SHA256_W$1[S-15],k=SHA256_W$1[S-2],R=rotr$1(M,7)^rotr$1(M,18)^M>>>3,X=rotr$1(k,17)^rotr$1(k,19)^k>>>10;SHA256_W$1[S]=X+SHA256_W$1[S-7]+R+SHA256_W$1[S-16]|0}let{A:n,B:i,C:a,D:c,E:y,F:w,G:C,H:T}=this;for(let S=0;S<64;S++){const M=T+(rotr$1(y,6)^rotr$1(y,11)^rotr$1(y,25))+Chi$1(y,w,C)+SHA256_K$1[S]+SHA256_W$1[S]|0,k=(rotr$1(n,2)^rotr$1(n,13)^rotr$1(n,22))+Maj$1(n,i,a)|0;T=C,C=w,w=y,y=c+M|0,c=a,a=i,i=n,n=M+k|0}n=n+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,y=y+this.E|0,w=w+this.F|0,C=C+this.G|0,T=T+this.H|0,this.set(n,i,a,c,y,w,C,T)}roundClean(){SHA256_W$1.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};class SHA224 extends SHA256$1{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 sha256$1=wrapConstructor$1(()=>new SHA256$1);function assertNumber(o){if(!Number.isSafeInteger(o))throw new Error(`Wrong integer: ${o}`)}function chain$1(...o){const s=(n,i)=>a=>n(i(a));return{encode:Array.from(o).reverse().reduce((n,i)=>n?s(n,i.encode):i.encode,void 0),decode:o.reduce((n,i)=>n?s(n,i.decode):i.decode,void 0)}}function alphabet$1(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(n=>{if(assertNumber(n),n<0||n>=o.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${o.length})`);return o[n]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const i=o.indexOf(n);if(-1===i)throw new Error(`Unknown letter: "${n}". Allowed: ${o}`);return i})}}}function join$1(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let n of s)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding$1(o,s="="){if(assertNumber(o),"string"!=typeof s)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let i of n)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;n.length*o%8;)n.push(s);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let a of n)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=n.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&n[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,i)}}}function normalize$1(o){if("function"!=typeof o)throw new Error("normalize fn should be function");return{encode:s=>s,decode:s=>o(s)}}function convertRadix$1(o,s,n){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(assertNumber(y),y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cnew SHA224);const gcd$1=(o,s)=>s?gcd$1(s,o%s):o,radix2carry$1=(o,s)=>o+(s-gcd$1(o,s));function convertRadix2$1(o,s,n,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(radix2carry$1(s,n)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${n} carryBits=${radix2carry$1(s,n)}`);let a=0,c=0;const y=2**n-1,w=[];for(const C of o){if(assertNumber(C),C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=n;c-=n)w.push((a>>c-n&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix$1(o){return assertNumber(o),{encode:s=>{if(!(s instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return convertRadix$1(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(convertRadix$1(s,o,256))}}}function radix2$1(o,s=!1){if(assertNumber(o),o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry$1(8,o)>32||radix2carry$1(o,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2$1(Array.from(n),8,o,!s)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(convertRadix2$1(n,o,8,s))}}}function unsafeWrapper$1(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}const base16=chain$1(radix2$1(4),alphabet$1("0123456789ABCDEF"),join$1("")),base32=chain$1(radix2$1(5),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),padding$1(5),join$1(""));chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHIJKLMNOPQRSTUV"),padding$1(5),join$1("")),chain$1(radix2$1(5),alphabet$1("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),join$1(""),normalize$1(o=>o.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1")));const base64$1=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),padding$1(6),join$1("")),base64url=chain$1(radix2$1(6),alphabet$1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),padding$1(6),join$1("")),genBase58$1=o=>chain$1(radix$1(58),alphabet$1(o),join$1("")),base58$1=genBase58$1("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");genBase58$1("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),genBase58$1("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const XMR_BLOCK_LEN=[0,2,3,5,6,7,9,10,11],base58xmr={encode(o){let s="";for(let n=0;n>25;let n=(33554431&o)<<5;for(let i=0;i>i&1)&&(n^=POLYMOD_GENERATORS$1[i]);return n}function bechChecksum$1(o,s,n=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod$1(a)^y>>5}a=bech32Polymod$1(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const M=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET$1.decode(k).slice(0,-6),X=bechChecksum$1(M,R,s);if(!k.endsWith(X))throw new Error(`Invalid checksum in ${w}: expected "${X}"`);return{prefix:M,words:R}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);return`${w=w.toLowerCase()}1${BECH_ALPHABET$1.encode(C)}${bechChecksum$1(w,C,s)}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper$1(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32$1=genBech32$1("bech32");genBech32$1("bech32m");const utf8={encode:o=>(new TextDecoder).decode(o),decode:o=>(new TextEncoder).encode(o)},hex=chain$1(radix2$1(4),alphabet$1("0123456789abcdef"),join$1(""),normalize$1(o=>{if("string"!=typeof o||o.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof o} with length ${o.length}`);return o.toLowerCase()})),CODERS={utf8,hex,base16,base32,base64:base64$1,base64url,base58:base58$1,base58xmr};Object.keys(CODERS).join(", ");const wordlist="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");function number$1(o){if(!Number.isSafeInteger(o)||o<0)throw new Error(`Wrong positive integer: ${o}`)}function bool$1(o){if("boolean"!=typeof o)throw new Error(`Expected boolean, not ${o}`)}function isBytes$2(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function bytes$1(o,...s){if(!isBytes$2(o))throw new Error("Expected Uint8Array");if(s.length>0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash$1(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");number$1(o.outputLen),number$1(o.blockLen)}function exists$1(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output$1(o,s){bytes$1(o);const n=s.outputLen;if(o.lengthnew DataView(o.buffer,o.byteOffset,o.byteLength),rotr=(o,s)=>o<<32-s|o>>>s,isLE$1=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE$1)throw new Error("Non little-endian hardware is not supported");const hexes=Array.from({length:256},(o,s)=>s.toString(16).padStart(2,"0"));function bytesToHex(o){if(!isBytes$1(o))throw new Error("Uint8Array expected");let s="";for(let n=0;n=asciis._0&&o<=asciis._9?o-asciis._0:o>=asciis._A&&o<=asciis._F?o-(asciis._A-10):o>=asciis._a&&o<=asciis._f?o-(asciis._a-10):void 0}function hexToBytes(o){if("string"!=typeof o)throw new Error("hex string expected, got "+typeof o);const s=o.length,n=s/2;if(s%2)throw new Error("padded hex string expected, got unpadded hex of length "+s);const i=new Uint8Array(n);for(let a=0,c=0;ao().update(toBytes$1(i)).digest(),n=o();return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=()=>o(),s}function randomBytes(o=32){if(crypto$1&&"function"==typeof crypto$1.getRandomValues)return crypto$1.getRandomValues(new Uint8Array(o));throw new Error("crypto.getRandomValues must be defined")}let HMAC$1=class extends Hash{constructor(o,s){super(),this.finished=!1,this.destroyed=!1,hash$1(o);const n=toBytes$1(s);if(this.iHash=o.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,a=new Uint8Array(i);a.set(n.length>i?o.create().update(n).digest():n);for(let c=0;cnew HMAC$1(o,s).update(n).digest();function pbkdf2Init(o,s,n,i){hash$1(o);const a=checkOpts$1({dkLen:32,asyncTick:10},i),{c,dkLen:y,asyncTick:w}=a;if(number$1(c),number$1(y),number$1(w),c<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const C=toBytes$1(s),T=toBytes$1(n),S=new Uint8Array(y),M=hmac$1.create(o,C),k=M._cloneInto().update(T);return{c,dkLen:y,asyncTick:w,DK:S,PRF:M,PRFSalt:k}}function pbkdf2Output(o,s,n,i,a){return o.destroy(),s.destroy(),i&&i.destroy(),a.fill(0),n}function pbkdf2(o,s,n,i){const{c:a,dkLen:c,DK:y,PRF:w,PRFSalt:C}=pbkdf2Init(o,s,n,i);let T;const S=new Uint8Array(4),M=createView(S),k=new Uint8Array(w.outputLen);for(let R=1,X=0;X>a&c),w=Number(n&c),T=i?0:4;o.setUint32(s+(i?4:0),y,i),o.setUint32(s+T,w,i)}hmac$1.create=(o,s)=>new HMAC$1(o,s);class SHA2 extends Hash{constructor(s,n,i,a){super(),this.blockLen=s,this.outputLen=n,this.padOffset=i,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(s),this.view=createView(this.buffer)}update(s){exists$1(this);const{view:n,buffer:i,blockLen:a}=this,c=(s=toBytes$1(s)).length;for(let y=0;ya-y&&(this.process(i,0),y=0);for(let M=y;MS.length)throw new Error("_sha2: outputLen bigger than state");for(let M=0;Mo&s^~o&n,Maj=(o,s,n)=>o&s^o&n^s&n,SHA256_K=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]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=0|IV[0],this.B=0|IV[1],this.C=0|IV[2],this.D=0|IV[3],this.E=0|IV[4],this.F=0|IV[5],this.G=0|IV[6],this.H=0|IV[7]}get(){const{A:s,B:n,C:i,D:a,E:c,F:y,G:w,H:C}=this;return[s,n,i,a,c,y,w,C]}set(s,n,i,a,c,y,w,C){this.A=0|s,this.B=0|n,this.C=0|i,this.D=0|a,this.E=0|c,this.F=0|y,this.G=0|w,this.H=0|C}process(s,n){for(let M=0;M<16;M++,n+=4)SHA256_W[M]=s.getUint32(n,!1);for(let M=16;M<64;M++){const k=SHA256_W[M-15],R=SHA256_W[M-2],X=rotr(k,7)^rotr(k,18)^k>>>3,Z=rotr(R,17)^rotr(R,19)^R>>>10;SHA256_W[M]=Z+SHA256_W[M-7]+X+SHA256_W[M-16]|0}let{A:i,B:a,C:c,D:y,E:w,F:C,G:T,H:S}=this;for(let M=0;M<64;M++){const k=S+(rotr(w,6)^rotr(w,11)^rotr(w,25))+Chi(w,C,T)+SHA256_K[M]+SHA256_W[M]|0,R=(rotr(i,2)^rotr(i,13)^rotr(i,22))+Maj(i,a,c)|0;S=T,T=C,C=w,w=y+k|0,y=c,c=a,a=i,i=k+R|0}i=i+this.A|0,a=a+this.B|0,c=c+this.C|0,y=y+this.D|0,w=w+this.E|0,C=C+this.F|0,T=T+this.G|0,S=S+this.H|0,this.set(i,a,c,y,w,C,T,S)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const sha256=wrapConstructor(()=>new SHA256),U32_MASK64=BigInt(2**32-1),_32n=BigInt(32);function fromBig(o,s=!1){return s?{h:Number(o&U32_MASK64),l:Number(o>>_32n&U32_MASK64)}:{h:0|Number(o>>_32n&U32_MASK64),l:0|Number(o&U32_MASK64)}}function split(o,s=!1){let n=new Uint32Array(o.length),i=new Uint32Array(o.length);for(let a=0;aBigInt(o>>>0)<<_32n|BigInt(s>>>0),shrSH=(o,s,n)=>o>>>n,shrSL=(o,s,n)=>o<<32-n|s>>>n,rotrSH=(o,s,n)=>o>>>n|s<<32-n,rotrSL=(o,s,n)=>o<<32-n|s>>>n,rotrBH=(o,s,n)=>o<<64-n|s>>>n-32,rotrBL=(o,s,n)=>o>>>n-32|s<<64-n,rotr32H=(o,s)=>s,rotr32L=(o,s)=>o,rotlSH=(o,s,n)=>o<>>32-n,rotlSL=(o,s,n)=>s<>>32-n,rotlBH=(o,s,n)=>s<>>64-n,rotlBL=(o,s,n)=>o<>>64-n;function add(o,s,n,i){const a=(s>>>0)+(i>>>0);return{h:o+n+(a/2**32|0)|0,l:0|a}}const add3L=(o,s,n)=>(o>>>0)+(s>>>0)+(n>>>0),add3H=(o,s,n,i)=>s+n+i+(o/2**32|0)|0,add4L=(o,s,n,i)=>(o>>>0)+(s>>>0)+(n>>>0)+(i>>>0),add4H=(o,s,n,i,a)=>s+n+i+a+(o/2**32|0)|0,add5L=(o,s,n,i,a)=>(o>>>0)+(s>>>0)+(n>>>0)+(i>>>0)+(a>>>0),add5H=(o,s,n,i,a,c)=>s+n+i+a+c+(o/2**32|0)|0,u64={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L},[SHA512_Kh,SHA512_Kl]=u64.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(o=>BigInt(o))),SHA512_W_H=new Uint32Array(80),SHA512_W_L=new Uint32Array(80);class SHA512 extends SHA2{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:s,Al:n,Bh:i,Bl:a,Ch:c,Cl:y,Dh:w,Dl:C,Eh:T,El:S,Fh:M,Fl:k,Gh:R,Gl:X,Hh:Z,Hl:re}=this;return[s,n,i,a,c,y,w,C,T,S,M,k,R,X,Z,re]}set(s,n,i,a,c,y,w,C,T,S,M,k,R,X,Z,re){this.Ah=0|s,this.Al=0|n,this.Bh=0|i,this.Bl=0|a,this.Ch=0|c,this.Cl=0|y,this.Dh=0|w,this.Dl=0|C,this.Eh=0|T,this.El=0|S,this.Fh=0|M,this.Fl=0|k,this.Gh=0|R,this.Gl=0|X,this.Hh=0|Z,this.Hl=0|re}process(s,n){for(let de=0;de<16;de++,n+=4)SHA512_W_H[de]=s.getUint32(n),SHA512_W_L[de]=s.getUint32(n+=4);for(let de=16;de<80;de++){const De=0|SHA512_W_H[de-15],Ee=0|SHA512_W_L[de-15],Le=u64.rotrSH(De,Ee,1)^u64.rotrSH(De,Ee,8)^u64.shrSH(De,Ee,7),Ae=u64.rotrSL(De,Ee,1)^u64.rotrSL(De,Ee,8)^u64.shrSL(De,Ee,7),we=0|SHA512_W_H[de-2],le=0|SHA512_W_L[de-2],ae=u64.rotrSH(we,le,19)^u64.rotrBH(we,le,61)^u64.shrSH(we,le,6),xe=u64.rotrSL(we,le,19)^u64.rotrBL(we,le,61)^u64.shrSL(we,le,6),Be=u64.add4L(Ae,xe,SHA512_W_L[de-7],SHA512_W_L[de-16]),st=u64.add4H(Be,Le,ae,SHA512_W_H[de-7],SHA512_W_H[de-16]);SHA512_W_H[de]=0|st,SHA512_W_L[de]=0|Be}let{Ah:i,Al:a,Bh:c,Bl:y,Ch:w,Cl:C,Dh:T,Dl:S,Eh:M,El:k,Fh:R,Fl:X,Gh:Z,Gl:re,Hh:_e,Hl:pe}=this;for(let de=0;de<80;de++){const De=u64.rotrSH(M,k,14)^u64.rotrSH(M,k,18)^u64.rotrBH(M,k,41),Ee=u64.rotrSL(M,k,14)^u64.rotrSL(M,k,18)^u64.rotrBL(M,k,41),Le=M&R^~M&Z,we=u64.add5L(pe,Ee,k&X^~k&re,SHA512_Kl[de],SHA512_W_L[de]),le=u64.add5H(we,_e,De,Le,SHA512_Kh[de],SHA512_W_H[de]),ae=0|we,xe=u64.rotrSH(i,a,28)^u64.rotrBH(i,a,34)^u64.rotrBH(i,a,39),Be=u64.rotrSL(i,a,28)^u64.rotrBL(i,a,34)^u64.rotrBL(i,a,39),st=i&c^i&w^c&w,lt=a&y^a&C^y&C;_e=0|Z,pe=0|re,Z=0|R,re=0|X,R=0|M,X=0|k,({h:M,l:k}=u64.add(0|T,0|S,0|le,0|ae)),T=0|w,S=0|C,w=0|c,C=0|y,c=0|i,y=0|a;const bt=u64.add3L(ae,Be,lt);i=u64.add3H(bt,le,xe,st),a=0|bt}({h:i,l:a}=u64.add(0|this.Ah,0|this.Al,0|i,0|a)),({h:c,l:y}=u64.add(0|this.Bh,0|this.Bl,0|c,0|y)),({h:w,l:C}=u64.add(0|this.Ch,0|this.Cl,0|w,0|C)),({h:T,l:S}=u64.add(0|this.Dh,0|this.Dl,0|T,0|S)),({h:M,l:k}=u64.add(0|this.Eh,0|this.El,0|M,0|k)),({h:R,l:X}=u64.add(0|this.Fh,0|this.Fl,0|R,0|X)),({h:Z,l:re}=u64.add(0|this.Gh,0|this.Gl,0|Z,0|re)),({h:_e,l:pe}=u64.add(0|this.Hh,0|this.Hl,0|_e,0|pe)),this.set(i,a,c,y,w,C,T,S,M,k,R,X,Z,re,_e,pe)}roundClean(){SHA512_W_H.fill(0),SHA512_W_L.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 sha512=wrapConstructor(()=>new SHA512);function isBytes(o){return o instanceof Uint8Array||null!=o&&"object"==typeof o&&"Uint8Array"===o.constructor.name}function chain(...o){const s=i=>i,n=(i,a)=>c=>i(a(c));return{encode:o.map(i=>i.encode).reduceRight(n,s),decode:o.map(i=>i.decode).reduce(n,s)}}function alphabet(o){return{encode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("alphabet.encode input should be an array of numbers");return s.map(n=>{if(n<0||n>=o.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${o.length})`);return o[n]})},decode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("alphabet.decode input should be array of strings");return s.map(n=>{if("string"!=typeof n)throw new Error(`alphabet.decode: not string element=${n}`);const i=o.indexOf(n);if(-1===i)throw new Error(`Unknown letter: "${n}". Allowed: ${o}`);return i})}}}function join(o=""){if("string"!=typeof o)throw new Error("join separator should be string");return{encode:s=>{if(!Array.isArray(s)||s.length&&"string"!=typeof s[0])throw new Error("join.encode input should be array of strings");for(let n of s)if("string"!=typeof n)throw new Error(`join.encode: non-string input=${n}`);return s.join(o)},decode:s=>{if("string"!=typeof s)throw new Error("join.decode input should be string");return s.split(o)}}}function padding(o,s="="){if("string"!=typeof s)throw new Error("padding chr should be string");return{encode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let i of n)if("string"!=typeof i)throw new Error(`padding.encode: non-string input=${i}`);for(;n.length*o%8;)n.push(s);return n},decode(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");for(let a of n)if("string"!=typeof a)throw new Error(`padding.decode: non-string input=${a}`);let i=n.length;if(i*o%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;i>0&&n[i-1]===s;i--)if(!((i-1)*o%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,i)}}}function convertRadix(o,s,n){if(s<2)throw new Error(`convertRadix: wrong from=${s}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);if(!Array.isArray(o))throw new Error("convertRadix: data should be array");if(!o.length)return[];let i=0;const a=[],c=Array.from(o);for(c.forEach(y=>{if(y<0||y>=s)throw new Error(`Wrong integer: ${y}`)});;){let y=0,w=!0;for(let C=i;Cs?gcd(s,o%s):o,radix2carry=(o,s)=>o+(s-gcd(o,s));function convertRadix2(o,s,n,i){if(!Array.isArray(o))throw new Error("convertRadix2: data should be array");if(s<=0||s>32)throw new Error(`convertRadix2: wrong from=${s}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(radix2carry(s,n)>32)throw new Error(`convertRadix2: carry overflow from=${s} to=${n} carryBits=${radix2carry(s,n)}`);let a=0,c=0;const y=2**n-1,w=[];for(const C of o){if(C>=2**s)throw new Error(`convertRadix2: invalid data word=${C} from=${s}`);if(a=a<32)throw new Error(`convertRadix2: carry overflow pos=${c} from=${s}`);for(c+=s;c>=n;c-=n)w.push((a>>c-n&y)>>>0);a&=2**c-1}if(a=a<=s)throw new Error("Excess padding");if(!i&&a)throw new Error(`Non-zero padding: ${a}`);return i&&c>0&&w.push(a>>>0),w}function radix(o){return{encode:s=>{if(!isBytes(s))throw new Error("radix.encode input should be Uint8Array");return convertRadix(Array.from(s),256,o)},decode:s=>{if(!Array.isArray(s)||s.length&&"number"!=typeof s[0])throw new Error("radix.decode input should be array of numbers");return Uint8Array.from(convertRadix(s,o,256))}}}function radix2(o,s=!1){if(o<=0||o>32)throw new Error("radix2: bits should be in (0..32]");if(radix2carry(8,o)>32||radix2carry(o,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!isBytes(n))throw new Error("radix2.encode input should be Uint8Array");return convertRadix2(Array.from(n),8,o,!s)},decode:n=>{if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of numbers");return Uint8Array.from(convertRadix2(n,o,8,s))}}}function unsafeWrapper(o){if("function"!=typeof o)throw new Error("unsafeWrapper fn should be function");return function(...s){try{return o.apply(null,s)}catch{}}}function checksum(o,s){if("function"!=typeof s)throw new Error("checksum fn should be function");return{encode(n){if(!isBytes(n))throw new Error("checksum.encode: input should be Uint8Array");const i=s(n).slice(0,o),a=new Uint8Array(n.length+o);return a.set(n),a.set(i,n.length),a},decode(n){if(!isBytes(n))throw new Error("checksum.decode: input should be Uint8Array");const i=n.slice(0,-o),a=s(i).slice(0,o),c=n.slice(-o);for(let y=0;ychain(radix(58),alphabet(o),join("")),base58=genBase58("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),createBase58check=o=>chain(checksum(4,s=>o(o(s))),base58),base58check$1=createBase58check,BECH_ALPHABET=chain(alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),join("")),POLYMOD_GENERATORS=[996825010,642813549,513874426,1027748829,705979059];function bech32Polymod(o){const s=o>>25;let n=(33554431&o)<<5;for(let i=0;i>i&1)&&(n^=POLYMOD_GENERATORS[i]);return n}function bechChecksum(o,s,n=1){const i=o.length;let a=1;for(let c=0;c126)throw new Error(`Invalid prefix (${o})`);a=bech32Polymod(a)^y>>5}a=bech32Polymod(a);for(let c=0;cC)throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${C})`);const T=w.toLowerCase();if(w!==T&&w!==w.toUpperCase())throw new Error("String must be lowercase or uppercase");const S=(w=T).lastIndexOf("1");if(0===S||-1===S)throw new Error('Letter "1" must be present between prefix and data only');const M=w.slice(0,S),k=w.slice(S+1);if(k.length<6)throw new Error("Data must be at least 6 characters long");const R=BECH_ALPHABET.decode(k).slice(0,-6),X=bechChecksum(M,R,s);if(!k.endsWith(X))throw new Error(`Invalid checksum in ${w}: expected "${X}"`);return{prefix:M,words:R}}return{encode:function(w,C,T=90){if("string"!=typeof w)throw new Error("bech32.encode prefix should be string, not "+typeof w);if(!Array.isArray(C)||C.length&&"number"!=typeof C[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof C);const S=w.length+7+C.length;if(!1!==T&&S>T)throw new TypeError(`Length ${S} exceeds limit ${T}`);const M=w.toLowerCase(),k=bechChecksum(M,C,s);return`${M}1${BECH_ALPHABET.encode(C)}${k}`},decode:y,decodeToBytes:function(w){const{prefix:C,words:T}=y(w,!1);return{prefix:C,words:T,bytes:i(T)}},decodeUnsafe:unsafeWrapper(y),fromWords:i,fromWordsUnsafe:c,toWords:a}}const bech32=genBech32("bech32"),isJapanese=o=>"\u3042\u3044\u3053\u304f\u3057\u3093"===o[0];function nfkd(o){if("string"!=typeof o)throw new TypeError("Invalid mnemonic type: "+typeof o);return o.normalize("NFKD")}function normalize(o){const s=nfkd(o),n=s.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:s,words:n}}function assertEntropy(o){assert$1.bytes(o,16,20,24,28,32)}function generateMnemonic(o,s=128){if(assert$1.number(s),s%32!=0||s>256)throw new TypeError("Invalid entropy");return entropyToMnemonic(randomBytes(s/8),o)}const calcChecksum=o=>{const s=8-o.length/4;return new Uint8Array([sha256(o)[0]>>s<{if("string"!=typeof s)throw new Error(`Wordlist: non-string element: ${s}`)}),utils$1.chain(utils$1.checksum(1,calcChecksum),utils$1.radix2(11,!0),utils$1.alphabet(o))}function mnemonicToEntropy(o,s){const{words:n}=normalize(o),i=getCoder(s).decode(n);return assertEntropy(i),i}function entropyToMnemonic(o,s){return assertEntropy(o),getCoder(s).encode(o).join(isJapanese(s)?"\u3000":" ")}function validateMnemonic(o,s){try{mnemonicToEntropy(o,s)}catch{return!1}return!0}const salt=o=>nfkd(`mnemonic${o}`);function mnemonicToSeedSync(o,s=""){return pbkdf2(sha512,normalize(o).nfkd,salt(s),{c:2048,dkLen:64})}const Rho=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Id=Uint8Array.from({length:16},(o,s)=>s),Pi=Id.map(o=>(9*o+5)%16);let idxL=[Id],idxR=[Pi];for(let o=0;o<4;o++)for(let s of[idxL,idxR])s.push(s[o].map(n=>Rho[n]));const shifts=[[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(o=>new Uint8Array(o)),shiftsL=idxL.map((o,s)=>o.map(n=>shifts[s][n])),shiftsR=idxR.map((o,s)=>o.map(n=>shifts[s][n])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(o,s)=>o<>>32-s;function f(o,s,n,i){return 0===o?s^n^i:1===o?s&n|~s&i:2===o?(s|~n)^i:3===o?s&i|n&~i:s^(n|~i)}const BUF=new Uint32Array(16);class RIPEMD160 extends SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:s,h1:n,h2:i,h3:a,h4:c}=this;return[s,n,i,a,c]}set(s,n,i,a,c){this.h0=0|s,this.h1=0|n,this.h2=0|i,this.h3=0|a,this.h4=0|c}process(s,n){for(let R=0;R<16;R++,n+=4)BUF[R]=s.getUint32(n,!0);let i=0|this.h0,a=i,c=0|this.h1,y=c,w=0|this.h2,C=w,T=0|this.h3,S=T,M=0|this.h4,k=M;for(let R=0;R<5;R++){const X=4-R,Z=Kl[R],re=Kr[R],_e=idxL[R],pe=idxR[R],de=shiftsL[R],De=shiftsR[R];for(let Ee=0;Ee<16;Ee++){const Le=rotl$1(i+f(R,c,w,T)+BUF[_e[Ee]]+Z,de[Ee])+M|0;i=M,M=T,T=0|rotl$1(w,10),w=c,c=Le}for(let Ee=0;Ee<16;Ee++){const Le=rotl$1(a+f(X,y,C,S)+BUF[pe[Ee]]+re,De[Ee])+k|0;a=k,k=S,S=0|rotl$1(C,10),C=y,y=Le}}this.set(this.h1+w+S|0,this.h2+T+k|0,this.h3+M+a|0,this.h4+i+y|0,this.h0+c+C|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const ripemd160=wrapConstructor(()=>new RIPEMD160),Point=secp256k1.ProjectivePoint,base58check=base58check$1(sha256);function bytesToNumber(o){return BigInt(`0x${bytesToHex(o)}`)}function numberToBytes(o){return hexToBytes(o.toString(16).padStart(64,"0"))}const MASTER_SECRET=utf8ToBytes$1("Bitcoin seed"),BITCOIN_VERSIONS={private:76066276,public:76067358},HARDENED_OFFSET=2147483648,hash160=o=>ripemd160(sha256(o)),fromU32=o=>createView(o).getUint32(0,!1),toU32=o=>{if(!Number.isSafeInteger(o)||o<0||o>2**32-1)throw new Error(`Invalid number=${o}. Should be from 0 to 2 ** 32 - 1`);const s=new Uint8Array(4);return createView(s).setUint32(0,o,!1),s};class HDKey{get fingerprint(){if(!this.pubHash)throw new Error("No publicKey set!");return fromU32(this.pubHash)}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 s=this.privateKey;if(!s)throw new Error("No private key");return base58check.encode(this.serialize(this.versions.private,concatBytes(new Uint8Array([0]),s)))}get publicExtendedKey(){if(!this.pubKey)throw new Error("No public key");return base58check.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(s,n=BITCOIN_VERSIONS){if(bytes$1(s),8*s.length<128||8*s.length>512)throw new Error(`HDKey: wrong seed length=${s.length}. Should be between 128 and 512 bits; 256 bits is advised)`);const i=hmac$1(sha512,MASTER_SECRET,s);return new HDKey({versions:n,chainCode:i.slice(32),privateKey:i.slice(0,32)})}static fromExtendedKey(s,n=BITCOIN_VERSIONS){const i=base58check.decode(s),a=createView(i),c=a.getUint32(0,!1),y={versions:n,depth:i[4],parentFingerprint:a.getUint32(5,!1),index:a.getUint32(9,!1),chainCode:i.slice(13,45)},w=i.slice(45),C=0===w[0];if(c!==n[C?"private":"public"])throw new Error("Version mismatch");return new HDKey(C?{...y,privateKey:w.slice(1)}:{...y,publicKey:w})}static fromJSON(s){return HDKey.fromExtendedKey(s.xpriv)}constructor(s){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!s||"object"!=typeof s)throw new Error("HDKey.constructor must not be called directly");if(this.versions=s.versions||BITCOIN_VERSIONS,this.depth=s.depth||0,this.chainCode=s.chainCode,this.index=s.index||0,this.parentFingerprint=s.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw new Error("HDKey: zero depth with non-zero index/parent fingerprint");if(s.publicKey&&s.privateKey)throw new Error("HDKey: publicKey and privateKey at same time.");if(s.privateKey){if(!secp256k1.utils.isValidPrivateKey(s.privateKey))throw new Error("Invalid private key");this.privKey="bigint"==typeof s.privateKey?s.privateKey:bytesToNumber(s.privateKey),this.privKeyBytes=numberToBytes(this.privKey),this.pubKey=secp256k1.getPublicKey(s.privateKey,!0)}else{if(!s.publicKey)throw new Error("HDKey: no public or private key provided");this.pubKey=Point.fromHex(s.publicKey).toRawBytes(!0)}this.pubHash=hash160(this.pubKey)}derive(s){if(!/^[mM]'?/.test(s))throw new Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(s))return this;const n=s.replace(/^[mM]'?\//,"").split("/");let i=this;for(const a of n){const c=/^(\d+)('?)$/.exec(a);if(!c||3!==c.length)throw new Error(`Invalid child index: ${a}`);let y=+c[1];if(!Number.isSafeInteger(y)||y>=HARDENED_OFFSET)throw new Error("Invalid index");"'"===c[2]&&(y+=HARDENED_OFFSET),i=i.deriveChild(y)}return i}deriveChild(s){if(!this.pubKey||!this.chainCode)throw new Error("No publicKey or chainCode set");let n=toU32(s);if(s>=HARDENED_OFFSET){const w=this.privateKey;if(!w)throw new Error("Could not derive hardened child key");n=concatBytes(new Uint8Array([0]),w,n)}else n=concatBytes(this.pubKey,n);const i=hmac$1(sha512,this.chainCode,n),a=bytesToNumber(i.slice(0,32)),c=i.slice(32);if(!secp256k1.utils.isValidPrivateKey(a))throw new Error("Tweak bigger than curve order");const y={versions:this.versions,chainCode:c,depth:this.depth+1,parentFingerprint:this.fingerprint,index:s};try{if(this.privateKey){const w=mod(this.privKey+a,secp256k1.CURVE.n);if(!secp256k1.utils.isValidPrivateKey(w))throw new Error("The tweak was out of range or the resulted private key is invalid");y.privateKey=w}else{const w=Point.fromHex(this.pubKey).add(Point.fromPrivateKey(a));if(w.equals(Point.ZERO))throw new Error("The tweak was equal to negative P, which made the result key invalid");y.publicKey=w.toRawBytes(!0)}return new HDKey(y)}catch{return this.deriveChild(s+1)}}sign(s){if(!this.privateKey)throw new Error("No privateKey set!");return bytes$1(s,32),secp256k1.sign(s,this.privKey).toCompactRawBytes()}verify(s,n){if(bytes$1(s,32),bytes$1(n,64),!this.publicKey)throw new Error("No publicKey set!");let i;try{i=secp256k1.Signature.fromCompact(n)}catch{return!1}return secp256k1.verify(i,s,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(s,n){if(!this.chainCode)throw new Error("No chainCode set");return bytes$1(n,33),concatBytes(toU32(s),new Uint8Array([this.depth]),toU32(this.parentFingerprint),toU32(this.index),this.chainCode,n)}}const u8a=o=>o instanceof Uint8Array,u32=o=>new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)),isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes(o){if("string"!=typeof o)throw new Error("utf8ToBytes expected string, got "+typeof o);return new Uint8Array((new TextEncoder).encode(o))}function toBytes(o){if("string"==typeof o&&(o=utf8ToBytes(o)),!u8a(o))throw new Error("expected Uint8Array, got "+typeof o);return o}const isPlainObject=o=>"[object Object]"===Object.prototype.toString.call(o)&&o.constructor===Object;function checkOpts(o,s){if(void 0!==s&&("object"!=typeof s||!isPlainObject(s)))throw new Error("options must be object or undefined");return Object.assign(o,s)}function ensureBytes(o,s){if(!(o instanceof Uint8Array))throw new Error("Uint8Array expected");if("number"==typeof s&&o.length!==s)throw new Error(`Uint8Array length ${s} expected`)}function equalBytes(o,s){if(o.length!==s.length)throw new Error("equalBytes: Different size of Uint8Arrays");let n=!0;for(let i=0;i0&&!s.includes(o.length))throw new Error(`Expected Uint8Array of length ${s}, not of length=${o.length}`)}function hash(o){if("function"!=typeof o||"function"!=typeof o.create)throw new Error("hash must be wrapped by utils.wrapConstructor");number(o.outputLen),number(o.blockLen)}function exists(o,s=!0){if(o.destroyed)throw new Error("Hash instance has been destroyed");if(s&&o.finished)throw new Error("Hash#digest() has already been called")}function output(o,s){bytes(o);const n=s.outputLen;if(o.length255&o[s++]|(255&o[s++])<<8;class Poly1305{constructor(s){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,ensureBytes(s=toBytes(s),32);const n=u8to16(s,0),i=u8to16(s,2),a=u8to16(s,4),c=u8to16(s,6),y=u8to16(s,8),w=u8to16(s,10),C=u8to16(s,12),T=u8to16(s,14);this.r[0]=8191&n,this.r[1]=8191&(n>>>13|i<<3),this.r[2]=7939&(i>>>10|a<<6),this.r[3]=8191&(a>>>7|c<<9),this.r[4]=255&(c>>>4|y<<12),this.r[5]=y>>>1&8190,this.r[6]=8191&(y>>>14|w<<2),this.r[7]=8065&(w>>>11|C<<5),this.r[8]=8191&(C>>>8|T<<8),this.r[9]=T>>>5&127;for(let S=0;S<8;S++)this.pad[S]=u8to16(s,16+2*S)}process(s,n,i=!1){const a=i?0:2048,{h:c,r:y}=this,w=y[0],C=y[1],T=y[2],S=y[3],M=y[4],k=y[5],R=y[6],X=y[7],Z=y[8],re=y[9],_e=u8to16(s,n+0),pe=u8to16(s,n+2),de=u8to16(s,n+4),De=u8to16(s,n+6),Ee=u8to16(s,n+8),Le=u8to16(s,n+10),Ae=u8to16(s,n+12),we=u8to16(s,n+14);let le=c[0]+(8191&_e),ae=c[1]+(8191&(_e>>>13|pe<<3)),xe=c[2]+(8191&(pe>>>10|de<<6)),Be=c[3]+(8191&(de>>>7|De<<9)),st=c[4]+(8191&(De>>>4|Ee<<12)),lt=c[5]+(Ee>>>1&8191),bt=c[6]+(8191&(Ee>>>14|Le<<2)),at=c[7]+(8191&(Le>>>11|Ae<<5)),sn=c[8]+(8191&(Ae>>>8|we<<8)),fn=c[9]+(we>>>5|a),En=0,Wn=En+le*w+ae*(5*re)+xe*(5*Z)+Be*(5*X)+st*(5*R);En=Wn>>>13,Wn&=8191,Wn+=lt*(5*k)+bt*(5*M)+at*(5*S)+sn*(5*T)+fn*(5*C),En+=Wn>>>13,Wn&=8191;let wn=En+le*C+ae*w+xe*(5*re)+Be*(5*Z)+st*(5*X);En=wn>>>13,wn&=8191,wn+=lt*(5*R)+bt*(5*k)+at*(5*M)+sn*(5*S)+fn*(5*T),En+=wn>>>13,wn&=8191;let Je=En+le*T+ae*C+xe*w+Be*(5*re)+st*(5*Z);En=Je>>>13,Je&=8191,Je+=lt*(5*X)+bt*(5*R)+at*(5*k)+sn*(5*M)+fn*(5*S),En+=Je>>>13,Je&=8191;let _t=En+le*S+ae*T+xe*C+Be*w+st*(5*re);En=_t>>>13,_t&=8191,_t+=lt*(5*Z)+bt*(5*X)+at*(5*R)+sn*(5*k)+fn*(5*M),En+=_t>>>13,_t&=8191;let ze=En+le*M+ae*S+xe*T+Be*C+st*w;En=ze>>>13,ze&=8191,ze+=lt*(5*re)+bt*(5*Z)+at*(5*X)+sn*(5*R)+fn*(5*k),En+=ze>>>13,ze&=8191;let Ue=En+le*k+ae*M+xe*S+Be*T+st*C;En=Ue>>>13,Ue&=8191,Ue+=lt*w+bt*(5*re)+at*(5*Z)+sn*(5*X)+fn*(5*R),En+=Ue>>>13,Ue&=8191;let Ft=En+le*R+ae*k+xe*M+Be*S+st*T;En=Ft>>>13,Ft&=8191,Ft+=lt*C+bt*w+at*(5*re)+sn*(5*Z)+fn*(5*X),En+=Ft>>>13,Ft&=8191;let Ke=En+le*X+ae*R+xe*k+Be*M+st*S;En=Ke>>>13,Ke&=8191,Ke+=lt*T+bt*C+at*w+sn*(5*re)+fn*(5*Z),En+=Ke>>>13,Ke&=8191;let Ze=En+le*Z+ae*X+xe*R+Be*k+st*M;En=Ze>>>13,Ze&=8191,Ze+=lt*S+bt*T+at*C+sn*w+fn*(5*re),En+=Ze>>>13,Ze&=8191;let it=En+le*re+ae*Z+xe*X+Be*R+st*k;En=it>>>13,it&=8191,it+=lt*M+bt*S+at*T+sn*C+fn*w,En+=it>>>13,it&=8191,En=(En<<2)+En|0,En=En+Wn|0,Wn=8191&En,En>>>=13,wn+=En,c[0]=Wn,c[1]=wn,c[2]=Je,c[3]=_t,c[4]=ze,c[5]=Ue,c[6]=Ft,c[7]=Ke,c[8]=Ze,c[9]=it}finalize(){const{h:s,pad:n}=this,i=new Uint16Array(10);let a=s[1]>>>13;s[1]&=8191;for(let w=2;w<10;w++)s[w]+=a,a=s[w]>>>13,s[w]&=8191;s[0]+=5*a,a=s[0]>>>13,s[0]&=8191,s[1]+=a,a=s[1]>>>13,s[1]&=8191,s[2]+=a,i[0]=s[0]+5,a=i[0]>>>13,i[0]&=8191;for(let w=1;w<10;w++)i[w]=s[w]+a,a=i[w]>>>13,i[w]&=8191;i[9]-=8192;let c=(1^a)-1;for(let w=0;w<10;w++)i[w]&=c;c=~c;for(let w=0;w<10;w++)s[w]=s[w]&c|i[w];s[0]=65535&(s[0]|s[1]<<13),s[1]=65535&(s[1]>>>3|s[2]<<10),s[2]=65535&(s[2]>>>6|s[3]<<7),s[3]=65535&(s[3]>>>9|s[4]<<4),s[4]=65535&(s[4]>>>12|s[5]<<1|s[6]<<14),s[5]=65535&(s[6]>>>2|s[7]<<11),s[6]=65535&(s[7]>>>5|s[8]<<8),s[7]=65535&(s[8]>>>8|s[9]<<5);let y=s[0]+n[0];s[0]=65535&y;for(let w=1;w<8;w++)y=(s[w]+n[w]|0)+(y>>>16)|0,s[w]=65535&y}update(s){assert.exists(this);const{buffer:n,blockLen:i}=this,a=(s=toBytes(s)).length;for(let c=0;c>>0,s[c++]=i[y]>>>8;return s}digest(){const{buffer:s,outputLen:n}=this;this.digestInto(s);const i=s.slice(0,n);return this.destroy(),i}}function wrapConstructorWithKey(o){const s=(i,a)=>o(a).update(toBytes(i)).digest(),n=o(new Uint8Array(32));return s.outputLen=n.outputLen,s.blockLen=n.blockLen,s.create=i=>o(i),s}wrapConstructorWithKey(o=>new Poly1305(o));const sigma16=utf8ToBytes("expand 16-byte k"),sigma32=utf8ToBytes("expand 32-byte k"),sigma16_32=u32(sigma16),sigma32_32=u32(sigma32),isAligned32=o=>!(o.byteOffset%4),salsaBasic=o=>{const{core:s,rounds:n,counterRight:i,counterLen:a,allow128bitKeys:c,extendNonceFn:y,blockLen:w}=checkOpts({rounds:20,counterRight:!1,counterLen:8,allow128bitKeys:!0,blockLen:64},o);assert.number(a),assert.number(n),assert.number(w),assert.bool(i),assert.bool(c);const C=w/4;if(w%4!=0)throw new Error("Salsa/ChaCha: blockLen must be aligned to 4 bytes");return(T,S,M,k,R=0)=>{if(assert.bytes(T),assert.bytes(S),assert.bytes(M),k||(k=new Uint8Array(M.length)),assert.bytes(k),assert.number(R),R<0||R>=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");if(k.length=2**32-1)throw new Error("Salsa/ChaCha: counter overflow");const xe=Math.min(w,we-le);if(xe===w&&Ae&&Le){const Be=le/4;if(le%4!=0)throw new Error("Salsa/ChaCha: invalid block position");for(let st=0;sto<>>32-s;function chachaCore(o,s,n,i,a,c=20){let y=o[0],w=o[1],C=o[2],T=o[3],S=s[0],M=s[1],k=s[2],R=s[3],X=s[4],Z=s[5],re=s[6],_e=s[7],pe=a,de=n[0],De=n[1],Ee=n[2],Le=y,Ae=w,we=C,le=T,ae=S,xe=M,Be=k,st=R,lt=X,bt=Z,at=re,sn=_e,fn=pe,En=de,Wn=De,wn=Ee;for(let _t=0;_ta?s.create().update(i).digest():i);for(let y=0;ynew HMAC(o,s).update(n).digest();function extract$1(o,s,n){return assert$2.hash(o),void 0===n&&(n=new Uint8Array(o.outputLen)),hmac(o,toBytes$2(n),toBytes$2(s))}hmac.create=(o,s)=>new HMAC(o,s);const HKDF_COUNTER$1=new Uint8Array([0]),EMPTY_BUFFER$1=new Uint8Array;function expand$1(o,s,n,i=32){if(assert$2.hash(o),assert$2.number(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===n&&(n=EMPTY_BUFFER$1);const c=new Uint8Array(a*o.outputLen),y=hmac.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Texpand$1(o,extract$1(o,s,n),i,a);var __defProp=Object.defineProperty,__export=(o,s)=>{for(var n in s)__defProp(o,n,{get:s[n],enumerable:!0})};function generatePrivateKey(){return bytesToHex$1(schnorr.utils.randomPrivateKey())}function getPublicKey(o){return bytesToHex$1(schnorr.getPublicKey(o))}var utils_exports={};__export(utils_exports,{MessageNode:()=>MessageNode,MessageQueue:()=>MessageQueue,insertEventIntoAscendingList:()=>insertEventIntoAscendingList,insertEventIntoDescendingList:()=>insertEventIntoDescendingList,normalizeURL:()=>normalizeURL,utf8Decoder:()=>utf8Decoder,utf8Encoder:()=>utf8Encoder});var utf8Decoder=new TextDecoder("utf-8"),utf8Encoder=new TextEncoder;function normalizeURL(o){let s=new URL(o);return s.pathname=s.pathname.replace(/\/+/g,"/"),s.pathname.endsWith("/")&&(s.pathname=s.pathname.slice(0,-1)),("80"===s.port&&"ws:"===s.protocol||"443"===s.port&&"wss:"===s.protocol)&&(s.port=""),s.searchParams.sort(),s.hash="",s.toString()}function insertEventIntoDescendingList(o,s){let n,i=0,a=o.length-1,c=i;if(a<0)c=0;else if(s.created_at=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(n=Math.floor(i+(a-i)/2),o[n].created_at>s.created_at)i=n;else{if(!(o[n].created_ato[a].created_at)c=a+1;else if(s.created_at<=o[i].created_at)c=i;else for(;;){if(a<=i+1){c=a;break}if(n=Math.floor(i+(a-i)/2),o[n].created_ats.created_at)){c=n;break}a=n}}return o[c]?.id!==s.id?[...o.slice(0,c),s,...o.slice(c)]:o}var MessageNode=class{_value;_next;get value(){return this._value}set value(o){this._value=o}get next(){return this._next}set next(o){this._next=o}constructor(o){this._value=o,this._next=null}},MessageQueue=class{_first;_last;get first(){return this._first}set first(o){this._first=o}get last(){return this._last}set last(o){this._last=o}_size;get size(){return this._size}set size(o){this._size=o}constructor(){this._first=null,this._last=null,this._size=0}enqueue(o){const s=new MessageNode(o);return 0!==this._size&&this._last?(this._last.next=s,this._last=s):(this._first=s,this._last=s),this._size++,!0}dequeue(){if(0===this._size||!this._first)return null;let o=this._first;return this._first=o.next,o.next=null,this._size--,o.value}},verifiedSymbol=Symbol("verified");function getBlankEvent(o=255){return{kind:o,content:"",tags:[],created_at:0}}function finishEvent(o,s){const n=o;return n.pubkey=getPublicKey(s),n.id=getEventHash(n),n.sig=getSignature(n,s),n[verifiedSymbol]=!0,n}function serializeEvent(o){if(!validateEvent(o))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,o.pubkey,o.created_at,o.kind,o.tags,o.content])}function getEventHash(o){return bytesToHex$1(sha256$1(utf8Encoder.encode(serializeEvent(o))))}var isRecord=o=>o instanceof Object;function validateEvent(o){if(!isRecord(o)||"number"!=typeof o.kind||"string"!=typeof o.content||"number"!=typeof o.created_at||"string"!=typeof o.pubkey||!o.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(o.tags))return!1;for(let s=0;ss.id.startsWith(n))||o.kinds&&-1===o.kinds.indexOf(s.kind)||o.authors&&-1===o.authors.indexOf(s.pubkey)&&!o.authors.some(n=>s.pubkey.startsWith(n)))return!1;for(let n in o)if("#"===n[0]){let i=o[`#${n.slice(1)}`];if(i&&!s.tags.find(([a,c])=>a===n.slice(1)&&-1!==i.indexOf(c)))return!1}return!(o.since&&s.created_ato.until)}function matchFilters(o,s){for(let n=0;ngetHex64,getInt:()=>getInt,getSubscriptionId:()=>getSubscriptionId,matchEventId:()=>matchEventId,matchEventKind:()=>matchEventKind,matchEventPubkey:()=>matchEventPubkey});var newListeners=()=>({connect:[],disconnect:[],error:[],notice:[],auth:[]});function relayInit(o,s={}){let{listTimeout:n=3e3,getTimeout:i=3e3,countTimeout:a=3e3}=s;var c,y,w={},C=newListeners(),T={},S={};function M(){return 1===c?.readyState}function k(re){return R.apply(this,arguments)}function R(){return(R=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(re){let _e=JSON.stringify(re);if(M()||(yield new Promise(pe=>setTimeout(pe,1e3)),M()))try{c.send(_e)}catch(pe){console.log(pe)}})).apply(this,arguments)}const X=(re,{verb:_e="REQ",skipVerification:pe=!1,alreadyHaveEvent:de=null,id:De=Math.random().toString().slice(2)}={})=>{let Ee=De;w[Ee]={id:Ee,filters:re,skipVerification:pe,alreadyHaveEvent:de},k([_e,Ee,...re]);let Le={sub:(Ae,we={})=>X(Ae||re,{skipVerification:we.skipVerification||pe,alreadyHaveEvent:we.alreadyHaveEvent||de,id:Ee}),unsub:()=>{delete w[Ee],delete T[Ee],k(["CLOSE",Ee])},on:(Ae,we)=>{T[Ee]=T[Ee]||{event:[],count:[],eose:[]},T[Ee][Ae].push(we)},off:(Ae,we)=>{let le=T[Ee],ae=le[Ae].indexOf(we);ae>=0&&le[Ae].splice(ae,1)},get events(){return eventsGenerator(Le)}};return Le};function Z(re,_e){return new Promise((pe,de)=>{if(!re.id)return void de(new Error(`event ${re} has no id`));let De=re.id;k([_e,re]),S[De]={resolve:pe,reject:de}})}return{url:o,sub:X,on:(re,_e)=>{C[re].push(_e),"connect"===re&&1===c?.readyState&&_e()},off:(re,_e)=>{let pe=C[re].indexOf(_e);-1!==pe&&C[re].splice(pe,1)},list:(re,_e)=>new Promise(pe=>{let de=X(re,_e),De=[],Ee=setTimeout(()=>{de.unsub(),pe(De)},n);de.on("eose",()=>{de.unsub(),clearTimeout(Ee),pe(De)}),de.on("event",Le=>{De.push(Le)})}),get:(re,_e)=>new Promise(pe=>{let de=X([re],_e),De=setTimeout(()=>{de.unsub(),pe(null)},i);de.on("event",Ee=>{de.unsub(),clearTimeout(De),pe(Ee)})}),count:re=>new Promise(_e=>{let pe=X(re,{...X,verb:"COUNT"}),de=setTimeout(()=>{pe.unsub(),_e(null)},a);pe.on("count",De=>{pe.unsub(),clearTimeout(de),_e(De)})}),publish:re=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(re,"EVENT")})(),auth:re=>(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield Z(re,"AUTH")})(),connect:(re=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){M()||(yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return y||(y=new Promise((_e,pe)=>{try{c=new WebSocket(o)}catch(Le){pe(Le)}c.onopen=()=>{C.connect.forEach(Le=>Le()),_e()},c.onerror=()=>{y=void 0,C.error.forEach(Le=>Le()),pe()},c.onclose=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y=void 0,C.disconnect.forEach(Le=>Le())});let de,De=new MessageQueue;function Ee(){if(0===De.size)return clearInterval(de),void(de=null);var Le=De.dequeue();if(!Le)return;let Ae=getSubscriptionId(Le);if(Ae){let we=w[Ae];if(we&&we.alreadyHaveEvent&&we.alreadyHaveEvent(getHex64(Le,"id"),o))return}try{let we=JSON.parse(Le);switch(we[0]){case"EVENT":{let Be=we[1],st=we[2];return void(validateEvent(st)&&w[Be]&&(w[Be].skipVerification||verifySignature(st))&&matchFilters(w[Be].filters,st)&&(T[Be]?.event||[]).forEach(lt=>lt(st)))}case"COUNT":let le=we[1],ae=we[2];return void(w[le]&&(T[le]?.count||[]).forEach(Be=>Be(ae)));case"EOSE":{let Be=we[1];return void(Be in T&&(T[Be].eose.forEach(st=>st()),T[Be].eose=[]))}case"OK":{let Be=we[1],st=we[2],lt=we[3]||"";if(Be in S){let{resolve:bt,reject:at}=S[Be];st?bt(null):at(new Error(lt))}return}case"NOTICE":let xe=we[1];return void C.notice.forEach(Be=>Be(xe));case"AUTH":{let Be=we[1];return void C.auth?.forEach(st=>st(Be))}}}catch{return}}c.onmessage=Le=>{De.enqueue(Le.data),de||(de=setInterval(Ee,0))}}))})())}),function(){return re.apply(this,arguments)}),close(){C=newListeners(),T={},S={},c?.readyState===WebSocket.OPEN&&c.close()},get status(){return c?.readyState??3}};var re}function eventsGenerator(o){return _eventsGenerator.apply(this,arguments)}function _eventsGenerator(){return _eventsGenerator=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_wrapAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_0__.A)(function*(o){let s;const n=[],i=a=>{s?(s(a),s=void 0):n.push(a)};o.on("event",i);try{for(;;)n.length>0?yield n.shift():yield yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_awaitAsyncGenerator_js__WEBPACK_IMPORTED_MODULE_2__.A)(new Promise(c=>{s=c}))}finally{o.off("event",i)}}),_eventsGenerator.apply(this,arguments)}var nip19_exports={};__export(nip19_exports,{BECH32_REGEX:()=>BECH32_REGEX,decode:()=>decode,naddrEncode:()=>naddrEncode,neventEncode:()=>neventEncode,noteEncode:()=>noteEncode,nprofileEncode:()=>nprofileEncode,npubEncode:()=>npubEncode,nrelayEncode:()=>nrelayEncode,nsecEncode:()=>nsecEncode});var Bech32MaxSize=5e3,BECH32_REGEX=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function integerToUint8Array(o){const s=new Uint8Array(4);return s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s}function decode(o){let{prefix:s,words:n}=bech32$1.decode(o,Bech32MaxSize),i=new Uint8Array(bech32$1.fromWords(n));switch(s){case"nprofile":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nevent":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==a[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(a[2]&&32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(a[3]&&4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:bytesToHex$1(a[0][0]),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[],author:a[2]?.[0]?bytesToHex$1(a[2][0]):void 0,kind:a[3]?.[0]?parseInt(bytesToHex$1(a[3][0]),16):void 0}}}case"naddr":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!a[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==a[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!a[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==a[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:utf8Decoder.decode(a[0][0]),pubkey:bytesToHex$1(a[2][0]),kind:parseInt(bytesToHex$1(a[3][0]),16),relays:a[1]?a[1].map(c=>utf8Decoder.decode(c)):[]}}}case"nrelay":{let a=parseTLV(i);if(!a[0]?.[0])throw new Error("missing TLV 0 for nrelay");return{type:"nrelay",data:utf8Decoder.decode(a[0][0])}}case"nsec":case"npub":case"note":return{type:s,data:bytesToHex$1(i)};default:throw new Error(`unknown prefix ${s}`)}}function parseTLV(o){let s={},n=o;for(;n.length>0;){let i=n[0],a=n[1];if(!a)throw new Error(`malformed TLV ${i}`);let c=n.slice(2,2+a);if(n=n.slice(2+a),c.lengthutf8Encoder.encode(s))}))}function neventEncode(o){let s;return null!=o.kind&&(s=integerToUint8Array(o.kind)),encodeBech32("nevent",encodeTLV({0:[hexToBytes$1(o.id)],1:(o.relays||[]).map(n=>utf8Encoder.encode(n)),2:o.author?[hexToBytes$1(o.author)]:[],3:s?[new Uint8Array(s)]:[]}))}function naddrEncode(o){let s=new ArrayBuffer(4);return new DataView(s).setUint32(0,o.kind,!1),encodeBech32("naddr",encodeTLV({0:[utf8Encoder.encode(o.identifier)],1:(o.relays||[]).map(n=>utf8Encoder.encode(n)),2:[hexToBytes$1(o.pubkey)],3:[new Uint8Array(s)]}))}function nrelayEncode(o){return encodeBech32("nrelay",encodeTLV({0:[utf8Encoder.encode(o)]}))}function encodeTLV(o){let s=[];return Object.entries(o).forEach(([n,i])=>{i.forEach(a=>{let c=new Uint8Array(a.length+2);c.set([parseInt(n)],0),c.set([a.length],1),c.set(a,2),s.push(c)})}),concatBytes$1(...s)}var nip04_exports={};function encrypt$1(o,s,n){return _encrypt$.apply(this,arguments)}function _encrypt$(){return _encrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){const i=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s));let a=Uint8Array.from(randomBytes$1(16)),c=utf8Encoder.encode(n),y=yield crypto.subtle.importKey("raw",i,{name:"AES-CBC"},!1,["encrypt"]),w=yield crypto.subtle.encrypt({name:"AES-CBC",iv:a},y,c);return`${base64$1.encode(new Uint8Array(w))}?iv=${base64$1.encode(new Uint8Array(a.buffer))}`}),_encrypt$.apply(this,arguments)}function decrypt$1(o,s,n){return _decrypt$.apply(this,arguments)}function _decrypt$(){return _decrypt$=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){let[i,a]=n.split("?iv="),c=getNormalizedX(secp256k1.getSharedSecret(o,"02"+s)),y=yield crypto.subtle.importKey("raw",c,{name:"AES-CBC"},!1,["decrypt"]),w=base64$1.decode(i),C=base64$1.decode(a),T=yield crypto.subtle.decrypt({name:"AES-CBC",iv:C},y,w);return utf8Decoder.decode(T)}),_decrypt$.apply(this,arguments)}function getNormalizedX(o){return o.slice(1,33)}__export(nip04_exports,{decrypt:()=>decrypt$1,encrypt:()=>encrypt$1}),typeof crypto<"u"&&!crypto.subtle&&crypto.webcrypto&&(crypto.subtle=crypto.webcrypto.subtle);var nip05_exports={};__export(nip05_exports,{NIP05_REGEX:()=>NIP05_REGEX$1,queryProfile:()=>queryProfile,searchDomain:()=>searchDomain,useFetchImplementation:()=>useFetchImplementation});var NIP05_REGEX$1=/^(?:([\w.+-]+)@)?([\w.-]+)$/,_fetch;try{_fetch=fetch}catch{}function useFetchImplementation(o){_fetch=o}function searchDomain(o){return _searchDomain.apply(this,arguments)}function _searchDomain(){return _searchDomain=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=""){try{return(yield(yield _fetch(`https://${o}/.well-known/nostr.json?name=${s}`)).json()).names}catch{return{}}}),_searchDomain.apply(this,arguments)}function queryProfile(o){return _queryProfile.apply(this,arguments)}function _queryProfile(){return _queryProfile=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){const s=o.match(NIP05_REGEX$1);if(!s)return null;const[n,i="_",a]=s;try{const c=yield _fetch(`https://${a}/.well-known/nostr.json?name=${i}`),{names:y,relays:w}=parseNIP05Result$1(yield c.json()),C=y[i];return C?{pubkey:C,relays:w?.[C]}:null}catch{return null}}),_queryProfile.apply(this,arguments)}function parseNIP05Result$1(o){const s={names:{}};for(const[n,i]of Object.entries(o.names))"string"==typeof n&&"string"==typeof i&&(s.names[n]=i);if(o.relays){s.relays={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.relays[n]=i.filter(a=>"string"==typeof a))}return s}var nip06_exports={};function privateKeyFromSeedWords(o,s){let n=HDKey.fromMasterSeed(mnemonicToSeedSync(o,s)).derive("m/44'/1237'/0'/0/0").privateKey;if(!n)throw new Error("could not derive private key");return bytesToHex$1(n)}function generateSeedWords(){return generateMnemonic(wordlist)}function validateWords(o){return validateMnemonic(o,wordlist)}__export(nip06_exports,{generateSeedWords:()=>generateSeedWords,privateKeyFromSeedWords:()=>privateKeyFromSeedWords,validateWords:()=>validateWords});var nip10_exports={};function parse(o){const s={reply:void 0,root:void 0,mentions:[],profiles:[]},n=[];for(const i of o.tags)"e"===i[0]&&i[1]&&n.push(i),"p"===i[0]&&i[1]&&s.profiles.push({pubkey:i[1],relays:i[2]?[i[2]]:[]});for(let i=0;iparse});var nip13_exports={};function getPow(o){let s=0;for(let n=0;n=s)break}return i}__export(nip13_exports,{getPow:()=>getPow,minePow:()=>minePow});var nip18_exports={};function finishRepostEvent(o,s,n,i){return finishEvent({kind:6,tags:[...o.tags??[],["e",s.id,n],["p",s.pubkey]],content:""===o.content?"":JSON.stringify(s),created_at:o.created_at},i)}function getRepostedEventPointer(o){if(6!==o.kind)return;let s,n;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===n);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===n&&(n=a))}return void 0!==s?{id:s[1],relays:[s[2],n?.[2]].filter(i=>"string"==typeof i),author:n?.[1]}:void 0}function getRepostedEvent(o,{skipVerification:s}={}){const n=getRepostedEventPointer(o);if(void 0===n||""===o.content)return;let i;try{i=JSON.parse(o.content)}catch{return}return i.id===n.id&&(s||verifySignature(i))?i:void 0}__export(nip18_exports,{finishRepostEvent:()=>finishRepostEvent,getRepostedEvent:()=>getRepostedEvent,getRepostedEventPointer:()=>getRepostedEventPointer});var nip21_exports={};__export(nip21_exports,{NOSTR_URI_REGEX:()=>NOSTR_URI_REGEX,parse:()=>parse2,test:()=>test});var NOSTR_URI_REGEX=new RegExp(`nostr:(${BECH32_REGEX.source})`);function test(o){return"string"==typeof o&&new RegExp(`^${NOSTR_URI_REGEX.source}$`).test(o)}function parse2(o){const s=o.match(new RegExp(`^${NOSTR_URI_REGEX.source}$`));if(!s)throw new Error(`Invalid Nostr URI: ${o}`);return{uri:s[0],value:s[1],decoded:decode(s[1])}}var nip25_exports={};function finishReactionEvent(o,s,n){const i=s.tags.filter(a=>a.length>=2&&("e"===a[0]||"p"===a[0]));return finishEvent({...o,kind:7,tags:[...o.tags??[],...i,["e",s.id],["p",s.pubkey]],content:o.content??"+"},n)}function getReactedEventPointer(o){if(7!==o.kind)return;let s,n;for(let i=o.tags.length-1;i>=0&&(void 0===s||void 0===n);i--){const a=o.tags[i];a.length>=2&&("e"===a[0]&&void 0===s?s=a:"p"===a[0]&&void 0===n&&(n=a))}return void 0!==s&&void 0!==n?{id:s[1],relays:[s[2],n[2]].filter(i=>void 0!==i),author:n[1]}:void 0}__export(nip25_exports,{finishReactionEvent:()=>finishReactionEvent,getReactedEventPointer:()=>getReactedEventPointer});var nip26_exports={};function createDelegation(o,s){let n=[];(s.kind||-1)>=0&&n.push(`kind=${s.kind}`),s.until&&n.push(`created_at<${s.until}`),s.since&&n.push(`created_at>${s.since}`);let i=n.join("&");if(""===i)throw new Error("refusing to create a delegation without any conditions");let a=sha256$1(utf8Encoder.encode(`nostr:delegation:${s.pubkey}:${i}`)),c=bytesToHex$1(schnorr.sign(a,o));return{from:getPublicKey(o),to:s.pubkey,cond:i,sig:c}}function getDelegator(o){let s=o.tags.find(w=>"delegation"===w[0]&&w.length>=4);if(!s)return null;let n=s[1],i=s[2],a=s[3],c=i.split("&");for(let w=0;w"===T&&o.created_at>parseInt(S)))return null}let y=sha256$1(utf8Encoder.encode(`nostr:delegation:${o.pubkey}:${i}`));return schnorr.verify(a,y,n)?n:null}__export(nip26_exports,{createDelegation:()=>createDelegation,getDelegator:()=>getDelegator});var nip27_exports={};__export(nip27_exports,{matchAll:()=>matchAll,regex:()=>regex,replaceAll:()=>replaceAll});var regex=()=>new RegExp(`\\b${NOSTR_URI_REGEX.source}\\b`,"g");function*matchAll(o){const s=o.matchAll(regex());for(const n of s)try{const[i,a]=n;yield{uri:i,value:a,decoded:decode(a),start:n.index,end:n.index+i.length}}catch{}}function replaceAll(o,s){return o.replaceAll(regex(),(n,i)=>s({uri:n,value:i,decoded:decode(i)}))}var nip28_exports={};__export(nip28_exports,{channelCreateEvent:()=>channelCreateEvent,channelHideMessageEvent:()=>channelHideMessageEvent,channelMessageEvent:()=>channelMessageEvent,channelMetadataEvent:()=>channelMetadataEvent,channelMuteUserEvent:()=>channelMuteUserEvent});var channelCreateEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:40,tags:[...o.tags??[]],content:n,created_at:o.created_at},s)},channelMetadataEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:41,tags:[["e",o.channel_create_event_id],...o.tags??[]],content:n,created_at:o.created_at},s)},channelMessageEvent=(o,s)=>{const n=[["e",o.channel_create_event_id,o.relay_url,"root"]];return o.reply_to_channel_message_event_id&&n.push(["e",o.reply_to_channel_message_event_id,o.relay_url,"reply"]),finishEvent({kind:42,tags:[...n,...o.tags??[]],content:o.content,created_at:o.created_at},s)},channelHideMessageEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:43,tags:[["e",o.channel_message_event_id],...o.tags??[]],content:n,created_at:o.created_at},s)},channelMuteUserEvent=(o,s)=>{let n;if("object"==typeof o.content)n=JSON.stringify(o.content);else{if("string"!=typeof o.content)return;n=o.content}return finishEvent({kind:44,tags:[["p",o.pubkey_to_mute],...o.tags??[]],content:n,created_at:o.created_at},s)},nip39_exports={},_fetch2;__export(nip39_exports,{useFetchImplementation:()=>useFetchImplementation2,validateGithub:()=>validateGithub});try{_fetch2=fetch}catch{}function useFetchImplementation2(o){_fetch2=o}function validateGithub(o,s,n){return _validateGithub.apply(this,arguments)}function _validateGithub(){return _validateGithub=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){try{return(yield(yield _fetch2(`https://gist.github.com/${s}/${n}/raw`)).text())===`Verifying that I control the following Nostr public key: ${o}`}catch{return!1}}),_validateGithub.apply(this,arguments)}var nip42_exports={};__export(nip42_exports,{authenticate:()=>authenticate});var authenticate=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({challenge:s,relay:n,sign:i}){const a={kind:22242,created_at:Math.floor(Date.now()/1e3),tags:[["relay",n.url],["challenge",s]],content:""};return n.auth(yield i(a))});return function(n){return o.apply(this,arguments)}}(),nip44_exports={};__export(nip44_exports,{decrypt:()=>decrypt2,encrypt:()=>encrypt2,utils:()=>utils});var utils={v2:{maxPlaintextSize:65408,minCiphertextSize:100,maxCiphertextSize:102400,getConversationKey:(o,s)=>secp256k1.getSharedSecret(o,"02"+s).subarray(1,33),getMessageKeys(o,s){const n=hkdf(sha256$1,o,s,"nip44-v2",76);return{encryption:n.subarray(0,32),nonce:n.subarray(32,44),auth:n.subarray(44,76)}},calcPadding(o){if(!Number.isSafeInteger(o)||o<0)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<=utils.v2.maxPlaintextSize)throw new Error("invalid plaintext length: must be between 1b and 64KB");const i=utils.v2.calcPadding(n),a=new Uint8Array(i-n),c=new Uint8Array(2);return new DataView(c.buffer).setUint16(0,n),concatBytes$1(c,s,a)},unpad(o){const s=new DataView(o.buffer).getUint16(0),n=o.subarray(2,2+s);if(0===s||n.length!==s||o.length!==2+utils.v2.calcPadding(s))throw new Error("invalid padding");return utf8Decoder.decode(n)}}};function encrypt2(o,s,n={}){const i=n.version??2;if(2!==i)throw new Error("unknown encryption version "+i);const a=n.salt??randomBytes$1(32);ensureBytes(a,32);const c=utils.v2.getMessageKeys(o,a),y=utils.v2.pad(s),w=chacha20(c.encryption,c.nonce,y),C=hmac(sha256$1,c.auth,w);return base64$1.encode(concatBytes$1(new Uint8Array([i]),a,w,C))}function decrypt2(o,s){const n=utils.v2;ensureBytes(o,32);const i=s.length;if(i=n.maxCiphertextSize)throw new Error("invalid ciphertext length: "+i);if("#"===s[0])throw new Error("unknown encryption version");let a;try{a=base64$1.decode(s)}catch(M){throw new Error("invalid base64: "+M.message)}const c=a.subarray(0,1)[0];if(2!==c)throw new Error("unknown encryption version "+c);const y=a.subarray(1,33),w=a.subarray(33,-32),C=a.subarray(-32),T=n.getMessageKeys(o,y);if(!equalBytes(hmac(sha256$1,T.auth,w),C))throw new Error("invalid MAC");const S=chacha20(T.encryption,T.nonce,w);return n.unpad(S)}var nip47_exports={};function parseConnectionString(o){const{pathname:s,searchParams:n}=new URL(o),i=s,a=n.get("relay"),c=n.get("secret");if(!i||!a||!c)throw new Error("invalid connection string");return{pubkey:i,relay:a,secret:c}}function makeNwcRequestEvent(o){return _makeNwcRequestEvent.apply(this,arguments)}function _makeNwcRequestEvent(){return _makeNwcRequestEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*({pubkey:o,secret:s,invoice:n}){const i={method:"pay_invoice",params:{invoice:n}},a=yield encrypt$1(s,o,JSON.stringify(i));return finishEvent({kind:23194,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o]]},s)}),_makeNwcRequestEvent.apply(this,arguments)}__export(nip47_exports,{makeNwcRequestEvent:()=>makeNwcRequestEvent,parseConnectionString:()=>parseConnectionString});var nip57_exports={},_fetch3;__export(nip57_exports,{getZapEndpoint:()=>getZapEndpoint,makeZapReceipt:()=>makeZapReceipt,makeZapRequest:()=>makeZapRequest,useFetchImplementation:()=>useFetchImplementation3,validateZapRequest:()=>validateZapRequest});try{_fetch3=fetch}catch{}function useFetchImplementation3(o){_fetch3=o}function getZapEndpoint(o){return _getZapEndpoint.apply(this,arguments)}function _getZapEndpoint(){return _getZapEndpoint=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){try{let s="",{lud06:n,lud16:i}=JSON.parse(o.content);if(n){let{words:y}=bech32$1.decode(n,1e3),w=bech32$1.fromWords(y);s=utf8Decoder.decode(w)}else{if(!i)return null;{let[y,w]=i.split("@");s=`https://${w}/.well-known/lnurlp/${y}`}}let a=yield _fetch3(s),c=yield a.json();if(c.allowsNostr&&c.nostrPubkey)return c.callback}catch{}return null}),_getZapEndpoint.apply(this,arguments)}function makeZapRequest({profile:o,event:s,amount:n,relays:i,comment:a=""}){if(!n)throw new Error("amount not given");if(!o)throw new Error("profile not given");let c={kind:9734,created_at:Math.round(Date.now()/1e3),content:a,tags:[["p",o],["amount",n.toString()],["relays",...i]]};return s&&c.tags.push(["e",s]),c}function validateZapRequest(o){let s;try{s=JSON.parse(o)}catch{return"Invalid zap request JSON."}if(!validateEvent(s))return"Zap request is not a valid Nostr event.";if(!verifySignature(s))return"Invalid signature on zap request.";let n=s.tags.find(([a,c])=>"p"===a&&c);if(!n)return"Zap request doesn't have a 'p' tag.";if(!n[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let i=s.tags.find(([a,c])=>"e"===a&&c);return i&&!i[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":s.tags.find(([a,c])=>"relays"===a&&c)?null:"Zap request doesn't have a 'relays' tag."}function makeZapReceipt({zapRequest:o,preimage:s,bolt11:n,paidAt:i}){let a=JSON.parse(o).tags.filter(([y])=>"e"===y||"p"===y||"a"===y),c={kind:9735,created_at:Math.round(i.getTime()/1e3),content:"",tags:[...a,["bolt11",n],["description",o]]};return s&&c.tags.push(["preimage",s]),c}var nip98_exports={};__export(nip98_exports,{getToken:()=>getToken,unpackEventFromToken:()=>unpackEventFromToken,validateEvent:()=>validateEvent2,validateToken:()=>validateToken});var _authorizationScheme="Nostr ";function getToken(o,s,n){return _getToken.apply(this,arguments)}function _getToken(){return _getToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n,i=!1){if(!o||!s)throw new Error("Missing loginUrl or httpMethod");const a=getBlankEvent(27235);a.tags=[["u",o],["method",s]],a.created_at=Math.round((new Date).getTime()/1e3);const c=yield n(a);return(i?_authorizationScheme:"")+base64$1.encode(utf8Encoder.encode(JSON.stringify(c)))}),_getToken.apply(this,arguments)}function validateToken(o,s,n){return _validateToken.apply(this,arguments)}function _validateToken(){return _validateToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){const i=yield unpackEventFromToken(o).catch(a=>{throw a});return yield validateEvent2(i,s,n).catch(a=>{throw a})}),_validateToken.apply(this,arguments)}function unpackEventFromToken(o){return _unpackEventFromToken.apply(this,arguments)}function _unpackEventFromToken(){return _unpackEventFromToken=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){if(!o)throw new Error("Missing token");o=o.replace(_authorizationScheme,"");const s=utf8Decoder.decode(base64$1.decode(o));if(!s||0===s.length||!s.startsWith("{"))throw new Error("Invalid token");return JSON.parse(s)}),_unpackEventFromToken.apply(this,arguments)}function validateEvent2(o,s,n){return _validateEvent.apply(this,arguments)}function _validateEvent(){return _validateEvent=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){if(!o)throw new Error("Invalid nostr event");if(!verifySignature(o))throw new Error("Invalid nostr event, signature invalid");if(27235!==o.kind)throw new Error("Invalid nostr event, kind invalid");if(!o.created_at)throw new Error("Invalid nostr event, created_at invalid");if(Math.round((new Date).getTime()/1e3)-o.created_at>60)throw new Error("Invalid nostr event, expired");const i=o.tags.find(c=>"u"===c[0]);if(1!==i?.length&&i?.[1]!==s)throw new Error("Invalid nostr event, url tag invalid");const a=o.tags.find(c=>"method"===c[0]);if(1!==a?.length&&a?.[1].toLowerCase()!==n.toLowerCase())throw new Error("Invalid nostr event, method tag invalid");return!0}),_validateEvent.apply(this,arguments)}var browser={exports:{}},ms,hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var o=1e3,s=60*o,n=60*s,i=24*n,a=7*i;function y(w,C,T,S){var M=C>=1.5*T;return Math.round(w/T)+" "+S+(M?"s":"")}return ms=function(w,C){C=C||{};var S,M,T=typeof w;if("string"===T&&w.length>0)return function(S){if(!((S=String(S)).length>100)){var M=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(S);if(M){var k=parseFloat(M[1]);switch((M[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*k;case"weeks":case"week":case"w":return k*a;case"days":case"day":case"d":return k*i;case"hours":case"hour":case"hrs":case"hr":case"h":return k*n;case"minutes":case"minute":case"mins":case"min":case"m":return k*s;case"seconds":case"second":case"secs":case"sec":case"s":return k*o;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return k;default:return}}}}(w);if("number"===T&&isFinite(w))return C.long?(S=w,(M=Math.abs(S))>=i?y(S,M,i,"day"):M>=n?y(S,M,n,"hour"):M>=s?y(S,M,s,"minute"):M>=o?y(S,M,o,"second"):S+" ms"):function(S){var M=Math.abs(S);return M>=i?Math.round(S/i)+"d":M>=n?Math.round(S/n)+"h":M>=s?Math.round(S/s)+"m":M>=o?Math.round(S/o)+"s":S+"ms"}(w);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(w))}}function setup(o){function s(a){let c,y,w,C=null;function T(...S){if(!T.enabled)return;const M=T,k=Number(new Date);M.diff=k-(c||k),M.prev=c,M.curr=k,c=k,S[0]=s.coerce(S[0]),"string"!=typeof S[0]&&S.unshift("%O");let X=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(Z,re)=>{if("%%"===Z)return"%";X++;const _e=s.formatters[re];return"function"==typeof _e&&(Z=_e.call(M,S[X]),S.splice(X,1),X--),Z}),s.formatArgs.call(M,S),(M.log||s.log).apply(M,S)}return T.namespace=a,T.useColors=s.useColors(),T.color=s.selectColor(a),T.extend=n,T.destroy=s.destroy,Object.defineProperty(T,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==C?C:(y!==s.namespaces&&(y=s.namespaces,w=s.enabled(a)),w),set:S=>{C=S}}),"function"==typeof s.init&&s.init(T),T}function n(a,c){const y=s(this.namespace+(void 0===c?":":c)+a);return y.log=this.log,y}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(a){return a instanceof Error?a.stack||a.message:a},s.disable=function(){const a=[...s.names.map(i),...s.skips.map(i).map(c=>"-"+c)].join(",");return s.enable(""),a},s.enable=function(a){let c;s.save(a),s.namespaces=a,s.names=[],s.skips=[];const y=("string"==typeof a?a:"").split(/[\s,]+/),w=y.length;for(c=0;c{s[a]=o[a]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(a){let c=0;for(let y=0;y{"%%"!==w&&(c++,"%c"===w&&(y=c))}),i.splice(y,0,a)},s.save=function(i){try{i?s.storage.setItem("debug",i):s.storage.removeItem("debug")}catch{}},s.load=function(){let i;try{i=s.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i},s.useColors=function(){return!(!(typeof window<"u"&&window.process)||"renderer"!==window.process.type&&!window.process.__nwjs)||!(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},s.storage=function(){try{return localStorage}catch{}}(),s.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),s.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],s.log=console.debug||console.log||(()=>{}),o.exports=common(s);const{formatters:n}=o.exports;n.j=function(i){try{return JSON.stringify(i)}catch(a){return"[UnexpectedJSONParseError]: "+a.message}}}(browser,browser.exports);var browserExports=browser.exports,debug3=getDefaultExportFromCjs(browserExports),dist={},LRUCache$1={},LRUCacheNode$1={};Object.defineProperty(LRUCacheNode$1,"__esModule",{value:!0}),LRUCacheNode$1.LRUCacheNode=void 0;class LRUCacheNode{constructor(s,n,i){const{entryExpirationTimeInMS:a=null,next:c=null,prev:y=null,onEntryEvicted:w,onEntryMarkedAsMostRecentlyUsed:C,clone:T,cloneFn:S}=i??{};if("number"==typeof a&&(a<=0||Number.isNaN(a)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.clone=null!=T&&T,this.cloneFn=S??this.defaultClone,this.key=s,this.internalValue=this.clone?this.cloneFn(n):n,this.created=Date.now(),this.entryExpirationTimeInMS=a,this.next=c,this.prev=y,this.onEntryEvicted=w,this.onEntryMarkedAsMostRecentlyUsed=C}get value(){return this.clone?this.cloneFn(this.internalValue):this.internalValue}get isExpired(){return"number"==typeof this.entryExpirationTimeInMS&&Date.now()-this.created>this.entryExpirationTimeInMS}invokeOnEvicted(){if(this.onEntryEvicted){const{key:s,value:n,isExpired:i}=this;this.onEntryEvicted({key:s,value:n,isExpired:i})}}invokeOnEntryMarkedAsMostRecentlyUsed(){if(this.onEntryMarkedAsMostRecentlyUsed){const{key:s,value:n}=this;this.onEntryMarkedAsMostRecentlyUsed({key:s,value:n})}}defaultClone(s){return"boolean"==typeof s||"string"==typeof s||"number"==typeof s?s:JSON.parse(JSON.stringify(s))}}LRUCacheNode$1.LRUCacheNode=LRUCacheNode,Object.defineProperty(LRUCache$1,"__esModule",{value:!0}),LRUCache$1.LRUCache=void 0;const LRUCacheNode_1=LRUCacheNode$1;class LRUCache{constructor(s){this.lookupTable=new Map,this.head=null,this.tail=null;const{maxSize:n=25,entryExpirationTimeInMS:i=null,onEntryEvicted:a,onEntryMarkedAsMostRecentlyUsed:c,cloneFn:y,clone:w}=s??{};if(Number.isNaN(n)||n<=0)throw new Error("maxSize must be greater than 0.");if("number"==typeof i&&(i<=0||Number.isNaN(i)))throw new Error("entryExpirationTimeInMS must either be null (no expiry) or greater than 0");this.maxSizeInternal=n,this.entryExpirationTimeInMS=i,this.onEntryEvicted=a,this.onEntryMarkedAsMostRecentlyUsed=c,this.clone=w,this.cloneFn=y}get size(){return this.cleanCache(),this.lookupTable.size}get remainingSize(){return this.maxSizeInternal-this.size}get newest(){return this.head?this.head.isExpired?(this.removeNodeFromListAndLookupTable(this.head),this.newest):this.mapNodeToEntry(this.head):null}get oldest(){return this.tail?this.tail.isExpired?(this.removeNodeFromListAndLookupTable(this.tail),this.oldest):this.mapNodeToEntry(this.tail):null}get maxSize(){return this.maxSizeInternal}set maxSize(s){if(Number.isNaN(s)||s<=0)throw new Error("maxSize must be greater than 0.");this.maxSizeInternal=s,this.enforceSizeLimit()}set(s,n,i){const a=this.lookupTable.get(s);a&&this.removeNodeFromListAndLookupTable(a);const c=new LRUCacheNode_1.LRUCacheNode(s,n,{entryExpirationTimeInMS:this.entryExpirationTimeInMS,onEntryEvicted:this.onEntryEvicted,onEntryMarkedAsMostRecentlyUsed:this.onEntryMarkedAsMostRecentlyUsed,clone:this.clone,cloneFn:this.cloneFn,...i});return this.setNodeAsHead(c),this.lookupTable.set(s,c),this.enforceSizeLimit(),this}get(s){const n=this.lookupTable.get(s);return n?n.isExpired?(this.removeNodeFromListAndLookupTable(n),null):(this.setNodeAsHead(n),n.value):null}peek(s){const n=this.lookupTable.get(s);return n?n.isExpired?(this.removeNodeFromListAndLookupTable(n),null):n.value:null}delete(s){const n=this.lookupTable.get(s);return!!n&&this.removeNodeFromListAndLookupTable(n)}has(s){const n=this.lookupTable.get(s);return!(!n||n.isExpired&&(this.removeNodeFromListAndLookupTable(n),1))}clear(){this.head=null,this.tail=null,this.lookupTable.clear()}find(s){let n=this.head;for(;n;){if(n.isExpired){const a=n.next;this.removeNodeFromListAndLookupTable(n),n=a;continue}const i=this.mapNodeToEntry(n);if(s(i))return this.setNodeAsHead(n),i;n=n.next}return null}forEach(s){let n=this.head,i=0;for(;n;)if(n.isExpired){const a=n.next;this.removeNodeFromListAndLookupTable(n),n=a}else s(n.value,n.key,i),n=n.next,i++}*values(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield s.value,s=s.next}*keys(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield s.key,s=s.next}*entries(){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield this.mapNodeToEntry(s),s=s.next}*[Symbol.iterator](){let s=this.head;for(;s;)if(s.isExpired){const n=s.next;this.removeNodeFromListAndLookupTable(s),s=n}else yield this.mapNodeToEntry(s),s=s.next}enforceSizeLimit(){let s=this.tail;for(;null!==s&&this.size>this.maxSizeInternal;){const n=s.prev;this.removeNodeFromListAndLookupTable(s),s=n}}mapNodeToEntry({key:s,value:n}){return{key:s,value:n}}setNodeAsHead(s){this.removeNodeFromList(s),this.head?(s.next=this.head,this.head.prev=s,this.head=s):(this.head=s,this.tail=s),s.invokeOnEntryMarkedAsMostRecentlyUsed()}removeNodeFromList(s){null!==s.prev&&(s.prev.next=s.next),null!==s.next&&(s.next.prev=s.prev),this.head===s&&(this.head=s.next),this.tail===s&&(this.tail=s.prev),s.next=null,s.prev=null}removeNodeFromListAndLookupTable(s){return s.invokeOnEvicted(),this.removeNodeFromList(s),this.lookupTable.delete(s.key)}cleanCache(){if(!this.entryExpirationTimeInMS)return;const s=[];for(const n of this.lookupTable.values())n.isExpired&&s.push(n);s.forEach(n=>this.removeNodeFromListAndLookupTable(n))}}LRUCache$1.LRUCache=LRUCache,function(o){var s=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(i,a,c,y){void 0===y&&(y=c);var w=Object.getOwnPropertyDescriptor(a,c);w&&!("get"in w?!a.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return a[c]}}),Object.defineProperty(i,y,w)}:function(i,a,c,y){void 0===y&&(y=c),i[y]=a[c]}),n=commonjsGlobal&&commonjsGlobal.__exportStar||function(i,a){for(var c in i)"default"===c||Object.prototype.hasOwnProperty.call(a,c)||s(a,i,c)};Object.defineProperty(o,"__esModule",{value:!0}),n(LRUCache$1,o)}(dist);var lib={};(function(o){function s(we){if(!Number.isSafeInteger(we))throw new Error(`Wrong integer: ${we}`)}function n(...we){const le=(ae,xe)=>Be=>ae(xe(Be));return{encode:Array.from(we).reverse().reduce((ae,xe)=>ae?le(ae,xe.encode):xe.encode,void 0),decode:we.reduce((ae,xe)=>ae?le(ae,xe.decode):xe.decode,void 0)}}function i(we){return{encode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("alphabet.encode input should be an array of numbers");return le.map(ae=>{if(s(ae),ae<0||ae>=we.length)throw new Error(`Digit index outside alphabet: ${ae} (alphabet: ${we.length})`);return we[ae]})},decode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("alphabet.decode input should be array of strings");return le.map(ae=>{if("string"!=typeof ae)throw new Error(`alphabet.decode: not string element=${ae}`);const xe=we.indexOf(ae);if(-1===xe)throw new Error(`Unknown letter: "${ae}". Allowed: ${we}`);return xe})}}}function a(we=""){if("string"!=typeof we)throw new Error("join separator should be string");return{encode:le=>{if(!Array.isArray(le)||le.length&&"string"!=typeof le[0])throw new Error("join.encode input should be array of strings");for(let ae of le)if("string"!=typeof ae)throw new Error(`join.encode: non-string input=${ae}`);return le.join(we)},decode:le=>{if("string"!=typeof le)throw new Error("join.decode input should be string");return le.split(we)}}}function c(we,le="="){if(s(we),"string"!=typeof le)throw new Error("padding chr should be string");return{encode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let xe of ae)if("string"!=typeof xe)throw new Error(`padding.encode: non-string input=${xe}`);for(;ae.length*we%8;)ae.push(le);return ae},decode(ae){if(!Array.isArray(ae)||ae.length&&"string"!=typeof ae[0])throw new Error("padding.encode input should be array of strings");for(let Be of ae)if("string"!=typeof Be)throw new Error(`padding.decode: non-string input=${Be}`);let xe=ae.length;if(xe*we%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;xe>0&&ae[xe-1]===le;xe--)if(!((xe-1)*we%8))throw new Error("Invalid padding: string has too much padding");return ae.slice(0,xe)}}}function y(we){if("function"!=typeof we)throw new Error("normalize fn should be function");return{encode:le=>le,decode:le=>we(le)}}function w(we,le,ae){if(le<2)throw new Error(`convertRadix: wrong from=${le}, base cannot be less than 2`);if(ae<2)throw new Error(`convertRadix: wrong to=${ae}, base cannot be less than 2`);if(!Array.isArray(we))throw new Error("convertRadix: data should be array");if(!we.length)return[];let xe=0;const Be=[],st=Array.from(we);for(st.forEach(lt=>{if(s(lt),lt<0||lt>=le)throw new Error(`Wrong integer: ${lt}`)});;){let lt=0,bt=!0;for(let at=xe;atle?C(le,we%le):we,T=(we,le)=>we+(le-C(we,le));function S(we,le,ae,xe){if(!Array.isArray(we))throw new Error("convertRadix2: data should be array");if(le<=0||le>32)throw new Error(`convertRadix2: wrong from=${le}`);if(ae<=0||ae>32)throw new Error(`convertRadix2: wrong to=${ae}`);if(T(le,ae)>32)throw new Error(`convertRadix2: carry overflow from=${le} to=${ae} carryBits=${T(le,ae)}`);let Be=0,st=0;const lt=2**ae-1,bt=[];for(const at of we){if(s(at),at>=2**le)throw new Error(`convertRadix2: invalid data word=${at} from=${le}`);if(Be=Be<32)throw new Error(`convertRadix2: carry overflow pos=${st} from=${le}`);for(st+=le;st>=ae;st-=ae)bt.push((Be>>st-ae<)>>>0);Be&=2**st-1}if(Be=Be<=le)throw new Error("Excess padding");if(!xe&&Be)throw new Error(`Non-zero padding: ${Be}`);return xe&&st>0&&bt.push(Be>>>0),bt}function M(we){return s(we),{encode:le=>{if(!(le instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return w(Array.from(le),256,we)},decode:le=>{if(!Array.isArray(le)||le.length&&"number"!=typeof le[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(w(le,we,256))}}}function k(we,le=!1){if(s(we),we<=0||we>32)throw new Error("radix2: bits should be in (0..32]");if(T(8,we)>32||T(we,8)>32)throw new Error("radix2: carry overflow");return{encode:ae=>{if(!(ae instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return S(Array.from(ae),8,we,!le)},decode:ae=>{if(!Array.isArray(ae)||ae.length&&"number"!=typeof ae[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(S(ae,we,8,le))}}}function R(we){if("function"!=typeof we)throw new Error("unsafeWrapper fn should be function");return function(...le){try{return we.apply(null,le)}catch{}}}function X(we,le){if(s(we),"function"!=typeof le)throw new Error("checksum fn should be function");return{encode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const xe=le(ae).slice(0,we),Be=new Uint8Array(ae.length+we);return Be.set(ae),Be.set(xe,ae.length),Be},decode(ae){if(!(ae instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const xe=ae.slice(0,-we),Be=le(xe).slice(0,we),st=ae.slice(-we);for(let lt=0;ltwe.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),o.base64=n(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c(6),a("")),o.base64url=n(k(6),i("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c(6),a(""));const Z=we=>n(M(58),i(we),a(""));o.base58=Z("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),o.base58flickr=Z("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),o.base58xrp=Z("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const re=[0,2,3,5,6,7,9,10,11];o.base58xmr={encode(we){let le="";for(let ae=0;aen(X(4,le=>we(we(le))),o.base58);const _e=n(i("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),a("")),pe=[996825010,642813549,513874426,1027748829,705979059];function de(we){const le=we>>25;let ae=(33554431&we)<<5;for(let xe=0;xe>xe&1)&&(ae^=pe[xe]);return ae}function De(we,le,ae=1){const xe=we.length;let Be=1;for(let st=0;st126)throw new Error(`Invalid prefix (${we})`);Be=de(Be)^lt>>5}Be=de(Be);for(let st=0;stat)throw new TypeError(`Wrong string length: ${bt.length} (${bt}). Expected (8..${at})`);const sn=bt.toLowerCase();if(bt!==sn&&bt!==bt.toUpperCase())throw new Error("String must be lowercase or uppercase");const fn=(bt=sn).lastIndexOf("1");if(0===fn||-1===fn)throw new Error('Letter "1" must be present between prefix and data only');const En=bt.slice(0,fn),Wn=bt.slice(fn+1);if(Wn.length<6)throw new Error("Data must be at least 6 characters long");const wn=_e.decode(Wn).slice(0,-6),Je=De(En,wn,le);if(!Wn.endsWith(Je))throw new Error(`Invalid checksum in ${bt}: expected "${Je}"`);return{prefix:En,words:wn}}return{encode:function(bt,at,sn=90){if("string"!=typeof bt)throw new Error("bech32.encode prefix should be string, not "+typeof bt);if(!Array.isArray(at)||at.length&&"number"!=typeof at[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof at);const fn=bt.length+7+at.length;if(!1!==sn&&fn>sn)throw new TypeError(`Length ${fn} exceeds limit ${sn}`);return`${bt=bt.toLowerCase()}1${_e.encode(at)}${De(bt,at,le)}`},decode:lt,decodeToBytes:function(bt){const{prefix:at,words:sn}=lt(bt,!1);return{prefix:at,words:sn,bytes:xe(sn)}},decodeUnsafe:R(lt),fromWords:xe,fromWordsUnsafe:st,toWords:Be}}o.bech32=Ee("bech32"),o.bech32m=Ee("bech32m"),o.utf8={encode:we=>(new TextDecoder).decode(we),decode:we=>(new TextEncoder).encode(we)},o.hex=n(k(4),i("0123456789abcdef"),a(""),y(we=>{if("string"!=typeof we||we.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof we} with length ${we.length}`);return we.toLowerCase()}));const Le={utf8:o.utf8,hex:o.hex,base16:o.base16,base32:o.base32,base64:o.base64,base64url:o.base64url,base58:o.base58,base58xmr:o.base58xmr},Ae=`Invalid encoding type. Available types: ${Object.keys(Le).join(", ")}`;o.bytesToString=(we,le)=>{if("string"!=typeof we||!Le.hasOwnProperty(we))throw new TypeError(Ae);if(!(le instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return Le[we].encode(le)},o.str=o.bytesToString,o.stringToBytes=(we,le)=>{if(!Le.hasOwnProperty(we))throw new TypeError(Ae);if("string"!=typeof le)throw new TypeError("stringToBytes() expects string");return Le[we].decode(le)},o.bytes=o.stringToBytes})(lib),BigInt(1e3),BigInt(1e6),BigInt(1e9),BigInt(1e12),BigInt("2100000000000000000"),BigInt(1e11);const TAGCODES={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};for(let o=0,s=Object.keys(TAGCODES);othis.handleNotice(s))}initiateAuth(o={limit:1}){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.debug("Initiating authentication");const n=s.relay.sub([o],{id:"auth-test"});n.on("eose",()=>{n.unsub(),s._status=1,s.ndkRelay.emit("ready"),s.debug("Authentication not required"),n.unsub()}),s.debug("Authentication request started")})()}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=()=>{o.updateConnectionStats.connected(),o.ndkRelay.authRequired?(o._status=6,o.ndkRelay.emit("connect"),o.initiateAuth()):(o._status=1,o.ndkRelay.emit("connect"),o.ndkRelay.emit("ready"))},n=()=>{o.updateConnectionStats.disconnected(),1===o._status&&(o._status=3,o.handleReconnection()),o.ndkRelay.emit("disconnect")},i=function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){o.debug("Relay requested authentication",{havePolicy:!!o.ndkRelay.authPolicy}),o.ndkRelay.authPolicy?7!==o._status&&(o._status=7,yield o.ndkRelay.authPolicy(o.ndkRelay,c),7===o._status&&(o.debug("Authentication policy finished"),o._status=1,o.ndkRelay.emit("ready"))):yield o.ndkRelay.emit("auth",c)});return function(y){return a.apply(this,arguments)}}();try{o.updateConnectionStats.attempt(),o._status=0,o.relay.off("connect",s),o.relay.off("disconnect",n),o.relay.on("connect",s),o.relay.on("disconnect",n),o.relay.on("auth",i),yield o.relay.connect()}catch(a){throw o.debug("Failed to connect",a),o._status=3,a}})()}disconnect(){this._status=2,this.relay.close()}get status(){return this._status}isAvailable(){return 1===this._status}isFlapping(){const o=this._connectionStats.durations;if(o.length%3!=0)return!1;const s=o.reduce((i,a)=>i+a,0)/o.length,n=o.map(i=>Math.pow(i-s,2)).reduce((i,a)=>i+a,0)/o.length;return Math.sqrt(n)<1e3}handleNotice(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){(o.includes("oo many")||o.includes("aximum"))&&(s.disconnect(),setTimeout(()=>s.connect(),2e3),s.debug(s.relay.url,"Relay complaining?",o)),s.ndkRelay.emit("notice",s,o)})()}handleReconnection(o=0){if(this.isFlapping())return this.ndkRelay.emit("flapping",this,this._connectionStats),void(this._status=5);const s=this.connectedAt?Math.max(0,6e4-(Date.now()-this.connectedAt)):0;setTimeout(()=>{this._status=4,this.connect().then(()=>{this.debug("Reconnected")}).catch(n=>{this.debug("Reconnect failed",n),o<5?setTimeout(()=>{this.handleReconnection(o+1)},6e4):this.debug("Reconnect failed after 5 attempts")})},s)}updateConnectionStats={connected:()=>{this._connectionStats.success++,this._connectionStats.connectedAt=Date.now()},disconnected:()=>{this._connectionStats.connectedAt&&(this._connectionStats.durations.push(Date.now()-this._connectionStats.connectedAt),this._connectionStats.durations.length>100&&this._connectionStats.durations.shift()),this._connectionStats.connectedAt=void 0},attempt:()=>{this._connectionStats.attempts++}};get connectionStats(){return this._connectionStats}},NDKRelayPublisher=class{ndkRelay;constructor(o){this.ndkRelay=o}publish(o,s=2500){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=()=>new Promise((C,T)=>{try{n.publishEvent(o,s).then(S=>C(S)).catch(S=>T(S))}catch(S){T(S)}}),a=new Promise((C,T)=>{setTimeout(()=>T(new Error("Timeout")),s)}),c=()=>{i().then(C=>y(C)).catch(C=>w(C))};let y,w;return 1===n.ndkRelay.status?Promise.race([i(),a]):Promise.race([new Promise((C,T)=>{y=C,w=T,n.ndkRelay.once("connect",c)}),a]).finally(()=>{n.ndkRelay.removeListener("connect",c)})})()}publishEvent(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=yield o.toNostrEvent(),a=n.ndkRelay.connectivity.relay.publish(i);let c;const y=new Promise((C,T)=>{a.then(()=>{clearTimeout(c),n.ndkRelay.emit("published",o),C(!0)}).catch(S=>{clearTimeout(c),n.ndkRelay.debug("Publish failed",S,o.id),n.ndkRelay.emit("publish:failed",o,S),T(S)})});if(!s||o.isEphemeral())return y;const w=new Promise((C,T)=>{c=setTimeout(()=>{n.ndkRelay.debug("Publish timed out",o.rawEvent()),n.ndkRelay.emit("publish:failed",o,"Timeout"),T(new Error("Publish operation timed out"))},s)});return Promise.race([y,w])})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.ndkRelay.connectivity.relay.auth(o.rawEvent())})()}};function calculateGroupableId(o){const s=[];for(const n of o){if(n.since||n.until)return null;const i=Object.keys(n||{}).sort().join("-");s.push(i)}return s.join("|")}function mergeFilters(o){const s={};return o.forEach(n=>{Object.entries(n).forEach(([i,a])=>{s[i]=Array.isArray(a)?void 0===s[i]?[...a]:Array.from(new Set([...s[i],...a])):a})}),s}var MAX_SUBID_LENGTH=20;function queryFullyFilled(o){return!(!filterIncludesIds(o.filter)||!resultHasAllRequestedIds(o))}function compareFilter(o,s){if(Object.keys(o).length!==Object.keys(s).length)return!1;for(const[n,i]of Object.entries(o)){const a=s[n];if(!a)return!1;if(Array.isArray(i)&&Array.isArray(a)){const c=i;for(const y of a)if(!c.includes(y))return!1}else if(a!==i)return!1}return!0}function filterIncludesIds(o){return!!o.ids}function resultHasAllRequestedIds(o){const s=o.filter.ids;return!!s&&s.length===o.eventFirstSeen.size}function generateSubId(o,s){const n=o.map(w=>w.subId).filter(Boolean),i=[],a=new Set,c=new Set;if(n.length>0)i.push(Array.from(new Set(n)).join(","));else{for(const w of s)for(const C of Object.keys(w))"kinds"===C?w.kinds?.forEach(T=>c.add(T)):a.add(C);c.size>0&&i.push("kinds:"+Array.from(c).join(",")),a.size>0&&i.push(Array.from(a).join(","))}let y=i.join("-");return y.length>MAX_SUBID_LENGTH&&(y=y.substring(0,MAX_SUBID_LENGTH)),1!==n.length&&(y+="-"+Math.floor(999*Math.random()).toString()),y}function filterFromId(o){let s;if(o.match(NIP33_A_REGEX)){const[n,i,a]=o.split(":"),c={authors:[i],kinds:[parseInt(n)]};return a&&(c["#d"]=[a]),c}try{switch(s=nip19_exports.decode(o),s.type){case"nevent":return{ids:[s.data.id]};case"note":return{ids:[s.data]};case"naddr":return{authors:[s.data.pubkey],"#d":[s.data.identifier],kinds:[s.data.kind]}}}catch{}return{ids:[o]}}function isNip33AValue(o){return null!==o.match(NIP33_A_REGEX)}var NIP33_A_REGEX=/^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/;function relaysFromBech32(o){try{const s=nip19_exports.decode(o);if(["naddr","nevent"].includes(s?.type)){const n=s.data;if(n?.relays)return n.relays.map(i=>new NDKRelay(i))}}catch{}return[]}var NDKGroupedSubscriptions=class extends lib$1.EventEmitter{subscriptions;req;debug;constructor(o,s){super(),this.subscriptions=o,this.debug=s||this.subscriptions[0].subscription.debug.extend("grouped");for(const n of o)this.handleSubscriptionClosure(n)}addSubscription(o){this.subscriptions.push(o),this.handleSubscriptionClosure(o)}eventReceived(o){for(const s of this.subscriptions)s.eventReceived(o)}eoseReceived(o){Array.from(this.subscriptions).forEach(function(){var s=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(n){n.subscription.eoseReceived(o)});return function(n){return s.apply(this,arguments)}}())}handleSubscriptionClosure(o){o.subscription.on("close",()=>{const s=this.subscriptions.findIndex(n=>n.subscription===o.subscription);this.subscriptions.splice(s,1),this.subscriptions.length<=0&&this.emit("close")})}map(o){return this.subscriptions.map(o)}[Symbol.iterator](){let o=0;const s=this.subscriptions;return{next:()=>omatchFilter(n,s))}};function findMatchingActiveSubscriptions(o,s){if(o.length!==s.length)return!1;for(let n=0;n{this.delayedItems.get(n)&&this.delayedItems.delete(n)}));let y=this.executionTimeoutsByGroupId.get(n);y&&"at-most"!==o.opts.groupableDelayType||(y=setTimeout(()=>{this.executeGroup(n,o)},o.opts.groupableDelay),this.executionTimeoutsByGroupId.set(n,y)),this.delayedTimers.has(n)?this.delayedTimers.get(n).push(y):this.delayedTimers.set(n,[y])}executeGroup(o,s){const n=this.delayedItems.get(o);this.delayedItems.delete(o);const i=this.delayedTimers.get(o);if(this.delayedTimers.delete(o),i)for(const a of i)clearTimeout(a);if(n){const a=n.subscriptions[0].filters.length,c=[];for(let y=0;yC.filters[y]);c.push(mergeFilters(w))}this.executeSubscriptions(o,n,c)}}executeSubscriptionsWhenConnected(o,s,n){const i=()=>{this.debug("new relay coming online for active subscription",{relay:this.ndkRelay.url,mergeFilters}),this.executeSubscriptionsConnected(o,s,n)};this.ndkRelay.once("ready",i),s.once("close",()=>{this.ndkRelay.removeListener("ready",i)})}executeSubscriptions(o,s,n){this.conn.isAvailable()?this.executeSubscriptionsConnected(o,s,n):this.executeSubscriptionsWhenConnected(o,s,n)}executeSubscriptionsConnected(o,s,n){const i=[];for(const{subscription:w}of s)i.push(w);const a=generateSubId(i,n);s.req=n;const c={id:a};(this.ndkRelay.trusted||i.every(w=>w.opts.skipVerification))&&(c.skipVerification=!0);const y=this.conn.relay.sub(n,c);return this.activeSubscriptions.set(y,s),o&&this.activeSubscriptionsByGroupId.set(o,{filters:n,sub:y}),y.on("event",w=>{const C=new NDKEvent(void 0,w);C.relay=this.ndkRelay,this.activeSubscriptions.get(y)?.eventReceived(C)}),y.on("eose",()=>{this.activeSubscriptions.get(y)?.eoseReceived(this.ndkRelay)}),s.once("close",()=>{y.unsub(),this.activeSubscriptions.delete(y),o&&this.activeSubscriptionsByGroupId.delete(o)}),this.executeSubscriptionsWhenConnected(o,s,n),y}executedFilters(){const o=new Map;for(const[,s]of this.activeSubscriptions)o.set(s.req,s.map(n=>n.subscription));return o}},NDKRelay=class extends lib$1.EventEmitter{url;scores;connectivity;subs;publisher;authPolicy;authRequired=!1;trusted=!1;complaining=!1;debug;constructor(o,s){super(),this.url=o,this.scores=new Map,this.debug=debug3(`ndk:relay:${o}`),this.connectivity=new NDKRelayConnectivity(this),this.subs=new NDKRelaySubscriptions(this),this.publisher=new NDKRelayPublisher(this),this.authPolicy=s}get status(){return this.connectivity.status}get connectionStats(){return this.connectivity.connectionStats}connect(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.connectivity.connect()})()}disconnect(){3!==this.status&&this.connectivity.disconnect()}subscribe(o,s){this.subs.subscribe(o,s)}publish(o,s=2500){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.publisher.publish(o,s)})()}auth(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.publisher.auth(o)})()}scoreSlowerEvent(o){}tagReference(o){const s=["r",this.url];return o&&s.push(o),s}referenceTags(){return[["r",this.url]]}activeSubscriptions(){return this.subs.executedFilters()}},PublishError=class extends Error{errors;constructor(o,s){super(o),this.errors=s}},NDKRelaySet=class dD{relays;debug;ndk;constructor(s,n){this.relays=s,this.ndk=n,this.debug=n.debug.extend("relayset")}addRelay(s){this.relays.add(s)}static fromRelayUrls(s,n){const i=new Set;for(const a of s){const c=n.pool.relays.get(a);if(c)i.add(c);else{const y=new NDKRelay(a);n.pool.useTemporaryRelay(y),i.add(y)}}return new dD(new Set(i),n)}publish(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new Set,c=new Map,y=s.isEphemeral(),w=Array.from(i.relays).map(C=>new Promise(T=>{C.publish(s,n).then(()=>{a.add(C),T()}).catch(S=>{y||(c.set(C,S),i.debug("error publishing to relay",{relay:C.url,err:S})),T()})}));if(yield Promise.all(w),0===a.size&&!y)throw new PublishError("No relay was able to receive the event",c);return a})()}size(){return this.relays.size}};function calculateRelaySetFromEvent(o,s){const n=new Set;return o.pool?.relays.forEach(i=>n.add(i)),new NDKRelaySet(n,o)}function getWriteRelaysFor(o,s){if(o.outboxTracker)return o.outboxTracker.data.get(s)?.writeRelays}function calculateRelaySetsFromFilter(o,s){const n=new Map,i=new Set;if(s.forEach(a=>{a.authors&&a.authors.forEach(c=>i.add(c))}),i.size>0){const a=new Map;for(const c of i){const y=getWriteRelaysFor(o,c);y&&y.size>0?(o.debug(`Adding ${y.size} relays for ${c}`),y.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})):o.explicitRelayUrls?.forEach(w=>{const C=a.get(w)||[];C.push(c),a.set(w,C)})}for(const c of a.keys())n.set(c,[]);for(const c of s)if(c.authors)for(const[y,w]of a.entries()){const C=c.authors.filter(T=>w.includes(T));n.set(y,[...n.get(y),{...c,authors:C}])}else for(const y of a.keys())n.set(y,[...n.get(y),c])}else o.explicitRelayUrls?.forEach(a=>{n.set(a,s)});return n}function calculateRelaySetsFromFilters(o,s){return calculateRelaySetsFromFilter(o,s)}var DEFAULT_RELAYS=["wss://nos.lol","wss://relay.nostr.band","wss://relay.f7z.io","wss://relay.damus.io","wss://nostr.mom","wss://no.str.cr"],Zap=class extends lib$1.EventEmitter{ndk;zappedEvent;zappedUser;constructor(o){super(),this.ndk=o.ndk,this.zappedEvent=o.zappedEvent,this.zappedUser=o.zappedUser||this.ndk.getUser({hexpubkey:this.zappedEvent?.pubkey})}getZapEndpoint(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s,n,i,a;if(o.zappedUser&&(o.zappedUser.profile||(yield o.zappedUser.fetchProfile({groupable:!1})),s=(o.zappedUser.profile||{}).lud06,n=(o.zappedUser.profile||{}).lud16),n&&!n.startsWith("LNURL")){const[c,y]=n.split("@");i=`https://${y}/.well-known/lnurlp/${c}`}else if(s){const{words:c}=bech32.decode(s,1e3),y=bech32.fromWords(c);i=new TextDecoder("utf-8").decode(y)}if(!i)throw new Error("No zap endpoint found");try{const c=o.ndk.httpFetch||fetch,y=yield c(i);if(200!==y.status){const C=yield y.text();throw new Error(`Unable to fetch zap endpoint ${i}: ${C}`)}const w=yield y.json();return w?.allowsNostr&&(w?.nostrPubkey||w?.nostrPubKey)&&(a=w.callback),a}catch(c){throw new Error(`Unable to fetch zap endpoint ${i}: ${c}`)}})()}createZapRequest(o,s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.generateZapRequest(o,s,n,i);if(!y)return null;const{event:w,zapEndpoint:C}=y;if(!w)throw new Error("No zap request event found");let T;yield w.sign(a);try{T=yield c.getInvoice(w,o,C)}catch(S){throw new Error("Failed to get invoice: "+S)}return T})()}getInvoice(o,s,n){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return(yield(yield fetch(`${n}?`+new URLSearchParams({amount:s.toString(),nostr:JSON.stringify(o.rawEvent())}))).json()).pr})()}generateZapRequest(o,s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=yield c.getZapEndpoint();if(!y)throw new Error("No zap endpoint found");if(!c.zappedEvent&&!c.zappedUser)throw new Error("No zapped event or user found");const w=nip57_exports.makeZapRequest({profile:c.zappedUser.pubkey,event:null,amount:o,comment:s||"",relays:i??c.relays()});if(c.zappedEvent){const T=c.zappedEvent.referenceTags();w.tags.push(...T)}w.tags.push(["lnurl",y]);const C=new NDKEvent(c.ndk,w);return n&&(C.tags=C.tags.concat(n)),{event:C,zapEndpoint:y}})()}relays(){let o=[];return this.ndk?.pool?.relays&&(o=this.ndk.pool.urls()),o.length||(o=DEFAULT_RELAYS),o}};function mergeTags(o,s){const n=new Map,i=(a,c)=>a.every((y,w)=>y===c[w]);return o.concat(s).forEach(a=>{for(let[c,y]of n)if(i(y,a)||i(a,y))return void(a.length>=y.length&&n.set(c,a));n.set(a.join(","),a)}),Array.from(n.values())}function generateContentTags(o){return _generateContentTags.apply(this,arguments)}function _generateContentTags(){return _generateContentTags=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=[]){let n=[];const i=a=>{s.find(c=>c[0]===a[0]&&c[1]===a[1])||s.push(a)};return o=o.replace(/(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g,a=>{try{const c=a.split(/(@|nostr:)/)[2],{type:y,data:w}=nip19_exports.decode(c);let C;switch(y){case"npub":C=["p",w];break;case"nprofile":C=["p",w.pubkey];break;case"note":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){i(["e",w,yield maybeGetEventRelayUrl(c),"mention"]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"nevent":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){let{id:M,relays:k,author:R}=w;k&&0!==k.length||(k=[yield maybeGetEventRelayUrl(c)]),i(["e",M,k[0],"mention"]),R&&i(["p",R]),S()});return function(S){return T.apply(this,arguments)}}()));break;case"naddr":n.push(new Promise(function(){var T=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(S){const M=[w.kind,w.pubkey,w.identifier].join(":");let k=w.relays??[];0===k.length&&(k=[yield maybeGetEventRelayUrl(c)]),i(["a",M,k[0],"mention"]),i(["p",w.pubkey]),S()});return function(S){return T.apply(this,arguments)}}()));break;default:return a}return C&&i(C),`nostr:${c}`}catch{return a}}),yield Promise.all(n),{content:o=o.replace(/#(\w+)/g,(a,c)=>{const y=["t",c];return s.find(w=>w[0]===y[0]&&w[1]===y[1])||s.push(y),a}),tags:s}}),_generateContentTags.apply(this,arguments)}function maybeGetEventRelayUrl(o){return _maybeGetEventRelayUrl.apply(this,arguments)}function _maybeGetEventRelayUrl(){return(_maybeGetEventRelayUrl=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o){return""})).apply(this,arguments)}function isReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=1e4&&this.kind<2e4}function isEphemeral(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=2e4&&this.kind<3e4}function isParamReplaceable(){if(void 0===this.kind)throw new Error("Kind not set");return this.kind>=3e4&&this.kind<4e4}function encrypt(o,s){return _encrypt.apply(this,arguments)}function _encrypt(){return _encrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");if(s||(yield this.ndk.assertSigner(),s=this.ndk.signer),!o){const n=this.getMatchingTags("p");if(1!==n.length)throw new Error("No recipient could be determined and no explicit recipient was provided");o=this.ndk.getUser({hexpubkey:n[0][1]})}this.content=yield s?.encrypt(o,this.content)}),_encrypt.apply(this,arguments)}function decrypt(o,s){return _decrypt.apply(this,arguments)}function _decrypt(){return _decrypt=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s){if(!this.ndk)throw new Error("No NDK instance found!");s||(yield this.ndk.assertSigner(),s=this.ndk.signer),o||(o=this.author),this.content=yield s?.decrypt(o,this.content)}),_decrypt.apply(this,arguments)}function encode(){return this.isParamReplaceable()?nip19_exports.naddrEncode({kind:this.kind,pubkey:this.pubkey,identifier:this.replaceableDTag(),relays:this.relay?[this.relay.url]:[]}):this.relay?nip19_exports.neventEncode({id:this.tagId(),relays:[this.relay.url],author:this.pubkey}):nip19_exports.noteEncode(this.tagId())}function repost(){return _repost.apply(this,arguments)}function _repost(){return _repost=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o=!0,s){if(!s&&o){if(!this.ndk)throw new Error("No NDK instance found");this.ndk.assertSigner(),s=this.ndk.signer}const n=new NDKEvent(this.ndk,{kind:getKind(this),content:""});return n.tag(this),16===n.kind&&n.tags.push(["k",`${this.kind}`]),s&&(yield n.sign(s)),o&&(yield n.publish()),n}),_repost.apply(this,arguments)}function getKind(o){return 1===o.kind?6:16}var NDKEvent=class oy extends lib$1.EventEmitter{ndk;created_at;content="";tags=[];kind;id="";sig;pubkey="";_author=void 0;relay;constructor(s,n){super(),this.ndk=s,this.created_at=n?.created_at,this.content=n?.content||"",this.tags=n?.tags||[],this.id=n?.id||"",this.sig=n?.sig,this.pubkey=n?.pubkey||"",this.kind=n?.kind}rawEvent(){return{created_at:this.created_at,content:this.content,tags:this.tags,kind:this.kind,pubkey:this.pubkey,id:this.id,sig:this.sig}}set author(s){this.pubkey=s.hexpubkey,this._author=void 0}get author(){if(this._author)return this._author;if(!this.ndk)throw new Error("No NDK instance found");const s=this.ndk.getUser({hexpubkey:this.pubkey});return this._author=s,s}tag(s,n){let i=[];if(s instanceof NDKUser){const a=["p",s.pubkey];n&&a.push(n),i.push(a)}else if(s instanceof oy){const a=s;i=a.referenceTags(n,a?.pubkey===this.pubkey);for(const y of a.getMatchingTags("p"))y[1]!==this.pubkey&&(this.tags.find(w=>"p"===w[0]&&w[1]===y[1])||this.tags.push(["p",y[1]]))}else i=[s];this.tags=mergeTags(this.tags,i)}toNostrEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s&&""===n.pubkey){const y=yield n.ndk?.signer?.user();n.pubkey=y?.hexpubkey||""}n.created_at||(n.created_at=Math.floor(Date.now()/1e3));const i=n.rawEvent(),{content:a,tags:c}=yield n.generateTags();i.content=a||"",i.tags=c;try{n.id=getEventHash(i)}catch{}return n.id&&(i.id=n.id),n.sig&&(i.sig=n.sig),i})()}isReplaceable=isReplaceable.bind(this);isEphemeral=isEphemeral.bind(this);isParamReplaceable=isParamReplaceable.bind(this);encode=encode.bind(this);encrypt=encrypt.bind(this);decrypt=decrypt.bind(this);getMatchingTags(s){return this.tags.filter(n=>n[0]===s)}tagValue(s){const n=this.getMatchingTags(s);if(0!==n.length)return n[0][1]}get alt(){return this.tagValue("alt")}set alt(s){this.removeTag("alt"),s&&this.tags.push(["alt",s])}removeTag(s){this.tags=this.tags.filter(n=>n[0]!==s)}sign(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s?n.author=yield s.user():(n.ndk?.assertSigner(),s=n.ndk.signer),yield n.generateTags(),n.isReplaceable()&&(n.created_at=Math.floor(Date.now()/1e3));const i=yield n.toNostrEvent();return n.sig=yield s.sign(i),n.sig})()}publish(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(i.sig||(yield i.sign()),!i.ndk)throw new Error("NDKEvent must be associated with an NDK instance to publish");return s||(s=i.ndk.devWriteRelaySet||calculateRelaySetFromEvent(i.ndk)),s.publish(i,n)})()}generateTags(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let n=[];const i=yield generateContentTags(s.content,s.tags),a=i.content;if(n=i.tags,s.kind&&s.isParamReplaceable()&&!s.getMatchingTags("d")[0]){const c=s.tagValue("title");let y=[...Array(c?6:16)].map(()=>Math.random().toString(36)[2]).join("");c&&c.length>0&&(y=c.replace(/[^a-z0-9]+/gi,"-").replace(/^-|-$/g,"")+"-"+y),n.push(["d",y])}if((s.ndk?.clientName||s.ndk?.clientNip89)&&!s.tagValue("client")){const c=["client",s.ndk.clientName??""];s.ndk.clientNip89&&c.push(s.ndk.clientNip89),n.push(c)}return{content:a||"",tags:n}})()}muted(){const s=this.ndk?.mutedIds.get(this.pubkey);if(s&&"p"===s)return"author";const n=this.tagReference(),i=this.ndk?.mutedIds.get(n[1]);return i&&i===n[0]?"event":null}replaceableDTag(){if(this.kind&&this.kind>=3e4&&this.kind<=4e4){const s=this.getMatchingTags("d")[0];return s?s[1]:""}throw new Error("Event is not a parameterized replaceable event")}deduplicationKey(){return 0===this.kind||3===this.kind||this.kind&&this.kind>=1e4&&this.kind<2e4?`${this.kind}:${this.pubkey}`:this.tagId()}tagId(){return this.isParamReplaceable()?this.tagAddress():this.id}tagAddress(){if(!this.isParamReplaceable())throw new Error("This must only be called on replaceable events");const s=this.replaceableDTag();return`${this.kind}:${this.pubkey}:${s}`}tagReference(s){let n;return n=this.isParamReplaceable()?["a",this.tagAddress()]:["e",this.tagId()],n.push(this.relay?this.relay.url:""),s&&n.push(s),n}referenceTags(s,n){let i=[];return i=this.isParamReplaceable()?[["a",this.tagAddress()],["e",this.id]]:[["e",this.id]],this.relay?.url?i=i.map(a=>(a.push(this.relay?.url),a)):s&&(i=i.map(a=>(a.push(""),a))),s&&i.forEach(a=>a.push(s)),n||i.push(...this.author.referenceTags()),i}filter(){return this.isParamReplaceable()?{"#a":[this.tagId()]}:{"#e":[this.tagId()]}}zap(s,n,i,a,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!y.ndk)throw new Error("No NDK instance found");c||y.ndk.assertSigner();const w=new Zap({ndk:y.ndk,zappedEvent:y,zappedUser:a}),C=Array.from(y.ndk.pool.relays.keys());return yield w.createZapRequest(s,n,i,C,c)})()}delete(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("No NDK instance found");n.ndk.assertSigner();const i=new oy(n.ndk,{kind:5,content:s||""});return i.tag(n),yield i.publish(),i})()}repost=repost.bind(this);react(s,n=!0){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("No NDK instance found");i.ndk.assertSigner();const a=new oy(i.ndk,{kind:7,content:s});return a.tag(i),n?yield a.publish():yield a.sign(),a})()}get isValid(){return!0}},READ_MARKER="read",WRITE_MARKER="write",NDKRelayList=class hD extends NDKEvent{constructor(s,n){super(s,n),this.kind??=10002}static from(s){return new hD(s.ndk,s.rawEvent())}get readRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===READ_MARKER).map(s=>s[1])}set readRelayUrls(s){for(const n of s)this.tags.push(["r",n,READ_MARKER])}get writeRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]||s[2]&&s[2]===WRITE_MARKER).map(s=>s[1])}set writeRelayUrls(s){for(const n of s)this.tags.push(["r",n,WRITE_MARKER])}get bothRelayUrls(){return this.getMatchingTags("r").filter(s=>!s[2]).map(s=>s[1])}set bothRelayUrls(s){for(const n of s)this.tags.push(["r",n])}get relays(){return this.getMatchingTags("r").map(s=>s[1])}},NDKSubscriptionCacheUsage=(o=>(o.ONLY_CACHE="ONLY_CACHE",o.CACHE_FIRST="CACHE_FIRST",o.PARALLEL="PARALLEL",o.ONLY_RELAY="ONLY_RELAY",o))(NDKSubscriptionCacheUsage||{}),defaultOpts={closeOnEose:!1,cacheUsage:"CACHE_FIRST",groupable:!0,groupableDelay:100,groupableDelayType:"at-most"},NDKSubscription=class extends lib$1.EventEmitter{subId;filters;opts;pool;skipVerification=!1;skipValidation=!1;relayFilters;relaySet;ndk;debug;eoseDebug;eventFirstSeen=new Map;eosesSeen=new Set;eventsPerRelay=new Map;lastEventReceivedAt;internalId;constructor(o,s,n,i,a){if(super(),this.ndk=o,this.pool=n?.pool||o.pool,this.opts={...defaultOpts,...n||{}},this.filters=s instanceof Array?s:[s],this.subId=a||n?.subId,this.internalId=Math.random().toString(36).substring(7),this.relaySet=i,this.debug=o.debug.extend(`subscription[${n?.subId??this.internalId}]`),this.eoseDebug=this.debug.extend("eose"),this.skipVerification=n?.skipVerification||!1,this.skipValidation=n?.skipValidation||!1,this.opts.closeOnEose||this.debug("Creating a permanent subscription",this.opts,JSON.stringify(this.filters)),"ONLY_CACHE"===this.opts.cacheUsage&&!this.opts.closeOnEose)throw new Error("Cannot use cache-only options with a persistent subscription")}get filter(){return this.filters[0]}isGroupable(){return this.opts?.groupable||!1}shouldQueryCache(){return"ONLY_RELAY"!==this.opts?.cacheUsage}shouldQueryRelays(){return"ONLY_CACHE"!==this.opts?.cacheUsage}shouldWaitForCache(){return this.opts.closeOnEose&&!!this.ndk.cacheAdapter?.locking&&"PARALLEL"!==this.opts.cacheUsage}start(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let s;o.shouldQueryCache()&&(s=o.startWithCache(),o.shouldWaitForCache()&&(yield s,queryFullyFilled(o)))?o.emit("eose",o):o.shouldQueryRelays()?o.startWithRelays():o.emit("eose",o)})()}stop(){this.emit("close",this),this.removeAllListeners()}hasAuthorsFilter(){return this.filters.some(o=>o.authors?.length)}startWithCache(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(o.ndk.cacheAdapter?.query){const s=o.ndk.cacheAdapter.query(o);o.ndk.cacheAdapter.locking&&(yield s)}})()}startWithRelays(){if(this.relaySet){this.relayFilters=new Map;for(const o of this.relaySet.relays)this.relayFilters.set(o.url,this.filters)}else this.relayFilters=calculateRelaySetsFromFilters(this.ndk,this.filters);if(this.relayFilters&&0!==this.relayFilters.size)for(const[o,s]of this.relayFilters)this.pool.getRelay(o).subscribe(this,s);else this.debug("No relays to subscribe to",this.ndk.explicitRelayUrls)}eventReceived(o,s,n=!1){if(s&&(o.relay=s),s||(s=o.relay),this.skipValidation||o.isValid){if(!n&&s){let i=this.eventsPerRelay.get(s);if(i||(i=new Set,this.eventsPerRelay.set(s,i)),i.add(o.id),this.eventFirstSeen.has(o.id)){const a=Date.now()-(this.eventFirstSeen.get(o.id)||0);return s.scoreSlowerEvent(a),void this.emit("event:dup",o,s,a,this)}this.ndk.cacheAdapter&&this.ndk.cacheAdapter.setEvent(o,this.filters,s),this.eventFirstSeen.set(o.id,Date.now())}else this.eventFirstSeen.set(o.id,0);o.ndk||(o.ndk=this.ndk),this.emit("event",o,s,this),this.lastEventReceivedAt=Date.now()}else this.debug("Event failed validation",o)}eoseTimeout;eoseReceived(o){this.eosesSeen.add(o),this.eoseDebug(`received from ${o.url}`);let s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0;const n=this.eosesSeen.size===this.relayFilters?.size;if(queryFullyFilled(this))this.emit("eose"),this.eoseDebug("Query fully filled"),this.opts?.closeOnEose&&this.stop();else if(n)this.emit("eose"),this.eoseDebug("All EOSEs seen"),this.opts?.closeOnEose&&this.stop();else{let i=1e3;const a=this.eosesSeen.size/this.relayFilters.size;if(this.eosesSeen.size>=2&&a>=.5){i*=1-a,this.eoseTimeout&&clearTimeout(this.eoseTimeout);const c=()=>{s=this.lastEventReceivedAt?Date.now()-this.lastEventReceivedAt:void 0,void 0!==s&&s<20?this.eoseTimeout=setTimeout(c,i):(this.emit("eose"),this.opts?.closeOnEose&&this.stop())};this.eoseTimeout=setTimeout(c,i)}}}};function follows(o,s){return _follows.apply(this,arguments)}function _follows(){return _follows=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n=3){if(!this.ndk)throw new Error("NDK not set");const i=Array.from(yield this.ndk.fetchEvents({kinds:[n],authors:[this.pubkey]},o||{groupable:!1}))[0];if(i){const a=new Set;return i.tags.forEach(c=>{if("p"===c[0])try{a.add(c[1]),s&&this.ndk?.outboxTracker?.trackUsers([c[1]])}catch{}}),[...a].reduce((c,y)=>{const w=new NDKUser({pubkey:y});return w.ndk=this.ndk,c.add(w),c},new Set)}return new Set}),_follows.apply(this,arguments)}function profileFromEvent(o){const s={};let n;try{n=JSON.parse(o.content)}catch(i){throw new Error(`Failed to parse profile event: ${i}`)}return Object.keys(n).forEach(i=>{switch(i){case"name":s.name=n.name;break;case"display_name":s.displayName=n.display_name;break;case"image":case"picture":s.image=n.image||n.picture;break;case"banner":s.banner=n.banner;break;case"bio":s.bio=n.bio;break;case"nip05":s.nip05=n.nip05;break;case"lud06":s.lud06=n.lud06;break;case"lud16":s.lud16=n.lud16;break;case"about":s.about=n.about;break;case"zapService":s.zapService=n.zapService;break;case"website":s.website=n.website;break;default:s[i]=n[i]}}),s}function serializeProfile(o){const s={};for(const[n,i]of Object.entries(o))switch(n){case"username":case"name":s.name=i;break;case"displayName":s.display_name=i;break;case"image":case"picture":s.picture=i;break;case"bio":case"about":s.about=i;break;default:s[n]=i}return JSON.stringify(s)}var NDKList=class fD extends NDKEvent{_encryptedTags;encryptedTagsLength;constructor(s,n){super(s,n),this.kind??=30001}static from(s){return new fD(s.ndk,s.rawEvent())}get title(){const s=this.tagValue("title")||this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set title(s){if(this.removeTag("title"),this.removeTag("name"),!s)throw new Error("Title cannot be empty");this.tags.push(["title",s])}get name(){const s=this.tagValue("name");return 3!==this.kind||s?1e4!==this.kind||s?10001!==this.kind||s?10002!==this.kind||s?10003!==this.kind||s?10004!==this.kind||s?10005!==this.kind||s?10006!==this.kind||s?10007!==this.kind||s?10015!==this.kind||s?10030!==this.kind||s?s??this.tagValue("d"):"Emojis":"Interests":"Search Relays":"Blocked Relays":"Public Chats":"Communities":"Bookmarks":"Relay Metadata":"Pinned Notes":"Mute":"Contacts"}set name(s){if(this.removeTag("name"),!s)throw new Error("Name cannot be empty");this.tags.push(["title",s])}get description(){return this.tagValue("description")}set description(s){s?this.tags.push(["description",s]):this.removeTag("description")}isEncryptedTagsCacheValid(){return!(!this._encryptedTags||this.encryptedTagsLength!==this.content.length)}encryptedTags(s=!0){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s&&n.isEncryptedTagsCacheValid())return n._encryptedTags;if(!n.ndk)throw new Error("NDK instance not set");if(!n.ndk.signer)throw new Error("NDK signer not set");const i=yield n.ndk.signer.user();try{if(n.content.length>0)try{const a=yield n.ndk.signer.decrypt(i,n.content),c=JSON.parse(a);return c&&c[0]?(n.encryptedTagsLength=n.content.length,n._encryptedTags=c):(n.encryptedTagsLength=n.content.length,n._encryptedTags=[])}catch{console.log(`error decrypting ${n.content}`)}}catch{}return[]})()}validateTag(s){return!0}get items(){return this.tags.filter(s=>!["d","L","l","title","name","description","summary","image","thumb","alt","expiration","subject"].includes(s[0]))}addItem(s,n=void 0,i=!1){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("NDK instance not set");if(!a.ndk.signer)throw new Error("NDK signer not set");let c;if(s instanceof NDKEvent)c=s.referenceTags();else if(s instanceof NDKUser)c=s.referenceTags();else if(s instanceof NDKRelay)c=s.referenceTags();else{if(!Array.isArray(s))throw new Error("Invalid object type");c=[s]}if(n&&c[0].push(n),i){const y=yield a.ndk.signer.user(),w=yield a.encryptedTags();w.push(...c),a._encryptedTags=w,a.encryptedTagsLength=a.content.length,a.content=JSON.stringify(w),yield a.encrypt(y)}else a.tags.push(...c);a.created_at=Math.floor(Date.now()/1e3),a.emit("change")})()}removeItem(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.ndk)throw new Error("NDK instance not set");if(!i.ndk.signer)throw new Error("NDK signer not set");if(n){const a=yield i.ndk.signer.user(),c=yield i.encryptedTags();c.splice(s,1),i._encryptedTags=c,i.encryptedTagsLength=i.content.length,i.content=JSON.stringify(c),yield i.encrypt(a)}else i.tags.splice(s,1);return i.created_at=Math.floor(Date.now()/1e3),i.emit("change"),i})()}},lists_default=NDKList;function pin(o,s,n){return _pin.apply(this,arguments)}function _pin(){return _pin=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s,n){if(!this.ndk)throw new Error("No NDK instance found");if(this.ndk.assertSigner(),!s){const i=yield this.ndk.fetchEvents({kinds:[10001],authors:[this.pubkey]},{cacheUsage:"ONLY_RELAY"});s=i.size>0?lists_default.from(Array.from(i)[0]):new NDKEvent(this.ndk,{kind:10001})}return s.tag(o),n&&(yield s.publish()),s}),_pin.apply(this,arguments)}var NIP05_REGEX=/^(?:([\w.+-]+)@)?([\w.-]+)$/;function getNip05For(o){return _getNip05For.apply(this,arguments)}function _getNip05For(){return _getNip05For=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(o,s=fetch,n={}){const i=o.match(NIP05_REGEX);if(!i)return null;const[a,c="_",y]=i;try{const w=yield s(`https://${y}/.well-known/nostr.json?name=${c}`,n),{names:C,relays:T,nip46:S}=parseNIP05Result(yield w.json()),M=C[c];return M?{pubkey:M,relays:T?.[M],nip46:S?.[M]}:null}catch{return null}}),_getNip05For.apply(this,arguments)}function parseNIP05Result(o){const s={names:{}};for(const[n,i]of Object.entries(o.names))"string"==typeof n&&"string"==typeof i&&(s.names[n]=i);if(o.relays){s.relays={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.relays[n]=i.filter(a=>"string"==typeof a))}if(o.nip46){s.nip46={};for(const[n,i]of Object.entries(o.relays))"string"==typeof n&&Array.isArray(i)&&(s.nip46[n]=i.filter(a=>"string"==typeof a))}return s}var NDKUser=class Sw{ndk;profile;_npub;_pubkey;relayUrls=[];nip46Urls=[];constructor(s){s.npub&&(this._npub=s.npub),s.hexpubkey&&(this._pubkey=s.hexpubkey),s.pubkey&&(this._pubkey=s.pubkey),s.relayUrls&&(this.relayUrls=s.relayUrls),s.nip46Urls&&(this.nip46Urls=s.nip46Urls)}get npub(){if(!this._npub){if(!this._pubkey)throw new Error("hexpubkey not set");this._npub=nip19_exports.npubEncode(this.pubkey)}return this._npub}set npub(s){this._npub=s}get hexpubkey(){return this.pubkey}set hexpubkey(s){this._pubkey=s}get pubkey(){if(!this._pubkey){if(!this._npub)throw new Error("npub not set");this._pubkey=nip19_exports.decode(this.npub).data}return this._pubkey}set pubkey(s){this._pubkey=s}static fromNip05(s,n,i=!1){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n?.cacheAdapter&&n.cacheAdapter.loadNip05){const y=yield n.cacheAdapter.loadNip05(s);if(y){const w=new Sw({pubkey:y.pubkey,relayUrls:y.relays,nip46Urls:y.nip46});return w.ndk=n,w}}let a={};i&&(a.cache="no-cache");const c=yield getNip05For(s,n?.httpFetch,a);if(c&&n?.cacheAdapter&&n.cacheAdapter.saveNip05&&n?.cacheAdapter.saveNip05(s,c),c){const y=new Sw({pubkey:c.pubkey,relayUrls:c.relays,nip46Urls:c.nip46});return y.ndk=n,y}})()}fetchProfile(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("NDK not set");n.profile||(n.profile={});let i=null;if(n.ndk.cacheAdapter&&n.ndk.cacheAdapter.fetchProfile&&"ONLY_RELAY"!==s?.cacheUsage){const c=yield n.ndk.cacheAdapter.fetchProfile(n.pubkey);if(c)return n.profile=c,c}!s&&n.ndk.cacheAdapter&&n.ndk.cacheAdapter.locking&&(i=yield n.ndk.fetchEvents({kinds:[0],authors:[n.pubkey]},{cacheUsage:"ONLY_CACHE",closeOnEose:!0,groupable:!1}),s={cacheUsage:"ONLY_RELAY",closeOnEose:!0,groupable:!0,groupableDelay:250}),i&&0!==i.size||(i=yield n.ndk.fetchEvents({kinds:[0],authors:[n.pubkey]},s));const a=Array.from(i).sort((c,y)=>c.created_at-y.created_at);return 0===a.length?null:(n.profile=profileFromEvent(a[0]),n.profile&&n.ndk.cacheAdapter&&n.ndk.cacheAdapter.saveProfile&&n.ndk.cacheAdapter.saveProfile(n.pubkey,n.profile),n.profile)})()}follows=follows.bind(this);pin=pin.bind(this);relayList(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const n=s.ndk.outboxPool||s.ndk.pool,i=new Set;for(const y of n.relays.values())i.add(y);const a=new NDKRelaySet(i,s.ndk),c=yield s.ndk.fetchEvent({kinds:[10002],authors:[s.pubkey]},{closeOnEose:!0,pool:n,groupable:!0,subId:`relay-list-${s.pubkey.slice(0,6)}`},a);return c?NDKRelayList.from(c):yield s.relayListFromKind3()})()}relayListFromKind3(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("NDK not set");const n=yield s.ndk.fetchEvent({kinds:[3],authors:[s.pubkey]});if(n)try{const i=JSON.parse(n.content),a=new NDKRelayList(s.ndk),c=new Set,y=new Set;for(const[w,C]of Object.entries(i))if(C){const T=C;T.write&&y.add(w),T.read&&c.add(w)}else c.add(w),y.add(w);return a.readRelayUrls=Array.from(c),a.writeRelayUrls=Array.from(y),a}catch{}})()}tagReference(){return["p",this.pubkey]}referenceTags(s){const n=[["p",this.pubkey]];return s&&n[0].push("",s),n}publish(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s.ndk)throw new Error("No NDK instance found");if(!s.profile)throw new Error("No profile available");s.ndk.assertSigner(),yield new NDKEvent(s.ndk,{kind:0,content:serializeProfile(s.profile)}).publish()})()}follow(s,n,i=3){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!a.ndk)throw new Error("No NDK instance found");if(a.ndk.assertSigner(),n||(n=yield a.follows(void 0,void 0,i)),n.has(s))return!1;n.add(s);const c=new NDKEvent(a.ndk,{kind:i});for(const y of n)c.tag(y);return yield c.publish(),!0})()}validateNip05(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.ndk)throw new Error("No NDK instance found");const i=yield getNip05For(s);return null===i?null:i.pubkey===n.pubkey})()}zap(s,n,i,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!c.ndk)throw new Error("No NDK instance found");a||c.ndk.assertSigner();const y=new Zap({ndk:c.ndk,zappedUser:c}),w=Array.from(c.ndk.pool.relays.keys());return yield y.createZapRequest(s,n,i,w,a)})()}},NDKPrivateKeySigner=class pD{_user;privateKey;constructor(s){s&&(this.privateKey=s,this._user=new NDKUser({hexpubkey:getPublicKey(this.privateKey)}))}static generate(){const s=generatePrivateKey();return new pD(s)}blockUntilReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s._user)throw new Error("NDKUser not initialized");return s._user})()}user(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return yield s.blockUntilReady(),s._user})()}sign(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.privateKey)throw Error("Attempted to sign without a private key");return getSignature(s,n.privateKey)})()}encrypt(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to encrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.encrypt(i.privateKey,a,n)})()}decrypt(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!i.privateKey)throw Error("Attempted to decrypt without a private key");const a=s.hexpubkey;return yield nip04_exports.decrypt(i.privateKey,a,n)})()}},NDKNostrRpc=class extends lib$1.EventEmitter{ndk;signer;debug;constructor(o,s,n){super(),this.ndk=o,this.signer=s,this.debug=n.extend("rpc")}subscribe(o){var s=this;const n=this.ndk.subscribe(o,{closeOnEose:!1,groupable:!1});return n.on("event",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){try{const c=yield s.parseEvent(a);s.emit(c.method?"request":`response-${c.id}`,c)}catch(c){s.debug("error parsing event",c,a.rawEvent())}});return function(a){return i.apply(this,arguments)}}()),new Promise((i,a)=>{n.on("eose",()=>i(n))})}parseEvent(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=s.ndk.getUser({hexpubkey:o.pubkey});n.ndk=s.ndk;const i=yield s.signer.decrypt(n,o.content),a=JSON.parse(i),{id:c,method:y,params:w,result:C,error:T}=a;return y?{id:c,pubkey:o.pubkey,method:y,params:w,event:o}:{id:c,result:C,error:T,event:o}})()}sendResponse(o,s,n,i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y={id:o,result:n};a&&(y.error=a);const w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:s}),T=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(y),tags:[["p",s]],pubkey:w.hexpubkey});T.content=yield c.signer.encrypt(C,T.content),yield T.sign(c.signer),yield T.publish()})()}sendRequest(o,s,n=[],i=24133,a){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const y=Math.random().toString(36).substring(7),w=yield c.signer.user(),C=c.ndk.getUser({hexpubkey:o}),T={id:y,method:s,params:n},S=new Promise(k=>{const R=X=>{"auth_url"===X.result?(c.once(`response-${y}`,R),c.emit("authUrl",X.error)):a&&a(X)};c.once(`response-${y}`,R)}),M=new NDKEvent(c.ndk,{kind:i,content:JSON.stringify(T),tags:[["p",o]],pubkey:w.pubkey});return M.content=yield c.signer.encrypt(C,M.content),yield M.sign(c.signer),c.debug(`sending ${s} request to`,o),yield M.publish(),S})()}},NDKNip46Signer=class extends lib$1.EventEmitter{ndk;remoteUser;remotePubkey;token;localSigner;nip05;rpc;debug;relayUrls=[];constructor(o,s,n){let i,a;if(super(),s.includes("#")){const c=s.split("#");i=new NDKUser({npub:c[0]}).pubkey,a=c[1]}else s.startsWith("npub")?i=new NDKUser({npub:s}).pubkey:s.match(/\./)?this.nip05=s:i=s;this.ndk=o,i&&(this.remotePubkey=i),this.token=a,this.debug=o.debug.extend("nip46:signer"),this.remoteUser=new NDKUser({pubkey:i}),this.localSigner=n||NDKPrivateKeySigner.generate(),this.rpc=new NDKNostrRpc(o,this.localSigner,this.debug),this.rpc.on("authUrl",(...c)=>{this.emit("authUrl",...c)}),this.localSigner.user().then(c=>{this.rpc.subscribe({kinds:[24133,24134],"#p":[c.pubkey]})})}user(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return o.remoteUser})()}blockUntilReady(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.localSigner.user(),n=o.ndk.getUser({pubkey:o.remotePubkey});if(o.nip05&&!o.remotePubkey&&NDKUser.fromNip05(o.nip05).then(i=>{i&&(o.remoteUser=i,o.remotePubkey=i.pubkey,o.relayUrls=i.nip46Urls)}),!o.remotePubkey)throw new Error("Remote pubkey not set");return new Promise((i,a)=>{setTimeout(()=>{const c=[s.pubkey];o.token&&c.push(o.token),o.rpc.sendRequest(o.remotePubkey,"connect",c,24133,y=>{"ack"===y.result?i(n):a(y.error)})},100)})})()}encrypt(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.debug("asking for encryption"),new Promise((i,a)=>{n.rpc.sendRequest(n.remotePubkey,"nip04_encrypt",[o.pubkey,s],24133,c=>{c.error?a(c.error):i(c.result)})})})()}decrypt(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.debug("asking for decryption"),new Promise((i,a)=>{n.rpc.sendRequest(n.remotePubkey,"nip04_decrypt",[o.pubkey,s],24133,c=>{if(c.error)a(c.error);else{const y=JSON.parse(c.result);i(y[0])}})})})()}sign(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.debug("asking for a signature"),new Promise((n,i)=>{s.rpc.sendRequest(s.remotePubkey,"sign_event",[JSON.stringify(o)],24133,a=>{if(s.debug("got a response",a),a.error)i(a.error);else{const c=JSON.parse(a.result);n(c.sig)}})})})()}createAccount(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.debug("asking to create an account");const a=[];return o&&a.push(o),s&&a.push(s),n&&a.push(n),new Promise((c,y)=>{i.rpc.sendRequest(i.remotePubkey,"create_account",a,24134,w=>{i.debug("got a response",w),w.error?y(w.error):c(w.result)})})})()}};function dedup(o,s){return o.created_at>s.created_at?o:s}var OutboxItem=class{type;relayUrlScores;readRelays;writeRelays;constructor(o){this.type=o,this.relayUrlScores=new Map,this.readRelays=new Set,this.writeRelays=new Set}},OutboxTracker=class extends lib$1.EventEmitter{data;ndk;debug;constructor(o){super(),this.ndk=o,this.debug=o.debug.extend("outbox-tracker"),this.data=new dist.LRUCache({maxSize:1e5,entryExpirationTimeInMS:5e3})}trackUsers(o){for(const s of o){const n=getKeyFromItem(s);if(this.data.has(n))continue;const i=this.track(s,"user"),a=s instanceof NDKUser?s:new NDKUser({hexpubkey:s});a.ndk=this.ndk,a.relayList().then(c=>{if(c){i.readRelays=new Set(c.readRelayUrls),i.writeRelays=new Set(c.writeRelayUrls);for(const y of i.readRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from read relays`),i.readRelays.delete(y));for(const y of i.writeRelays)this.ndk.pool.blacklistRelayUrls.has(y)&&(this.debug(`removing blacklisted relay ${y} from write relays`),i.writeRelays.delete(y));this.data.set(n,i),this.debug(`Adding ${i.readRelays.size} read relays and ${i.writeRelays.size} write relays for ${a.hexpubkey}`)}})}}track(o,s){const n=getKeyFromItem(o);s??=getTypeFromItem(o);let i=this.data.get(n);return i||(i=new OutboxItem(s)),this.data.set(n,i),i}};function getKeyFromItem(o){return o instanceof NDKUser?o.hexpubkey:o}function getTypeFromItem(o){return o instanceof NDKUser?"user":"kind"}var NDKPool=class extends lib$1.EventEmitter{relays=new Map;blacklistRelayUrls;debug;temporaryRelayTimers=new Map;flappingRelays=new Set;backoffTimes=new Map;constructor(o=[],s=[],n,i){super(),this.debug=i??n.debug.extend("pool");for(const a of o){const c=new NDKRelay(a);this.addRelay(c,!1)}this.blacklistRelayUrls=new Set(s)}useTemporaryRelay(o,s=6e5){const n=this.relays.has(o.url);n||this.addRelay(o);const i=this.temporaryRelayTimers.get(o.url);if(i&&clearTimeout(i),!n||i){const a=setTimeout(()=>{this.removeRelay(o.url)},s);this.temporaryRelayTimers.set(o.url,a)}}addRelay(o,s=!0){var n=this;const i=o.url;this.blacklistRelayUrls?.has(i)?this.debug(`Relay ${i} is blacklisted`):(o.on("notice",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c,y){return n.emit("notice",c,y)});return function(c,y){return a.apply(this,arguments)}}()),o.on("connect",()=>this.handleRelayConnect(i)),o.on("ready",()=>this.handleRelayReady(o)),o.on("disconnect",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.emit("relay:disconnect",o)})),o.on("flapping",()=>this.handleFlapping(o)),o.on("auth",function(){var a=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(c){return n.emit("relay:auth",o,c)});return function(c){return a.apply(this,arguments)}}()),this.relays.set(i,o),s&&o.connect().catch(a=>{this.debug(`Failed to connect to relay ${i}`,a)}))}removeRelay(o){const s=this.relays.get(o);if(s)return s.disconnect(),this.relays.delete(o),this.emit("relay:disconnect",s),!0;const n=this.temporaryRelayTimers.get(o);return n&&(clearTimeout(n),this.temporaryRelayTimers.delete(o)),!1}getRelay(o,s=!0){let n=this.relays.get(o);return n||(n=new NDKRelay(o),this.addRelay(n,s)),n}handleRelayConnect(o){this.debug(`Relay ${o} connected`),this.emit("relay:connect",this.relays.get(o)),this.stats().connected===this.relays.size&&this.emit("connect")}handleRelayReady(o){this.debug(`Relay ${o.url} ready`),this.emit("relay:ready",o)}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=[];s.debug(`Connecting to ${s.relays.size} relays${o?`, timeout ${o}...`:""}`);for(const i of s.relays.values())if(o){const a=new Promise((c,y)=>{setTimeout(()=>y(`Timed out after ${o}ms`),o)});n.push(Promise.race([i.connect(),a]).catch(c=>{s.debug(`Failed to connect to relay ${i.url}: ${c??"No reason specified"}`)}))}else n.push(i.connect());o&&setTimeout(()=>{const i=s.stats().connected===s.relays.size,a=s.stats().connected>0;!i&&a&&s.emit("connect")},o),yield Promise.all(n)})()}checkOnFlappingRelays(){if(this.flappingRelays.size/this.relays.size>=.8)for(const o of this.flappingRelays)this.backoffTimes.set(o,0)}handleFlapping(o){this.debug(`Relay ${o.url} is flapping`);let s=this.backoffTimes.get(o.url)||5e3;s*=2,this.backoffTimes.set(o.url,s),this.debug(`Backoff time for ${o.url} is ${s}ms`),setTimeout(()=>{this.debug(`Attempting to reconnect to ${o.url}`),o.connect(),this.checkOnFlappingRelays()},s),o.disconnect(),this.emit("flapping",o)}size(){return this.relays.size}stats(){const o={total:0,connected:0,disconnected:0,connecting:0};for(const s of this.relays.values())o.total++,1===s.status?o.connected++:3===s.status?o.disconnected++:0===s.status&&o.connecting++;return o}connectedRelays(){return Array.from(this.relays.values()).filter(o=>1===o.status)}urls(){return Array.from(this.relays.keys())}};function correctRelaySet(o,s){const n=s.connectedRelays();if(!Array.from(o.relays).some(i=>n.map(a=>a.url).includes(i.url)))for(const i of n)o.addRelay(i);if(0===n.length)for(const i of s.relays.values())o.addRelay(i);return o}var SPEC_PATH="/.well-known/nostr/nip96.json",Nip96=class{ndk;spec;url;nip98Required=!1;constructor(o,s){this.url=`https://${o}${SPEC_PATH}`,this.ndk=s}prepareUpload(o,s="POST"){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n.validateHttpFetch(),n.spec||(yield n.fetchSpec()),!n.spec)throw new Error("Failed to fetch NIP96 spec");let i={};return n.nip98Required&&(i={Authorization:yield n.generateNip98Header(n.spec.api_url,s,o)}),{url:n.spec.api_url,headers:i}})()}xhrUpload(o,s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i="POST",{url:a,headers:c}=yield n.prepareUpload(s,i);o.open(i,a,!0),c.Authorization&&o.setRequestHeader("Authorization",c.Authorization);const y=new FormData;return y.append("file",s),new Promise((w,C)=>{o.onload=function(){o.status>=200&&o.status<300?w(JSON.parse(o.responseText)):C(new Error(o.statusText))},o.onerror=function(){C(new Error("Network Error"))},o.send(y)})})()}upload(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n="POST",{url:i,headers:a}=yield s.prepareUpload(o,n),c=new FormData;c.append("file",o);const y=yield s.ndk.httpFetch(s.spec.api_url,{method:n,headers:a,body:c});if(200!==y.status)throw new Error(`Failed to upload file to ${i}`);const w=yield y.json();if("success"!==w.status)throw new Error(w.message);return w})()}validateHttpFetch(){if(!this.ndk)throw new Error("NDK is required to fetch NIP96 spec");if(!this.ndk.httpFetch)throw new Error("NDK must have an httpFetch method to fetch NIP96 spec")}fetchSpec(){var o=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){o.validateHttpFetch();const s=yield o.ndk.httpFetch(o.url);if(200!==s.status)throw new Error(`Failed to fetch NIP96 spec from ${o.url}`);const n=yield s.json();if(!n)throw new Error(`Failed to parse NIP96 spec from ${o.url}`);o.spec=n,o.nip98Required=o.spec.plans.free.is_nip98_required})()}generateNip98Header(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i.ndk,{kind:27235,tags:[["u",o],["method",s]]});if(["POST","PUT","PATCH"].includes(s)){const c=yield i.calculateSha256(n);a.tags.push(["payload",c])}return yield a.sign(),`Nostr ${btoa(JSON.stringify(a.rawEvent()))}`})()}calculateSha256(o){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const s=yield o.arrayBuffer(),n=yield crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")})()}},DEFAULT_OUTBOX_RELAYS=["wss://purplepag.es","wss://relay.snort.social"],DEFAULT_BLACKLISTED_RELAYS=["wss://brb.io"],NDK=class extends lib$1.EventEmitter{explicitRelayUrls;pool;outboxPool;_signer;_activeUser;cacheAdapter;debug;devWriteRelaySet;outboxTracker;mutedIds;clientName;clientNip89;relayAuthDefaultPolicy;httpFetch;autoConnectUserRelays=!0;autoFetchUserMutelist=!0;constructor(o={}){var s;super(),s=this,this.debug=o.debug||debug3("ndk"),this.explicitRelayUrls=o.explicitRelayUrls||[],this.pool=new NDKPool(o.explicitRelayUrls||[],o.blacklistRelayUrls,this),this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`),this.pool.on("relay:auth",function(){var n=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i,a){s.relayAuthDefaultPolicy&&(yield s.relayAuthDefaultPolicy(i,a))});return function(i,a){return n.apply(this,arguments)}}()),this.autoConnectUserRelays=o.autoConnectUserRelays??!0,this.autoFetchUserMutelist=o.autoFetchUserMutelist??!0,this.clientName=o.clientName,this.clientNip89=o.clientNip89,this.relayAuthDefaultPolicy=o.relayAuthDefaultPolicy,o.enableOutboxModel&&(this.outboxPool=new NDKPool(o.outboxRelayUrls||DEFAULT_OUTBOX_RELAYS,o.blacklistRelayUrls||DEFAULT_BLACKLISTED_RELAYS,this,this.debug.extend("outbox-pool")),this.outboxTracker=new OutboxTracker(this)),this.signer=o.signer,this.cacheAdapter=o.cacheAdapter,this.mutedIds=o.mutedIds||new Map,o.devWriteRelayUrls&&(this.devWriteRelaySet=NDKRelaySet.fromRelayUrls(o.devWriteRelayUrls,this));try{this.httpFetch=fetch}catch{}}addExplicitRelay(o,s,n=!0){let i;return i="string"==typeof o?new NDKRelay(o,s):o,this.pool.addRelay(i,n),this.explicitRelayUrls.push(i.url),i}toJSON(){return{relayCount:this.pool.relays.size}.toString()}get activeUser(){return this._activeUser}set activeUser(o){var s=this;const n=this._activeUser?.pubkey!==o?.pubkey;if(this._activeUser=o,o&&n){const i=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield T.relayList();if(S){s.debug("Connecting to user relays",{npub:T.npub,relays:S.relays});for(const M of S.relays){let k=s.pool.relays.get(M);k||(k=new NDKRelay(M),s.pool.addRelay(k))}}else s.debug("No relay list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),a=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){const S=yield s.fetchEvents([{kinds:[1e4],authors:[T.pubkey]},{kinds:[3e4],authors:[T.pubkey],"#d":["mute"],limit:1}]);if(S)for(const M of S){const k=lists_default.from(M);for(const R of k.items)s.mutedIds.set(R[1],R[0])}else s.debug("No mute list found for user",{npub:T.npub})});return function(S){return C.apply(this,arguments)}}(),c=[];this.autoConnectUserRelays&&c.push(i),this.autoFetchUserMutelist&&c.push(a);const y=function(){var C=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(T){for(const S of c)yield S(T)});return function(S){return C.apply(this,arguments)}}(),w=this.outboxPool||this.pool;w.connectedRelays.length>0?y(o):(this.debug("Waiting for connection to main relays"),w.once("relay:ready",C=>{this.debug("New relay ready",C?.url),y(o)}))}else o||(this.mutedIds=new Map)}get signer(){return this._signer}set signer(o){this._signer=o,this.emit("signer:ready",o),o?.user().then(s=>{s.ndk=this,this.activeUser=s})}connect(o){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s._signer&&s.autoConnectUserRelays&&(s.debug("Attempting to connect to user relays specified by signer"),s._signer.relays)&&(yield s._signer.relays()).forEach(i=>s.pool.addRelay(i));const n=[s.pool.connect(o)];return s.outboxPool&&n.push(s.outboxPool.connect(o)),s.debug("Connecting to relays",{timeoutMs:o}),Promise.allSettled(n).then(()=>{})})()}getUser(o){const s=new NDKUser(o);return s.ndk=this,s}getUserFromNip05(o,s=!1){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return NDKUser.fromNip05(o,n,s)})()}subscribe(o,s,n,i=!0){const a=new NDKSubscription(this,o,s,n);if(n)for(const c of n.relays)this.pool.useTemporaryRelay(c);if(this.outboxPool&&a.hasAuthorsFilter()){const c=a.filters.filter(y=>y.authors&&y.authors?.length>0).map(y=>y.authors).flat();this.outboxTracker?.trackUsers(c)}return i&&a.start(),a}publish(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.debug("Deprecated: Use `event.publish()` instead"),o.publish(s,n)})()}fetchEvent(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let a,c;if(n instanceof NDKRelay?c=new NDKRelaySet(new Set([n]),i):n instanceof NDKRelaySet&&(c=n),!n&&"string"==typeof o&&!isNip33AValue(o)){const y=relaysFromBech32(o);y.length>0&&(c=new NDKRelaySet(new Set(y),i),c=correctRelaySet(c,i.pool))}if(a="string"==typeof o?filterFromId(o):o,!a)throw new Error(`Invalid filter: ${JSON.stringify(o)}`);return new Promise(y=>{const w=i.subscribe(a,{...s||{},closeOnEose:!0},c,!1);w.on("event",C=>{C.ndk=i,y(C)}),w.on("eose",()=>{y(null)}),w.start()})})()}fetchEvents(o,s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise(a=>{const c=new Map,y=i.subscribe(o,{...s||{},closeOnEose:!0},n,!1),w=C=>{const T=C.deduplicationKey(),S=c.get(T);S&&(C=dedup(S,C)),C.ndk=i,c.set(T,C)};y.on("event",w),y.on("event:dup",w),y.on("eose",()=>{a(new Set(c.values()))}),y.start()})})()}assertSigner(){if(!this.signer)throw this.emit("signerRequired"),new Error("Signer required")}getNip96(o){return new Nip96(o,this)}};const LOCAL_STORE_KEY="__nostrlogin_nip46",LOGGED_IN_ACCOUNTS="__nostrlogin_accounts",RECENT_ACCOUNTS="__nostrlogin_recent",OUTBOX_RELAYS$1=["wss://purplepag.es","wss://relay.nos.social","wss://user.kindpag.es","wss://relay.damus.io","wss://nos.lol"],DEFAULT_SIGNUP_RELAYS=["wss://relay.damus.io/","wss://nos.lol/","wss://relay.primal.net/"],localStorageSetItem=(o,s)=>{localStorage.setItem(o,s)},localStorageGetItem=o=>{const s=window.localStorage.getItem(o);if(s)try{return JSON.parse(s)}catch{}return null},localStorageRemoveItem=o=>{localStorage.removeItem(o)},fetchProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n){const i=new NDKUser({pubkey:s.pubkey});return i.ndk=n,yield i.fetchProfile()});return function(n,i){return o.apply(this,arguments)}}(),createProfile=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n,i,a){const c={name:s.name},y=new NDKEvent(n,{kind:0,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:JSON.stringify(c),tags:[]});window.location.hostname&&y.tags.push(["client",window.location.hostname]);const w=new NDKEvent(n,{kind:10002,created_at:Math.floor(Date.now()/1e3),pubkey:s.pubkey,content:"",tags:[]}),C=(a||"").split(",").map(T=>T.trim()).filter(T=>T.startsWith("ws"));C.length||C.push(...DEFAULT_SIGNUP_RELAYS);for(const T of C)w.tags.push(["r",T]);yield y.sign(i),console.log("signed profile",y),yield w.sign(i),console.log("signed relays",w),yield y.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,n)),console.log("published profile",y),yield w.publish(NDKRelaySet.fromRelayUrls(OUTBOX_RELAYS$1,n)),console.log("published relays",w)});return function(n,i,a,c){return o.apply(this,arguments)}}(),bunkerUrlToInfo=(o,s="")=>{const n=new URL(o);return{pubkey:n.hostname||n.pathname.split("//")[1],sk:s||generatePrivateKey(),relays:n.searchParams.getAll("relay"),token:n.searchParams.get("secret")||"",authMethod:"connect"}},isBunkerUrl=o=>o.startsWith("bunker://"),getBunkerUrl=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s,n){if(!s)return"";if(isBunkerUrl(s))return s;if(s.includes("@")){const[i,a]=s.toLocaleLowerCase().split("@"),c=n.devOverrideBunkerOrigin||`https://${a}`,y=`${c}/.well-known/nostr.json?name=_`,w=`${c}/.well-known/nostr.json?name=${i}`,C=yield fetch(y),T=yield C.json(),M=T.nip46[T.names._],k=yield fetch(w),R=(yield k.json()).names[i];if(!M.length)throw new Error("Bunker relay not provided");return`bunker://${R}?relay=${M[0]}`}throw new Error("Invalid user name or bunker url")});return function(n,i){return o.apply(this,arguments)}}(),checkNip05=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(s){let n=!1,i="",a="";return yield(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s||!s.includes("@"))return;const[c,y]=s.toLocaleLowerCase().split("@");if(!c)return;if(!new RegExp(/^[\w-.]+@([\w-]+\.)+[\w-]{2,8}$/g).test(s))return void(i="Invalid name");if(!y)return void(i="Select service");const w=`https://${y}/.well-known/nostr.json?name=${c.toLowerCase()}`;try{const C=yield fetch(w),T=yield C.json();if(T.names[c])return void(a=T.names[c])}catch{}n=!0})(),{available:n,taken:""!=a,error:i,pubkey:a}});return function(n){return o.apply(this,arguments)}}(),upgradeInfo=o=>{"typeAuthMethod"in o&&delete o.typeAuthMethod,o.authMethod||(o.authMethod="extension"in o&&o.extension?"extension":"readOnly"in o&&o.readOnly?"readOnly":"connect"),o.nip05&&isBunkerUrl(o.nip05)&&(o.bunkerUrl=o.nip05,o.nip05="")},localStorageAddAccount=o=>{localStorageSetItem(LOCAL_STORE_KEY,JSON.stringify(o));const s=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],n=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(y=>upgradeInfo(y)),n.forEach(y=>upgradeInfo(y));const i=s,a=s.findIndex(y=>y.pubkey===o.pubkey&&y.authMethod===o.authMethod);-1!==a?i[a]=o:i.push(o);const c=n.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(c)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(i))},localStorageRemoveCurrentAccount=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);if(!o)return;upgradeInfo(o);const s={...o};delete s.sk,delete s.otpData;const n=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[],i=localStorageGetItem(RECENT_ACCOUNTS)||[];n.forEach(y=>upgradeInfo(y)),i.forEach(y=>upgradeInfo(y));const a=i;if("connect"===s.authMethod&&s.bunkerUrl&&s.bunkerUrl.includes("secret="))console.log("nostr login bunker conn with a secret not saved to recent");else if("local"===s.authMethod)console.log("nostr login temporary local keys not save to recent");else{const y=i.findIndex(w=>w.pubkey===s.pubkey&&w.authMethod===s.authMethod);-1!==y?a[y]=s:a.push(s)}const c=n.filter(y=>y.pubkey!==o.pubkey||y.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(a)),localStorageSetItem(LOGGED_IN_ACCOUNTS,JSON.stringify(c)),localStorageRemoveItem(LOCAL_STORE_KEY)},localStorageRemoveRecent=o=>{const s=localStorageGetItem(RECENT_ACCOUNTS)||[];s.forEach(i=>upgradeInfo(i));const n=s.filter(i=>i.pubkey!==o.pubkey||i.authMethod!==o.authMethod);localStorageSetItem(RECENT_ACCOUNTS,JSON.stringify(n))},localStorageGetRecents=()=>{const o=localStorageGetItem(RECENT_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetAccounts=()=>{const o=localStorageGetItem(LOGGED_IN_ACCOUNTS)||[];return o.forEach(s=>upgradeInfo(s)),o},localStorageGetCurrent=()=>{const o=localStorageGetItem(LOCAL_STORE_KEY);return o&&upgradeInfo(o),o},getDarkMode=o=>{const s=localStorage.getItem("nl-dark-mode");return s?!!JSON.parse(s):void 0!==o.darkMode?o.darkMode:!(!window.matchMedia||!window.matchMedia("(prefers-color-scheme: dark)").matches)},getIcon=function(){var o=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return document.location.origin+"/favicon.ico"});return function(){return o.apply(this,arguments)}}();class NostrRpc extends NDKNostrRpc{pubkey;_ndk;_signer;requests=new Set;sub;_useNip44=!1;constructor(s,n,i){super(s,i,s.debug.extend("nip46:signer:rpc")),this._ndk=s,this._signer=i,this.pubkey=n}subscribe(s){var n=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.sub=yield n().call(i,s),i.sub})()}stop(){this.sub&&(this.sub.stop(),this.sub=void 0)}setUseNip44(s){this._useNip44=s}isNip04(s){const n=s.length;return!(n<28)&&"?"===s[n-28]&&"i"===s[n-27]&&"v"===s[n-26]&&"="===s[n-25]}parseEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=n._ndk.getUser({pubkey:s.pubkey});i.ndk=n._ndk;const a=n.isNip04(s.content)?n._signer.decrypt:n._signer.decryptNip44;console.log("client event nip04",n.isNip04(s.content));const c=yield a.call(n._signer,i,s.content),y=JSON.parse(c),{id:w,method:C,params:T,result:S,error:M}=y;return C?{id:w,pubkey:s.pubkey,method:C,params:T,event:s}:{id:w,result:S,error:M,event:s}})()}parseNostrConnectReply(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const a=new NDKEvent(i._ndk,s),c=yield i.parseEvent(a);if(console.log("nostr connect parsedEvent",c),c.method)throw new Error("Bad nostr connect reply");if(c.result===n)return a.pubkey;throw new Error(c.error)})()}listen(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=n.pubkey;console.log("nostr-login listening for conn to",i);const a=yield n.subscribe({kinds:[24133],"#p":[i]});return new Promise((c,y)=>{a.on("event",function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C){try{const T=yield n.parseEvent(C);if(!T.method){const S=T;if("auth_url"===S.result)return;"ack"===S.result||S.result===s?c(C.pubkey):y(S.error)}}catch(T){console.log("error parsing event",T,C.rawEvent())}n.stop()});return function(C){return w.apply(this,arguments)}}())})})()}connect(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((a,c)=>{i.sendRequest(s.pubkey,"connect",[s.pubkey,s.token||"",n||""],24133,w=>{"ack"===w.result?a():c(w.error)})})})()}getId(){return Math.random().toString(36).substring(7)}sendRequest(s,n,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId();y.setResponseHandler(w,c),yield(yield y.createRequestEvent(w,s,n,i,a)).publish()})()}setResponseHandler(s,n){let i=!1;const a=Date.now();return new Promise(()=>{const c=y=>{"auth_url"===y.result?(this.once(`response-${s}`,c),i||(i=!0,this.emit("authUrl",y.error))):n&&this.requests.has(s)&&(this.requests.delete(s),console.log("nostr-login iframe processed request in",Date.now()-a,"ms"),n(y))};this.once(`response-${s}`,c)})}createRequestEvent(s,n,i,a=[],c=24133){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){y.requests.add(s);const w=yield y._signer.user(),C=y._ndk.getUser({pubkey:n}),S=new NDKEvent(y._ndk,{kind:c,content:JSON.stringify({id:s,method:i,params:a}),tags:[["p",n]],pubkey:w.pubkey}),M=y._useNip44&&"create_account"!==i?y._signer.encryptNip44:y._signer.encrypt;return S.content=yield M.call(y._signer,C,S.content),yield S.sign(y._signer),S})()}}class IframeNostrRpc extends NostrRpc{peerOrigin;iframePort;iframeRequests=new Map;constructor(s,n,i,a){super(s,n,i),this._ndk=s,this.peerOrigin=a}subscribe(s){var n=()=>super.subscribe,i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.peerOrigin?new NDKSubscription(i._ndk,s,{closeOnEose:!0,cacheUsage:NDKSubscriptionCacheUsage.ONLY_CACHE}):n().call(i,s)})()}setWorkerIframePort(s){var n=this;if(!this.peerOrigin)throw new Error("Unexpected iframe port");this.iframePort=s,s.onmessage=function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){if(console.log("iframe-nip46 got response",a.data),"string"==typeof a.data&&a.data.startsWith("errorNoKey")){const c=a.data.split(":")[1],{id:y="",pubkey:w=""}=n.iframeRequests.get(c)||{};y&&w&&n.requests.has(y)&&n.emit(`iframeRestart-${w}`)}else try{const c=a.data;if(!validateEvent(c))throw new Error("Invalid event from iframe");if(!verifySignature(c))throw new Error("Invalid event signature from iframe");const y=new NDKEvent(n._ndk,c),w=yield n.parseEvent(y);w.method||(console.log("parsed response",w),n.emit(`response-${w.id}`,w))}catch(c){console.log("error parsing event",c,a.data)}});return function(a){return i.apply(this,arguments)}}()}sendRequest(s,n,i=[],a=24133,c){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w=y.getId(),C=yield y.createRequestEvent(w,s,n,i,a);y.setResponseHandler(w,c),y.iframePort?(y.iframeRequests.set(C.id,{id:w,pubkey:s}),console.log("iframe-nip46 sending request to",y.peerOrigin,C.rawEvent()),y.iframePort.postMessage(C.rawEvent())):yield C.publish()})()}}class ReadyListener{origin;messages;promise;constructor(s,n){var i=this;this.origin=n,this.messages=s,this.promise=new Promise(a=>{console.log(new Date,"started listener for",this.messages);const c=function(){var y=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(w){const C=new URL(n).hostname,T=new URL(w.origin).hostname;(T===C||T.endsWith("."+C))&&Array.isArray(w.data)&&w.data.length&&i.messages.includes(w.data[0])&&(console.log(new Date,"got ready message from",w.origin,w.data),window.removeEventListener("message",c),a(w.data))});return function(C){return y.apply(this,arguments)}}();window.addEventListener("message",c)})}wait(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(new Date,"waiting for",s.messages);const n=yield s.promise;return console.log(new Date,"finished waiting for",s.messages,n),n})()}}class BannerManager extends lib$1.EventEmitter{banner=null;iframeReady;params;constructor(s){super(),this.params=s}onAuthUrl(s,n){this.banner&&(this.banner.notify=s?{mode:n?"iframeAuthUrl":"authUrl",url:s}:{mode:""})}onIframeRestart(s){this.banner&&(this.iframeReady=new ReadyListener(["rebinderDone","rebinderError"],new URL(s).origin),this.banner.notify={mode:"rebind",url:s})}onUserInfo(s){this.banner&&(this.banner.userInfo=s)}onCallTimeout(){this.banner&&(this.banner.notify={mode:"timeout"})}onCallStart(){this.banner&&(this.banner.isLoading=!0)}onCallEnd(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.banner&&(s.iframeReady&&(yield s.iframeReady.wait(),s.iframeReady=void 0),s.banner.isLoading=!1,s.banner.notify={mode:""})})()}onUpdateAccounts(s){this.banner&&(this.banner.accounts=s)}onDarkMode(s){this.banner&&(this.banner.darkMode=s)}launchAuthBanner(s){var n=this;this.banner=document.createElement("nl-banner"),this.banner.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&this.banner.setAttribute("theme",s.theme),s.noBanner&&this.banner.setAttribute("hidden-mode","true"),this.banner.addEventListener("handleLoginBanner",i=>{this.emit("launch",i.detail)}),this.banner.addEventListener("handleConfirmLogout",()=>{this.emit("onConfirmLogout")}),this.banner.addEventListener("handleLogoutBanner",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.emit("logout")})),this.banner.addEventListener("handleImportModal",i=>{this.emit("import")}),this.banner.addEventListener("handleNotifyConfirmBanner",i=>{this.emit("onAuthUrlClick",i.detail)}),this.banner.addEventListener("handleNotifyConfirmBannerIframe",i=>{this.emit("onIframeAuthUrlClick",i.detail)}),this.banner.addEventListener("handleSwitchAccount",i=>{this.emit("onSwitchAccount",i.detail)}),this.banner.addEventListener("handleOpenWelcomeModal",()=>{this.emit("launch",this.params.optionsModal.startScreen),this.banner&&(this.banner.isOpen=!1)}),document.body.appendChild(this.banner)}}function extract(o,s,n){return hash$1(o),void 0===n&&(n=new Uint8Array(o.outputLen)),hmac$1(o,toBytes$1(n),toBytes$1(s))}const HKDF_COUNTER=new Uint8Array([0]),EMPTY_BUFFER=new Uint8Array;function expand(o,s,n,i=32){if(hash$1(o),number$1(i),i>255*o.outputLen)throw new Error("Length should be <= 255*HashLen");const a=Math.ceil(i/o.outputLen);void 0===n&&(n=EMPTY_BUFFER);const c=new Uint8Array(a*o.outputLen),y=hmac$1.create(o,s),w=y._cloneInto(),C=new Uint8Array(y.outputLen);for(let T=0;Tdecoder.decode(o),getConversationKey(o,s){const n=secp256k1.getSharedSecret(o,"02"+s).subarray(1,33);return extract(sha256,n,"nip44-v2")},getMessageKeys(o,s){const n=expand(sha256,o,s,76);return{chacha_key:n.subarray(0,32),chacha_nonce:n.subarray(32,44),hmac_key:n.subarray(44,76)}},calcPaddedLen(o){if(!Number.isSafeInteger(o)||o<1)throw new Error("expected positive integer");if(o<=32)return 32;const s=1<u.maxPlaintextSize)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const s=new Uint8Array(2);return new DataView(s.buffer).setUint16(0,o,!1),s},pad(o){const s=u.utf8Encode(o),n=s.length;return concatBytes(u.writeU16BE(n),s,new Uint8Array(u.calcPaddedLen(n)-n))},unpad(o){const s=new DataView(o.buffer).getUint16(0),n=o.subarray(2,2+s);if(su.maxPlaintextSize||n.length!==s||o.length!==2+u.calcPaddedLen(s))throw new Error("invalid padding");return u.utf8Decode(n)},hmacAad(o,s,n){if(32!==n.length)throw new Error("AAD associated data must be 32 bytes");const i=concatBytes(n,s);return hmac$1(sha256,o,i)},decodePayload(o){if("string"!=typeof o)throw new Error("payload must be a valid string");const s=o.length;if(s<132||s>87472)throw new Error("invalid payload length: "+s);if("#"===o[0])throw new Error("unknown encryption version");let n;try{n=base64.decode(o)}catch(c){throw new Error("invalid base64: "+c.message)}const i=n.length;if(i<99||i>65603)throw new Error("invalid data length: "+i);const a=n[0];if(2!==a)throw new Error("unknown encryption version "+a);return{nonce:n.subarray(1,33),ciphertext:n.subarray(33,-32),mac:n.subarray(-32)}}};function encryptNip44(o,s,n=randomBytes(32)){const{chacha_key:i,chacha_nonce:a,hmac_key:c}=u.getMessageKeys(s,n),y=u.pad(o),w=chacha20(i,a,y),C=u.hmacAad(c,w,n);return base64.encode(concatBytes(new Uint8Array([2]),n,w,C))}function decryptNip44(o,s){const{nonce:n,ciphertext:i,mac:a}=u.decodePayload(o),{chacha_key:c,chacha_nonce:y,hmac_key:w}=u.getMessageKeys(s,n);if(!equalBytes(u.hmacAad(w,i,n),a))throw new Error("invalid MAC");const C=chacha20(c,y,i);return u.unpad(C)}class Nip44{cache=new Map;createKey(s,n){return u.getConversationKey(s,n)}getKey(s,n,i){const a=getPublicKey(s)+n;let c=this.cache.get(a);if(c)return c;const y=this.createKey(s,n);return this.cache.set(a,y),y}encrypt(s,n,i){return encryptNip44(i,this.getKey(s,n))}decrypt(s,n,i){return decryptNip44(i,this.getKey(s,n))}}class PrivateKeySigner extends NDKPrivateKeySigner{nip44=new Nip44;constructor(s){super(s)}encryptNip44(s,n){return Promise.resolve(this.nip44.encrypt(this.privateKey,s.pubkey,n))}decryptNip44(s,n){return Promise.resolve(this.nip44.decrypt(this.privateKey,s.pubkey,n))}}const OUTBOX_RELAYS=["wss://user.kindpag.es","wss://purplepag.es","wss://relay.nos.social"],DEFAULT_NOSTRCONNECT_RELAY="wss://relay.nsec.app/",NOSTRCONNECT_APPS=[{name:"Nsec.app",domain:"nsec.app",canImport:!0,img:"https://nsec.app/assets/favicon.ico",link:"https://use.nsec.app/",relay:"wss://relay.nsec.app/"},{name:"Amber",img:"https://raw.githubusercontent.com/greenart7c3/Amber/master/app/src/main/res/mipmap-hdpi/ic_launcher.webp",link:"",relay:"wss://relay.nsec.app/"},{name:"Other key stores",img:"",link:"",relay:"wss://relay.nsec.app/"}];class AuthNostrService extends lib$1.EventEmitter{ndk;profileNdk;signer=null;localSigner=null;params;signerPromise;readyPromise;readyCallback;nip44Codec=new Nip44;nostrConnectKey="";nostrConnectSecret="";iframe;starterReady;nip04;nip44;constructor(s){super(),this.params=s,this.ndk=new NDK({enableOutboxModel:!1}),this.profileNdk=new NDK({enableOutboxModel:!0,explicitRelayUrls:OUTBOX_RELAYS}),this.profileNdk.connect(),this.nip04={encrypt:this.encrypt04.bind(this),decrypt:this.decrypt04.bind(this)},this.nip44={encrypt:this.encrypt44.bind(this),decrypt:this.decrypt44.bind(this)}}isIframe(){return!!this.iframe}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.signerPromise)try{yield s.signerPromise}catch{}if(s.readyPromise)try{yield s.readyPromise}catch{}})()}nostrConnect(s,{domain:n="",link:i="",iframeUrl:a="",importConnect:c=!1}={}){var y=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const w={authMethod:"connect",pubkey:"",sk:y.nostrConnectKey,domain:n,relays:[s=s||DEFAULT_NOSTRCONNECT_RELAY],iframeUrl:a};console.log("nostrconnect info",w,i),i&&!a&&window.open(i,"_blank","width=400,height=700");const C=yield y.initSigner(w,{listen:!0});if(!C)throw new Error("Bad remote pubkey");return w.pubkey=C,w.bunkerUrl=`bunker://${C}?relay=${s}`,c||y.onAuth("login",w),w})()}createNostrConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.nostrConnectKey=generatePrivateKey(),n.nostrConnectSecret=Math.random().toString(36).substring(7);const i=getPublicKey(n.nostrConnectKey),a={name:document.location.host,url:document.location.href,icon:yield getIcon(),perms:n.params.optionsModal.perms};return`nostrconnect://${i}?metadata=${encodeURIComponent(JSON.stringify(a))}&secret=${n.nostrConnectSecret}${s?`&relay=${s}`:""}`})()}getNostrConnectServices(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const n=yield s.createNostrConnect(),i=NOSTRCONNECT_APPS.map(a=>({...a}));for(const a of i){let c=DEFAULT_NOSTRCONNECT_RELAY;if(a.link.startsWith("https://")){let w=a.domain||new URL(a.link).hostname;try{const C=yield(yield fetch(`https://${w}/.well-known/nostr.json`)).json(),S=C.nip46[C.names._];S&&S.length&&(c=S[0]),a.iframeUrl=C.nip46.iframe_url||""}catch(C){console.log("Bad app info",C,a)}}const y=n+"&relay="+c;a.link=a.iframeUrl?y:a.link.replace("",y)}return[n,i]})()}localSignup(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const i=generatePrivateKey(),a={pubkey:getPublicKey(i),sk:i,name:s,authMethod:"local"};console.log(`localSignup name: ${s}`),yield n.setLocal(a,!0)})()}setLocal(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.releaseSigner(),i.localSigner=new PrivateKeySigner(s.sk),n&&(yield createProfile(s,i.profileNdk,i.localSigner,i.params.optionsModal.signupRelays)),i.onAuth("login",s)})()}prepareImportUrl(s){if("otp"===this.params.userInfo?.authMethod)return s+"&import=true";if(!this.localSigner||"local"!==this.params.userInfo?.authMethod)throw new Error("Most be local keys");return s+"#import="+nip19_exports.nsecEncode(this.localSigner.privateKey)}importAndConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:i,domain:a,link:c,iframeUrl:y}=s;if(!a)throw new Error("Domain required");const w=yield n.nostrConnect(i,{domain:a,link:c,importConnect:!0,iframeUrl:y});yield n.logout(!0),n.localSigner=null,n.onAuth("login",w)})()}setReadOnly(s){this.onAuth("login",{pubkey:s,authMethod:"readOnly"})}setExtension(s){this.onAuth("login",{pubkey:s,authMethod:"extension"})}setOTP(s,n){this.onAuth("login",{pubkey:s,authMethod:"otp",otpData:n})}setConnect(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.releaseSigner(),yield n.startAuth(),yield n.initSigner(s),n.onAuth("login",s),yield n.endAuth()})()}createAccount(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const[i,a]=s.split("@"),c=yield getBunkerUrl(`_@${a}`,n.params.optionsModal);console.log("create account bunker's url",c);const y=bunkerUrlToInfo(c),w=!!n.params.userInfo;yield n.initSigner(y,{eventToAddAccount:w});const C=[i,a,"",n.params.optionsModal.perms||""];console.log("signer",n.signer);const T=yield new Promise(S=>{n.signer.rpc.sendRequest(y.pubkey,"create_account",C,void 0,S)});if(console.log("create_account pubkey",T),"error"===T.result)throw new Error(T.error);return{bunkerUrl:`bunker://${T.result}?relay=${y.relays?.[0]}`,sk:y.sk}})()}releaseSigner(){this.signer=null,this.localSigner=null;for(const s of this.ndk.pool.relays.keys())this.ndk.pool.removeRelay(s)}logout(s=!1){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s||n.releaseSigner(),localStorageRemoveCurrentAccount(),n.onAuth("logout"),n.emit("updateAccounts")})()}setUserInfo(s){this.params.userInfo=s,this.emit("onUserInfo",s),s&&(localStorageAddAccount(s),this.emit("updateAccounts"))}exportKeys(){return this.params.userInfo?"local"!==this.params.userInfo.authMethod?"":nip19_exports.nsecEncode(this.params.userInfo.sk):""}onAuth(s,n=null){if("logout"!==s&&!n)throw new Error("No user info in onAuth");if(n&&this.params.userInfo&&(n.pubkey!==this.params.userInfo.pubkey||n.authMethod!==this.params.userInfo.authMethod)){const i=new CustomEvent("nlAuth",{detail:{type:"logout"}});console.log("nostr-login auth",i.detail),document.dispatchEvent(i)}this.setUserInfo(n),n&&fetchProfile(n,this.profileNdk).then(i=>{if(this.params.userInfo!==n)return;const a={...this.params.userInfo,picture:i?.image||i?.picture,name:i?.name||i?.displayName||i?.nip05||nip19_exports.npubEncode(n.pubkey)};this.setUserInfo(a)});try{const i=n?nip19_exports.npubEncode(n.pubkey):"",a={type:s};"logout"===s?(this.iframe&&this.iframe.remove(),this.iframe=void 0):(a.pubkey=n.pubkey,n.sk&&(a.localNsec=nip19_exports.nsecEncode(n.sk)),n.relays&&(a.relays=n.relays),n.otpData&&(a.otpData=n.otpData),a.method=n.authMethod||"connect");const c=new CustomEvent("nlAuth",{detail:a});console.log("nostr-login auth",a),document.dispatchEvent(c),this.params.optionsModal.onAuth&&this.params.optionsModal.onAuth(i,a)}catch(i){console.log("onAuth error",i)}}createIframe(s){return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!s)return;const n=new URL(s);let i;const a="__nostr-login-worker-iframe-"+n.hostname.replaceAll(".","-");i=document.querySelector(`#${a}`),console.log("iframe",a,i),i||(i=document.createElement("iframe"),i.setAttribute("width","0"),i.setAttribute("height","0"),i.setAttribute("border","0"),i.style.display="none",i.id=a,document.body.append(i)),i.setAttribute("src",s);const c=new ReadyListener(["workerReady","workerError"],n.origin);yield new Promise(w=>{i.addEventListener("load",w)});const y=yield c.wait();return console.log("nostr-login iframe ready",s,y),{iframe:i,port:y[1]}})()}startAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.readyCallback)throw new Error("Already started");s.readyPromise=new Promise(n=>s.readyCallback=n)})()}endAuth(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("endAuth",s.params.userInfo),s.params.userInfo&&s.params.userInfo.iframeUrl){const{iframe:n,port:i}=(yield s.createIframe(s.params.userInfo.iframeUrl))||{};if(s.iframe=n,!s.iframe||!i)return;s.signer.rpc.setWorkerIframePort(i)}s.readyCallback(),s.readyCallback=void 0})()}resetAuth(){this.readyCallback&&this.readyCallback(),this.readyCallback=void 0}listen(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("listen",s,n),!s.iframeUrl)return n.listen(i.nostrConnectSecret);const a=yield i.starterReady.wait();if("starterError"===a[0])throw new Error(a[1]);return i.signer.rpc.parseNostrConnectReply(a[1],i.nostrConnectSecret)})()}initSigner(s,{listen:n=!1,connect:i=!1,eventToAddAccount:a=!1}={}){var c=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(c.signerPromise)try{yield c.signerPromise}catch{}console.log("initSigner info",s);const y=s.iframeUrl?new URL(s.iframeUrl).origin:void 0;return y&&(c.starterReady=new ReadyListener(["starterDone","starterError"],y)),c.emit("onIframeUrl",s.iframeUrl),c.signerPromise=new Promise(function(){var w=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(C,T){try{if(s.relays&&!s.iframeUrl)for(const R of s.relays)c.ndk.addExplicitRelay(R,void 0);yield c.ndk.connect();const S=getPublicKey(s.sk),M=new PrivateKeySigner(s.sk);c.signer=new NDKNip46Signer(c.ndk,s.pubkey,M);const k=new IframeNostrRpc(c.ndk,S,M,y);if(k.setUseNip44(!0),c.signer.rpc=k,k.on(`iframeRestart-${s.pubkey}`,(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const R=s.iframeUrl+(s.iframeUrl.includes("?")?"&":"?")+"pubkey="+s.pubkey+"&rebind="+S;c.emit("iframeRestart",{pubkey:s.pubkey,iframeUrl:R})})),n||k.on("authUrl",R=>{console.log("nostr login auth url",R),c.emit("onAuthUrl",{url:R,iframeUrl:s.iframeUrl,eventToAddAccount:a})}),n){const R=yield c.listen(s,k);c.signer.remotePubkey=R,c.signer.remoteUser=new NDKUser({pubkey:R}),s.pubkey=R,C(R)}else i&&(yield k.connect(s,c.params.optionsModal.perms)),C(void 0)}catch(S){console.log("initSigner failure",S),c.signer=null,T(S)}});return function(C,T){return w.apply(this,arguments)}}()),c.signerPromise})()}authNip46(s,{name:n,bunkerUrl:i,sk:a="",domain:c="",iframeUrl:y=""}){var w=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{const C=bunkerUrlToInfo(i,a);if(isBunkerUrl(n)?C.bunkerUrl=n:(C.nip05=n,C.domain=n.split("@")[1]),c&&(C.domain=c),y&&(C.iframeUrl=y),!C.pubkey||!C.sk||!C.relays?.[0])throw new Error(`Bad bunker url ${i}`);const T=!!w.params.userInfo;console.log("authNip46",s,C),yield w.initSigner(C,{connect:!0,eventToAddAccount:T}),w.onAuth(s,C)}catch(C){throw console.log("nostr login auth failed",C),C}})()}signEvent(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return n.localSigner?(s.pubkey=getPublicKey(n.localSigner.privateKey),s.id=getEventHash(s),s.sig=yield n.localSigner.sign(s)):(s.pubkey=n.signer?.remotePubkey,s.id=getEventHash(s),s.sig=yield n.signer?.sign(s)),console.log("signed",{event:s}),s})()}codec_call(s,n,i){var a=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return new Promise((c,y)=>{a.signer.rpc.sendRequest(a.signer.remotePubkey,s,[n,i],24133,w=>{w.error?y(w.error):c(w.result)})})})()}encrypt04(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.encrypt(new NDKUser({pubkey:s}),n):i.signer.encrypt(new NDKUser({pubkey:s}),n)})()}decrypt04(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.localSigner.decrypt(new NDKUser({pubkey:s}),n):i.codec_call("nip04_decrypt",s,n)})()}encrypt44(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.encrypt(i.localSigner.privateKey,s,n):i.codec_call("nip44_encrypt",s,n)})()}decrypt44(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return i.localSigner?i.nip44Codec.decrypt(i.localSigner.privateKey,s,n):i.codec_call("nip44_decrypt",s,n)})()}}class ModalManager extends lib$1.EventEmitter{modal=null;params;extensionService;authNostrService;launcherPromise;accounts=[];recents=[];opt;constructor(s,n,i){super(),this.params=s,this.extensionService=i,this.authNostrService=n}waitReady(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(s.launcherPromise){try{yield s.launcherPromise}catch{}s.launcherPromise=void 0}})()}launch(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.launcherPromise&&(yield n.waitReady()),n.opt=s;const i=document.createElement("dialog");n.modal=document.createElement("nl-auth"),n.modal.accounts=n.accounts,n.modal.recents=n.recents,n.modal.setAttribute("dark-mode",String(getDarkMode(s))),s.theme&&n.modal.setAttribute("theme",s.theme),s.startScreen&&n.modal.setAttribute("start-screen",s.startScreen),n.modal.setAttribute("bunkers",s.bunkers?s.bunkers:"nsec.app,highlighter.com"),void 0!==s.methods&&(n.modal.authMethods=s.methods),void 0!==s.localSignup&&(n.modal.localSignup=s.localSignup),s.title&&(n.modal.welcomeTitle=s.title),s.description&&(n.modal.welcomeDescription=s.description),n.modal.hasExtension=n.extensionService.hasExtension(),n.modal.hasOTP=!!s.otpRequestUrl&&!!s.otpReplyUrl,n.modal.isLoadingExtension=!1,n.modal.isLoading=!1,[n.modal.connectionString,n.modal.connectionStringServices]=yield n.authNostrService.getNostrConnectServices(),i.appendChild(n.modal),document.body.appendChild(i);let a="";return n.launcherPromise=new Promise((c,y)=>{i.addEventListener("close",()=>{y(new Error("Closed")),n.authNostrService.resetAuth(),n.modal&&(document.body.removeChild(n.modal.parentNode),n.modal=null)});const w=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){n.modal&&(n.modal.isLoading=!1),yield n.authNostrService.endAuth(),i.close(),n.modal=null,pe()});return function(de){return _e.apply(this,arguments)}}(),C=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe,de){n.modal&&(n.modal.isLoading=!0);try{de&&!de.start||(yield n.authNostrService.startAuth()),yield pe(),de&&!de.end||(yield w(c))}catch(De){console.log("error",De),n.modal&&(n.modal.isLoading=!1,n.modal.authUrl="",n.modal.iframeUrl="",n.modal.error=De.toString())}});return function(de,De){return _e.apply(this,arguments)}}(),T=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe,de){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const De=yield getBunkerUrl(pe,n.params.optionsModal);yield n.authNostrService.authNip46("login",{name:pe,bunkerUrl:De,domain:de})}))});return function(de,De){return _e.apply(this,arguments)}}(),S=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{bunkerUrl:de,sk:De}=yield n.authNostrService.createAccount(pe);yield n.authNostrService.authNip46("signup",{name:pe,bunkerUrl:de,sk:De})}))});return function(de){return _e.apply(this,arguments)}}(),M=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){try{yield navigator.clipboard.writeText(n.authNostrService.exportKeys()),localStorageSetItem("backupKey","true")}catch(pe){console.error("Failed to copy to clipboard: ",pe)}});return function(){return _e.apply(this,arguments)}}(),k=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{iframeUrl:de}=pe,De=n.authNostrService.prepareImportUrl(pe.link);n.modal&&de&&(n.modal.authUrl=De,n.modal.iframeUrl=de,n.modal.isLoading=!1,console.log("nostrconnect authUrl",n.modal.authUrl,n.modal.iframeUrl)),yield n.authNostrService.importAndConnect(pe)}))});return function(de){return _e.apply(this,arguments)}}(),R=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const{relay:de,domain:De,link:Ee,iframeUrl:Le}=pe||{};console.log("nostrConnect",pe,de,De,Ee,Le),n.modal&&(Le&&(n.modal.authUrl=Ee,n.modal.iframeUrl=Le,n.modal.isLoading=!1,console.log("nostrconnect authUrl",n.modal.authUrl,n.modal.iframeUrl)),pe||(n.modal.isLoading=!1)),yield n.authNostrService.nostrConnect(de,{domain:De,link:Ee,iframeUrl:Le})}))});return function(de){return _e.apply(this,arguments)}}(),X=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!pe)throw new Error("Please enter some nickname");yield n.authNostrService.localSignup(pe)}))});return function(de){return _e.apply(this,arguments)}}();if(!n.modal)throw new Error("WTH?");n.modal.addEventListener("handleContinue",()=>{n.modal&&(n.modal.isLoading=!0,n.emit("onAuthUrlClick",n.modal.authUrl))}),n.modal.addEventListener("nlLogin",_e=>{T(_e.detail)}),n.modal.addEventListener("nlSignup",_e=>{S(_e.detail)}),n.modal.addEventListener("nlLocalSignup",_e=>{X(_e.detail)}),n.modal.addEventListener("nlImportAccount",_e=>{k(_e.detail)}),n.modal.addEventListener("nlExportKeys",_e=>{M()}),n.modal.addEventListener("handleLogoutBanner",()=>{n.emit("onLogoutBanner")}),n.modal.addEventListener("nlNostrConnect",_e=>{R(_e.detail)}),n.modal.addEventListener("nlNostrConnectDefault",()=>{R()}),n.modal.addEventListener("nlSwitchAccount",_e=>{n.emit("onSwitchAccount",_e.detail),setTimeout(()=>i.close(),300)}),n.modal.addEventListener("nlLoginRecentAccount",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const de=pe.detail;if("readOnly"===de.authMethod)n.authNostrService.setReadOnly(de.pubkey),i.close();else if("otp"===de.authMethod)try{n.modal.dispatchEvent(new CustomEvent("nlLoginOTPUser",{detail:de.nip05||de.pubkey}))}catch(De){console.error(De)}else if("extension"===de.authMethod)yield n.extensionService.trySetExtensionForPubkey(de.pubkey),i.close();else{const De=de.bunkerUrl||de.nip05;if(!De)throw new Error("Bad connect info");T(De,de.domain)}});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlRemoveRecent",_e=>{localStorageRemoveRecent(_e.detail),n.emit("updateAccounts")});const Z=function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){let de="";if(pe.includes("@")){const{error:De,pubkey:Ee}=yield checkNip05(pe);if(!Ee)throw new Error(De);de=Ee}else if(pe.startsWith("npub")){const{type:De,data:Ee}=nip19_exports.decode(pe);if("npub"!==De)throw new Error("Bad npub");de=Ee}else 64===pe.trim().length&&(de=pe.trim(),nip19_exports.npubEncode(de));return de});return function(de){return _e.apply(this,arguments)}}();n.modal.addEventListener("nlLoginReadOnly",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){const de=pe.detail,De=yield Z(de);n.authNostrService.setReadOnly(De)}))});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlLoginExtension",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.extensionService.hasExtension())throw new Error("No extension");yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){n.modal&&(n.modal.isLoadingExtension=!0,yield n.extensionService.setExtension(),n.modal.isLoadingExtension=!1)}))})),n.modal.addEventListener("nlLoginOTPUser",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.modal)return;const de=pe.detail,De=yield Z(de),Ee=n.opt.otpRequestUrl+(n.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+De,Le=yield fetch(Ee);if(200!==Le.status)throw console.warn("nostr-login: bad otp reply",Le),new Error("Failed to send DM");n.modal.isOTP=!0,a=De,n.modal.isLoading=!1}),{start:!0})});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlLoginOTPCode",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){yield C((0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(!n.modal)return;const de=pe.detail,De=n.opt.otpReplyUrl+(n.opt.otpRequestUrl.includes("?")?"&":"?")+"pubkey="+a+"&code="+de,Ee=yield fetch(De);if(200!==Ee.status)throw console.warn("nostr-login: bad otp reply",Ee),new Error("Invalid code");const Le=yield Ee.text();n.authNostrService.setOTP(a,Le),n.modal.isOTP=!1}),{end:!0})});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlCheckSignup",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const{available:de,taken:De,error:Ee}=yield checkNip05(pe.detail);n.modal&&(n.modal.error=String(Ee),!Ee&&De&&(n.modal.error="Already taken"),n.modal.signupNameIsAvailable=de)});return function(pe){return _e.apply(this,arguments)}}()),n.modal.addEventListener("nlCheckLogin",function(){var _e=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(pe){const{available:de,taken:De,error:Ee}=yield checkNip05(pe.detail);n.modal&&(n.modal.error=String(Ee),de&&(n.modal.error="Name not found"),n.modal.loginIsGood=De)});return function(pe){return _e.apply(this,arguments)}}());const re=()=>{n.modal&&(n.modal.isLoading=!1),i.close(),y(new Error("Cancelled"))};n.modal.addEventListener("stopFetchHandler",re),n.modal.addEventListener("nlCloseModal",re),n.modal.addEventListener("nlChangeDarkMode",_e=>{setDarkMode(_e.detail),document.dispatchEvent(new CustomEvent("nlDarkMode",{detail:_e.detail}))}),n.on("onIframeAuthUrlCallEnd",()=>{i.close(),n.modal=null,c()}),i.showModal()}),n.launcherPromise})()}showIframeUrl(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield n.waitReady(),n.launch({startScreen:"iframe"}).catch(()=>console.log("closed auth iframe")),n.modal.authUrl=s})()}connectModals(s){var n=this;const i=function(){var c=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(y){yield n.launch(y)});return function(w){return c.apply(this,arguments)}}(),a=document.getElementsByTagName("nl-button");for(let c=0;c{this.checkExtension(s)&&clearTimeout(n)},100)}checkExtension(s){return!(this.nostrExtension||!window.nostr||window.nostr===s||(this.initExtension(s),0))}initExtension(s,n){var i=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){i.nostrExtension=window.nostr,window.nostr=s,"extension"===i.params.userInfo?.authMethod&&(yield i.trySetExtensionForPubkey(i.params.userInfo.pubkey)),n||setTimeout(()=>{window.nostr!==s&&i.nostrExtension!==window.nostr&&i.initExtension(s,!0)},300)})()}setExtensionReadPubkey(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){window.nostr=n.nostrExtension;const i=yield window.nostr.getPublicKey();s&&s!==i?n.emit("extensionLogout"):n.emit("extensionLogin",i)})()}trySetExtensionForPubkey(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(n.nostrExtension)return n.setExtensionReadPubkey(s)})()}setExtension(){var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){return s.setExtensionReadPubkey()})()}unsetExtension(s){window.nostr===this.nostrExtension&&(window.nostr=s)}getExtension(){return this.nostrExtension}hasExtension(){return!!this.nostrExtension}}class NostrParams{userInfo;optionsModal;constructor(){this.userInfo=null,this.optionsModal={theme:"default",startScreen:"welcome",devOverrideBunkerOrigin:""}}}class Popup{popup=null;constructor(){}openPopup(s){if((!this.popup||this.popup.closed)&&(this.popup=window.open(s,"_blank","width=400,height=700"),console.log("popup",this.popup),!this.popup))throw new Error("Popup blocked. Try again, please!")}closePopup(){try{this.popup?.close(),this.popup=null}catch{}}}const CALL_TIMEOUT=5e3;class ProcessManager extends lib$1.EventEmitter{callCount=0;callTimer;constructor(){super()}onAuthUrl(){this.callTimer&&clearTimeout(this.callTimer)}onIframeUrl(){this.callTimer&&clearTimeout(this.callTimer)}wait(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){let i,a;n.callTimer||(n.callTimer=setTimeout(()=>n.emit("onCallTimeout"),CALL_TIMEOUT)),n.callCount||n.emit("onCallStart"),n.callCount++;try{a=yield s()}catch(c){i=c}if(n.callCount--,n.emit("onCallEnd"),n.callTimer&&clearTimeout(n.callTimer),n.callTimer=void 0,i)throw i;return a})()}}class NostrLoginInitializer{extensionService;params;authNostrService;nostr;processManager;popupManager;bannerManager;modalManager;constructor(){var s=this;this.params=new NostrParams,this.processManager=new ProcessManager,this.popupManager=new Popup,this.bannerManager=new BannerManager(this.params),this.authNostrService=new AuthNostrService(this.params),this.extensionService=new NostrExtensionService(this.params),this.modalManager=new ModalManager(this.params,this.authNostrService,this.extensionService);const n={waitReady:(i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){yield s.authNostrService.waitReady(),yield s.modalManager.waitReady()}),function(){return i.apply(this,arguments)}),getUserInfo:()=>this.params.userInfo,getSigner:()=>{if("readOnly"===this.params.userInfo.authMethod)throw new Error("Read only");return"extension"===this.params.userInfo.authMethod?this.extensionService.getExtension():this.authNostrService},launch:()=>this.launch(),wait:i=>this.processManager.wait(i)};var i;this.nostr=new Nostr(n),this.processManager.on("onCallTimeout",()=>{this.bannerManager.onCallTimeout()}),this.processManager.on("onCallEnd",()=>{this.bannerManager.onCallEnd(),this.modalManager.onCallEnd()}),this.processManager.on("onCallStart",()=>{this.bannerManager.onCallStart()}),this.authNostrService.on("onIframeUrl",i=>{this.modalManager.onIframeUrl(i)}),this.authNostrService.on("iframeRestart",({iframeUrl:i})=>{this.processManager.onIframeUrl(),this.bannerManager.onIframeRestart(i)}),this.authNostrService.on("onAuthUrl",({url:i,iframeUrl:a,eventToAddAccount:c})=>{this.processManager.onAuthUrl(),c?this.modalManager.onAuthUrl(i):this.params.userInfo?this.bannerManager.onAuthUrl(i,a):this.modalManager.onAuthUrl(i)}),this.authNostrService.on("updateAccounts",()=>{this.updateAccounts()}),this.authNostrService.on("onUserInfo",i=>{this.bannerManager.onUserInfo(i)}),this.modalManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onIframeAuthUrlClick",i=>{this.modalManager.showIframeUrl(i)}),this.modalManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.modalManager.on("onLogoutBanner",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){logout()});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("onConfirmLogout",(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){console.log(4),s.launch("confirm-logout")})),this.modalManager.on("updateAccounts",()=>{this.updateAccounts()}),this.bannerManager.on("logout",()=>{logout()}),this.bannerManager.on("onAuthUrlClick",i=>{this.openPopup(i)}),this.bannerManager.on("onSwitchAccount",function(){var i=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(a){s.switchAccount(a)});return function(a){return i.apply(this,arguments)}}()),this.bannerManager.on("import",()=>{this.launch("import")}),this.extensionService.on("extensionLogin",i=>{this.authNostrService.setExtension(i)}),this.extensionService.on("extensionLogout",()=>{logout()}),this.bannerManager.on("launch",i=>{this.launch(i)})}openPopup(s){this.popupManager.openPopup(s)}switchAccount(s){var n=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){if(console.log("nostr login switch to info",s),n.extensionService.unsetExtension(n.nostr),"readOnly"===s.authMethod)n.authNostrService.setReadOnly(s.pubkey);else if("otp"===s.authMethod)n.authNostrService.setOTP(s.pubkey,s.otpData||"");else if("local"===s.authMethod&&s.sk)n.authNostrService.setLocal(s);else if("extension"===s.authMethod)yield n.extensionService.trySetExtensionForPubkey(s.pubkey);else{if(!("connect"===s.authMethod&&s.sk&&s.relays&&s.relays[0]))throw new Error("Bad auth info");n.authNostrService.setConnect(s)}})()}updateAccounts(){const s=localStorageGetAccounts(),n=localStorageGetRecents();this.bannerManager.onUpdateAccounts(s),this.modalManager.onUpdateAccounts(s,n)}launch=s=>{const n=localStorageGetRecents(),i=localStorageGetAccounts(),a=s?{startScreen:s}:this.params.optionsModal;return s||!n?.length&&!i?.length||(a.startScreen="switch-account"),this.modalManager.launch(a).catch(()=>{})};init=(()=>{var n,s=this;return n=(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(i){s.extensionService.startCheckingExtension(s.nostr),window.nostr=s.nostr,s.modalManager.connectModals(i),s.bannerManager.launchAuthBanner(i),i&&(s.params.optionsModal={...i});try{const a=localStorageGetCurrent();if(a){if(!a.pubkey)throw new Error("Bad stored info");yield s.switchAccount(a)}}catch(a){console.log("nostr login init error",a),yield logout()}s.updateAccounts()}),function(i){return n.apply(this,arguments)}})();logout=(()=>{var s=this;return(0,_home_runner_work_angor_hub_angor_hub_node_modules_angular_builders_custom_webpack_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__.A)(function*(){s.extensionService.unsetExtension(s.nostr),yield s.authNostrService.logout()})})();setDarkMode=s=>{localStorageSetItem("nl-dark-mode",`${s}`),this.bannerManager.onDarkMode(s),this.modalManager.onDarkMode(s)}}const initializer=new NostrLoginInitializer,{init,launch,logout,setDarkMode}=initializer;document.addEventListener("nlLogout",logout),document.addEventListener("nlLaunch",o=>{launch(o.detail||"")}),document.addEventListener("nlDarkMode",o=>{setDarkMode(!!o.detail)})},5492:(o,s,n)=>{"use strict";n.d(s,{lo:()=>Eh,pC:()=>Ja,Bq:()=>uu,dq:()=>Ql,lG:()=>du,sh:()=>Dh,Qe:()=>xd});var i={};n.r(i),n.d(i,{OG:()=>V,My:()=>Wt,Ph:()=>en,lX:()=>Nn,Id:()=>At,fg:()=>mt,qj:()=>Kt,aT:()=>Ht,lq:()=>mn,z:()=>Mn,Q5:()=>On});var a=n(3014);function c(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function w(b,...E){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(E.length>0&&!E.includes(b.length))throw new Error(`Expected Uint8Array of length ${E}, not of length=${b.length}`)}function T(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")}const R="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,X=b=>b instanceof Uint8Array,_e=b=>new DataView(b.buffer,b.byteOffset,b.byteLength),pe=(b,E)=>b<<32-E|b>>>E;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function xe(b){if("string"==typeof b&&(b=function ae(b){if("string"!=typeof b)throw new Error("utf8ToBytes expected string, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b)),!X(b))throw new Error("expected Uint8Array, got "+typeof b);return b}class st{clone(){return this._cloneInto()}}function at(b){const E=j=>b().update(xe(j)).digest(),A=b();return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=()=>b(),E}function En(b=32){if(R&&"function"==typeof R.getRandomValues)return R.getRandomValues(new Uint8Array(b));throw new Error("crypto.getRandomValues must be defined")}class wn extends st{constructor(E,A,j,Y){super(),this.blockLen=E,this.outputLen=A,this.padOffset=j,this.isLE=Y,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(E),this.view=_e(this.buffer)}update(E){T(this);const{view:A,buffer:j,blockLen:Y}=this,se=(E=xe(E)).length;for(let ke=0;keY-ke&&(this.process(j,0),ke=0);for(let Lt=ke;Lt>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)})(j,Y-8,BigInt(8*this.length),se),this.process(j,0);const Pe=_e(E),Qe=this.outputLen;if(Qe%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const wt=Qe/4,Pt=this.get();if(wt>Pt.length)throw new Error("_sha2: outputLen bigger than state");for(let Lt=0;Ltb&E^~b&A,_t=(b,E,A)=>b&E^b&A^E&A,ze=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]),Ue=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ft=new Uint32Array(64);class Ke extends wn{constructor(){super(64,32,8,!1),this.A=0|Ue[0],this.B=0|Ue[1],this.C=0|Ue[2],this.D=0|Ue[3],this.E=0|Ue[4],this.F=0|Ue[5],this.G=0|Ue[6],this.H=0|Ue[7]}get(){const{A:E,B:A,C:j,D:Y,E:se,F:ke,G:Pe,H:Qe}=this;return[E,A,j,Y,se,ke,Pe,Qe]}set(E,A,j,Y,se,ke,Pe,Qe){this.A=0|E,this.B=0|A,this.C=0|j,this.D=0|Y,this.E=0|se,this.F=0|ke,this.G=0|Pe,this.H=0|Qe}process(E,A){for(let Lt=0;Lt<16;Lt++,A+=4)Ft[Lt]=E.getUint32(A,!1);for(let Lt=16;Lt<64;Lt++){const on=Ft[Lt-15],_n=Ft[Lt-2],rn=pe(on,7)^pe(on,18)^on>>>3,Yt=pe(_n,17)^pe(_n,19)^_n>>>10;Ft[Lt]=Yt+Ft[Lt-7]+rn+Ft[Lt-16]|0}let{A:j,B:Y,C:se,D:ke,E:Pe,F:Qe,G:wt,H:Pt}=this;for(let Lt=0;Lt<64;Lt++){const _n=Pt+(pe(Pe,6)^pe(Pe,11)^pe(Pe,25))+Je(Pe,Qe,wt)+ze[Lt]+Ft[Lt]|0,Yt=(pe(j,2)^pe(j,13)^pe(j,22))+_t(j,Y,se)|0;Pt=wt,wt=Qe,Qe=Pe,Pe=ke+_n|0,ke=se,se=Y,Y=j,j=_n+Yt|0}j=j+this.A|0,Y=Y+this.B|0,se=se+this.C|0,ke=ke+this.D|0,Pe=Pe+this.E|0,Qe=Qe+this.F|0,wt=wt+this.G|0,Pt=Pt+this.H|0,this.set(j,Y,se,ke,Pe,Qe,wt,Pt)}roundClean(){Ft.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const it=at(()=>new Ke),Me=(BigInt(0),BigInt(1)),ht=BigInt(2),Xt=b=>b instanceof Uint8Array,Tn=Array.from({length:256},(b,E)=>E.toString(16).padStart(2,"0"));function Wt(b){if(!Xt(b))throw new Error("Uint8Array expected");let E="";for(let A=0;Aj+Y.length,0));let A=0;return b.forEach(j=>{if(!Xt(j))throw new Error("Uint8Array expected");E.set(j,A),A+=j.length}),E}const V=b=>(ht<new Uint8Array(b),ft=b=>Uint8Array.from(b);function mt(b,E,A){if("number"!=typeof b||b<2)throw new Error("hashLen must be a number");if("number"!=typeof E||E<2)throw new Error("qByteLen must be a number");if("function"!=typeof A)throw new Error("hmacFn must be a function");let j=Ne(b),Y=Ne(b),se=0;const ke=()=>{j.fill(1),Y.fill(0),se=0},Pe=(...Lt)=>A(Y,j,...Lt),Qe=(Lt=Ne())=>{Y=Pe(ft([0]),Lt),j=Pe(),0!==Lt.length&&(Y=Pe(ft([1]),Lt),j=Pe())},wt=()=>{if(se++>=1e3)throw new Error("drbg: tried 1000 values");let Lt=0;const on=[];for(;Lt{let _n;for(ke(),Qe(Lt);!(_n=on(wt()));)Qe();return ke(),_n}}const Tt={bigint:b=>"bigint"==typeof b,function:b=>"function"==typeof b,boolean:b=>"boolean"==typeof b,string:b=>"string"==typeof b,stringOrUint8Array:b=>"string"==typeof b||b instanceof Uint8Array,isSafeInteger:b=>Number.isSafeInteger(b),array:b=>Array.isArray(b),field:(b,E)=>E.Fp.isValid(b),hash:b=>"function"==typeof b&&Number.isSafeInteger(b.outputLen)};function On(b,E,A={}){const j=(Y,se,ke)=>{const Pe=Tt[se];if("function"!=typeof Pe)throw new Error(`Invalid validator "${se}", expected function`);const Qe=b[Y];if(!(ke&&void 0===Qe||Pe(Qe,b)))throw new Error(`Invalid param ${String(Y)}=${Qe} (${typeof Qe}), expected ${se}`)};for(const[Y,se]of Object.entries(E))j(Y,se,!1);for(const[Y,se]of Object.entries(A))j(Y,se,!0);return b}const cn=BigInt(0),hn=BigInt(1),Ln=BigInt(2),lr=BigInt(3),Dn=BigInt(4),Hr=BigInt(5),Mr=BigInt(8);function Vt(b,E){const A=b%E;return A>=cn?A:E+A}function Oe(b,E,A){if(A<=cn||E 0");if(A===hn)return cn;let j=hn;for(;E>cn;)E&hn&&(j=j*b%A),b=b*b%A,E>>=hn;return j}function Ge(b,E,A){let j=b;for(;E-- >cn;)j*=j,j%=A;return j}function je(b,E){if(b===cn||E<=cn)throw new Error(`invert: expected positive integers, got n=${b} mod=${E}`);let A=Vt(b,E),j=E,Y=cn,se=hn,ke=hn,Pe=cn;for(;A!==cn;){const wt=j/A,Pt=j%A,Lt=Y-ke*wt,on=se-Pe*wt;j=A,A=Pt,Y=ke,se=Pe,ke=Lt,Pe=on}if(j!==hn)throw new Error("invert: does not exist");return Vt(Y,E)}BigInt(9),BigInt(16);const xn=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function nn(b,E){const A=void 0!==E?E:b.toString(2).length;return{nBitLength:A,nByteLength:Math.ceil(A/8)}}function vn(b){if("bigint"!=typeof b)throw new Error("field order must be bigint");const E=b.toString(2).length;return Math.ceil(E/8)}function fr(b){const E=vn(b);return E+Math.ceil(E/2)}class Ni extends st{constructor(E,A){super(),this.finished=!1,this.destroyed=!1,function C(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");c(b.outputLen),c(b.blockLen)}(E);const j=xe(A);if(this.iHash=E.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 Y=this.blockLen,se=new Uint8Array(Y);se.set(j.length>Y?E.create().update(j).digest():j);for(let ke=0;kenew Ni(b,E).update(A).digest();ds.create=(b,E)=>new Ni(b,E);const $o=BigInt(0),ai=BigInt(1);function fo(b){return function er(b){On(b,xn.reduce((j,Y)=>(j[Y]="function",j),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"}))}(b.Fp),On(b,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...nn(b.n,b.nBitLength),...b,p:b.Fp.ORDER})}const{Ph:Fo,aT:ia}=i,ao={Err:class extends Error{constructor(E=""){super(E)}},_parseInt(b){const{Err:E}=ao;if(b.length<2||2!==b[0])throw new E("Invalid signature integer tag");const A=b[1],j=b.subarray(2,A+2);if(!A||j.length!==A)throw new E("Invalid signature integer: wrong length");if(128&j[0])throw new E("Invalid signature integer: negative");if(0===j[0]&&!(128&j[1]))throw new E("Invalid signature integer: unnecessary leading zero");return{d:Fo(j),l:b.subarray(A+2)}},toSig(b){const{Err:E}=ao,A="string"==typeof b?ia(b):b;if(!(A instanceof Uint8Array))throw new Error("ui8a expected");let j=A.length;if(j<2||48!=A[0])throw new E("Invalid signature tag");if(A[1]!==j-2)throw new E("Invalid signature: incorrect length");const{d:Y,l:se}=ao._parseInt(A.subarray(2)),{d:ke,l:Pe}=ao._parseInt(se);if(Pe.length)throw new E("Invalid signature: left bytes after parsing");return{r:Y,s:ke}},hexFromSig(b){const E=wt=>8&Number.parseInt(wt[0],16)?"00"+wt:wt,A=wt=>{const Pt=wt.toString(16);return 1&Pt.length?`0${Pt}`:Pt},j=E(A(b.s)),Y=E(A(b.r)),se=j.length/2,ke=Y.length/2,Pe=A(se),Qe=A(ke);return`30${A(ke+se+4)}02${Qe}${Y}02${Pe}${j}`}},po=BigInt(0),Ii=BigInt(1),et=(BigInt(2),BigInt(3));function Ye(b){const E=function me(b){const E=fo(b);return On(E,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...E})}(b),{Fp:A,n:j}=E,Y=A.BYTES+1,se=2*A.BYTES+1;function Pe(or){return Vt(or,j)}function Qe(or){return je(or,j)}const{ProjectivePoint:wt,normPrivateKeyToScalar:Pt,weierstrassEquation:Lt,isWithinCurveOrder:on}=function dt(b){const E=function Jo(b){const E=fo(b);On(E,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:A,Fp:j,a:Y}=E;if(A){if(!j.eql(Y,j.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof A||"bigint"!=typeof A.beta||"function"!=typeof A.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...E})}(b),{Fp:A}=E,j=E.toBytes||((rn,Yt,Jt)=>{const bn=Yt.toAffine();return At(Uint8Array.from([4]),A.toBytes(bn.x),A.toBytes(bn.y))}),Y=E.fromBytes||(rn=>{const Yt=rn.subarray(1);return{x:A.fromBytes(Yt.subarray(0,A.BYTES)),y:A.fromBytes(Yt.subarray(A.BYTES,2*A.BYTES))}});function se(rn){const{a:Yt,b:Jt}=E,bn=A.sqr(rn),In=A.mul(bn,rn);return A.add(A.add(In,A.mul(rn,Yt)),Jt)}if(!A.eql(A.sqr(E.Gy),se(E.Gx)))throw new Error("bad generator point: equation left != right");function ke(rn){return"bigint"==typeof rn&&poA.eql(Jn,A.ZERO);return In(Jt)&&In(bn)?Lt.ZERO:new Lt(Jt,bn,A.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(Yt){const Jt=A.invertBatch(Yt.map(bn=>bn.pz));return Yt.map((bn,In)=>bn.toAffine(Jt[In])).map(Lt.fromAffine)}static fromHex(Yt){const Jt=Lt.fromAffine(Y(Kt("pointHex",Yt)));return Jt.assertValidity(),Jt}static fromPrivateKey(Yt){return Lt.BASE.multiply(Qe(Yt))}_setWindowSize(Yt){this._WINDOW_SIZE=Yt,wt.delete(this)}assertValidity(){if(this.is0()){if(E.allowInfinityPoint&&!A.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:Yt,y:Jt}=this.toAffine();if(!A.isValid(Yt)||!A.isValid(Jt))throw new Error("bad point: x or y not FE");const bn=A.sqr(Jt),In=se(Yt);if(!A.eql(bn,In))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:Yt}=this.toAffine();if(A.isOdd)return!A.isOdd(Yt);throw new Error("Field doesn't support isOdd")}equals(Yt){Pt(Yt);const{px:Jt,py:bn,pz:In}=this,{px:Jn,py:ar,pz:Lr}=Yt,gr=A.eql(A.mul(Jt,Lr),A.mul(Jn,In)),Sr=A.eql(A.mul(bn,Lr),A.mul(ar,In));return gr&&Sr}negate(){return new Lt(this.px,A.neg(this.py),this.pz)}double(){const{a:Yt,b:Jt}=E,bn=A.mul(Jt,et),{px:In,py:Jn,pz:ar}=this;let Lr=A.ZERO,gr=A.ZERO,Sr=A.ZERO,$r=A.mul(In,In),Ri=A.mul(Jn,Jn),Ei=A.mul(ar,ar),ei=A.mul(In,Jn);return ei=A.add(ei,ei),Sr=A.mul(In,ar),Sr=A.add(Sr,Sr),Lr=A.mul(Yt,Sr),gr=A.mul(bn,Ei),gr=A.add(Lr,gr),Lr=A.sub(Ri,gr),gr=A.add(Ri,gr),gr=A.mul(Lr,gr),Lr=A.mul(ei,Lr),Sr=A.mul(bn,Sr),Ei=A.mul(Yt,Ei),ei=A.sub($r,Ei),ei=A.mul(Yt,ei),ei=A.add(ei,Sr),Sr=A.add($r,$r),$r=A.add(Sr,$r),$r=A.add($r,Ei),$r=A.mul($r,ei),gr=A.add(gr,$r),Ei=A.mul(Jn,ar),Ei=A.add(Ei,Ei),$r=A.mul(Ei,ei),Lr=A.sub(Lr,$r),Sr=A.mul(Ei,Ri),Sr=A.add(Sr,Sr),Sr=A.add(Sr,Sr),new Lt(Lr,gr,Sr)}add(Yt){Pt(Yt);const{px:Jt,py:bn,pz:In}=this,{px:Jn,py:ar,pz:Lr}=Yt;let gr=A.ZERO,Sr=A.ZERO,$r=A.ZERO;const Ri=E.a,Ei=A.mul(E.b,et);let ei=A.mul(Jt,Jn),eo=A.mul(bn,ar),to=A.mul(In,Lr),wo=A.add(Jt,bn),or=A.add(Jn,ar);wo=A.mul(wo,or),or=A.add(ei,eo),wo=A.sub(wo,or),or=A.add(Jt,In);let pr=A.add(Jn,Lr);return or=A.mul(or,pr),pr=A.add(ei,to),or=A.sub(or,pr),pr=A.add(bn,In),gr=A.add(ar,Lr),pr=A.mul(pr,gr),gr=A.add(eo,to),pr=A.sub(pr,gr),$r=A.mul(Ri,or),gr=A.mul(Ei,to),$r=A.add(gr,$r),gr=A.sub(eo,$r),$r=A.add(eo,$r),Sr=A.mul(gr,$r),eo=A.add(ei,ei),eo=A.add(eo,ei),to=A.mul(Ri,to),or=A.mul(Ei,or),eo=A.add(eo,to),to=A.sub(ei,to),to=A.mul(Ri,to),or=A.add(or,to),ei=A.mul(eo,or),Sr=A.add(Sr,ei),ei=A.mul(pr,or),gr=A.mul(wo,gr),gr=A.sub(gr,ei),ei=A.mul(wo,eo),$r=A.mul(pr,$r),$r=A.add($r,ei),new Lt(gr,Sr,$r)}subtract(Yt){return this.add(Yt.negate())}is0(){return this.equals(Lt.ZERO)}wNAF(Yt){return _n.wNAFCached(this,wt,Yt,Jt=>{const bn=A.invertBatch(Jt.map(In=>In.pz));return Jt.map((In,Jn)=>In.toAffine(bn[Jn])).map(Lt.fromAffine)})}multiplyUnsafe(Yt){const Jt=Lt.ZERO;if(Yt===po)return Jt;if(Pe(Yt),Yt===Ii)return this;const{endo:bn}=E;if(!bn)return _n.unsafeLadder(this,Yt);let{k1neg:In,k1:Jn,k2neg:ar,k2:Lr}=bn.splitScalar(Yt),gr=Jt,Sr=Jt,$r=this;for(;Jn>po||Lr>po;)Jn&Ii&&(gr=gr.add($r)),Lr&Ii&&(Sr=Sr.add($r)),$r=$r.double(),Jn>>=Ii,Lr>>=Ii;return In&&(gr=gr.negate()),ar&&(Sr=Sr.negate()),Sr=new Lt(A.mul(Sr.px,bn.beta),Sr.py,Sr.pz),gr.add(Sr)}multiply(Yt){Pe(Yt);let bn,In,Jt=Yt;const{endo:Jn}=E;if(Jn){const{k1neg:ar,k1:Lr,k2neg:gr,k2:Sr}=Jn.splitScalar(Jt);let{p:$r,f:Ri}=this.wNAF(Lr),{p:Ei,f:ei}=this.wNAF(Sr);$r=_n.constTimeNegate(ar,$r),Ei=_n.constTimeNegate(gr,Ei),Ei=new Lt(A.mul(Ei.px,Jn.beta),Ei.py,Ei.pz),bn=$r.add(Ei),In=Ri.add(ei)}else{const{p:ar,f:Lr}=this.wNAF(Jt);bn=ar,In=Lr}return Lt.normalizeZ([bn,In])[0]}multiplyAndAddUnsafe(Yt,Jt,bn){const In=Lt.BASE,Jn=(Lr,gr)=>gr!==po&&gr!==Ii&&Lr.equals(In)?Lr.multiply(gr):Lr.multiplyUnsafe(gr),ar=Jn(this,Jt).add(Jn(Yt,bn));return ar.is0()?void 0:ar}toAffine(Yt){const{px:Jt,py:bn,pz:In}=this,Jn=this.is0();null==Yt&&(Yt=Jn?A.ONE:A.inv(In));const ar=A.mul(Jt,Yt),Lr=A.mul(bn,Yt),gr=A.mul(In,Yt);if(Jn)return{x:A.ZERO,y:A.ZERO};if(!A.eql(gr,A.ONE))throw new Error("invZ was invalid");return{x:ar,y:Lr}}isTorsionFree(){const{h:Yt,isTorsionFree:Jt}=E;if(Yt===Ii)return!0;if(Jt)return Jt(Lt,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:Yt,clearCofactor:Jt}=E;return Yt===Ii?this:Jt?Jt(Lt,this):this.multiplyUnsafe(E.h)}toRawBytes(Yt=!0){return this.assertValidity(),j(Lt,this,Yt)}toHex(Yt=!0){return Wt(this.toRawBytes(Yt))}}Lt.BASE=new Lt(E.Gx,E.Gy,A.ONE),Lt.ZERO=new Lt(A.ZERO,A.ONE,A.ZERO);const on=E.nBitLength,_n=function qo(b,E){const A=(Y,se)=>{const ke=se.negate();return Y?ke:se},j=Y=>({windows:Math.ceil(E/Y)+1,windowSize:2**(Y-1)});return{constTimeNegate:A,unsafeLadder(Y,se){let ke=b.ZERO,Pe=Y;for(;se>$o;)se&ai&&(ke=ke.add(Pe)),Pe=Pe.double(),se>>=ai;return ke},precomputeWindow(Y,se){const{windows:ke,windowSize:Pe}=j(se),Qe=[];let wt=Y,Pt=wt;for(let Lt=0;Lt>=_n,Jt>Qe&&(Jt-=on,ke+=ai);const bn=Yt,In=Yt+Math.abs(Jt)-1,ar=Jt<0;0===Jt?Pt=Pt.add(A(rn%2!=0,se[bn])):wt=wt.add(A(ar,se[In]))}return{p:wt,f:Pt}},wNAFCached(Y,se,ke,Pe){const Qe=Y._WINDOW_SIZE||1;let wt=se.get(Y);return wt||(wt=this.precomputeWindow(Y,Qe),1!==Qe&&se.set(Y,Pe(wt))),this.wNAF(Qe,wt,ke)}}}(Lt,E.endo?Math.ceil(on/2):on);return{CURVE:E,ProjectivePoint:Lt,normPrivateKeyToScalar:Qe,weierstrassEquation:se,isWithinCurveOrder:ke}}({...E,toBytes(or,pr,Yr){const mi=pr.toAffine(),br=A.toBytes(mi.x),oi=At;return Yr?oi(Uint8Array.from([pr.hasEvenY()?2:3]),br):oi(Uint8Array.from([4]),br,A.toBytes(mi.y))},fromBytes(or){const pr=or.length,Yr=or[0],mi=or.subarray(1);if(pr!==Y||2!==Yr&&3!==Yr){if(pr===se&&4===Yr)return{x:A.fromBytes(mi.subarray(0,A.BYTES)),y:A.fromBytes(mi.subarray(A.BYTES,2*A.BYTES))};throw new Error(`Point of length ${pr} was invalid. Expected ${Y} compressed bytes or ${se} uncompressed bytes`)}{const br=en(mi);if(!function ke(or){return poWt(mn(or,E.nByteLength));function rn(or){return or>j>>Ii}const Jt=(or,pr,Yr)=>en(or.slice(pr,Yr));class bn{constructor(pr,Yr,mi){this.r=pr,this.s=Yr,this.recovery=mi,this.assertValidity()}static fromCompact(pr){const Yr=E.nByteLength;return pr=Kt("compactSignature",pr,2*Yr),new bn(Jt(pr,0,Yr),Jt(pr,Yr,2*Yr))}static fromDER(pr){const{r:Yr,s:mi}=ao.toSig(Kt("DER",pr));return new bn(Yr,mi)}assertValidity(){if(!on(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!on(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(pr){return new bn(this.r,this.s,pr)}recoverPublicKey(pr){const{r:Yr,s:mi,recovery:br}=this,oi=Sr(Kt("msgHash",pr));if(null==br||![0,1,2,3].includes(br))throw new Error("recovery id invalid");const Eo=2===br||3===br?Yr+E.n:Yr;if(Eo>=A.ORDER)throw new Error("recovery id 2 or 3 invalid");const Bs=wt.fromHex((1&br?"03":"02")+_n(Eo)),Na=Qe(Eo),nl=Pe(-oi*Na),gl=Pe(mi*Na),ya=wt.BASE.multiplyAndAddUnsafe(Bs,nl,gl);if(!ya)throw new Error("point at infinify");return ya.assertValidity(),ya}hasHighS(){return rn(this.s)}normalizeS(){return this.hasHighS()?new bn(this.r,Pe(-this.s),this.recovery):this}toDERRawBytes(){return Ht(this.toDERHex())}toDERHex(){return ao.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return Ht(this.toCompactHex())}toCompactHex(){return _n(this.r)+_n(this.s)}}const In={isValidPrivateKey(or){try{return Pt(or),!0}catch{return!1}},normPrivateKeyToScalar:Pt,randomPrivateKey:()=>{const or=fr(E.n);return function Co(b,E,A=!1){const j=b.length,Y=vn(E),se=fr(E);if(j<16||j1024)throw new Error(`expected ${se}-1024 bytes of input, got ${j}`);const Pe=Vt(A?en(b):Nn(b),E-hn)+hn;return A?Mn(Pe,Y):mn(Pe,Y)}(E.randomBytes(or),E.n)},precompute:(or=8,pr=wt.BASE)=>(pr._setWindowSize(or),pr.multiply(BigInt(3)),pr)};function ar(or){const pr=or instanceof Uint8Array,Yr="string"==typeof or,mi=(pr||Yr)&&or.length;return pr?mi===Y||mi===se:Yr?mi===2*Y||mi===2*se:or instanceof wt}const gr=E.bits2int||function(or){const pr=en(or),Yr=8*or.length-E.nBitLength;return Yr>0?pr>>BigInt(Yr):pr},Sr=E.bits2int_modN||function(or){return Pe(gr(or))},$r=V(E.nBitLength);function Ri(or){if("bigint"!=typeof or)throw new Error("bigint expected");if(!(po<=or&&or<$r))throw new Error(`bigint expected < 2^${E.nBitLength}`);return mn(or,E.nByteLength)}const ei={lowS:E.lowS,prehash:!1},eo={lowS:E.lowS,prehash:!1};return wt.BASE._setWindowSize(8),{CURVE:E,getPublicKey:function Jn(or,pr=!0){return wt.fromPrivateKey(or).toRawBytes(pr)},getSharedSecret:function Lr(or,pr,Yr=!0){if(ar(or))throw new Error("first arg must be private key");if(!ar(pr))throw new Error("second arg must be public key");return wt.fromHex(pr).multiply(Pt(or)).toRawBytes(Yr)},sign:function to(or,pr,Yr=ei){const{seed:mi,k2sig:br}=function Ei(or,pr,Yr=ei){if(["recovered","canonical"].some(ba=>ba in Yr))throw new Error("sign() legacy options not supported");const{hash:mi,randomBytes:br}=E;let{lowS:oi,prehash:Eo,extraEntropy:Wi}=Yr;null==oi&&(oi=!0),or=Kt("msgHash",or),Eo&&(or=Kt("prehashed msgHash",mi(or)));const Bs=Sr(or),Na=Pt(pr),nl=[Ri(Na),Ri(Bs)];if(null!=Wi){const ba=!0===Wi?br(A.BYTES):Wi;nl.push(Kt("extraEntropy",ba))}const gl=At(...nl),ya=Bs;return{seed:gl,k2sig:function Ga(ba){const Vc=gr(ba);if(!on(Vc))return;const Ud=Qe(Vc),Po=wt.BASE.multiply(Vc).toAffine(),cc=Pe(Po.x);if(cc===po)return;const wa=Pe(Ud*Pe(ya+cc*Na));if(wa===po)return;let Zo=(Po.x===cc?0:2)|Number(Po.y&Ii),Hc=wa;return oi&&rn(wa)&&(Hc=function Yt(or){return rn(or)?Pe(-or):or}(wa),Zo^=1),new bn(cc,Hc,Zo)}}}(or,pr,Yr);return mt(E.hash.outputLen,E.nByteLength,E.hmac)(mi,br)},verify:function wo(or,pr,Yr,mi=eo){const br=or;if(pr=Kt("msgHash",pr),Yr=Kt("publicKey",Yr),"strict"in mi)throw new Error("options.strict was renamed to lowS");const{lowS:oi,prehash:Eo}=mi;let Wi,Bs;try{if("string"==typeof br||br instanceof Uint8Array)try{Wi=bn.fromDER(br)}catch(Po){if(!(Po instanceof ao.Err))throw Po;Wi=bn.fromCompact(br)}else{if("object"!=typeof br||"bigint"!=typeof br.r||"bigint"!=typeof br.s)throw new Error("PARSE");{const{r:Po,s:cc}=br;Wi=new bn(Po,cc)}}Bs=wt.fromHex(Yr)}catch(Po){if("PARSE"===Po.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(oi&&Wi.hasHighS())return!1;Eo&&(pr=E.hash(pr));const{r:Na,s:nl}=Wi,gl=Sr(pr),ya=Qe(nl),Ga=Pe(gl*ya),ba=Pe(Na*ya),Vc=wt.BASE.multiplyAndAddUnsafe(Bs,Ga,ba)?.toAffine();return!!Vc&&Pe(Vc.x)===Na},ProjectivePoint:wt,Signature:bn,utils:In}}function jt(b){return{hash:b,hmac:(E,...A)=>ds(b,E,function Be(...b){const E=new Uint8Array(b.reduce((j,Y)=>j+Y.length,0));let A=0;return b.forEach(j=>{if(!X(j))throw new Error("Uint8Array expected");E.set(j,A),A+=j.length}),E}(...A)),randomBytes:En}}BigInt(4);const pn=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Sn=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),An=BigInt(1),Fn=BigInt(2),zn=(b,E)=>(b+E/Fn)/E;function tr(b){const E=pn,A=BigInt(3),j=BigInt(6),Y=BigInt(11),se=BigInt(22),ke=BigInt(23),Pe=BigInt(44),Qe=BigInt(88),wt=b*b*b%E,Pt=wt*wt*b%E,Lt=Ge(Pt,A,E)*Pt%E,on=Ge(Lt,A,E)*Pt%E,_n=Ge(on,Fn,E)*wt%E,rn=Ge(_n,Y,E)*_n%E,Yt=Ge(rn,se,E)*rn%E,Jt=Ge(Yt,Pe,E)*Yt%E,bn=Ge(Jt,Qe,E)*Jt%E,In=Ge(bn,Pe,E)*Yt%E,Jn=Ge(In,A,E)*Pt%E,ar=Ge(Jn,ke,E)*rn%E,Lr=Ge(ar,j,E)*wt%E,gr=Ge(Lr,Fn,E);if(!cr.eql(cr.sqr(gr),b))throw new Error("Cannot find square root");return gr}const cr=function Mt(b,E,A=!1,j={}){if(b<=cn)throw new Error(`Expected Field ORDER > 0, got ${b}`);const{nBitLength:Y,nByteLength:se}=nn(b,E);if(se>2048)throw new Error("Field lengths over 2048 bytes are not supported");const ke=function ct(b){if(b%Dn===lr){const E=(b+hn)/Dn;return function(j,Y){const se=j.pow(Y,E);if(!j.eql(j.sqr(se),Y))throw new Error("Cannot find square root");return se}}if(b%Mr===Hr){const E=(b-Hr)/Mr;return function(j,Y){const se=j.mul(Y,Ln),ke=j.pow(se,E),Pe=j.mul(Y,ke),Qe=j.mul(j.mul(Pe,Ln),ke),wt=j.mul(Pe,j.sub(Qe,j.ONE));if(!j.eql(j.sqr(wt),Y))throw new Error("Cannot find square root");return wt}}return function Dt(b){const E=(b-hn)/Ln;let A,j,Y;for(A=b-hn,j=0;A%Ln===cn;A/=Ln,j++);for(Y=Ln;YVt(Qe,b),isValid:Qe=>{if("bigint"!=typeof Qe)throw new Error("Invalid field element: expected bigint, got "+typeof Qe);return cn<=Qe&&QeQe===cn,isOdd:Qe=>(Qe&hn)===hn,neg:Qe=>Vt(-Qe,b),eql:(Qe,wt)=>Qe===wt,sqr:Qe=>Vt(Qe*Qe,b),add:(Qe,wt)=>Vt(Qe+wt,b),sub:(Qe,wt)=>Vt(Qe-wt,b),mul:(Qe,wt)=>Vt(Qe*wt,b),pow:(Qe,wt)=>function xr(b,E,A){if(A 0");if(A===cn)return b.ONE;if(A===hn)return E;let j=b.ONE,Y=E;for(;A>cn;)A&hn&&(j=b.mul(j,Y)),Y=b.sqr(Y),A>>=hn;return j}(Pe,Qe,wt),div:(Qe,wt)=>Vt(Qe*je(wt,b),b),sqrN:Qe=>Qe*Qe,addN:(Qe,wt)=>Qe+wt,subN:(Qe,wt)=>Qe-wt,mulN:(Qe,wt)=>Qe*wt,inv:Qe=>je(Qe,b),sqrt:j.sqrt||(Qe=>ke(Pe,Qe)),invertBatch:Qe=>function si(b,E){const A=new Array(E.length),j=E.reduce((se,ke,Pe)=>b.is0(ke)?se:(A[Pe]=se,b.mul(se,ke)),b.ONE),Y=b.inv(j);return E.reduceRight((se,ke,Pe)=>b.is0(ke)?se:(A[Pe]=b.mul(se,A[Pe]),b.mul(se,ke)),Y),A}(Pe,Qe),cmov:(Qe,wt,Pt)=>Pt?wt:Qe,toBytes:Qe=>A?Mn(Qe,se):mn(Qe,se),fromBytes:Qe=>{if(Qe.length!==se)throw new Error(`Fp.fromBytes: expected ${se}, got ${Qe.length}`);return A?Nn(Qe):en(Qe)}});return Object.freeze(Pe)}(pn,void 0,void 0,{sqrt:tr}),Er=function kt(b,E){const A=j=>Ye({...b,...jt(j)});return Object.freeze({...A(E),create:A})}({a:BigInt(0),b:BigInt(7),Fp:cr,n:Sn,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:b=>{const E=Sn,A=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),j=-An*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),Y=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),se=A,ke=BigInt("0x100000000000000000000000000000000"),Pe=zn(se*b,E),Qe=zn(-j*b,E);let wt=Vt(b-Pe*A-Qe*Y,E),Pt=Vt(-Pe*j-Qe*se,E);const Lt=wt>ke,on=Pt>ke;if(Lt&&(wt=E-wt),on&&(Pt=E-Pt),wt>ke||Pt>ke)throw new Error("splitScalar: Endomorphism failed, k="+b);return{k1neg:Lt,k1:wt,k2neg:on,k2:Pt}}}},it),Cr=BigInt(0),gi=b=>"bigint"==typeof b&&CrY.charCodeAt(0)));A=At(j,j),Mi[b]=A}return it(At(A,...E))}const Qr=b=>b.toRawBytes(!0).slice(1),Pr=b=>mn(b,32),Do=b=>Vt(b,pn),es=b=>Vt(b,Sn),zs=Er.ProjectivePoint;function Li(b){let E=Er.utils.normPrivateKeyToScalar(b),A=zs.fromPrivateKey(E);return{scalar:A.hasEvenY()?E:es(-E),bytes:Qr(A)}}function bi(b){if(!gi(b))throw new Error("bad x: need 0 < x < p");const E=Do(b*b);let j=tr(Do(E*b+BigInt(7)));j%Fn!==Cr&&(j=Do(-j));const Y=new zs(b,j,An);return Y.assertValidity(),Y}function sa(...b){return es(en(Rr("BIP0340/challenge",...b)))}function Cs(b,E,A){const j=Kt("signature",b,64),Y=Kt("message",E),se=Kt("publicKey",A,32);try{const ke=bi(en(se)),Pe=en(j.subarray(0,32));if(!gi(Pe))return!1;const Qe=en(j.subarray(32,64));if(!(b=>"bigint"==typeof b&&Crzs.BASE.multiplyAndAddUnsafe(b,E,A))(ke,Qe,es(-wt));return!(!Pt||!Pt.hasEvenY()||Pt.toAffine().x!==Pe)}catch{return!1}}const No={getPublicKey:function Ks(b){return Li(b).bytes},sign:function Oo(b,E,A=En(32)){const j=Kt("message",b),{bytes:Y,scalar:se}=Li(E),ke=Kt("auxRand",A,32),Pe=Pr(se^en(Rr("BIP0340/aux",ke))),Qe=Rr("BIP0340/nonce",Pe,Y,j),wt=es(en(Qe));if(wt===Cr)throw new Error("sign failed: k is zero");const{bytes:Pt,scalar:Lt}=Li(wt),on=sa(Pt,Y,j),_n=new Uint8Array(64);if(_n.set(Pt,0),_n.set(Pr(es(Lt+on*se)),32),!Cs(_n,j,Y))throw new Error("sign: Invalid signature produced");return _n},verify:Cs,utils:{randomPrivateKey:Er.utils.randomPrivateKey,lift_x:bi,pointToBytes:Qr,numberToBytesBE:mn,bytesToNumberBE:en,taggedHash:Rr,mod:Vt}};var Xr=n(4704);function Ds(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`Wrong positive integer: ${b}`)}function io(b,...E){if(!(b instanceof Uint8Array))throw new Error("Expected Uint8Array");if(E.length>0&&!E.includes(b.length))throw new Error(`Expected Uint8Array of length ${E}, not of length=${b.length}`)}const Ao={number:Ds,bool:function go(b){if("boolean"!=typeof b)throw new Error(`Expected boolean, not ${b}`)},bytes:io,hash:function fs(b){if("function"!=typeof b||"function"!=typeof b.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Ds(b.outputLen),Ds(b.blockLen)},exists:function Xo(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")},output:function Ya(b,E){io(b);const A=E.outputLen;if(b.lengthY-ke&&(this.process(j,0),ke=0);for(let Lt=ke;Lt>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)})(j,Y-8,BigInt(8*this.length),se),this.process(j,0);const Pe=(0,Xr.O8)(E),Qe=this.outputLen;if(Qe%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const wt=Qe/4,Pt=this.get();if(wt>Pt.length)throw new Error("_sha2: outputLen bigger than state");for(let Lt=0;Ltb&E^~b&A,_s=(b,E,A)=>b&E^b&A^E&A,aa=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]),ls=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Vi=new Uint32Array(64);class al extends As{constructor(){super(64,32,8,!1),this.A=0|ls[0],this.B=0|ls[1],this.C=0|ls[2],this.D=0|ls[3],this.E=0|ls[4],this.F=0|ls[5],this.G=0|ls[6],this.H=0|ls[7]}get(){const{A:E,B:A,C:j,D:Y,E:se,F:ke,G:Pe,H:Qe}=this;return[E,A,j,Y,se,ke,Pe,Qe]}set(E,A,j,Y,se,ke,Pe,Qe){this.A=0|E,this.B=0|A,this.C=0|j,this.D=0|Y,this.E=0|se,this.F=0|ke,this.G=0|Pe,this.H=0|Qe}process(E,A){for(let Lt=0;Lt<16;Lt++,A+=4)Vi[Lt]=E.getUint32(A,!1);for(let Lt=16;Lt<64;Lt++){const on=Vi[Lt-15],_n=Vi[Lt-2],rn=(0,Xr.Ow)(on,7)^(0,Xr.Ow)(on,18)^on>>>3,Yt=(0,Xr.Ow)(_n,17)^(0,Xr.Ow)(_n,19)^_n>>>10;Vi[Lt]=Yt+Vi[Lt-7]+rn+Vi[Lt-16]|0}let{A:j,B:Y,C:se,D:ke,E:Pe,F:Qe,G:wt,H:Pt}=this;for(let Lt=0;Lt<64;Lt++){const _n=Pt+((0,Xr.Ow)(Pe,6)^(0,Xr.Ow)(Pe,11)^(0,Xr.Ow)(Pe,25))+Gs(Pe,Qe,wt)+aa[Lt]+Vi[Lt]|0,Yt=((0,Xr.Ow)(j,2)^(0,Xr.Ow)(j,13)^(0,Xr.Ow)(j,22))+_s(j,Y,se)|0;Pt=wt,wt=Qe,Qe=Pe,Pe=ke+_n|0,ke=se,se=Y,Y=j,j=_n+Yt|0}j=j+this.A|0,Y=Y+this.B|0,se=se+this.C|0,ke=ke+this.D|0,Pe=Pe+this.E|0,Qe=Qe+this.F|0,wt=wt+this.G|0,Pt=Pt+this.H|0,this.set(j,Y,se,ke,Pe,Qe,wt,Pt)}roundClean(){Vi.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class la extends al{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 Ss=(0,Xr.ld)(()=>new al);function Ns(b){if(!Number.isSafeInteger(b))throw new Error(`Wrong integer: ${b}`)}function So(...b){const E=(Y,se)=>ke=>Y(se(ke));return{encode:Array.from(b).reverse().reduce((Y,se)=>Y?E(Y,se.encode):se.encode,void 0),decode:b.reduce((Y,se)=>Y?E(Y,se.decode):se.decode,void 0)}}function Bo(b){return{encode:E=>{if(!Array.isArray(E)||E.length&&"number"!=typeof E[0])throw new Error("alphabet.encode input should be an array of numbers");return E.map(A=>{if(Ns(A),A<0||A>=b.length)throw new Error(`Digit index outside alphabet: ${A} (alphabet: ${b.length})`);return b[A]})},decode:E=>{if(!Array.isArray(E)||E.length&&"string"!=typeof E[0])throw new Error("alphabet.decode input should be array of strings");return E.map(A=>{if("string"!=typeof A)throw new Error(`alphabet.decode: not string element=${A}`);const j=b.indexOf(A);if(-1===j)throw new Error(`Unknown letter: "${A}". Allowed: ${b}`);return j})}}}function lo(b=""){if("string"!=typeof b)throw new Error("join separator should be string");return{encode:E=>{if(!Array.isArray(E)||E.length&&"string"!=typeof E[0])throw new Error("join.encode input should be array of strings");for(let A of E)if("string"!=typeof A)throw new Error(`join.encode: non-string input=${A}`);return E.join(b)},decode:E=>{if("string"!=typeof E)throw new Error("join.decode input should be string");return E.split(b)}}}function ps(b,E="="){if(Ns(b),"string"!=typeof E)throw new Error("padding chr should be string");return{encode(A){if(!Array.isArray(A)||A.length&&"string"!=typeof A[0])throw new Error("padding.encode input should be array of strings");for(let j of A)if("string"!=typeof j)throw new Error(`padding.encode: non-string input=${j}`);for(;A.length*b%8;)A.push(E);return A},decode(A){if(!Array.isArray(A)||A.length&&"string"!=typeof A[0])throw new Error("padding.encode input should be array of strings");for(let Y of A)if("string"!=typeof Y)throw new Error(`padding.decode: non-string input=${Y}`);let j=A.length;if(j*b%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;j>0&&A[j-1]===E;j--)if(!((j-1)*b%8))throw new Error("Invalid padding: string has too much padding");return A.slice(0,j)}}}function Da(b){if("function"!=typeof b)throw new Error("normalize fn should be function");return{encode:E=>E,decode:E=>b(E)}}function Ms(b,E,A){if(E<2)throw new Error(`convertRadix: wrong from=${E}, base cannot be less than 2`);if(A<2)throw new Error(`convertRadix: wrong to=${A}, base cannot be less than 2`);if(!Array.isArray(b))throw new Error("convertRadix: data should be array");if(!b.length)return[];let j=0;const Y=[],se=Array.from(b);for(se.forEach(ke=>{if(Ns(ke),ke<0||ke>=E)throw new Error(`Wrong integer: ${ke}`)});;){let ke=0,Pe=!0;for(let Qe=j;Qenew la);const Us=(b,E)=>E?Us(E,b%E):b,ca=(b,E)=>b+(E-Us(b,E));function Qa(b,E,A,j){if(!Array.isArray(b))throw new Error("convertRadix2: data should be array");if(E<=0||E>32)throw new Error(`convertRadix2: wrong from=${E}`);if(A<=0||A>32)throw new Error(`convertRadix2: wrong to=${A}`);if(ca(E,A)>32)throw new Error(`convertRadix2: carry overflow from=${E} to=${A} carryBits=${ca(E,A)}`);let Y=0,se=0;const ke=2**A-1,Pe=[];for(const Qe of b){if(Ns(Qe),Qe>=2**E)throw new Error(`convertRadix2: invalid data word=${Qe} from=${E}`);if(Y=Y<32)throw new Error(`convertRadix2: carry overflow pos=${se} from=${E}`);for(se+=E;se>=A;se-=A)Pe.push((Y>>se-A&ke)>>>0);Y&=2**se-1}if(Y=Y<=E)throw new Error("Excess padding");if(!j&&Y)throw new Error(`Non-zero padding: ${Y}`);return j&&se>0&&Pe.push(Y>>>0),Pe}function q(b,E=!1){if(Ns(b),b<=0||b>32)throw new Error("radix2: bits should be in (0..32]");if(ca(8,b)>32||ca(b,8)>32)throw new Error("radix2: carry overflow");return{encode:A=>{if(!(A instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Qa(Array.from(A),8,b,!E)},decode:A=>{if(!Array.isArray(A)||A.length&&"number"!=typeof A[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Qa(A,b,8,E))}}}function qe(b){if("function"!=typeof b)throw new Error("unsafeWrapper fn should be function");return function(...E){try{return b.apply(null,E)}catch{}}}So(q(4),Bo("0123456789ABCDEF"),lo("")),So(q(5),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),ps(5),lo(""));const qn=(So(q(5),Bo("0123456789ABCDEFGHIJKLMNOPQRSTUV"),ps(5),lo("")),So(q(5),Bo("0123456789ABCDEFGHJKMNPQRSTVWXYZ"),lo(""),Da(b=>b.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),So(q(6),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),ps(6),lo(""))),zi=(So(q(6),Bo("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),ps(6),lo("")),b=>So(function Aa(b){return Ns(b),{encode:E=>{if(!(E instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return Ms(Array.from(E),256,b)},decode:E=>{if(!Array.isArray(E)||E.length&&"number"!=typeof E[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(Ms(E,b,256))}}}(58),Bo(b),lo(""))),jo=(zi("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),zi("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),zi("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),So(Bo("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),lo(""))),Ho=[996825010,642813549,513874426,1027748829,705979059];function Ba(b){const E=b>>25;let A=(33554431&b)<<5;for(let j=0;j>j&1)&&(A^=Ho[j]);return A}function Ua(b,E,A=1){const j=b.length;let Y=1;for(let se=0;se126)throw new Error(`Invalid prefix (${b})`);Y=Ba(Y)^ke>>5}Y=Ba(Y);for(let se=0;seLt)throw new TypeError(`Wrong string length: ${Pt.length} (${Pt}). Expected (8..${Lt})`);const on=Pt.toLowerCase();if(Pt!==on&&Pt!==Pt.toUpperCase())throw new Error("String must be lowercase or uppercase");const _n=(Pt=on).lastIndexOf("1");if(0===_n||-1===_n)throw new Error('Letter "1" must be present between prefix and data only');const rn=Pt.slice(0,_n),Yt=Pt.slice(_n+1);if(Yt.length<6)throw new Error("Data must be at least 6 characters long");const Jt=jo.decode(Yt).slice(0,-6),bn=Ua(rn,Jt,E);if(!Yt.endsWith(bn))throw new Error(`Invalid checksum in ${Pt}: expected "${bn}"`);return{prefix:rn,words:Jt}}return{encode:function ke(Pt,Lt,on=90){if("string"!=typeof Pt)throw new Error("bech32.encode prefix should be string, not "+typeof Pt);if(!Array.isArray(Lt)||Lt.length&&"number"!=typeof Lt[0])throw new Error("bech32.encode words should be array of numbers, not "+typeof Lt);const _n=Pt.length+7+Lt.length;if(!1!==on&&_n>on)throw new TypeError(`Length ${_n} exceeds limit ${on}`);return`${Pt=Pt.toLowerCase()}1${jo.encode(Lt)}${Ua(Pt,Lt,E)}`},decode:Pe,decodeToBytes:function wt(Pt){const{prefix:Lt,words:on}=Pe(Pt,!1);return{prefix:Lt,words:on,bytes:j(on)}},decodeUnsafe:qe(Pe),fromWords:j,fromWordsUnsafe:se,toWords:Y}}const ce=ua("bech32");function $a(b){if(!Number.isSafeInteger(b)||b<0)throw new Error(`positive integer expected, not ${b}`)}function fc(b){if("boolean"!=typeof b)throw new Error(`boolean expected, not ${b}`)}function ll(b){return b instanceof Uint8Array||null!=b&&"object"==typeof b&&"Uint8Array"===b.constructor.name}function _i(b,...E){if(!ll(b))throw new Error("Uint8Array expected");if(E.length>0&&!E.includes(b.length))throw new Error(`Uint8Array expected of length ${E}, not of length=${b.length}`)}function vs(b,E=!0){if(b.destroyed)throw new Error("Hash instance has been destroyed");if(E&&b.finished)throw new Error("Hash#digest() has already been called")}function ja(b,E){_i(b);const A=E.outputLen;if(b.length{if("string"!=typeof b||b.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof b} with length ${b.length}`);return b.toLowerCase()}));const yi=b=>new Uint32Array(b.buffer,b.byteOffset,Math.floor(b.byteLength/4)),Il=b=>new DataView(b.buffer,b.byteOffset,b.byteLength);if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function dl(b){if("string"==typeof b)b=function El(b){if("string"!=typeof b)throw new Error("string expected, got "+typeof b);return new Uint8Array((new TextEncoder).encode(b))}(b);else{if(!ll(b))throw new Error("Uint8Array expected, got "+typeof b);b=b.slice()}return b}function da(b,E){if(b.length!==E.length)return!1;let A=0;for(let j=0;j(Object.assign(E,b),E);function Wo(b,E,A,j){if("function"==typeof b.setBigUint64)return b.setBigUint64(E,A,j);const Y=BigInt(32),se=BigInt(4294967295),ke=Number(A>>Y&se),Pe=Number(A&se),wt=j?0:4;b.setUint32(E+(j?4:0),ke,j),b.setUint32(E+wt,Pe,j)}const Tr=new Uint8Array(16),Oi=yi(Tr),Qi=(b,E,A,j)=>({s3:A<<31|j>>>1,s2:E<<31|A>>>1,s1:b<<31|E>>>1,s0:b>>>1^225<<24&-(1&j)}),so=b=>(b>>>0&255)<<24|(b>>>8&255)<<16|(b>>>16&255)<<8|b>>>24&255;class no{constructor(E,A){this.blockLen=16,this.outputLen=16,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,_i(E=dl(E),16);const j=Il(E);let Y=j.getUint32(0,!1),se=j.getUint32(4,!1),ke=j.getUint32(8,!1),Pe=j.getUint32(12,!1);const Qe=[];for(let rn=0;rn<128;rn++)Qe.push({s0:so(Y),s1:so(se),s2:so(ke),s3:so(Pe)}),({s0:Y,s1:se,s2:ke,s3:Pe}=Qi(Y,se,ke,Pe));const wt=(b=A||1024)>65536?8:b>1024?4:2;var b;if(![1,2,4,8].includes(wt))throw new Error(`ghash: wrong window size=${wt}, should be 2, 4 or 8`);this.W=wt;const Lt=128/wt,on=this.windowSize=2**wt,_n=[];for(let rn=0;rn>>wt-ar-1&1))continue;const{s0:gr,s1:Sr,s2:$r,s3:Ri}=Qe[wt*rn+ar];Jt^=gr,bn^=Sr,In^=$r,Jn^=Ri}_n.push({s0:Jt,s1:bn,s2:In,s3:Jn})}this.t=_n}_updateBlock(E,A,j,Y){E^=this.s0,A^=this.s1,j^=this.s2,Y^=this.s3;const{W:se,t:ke,windowSize:Pe}=this;let Qe=0,wt=0,Pt=0,Lt=0;const on=(1<>>8*Yt&255;for(let bn=8/se-1;bn>=0;bn--){const In=Jt>>>se*bn&on,{s0:Jn,s1:ar,s2:Lr,s3:gr}=ke[_n*Pe+In];Qe^=Jn,wt^=ar,Pt^=Lr,Lt^=gr,_n+=1}}this.s0=Qe,this.s1=wt,this.s2=Pt,this.s3=Lt}update(E){E=dl(E),vs(this);const A=yi(E),j=Math.floor(E.length/16),Y=E.length%16;for(let se=0;se>>1|A,A=(1&Y)<<7}return b[0]^=225&-E,b}((E=dl(E)).slice());super(j,A),j.fill(0)}update(E){E=dl(E),vs(this);const A=yi(E),j=E.length%16,Y=Math.floor(E.length/16);for(let se=0;seb(Y,j.length).update(dl(j)).digest(),A=b(new Uint8Array(16),0);return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=(j,Y)=>b(j,Y),E}ri((b,E)=>new no(b,E)),ri((b,E)=>new co(b,E)),new Uint8Array(16);const Vs=283;function uo(b){return b<<1^Vs&-(b>>7)}function Ui(b,E){let A=0;for(;E>0;E>>=1)A^=b&-(1&E),b=uo(b);return A}const U=(()=>{let b=new Uint8Array(256);for(let A=0,j=1;A<256;A++,j^=uo(j))b[A]=j;const E=new Uint8Array(256);E[0]=99;for(let A=0;A<255;A++){let j=b[255-A];j|=j<<8,E[b[A]]=255&(j^j>>4^j>>5^j>>6^j>>7^99)}return E})(),Ie=U.map((b,E)=>U.indexOf(E)),ne=b=>b<<24|b>>>8,ve=b=>b<<8|b>>>24;function Et(b,E){if(256!==b.length)throw new Error("Wrong sbox length");const A=new Uint32Array(256).map((wt,Pt)=>E(b[Pt])),j=A.map(ve),Y=j.map(ve),se=Y.map(ve),ke=new Uint32Array(65536),Pe=new Uint32Array(65536),Qe=new Uint16Array(65536);for(let wt=0;wt<256;wt++)for(let Pt=0;Pt<256;Pt++){const Lt=256*wt+Pt;ke[Lt]=A[wt]^j[Pt],Pe[Lt]=Y[wt]^se[Pt],Qe[Lt]=b[wt]<<8|b[Pt]}return{sbox:b,sbox2:Qe,T0:A,T1:j,T2:Y,T3:se,T01:ke,T23:Pe}}const Gt=Et(U,b=>Ui(b,3)<<24|b<<16|b<<8|Ui(b,2)),Vn=Et(Ie,b=>Ui(b,11)<<24|Ui(b,13)<<16|Ui(b,9)<<8|Ui(b,14)),rr=(()=>{const b=new Uint8Array(16);for(let E=0,A=1;E<16;E++,A=uo(A))b[E]=A;return b})();function ci(b){_i(b);const E=b.length;if(![16,24,32].includes(E))throw new Error(`aes: wrong key size: should be 16, 24 or 32, got: ${E}`);const{sbox2:A}=Gt,j=yi(b),Y=j.length,se=Pe=>Nr(A,Pe,Pe,Pe,Pe),ke=new Uint32Array(E+28);ke.set(j);for(let Pe=Y;Pe6&&Pe%Y==4&&(Qe=se(Qe)),ke[Pe]=ke[Pe-Y]^Qe}return ke}function Di(b,E,A,j,Y,se){return b[A<<8&65280|j>>>8&255]^E[Y>>>8&65280|se>>>24&255]}function Nr(b,E,A,j,Y){return b[255&E|65280&A]|b[j>>>16&255|Y>>>16&65280]<<16}function li(b,E,A,j,Y){const{sbox2:se,T01:ke,T23:Pe}=Gt;let Qe=0;E^=b[Qe++],A^=b[Qe++],j^=b[Qe++],Y^=b[Qe++];const wt=b.length/4-2;for(let rn=0;rn{const Pe=ci(E),{b:Qe,o:wt,out:Pt}=function Va(b,E,A){let j=b.length;const Y=j%16;if(!E&&0!==Y)throw new Error("aec/(cbc-ecb): unpadded plaintext with disabled padding");const se=yi(b);if(E){let Qe=16-Y;Qe||(Qe=16),j+=Qe}const ke=wi(j,A);return{b:se,o:yi(ke),out:ke}}(se,Y,ke),Lt=yi(A);let on=Lt[0],_n=Lt[1],rn=Lt[2],Yt=Lt[3],Jt=0;for(;Jt+4<=Qe.length;)on^=Qe[Jt+0],_n^=Qe[Jt+1],rn^=Qe[Jt+2],Yt^=Qe[Jt+3],({s0:on,s1:_n,s2:rn,s3:Yt}=li(Pe,on,_n,rn,Yt)),wt[Jt++]=on,wt[Jt++]=_n,wt[Jt++]=rn,wt[Jt++]=Yt;if(Y){const bn=function Ta(b){const E=new Uint8Array(16),A=yi(E);E.set(b);const j=16-b.length;for(let Y=16-j;Y<16;Y++)E[Y]=j;return A}(se.subarray(4*Jt));on^=bn[0],_n^=bn[1],rn^=bn[2],Yt^=bn[3],({s0:on,s1:_n,s2:rn,s3:Yt}=li(Pe,on,_n,rn,Yt)),wt[Jt++]=on,wt[Jt++]=_n,wt[Jt++]=rn,wt[Jt++]=Yt}return Pe.fill(0),Pt},decrypt:(se,ke)=>{!function Yo(b){if(_i(b),b.length%16!=0)throw new Error("aes/(cbc-ecb).decrypt ciphertext should consist of blocks with size 16")}(se);const Pe=function ki(b){const E=ci(b),A=E.slice(),j=E.length,{sbox2:Y}=Gt,{T0:se,T1:ke,T2:Pe,T3:Qe}=Vn;for(let wt=0;wt>>8&255]^Pe[Lt>>>16&255]^Qe[Lt>>>24]}return A}(E),Qe=yi(A),wt=wi(se.length,ke),Pt=yi(se),Lt=yi(wt);let on=Qe[0],_n=Qe[1],rn=Qe[2],Yt=Qe[3];for(let Jt=0;Jt+4<=Pt.length;){const bn=on,In=_n,Jn=rn,ar=Yt;on=Pt[Jt+0],_n=Pt[Jt+1],rn=Pt[Jt+2],Yt=Pt[Jt+3];const{s0:Lr,s1:gr,s2:Sr,s3:$r}=ii(Pe,on,_n,rn,Yt);Lt[Jt++]=Lr^bn,Lt[Jt++]=gr^In,Lt[Jt++]=Sr^Jn,Lt[Jt++]=$r^ar}return Pe.fill(0),function Ls(b,E){if(!E)return b;const A=b.length;if(!A)throw new Error("aes/pcks5: empty ciphertext not allowed");const j=b[A-1];if(j<=0||j>16)throw new Error(`aes/pcks5: wrong padding byte: ${j}`);const Y=b.subarray(0,-j);for(let se=0;se255&b[E++]|(255&b[E++])<<8;class zo{constructor(E){this.blockLen=16,this.outputLen=16,this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.pos=0,this.finished=!1,_i(E=dl(E),32);const A=yo(E,0),j=yo(E,2),Y=yo(E,4),se=yo(E,6),ke=yo(E,8),Pe=yo(E,10),Qe=yo(E,12),wt=yo(E,14);this.r[0]=8191&A,this.r[1]=8191&(A>>>13|j<<3),this.r[2]=7939&(j>>>10|Y<<6),this.r[3]=8191&(Y>>>7|se<<9),this.r[4]=255&(se>>>4|ke<<12),this.r[5]=ke>>>1&8190,this.r[6]=8191&(ke>>>14|Pe<<2),this.r[7]=8065&(Pe>>>11|Qe<<5),this.r[8]=8191&(Qe>>>8|wt<<8),this.r[9]=wt>>>5&127;for(let Pt=0;Pt<8;Pt++)this.pad[Pt]=yo(E,16+2*Pt)}process(E,A,j=!1){const Y=j?0:2048,{h:se,r:ke}=this,Pe=ke[0],Qe=ke[1],wt=ke[2],Pt=ke[3],Lt=ke[4],on=ke[5],_n=ke[6],rn=ke[7],Yt=ke[8],Jt=ke[9],bn=yo(E,A+0),In=yo(E,A+2),Jn=yo(E,A+4),ar=yo(E,A+6),Lr=yo(E,A+8),gr=yo(E,A+10),Sr=yo(E,A+12),$r=yo(E,A+14);let Ri=se[0]+(8191&bn),Ei=se[1]+(8191&(bn>>>13|In<<3)),ei=se[2]+(8191&(In>>>10|Jn<<6)),eo=se[3]+(8191&(Jn>>>7|ar<<9)),to=se[4]+(8191&(ar>>>4|Lr<<12)),wo=se[5]+(Lr>>>1&8191),or=se[6]+(8191&(Lr>>>14|gr<<2)),pr=se[7]+(8191&(gr>>>11|Sr<<5)),Yr=se[8]+(8191&(Sr>>>8|$r<<8)),mi=se[9]+($r>>>5|Y),br=0,oi=br+Ri*Pe+Ei*(5*Jt)+ei*(5*Yt)+eo*(5*rn)+to*(5*_n);br=oi>>>13,oi&=8191,oi+=wo*(5*on)+or*(5*Lt)+pr*(5*Pt)+Yr*(5*wt)+mi*(5*Qe),br+=oi>>>13,oi&=8191;let Eo=br+Ri*Qe+Ei*Pe+ei*(5*Jt)+eo*(5*Yt)+to*(5*rn);br=Eo>>>13,Eo&=8191,Eo+=wo*(5*_n)+or*(5*on)+pr*(5*Lt)+Yr*(5*Pt)+mi*(5*wt),br+=Eo>>>13,Eo&=8191;let Wi=br+Ri*wt+Ei*Qe+ei*Pe+eo*(5*Jt)+to*(5*Yt);br=Wi>>>13,Wi&=8191,Wi+=wo*(5*rn)+or*(5*_n)+pr*(5*on)+Yr*(5*Lt)+mi*(5*Pt),br+=Wi>>>13,Wi&=8191;let Bs=br+Ri*Pt+Ei*wt+ei*Qe+eo*Pe+to*(5*Jt);br=Bs>>>13,Bs&=8191,Bs+=wo*(5*Yt)+or*(5*rn)+pr*(5*_n)+Yr*(5*on)+mi*(5*Lt),br+=Bs>>>13,Bs&=8191;let Na=br+Ri*Lt+Ei*Pt+ei*wt+eo*Qe+to*Pe;br=Na>>>13,Na&=8191,Na+=wo*(5*Jt)+or*(5*Yt)+pr*(5*rn)+Yr*(5*_n)+mi*(5*on),br+=Na>>>13,Na&=8191;let nl=br+Ri*on+Ei*Lt+ei*Pt+eo*wt+to*Qe;br=nl>>>13,nl&=8191,nl+=wo*Pe+or*(5*Jt)+pr*(5*Yt)+Yr*(5*rn)+mi*(5*_n),br+=nl>>>13,nl&=8191;let gl=br+Ri*_n+Ei*on+ei*Lt+eo*Pt+to*wt;br=gl>>>13,gl&=8191,gl+=wo*Qe+or*Pe+pr*(5*Jt)+Yr*(5*Yt)+mi*(5*rn),br+=gl>>>13,gl&=8191;let ya=br+Ri*rn+Ei*_n+ei*on+eo*Lt+to*Pt;br=ya>>>13,ya&=8191,ya+=wo*wt+or*Qe+pr*Pe+Yr*(5*Jt)+mi*(5*Yt),br+=ya>>>13,ya&=8191;let Ga=br+Ri*Yt+Ei*rn+ei*_n+eo*on+to*Lt;br=Ga>>>13,Ga&=8191,Ga+=wo*Pt+or*wt+pr*Qe+Yr*Pe+mi*(5*Jt),br+=Ga>>>13,Ga&=8191;let ba=br+Ri*Jt+Ei*Yt+ei*rn+eo*_n+to*on;br=ba>>>13,ba&=8191,ba+=wo*Lt+or*Pt+pr*wt+Yr*Qe+mi*Pe,br+=ba>>>13,ba&=8191,br=(br<<2)+br|0,br=br+oi|0,oi=8191&br,br>>>=13,Eo+=br,se[0]=oi,se[1]=Eo,se[2]=Wi,se[3]=Bs,se[4]=Na,se[5]=nl,se[6]=gl,se[7]=ya,se[8]=Ga,se[9]=ba}finalize(){const{h:E,pad:A}=this,j=new Uint16Array(10);let Y=E[1]>>>13;E[1]&=8191;for(let Pe=2;Pe<10;Pe++)E[Pe]+=Y,Y=E[Pe]>>>13,E[Pe]&=8191;E[0]+=5*Y,Y=E[0]>>>13,E[0]&=8191,E[1]+=Y,Y=E[1]>>>13,E[1]&=8191,E[2]+=Y,j[0]=E[0]+5,Y=j[0]>>>13,j[0]&=8191;for(let Pe=1;Pe<10;Pe++)j[Pe]=E[Pe]+Y,Y=j[Pe]>>>13,j[Pe]&=8191;j[9]-=8192;let se=(1^Y)-1;for(let Pe=0;Pe<10;Pe++)j[Pe]&=se;se=~se;for(let Pe=0;Pe<10;Pe++)E[Pe]=E[Pe]&se|j[Pe];E[0]=65535&(E[0]|E[1]<<13),E[1]=65535&(E[1]>>>3|E[2]<<10),E[2]=65535&(E[2]>>>6|E[3]<<7),E[3]=65535&(E[3]>>>9|E[4]<<4),E[4]=65535&(E[4]>>>12|E[5]<<1|E[6]<<14),E[5]=65535&(E[6]>>>2|E[7]<<11),E[6]=65535&(E[7]>>>5|E[8]<<8),E[7]=65535&(E[8]>>>8|E[9]<<5);let ke=E[0]+A[0];E[0]=65535&ke;for(let Pe=1;Pe<8;Pe++)ke=(E[Pe]+A[Pe]|0)+(ke>>>16)|0,E[Pe]=65535&ke}update(E){vs(this);const{buffer:A,blockLen:j}=this,Y=(E=dl(E)).length;for(let se=0;se>>0,E[se++]=j[ke]>>>8;return E}digest(){const{buffer:E,outputLen:A}=this;this.digestInto(E);const j=E.slice(0,A);return this.destroy(),j}}const au=function xl(b){const E=(j,Y)=>b(Y).update(dl(j)).digest(),A=b(new Uint8Array(32));return E.outputLen=A.outputLen,E.blockLen=A.blockLen,E.create=j=>b(j),E}(b=>new zo(b)),mc=b=>Uint8Array.from(b.split("").map(E=>E.charCodeAt(0))),lu=mc("expand 16-byte k"),Fu=mc("expand 32-byte k"),ah=yi(lu),Bu=yi(Fu);function Ur(b,E){return b<>>32-E}function kc(b){return b.byteOffset%4==0}Bu.slice();const Ha=2**32-1,Fr=new Uint32Array;function Xl(b,E){const{allowShortKeys:A,extendNonceFn:j,counterLength:Y,counterRight:se,rounds:ke}=function Hl(b,E){if(null==E||"object"!=typeof E)throw new Error("options must be defined");return Object.assign(b,E)}({allowShortKeys:!1,counterLength:8,counterRight:!1,rounds:20},E);if("function"!=typeof b)throw new Error("core must be a function");return $a(Y),$a(ke),fc(se),fc(A),(Pe,Qe,wt,Pt,Lt=0)=>{_i(Pe),_i(Qe),_i(wt);const on=wt.length;if(Pt||(Pt=new Uint8Array(on)),_i(Pt),$a(Lt),Lt<0||Lt>=Ha)throw new Error("arx: counter overflow");if(Pt.length=Ha)throw new Error("arx: counter overflow");const Yt=Math.min(64,Qe-rn);if(Lt&&64===Yt){const Jt=rn/4;if(rn%4!=0)throw new Error("arx: invalid block position");for(let In,bn=0;bn<16;bn++)In=Jt+bn,_n[In]=on[In]^Pt[bn];rn+=64}else{for(let bn,Jt=0;Jt0;)_n.pop().fill(0);return Pt}}function fl(b,E,A,j,Y,se=20){let ke=b[0],Pe=b[1],Qe=b[2],wt=b[3],Pt=E[0],Lt=E[1],on=E[2],_n=E[3],rn=E[4],Yt=E[5],Jt=E[6],bn=E[7],In=Y,Jn=A[0],ar=A[1],Lr=A[2],gr=ke,Sr=Pe,$r=Qe,Ri=wt,Ei=Pt,ei=Lt,eo=on,to=_n,wo=rn,or=Yt,pr=Jt,Yr=bn,mi=In,br=Jn,oi=ar,Eo=Lr;for(let Bs=0;Bs{b.update(E);const A=E.length%16;A&&b.update(qi.subarray(A))},gc=new Uint8Array(32);function rs(b,E,A,j,Y){const se=b(E,A,gc),ke=au.create(se);Y&&Ar(ke,Y),Ar(ke,j);const Pe=new Uint8Array(16),Qe=Il(Pe);Wo(Qe,0,BigInt(Y?Y.length:0),!0),Wo(Qe,8,BigInt(j.length),!0),ke.update(Pe);const wt=ke.digest();return se.fill(0),wt}const N=b=>(E,A,j)=>(_i(E,32),_i(A),{encrypt:(se,ke)=>{const Pe=se.length,Qe=Pe+16;ke?_i(ke,Qe):ke=new Uint8Array(Qe),b(E,A,se,ke,1);const wt=rs(b,E,A,ke.subarray(0,-16),j);return ke.set(wt,Pe),ke},decrypt:(se,ke)=>{const Pe=se.length,Qe=Pe-16;if(Pe<16)throw new Error("encrypted data must be at least 16 bytes");ke?_i(ke,Qe):ke=new Uint8Array(Qe);const wt=se.subarray(0,-16);if(!da(se.subarray(-16),rs(b,E,A,wt,j)))throw new Error("invalid tag");return b(E,A,wt,ke,1),ke}});N(Yl),N(Wa);class K extends Xr.Vw{constructor(E,A){super(),this.finished=!1,this.destroyed=!1,Ao.hash(E);const j=(0,Xr.ZJ)(A);if(this.iHash=E.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 Y=this.blockLen,se=new Uint8Array(Y);se.set(j.length>Y?E.create().update(j).digest():j);for(let ke=0;kenew K(b,E).update(A).digest();he.create=(b,E)=>new K(b,E);const St=new Uint8Array([0]),gn=new Uint8Array;var ui=Object.defineProperty,Ir=(b,E)=>{for(var A in E)ui(b,A,{get:E[A],enumerable:!0})},Gi=Symbol("verified"),Is=b=>b instanceof Object;function is(b){if(!Is(b)||"number"!=typeof b.kind||"string"!=typeof b.content||"number"!=typeof b.created_at||"string"!=typeof b.pubkey||!b.pubkey.match(/^[a-f0-9]{64}$/)||!Array.isArray(b.tags))return!1;for(let E=0;Edh,QueueNode:()=>uh,binarySearch:()=>gd,insertEventIntoAscendingList:()=>Jp,insertEventIntoDescendingList:()=>Uu,normalizeURL:()=>za,utf8Decoder:()=>Wr,utf8Encoder:()=>Ys});var Wr=new TextDecoder("utf-8"),Ys=new TextEncoder;function za(b){-1===b.indexOf("://")&&(b="wss://"+b);let E=new URL(b);return E.pathname=E.pathname.replace(/\/+/g,"/"),E.pathname.endsWith("/")&&(E.pathname=E.pathname.slice(0,-1)),("80"===E.port&&"ws:"===E.protocol||"443"===E.port&&"wss:"===E.protocol)&&(E.port=""),E.searchParams.sort(),E.hash="",E.toString()}function Uu(b,E){const[A,j]=gd(b,Y=>E.id===Y.id?0:E.created_at===Y.created_at?-1:Y.created_at-E.created_at);return j||b.splice(A,0,E),b}function Jp(b,E){const[A,j]=gd(b,Y=>E.id===Y.id?0:E.created_at===Y.created_at?-1:E.created_at-Y.created_at);return j||b.splice(A,0,E),b}function gd(b,E){let A=0,j=b.length-1;for(;A<=j;){const Y=Math.floor((A+j)/2),se=E(b[Y]);if(0===se)return[Y,!0];se<0?j=Y-1:A=Y+1}return[A,!1]}var uh=class{value;next=null;prev=null;constructor(b){this.value=b}},dh=class{first;last;constructor(){this.first=null,this.last=null}enqueue(b){const E=new uh(b);return this.last?this.last===this.first?(this.last=E,this.last.prev=this.first,this.first.next=E):(E.prev=this.last,this.last.next=E,this.last=E):(this.first=E,this.last=E),!0}dequeue(){if(!this.first)return null;if(this.first===this.last){const E=this.first;return this.first=null,this.last=null,E.value}const b=this.first;return this.first=b.next,b.value}};function Ql(b){let E=Ss(Ys.encode(function _c(b){if(!is(b))throw new Error("can't serialize event with wrong or missing properties");return JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content])}(b)));return(0,Xr.My)(E)}var Zl=new class{generateSecretKey(){return No.utils.randomPrivateKey()}getPublicKey(b){return(0,Xr.My)(No.getPublicKey(b))}finalizeEvent(b,E){const A=b;return A.pubkey=(0,Xr.My)(No.getPublicKey(E)),A.id=Ql(A),A.sig=(0,Xr.My)(No.sign(Ql(A),E)),A[Gi]=!0,A}verifyEvent(b){if("boolean"==typeof b[Gi])return b[Gi];const E=Ql(b);if(E!==b.id)return b[Gi]=!1,!1;try{const A=No.verify(b.sig,E,b.pubkey);return b[Gi]=A,A}catch{return b[Gi]=!1,!1}}},uu=Zl.generateSecretKey,du=Zl.getPublicKey,Ja=Zl.finalizeEvent,Cn=Zl.verifyEvent;function Ic(b){return 1e3<=b&&b<1e4||[1,2,4,5,6,7,8,16,40,41,42,43,44].includes(b)}function hu(b){return[0,3].includes(b)||1e4<=b&&b<2e4}function Si(b){return 2e4<=b&&b<3e4}function Nl(b){return 3e4<=b&&b<4e4}function Ra(b){return Ic(b)?"regular":hu(b)?"replaceable":Si(b)?"ephemeral":Nl(b)?"parameterized":"unknown"}function Qs(b,E){const A=E instanceof Array?E:[E];return is(b)&&A.includes(b.kind)||!1}Ir({},{Application:()=>wc,BadgeAward:()=>Zs,BadgeDefinition:()=>mh,BlockedRelaysList:()=>bo,BookmarkList:()=>ro,Bookmarksets:()=>yc,Calendar:()=>Ll,CalendarEventRSVP:()=>xf,ChannelCreation:()=>P,ChannelHideMessage:()=>Ce,ChannelMessage:()=>oe,ChannelMetadata:()=>$,ChannelMuteUser:()=>$e,ClassifiedListing:()=>tm,ClientAuth:()=>gs,CommunitiesList:()=>Ji,CommunityDefinition:()=>rm,CommunityPostApproval:()=>ir,Contacts:()=>em,CreateOrUpdateProduct:()=>bc,CreateOrUpdateStall:()=>pl,Curationsets:()=>tc,Date:()=>nm,DirectMessageRelaysList:()=>jr,DraftClassifiedListing:()=>Hu,DraftLong:()=>$u,Emojisets:()=>ju,EncryptedDirectMessage:()=>fh,EventDeletion:()=>ph,FileMetadata:()=>zt,FileServerPreference:()=>Hi,Followsets:()=>Jl,GenericRepost:()=>O,Genericlists:()=>vc,GiftWrap:()=>It,HTTPAuth:()=>Dl,Handlerinformation:()=>Wu,Handlerrecommendation:()=>yd,Highlights:()=>sr,InterestsList:()=>ma,Interestsets:()=>Js,JobFeedback:()=>Qn,JobRequest:()=>Rn,JobResult:()=>Kn,Label:()=>Xn,LightningPubRPC:()=>Mo,LiveChatMessage:()=>un,LiveEvent:()=>gh,LongFormArticle:()=>nc,Metadata:()=>Oc,Mutelist:()=>Dr,NWCWalletInfo:()=>Yi,NWCWalletRequest:()=>qs,NWCWalletResponse:()=>Ps,NostrConnect:()=>el,OpenTimestamps:()=>pt,Pinlist:()=>Gr,PrivateDirectMessage:()=>vd,ProblemTracker:()=>kn,ProfileBadges:()=>Rc,PublicChatsList:()=>Xi,Reaction:()=>ql,RecommendRelay:()=>_d,RelayList:()=>Br,Relaysets:()=>ec,Report:()=>qt,Reporting:()=>Yn,Repost:()=>pa,Seal:()=>Cl,SearchRelaysList:()=>To,ShortTextNote:()=>fa,Time:()=>_h,UserEmojiList:()=>vr,UserStatuses:()=>Vu,Zap:()=>Or,ZapGoal:()=>yr,ZapRequest:()=>Hn,classifyKind:()=>Ra,isEphemeralKind:()=>Si,isKind:()=>Qs,isParameterizedReplaceableKind:()=>Nl,isRegularKind:()=>Ic,isReplaceableKind:()=>hu});var Oc=0,fa=1,_d=2,em=3,fh=4,ph=5,pa=6,ql=7,Zs=8,Cl=13,vd=14,O=16,P=40,$=41,oe=42,Ce=43,$e=44,pt=1040,It=1059,zt=1063,un=1311,kn=1971,qt=1984,Yn=1984,Xn=1985,ir=4550,Rn=5999,Kn=6999,Qn=7e3,yr=9041,Hn=9734,Or=9735,sr=9802,Dr=1e4,Gr=10001,Br=10002,ro=10003,Ji=10004,Xi=10005,bo=10006,To=10007,ma=10015,vr=10030,jr=10050,Hi=10096,Yi=13194,Mo=21e3,gs=22242,qs=23194,Ps=23195,el=24133,Dl=27235,Jl=3e4,vc=30001,ec=30002,yc=30003,tc=30004,Rc=30008,mh=30009,Js=30015,pl=30017,bc=30018,nc=30023,$u=30024,ju=30030,wc=30078,gh=30311,Vu=30315,tm=30402,Hu=30403,nm=31922,_h=31923,Ll=31924,xf=31925,yd=31989,Wu=31990,rm=34550;function Pl(b,E){if(b.ids&&-1===b.ids.indexOf(E.id)||b.kinds&&-1===b.kinds.indexOf(E.kind)||b.authors&&-1===b.authors.indexOf(E.pubkey))return!1;for(let A in b)if("#"===A[0]){let Y=b[`#${A.slice(1)}`];if(Y&&!E.tags.find(([se,ke])=>se===A.slice(1)&&-1!==Y.indexOf(ke)))return!1}return!(b.since&&E.created_atb.until)}function Nc(b,E){let A=E.length+3,j=b.indexOf(`"${E}":`)+A,Y=b.slice(j).indexOf('"')+j+1;return b.slice(Y,Y+64)}function Lc(b,E){let A=E.length,j=b.indexOf(`"${E}":`)+A+3,Y=b.slice(j),se=Math.min(Y.indexOf(","),Y.indexOf("}"));return parseInt(Y.slice(0,se),10)}function wd(b){let E=b.slice(0,22).indexOf('"EVENT"');if(-1===E)return null;let A=b.slice(E+7+1).indexOf('"');if(-1===A)return null;let j=E+7+1+A,Y=b.slice(j+1,80).indexOf('"');return-1===Y?null:b.slice(j+1,j+1+Y)}function zu(b,E){return E===Nc(b,"id")}function Df(b,E){return E===Nc(b,"pubkey")}function yh(b,E){return E===Lc(b,"kind")}function bh(b,E){return{kind:gs,created_at:Math.floor(Date.now()/1e3),tags:[["relay",b],["challenge",E]],content:""}}function fu(){return Fl.apply(this,arguments)}function Fl(){return(Fl=(0,a.A)(function*(){return new Promise(b=>{const E=new MessageChannel,A=()=>{E.port1.removeEventListener("message",A),b()};E.port1.addEventListener("message",A),E.port2.postMessage(0),E.port1.start()})})).apply(this,arguments)}Ir({},{getHex64:()=>Nc,getInt:()=>Lc,getSubscriptionId:()=>wd,matchEventId:()=>zu,matchEventKind:()=>yh,matchEventPubkey:()=>Df}),Ir({},{makeAuthEvent:()=>bh});var Fg=b=>(b[Gi]=!0,!0),Ed=class{url;_connected=!1;onclose=null;onnotice=b=>console.debug(`NOTICE from ${this.url}: ${b}`);_onauth=null;baseEoseTimeout=4400;connectionTimeout=4400;publishTimeout=4400;openSubs=new Map;connectionTimeoutHandle;connectionPromise;openCountRequests=new Map;openEventPublishes=new Map;ws;incomingMessageQueue=new dh;queueRunning=!1;challenge;serial=0;verifyEvent;_WebSocket;constructor(b,E){this.url=za(b),this.verifyEvent=E.verifyEvent,this._WebSocket=E.websocketImplementation||WebSocket}static connect(b,E){return(0,a.A)(function*(){const A=new Ed(b,E);return yield A.connect(),A})()}closeAllSubscriptions(b){for(let[E,A]of this.openSubs)A.close(b);this.openSubs.clear();for(let[E,A]of this.openEventPublishes)A.reject(new Error(b));this.openEventPublishes.clear();for(let[E,A]of this.openCountRequests)A.reject(new Error(b));this.openCountRequests.clear()}get connected(){return this._connected}connect(){var b=this;return(0,a.A)(function*(){return b.connectionPromise||(b.challenge=void 0,b.connectionPromise=new Promise((E,A)=>{b.connectionTimeoutHandle=setTimeout(()=>{A("connection timed out"),b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection timed out")},b.connectionTimeout);try{b.ws=new b._WebSocket(b.url)}catch(j){return void A(j)}b.ws.onopen=()=>{clearTimeout(b.connectionTimeoutHandle),b._connected=!0,E()},b.ws.onerror=j=>{A(j.message||"websocket error"),b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection errored"))},b.ws.onclose=(0,a.A)(function*(){b._connected&&(b._connected=!1,b.connectionPromise=void 0,b.onclose?.(),b.closeAllSubscriptions("relay connection closed"))}),b.ws.onmessage=b._onmessage.bind(b)})),b.connectionPromise})()}runQueue(){var b=this;return(0,a.A)(function*(){for(b.queueRunning=!0;!1!==b.handleNext();)yield fu();b.queueRunning=!1})()}handleNext(){const b=this.incomingMessageQueue.dequeue();if(!b)return!1;const E=wd(b);if(E){const A=this.openSubs.get(E);if(!A)return;const j=Nc(b,"id"),Y=A.alreadyHaveEvent?.(j);if(A.receivedEvent?.(this,j),Y)return}try{let A=JSON.parse(b);switch(A[0]){case"EVENT":{const j=this.openSubs.get(A[1]),Y=A[2];return void(this.verifyEvent(Y)&&function im(b,E){for(let A=0;A{E.ws?.send(b)})})()}auth(b){var E=this;return(0,a.A)(function*(){if(!E.challenge)throw new Error("can't perform auth, no challenge was received");const A=yield b(bh(E.url,E.challenge)),j=new Promise((Y,se)=>{E.openEventPublishes.set(A.id,{resolve:Y,reject:se})});return E.send('["AUTH",'+JSON.stringify(A)+"]"),j})()}publish(b){var E=this;return(0,a.A)(function*(){const A=new Promise((j,Y)=>{E.openEventPublishes.set(b.id,{resolve:j,reject:Y})});return E.send('["EVENT",'+JSON.stringify(b)+"]"),setTimeout(()=>{const j=E.openEventPublishes.get(b.id);j&&(j.reject(new Error("publish timed out")),E.openEventPublishes.delete(b.id))},E.publishTimeout),A})()}count(b,E){var A=this;return(0,a.A)(function*(){A.serial++;const j=E?.id||"count:"+A.serial,Y=new Promise((se,ke)=>{A.openCountRequests.set(j,{resolve:se,reject:ke})});return A.send('["COUNT","'+j+'",'+JSON.stringify(b).substring(1)),Y})()}subscribe(b,E){const A=this.prepareSubscription(b,E);return A.fire(),A}prepareSubscription(b,E){this.serial++;const A=E.id||"sub:"+this.serial,j=new wh(this,A,b,E);return this.openSubs.set(A,j),j}close(){this.closeAllSubscriptions("relay connection closed by us"),this._connected=!1,this.ws?.close()}_onmessage(b){this.incomingMessageQueue.enqueue(b.data),this.queueRunning||this.runQueue()}},wh=class{relay;id;closed=!1;eosed=!1;filters;alreadyHaveEvent;receivedEvent;onevent;oneose;onclose;eoseTimeout;eoseTimeoutHandle;constructor(b,E,A,j){this.relay=b,this.filters=A,this.id=E,this.alreadyHaveEvent=j.alreadyHaveEvent,this.receivedEvent=j.receivedEvent,this.eoseTimeout=j.eoseTimeout||b.baseEoseTimeout,this.oneose=j.oneose,this.onclose=j.onclose,this.onevent=j.onevent||(Y=>{console.warn(`onevent() callback not defined for subscription '${this.id}' in relay ${this.relay.url}. event received:`,Y)})}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(b="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?.(b)}};try{WebSocket}catch{}var Sf,Fs=class{relays=new Map;seenOn=new Map;trackRelays=!1;verifyEvent;trustedRelayURLs=new Set;_WebSocket;constructor(b){this.verifyEvent=b.verifyEvent,this._WebSocket=b.websocketImplementation}ensureRelay(b,E){var A=this;return(0,a.A)(function*(){b=za(b);let j=A.relays.get(b);return j||(j=new Ed(b,{verifyEvent:A.trustedRelayURLs.has(b)?Fg:A.verifyEvent,websocketImplementation:A._WebSocket}),E?.connectionTimeout&&(j.connectionTimeout=E.connectionTimeout),A.relays.set(b,j)),yield j.connect(),j})()}close(b){b.map(za).forEach(E=>{this.relays.get(E)?.close()})}subscribeMany(b,E,A){return this.subscribeManyMap(Object.fromEntries(b.map(j=>[j,E])),A)}subscribeManyMap(b,E){var A=this;this.trackRelays&&(E.receivedEvent=(on,_n)=>{let rn=this.seenOn.get(_n);rn||(rn=new Set,this.seenOn.set(_n,rn)),rn.add(on)});const j=new Set,Y=[],se=Object.keys(b).length,ke=[];let Pe=on=>{ke[on]=!0,ke.filter(_n=>_n).length===se&&(E.oneose?.(),Pe=()=>{})};const Qe=[];let wt=(on,_n)=>{Pe(on),Qe[on]=_n,Qe.filter(rn=>rn).length===se&&(E.onclose?.(Qe),wt=()=>{})};const Pt=on=>{if(E.alreadyHaveEvent?.(on))return!0;const _n=j.has(on);return j.add(on),_n},Lt=Promise.all(Object.entries(b).map(function(){var on=(0,a.A)(function*(_n,rn,Yt){if(Yt.indexOf(_n)!==rn)return void wt(rn,"duplicate url");let In,[Jt,bn]=_n;Jt=za(Jt);try{In=yield A.ensureRelay(Jt,{connectionTimeout:E.maxWait?Math.max(.8*E.maxWait,E.maxWait-1e3):void 0})}catch(ar){return void wt(rn,ar?.message||String(ar))}let Jn=In.subscribe(bn,{...E,oneose:()=>Pe(rn),onclose:ar=>wt(rn,ar),alreadyHaveEvent:Pt,eoseTimeout:E.maxWait});Y.push(Jn)});return function(_n,rn,Yt){return on.apply(this,arguments)}}()));return{close:()=>(0,a.A)(function*(){yield Lt,Y.forEach(on=>{on.close()})})()}}subscribeManyEose(b,E,A){const j=this.subscribeMany(b,E,{...A,oneose(){j.close()}});return j}querySync(b,E,A){var j=this;return(0,a.A)(function*(){return new Promise(function(){var Y=(0,a.A)(function*(se){const ke=[];j.subscribeManyEose(b,[E],{...A,onevent(Pe){ke.push(Pe)},onclose(Pe){se(ke)}})});return function(se){return Y.apply(this,arguments)}}())})()}get(b,E,A){var j=this;return(0,a.A)(function*(){E.limit=1;const Y=yield j.querySync(b,E,A);return Y.sort((se,ke)=>ke.created_at-se.created_at),Y[0]||null})()}publish(b,E){var A=this;return b.map(za).map(function(){var j=(0,a.A)(function*(Y,se,ke){if(ke.indexOf(Y)!==se)return Promise.reject("duplicate url");let Pe=yield A.ensureRelay(Y);return Pe.publish(E).then(Qe=>{if(A.trackRelays){let wt=A.seenOn.get(E.id);wt||(wt=new Set,A.seenOn.set(E.id,wt)),wt.add(Pe)}return Qe})});return function(Y,se,ke){return j.apply(this,arguments)}}())}listConnectionStatus(){const b=new Map;return this.relays.forEach((E,A)=>b.set(A,E.connected)),b}destroy(){this.relays.forEach(b=>b.close()),this.relays=new Map}};try{Sf=WebSocket}catch{}var Eh=class extends Fs{constructor(){super({verifyEvent:Cn,websocketImplementation:Sf})}},xd={};Ir(xd,{BECH32_REGEX:()=>Gu,Bech32MaxSize:()=>Ku,NostrTypeGuard:()=>om,decode:()=>mu,encodeBytes:()=>Ka,naddrEncode:()=>Sd,neventEncode:()=>Yu,noteEncode:()=>Mf,nprofileEncode:()=>Ad,npubEncode:()=>Tf,nsecEncode:()=>Cd});var om={isNProfile:b=>/^nprofile1[a-z\d]+$/.test(b||""),isNEvent:b=>/^nevent1[a-z\d]+$/.test(b||""),isNAddr:b=>/^naddr1[a-z\d]+$/.test(b||""),isNSec:b=>/^nsec1[a-z\d]{58}$/.test(b||""),isNPub:b=>/^npub1[a-z\d]{58}$/.test(b||""),isNote:b=>/^note1[a-z\d]+$/.test(b||""),isNcryptsec:b=>/^ncryptsec1[a-z\d]+$/.test(b||"")},Ku=5e3,Gu=/[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}/;function mu(b){let{prefix:E,words:A}=ce.decode(b,Ku),j=new Uint8Array(ce.fromWords(A));switch(E){case"nprofile":{let Y=Xu(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for nprofile");if(32!==Y[0][0].length)throw new Error("TLV 0 should be 32 bytes");return{type:"nprofile",data:{pubkey:(0,Xr.My)(Y[0][0]),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[]}}}case"nevent":{let Y=Xu(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for nevent");if(32!==Y[0][0].length)throw new Error("TLV 0 should be 32 bytes");if(Y[2]&&32!==Y[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(Y[3]&&4!==Y[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"nevent",data:{id:(0,Xr.My)(Y[0][0]),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[],author:Y[2]?.[0]?(0,Xr.My)(Y[2][0]):void 0,kind:Y[3]?.[0]?parseInt((0,Xr.My)(Y[3][0]),16):void 0}}}case"naddr":{let Y=Xu(j);if(!Y[0]?.[0])throw new Error("missing TLV 0 for naddr");if(!Y[2]?.[0])throw new Error("missing TLV 2 for naddr");if(32!==Y[2][0].length)throw new Error("TLV 2 should be 32 bytes");if(!Y[3]?.[0])throw new Error("missing TLV 3 for naddr");if(4!==Y[3][0].length)throw new Error("TLV 3 should be 4 bytes");return{type:"naddr",data:{identifier:Wr.decode(Y[0][0]),pubkey:(0,Xr.My)(Y[2][0]),kind:parseInt((0,Xr.My)(Y[3][0]),16),relays:Y[1]?Y[1].map(se=>Wr.decode(se)):[]}}}case"nsec":return{type:E,data:j};case"npub":case"note":return{type:E,data:(0,Xr.My)(j)};default:throw new Error(`unknown prefix ${E}`)}}function Xu(b){let E={},A=b;for(;A.length>0;){let j=A[0],Y=A[1],se=A.slice(2,2+Y);if(A=A.slice(2+Y),se.lengthYs.encode(A))}))}function Yu(b){let E;return void 0!==b.kind&&(E=function xh(b){const E=new Uint8Array(4);return E[0]=b>>24&255,E[1]=b>>16&255,E[2]=b>>8&255,E[3]=255&b,E}(b.kind)),Dd("nevent",Ch({0:[(0,Xr.aT)(b.id)],1:(b.relays||[]).map(j=>Ys.encode(j)),2:b.author?[(0,Xr.aT)(b.author)]:[],3:E?[new Uint8Array(E)]:[]}))}function Sd(b){let E=new ArrayBuffer(4);return new DataView(E).setUint32(0,b.kind,!1),Dd("naddr",Ch({0:[Ys.encode(b.identifier)],1:(b.relays||[]).map(j=>Ys.encode(j)),2:[(0,Xr.aT)(b.pubkey)],3:[new Uint8Array(E)]}))}function Ch(b){let E=[];return Object.entries(b).reverse().forEach(([A,j])=>{j.forEach(Y=>{let se=new Uint8Array(Y.length+2);se.set([parseInt(A)],0),se.set([Y.length],1),se.set(Y,2),E.push(se)})}),(0,Xr.Id)(...E)}var Dh={};function Ah(b,E,A){return Qo.apply(this,arguments)}function Qo(){return(Qo=(0,a.A)(function*(b,E,A){const j=b instanceof Uint8Array?(0,Xr.My)(b):b,se=kf(Er.getSharedSecret(j,"02"+E));let ke=Uint8Array.from((0,Xr.po)(16)),Pe=Ys.encode(A),Qe=qa(se,ke).encrypt(Pe);return`${qn.encode(new Uint8Array(Qe))}?iv=${qn.encode(new Uint8Array(ke.buffer))}`})).apply(this,arguments)}function lm(b,E,A){return Td.apply(this,arguments)}function Td(){return(Td=(0,a.A)(function*(b,E,A){const j=b instanceof Uint8Array?(0,Xr.My)(b):b;let[Y,se]=A.split("?iv="),Pe=kf(Er.getSharedSecret(j,"02"+E)),Qe=qn.decode(se),wt=qn.decode(Y),Pt=qa(Pe,Qe).decrypt(wt);return Wr.decode(Pt)})).apply(this,arguments)}function kf(b){return b.slice(1,33)}Ir(Dh,{decrypt:()=>lm,encrypt:()=>Ah}),Ir({},{NIP05_REGEX:()=>ws,isNip05:()=>Fc,isValid:()=>Ec,queryProfile:()=>kd,searchDomain:()=>gu,useFetchImplementation:()=>rc});var Md,ws=/^(?:([\w.+-]+)@)?([\w_-]+(\.[\w_-]+)+)$/,Fc=b=>ws.test(b||"");try{Md=fetch}catch{}function rc(b){Md=b}function gu(b){return If.apply(this,arguments)}function If(){return(If=(0,a.A)(function*(b,E=""){try{const A=`https://${b}/.well-known/nostr.json?name=${E}`,j=yield Md(A,{redirect:"manual"});if(200!==j.status)throw Error("Wrong response code");return(yield j.json()).names}catch{return{}}})).apply(this,arguments)}function kd(b){return ic.apply(this,arguments)}function ic(){return(ic=(0,a.A)(function*(b){const E=b.match(ws);if(!E)return null;const[,A="_",j]=E;try{const Y=`https://${j}/.well-known/nostr.json?name=${A}`,se=yield Md(Y,{redirect:"manual"});if(200!==se.status)throw Error("Wrong response code");const ke=yield se.json(),Pe=ke.names[A];return Pe?{pubkey:Pe,relays:ke.relays?.[Pe]}:null}catch{return null}})).apply(this,arguments)}function Ec(b,E){return Th.apply(this,arguments)}function Th(){return(Th=(0,a.A)(function*(b,E){const A=yield kd(E);return!!A&&A.pubkey===b})).apply(this,arguments)}function oc(b){const E={reply:void 0,root:void 0,mentions:[],profiles:[],quotes:[]};let A,j;for(let Y=b.tags.length-1;Y>=0;Y--){const se=b.tags[Y];if("e"===se[0]&&se[1]){const[ke,Pe,Qe,wt,Pt]=se,Lt={id:Pe,relays:Qe?[Qe]:[],author:Pt};if("root"===wt){E.root=Lt;continue}if("reply"===wt){E.reply=Lt;continue}if("mention"===wt){E.mentions.push(Lt);continue}A?j=Lt:A=Lt,E.mentions.push(Lt)}else{if("q"===se[0]&&se[1]){const[ke,Pe,Qe]=se;E.quotes.push({id:Pe,relays:Qe?[Qe]:[]})}"p"===se[0]&&se[1]&&E.profiles.push({pubkey:se[1],relays:se[2]?[se[2]]:[]})}}return E.root||(E.root=j||A||E.reply),E.reply||(E.reply=A||E.root),[E.reply,E.root].forEach(Y=>{if(!Y)return;let se=E.mentions.indexOf(Y);if(-1!==se&&E.mentions.splice(se,1),Y.author){let ke=E.profiles.find(Pe=>Pe.pubkey===Y.author);ke&&ke.relays&&(Y.relays||(Y.relays=[]),ke.relays.forEach(Pe=>{-1===Y.relays?.indexOf(Pe)&&Y.relays.push(Pe)}),ke.relays=Y.relays)}}),E.mentions.forEach(Y=>{if(Y.author){let se=E.profiles.find(ke=>ke.pubkey===Y.author);se&&se.relays&&(Y.relays||(Y.relays=[]),se.relays.forEach(ke=>{-1===Y.relays.indexOf(ke)&&Y.relays.push(ke)}),se.relays=Y.relays)}}),E}Ir({},{parse:()=>oc}),Ir({},{fetchRelayInformation:()=>sy,useFetchImplementation:()=>cm});try{fetch}catch{}function cm(b){}function sy(b){return xc.apply(this,arguments)}function xc(){return(xc=(0,a.A)(function*(b){return yield(yield fetch(b.replace("ws://","http://").replace("wss://","https://"),{headers:{Accept:"application/nostr+json"}})).json()})).apply(this,arguments)}function kh(b){let E=0;for(let A=0;A<64;A+=8){const j=parseInt(b.substring(A,A+8),16);if(0!==j){E+=Math.clz32(j);break}E+=32}return E}function os(b,E){let A=0;const j=b,Y=["nonce",A.toString(),E.toString()];for(j.tags.push(Y);;){const se=Math.floor((new Date).getTime()/1e3);if(se!==j.created_at&&(A=0,j.created_at=se),Y[1]=(++A).toString(),j.id=Of(j),kh(j.id)>=E)break}return j}function Of(b){return(0,Xr.My)(Ss(Ys.encode(JSON.stringify([0,b.pubkey,b.created_at,b.kind,b.tags,b.content]))))}function um(b,E,A,j){return Ja({kind:pa,tags:[...b.tags??[],["e",E.id,A],["p",E.pubkey]],content:""===b.content?"":JSON.stringify(E),created_at:b.created_at},j)}function Rf(b){if(b.kind!==pa)return;let E,A;for(let j=b.tags.length-1;j>=0&&(void 0===E||void 0===A);j--){const Y=b.tags[j];Y.length>=2&&("e"===Y[0]&&void 0===E?E=Y:"p"===Y[0]&&void 0===A&&(A=Y))}return void 0!==E?{id:E[1],relays:[E[2],A?.[2]].filter(j=>"string"==typeof j),author:A?.[1]}:void 0}function Oh(b,{skipVerification:E}={}){const A=Rf(b);if(void 0===A||""===b.content)return;let j;try{j=JSON.parse(b.content)}catch{return}return j.id===A.id&&(E||Cn(j))?j:void 0}Ir({},{fastEventHash:()=>Of,getPow:()=>kh,minePow:()=>os}),Ir({},{finishRepostEvent:()=>um,getRepostedEvent:()=>Oh,getRepostedEventPointer:()=>Rf}),Ir({},{NOSTR_URI_REGEX:()=>vu,parse:()=>dm,test:()=>Rh});var vu=new RegExp(`nostr:(${Gu.source})`);function Rh(b){return"string"==typeof b&&new RegExp(`^${vu.source}$`).test(b)}function dm(b){const E=b.match(new RegExp(`^${vu.source}$`));if(!E)throw new Error(`Invalid Nostr URI: ${b}`);return{uri:E[0],value:E[1],decoded:mu(E[1])}}function Lf(b,E,A){const j=E.tags.filter(Y=>Y.length>=2&&("e"===Y[0]||"p"===Y[0]));return Ja({...b,kind:ql,tags:[...b.tags??[],...j,["e",E.id],["p",E.pubkey]],content:b.content??"+"},A)}function Ug(b){if(b.kind!==ql)return;let E,A;for(let j=b.tags.length-1;j>=0&&(void 0===E||void 0===A);j--){const Y=b.tags[j];Y.length>=2&&("e"===Y[0]&&void 0===E?E=Y:"p"===Y[0]&&void 0===A&&(A=Y))}return void 0!==E&&void 0!==A?{id:E[1],relays:[E[2],A[2]].filter(j=>void 0!==j),author:A[1]}:void 0}Ir({},{finishReactionEvent:()=>Lf,getReactedEventPointer:()=>Ug}),Ir({},{matchAll:()=>yu,regex:()=>Zu,replaceAll:()=>$g});var Zu=()=>new RegExp(`\\b${vu.source}\\b`,"g");function*yu(b){const E=b.matchAll(Zu());for(const A of E)try{const[j,Y]=A;yield{uri:j,value:Y,decoded:mu(Y),start:A.index,end:A.index+j.length}}catch{}}function $g(b,E){return b.replaceAll(Zu(),(A,j)=>E({uri:A,value:j,decoded:mu(j)}))}Ir({},{channelCreateEvent:()=>Pf,channelHideMessageEvent:()=>wu,channelMessageEvent:()=>jg,channelMetadataEvent:()=>bu,channelMuteUserEvent:()=>Dc});var Pf=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:P,tags:[...b.tags??[]],content:A,created_at:b.created_at},E)},bu=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:$,tags:[["e",b.channel_create_event_id],...b.tags??[]],content:A,created_at:b.created_at},E)},jg=(b,E)=>{const A=[["e",b.channel_create_event_id,b.relay_url,"root"]];return b.reply_to_channel_message_event_id&&A.push(["e",b.reply_to_channel_message_event_id,b.relay_url,"reply"]),Ja({kind:oe,tags:[...A,...b.tags??[]],content:b.content,created_at:b.created_at},E)},wu=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:Ce,tags:[["e",b.channel_message_event_id],...b.tags??[]],content:A,created_at:b.created_at},E)},Dc=(b,E)=>{let A;if("object"==typeof b.content)A=JSON.stringify(b.content);else{if("string"!=typeof b.content)return;A=b.content}return Ja({kind:$e,tags:[["p",b.pubkey_to_mute],...b.tags??[]],content:A,created_at:b.created_at},E)};Ir({},{EMOJI_SHORTCODE_REGEX:()=>Nh,matchAll:()=>Ff,regex:()=>Rd,replaceAll:()=>qu});var Ju,Nh=/:(\w+):/,Rd=()=>new RegExp(`\\B${Nh.source}\\B`,"g");function*Ff(b){const E=b.matchAll(Rd());for(const A of E)try{const[j,Y]=A;yield{shortcode:j,name:Y,start:A.index,end:A.index+j.length}}catch{}}function qu(b,E){return b.replaceAll(Rd(),(A,j)=>E({shortcode:A,name:j}))}Ir({},{useFetchImplementation:()=>Lh,validateGithub:()=>ed});try{Ju=fetch}catch{}function Lh(b){Ju=b}function ed(b,E,A){return Bc.apply(this,arguments)}function Bc(){return(Bc=(0,a.A)(function*(b,E,A){try{return(yield(yield Ju(`https://gist.github.com/${E}/${A}/raw`)).text())===`Verifying that I control the following Nostr public key: ${b}`}catch{return!1}})).apply(this,arguments)}Ir({},{decrypt:()=>Bh,encrypt:()=>nd,getConversationKey:()=>xu,v2:()=>Uc});var sc=1,td=65535;function xu(b,E){const A=Er.getSharedSecret(b,"02"+E).subarray(1,33);return function We(b,E,A){return Ao.hash(b),void 0===A&&(A=new Uint8Array(b.outputLen)),he(b,(0,Xr.ZJ)(A),(0,Xr.ZJ)(E))}(Ss,A,"nip44-v2")}function Bf(b,E){const A=function an(b,E,A,j=32){if(Ao.hash(b),Ao.number(j),j>255*b.outputLen)throw new Error("Length should be <= 255*HashLen");const Y=Math.ceil(j/b.outputLen);void 0===A&&(A=gn);const se=new Uint8Array(Y*b.outputLen),ke=he.create(b,E),Pe=ke._cloneInto(),Qe=new Uint8Array(ke.outputLen);for(let wt=0;wttd)throw new Error("invalid plaintext size: must be between 1 and 65535 bytes");const E=new Uint8Array(2);return new DataView(E.buffer).setUint16(0,b,!1),E}(A),Y=new Uint8Array(Nd(A)-A);return(0,Xr.Id)(j,E,Y)}(b),Pe=Yl(j,Y,ke),Qe=$f(se,Pe,A);return qn.encode((0,Xr.Id)(new Uint8Array([2]),A,Pe,Qe))}function Bh(b,E){const{nonce:A,ciphertext:j,mac:Y}=function ga(b){if("string"!=typeof b)throw new Error("payload must be a valid string");const E=b.length;if(E<132||E>87472)throw new Error("invalid payload length: "+E);if("#"===b[0])throw new Error("unknown encryption version");let A;try{A=qn.decode(b)}catch(se){throw new Error("invalid base64: "+se.message)}const j=A.length;if(j<99||j>65603)throw new Error("invalid data length: "+j);const Y=A[0];if(2!==Y)throw new Error("unknown encryption version "+Y);return{nonce:A.subarray(1,33),ciphertext:A.subarray(33,-32),mac:A.subarray(-32)}}(b),{chacha_key:se,chacha_nonce:ke,hmac_key:Pe}=Bf(E,A);if(!da($f(Pe,j,A),Y))throw new Error("invalid MAC");return function Uf(b){const E=new DataView(b.buffer).getUint16(0),A=b.subarray(2,2+E);if(Etd||A.length!==E||b.length!==2+Nd(E))throw new Error("invalid padding");return Wr.decode(A)}(Yl(se,ke,j))}var rd,Uc={utils:{getConversationKey:xu,calcPaddedLen:Nd},encrypt:nd,decrypt:Bh};function fm(b){const{pathname:E,searchParams:A}=new URL(b),j=E,Y=A.get("relay"),se=A.get("secret");if(!j||!Y||!se)throw new Error("invalid connection string");return{pubkey:j,relay:Y,secret:se}}function va(b,E,A){return ac.apply(this,arguments)}function ac(){return(ac=(0,a.A)(function*(b,E,A){const Y=yield Ah(E,b,JSON.stringify({method:"pay_invoice",params:{invoice:A}})),se={kind:qs,created_at:Math.round(Date.now()/1e3),content:Y,tags:[["p",b]]};return Ja(se,E)})).apply(this,arguments)}Ir({},{makeNwcRequestEvent:()=>va,parseConnectionString:()=>fm}),Ir({},{getZapEndpoint:()=>$h,makeZapReceipt:()=>jh,makeZapRequest:()=>Vf,useFetchImplementation:()=>jf,validateZapRequest:()=>Hf});try{rd=fetch}catch{}function jf(b){rd=b}function $h(b){return Ld.apply(this,arguments)}function Ld(){return(Ld=(0,a.A)(function*(b){try{let E="",{lud06:A,lud16:j}=JSON.parse(b.content);if(A){let{words:ke}=ce.decode(A,1e3),Pe=ce.fromWords(ke);E=Wr.decode(Pe)}else{if(!j)return null;{let[ke,Pe]=j.split("@");E=new URL(`/.well-known/lnurlp/${ke}`,`https://${Pe}`).toString()}}let se=yield(yield rd(E)).json();if(se.allowsNostr&&se.nostrPubkey)return se.callback}catch{}return null})).apply(this,arguments)}function Vf({profile:b,event:E,amount:A,relays:j,comment:Y=""}){if(!A)throw new Error("amount not given");if(!b)throw new Error("profile not given");let se={kind:9734,created_at:Math.round(Date.now()/1e3),content:Y,tags:[["p",b],["amount",A.toString()],["relays",...j]]};return E&&se.tags.push(["e",E]),se}function Hf(b){let E;try{E=JSON.parse(b)}catch{return"Invalid zap request JSON."}if(!is(E))return"Zap request is not a valid Nostr event.";if(!Cn(E))return"Invalid signature on zap request.";let A=E.tags.find(([se,ke])=>"p"===se&&ke);if(!A)return"Zap request doesn't have a 'p' tag.";if(!A[1].match(/^[a-f0-9]{64}$/))return"Zap request 'p' tag is not valid hex.";let j=E.tags.find(([se,ke])=>"e"===se&&ke);return j&&!j[1].match(/^[a-f0-9]{64}$/)?"Zap request 'e' tag is not valid hex.":E.tags.find(([se,ke])=>"relays"===se&&ke)?null:"Zap request doesn't have a 'relays' tag."}function jh({zapRequest:b,preimage:E,bolt11:A,paidAt:j}){let Y=JSON.parse(b),se=Y.tags.filter(([Pe])=>"e"===Pe||"p"===Pe||"a"===Pe),ke={kind:9735,created_at:Math.round(j.getTime()/1e3),content:"",tags:[...se,["P",Y.pubkey],["bolt11",A],["description",b]]};return E&&ke.tags.push(["preimage",E]),ke}Ir({},{createRumor:()=>Pd,createSeal:()=>Fd,createWrap:()=>Bd,unwrapEvent:()=>mm,unwrapManyEvents:()=>Wh,wrapEvent:()=>Cu,wrapManyEvents:()=>Hh});var zf=()=>Math.round(Date.now()/1e3),Kf=()=>Math.round(zf()-172800*Math.random()),lc=(b,E)=>xu(b,E),Vh=(b,E,A)=>nd(JSON.stringify(b),lc(E,A)),id=(b,E)=>JSON.parse(Bh(b.content,lc(E,b.pubkey)));function Pd(b,E){const A={created_at:zf(),content:"",tags:[],...b,pubkey:du(E)};return A.id=Ql(A),A}function Fd(b,E,A){return Ja({kind:Cl,content:Vh(b,E,A),created_at:Kf(),tags:[]},E)}function Bd(b,E){const A=uu();return Ja({kind:It,content:Vh(b,A,E),created_at:Kf(),tags:[["p",E]]},A)}function Cu(b,E,A){return Bd(Fd(Pd(b,E),E,A),A)}function Hh(b,E,A){if(!A||0===A.length)throw new Error("At least one recipient is required.");const j=du(E),Y=[Cu(b,E,j)];return A.forEach(se=>{Y.push(Cu(b,E,se))}),Y}function mm(b,E){const A=id(b,E);return id(A,E)}function Wh(b,E){let A=[];return b.forEach(j=>{A.push(mm(j,E))}),A.sort((j,Y)=>j.created_at-Y.created_at),A}Ir({},{getToken:()=>Xf,hashPayload:()=>tl,unpackEventFromToken:()=>Yf,validateEvent:()=>Yh,validateEventKind:()=>Gh,validateEventMethodTag:()=>_m,validateEventPayloadTag:()=>Du,validateEventTimestamp:()=>Qf,validateEventUrlTag:()=>Xh,validateToken:()=>$c});var Gf="Nostr ";function Xf(b,E,A){return zh.apply(this,arguments)}function zh(){return(zh=(0,a.A)(function*(b,E,A,j=!1,Y){const se={kind:Dl,tags:[["u",b],["method",E]],created_at:Math.round((new Date).getTime()/1e3),content:""};Y&&se.tags.push(["payload",tl(Y)]);const ke=yield A(se);return(j?Gf:"")+qn.encode(Ys.encode(JSON.stringify(ke)))})).apply(this,arguments)}function $c(b,E,A){return jc.apply(this,arguments)}function jc(){return(jc=(0,a.A)(function*(b,E,A){const j=yield Yf(b).catch(se=>{throw se});return yield Yh(j,E,A).catch(se=>{throw se})})).apply(this,arguments)}function Yf(b){return Kh.apply(this,arguments)}function Kh(){return(Kh=(0,a.A)(function*(b){if(!b)throw new Error("Missing token");b=b.replace(Gf,"");const E=Wr.decode(qn.decode(b));if(!E||0===E.length||!E.startsWith("{"))throw new Error("Invalid token");return JSON.parse(E)})).apply(this,arguments)}function Qf(b){return!!b.created_at&&Math.round((new Date).getTime()/1e3)-b.created_at<60}function Gh(b){return b.kind===Dl}function Xh(b,E){const A=b.tags.find(j=>"u"===j[0]);return!!A&&A.length>0&&A[1]===E}function _m(b,E){const A=b.tags.find(j=>"method"===j[0]);return!!A&&A.length>0&&A[1].toLowerCase()===E.toLowerCase()}function tl(b){const E=Ss(Ys.encode(JSON.stringify(b)));return(0,Xr.My)(E)}function Du(b,E){const A=b.tags.find(Y=>"payload"===Y[0]);if(!A)return!1;const j=tl(E);return A.length>0&&A[1]===j}function Yh(b,E,A,j){return od.apply(this,arguments)}function od(){return(od=(0,a.A)(function*(b,E,A,j){if(!Cn(b))throw new Error("Invalid nostr event, signature invalid");if(!Gh(b))throw new Error("Invalid nostr event, kind invalid");if(!Qf(b))throw new Error("Invalid nostr event, created_at timestamp invalid");if(!Xh(b,E))throw new Error("Invalid nostr event, url tag invalid");if(!_m(b,A))throw new Error("Invalid nostr event, method tag invalid");if(j&&"object"==typeof j&&Object.keys(j).length>0&&!Du(b,j))throw new Error("Invalid nostr event, payload tag does not match request body hash");return!0})).apply(this,arguments)}},3797:(o,s,n)=>{"use strict";n.d(s,{OS:()=>k,av:()=>R,qT:()=>de,rV:()=>re}),Symbol("verified");var k=0,R=1,re=4,de=7},4704:(o,s,n)=>{"use strict";n.d(s,{Vw:()=>de,My:()=>M,Id:()=>pe,O8:()=>w,aT:()=>k,po:()=>le,Ow:()=>C,ZJ:()=>_e,ld:()=>Le});const i="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=ae=>ae instanceof Uint8Array,w=ae=>new DataView(ae.buffer,ae.byteOffset,ae.byteLength),C=(ae,xe)=>ae<<32-xe|ae>>>xe;if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");const S=Array.from({length:256},(ae,xe)=>xe.toString(16).padStart(2,"0"));function M(ae){if(!a(ae))throw new Error("Uint8Array expected");let xe="";for(let Be=0;Best+lt.length,0));let Be=0;return ae.forEach(st=>{if(!a(st))throw new Error("Uint8Array expected");xe.set(st,Be),Be+=st.length}),xe}class de{clone(){return this._cloneInto()}}function Le(ae){const xe=st=>ae().update(_e(st)).digest(),Be=ae();return xe.outputLen=Be.outputLen,xe.blockLen=Be.blockLen,xe.create=()=>ae(),xe}function le(ae=32){if(i&&"function"==typeof i.getRandomValues)return i.getRandomValues(new Uint8Array(ae));throw new Error("crypto.getRandomValues must be defined")}},2661:(o,s,n)=>{"use strict";function i(a,c){this.v=a,this.k=c}n.d(s,{A:()=>i})},3014:(o,s,n)=>{"use strict";function i(c,y,w,C,T,S,M){try{var k=c[S](M),R=k.value}catch(X){return void w(X)}k.done?y(R):Promise.resolve(R).then(C,T)}function a(c){return function(){var y=this,w=arguments;return new Promise(function(C,T){var S=c.apply(y,w);function M(R){i(S,C,T,M,k,"next",R)}function k(R){i(S,C,T,M,k,"throw",R)}M(void 0)})}}n.d(s,{A:()=>a})},5137:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});var i=n(2661);function a(c){return new i.A(c,0)}},9129:(o,s,n)=>{"use strict";n.d(s,{A:()=>a});var i=n(2661);function a(y){return function(){return new c(y.apply(this,arguments))}}function c(y){var w,C;function T(M,k){try{var R=y[M](k),X=R.value,Z=X instanceof i.A;Promise.resolve(Z?X.v:X).then(function(re){if(Z){var _e="return"===M?"return":"next";if(!X.k||re.done)return T(_e,re);re=y[_e](re).value}S(R.done?"return":"normal",re)},function(re){T("throw",re)})}catch(re){S("throw",re)}}function S(M,k){switch(M){case"return":w.resolve({value:k,done:!0});break;case"throw":w.reject(k);break;default:w.resolve({value:k,done:!1})}(w=w.next)?T(w.key,w.arg):C=null}this._invoke=function(M,k){return new Promise(function(R,X){var Z={key:M,arg:k,resolve:R,reject:X,next:null};C?C=C.next=Z:(w=C=Z,T(M,k))})},"function"!=typeof y.return&&(this.return=void 0)}c.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(y){return this._invoke("next",y)},c.prototype.throw=function(y){return this._invoke("throw",y)},c.prototype.return=function(y){return this._invoke("return",y)}},1635:(o,s,n)=>{"use strict";function X(ze,Ue,Ft,Ke){return new(Ft||(Ft=Promise))(function(it,Ot){function Qt(Xt){try{ht(Ke.next(Xt))}catch(Tn){Ot(Tn)}}function Me(Xt){try{ht(Ke.throw(Xt))}catch(Tn){Ot(Tn)}}function ht(Xt){Xt.done?it(Xt.value):function Ze(it){return it instanceof Ft?it:new Ft(function(Ot){Ot(it)})}(Xt.value).then(Qt,Me)}ht((Ke=Ke.apply(ze,Ue||[])).next())})}function Ae(ze){return this instanceof Ae?(this.v=ze,this):new Ae(ze)}function we(ze,Ue,Ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ze,Ke=Ft.apply(ze,Ue||[]),it=[];return Ze=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Qt("next"),Qt("throw"),Qt("return",function Ot(Zt){return function(rt){return Promise.resolve(rt).then(Zt,Tn)}}),Ze[Symbol.asyncIterator]=function(){return this},Ze;function Qt(Zt,rt){Ke[Zt]&&(Ze[Zt]=function(Ht){return new Promise(function(en,Nn){it.push([Zt,Ht,en,Nn])>1||Me(Zt,Ht)})},rt&&(Ze[Zt]=rt(Ze[Zt])))}function Me(Zt,rt){try{!function ht(Zt){Zt.value instanceof Ae?Promise.resolve(Zt.value.v).then(Xt,Tn):Wt(it[0][2],Zt)}(Ke[Zt](rt))}catch(Ht){Wt(it[0][3],Ht)}}function Xt(Zt){Me("next",Zt)}function Tn(Zt){Me("throw",Zt)}function Wt(Zt,rt){Zt(rt),it.shift(),it.length&&Me(it[0][0],it[0][1])}}function ae(ze){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ft,Ue=ze[Symbol.asyncIterator];return Ue?Ue.call(ze):(ze=function pe(ze){var Ue="function"==typeof Symbol&&Symbol.iterator,Ft=Ue&&ze[Ue],Ke=0;if(Ft)return Ft.call(ze);if(ze&&"number"==typeof ze.length)return{next:function(){return ze&&Ke>=ze.length&&(ze=void 0),{value:ze&&ze[Ke++],done:!ze}}};throw new TypeError(Ue?"Object is not iterable.":"Symbol.iterator is not defined.")}(ze),Ft={},Ke("next"),Ke("throw"),Ke("return"),Ft[Symbol.asyncIterator]=function(){return this},Ft);function Ke(it){Ft[it]=ze[it]&&function(Ot){return new Promise(function(Qt,Me){!function Ze(it,Ot,Qt,Me){Promise.resolve(Me).then(function(ht){it({value:ht,done:Qt})},Ot)}(Qt,Me,(Ot=ze[it](Ot)).done,Ot.value)})}}}n.d(s,{AQ:()=>we,N3:()=>Ae,sH:()=>X,xN:()=>ae}),"function"==typeof SuppressedError&&SuppressedError}},o=>{o(o.s=770)}]); \ No newline at end of file diff --git a/ngsw.json b/ngsw.json index 6da5600..72e69b0 100644 --- a/ngsw.json +++ b/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1733280559509, + "timestamp": 1733281291523, "index": "/index.html", "assetGroups": [], "dataGroups": [], diff --git a/runtime.0e1f1af71746db16.js b/runtime.0e1f1af71746db16.js new file mode 100644 index 0000000..c787726 --- /dev/null +++ b/runtime.0e1f1af71746db16.js @@ -0,0 +1 @@ +(()=>{"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,d,i)=>{if(!a){var t=1/0;for(f=0;f=i)&&Object.keys(r.O).every(p=>r.O[p](a[o]))?a.splice(o--,1):(c=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[a,d,i]},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)+"."+{45:"38f868aa3922ab2a",76:"14f215e4f4e9af93",87:"3a2e64bb6d08ae46",232:"e86c6a10c949ded0",256:"0e13c4fd2d85a687",318:"b458f6d3dc91cab3",371:"1350987134a35fcd",394:"1387a9799f07f379",512:"385c30caa64e99b0",523:"1d564178fdfd679e",544:"eda92231287fa498",556:"14e4bee993e6d7c2",664:"bddcb91772855f24",767:"23080afeade3d558",785:"57ec2fa6fb38bc28",824:"677f608395602086",836:"dbe90a7b5bc003c1",859:"5c6e13c9e52b4d5a",863:"9049fc70a830e027",957:"5e3037fca5fc8f88"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(a,d,i,f)=>{if(e[a])e[a].push(d);else{var t,c;if(void 0!==i)for(var o=document.getElementsByTagName("script"),u=0;u{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),c&&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=(d,i)=>{var f=r.o(e,d)?e[d]:void 0;if(0!==f)if(f)i.push(f[2]);else if(121!=d){var t=new Promise((l,s)=>f=e[d]=[l,s]);i.push(f[2]=t);var c=r.p+r.u(d),o=new Error;r.l(c,l=>{if(r.o(e,d)&&(0!==(f=e[d])&&(e[d]=void 0),f)){var s=l&&("load"===l.type?"missing":l.type),b=l&&l.target&&l.target.src;o.message="Loading chunk "+d+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,f[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,i)=>{var o,u,[f,t,c]=i,l=0;if(f.some(b=>0!==e[b])){for(o in t)r.o(t,o)&&(r.m[o]=t[o]);if(c)var s=c(r)}for(d&&d(i);l{"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,f,i)=>{if(!a){var t=1/0;for(d=0;d=i)&&Object.keys(r.O).every(p=>r.O[p](a[o]))?a.splice(o--,1):(u=!1,i0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[a,f,i]},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)+"."+{45:"38f868aa3922ab2a",76:"14f215e4f4e9af93",87:"89382f6778c57112",232:"e86c6a10c949ded0",256:"0e13c4fd2d85a687",318:"afda1c4d799c528b",371:"1350987134a35fcd",394:"1387a9799f07f379",512:"385c30caa64e99b0",523:"1d564178fdfd679e",544:"eda92231287fa498",556:"14e4bee993e6d7c2",664:"8a10de4594052b2f",767:"23080afeade3d558",785:"790ad74884c879a0",824:"677f608395602086",836:"dbe90a7b5bc003c1",859:"5c6e13c9e52b4d5a",863:"9049fc70a830e027",957:"5e3037fca5fc8f88"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="angor:";r.l=(a,f,i,d)=>{if(e[a])e[a].push(f);else{var t,u;if(void 0!==i)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=(f,i)=>{var d=r.o(e,f)?e[f]:void 0;if(0!==d)if(d)i.push(d[2]);else if(121!=f){var t=new Promise((c,s)=>d=e[f]=[c,s]);i.push(d[2]=t);var u=r.p+r.u(f),o=new Error;r.l(u,c=>{if(r.o(e,f)&&(0!==(d=e[f])&&(e[f]=void 0),d)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;o.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",o.name="ChunkLoadError",o.type=s,o.request=b,d[1](o)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,i)=>{var o,l,[d,t,u]=i,c=0;if(d.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(f&&f(i);c.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.example-viewer{display:flex;flex-direction:column;margin:32px 0;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.example-viewer .title{display:flex;align-items:center;justify-content:space-between;height:88px;min-height:88px;max-height:88px;padding:0 40px}.example-viewer .title h6{font-weight:700}.example-viewer .title .controls{display:flex;align-items:center}.example-viewer .title .controls>*+*{margin-left:8px}.example-viewer mat-tab-group .mat-tab-body-content .angor-highlight pre{margin:0;border-radius:0}input,textarea{background:transparent}input::placeholder,textarea::placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::placeholder,.mat-toolbar.mat-primary textarea::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::placeholder,.mat-toolbar.mat-accent textarea::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::placeholder,.mat-toolbar.mat-warn textarea::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-moz-placeholder,textarea::-moz-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-moz-placeholder,.mat-toolbar.mat-primary textarea::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-moz-placeholder,.mat-toolbar.mat-accent textarea::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-moz-placeholder,.mat-toolbar.mat-warn textarea::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-webkit-input-placeholder,.mat-toolbar.mat-primary textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-webkit-input-placeholder,.mat-toolbar.mat-accent textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-webkit-input-placeholder,.mat-toolbar.mat-warn textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-ms-input-placeholder,textarea:-ms-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input:-ms-input-placeholder,.mat-toolbar.mat-primary textarea:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input:-ms-input-placeholder,.mat-toolbar.mat-accent textarea:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input:-ms-input-placeholder,.mat-toolbar.mat-warn textarea:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:active{-webkit-background-clip:text;-webkit-transition:background-color 5000s!important;transition:background-color 5000s!important}.dark input:-webkit-autofill,.dark input:-webkit-autofill:hover,.dark input:-webkit-autofill:focus,.dark input:-webkit-autofill:active,.dark textarea:-webkit-autofill,.dark textarea:-webkit-autofill:hover,.dark textarea:-webkit-autofill:focus,.dark textarea:-webkit-autofill:active{-webkit-text-fill-color:rgba(255,255,255,.87)}input [data-autocompleted],textarea [data-autocompleted]{background-color:transparent!important}.angor-backdrop-on-mobile{background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .6 !important}@media (min-width: 600px){.angor-backdrop-on-mobile{background-color:transparent!important}}*[class*=mat-],*[class*=mat-mdc-],*[class*=mat-] *,*[class*=mat-mdc-] *{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important}.mat-accordion .mat-expansion-panel{margin-bottom:24px;border-radius:8px!important;transition:box-shadow 225ms cubic-bezier(.4,0,.2,1);--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:last-child{margin-bottom:0}.mat-accordion .mat-expansion-panel.mat-expanded,.mat-accordion .mat-expansion-panel:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:transparent!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header{font-size:14px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{margin-right:28px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator:after{border-color:currentColor!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-body{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button,.mat-mdc-icon-button,.mat-mdc-fab,.mat-mdc-mini-fab{height:40px;min-height:40px;max-height:40px;line-height:1!important}.mat-mdc-button.angor-mat-button-large,.mat-mdc-raised-button.angor-mat-button-large,.mat-mdc-outlined-button.angor-mat-button-large,.mat-mdc-unelevated-button.angor-mat-button-large,.mat-mdc-icon-button.angor-mat-button-large,.mat-mdc-fab.angor-mat-button-large,.mat-mdc-mini-fab.angor-mat-button-large{height:48px;min-height:48px;max-height:48px}.mat-mdc-button[disabled=true] .mat-icon,.mat-mdc-raised-button[disabled=true] .mat-icon,.mat-mdc-outlined-button[disabled=true] .mat-icon,.mat-mdc-unelevated-button[disabled=true] .mat-icon,.mat-mdc-icon-button[disabled=true] .mat-icon,.mat-mdc-fab[disabled=true] .mat-icon,.mat-mdc-mini-fab[disabled=true] .mat-icon{opacity:.38!important}.mat-mdc-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;padding:0!important}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{height:auto!important}.mat-mdc-fab{max-height:56px;border-radius:16px!important}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:16px!important}.mat-mdc-mini-fab{border-radius:12px!important}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:12px!important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button{padding:0 20px!important;border-radius:9999px!important}.mat-mdc-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon{margin-left:0!important;margin-right:0!important}.mat-mdc-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-raised-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-outlined-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-unelevated-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-icon-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-mini-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle{stroke:currentColor!important;animation-duration:6s}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #3b7586 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.dark .mat-mdc-raised-button,.dark .mat-mdc-unelevated-button,.dark .mat-mdc-fab,.dark .mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.mat-mdc-raised-button .mat-icon,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-fab .mat-icon,.mat-mdc-mini-fab .mat-icon{color:currentColor!important}.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:#0000001a!important}.mat-mdc-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]){--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]):is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button[disabled=true]{border-color:#6b98a4b3!important}.mat-mdc-outlined-button[disabled=true]:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.mdc-button .mdc-button__label{white-space:nowrap}.mat-button-toggle-group{border:none!important}.mat-button-toggle-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.mat-button-toggle-group.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{background-clip:padding-box}.mat-button-toggle-group .mat-button-toggle{border-radius:9999px;overflow:hidden;border:none!important;font-weight:500}.mat-button-toggle-group .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-label-content{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{padding:0 20px;line-height:40px!important;--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-checkbox{display:inline-flex!important}.mat-mdc-checkbox .mdc-form-field{padding-right:12px}.mdc-checkbox__native-control{opacity:0!important}.mat-mdc-chip{font-weight:500!important}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;padding:24px}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-disabled{opacity:.7!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-select .mat-mdc-select-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill:hover .mat-mdc-form-field-focus-overlay,.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused .mat-mdc-form-field-focus-overlay{opacity:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{top:auto;margin-top:0;margin-bottom:0;padding-top:0;padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right -7px center;background-size:24px}.dark .mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2397a6ba' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E")}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{padding:0;border-radius:6px;border-width:1px;border-style:solid;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .05 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--no-label){margin-top:24px;overflow:visible}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-focus-overlay{border-radius:6px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex{position:relative;display:flex;align-items:stretch;border-radius:6px;padding:0 16px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 4px 0 -10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-left:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-right:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{display:inline-flex;align-items:center;justify-content:center;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:40px;min-width:40px;height:40px;min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon{width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem;font-size:1.5rem;line-height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon svg{width:1.5rem;height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{border-top-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{display:flex;max-width:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon{margin:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper{display:flex;align-items:center;transform:none;margin-left:4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{min-height:0;--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{position:static;display:flex;align-items:center;width:88px;min-height:48px;padding:0;border:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{top:-25px!important;left:0!important;width:100%!important;transform:none!important;pointer-events:auto;font-weight:500;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:12px 0;padding:0 6px 0 0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-chip-set{width:100%;margin:0 -8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mdc-line-ripple{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper{font-size:12px;font-weight:500}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:flex-start;padding-top:14px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:24px 0 0 24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 2px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:4px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 24px 24px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 2px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:4px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:32px!important;min-width:32px;height:32px;min-height:32px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin-left:-6px;margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin-left:12px;margin-right:-6px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:8px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding-top:10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:20px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:20px 0 0 20px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 20px 20px 0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{align-self:stretch!important;margin:0 16px 0 -16px!important;padding-left:16px!important;border-radius:6px 0 0 6px;border-right-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 6px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:stretch!important;margin:0 -16px 0 16px!important;padding-right:16px!important;border-radius:0 6px 6px 0;border-left-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 6px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin:0 -4px 0 16px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-bg-default-rgb),var(--tw-bg-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-items:flex-start}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-bold .mat-mdc-text-field-wrapper{border-width:2px!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--angor-warn)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__trailing{border-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__trailing{border-color:var(--angor-accent)!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch{border-right-style:none!important}.mat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;font-size:24px;line-height:24px;-webkit-appearance:none!important}.mat-mdc-input-element::placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-moz-placeholder{-moz-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-webkit-input-placeholder{-webkit-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element:-ms-input-placeholder{-ms-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-form-field-invalid .mat-mdc-input-element::placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-webkit-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element:-ms-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-menu-panel{min-width:144px!important}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center;padding-right:16px}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-icon-no-color{--tw-text-opacity: 1;color:rgba(var(--angor-mat-icon-rgb),var(--tw-text-opacity))}.mat-mdc-menu-panel .mat-mdc-menu-content mat-divider{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container{padding:8px 16px;justify-content:space-between}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container{justify-content:normal}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size{align-items:center;min-height:40px;margin:8px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:none;margin-right:12px}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:block}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select{margin:0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding:0 10px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper .mat-form-field-flex{min-height:32px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions .mat-mdc-paginator-range-label{margin-right:16px}.mat-mdc-select{display:inline-flex!important}.mat-mdc-select .mat-mdc-select-placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{position:relative;display:flex;max-width:none}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text{display:inline-flex}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text>*{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mat-mdc-select .mat-mdc-select-arrow-wrapper{transform:translateY(0)!important}.mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{margin:0 0 0 8px;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#fff!important}.dark .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#000!important}.mat-step-icon .mat-icon{color:currentColor!important}.mat-step-label,.mat-step-label-selected{font-weight:500!important}.mat-mdc-table .mdc-data-table__row:not(.mdc-data-table__row--selected):hover{background:none!important}.mat-mdc-tab-group.angor-mat-no-header .mat-mdc-tab-header{height:0!important;max-height:0!important;border:none!important;visibility:hidden!important;opacity:0!important}.mat-mdc-tab-group:not(.mat-background-primary):not(.mat-background-accent) .mat-mdc-tab-header .mat-mdc-tab-label-container{box-shadow:inset 0 -1px var(--angor-border)}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container{margin:0 24px}.mat-mdc-tab-group .mat-mdc-tab-body-content{padding:24px}textarea.mat-mdc-input-element{box-sizing:content-box!important}.mat-toolbar.mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-primary .text-secondary{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-primary .text-hint,.mat-toolbar.mat-primary .text-disabled{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-primary .divider{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-accent .text-secondary{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .text-hint,.mat-toolbar.mat-accent .text-disabled{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .divider{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-warn .text-secondary{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .text-hint,.mat-toolbar.mat-warn .text-disabled{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .divider{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-default)!important;color:#fff}.dark .mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-secondary)!important;color:var(--angor-bg-default)!important}code[class*=language-] .hljs-comment,code[class*=language-] .hljs-quote,pre[class*=language-] .hljs-comment,pre[class*=language-] .hljs-quote{color:#8b9fc1;font-style:italic}code[class*=language-] .hljs-doctag,code[class*=language-] .hljs-keyword,code[class*=language-] .hljs-formula,pre[class*=language-] .hljs-doctag,pre[class*=language-] .hljs-keyword,pre[class*=language-] .hljs-formula{color:#22d3ee}code[class*=language-] .hljs-name,pre[class*=language-] .hljs-name{color:#e879f9}code[class*=language-] .hljs-tag,pre[class*=language-] .hljs-tag{color:#bae6fd}code[class*=language-] .hljs-section,code[class*=language-] .hljs-selector-tag,code[class*=language-] .hljs-deletion,code[class*=language-] .hljs-subst,pre[class*=language-] .hljs-section,pre[class*=language-] .hljs-selector-tag,pre[class*=language-] .hljs-deletion,pre[class*=language-] .hljs-subst{color:#f87f71}code[class*=language-] .hljs-literal,pre[class*=language-] .hljs-literal{color:#36beff}code[class*=language-] .hljs-string,code[class*=language-] .hljs-regexp,code[class*=language-] .hljs-addition,code[class*=language-] .hljs-attribute,code[class*=language-] .hljs-meta-string,pre[class*=language-] .hljs-string,pre[class*=language-] .hljs-regexp,pre[class*=language-] .hljs-addition,pre[class*=language-] .hljs-attribute,pre[class*=language-] .hljs-meta-string{color:#bef264}code[class*=language-] .hljs-built_in,code[class*=language-] .hljs-class .hljs-title,pre[class*=language-] .hljs-built_in,pre[class*=language-] .hljs-class .hljs-title{color:#ffd374}code[class*=language-] .hljs-attr,code[class*=language-] .hljs-variable,code[class*=language-] .hljs-template-variable,code[class*=language-] .hljs-type,code[class*=language-] .hljs-selector-class,code[class*=language-] .hljs-selector-attr,code[class*=language-] .hljs-selector-pseudo,code[class*=language-] .hljs-number,pre[class*=language-] .hljs-attr,pre[class*=language-] .hljs-variable,pre[class*=language-] .hljs-template-variable,pre[class*=language-] .hljs-type,pre[class*=language-] .hljs-selector-class,pre[class*=language-] .hljs-selector-attr,pre[class*=language-] .hljs-selector-pseudo,pre[class*=language-] .hljs-number{color:#22d3ee}code[class*=language-] .hljs-symbol,code[class*=language-] .hljs-bullet,code[class*=language-] .hljs-link,code[class*=language-] .hljs-meta,code[class*=language-] .hljs-selector-id,code[class*=language-] .hljs-title,pre[class*=language-] .hljs-symbol,pre[class*=language-] .hljs-bullet,pre[class*=language-] .hljs-link,pre[class*=language-] .hljs-meta,pre[class*=language-] .hljs-selector-id,pre[class*=language-] .hljs-title{color:#e879f9}code[class*=language-] .hljs-emphasis,pre[class*=language-] .hljs-emphasis{font-style:italic}code[class*=language-] .hljs-strong,pre[class*=language-] .hljs-strong{font-weight:700}code[class*=language-] .hljs-link,pre[class*=language-] .hljs-link{text-decoration:underline}.ps{position:relative}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps.ps--focus>.ps__rail-x,.ps.ps--focus>.ps__rail-y,.ps.ps--scrolling-x>.ps__rail-x,.ps.ps--scrolling-x>.ps__rail-y,.ps.ps--scrolling-y>.ps__rail-x,.ps.ps--scrolling-y>.ps__rail-y{opacity:1}.ps>.ps__rail-x,.ps>.ps__rail-y{z-index:99999}.ps>.ps__rail-x{height:14px;background:transparent!important;transition:none!important}.ps>.ps__rail-x:hover,.ps>.ps__rail-x:focus,.ps>.ps__rail-x.ps--clicking{opacity:1}.ps>.ps__rail-x:hover .ps__thumb-x,.ps>.ps__rail-x:focus .ps__thumb-x,.ps>.ps__rail-x.ps--clicking .ps__thumb-x{height:10px}.ps>.ps__rail-x .ps__thumb-x{background:#00000080;box-shadow:0 0 0 1px #ffffff26;height:6px;transition:height 225ms cubic-bezier(.25,.8,.25,1)}.ps>.ps__rail-y{width:14px;background:transparent!important;transition:none!important;left:auto!important}.ps>.ps__rail-y:hover,.ps>.ps__rail-y:focus,.ps>.ps__rail-y.ps--clicking{opacity:1}.ps>.ps__rail-y:hover .ps__thumb-y,.ps>.ps__rail-y:focus .ps__thumb-y,.ps>.ps__rail-y.ps--clicking .ps__thumb-y{width:10px}.ps>.ps__rail-y .ps__thumb-y{background:#00000080;box-shadow:0 0 0 1px #ffffff26;width:6px;transition:width 225ms cubic-bezier(.25,.8,.25,1)}.ql-toolbar{border-radius:6px 6px 0 0;padding:0!important;--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important}.dark .ql-toolbar{background-color:#0000000d;--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-toolbar .ql-formats{margin:11px 8px!important}.ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:10!important;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-options{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker .ql-picker-label,.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item{--tw-text-opacity: 1;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))}.ql-toolbar .ql-stroke,.ql-toolbar .ql-stroke-mitter{stroke:var(--angor-icon)}.ql-toolbar .ql-fill{fill:var(--angor-icon)}.ql-toolbar button:hover,.ql-toolbar button:focus,.ql-toolbar button.ql-active,.ql-toolbar .ql-picker-label:hover,.ql-toolbar .ql-picker-label.ql-active,.ql-toolbar .ql-picker-item:hover,.ql-toolbar .ql-picker-item.ql-selected{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.ql-toolbar button:hover .ql-stroke,.ql-toolbar button:hover .ql-stroke-mitter,.ql-toolbar button:focus .ql-stroke,.ql-toolbar button:focus .ql-stroke-mitter,.ql-toolbar button.ql-active .ql-stroke,.ql-toolbar button.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-toolbar .ql-picker-label:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-toolbar .ql-picker-label.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-toolbar .ql-picker-item:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-mitter{stroke:var(--angor-primary)!important}.ql-toolbar button:hover .ql-fill,.ql-toolbar button:focus .ql-fill,.ql-toolbar button.ql-active .ql-fill,.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-toolbar .ql-picker-item.ql-selected .ql-fill{fill:var(--angor-primary)!important}.ql-container{overflow:auto;min-height:160px;max-height:400px;border-radius:0 0 6px 6px;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark .ql-container{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-editor{--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity))}.ql-container .ql-editor.ql-blank:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.ql-container .ql-tooltip{border-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));padding:.25rem .75rem;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark .ql-container .ql-tooltip{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ql-container .ql-tooltip:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.ql-container .ql-tooltip .ql-action,.ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark .ql-container .ql-tooltip .ql-action,.dark .ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.ql-container .ql-tooltip .ql-action:after{border-right-width:1px!important;--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.dark .ql-container .ql-tooltip .ql-action:after{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-tooltip input{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important;border-radius:.125rem!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark .ql-container .ql-tooltip input{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:inline-block;color:#222427;border:1px solid #d9d9d9;border-radius:15px;background:#fff}.emoji-mart .emoji-mart-emoji{padding:6px}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;color:#858585;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;margin:0;box-shadow:none;background:none;border:none}.emoji-mart-anchor:focus{outline:0}.emoji-mart-anchor:hover,.emoji-mart-anchor:focus,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg,.emoji-mart-anchors img{fill:currentColor;height:18px}.emoji-mart-scroll{overflow-y:scroll;height:270px;padding:0 6px 6px;will-change:transform}.emoji-mart-search{margin-top:6px;padding:0 6px;position:relative}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:5px 25px 6px 10px;border-radius:5px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search input,.emoji-mart-search input::-webkit-search-decoration,.emoji-mart-search input::-webkit-search-cancel-button,.emoji-mart-search input::-webkit-search-results-button,.emoji-mart-search input::-webkit-search-results-decoration{-webkit-appearance:none}.emoji-mart-search-icon{position:absolute;top:6px;right:11px;z-index:2;padding:2px 5px 1px;border:none;background:none}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%}.emoji-mart-category-label{z-index:2;position:relative;position:sticky;top:0}.emoji-mart-category-label span{display:block;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-category-list{margin:0;padding:0}.emoji-mart-category-list li{list-style:none;margin:0;padding:0;display:inline-block}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0;margin:0;padding:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji","Android Emoji"}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-skins.custom{right:10px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:26px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:15px;background-color:#fff}.emoji-mart-skin-swatches.custom{font-size:0;border:none;background-color:#fff}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch.selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch.selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin-swatch.custom{display:inline-block;width:0;height:38px;overflow:hidden;vertical-align:middle;transition-property:width,height;transition-duration:.125s;transition-timing-function:ease-out;cursor:default}.emoji-mart-skin-swatch.custom.selected{position:relative;width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatch.custom.selected:after{content:"";width:0;height:0}.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover{background-color:#f4f4f4;border-radius:10%}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom{width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after{opacity:.75}.emoji-mart-skin-text.opened{display:inline-block;vertical-align:middle;text-align:left;color:#888;font-size:11px;padding:5px 2px;width:95px;height:40px;border-radius:10%;background-color:#fff}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.emoji-mart-dark{color:#e5eef0;border-color:#083b46;border-width:2px;border-radius:15px;background-color:#022229}.emoji-mart-dark .emoji-mart-bar{border-color:#083b46}.emoji-mart-dark .emoji-mart-search input{color:#e5eef0;border-color:#083b46;background-color:#07343e}.emoji-mart-dark .emoji-mart-search-icon svg{fill:#e5eef0}.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:#052b33}.emoji-mart-dark .emoji-mart-category-label span{background-color:#032128;color:#e5eef0}.emoji-mart-dark .emoji-mart-skin-swatches{border-color:#083b46;background-color:#022229}.emoji-mart-dark .emoji-mart-anchor:hover,.emoji-mart-dark .emoji-mart-anchor:focus,.emoji-mart-dark .emoji-mart-anchor-selected{color:#9bbac3}body{overflow-x:hidden}.overscroll-y-contain{overflow:hidden!important}.emoji-picker-container{position:absolute;bottom:60px;left:0;z-index:100000}input,textarea,select,button{font-size:16px}.large-font{font-size:3rem}.qrcode{display:flex;justify-content:center}.qrcode-image{width:100%!important}.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)}}.pointer-events-none{pointer-events:none!important}.visible{visibility:visible!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.\!absolute,.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:0!important}.inset-auto{inset:auto!important}.-left-1{left:-.25rem!important}.-right-1{right:-.25rem!important}.-right-16{right:-4rem!important}.-top-16{top:-4rem!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.right-2{right:.5rem!important}.right-5{right:1.25rem!important}.top-0{top:0!important}.top-1\/2{top:50%!important}.top-2{top:.5rem!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-49{z-index:49!important}.z-90{z-index:90!important}.z-99{z-index:99!important}.z-999{z-index:999!important}.col-span-2{grid-column:span 2 / span 2!important}.m-0{margin:0!important}.m-0\.5{margin:.125rem!important}.m-8{margin:2rem!important}.m-auto{margin:auto!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}.mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.mx-4{margin-left:1rem!important;margin-right:1rem!important}.mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.my-5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.my-px{margin-top:1px!important;margin-bottom:1px!important}.-mb-px{margin-bottom:-1px!important}.-ml-0\.5{margin-left:-.125rem!important}.-ml-1{margin-left:-.25rem!important}.-ml-2{margin-left:-.5rem!important}.-ml-3{margin-left:-.75rem!important}.-ml-px{margin-left:-1px!important}.-mr-4{margin-right:-1rem!important}.-mr-px{margin-right:-1px!important}.-mt-12{margin-top:-3rem!important}.-mt-16{margin-top:-4rem!important}.-mt-26{margin-top:-6.5rem!important}.-mt-5{margin-top:-1.25rem!important}.-mt-px{margin-top:-1px!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mb-6{margin-bottom:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-px{margin-bottom:1px!important}.ml-0\.5{margin-left:.125rem!important}.ml-1{margin-left:.25rem!important}.ml-1\.5{margin-left:.375rem!important}.ml-2{margin-left:.5rem!important}.ml-2\.5{margin-left:.625rem!important}.ml-3{margin-left:.75rem!important}.ml-4{margin-left:1rem!important}.ml-6{margin-left:1.5rem!important}.ml-auto{margin-left:auto!important}.mr-1{margin-right:.25rem!important}.mr-1\.5{margin-right:.375rem!important}.mr-2{margin-right:.5rem!important}.mr-3{margin-right:.75rem!important}.mr-4{margin-right:1rem!important}.mr-6{margin-right:1.5rem!important}.mt-0\.5{margin-top:.125rem!important}.mt-1{margin-top:.25rem!important}.mt-1\.5{margin-top:.375rem!important}.mt-10{margin-top:2.5rem!important}.mt-12{margin-top:3rem!important}.mt-2{margin-top:.5rem!important}.mt-2\.5{margin-top:.625rem!important}.mt-3{margin-top:.75rem!important}.mt-4{margin-top:1rem!important}.mt-5{margin-top:1.25rem!important}.mt-6{margin-top:1.5rem!important}.mt-8{margin-top:2rem!important}.mt-px{margin-top:1px!important}.line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-1{height:.25rem!important}.h-1\.5{height:.375rem!important}.h-10{height:2.5rem!important}.h-11{height:2.75rem!important}.h-14{height:3.5rem!important}.h-16{height:4rem!important}.h-18{height:4.5rem!important}.h-2{height:.5rem!important}.h-2\.5{height:.625rem!important}.h-20{height:5rem!important}.h-24{height:6rem!important}.h-3{height:.75rem!important}.h-32{height:8rem!important}.h-4{height:1rem!important}.h-40{height:10rem!important}.h-6{height:1.5rem!important}.h-7{height:1.75rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.max-h-120{max-height:30rem!important}.max-h-128{max-height:32rem!important}.max-h-140{max-height:35rem!important}.max-h-20{max-height:5rem!important}.min-h-20{min-height:5rem!important}.min-h-32{min-height:8rem!important}.min-h-6{min-height:1.5rem!important}.w-1{width:.25rem!important}.w-1\.5{width:.375rem!important}.w-1\/2{width:50%!important}.w-10{width:2.5rem!important}.w-14{width:3.5rem!important}.w-16{width:4rem!important}.w-2{width:.5rem!important}.w-24{width:6rem!important}.w-3{width:.75rem!important}.w-30{width:7.5rem!important}.w-32{width:8rem!important}.w-4{width:1rem!important}.w-40{width:10rem!important}.w-5{width:1.25rem!important}.w-50{width:12.5rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.min-w-0{min-width:0px!important}.min-w-32{min-width:8rem!important}.min-w-4{min-width:1rem!important}.min-w-screen{min-width:100vw!important}.max-w-140{max-width:35rem!important}.max-w-2xl{max-width:42rem!important}.max-w-3\/4{max-width:75%!important}.max-w-3xl{max-width:48rem!important}.max-w-4xl{max-width:56rem!important}.max-w-5xl{max-width:64rem!important}.max-w-60{max-width:15rem!important}.max-w-80{max-width:20rem!important}.max-w-fit{max-width:fit-content!important}.max-w-full{max-width:100%!important}.max-w-md{max-width:28rem!important}.max-w-sm{max-width:24rem!important}.max-w-xs{max-width:20rem!important}.flex-0{flex:0 0 auto!important}.flex-1{flex:1 1 0%!important}.flex-auto{flex:1 1 auto!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-full{--tw-translate-x: -100% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-0{--tw-translate-x: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate: 180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-scale-x-1{--tw-scale-x: -1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.flex-row{flex-direction:row!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.items-baseline{align-items:baseline!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.justify-items-start{justify-items:start!important}.gap-3{gap:.75rem!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.gap-y-8{row-gap:2rem!important}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.125rem * var(--tw-space-x-reverse))!important;margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.75rem * var(--tw-space-x-reverse))!important;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1rem * var(--tw-space-x-reverse))!important;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))!important}.self-start{align-self:flex-start!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overscroll-y-contain{overscroll-behavior-y:contain!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.break-words{overflow-wrap:break-word!important}.rounded{border-radius:.25rem!important}.rounded-2xl{border-radius:1rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-sm{border-radius:.125rem!important}.rounded-b{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.border{border-width:1px!important}.border-2{border-width:2px!important}.border-b{border-bottom-width:1px!important}.border-l{border-left-width:1px!important}.border-r{border-right-width:1px!important}.border-t{border-top-width:1px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-gray-300\/70{border-color:#6b98a4b3!important}.border-gray-500{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important}.border-primary{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.border-slate-300{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.border-warn{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.border-r-gray-300{--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-r-gray-500{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-opacity-100{--tw-border-opacity: 1 !important}.bg-\[\#086c81\]{--tw-bg-opacity: 1 !important;background-color:rgb(8 108 129 / var(--tw-bg-opacity, 1))!important}.bg-accent-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-accent-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-amber-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))!important}.bg-amber-200{--tw-bg-opacity: 1 !important;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/10{background-color:#0000001a!important}.bg-blue-100{--tw-bg-opacity: 1 !important;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-200{--tw-bg-opacity: 1 !important;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-gray-100{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(107 152 164 / var(--tw-bg-opacity, 1))!important}.bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.bg-gray-500{--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.bg-gray-700{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.bg-gray-800{--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.bg-green-100{--tw-bg-opacity: 1 !important;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))!important}.bg-green-200{--tw-bg-opacity: 1 !important;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))!important}.bg-green-50{--tw-bg-opacity: 1 !important;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))!important}.bg-primary{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-red-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))!important}.bg-red-200{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))!important}.bg-red-50{--tw-bg-opacity: 1 !important;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))!important}.bg-teal-600{--tw-bg-opacity: 1 !important;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))!important}.bg-transparent{background-color:transparent!important}.bg-warn-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-opacity-5{--tw-bg-opacity: .05 !important}.bg-opacity-60{--tw-bg-opacity: .6 !important}.bg-opacity-90{--tw-bg-opacity: .9 !important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-16{padding:4rem!important}.p-2{padding:.5rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-1\.5{padding-left:.375rem!important;padding-right:.375rem!important}.px-16{padding-left:4rem!important;padding-right:4rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-12{padding-top:3rem!important;padding-bottom:3rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.py-4{padding-top:1rem!important;padding-bottom:1rem!important}.py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-8{padding-top:2rem!important;padding-bottom:2rem!important}.pb-12{padding-bottom:3rem!important}.pb-28{padding-bottom:7rem!important}.pb-6{padding-bottom:1.5rem!important}.pl-2{padding-left:.5rem!important}.pl-5{padding-left:1.25rem!important}.pl-6{padding-left:1.5rem!important}.pr-4{padding-right:1rem!important}.pr-6{padding-right:1.5rem!important}.pt-4{padding-top:1rem!important}.pt-6{padding-top:1.5rem!important}.pt-8{padding-top:2rem!important}.pt-9{padding-top:2.25rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.25rem!important}.text-3xl{font-size:1.5rem!important}.text-4xl{font-size:2rem!important}.text-7xl{font-size:3rem!important}.text-8xl{font-size:4rem!important}.text-base{font-size:.875rem!important}.text-lg{font-size:1rem!important}.text-md{font-size:.8125rem!important}.text-sm{font-size:.75rem!important}.text-xl{font-size:1.125rem!important}.text-xs{font-size:.625rem!important}.font-bold{font-weight:700!important}.font-extrabold{font-weight:800!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.leading-10{line-height:2.5rem!important}.leading-5{line-height:1.25rem!important}.leading-6{line-height:1.5rem!important}.leading-none{line-height:1!important}.leading-tight{line-height:1.25!important}.tracking-tight{letter-spacing:-.025em!important}.text-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.text-accent-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.text-accent-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))!important}.text-amber-50{--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.text-amber-500{--tw-text-opacity: 1 !important;color:rgb(245 158 11 / var(--tw-text-opacity, 1))!important}.text-blue-50{--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.text-current{color:currentColor!important}.text-gray-100{--tw-text-opacity: 1 !important;color:rgb(203 221 225 / var(--tw-text-opacity, 1))!important}.text-gray-400{--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.text-gray-50{--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.text-gray-500{--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(5 43 51 / var(--tw-text-opacity, 1))!important}.text-gray-800{--tw-text-opacity: 1 !important;color:rgb(3 33 40 / var(--tw-text-opacity, 1))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(2 34 41 / var(--tw-text-opacity, 1))!important}.text-green-50{--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.text-green-500{--tw-text-opacity: 1 !important;color:rgb(34 197 94 / var(--tw-text-opacity, 1))!important}.text-green-700{--tw-text-opacity: 1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1))!important}.text-indigo-50{--tw-text-opacity: 1 !important;color:rgb(238 242 255 / var(--tw-text-opacity, 1))!important}.text-on-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.text-on-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.text-on-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.text-orange-500{--tw-text-opacity: 1 !important;color:rgb(249 115 22 / var(--tw-text-opacity, 1))!important}.text-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.text-primary-400{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.text-primary-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.text-primary-500{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.text-primary-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.text-primary-700{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))!important}.text-red-50{--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.text-red-700{--tw-text-opacity: 1 !important;color:rgb(185 28 28 / var(--tw-text-opacity, 1))!important}.text-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.text-warn-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.text-warn-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-opacity-12{--tw-text-opacity: .12 !important}.text-opacity-38{--tw-text-opacity: .38 !important}.text-opacity-60{--tw-text-opacity: .6 !important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.opacity-100{opacity:1!important}.opacity-25{opacity:.25!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-inset{--tw-ring-inset: inset !important}.ring-primary{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-rgb), var(--tw-ring-opacity, 1)) !important}.ring-primary-50{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-50-rgb), var(--tw-ring-opacity, 1)) !important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-shadow{transition-property:box-shadow!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-150{transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.duration-400{transition-duration:.4s!important}.ease-drawer{transition-timing-function:cubic-bezier(.25,.8,.25,1)!important}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.icon-size-24{width:6rem!important;height:6rem!important;min-width:6rem!important;min-height:6rem!important;font-size:6rem!important;line-height:6rem!important}.icon-size-24 svg{width:6rem!important;height:6rem!important}.icon-size-4{width:1rem!important;height:1rem!important;min-width:1rem!important;min-height:1rem!important;font-size:1rem!important;line-height:1rem!important}.icon-size-4 svg{width:1rem!important;height:1rem!important}.icon-size-5{width:1.25rem!important;height:1.25rem!important;min-width:1.25rem!important;min-height:1.25rem!important;font-size:1.25rem!important;line-height:1.25rem!important}.icon-size-5 svg{width:1.25rem!important;height:1.25rem!important}.icon-size-6{width:1.5rem!important;height:1.5rem!important;min-width:1.5rem!important;min-height:1.5rem!important;font-size:1.5rem!important;line-height:1.5rem!important}.icon-size-6 svg{width:1.5rem!important;height:1.5rem!important}.icon-size-7{width:1.75rem!important;height:1.75rem!important;min-width:1.75rem!important;min-height:1.75rem!important;font-size:1.75rem!important;line-height:1.75rem!important}.icon-size-7 svg{width:1.75rem!important;height:1.75rem!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.hover\:underline:hover{text-decoration-line:underline!important}.hover\:opacity-80:hover{opacity:.8!important}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(8 59 70 / var(--tw-ring-opacity, 1)) !important}.disabled\:bg-gray-400:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.group:hover .group-hover\:text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:opacity-100{opacity:1!important}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:flex:is(.dark *){display:flex!important}.dark\:hidden:is(.dark *){display:none!important}.dark\:border-b:is(.dark *){border-bottom-width:1px!important}.dark\:border-l:is(.dark *){border-left-width:1px!important}.dark\:border-t:is(.dark *){border-top-width:1px!important}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.dark\:border-primary:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.dark\:border-slate-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.dark\:border-warn:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.dark\:bg-accent-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))!important}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-500-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-800-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))!important}.dark\:bg-transparent:is(.dark *){background-color:transparent!important}.dark\:bg-warn-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark\:bg-opacity-10:is(.dark *){--tw-bg-opacity: .1 !important}.dark\:bg-opacity-5:is(.dark *){--tw-bg-opacity: .05 !important}.dark\:text-accent-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-amber-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.dark\:text-blue-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(155 186 195 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(107 152 164 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.dark\:text-green-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.dark\:text-primary-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-500:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-red-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.dark\:text-warn-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-white:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.dark\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:ring-gray-900:is(.dark *){--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(2 34 41 / var(--tw-ring-opacity, 1)) !important}.dark\:hover\:bg-black:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-opacity-5:hover:is(.dark *){--tw-bg-opacity: .05 !important}@media (min-width: 600px){.sm\:static{position:static!important}.sm\:absolute{position:absolute!important}.sm\:inset-0{inset:0!important}.sm\:inset-auto{inset:auto!important}.sm\:right-7{right:1.75rem!important}.sm\:col-span-4{grid-column:span 4 / span 4!important}.sm\:mx-0{margin-left:0!important;margin-right:0!important}.sm\:mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.sm\:mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}.sm\:mx-8{margin-left:2rem!important;margin-right:2rem!important}.sm\:my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.sm\:-mr-4{margin-right:-1rem!important}.sm\:-mt-24{margin-top:-6rem!important}.sm\:mb-6{margin-bottom:1.5rem!important}.sm\:ml-0{margin-left:0!important}.sm\:ml-8{margin-left:2rem!important}.sm\:ml-auto{margin-left:auto!important}.sm\:mr-4{margin-right:1rem!important}.sm\:mt-0{margin-top:0!important}.sm\:mt-20{margin-top:5rem!important}.sm\:mt-24{margin-top:6rem!important}.sm\:mt-8{margin-top:2rem!important}.sm\:flex{display:flex!important}.sm\:inline-flex{display:inline-flex!important}.sm\:hidden{display:none!important}.sm\:h-20{height:5rem!important}.sm\:h-full{height:100%!important}.sm\:max-h-120{max-height:30rem!important}.sm\:w-100{width:25rem!important}.sm\:w-80{width:20rem!important}.sm\:w-90{width:22.5rem!important}.sm\:w-96{width:24rem!important}.sm\:w-auto{width:auto!important}.sm\:min-w-100{min-width:25rem!important}.sm\:min-w-90{min-width:22.5rem!important}.sm\:max-w-120{max-width:30rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-none{max-width:none!important}.sm\:-translate-x-96{--tw-translate-x: -24rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sm\:flex-row{flex-direction:row!important}.sm\:items-start{align-items:flex-start!important}.sm\:items-center{align-items:center!important}.sm\:justify-start{justify-content:flex-start!important}.sm\:justify-end{justify-content:flex-end!important}.sm\:justify-center{justify-content:center!important}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.sm\:overflow-hidden{overflow:hidden!important}.sm\:rounded-2xl{border-radius:1rem!important}.sm\:bg-transparent{background-color:transparent!important}.sm\:p-10{padding:2.5rem!important}.sm\:p-12{padding:3rem!important}.sm\:p-16{padding:4rem!important}.sm\:p-8{padding:2rem!important}.sm\:px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.sm\:px-16{padding-left:4rem!important;padding-right:4rem!important}.sm\:px-18{padding-left:4.5rem!important;padding-right:4.5rem!important}.sm\:px-2{padding-left:.5rem!important;padding-right:.5rem!important}.sm\:px-8{padding-left:2rem!important;padding-right:2rem!important}.sm\:pb-10{padding-bottom:2.5rem!important}.sm\:pb-48{padding-bottom:12rem!important}.sm\:pb-8{padding-bottom:2rem!important}.sm\:pr-8{padding-right:2rem!important}.sm\:pt-20{padding-top:5rem!important}.sm\:text-left{text-align:left!important}.sm\:text-2xl{font-size:1.25rem!important}.sm\:text-4xl{font-size:2rem!important}.sm\:text-7xl{font-size:3rem!important}.sm\:opacity-0{opacity:0!important}.sm\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.group:hover .sm\:group-hover\:opacity-100{opacity:1!important}}@media (min-width: 960px){.md\:-ml-2{margin-left:-.5rem!important}.md\:block{display:block!important}.md\:flex{display:flex!important}.md\:h-full{height:100%!important}.md\:w-1\/2{width:50%!important}.md\:max-w-4xl{max-width:56rem!important}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.md\:items-start{align-items:flex-start!important}.md\:items-center{align-items:center!important}.md\:justify-start{justify-content:flex-start!important}.md\:justify-end{justify-content:flex-end!important}.md\:gap-x-6{column-gap:1.5rem!important}.md\:gap-y-0{row-gap:0px!important}.md\:rounded-none{border-radius:0!important}.md\:p-16{padding:4rem!important}.md\:p-8{padding:2rem!important}.md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:pb-12{padding-bottom:3rem!important}.md\:text-7xl{font-size:3rem!important}.md\:text-xl{font-size:1.125rem!important}.md\:leading-none{line-height:1!important}.md\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media (min-width: 1280px){.lg\:static{position:static!important}.lg\:sticky{position:sticky!important}.lg\:inset-auto{inset:auto!important}.lg\:left-full{left:100%!important}.lg\:right-0{right:0!important}.lg\:right-16{right:4rem!important}.lg\:m-0{margin:0!important}.lg\:-mt-22{margin-top:-5.5rem!important}.lg\:ml-0{margin-left:0!important}.lg\:ml-8{margin-left:2rem!important}.lg\:ml-auto{margin-left:auto!important}.lg\:mr-8{margin-right:2rem!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:h-18{height:4.5rem!important}.lg\:h-80{height:20rem!important}.lg\:h-screen{height:100vh!important}.lg\:w-16{width:4rem!important}.lg\:min-w-100{min-width:25rem!important}.lg\:max-w-100,.lg\:max-w-\[25rem\]{max-width:25rem!important}.lg\:-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lg\:flex-row{flex-direction:row!important}.lg\:items-start{align-items:flex-start!important}.lg\:overflow-hidden{overflow:hidden!important}.lg\:border-l{border-left-width:1px!important}.lg\:border-r{border-right-width:1px!important}.lg\:p-12{padding:3rem!important}.lg\:px-28{padding-left:7rem!important;padding-right:7rem!important}.lg\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.lg\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media print{.print\:hidden{display:none!important}} + */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"\2022"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"\2611"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"\2610"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}.example-viewer{display:flex;flex-direction:column;margin:32px 0;overflow:hidden;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));border-radius:1rem;--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.example-viewer .title{display:flex;align-items:center;justify-content:space-between;height:88px;min-height:88px;max-height:88px;padding:0 40px}.example-viewer .title h6{font-weight:700}.example-viewer .title .controls{display:flex;align-items:center}.example-viewer .title .controls>*+*{margin-left:8px}.example-viewer mat-tab-group .mat-tab-body-content .angor-highlight pre{margin:0;border-radius:0}input,textarea{background:transparent}input::placeholder,textarea::placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::placeholder,.mat-toolbar.mat-primary textarea::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::placeholder,.mat-toolbar.mat-accent textarea::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::placeholder,.mat-toolbar.mat-warn textarea::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-moz-placeholder,textarea::-moz-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-moz-placeholder,.mat-toolbar.mat-primary textarea::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-moz-placeholder,.mat-toolbar.mat-accent textarea::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-moz-placeholder,.mat-toolbar.mat-warn textarea::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input::-webkit-input-placeholder,.mat-toolbar.mat-primary textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input::-webkit-input-placeholder,.mat-toolbar.mat-accent textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input::-webkit-input-placeholder,.mat-toolbar.mat-warn textarea::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-ms-input-placeholder,textarea:-ms-input-placeholder{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary input:-ms-input-placeholder,.mat-toolbar.mat-primary textarea:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent input:-ms-input-placeholder,.mat-toolbar.mat-accent textarea:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn input:-ms-input-placeholder,.mat-toolbar.mat-warn textarea:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active,textarea:-webkit-autofill,textarea:-webkit-autofill:hover,textarea:-webkit-autofill:focus,textarea:-webkit-autofill:active{-webkit-background-clip:text;-webkit-transition:background-color 5000s!important;transition:background-color 5000s!important}.dark input:-webkit-autofill,.dark input:-webkit-autofill:hover,.dark input:-webkit-autofill:focus,.dark input:-webkit-autofill:active,.dark textarea:-webkit-autofill,.dark textarea:-webkit-autofill:hover,.dark textarea:-webkit-autofill:focus,.dark textarea:-webkit-autofill:active{-webkit-text-fill-color:rgba(255,255,255,.87)}input [data-autocompleted],textarea [data-autocompleted]{background-color:transparent!important}.angor-backdrop-on-mobile{background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .6 !important}@media (min-width: 600px){.angor-backdrop-on-mobile{background-color:transparent!important}}*[class*=mat-],*[class*=mat-mdc-],*[class*=mat-] *,*[class*=mat-mdc-] *{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important}.mat-accordion .mat-expansion-panel{margin-bottom:24px;border-radius:8px!important;transition:box-shadow 225ms cubic-bezier(.4,0,.2,1);--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:last-child{margin-bottom:0}.mat-accordion .mat-expansion-panel.mat-expanded,.mat-accordion .mat-expansion-panel:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-accordion .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:transparent!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header{font-size:14px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{margin-right:28px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px}.mat-accordion .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator:after{border-color:currentColor!important}.mat-accordion .mat-expansion-panel .mat-expansion-panel-body{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button,.mat-mdc-icon-button,.mat-mdc-fab,.mat-mdc-mini-fab{height:40px;min-height:40px;max-height:40px;line-height:1!important}.mat-mdc-button.angor-mat-button-large,.mat-mdc-raised-button.angor-mat-button-large,.mat-mdc-outlined-button.angor-mat-button-large,.mat-mdc-unelevated-button.angor-mat-button-large,.mat-mdc-icon-button.angor-mat-button-large,.mat-mdc-fab.angor-mat-button-large,.mat-mdc-mini-fab.angor-mat-button-large{height:48px;min-height:48px;max-height:48px}.mat-mdc-button[disabled=true] .mat-icon,.mat-mdc-raised-button[disabled=true] .mat-icon,.mat-mdc-outlined-button[disabled=true] .mat-icon,.mat-mdc-unelevated-button[disabled=true] .mat-icon,.mat-mdc-icon-button[disabled=true] .mat-icon,.mat-mdc-fab[disabled=true] .mat-icon,.mat-mdc-mini-fab[disabled=true] .mat-icon{opacity:.38!important}.mat-mdc-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:40px!important;padding:0!important}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{height:auto!important}.mat-mdc-fab{max-height:56px;border-radius:16px!important}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:16px!important}.mat-mdc-mini-fab{border-radius:12px!important}.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:12px!important}.mat-mdc-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-mdc-unelevated-button{padding:0 20px!important;border-radius:9999px!important}.mat-mdc-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon{margin-left:0!important;margin-right:0!important}.mat-mdc-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-raised-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-outlined-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-unelevated-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-icon-button .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle,.mat-mdc-mini-fab .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-container circle{stroke:currentColor!important;animation-duration:6s}.mat-mdc-raised-button,.mat-mdc-unelevated-button,.mat-mdc-fab,.mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #3b7586 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.dark .mat-mdc-raised-button,.dark .mat-mdc-unelevated-button,.dark .mat-mdc-fab,.dark .mat-mdc-mini-fab{--mat-mdc-button-persistent-ripple-color: #000 !important;--mat-mdc-button-ripple-color: rgba(0, 0, 0, .1) !important}.mat-mdc-raised-button .mat-icon,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-fab .mat-icon,.mat-mdc-mini-fab .mat-icon{color:currentColor!important}.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:#0000001a!important}.mat-mdc-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-primary .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-accent .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-icon-button:not([disabled=true]).mat-warn .mat-icon,.mat-mdc-outlined-button:not([disabled=true]).mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]){--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button:not([disabled=true]):is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-outlined-button[disabled=true]{border-color:#6b98a4b3!important}.mat-mdc-outlined-button[disabled=true]:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.mdc-button .mdc-button__label{white-space:nowrap}.mat-button-toggle-group{border:none!important}.mat-button-toggle-group>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.mat-button-toggle-group.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{background-clip:padding-box}.mat-button-toggle-group .mat-button-toggle{border-radius:9999px;overflow:hidden;border:none!important;font-weight:500}.mat-button-toggle-group .mat-button-toggle.mat-button-toggle-checked .mat-button-toggle-label-content{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{padding:0 20px;line-height:40px!important;--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-button-toggle-group .mat-button-toggle .mat-button-toggle-label-content{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-checkbox{display:inline-flex!important}.mat-mdc-checkbox .mdc-form-field{padding-right:12px}.mdc-checkbox__native-control{opacity:0!important}.mat-mdc-chip{font-weight:500!important}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:16px!important;padding:24px}.mat-drawer-backdrop.mat-drawer-shown{background-color:#0009!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-disabled{opacity:.7!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-form-field-invalid .mat-mdc-select .mat-mdc-select-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill:hover .mat-mdc-form-field-focus-overlay,.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused .mat-mdc-form-field-focus-overlay{opacity:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-focused:not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{top:auto;margin-top:0;margin-bottom:0;padding-top:0;padding-right:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right -7px center;background-size:24px}.dark .mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2397a6ba' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E")}.mat-mdc-form-field.mat-form-field-appearance-fill.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix:after{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{padding:0;border-radius:6px;border-width:1px;border-style:solid;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important;--tw-bg-opacity: .05 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--no-label){margin-top:24px;overflow:visible}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-focus-overlay{border-radius:6px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex{position:relative;display:flex;align-items:stretch;border-radius:6px;padding:0 16px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 4px 0 -10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-left:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px;padding:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:10px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-right:-8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{display:inline-flex;align-items:center;justify-content:center;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:40px;min-width:40px;height:40px;min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select-value,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-icon,.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button:not([disabled]),.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select-value{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon{width:1.5rem;height:1.5rem;min-width:1.5rem;min-height:1.5rem;font-size:1.5rem;line-height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle-default-icon svg,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-datepicker-toggle-default-icon svg{width:1.5rem;height:1.5rem}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-value{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select:focus .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{border-top-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger{display:flex;align-items:center}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{display:flex;max-width:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value mat-mdc-select-trigger .mat-icon{margin:0!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper{display:flex;align-items:center;transform:none;margin-left:4px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{min-height:0;--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{position:static;display:flex;align-items:center;width:88px;min-height:48px;padding:0;border:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-floating-label{top:-25px!important;left:0!important;width:100%!important;transform:none!important;pointer-events:auto;font-weight:500;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:12px 0;padding:0 6px 0 0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix .mat-mdc-chip-set{width:100%;margin:0 -8px}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper .mdc-line-ripple{display:none}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper{font-size:12px;font-weight:500}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-error-wrapper{padding:0}.mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-form-field.mat-form-field-appearance-fill .mat-mdc-form-field-subscript-wrapper .mat-mdc-form-field-hint{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:flex-start;padding-top:14px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:24px 0 0 24px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 2px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:4px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 24px 24px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 2px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:4px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix .mat-mdc-icon-button{width:32px!important;min-width:32px;height:32px;min-height:32px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin-left:-6px;margin-right:12px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin-left:12px;margin-right:-6px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{min-height:40px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix textarea.mat-mdc-input-element{margin:8px 0}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{padding-top:10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded .mat-mdc-text-field-wrapper{border-radius:20px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{border-radius:20px 0 0 20px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-dense.angor-mat-rounded.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{border-radius:0 20px 20px 0!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix{align-self:stretch!important;margin:0 16px 0 -16px!important;padding-left:16px!important;border-radius:6px 0 0 6px;border-right-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-icon{margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-icon-button{margin:0 6px 0 -10px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-mdc-select{margin-right:12px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>.mat-datepicker-toggle{margin-right:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-right:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-self:stretch!important;margin:0 -16px 0 16px!important;padding-right:16px!important;border-radius:0 6px 6px 0;border-left-width:1px;border-style:solid}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-icon,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-icon{margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-icon-button,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-icon-button{margin:0 -10px 0 6px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-mdc-select,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-mdc-select{margin:0 -4px 0 16px!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>.mat-datepicker-toggle,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>.mat-datepicker-toggle{margin-left:8px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix>*:not(.mat-icon):not(.mat-mdc-icon-button):not(.mat-mdc-select):not(.mat-datepicker-toggle){margin-left:16px}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-bg-default-rgb),var(--tw-bg-opacity))!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-prefix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-icon-suffix,.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-emphasized-affix:has(textarea.mat-mdc-input-element) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-text-suffix{align-items:flex-start}.mat-mdc-form-field.mat-form-field-appearance-fill.angor-mat-bold .mat-mdc-text-field-wrapper{border-width:2px!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--angor-warn)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-primary .mdc-notched-outline__trailing{border-color:var(--angor-primary)!important}.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline.mat-focused:not(.mat-form-field-invalid).mat-accent .mdc-notched-outline__trailing{border-color:var(--angor-accent)!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch,.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__leading:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch:is(.dark *),.mat-mdc-form-field.mat-form-field-appearance-outline:not(.mat-focused):not(.mat-form-field-invalid) .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__trailing:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.mat-mdc-form-field.mat-form-field-appearance-outline .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mdc-notched-outline .mdc-notched-outline__notch{border-right-style:none!important}.mat-icon{display:inline-flex!important;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;font-size:24px;line-height:24px;-webkit-appearance:none!important}.mat-mdc-input-element::placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-moz-placeholder{-moz-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-moz-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element::-webkit-input-placeholder{-webkit-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element::-webkit-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-input-element:-ms-input-placeholder{-ms-transition:none!important;transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-input-element:-ms-input-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-form-field-invalid .mat-mdc-input-element::placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-moz-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element::-webkit-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-form-field-invalid .mat-mdc-input-element:-ms-input-placeholder{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-mdc-menu-panel{min-width:144px!important}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center;padding-right:16px}.mat-mdc-menu-panel .mat-mdc-menu-content .mat-mdc-menu-item .mat-icon-no-color{--tw-text-opacity: 1;color:rgba(var(--angor-mat-icon-rgb),var(--tw-text-opacity))}.mat-mdc-menu-panel .mat-mdc-menu-content mat-divider{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container{padding:8px 16px;justify-content:space-between}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container{justify-content:normal}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size{align-items:center;min-height:40px;margin:8px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:none;margin-right:12px}@media (min-width: 600px){.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-label{display:block}}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select{margin:0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper{padding:0 10px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-page-size .mat-mdc-paginator-page-size-select .mat-mdc-text-field-wrapper .mat-form-field-flex{min-height:32px}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions{margin:8px 0}.mat-mdc-paginator .mat-mdc-paginator-container .mat-mdc-paginator-range-actions .mat-mdc-paginator-range-label{margin-right:16px}.mat-mdc-select{display:inline-flex!important}.mat-mdc-select .mat-mdc-select-placeholder{transition:none!important;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-placeholder{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value{position:relative;display:flex;max-width:none}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text{display:inline-flex}.mat-mdc-select .mat-mdc-select-trigger .mat-mdc-select-value .mat-mdc-select-value-text>*{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mat-mdc-select .mat-mdc-select-arrow-wrapper{transform:translateY(0)!important}.mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{margin:0 0 0 8px;--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))!important}.mat-toolbar.mat-primary .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .mat-mdc-select .mat-mdc-select-arrow-wrapper .mat-mdc-select-arrow{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#fff!important}.dark .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:#000!important}.mat-step-icon .mat-icon{color:currentColor!important}.mat-step-label,.mat-step-label-selected{font-weight:500!important}.mat-mdc-table .mdc-data-table__row:not(.mdc-data-table__row--selected):hover{background:none!important}.mat-mdc-tab-group.angor-mat-no-header .mat-mdc-tab-header{height:0!important;max-height:0!important;border:none!important;visibility:hidden!important;opacity:0!important}.mat-mdc-tab-group:not(.mat-background-primary):not(.mat-background-accent) .mat-mdc-tab-header .mat-mdc-tab-label-container{box-shadow:inset 0 -1px var(--angor-border)}.mat-mdc-tab-group .mat-mdc-tab-header .mat-mdc-tab-label-container{margin:0 24px}.mat-mdc-tab-group .mat-mdc-tab-body-content{padding:24px}textarea.mat-mdc-input-element{box-sizing:content-box!important}.mat-toolbar.mat-primary .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-primary .text-secondary{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-primary .text-hint,.mat-toolbar.mat-primary .text-disabled{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-primary .divider{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-accent .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-accent .text-secondary{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .text-hint,.mat-toolbar.mat-accent .text-disabled{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .divider{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-toolbar.mat-warn .mat-icon{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.mat-toolbar.mat-warn .text-secondary{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .text-hint,.mat-toolbar.mat-warn .text-disabled{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .divider{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .12 !important}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-default)!important;color:#fff}.dark .mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--angor-text-secondary)!important;color:var(--angor-bg-default)!important}code[class*=language-] .hljs-comment,code[class*=language-] .hljs-quote,pre[class*=language-] .hljs-comment,pre[class*=language-] .hljs-quote{color:#8b9fc1;font-style:italic}code[class*=language-] .hljs-doctag,code[class*=language-] .hljs-keyword,code[class*=language-] .hljs-formula,pre[class*=language-] .hljs-doctag,pre[class*=language-] .hljs-keyword,pre[class*=language-] .hljs-formula{color:#22d3ee}code[class*=language-] .hljs-name,pre[class*=language-] .hljs-name{color:#e879f9}code[class*=language-] .hljs-tag,pre[class*=language-] .hljs-tag{color:#bae6fd}code[class*=language-] .hljs-section,code[class*=language-] .hljs-selector-tag,code[class*=language-] .hljs-deletion,code[class*=language-] .hljs-subst,pre[class*=language-] .hljs-section,pre[class*=language-] .hljs-selector-tag,pre[class*=language-] .hljs-deletion,pre[class*=language-] .hljs-subst{color:#f87f71}code[class*=language-] .hljs-literal,pre[class*=language-] .hljs-literal{color:#36beff}code[class*=language-] .hljs-string,code[class*=language-] .hljs-regexp,code[class*=language-] .hljs-addition,code[class*=language-] .hljs-attribute,code[class*=language-] .hljs-meta-string,pre[class*=language-] .hljs-string,pre[class*=language-] .hljs-regexp,pre[class*=language-] .hljs-addition,pre[class*=language-] .hljs-attribute,pre[class*=language-] .hljs-meta-string{color:#bef264}code[class*=language-] .hljs-built_in,code[class*=language-] .hljs-class .hljs-title,pre[class*=language-] .hljs-built_in,pre[class*=language-] .hljs-class .hljs-title{color:#ffd374}code[class*=language-] .hljs-attr,code[class*=language-] .hljs-variable,code[class*=language-] .hljs-template-variable,code[class*=language-] .hljs-type,code[class*=language-] .hljs-selector-class,code[class*=language-] .hljs-selector-attr,code[class*=language-] .hljs-selector-pseudo,code[class*=language-] .hljs-number,pre[class*=language-] .hljs-attr,pre[class*=language-] .hljs-variable,pre[class*=language-] .hljs-template-variable,pre[class*=language-] .hljs-type,pre[class*=language-] .hljs-selector-class,pre[class*=language-] .hljs-selector-attr,pre[class*=language-] .hljs-selector-pseudo,pre[class*=language-] .hljs-number{color:#22d3ee}code[class*=language-] .hljs-symbol,code[class*=language-] .hljs-bullet,code[class*=language-] .hljs-link,code[class*=language-] .hljs-meta,code[class*=language-] .hljs-selector-id,code[class*=language-] .hljs-title,pre[class*=language-] .hljs-symbol,pre[class*=language-] .hljs-bullet,pre[class*=language-] .hljs-link,pre[class*=language-] .hljs-meta,pre[class*=language-] .hljs-selector-id,pre[class*=language-] .hljs-title{color:#e879f9}code[class*=language-] .hljs-emphasis,pre[class*=language-] .hljs-emphasis{font-style:italic}code[class*=language-] .hljs-strong,pre[class*=language-] .hljs-strong{font-weight:700}code[class*=language-] .hljs-link,pre[class*=language-] .hljs-link{text-decoration:underline}.ps{position:relative}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps.ps--focus>.ps__rail-x,.ps.ps--focus>.ps__rail-y,.ps.ps--scrolling-x>.ps__rail-x,.ps.ps--scrolling-x>.ps__rail-y,.ps.ps--scrolling-y>.ps__rail-x,.ps.ps--scrolling-y>.ps__rail-y{opacity:1}.ps>.ps__rail-x,.ps>.ps__rail-y{z-index:99999}.ps>.ps__rail-x{height:14px;background:transparent!important;transition:none!important}.ps>.ps__rail-x:hover,.ps>.ps__rail-x:focus,.ps>.ps__rail-x.ps--clicking{opacity:1}.ps>.ps__rail-x:hover .ps__thumb-x,.ps>.ps__rail-x:focus .ps__thumb-x,.ps>.ps__rail-x.ps--clicking .ps__thumb-x{height:10px}.ps>.ps__rail-x .ps__thumb-x{background:#00000080;box-shadow:0 0 0 1px #ffffff26;height:6px;transition:height 225ms cubic-bezier(.25,.8,.25,1)}.ps>.ps__rail-y{width:14px;background:transparent!important;transition:none!important;left:auto!important}.ps>.ps__rail-y:hover,.ps>.ps__rail-y:focus,.ps>.ps__rail-y.ps--clicking{opacity:1}.ps>.ps__rail-y:hover .ps__thumb-y,.ps>.ps__rail-y:focus .ps__thumb-y,.ps>.ps__rail-y.ps--clicking .ps__thumb-y{width:10px}.ps>.ps__rail-y .ps__thumb-y{background:#00000080;box-shadow:0 0 0 1px #ffffff26;width:6px;transition:width 225ms cubic-bezier(.25,.8,.25,1)}.ql-toolbar{border-radius:6px 6px 0 0;padding:0!important;--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important}.dark .ql-toolbar{background-color:#0000000d;--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-toolbar .ql-formats{margin:11px 8px!important}.ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-label{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker.ql-expanded .ql-picker-options{z-index:10!important;--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity));--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))}.dark .ql-toolbar .ql-picker.ql-expanded .ql-picker-options{--tw-border-opacity: 1;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))}.ql-toolbar .ql-picker .ql-picker-label,.ql-toolbar .ql-picker .ql-picker-options .ql-picker-item{--tw-text-opacity: 1;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))}.ql-toolbar .ql-stroke,.ql-toolbar .ql-stroke-mitter{stroke:var(--angor-icon)}.ql-toolbar .ql-fill{fill:var(--angor-icon)}.ql-toolbar button:hover,.ql-toolbar button:focus,.ql-toolbar button.ql-active,.ql-toolbar .ql-picker-label:hover,.ql-toolbar .ql-picker-label.ql-active,.ql-toolbar .ql-picker-item:hover,.ql-toolbar .ql-picker-item.ql-selected{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.ql-toolbar button:hover .ql-stroke,.ql-toolbar button:hover .ql-stroke-mitter,.ql-toolbar button:focus .ql-stroke,.ql-toolbar button:focus .ql-stroke-mitter,.ql-toolbar button.ql-active .ql-stroke,.ql-toolbar button.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-toolbar .ql-picker-label:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-toolbar .ql-picker-label.ql-active .ql-stroke-mitter,.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-toolbar .ql-picker-item:hover .ql-stroke-mitter,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-mitter{stroke:var(--angor-primary)!important}.ql-toolbar button:hover .ql-fill,.ql-toolbar button:focus .ql-fill,.ql-toolbar button.ql-active .ql-fill,.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-toolbar .ql-picker-item.ql-selected .ql-fill{fill:var(--angor-primary)!important}.ql-container{overflow:auto;min-height:160px;max-height:400px;border-radius:0 0 6px 6px;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-border-opacity: 1 !important;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark .ql-container{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-editor{--tw-bg-opacity: 1;background-color:rgba(var(--angor-bg-card-rgb),var(--tw-bg-opacity))}.ql-container .ql-editor.ql-blank:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-hint-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-accent .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.mat-toolbar.mat-warn .ql-container .ql-editor.ql-blank:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .38 !important}.ql-container .ql-tooltip{border-radius:.375rem;--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1));padding:.25rem .75rem;--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.dark .ql-container .ql-tooltip{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.ql-container .ql-tooltip:before{--tw-text-opacity: 1;color:rgba(var(--angor-text-secondary-rgb),var(--tw-text-opacity))}.mat-toolbar.mat-primary .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-accent .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.mat-toolbar.mat-warn .ql-container .ql-tooltip:before{color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important;--tw-text-opacity: .6 !important}.ql-container .ql-tooltip .ql-action,.ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))}.dark .ql-container .ql-tooltip .ql-action,.dark .ql-container .ql-tooltip .ql-remove{--tw-border-opacity: 1;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))}.ql-container .ql-tooltip .ql-action:after{border-right-width:1px!important;--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.dark .ql-container .ql-tooltip .ql-action:after{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.ql-container .ql-tooltip input{--tw-text-opacity: 1 !important;color:rgba(var(--angor-text-default-rgb),var(--tw-text-opacity))!important;border-radius:.125rem!important;--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark .ql-container .ql-tooltip input{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important;--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.emoji-mart,.emoji-mart *{box-sizing:border-box;line-height:1.15}.emoji-mart{font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;font-size:16px;display:inline-block;color:#222427;border:1px solid #d9d9d9;border-radius:15px;background:#fff}.emoji-mart .emoji-mart-emoji{padding:6px}.emoji-mart-bar{border:0 solid #d9d9d9}.emoji-mart-bar:first-child{border-bottom-width:1px;border-top-left-radius:5px;border-top-right-radius:5px}.emoji-mart-bar:last-child{border-top-width:1px;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.emoji-mart-anchors{display:flex;flex-direction:row;justify-content:space-between;padding:0 6px;line-height:0}.emoji-mart-anchor{position:relative;display:block;flex:1 1 auto;color:#858585;text-align:center;padding:12px 4px;overflow:hidden;transition:color .1s ease-out;margin:0;box-shadow:none;background:none;border:none}.emoji-mart-anchor:focus{outline:0}.emoji-mart-anchor:hover,.emoji-mart-anchor:focus,.emoji-mart-anchor-selected{color:#464646}.emoji-mart-anchor-selected .emoji-mart-anchor-bar{bottom:0}.emoji-mart-anchor-bar{position:absolute;bottom:-3px;left:0;width:100%;height:3px;background-color:#464646}.emoji-mart-anchors i{display:inline-block;width:100%;max-width:22px}.emoji-mart-anchors svg,.emoji-mart-anchors img{fill:currentColor;height:18px}.emoji-mart-scroll{overflow-y:scroll;height:270px;padding:0 6px 6px;will-change:transform}.emoji-mart-search{margin-top:6px;padding:0 6px;position:relative}.emoji-mart-search input{font-size:16px;display:block;width:100%;padding:5px 25px 6px 10px;border-radius:5px;border:1px solid #d9d9d9;outline:0}.emoji-mart-search input,.emoji-mart-search input::-webkit-search-decoration,.emoji-mart-search input::-webkit-search-cancel-button,.emoji-mart-search input::-webkit-search-results-button,.emoji-mart-search input::-webkit-search-results-decoration{-webkit-appearance:none}.emoji-mart-search-icon{position:absolute;top:6px;right:11px;z-index:2;padding:2px 5px 1px;border:none;background:none}.emoji-mart-category .emoji-mart-emoji span{z-index:1;position:relative;text-align:center;cursor:default}.emoji-mart-category .emoji-mart-emoji:hover:before{z-index:0;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:#f4f4f4;border-radius:100%}.emoji-mart-category-label{z-index:2;position:relative;position:sticky;top:0}.emoji-mart-category-label span{display:block;width:100%;font-weight:500;padding:5px 6px;background-color:#fff;background-color:#fffffff2}.emoji-mart-category-list{margin:0;padding:0}.emoji-mart-category-list li{list-style:none;margin:0;padding:0;display:inline-block}.emoji-mart-emoji{position:relative;display:inline-block;font-size:0;margin:0;padding:0;border:none;background:none;box-shadow:none}.emoji-mart-emoji-native{font-family:"Segoe UI Emoji",Segoe UI Symbol,Segoe UI,"Apple Color Emoji",Twemoji Mozilla,"Noto Color Emoji","Android Emoji"}.emoji-mart-no-results{font-size:14px;text-align:center;padding-top:70px;color:#858585}.emoji-mart-no-results .emoji-mart-category-label{display:none}.emoji-mart-no-results .emoji-mart-no-results-label{margin-top:.2em}.emoji-mart-no-results .emoji-mart-emoji:hover:before{content:none}.emoji-mart-preview{position:relative;height:70px}.emoji-mart-preview-emoji,.emoji-mart-preview-data,.emoji-mart-preview-skins{position:absolute;top:50%;transform:translateY(-50%)}.emoji-mart-preview-emoji{left:12px}.emoji-mart-preview-data{left:68px;right:12px;word-break:break-all}.emoji-mart-preview-skins{right:30px;text-align:right}.emoji-mart-preview-skins.custom{right:10px;text-align:right}.emoji-mart-preview-name{font-size:14px}.emoji-mart-preview-shortname{font-size:12px;color:#888}.emoji-mart-preview-shortname+.emoji-mart-preview-shortname,.emoji-mart-preview-shortname+.emoji-mart-preview-emoticon,.emoji-mart-preview-emoticon+.emoji-mart-preview-emoticon{margin-left:.5em}.emoji-mart-preview-emoticon{font-size:11px;color:#bbb}.emoji-mart-title span{display:inline-block;vertical-align:middle}.emoji-mart-title .emoji-mart-emoji{padding:0}.emoji-mart-title-label{color:#999a9c;font-size:26px;font-weight:300}.emoji-mart-skin-swatches{font-size:0;padding:2px 0;border:1px solid #d9d9d9;border-radius:15px;background-color:#fff}.emoji-mart-skin-swatches.custom{font-size:0;border:none;background-color:#fff}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch{width:16px;padding:0 2px}.emoji-mart-skin-swatches.opened .emoji-mart-skin-swatch.selected:after{opacity:.75}.emoji-mart-skin-swatch{display:inline-block;width:0;vertical-align:middle;transition-property:width,padding;transition-duration:.125s;transition-timing-function:ease-out}.emoji-mart-skin-swatch:nth-child(1){transition-delay:0s}.emoji-mart-skin-swatch:nth-child(2){transition-delay:.03s}.emoji-mart-skin-swatch:nth-child(3){transition-delay:.06s}.emoji-mart-skin-swatch:nth-child(4){transition-delay:.09s}.emoji-mart-skin-swatch:nth-child(5){transition-delay:.12s}.emoji-mart-skin-swatch:nth-child(6){transition-delay:.15s}.emoji-mart-skin-swatch.selected{position:relative;width:16px;padding:0 2px}.emoji-mart-skin-swatch.selected:after{content:"";position:absolute;top:50%;left:50%;width:4px;height:4px;margin:-2px 0 0 -2px;background-color:#fff;border-radius:100%;pointer-events:none;opacity:0;transition:opacity .2s ease-out}.emoji-mart-skin-swatch.custom{display:inline-block;width:0;height:38px;overflow:hidden;vertical-align:middle;transition-property:width,height;transition-duration:.125s;transition-timing-function:ease-out;cursor:default}.emoji-mart-skin-swatch.custom.selected{position:relative;width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatch.custom.selected:after{content:"";width:0;height:0}.emoji-mart-skin-swatches.custom .emoji-mart-skin-swatch.custom:hover{background-color:#f4f4f4;border-radius:10%}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom{width:36px;height:38px;padding:0 2px 0 0}.emoji-mart-skin-swatches.custom.opened .emoji-mart-skin-swatch.custom.selected:after{opacity:.75}.emoji-mart-skin-text.opened{display:inline-block;vertical-align:middle;text-align:left;color:#888;font-size:11px;padding:5px 2px;width:95px;height:40px;border-radius:10%;background-color:#fff}.emoji-mart-skin{display:inline-block;width:100%;padding-top:100%;max-width:12px;border-radius:100%}.emoji-mart-skin-tone-1{background-color:#ffc93a}.emoji-mart-skin-tone-2{background-color:#fadcbc}.emoji-mart-skin-tone-3{background-color:#e0bb95}.emoji-mart-skin-tone-4{background-color:#bf8f68}.emoji-mart-skin-tone-5{background-color:#9b643d}.emoji-mart-skin-tone-6{background-color:#594539}.emoji-mart-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.emoji-mart-dark{color:#e5eef0;border-color:#083b46;border-width:2px;border-radius:15px;background-color:#022229}.emoji-mart-dark .emoji-mart-bar{border-color:#083b46}.emoji-mart-dark .emoji-mart-search input{color:#e5eef0;border-color:#083b46;background-color:#07343e}.emoji-mart-dark .emoji-mart-search-icon svg{fill:#e5eef0}.emoji-mart-dark .emoji-mart-category .emoji-mart-emoji:hover:before{background-color:#052b33}.emoji-mart-dark .emoji-mart-category-label span{background-color:#032128;color:#e5eef0}.emoji-mart-dark .emoji-mart-skin-swatches{border-color:#083b46;background-color:#022229}.emoji-mart-dark .emoji-mart-anchor:hover,.emoji-mart-dark .emoji-mart-anchor:focus,.emoji-mart-dark .emoji-mart-anchor-selected{color:#9bbac3}body{overflow-x:hidden}.overscroll-y-contain{overflow:hidden!important}.emoji-picker-container{position:absolute;bottom:60px;left:0;z-index:100000}input,textarea,select,button{font-size:16px}.large-font{font-size:3rem}.qrcode{display:flex;justify-content:center}.qrcode-image{width:100%!important}.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)}}.pointer-events-none{pointer-events:none!important}.visible{visibility:visible!important}.collapse{visibility:collapse!important}.static{position:static!important}.fixed{position:fixed!important}.\!absolute,.absolute{position:absolute!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:0!important}.inset-auto{inset:auto!important}.-left-1{left:-.25rem!important}.-right-1{right:-.25rem!important}.-right-16{right:-4rem!important}.-top-16{top:-4rem!important}.bottom-0{bottom:0!important}.left-0{left:0!important}.right-0{right:0!important}.right-2{right:.5rem!important}.right-5{right:1.25rem!important}.top-0{top:0!important}.top-1\/2{top:50%!important}.top-2{top:.5rem!important}.z-10{z-index:10!important}.z-20{z-index:20!important}.z-49{z-index:49!important}.z-90{z-index:90!important}.z-99{z-index:99!important}.z-999{z-index:999!important}.col-span-2{grid-column:span 2 / span 2!important}.m-0{margin:0!important}.m-0\.5{margin:.125rem!important}.m-8{margin:2rem!important}.m-auto{margin:auto!important}.-mx-3{margin-left:-.75rem!important;margin-right:-.75rem!important}.-mx-6{margin-left:-1.5rem!important;margin-right:-1.5rem!important}.mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.mx-1\.5{margin-left:.375rem!important;margin-right:.375rem!important}.mx-2{margin-left:.5rem!important;margin-right:.5rem!important}.mx-3{margin-left:.75rem!important;margin-right:.75rem!important}.mx-4{margin-left:1rem!important;margin-right:1rem!important}.mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}.mx-auto{margin-left:auto!important;margin-right:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-0\.5{margin-top:.125rem!important;margin-bottom:.125rem!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:.75rem!important;margin-bottom:.75rem!important}.my-5{margin-top:1.25rem!important;margin-bottom:1.25rem!important}.my-6{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.my-px{margin-top:1px!important;margin-bottom:1px!important}.-mb-px{margin-bottom:-1px!important}.-ml-0\.5{margin-left:-.125rem!important}.-ml-1{margin-left:-.25rem!important}.-ml-2{margin-left:-.5rem!important}.-ml-3{margin-left:-.75rem!important}.-ml-px{margin-left:-1px!important}.-mr-4{margin-right:-1rem!important}.-mr-px{margin-right:-1px!important}.-mt-12{margin-top:-3rem!important}.-mt-16{margin-top:-4rem!important}.-mt-26{margin-top:-6.5rem!important}.-mt-5{margin-top:-1.25rem!important}.-mt-px{margin-top:-1px!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.75rem!important}.mb-4{margin-bottom:1rem!important}.mb-6{margin-bottom:1.5rem!important}.mb-8{margin-bottom:2rem!important}.mb-px{margin-bottom:1px!important}.ml-0\.5{margin-left:.125rem!important}.ml-1{margin-left:.25rem!important}.ml-1\.5{margin-left:.375rem!important}.ml-2{margin-left:.5rem!important}.ml-2\.5{margin-left:.625rem!important}.ml-3{margin-left:.75rem!important}.ml-4{margin-left:1rem!important}.ml-6{margin-left:1.5rem!important}.ml-auto{margin-left:auto!important}.mr-1{margin-right:.25rem!important}.mr-1\.5{margin-right:.375rem!important}.mr-2{margin-right:.5rem!important}.mr-3{margin-right:.75rem!important}.mr-4{margin-right:1rem!important}.mr-6{margin-right:1.5rem!important}.mt-0\.5{margin-top:.125rem!important}.mt-1{margin-top:.25rem!important}.mt-1\.5{margin-top:.375rem!important}.mt-10{margin-top:2.5rem!important}.mt-12{margin-top:3rem!important}.mt-2{margin-top:.5rem!important}.mt-2\.5{margin-top:.625rem!important}.mt-3{margin-top:.75rem!important}.mt-4{margin-top:1rem!important}.mt-5{margin-top:1.25rem!important}.mt-6{margin-top:1.5rem!important}.mt-8{margin-top:2rem!important}.mt-px{margin-top:1px!important}.line-clamp-1{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important}.line-clamp-2{overflow:hidden!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important}.block{display:block!important}.inline-block{display:inline-block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.grid{display:grid!important}.hidden{display:none!important}.h-1{height:.25rem!important}.h-1\.5{height:.375rem!important}.h-10{height:2.5rem!important}.h-11{height:2.75rem!important}.h-14{height:3.5rem!important}.h-16{height:4rem!important}.h-18{height:4.5rem!important}.h-2{height:.5rem!important}.h-2\.5{height:.625rem!important}.h-20{height:5rem!important}.h-24{height:6rem!important}.h-3{height:.75rem!important}.h-32{height:8rem!important}.h-4{height:1rem!important}.h-40{height:10rem!important}.h-6{height:1.5rem!important}.h-7{height:1.75rem!important}.h-8{height:2rem!important}.h-full{height:100%!important}.max-h-120{max-height:30rem!important}.max-h-128{max-height:32rem!important}.max-h-140{max-height:35rem!important}.max-h-20{max-height:5rem!important}.min-h-20{min-height:5rem!important}.min-h-32{min-height:8rem!important}.min-h-6{min-height:1.5rem!important}.w-1{width:.25rem!important}.w-1\.5{width:.375rem!important}.w-1\/2{width:50%!important}.w-10{width:2.5rem!important}.w-14{width:3.5rem!important}.w-16{width:4rem!important}.w-2{width:.5rem!important}.w-24{width:6rem!important}.w-3{width:.75rem!important}.w-30{width:7.5rem!important}.w-32{width:8rem!important}.w-4{width:1rem!important}.w-40{width:10rem!important}.w-5{width:1.25rem!important}.w-50{width:12.5rem!important}.w-6{width:1.5rem!important}.w-7{width:1.75rem!important}.w-8{width:2rem!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.min-w-0{min-width:0px!important}.min-w-32{min-width:8rem!important}.min-w-4{min-width:1rem!important}.min-w-screen{min-width:100vw!important}.max-w-140{max-width:35rem!important}.max-w-2xl{max-width:42rem!important}.max-w-3\/4{max-width:75%!important}.max-w-3xl{max-width:48rem!important}.max-w-4xl{max-width:56rem!important}.max-w-5xl{max-width:64rem!important}.max-w-60{max-width:15rem!important}.max-w-80{max-width:20rem!important}.max-w-fit{max-width:fit-content!important}.max-w-full{max-width:100%!important}.max-w-md{max-width:28rem!important}.max-w-sm{max-width:24rem!important}.max-w-xs{max-width:20rem!important}.flex-0{flex:0 0 auto!important}.flex-1{flex:1 1 0%!important}.flex-auto{flex:1 1 auto!important}.flex-shrink-0{flex-shrink:0!important}.shrink{flex-shrink:1!important}.shrink-0{flex-shrink:0!important}.flex-grow{flex-grow:1!important}.-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-x-full{--tw-translate-x: -100% !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.translate-x-0{--tw-translate-x: 0px !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-0{--tw-rotate: 0deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.rotate-180{--tw-rotate: 180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-scale-x-1{--tw-scale-x: -1 !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.flex-row{flex-direction:row!important}.flex-col{flex-direction:column!important}.flex-col-reverse{flex-direction:column-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.items-baseline{align-items:baseline!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.justify-between{justify-content:space-between!important}.justify-items-start{justify-items:start!important}.gap-3{gap:.75rem!important}.gap-4{gap:1rem!important}.gap-6{gap:1.5rem!important}.gap-y-8{row-gap:2rem!important}.space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.125rem * var(--tw-space-x-reverse))!important;margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.25rem * var(--tw-space-x-reverse))!important;margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.75rem * var(--tw-space-x-reverse))!important;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1rem * var(--tw-space-x-reverse))!important;margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(1.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.25rem * var(--tw-space-y-reverse))!important}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(.5rem * var(--tw-space-y-reverse))!important}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1rem * var(--tw-space-y-reverse))!important}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0 !important;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)))!important;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))!important}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0 !important;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))!important;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))!important}.self-start{align-self:flex-start!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overscroll-y-contain{overscroll-behavior-y:contain!important}.truncate{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.break-words{overflow-wrap:break-word!important}.rounded{border-radius:.25rem!important}.rounded-2xl{border-radius:1rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.rounded-md{border-radius:.375rem!important}.rounded-sm{border-radius:.125rem!important}.rounded-b{border-bottom-right-radius:.25rem!important;border-bottom-left-radius:.25rem!important}.rounded-l-lg{border-top-left-radius:.5rem!important;border-bottom-left-radius:.5rem!important}.border{border-width:1px!important}.border-2{border-width:2px!important}.border-b{border-bottom-width:1px!important}.border-l{border-left-width:1px!important}.border-r{border-right-width:1px!important}.border-t{border-top-width:1px!important}.border-gray-300{--tw-border-opacity: 1 !important;border-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-gray-300\/70{border-color:#6b98a4b3!important}.border-gray-500{--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-gray-700{--tw-border-opacity: 1 !important;border-color:rgb(5 43 51 / var(--tw-border-opacity, 1))!important}.border-primary{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.border-slate-300{--tw-border-opacity: 1 !important;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))!important}.border-warn{--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.border-r-gray-300{--tw-border-opacity: 1 !important;border-right-color:rgb(107 152 164 / var(--tw-border-opacity, 1))!important}.border-r-gray-500{--tw-border-opacity: 1 !important;border-right-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.border-opacity-100{--tw-border-opacity: 1 !important}.bg-\[\#086c81\]{--tw-bg-opacity: 1 !important;background-color:rgb(8 108 129 / var(--tw-bg-opacity, 1))!important}.bg-accent-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-accent-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-amber-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))!important}.bg-amber-200{--tw-bg-opacity: 1 !important;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))!important}.bg-amber-50{--tw-bg-opacity: 1 !important;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))!important}.bg-black{--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.bg-black\/10{background-color:#0000001a!important}.bg-blue-100{--tw-bg-opacity: 1 !important;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-200{--tw-bg-opacity: 1 !important;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))!important}.bg-blue-50{--tw-bg-opacity: 1 !important;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))!important}.bg-blue-500{--tw-bg-opacity: 1 !important;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))!important}.bg-gray-100{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.bg-gray-200{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.bg-gray-300{--tw-bg-opacity: 1 !important;background-color:rgb(107 152 164 / var(--tw-bg-opacity, 1))!important}.bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.bg-gray-50{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.bg-gray-500{--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.bg-gray-700{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.bg-gray-800{--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.bg-gray-900{--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.bg-green-100{--tw-bg-opacity: 1 !important;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))!important}.bg-green-200{--tw-bg-opacity: 1 !important;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))!important}.bg-green-50{--tw-bg-opacity: 1 !important;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))!important}.bg-primary{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-primary-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-red-100{--tw-bg-opacity: 1 !important;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))!important}.bg-red-200{--tw-bg-opacity: 1 !important;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))!important}.bg-red-50{--tw-bg-opacity: 1 !important;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))!important}.bg-teal-600{--tw-bg-opacity: 1 !important;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))!important}.bg-warn-100{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-100-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-200{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-200-rgb),var(--tw-bg-opacity, 1))!important}.bg-warn-50{--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-50-rgb),var(--tw-bg-opacity, 1))!important}.bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.bg-opacity-5{--tw-bg-opacity: .05 !important}.bg-opacity-60{--tw-bg-opacity: .6 !important}.bg-opacity-90{--tw-bg-opacity: .9 !important}.object-cover{object-fit:cover!important}.object-center{object-position:center!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-16{padding:4rem!important}.p-2{padding:.5rem!important}.p-4{padding:1rem!important}.p-6{padding:1.5rem!important}.p-8{padding:2rem!important}.px-1{padding-left:.25rem!important;padding-right:.25rem!important}.px-1\.5{padding-left:.375rem!important;padding-right:.375rem!important}.px-16{padding-left:4rem!important;padding-right:4rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.px-8{padding-left:2rem!important;padding-right:2rem!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-12{padding-top:3rem!important;padding-bottom:3rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.py-4{padding-top:1rem!important;padding-bottom:1rem!important}.py-5{padding-top:1.25rem!important;padding-bottom:1.25rem!important}.py-6{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-8{padding-top:2rem!important;padding-bottom:2rem!important}.pb-12{padding-bottom:3rem!important}.pb-28{padding-bottom:7rem!important}.pb-6{padding-bottom:1.5rem!important}.pl-2{padding-left:.5rem!important}.pl-5{padding-left:1.25rem!important}.pl-6{padding-left:1.5rem!important}.pr-4{padding-right:1rem!important}.pr-6{padding-right:1.5rem!important}.pt-4{padding-top:1rem!important}.pt-6{padding-top:1.5rem!important}.pt-8{padding-top:2rem!important}.pt-9{padding-top:2.25rem!important}.text-center{text-align:center!important}.text-2xl{font-size:1.25rem!important}.text-3xl{font-size:1.5rem!important}.text-4xl{font-size:2rem!important}.text-7xl{font-size:3rem!important}.text-8xl{font-size:4rem!important}.text-base{font-size:.875rem!important}.text-lg{font-size:1rem!important}.text-md{font-size:.8125rem!important}.text-sm{font-size:.75rem!important}.text-xl{font-size:1.125rem!important}.text-xs{font-size:.625rem!important}.font-bold{font-weight:700!important}.font-extrabold{font-weight:800!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.uppercase{text-transform:uppercase!important}.italic{font-style:italic!important}.leading-10{line-height:2.5rem!important}.leading-5{line-height:1.25rem!important}.leading-6{line-height:1.5rem!important}.leading-none{line-height:1!important}.leading-tight{line-height:1.25!important}.tracking-tight{letter-spacing:-.025em!important}.text-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-rgb),var(--tw-text-opacity, 1))!important}.text-accent-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.text-accent-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-600-rgb),var(--tw-text-opacity, 1))!important}.text-amber-50{--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.text-amber-500{--tw-text-opacity: 1 !important;color:rgb(245 158 11 / var(--tw-text-opacity, 1))!important}.text-blue-50{--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.text-blue-600{--tw-text-opacity: 1 !important;color:rgb(37 99 235 / var(--tw-text-opacity, 1))!important}.text-current{color:currentColor!important}.text-gray-100{--tw-text-opacity: 1 !important;color:rgb(203 221 225 / var(--tw-text-opacity, 1))!important}.text-gray-400{--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.text-gray-50{--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.text-gray-500{--tw-text-opacity: 1 !important;color:rgb(8 59 70 / var(--tw-text-opacity, 1))!important}.text-gray-600{--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.text-gray-700{--tw-text-opacity: 1 !important;color:rgb(5 43 51 / var(--tw-text-opacity, 1))!important}.text-gray-800{--tw-text-opacity: 1 !important;color:rgb(3 33 40 / var(--tw-text-opacity, 1))!important}.text-gray-900{--tw-text-opacity: 1 !important;color:rgb(2 34 41 / var(--tw-text-opacity, 1))!important}.text-green-50{--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.text-green-500{--tw-text-opacity: 1 !important;color:rgb(34 197 94 / var(--tw-text-opacity, 1))!important}.text-green-700{--tw-text-opacity: 1 !important;color:rgb(21 128 61 / var(--tw-text-opacity, 1))!important}.text-indigo-50{--tw-text-opacity: 1 !important;color:rgb(238 242 255 / var(--tw-text-opacity, 1))!important}.text-on-accent{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-accent-rgb),var(--tw-text-opacity, 1))!important}.text-on-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-primary-rgb),var(--tw-text-opacity, 1))!important}.text-on-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-on-warn-rgb),var(--tw-text-opacity, 1))!important}.text-orange-500{--tw-text-opacity: 1 !important;color:rgb(249 115 22 / var(--tw-text-opacity, 1))!important}.text-primary{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-rgb),var(--tw-text-opacity, 1))!important}.text-primary-400{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.text-primary-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.text-primary-500{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.text-primary-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-600-rgb),var(--tw-text-opacity, 1))!important}.text-primary-700{--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-700-rgb),var(--tw-text-opacity, 1))!important}.text-red-50{--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.text-red-500{--tw-text-opacity: 1 !important;color:rgb(239 68 68 / var(--tw-text-opacity, 1))!important}.text-red-600{--tw-text-opacity: 1 !important;color:rgb(220 38 38 / var(--tw-text-opacity, 1))!important}.text-red-700{--tw-text-opacity: 1 !important;color:rgb(185 28 28 / var(--tw-text-opacity, 1))!important}.text-warn{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-rgb),var(--tw-text-opacity, 1))!important}.text-warn-50{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.text-warn-600{--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-600-rgb),var(--tw-text-opacity, 1))!important}.text-white{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.text-opacity-12{--tw-text-opacity: .12 !important}.text-opacity-38{--tw-text-opacity: .38 !important}.text-opacity-60{--tw-text-opacity: .6 !important}.underline{text-decoration-line:underline!important}.overline{text-decoration-line:overline!important}.opacity-100{opacity:1!important}.opacity-25{opacity:.25!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05) !important;--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.outline{outline-style:solid!important}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.ring-inset{--tw-ring-inset: inset !important}.ring-primary{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-rgb), var(--tw-ring-opacity, 1)) !important}.ring-primary-50{--tw-ring-opacity: 1 !important;--tw-ring-color: rgba(var(--angor-primary-50-rgb), var(--tw-ring-opacity, 1)) !important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-shadow{transition-property:box-shadow!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.transition-transform{transition-property:transform!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-150{transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.duration-400{transition-duration:.4s!important}.ease-drawer{transition-timing-function:cubic-bezier(.25,.8,.25,1)!important}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}.icon-size-24{width:6rem!important;height:6rem!important;min-width:6rem!important;min-height:6rem!important;font-size:6rem!important;line-height:6rem!important}.icon-size-24 svg{width:6rem!important;height:6rem!important}.icon-size-4{width:1rem!important;height:1rem!important;min-width:1rem!important;min-height:1rem!important;font-size:1rem!important;line-height:1rem!important}.icon-size-4 svg{width:1rem!important;height:1rem!important}.icon-size-5{width:1.25rem!important;height:1.25rem!important;min-width:1.25rem!important;min-height:1.25rem!important;font-size:1.25rem!important;line-height:1.25rem!important}.icon-size-5 svg{width:1.25rem!important;height:1.25rem!important}.icon-size-6{width:1.5rem!important;height:1.5rem!important;min-width:1.5rem!important;min-height:1.5rem!important;font-size:1.5rem!important;line-height:1.5rem!important}.icon-size-6 svg{width:1.5rem!important;height:1.5rem!important}.icon-size-7{width:1.75rem!important;height:1.75rem!important;min-width:1.75rem!important;min-height:1.75rem!important;font-size:1.75rem!important;line-height:1.75rem!important}.icon-size-7 svg{width:1.75rem!important;height:1.75rem!important}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1 !important;background-color:rgb(203 221 225 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1 !important;background-color:rgb(155 186 195 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1 !important;background-color:rgb(229 238 240 / var(--tw-bg-opacity, 1))!important}.hover\:bg-gray-700:hover{--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.hover\:underline:hover{text-decoration-line:underline!important}.hover\:opacity-80:hover{opacity:.8!important}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.focus\:outline-none:focus{outline:2px solid transparent!important;outline-offset:2px!important}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)!important}.focus\:ring-gray-500:focus{--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(8 59 70 / var(--tw-ring-opacity, 1)) !important}.disabled\:bg-gray-400:disabled{--tw-bg-opacity: 1 !important;background-color:rgb(59 117 134 / var(--tw-bg-opacity, 1))!important}.group:hover .group-hover\:text-blue-500{--tw-text-opacity: 1 !important;color:rgb(59 130 246 / var(--tw-text-opacity, 1))!important}.group:hover .group-hover\:opacity-100{opacity:1!important}.group:hover .group-hover\:shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:flex:is(.dark *){display:flex!important}.dark\:hidden:is(.dark *){display:none!important}.dark\:border-b:is(.dark *){border-bottom-width:1px!important}.dark\:border-l:is(.dark *){border-left-width:1px!important}.dark\:border-t:is(.dark *){border-top-width:1px!important}.dark\:border-gray-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(8 59 70 / var(--tw-border-opacity, 1))!important}.dark\:border-gray-600:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(7 52 62 / var(--tw-border-opacity, 1))!important}.dark\:border-primary:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-primary-rgb),var(--tw-border-opacity, 1))!important}.dark\:border-slate-500:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))!important}.dark\:border-warn:is(.dark *){--tw-border-opacity: 1 !important;border-color:rgba(var(--angor-warn-rgb),var(--tw-border-opacity, 1))!important}.dark\:bg-accent-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-accent-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-amber-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))!important}.dark\:bg-black:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(8 59 70 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(7 52 62 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(3 33 40 / var(--tw-bg-opacity, 1))!important}.dark\:bg-gray-900:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(2 34 41 / var(--tw-bg-opacity, 1))!important}.dark\:bg-green-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-500:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-500-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-primary-800:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-primary-800-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-red-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))!important}.dark\:bg-transparent:is(.dark *){background-color:transparent!important}.dark\:bg-warn-600:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgba(var(--angor-warn-600-rgb),var(--tw-bg-opacity, 1))!important}.dark\:bg-white:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.dark\:bg-opacity-10:is(.dark *){--tw-bg-opacity: .1 !important}.dark\:bg-opacity-5:is(.dark *){--tw-bg-opacity: .05 !important}.dark\:text-accent-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-accent-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-amber-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 251 235 / var(--tw-text-opacity, 1))!important}.dark\:text-blue-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(239 246 255 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(155 186 195 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(107 152 164 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(59 117 134 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(229 238 240 / var(--tw-text-opacity, 1))!important}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(7 52 62 / var(--tw-text-opacity, 1))!important}.dark\:text-green-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(240 253 244 / var(--tw-text-opacity, 1))!important}.dark\:text-primary-400:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-400-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-primary-500:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-primary-500-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-red-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(254 242 242 / var(--tw-text-opacity, 1))!important}.dark\:text-warn-50:is(.dark *){--tw-text-opacity: 1 !important;color:rgba(var(--angor-warn-50-rgb),var(--tw-text-opacity, 1))!important}.dark\:text-white:is(.dark *){--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.dark\:shadow-none:is(.dark *){--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.dark\:ring-gray-900:is(.dark *){--tw-ring-opacity: 1 !important;--tw-ring-color: rgb(2 34 41 / var(--tw-ring-opacity, 1)) !important}.dark\:hover\:bg-black:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1 !important;background-color:rgb(5 43 51 / var(--tw-bg-opacity, 1))!important}.dark\:hover\:bg-opacity-5:hover:is(.dark *){--tw-bg-opacity: .05 !important}@media (min-width: 600px){.sm\:static{position:static!important}.sm\:absolute{position:absolute!important}.sm\:inset-0{inset:0!important}.sm\:inset-auto{inset:auto!important}.sm\:col-span-4{grid-column:span 4 / span 4!important}.sm\:mx-0{margin-left:0!important;margin-right:0!important}.sm\:mx-1{margin-left:.25rem!important;margin-right:.25rem!important}.sm\:mx-5{margin-left:1.25rem!important;margin-right:1.25rem!important}.sm\:mx-8{margin-left:2rem!important;margin-right:2rem!important}.sm\:my-10{margin-top:2.5rem!important;margin-bottom:2.5rem!important}.sm\:-mr-4{margin-right:-1rem!important}.sm\:-mt-24{margin-top:-6rem!important}.sm\:mb-6{margin-bottom:1.5rem!important}.sm\:ml-0{margin-left:0!important}.sm\:ml-8{margin-left:2rem!important}.sm\:ml-auto{margin-left:auto!important}.sm\:mr-4{margin-right:1rem!important}.sm\:mt-0{margin-top:0!important}.sm\:mt-20{margin-top:5rem!important}.sm\:mt-24{margin-top:6rem!important}.sm\:mt-8{margin-top:2rem!important}.sm\:flex{display:flex!important}.sm\:inline-flex{display:inline-flex!important}.sm\:hidden{display:none!important}.sm\:h-20{height:5rem!important}.sm\:h-full{height:100%!important}.sm\:max-h-120{max-height:30rem!important}.sm\:w-100{width:25rem!important}.sm\:w-80{width:20rem!important}.sm\:w-90{width:22.5rem!important}.sm\:w-96{width:24rem!important}.sm\:w-auto{width:auto!important}.sm\:min-w-100{min-width:25rem!important}.sm\:min-w-90{min-width:22.5rem!important}.sm\:max-w-120{max-width:30rem!important}.sm\:max-w-5xl{max-width:64rem!important}.sm\:max-w-none{max-width:none!important}.sm\:-translate-x-96{--tw-translate-x: -24rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))!important}.sm\:flex-row{flex-direction:row!important}.sm\:items-start{align-items:flex-start!important}.sm\:items-center{align-items:center!important}.sm\:justify-start{justify-content:flex-start!important}.sm\:justify-end{justify-content:flex-end!important}.sm\:justify-center{justify-content:center!important}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0 !important;margin-right:calc(.5rem * var(--tw-space-x-reverse))!important;margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))!important}.sm\:overflow-hidden{overflow:hidden!important}.sm\:rounded-2xl{border-radius:1rem!important}.sm\:bg-transparent{background-color:transparent!important}.sm\:p-10{padding:2.5rem!important}.sm\:p-12{padding:3rem!important}.sm\:p-16{padding:4rem!important}.sm\:p-8{padding:2rem!important}.sm\:px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}.sm\:px-16{padding-left:4rem!important;padding-right:4rem!important}.sm\:px-18{padding-left:4.5rem!important;padding-right:4.5rem!important}.sm\:px-8{padding-left:2rem!important;padding-right:2rem!important}.sm\:pb-10{padding-bottom:2.5rem!important}.sm\:pb-48{padding-bottom:12rem!important}.sm\:pb-8{padding-bottom:2rem!important}.sm\:pr-8{padding-right:2rem!important}.sm\:pt-20{padding-top:5rem!important}.sm\:text-left{text-align:left!important}.sm\:text-2xl{font-size:1.25rem!important}.sm\:text-4xl{font-size:2rem!important}.sm\:text-7xl{font-size:3rem!important}.sm\:opacity-0{opacity:0!important}.sm\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.group:hover .sm\:group-hover\:opacity-100{opacity:1!important}}@media (min-width: 960px){.md\:-ml-2{margin-left:-.5rem!important}.md\:block{display:block!important}.md\:flex{display:flex!important}.md\:h-full{height:100%!important}.md\:w-1\/2{width:50%!important}.md\:max-w-4xl{max-width:56rem!important}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}.md\:items-start{align-items:flex-start!important}.md\:items-center{align-items:center!important}.md\:justify-start{justify-content:flex-start!important}.md\:justify-end{justify-content:flex-end!important}.md\:gap-x-6{column-gap:1.5rem!important}.md\:gap-y-0{row-gap:0px!important}.md\:rounded-none{border-radius:0!important}.md\:p-16{padding:4rem!important}.md\:p-8{padding:2rem!important}.md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}.md\:px-8{padding-left:2rem!important;padding-right:2rem!important}.md\:pb-12{padding-bottom:3rem!important}.md\:text-7xl{font-size:3rem!important}.md\:text-xl{font-size:1.125rem!important}.md\:leading-none{line-height:1!important}.md\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media (min-width: 1280px){.lg\:static{position:static!important}.lg\:sticky{position:sticky!important}.lg\:inset-auto{inset:auto!important}.lg\:left-full{left:100%!important}.lg\:right-0{right:0!important}.lg\:right-16{right:4rem!important}.lg\:m-0{margin:0!important}.lg\:-mt-22{margin-top:-5.5rem!important}.lg\:ml-0{margin-left:0!important}.lg\:ml-8{margin-left:2rem!important}.lg\:ml-auto{margin-left:auto!important}.lg\:mr-8{margin-right:2rem!important}.lg\:mt-0{margin-top:0!important}.lg\:flex{display:flex!important}.lg\:hidden{display:none!important}.lg\:h-18{height:4.5rem!important}.lg\:h-80{height:20rem!important}.lg\:h-screen{height:100vh!important}.lg\:w-16{width:4rem!important}.lg\:min-w-100{min-width:25rem!important}.lg\:max-w-100,.lg\:max-w-\[25rem\]{max-width:25rem!important}.lg\:-translate-x-80{--tw-translate-x: -20rem !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lg\:flex-row{flex-direction:row!important}.lg\:items-start{align-items:flex-start!important}.lg\:overflow-hidden{overflow:hidden!important}.lg\:border-l{border-left-width:1px!important}.lg\:border-r{border-right-width:1px!important}.lg\:p-12{padding:3rem!important}.lg\:px-28{padding-left:7rem!important;padding-right:7rem!important}.lg\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.lg\:shadow-none{--tw-shadow: 0 0 #0000 !important;--tw-shadow-colored: 0 0 #0000 !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}}@media print{.print\:hidden{display:none!important}}